Version Description
Download this release
Release Info
Developer | gutenbergplugin |
Plugin | Gutenberg |
Version | 11.2.1 |
Comparing to | |
See all releases |
Code changes from version 11.2.0 to 11.2.1
- build/edit-post/index.js +1 -1
- build/edit-post/index.min.asset.php +1 -1
- build/edit-post/index.min.js +1 -1
- changelog.txt +160 -150
- gutenberg.php +3 -3
- readme.txt +2 -2
build/edit-post/index.js
CHANGED
@@ -12745,7 +12745,7 @@ function VisualEditor({
|
|
12745 |
}
|
12746 |
|
12747 |
return undefined;
|
12748 |
-
}, [isTemplateMode, themeSupportsLayout]);
|
12749 |
return Object(external_wp_element_["createElement"])(external_wp_blockEditor_["BlockTools"], {
|
12750 |
__unstableContentRef: ref,
|
12751 |
className: classnames_default()('edit-post-visual-editor', {
|
12745 |
}
|
12746 |
|
12747 |
return undefined;
|
12748 |
+
}, [isTemplateMode, themeSupportsLayout, defaultLayout]);
|
12749 |
return Object(external_wp_element_["createElement"])(external_wp_blockEditor_["BlockTools"], {
|
12750 |
__unstableContentRef: ref,
|
12751 |
className: classnames_default()('edit-post-visual-editor', {
|
build/edit-post/index.min.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array('lodash', 'react', 'wp-a11y', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url', 'wp-viewport', 'wp-warning'), 'version' => '
|
1 |
+
<?php return array('dependencies' => array('lodash', 'react', 'wp-a11y', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url', 'wp-viewport', 'wp-warning'), 'version' => '4c593a6adca573a03c7502f0bfc4f593');
|
build/edit-post/index.min.js
CHANGED
@@ -14,7 +14,7 @@ actions:Object(_.__)("Publish"),
|
|
14 |
/* translators: accessibility text for the footer landmark region. */
|
15 |
footer:Object(_.__)("Footer"),...s};return Object(O.createElement)("div",{ref:Object(H.useMergeRefs)([d,p]),className:j()(l,"interface-interface-skeleton",m,!!e&&"has-footer")},!!i&&Object(O.createElement)("div",{className:"interface-interface-skeleton__drawer",role:"region","aria-label":b.drawer},i),Object(O.createElement)("div",{className:"interface-interface-skeleton__editor"},!!t&&Object(O.createElement)("div",{className:"interface-interface-skeleton__header",role:"region","aria-label":b.header,tabIndex:"-1"},t),Object(O.createElement)("div",{className:"interface-interface-skeleton__body"},!!r&&Object(O.createElement)("div",{className:"interface-interface-skeleton__secondary-sidebar",role:"region","aria-label":b.secondarySidebar,tabIndex:"-1"},r),!!o&&Object(O.createElement)("div",{className:"interface-interface-skeleton__notices"},o),Object(O.createElement)("div",{className:"interface-interface-skeleton__content",role:"region","aria-label":b.body,tabIndex:"-1"},a),!!n&&Object(O.createElement)("div",{className:"interface-interface-skeleton__sidebar",role:"region","aria-label":b.sidebar,tabIndex:"-1"},n),!!c&&Object(O.createElement)("div",{className:"interface-interface-skeleton__actions",role:"region","aria-label":b.actions,tabIndex:"-1"},c))),!!e&&Object(O.createElement)("div",{className:"interface-interface-skeleton__footer",role:"region","aria-label":b.footer,tabIndex:"-1"},e))}))},31:function(e,t){e.exports=window.wp.notices},32:function(e,t,n){"use strict";var r,o;function a(e){return[e]}function i(){var e={clear:function(){e.head=null}};return e}function c(e,t,n){var r;if(e.length!==t.length)return!1;for(r=n;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}r={},o="undefined"!=typeof WeakMap,t.a=function(e,t){var n,s;function l(){n=o?new WeakMap:i()}function u(){var n,r,o,a,i,l=arguments.length;for(a=new Array(l),o=0;o<l;o++)a[o]=arguments[o];for(i=t.apply(null,a),(n=s(i)).isUniqueByDependants||(n.lastDependants&&!c(i,n.lastDependants,0)&&n.clear(),n.lastDependants=i),r=n.head;r;){if(c(r.args,a,1))return r!==n.head&&(r.prev.next=r.next,r.next&&(r.next.prev=r.prev),r.next=n.head,r.prev=null,n.head.prev=r,n.head=r),r.val;r=r.next}return r={val:e.apply(null,a)},a[0]=null,r.args=a,n.head&&(n.head.prev=r,r.next=n.head),n.head=r,r.val}return t||(t=a),s=o?function(e){var t,o,a,c,s,l=n,u=!0;for(t=0;t<e.length;t++){if(!(s=o=e[t])||"object"!=typeof s){u=!1;break}l.has(o)?l=l.get(o):(a=new WeakMap,l.set(o,a),l=a)}return l.has(r)||((c=i()).isUniqueByDependants=u,l.set(r,c)),l.get(r)}:function(){return n},u.getDependants=t,u.clear=l,l(),u}},329:function(e,t,n){"use strict";var r=n(0),o=n(6);const a=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(o.Path,{d:"M20 10c0-5.51-4.49-10-10-10C4.48 0 0 4.49 0 10c0 5.52 4.48 10 10 10 5.51 0 10-4.48 10-10zM7.78 15.37L4.37 6.22c.55-.02 1.17-.08 1.17-.08.5-.06.44-1.13-.06-1.11 0 0-1.45.11-2.37.11-.18 0-.37 0-.58-.01C4.12 2.69 6.87 1.11 10 1.11c2.33 0 4.45.87 6.05 2.34-.68-.11-1.65.39-1.65 1.58 0 .74.45 1.36.9 2.1.35.61.55 1.36.55 2.46 0 1.49-1.4 5-1.4 5l-3.03-8.37c.54-.02.82-.17.82-.17.5-.05.44-1.25-.06-1.22 0 0-1.44.12-2.38.12-.87 0-2.33-.12-2.33-.12-.5-.03-.56 1.2-.06 1.22l.92.08 1.26 3.41zM17.41 10c.24-.64.74-1.87.43-4.25.7 1.29 1.05 2.71 1.05 4.25 0 3.29-1.73 6.24-4.4 7.78.97-2.59 1.94-5.2 2.92-7.78zM6.1 18.09C3.12 16.65 1.11 13.53 1.11 10c0-1.3.23-2.48.72-3.59C3.25 10.3 4.67 14.2 6.1 18.09zm4.03-6.63l2.58 6.98c-.86.29-1.76.45-2.71.45-.79 0-1.57-.11-2.29-.33.81-2.38 1.62-4.74 2.42-7.1z"}));t.a=a},33:function(e,t){e.exports=window.wp.a11y},36:function(e,t){e.exports=window.wp.dataControls},388:function(e,t,n){"use strict";var r=n(0),o=n(6);const a=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M20 10.8H6.7l4.1-4.5-1.1-1.1-5.8 6.3 5.8 5.8 1.1-1.1-4-3.9H20z"}));t.a=a},4:function(e,t){e.exports=window.wp.data},49:function(e,t){e.exports=window.wp.plugins},496:function(e,t,n){"use strict";n.r(t),n.d(t,"store",(function(){return w.a})),n.d(t,"reinitializeEditor",(function(){return As})),n.d(t,"initializeEditor",(function(){return Ms})),n.d(t,"PluginBlockSettingsMenuItem",(function(){return ks})),n.d(t,"PluginDocumentSettingPanel",(function(){return Jc.a})),n.d(t,"PluginMoreMenuItem",(function(){return Ts})),n.d(t,"PluginPostPublishPanel",(function(){return fs})),n.d(t,"PluginPostStatusInfo",(function(){return Nc})),n.d(t,"PluginPrePublishPanel",(function(){return Os})),n.d(t,"PluginSidebar",(function(){return es})),n.d(t,"PluginSidebarMoreMenuItem",(function(){return Cs})),n.d(t,"__experimentalFullscreenModeClose",(function(){return Wi})),n.d(t,"__experimentalMainDashboardButton",(function(){return pc}));var r=n(0),o=n(62),a=n(21),i=n(64);Object(a.addFilter)("editor.MediaUpload","core/edit-post/replace-media-upload",()=>i.MediaUpload);var c=n(7),s=n(2),l=n(8),u=n(3),d=n(4),p=n(5),m=n(1),b=n(9);const f=Object(b.compose)(Object(d.withSelect)((e,t)=>{if(Object(l.hasBlockSupport)(t.name,"multiple",!0))return{};const n=e(p.store).getBlocks(),r=Object(s.find)(n,({name:e})=>t.name===e);return{originalBlockClientId:r&&r.clientId!==t.clientId&&r.clientId}}),Object(d.withDispatch)((e,{originalBlockClientId:t})=>({selectFirst:()=>e(p.store).selectBlock(t)}))),v=Object(b.createHigherOrderComponent)(e=>f(({originalBlockClientId:t,selectFirst:n,...o})=>{if(!t)return Object(r.createElement)(e,o);const a=Object(l.getBlockType)(o.name),i=function(e){const t=Object(l.findTransform)(Object(l.getBlockTransforms)("to",e),({type:e,blocks:t})=>"block"===e&&1===t.length);return t?Object(l.getBlockType)(t.blocks[0]):null}(o.name);return[Object(r.createElement)("div",{key:"invalid-preview",style:{minHeight:"60px"}},Object(r.createElement)(e,Object(c.a)({key:"block-edit"},o))),Object(r.createElement)(p.Warning,{key:"multiple-use-warning",actions:[Object(r.createElement)(u.Button,{key:"find-original",variant:"secondary",onClick:n},Object(m.__)("Find original")),Object(r.createElement)(u.Button,{key:"remove",variant:"secondary",onClick:()=>o.onReplace([])},Object(m.__)("Remove")),i&&Object(r.createElement)(u.Button,{key:"transform",variant:"secondary",onClick:()=>o.onReplace(Object(l.createBlock)(i.name,o.attributes))},Object(m.__)("Transform into:")," ",i.title)]},Object(r.createElement)("strong",null,a.title,": "),Object(m.__)("This block can only be used once."))]}),"withMultipleValidation");Object(a.addFilter)("editor.BlockEdit","core/edit-post/validate-multiple-use/with-multiple-validation",v);var h=n(267),g=n(49),O=n(20),y=n(31),j=n(18);function E(){const{createNotice:e}=Object(d.useDispatch)(y.store),t=Object(d.useSelect)(e=>()=>e(j.store).getEditedPostAttribute("content"),[]),n=Object(b.useCopyToClipboard)(t,(function(){e("info",Object(m.__)("All content copied."),{isDismissible:!0,type:"snackbar"})}));return Object(r.createElement)(u.MenuItem,{ref:n},Object(m.__)("Copy all content"))}var _=n(14),w=n(19),S=Object(d.withDispatch)(e=>{const{openModal:t}=e(w.a);return{openModal:t}})((function({openModal:e}){return Object(r.createElement)(u.MenuItem,{onClick:()=>{e("edit-post/keyboard-shortcut-help")},shortcut:_.displayShortcut.access("h")},Object(m.__)("Keyboard shortcuts"))}));const{Fill:x,Slot:P}=Object(u.createSlotFill)("ToolsMoreMenuGroup");x.Slot=({fillProps:e})=>Object(r.createElement)(P,{fillProps:e},e=>!Object(s.isEmpty)(e)&&Object(r.createElement)(u.MenuGroup,{label:Object(m.__)("Tools")},e));var k=x;function T(){const e=Object(d.useSelect)(e=>e(w.a).isEditingTemplate(),[]),{toggleFeature:t}=Object(d.useDispatch)(w.a);return Object(r.createElement)(u.MenuItem,{onClick:()=>t(e?"welcomeGuideTemplate":"welcomeGuide")},Object(m.__)("Welcome Guide"))}Object(g.registerPlugin)("edit-post",{render:()=>Object(r.createElement)(r.Fragment,null,Object(r.createElement)(k,null,({onClose:e})=>Object(r.createElement)(r.Fragment,null,Object(r.createElement)(u.MenuItem,{role:"menuitem",href:Object(O.addQueryArgs)("edit.php",{post_type:"wp_block"})},Object(m.__)("Manage Reusable blocks")),Object(r.createElement)(S,{onSelect:e}),Object(r.createElement)(T,null),Object(r.createElement)(E,null),Object(r.createElement)(u.MenuItem,{role:"menuitem",icon:h.a,href:Object(m.__)("https://wordpress.org/support/article/wordpress-editor/"),target:"_blank",rel:"noopener noreferrer"},Object(m.__)("Help"),Object(r.createElement)(u.VisuallyHidden,{as:"span"},
|
16 |
/* translators: accessibility text */
|
17 |
-
Object(m.__)("(opens in a new tab)"))))))});var C=n(12),A={"t a l e s o f g u t e n b e r g":e=>{const{ownerDocument:t}=e.target;(t.activeElement.classList.contains("edit-post-visual-editor")||t.activeElement===t.body)&&(e.preventDefault(),window.wp.data.dispatch("core/block-editor").insertBlock(window.wp.blocks.createBlock("core/paragraph",{content:"🐡🐢🦀🐤🦋🐘🐧🐹🦁🦄🦍🐼🐿🎃🐴🐝🐆🦕🦔🌱🍇π🍌🐉💧🥨🌌🍂🍠🥦🥚🥝🎟🥥🥒🛵🥖🍒🍯🎾🎲🐺🐚🐮⌛️"})))}},M=n(10),B=n.n(M),I=n(30),L=n(27),N=Object(b.compose)(Object(d.withSelect)(e=>({isRichEditingEnabled:e(j.store).getEditorSettings().richEditingEnabled})),Object(d.withDispatch)(e=>({onExit(){e(w.a).switchEditorMode("visual")}})))((function({onExit:e,isRichEditingEnabled:t}){return Object(r.createElement)("div",{className:"edit-post-text-editor"},t&&Object(r.createElement)("div",{className:"edit-post-text-editor__toolbar"},Object(r.createElement)("h2",null,Object(m.__)("Editing code")),Object(r.createElement)(u.Button,{variant:"tertiary",onClick:e,shortcut:_.displayShortcut.secondary("m")},Object(m.__)("Exit code editor")),Object(r.createElement)(j.TextEditorGlobalKeyboardShortcuts,null)),Object(r.createElement)("div",{className:"edit-post-text-editor__body"},Object(r.createElement)(j.PostTitle,null),Object(r.createElement)(j.PostTextEditor,null)))})),D=function(e,t){return(D=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])})(e,t)};function R(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}D(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}var V=function(){return(V=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}).apply(this,arguments)};function F(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}function U(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function G(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||t)}Object.create,Object.create;var H=n(11),z=n.n(H),W=function(e){return{isEnabled:function(t){return e.some((function(e){return!!t[e]}))}}},Y={measureLayout:W(["layout","layoutId","drag","_layoutResetTransform"]),animation:W(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag"]),exit:W(["exit"]),drag:W(["drag","dragControls"]),focus:W(["whileFocus"]),hover:W(["whileHover","onHoverStart","onHoverEnd"]),tap:W(["whileTap","onTap","onTapStart","onTapCancel"]),pan:W(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),layoutAnimation:W(["layout","layoutId"])},X=Object(H.createContext)({strict:!1}),q=Object.keys(Y),K=q.length,$=Object(H.createContext)({transformPagePoint:function(e){return e},isStatic:!1}),Z=Object(H.createContext)({}),Q=Object(H.createContext)(null);function J(e){var t=Object(H.useRef)(null);return null===t.current&&(t.current=e()),t.current}function ee(){var e=Object(H.useContext)(Q);if(null===e)return[!0,null];var t=e.isPresent,n=e.onExitComplete,r=e.register,o=re();return Object(H.useEffect)((function(){return r(o)}),[]),!t&&n?[!1,function(){return null==n?void 0:n(o)}]:[!0]}var te=0,ne=function(){return te++},re=function(){return J(ne)},oe=Object(H.createContext)(null),ae="undefined"!=typeof window,ie=ae?H.useLayoutEffect:H.useEffect;function ce(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function se(e){return Array.isArray(e)}function le(e){return"string"==typeof e||se(e)}function ue(e,t,n,r,o){var a;return void 0===r&&(r={}),void 0===o&&(o={}),"string"==typeof t&&(t=null===(a=e.variants)||void 0===a?void 0:a[t]),"function"==typeof t?t(null!=n?n:e.custom,r,o):t}function de(e,t,n){var r=e.getProps();return ue(r,t,null!=n?n:r.custom,function(e){var t={};return e.forEachValue((function(e,n){return t[n]=e.get()})),t}(e),function(e){var t={};return e.forEachValue((function(e,n){return t[n]=e.getVelocity()})),t}(e))}function pe(e){var t;return"function"==typeof(null===(t=e.animate)||void 0===t?void 0:t.start)||le(e.initial)||le(e.animate)||le(e.whileHover)||le(e.whileDrag)||le(e.whileTap)||le(e.whileFocus)||le(e.exit)}function me(e){return Boolean(pe(e)||e.variants)}function be(e){return Array.isArray(e)?e.join(" "):e}function fe(e){var t=e.preloadedFeatures,n=e.createVisualElement,r=e.useRender,o=e.useVisualState,a=e.Component;return t&&function(e){for(var t in e){var n=e[t];null!==n&&(Y[t].Component=n)}}(t),Object(H.forwardRef)((function(e,t){var i=Object(H.useContext)($).isStatic,c=null,s=function(e,t){var n=function(e,t){if(pe(e)){var n=e.initial,r=e.animate;return{initial:!1===n||le(n)?n:void 0,animate:le(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,Object(H.useContext)(Z)),r=n.initial,o=n.animate;return Object(H.useMemo)((function(){return{initial:r,animate:o}}),t?[be(r),be(o)]:[])}(e,i),l=o(e,i);return!i&&ae&&(s.visualElement=function(e,t,n,r){var o=Object(H.useContext)($),a=Object(H.useContext)(X),i=Object(H.useContext)(Z).visualElement,c=Object(H.useContext)(Q),s=function(e){var t=e.layoutId,n=Object(H.useContext)(oe);return n&&void 0!==t?n+"-"+t:t}(n),l=Object(H.useRef)(void 0);r||(r=a.renderer),!l.current&&r&&(l.current=r(e,{visualState:t,parent:i,props:V(V({},n),{layoutId:s}),presenceId:null==c?void 0:c.id,blockInitialAnimation:!1===(null==c?void 0:c.initial)}));var u=l.current;return ie((function(){var e;u&&(u.setProps(V(V(V({},o),n),{layoutId:s})),u.isPresent=null===(e=c)||e.isPresent,u.isPresenceRoot=!i||i.presenceId!==(null==c?void 0:c.id),u.syncRender())})),Object(H.useEffect)((function(){var e;u&&(null===(e=u.animationState)||void 0===e||e.animateChanges())})),ie((function(){return function(){return null==u?void 0:u.notifyUnmount()}}),[]),u}(a,l,e,n),c=function(e,t,n){var r=[];if(Object(H.useContext)(X),!t)return null;for(var o=0;o<K;o++){var a=q[o],i=Y[a],c=i.isEnabled,s=i.Component;c(e)&&s&&r.push(H.createElement(s,V({key:a},e,{visualElement:t})))}return r}(e,s.visualElement)),H.createElement(H.Fragment,null,H.createElement(Z.Provider,{value:s},r(a,e,function(e,t,n){return Object(H.useCallback)((function(r){var o;r&&(null===(o=e.mount)||void 0===o||o.call(e,r)),t&&(r?t.mount(r):t.unmount()),n&&("function"==typeof n?n(r):ce(n)&&(n.current=r))}),[t])}(l,s.visualElement,t),l,i)),c)}))}function ve(e){function t(t,n){return void 0===n&&(n={}),fe(e(t,n))}var n=new Map;return new Proxy(t,{get:function(e,r){return n.has(r)||n.set(r,t(r)),n.get(r)}})}var he=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function ge(e){return"string"==typeof e&&!e.includes("-")&&!!(he.indexOf(e)>-1||/[A-Z]/.test(e))}var Oe={},ye=["","X","Y","Z"],je=["transformPerspective","x","y","z"];function Ee(e,t){return je.indexOf(e)-je.indexOf(t)}["translate","scale","rotate","skew"].forEach((function(e){return ye.forEach((function(t){return je.push(e+t)}))}));var _e=new Set(je);function we(e){return _e.has(e)}var Se=new Set(["originX","originY","originZ"]);function xe(e){return Se.has(e)}function Pe(e,t){var n=t.layout,r=t.layoutId;return we(e)||xe(e)||(n||void 0!==r)&&(!!Oe[e]||"opacity"===e)}var ke=function(e){return null!==e&&"object"==typeof e&&e.getVelocity},Te={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function Ce(e){return e.startsWith("--")}var Ae=function(e,t){return t&&"number"==typeof e?t.transform(e):e},Me=function(e,t){return function(n){return Math.max(Math.min(n,t),e)}},Be=function(e){return e%1?Number(e.toFixed(5)):e},Ie=/(-)?([\d]*\.?[\d])+/g,Le=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,Ne=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function De(e){return"string"==typeof e}var Re=function(e){return{test:function(t){return De(t)&&t.endsWith(e)&&1===t.split(" ").length},parse:parseFloat,transform:function(t){return""+t+e}}},Ve=Re("deg"),Fe=Re("%"),Ue=Re("px"),Ge=Re("vh"),He=Re("vw"),ze=V(V({},Fe),{parse:function(e){return Fe.parse(e)/100},transform:function(e){return Fe.transform(100*e)}}),We={test:function(e){return"number"==typeof e},parse:parseFloat,transform:function(e){return e}},Ye=V(V({},We),{transform:Me(0,1)}),Xe=V(V({},We),{default:1}),qe=V(V({},We),{transform:Math.round}),Ke={borderWidth:Ue,borderTopWidth:Ue,borderRightWidth:Ue,borderBottomWidth:Ue,borderLeftWidth:Ue,borderRadius:Ue,radius:Ue,borderTopLeftRadius:Ue,borderTopRightRadius:Ue,borderBottomRightRadius:Ue,borderBottomLeftRadius:Ue,width:Ue,maxWidth:Ue,height:Ue,maxHeight:Ue,size:Ue,top:Ue,right:Ue,bottom:Ue,left:Ue,padding:Ue,paddingTop:Ue,paddingRight:Ue,paddingBottom:Ue,paddingLeft:Ue,margin:Ue,marginTop:Ue,marginRight:Ue,marginBottom:Ue,marginLeft:Ue,rotate:Ve,rotateX:Ve,rotateY:Ve,rotateZ:Ve,scale:Xe,scaleX:Xe,scaleY:Xe,scaleZ:Xe,skew:Ve,skewX:Ve,skewY:Ve,distance:Ue,translateX:Ue,translateY:Ue,translateZ:Ue,x:Ue,y:Ue,z:Ue,perspective:Ue,transformPerspective:Ue,opacity:Ye,originX:ze,originY:ze,originZ:Ue,zIndex:qe,fillOpacity:Ye,strokeOpacity:Ye,numOctaves:qe};function $e(e,t,n,r,o,a,i,c){var s,l=e.style,u=e.vars,d=e.transform,p=e.transformKeys,m=e.transformOrigin;p.length=0;var b=!1,f=!1,v=!0;for(var h in t){var g=t[h];if(Ce(h))u[h]=g;else{var O=Ke[h],y=Ae(g,O);if(we(h)){if(b=!0,d[h]=y,p.push(h),!v)continue;g!==(null!==(s=O.default)&&void 0!==s?s:0)&&(v=!1)}else if(xe(h))m[h]=y,f=!0;else if((null==n?void 0:n.isHydrated)&&(null==r?void 0:r.isHydrated)&&Oe[h]){var j=Oe[h].process(g,r,n),E=Oe[h].applyTo;if(E)for(var _=E.length,w=0;w<_;w++)l[E[w]]=j;else l[h]=j}else l[h]=y}}r&&n&&i&&c?(l.transform=i(r.deltaFinal,r.treeScale,b?d:void 0),a&&(l.transform=a(d,l.transform)),l.transformOrigin=c(r)):(b&&(l.transform=function(e,t,n,r){var o=e.transform,a=e.transformKeys,i=t.enableHardwareAcceleration,c=void 0===i||i,s=t.allowTransformNone,l=void 0===s||s,u="";a.sort(Ee);for(var d=!1,p=a.length,m=0;m<p;m++){var b=a[m];u+=(Te[b]||b)+"("+o[b]+") ","z"===b&&(d=!0)}return!d&&c?u+="translateZ(0)":u=u.trim(),r?u=r(o,n?"":u):l&&n&&(u="none"),u}(e,o,v,a)),f&&(l.transformOrigin=function(e){var t=e.originX,n=void 0===t?"50%":t,r=e.originY,o=void 0===r?"50%":r,a=e.originZ;return n+" "+o+" "+(void 0===a?0:a)}(m)))}function Ze(e,t,n){for(var r in t)ke(t[r])||Pe(r,n)||(e[r]=t[r])}function Qe(e,t,n){var r={},o=function(e,t,n){var r={};return Ze(r,e.style||{},e),Object.assign(r,function(e,t,n){var r=e.transformTemplate;return Object(H.useMemo)((function(){var e={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};$e(e,t,void 0,void 0,{enableHardwareAcceleration:!n},r);var o=e.style;return V(V({},e.vars),o)}),[t])}(e,t,n)),e.transformValues&&(r=e.transformValues(r)),r}(e,t,n);return Boolean(e.drag)&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),r.style=o,r}var Je=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","_layoutResetTransform","onLayoutAnimationComplete","onViewportBoxUpdate","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover"]);function et(e){return Je.has(e)}var tt=function(e){return!et(e)};try{var nt=n(535).default;tt=function(e){return e.startsWith("on")?!et(e):nt(e)}}catch(e){}function rt(e,t,n){return"string"==typeof e?e:Ue.transform(t+n*e)}var ot=function(e,t){return Ue.transform(e*t)},at={offset:"stroke-dashoffset",array:"stroke-dasharray"},it={offset:"strokeDashoffset",array:"strokeDasharray"};function ct(e,t,n,r,o,a,i,c){var s=t.attrX,l=t.attrY,u=t.originX,d=t.originY,p=t.pathLength,m=t.pathSpacing,b=void 0===m?1:m,f=t.pathOffset,v=void 0===f?0:f;$e(e,F(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]),n,r,o,a,i,c),e.attrs=e.style,e.style={};var h=e.attrs,g=e.style,O=e.dimensions,y=e.totalPathLength;h.transform&&(O&&(g.transform=h.transform),delete h.transform),O&&(void 0!==u||void 0!==d||g.transform)&&(g.transformOrigin=function(e,t,n){return rt(t,e.x,e.width)+" "+rt(n,e.y,e.height)}(O,void 0!==u?u:.5,void 0!==d?d:.5)),void 0!==s&&(h.x=s),void 0!==l&&(h.y=l),void 0!==y&&void 0!==p&&function(e,t,n,r,o,a){void 0===r&&(r=1),void 0===o&&(o=0),void 0===a&&(a=!0);var i=a?at:it;e[i.offset]=ot(-o,t);var c=ot(n,t),s=ot(r,t);e[i.array]=c+" "+s}(h,y,p,b,v,!1)}var st=function(){return V(V({},{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}),{attrs:{}})};function lt(e,t){var n=Object(H.useMemo)((function(){var n=st();return ct(n,t,void 0,void 0,{enableHardwareAcceleration:!1},e.transformTemplate),V(V({},n.attrs),{style:V({},n.style)})}),[t]);if(e.style){var r={};Ze(r,e.style,e),n.style=V(V({},r),n.style)}return n}function ut(e){return void 0===e&&(e=!1),function(t,n,r,o,a){var i=o.latestValues,c=(ge(t)?lt:Qe)(n,i,a),s=function(e,t,n){var r={};for(var o in e)(tt(o)||!0===n&&et(o)||!t&&!et(o))&&(r[o]=e[o]);return r}(n,"string"==typeof t,e),l=V(V(V({},s),c),{ref:r});return Object(H.createElement)(t,l)}}var dt=/([a-z])([A-Z])/g,pt=function(e){return e.replace(dt,"$1-$2").toLowerCase()};function mt(e,t){var n=t.style,r=t.vars;for(var o in Object.assign(e.style,n),r)e.style.setProperty(o,r[o])}var bt=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform"]);function ft(e,t){for(var n in mt(e,t),t.attrs)e.setAttribute(bt.has(n)?n:pt(n),t.attrs[n])}function vt(e){var t=e.style,n={};for(var r in t)(ke(t[r])||Pe(r,e))&&(n[r]=t[r]);return n}function ht(e){var t=vt(e);for(var n in e)ke(e[n])&&(t["x"===n||"y"===n?"attr"+n.toUpperCase():n]=e[n]);return t}function gt(e){return"object"==typeof e&&"function"==typeof e.start}var Ot=function(e){return Array.isArray(e)};function yt(e,t,n,r){var o=e.scrapeMotionValuesFromProps,a=e.createRenderState,i=e.onMount,c={latestValues:Et(t,n,r,o),renderState:a()};return i&&(c.mount=function(e){return i(t,e,c)}),c}var jt=function(e){return function(t,n){var r=Object(H.useContext)(Z),o=Object(H.useContext)(Q);return n?yt(e,t,r,o):J((function(){return yt(e,t,r,o)}))}};function Et(e,t,n,r){var o,a,i,c={},s=!1===(null==n?void 0:n.initial),l=r(e);for(var u in l)c[u]=(o=l[u],a=void 0,i=void 0,i=ke(o)?o.get():o,a=i,Boolean(a&&"object"==typeof a&&a.mix&&a.toValue)?i.toValue():i);var d=e.initial,p=e.animate,m=pe(e),b=me(e);t&&b&&!m&&!1!==e.inherit&&(null!=d||(d=t.initial),null!=p||(p=t.animate));var f=s||!1===d?p:d;return f&&"boolean"!=typeof f&&!gt(f)&&(Array.isArray(f)?f:[f]).forEach((function(t){var n=ue(e,t);if(n){var r=n.transitionEnd;n.transition;var o=F(n,["transitionEnd","transition"]);for(var a in o)c[a]=o[a];for(var a in r)c[a]=r[a]}})),c}var _t,wt={useVisualState:jt({scrapeMotionValuesFromProps:ht,createRenderState:st,onMount:function(e,t,n){var r=n.renderState,o=n.latestValues;try{r.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){r.dimensions={x:0,y:0,width:0,height:0}}"path"===t.tagName&&(r.totalPathLength=t.getTotalLength()),ct(r,o,void 0,void 0,{enableHardwareAcceleration:!1},e.transformTemplate),ft(t,r)}})},St={useVisualState:jt({scrapeMotionValuesFromProps:vt,createRenderState:function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}}})};function xt(e,t,n,r){return e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n,r)}}function Pt(e,t,n,r){Object(H.useEffect)((function(){var o=e.current;if(n&&o)return xt(o,t,n,r)}),[e,t,n,r])}function kt(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function Tt(e){return!!e.touches}!function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.Exit="exit"}(_t||(_t={}));var Ct={pageX:0,pageY:0};function At(e,t){void 0===t&&(t="page");var n=e.touches[0]||e.changedTouches[0]||Ct;return{x:n[t+"X"],y:n[t+"Y"]}}function Mt(e,t){return void 0===t&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function Bt(e,t){return void 0===t&&(t="page"),{point:Tt(e)?At(e,t):Mt(e,t)}}var It=function(e,t){void 0===t&&(t=!1);var n,r=function(t){return e(t,Bt(t))};return t?(n=r,function(e){var t=e instanceof MouseEvent;(!t||t&&0===e.button)&&n(e)}):r},Lt={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},Nt={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function Dt(e){return ae&&null===window.onpointerdown?e:ae&&null===window.ontouchstart?Nt[e]:ae&&null===window.onmousedown?Lt[e]:e}function Rt(e,t,n,r){return xt(e,Dt(t),It(n,"pointerdown"===t),r)}function Vt(e,t,n,r){return Pt(e,Dt(t),n&&It(n,"pointerdown"===t),r)}function Ft(e){var t=null;return function(){return null===t&&(t=e,function(){t=null})}}var Ut=Ft("dragHorizontal"),Gt=Ft("dragVertical");function Ht(e){var t=!1;if("y"===e)t=Gt();else if("x"===e)t=Ut();else{var n=Ut(),r=Gt();n&&r?t=function(){n(),r()}:(n&&n(),r&&r())}return t}function zt(){var e=Ht(!0);return!e||(e(),!1)}function Wt(e,t,n){return function(r,o){var a;kt(r)&&!zt()&&(null==n||n(r,o),null===(a=e.animationState)||void 0===a||a.setActive(_t.Hover,t))}}var Yt=function(e,t){return!!t&&(e===t||Yt(e,t.parentElement))};function Xt(e){return Object(H.useEffect)((function(){return function(){return e()}}),[])}var qt=function(e,t){return function(n){return t(e(n))}},Kt=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.reduce(qt)},$t=function(e){return function(t){return e(t),null}},Zt={tap:$t((function(e){var t=e.onTap,n=e.onTapStart,r=e.onTapCancel,o=e.whileTap,a=e.visualElement,i=t||n||r||o,c=Object(H.useRef)(!1),s=Object(H.useRef)(null);function l(){var e;null===(e=s.current)||void 0===e||e.call(s),s.current=null}function u(){var e;return l(),c.current=!1,null===(e=a.animationState)||void 0===e||e.setActive(_t.Tap,!1),!zt()}function d(e,n){u()&&(Yt(a.getInstance(),e.target)?null==t||t(e,n):null==r||r(e,n))}function p(e,t){u()&&(null==r||r(e,t))}Vt(a,"pointerdown",i?function(e,t){var r;l(),c.current||(c.current=!0,s.current=Kt(Rt(window,"pointerup",d),Rt(window,"pointercancel",p)),null==n||n(e,t),null===(r=a.animationState)||void 0===r||r.setActive(_t.Tap,!0))}:void 0),Xt(l)})),focus:$t((function(e){var t=e.whileFocus,n=e.visualElement;Pt(n,"focus",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(_t.Focus,!0)}:void 0),Pt(n,"blur",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(_t.Focus,!1)}:void 0)})),hover:$t((function(e){var t=e.onHoverStart,n=e.onHoverEnd,r=e.whileHover,o=e.visualElement;Vt(o,"pointerenter",t||r?Wt(o,!0,t):void 0),Vt(o,"pointerleave",n||r?Wt(o,!1,n):void 0)}))};function Qt(e,t){if(!Array.isArray(t))return!1;var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var Jt=function(e,t,n){return Math.min(Math.max(n,e),t)};function en(e,t){return e*Math.sqrt(1-t*t)}var tn=["duration","bounce"],nn=["stiffness","damping","mass"];function rn(e,t){return t.some((function(t){return void 0!==e[t]}))}function on(e){var t=e.from,n=void 0===t?0:t,r=e.to,o=void 0===r?1:r,a=e.restSpeed,i=void 0===a?2:a,c=e.restDelta,s=F(e,["from","to","restSpeed","restDelta"]),l={done:!1,value:n},u=function(e){var t=V({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!rn(e,nn)&&rn(e,tn)){var n=function(e){var t,n,r=e.duration,o=void 0===r?800:r,a=e.bounce,i=void 0===a?.25:a,c=e.velocity,s=void 0===c?0:c,l=e.mass,u=void 0===l?1:l,d=1-i;d=Jt(.05,1,d),o=Jt(.01,10,o/1e3),d<1?(t=function(e){var t=e*d,n=t*o;return.001-(t-s)/en(e,d)*Math.exp(-n)},n=function(e){var n=e*d*o,r=n*s+s,a=Math.pow(d,2)*Math.pow(e,2)*o,i=Math.exp(-n),c=en(Math.pow(e,2),d);return(.001-t(e)>0?-1:1)*((r-a)*i)/c}):(t=function(e){return Math.exp(-e*o)*((e-s)*o+1)-.001},n=function(e){return Math.exp(-e*o)*(o*o*(s-e))});var p=function(e,t,n){for(var r=n,o=1;o<12;o++)r-=e(r)/t(r);return r}(t,n,5/o);if(o*=1e3,isNaN(p))return{stiffness:100,damping:10,duration:o};var m=Math.pow(p,2)*u;return{stiffness:m,damping:2*d*Math.sqrt(u*m),duration:o}}(e);(t=V(V(V({},t),n),{velocity:0,mass:1})).isResolvedFromDuration=!0}return t}(s),d=u.stiffness,p=u.damping,m=u.mass,b=u.velocity,f=u.duration,v=u.isResolvedFromDuration,h=an,g=an;function O(){var e=b?-b/1e3:0,t=o-n,r=p/(2*Math.sqrt(d*m)),a=Math.sqrt(d/m)/1e3;if(null!=c||(c=Math.abs(o-n)<=1?.01:.4),r<1){var i=en(a,r);h=function(n){var c=Math.exp(-r*a*n);return o-c*((e+r*a*t)/i*Math.sin(i*n)+t*Math.cos(i*n))},g=function(n){var o=Math.exp(-r*a*n);return r*a*o*(Math.sin(i*n)*(e+r*a*t)/i+t*Math.cos(i*n))-o*(Math.cos(i*n)*(e+r*a*t)-i*t*Math.sin(i*n))}}else if(1===r)h=function(n){return o-Math.exp(-a*n)*(t+(e+a*t)*n)};else{var s=a*Math.sqrt(r*r-1);h=function(n){var i=Math.exp(-r*a*n),c=Math.min(s*n,300);return o-i*((e+r*a*t)*Math.sinh(c)+s*t*Math.cosh(c))/s}}}return O(),{next:function(e){var t=h(e);if(v)l.done=e>=f;else{var n=1e3*g(e),r=Math.abs(n)<=i,a=Math.abs(o-t)<=c;l.done=r&&a}return l.value=l.done?o:t,l},flipTarget:function(){var e;b=-b,n=(e=[o,n])[0],o=e[1],O()}}}on.needsInterpolation=function(e,t){return"string"==typeof e||"string"==typeof t};var an=function(e){return 0},cn=function(e,t,n){var r=t-e;return 0===r?1:(n-e)/r},sn=function(e,t,n){return-n*e+n*t+e},ln=function(e,t){return function(n){return Boolean(De(n)&&Ne.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t))}},un=function(e,t,n){return function(r){var o;if(!De(r))return r;var a=r.match(Ie),i=a[0],c=a[1],s=a[2],l=a[3];return(o={})[e]=parseFloat(i),o[t]=parseFloat(c),o[n]=parseFloat(s),o.alpha=void 0!==l?parseFloat(l):1,o}},dn=Me(0,255),pn=V(V({},We),{transform:function(e){return Math.round(dn(e))}}),mn={test:ln("rgb","red"),parse:un("red","green","blue"),transform:function(e){var t=e.red,n=e.green,r=e.blue,o=e.alpha,a=void 0===o?1:o;return"rgba("+pn.transform(t)+", "+pn.transform(n)+", "+pn.transform(r)+", "+Be(Ye.transform(a))+")"}},bn={test:ln("#"),parse:function(e){var t="",n="",r="",o="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),o=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),o=e.substr(4,1),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:mn.transform},fn={test:ln("hsl","hue"),parse:un("hue","saturation","lightness"),transform:function(e){var t=e.hue,n=e.saturation,r=e.lightness,o=e.alpha,a=void 0===o?1:o;return"hsla("+Math.round(t)+", "+Fe.transform(Be(n))+", "+Fe.transform(Be(r))+", "+Be(Ye.transform(a))+")"}},vn=function(e,t,n){var r=e*e,o=t*t;return Math.sqrt(Math.max(0,n*(o-r)+r))},hn=[bn,mn,fn],gn=function(e){return hn.find((function(t){return t.test(e)}))},On=function(e){return"'"+e+"' is not an animatable color. Use the equivalent color code instead."},yn=function(e,t){var n=gn(e),r=gn(t);On(e),On(t),n.transform,r.transform;var o=n.parse(e),a=r.parse(t),i=V({},o),c=n===fn?sn:vn;return function(e){for(var t in i)"alpha"!==t&&(i[t]=c(o[t],a[t],e));return i.alpha=sn(o.alpha,a.alpha,e),n.transform(i)}},jn={test:function(e){return mn.test(e)||bn.test(e)||fn.test(e)},parse:function(e){return mn.test(e)?mn.parse(e):fn.test(e)?fn.parse(e):bn.parse(e)},transform:function(e){return De(e)?e:e.hasOwnProperty("red")?mn.transform(e):fn.transform(e)}};function En(e){var t=[],n=0,r=e.match(Le);r&&(n=r.length,e=e.replace(Le,"${c}"),t.push.apply(t,r.map(jn.parse)));var o=e.match(Ie);return o&&(e=e.replace(Ie,"${n}"),t.push.apply(t,o.map(We.parse))),{values:t,numColors:n,tokenised:e}}function wn(e){return En(e).values}function Sn(e){var t=En(e),n=t.values,r=t.numColors,o=t.tokenised,a=n.length;return function(e){for(var t=o,n=0;n<a;n++)t=t.replace(n<r?"${c}":"${n}",n<r?jn.transform(e[n]):Be(e[n]));return t}}var xn=function(e){return"number"==typeof e?0:e},Pn={test:function(e){var t,n,r,o;return isNaN(e)&&De(e)&&(null!==(n=null===(t=e.match(Ie))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(o=null===(r=e.match(Le))||void 0===r?void 0:r.length)&&void 0!==o?o:0)>0},parse:wn,createTransformer:Sn,getAnimatableNone:function(e){var t=wn(e);return Sn(e)(t.map(xn))}},kn=function(e){return"number"==typeof e};function Tn(e,t){return kn(e)?function(n){return sn(e,t,n)}:jn.test(e)?yn(e,t):Bn(e,t)}var Cn=function(e,t){var n=G([],e),r=n.length,o=e.map((function(e,n){return Tn(e,t[n])}));return function(e){for(var t=0;t<r;t++)n[t]=o[t](e);return n}},An=function(e,t){var n=V(V({},e),t),r={};for(var o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=Tn(e[o],t[o]));return function(e){for(var t in r)n[t]=r[t](e);return n}};function Mn(e){for(var t=Pn.parse(e),n=t.length,r=0,o=0,a=0,i=0;i<n;i++)r||"number"==typeof t[i]?r++:void 0!==t[i].hue?a++:o++;return{parsed:t,numNumbers:r,numRGB:o,numHSL:a}}var Bn=function(e,t){var n=Pn.createTransformer(t),r=Mn(e),o=Mn(t);return r.numHSL===o.numHSL&&r.numRGB===o.numRGB&&(r.numNumbers,o.numNumbers),Kt(Cn(r.parsed,o.parsed),n)},In=function(e,t){return function(n){return sn(e,t,n)}};function Ln(e,t,n){var r=void 0===n?{}:n,o=r.clamp,a=void 0===o||o,i=r.ease,c=r.mixer,s=e.length;t.length,!i||!Array.isArray(i)||i.length,e[0]>e[s-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());var l=function(e,t,n){for(var r,o=[],a=n||("number"==typeof(r=e[0])?In:"string"==typeof r?jn.test(r)?yn:Bn:Array.isArray(r)?Cn:"object"==typeof r?An:void 0),i=e.length-1,c=0;c<i;c++){var s=a(e[c],e[c+1]);if(t){var l=Array.isArray(t)?t[c]:t;s=Kt(l,s)}o.push(s)}return o}(t,i,c),u=2===s?function(e,t){var n=e[0],r=e[1],o=t[0];return function(e){return o(cn(n,r,e))}}(e,l):function(e,t){var n=e.length,r=n-1;return function(o){var a=0,i=!1;if(o<=e[0]?i=!0:o>=e[r]&&(a=r-1,i=!0),!i){for(var c=1;c<n&&!(e[c]>o||c===r);c++);a=c-1}var s=cn(e[a],e[a+1],o);return t[a](s)}}(e,l);return a?function(t){return u(Jt(e[0],e[s-1],t))}:u}var Nn,Dn=function(e){return function(t){return 1-e(1-t)}},Rn=function(e){return function(t){return t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2}},Vn=function(e){return function(t){return t*t*((e+1)*t-e)}},Fn=function(e){return e},Un=(2,function(e){return Math.pow(e,2)}),Gn=Dn(Un),Hn=Rn(Un),zn=function(e){return 1-Math.sin(Math.acos(e))},Wn=Dn(zn),Yn=Rn(Wn),Xn=Vn(1.525),qn=Dn(Xn),Kn=Rn(Xn),$n=(Nn=Vn(1.525),function(e){return(e*=2)<1?.5*Nn(e):.5*(2-Math.pow(2,-10*(e-1)))}),Zn=function(e){if(1===e||0===e)return e;var t=e*e;return e<4/11?7.5625*t:e<8/11?9.075*t-9.9*e+3.4:e<.9?4356/361*t-35442/1805*e+16061/1805:10.8*e*e-20.52*e+10.72},Qn=Dn(Zn);function Jn(e,t){return e.map((function(){return t||Hn})).splice(0,e.length-1)}function er(e){var t=e.from,n=void 0===t?0:t,r=e.to,o=void 0===r?1:r,a=e.ease,i=e.offset,c=e.duration,s=void 0===c?300:c,l={done:!1,value:n},u=Array.isArray(o)?o:[n,o],d=function(e,t){return e.map((function(e){return e*t}))}(i&&i.length===u.length?i:function(e){var t=e.length;return e.map((function(e,n){return 0!==n?n/(t-1):0}))}(u),s);function p(){return Ln(d,u,{ease:Array.isArray(a)?a:Jn(u,a)})}var m=p();return{next:function(e){return l.value=m(e),l.done=e>=s,l},flipTarget:function(){u.reverse(),m=p()}}}var tr={keyframes:er,spring:on,decay:function(e){var t=e.velocity,n=void 0===t?0:t,r=e.from,o=void 0===r?0:r,a=e.power,i=void 0===a?.8:a,c=e.timeConstant,s=void 0===c?350:c,l=e.restDelta,u=void 0===l?.5:l,d=e.modifyTarget,p={done:!1,value:o},m=i*n,b=o+m,f=void 0===d?b:d(b);return f!==b&&(m=f-o),{next:function(e){var t=-m*Math.exp(-e/s);return p.done=!(t>u||t<-u),p.value=p.done?f:f+t,p},flipTarget:function(){}}}},nr="undefined"!=typeof performance?function(){return performance.now()}:function(){return Date.now()},rr="undefined"!=typeof window?function(e){return window.requestAnimationFrame(e)}:function(e){return setTimeout((function(){return e(nr())}),1/60*1e3)},or=!0,ar=!1,ir=!1,cr={delta:0,timestamp:0},sr=["read","update","preRender","render","postRender"],lr=sr.reduce((function(e,t){return e[t]=function(e){var t=[],n=[],r=0,o=!1,a=new WeakSet,i={schedule:function(e,i,c){void 0===i&&(i=!1),void 0===c&&(c=!1);var s=c&&o,l=s?t:n;return i&&a.add(e),-1===l.indexOf(e)&&(l.push(e),s&&o&&(r=t.length)),e},cancel:function(e){var t=n.indexOf(e);-1!==t&&n.splice(t,1),a.delete(e)},process:function(c){var s;if(o=!0,t=(s=[n,t])[0],(n=s[1]).length=0,r=t.length)for(var l=0;l<r;l++){var u=t[l];u(c),a.has(u)&&(i.schedule(u),e())}o=!1}};return i}((function(){return ar=!0})),e}),{}),ur=sr.reduce((function(e,t){var n=lr[t];return e[t]=function(e,t,r){return void 0===t&&(t=!1),void 0===r&&(r=!1),ar||fr(),n.schedule(e,t,r)},e}),{}),dr=sr.reduce((function(e,t){return e[t]=lr[t].cancel,e}),{}),pr=sr.reduce((function(e,t){return e[t]=function(){return lr[t].process(cr)},e}),{}),mr=function(e){return lr[e].process(cr)},br=function(e){ar=!1,cr.delta=or?1/60*1e3:Math.max(Math.min(e-cr.timestamp,40),1),cr.timestamp=e,ir=!0,sr.forEach(mr),ir=!1,ar&&(or=!1,rr(br))},fr=function(){ar=!0,or=!0,ir||rr(br)},vr=function(){return cr},hr=ur;function gr(e,t,n){return void 0===n&&(n=0),e-t-n}var Or=function(e){var t=function(t){var n=t.delta;return e(n)};return{start:function(){return hr.update(t,!0)},stop:function(){return dr.update(t)}}};function yr(e){var t,n,r,o,a,i=e.from,c=e.autoplay,s=void 0===c||c,l=e.driver,u=void 0===l?Or:l,d=e.elapsed,p=void 0===d?0:d,m=e.repeat,b=void 0===m?0:m,f=e.repeatType,v=void 0===f?"loop":f,h=e.repeatDelay,g=void 0===h?0:h,O=e.onPlay,y=e.onStop,j=e.onComplete,E=e.onRepeat,_=e.onUpdate,w=F(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]),S=w.to,x=0,P=w.duration,k=!1,T=!0,C=function(e){if(Array.isArray(e.to))return er;if(tr[e.type])return tr[e.type];var t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?er:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?on:er}(w);(null===(n=(t=C).needsInterpolation)||void 0===n?void 0:n.call(t,i,S))&&(a=Ln([0,100],[i,S],{clamp:!1}),i=0,S=100);var A=C(V(V({},w),{from:i,to:S}));return s&&(null==O||O(),(r=u((function(e){if(T||(e=-e),p+=e,!k){var t=A.next(Math.max(0,p));o=t.value,a&&(o=a(o)),k=T?t.done:p<=0}null==_||_(o),k&&(0===x&&(null!=P||(P=p)),x<b?function(e,t,n,r){return r?e>=t+n:e<=-n}(p,P,g,T)&&(x++,"reverse"===v?p=function(e,t,n,r){return void 0===n&&(n=0),void 0===r&&(r=!0),r?gr(t+-e,t,n):t-(e-t)+n}(p,P,g,T=x%2==0):(p=gr(p,P,g),"mirror"===v&&A.flipTarget()),k=!1,E&&E()):(r.stop(),j&&j()))}))).start()),{stop:function(){null==y||y(),r.stop()}}}function jr(e,t){return t?e*(1e3/t):0}var Er=function(e){return 1e3*e},_r=function(e,t){return 1-3*t+3*e},wr=function(e,t){return 3*t-6*e},Sr=function(e){return 3*e},xr=function(e,t,n){return((_r(t,n)*e+wr(t,n))*e+Sr(t))*e},Pr=function(e,t,n){return 3*_r(t,n)*e*e+2*wr(t,n)*e+Sr(t)};function kr(e,t,n,r){if(e===t&&n===r)return Fn;for(var o=new Float32Array(11),a=0;a<11;++a)o[a]=xr(.1*a,e,n);return function(a){return 0===a||1===a?a:xr(function(t){for(var r=0,a=1;10!==a&&o[a]<=t;++a)r+=.1;--a;var i=r+(t-o[a])/(o[a+1]-o[a])*.1,c=Pr(i,e,n);return c>=.001?function(e,t,n,r){for(var o=0;o<8;++o){var a=Pr(t,n,r);if(0===a)return t;t-=(xr(t,n,r)-e)/a}return t}(t,i,e,n):0===c?i:function(e,t,n,r,o){var a,i,c=0;do{(a=xr(i=t+(n-t)/2,r,o)-e)>0?n=i:t=i}while(Math.abs(a)>1e-7&&++c<10);return i}(t,r,r+.1,e,n)}(a),t,r)}}var Tr={linear:Fn,easeIn:Un,easeInOut:Hn,easeOut:Gn,circIn:zn,circInOut:Yn,circOut:Wn,backIn:Xn,backInOut:Kn,backOut:qn,anticipate:$n,bounceIn:Qn,bounceInOut:function(e){return e<.5?.5*(1-Zn(1-2*e)):.5*Zn(2*e-1)+.5},bounceOut:Zn},Cr=function(e){if(Array.isArray(e)){e.length;var t=U(e,4);return kr(t[0],t[1],t[2],t[3])}return"string"==typeof e?Tr[e]:e},Ar=function(e,t){return!("zIndex"===e||"number"!=typeof t&&!Array.isArray(t)&&("string"!=typeof t||!Pn.test(t)||t.startsWith("url(")))},Mr=function(){return{type:"spring",stiffness:500,damping:25,restDelta:.5,restSpeed:10}},Br=function(e){return{type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restDelta:.01,restSpeed:10}},Ir=function(){return{type:"keyframes",ease:"linear",duration:.3}},Lr=function(e){return{type:"keyframes",duration:.8,values:e}},Nr={x:Mr,y:Mr,z:Mr,rotate:Mr,rotateX:Mr,rotateY:Mr,rotateZ:Mr,scaleX:Br,scaleY:Br,scale:Br,opacity:Ir,backgroundColor:Ir,color:Ir,default:Br},Dr=new Set(["brightness","contrast","saturate","opacity"]);function Rr(e){var t=e.slice(0,-1).split("("),n=t[0],r=t[1];if("drop-shadow"===n)return e;var o=(r.match(Ie)||[])[0];if(!o)return e;var a=r.replace(o,""),i=Dr.has(n)?1:0;return o!==r&&(i*=100),n+"("+i+a+")"}var Vr=/([a-z-]*)\(.*?\)/g,Fr=V(V({},Pn),{getAnimatableNone:function(e){var t=e.match(Vr);return t?t.map(Rr).join(" "):e}}),Ur=V(V({},Ke),{color:jn,backgroundColor:jn,outlineColor:jn,fill:jn,stroke:jn,borderColor:jn,borderTopColor:jn,borderRightColor:jn,borderBottomColor:jn,borderLeftColor:jn,filter:Fr,WebkitFilter:Fr}),Gr=function(e){return Ur[e]};function Hr(e,t){var n,r=Gr(e);return r!==Fr&&(r=Pn),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}function zr(e,t,n){var r,o,a,i;return Array.isArray(t.to)&&(null!==(r=e.duration)&&void 0!==r||(e.duration=.8)),function(e){Array.isArray(e.to)&&null===e.to[0]&&(e.to=G([],U(e.to)),e.to[0]=e.from)}(t),function(e){e.when,e.delay,e.delayChildren,e.staggerChildren,e.staggerDirection,e.repeat,e.repeatType,e.repeatDelay,e.from;var t=F(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}(e)||(e=V(V({},e),(o=n,a=t.to,i=Ot(a)?Lr:Nr[o]||Nr.default,V({to:a},i(a))))),V(V({},t),function(e){var t=e.ease,n=e.times,r=e.yoyo,o=e.flip,a=e.loop,i=F(e,["ease","times","yoyo","flip","loop"]),c=V({},i);return n&&(c.offset=n),i.duration&&(c.duration=Er(i.duration)),i.repeatDelay&&(c.repeatDelay=Er(i.repeatDelay)),t&&(c.ease=function(e){return Array.isArray(e)&&"number"!=typeof e[0]}(t)?t.map(Cr):Cr(t)),"tween"===i.type&&(c.type="keyframes"),(r||a||o)&&(r?c.repeatType="reverse":a?c.repeatType="loop":o&&(c.repeatType="mirror"),c.repeat=a||r||o||i.repeat),"spring"!==i.type&&(c.type="keyframes"),c}(e))}function Wr(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function Yr(e){return"number"==typeof e?0:Hr("",e)}function Xr(e,t){return e[t]||e.default||e}function qr(e,t,n,r){return void 0===r&&(r={}),t.start((function(o){var a,i,c=function(e,t,n,r,o){var a,i=Xr(r,e),c=null!==(a=i.from)&&void 0!==a?a:t.get(),s=Ar(e,n);return"none"===c&&s&&"string"==typeof n?c=Hr(e,n):Wr(c)&&"string"==typeof n?c=Yr(n):!Array.isArray(n)&&Wr(n)&&"string"==typeof c&&(n=Yr(c)),Ar(e,c)&&s&&!1!==i.type?function(){var r={from:c,to:n,velocity:t.getVelocity(),onComplete:o,onUpdate:function(e){return t.set(e)}};return"inertia"===i.type||"decay"===i.type?function(e){var t,n=e.from,r=void 0===n?0:n,o=e.velocity,a=void 0===o?0:o,i=e.min,c=e.max,s=e.power,l=void 0===s?.8:s,u=e.timeConstant,d=void 0===u?750:u,p=e.bounceStiffness,m=void 0===p?500:p,b=e.bounceDamping,f=void 0===b?10:b,v=e.restDelta,h=void 0===v?1:v,g=e.modifyTarget,O=e.driver,y=e.onUpdate,j=e.onComplete;function E(e){return void 0!==i&&e<i||void 0!==c&&e>c}function _(e){return void 0===i?c:void 0===c||Math.abs(i-e)<Math.abs(c-e)?i:c}function w(e){null==t||t.stop(),t=yr(V(V({},e),{driver:O,onUpdate:function(t){var n;null==y||y(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:j}))}function S(e){w(V({type:"spring",stiffness:m,damping:f,restDelta:h},e))}if(E(r))S({from:r,velocity:a,to:_(r)});else{var x=l*a+r;void 0!==g&&(x=g(x));var P,k,T=_(x),C=T===i?-1:1;w({type:"decay",from:r,velocity:a,timeConstant:d,power:l,restDelta:h,modifyTarget:g,onUpdate:E(x)?function(e){P=k,k=e,a=jr(e-P,vr().delta),(1===C&&e>T||-1===C&&e<T)&&S({from:e,to:T,velocity:a})}:void 0})}return{stop:function(){return null==t?void 0:t.stop()}}}(V(V({},r),i)):yr(V(V({},zr(i,r,e)),{onUpdate:function(e){var t;r.onUpdate(e),null===(t=i.onUpdate)||void 0===t||t.call(i,e)},onComplete:function(){var e;r.onComplete(),null===(e=i.onComplete)||void 0===e||e.call(i)}}))}:function(){var e;return t.set(n),o(),null===(e=null==i?void 0:i.onComplete)||void 0===e||e.call(i),{stop:function(){}}}}(e,t,n,r,o),s=function(e,t){var n;return null!==(n=(Xr(e,t)||{}).delay)&&void 0!==n?n:0}(r,e),l=function(){return i=c()};return s?a=setTimeout(l,Er(s)):l(),function(){clearTimeout(a),null==i||i.stop()}}))}function Kr(e,t){-1===e.indexOf(t)&&e.push(t)}function $r(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Zr=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(e){var t=this;return Kr(this.subscriptions,e),function(){return $r(t.subscriptions,e)}},e.prototype.notify=function(e,t,n){var r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(var o=0;o<r;o++){var a=this.subscriptions[o];a&&a(e,t,n)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}(),Qr=function(){function e(e){var t,n=this;this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new Zr,this.velocityUpdateSubscribers=new Zr,this.renderSubscribers=new Zr,this.canTrackVelocity=!1,this.updateAndNotify=function(e,t){void 0===t&&(t=!0),n.prev=n.current,n.current=e;var r=vr(),o=r.delta,a=r.timestamp;n.lastUpdated!==a&&(n.timeDelta=o,n.lastUpdated=a,hr.postRender(n.scheduleVelocityCheck)),n.prev!==n.current&&n.updateSubscribers.notify(n.current),n.velocityUpdateSubscribers.getSize()&&n.velocityUpdateSubscribers.notify(n.getVelocity()),t&&n.renderSubscribers.notify(n.current)},this.scheduleVelocityCheck=function(){return hr.postRender(n.velocityCheck)},this.velocityCheck=function(e){e.timestamp!==n.lastUpdated&&(n.prev=n.current,n.velocityUpdateSubscribers.notify(n.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=(t=this.current,!isNaN(parseFloat(t)))}return e.prototype.onChange=function(e){return this.updateSubscribers.add(e)},e.prototype.clearListeners=function(){this.updateSubscribers.clear()},e.prototype.onRenderRequest=function(e){return e(this.get()),this.renderSubscribers.add(e)},e.prototype.attach=function(e){this.passiveEffect=e},e.prototype.set=function(e,t){void 0===t&&(t=!0),t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)},e.prototype.get=function(){return this.current},e.prototype.getPrevious=function(){return this.prev},e.prototype.getVelocity=function(){return this.canTrackVelocity?jr(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},e.prototype.start=function(e){var t=this;return this.stop(),new Promise((function(n){t.hasAnimated=!0,t.stopAnimation=e(n)})).then((function(){return t.clearAnimation()}))},e.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},e.prototype.isAnimating=function(){return!!this.stopAnimation},e.prototype.clearAnimation=function(){this.stopAnimation=null},e.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},e}();function Jr(e){return new Qr(e)}var eo=function(e){return function(t){return t.test(e)}},to=[We,Ue,Fe,Ve,He,Ge,{test:function(e){return"auto"===e},parse:function(e){return e}}],no=function(e){return to.find(eo(e))},ro=G(G([],U(to)),[jn,Pn]);function oo(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Jr(n))}function ao(e,t){if(t)return(t[e]||t.default||t).from}function io(e,t,n){var r;void 0===n&&(n={});var o=de(e,t,n.custom),a=(o||{}).transition,i=void 0===a?e.getDefaultTransition()||{}:a;n.transitionOverride&&(i=n.transitionOverride);var c=o?function(){return co(e,o,n)}:function(){return Promise.resolve()},s=(null===(r=e.variantChildren)||void 0===r?void 0:r.size)?function(r){void 0===r&&(r=0);var o=i.delayChildren,a=void 0===o?0:o,c=i.staggerChildren,s=i.staggerDirection;return function(e,t,n,r,o,a){void 0===n&&(n=0),void 0===r&&(r=0),void 0===o&&(o=1);var i=[],c=(e.variantChildren.size-1)*r,s=1===o?function(e){return void 0===e&&(e=0),e*r}:function(e){return void 0===e&&(e=0),c-e*r};return Array.from(e.variantChildren).sort(so).forEach((function(e,r){i.push(io(e,t,V(V({},a),{delay:n+s(r)})).then((function(){return e.notifyAnimationComplete(t)})))})),Promise.all(i)}(e,t,a+r,c,s,n)}:function(){return Promise.resolve()},l=i.when;if(l){var u=U("beforeChildren"===l?[c,s]:[s,c],2),d=u[0],p=u[1];return d().then(p)}return Promise.all([c(),s(n.delay)])}function co(e,t,n){var r,o=void 0===n?{}:n,a=o.delay,i=void 0===a?0:a,c=o.transitionOverride,s=o.type,l=e.makeTargetAnimatable(t),u=l.transition,d=void 0===u?e.getDefaultTransition():u,p=l.transitionEnd,m=F(l,["transition","transitionEnd"]);c&&(d=c);var b=[],f=s&&(null===(r=e.animationState)||void 0===r?void 0:r.getState()[s]);for(var v in m){var h=e.getValue(v),g=m[v];if(!(!h||void 0===g||f&&lo(f,v))){var O=qr(v,h,g,V({delay:i},d));b.push(O)}}return Promise.all(b).then((function(){p&&function(e,t){var n=de(e,t),r=n?e.makeTargetAnimatable(n,!1):{},o=r.transitionEnd,a=void 0===o?{}:o;r.transition;var i,c=F(r,["transitionEnd","transition"]);for(var s in c=V(V({},c),a))oo(e,s,(i=c[s],Ot(i)?i[i.length-1]||0:i))}(e,p)}))}function so(e,t){return e.sortNodePosition(t)}function lo(e,t){var n=e.protectedKeys,r=e.needsAnimating,o=n.hasOwnProperty(t)&&!0!==r[t];return r[t]=!1,o}var uo=[_t.Animate,_t.Hover,_t.Tap,_t.Drag,_t.Focus,_t.Exit],po=G([],U(uo)).reverse(),mo=uo.length;function bo(e){var t,n=function(e){return function(t){return Promise.all(t.map((function(t){var n=t.animation,r=t.options;return function(e,t,n){var r;if(void 0===n&&(n={}),e.notifyAnimationStart(),Array.isArray(t)){var o=t.map((function(t){return io(e,t,n)}));r=Promise.all(o)}else if("string"==typeof t)r=io(e,t,n);else{var a="function"==typeof t?de(e,t,n.custom):t;r=co(e,a,n)}return r.then((function(){return e.notifyAnimationComplete(t)}))}(e,n,r)})))}}(e),r=((t={})[_t.Animate]=fo(!0),t[_t.Hover]=fo(),t[_t.Tap]=fo(),t[_t.Drag]=fo(),t[_t.Focus]=fo(),t[_t.Exit]=fo(),t),o={},a=!0,i=function(t,n){var r=de(e,n);if(r){r.transition;var o=r.transitionEnd,a=F(r,["transition","transitionEnd"]);t=V(V(V({},t),a),o)}return t};function c(t,c){for(var s,l=e.getProps(),u=e.getVariantContext(!0)||{},d=[],p=new Set,m={},b=1/0,f=function(n){var o=po[n],f=r[o],v=null!==(s=l[o])&&void 0!==s?s:u[o],h=le(v),g=o===c?f.isActive:null;!1===g&&(b=n);var O=v===u[o]&&v!==l[o]&&h;if(O&&a&&e.manuallyAnimateOnMount&&(O=!1),f.protectedKeys=V({},m),!f.isActive&&null===g||!v&&!f.prevProp||gt(v)||"boolean"==typeof v)return"continue";var y=function(e,t){return"string"==typeof t?t!==e:!!se(t)&&!Qt(t,e)}(f.prevProp,v)||o===c&&f.isActive&&!O&&h||n>b&&h,j=Array.isArray(v)?v:[v],E=j.reduce(i,{});!1===g&&(E={});var _=f.prevResolvedValues,w=void 0===_?{}:_,S=V(V({},w),E),x=function(e){y=!0,p.delete(e),f.needsAnimating[e]=!0};for(var P in S){var k=E[P],T=w[P];m.hasOwnProperty(P)||(k!==T?Ot(k)&&Ot(T)?Qt(k,T)?f.protectedKeys[P]=!0:x(P):void 0!==k?x(P):p.add(P):void 0!==k&&p.has(P)?x(P):f.protectedKeys[P]=!0)}f.prevProp=v,f.prevResolvedValues=E,f.isActive&&(m=V(V({},m),E)),a&&e.blockInitialAnimation&&(y=!1),y&&!O&&d.push.apply(d,G([],U(j.map((function(e){return{animation:e,options:V({type:o},t)}})))))},v=0;v<mo;v++)f(v);if(o=V({},m),p.size){var h={};p.forEach((function(t){var n=e.getBaseTarget(t);void 0!==n&&(h[t]=n)})),d.push({animation:h})}var g=Boolean(d.length);return a&&!1===l.initial&&!e.manuallyAnimateOnMount&&(g=!1),a=!1,g?n(d):Promise.resolve()}return{isAnimated:function(e){return void 0!==o[e]},animateChanges:c,setActive:function(t,n,o){var a;return r[t].isActive===n?Promise.resolve():(null===(a=e.variantChildren)||void 0===a||a.forEach((function(e){var r;return null===(r=e.animationState)||void 0===r?void 0:r.setActive(t,n)})),r[t].isActive=n,c(o,t))},setAnimateFunction:function(t){n=t(e)},getState:function(){return r}}}function fo(e){return void 0===e&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var vo={animation:$t((function(e){var t=e.visualElement,n=e.animate;t.animationState||(t.animationState=bo(t)),gt(n)&&Object(H.useEffect)((function(){return n.subscribe(t)}),[n])})),exit:$t((function(e){var t=e.custom,n=e.visualElement,r=U(ee(),2),o=r[0],a=r[1],i=Object(H.useContext)(Q);Object(H.useEffect)((function(){var e,r,c=null===(e=n.animationState)||void 0===e?void 0:e.setActive(_t.Exit,!o,{custom:null!==(r=null==i?void 0:i.custom)&&void 0!==r?r:t});!o&&(null==c||c.then(a))}),[o])}))},ho=function(e){return e.hasOwnProperty("x")&&e.hasOwnProperty("y")},go=function(e){return ho(e)&&e.hasOwnProperty("z")},Oo=function(e,t){return Math.abs(e-t)};function yo(e,t){if(kn(e)&&kn(t))return Oo(e,t);if(ho(e)&&ho(t)){var n=Oo(e.x,t.x),r=Oo(e.y,t.y),o=go(e)&&go(t)?Oo(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(o,2))}}var jo=function(){function e(e,t,n){var r=this,o=(void 0===n?{}:n).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(r.lastMoveEvent&&r.lastMoveEventInfo){var e=wo(r.lastMoveEventInfo,r.history),t=null!==r.startEvent,n=yo(e.offset,{x:0,y:0})>=3;if(t||n){var o=e.point,a=vr().timestamp;r.history.push(V(V({},o),{timestamp:a}));var i=r.handlers,c=i.onStart,s=i.onMove;t||(c&&c(r.lastMoveEvent,e),r.startEvent=r.lastMoveEvent),s&&s(r.lastMoveEvent,e)}}},this.handlePointerMove=function(e,t){r.lastMoveEvent=e,r.lastMoveEventInfo=Eo(t,r.transformPagePoint),kt(e)&&0===e.buttons?r.handlePointerUp(e,t):hr.update(r.updatePoint,!0)},this.handlePointerUp=function(e,t){r.end();var n=r.handlers,o=n.onEnd,a=n.onSessionEnd,i=wo(Eo(t,r.transformPagePoint),r.history);r.startEvent&&o&&o(e,i),a&&a(e,i)},!(Tt(e)&&e.touches.length>1)){this.handlers=t,this.transformPagePoint=o;var a=Eo(Bt(e),this.transformPagePoint),i=a.point,c=vr().timestamp;this.history=[V(V({},i),{timestamp:c})];var s=t.onSessionStart;s&&s(e,wo(a,this.history)),this.removeListeners=Kt(Rt(window,"pointermove",this.handlePointerMove),Rt(window,"pointerup",this.handlePointerUp),Rt(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),dr.update(this.updatePoint)},e}();function Eo(e,t){return t?{point:t(e.point)}:e}function _o(e,t){return{x:e.x-t.x,y:e.y-t.y}}function wo(e,t){var n=e.point;return{point:n,delta:_o(n,xo(t)),offset:_o(n,So(t)),velocity:Po(t,.1)}}function So(e){return e[0]}function xo(e){return e[e.length-1]}function Po(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,o=xo(e);n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Er(t)));)n--;if(!r)return{x:0,y:0};var a=(o.timestamp-r.timestamp)/1e3;if(0===a)return{x:0,y:0};var i={x:(o.x-r.x)/a,y:(o.y-r.y)/a};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}function ko(e){return e}function To(e){var t=e.top;return{x:{min:e.left,max:e.right},y:{min:t,max:e.bottom}}}var Co={translate:0,scale:1,origin:0,originPoint:0};function Ao(){return{x:V({},Co),y:V({},Co)}}function Mo(e){return[e("x"),e("y")]}function Bo(e,t,n){var r=t.min,o=t.max;return void 0!==r&&e<r?e=n?sn(r,e,n.min):Math.max(e,r):void 0!==o&&e>o&&(e=n?sn(o,e,n.max):Math.min(e,o)),e}function Io(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function Lo(e,t){var n,r=t.min-e.min,o=t.max-e.max;return t.max-t.min<e.max-e.min&&(r=(n=U([o,r],2))[0],o=n[1]),{min:e.min+r,max:e.min+o}}function No(e,t,n){return{min:Do(e,t),max:Do(e,n)}}function Do(e,t){var n;return"number"==typeof e?e:null!==(n=e[t])&&void 0!==n?n:0}function Ro(e,t){return To(function(e,t){var n=e.top,r=e.left,o=e.bottom,a=e.right;void 0===t&&(t=ko);var i=t({x:r,y:n}),c=t({x:a,y:o});return{top:i.y,left:i.x,bottom:c.y,right:c.x}}(e.getBoundingClientRect(),t))}function Vo(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=.01),yo(e,t)<n}function Fo(e){return e.max-e.min}function Uo(e,t,n,r){void 0===r&&(r=.5),e.origin=r,e.originPoint=sn(t.min,t.max,e.origin),e.scale=Fo(n)/Fo(t),Vo(e.scale,1,1e-4)&&(e.scale=1),e.translate=sn(n.min,n.max,e.origin)-e.originPoint,Vo(e.translate)&&(e.translate=0)}function Go(e,t,n,r){Uo(e.x,t.x,n.x,Ho(r.originX)),Uo(e.y,t.y,n.y,Ho(r.originY))}function Ho(e){return"number"==typeof e?e:.5}function zo(e,t,n){e.min=n.min+t.min,e.max=e.min+Fo(t)}var Wo=function(e,t){return e.depth-t.depth};function Yo(e){return e.projection.isEnabled||e.shouldResetTransform()}function Xo(e,t){void 0===t&&(t=[]);var n=e.parent;return n&&Xo(n,t),Yo(e)&&t.push(e),t}function qo(e){if(!e.shouldResetTransform()){var t,n=e.getLayoutState();e.notifyBeforeLayoutMeasure(n.layout),n.isHydrated=!0,n.layout=e.measureViewportBox(),n.layoutCorrected=(t=n.layout,{x:V({},t.x),y:V({},t.y)}),e.notifyLayoutMeasure(n.layout,e.prevViewportBox||n.layout),hr.update((function(){return e.rebaseProjectionTarget()}))}}function Ko(e,t){return{min:t.min-e.min,max:t.max-e.min}}function $o(e,t){return{x:Ko(e.x,t.x),y:Ko(e.y,t.y)}}function Zo(e,t){var n=e.getLayoutId(),r=t.getLayoutId();return n!==r||void 0===r&&e!==t}function Qo(e){var t=e.getProps(),n=t.drag,r=t._dragX;return n&&!r}function Jo(e,t){e.min=t.min,e.max=t.max}function ea(e,t,n){return n+t*(e-n)}function ta(e,t,n,r,o){return void 0!==o&&(e=ea(e,o,r)),ea(e,n,r)+t}function na(e,t,n,r,o){void 0===t&&(t=0),void 0===n&&(n=1),e.min=ta(e.min,t,n,r,o),e.max=ta(e.max,t,n,r,o)}function ra(e,t){var n=t.x,r=t.y;na(e.x,n.translate,n.scale,n.originPoint),na(e.y,r.translate,r.scale,r.originPoint)}function oa(e,t,n,r){var o=U(r,3),a=o[0],i=o[1],c=o[2];e.min=t.min,e.max=t.max;var s=void 0!==n[c]?n[c]:.5,l=sn(t.min,t.max,s);na(e,n[a],n[i],l,n.scale)}var aa=["x","scaleX","originX"],ia=["y","scaleY","originY"];function ca(e,t,n){oa(e.x,t.x,n,aa),oa(e.y,t.y,n,ia)}function sa(e,t,n,r,o){return e=ea(e-=t,1/n,r),void 0!==o&&(e=ea(e,1/o,r)),e}function la(e,t,n){var r=U(n,3),o=r[0],a=r[1],i=r[2];!function(e,t,n,r,o){void 0===t&&(t=0),void 0===n&&(n=1),void 0===r&&(r=.5);var a=sn(e.min,e.max,r)-t;e.min=sa(e.min,t,n,a,o),e.max=sa(e.max,t,n,a,o)}(e,t[o],t[a],t[i],t.scale)}function ua(e,t){la(e.x,t,aa),la(e.y,t,ia)}var da=new Set;function pa(e,t,n){e[n]||(e[n]=[]),e[n].push(t)}function ma(e){return da.add(e),function(){return da.delete(e)}}function ba(){if(da.size){var e=0,t=[[]],n=[],r=function(n){return pa(t,n,e)},o=function(t){pa(n,t,e),e++};da.forEach((function(t){t(r,o),e=0})),da.clear();for(var a=n.length,i=0;i<=a;i++)t[i]&&t[i].forEach(va),n[i]&&n[i].forEach(va)}}var fa,va=function(e){return e()},ha=new WeakMap,ga=function(){function e(e){var t=e.visualElement;this.isDragging=!1,this.currentDirection=null,this.constraints=!1,this.elastic={x:{min:0,max:1},y:{min:0,max:1}},this.props={},this.hasMutatedConstraints=!1,this.cursorProgress={x:.5,y:.5},this.originPoint={},this.openGlobalLock=null,this.panSession=null,this.visualElement=t,this.visualElement.enableLayoutProjection(),ha.set(t,this)}return e.prototype.start=function(e,t){var n=this,r=void 0===t?{}:t,o=r.snapToCursor,a=void 0!==o&&o,i=r.cursorProgress,c=this.props.transformPagePoint;this.panSession=new jo(e,{onSessionStart:function(e){var t;n.stopMotion();var r=function(e){return Bt(e,"client")}(e).point;null===(t=n.cancelLayout)||void 0===t||t.call(n),n.cancelLayout=ma((function(e,t){var o=Xo(n.visualElement),c=function(e){var t=[],n=function(e){Yo(e)&&t.push(e),e.children.forEach(n)};return e.children.forEach(n),t.sort(Wo)}(n.visualElement),s=G(G([],U(o)),U(c)),l=!1;n.isLayoutDrag()&&n.visualElement.lockProjectionTarget(),t((function(){s.forEach((function(e){return e.resetTransform()}))})),e((function(){qo(n.visualElement),c.forEach(qo)})),t((function(){s.forEach((function(e){return e.restoreTransform()})),a&&(l=n.snapToCursor(r))})),e((function(){Boolean(n.getAxisMotionValue("x")&&!n.isExternalDrag())||n.visualElement.rebaseProjectionTarget(!0,n.visualElement.measureViewportBox(!1)),n.visualElement.scheduleUpdateLayoutProjection();var e=n.visualElement.projection;Mo((function(t){if(!l){var o=e.target[t],a=o.min,c=o.max;n.cursorProgress[t]=i?i[t]:cn(a,c,r[t])}var s=n.getAxisMotionValue(t);s&&(n.originPoint[t]=s.get())}))})),t((function(){pr.update(),pr.preRender(),pr.render(),pr.postRender()})),e((function(){return n.resolveDragConstraints()}))}))},onStart:function(e,t){var r,o,a,i=n.props,c=i.drag,s=i.dragPropagation;(!c||s||(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=Ht(c),n.openGlobalLock))&&(ba(),n.isDragging=!0,n.currentDirection=null,null===(o=(r=n.props).onDragStart)||void 0===o||o.call(r,e,t),null===(a=n.visualElement.animationState)||void 0===a||a.setActive(_t.Drag,!0))},onMove:function(e,t){var r,o,a,i,c=n.props,s=c.dragPropagation,l=c.dragDirectionLock;if(s||n.openGlobalLock){var u=t.offset;if(l&&null===n.currentDirection)return n.currentDirection=function(e,t){void 0===t&&(t=10);var n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(u),void(null!==n.currentDirection&&(null===(o=(r=n.props).onDirectionLock)||void 0===o||o.call(r,n.currentDirection)));n.updateAxis("x",t.point,u),n.updateAxis("y",t.point,u),null===(i=(a=n.props).onDrag)||void 0===i||i.call(a,e,t),fa=e}},onSessionEnd:function(e,t){return n.stop(e,t)}},{transformPagePoint:c})},e.prototype.resolveDragConstraints=function(){var e=this,t=this.props,n=t.dragConstraints,r=t.dragElastic,o=this.visualElement.getLayoutState().layoutCorrected;this.constraints=!!n&&(ce(n)?this.resolveRefConstraints(o,n):function(e,t){var n=t.top,r=t.left,o=t.bottom,a=t.right;return{x:Io(e.x,r,a),y:Io(e.y,n,o)}}(o,n)),this.elastic=function(e){return!1===e?e=0:!0===e&&(e=.35),{x:No(e,"left","right"),y:No(e,"top","bottom")}}(r),this.constraints&&!this.hasMutatedConstraints&&Mo((function(t){e.getAxisMotionValue(t)&&(e.constraints[t]=function(e,t){var n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(o[t],e.constraints[t]))}))},e.prototype.resolveRefConstraints=function(e,t){var n=this.props,r=n.onMeasureDragConstraints,o=n.transformPagePoint,a=t.current;this.constraintsBox=Ro(a,o);var i=function(e,t){return{x:Lo(e.x,t.x),y:Lo(e.y,t.y)}}(e,this.constraintsBox);if(r){var c=r(function(e){var t=e.x,n=e.y;return{top:n.min,bottom:n.max,left:t.min,right:t.max}}(i));this.hasMutatedConstraints=!!c,c&&(i=To(c))}return i},e.prototype.cancelDrag=function(){var e,t;this.visualElement.unlockProjectionTarget(),null===(e=this.cancelLayout)||void 0===e||e.call(this),this.isDragging=!1,this.panSession&&this.panSession.end(),this.panSession=null,!this.props.dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(_t.Drag,!1)},e.prototype.stop=function(e,t){var n,r,o;null===(n=this.panSession)||void 0===n||n.end(),this.panSession=null;var a=this.isDragging;if(this.cancelDrag(),a){var i=t.velocity;this.animateDragEnd(i),null===(o=(r=this.props).onDragEnd)||void 0===o||o.call(r,e,t)}},e.prototype.snapToCursor=function(e){var t=this;return Mo((function(n){if(Oa(n,t.props.drag,t.currentDirection)){var r=t.getAxisMotionValue(n);if(!r)return t.cursorProgress[n]=.5,!0;var o=t.visualElement.getLayoutState().layout,a=o[n].max-o[n].min,i=o[n].min+a/2,c=e[n]-i;t.originPoint[n]=e[n],r.set(c)}})).includes(!0)},e.prototype.updateAxis=function(e,t,n){if(Oa(e,this.props.drag,this.currentDirection))return this.getAxisMotionValue(e)?this.updateAxisMotionValue(e,n):this.updateVisualElementAxis(e,t)},e.prototype.updateAxisMotionValue=function(e,t){var n=this.getAxisMotionValue(e);if(t&&n){var r=this.originPoint[e]+t[e],o=this.constraints?Bo(r,this.constraints[e],this.elastic[e]):r;n.set(o)}},e.prototype.updateVisualElementAxis=function(e,t){var n,r=this.visualElement.getLayoutState().layout[e],o=r.max-r.min,a=this.cursorProgress[e],i=function(e,t,n,r,o){var a=e-t*n;return r?Bo(a,r,o):a}(t[e],o,a,null===(n=this.constraints)||void 0===n?void 0:n[e],this.elastic[e]);this.visualElement.setProjectionTargetAxis(e,i,i+o)},e.prototype.setProps=function(e){var t=e.drag,n=void 0!==t&&t,r=e.dragDirectionLock,o=void 0!==r&&r,a=e.dragPropagation,i=void 0!==a&&a,c=e.dragConstraints,s=void 0!==c&&c,l=e.dragElastic,u=void 0===l?.35:l,d=e.dragMomentum,p=void 0===d||d,m=F(e,["drag","dragDirectionLock","dragPropagation","dragConstraints","dragElastic","dragMomentum"]);this.props=V({drag:n,dragDirectionLock:o,dragPropagation:i,dragConstraints:s,dragElastic:u,dragMomentum:p},m)},e.prototype.getAxisMotionValue=function(e){var t=this.props,n=t.layout,r=t.layoutId,o="_drag"+e.toUpperCase();return this.props[o]?this.props[o]:n||void 0!==r?void 0:this.visualElement.getValue(e,0)},e.prototype.isLayoutDrag=function(){return!this.getAxisMotionValue("x")},e.prototype.isExternalDrag=function(){var e=this.props,t=e._dragX,n=e._dragY;return t||n},e.prototype.animateDragEnd=function(e){var t=this,n=this.props,r=n.drag,o=n.dragMomentum,a=n.dragElastic,i=n.dragTransition,c=function(e,t){void 0===t&&(t=!0);var n,r=e.getProjectionParent();return!!r&&(t?ua(n=$o(r.projection.target,e.projection.target),r.getLatestValues()):n=$o(r.getLayoutState().layout,e.getLayoutState().layout),Mo((function(t){return e.setProjectionTargetAxis(t,n[t].min,n[t].max,!0)})),!0)}(this.visualElement,this.isLayoutDrag()&&!this.isExternalDrag()),s=this.constraints||{};if(c&&Object.keys(s).length&&this.isLayoutDrag()){var l=this.visualElement.getProjectionParent();if(l){var u=$o(l.projection.targetFinal,s);Mo((function(e){var t=u[e],n=t.min,r=t.max;s[e]={min:isNaN(n)?void 0:n,max:isNaN(r)?void 0:r}}))}}var d=Mo((function(n){var l;if(Oa(n,r,t.currentDirection)){var u=null!==(l=null==s?void 0:s[n])&&void 0!==l?l:{},d=a?200:1e6,p=a?40:1e7,m=V(V({type:"inertia",velocity:o?e[n]:0,bounceStiffness:d,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10},i),u);return t.getAxisMotionValue(n)?t.startAxisValueAnimation(n,m):t.visualElement.startLayoutAnimation(n,m,c)}}));return Promise.all(d).then((function(){var e,n;null===(n=(e=t.props).onDragTransitionEnd)||void 0===n||n.call(e)}))},e.prototype.stopMotion=function(){var e=this;Mo((function(t){var n=e.getAxisMotionValue(t);n?n.stop():e.visualElement.stopLayoutAnimation()}))},e.prototype.startAxisValueAnimation=function(e,t){var n=this.getAxisMotionValue(e);if(n){var r=n.get();return n.set(r),n.set(r),qr(e,n,0,t)}},e.prototype.scalePoint=function(){var e=this,t=this.props,n=t.drag;if(ce(t.dragConstraints)&&this.constraintsBox){this.stopMotion();var r={x:0,y:0};Mo((function(t){var n,o,a,i,c;r[t]=(n=e.visualElement.projection.target[t],o=e.constraintsBox[t],a=.5,i=Fo(n),(c=Fo(o))>i?a=cn(o.min,o.max-i,n.min):i>c&&(a=cn(n.min,n.max-c,o.min)),Jt(0,1,a))})),this.updateConstraints((function(){Mo((function(t){if(Oa(t,n,null)){var o=function(e,t,n){var r=e.max-e.min,o=sn(t.min,t.max-r,n);return{min:o,max:o+r}}(e.visualElement.projection.target[t],e.constraintsBox[t],r[t]),a=o.min,i=o.max;e.visualElement.setProjectionTargetAxis(t,a,i)}}))})),setTimeout(ba,1)}},e.prototype.updateConstraints=function(e){var t=this;this.cancelLayout=ma((function(n,r){var o=Xo(t.visualElement);r((function(){return o.forEach((function(e){return e.resetTransform()}))})),n((function(){return qo(t.visualElement)})),r((function(){return o.forEach((function(e){return e.restoreTransform()}))})),n((function(){t.resolveDragConstraints()})),e&&r(e)}))},e.prototype.mount=function(e){var t=this,n=Rt(e.getInstance(),"pointerdown",(function(e){var n=t.props,r=n.drag,o=n.dragListener;r&&(void 0===o||o)&&t.start(e)})),r=xt(window,"resize",(function(){t.scalePoint()})),o=e.onLayoutUpdate((function(){t.isDragging&&t.resolveDragConstraints()})),a=e.prevDragCursor;return a&&this.start(fa,{cursorProgress:a}),function(){null==n||n(),null==r||r(),null==o||o(),t.cancelDrag()}},e}();function Oa(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}var ya,ja,Ea={pan:$t((function(e){var t=e.onPan,n=e.onPanStart,r=e.onPanEnd,o=e.onPanSessionStart,a=e.visualElement,i=t||n||r||o,c=Object(H.useRef)(null),s=Object(H.useContext)($).transformPagePoint,l={onSessionStart:o,onStart:n,onMove:t,onEnd:function(e,t){c.current=null,r&&r(e,t)}};Object(H.useEffect)((function(){null!==c.current&&c.current.updateHandlers(l)})),Vt(a,"pointerdown",i&&function(e){c.current=new jo(e,l,{transformPagePoint:s})}),Xt((function(){return c.current&&c.current.end()}))})),drag:$t((function(e){var t=e.dragControls,n=e.visualElement,r=Object(H.useContext)($).transformPagePoint,o=J((function(){return new ga({visualElement:n})}));o.setProps(V(V({},e),{transformPagePoint:r})),Object(H.useEffect)((function(){return t&&t.subscribe(o)}),[o]),Object(H.useEffect)((function(){return o.mount(n)}),[])}))};function _a(e){return"string"==typeof e&&e.startsWith("var(--")}!function(e){e[e.Entering=0]="Entering",e[e.Present=1]="Present",e[e.Exiting=2]="Exiting"}(ya||(ya={})),function(e){e[e.Hide=0]="Hide",e[e.Show=1]="Show"}(ja||(ja={}));var wa=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Sa(e,t,n){void 0===n&&(n=1);var r=U(function(e){var t=wa.exec(e);if(!t)return[,];var n=U(t,3);return[n[1],n[2]]}(e),2),o=r[0],a=r[1];if(o){var i=window.getComputedStyle(t).getPropertyValue(o);return i?i.trim():_a(a)?Sa(a,t,n+1):a}}function xa(e,t){return e/(t.max-t.min)*100}var Pa={process:function(e,t,n){var r=n.target;if("string"==typeof e){if(!Ue.test(e))return e;e=parseFloat(e)}return xa(e,r.x)+"% "+xa(e,r.y)+"%"}},ka={borderRadius:V(V({},Pa),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Pa,borderTopRightRadius:Pa,borderBottomLeftRadius:Pa,borderBottomRightRadius:Pa,boxShadow:{process:function(e,t){var n=t.delta,r=t.treeScale,o=e,a=e.includes("var("),i=[];a&&(e=e.replace(wa,(function(e){return i.push(e),"_$css"})));var c=Pn.parse(e);if(c.length>5)return o;var s=Pn.createTransformer(e),l="number"!=typeof c[0]?1:0,u=n.x.scale*r.x,d=n.y.scale*r.y;c[0+l]/=u,c[1+l]/=d;var p=sn(u,d,.5);"number"==typeof c[2+l]&&(c[2+l]/=p),"number"==typeof c[3+l]&&(c[3+l]/=p);var m=s(c);if(a){var b=0;m=m.replace("_$css",(function(){var e=i[b];return b++,e}))}return m}}},Ta=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.frameTarget={x:{min:0,max:1},y:{min:0,max:1}},t.currentAnimationTarget={x:{min:0,max:1},y:{min:0,max:1}},t.isAnimating={x:!1,y:!1},t.stopAxisAnimation={x:void 0,y:void 0},t.isAnimatingTree=!1,t.animate=function(e,n,r){void 0===r&&(r={});var o=r.originBox,a=r.targetBox,i=r.visibilityAction,c=r.shouldStackAnimate,s=r.onComplete,l=r.prevParent,u=F(r,["originBox","targetBox","visibilityAction","shouldStackAnimate","onComplete","prevParent"]),d=t.props,p=d.visualElement,m=d.layout;if(!1===c)return t.isAnimatingTree=!1,t.safeToRemove();if(!t.isAnimatingTree||!0===c){c&&(t.isAnimatingTree=!0),n=o||n,e=a||e;var b=!1,f=p.getProjectionParent();if(f){var v=f.prevViewportBox,h=f.getLayoutState().layout;l&&(a&&(h=l.getLayoutState().layout),o&&!Zo(l,f)&&l.prevViewportBox&&(v=l.prevViewportBox)),v&&La(l,o,a)&&(b=!0,n=$o(v,n),e=$o(h,e))}var g=Ca(n,e),O=Mo((function(r){var o,a;if("position"===m){var c=e[r].max-e[r].min;n[r].max=n[r].min+c}if(!p.projection.isTargetLocked)return void 0===i?g?t.animateAxis(r,e[r],n[r],V(V({},u),{isRelative:b})):(null===(a=(o=t.stopAxisAnimation)[r])||void 0===a||a.call(o),p.setProjectionTargetAxis(r,e[r].min,e[r].max,b)):void p.setVisibility(i===ja.Show)}));return p.syncRender(),Promise.all(O).then((function(){t.isAnimatingTree=!1,s&&s(),p.notifyLayoutAnimationComplete()}))}},t}return R(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props.visualElement;t.animateMotionValue=qr,t.enableLayoutProjection(),this.unsubLayoutReady=t.onLayoutUpdate(this.animate),t.layoutSafeToRemove=function(){return e.safeToRemove()},function(e){for(var t in e)Oe[t]=e[t]}(ka)},t.prototype.componentWillUnmount=function(){var e=this;this.unsubLayoutReady(),Mo((function(t){var n,r;return null===(r=(n=e.stopAxisAnimation)[t])||void 0===r?void 0:r.call(n)}))},t.prototype.animateAxis=function(e,t,n,r){var o,a,i=this,c=void 0===r?{}:r,s=c.transition,l=c.isRelative;if(!this.isAnimating[e]||!Ba(t,this.currentAnimationTarget[e])){null===(a=(o=this.stopAxisAnimation)[e])||void 0===a||a.call(o),this.isAnimating[e]=!0;var u=this.props.visualElement,d=this.frameTarget[e],p=u.getProjectionAnimationProgress()[e];p.clearListeners(),p.set(0),p.set(0);var m=function(){var r=p.get()/1e3;!function(e,t,n,r){e.min=sn(t.min,n.min,r),e.max=sn(t.max,n.max,r)}(d,n,t,r),u.setProjectionTargetAxis(e,d.min,d.max,l)};m();var b=p.onChange(m);this.stopAxisAnimation[e]=function(){i.isAnimating[e]=!1,p.stop(),b()},this.currentAnimationTarget[e]=t;var f=s||u.getDefaultTransition()||Ia;return qr("x"===e?"layoutX":"layoutY",p,1e3,f&&Xr(f,"layout")).then(this.stopAxisAnimation[e])}},t.prototype.safeToRemove=function(){var e,t;null===(t=(e=this.props).safeToRemove)||void 0===t||t.call(e)},t.prototype.render=function(){return null},t}(H.Component);function Ca(e,t){return!(Ma(e)||Ma(t)||Ba(e.x,t.x)&&Ba(e.y,t.y))}var Aa={min:0,max:0};function Ma(e){return Ba(e.x,Aa)&&Ba(e.y,Aa)}function Ba(e,t){return e.min===t.min&&e.max===t.max}var Ia={duration:.45,ease:[.4,0,.1,1]};function La(e,t,n){return e||!e&&!(t||n)}var Na={layoutReady:function(e){return e.notifyLayoutReady()}};function Da(){var e=new Set;return{add:function(t){return e.add(t)},flush:function(t){var n=void 0===t?Na:t,r=n.layoutReady,o=n.parent;ma((function(t,n){var a=Array.from(e).sort(Wo),i=o?Xo(o):[];n((function(){G(G([],U(i)),U(a)).forEach((function(e){return e.resetTransform()}))})),t((function(){a.forEach(qo)})),n((function(){i.forEach((function(e){return e.restoreTransform()})),a.forEach(r)})),t((function(){a.forEach((function(e){e.isPresent&&(e.presence=ya.Present)}))})),n((function(){pr.preRender(),pr.render()})),t((function(){hr.postRender((function(){return a.forEach(Ra)})),e.clear()}))})),ba()}}}function Ra(e){e.prevViewportBox=e.projection.target}var Va=Object(H.createContext)(Da()),Fa=Object(H.createContext)(Da());function Ua(e){return!!e.forceUpdate}var Ga=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return R(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.syncLayout,n=e.framerSyncLayout,r=e.visualElement;Ua(t)&&t.register(r),Ua(n)&&n.register(r),r.onUnmount((function(){Ua(t)&&t.remove(r),Ua(n)&&n.remove(r)}))},t.prototype.getSnapshotBeforeUpdate=function(){var e=this.props,t=e.syncLayout,n=e.visualElement;return Ua(t)?t.syncUpdate():(function(e){e.shouldResetTransform()||(e.prevViewportBox=e.measureViewportBox(!1),e.rebaseProjectionTarget(!1,e.prevViewportBox))}(n),t.add(n)),null},t.prototype.componentDidUpdate=function(){var e=this.props.syncLayout;Ua(e)||e.flush()},t.prototype.render=function(){return null},t}(z.a.Component),Ha={measureLayout:function(e){var t=Object(H.useContext)(Va),n=Object(H.useContext)(Fa);return z.a.createElement(Ga,V({},e,{syncLayout:t,framerSyncLayout:n}))},layoutAnimation:function(e){var t=U(ee(),2)[1];return H.createElement(Ta,V({},e,{safeToRemove:t}))}};function za(){return{isHydrated:!1,layout:{x:{min:0,max:1},y:{min:0,max:1}},layoutCorrected:{x:{min:0,max:1},y:{min:0,max:1}},treeScale:{x:1,y:1},delta:Ao(),deltaFinal:Ao(),deltaTransform:""}}var Wa=za();function Ya(e,t,n){var r=e.x,o=e.y,a="translate3d("+r.translate/t.x+"px, "+o.translate/t.y+"px, 0) ";if(n){var i=n.rotate,c=n.rotateX,s=n.rotateY;i&&(a+="rotate("+i+") "),c&&(a+="rotateX("+c+") "),s&&(a+="rotateY("+s+") ")}return a+="scale("+r.scale+", "+o.scale+")",n||a!==qa?a:""}function Xa(e){var t=e.deltaFinal;return 100*t.x.origin+"% "+100*t.y.origin+"% 0"}var qa=Ya(Wa.delta,Wa.treeScale,{x:1,y:1}),Ka=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","SetAxisTarget","Unmount"];var $a=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(e){Kr(this.children,e),this.isDirty=!0},e.prototype.remove=function(e){$r(this.children,e),this.isDirty=!0},e.prototype.forEach=function(e){this.isDirty&&this.children.sort(Wo),this.isDirty=!1,this.children.forEach(e)},e}(),Za=function(e){var t=e.treeType,n=void 0===t?"":t,r=e.build,o=e.getBaseTarget,a=e.makeTargetAnimatable,i=e.measureViewportBox,c=e.render,s=e.readValueFromInstance,l=e.resetTransform,u=e.restoreTransform,d=e.removeValueFromRenderState,p=e.sortNodePosition,m=e.scrapeMotionValuesFromProps;return function(e,t){var b=e.parent,f=e.props,v=e.presenceId,h=e.blockInitialAnimation,g=e.visualState;void 0===t&&(t={});var O,y,j,E,_,w,S=g.latestValues,x=g.renderState,P=function(){var e=Ka.map((function(){return new Zr})),t={},n={clearAllListeners:function(){return e.forEach((function(e){return e.clear()}))},updatePropListeners:function(e){return Ka.forEach((function(r){var o;null===(o=t[r])||void 0===o||o.call(t);var a="on"+r,i=e[a];i&&(t[r]=n[a](i))}))}};return e.forEach((function(e,t){n["on"+Ka[t]]=function(t){return e.add(t)},n["notify"+Ka[t]]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.notify.apply(e,G([],U(t)))}})),n}(),k={isEnabled:!1,isHydrated:!1,isTargetLocked:!1,target:{x:{min:0,max:1},y:{min:0,max:1}},targetFinal:{x:{min:0,max:1},y:{min:0,max:1}}},T=k,C=S,A=za(),M=!1,B=new Map,I=new Map,L={},N=V({},S);function D(){O&&(K.isProjectionReady()&&(ca(T.targetFinal,T.target,C),Go(A.deltaFinal,A.layoutCorrected,T.targetFinal,S)),R(),c(O,x))}function R(){var e=S;if(E&&E.isActive()){var n=E.getCrossfadeState(K);n&&(e=n)}r(K,x,e,T,A,t,f)}function F(){P.notifyUpdate(S)}function H(){K.layoutTree.forEach(Ja)}var z=m(f);for(var W in z){var Y=z[W];void 0!==S[W]&&ke(Y)&&Y.set(S[W],!1)}var X=pe(f),q=me(f),K=V(V({treeType:n,current:null,depth:b?b.depth+1:0,parent:b,children:new Set,path:b?G(G([],U(b.path)),[b]):[],layoutTree:b?b.layoutTree:new $a,presenceId:v,projection:k,variantChildren:q?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(null==b?void 0:b.isMounted()),blockInitialAnimation:h,isMounted:function(){return Boolean(O)},mount:function(e){O=K.current=e,K.pointTo(K),q&&b&&!X&&(w=null==b?void 0:b.addVariantChild(K)),null==b||b.children.add(K)},unmount:function(){dr.update(F),dr.render(D),dr.preRender(K.updateLayoutProjection),I.forEach((function(e){return e()})),K.stopLayoutAnimation(),K.layoutTree.remove(K),null==w||w(),null==b||b.children.delete(K),null==j||j(),P.clearAllListeners()},addVariantChild:function(e){var t,n=K.getClosestVariantNode();if(n)return null===(t=n.variantChildren)||void 0===t||t.add(e),function(){return n.variantChildren.delete(e)}},sortNodePosition:function(e){return p&&n===e.treeType?p(K.getInstance(),e.getInstance()):0},getClosestVariantNode:function(){return q?K:null==b?void 0:b.getClosestVariantNode()},scheduleUpdateLayoutProjection:b?b.scheduleUpdateLayoutProjection:function(){return hr.preRender(K.updateTreeLayoutProjection,!1,!0)},getLayoutId:function(){return f.layoutId},getInstance:function(){return O},getStaticValue:function(e){return S[e]},setStaticValue:function(e,t){return S[e]=t},getLatestValues:function(){return S},setVisibility:function(e){K.isVisible!==e&&(K.isVisible=e,K.scheduleRender())},makeTargetAnimatable:function(e,t){return void 0===t&&(t=!0),a(K,e,f,t)},addValue:function(e,t){K.hasValue(e)&&K.removeValue(e),B.set(e,t),S[e]=t.get(),function(e,t){var n=t.onChange((function(t){S[e]=t,f.onUpdate&&hr.update(F,!1,!0)})),r=t.onRenderRequest(K.scheduleRender);I.set(e,(function(){n(),r()}))}(e,t)},removeValue:function(e){var t;B.delete(e),null===(t=I.get(e))||void 0===t||t(),I.delete(e),delete S[e],d(e,x)},hasValue:function(e){return B.has(e)},getValue:function(e,t){var n=B.get(e);return void 0===n&&void 0!==t&&(n=Jr(t),K.addValue(e,n)),n},forEachValue:function(e){return B.forEach(e)},readValue:function(e){var n;return null!==(n=S[e])&&void 0!==n?n:s(O,e,t)},setBaseTarget:function(e,t){N[e]=t},getBaseTarget:function(e){if(o){var t=o(f,e);if(void 0!==t&&!ke(t))return t}return N[e]}},P),{build:function(){return R(),x},scheduleRender:function(){hr.render(D,!1,!0)},syncRender:D,setProps:function(e){f=e,P.updatePropListeners(e),L=function(e,t,n){var r;for(var o in t){var a=t[o],i=n[o];if(ke(a))e.addValue(o,a);else if(ke(i))e.addValue(o,Jr(a));else if(i!==a)if(e.hasValue(o)){var c=e.getValue(o);!c.hasAnimated&&c.set(a)}else e.addValue(o,Jr(null!==(r=e.getStaticValue(o))&&void 0!==r?r:a))}for(var o in n)void 0===t[o]&&e.removeValue(o);return t}(K,m(f),L)},getProps:function(){return f},getVariant:function(e){var t;return null===(t=f.variants)||void 0===t?void 0:t[e]},getDefaultTransition:function(){return f.transition},getVariantContext:function(e){if(void 0===e&&(e=!1),e)return null==b?void 0:b.getVariantContext();if(!X){var t=(null==b?void 0:b.getVariantContext())||{};return void 0!==f.initial&&(t.initial=f.initial),t}for(var n={},r=0;r<ni;r++){var o=ti[r],a=f[o];(le(a)||!1===a)&&(n[o]=a)}return n},enableLayoutProjection:function(){k.isEnabled=!0,K.layoutTree.add(K)},lockProjectionTarget:function(){k.isTargetLocked=!0},unlockProjectionTarget:function(){K.stopLayoutAnimation(),k.isTargetLocked=!1},getLayoutState:function(){return A},setCrossfader:function(e){E=e},isProjectionReady:function(){return k.isEnabled&&k.isHydrated&&A.isHydrated},startLayoutAnimation:function(e,t,n){void 0===n&&(n=!1);var r=K.getProjectionAnimationProgress()[e],o=n?k.relativeTarget[e]:k.target[e],a=o.min,i=o.max-a;return r.clearListeners(),r.set(a),r.set(a),r.onChange((function(t){K.setProjectionTargetAxis(e,t,t+i,n)})),K.animateMotionValue(e,r,0,t)},stopLayoutAnimation:function(){Mo((function(e){return K.getProjectionAnimationProgress()[e].stop()}))},measureViewportBox:function(e){void 0===e&&(e=!0);var n=i(O,t);return e||ua(n,S),n},getProjectionAnimationProgress:function(){return _||(_={x:Jr(0),y:Jr(0)}),_},setProjectionTargetAxis:function(e,t,n,r){var o;void 0===r&&(r=!1),r?(k.relativeTarget||(k.relativeTarget={x:{min:0,max:1},y:{min:0,max:1}}),o=k.relativeTarget[e]):(k.relativeTarget=void 0,o=k.target[e]),k.isHydrated=!0,o.min=t,o.max=n,M=!0,P.notifySetAxisTarget()},rebaseProjectionTarget:function(e,t){void 0===t&&(t=A.layout);var n=K.getProjectionAnimationProgress(),r=n.x,o=n.y,a=!(k.relativeTarget||k.isTargetLocked||r.isAnimating()||o.isAnimating());(e||a)&&Mo((function(e){var n=t[e],r=n.min,o=n.max;K.setProjectionTargetAxis(e,r,o)}))},notifyLayoutReady:function(e){!function(e){var t=e.getProjectionParent();if(t){var n=$o(t.getLayoutState().layout,e.getLayoutState().layout);Mo((function(t){e.setProjectionTargetAxis(t,n[t].min,n[t].max,!0)}))}else e.rebaseProjectionTarget()}(K),K.notifyLayoutUpdate(A.layout,K.prevViewportBox||A.layout,e)},resetTransform:function(){return l(K,O,f)},restoreTransform:function(){return u(O,x)},updateLayoutProjection:function(){if(K.isProjectionReady()){var e=A.delta,t=A.treeScale,n=t.x,r=t.y,o=A.deltaTransform;(function(e,t,n,r){var o,a,i=e.delta,c=e.layout,s=e.layoutCorrected,l=e.treeScale,u=t.target;a=c,Jo((o=s).x,a.x),Jo(o.y,a.y),function(e,t,n){var r=n.length;if(r){var o,a;t.x=t.y=1;for(var i=0;i<r;i++)a=(o=n[i]).getLayoutState().delta,t.x*=a.x.scale,t.y*=a.y.scale,ra(e,a),Qo(o)&&ca(e,e,o.getLatestValues())}}(s,l,n),Go(i,s,u,r)})(A,T,K.path,S),M&&K.notifyViewportBoxUpdate(T.target,e),M=!1;var a=Ya(e,t);a===o&&n===t.x&&r===t.y||K.scheduleRender(),A.deltaTransform=a}},updateTreeLayoutProjection:function(){K.layoutTree.forEach(Qa),hr.preRender(H,!1,!0)},getProjectionParent:function(){if(void 0===y){for(var e=!1,t=K.path.length-1;t>=0;t--){var n=K.path[t];if(n.projection.isEnabled){e=n;break}}y=e}return y},resolveRelativeTargetBox:function(){var e=K.getProjectionParent();if(k.relativeTarget&&e&&(function(e,t){zo(e.target.x,e.relativeTarget.x,t.target.x),zo(e.target.y,e.relativeTarget.y,t.target.y)}(k,e.projection),Qo(e))){var t=k.target;ca(t,t,e.getLatestValues())}},shouldResetTransform:function(){return Boolean(f._layoutResetTransform)},pointTo:function(e){T=e.projection,C=e.getLatestValues(),null==j||j(),j=Kt(e.onSetAxisTarget(K.scheduleUpdateLayoutProjection),e.onLayoutAnimationComplete((function(){var e;K.isPresent?K.presence=ya.Present:null===(e=K.layoutSafeToRemove)||void 0===e||e.call(K)})))},isPresent:!0,presence:ya.Entering});return K}};function Qa(e){e.resolveRelativeTargetBox()}function Ja(e){e.updateLayoutProjection()}var ei,ti=G(["initial"],U(uo)),ni=ti.length,ri=new Set(["width","height","top","left","right","bottom","x","y"]),oi=function(e){return ri.has(e)},ai=function(e,t){e.set(t,!1),e.set(t)},ii=function(e){return e===We||e===Ue};!function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"}(ei||(ei={}));var ci=function(e,t){return parseFloat(e.split(", ")[t])},si=function(e,t){return function(n,r){var o=r.transform;if("none"===o||!o)return 0;var a=o.match(/^matrix3d\((.+)\)$/);if(a)return ci(a[1],t);var i=o.match(/^matrix\((.+)\)$/);return i?ci(i[1],e):0}},li=new Set(["x","y","z"]),ui=je.filter((function(e){return!li.has(e)})),di={width:function(e){var t=e.x;return t.max-t.min},height:function(e){var t=e.y;return t.max-t.min},top:function(e,t){var n=t.top;return parseFloat(n)},left:function(e,t){var n=t.left;return parseFloat(n)},bottom:function(e,t){var n=e.y,r=t.top;return parseFloat(r)+(n.max-n.min)},right:function(e,t){var n=e.x,r=t.left;return parseFloat(r)+(n.max-n.min)},x:si(4,13),y:si(5,14)};function pi(e,t,n,r){return function(e){return Object.keys(e).some(oi)}(t)?function(e,t,n,r){void 0===n&&(n={}),void 0===r&&(r={}),t=V({},t),r=V({},r);var o=Object.keys(t).filter(oi),a=[],i=!1,c=[];if(o.forEach((function(o){var s=e.getValue(o);if(e.hasValue(o)){var l,u=n[o],d=t[o],p=no(u);if(Ot(d))for(var m=d.length,b=null===d[0]?1:0;b<m;b++)l?no(d[b]):(l=no(d[b]))===p||ii(p)&&ii(l);else l=no(d);if(p!==l)if(ii(p)&&ii(l)){var f=s.get();"string"==typeof f&&s.set(parseFloat(f)),"string"==typeof d?t[o]=parseFloat(d):Array.isArray(d)&&l===Ue&&(t[o]=d.map(parseFloat))}else(null==p?void 0:p.transform)&&(null==l?void 0:l.transform)&&(0===u||0===d)?0===u?s.set(l.transform(u)):t[o]=p.transform(d):(i||(a=function(e){var t=[];return ui.forEach((function(n){var r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),t.length&&e.syncRender(),t}(e),i=!0),c.push(o),r[o]=void 0!==r[o]?r[o]:t[o],ai(s,d))}})),c.length){var s=function(e,t,n){var r=t.measureViewportBox(),o=t.getInstance(),a=getComputedStyle(o),i=a.display,c={top:a.top,left:a.left,bottom:a.bottom,right:a.right,transform:a.transform};"none"===i&&t.setStaticValue("display",e.display||"block"),t.syncRender();var s=t.measureViewportBox();return n.forEach((function(n){var o=t.getValue(n);ai(o,di[n](r,c)),e[n]=di[n](s,a)})),e}(t,e,c);return a.length&&a.forEach((function(t){var n=U(t,2),r=n[0],o=n[1];e.getValue(r).set(o)})),e.syncRender(),{target:s,transitionEnd:r}}return{target:t,transitionEnd:r}}(e,t,n,r):{target:t,transitionEnd:r}}var mi={treeType:"dom",readValueFromInstance:function(e,t){if(we(t)){var n=Gr(t);return n&&n.default||0}var r,o=(r=e,window.getComputedStyle(r));return(Ce(t)?o.getPropertyValue(t):o[t])||0},sortNodePosition:function(e,t){return 2&e.compareDocumentPosition(t)?1:-1},getBaseTarget:function(e,t){var n;return null===(n=e.style)||void 0===n?void 0:n[t]},measureViewportBox:function(e,t){return Ro(e,t.transformPagePoint)},resetTransform:function(e,t,n){var r=n.transformTemplate;t.style.transform=r?r({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var n=t.vars,r=t.style;delete n[e],delete r[e]},makeTargetAnimatable:function(e,t,n,r){var o=n.transformValues;void 0===r&&(r=!0);var a=t.transition,i=t.transitionEnd,c=F(t,["transition","transitionEnd"]),s=function(e,t,n){var r,o,a={};for(var i in e)a[i]=null!==(r=ao(i,t))&&void 0!==r?r:null===(o=n.getValue(i))||void 0===o?void 0:o.get();return a}(c,a||{},e);if(o&&(i&&(i=o(i)),c&&(c=o(c)),s&&(s=o(s))),r){!function(e,t,n){var r,o,a,i,c,s=Object.keys(t).filter((function(t){return!e.hasValue(t)})),l=s.length;if(l)for(var u=0;u<l;u++){var d=s[u],p=t[d],m=null;Array.isArray(p)&&(m=p[0]),null===m&&(m=null!==(o=null!==(r=n[d])&&void 0!==r?r:e.readValue(d))&&void 0!==o?o:t[d]),null!=m&&("string"==typeof m&&/^\-?\d*\.?\d+$/.test(m)?m=parseFloat(m):(c=m,!ro.find(eo(c))&&Pn.test(p)&&(m=Hr(d,p))),e.addValue(d,Jr(m)),null!==(a=(i=n)[d])&&void 0!==a||(i[d]=m),e.setBaseTarget(d,m))}}(e,c,s);var l=function(e,t,n,r){var o=function(e,t,n){var r,o=F(t,[]),a=e.getInstance();if(!(a instanceof HTMLElement))return{target:o,transitionEnd:n};for(var i in n&&(n=V({},n)),e.forEachValue((function(e){var t=e.get();if(_a(t)){var n=Sa(t,a);n&&e.set(n)}})),o){var c=o[i];if(_a(c)){var s=Sa(c,a);s&&(o[i]=s,n&&(null!==(r=n[i])&&void 0!==r||(n[i]=c)))}}return{target:o,transitionEnd:n}}(e,t,r);return pi(e,t=o.target,n,r=o.transitionEnd)}(e,c,s,i);i=l.transitionEnd,c=l.target}return V({transition:a,transitionEnd:i},c)},scrapeMotionValuesFromProps:vt,build:function(e,t,n,r,o,a,i){void 0!==e.isVisible&&(t.style.visibility=e.isVisible?"visible":"hidden");var c=r.isEnabled&&o.isHydrated;$e(t,n,r,o,a,i.transformTemplate,c?Ya:void 0,c?Xa:void 0)},render:mt},bi=Za(mi),fi=Za(V(V({},mi),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return we(t)?(null===(n=Gr(t))||void 0===n?void 0:n.default)||0:(t=bt.has(t)?t:pt(t),e.getAttribute(t))},scrapeMotionValuesFromProps:ht,build:function(e,t,n,r,o,a,i){var c=r.isEnabled&&o.isHydrated;ct(t,n,r,o,a,i.transformTemplate,c?Ya:void 0,c?Xa:void 0)},render:ft})),vi=function(e,t){return ge(e)?fi(t,{enableHardwareAcceleration:!1}):bi(t,{enableHardwareAcceleration:!0})},hi=V(V(V(V({},vo),Zt),Ea),Ha),gi=ve((function(e,t){return function(e,t,n,r){var o=t.forwardMotionProps,a=void 0!==o&&o,i=ge(e)?wt:St;return V(V({},i),{preloadedFeatures:n,useRender:ut(a),createVisualElement:r,Component:e})}(e,t,hi,vi)})),Oi=n(388),yi=n(33),ji=function({onClick:e=s.noop,small:t=!1}){const{shortcut:n,areAdvancedSettingsOpened:o}=Object(d.useSelect)(e=>({shortcut:e(L.store).getShortcutRepresentation("core/edit-post/toggle-sidebar"),areAdvancedSettingsOpened:"edit-post/block"===e(w.a).getActiveGeneralSidebarName()}),[]),{openGeneralSidebar:a,closeGeneralSidebar:i}=Object(d.useDispatch)(w.a),c=o?Object(m.__)("Hide more settings"):Object(m.__)("Show more settings");return Object(r.createElement)(u.MenuItem,{onClick:()=>{o?(i(),Object(yi.speak)(Object(m.__)("Block settings closed"))):(a("edit-post/block"),Object(yi.speak)(Object(m.__)("Additional settings are now available in the Editor block settings sidebar"))),e()},shortcut:n},!t&&c)};function Ei({children:e,contentRef:t,isTemplateMode:n,styles:o,style:a}){const i=Object(p.__unstableUseMouseMoveTypingReset)();return n?Object(r.createElement)(p.__unstableIframe,{head:Object(r.createElement)(p.__unstableEditorStyles,{styles:o}),ref:i,contentRef:t,style:{width:"100%",height:"100%",display:"block"}},e):Object(r.createElement)(r.Fragment,null,Object(r.createElement)(p.__unstableEditorStyles,{styles:o}),Object(r.createElement)(p.WritingFlow,{ref:t,className:"editor-styles-wrapper",style:{flex:"1",...a},tabIndex:-1},e))}function _i({styles:e}){const{deviceType:t,isTemplateMode:n,wrapperBlockName:o,wrapperUniqueId:a}=Object(d.useSelect)(e=>{const{isEditingTemplate:t,__experimentalGetPreviewDeviceType:n}=e(w.a),{getCurrentPostId:r,getCurrentPostType:o}=e(j.store),a=t();let i;return"wp_block"===o()?i="core/block":a||(i="core/post-content"),{deviceType:n(),isTemplateMode:a,wrapperBlockName:i,wrapperUniqueId:r()}},[]),i=Object(d.useSelect)(e=>e(w.a).hasMetaBoxes(),[]),c=Object(d.useSelect)(e=>{const{getSettings:t}=e(p.store);return t().supportsLayout},[]),{clearSelectedBlock:s}=Object(d.useDispatch)(p.store),{setIsEditingTemplate:l}=Object(d.useDispatch)(w.a),f={height:"100%",width:"100%",margin:0,display:"flex",flexFlow:"column",background:"white"},v={...f,borderRadius:"2px 2px 0 0",border:"1px solid #ddd",borderBottom:0},h=Object(p.__experimentalUseResizeCanvas)(t,n),g=Object(p.useSetting)("layout"),O="is-"+t.toLowerCase()+"-preview";let y,E=n?v:f;h&&(E=h),i||h||n||(y="40vh");const _=Object(r.useRef)(),S=Object(b.useMergeRefs)([_,Object(p.__unstableUseClipboardHandler)(),Object(p.__unstableUseCanvasClickRedirect)(),Object(p.__unstableUseTypewriter)(),Object(p.__unstableUseTypingObserver)(),Object(p.__unstableUseBlockSelectionClearer)()]),x=Object(p.__unstableUseBlockSelectionClearer)(),[,P]=Object(p.__experimentalUseNoRecursiveRenders)(a,o),k=Object(r.useMemo)(()=>n?{type:"default"}:c?g:void 0,[n,c]);return Object(r.createElement)(p.BlockTools,{__unstableContentRef:_,className:B()("edit-post-visual-editor",{"is-template-mode":n})},Object(r.createElement)(j.VisualEditorGlobalKeyboardShortcuts,null),Object(r.createElement)(gi.div,{className:"edit-post-visual-editor__content-area",animate:{padding:n?"48px 48px 0":"0"},ref:x},n&&Object(r.createElement)(u.Button,{className:"edit-post-visual-editor__exit-template-mode",icon:Oi.a,onClick:()=>{s(),l(!1)}},Object(m.__)("Back")),Object(r.createElement)(gi.div,{animate:E,initial:f,className:O},Object(r.createElement)(Ei,{isTemplateMode:n,contentRef:S,styles:e,style:{paddingBottom:y}},c&&!n&&Object(r.createElement)(p.__experimentalLayoutStyle,{selector:".edit-post-visual-editor__post-title-wrapper, .block-editor-block-list__layout.is-root-container",layout:g}),!n&&Object(r.createElement)("div",{className:"edit-post-visual-editor__post-title-wrapper"},Object(r.createElement)(j.PostTitle,null)),Object(r.createElement)(P,null,Object(r.createElement)(p.BlockList,{__experimentalLayout:k}))))),Object(r.createElement)(p.__unstableBlockSettingsMenuFirstItem,null,({onClose:e})=>Object(r.createElement)(ji,{onClick:e})))}var wi=function(){const{getBlockSelectionStart:e}=Object(d.useSelect)(p.store),{getEditorMode:t,isEditorSidebarOpened:n,isListViewOpened:o}=Object(d.useSelect)(w.a),a=Object(d.useSelect)(e=>{const{richEditingEnabled:t,codeEditingEnabled:n}=e(j.store).getEditorSettings();return!t||!n},[]),{switchEditorMode:i,openGeneralSidebar:c,closeGeneralSidebar:s,toggleFeature:l,setIsListViewOpened:u}=Object(d.useDispatch)(w.a),{registerShortcut:b}=Object(d.useDispatch)(L.store);return Object(r.useEffect)(()=>{b({name:"core/edit-post/toggle-mode",category:"global",description:Object(m.__)("Switch between visual editor and code editor."),keyCombination:{modifier:"secondary",character:"m"}}),b({name:"core/edit-post/toggle-fullscreen",category:"global",description:Object(m.__)("Toggle fullscreen mode."),keyCombination:{modifier:"secondary",character:"f"}}),b({name:"core/edit-post/toggle-list-view",category:"global",description:Object(m.__)("Open the block list view."),keyCombination:{modifier:"access",character:"o"}}),b({name:"core/edit-post/toggle-sidebar",category:"global",description:Object(m.__)("Show or hide the settings sidebar."),keyCombination:{modifier:"primaryShift",character:","}}),b({name:"core/edit-post/next-region",category:"global",description:Object(m.__)("Navigate to the next part of the editor."),keyCombination:{modifier:"ctrl",character:"`"},aliases:[{modifier:"access",character:"n"}]}),b({name:"core/edit-post/previous-region",category:"global",description:Object(m.__)("Navigate to the previous part of the editor."),keyCombination:{modifier:"ctrlShift",character:"`"},aliases:[{modifier:"access",character:"p"}]}),b({name:"core/edit-post/keyboard-shortcuts",category:"main",description:Object(m.__)("Display these keyboard shortcuts."),keyCombination:{modifier:"access",character:"h"}})},[]),Object(L.useShortcut)("core/edit-post/toggle-mode",()=>{i("visual"===t()?"text":"visual")},{bindGlobal:!0,isDisabled:a}),Object(L.useShortcut)("core/edit-post/toggle-fullscreen",()=>{l("fullscreenMode")},{bindGlobal:!0}),Object(L.useShortcut)("core/edit-post/toggle-sidebar",t=>{if(t.preventDefault(),n())s();else{const t=e()?"edit-post/block":"edit-post/document";c(t)}},{bindGlobal:!0}),Object(L.useShortcut)("core/edit-post/toggle-list-view",()=>u(!o()),{bindGlobal:!0}),null};const Si=[{keyCombination:{modifier:"primary",character:"b"},description:Object(m.__)("Make the selected text bold.")},{keyCombination:{modifier:"primary",character:"i"},description:Object(m.__)("Make the selected text italic.")},{keyCombination:{modifier:"primary",character:"k"},description:Object(m.__)("Convert the selected text into a link.")},{keyCombination:{modifier:"primaryShift",character:"k"},description:Object(m.__)("Remove a link.")},{keyCombination:{modifier:"primary",character:"u"},description:Object(m.__)("Underline the selected text.")}];function xi({keyCombination:e,forceAriaLabel:t}){const n=e.modifier?_.displayShortcutList[e.modifier](e.character):e.character,o=e.modifier?_.shortcutAriaLabel[e.modifier](e.character):e.character;return Object(r.createElement)("kbd",{className:"edit-post-keyboard-shortcut-help-modal__shortcut-key-combination","aria-label":t||o},Object(s.castArray)(n).map((e,t)=>"+"===e?Object(r.createElement)(r.Fragment,{key:t},e):Object(r.createElement)("kbd",{key:t,className:"edit-post-keyboard-shortcut-help-modal__shortcut-key"},e)))}var Pi=function({description:e,keyCombination:t,aliases:n=[],ariaLabel:o}){return Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"edit-post-keyboard-shortcut-help-modal__shortcut-description"},e),Object(r.createElement)("div",{className:"edit-post-keyboard-shortcut-help-modal__shortcut-term"},Object(r.createElement)(xi,{keyCombination:t,forceAriaLabel:o}),n.map((e,t)=>Object(r.createElement)(xi,{keyCombination:e,forceAriaLabel:o,key:t}))))},ki=function({name:e}){const{keyCombination:t,description:n,aliases:o}=Object(d.useSelect)(t=>{const{getShortcutKeyCombination:n,getShortcutDescription:r,getShortcutAliases:o}=t(L.store);return{keyCombination:n(e),aliases:o(e),description:r(e)}});return t?Object(r.createElement)(Pi,{keyCombination:t,description:n,aliases:o}):null};const Ti="edit-post/keyboard-shortcut-help",Ci=({shortcuts:e})=>Object(r.createElement)("ul",{className:"edit-post-keyboard-shortcut-help-modal__shortcut-list",role:"list"},e.map((e,t)=>Object(r.createElement)("li",{className:"edit-post-keyboard-shortcut-help-modal__shortcut",key:t},Object(s.isString)(e)?Object(r.createElement)(ki,{name:e}):Object(r.createElement)(Pi,e)))),Ai=({title:e,shortcuts:t,className:n})=>Object(r.createElement)("section",{className:B()("edit-post-keyboard-shortcut-help-modal__section",n)},!!e&&Object(r.createElement)("h2",{className:"edit-post-keyboard-shortcut-help-modal__section-title"},e),Object(r.createElement)(Ci,{shortcuts:t})),Mi=({title:e,categoryName:t,additionalShortcuts:n=[]})=>{const o=Object(d.useSelect)(e=>e(L.store).getCategoryShortcuts(t),[t]);return Object(r.createElement)(Ai,{title:e,shortcuts:o.concat(n)})};var Bi=Object(b.compose)([Object(d.withSelect)(e=>({isModalActive:e(w.a).isModalActive(Ti)})),Object(d.withDispatch)((e,{isModalActive:t})=>{const{openModal:n,closeModal:r}=e(w.a);return{toggleModal:()=>t?r():n(Ti)}})])((function({isModalActive:e,toggleModal:t}){return Object(L.useShortcut)("core/edit-post/keyboard-shortcuts",t,{bindGlobal:!0}),e?Object(r.createElement)(u.Modal,{className:"edit-post-keyboard-shortcut-help-modal",title:Object(m.__)("Keyboard shortcuts"),closeLabel:Object(m.__)("Close"),onRequestClose:t},Object(r.createElement)(Ai,{className:"edit-post-keyboard-shortcut-help-modal__main-shortcuts",shortcuts:["core/edit-post/keyboard-shortcuts"]}),Object(r.createElement)(Mi,{title:Object(m.__)("Global shortcuts"),categoryName:"global"}),Object(r.createElement)(Mi,{title:Object(m.__)("Selection shortcuts"),categoryName:"selection"}),Object(r.createElement)(Mi,{title:Object(m.__)("Block shortcuts"),categoryName:"block",additionalShortcuts:[{keyCombination:{character:"/"},description:Object(m.__)("Change the block type after adding a new paragraph."),
|
18 |
/* translators: The forward-slash character. e.g. '/'. */
|
19 |
ariaLabel:Object(m.__)("Forward-slash")}]}),Object(r.createElement)(Ai,{title:Object(m.__)("Text formatting"),shortcuts:Si})):null})),Ii=({description:e,title:t,children:n})=>Object(r.createElement)("section",{className:"edit-post-preferences-modal__section"},Object(r.createElement)("h2",{className:"edit-post-preferences-modal__section-title"},t),e&&Object(r.createElement)("p",{className:"edit-post-preferences-modal__section-description"},e),n),Li=n(61),Ni=Object(d.withSelect)(e=>{const{getEditorSettings:t}=e(j.store),{getAllMetaBoxes:n}=e(w.a);return{areCustomFieldsRegistered:void 0!==t().enableCustomFields,metaBoxes:n()}})((function({areCustomFieldsRegistered:e,metaBoxes:t,...n}){const o=Object(s.filter)(t,({id:e})=>"postcustom"!==e);return e||0!==o.length?Object(r.createElement)(Ii,n,e&&Object(r.createElement)(Li.a,{label:Object(m.__)("Custom fields")}),Object(s.map)(o,({id:e,title:t})=>Object(r.createElement)(Li.c,{key:e,label:t,panelName:"meta-box-"+e}))):null})),Di=function({blockTypes:e,value:t,onItemChange:n}){return Object(r.createElement)("ul",{className:"edit-post-block-manager__checklist"},e.map(e=>Object(r.createElement)("li",{key:e.name,className:"edit-post-block-manager__checklist-item"},Object(r.createElement)(u.CheckboxControl,{label:Object(r.createElement)(r.Fragment,null,e.title,Object(r.createElement)(p.BlockIcon,{icon:e.icon})),checked:t.includes(e.name),onChange:Object(s.partial)(n,e.name)}))))},Ri=Object(r.createContext)({}),Vi=Object(b.compose)([b.withInstanceId,Object(d.withSelect)(e=>{const{getPreference:t}=e(w.a);return{hiddenBlockTypes:t("hiddenBlockTypes")}}),Object(d.withDispatch)((e,t)=>{const{showBlockTypes:n,hideBlockTypes:r}=e(w.a);return{toggleVisible(e,t){t?n(e):r(e)},toggleAllVisible(e){const o=Object(s.map)(t.blockTypes,"name");e?n(o):r(o)}}})])((function({instanceId:e,title:t,blockTypes:n,hiddenBlockTypes:o,toggleVisible:a,toggleAllVisible:i}){const c=Object(r.useContext)(Ri),{allowedBlockTypes:l}=c,d=Object(r.useMemo)(()=>!0===l?n:n.filter(({name:e})=>Object(s.includes)(l||[],e)),[l,n]);if(!d.length)return null;const p=Object(s.without)(Object(s.map)(d,"name"),...o),m="edit-post-block-manager__category-title-"+e,b=p.length===d.length;let f;return f=b?"true":p.length>0?"mixed":"false",Object(r.createElement)("div",{role:"group","aria-labelledby":m,className:"edit-post-block-manager__category"},Object(r.createElement)(u.CheckboxControl,{checked:b,onChange:i,className:"edit-post-block-manager__category-title","aria-checked":f,label:Object(r.createElement)("span",{id:m},t)}),Object(r.createElement)(Di,{blockTypes:d,value:p,onItemChange:a}))})),Fi=Object(d.withSelect)(e=>{const{getBlockTypes:t,getCategories:n,hasBlockSupport:r,isMatchingSearchTerm:o}=e(l.store),{getPreference:a}=e(w.a),i=a("hiddenBlockTypes"),c=Object(s.isArray)(i)&&i.length;return{blockTypes:t(),categories:n(),hasBlockSupport:r,isMatchingSearchTerm:o,numberOfHiddenBlocks:c}})((function({blockTypes:e,categories:t,hasBlockSupport:n,isMatchingSearchTerm:o,numberOfHiddenBlocks:a}){const[i,c]=Object(r.useState)("");return e=e.filter(e=>n(e,"inserter",!0)&&(!i||o(e,i))&&(!e.parent||Object(s.includes)(e.parent,"core/post-content"))),Object(r.createElement)("div",{className:"edit-post-block-manager__content"},!!a&&Object(r.createElement)("div",{className:"edit-post-block-manager__disabled-blocks-count"},Object(m.sprintf)(
|
20 |
/* translators: %d: number of blocks. */
|
14 |
/* translators: accessibility text for the footer landmark region. */
|
15 |
footer:Object(_.__)("Footer"),...s};return Object(O.createElement)("div",{ref:Object(H.useMergeRefs)([d,p]),className:j()(l,"interface-interface-skeleton",m,!!e&&"has-footer")},!!i&&Object(O.createElement)("div",{className:"interface-interface-skeleton__drawer",role:"region","aria-label":b.drawer},i),Object(O.createElement)("div",{className:"interface-interface-skeleton__editor"},!!t&&Object(O.createElement)("div",{className:"interface-interface-skeleton__header",role:"region","aria-label":b.header,tabIndex:"-1"},t),Object(O.createElement)("div",{className:"interface-interface-skeleton__body"},!!r&&Object(O.createElement)("div",{className:"interface-interface-skeleton__secondary-sidebar",role:"region","aria-label":b.secondarySidebar,tabIndex:"-1"},r),!!o&&Object(O.createElement)("div",{className:"interface-interface-skeleton__notices"},o),Object(O.createElement)("div",{className:"interface-interface-skeleton__content",role:"region","aria-label":b.body,tabIndex:"-1"},a),!!n&&Object(O.createElement)("div",{className:"interface-interface-skeleton__sidebar",role:"region","aria-label":b.sidebar,tabIndex:"-1"},n),!!c&&Object(O.createElement)("div",{className:"interface-interface-skeleton__actions",role:"region","aria-label":b.actions,tabIndex:"-1"},c))),!!e&&Object(O.createElement)("div",{className:"interface-interface-skeleton__footer",role:"region","aria-label":b.footer,tabIndex:"-1"},e))}))},31:function(e,t){e.exports=window.wp.notices},32:function(e,t,n){"use strict";var r,o;function a(e){return[e]}function i(){var e={clear:function(){e.head=null}};return e}function c(e,t,n){var r;if(e.length!==t.length)return!1;for(r=n;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}r={},o="undefined"!=typeof WeakMap,t.a=function(e,t){var n,s;function l(){n=o?new WeakMap:i()}function u(){var n,r,o,a,i,l=arguments.length;for(a=new Array(l),o=0;o<l;o++)a[o]=arguments[o];for(i=t.apply(null,a),(n=s(i)).isUniqueByDependants||(n.lastDependants&&!c(i,n.lastDependants,0)&&n.clear(),n.lastDependants=i),r=n.head;r;){if(c(r.args,a,1))return r!==n.head&&(r.prev.next=r.next,r.next&&(r.next.prev=r.prev),r.next=n.head,r.prev=null,n.head.prev=r,n.head=r),r.val;r=r.next}return r={val:e.apply(null,a)},a[0]=null,r.args=a,n.head&&(n.head.prev=r,r.next=n.head),n.head=r,r.val}return t||(t=a),s=o?function(e){var t,o,a,c,s,l=n,u=!0;for(t=0;t<e.length;t++){if(!(s=o=e[t])||"object"!=typeof s){u=!1;break}l.has(o)?l=l.get(o):(a=new WeakMap,l.set(o,a),l=a)}return l.has(r)||((c=i()).isUniqueByDependants=u,l.set(r,c)),l.get(r)}:function(){return n},u.getDependants=t,u.clear=l,l(),u}},329:function(e,t,n){"use strict";var r=n(0),o=n(6);const a=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(o.Path,{d:"M20 10c0-5.51-4.49-10-10-10C4.48 0 0 4.49 0 10c0 5.52 4.48 10 10 10 5.51 0 10-4.48 10-10zM7.78 15.37L4.37 6.22c.55-.02 1.17-.08 1.17-.08.5-.06.44-1.13-.06-1.11 0 0-1.45.11-2.37.11-.18 0-.37 0-.58-.01C4.12 2.69 6.87 1.11 10 1.11c2.33 0 4.45.87 6.05 2.34-.68-.11-1.65.39-1.65 1.58 0 .74.45 1.36.9 2.1.35.61.55 1.36.55 2.46 0 1.49-1.4 5-1.4 5l-3.03-8.37c.54-.02.82-.17.82-.17.5-.05.44-1.25-.06-1.22 0 0-1.44.12-2.38.12-.87 0-2.33-.12-2.33-.12-.5-.03-.56 1.2-.06 1.22l.92.08 1.26 3.41zM17.41 10c.24-.64.74-1.87.43-4.25.7 1.29 1.05 2.71 1.05 4.25 0 3.29-1.73 6.24-4.4 7.78.97-2.59 1.94-5.2 2.92-7.78zM6.1 18.09C3.12 16.65 1.11 13.53 1.11 10c0-1.3.23-2.48.72-3.59C3.25 10.3 4.67 14.2 6.1 18.09zm4.03-6.63l2.58 6.98c-.86.29-1.76.45-2.71.45-.79 0-1.57-.11-2.29-.33.81-2.38 1.62-4.74 2.42-7.1z"}));t.a=a},33:function(e,t){e.exports=window.wp.a11y},36:function(e,t){e.exports=window.wp.dataControls},388:function(e,t,n){"use strict";var r=n(0),o=n(6);const a=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M20 10.8H6.7l4.1-4.5-1.1-1.1-5.8 6.3 5.8 5.8 1.1-1.1-4-3.9H20z"}));t.a=a},4:function(e,t){e.exports=window.wp.data},49:function(e,t){e.exports=window.wp.plugins},496:function(e,t,n){"use strict";n.r(t),n.d(t,"store",(function(){return w.a})),n.d(t,"reinitializeEditor",(function(){return As})),n.d(t,"initializeEditor",(function(){return Ms})),n.d(t,"PluginBlockSettingsMenuItem",(function(){return ks})),n.d(t,"PluginDocumentSettingPanel",(function(){return Jc.a})),n.d(t,"PluginMoreMenuItem",(function(){return Ts})),n.d(t,"PluginPostPublishPanel",(function(){return fs})),n.d(t,"PluginPostStatusInfo",(function(){return Nc})),n.d(t,"PluginPrePublishPanel",(function(){return Os})),n.d(t,"PluginSidebar",(function(){return es})),n.d(t,"PluginSidebarMoreMenuItem",(function(){return Cs})),n.d(t,"__experimentalFullscreenModeClose",(function(){return Wi})),n.d(t,"__experimentalMainDashboardButton",(function(){return pc}));var r=n(0),o=n(62),a=n(21),i=n(64);Object(a.addFilter)("editor.MediaUpload","core/edit-post/replace-media-upload",()=>i.MediaUpload);var c=n(7),s=n(2),l=n(8),u=n(3),d=n(4),p=n(5),m=n(1),b=n(9);const f=Object(b.compose)(Object(d.withSelect)((e,t)=>{if(Object(l.hasBlockSupport)(t.name,"multiple",!0))return{};const n=e(p.store).getBlocks(),r=Object(s.find)(n,({name:e})=>t.name===e);return{originalBlockClientId:r&&r.clientId!==t.clientId&&r.clientId}}),Object(d.withDispatch)((e,{originalBlockClientId:t})=>({selectFirst:()=>e(p.store).selectBlock(t)}))),v=Object(b.createHigherOrderComponent)(e=>f(({originalBlockClientId:t,selectFirst:n,...o})=>{if(!t)return Object(r.createElement)(e,o);const a=Object(l.getBlockType)(o.name),i=function(e){const t=Object(l.findTransform)(Object(l.getBlockTransforms)("to",e),({type:e,blocks:t})=>"block"===e&&1===t.length);return t?Object(l.getBlockType)(t.blocks[0]):null}(o.name);return[Object(r.createElement)("div",{key:"invalid-preview",style:{minHeight:"60px"}},Object(r.createElement)(e,Object(c.a)({key:"block-edit"},o))),Object(r.createElement)(p.Warning,{key:"multiple-use-warning",actions:[Object(r.createElement)(u.Button,{key:"find-original",variant:"secondary",onClick:n},Object(m.__)("Find original")),Object(r.createElement)(u.Button,{key:"remove",variant:"secondary",onClick:()=>o.onReplace([])},Object(m.__)("Remove")),i&&Object(r.createElement)(u.Button,{key:"transform",variant:"secondary",onClick:()=>o.onReplace(Object(l.createBlock)(i.name,o.attributes))},Object(m.__)("Transform into:")," ",i.title)]},Object(r.createElement)("strong",null,a.title,": "),Object(m.__)("This block can only be used once."))]}),"withMultipleValidation");Object(a.addFilter)("editor.BlockEdit","core/edit-post/validate-multiple-use/with-multiple-validation",v);var h=n(267),g=n(49),O=n(20),y=n(31),j=n(18);function E(){const{createNotice:e}=Object(d.useDispatch)(y.store),t=Object(d.useSelect)(e=>()=>e(j.store).getEditedPostAttribute("content"),[]),n=Object(b.useCopyToClipboard)(t,(function(){e("info",Object(m.__)("All content copied."),{isDismissible:!0,type:"snackbar"})}));return Object(r.createElement)(u.MenuItem,{ref:n},Object(m.__)("Copy all content"))}var _=n(14),w=n(19),S=Object(d.withDispatch)(e=>{const{openModal:t}=e(w.a);return{openModal:t}})((function({openModal:e}){return Object(r.createElement)(u.MenuItem,{onClick:()=>{e("edit-post/keyboard-shortcut-help")},shortcut:_.displayShortcut.access("h")},Object(m.__)("Keyboard shortcuts"))}));const{Fill:x,Slot:P}=Object(u.createSlotFill)("ToolsMoreMenuGroup");x.Slot=({fillProps:e})=>Object(r.createElement)(P,{fillProps:e},e=>!Object(s.isEmpty)(e)&&Object(r.createElement)(u.MenuGroup,{label:Object(m.__)("Tools")},e));var k=x;function T(){const e=Object(d.useSelect)(e=>e(w.a).isEditingTemplate(),[]),{toggleFeature:t}=Object(d.useDispatch)(w.a);return Object(r.createElement)(u.MenuItem,{onClick:()=>t(e?"welcomeGuideTemplate":"welcomeGuide")},Object(m.__)("Welcome Guide"))}Object(g.registerPlugin)("edit-post",{render:()=>Object(r.createElement)(r.Fragment,null,Object(r.createElement)(k,null,({onClose:e})=>Object(r.createElement)(r.Fragment,null,Object(r.createElement)(u.MenuItem,{role:"menuitem",href:Object(O.addQueryArgs)("edit.php",{post_type:"wp_block"})},Object(m.__)("Manage Reusable blocks")),Object(r.createElement)(S,{onSelect:e}),Object(r.createElement)(T,null),Object(r.createElement)(E,null),Object(r.createElement)(u.MenuItem,{role:"menuitem",icon:h.a,href:Object(m.__)("https://wordpress.org/support/article/wordpress-editor/"),target:"_blank",rel:"noopener noreferrer"},Object(m.__)("Help"),Object(r.createElement)(u.VisuallyHidden,{as:"span"},
|
16 |
/* translators: accessibility text */
|
17 |
+
Object(m.__)("(opens in a new tab)"))))))});var C=n(12),A={"t a l e s o f g u t e n b e r g":e=>{const{ownerDocument:t}=e.target;(t.activeElement.classList.contains("edit-post-visual-editor")||t.activeElement===t.body)&&(e.preventDefault(),window.wp.data.dispatch("core/block-editor").insertBlock(window.wp.blocks.createBlock("core/paragraph",{content:"🐡🐢🦀🐤🦋🐘🐧🐹🦁🦄🦍🐼🐿🎃🐴🐝🐆🦕🦔🌱🍇π🍌🐉💧🥨🌌🍂🍠🥦🥚🥝🎟🥥🥒🛵🥖🍒🍯🎾🎲🐺🐚🐮⌛️"})))}},M=n(10),B=n.n(M),I=n(30),L=n(27),N=Object(b.compose)(Object(d.withSelect)(e=>({isRichEditingEnabled:e(j.store).getEditorSettings().richEditingEnabled})),Object(d.withDispatch)(e=>({onExit(){e(w.a).switchEditorMode("visual")}})))((function({onExit:e,isRichEditingEnabled:t}){return Object(r.createElement)("div",{className:"edit-post-text-editor"},t&&Object(r.createElement)("div",{className:"edit-post-text-editor__toolbar"},Object(r.createElement)("h2",null,Object(m.__)("Editing code")),Object(r.createElement)(u.Button,{variant:"tertiary",onClick:e,shortcut:_.displayShortcut.secondary("m")},Object(m.__)("Exit code editor")),Object(r.createElement)(j.TextEditorGlobalKeyboardShortcuts,null)),Object(r.createElement)("div",{className:"edit-post-text-editor__body"},Object(r.createElement)(j.PostTitle,null),Object(r.createElement)(j.PostTextEditor,null)))})),D=function(e,t){return(D=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])})(e,t)};function R(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}D(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}var V=function(){return(V=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}).apply(this,arguments)};function F(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}function U(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function G(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||t)}Object.create,Object.create;var H=n(11),z=n.n(H),W=function(e){return{isEnabled:function(t){return e.some((function(e){return!!t[e]}))}}},Y={measureLayout:W(["layout","layoutId","drag","_layoutResetTransform"]),animation:W(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag"]),exit:W(["exit"]),drag:W(["drag","dragControls"]),focus:W(["whileFocus"]),hover:W(["whileHover","onHoverStart","onHoverEnd"]),tap:W(["whileTap","onTap","onTapStart","onTapCancel"]),pan:W(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),layoutAnimation:W(["layout","layoutId"])},X=Object(H.createContext)({strict:!1}),q=Object.keys(Y),K=q.length,$=Object(H.createContext)({transformPagePoint:function(e){return e},isStatic:!1}),Z=Object(H.createContext)({}),Q=Object(H.createContext)(null);function J(e){var t=Object(H.useRef)(null);return null===t.current&&(t.current=e()),t.current}function ee(){var e=Object(H.useContext)(Q);if(null===e)return[!0,null];var t=e.isPresent,n=e.onExitComplete,r=e.register,o=re();return Object(H.useEffect)((function(){return r(o)}),[]),!t&&n?[!1,function(){return null==n?void 0:n(o)}]:[!0]}var te=0,ne=function(){return te++},re=function(){return J(ne)},oe=Object(H.createContext)(null),ae="undefined"!=typeof window,ie=ae?H.useLayoutEffect:H.useEffect;function ce(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function se(e){return Array.isArray(e)}function le(e){return"string"==typeof e||se(e)}function ue(e,t,n,r,o){var a;return void 0===r&&(r={}),void 0===o&&(o={}),"string"==typeof t&&(t=null===(a=e.variants)||void 0===a?void 0:a[t]),"function"==typeof t?t(null!=n?n:e.custom,r,o):t}function de(e,t,n){var r=e.getProps();return ue(r,t,null!=n?n:r.custom,function(e){var t={};return e.forEachValue((function(e,n){return t[n]=e.get()})),t}(e),function(e){var t={};return e.forEachValue((function(e,n){return t[n]=e.getVelocity()})),t}(e))}function pe(e){var t;return"function"==typeof(null===(t=e.animate)||void 0===t?void 0:t.start)||le(e.initial)||le(e.animate)||le(e.whileHover)||le(e.whileDrag)||le(e.whileTap)||le(e.whileFocus)||le(e.exit)}function me(e){return Boolean(pe(e)||e.variants)}function be(e){return Array.isArray(e)?e.join(" "):e}function fe(e){var t=e.preloadedFeatures,n=e.createVisualElement,r=e.useRender,o=e.useVisualState,a=e.Component;return t&&function(e){for(var t in e){var n=e[t];null!==n&&(Y[t].Component=n)}}(t),Object(H.forwardRef)((function(e,t){var i=Object(H.useContext)($).isStatic,c=null,s=function(e,t){var n=function(e,t){if(pe(e)){var n=e.initial,r=e.animate;return{initial:!1===n||le(n)?n:void 0,animate:le(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,Object(H.useContext)(Z)),r=n.initial,o=n.animate;return Object(H.useMemo)((function(){return{initial:r,animate:o}}),t?[be(r),be(o)]:[])}(e,i),l=o(e,i);return!i&&ae&&(s.visualElement=function(e,t,n,r){var o=Object(H.useContext)($),a=Object(H.useContext)(X),i=Object(H.useContext)(Z).visualElement,c=Object(H.useContext)(Q),s=function(e){var t=e.layoutId,n=Object(H.useContext)(oe);return n&&void 0!==t?n+"-"+t:t}(n),l=Object(H.useRef)(void 0);r||(r=a.renderer),!l.current&&r&&(l.current=r(e,{visualState:t,parent:i,props:V(V({},n),{layoutId:s}),presenceId:null==c?void 0:c.id,blockInitialAnimation:!1===(null==c?void 0:c.initial)}));var u=l.current;return ie((function(){var e;u&&(u.setProps(V(V(V({},o),n),{layoutId:s})),u.isPresent=null===(e=c)||e.isPresent,u.isPresenceRoot=!i||i.presenceId!==(null==c?void 0:c.id),u.syncRender())})),Object(H.useEffect)((function(){var e;u&&(null===(e=u.animationState)||void 0===e||e.animateChanges())})),ie((function(){return function(){return null==u?void 0:u.notifyUnmount()}}),[]),u}(a,l,e,n),c=function(e,t,n){var r=[];if(Object(H.useContext)(X),!t)return null;for(var o=0;o<K;o++){var a=q[o],i=Y[a],c=i.isEnabled,s=i.Component;c(e)&&s&&r.push(H.createElement(s,V({key:a},e,{visualElement:t})))}return r}(e,s.visualElement)),H.createElement(H.Fragment,null,H.createElement(Z.Provider,{value:s},r(a,e,function(e,t,n){return Object(H.useCallback)((function(r){var o;r&&(null===(o=e.mount)||void 0===o||o.call(e,r)),t&&(r?t.mount(r):t.unmount()),n&&("function"==typeof n?n(r):ce(n)&&(n.current=r))}),[t])}(l,s.visualElement,t),l,i)),c)}))}function ve(e){function t(t,n){return void 0===n&&(n={}),fe(e(t,n))}var n=new Map;return new Proxy(t,{get:function(e,r){return n.has(r)||n.set(r,t(r)),n.get(r)}})}var he=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function ge(e){return"string"==typeof e&&!e.includes("-")&&!!(he.indexOf(e)>-1||/[A-Z]/.test(e))}var Oe={},ye=["","X","Y","Z"],je=["transformPerspective","x","y","z"];function Ee(e,t){return je.indexOf(e)-je.indexOf(t)}["translate","scale","rotate","skew"].forEach((function(e){return ye.forEach((function(t){return je.push(e+t)}))}));var _e=new Set(je);function we(e){return _e.has(e)}var Se=new Set(["originX","originY","originZ"]);function xe(e){return Se.has(e)}function Pe(e,t){var n=t.layout,r=t.layoutId;return we(e)||xe(e)||(n||void 0!==r)&&(!!Oe[e]||"opacity"===e)}var ke=function(e){return null!==e&&"object"==typeof e&&e.getVelocity},Te={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function Ce(e){return e.startsWith("--")}var Ae=function(e,t){return t&&"number"==typeof e?t.transform(e):e},Me=function(e,t){return function(n){return Math.max(Math.min(n,t),e)}},Be=function(e){return e%1?Number(e.toFixed(5)):e},Ie=/(-)?([\d]*\.?[\d])+/g,Le=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,Ne=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function De(e){return"string"==typeof e}var Re=function(e){return{test:function(t){return De(t)&&t.endsWith(e)&&1===t.split(" ").length},parse:parseFloat,transform:function(t){return""+t+e}}},Ve=Re("deg"),Fe=Re("%"),Ue=Re("px"),Ge=Re("vh"),He=Re("vw"),ze=V(V({},Fe),{parse:function(e){return Fe.parse(e)/100},transform:function(e){return Fe.transform(100*e)}}),We={test:function(e){return"number"==typeof e},parse:parseFloat,transform:function(e){return e}},Ye=V(V({},We),{transform:Me(0,1)}),Xe=V(V({},We),{default:1}),qe=V(V({},We),{transform:Math.round}),Ke={borderWidth:Ue,borderTopWidth:Ue,borderRightWidth:Ue,borderBottomWidth:Ue,borderLeftWidth:Ue,borderRadius:Ue,radius:Ue,borderTopLeftRadius:Ue,borderTopRightRadius:Ue,borderBottomRightRadius:Ue,borderBottomLeftRadius:Ue,width:Ue,maxWidth:Ue,height:Ue,maxHeight:Ue,size:Ue,top:Ue,right:Ue,bottom:Ue,left:Ue,padding:Ue,paddingTop:Ue,paddingRight:Ue,paddingBottom:Ue,paddingLeft:Ue,margin:Ue,marginTop:Ue,marginRight:Ue,marginBottom:Ue,marginLeft:Ue,rotate:Ve,rotateX:Ve,rotateY:Ve,rotateZ:Ve,scale:Xe,scaleX:Xe,scaleY:Xe,scaleZ:Xe,skew:Ve,skewX:Ve,skewY:Ve,distance:Ue,translateX:Ue,translateY:Ue,translateZ:Ue,x:Ue,y:Ue,z:Ue,perspective:Ue,transformPerspective:Ue,opacity:Ye,originX:ze,originY:ze,originZ:Ue,zIndex:qe,fillOpacity:Ye,strokeOpacity:Ye,numOctaves:qe};function $e(e,t,n,r,o,a,i,c){var s,l=e.style,u=e.vars,d=e.transform,p=e.transformKeys,m=e.transformOrigin;p.length=0;var b=!1,f=!1,v=!0;for(var h in t){var g=t[h];if(Ce(h))u[h]=g;else{var O=Ke[h],y=Ae(g,O);if(we(h)){if(b=!0,d[h]=y,p.push(h),!v)continue;g!==(null!==(s=O.default)&&void 0!==s?s:0)&&(v=!1)}else if(xe(h))m[h]=y,f=!0;else if((null==n?void 0:n.isHydrated)&&(null==r?void 0:r.isHydrated)&&Oe[h]){var j=Oe[h].process(g,r,n),E=Oe[h].applyTo;if(E)for(var _=E.length,w=0;w<_;w++)l[E[w]]=j;else l[h]=j}else l[h]=y}}r&&n&&i&&c?(l.transform=i(r.deltaFinal,r.treeScale,b?d:void 0),a&&(l.transform=a(d,l.transform)),l.transformOrigin=c(r)):(b&&(l.transform=function(e,t,n,r){var o=e.transform,a=e.transformKeys,i=t.enableHardwareAcceleration,c=void 0===i||i,s=t.allowTransformNone,l=void 0===s||s,u="";a.sort(Ee);for(var d=!1,p=a.length,m=0;m<p;m++){var b=a[m];u+=(Te[b]||b)+"("+o[b]+") ","z"===b&&(d=!0)}return!d&&c?u+="translateZ(0)":u=u.trim(),r?u=r(o,n?"":u):l&&n&&(u="none"),u}(e,o,v,a)),f&&(l.transformOrigin=function(e){var t=e.originX,n=void 0===t?"50%":t,r=e.originY,o=void 0===r?"50%":r,a=e.originZ;return n+" "+o+" "+(void 0===a?0:a)}(m)))}function Ze(e,t,n){for(var r in t)ke(t[r])||Pe(r,n)||(e[r]=t[r])}function Qe(e,t,n){var r={},o=function(e,t,n){var r={};return Ze(r,e.style||{},e),Object.assign(r,function(e,t,n){var r=e.transformTemplate;return Object(H.useMemo)((function(){var e={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};$e(e,t,void 0,void 0,{enableHardwareAcceleration:!n},r);var o=e.style;return V(V({},e.vars),o)}),[t])}(e,t,n)),e.transformValues&&(r=e.transformValues(r)),r}(e,t,n);return Boolean(e.drag)&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),r.style=o,r}var Je=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","_layoutResetTransform","onLayoutAnimationComplete","onViewportBoxUpdate","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover"]);function et(e){return Je.has(e)}var tt=function(e){return!et(e)};try{var nt=n(535).default;tt=function(e){return e.startsWith("on")?!et(e):nt(e)}}catch(e){}function rt(e,t,n){return"string"==typeof e?e:Ue.transform(t+n*e)}var ot=function(e,t){return Ue.transform(e*t)},at={offset:"stroke-dashoffset",array:"stroke-dasharray"},it={offset:"strokeDashoffset",array:"strokeDasharray"};function ct(e,t,n,r,o,a,i,c){var s=t.attrX,l=t.attrY,u=t.originX,d=t.originY,p=t.pathLength,m=t.pathSpacing,b=void 0===m?1:m,f=t.pathOffset,v=void 0===f?0:f;$e(e,F(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]),n,r,o,a,i,c),e.attrs=e.style,e.style={};var h=e.attrs,g=e.style,O=e.dimensions,y=e.totalPathLength;h.transform&&(O&&(g.transform=h.transform),delete h.transform),O&&(void 0!==u||void 0!==d||g.transform)&&(g.transformOrigin=function(e,t,n){return rt(t,e.x,e.width)+" "+rt(n,e.y,e.height)}(O,void 0!==u?u:.5,void 0!==d?d:.5)),void 0!==s&&(h.x=s),void 0!==l&&(h.y=l),void 0!==y&&void 0!==p&&function(e,t,n,r,o,a){void 0===r&&(r=1),void 0===o&&(o=0),void 0===a&&(a=!0);var i=a?at:it;e[i.offset]=ot(-o,t);var c=ot(n,t),s=ot(r,t);e[i.array]=c+" "+s}(h,y,p,b,v,!1)}var st=function(){return V(V({},{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}),{attrs:{}})};function lt(e,t){var n=Object(H.useMemo)((function(){var n=st();return ct(n,t,void 0,void 0,{enableHardwareAcceleration:!1},e.transformTemplate),V(V({},n.attrs),{style:V({},n.style)})}),[t]);if(e.style){var r={};Ze(r,e.style,e),n.style=V(V({},r),n.style)}return n}function ut(e){return void 0===e&&(e=!1),function(t,n,r,o,a){var i=o.latestValues,c=(ge(t)?lt:Qe)(n,i,a),s=function(e,t,n){var r={};for(var o in e)(tt(o)||!0===n&&et(o)||!t&&!et(o))&&(r[o]=e[o]);return r}(n,"string"==typeof t,e),l=V(V(V({},s),c),{ref:r});return Object(H.createElement)(t,l)}}var dt=/([a-z])([A-Z])/g,pt=function(e){return e.replace(dt,"$1-$2").toLowerCase()};function mt(e,t){var n=t.style,r=t.vars;for(var o in Object.assign(e.style,n),r)e.style.setProperty(o,r[o])}var bt=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform"]);function ft(e,t){for(var n in mt(e,t),t.attrs)e.setAttribute(bt.has(n)?n:pt(n),t.attrs[n])}function vt(e){var t=e.style,n={};for(var r in t)(ke(t[r])||Pe(r,e))&&(n[r]=t[r]);return n}function ht(e){var t=vt(e);for(var n in e)ke(e[n])&&(t["x"===n||"y"===n?"attr"+n.toUpperCase():n]=e[n]);return t}function gt(e){return"object"==typeof e&&"function"==typeof e.start}var Ot=function(e){return Array.isArray(e)};function yt(e,t,n,r){var o=e.scrapeMotionValuesFromProps,a=e.createRenderState,i=e.onMount,c={latestValues:Et(t,n,r,o),renderState:a()};return i&&(c.mount=function(e){return i(t,e,c)}),c}var jt=function(e){return function(t,n){var r=Object(H.useContext)(Z),o=Object(H.useContext)(Q);return n?yt(e,t,r,o):J((function(){return yt(e,t,r,o)}))}};function Et(e,t,n,r){var o,a,i,c={},s=!1===(null==n?void 0:n.initial),l=r(e);for(var u in l)c[u]=(o=l[u],a=void 0,i=void 0,i=ke(o)?o.get():o,a=i,Boolean(a&&"object"==typeof a&&a.mix&&a.toValue)?i.toValue():i);var d=e.initial,p=e.animate,m=pe(e),b=me(e);t&&b&&!m&&!1!==e.inherit&&(null!=d||(d=t.initial),null!=p||(p=t.animate));var f=s||!1===d?p:d;return f&&"boolean"!=typeof f&&!gt(f)&&(Array.isArray(f)?f:[f]).forEach((function(t){var n=ue(e,t);if(n){var r=n.transitionEnd;n.transition;var o=F(n,["transitionEnd","transition"]);for(var a in o)c[a]=o[a];for(var a in r)c[a]=r[a]}})),c}var _t,wt={useVisualState:jt({scrapeMotionValuesFromProps:ht,createRenderState:st,onMount:function(e,t,n){var r=n.renderState,o=n.latestValues;try{r.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){r.dimensions={x:0,y:0,width:0,height:0}}"path"===t.tagName&&(r.totalPathLength=t.getTotalLength()),ct(r,o,void 0,void 0,{enableHardwareAcceleration:!1},e.transformTemplate),ft(t,r)}})},St={useVisualState:jt({scrapeMotionValuesFromProps:vt,createRenderState:function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}}})};function xt(e,t,n,r){return e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n,r)}}function Pt(e,t,n,r){Object(H.useEffect)((function(){var o=e.current;if(n&&o)return xt(o,t,n,r)}),[e,t,n,r])}function kt(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function Tt(e){return!!e.touches}!function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.Exit="exit"}(_t||(_t={}));var Ct={pageX:0,pageY:0};function At(e,t){void 0===t&&(t="page");var n=e.touches[0]||e.changedTouches[0]||Ct;return{x:n[t+"X"],y:n[t+"Y"]}}function Mt(e,t){return void 0===t&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function Bt(e,t){return void 0===t&&(t="page"),{point:Tt(e)?At(e,t):Mt(e,t)}}var It=function(e,t){void 0===t&&(t=!1);var n,r=function(t){return e(t,Bt(t))};return t?(n=r,function(e){var t=e instanceof MouseEvent;(!t||t&&0===e.button)&&n(e)}):r},Lt={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},Nt={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function Dt(e){return ae&&null===window.onpointerdown?e:ae&&null===window.ontouchstart?Nt[e]:ae&&null===window.onmousedown?Lt[e]:e}function Rt(e,t,n,r){return xt(e,Dt(t),It(n,"pointerdown"===t),r)}function Vt(e,t,n,r){return Pt(e,Dt(t),n&&It(n,"pointerdown"===t),r)}function Ft(e){var t=null;return function(){return null===t&&(t=e,function(){t=null})}}var Ut=Ft("dragHorizontal"),Gt=Ft("dragVertical");function Ht(e){var t=!1;if("y"===e)t=Gt();else if("x"===e)t=Ut();else{var n=Ut(),r=Gt();n&&r?t=function(){n(),r()}:(n&&n(),r&&r())}return t}function zt(){var e=Ht(!0);return!e||(e(),!1)}function Wt(e,t,n){return function(r,o){var a;kt(r)&&!zt()&&(null==n||n(r,o),null===(a=e.animationState)||void 0===a||a.setActive(_t.Hover,t))}}var Yt=function(e,t){return!!t&&(e===t||Yt(e,t.parentElement))};function Xt(e){return Object(H.useEffect)((function(){return function(){return e()}}),[])}var qt=function(e,t){return function(n){return t(e(n))}},Kt=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.reduce(qt)},$t=function(e){return function(t){return e(t),null}},Zt={tap:$t((function(e){var t=e.onTap,n=e.onTapStart,r=e.onTapCancel,o=e.whileTap,a=e.visualElement,i=t||n||r||o,c=Object(H.useRef)(!1),s=Object(H.useRef)(null);function l(){var e;null===(e=s.current)||void 0===e||e.call(s),s.current=null}function u(){var e;return l(),c.current=!1,null===(e=a.animationState)||void 0===e||e.setActive(_t.Tap,!1),!zt()}function d(e,n){u()&&(Yt(a.getInstance(),e.target)?null==t||t(e,n):null==r||r(e,n))}function p(e,t){u()&&(null==r||r(e,t))}Vt(a,"pointerdown",i?function(e,t){var r;l(),c.current||(c.current=!0,s.current=Kt(Rt(window,"pointerup",d),Rt(window,"pointercancel",p)),null==n||n(e,t),null===(r=a.animationState)||void 0===r||r.setActive(_t.Tap,!0))}:void 0),Xt(l)})),focus:$t((function(e){var t=e.whileFocus,n=e.visualElement;Pt(n,"focus",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(_t.Focus,!0)}:void 0),Pt(n,"blur",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(_t.Focus,!1)}:void 0)})),hover:$t((function(e){var t=e.onHoverStart,n=e.onHoverEnd,r=e.whileHover,o=e.visualElement;Vt(o,"pointerenter",t||r?Wt(o,!0,t):void 0),Vt(o,"pointerleave",n||r?Wt(o,!1,n):void 0)}))};function Qt(e,t){if(!Array.isArray(t))return!1;var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var Jt=function(e,t,n){return Math.min(Math.max(n,e),t)};function en(e,t){return e*Math.sqrt(1-t*t)}var tn=["duration","bounce"],nn=["stiffness","damping","mass"];function rn(e,t){return t.some((function(t){return void 0!==e[t]}))}function on(e){var t=e.from,n=void 0===t?0:t,r=e.to,o=void 0===r?1:r,a=e.restSpeed,i=void 0===a?2:a,c=e.restDelta,s=F(e,["from","to","restSpeed","restDelta"]),l={done:!1,value:n},u=function(e){var t=V({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!rn(e,nn)&&rn(e,tn)){var n=function(e){var t,n,r=e.duration,o=void 0===r?800:r,a=e.bounce,i=void 0===a?.25:a,c=e.velocity,s=void 0===c?0:c,l=e.mass,u=void 0===l?1:l,d=1-i;d=Jt(.05,1,d),o=Jt(.01,10,o/1e3),d<1?(t=function(e){var t=e*d,n=t*o;return.001-(t-s)/en(e,d)*Math.exp(-n)},n=function(e){var n=e*d*o,r=n*s+s,a=Math.pow(d,2)*Math.pow(e,2)*o,i=Math.exp(-n),c=en(Math.pow(e,2),d);return(.001-t(e)>0?-1:1)*((r-a)*i)/c}):(t=function(e){return Math.exp(-e*o)*((e-s)*o+1)-.001},n=function(e){return Math.exp(-e*o)*(o*o*(s-e))});var p=function(e,t,n){for(var r=n,o=1;o<12;o++)r-=e(r)/t(r);return r}(t,n,5/o);if(o*=1e3,isNaN(p))return{stiffness:100,damping:10,duration:o};var m=Math.pow(p,2)*u;return{stiffness:m,damping:2*d*Math.sqrt(u*m),duration:o}}(e);(t=V(V(V({},t),n),{velocity:0,mass:1})).isResolvedFromDuration=!0}return t}(s),d=u.stiffness,p=u.damping,m=u.mass,b=u.velocity,f=u.duration,v=u.isResolvedFromDuration,h=an,g=an;function O(){var e=b?-b/1e3:0,t=o-n,r=p/(2*Math.sqrt(d*m)),a=Math.sqrt(d/m)/1e3;if(null!=c||(c=Math.abs(o-n)<=1?.01:.4),r<1){var i=en(a,r);h=function(n){var c=Math.exp(-r*a*n);return o-c*((e+r*a*t)/i*Math.sin(i*n)+t*Math.cos(i*n))},g=function(n){var o=Math.exp(-r*a*n);return r*a*o*(Math.sin(i*n)*(e+r*a*t)/i+t*Math.cos(i*n))-o*(Math.cos(i*n)*(e+r*a*t)-i*t*Math.sin(i*n))}}else if(1===r)h=function(n){return o-Math.exp(-a*n)*(t+(e+a*t)*n)};else{var s=a*Math.sqrt(r*r-1);h=function(n){var i=Math.exp(-r*a*n),c=Math.min(s*n,300);return o-i*((e+r*a*t)*Math.sinh(c)+s*t*Math.cosh(c))/s}}}return O(),{next:function(e){var t=h(e);if(v)l.done=e>=f;else{var n=1e3*g(e),r=Math.abs(n)<=i,a=Math.abs(o-t)<=c;l.done=r&&a}return l.value=l.done?o:t,l},flipTarget:function(){var e;b=-b,n=(e=[o,n])[0],o=e[1],O()}}}on.needsInterpolation=function(e,t){return"string"==typeof e||"string"==typeof t};var an=function(e){return 0},cn=function(e,t,n){var r=t-e;return 0===r?1:(n-e)/r},sn=function(e,t,n){return-n*e+n*t+e},ln=function(e,t){return function(n){return Boolean(De(n)&&Ne.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t))}},un=function(e,t,n){return function(r){var o;if(!De(r))return r;var a=r.match(Ie),i=a[0],c=a[1],s=a[2],l=a[3];return(o={})[e]=parseFloat(i),o[t]=parseFloat(c),o[n]=parseFloat(s),o.alpha=void 0!==l?parseFloat(l):1,o}},dn=Me(0,255),pn=V(V({},We),{transform:function(e){return Math.round(dn(e))}}),mn={test:ln("rgb","red"),parse:un("red","green","blue"),transform:function(e){var t=e.red,n=e.green,r=e.blue,o=e.alpha,a=void 0===o?1:o;return"rgba("+pn.transform(t)+", "+pn.transform(n)+", "+pn.transform(r)+", "+Be(Ye.transform(a))+")"}},bn={test:ln("#"),parse:function(e){var t="",n="",r="",o="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),o=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),o=e.substr(4,1),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:mn.transform},fn={test:ln("hsl","hue"),parse:un("hue","saturation","lightness"),transform:function(e){var t=e.hue,n=e.saturation,r=e.lightness,o=e.alpha,a=void 0===o?1:o;return"hsla("+Math.round(t)+", "+Fe.transform(Be(n))+", "+Fe.transform(Be(r))+", "+Be(Ye.transform(a))+")"}},vn=function(e,t,n){var r=e*e,o=t*t;return Math.sqrt(Math.max(0,n*(o-r)+r))},hn=[bn,mn,fn],gn=function(e){return hn.find((function(t){return t.test(e)}))},On=function(e){return"'"+e+"' is not an animatable color. Use the equivalent color code instead."},yn=function(e,t){var n=gn(e),r=gn(t);On(e),On(t),n.transform,r.transform;var o=n.parse(e),a=r.parse(t),i=V({},o),c=n===fn?sn:vn;return function(e){for(var t in i)"alpha"!==t&&(i[t]=c(o[t],a[t],e));return i.alpha=sn(o.alpha,a.alpha,e),n.transform(i)}},jn={test:function(e){return mn.test(e)||bn.test(e)||fn.test(e)},parse:function(e){return mn.test(e)?mn.parse(e):fn.test(e)?fn.parse(e):bn.parse(e)},transform:function(e){return De(e)?e:e.hasOwnProperty("red")?mn.transform(e):fn.transform(e)}};function En(e){var t=[],n=0,r=e.match(Le);r&&(n=r.length,e=e.replace(Le,"${c}"),t.push.apply(t,r.map(jn.parse)));var o=e.match(Ie);return o&&(e=e.replace(Ie,"${n}"),t.push.apply(t,o.map(We.parse))),{values:t,numColors:n,tokenised:e}}function wn(e){return En(e).values}function Sn(e){var t=En(e),n=t.values,r=t.numColors,o=t.tokenised,a=n.length;return function(e){for(var t=o,n=0;n<a;n++)t=t.replace(n<r?"${c}":"${n}",n<r?jn.transform(e[n]):Be(e[n]));return t}}var xn=function(e){return"number"==typeof e?0:e},Pn={test:function(e){var t,n,r,o;return isNaN(e)&&De(e)&&(null!==(n=null===(t=e.match(Ie))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(o=null===(r=e.match(Le))||void 0===r?void 0:r.length)&&void 0!==o?o:0)>0},parse:wn,createTransformer:Sn,getAnimatableNone:function(e){var t=wn(e);return Sn(e)(t.map(xn))}},kn=function(e){return"number"==typeof e};function Tn(e,t){return kn(e)?function(n){return sn(e,t,n)}:jn.test(e)?yn(e,t):Bn(e,t)}var Cn=function(e,t){var n=G([],e),r=n.length,o=e.map((function(e,n){return Tn(e,t[n])}));return function(e){for(var t=0;t<r;t++)n[t]=o[t](e);return n}},An=function(e,t){var n=V(V({},e),t),r={};for(var o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=Tn(e[o],t[o]));return function(e){for(var t in r)n[t]=r[t](e);return n}};function Mn(e){for(var t=Pn.parse(e),n=t.length,r=0,o=0,a=0,i=0;i<n;i++)r||"number"==typeof t[i]?r++:void 0!==t[i].hue?a++:o++;return{parsed:t,numNumbers:r,numRGB:o,numHSL:a}}var Bn=function(e,t){var n=Pn.createTransformer(t),r=Mn(e),o=Mn(t);return r.numHSL===o.numHSL&&r.numRGB===o.numRGB&&(r.numNumbers,o.numNumbers),Kt(Cn(r.parsed,o.parsed),n)},In=function(e,t){return function(n){return sn(e,t,n)}};function Ln(e,t,n){var r=void 0===n?{}:n,o=r.clamp,a=void 0===o||o,i=r.ease,c=r.mixer,s=e.length;t.length,!i||!Array.isArray(i)||i.length,e[0]>e[s-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());var l=function(e,t,n){for(var r,o=[],a=n||("number"==typeof(r=e[0])?In:"string"==typeof r?jn.test(r)?yn:Bn:Array.isArray(r)?Cn:"object"==typeof r?An:void 0),i=e.length-1,c=0;c<i;c++){var s=a(e[c],e[c+1]);if(t){var l=Array.isArray(t)?t[c]:t;s=Kt(l,s)}o.push(s)}return o}(t,i,c),u=2===s?function(e,t){var n=e[0],r=e[1],o=t[0];return function(e){return o(cn(n,r,e))}}(e,l):function(e,t){var n=e.length,r=n-1;return function(o){var a=0,i=!1;if(o<=e[0]?i=!0:o>=e[r]&&(a=r-1,i=!0),!i){for(var c=1;c<n&&!(e[c]>o||c===r);c++);a=c-1}var s=cn(e[a],e[a+1],o);return t[a](s)}}(e,l);return a?function(t){return u(Jt(e[0],e[s-1],t))}:u}var Nn,Dn=function(e){return function(t){return 1-e(1-t)}},Rn=function(e){return function(t){return t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2}},Vn=function(e){return function(t){return t*t*((e+1)*t-e)}},Fn=function(e){return e},Un=(2,function(e){return Math.pow(e,2)}),Gn=Dn(Un),Hn=Rn(Un),zn=function(e){return 1-Math.sin(Math.acos(e))},Wn=Dn(zn),Yn=Rn(Wn),Xn=Vn(1.525),qn=Dn(Xn),Kn=Rn(Xn),$n=(Nn=Vn(1.525),function(e){return(e*=2)<1?.5*Nn(e):.5*(2-Math.pow(2,-10*(e-1)))}),Zn=function(e){if(1===e||0===e)return e;var t=e*e;return e<4/11?7.5625*t:e<8/11?9.075*t-9.9*e+3.4:e<.9?4356/361*t-35442/1805*e+16061/1805:10.8*e*e-20.52*e+10.72},Qn=Dn(Zn);function Jn(e,t){return e.map((function(){return t||Hn})).splice(0,e.length-1)}function er(e){var t=e.from,n=void 0===t?0:t,r=e.to,o=void 0===r?1:r,a=e.ease,i=e.offset,c=e.duration,s=void 0===c?300:c,l={done:!1,value:n},u=Array.isArray(o)?o:[n,o],d=function(e,t){return e.map((function(e){return e*t}))}(i&&i.length===u.length?i:function(e){var t=e.length;return e.map((function(e,n){return 0!==n?n/(t-1):0}))}(u),s);function p(){return Ln(d,u,{ease:Array.isArray(a)?a:Jn(u,a)})}var m=p();return{next:function(e){return l.value=m(e),l.done=e>=s,l},flipTarget:function(){u.reverse(),m=p()}}}var tr={keyframes:er,spring:on,decay:function(e){var t=e.velocity,n=void 0===t?0:t,r=e.from,o=void 0===r?0:r,a=e.power,i=void 0===a?.8:a,c=e.timeConstant,s=void 0===c?350:c,l=e.restDelta,u=void 0===l?.5:l,d=e.modifyTarget,p={done:!1,value:o},m=i*n,b=o+m,f=void 0===d?b:d(b);return f!==b&&(m=f-o),{next:function(e){var t=-m*Math.exp(-e/s);return p.done=!(t>u||t<-u),p.value=p.done?f:f+t,p},flipTarget:function(){}}}},nr="undefined"!=typeof performance?function(){return performance.now()}:function(){return Date.now()},rr="undefined"!=typeof window?function(e){return window.requestAnimationFrame(e)}:function(e){return setTimeout((function(){return e(nr())}),1/60*1e3)},or=!0,ar=!1,ir=!1,cr={delta:0,timestamp:0},sr=["read","update","preRender","render","postRender"],lr=sr.reduce((function(e,t){return e[t]=function(e){var t=[],n=[],r=0,o=!1,a=new WeakSet,i={schedule:function(e,i,c){void 0===i&&(i=!1),void 0===c&&(c=!1);var s=c&&o,l=s?t:n;return i&&a.add(e),-1===l.indexOf(e)&&(l.push(e),s&&o&&(r=t.length)),e},cancel:function(e){var t=n.indexOf(e);-1!==t&&n.splice(t,1),a.delete(e)},process:function(c){var s;if(o=!0,t=(s=[n,t])[0],(n=s[1]).length=0,r=t.length)for(var l=0;l<r;l++){var u=t[l];u(c),a.has(u)&&(i.schedule(u),e())}o=!1}};return i}((function(){return ar=!0})),e}),{}),ur=sr.reduce((function(e,t){var n=lr[t];return e[t]=function(e,t,r){return void 0===t&&(t=!1),void 0===r&&(r=!1),ar||fr(),n.schedule(e,t,r)},e}),{}),dr=sr.reduce((function(e,t){return e[t]=lr[t].cancel,e}),{}),pr=sr.reduce((function(e,t){return e[t]=function(){return lr[t].process(cr)},e}),{}),mr=function(e){return lr[e].process(cr)},br=function(e){ar=!1,cr.delta=or?1/60*1e3:Math.max(Math.min(e-cr.timestamp,40),1),cr.timestamp=e,ir=!0,sr.forEach(mr),ir=!1,ar&&(or=!1,rr(br))},fr=function(){ar=!0,or=!0,ir||rr(br)},vr=function(){return cr},hr=ur;function gr(e,t,n){return void 0===n&&(n=0),e-t-n}var Or=function(e){var t=function(t){var n=t.delta;return e(n)};return{start:function(){return hr.update(t,!0)},stop:function(){return dr.update(t)}}};function yr(e){var t,n,r,o,a,i=e.from,c=e.autoplay,s=void 0===c||c,l=e.driver,u=void 0===l?Or:l,d=e.elapsed,p=void 0===d?0:d,m=e.repeat,b=void 0===m?0:m,f=e.repeatType,v=void 0===f?"loop":f,h=e.repeatDelay,g=void 0===h?0:h,O=e.onPlay,y=e.onStop,j=e.onComplete,E=e.onRepeat,_=e.onUpdate,w=F(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]),S=w.to,x=0,P=w.duration,k=!1,T=!0,C=function(e){if(Array.isArray(e.to))return er;if(tr[e.type])return tr[e.type];var t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?er:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?on:er}(w);(null===(n=(t=C).needsInterpolation)||void 0===n?void 0:n.call(t,i,S))&&(a=Ln([0,100],[i,S],{clamp:!1}),i=0,S=100);var A=C(V(V({},w),{from:i,to:S}));return s&&(null==O||O(),(r=u((function(e){if(T||(e=-e),p+=e,!k){var t=A.next(Math.max(0,p));o=t.value,a&&(o=a(o)),k=T?t.done:p<=0}null==_||_(o),k&&(0===x&&(null!=P||(P=p)),x<b?function(e,t,n,r){return r?e>=t+n:e<=-n}(p,P,g,T)&&(x++,"reverse"===v?p=function(e,t,n,r){return void 0===n&&(n=0),void 0===r&&(r=!0),r?gr(t+-e,t,n):t-(e-t)+n}(p,P,g,T=x%2==0):(p=gr(p,P,g),"mirror"===v&&A.flipTarget()),k=!1,E&&E()):(r.stop(),j&&j()))}))).start()),{stop:function(){null==y||y(),r.stop()}}}function jr(e,t){return t?e*(1e3/t):0}var Er=function(e){return 1e3*e},_r=function(e,t){return 1-3*t+3*e},wr=function(e,t){return 3*t-6*e},Sr=function(e){return 3*e},xr=function(e,t,n){return((_r(t,n)*e+wr(t,n))*e+Sr(t))*e},Pr=function(e,t,n){return 3*_r(t,n)*e*e+2*wr(t,n)*e+Sr(t)};function kr(e,t,n,r){if(e===t&&n===r)return Fn;for(var o=new Float32Array(11),a=0;a<11;++a)o[a]=xr(.1*a,e,n);return function(a){return 0===a||1===a?a:xr(function(t){for(var r=0,a=1;10!==a&&o[a]<=t;++a)r+=.1;--a;var i=r+(t-o[a])/(o[a+1]-o[a])*.1,c=Pr(i,e,n);return c>=.001?function(e,t,n,r){for(var o=0;o<8;++o){var a=Pr(t,n,r);if(0===a)return t;t-=(xr(t,n,r)-e)/a}return t}(t,i,e,n):0===c?i:function(e,t,n,r,o){var a,i,c=0;do{(a=xr(i=t+(n-t)/2,r,o)-e)>0?n=i:t=i}while(Math.abs(a)>1e-7&&++c<10);return i}(t,r,r+.1,e,n)}(a),t,r)}}var Tr={linear:Fn,easeIn:Un,easeInOut:Hn,easeOut:Gn,circIn:zn,circInOut:Yn,circOut:Wn,backIn:Xn,backInOut:Kn,backOut:qn,anticipate:$n,bounceIn:Qn,bounceInOut:function(e){return e<.5?.5*(1-Zn(1-2*e)):.5*Zn(2*e-1)+.5},bounceOut:Zn},Cr=function(e){if(Array.isArray(e)){e.length;var t=U(e,4);return kr(t[0],t[1],t[2],t[3])}return"string"==typeof e?Tr[e]:e},Ar=function(e,t){return!("zIndex"===e||"number"!=typeof t&&!Array.isArray(t)&&("string"!=typeof t||!Pn.test(t)||t.startsWith("url(")))},Mr=function(){return{type:"spring",stiffness:500,damping:25,restDelta:.5,restSpeed:10}},Br=function(e){return{type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restDelta:.01,restSpeed:10}},Ir=function(){return{type:"keyframes",ease:"linear",duration:.3}},Lr=function(e){return{type:"keyframes",duration:.8,values:e}},Nr={x:Mr,y:Mr,z:Mr,rotate:Mr,rotateX:Mr,rotateY:Mr,rotateZ:Mr,scaleX:Br,scaleY:Br,scale:Br,opacity:Ir,backgroundColor:Ir,color:Ir,default:Br},Dr=new Set(["brightness","contrast","saturate","opacity"]);function Rr(e){var t=e.slice(0,-1).split("("),n=t[0],r=t[1];if("drop-shadow"===n)return e;var o=(r.match(Ie)||[])[0];if(!o)return e;var a=r.replace(o,""),i=Dr.has(n)?1:0;return o!==r&&(i*=100),n+"("+i+a+")"}var Vr=/([a-z-]*)\(.*?\)/g,Fr=V(V({},Pn),{getAnimatableNone:function(e){var t=e.match(Vr);return t?t.map(Rr).join(" "):e}}),Ur=V(V({},Ke),{color:jn,backgroundColor:jn,outlineColor:jn,fill:jn,stroke:jn,borderColor:jn,borderTopColor:jn,borderRightColor:jn,borderBottomColor:jn,borderLeftColor:jn,filter:Fr,WebkitFilter:Fr}),Gr=function(e){return Ur[e]};function Hr(e,t){var n,r=Gr(e);return r!==Fr&&(r=Pn),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}function zr(e,t,n){var r,o,a,i;return Array.isArray(t.to)&&(null!==(r=e.duration)&&void 0!==r||(e.duration=.8)),function(e){Array.isArray(e.to)&&null===e.to[0]&&(e.to=G([],U(e.to)),e.to[0]=e.from)}(t),function(e){e.when,e.delay,e.delayChildren,e.staggerChildren,e.staggerDirection,e.repeat,e.repeatType,e.repeatDelay,e.from;var t=F(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}(e)||(e=V(V({},e),(o=n,a=t.to,i=Ot(a)?Lr:Nr[o]||Nr.default,V({to:a},i(a))))),V(V({},t),function(e){var t=e.ease,n=e.times,r=e.yoyo,o=e.flip,a=e.loop,i=F(e,["ease","times","yoyo","flip","loop"]),c=V({},i);return n&&(c.offset=n),i.duration&&(c.duration=Er(i.duration)),i.repeatDelay&&(c.repeatDelay=Er(i.repeatDelay)),t&&(c.ease=function(e){return Array.isArray(e)&&"number"!=typeof e[0]}(t)?t.map(Cr):Cr(t)),"tween"===i.type&&(c.type="keyframes"),(r||a||o)&&(r?c.repeatType="reverse":a?c.repeatType="loop":o&&(c.repeatType="mirror"),c.repeat=a||r||o||i.repeat),"spring"!==i.type&&(c.type="keyframes"),c}(e))}function Wr(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function Yr(e){return"number"==typeof e?0:Hr("",e)}function Xr(e,t){return e[t]||e.default||e}function qr(e,t,n,r){return void 0===r&&(r={}),t.start((function(o){var a,i,c=function(e,t,n,r,o){var a,i=Xr(r,e),c=null!==(a=i.from)&&void 0!==a?a:t.get(),s=Ar(e,n);return"none"===c&&s&&"string"==typeof n?c=Hr(e,n):Wr(c)&&"string"==typeof n?c=Yr(n):!Array.isArray(n)&&Wr(n)&&"string"==typeof c&&(n=Yr(c)),Ar(e,c)&&s&&!1!==i.type?function(){var r={from:c,to:n,velocity:t.getVelocity(),onComplete:o,onUpdate:function(e){return t.set(e)}};return"inertia"===i.type||"decay"===i.type?function(e){var t,n=e.from,r=void 0===n?0:n,o=e.velocity,a=void 0===o?0:o,i=e.min,c=e.max,s=e.power,l=void 0===s?.8:s,u=e.timeConstant,d=void 0===u?750:u,p=e.bounceStiffness,m=void 0===p?500:p,b=e.bounceDamping,f=void 0===b?10:b,v=e.restDelta,h=void 0===v?1:v,g=e.modifyTarget,O=e.driver,y=e.onUpdate,j=e.onComplete;function E(e){return void 0!==i&&e<i||void 0!==c&&e>c}function _(e){return void 0===i?c:void 0===c||Math.abs(i-e)<Math.abs(c-e)?i:c}function w(e){null==t||t.stop(),t=yr(V(V({},e),{driver:O,onUpdate:function(t){var n;null==y||y(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:j}))}function S(e){w(V({type:"spring",stiffness:m,damping:f,restDelta:h},e))}if(E(r))S({from:r,velocity:a,to:_(r)});else{var x=l*a+r;void 0!==g&&(x=g(x));var P,k,T=_(x),C=T===i?-1:1;w({type:"decay",from:r,velocity:a,timeConstant:d,power:l,restDelta:h,modifyTarget:g,onUpdate:E(x)?function(e){P=k,k=e,a=jr(e-P,vr().delta),(1===C&&e>T||-1===C&&e<T)&&S({from:e,to:T,velocity:a})}:void 0})}return{stop:function(){return null==t?void 0:t.stop()}}}(V(V({},r),i)):yr(V(V({},zr(i,r,e)),{onUpdate:function(e){var t;r.onUpdate(e),null===(t=i.onUpdate)||void 0===t||t.call(i,e)},onComplete:function(){var e;r.onComplete(),null===(e=i.onComplete)||void 0===e||e.call(i)}}))}:function(){var e;return t.set(n),o(),null===(e=null==i?void 0:i.onComplete)||void 0===e||e.call(i),{stop:function(){}}}}(e,t,n,r,o),s=function(e,t){var n;return null!==(n=(Xr(e,t)||{}).delay)&&void 0!==n?n:0}(r,e),l=function(){return i=c()};return s?a=setTimeout(l,Er(s)):l(),function(){clearTimeout(a),null==i||i.stop()}}))}function Kr(e,t){-1===e.indexOf(t)&&e.push(t)}function $r(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Zr=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(e){var t=this;return Kr(this.subscriptions,e),function(){return $r(t.subscriptions,e)}},e.prototype.notify=function(e,t,n){var r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(var o=0;o<r;o++){var a=this.subscriptions[o];a&&a(e,t,n)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}(),Qr=function(){function e(e){var t,n=this;this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new Zr,this.velocityUpdateSubscribers=new Zr,this.renderSubscribers=new Zr,this.canTrackVelocity=!1,this.updateAndNotify=function(e,t){void 0===t&&(t=!0),n.prev=n.current,n.current=e;var r=vr(),o=r.delta,a=r.timestamp;n.lastUpdated!==a&&(n.timeDelta=o,n.lastUpdated=a,hr.postRender(n.scheduleVelocityCheck)),n.prev!==n.current&&n.updateSubscribers.notify(n.current),n.velocityUpdateSubscribers.getSize()&&n.velocityUpdateSubscribers.notify(n.getVelocity()),t&&n.renderSubscribers.notify(n.current)},this.scheduleVelocityCheck=function(){return hr.postRender(n.velocityCheck)},this.velocityCheck=function(e){e.timestamp!==n.lastUpdated&&(n.prev=n.current,n.velocityUpdateSubscribers.notify(n.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=(t=this.current,!isNaN(parseFloat(t)))}return e.prototype.onChange=function(e){return this.updateSubscribers.add(e)},e.prototype.clearListeners=function(){this.updateSubscribers.clear()},e.prototype.onRenderRequest=function(e){return e(this.get()),this.renderSubscribers.add(e)},e.prototype.attach=function(e){this.passiveEffect=e},e.prototype.set=function(e,t){void 0===t&&(t=!0),t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)},e.prototype.get=function(){return this.current},e.prototype.getPrevious=function(){return this.prev},e.prototype.getVelocity=function(){return this.canTrackVelocity?jr(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},e.prototype.start=function(e){var t=this;return this.stop(),new Promise((function(n){t.hasAnimated=!0,t.stopAnimation=e(n)})).then((function(){return t.clearAnimation()}))},e.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},e.prototype.isAnimating=function(){return!!this.stopAnimation},e.prototype.clearAnimation=function(){this.stopAnimation=null},e.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},e}();function Jr(e){return new Qr(e)}var eo=function(e){return function(t){return t.test(e)}},to=[We,Ue,Fe,Ve,He,Ge,{test:function(e){return"auto"===e},parse:function(e){return e}}],no=function(e){return to.find(eo(e))},ro=G(G([],U(to)),[jn,Pn]);function oo(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Jr(n))}function ao(e,t){if(t)return(t[e]||t.default||t).from}function io(e,t,n){var r;void 0===n&&(n={});var o=de(e,t,n.custom),a=(o||{}).transition,i=void 0===a?e.getDefaultTransition()||{}:a;n.transitionOverride&&(i=n.transitionOverride);var c=o?function(){return co(e,o,n)}:function(){return Promise.resolve()},s=(null===(r=e.variantChildren)||void 0===r?void 0:r.size)?function(r){void 0===r&&(r=0);var o=i.delayChildren,a=void 0===o?0:o,c=i.staggerChildren,s=i.staggerDirection;return function(e,t,n,r,o,a){void 0===n&&(n=0),void 0===r&&(r=0),void 0===o&&(o=1);var i=[],c=(e.variantChildren.size-1)*r,s=1===o?function(e){return void 0===e&&(e=0),e*r}:function(e){return void 0===e&&(e=0),c-e*r};return Array.from(e.variantChildren).sort(so).forEach((function(e,r){i.push(io(e,t,V(V({},a),{delay:n+s(r)})).then((function(){return e.notifyAnimationComplete(t)})))})),Promise.all(i)}(e,t,a+r,c,s,n)}:function(){return Promise.resolve()},l=i.when;if(l){var u=U("beforeChildren"===l?[c,s]:[s,c],2),d=u[0],p=u[1];return d().then(p)}return Promise.all([c(),s(n.delay)])}function co(e,t,n){var r,o=void 0===n?{}:n,a=o.delay,i=void 0===a?0:a,c=o.transitionOverride,s=o.type,l=e.makeTargetAnimatable(t),u=l.transition,d=void 0===u?e.getDefaultTransition():u,p=l.transitionEnd,m=F(l,["transition","transitionEnd"]);c&&(d=c);var b=[],f=s&&(null===(r=e.animationState)||void 0===r?void 0:r.getState()[s]);for(var v in m){var h=e.getValue(v),g=m[v];if(!(!h||void 0===g||f&&lo(f,v))){var O=qr(v,h,g,V({delay:i},d));b.push(O)}}return Promise.all(b).then((function(){p&&function(e,t){var n=de(e,t),r=n?e.makeTargetAnimatable(n,!1):{},o=r.transitionEnd,a=void 0===o?{}:o;r.transition;var i,c=F(r,["transitionEnd","transition"]);for(var s in c=V(V({},c),a))oo(e,s,(i=c[s],Ot(i)?i[i.length-1]||0:i))}(e,p)}))}function so(e,t){return e.sortNodePosition(t)}function lo(e,t){var n=e.protectedKeys,r=e.needsAnimating,o=n.hasOwnProperty(t)&&!0!==r[t];return r[t]=!1,o}var uo=[_t.Animate,_t.Hover,_t.Tap,_t.Drag,_t.Focus,_t.Exit],po=G([],U(uo)).reverse(),mo=uo.length;function bo(e){var t,n=function(e){return function(t){return Promise.all(t.map((function(t){var n=t.animation,r=t.options;return function(e,t,n){var r;if(void 0===n&&(n={}),e.notifyAnimationStart(),Array.isArray(t)){var o=t.map((function(t){return io(e,t,n)}));r=Promise.all(o)}else if("string"==typeof t)r=io(e,t,n);else{var a="function"==typeof t?de(e,t,n.custom):t;r=co(e,a,n)}return r.then((function(){return e.notifyAnimationComplete(t)}))}(e,n,r)})))}}(e),r=((t={})[_t.Animate]=fo(!0),t[_t.Hover]=fo(),t[_t.Tap]=fo(),t[_t.Drag]=fo(),t[_t.Focus]=fo(),t[_t.Exit]=fo(),t),o={},a=!0,i=function(t,n){var r=de(e,n);if(r){r.transition;var o=r.transitionEnd,a=F(r,["transition","transitionEnd"]);t=V(V(V({},t),a),o)}return t};function c(t,c){for(var s,l=e.getProps(),u=e.getVariantContext(!0)||{},d=[],p=new Set,m={},b=1/0,f=function(n){var o=po[n],f=r[o],v=null!==(s=l[o])&&void 0!==s?s:u[o],h=le(v),g=o===c?f.isActive:null;!1===g&&(b=n);var O=v===u[o]&&v!==l[o]&&h;if(O&&a&&e.manuallyAnimateOnMount&&(O=!1),f.protectedKeys=V({},m),!f.isActive&&null===g||!v&&!f.prevProp||gt(v)||"boolean"==typeof v)return"continue";var y=function(e,t){return"string"==typeof t?t!==e:!!se(t)&&!Qt(t,e)}(f.prevProp,v)||o===c&&f.isActive&&!O&&h||n>b&&h,j=Array.isArray(v)?v:[v],E=j.reduce(i,{});!1===g&&(E={});var _=f.prevResolvedValues,w=void 0===_?{}:_,S=V(V({},w),E),x=function(e){y=!0,p.delete(e),f.needsAnimating[e]=!0};for(var P in S){var k=E[P],T=w[P];m.hasOwnProperty(P)||(k!==T?Ot(k)&&Ot(T)?Qt(k,T)?f.protectedKeys[P]=!0:x(P):void 0!==k?x(P):p.add(P):void 0!==k&&p.has(P)?x(P):f.protectedKeys[P]=!0)}f.prevProp=v,f.prevResolvedValues=E,f.isActive&&(m=V(V({},m),E)),a&&e.blockInitialAnimation&&(y=!1),y&&!O&&d.push.apply(d,G([],U(j.map((function(e){return{animation:e,options:V({type:o},t)}})))))},v=0;v<mo;v++)f(v);if(o=V({},m),p.size){var h={};p.forEach((function(t){var n=e.getBaseTarget(t);void 0!==n&&(h[t]=n)})),d.push({animation:h})}var g=Boolean(d.length);return a&&!1===l.initial&&!e.manuallyAnimateOnMount&&(g=!1),a=!1,g?n(d):Promise.resolve()}return{isAnimated:function(e){return void 0!==o[e]},animateChanges:c,setActive:function(t,n,o){var a;return r[t].isActive===n?Promise.resolve():(null===(a=e.variantChildren)||void 0===a||a.forEach((function(e){var r;return null===(r=e.animationState)||void 0===r?void 0:r.setActive(t,n)})),r[t].isActive=n,c(o,t))},setAnimateFunction:function(t){n=t(e)},getState:function(){return r}}}function fo(e){return void 0===e&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var vo={animation:$t((function(e){var t=e.visualElement,n=e.animate;t.animationState||(t.animationState=bo(t)),gt(n)&&Object(H.useEffect)((function(){return n.subscribe(t)}),[n])})),exit:$t((function(e){var t=e.custom,n=e.visualElement,r=U(ee(),2),o=r[0],a=r[1],i=Object(H.useContext)(Q);Object(H.useEffect)((function(){var e,r,c=null===(e=n.animationState)||void 0===e?void 0:e.setActive(_t.Exit,!o,{custom:null!==(r=null==i?void 0:i.custom)&&void 0!==r?r:t});!o&&(null==c||c.then(a))}),[o])}))},ho=function(e){return e.hasOwnProperty("x")&&e.hasOwnProperty("y")},go=function(e){return ho(e)&&e.hasOwnProperty("z")},Oo=function(e,t){return Math.abs(e-t)};function yo(e,t){if(kn(e)&&kn(t))return Oo(e,t);if(ho(e)&&ho(t)){var n=Oo(e.x,t.x),r=Oo(e.y,t.y),o=go(e)&&go(t)?Oo(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(o,2))}}var jo=function(){function e(e,t,n){var r=this,o=(void 0===n?{}:n).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(r.lastMoveEvent&&r.lastMoveEventInfo){var e=wo(r.lastMoveEventInfo,r.history),t=null!==r.startEvent,n=yo(e.offset,{x:0,y:0})>=3;if(t||n){var o=e.point,a=vr().timestamp;r.history.push(V(V({},o),{timestamp:a}));var i=r.handlers,c=i.onStart,s=i.onMove;t||(c&&c(r.lastMoveEvent,e),r.startEvent=r.lastMoveEvent),s&&s(r.lastMoveEvent,e)}}},this.handlePointerMove=function(e,t){r.lastMoveEvent=e,r.lastMoveEventInfo=Eo(t,r.transformPagePoint),kt(e)&&0===e.buttons?r.handlePointerUp(e,t):hr.update(r.updatePoint,!0)},this.handlePointerUp=function(e,t){r.end();var n=r.handlers,o=n.onEnd,a=n.onSessionEnd,i=wo(Eo(t,r.transformPagePoint),r.history);r.startEvent&&o&&o(e,i),a&&a(e,i)},!(Tt(e)&&e.touches.length>1)){this.handlers=t,this.transformPagePoint=o;var a=Eo(Bt(e),this.transformPagePoint),i=a.point,c=vr().timestamp;this.history=[V(V({},i),{timestamp:c})];var s=t.onSessionStart;s&&s(e,wo(a,this.history)),this.removeListeners=Kt(Rt(window,"pointermove",this.handlePointerMove),Rt(window,"pointerup",this.handlePointerUp),Rt(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),dr.update(this.updatePoint)},e}();function Eo(e,t){return t?{point:t(e.point)}:e}function _o(e,t){return{x:e.x-t.x,y:e.y-t.y}}function wo(e,t){var n=e.point;return{point:n,delta:_o(n,xo(t)),offset:_o(n,So(t)),velocity:Po(t,.1)}}function So(e){return e[0]}function xo(e){return e[e.length-1]}function Po(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,o=xo(e);n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Er(t)));)n--;if(!r)return{x:0,y:0};var a=(o.timestamp-r.timestamp)/1e3;if(0===a)return{x:0,y:0};var i={x:(o.x-r.x)/a,y:(o.y-r.y)/a};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}function ko(e){return e}function To(e){var t=e.top;return{x:{min:e.left,max:e.right},y:{min:t,max:e.bottom}}}var Co={translate:0,scale:1,origin:0,originPoint:0};function Ao(){return{x:V({},Co),y:V({},Co)}}function Mo(e){return[e("x"),e("y")]}function Bo(e,t,n){var r=t.min,o=t.max;return void 0!==r&&e<r?e=n?sn(r,e,n.min):Math.max(e,r):void 0!==o&&e>o&&(e=n?sn(o,e,n.max):Math.min(e,o)),e}function Io(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function Lo(e,t){var n,r=t.min-e.min,o=t.max-e.max;return t.max-t.min<e.max-e.min&&(r=(n=U([o,r],2))[0],o=n[1]),{min:e.min+r,max:e.min+o}}function No(e,t,n){return{min:Do(e,t),max:Do(e,n)}}function Do(e,t){var n;return"number"==typeof e?e:null!==(n=e[t])&&void 0!==n?n:0}function Ro(e,t){return To(function(e,t){var n=e.top,r=e.left,o=e.bottom,a=e.right;void 0===t&&(t=ko);var i=t({x:r,y:n}),c=t({x:a,y:o});return{top:i.y,left:i.x,bottom:c.y,right:c.x}}(e.getBoundingClientRect(),t))}function Vo(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=.01),yo(e,t)<n}function Fo(e){return e.max-e.min}function Uo(e,t,n,r){void 0===r&&(r=.5),e.origin=r,e.originPoint=sn(t.min,t.max,e.origin),e.scale=Fo(n)/Fo(t),Vo(e.scale,1,1e-4)&&(e.scale=1),e.translate=sn(n.min,n.max,e.origin)-e.originPoint,Vo(e.translate)&&(e.translate=0)}function Go(e,t,n,r){Uo(e.x,t.x,n.x,Ho(r.originX)),Uo(e.y,t.y,n.y,Ho(r.originY))}function Ho(e){return"number"==typeof e?e:.5}function zo(e,t,n){e.min=n.min+t.min,e.max=e.min+Fo(t)}var Wo=function(e,t){return e.depth-t.depth};function Yo(e){return e.projection.isEnabled||e.shouldResetTransform()}function Xo(e,t){void 0===t&&(t=[]);var n=e.parent;return n&&Xo(n,t),Yo(e)&&t.push(e),t}function qo(e){if(!e.shouldResetTransform()){var t,n=e.getLayoutState();e.notifyBeforeLayoutMeasure(n.layout),n.isHydrated=!0,n.layout=e.measureViewportBox(),n.layoutCorrected=(t=n.layout,{x:V({},t.x),y:V({},t.y)}),e.notifyLayoutMeasure(n.layout,e.prevViewportBox||n.layout),hr.update((function(){return e.rebaseProjectionTarget()}))}}function Ko(e,t){return{min:t.min-e.min,max:t.max-e.min}}function $o(e,t){return{x:Ko(e.x,t.x),y:Ko(e.y,t.y)}}function Zo(e,t){var n=e.getLayoutId(),r=t.getLayoutId();return n!==r||void 0===r&&e!==t}function Qo(e){var t=e.getProps(),n=t.drag,r=t._dragX;return n&&!r}function Jo(e,t){e.min=t.min,e.max=t.max}function ea(e,t,n){return n+t*(e-n)}function ta(e,t,n,r,o){return void 0!==o&&(e=ea(e,o,r)),ea(e,n,r)+t}function na(e,t,n,r,o){void 0===t&&(t=0),void 0===n&&(n=1),e.min=ta(e.min,t,n,r,o),e.max=ta(e.max,t,n,r,o)}function ra(e,t){var n=t.x,r=t.y;na(e.x,n.translate,n.scale,n.originPoint),na(e.y,r.translate,r.scale,r.originPoint)}function oa(e,t,n,r){var o=U(r,3),a=o[0],i=o[1],c=o[2];e.min=t.min,e.max=t.max;var s=void 0!==n[c]?n[c]:.5,l=sn(t.min,t.max,s);na(e,n[a],n[i],l,n.scale)}var aa=["x","scaleX","originX"],ia=["y","scaleY","originY"];function ca(e,t,n){oa(e.x,t.x,n,aa),oa(e.y,t.y,n,ia)}function sa(e,t,n,r,o){return e=ea(e-=t,1/n,r),void 0!==o&&(e=ea(e,1/o,r)),e}function la(e,t,n){var r=U(n,3),o=r[0],a=r[1],i=r[2];!function(e,t,n,r,o){void 0===t&&(t=0),void 0===n&&(n=1),void 0===r&&(r=.5);var a=sn(e.min,e.max,r)-t;e.min=sa(e.min,t,n,a,o),e.max=sa(e.max,t,n,a,o)}(e,t[o],t[a],t[i],t.scale)}function ua(e,t){la(e.x,t,aa),la(e.y,t,ia)}var da=new Set;function pa(e,t,n){e[n]||(e[n]=[]),e[n].push(t)}function ma(e){return da.add(e),function(){return da.delete(e)}}function ba(){if(da.size){var e=0,t=[[]],n=[],r=function(n){return pa(t,n,e)},o=function(t){pa(n,t,e),e++};da.forEach((function(t){t(r,o),e=0})),da.clear();for(var a=n.length,i=0;i<=a;i++)t[i]&&t[i].forEach(va),n[i]&&n[i].forEach(va)}}var fa,va=function(e){return e()},ha=new WeakMap,ga=function(){function e(e){var t=e.visualElement;this.isDragging=!1,this.currentDirection=null,this.constraints=!1,this.elastic={x:{min:0,max:1},y:{min:0,max:1}},this.props={},this.hasMutatedConstraints=!1,this.cursorProgress={x:.5,y:.5},this.originPoint={},this.openGlobalLock=null,this.panSession=null,this.visualElement=t,this.visualElement.enableLayoutProjection(),ha.set(t,this)}return e.prototype.start=function(e,t){var n=this,r=void 0===t?{}:t,o=r.snapToCursor,a=void 0!==o&&o,i=r.cursorProgress,c=this.props.transformPagePoint;this.panSession=new jo(e,{onSessionStart:function(e){var t;n.stopMotion();var r=function(e){return Bt(e,"client")}(e).point;null===(t=n.cancelLayout)||void 0===t||t.call(n),n.cancelLayout=ma((function(e,t){var o=Xo(n.visualElement),c=function(e){var t=[],n=function(e){Yo(e)&&t.push(e),e.children.forEach(n)};return e.children.forEach(n),t.sort(Wo)}(n.visualElement),s=G(G([],U(o)),U(c)),l=!1;n.isLayoutDrag()&&n.visualElement.lockProjectionTarget(),t((function(){s.forEach((function(e){return e.resetTransform()}))})),e((function(){qo(n.visualElement),c.forEach(qo)})),t((function(){s.forEach((function(e){return e.restoreTransform()})),a&&(l=n.snapToCursor(r))})),e((function(){Boolean(n.getAxisMotionValue("x")&&!n.isExternalDrag())||n.visualElement.rebaseProjectionTarget(!0,n.visualElement.measureViewportBox(!1)),n.visualElement.scheduleUpdateLayoutProjection();var e=n.visualElement.projection;Mo((function(t){if(!l){var o=e.target[t],a=o.min,c=o.max;n.cursorProgress[t]=i?i[t]:cn(a,c,r[t])}var s=n.getAxisMotionValue(t);s&&(n.originPoint[t]=s.get())}))})),t((function(){pr.update(),pr.preRender(),pr.render(),pr.postRender()})),e((function(){return n.resolveDragConstraints()}))}))},onStart:function(e,t){var r,o,a,i=n.props,c=i.drag,s=i.dragPropagation;(!c||s||(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=Ht(c),n.openGlobalLock))&&(ba(),n.isDragging=!0,n.currentDirection=null,null===(o=(r=n.props).onDragStart)||void 0===o||o.call(r,e,t),null===(a=n.visualElement.animationState)||void 0===a||a.setActive(_t.Drag,!0))},onMove:function(e,t){var r,o,a,i,c=n.props,s=c.dragPropagation,l=c.dragDirectionLock;if(s||n.openGlobalLock){var u=t.offset;if(l&&null===n.currentDirection)return n.currentDirection=function(e,t){void 0===t&&(t=10);var n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(u),void(null!==n.currentDirection&&(null===(o=(r=n.props).onDirectionLock)||void 0===o||o.call(r,n.currentDirection)));n.updateAxis("x",t.point,u),n.updateAxis("y",t.point,u),null===(i=(a=n.props).onDrag)||void 0===i||i.call(a,e,t),fa=e}},onSessionEnd:function(e,t){return n.stop(e,t)}},{transformPagePoint:c})},e.prototype.resolveDragConstraints=function(){var e=this,t=this.props,n=t.dragConstraints,r=t.dragElastic,o=this.visualElement.getLayoutState().layoutCorrected;this.constraints=!!n&&(ce(n)?this.resolveRefConstraints(o,n):function(e,t){var n=t.top,r=t.left,o=t.bottom,a=t.right;return{x:Io(e.x,r,a),y:Io(e.y,n,o)}}(o,n)),this.elastic=function(e){return!1===e?e=0:!0===e&&(e=.35),{x:No(e,"left","right"),y:No(e,"top","bottom")}}(r),this.constraints&&!this.hasMutatedConstraints&&Mo((function(t){e.getAxisMotionValue(t)&&(e.constraints[t]=function(e,t){var n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(o[t],e.constraints[t]))}))},e.prototype.resolveRefConstraints=function(e,t){var n=this.props,r=n.onMeasureDragConstraints,o=n.transformPagePoint,a=t.current;this.constraintsBox=Ro(a,o);var i=function(e,t){return{x:Lo(e.x,t.x),y:Lo(e.y,t.y)}}(e,this.constraintsBox);if(r){var c=r(function(e){var t=e.x,n=e.y;return{top:n.min,bottom:n.max,left:t.min,right:t.max}}(i));this.hasMutatedConstraints=!!c,c&&(i=To(c))}return i},e.prototype.cancelDrag=function(){var e,t;this.visualElement.unlockProjectionTarget(),null===(e=this.cancelLayout)||void 0===e||e.call(this),this.isDragging=!1,this.panSession&&this.panSession.end(),this.panSession=null,!this.props.dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(_t.Drag,!1)},e.prototype.stop=function(e,t){var n,r,o;null===(n=this.panSession)||void 0===n||n.end(),this.panSession=null;var a=this.isDragging;if(this.cancelDrag(),a){var i=t.velocity;this.animateDragEnd(i),null===(o=(r=this.props).onDragEnd)||void 0===o||o.call(r,e,t)}},e.prototype.snapToCursor=function(e){var t=this;return Mo((function(n){if(Oa(n,t.props.drag,t.currentDirection)){var r=t.getAxisMotionValue(n);if(!r)return t.cursorProgress[n]=.5,!0;var o=t.visualElement.getLayoutState().layout,a=o[n].max-o[n].min,i=o[n].min+a/2,c=e[n]-i;t.originPoint[n]=e[n],r.set(c)}})).includes(!0)},e.prototype.updateAxis=function(e,t,n){if(Oa(e,this.props.drag,this.currentDirection))return this.getAxisMotionValue(e)?this.updateAxisMotionValue(e,n):this.updateVisualElementAxis(e,t)},e.prototype.updateAxisMotionValue=function(e,t){var n=this.getAxisMotionValue(e);if(t&&n){var r=this.originPoint[e]+t[e],o=this.constraints?Bo(r,this.constraints[e],this.elastic[e]):r;n.set(o)}},e.prototype.updateVisualElementAxis=function(e,t){var n,r=this.visualElement.getLayoutState().layout[e],o=r.max-r.min,a=this.cursorProgress[e],i=function(e,t,n,r,o){var a=e-t*n;return r?Bo(a,r,o):a}(t[e],o,a,null===(n=this.constraints)||void 0===n?void 0:n[e],this.elastic[e]);this.visualElement.setProjectionTargetAxis(e,i,i+o)},e.prototype.setProps=function(e){var t=e.drag,n=void 0!==t&&t,r=e.dragDirectionLock,o=void 0!==r&&r,a=e.dragPropagation,i=void 0!==a&&a,c=e.dragConstraints,s=void 0!==c&&c,l=e.dragElastic,u=void 0===l?.35:l,d=e.dragMomentum,p=void 0===d||d,m=F(e,["drag","dragDirectionLock","dragPropagation","dragConstraints","dragElastic","dragMomentum"]);this.props=V({drag:n,dragDirectionLock:o,dragPropagation:i,dragConstraints:s,dragElastic:u,dragMomentum:p},m)},e.prototype.getAxisMotionValue=function(e){var t=this.props,n=t.layout,r=t.layoutId,o="_drag"+e.toUpperCase();return this.props[o]?this.props[o]:n||void 0!==r?void 0:this.visualElement.getValue(e,0)},e.prototype.isLayoutDrag=function(){return!this.getAxisMotionValue("x")},e.prototype.isExternalDrag=function(){var e=this.props,t=e._dragX,n=e._dragY;return t||n},e.prototype.animateDragEnd=function(e){var t=this,n=this.props,r=n.drag,o=n.dragMomentum,a=n.dragElastic,i=n.dragTransition,c=function(e,t){void 0===t&&(t=!0);var n,r=e.getProjectionParent();return!!r&&(t?ua(n=$o(r.projection.target,e.projection.target),r.getLatestValues()):n=$o(r.getLayoutState().layout,e.getLayoutState().layout),Mo((function(t){return e.setProjectionTargetAxis(t,n[t].min,n[t].max,!0)})),!0)}(this.visualElement,this.isLayoutDrag()&&!this.isExternalDrag()),s=this.constraints||{};if(c&&Object.keys(s).length&&this.isLayoutDrag()){var l=this.visualElement.getProjectionParent();if(l){var u=$o(l.projection.targetFinal,s);Mo((function(e){var t=u[e],n=t.min,r=t.max;s[e]={min:isNaN(n)?void 0:n,max:isNaN(r)?void 0:r}}))}}var d=Mo((function(n){var l;if(Oa(n,r,t.currentDirection)){var u=null!==(l=null==s?void 0:s[n])&&void 0!==l?l:{},d=a?200:1e6,p=a?40:1e7,m=V(V({type:"inertia",velocity:o?e[n]:0,bounceStiffness:d,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10},i),u);return t.getAxisMotionValue(n)?t.startAxisValueAnimation(n,m):t.visualElement.startLayoutAnimation(n,m,c)}}));return Promise.all(d).then((function(){var e,n;null===(n=(e=t.props).onDragTransitionEnd)||void 0===n||n.call(e)}))},e.prototype.stopMotion=function(){var e=this;Mo((function(t){var n=e.getAxisMotionValue(t);n?n.stop():e.visualElement.stopLayoutAnimation()}))},e.prototype.startAxisValueAnimation=function(e,t){var n=this.getAxisMotionValue(e);if(n){var r=n.get();return n.set(r),n.set(r),qr(e,n,0,t)}},e.prototype.scalePoint=function(){var e=this,t=this.props,n=t.drag;if(ce(t.dragConstraints)&&this.constraintsBox){this.stopMotion();var r={x:0,y:0};Mo((function(t){var n,o,a,i,c;r[t]=(n=e.visualElement.projection.target[t],o=e.constraintsBox[t],a=.5,i=Fo(n),(c=Fo(o))>i?a=cn(o.min,o.max-i,n.min):i>c&&(a=cn(n.min,n.max-c,o.min)),Jt(0,1,a))})),this.updateConstraints((function(){Mo((function(t){if(Oa(t,n,null)){var o=function(e,t,n){var r=e.max-e.min,o=sn(t.min,t.max-r,n);return{min:o,max:o+r}}(e.visualElement.projection.target[t],e.constraintsBox[t],r[t]),a=o.min,i=o.max;e.visualElement.setProjectionTargetAxis(t,a,i)}}))})),setTimeout(ba,1)}},e.prototype.updateConstraints=function(e){var t=this;this.cancelLayout=ma((function(n,r){var o=Xo(t.visualElement);r((function(){return o.forEach((function(e){return e.resetTransform()}))})),n((function(){return qo(t.visualElement)})),r((function(){return o.forEach((function(e){return e.restoreTransform()}))})),n((function(){t.resolveDragConstraints()})),e&&r(e)}))},e.prototype.mount=function(e){var t=this,n=Rt(e.getInstance(),"pointerdown",(function(e){var n=t.props,r=n.drag,o=n.dragListener;r&&(void 0===o||o)&&t.start(e)})),r=xt(window,"resize",(function(){t.scalePoint()})),o=e.onLayoutUpdate((function(){t.isDragging&&t.resolveDragConstraints()})),a=e.prevDragCursor;return a&&this.start(fa,{cursorProgress:a}),function(){null==n||n(),null==r||r(),null==o||o(),t.cancelDrag()}},e}();function Oa(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}var ya,ja,Ea={pan:$t((function(e){var t=e.onPan,n=e.onPanStart,r=e.onPanEnd,o=e.onPanSessionStart,a=e.visualElement,i=t||n||r||o,c=Object(H.useRef)(null),s=Object(H.useContext)($).transformPagePoint,l={onSessionStart:o,onStart:n,onMove:t,onEnd:function(e,t){c.current=null,r&&r(e,t)}};Object(H.useEffect)((function(){null!==c.current&&c.current.updateHandlers(l)})),Vt(a,"pointerdown",i&&function(e){c.current=new jo(e,l,{transformPagePoint:s})}),Xt((function(){return c.current&&c.current.end()}))})),drag:$t((function(e){var t=e.dragControls,n=e.visualElement,r=Object(H.useContext)($).transformPagePoint,o=J((function(){return new ga({visualElement:n})}));o.setProps(V(V({},e),{transformPagePoint:r})),Object(H.useEffect)((function(){return t&&t.subscribe(o)}),[o]),Object(H.useEffect)((function(){return o.mount(n)}),[])}))};function _a(e){return"string"==typeof e&&e.startsWith("var(--")}!function(e){e[e.Entering=0]="Entering",e[e.Present=1]="Present",e[e.Exiting=2]="Exiting"}(ya||(ya={})),function(e){e[e.Hide=0]="Hide",e[e.Show=1]="Show"}(ja||(ja={}));var wa=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Sa(e,t,n){void 0===n&&(n=1);var r=U(function(e){var t=wa.exec(e);if(!t)return[,];var n=U(t,3);return[n[1],n[2]]}(e),2),o=r[0],a=r[1];if(o){var i=window.getComputedStyle(t).getPropertyValue(o);return i?i.trim():_a(a)?Sa(a,t,n+1):a}}function xa(e,t){return e/(t.max-t.min)*100}var Pa={process:function(e,t,n){var r=n.target;if("string"==typeof e){if(!Ue.test(e))return e;e=parseFloat(e)}return xa(e,r.x)+"% "+xa(e,r.y)+"%"}},ka={borderRadius:V(V({},Pa),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Pa,borderTopRightRadius:Pa,borderBottomLeftRadius:Pa,borderBottomRightRadius:Pa,boxShadow:{process:function(e,t){var n=t.delta,r=t.treeScale,o=e,a=e.includes("var("),i=[];a&&(e=e.replace(wa,(function(e){return i.push(e),"_$css"})));var c=Pn.parse(e);if(c.length>5)return o;var s=Pn.createTransformer(e),l="number"!=typeof c[0]?1:0,u=n.x.scale*r.x,d=n.y.scale*r.y;c[0+l]/=u,c[1+l]/=d;var p=sn(u,d,.5);"number"==typeof c[2+l]&&(c[2+l]/=p),"number"==typeof c[3+l]&&(c[3+l]/=p);var m=s(c);if(a){var b=0;m=m.replace("_$css",(function(){var e=i[b];return b++,e}))}return m}}},Ta=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.frameTarget={x:{min:0,max:1},y:{min:0,max:1}},t.currentAnimationTarget={x:{min:0,max:1},y:{min:0,max:1}},t.isAnimating={x:!1,y:!1},t.stopAxisAnimation={x:void 0,y:void 0},t.isAnimatingTree=!1,t.animate=function(e,n,r){void 0===r&&(r={});var o=r.originBox,a=r.targetBox,i=r.visibilityAction,c=r.shouldStackAnimate,s=r.onComplete,l=r.prevParent,u=F(r,["originBox","targetBox","visibilityAction","shouldStackAnimate","onComplete","prevParent"]),d=t.props,p=d.visualElement,m=d.layout;if(!1===c)return t.isAnimatingTree=!1,t.safeToRemove();if(!t.isAnimatingTree||!0===c){c&&(t.isAnimatingTree=!0),n=o||n,e=a||e;var b=!1,f=p.getProjectionParent();if(f){var v=f.prevViewportBox,h=f.getLayoutState().layout;l&&(a&&(h=l.getLayoutState().layout),o&&!Zo(l,f)&&l.prevViewportBox&&(v=l.prevViewportBox)),v&&La(l,o,a)&&(b=!0,n=$o(v,n),e=$o(h,e))}var g=Ca(n,e),O=Mo((function(r){var o,a;if("position"===m){var c=e[r].max-e[r].min;n[r].max=n[r].min+c}if(!p.projection.isTargetLocked)return void 0===i?g?t.animateAxis(r,e[r],n[r],V(V({},u),{isRelative:b})):(null===(a=(o=t.stopAxisAnimation)[r])||void 0===a||a.call(o),p.setProjectionTargetAxis(r,e[r].min,e[r].max,b)):void p.setVisibility(i===ja.Show)}));return p.syncRender(),Promise.all(O).then((function(){t.isAnimatingTree=!1,s&&s(),p.notifyLayoutAnimationComplete()}))}},t}return R(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props.visualElement;t.animateMotionValue=qr,t.enableLayoutProjection(),this.unsubLayoutReady=t.onLayoutUpdate(this.animate),t.layoutSafeToRemove=function(){return e.safeToRemove()},function(e){for(var t in e)Oe[t]=e[t]}(ka)},t.prototype.componentWillUnmount=function(){var e=this;this.unsubLayoutReady(),Mo((function(t){var n,r;return null===(r=(n=e.stopAxisAnimation)[t])||void 0===r?void 0:r.call(n)}))},t.prototype.animateAxis=function(e,t,n,r){var o,a,i=this,c=void 0===r?{}:r,s=c.transition,l=c.isRelative;if(!this.isAnimating[e]||!Ba(t,this.currentAnimationTarget[e])){null===(a=(o=this.stopAxisAnimation)[e])||void 0===a||a.call(o),this.isAnimating[e]=!0;var u=this.props.visualElement,d=this.frameTarget[e],p=u.getProjectionAnimationProgress()[e];p.clearListeners(),p.set(0),p.set(0);var m=function(){var r=p.get()/1e3;!function(e,t,n,r){e.min=sn(t.min,n.min,r),e.max=sn(t.max,n.max,r)}(d,n,t,r),u.setProjectionTargetAxis(e,d.min,d.max,l)};m();var b=p.onChange(m);this.stopAxisAnimation[e]=function(){i.isAnimating[e]=!1,p.stop(),b()},this.currentAnimationTarget[e]=t;var f=s||u.getDefaultTransition()||Ia;return qr("x"===e?"layoutX":"layoutY",p,1e3,f&&Xr(f,"layout")).then(this.stopAxisAnimation[e])}},t.prototype.safeToRemove=function(){var e,t;null===(t=(e=this.props).safeToRemove)||void 0===t||t.call(e)},t.prototype.render=function(){return null},t}(H.Component);function Ca(e,t){return!(Ma(e)||Ma(t)||Ba(e.x,t.x)&&Ba(e.y,t.y))}var Aa={min:0,max:0};function Ma(e){return Ba(e.x,Aa)&&Ba(e.y,Aa)}function Ba(e,t){return e.min===t.min&&e.max===t.max}var Ia={duration:.45,ease:[.4,0,.1,1]};function La(e,t,n){return e||!e&&!(t||n)}var Na={layoutReady:function(e){return e.notifyLayoutReady()}};function Da(){var e=new Set;return{add:function(t){return e.add(t)},flush:function(t){var n=void 0===t?Na:t,r=n.layoutReady,o=n.parent;ma((function(t,n){var a=Array.from(e).sort(Wo),i=o?Xo(o):[];n((function(){G(G([],U(i)),U(a)).forEach((function(e){return e.resetTransform()}))})),t((function(){a.forEach(qo)})),n((function(){i.forEach((function(e){return e.restoreTransform()})),a.forEach(r)})),t((function(){a.forEach((function(e){e.isPresent&&(e.presence=ya.Present)}))})),n((function(){pr.preRender(),pr.render()})),t((function(){hr.postRender((function(){return a.forEach(Ra)})),e.clear()}))})),ba()}}}function Ra(e){e.prevViewportBox=e.projection.target}var Va=Object(H.createContext)(Da()),Fa=Object(H.createContext)(Da());function Ua(e){return!!e.forceUpdate}var Ga=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return R(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.syncLayout,n=e.framerSyncLayout,r=e.visualElement;Ua(t)&&t.register(r),Ua(n)&&n.register(r),r.onUnmount((function(){Ua(t)&&t.remove(r),Ua(n)&&n.remove(r)}))},t.prototype.getSnapshotBeforeUpdate=function(){var e=this.props,t=e.syncLayout,n=e.visualElement;return Ua(t)?t.syncUpdate():(function(e){e.shouldResetTransform()||(e.prevViewportBox=e.measureViewportBox(!1),e.rebaseProjectionTarget(!1,e.prevViewportBox))}(n),t.add(n)),null},t.prototype.componentDidUpdate=function(){var e=this.props.syncLayout;Ua(e)||e.flush()},t.prototype.render=function(){return null},t}(z.a.Component),Ha={measureLayout:function(e){var t=Object(H.useContext)(Va),n=Object(H.useContext)(Fa);return z.a.createElement(Ga,V({},e,{syncLayout:t,framerSyncLayout:n}))},layoutAnimation:function(e){var t=U(ee(),2)[1];return H.createElement(Ta,V({},e,{safeToRemove:t}))}};function za(){return{isHydrated:!1,layout:{x:{min:0,max:1},y:{min:0,max:1}},layoutCorrected:{x:{min:0,max:1},y:{min:0,max:1}},treeScale:{x:1,y:1},delta:Ao(),deltaFinal:Ao(),deltaTransform:""}}var Wa=za();function Ya(e,t,n){var r=e.x,o=e.y,a="translate3d("+r.translate/t.x+"px, "+o.translate/t.y+"px, 0) ";if(n){var i=n.rotate,c=n.rotateX,s=n.rotateY;i&&(a+="rotate("+i+") "),c&&(a+="rotateX("+c+") "),s&&(a+="rotateY("+s+") ")}return a+="scale("+r.scale+", "+o.scale+")",n||a!==qa?a:""}function Xa(e){var t=e.deltaFinal;return 100*t.x.origin+"% "+100*t.y.origin+"% 0"}var qa=Ya(Wa.delta,Wa.treeScale,{x:1,y:1}),Ka=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","SetAxisTarget","Unmount"];var $a=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(e){Kr(this.children,e),this.isDirty=!0},e.prototype.remove=function(e){$r(this.children,e),this.isDirty=!0},e.prototype.forEach=function(e){this.isDirty&&this.children.sort(Wo),this.isDirty=!1,this.children.forEach(e)},e}(),Za=function(e){var t=e.treeType,n=void 0===t?"":t,r=e.build,o=e.getBaseTarget,a=e.makeTargetAnimatable,i=e.measureViewportBox,c=e.render,s=e.readValueFromInstance,l=e.resetTransform,u=e.restoreTransform,d=e.removeValueFromRenderState,p=e.sortNodePosition,m=e.scrapeMotionValuesFromProps;return function(e,t){var b=e.parent,f=e.props,v=e.presenceId,h=e.blockInitialAnimation,g=e.visualState;void 0===t&&(t={});var O,y,j,E,_,w,S=g.latestValues,x=g.renderState,P=function(){var e=Ka.map((function(){return new Zr})),t={},n={clearAllListeners:function(){return e.forEach((function(e){return e.clear()}))},updatePropListeners:function(e){return Ka.forEach((function(r){var o;null===(o=t[r])||void 0===o||o.call(t);var a="on"+r,i=e[a];i&&(t[r]=n[a](i))}))}};return e.forEach((function(e,t){n["on"+Ka[t]]=function(t){return e.add(t)},n["notify"+Ka[t]]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.notify.apply(e,G([],U(t)))}})),n}(),k={isEnabled:!1,isHydrated:!1,isTargetLocked:!1,target:{x:{min:0,max:1},y:{min:0,max:1}},targetFinal:{x:{min:0,max:1},y:{min:0,max:1}}},T=k,C=S,A=za(),M=!1,B=new Map,I=new Map,L={},N=V({},S);function D(){O&&(K.isProjectionReady()&&(ca(T.targetFinal,T.target,C),Go(A.deltaFinal,A.layoutCorrected,T.targetFinal,S)),R(),c(O,x))}function R(){var e=S;if(E&&E.isActive()){var n=E.getCrossfadeState(K);n&&(e=n)}r(K,x,e,T,A,t,f)}function F(){P.notifyUpdate(S)}function H(){K.layoutTree.forEach(Ja)}var z=m(f);for(var W in z){var Y=z[W];void 0!==S[W]&&ke(Y)&&Y.set(S[W],!1)}var X=pe(f),q=me(f),K=V(V({treeType:n,current:null,depth:b?b.depth+1:0,parent:b,children:new Set,path:b?G(G([],U(b.path)),[b]):[],layoutTree:b?b.layoutTree:new $a,presenceId:v,projection:k,variantChildren:q?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(null==b?void 0:b.isMounted()),blockInitialAnimation:h,isMounted:function(){return Boolean(O)},mount:function(e){O=K.current=e,K.pointTo(K),q&&b&&!X&&(w=null==b?void 0:b.addVariantChild(K)),null==b||b.children.add(K)},unmount:function(){dr.update(F),dr.render(D),dr.preRender(K.updateLayoutProjection),I.forEach((function(e){return e()})),K.stopLayoutAnimation(),K.layoutTree.remove(K),null==w||w(),null==b||b.children.delete(K),null==j||j(),P.clearAllListeners()},addVariantChild:function(e){var t,n=K.getClosestVariantNode();if(n)return null===(t=n.variantChildren)||void 0===t||t.add(e),function(){return n.variantChildren.delete(e)}},sortNodePosition:function(e){return p&&n===e.treeType?p(K.getInstance(),e.getInstance()):0},getClosestVariantNode:function(){return q?K:null==b?void 0:b.getClosestVariantNode()},scheduleUpdateLayoutProjection:b?b.scheduleUpdateLayoutProjection:function(){return hr.preRender(K.updateTreeLayoutProjection,!1,!0)},getLayoutId:function(){return f.layoutId},getInstance:function(){return O},getStaticValue:function(e){return S[e]},setStaticValue:function(e,t){return S[e]=t},getLatestValues:function(){return S},setVisibility:function(e){K.isVisible!==e&&(K.isVisible=e,K.scheduleRender())},makeTargetAnimatable:function(e,t){return void 0===t&&(t=!0),a(K,e,f,t)},addValue:function(e,t){K.hasValue(e)&&K.removeValue(e),B.set(e,t),S[e]=t.get(),function(e,t){var n=t.onChange((function(t){S[e]=t,f.onUpdate&&hr.update(F,!1,!0)})),r=t.onRenderRequest(K.scheduleRender);I.set(e,(function(){n(),r()}))}(e,t)},removeValue:function(e){var t;B.delete(e),null===(t=I.get(e))||void 0===t||t(),I.delete(e),delete S[e],d(e,x)},hasValue:function(e){return B.has(e)},getValue:function(e,t){var n=B.get(e);return void 0===n&&void 0!==t&&(n=Jr(t),K.addValue(e,n)),n},forEachValue:function(e){return B.forEach(e)},readValue:function(e){var n;return null!==(n=S[e])&&void 0!==n?n:s(O,e,t)},setBaseTarget:function(e,t){N[e]=t},getBaseTarget:function(e){if(o){var t=o(f,e);if(void 0!==t&&!ke(t))return t}return N[e]}},P),{build:function(){return R(),x},scheduleRender:function(){hr.render(D,!1,!0)},syncRender:D,setProps:function(e){f=e,P.updatePropListeners(e),L=function(e,t,n){var r;for(var o in t){var a=t[o],i=n[o];if(ke(a))e.addValue(o,a);else if(ke(i))e.addValue(o,Jr(a));else if(i!==a)if(e.hasValue(o)){var c=e.getValue(o);!c.hasAnimated&&c.set(a)}else e.addValue(o,Jr(null!==(r=e.getStaticValue(o))&&void 0!==r?r:a))}for(var o in n)void 0===t[o]&&e.removeValue(o);return t}(K,m(f),L)},getProps:function(){return f},getVariant:function(e){var t;return null===(t=f.variants)||void 0===t?void 0:t[e]},getDefaultTransition:function(){return f.transition},getVariantContext:function(e){if(void 0===e&&(e=!1),e)return null==b?void 0:b.getVariantContext();if(!X){var t=(null==b?void 0:b.getVariantContext())||{};return void 0!==f.initial&&(t.initial=f.initial),t}for(var n={},r=0;r<ni;r++){var o=ti[r],a=f[o];(le(a)||!1===a)&&(n[o]=a)}return n},enableLayoutProjection:function(){k.isEnabled=!0,K.layoutTree.add(K)},lockProjectionTarget:function(){k.isTargetLocked=!0},unlockProjectionTarget:function(){K.stopLayoutAnimation(),k.isTargetLocked=!1},getLayoutState:function(){return A},setCrossfader:function(e){E=e},isProjectionReady:function(){return k.isEnabled&&k.isHydrated&&A.isHydrated},startLayoutAnimation:function(e,t,n){void 0===n&&(n=!1);var r=K.getProjectionAnimationProgress()[e],o=n?k.relativeTarget[e]:k.target[e],a=o.min,i=o.max-a;return r.clearListeners(),r.set(a),r.set(a),r.onChange((function(t){K.setProjectionTargetAxis(e,t,t+i,n)})),K.animateMotionValue(e,r,0,t)},stopLayoutAnimation:function(){Mo((function(e){return K.getProjectionAnimationProgress()[e].stop()}))},measureViewportBox:function(e){void 0===e&&(e=!0);var n=i(O,t);return e||ua(n,S),n},getProjectionAnimationProgress:function(){return _||(_={x:Jr(0),y:Jr(0)}),_},setProjectionTargetAxis:function(e,t,n,r){var o;void 0===r&&(r=!1),r?(k.relativeTarget||(k.relativeTarget={x:{min:0,max:1},y:{min:0,max:1}}),o=k.relativeTarget[e]):(k.relativeTarget=void 0,o=k.target[e]),k.isHydrated=!0,o.min=t,o.max=n,M=!0,P.notifySetAxisTarget()},rebaseProjectionTarget:function(e,t){void 0===t&&(t=A.layout);var n=K.getProjectionAnimationProgress(),r=n.x,o=n.y,a=!(k.relativeTarget||k.isTargetLocked||r.isAnimating()||o.isAnimating());(e||a)&&Mo((function(e){var n=t[e],r=n.min,o=n.max;K.setProjectionTargetAxis(e,r,o)}))},notifyLayoutReady:function(e){!function(e){var t=e.getProjectionParent();if(t){var n=$o(t.getLayoutState().layout,e.getLayoutState().layout);Mo((function(t){e.setProjectionTargetAxis(t,n[t].min,n[t].max,!0)}))}else e.rebaseProjectionTarget()}(K),K.notifyLayoutUpdate(A.layout,K.prevViewportBox||A.layout,e)},resetTransform:function(){return l(K,O,f)},restoreTransform:function(){return u(O,x)},updateLayoutProjection:function(){if(K.isProjectionReady()){var e=A.delta,t=A.treeScale,n=t.x,r=t.y,o=A.deltaTransform;(function(e,t,n,r){var o,a,i=e.delta,c=e.layout,s=e.layoutCorrected,l=e.treeScale,u=t.target;a=c,Jo((o=s).x,a.x),Jo(o.y,a.y),function(e,t,n){var r=n.length;if(r){var o,a;t.x=t.y=1;for(var i=0;i<r;i++)a=(o=n[i]).getLayoutState().delta,t.x*=a.x.scale,t.y*=a.y.scale,ra(e,a),Qo(o)&&ca(e,e,o.getLatestValues())}}(s,l,n),Go(i,s,u,r)})(A,T,K.path,S),M&&K.notifyViewportBoxUpdate(T.target,e),M=!1;var a=Ya(e,t);a===o&&n===t.x&&r===t.y||K.scheduleRender(),A.deltaTransform=a}},updateTreeLayoutProjection:function(){K.layoutTree.forEach(Qa),hr.preRender(H,!1,!0)},getProjectionParent:function(){if(void 0===y){for(var e=!1,t=K.path.length-1;t>=0;t--){var n=K.path[t];if(n.projection.isEnabled){e=n;break}}y=e}return y},resolveRelativeTargetBox:function(){var e=K.getProjectionParent();if(k.relativeTarget&&e&&(function(e,t){zo(e.target.x,e.relativeTarget.x,t.target.x),zo(e.target.y,e.relativeTarget.y,t.target.y)}(k,e.projection),Qo(e))){var t=k.target;ca(t,t,e.getLatestValues())}},shouldResetTransform:function(){return Boolean(f._layoutResetTransform)},pointTo:function(e){T=e.projection,C=e.getLatestValues(),null==j||j(),j=Kt(e.onSetAxisTarget(K.scheduleUpdateLayoutProjection),e.onLayoutAnimationComplete((function(){var e;K.isPresent?K.presence=ya.Present:null===(e=K.layoutSafeToRemove)||void 0===e||e.call(K)})))},isPresent:!0,presence:ya.Entering});return K}};function Qa(e){e.resolveRelativeTargetBox()}function Ja(e){e.updateLayoutProjection()}var ei,ti=G(["initial"],U(uo)),ni=ti.length,ri=new Set(["width","height","top","left","right","bottom","x","y"]),oi=function(e){return ri.has(e)},ai=function(e,t){e.set(t,!1),e.set(t)},ii=function(e){return e===We||e===Ue};!function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"}(ei||(ei={}));var ci=function(e,t){return parseFloat(e.split(", ")[t])},si=function(e,t){return function(n,r){var o=r.transform;if("none"===o||!o)return 0;var a=o.match(/^matrix3d\((.+)\)$/);if(a)return ci(a[1],t);var i=o.match(/^matrix\((.+)\)$/);return i?ci(i[1],e):0}},li=new Set(["x","y","z"]),ui=je.filter((function(e){return!li.has(e)})),di={width:function(e){var t=e.x;return t.max-t.min},height:function(e){var t=e.y;return t.max-t.min},top:function(e,t){var n=t.top;return parseFloat(n)},left:function(e,t){var n=t.left;return parseFloat(n)},bottom:function(e,t){var n=e.y,r=t.top;return parseFloat(r)+(n.max-n.min)},right:function(e,t){var n=e.x,r=t.left;return parseFloat(r)+(n.max-n.min)},x:si(4,13),y:si(5,14)};function pi(e,t,n,r){return function(e){return Object.keys(e).some(oi)}(t)?function(e,t,n,r){void 0===n&&(n={}),void 0===r&&(r={}),t=V({},t),r=V({},r);var o=Object.keys(t).filter(oi),a=[],i=!1,c=[];if(o.forEach((function(o){var s=e.getValue(o);if(e.hasValue(o)){var l,u=n[o],d=t[o],p=no(u);if(Ot(d))for(var m=d.length,b=null===d[0]?1:0;b<m;b++)l?no(d[b]):(l=no(d[b]))===p||ii(p)&&ii(l);else l=no(d);if(p!==l)if(ii(p)&&ii(l)){var f=s.get();"string"==typeof f&&s.set(parseFloat(f)),"string"==typeof d?t[o]=parseFloat(d):Array.isArray(d)&&l===Ue&&(t[o]=d.map(parseFloat))}else(null==p?void 0:p.transform)&&(null==l?void 0:l.transform)&&(0===u||0===d)?0===u?s.set(l.transform(u)):t[o]=p.transform(d):(i||(a=function(e){var t=[];return ui.forEach((function(n){var r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),t.length&&e.syncRender(),t}(e),i=!0),c.push(o),r[o]=void 0!==r[o]?r[o]:t[o],ai(s,d))}})),c.length){var s=function(e,t,n){var r=t.measureViewportBox(),o=t.getInstance(),a=getComputedStyle(o),i=a.display,c={top:a.top,left:a.left,bottom:a.bottom,right:a.right,transform:a.transform};"none"===i&&t.setStaticValue("display",e.display||"block"),t.syncRender();var s=t.measureViewportBox();return n.forEach((function(n){var o=t.getValue(n);ai(o,di[n](r,c)),e[n]=di[n](s,a)})),e}(t,e,c);return a.length&&a.forEach((function(t){var n=U(t,2),r=n[0],o=n[1];e.getValue(r).set(o)})),e.syncRender(),{target:s,transitionEnd:r}}return{target:t,transitionEnd:r}}(e,t,n,r):{target:t,transitionEnd:r}}var mi={treeType:"dom",readValueFromInstance:function(e,t){if(we(t)){var n=Gr(t);return n&&n.default||0}var r,o=(r=e,window.getComputedStyle(r));return(Ce(t)?o.getPropertyValue(t):o[t])||0},sortNodePosition:function(e,t){return 2&e.compareDocumentPosition(t)?1:-1},getBaseTarget:function(e,t){var n;return null===(n=e.style)||void 0===n?void 0:n[t]},measureViewportBox:function(e,t){return Ro(e,t.transformPagePoint)},resetTransform:function(e,t,n){var r=n.transformTemplate;t.style.transform=r?r({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var n=t.vars,r=t.style;delete n[e],delete r[e]},makeTargetAnimatable:function(e,t,n,r){var o=n.transformValues;void 0===r&&(r=!0);var a=t.transition,i=t.transitionEnd,c=F(t,["transition","transitionEnd"]),s=function(e,t,n){var r,o,a={};for(var i in e)a[i]=null!==(r=ao(i,t))&&void 0!==r?r:null===(o=n.getValue(i))||void 0===o?void 0:o.get();return a}(c,a||{},e);if(o&&(i&&(i=o(i)),c&&(c=o(c)),s&&(s=o(s))),r){!function(e,t,n){var r,o,a,i,c,s=Object.keys(t).filter((function(t){return!e.hasValue(t)})),l=s.length;if(l)for(var u=0;u<l;u++){var d=s[u],p=t[d],m=null;Array.isArray(p)&&(m=p[0]),null===m&&(m=null!==(o=null!==(r=n[d])&&void 0!==r?r:e.readValue(d))&&void 0!==o?o:t[d]),null!=m&&("string"==typeof m&&/^\-?\d*\.?\d+$/.test(m)?m=parseFloat(m):(c=m,!ro.find(eo(c))&&Pn.test(p)&&(m=Hr(d,p))),e.addValue(d,Jr(m)),null!==(a=(i=n)[d])&&void 0!==a||(i[d]=m),e.setBaseTarget(d,m))}}(e,c,s);var l=function(e,t,n,r){var o=function(e,t,n){var r,o=F(t,[]),a=e.getInstance();if(!(a instanceof HTMLElement))return{target:o,transitionEnd:n};for(var i in n&&(n=V({},n)),e.forEachValue((function(e){var t=e.get();if(_a(t)){var n=Sa(t,a);n&&e.set(n)}})),o){var c=o[i];if(_a(c)){var s=Sa(c,a);s&&(o[i]=s,n&&(null!==(r=n[i])&&void 0!==r||(n[i]=c)))}}return{target:o,transitionEnd:n}}(e,t,r);return pi(e,t=o.target,n,r=o.transitionEnd)}(e,c,s,i);i=l.transitionEnd,c=l.target}return V({transition:a,transitionEnd:i},c)},scrapeMotionValuesFromProps:vt,build:function(e,t,n,r,o,a,i){void 0!==e.isVisible&&(t.style.visibility=e.isVisible?"visible":"hidden");var c=r.isEnabled&&o.isHydrated;$e(t,n,r,o,a,i.transformTemplate,c?Ya:void 0,c?Xa:void 0)},render:mt},bi=Za(mi),fi=Za(V(V({},mi),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return we(t)?(null===(n=Gr(t))||void 0===n?void 0:n.default)||0:(t=bt.has(t)?t:pt(t),e.getAttribute(t))},scrapeMotionValuesFromProps:ht,build:function(e,t,n,r,o,a,i){var c=r.isEnabled&&o.isHydrated;ct(t,n,r,o,a,i.transformTemplate,c?Ya:void 0,c?Xa:void 0)},render:ft})),vi=function(e,t){return ge(e)?fi(t,{enableHardwareAcceleration:!1}):bi(t,{enableHardwareAcceleration:!0})},hi=V(V(V(V({},vo),Zt),Ea),Ha),gi=ve((function(e,t){return function(e,t,n,r){var o=t.forwardMotionProps,a=void 0!==o&&o,i=ge(e)?wt:St;return V(V({},i),{preloadedFeatures:n,useRender:ut(a),createVisualElement:r,Component:e})}(e,t,hi,vi)})),Oi=n(388),yi=n(33),ji=function({onClick:e=s.noop,small:t=!1}){const{shortcut:n,areAdvancedSettingsOpened:o}=Object(d.useSelect)(e=>({shortcut:e(L.store).getShortcutRepresentation("core/edit-post/toggle-sidebar"),areAdvancedSettingsOpened:"edit-post/block"===e(w.a).getActiveGeneralSidebarName()}),[]),{openGeneralSidebar:a,closeGeneralSidebar:i}=Object(d.useDispatch)(w.a),c=o?Object(m.__)("Hide more settings"):Object(m.__)("Show more settings");return Object(r.createElement)(u.MenuItem,{onClick:()=>{o?(i(),Object(yi.speak)(Object(m.__)("Block settings closed"))):(a("edit-post/block"),Object(yi.speak)(Object(m.__)("Additional settings are now available in the Editor block settings sidebar"))),e()},shortcut:n},!t&&c)};function Ei({children:e,contentRef:t,isTemplateMode:n,styles:o,style:a}){const i=Object(p.__unstableUseMouseMoveTypingReset)();return n?Object(r.createElement)(p.__unstableIframe,{head:Object(r.createElement)(p.__unstableEditorStyles,{styles:o}),ref:i,contentRef:t,style:{width:"100%",height:"100%",display:"block"}},e):Object(r.createElement)(r.Fragment,null,Object(r.createElement)(p.__unstableEditorStyles,{styles:o}),Object(r.createElement)(p.WritingFlow,{ref:t,className:"editor-styles-wrapper",style:{flex:"1",...a},tabIndex:-1},e))}function _i({styles:e}){const{deviceType:t,isTemplateMode:n,wrapperBlockName:o,wrapperUniqueId:a}=Object(d.useSelect)(e=>{const{isEditingTemplate:t,__experimentalGetPreviewDeviceType:n}=e(w.a),{getCurrentPostId:r,getCurrentPostType:o}=e(j.store),a=t();let i;return"wp_block"===o()?i="core/block":a||(i="core/post-content"),{deviceType:n(),isTemplateMode:a,wrapperBlockName:i,wrapperUniqueId:r()}},[]),i=Object(d.useSelect)(e=>e(w.a).hasMetaBoxes(),[]),c=Object(d.useSelect)(e=>{const{getSettings:t}=e(p.store);return t().supportsLayout},[]),{clearSelectedBlock:s}=Object(d.useDispatch)(p.store),{setIsEditingTemplate:l}=Object(d.useDispatch)(w.a),f={height:"100%",width:"100%",margin:0,display:"flex",flexFlow:"column",background:"white"},v={...f,borderRadius:"2px 2px 0 0",border:"1px solid #ddd",borderBottom:0},h=Object(p.__experimentalUseResizeCanvas)(t,n),g=Object(p.useSetting)("layout"),O="is-"+t.toLowerCase()+"-preview";let y,E=n?v:f;h&&(E=h),i||h||n||(y="40vh");const _=Object(r.useRef)(),S=Object(b.useMergeRefs)([_,Object(p.__unstableUseClipboardHandler)(),Object(p.__unstableUseCanvasClickRedirect)(),Object(p.__unstableUseTypewriter)(),Object(p.__unstableUseTypingObserver)(),Object(p.__unstableUseBlockSelectionClearer)()]),x=Object(p.__unstableUseBlockSelectionClearer)(),[,P]=Object(p.__experimentalUseNoRecursiveRenders)(a,o),k=Object(r.useMemo)(()=>n?{type:"default"}:c?g:void 0,[n,c,g]);return Object(r.createElement)(p.BlockTools,{__unstableContentRef:_,className:B()("edit-post-visual-editor",{"is-template-mode":n})},Object(r.createElement)(j.VisualEditorGlobalKeyboardShortcuts,null),Object(r.createElement)(gi.div,{className:"edit-post-visual-editor__content-area",animate:{padding:n?"48px 48px 0":"0"},ref:x},n&&Object(r.createElement)(u.Button,{className:"edit-post-visual-editor__exit-template-mode",icon:Oi.a,onClick:()=>{s(),l(!1)}},Object(m.__)("Back")),Object(r.createElement)(gi.div,{animate:E,initial:f,className:O},Object(r.createElement)(Ei,{isTemplateMode:n,contentRef:S,styles:e,style:{paddingBottom:y}},c&&!n&&Object(r.createElement)(p.__experimentalLayoutStyle,{selector:".edit-post-visual-editor__post-title-wrapper, .block-editor-block-list__layout.is-root-container",layout:g}),!n&&Object(r.createElement)("div",{className:"edit-post-visual-editor__post-title-wrapper"},Object(r.createElement)(j.PostTitle,null)),Object(r.createElement)(P,null,Object(r.createElement)(p.BlockList,{__experimentalLayout:k}))))),Object(r.createElement)(p.__unstableBlockSettingsMenuFirstItem,null,({onClose:e})=>Object(r.createElement)(ji,{onClick:e})))}var wi=function(){const{getBlockSelectionStart:e}=Object(d.useSelect)(p.store),{getEditorMode:t,isEditorSidebarOpened:n,isListViewOpened:o}=Object(d.useSelect)(w.a),a=Object(d.useSelect)(e=>{const{richEditingEnabled:t,codeEditingEnabled:n}=e(j.store).getEditorSettings();return!t||!n},[]),{switchEditorMode:i,openGeneralSidebar:c,closeGeneralSidebar:s,toggleFeature:l,setIsListViewOpened:u}=Object(d.useDispatch)(w.a),{registerShortcut:b}=Object(d.useDispatch)(L.store);return Object(r.useEffect)(()=>{b({name:"core/edit-post/toggle-mode",category:"global",description:Object(m.__)("Switch between visual editor and code editor."),keyCombination:{modifier:"secondary",character:"m"}}),b({name:"core/edit-post/toggle-fullscreen",category:"global",description:Object(m.__)("Toggle fullscreen mode."),keyCombination:{modifier:"secondary",character:"f"}}),b({name:"core/edit-post/toggle-list-view",category:"global",description:Object(m.__)("Open the block list view."),keyCombination:{modifier:"access",character:"o"}}),b({name:"core/edit-post/toggle-sidebar",category:"global",description:Object(m.__)("Show or hide the settings sidebar."),keyCombination:{modifier:"primaryShift",character:","}}),b({name:"core/edit-post/next-region",category:"global",description:Object(m.__)("Navigate to the next part of the editor."),keyCombination:{modifier:"ctrl",character:"`"},aliases:[{modifier:"access",character:"n"}]}),b({name:"core/edit-post/previous-region",category:"global",description:Object(m.__)("Navigate to the previous part of the editor."),keyCombination:{modifier:"ctrlShift",character:"`"},aliases:[{modifier:"access",character:"p"}]}),b({name:"core/edit-post/keyboard-shortcuts",category:"main",description:Object(m.__)("Display these keyboard shortcuts."),keyCombination:{modifier:"access",character:"h"}})},[]),Object(L.useShortcut)("core/edit-post/toggle-mode",()=>{i("visual"===t()?"text":"visual")},{bindGlobal:!0,isDisabled:a}),Object(L.useShortcut)("core/edit-post/toggle-fullscreen",()=>{l("fullscreenMode")},{bindGlobal:!0}),Object(L.useShortcut)("core/edit-post/toggle-sidebar",t=>{if(t.preventDefault(),n())s();else{const t=e()?"edit-post/block":"edit-post/document";c(t)}},{bindGlobal:!0}),Object(L.useShortcut)("core/edit-post/toggle-list-view",()=>u(!o()),{bindGlobal:!0}),null};const Si=[{keyCombination:{modifier:"primary",character:"b"},description:Object(m.__)("Make the selected text bold.")},{keyCombination:{modifier:"primary",character:"i"},description:Object(m.__)("Make the selected text italic.")},{keyCombination:{modifier:"primary",character:"k"},description:Object(m.__)("Convert the selected text into a link.")},{keyCombination:{modifier:"primaryShift",character:"k"},description:Object(m.__)("Remove a link.")},{keyCombination:{modifier:"primary",character:"u"},description:Object(m.__)("Underline the selected text.")}];function xi({keyCombination:e,forceAriaLabel:t}){const n=e.modifier?_.displayShortcutList[e.modifier](e.character):e.character,o=e.modifier?_.shortcutAriaLabel[e.modifier](e.character):e.character;return Object(r.createElement)("kbd",{className:"edit-post-keyboard-shortcut-help-modal__shortcut-key-combination","aria-label":t||o},Object(s.castArray)(n).map((e,t)=>"+"===e?Object(r.createElement)(r.Fragment,{key:t},e):Object(r.createElement)("kbd",{key:t,className:"edit-post-keyboard-shortcut-help-modal__shortcut-key"},e)))}var Pi=function({description:e,keyCombination:t,aliases:n=[],ariaLabel:o}){return Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"edit-post-keyboard-shortcut-help-modal__shortcut-description"},e),Object(r.createElement)("div",{className:"edit-post-keyboard-shortcut-help-modal__shortcut-term"},Object(r.createElement)(xi,{keyCombination:t,forceAriaLabel:o}),n.map((e,t)=>Object(r.createElement)(xi,{keyCombination:e,forceAriaLabel:o,key:t}))))},ki=function({name:e}){const{keyCombination:t,description:n,aliases:o}=Object(d.useSelect)(t=>{const{getShortcutKeyCombination:n,getShortcutDescription:r,getShortcutAliases:o}=t(L.store);return{keyCombination:n(e),aliases:o(e),description:r(e)}});return t?Object(r.createElement)(Pi,{keyCombination:t,description:n,aliases:o}):null};const Ti="edit-post/keyboard-shortcut-help",Ci=({shortcuts:e})=>Object(r.createElement)("ul",{className:"edit-post-keyboard-shortcut-help-modal__shortcut-list",role:"list"},e.map((e,t)=>Object(r.createElement)("li",{className:"edit-post-keyboard-shortcut-help-modal__shortcut",key:t},Object(s.isString)(e)?Object(r.createElement)(ki,{name:e}):Object(r.createElement)(Pi,e)))),Ai=({title:e,shortcuts:t,className:n})=>Object(r.createElement)("section",{className:B()("edit-post-keyboard-shortcut-help-modal__section",n)},!!e&&Object(r.createElement)("h2",{className:"edit-post-keyboard-shortcut-help-modal__section-title"},e),Object(r.createElement)(Ci,{shortcuts:t})),Mi=({title:e,categoryName:t,additionalShortcuts:n=[]})=>{const o=Object(d.useSelect)(e=>e(L.store).getCategoryShortcuts(t),[t]);return Object(r.createElement)(Ai,{title:e,shortcuts:o.concat(n)})};var Bi=Object(b.compose)([Object(d.withSelect)(e=>({isModalActive:e(w.a).isModalActive(Ti)})),Object(d.withDispatch)((e,{isModalActive:t})=>{const{openModal:n,closeModal:r}=e(w.a);return{toggleModal:()=>t?r():n(Ti)}})])((function({isModalActive:e,toggleModal:t}){return Object(L.useShortcut)("core/edit-post/keyboard-shortcuts",t,{bindGlobal:!0}),e?Object(r.createElement)(u.Modal,{className:"edit-post-keyboard-shortcut-help-modal",title:Object(m.__)("Keyboard shortcuts"),closeLabel:Object(m.__)("Close"),onRequestClose:t},Object(r.createElement)(Ai,{className:"edit-post-keyboard-shortcut-help-modal__main-shortcuts",shortcuts:["core/edit-post/keyboard-shortcuts"]}),Object(r.createElement)(Mi,{title:Object(m.__)("Global shortcuts"),categoryName:"global"}),Object(r.createElement)(Mi,{title:Object(m.__)("Selection shortcuts"),categoryName:"selection"}),Object(r.createElement)(Mi,{title:Object(m.__)("Block shortcuts"),categoryName:"block",additionalShortcuts:[{keyCombination:{character:"/"},description:Object(m.__)("Change the block type after adding a new paragraph."),
|
18 |
/* translators: The forward-slash character. e.g. '/'. */
|
19 |
ariaLabel:Object(m.__)("Forward-slash")}]}),Object(r.createElement)(Ai,{title:Object(m.__)("Text formatting"),shortcuts:Si})):null})),Ii=({description:e,title:t,children:n})=>Object(r.createElement)("section",{className:"edit-post-preferences-modal__section"},Object(r.createElement)("h2",{className:"edit-post-preferences-modal__section-title"},t),e&&Object(r.createElement)("p",{className:"edit-post-preferences-modal__section-description"},e),n),Li=n(61),Ni=Object(d.withSelect)(e=>{const{getEditorSettings:t}=e(j.store),{getAllMetaBoxes:n}=e(w.a);return{areCustomFieldsRegistered:void 0!==t().enableCustomFields,metaBoxes:n()}})((function({areCustomFieldsRegistered:e,metaBoxes:t,...n}){const o=Object(s.filter)(t,({id:e})=>"postcustom"!==e);return e||0!==o.length?Object(r.createElement)(Ii,n,e&&Object(r.createElement)(Li.a,{label:Object(m.__)("Custom fields")}),Object(s.map)(o,({id:e,title:t})=>Object(r.createElement)(Li.c,{key:e,label:t,panelName:"meta-box-"+e}))):null})),Di=function({blockTypes:e,value:t,onItemChange:n}){return Object(r.createElement)("ul",{className:"edit-post-block-manager__checklist"},e.map(e=>Object(r.createElement)("li",{key:e.name,className:"edit-post-block-manager__checklist-item"},Object(r.createElement)(u.CheckboxControl,{label:Object(r.createElement)(r.Fragment,null,e.title,Object(r.createElement)(p.BlockIcon,{icon:e.icon})),checked:t.includes(e.name),onChange:Object(s.partial)(n,e.name)}))))},Ri=Object(r.createContext)({}),Vi=Object(b.compose)([b.withInstanceId,Object(d.withSelect)(e=>{const{getPreference:t}=e(w.a);return{hiddenBlockTypes:t("hiddenBlockTypes")}}),Object(d.withDispatch)((e,t)=>{const{showBlockTypes:n,hideBlockTypes:r}=e(w.a);return{toggleVisible(e,t){t?n(e):r(e)},toggleAllVisible(e){const o=Object(s.map)(t.blockTypes,"name");e?n(o):r(o)}}})])((function({instanceId:e,title:t,blockTypes:n,hiddenBlockTypes:o,toggleVisible:a,toggleAllVisible:i}){const c=Object(r.useContext)(Ri),{allowedBlockTypes:l}=c,d=Object(r.useMemo)(()=>!0===l?n:n.filter(({name:e})=>Object(s.includes)(l||[],e)),[l,n]);if(!d.length)return null;const p=Object(s.without)(Object(s.map)(d,"name"),...o),m="edit-post-block-manager__category-title-"+e,b=p.length===d.length;let f;return f=b?"true":p.length>0?"mixed":"false",Object(r.createElement)("div",{role:"group","aria-labelledby":m,className:"edit-post-block-manager__category"},Object(r.createElement)(u.CheckboxControl,{checked:b,onChange:i,className:"edit-post-block-manager__category-title","aria-checked":f,label:Object(r.createElement)("span",{id:m},t)}),Object(r.createElement)(Di,{blockTypes:d,value:p,onItemChange:a}))})),Fi=Object(d.withSelect)(e=>{const{getBlockTypes:t,getCategories:n,hasBlockSupport:r,isMatchingSearchTerm:o}=e(l.store),{getPreference:a}=e(w.a),i=a("hiddenBlockTypes"),c=Object(s.isArray)(i)&&i.length;return{blockTypes:t(),categories:n(),hasBlockSupport:r,isMatchingSearchTerm:o,numberOfHiddenBlocks:c}})((function({blockTypes:e,categories:t,hasBlockSupport:n,isMatchingSearchTerm:o,numberOfHiddenBlocks:a}){const[i,c]=Object(r.useState)("");return e=e.filter(e=>n(e,"inserter",!0)&&(!i||o(e,i))&&(!e.parent||Object(s.includes)(e.parent,"core/post-content"))),Object(r.createElement)("div",{className:"edit-post-block-manager__content"},!!a&&Object(r.createElement)("div",{className:"edit-post-block-manager__disabled-blocks-count"},Object(m.sprintf)(
|
20 |
/* translators: %d: number of blocks. */
|
changelog.txt
CHANGED
@@ -1,163 +1,173 @@
|
|
1 |
== Changelog ==
|
2 |
|
3 |
-
= 11.2.
|
4 |
|
5 |
-
### Features
|
6 |
-
|
7 |
-
- Search Block: Add color support to search button. ([32416](https://github.com/WordPress/gutenberg/pull/32416))
|
8 |
-
- Search Block: Add border color support. ([31783](https://github.com/WordPress/gutenberg/pull/31783))
|
9 |
-
- Pullquote: Add border and color support. ([30951](https://github.com/WordPress/gutenberg/pull/30951))
|
10 |
-
|
11 |
-
|
12 |
-
### Enhancements
|
13 |
-
|
14 |
-
- Post Editor
|
15 |
-
- Add a new page/post button on publish panel. ([33276](https://github.com/WordPress/gutenberg/pull/33276))
|
16 |
-
|
17 |
-
- Widgets Editor
|
18 |
-
- Widget inserter: Clarify that the button toggles the inserter. ([33561](https://github.com/WordPress/gutenberg/pull/33561))
|
19 |
-
- Update widget editor help links to point to the new support article. ([33482](https://github.com/WordPress/gutenberg/pull/33482))
|
20 |
-
|
21 |
-
- Components
|
22 |
-
- `Spacer`: Change props override order, split types. ([33555](https://github.com/WordPress/gutenberg/pull/33555))
|
23 |
-
- `Elevation`: Reduced motion styles, updated documentation and README. ([33551](https://github.com/WordPress/gutenberg/pull/33551))
|
24 |
-
- components: Add unit values utils. ([33514](https://github.com/WordPress/gutenberg/pull/33514))
|
25 |
-
- components: Add isValueNumeric util. ([33206](https://github.com/WordPress/gutenberg/pull/33206))
|
26 |
-
- [Components]: Add SegmentedControl. ([31937](https://github.com/WordPress/gutenberg/pull/31937))
|
27 |
-
- Components: Promote VisuallyHidden from ui into full components (#31244). ([31902](https://github.com/WordPress/gutenberg/pull/31902))
|
28 |
-
|
29 |
-
- Accessibility
|
30 |
-
- Inserter: In text label mode, use "Close" label when inserter is open. ([33534](https://github.com/WordPress/gutenberg/pull/33534))
|
31 |
-
|
32 |
-
- Data
|
33 |
-
- Core Data: Pass query argument to data selector shortcuts. ([33689](https://github.com/WordPress/gutenberg/pull/33689))
|
34 |
-
|
35 |
-
|
36 |
### Bug Fixes
|
37 |
|
38 |
-
-
|
39 |
-
- Featured Image: Allow authors to select images uploaded by other users. ([33567](https://github.com/WordPress/gutenberg/pull/33567))
|
40 |
-
- Template Part: Avoid button layout shift. ([33362](https://github.com/WordPress/gutenberg/pull/33362))
|
41 |
-
- Remove instagram reference from embed block's description. ([33519](https://github.com/WordPress/gutenberg/pull/33519))
|
42 |
-
|
43 |
-
- Block Editor
|
44 |
-
- Fixed that the block is selected instead of the title when using the select all shortcut. ([33621](https://github.com/WordPress/gutenberg/pull/33621))
|
45 |
-
|
46 |
-
- Post Editor
|
47 |
-
- Most Used Terms: Avoid 403 error for non-administrators. ([33569](https://github.com/WordPress/gutenberg/pull/33569))
|
48 |
-
- Editor: Set 'hide_empty' for the most used terms query. ([33457](https://github.com/WordPress/gutenberg/pull/33457))
|
49 |
-
- HierarchicalTermSelector: Use TextControl component. ([33545](https://github.com/WordPress/gutenberg/pull/33545))
|
50 |
-
- PWA manifest: icon: Fix error when admin bar is gone. ([33702](https://github.com/WordPress/gutenberg/pull/33702))
|
51 |
-
|
52 |
-
- Widgets Editor
|
53 |
-
- Fix plugin/theme incompatibility, call onChangeSectionExpanded conditionally. ([33618](https://github.com/WordPress/gutenberg/pull/33618))
|
54 |
-
|
55 |
-
- Components
|
56 |
-
- Fix: Native UnitControl to handle single unit configuration. ([33641](https://github.com/WordPress/gutenberg/pull/33641))
|
57 |
-
- NumberControl: Allow empty values. ([33485](https://github.com/WordPress/gutenberg/pull/33485))
|
58 |
-
- BoxControl: Prevent invalid style values. ([33444](https://github.com/WordPress/gutenberg/pull/33444))
|
59 |
-
- FocalPointPicker: Check if value is NaN. ([33637](https://github.com/WordPress/gutenberg/pull/33637))
|
60 |
-
- UnitControl: Set correct unit when units has one option. ([33634](https://github.com/WordPress/gutenberg/pull/33634))
|
61 |
-
- components: Use useCx to fix iframe support. ([33301](https://github.com/WordPress/gutenberg/pull/33301))
|
62 |
-
- Card: Add missing `box-sizing` CSS rules. ([33511](https://github.com/WordPress/gutenberg/pull/33511))
|
63 |
-
- CardBody: Change default value of `isScrollable` to `false`. ([33490](https://github.com/WordPress/gutenberg/pull/33490))
|
64 |
-
- `ItemGroup`: Fix padding, split types, rename boolean props. ([33553](https://github.com/WordPress/gutenberg/pull/33553))
|
65 |
-
|
66 |
-
- Themes
|
67 |
-
- I18n: Fix broken loop in `WP_Theme_JSON_Resolver`. ([33624](https://github.com/WordPress/gutenberg/pull/33624))
|
68 |
-
|
69 |
-
- Site Editor
|
70 |
-
- Site editor: Check template resolution. ([33527](https://github.com/WordPress/gutenberg/pull/33527))
|
71 |
-
- FSE: Fix content height. ([33698](https://github.com/WordPress/gutenberg/pull/33698))
|
72 |
-
|
73 |
-
- Media
|
74 |
-
- Format Library: Remove `style` from inline image if `width` not set. ([32516](https://github.com/WordPress/gutenberg/pull/32516))
|
75 |
-
|
76 |
-
|
77 |
-
### Performance
|
78 |
-
|
79 |
-
- Drag and drop
|
80 |
-
- Set passive listener option for use popover scroll to avoid affecting scrolling performance. ([33478](https://github.com/WordPress/gutenberg/pull/33478))
|
81 |
-
- Drag items via transform property to avoid layout and re-paints. ([33395](https://github.com/WordPress/gutenberg/pull/33395))
|
82 |
-
|
83 |
-
|
84 |
-
### Experiments
|
85 |
-
|
86 |
-
- Full Site Editing
|
87 |
-
- Query Pagination: Update the arrows on the Next and Prev pagination blocks. ([33626](https://github.com/WordPress/gutenberg/pull/33626))
|
88 |
|
89 |
-
- Block Library
|
90 |
-
- Add flex layout support to the block editor. ([33359](https://github.com/WordPress/gutenberg/pull/33359))
|
91 |
-
|
92 |
-
|
93 |
-
### Tools
|
94 |
-
|
95 |
-
- Testing
|
96 |
-
- E2E: Navigation wait for links before counting them. ([33704](https://github.com/WordPress/gutenberg/pull/33704))
|
97 |
-
- Automation: Track Gutenberg performance metrics over time. ([33694](https://github.com/WordPress/gutenberg/pull/33694))
|
98 |
-
- Re-enable "Save flow should work as expected" end-to-end test. ([33548](https://github.com/WordPress/gutenberg/pull/33548))
|
99 |
-
- Skip some widgets editing related tests. ([33547](https://github.com/WordPress/gutenberg/pull/33547))
|
100 |
-
- Enable the reusable blocks skipped test. ([33510](https://github.com/WordPress/gutenberg/pull/33510))
|
101 |
-
- Skip end-to-end tests. ([33503](https://github.com/WordPress/gutenberg/pull/33503))
|
102 |
-
- Tests: Run Prettier after regenerating test fixture. ([33502](https://github.com/WordPress/gutenberg/pull/33502))
|
103 |
-
- Fix screenshots not being captured when snapshots failed. ([33448](https://github.com/WordPress/gutenberg/pull/33448))
|
104 |
-
- Add coverage folder to .gitignore. ([33413](https://github.com/WordPress/gutenberg/pull/33413))
|
105 |
-
- Automated Testing: Disable remote patterns in tests. ([33160](https://github.com/WordPress/gutenberg/pull/33160))
|
106 |
-
- Improve function widgets test. ([33489](https://github.com/WordPress/gutenberg/pull/33489))
|
107 |
-
- Make the performance CI job more stable. ([33710](https://github.com/WordPress/gutenberg/pull/33710))
|
108 |
-
- Update button block corner radius test to px. ([33562](https://github.com/WordPress/gutenberg/pull/33562))
|
109 |
-
- Add unsupported block title translation test. ([33340](https://github.com/WordPress/gutenberg/pull/33340))
|
110 |
-
- Re-enable skipped widgets end-to-end test. ([33449](https://github.com/WordPress/gutenberg/pull/33449))
|
111 |
-
|
112 |
-
- Build Tooling
|
113 |
-
- Update sass version to 1.35.2 with fixes. ([33433](https://github.com/WordPress/gutenberg/pull/33433))
|
114 |
-
- Improve `Feature` mapping in automatically generated changelog. ([33625](https://github.com/WordPress/gutenberg/pull/33625))
|
115 |
-
- Add depth to git fetch in npm publishing. ([33595](https://github.com/WordPress/gutenberg/pull/33595))
|
116 |
-
- Release docs: Add process for creating a point release of the Plugin. ([33546](https://github.com/WordPress/gutenberg/pull/33546))
|
117 |
-
- Docs: Run Prettier after updating API in documentation. ([33498](https://github.com/WordPress/gutenberg/pull/33498))
|
118 |
-
- Publish android artifacts with publish to s3 gradle plugin. ([33441](https://github.com/WordPress/gutenberg/pull/33441))
|
119 |
-
- Build: Split configuration into two parts - blocks and packages. ([33293](https://github.com/WordPress/gutenberg/pull/33293))
|
120 |
-
- Automate grouping of release `Changelog` PRs by feature. ([33229](https://github.com/WordPress/gutenberg/pull/33229))
|
121 |
-
- Fix dependency extraction webpack v5 deprecation. ([33090](https://github.com/WordPress/gutenberg/pull/33090))
|
122 |
-
- Scripts: Update eslint-plugin-markdown version. ([33432](https://github.com/WordPress/gutenberg/pull/33432))
|
123 |
-
- Replace CRLF with LF when generating unminified assets. ([33509](https://github.com/WordPress/gutenberg/pull/33509))
|
124 |
-
|
125 |
-
|
126 |
-
### Documentation
|
127 |
-
|
128 |
-
- Add missing space in documentation. ([33690](https://github.com/WordPress/gutenberg/pull/33690))
|
129 |
-
- Added common steps of plugin translation. ([23535](https://github.com/WordPress/gutenberg/pull/23535))
|
130 |
-
- Packages: Ensure changelog entries are attributed to the correct release. ([33590](https://github.com/WordPress/gutenberg/pull/33590))
|
131 |
-
- Add i18n filters to documentation table of contents. ([33556](https://github.com/WordPress/gutenberg/pull/33556))
|
132 |
-
- Update the create a block theme how-to guide. ([33382](https://github.com/WordPress/gutenberg/pull/33382))
|
133 |
-
- Block API: Improve how blocks assets are versioned. ([33075](https://github.com/WordPress/gutenberg/pull/33075))
|
134 |
-
- Update the tested up to version in the readme file. ([33760](https://github.com/WordPress/gutenberg/pull/33760))
|
135 |
-
- Correct {% end%} tag - missing a space. ([33189](https://github.com/WordPress/gutenberg/pull/33189))
|
136 |
-
- Use tabs instead of spaces in block transform doc example. ([33549](https://github.com/WordPress/gutenberg/pull/33549))
|
137 |
-
- Fix flaky widgets end-to-end tests by waiting for the snackbar correctly. ([33317](https://github.com/WordPress/gutenberg/pull/33317))
|
138 |
-
- Scripts: Add changlog entry for module update. ([33473](https://github.com/WordPress/gutenberg/pull/33473))
|
139 |
-
- Create block: Update "Tested up to" in readme.txt. ([33493](https://github.com/WordPress/gutenberg/pull/33493))
|
140 |
-
|
141 |
-
|
142 |
-
### Code Quality
|
143 |
-
|
144 |
-
- Block Library
|
145 |
-
- Fix optional params in page list rendering. ([33639](https://github.com/WordPress/gutenberg/pull/33639))
|
146 |
-
|
147 |
-
- Block Editor
|
148 |
-
- Block editor: Use React events for shortcuts (portal bubbles & contextual). ([32323](https://github.com/WordPress/gutenberg/pull/32323))
|
149 |
-
- Block editor: Remove focus stopPropagation from appender. ([32003](https://github.com/WordPress/gutenberg/pull/32003))
|
150 |
-
- Block editor: iframe: Incorporate writing flow. ([33497](https://github.com/WordPress/gutenberg/pull/33497))
|
151 |
-
- Escape key sanity (avoid event.stopPropagation). ([33630](https://github.com/WordPress/gutenberg/pull/33630))
|
152 |
-
- Writing flow: select all: Remove early return for post title. ([33699](https://github.com/WordPress/gutenberg/pull/33699))
|
153 |
-
- Remove event.stopPropagation for past WritingFlow/ObserveTyping compatibility. ([33632](https://github.com/WordPress/gutenberg/pull/33632))
|
154 |
-
|
155 |
-
- Post Editor
|
156 |
-
- Editor: Refactor Post Author component. ([33695](https://github.com/WordPress/gutenberg/pull/33695))
|
157 |
|
158 |
|
159 |
|
160 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
161 |
= 11.1.0 =
|
162 |
|
163 |
### Enhancements
|
1 |
== Changelog ==
|
2 |
|
3 |
+
= 11.2.1 =
|
4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
### Bug Fixes
|
6 |
|
7 |
+
- Fix available alignments and layout for the post editor. ([33894](https://github.com/WordPress/gutenberg/pull/33894))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
+
= 11.2.0 =
|
14 |
+
|
15 |
+
### Features
|
16 |
+
|
17 |
+
- Search Block: Add color support to search button. ([32416](https://github.com/WordPress/gutenberg/pull/32416))
|
18 |
+
- Search Block: Add border color support. ([31783](https://github.com/WordPress/gutenberg/pull/31783))
|
19 |
+
- Pullquote: Add border and color support. ([30951](https://github.com/WordPress/gutenberg/pull/30951))
|
20 |
+
|
21 |
+
|
22 |
+
### Enhancements
|
23 |
+
|
24 |
+
- Post Editor
|
25 |
+
- Add a new page/post button on publish panel. ([33276](https://github.com/WordPress/gutenberg/pull/33276))
|
26 |
+
|
27 |
+
- Widgets Editor
|
28 |
+
- Widget inserter: Clarify that the button toggles the inserter. ([33561](https://github.com/WordPress/gutenberg/pull/33561))
|
29 |
+
- Update widget editor help links to point to the new support article. ([33482](https://github.com/WordPress/gutenberg/pull/33482))
|
30 |
+
|
31 |
+
- Components
|
32 |
+
- `Spacer`: Change props override order, split types. ([33555](https://github.com/WordPress/gutenberg/pull/33555))
|
33 |
+
- `Elevation`: Reduced motion styles, updated documentation and README. ([33551](https://github.com/WordPress/gutenberg/pull/33551))
|
34 |
+
- components: Add unit values utils. ([33514](https://github.com/WordPress/gutenberg/pull/33514))
|
35 |
+
- components: Add isValueNumeric util. ([33206](https://github.com/WordPress/gutenberg/pull/33206))
|
36 |
+
- [Components]: Add SegmentedControl. ([31937](https://github.com/WordPress/gutenberg/pull/31937))
|
37 |
+
- Components: Promote VisuallyHidden from ui into full components (#31244). ([31902](https://github.com/WordPress/gutenberg/pull/31902))
|
38 |
+
|
39 |
+
- Accessibility
|
40 |
+
- Inserter: In text label mode, use "Close" label when inserter is open. ([33534](https://github.com/WordPress/gutenberg/pull/33534))
|
41 |
+
|
42 |
+
- Data
|
43 |
+
- Core Data: Pass query argument to data selector shortcuts. ([33689](https://github.com/WordPress/gutenberg/pull/33689))
|
44 |
+
|
45 |
+
|
46 |
+
### Bug Fixes
|
47 |
+
|
48 |
+
- Block Library
|
49 |
+
- Featured Image: Allow authors to select images uploaded by other users. ([33567](https://github.com/WordPress/gutenberg/pull/33567))
|
50 |
+
- Template Part: Avoid button layout shift. ([33362](https://github.com/WordPress/gutenberg/pull/33362))
|
51 |
+
- Remove instagram reference from embed block's description. ([33519](https://github.com/WordPress/gutenberg/pull/33519))
|
52 |
+
|
53 |
+
- Block Editor
|
54 |
+
- Fixed that the block is selected instead of the title when using the select all shortcut. ([33621](https://github.com/WordPress/gutenberg/pull/33621))
|
55 |
+
|
56 |
+
- Post Editor
|
57 |
+
- Most Used Terms: Avoid 403 error for non-administrators. ([33569](https://github.com/WordPress/gutenberg/pull/33569))
|
58 |
+
- Editor: Set 'hide_empty' for the most used terms query. ([33457](https://github.com/WordPress/gutenberg/pull/33457))
|
59 |
+
- HierarchicalTermSelector: Use TextControl component. ([33545](https://github.com/WordPress/gutenberg/pull/33545))
|
60 |
+
- PWA manifest: icon: Fix error when admin bar is gone. ([33702](https://github.com/WordPress/gutenberg/pull/33702))
|
61 |
+
|
62 |
+
- Widgets Editor
|
63 |
+
- Fix plugin/theme incompatibility, call onChangeSectionExpanded conditionally. ([33618](https://github.com/WordPress/gutenberg/pull/33618))
|
64 |
+
|
65 |
+
- Components
|
66 |
+
- Fix: Native UnitControl to handle single unit configuration. ([33641](https://github.com/WordPress/gutenberg/pull/33641))
|
67 |
+
- NumberControl: Allow empty values. ([33485](https://github.com/WordPress/gutenberg/pull/33485))
|
68 |
+
- BoxControl: Prevent invalid style values. ([33444](https://github.com/WordPress/gutenberg/pull/33444))
|
69 |
+
- FocalPointPicker: Check if value is NaN. ([33637](https://github.com/WordPress/gutenberg/pull/33637))
|
70 |
+
- UnitControl: Set correct unit when units has one option. ([33634](https://github.com/WordPress/gutenberg/pull/33634))
|
71 |
+
- components: Use useCx to fix iframe support. ([33301](https://github.com/WordPress/gutenberg/pull/33301))
|
72 |
+
- Card: Add missing `box-sizing` CSS rules. ([33511](https://github.com/WordPress/gutenberg/pull/33511))
|
73 |
+
- CardBody: Change default value of `isScrollable` to `false`. ([33490](https://github.com/WordPress/gutenberg/pull/33490))
|
74 |
+
- `ItemGroup`: Fix padding, split types, rename boolean props. ([33553](https://github.com/WordPress/gutenberg/pull/33553))
|
75 |
+
|
76 |
+
- Themes
|
77 |
+
- I18n: Fix broken loop in `WP_Theme_JSON_Resolver`. ([33624](https://github.com/WordPress/gutenberg/pull/33624))
|
78 |
+
|
79 |
+
- Site Editor
|
80 |
+
- Site editor: Check template resolution. ([33527](https://github.com/WordPress/gutenberg/pull/33527))
|
81 |
+
- FSE: Fix content height. ([33698](https://github.com/WordPress/gutenberg/pull/33698))
|
82 |
+
|
83 |
+
- Media
|
84 |
+
- Format Library: Remove `style` from inline image if `width` not set. ([32516](https://github.com/WordPress/gutenberg/pull/32516))
|
85 |
+
|
86 |
+
|
87 |
+
### Performance
|
88 |
+
|
89 |
+
- Drag and drop
|
90 |
+
- Set passive listener option for use popover scroll to avoid affecting scrolling performance. ([33478](https://github.com/WordPress/gutenberg/pull/33478))
|
91 |
+
- Drag items via transform property to avoid layout and re-paints. ([33395](https://github.com/WordPress/gutenberg/pull/33395))
|
92 |
+
|
93 |
+
|
94 |
+
### Experiments
|
95 |
+
|
96 |
+
- Full Site Editing
|
97 |
+
- Query Pagination: Update the arrows on the Next and Prev pagination blocks. ([33626](https://github.com/WordPress/gutenberg/pull/33626))
|
98 |
+
|
99 |
+
- Block Library
|
100 |
+
- Add flex layout support to the block editor. ([33359](https://github.com/WordPress/gutenberg/pull/33359))
|
101 |
+
|
102 |
+
|
103 |
+
### Tools
|
104 |
+
|
105 |
+
- Testing
|
106 |
+
- E2E: Navigation wait for links before counting them. ([33704](https://github.com/WordPress/gutenberg/pull/33704))
|
107 |
+
- Automation: Track Gutenberg performance metrics over time. ([33694](https://github.com/WordPress/gutenberg/pull/33694))
|
108 |
+
- Re-enable "Save flow should work as expected" end-to-end test. ([33548](https://github.com/WordPress/gutenberg/pull/33548))
|
109 |
+
- Skip some widgets editing related tests. ([33547](https://github.com/WordPress/gutenberg/pull/33547))
|
110 |
+
- Enable the reusable blocks skipped test. ([33510](https://github.com/WordPress/gutenberg/pull/33510))
|
111 |
+
- Skip end-to-end tests. ([33503](https://github.com/WordPress/gutenberg/pull/33503))
|
112 |
+
- Tests: Run Prettier after regenerating test fixture. ([33502](https://github.com/WordPress/gutenberg/pull/33502))
|
113 |
+
- Fix screenshots not being captured when snapshots failed. ([33448](https://github.com/WordPress/gutenberg/pull/33448))
|
114 |
+
- Add coverage folder to .gitignore. ([33413](https://github.com/WordPress/gutenberg/pull/33413))
|
115 |
+
- Automated Testing: Disable remote patterns in tests. ([33160](https://github.com/WordPress/gutenberg/pull/33160))
|
116 |
+
- Improve function widgets test. ([33489](https://github.com/WordPress/gutenberg/pull/33489))
|
117 |
+
- Make the performance CI job more stable. ([33710](https://github.com/WordPress/gutenberg/pull/33710))
|
118 |
+
- Update button block corner radius test to px. ([33562](https://github.com/WordPress/gutenberg/pull/33562))
|
119 |
+
- Add unsupported block title translation test. ([33340](https://github.com/WordPress/gutenberg/pull/33340))
|
120 |
+
- Re-enable skipped widgets end-to-end test. ([33449](https://github.com/WordPress/gutenberg/pull/33449))
|
121 |
+
|
122 |
+
- Build Tooling
|
123 |
+
- Update sass version to 1.35.2 with fixes. ([33433](https://github.com/WordPress/gutenberg/pull/33433))
|
124 |
+
- Improve `Feature` mapping in automatically generated changelog. ([33625](https://github.com/WordPress/gutenberg/pull/33625))
|
125 |
+
- Add depth to git fetch in npm publishing. ([33595](https://github.com/WordPress/gutenberg/pull/33595))
|
126 |
+
- Release docs: Add process for creating a point release of the Plugin. ([33546](https://github.com/WordPress/gutenberg/pull/33546))
|
127 |
+
- Docs: Run Prettier after updating API in documentation. ([33498](https://github.com/WordPress/gutenberg/pull/33498))
|
128 |
+
- Publish android artifacts with publish to s3 gradle plugin. ([33441](https://github.com/WordPress/gutenberg/pull/33441))
|
129 |
+
- Build: Split configuration into two parts - blocks and packages. ([33293](https://github.com/WordPress/gutenberg/pull/33293))
|
130 |
+
- Automate grouping of release `Changelog` PRs by feature. ([33229](https://github.com/WordPress/gutenberg/pull/33229))
|
131 |
+
- Fix dependency extraction webpack v5 deprecation. ([33090](https://github.com/WordPress/gutenberg/pull/33090))
|
132 |
+
- Scripts: Update eslint-plugin-markdown version. ([33432](https://github.com/WordPress/gutenberg/pull/33432))
|
133 |
+
- Replace CRLF with LF when generating unminified assets. ([33509](https://github.com/WordPress/gutenberg/pull/33509))
|
134 |
+
|
135 |
+
|
136 |
+
### Documentation
|
137 |
+
|
138 |
+
- Add missing space in documentation. ([33690](https://github.com/WordPress/gutenberg/pull/33690))
|
139 |
+
- Added common steps of plugin translation. ([23535](https://github.com/WordPress/gutenberg/pull/23535))
|
140 |
+
- Packages: Ensure changelog entries are attributed to the correct release. ([33590](https://github.com/WordPress/gutenberg/pull/33590))
|
141 |
+
- Add i18n filters to documentation table of contents. ([33556](https://github.com/WordPress/gutenberg/pull/33556))
|
142 |
+
- Update the create a block theme how-to guide. ([33382](https://github.com/WordPress/gutenberg/pull/33382))
|
143 |
+
- Block API: Improve how blocks assets are versioned. ([33075](https://github.com/WordPress/gutenberg/pull/33075))
|
144 |
+
- Update the tested up to version in the readme file. ([33760](https://github.com/WordPress/gutenberg/pull/33760))
|
145 |
+
- Correct {% end%} tag - missing a space. ([33189](https://github.com/WordPress/gutenberg/pull/33189))
|
146 |
+
- Use tabs instead of spaces in block transform doc example. ([33549](https://github.com/WordPress/gutenberg/pull/33549))
|
147 |
+
- Fix flaky widgets end-to-end tests by waiting for the snackbar correctly. ([33317](https://github.com/WordPress/gutenberg/pull/33317))
|
148 |
+
- Scripts: Add changlog entry for module update. ([33473](https://github.com/WordPress/gutenberg/pull/33473))
|
149 |
+
- Create block: Update "Tested up to" in readme.txt. ([33493](https://github.com/WordPress/gutenberg/pull/33493))
|
150 |
+
|
151 |
+
|
152 |
+
### Code Quality
|
153 |
+
|
154 |
+
- Block Library
|
155 |
+
- Fix optional params in page list rendering. ([33639](https://github.com/WordPress/gutenberg/pull/33639))
|
156 |
+
|
157 |
+
- Block Editor
|
158 |
+
- Block editor: Use React events for shortcuts (portal bubbles & contextual). ([32323](https://github.com/WordPress/gutenberg/pull/32323))
|
159 |
+
- Block editor: Remove focus stopPropagation from appender. ([32003](https://github.com/WordPress/gutenberg/pull/32003))
|
160 |
+
- Block editor: iframe: Incorporate writing flow. ([33497](https://github.com/WordPress/gutenberg/pull/33497))
|
161 |
+
- Escape key sanity (avoid event.stopPropagation). ([33630](https://github.com/WordPress/gutenberg/pull/33630))
|
162 |
+
- Writing flow: select all: Remove early return for post title. ([33699](https://github.com/WordPress/gutenberg/pull/33699))
|
163 |
+
- Remove event.stopPropagation for past WritingFlow/ObserveTyping compatibility. ([33632](https://github.com/WordPress/gutenberg/pull/33632))
|
164 |
+
|
165 |
+
- Post Editor
|
166 |
+
- Editor: Refactor Post Author component. ([33695](https://github.com/WordPress/gutenberg/pull/33695))
|
167 |
+
|
168 |
+
|
169 |
+
|
170 |
+
|
171 |
= 11.1.0 =
|
172 |
|
173 |
### Enhancements
|
gutenberg.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Description: Printing since 1440. This is the development plugin for the new block editor in core.
|
6 |
* Requires at least: 5.6
|
7 |
* Requires PHP: 5.6
|
8 |
-
* Version: 11.2.
|
9 |
* Author: Gutenberg Team
|
10 |
* Text Domain: gutenberg
|
11 |
*
|
@@ -13,8 +13,8 @@
|
|
13 |
*/
|
14 |
|
15 |
### BEGIN AUTO-GENERATED DEFINES
|
16 |
-
define( 'GUTENBERG_VERSION', '11.2.
|
17 |
-
define( 'GUTENBERG_GIT_COMMIT', '
|
18 |
### END AUTO-GENERATED DEFINES
|
19 |
|
20 |
gutenberg_pre_init();
|
5 |
* Description: Printing since 1440. This is the development plugin for the new block editor in core.
|
6 |
* Requires at least: 5.6
|
7 |
* Requires PHP: 5.6
|
8 |
+
* Version: 11.2.1
|
9 |
* Author: Gutenberg Team
|
10 |
* Text Domain: gutenberg
|
11 |
*
|
13 |
*/
|
14 |
|
15 |
### BEGIN AUTO-GENERATED DEFINES
|
16 |
+
define( 'GUTENBERG_VERSION', '11.2.1' );
|
17 |
+
define( 'GUTENBERG_GIT_COMMIT', 'dc08d8ee95aa3a11df3e5fdff9cdeb526a8152be' );
|
18 |
### END AUTO-GENERATED DEFINES
|
19 |
|
20 |
gutenberg_pre_init();
|
readme.txt
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
=== Gutenberg ===
|
2 |
Contributors: matveb, joen, karmatosed
|
3 |
Tested up to: 5.8
|
4 |
-
Stable tag: 11.
|
5 |
License: GPLv2 or later
|
6 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
7 |
|
@@ -55,4 +55,4 @@ View <a href="https://developer.wordpress.org/block-editor/principles/versions-i
|
|
55 |
|
56 |
== Changelog ==
|
57 |
|
58 |
-
To read the changelog for Gutenberg 11.2.
|
1 |
=== Gutenberg ===
|
2 |
Contributors: matveb, joen, karmatosed
|
3 |
Tested up to: 5.8
|
4 |
+
Stable tag: 11.2.0
|
5 |
License: GPLv2 or later
|
6 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
7 |
|
55 |
|
56 |
== Changelog ==
|
57 |
|
58 |
+
To read the changelog for Gutenberg 11.2.1, please navigate to the <a href="https://github.com/WordPress/gutenberg/releases/tag/v11.2.1">release page</a>.
|