/
home
/
desid573
/
cf.desidrivers.com.au
/
wp-includes
/
js
/
dist
/
/home/desid573/cf.desidrivers.com.au/wp-includes/js/dist
mkdir
upload
Name
Size
Mode
Actions
development/
-
0755
rm
script-modules/
-
0755
rm
vendor/
-
0755
rm
a11y.js
5697
0644
edit
dl
rm
a11y.min.js
2616
0644
edit
dl
rm
annotations.js
15952
0644
edit
dl
rm
annotations.min.js
5978
0644
edit
dl
rm
api-fetch.js
20003
0644
edit
dl
rm
api-fetch.min.js
7510
0644
edit
dl
rm
autop.js
10019
0644
edit
dl
rm
autop.min.js
5694
0644
edit
dl
rm
base-styles.js
115
0644
edit
dl
rm
base-styles.min.js
142
0644
edit
dl
rm
blob.js
2410
0644
edit
dl
rm
blob.min.js
1243
0644
edit
dl
rm
block-directory.js
381638
0644
edit
dl
rm
block-directory.min.js
129573
0644
edit
dl
rm
block-editor.js
3779291
0644
edit
dl
rm
block-editor.min.js
1411106
0644
edit
dl
rm
block-library.js
3022684
0644
edit
dl
rm
block-library.min.js
1304378
0644
edit
dl
rm
block-serialization-default-parser.js
6800
0644
edit
dl
rm
block-serialization-default-parser.min.js
2560
0644
edit
dl
rm
block-serialization-spec-parser.js
51796
0644
edit
dl
rm
block-serialization-spec-parser.min.js
10728
0644
edit
dl
rm
blocks.js
299905
0644
edit
dl
rm
blocks.min.js
146426
0644
edit
dl
rm
commands.js
131739
0644
edit
dl
rm
commands.min.js
57227
0644
edit
dl
rm
components.js
3821298
0644
edit
dl
rm
components.min.js
836689
0644
edit
dl
rm
compose.js
85752
0644
edit
dl
rm
compose.min.js
30098
0644
edit
dl
rm
core-commands.js
29805
0644
edit
dl
rm
core-commands.min.js
12489
0644
edit
dl
rm
core-data.js
675840
0644
edit
dl
rm
core-data.min.js
231957
0644
edit
dl
rm
customize-widgets.js
114226
0644
edit
dl
rm
customize-widgets.min.js
44466
0644
edit
dl
rm
data-controls.js
4301
0644
edit
dl
rm
data-controls.min.js
1885
0644
edit
dl
rm
data.js
85698
0644
edit
dl
rm
data.min.js
26664
0644
edit
dl
rm
date.js
180935
0644
edit
dl
rm
date.min.js
144747
0644
edit
dl
rm
deprecated.js
3180
0644
edit
dl
rm
deprecated.min.js
1382
0644
edit
dl
rm
dom-ready.js
1571
0644
edit
dl
rm
dom-ready.min.js
881
0644
edit
dl
rm
dom.js
35962
0644
edit
dl
rm
dom.min.js
13172
0644
edit
dl
rm
edit-post.js
451359
0644
edit
dl
rm
edit-post.min.js
160157
0644
edit
dl
rm
edit-site.js
2304757
0644
edit
dl
rm
edit-site.min.js
905288
0644
edit
dl
rm
edit-widgets.js
184620
0644
edit
dl
rm
edit-widgets.min.js
70465
0644
edit
dl
rm
editor.js
3968367
0644
edit
dl
rm
editor.min.js
1573886
0644
edit
dl
rm
element.js
27971
0644
edit
dl
rm
element.min.js
12468
0644
edit
dl
rm
escape-html.js
2413
0644
edit
dl
rm
escape-html.min.js
1158
0644
edit
dl
rm
format-library.js
234957
0644
edit
dl
rm
format-library.min.js
98495
0644
edit
dl
rm
hooks.js
12299
0644
edit
dl
rm
hooks.min.js
5107
0644
edit
dl
rm
html-entities.js
1756
0644
edit
dl
rm
html-entities.min.js
950
0644
edit
dl
rm
i18n.js
15725
0644
edit
dl
rm
i18n.min.js
5791
0644
edit
dl
rm
is-shallow-equal.js
2833
0644
edit
dl
rm
is-shallow-equal.min.js
1197
0644
edit
dl
rm
keyboard-shortcuts.js
10508
0644
edit
dl
rm
keyboard-shortcuts.min.js
3682
0644
edit
dl
rm
keycodes.js
8564
0644
edit
dl
rm
keycodes.min.js
3038
0644
edit
dl
rm
list-reusable-blocks.js
13662
0644
edit
dl
rm
list-reusable-blocks.min.js
5539
0644
edit
dl
rm
media-utils.js
1065027
0644
edit
dl
rm
media-utils.min.js
390995
0644
edit
dl
rm
notices.js
9783
0644
edit
dl
rm
notices.min.js
3947
0644
edit
dl
rm
nux.js
4423
0644
edit
dl
rm
nux.min.js
1749
0644
edit
dl
rm
patterns.js
90184
0644
edit
dl
rm
patterns.min.js
38302
0644
edit
dl
rm
plugins.js
21220
0644
edit
dl
rm
plugins.min.js
7253
0644
edit
dl
rm
preferences-persistence.js
17720
0644
edit
dl
rm
preferences-persistence.min.js
5713
0644
edit
dl
rm
preferences.js
21531
0644
edit
dl
rm
preferences.min.js
8028
0644
edit
dl
rm
primitives.js
5270
0644
edit
dl
rm
primitives.min.js
2093
0644
edit
dl
rm
priority-queue.js
10338
0644
edit
dl
rm
priority-queue.min.js
3505
0644
edit
dl
rm
private-apis.js
4531
0644
edit
dl
rm
private-apis.min.js
3017
0644
edit
dl
rm
react-i18n.js
4064
0644
edit
dl
rm
react-i18n.min.js
1627
0644
edit
dl
rm
redux-routine.js
25346
0644
edit
dl
rm
redux-routine.min.js
9952
0644
edit
dl
rm
reusable-blocks.js
22391
0644
edit
dl
rm
reusable-blocks.min.js
8185
0644
edit
dl
rm
rich-text.js
107405
0644
edit
dl
rm
rich-text.min.js
43182
0644
edit
dl
rm
router.js
37079
0644
edit
dl
rm
router.min.js
14552
0644
edit
dl
rm
server-side-render.js
11588
0644
edit
dl
rm
server-side-render.min.js
4198
0644
edit
dl
rm
shortcode.js
8215
0644
edit
dl
rm
shortcode.min.js
3426
0644
edit
dl
rm
style-engine.js
18810
0644
edit
dl
rm
style-engine.min.js
6946
0644
edit
dl
rm
theme.js
138733
0644
edit
dl
rm
theme.min.js
61144
0644
edit
dl
rm
token-list.js
6327
0644
edit
dl
rm
token-list.min.js
1723
0644
edit
dl
rm
undo-manager.js
5491
0644
edit
dl
rm
undo-manager.min.js
1808
0644
edit
dl
rm
upload-media.js
118036
0644
edit
dl
rm
upload-media.min.js
49874
0644
edit
dl
rm
url.js
23957
0644
edit
dl
rm
url.min.js
10423
0644
edit
dl
rm
viewport.js
7312
0644
edit
dl
rm
viewport.min.js
2374
0644
edit
dl
rm
warning.js
1616
0644
edit
dl
rm
warning.min.js
816
0644
edit
dl
rm
widgets.js
51346
0644
edit
dl
rm
widgets.min.js
21475
0644
edit
dl
rm
wordcount.js
7166
0644
edit
dl
rm
wordcount.min.js
2570
0644
edit
dl
rm
Edit:
/home/desid573/cf.desidrivers.com.au/wp-includes/js/dist/format-library.min.js
(98495B)
/*! This file is auto-generated */ (function() { var wp;(wp||={}).formatLibrary=(()=>{var Tl=Object.create;var Qr=Object.defineProperty;var Cl=Object.getOwnPropertyDescriptor;var El=Object.getOwnPropertyNames;var kl=Object.getPrototypeOf,Nl=Object.prototype.hasOwnProperty;var Il=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var Z=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),to=(t,e)=>{for(var r in e)Qr(t,r,{get:e[r],enumerable:!0})},Pl=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of El(e))!Nl.call(t,o)&&o!==r&&Qr(t,o,{get:()=>e[o],enumerable:!(n=Cl(e,o))||n.enumerable});return t};var i=(t,e,r)=>(r=t!=null?Tl(kl(t)):{},Pl(e||!t||!t.__esModule?Qr(r,"default",{value:t,enumerable:!0}):r,t));var K=Z((hu,ea)=>{ea.exports=window.wp.richText});var U=Z((bu,ra)=>{ra.exports=window.wp.i18n});var G=Z((vu,oa)=>{oa.exports=window.wp.blockEditor});var W=Z((xu,na)=>{na.exports=window.wp.element});var J=Z((_u,aa)=>{aa.exports=window.wp.primitives});var R=Z((yu,ia)=>{ia.exports=window.ReactJSXRuntime});var Wt=Z((ad,ua)=>{ua.exports=window.wp.components});var N=Z((sd,ma)=>{ma.exports=window.React});var Ya=Z((Sm,Ka)=>{Ka.exports=window.ReactDOM});var ti=Z(Qa=>{"use strict";var le=N();function $f(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Kf=typeof Object.is=="function"?Object.is:$f,Yf=le.useState,Gf=le.useEffect,qf=le.useLayoutEffect,Zf=le.useDebugValue;function Xf(t,e){var r=e(),n=Yf({inst:{value:r,getSnapshot:e}}),o=n[0].inst,a=n[1];return qf(function(){o.value=r,o.getSnapshot=e,rn(o)&&a({inst:o})},[t,r,e]),Gf(function(){return rn(o)&&a({inst:o}),t(function(){rn(o)&&a({inst:o})})},[t]),Zf(r),r}function rn(t){var e=t.getSnapshot;t=t.value;try{var r=e();return!Kf(t,r)}catch{return!0}}function Jf(t,e){return e()}var Qf=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Jf:Xf;Qa.useSyncExternalStore=le.useSyncExternalStore!==void 0?le.useSyncExternalStore:Qf});var ri=Z((Fm,ei)=>{"use strict";ei.exports=ti()});var Nr=Z(($g,ki)=>{ki.exports=window.wp.a11y});var hn=Z((qg,Li)=>{Li.exports=window.wp.compose});var Ai=Z((Zg,Mi)=>{Mi.exports=window.wp.privateApis});var Or=Z((qh,fs)=>{fs.exports=window.wp.url});var us=Z((Zh,cs)=>{cs.exports=window.wp.htmlEntities});var Dn=Z((Xh,ds)=>{ds.exports=window.wp.data});var Rl=i(K(),1);var sa=i(U(),1),Mo=i(K(),1),ie=i(G(),1);var $e=i(W(),1),eo=(0,$e.forwardRef)(({icon:t,size:e=24,...r},n)=>(0,$e.cloneElement)(t,{width:e,height:e,...r,ref:n}));var Ke=i(J(),1),ro=i(R(),1),oo=(0,ro.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,ro.jsx)(Ke.Path,{d:"M8 12.5h8V11H8v1.5Z M19 6.5H5a2 2 0 0 0-2 2V15a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8.5a2 2 0 0 0-2-2ZM5 8h14a.5.5 0 0 1 .5.5V15a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V8.5A.5.5 0 0 1 5 8Z"})});var Ye=i(J(),1),no=i(R(),1),ao=(0,no.jsx)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,no.jsx)(Ye.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"})});var Ge=i(J(),1),io=i(R(),1),so=(0,io.jsx)(Ge.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,io.jsx)(Ge.Path,{d:"M20.8 10.7l-4.3-4.3-1.1 1.1 4.3 4.3c.1.1.1.3 0 .4l-4.3 4.3 1.1 1.1 4.3-4.3c.7-.8.7-1.9 0-2.6zM4.2 11.8l4.3-4.3-1-1-4.3 4.3c-.7.7-.7 1.8 0 2.5l4.3 4.3 1.1-1.1-4.3-4.3c-.2-.1-.2-.3-.1-.4z"})});var qe=i(J(),1),lo=i(R(),1),fo=(0,lo.jsx)(qe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,lo.jsx)(qe.Path,{d:"M17.2 10.9c-.5-1-1.2-2.1-2.1-3.2-.6-.9-1.3-1.7-2.1-2.6L12 4l-1 1.1c-.6.9-1.3 1.7-2 2.6-.8 1.2-1.5 2.3-2 3.2-.6 1.2-1 2.2-1 3 0 3.4 2.7 6.1 6.1 6.1s6.1-2.7 6.1-6.1c0-.8-.3-1.8-1-3zm-5.1 7.6c-2.5 0-4.6-2.1-4.6-4.6 0-.3.1-1 .8-2.3.5-.9 1.1-1.9 2-3.1.7-.9 1.3-1.7 1.8-2.3.7.8 1.3 1.6 1.8 2.3.8 1.1 1.5 2.2 2 3.1.7 1.3.8 2 .8 2.3 0 2.5-2.1 4.6-4.6 4.6z"})});var Ze=i(J(),1),co=i(R(),1),uo=(0,co.jsx)(Ze.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,co.jsx)(Ze.Path,{d:"M14.7 11.3c1-.6 1.5-1.6 1.5-3 0-2.3-1.3-3.4-4-3.4H7v14h5.8c1.4 0 2.5-.3 3.3-1 .8-.7 1.2-1.7 1.2-2.9.1-1.9-.8-3.1-2.6-3.7zm-5.1-4h2.3c.6 0 1.1.1 1.4.4.3.3.5.7.5 1.2s-.2 1-.5 1.2c-.3.3-.8.4-1.4.4H9.6V7.3zm4.6 9c-.4.3-1 .4-1.7.4H9.6v-3.9h2.9c.7 0 1.3.2 1.7.5.4.3.6.8.6 1.5s-.2 1.2-.6 1.5z"})});var Xe=i(J(),1),mo=i(R(),1),po=(0,mo.jsx)(Xe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,mo.jsx)(Xe.Path,{d:"M12.5 5L10 19h1.9l2.5-14z"})});var Je=i(J(),1),go=i(R(),1),ho=(0,go.jsx)(Je.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,go.jsx)(Je.Path,{d:"M9.1 9v-.5c0-.6.2-1.1.7-1.4.5-.3 1.2-.5 2-.5.7 0 1.4.1 2.1.3.7.2 1.4.5 2.1.9l.2-1.9c-.6-.3-1.2-.5-1.9-.7-.8-.1-1.6-.2-2.4-.2-1.5 0-2.7.3-3.6 1-.8.7-1.2 1.5-1.2 2.6V9h2zM20 12H4v1h8.3c.3.1.6.2.8.3.5.2.9.5 1.1.8.3.3.4.7.4 1.2 0 .7-.2 1.1-.8 1.5-.5.3-1.2.5-2.1.5-.8 0-1.6-.1-2.4-.3-.8-.2-1.5-.5-2.2-.8L7 18.1c.5.2 1.2.4 2 .6.8.2 1.6.3 2.4.3 1.7 0 3-.3 3.9-1 .9-.7 1.3-1.6 1.3-2.8 0-.9-.2-1.7-.7-2.2H20v-1z"})});var Qe=i(J(),1),bo=i(R(),1),vo=(0,bo.jsx)(Qe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,bo.jsx)(Qe.Path,{d:"M12 4a8 8 0 1 1 .001 16.001A8 8 0 0 1 12 4Zm0 1.5a6.5 6.5 0 1 0-.001 13.001A6.5 6.5 0 0 0 12 5.5Zm.75 11h-1.5V15h1.5v1.5Zm-.445-9.234a3 3 0 0 1 .445 5.89V14h-1.5v-1.25c0-.57.452-.958.917-1.01A1.5 1.5 0 0 0 12 8.75a1.5 1.5 0 0 0-1.5 1.5H9a3 3 0 0 1 3.305-2.984Z"})});var tr=i(J(),1),xo=i(R(),1),wo=(0,xo.jsx)(tr.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,xo.jsx)(tr.Path,{d:"M17.5 10h-1.7l-3.7 10.5h1.7l.9-2.6h3.9l.9 2.6h1.7L17.5 10zm-2.2 6.3 1.4-4 1.4 4h-2.8zm-4.8-3.8c1.6-1.8 2.9-3.6 3.7-5.7H16V5.2h-5.8V3H8.8v2.2H3v1.5h9.6c-.7 1.6-1.8 3.1-3.1 4.6C8.6 10.2 7.8 9 7.2 8H5.6c.6 1.4 1.7 2.9 2.9 4.4l-2.4 2.4c-.3.4-.7.8-1.1 1.2l1 1 1.2-1.2c.8-.8 1.6-1.5 2.3-2.3.8.9 1.7 1.7 2.5 2.5l.6-1.5c-.7-.6-1.4-1.3-2.1-2z"})});var er=i(J(),1),_o=i(R(),1),yo=(0,_o.jsx)(er.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,_o.jsx)(er.Path,{d:"M10 17.389H8.444A5.194 5.194 0 1 1 8.444 7H10v1.5H8.444a3.694 3.694 0 0 0 0 7.389H10v1.5ZM14 7h1.556a5.194 5.194 0 0 1 0 10.39H14v-1.5h1.556a3.694 3.694 0 0 0 0-7.39H14V7Zm-4.5 6h5v-1.5h-5V13Z"})});var rr=i(J(),1),Ro=i(R(),1),So=(0,Ro.jsx)(rr.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Ro.jsx)(rr.Path,{d:"M11.2 6.8c-.7 0-1.4.5-1.6 1.1l-2.8 7.5-1.2-1.8c-.1-.2-.4-.3-.6-.3H3v1.5h1.6l1.2 1.8c.6.9 1.9.7 2.2-.3l2.9-7.9s.1-.2.2-.2h7.8V6.7h-7.8Zm5.3 3.4-1.9 1.9-1.9-1.9-1.1 1.1 1.9 1.9-1.9 1.9 1.1 1.1 1.9-1.9 1.9 1.9 1.1-1.1-1.9-1.9 1.9-1.9-1.1-1.1Z"})});var or=i(J(),1),To=i(R(),1),Co=(0,To.jsx)(or.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,To.jsx)(or.Path,{d:"M16.9 18.3l.8-1.2c.4-.6.7-1.2.9-1.6.2-.4.3-.8.3-1.2 0-.3-.1-.7-.2-1-.1-.3-.4-.5-.6-.7-.3-.2-.6-.3-1-.3s-.8.1-1.1.2c-.3.1-.7.3-1 .6l.2 1.3c.3-.3.5-.5.8-.6s.6-.2.9-.2c.3 0 .5.1.7.2.2.2.2.4.2.7 0 .3-.1.5-.2.8-.1.3-.4.7-.8 1.3L15 19.4h4.3v-1.2h-2.4zM14.1 7.2h-2L9.5 11 6.9 7.2h-2l3.6 5.3L4.7 18h2l2.7-4 2.7 4h2l-3.8-5.5 3.8-5.3z"})});var nr=i(J(),1),Eo=i(R(),1),ko=(0,Eo.jsx)(nr.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Eo.jsx)(nr.Path,{d:"M16.9 10.3l.8-1.3c.4-.6.7-1.2.9-1.6.2-.4.3-.8.3-1.2 0-.3-.1-.7-.2-1-.2-.2-.4-.4-.7-.6-.3-.2-.6-.3-1-.3s-.8.1-1.1.2c-.3.1-.7.3-1 .6l.1 1.3c.3-.3.5-.5.8-.6s.6-.2.9-.2c.3 0 .5.1.7.2.2.2.2.4.2.7 0 .3-.1.5-.2.8-.1.3-.4.7-.8 1.3l-1.8 2.8h4.3v-1.2h-2.2zm-2.8-3.1h-2L9.5 11 6.9 7.2h-2l3.6 5.3L4.7 18h2l2.7-4 2.7 4h2l-3.8-5.5 3.8-5.3z"})});var ar=i(J(),1),No=i(R(),1),Io=(0,No.jsx)(ar.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,No.jsx)(ar.Path,{d:"M12.9 6h-2l-4 11h1.9l1.1-3h4.2l1.1 3h1.9L12.9 6zm-2.5 6.5l1.5-4.9 1.7 4.9h-3.2z"})});var Pt=i(R(),1),Po="core/bold",Lo=(0,sa.__)("Bold"),la={name:Po,title:Lo,tagName:"strong",className:null,edit({isActive:t,value:e,onChange:r,onFocus:n,isVisible:o=!0}){function a(){r((0,Mo.toggleFormat)(e,{type:Po,title:Lo}))}function s(){r((0,Mo.toggleFormat)(e,{type:Po})),n()}return(0,Pt.jsxs)(Pt.Fragment,{children:[(0,Pt.jsx)(ie.RichTextShortcut,{type:"primary",character:"b",onUse:a}),o&&(0,Pt.jsx)(ie.RichTextToolbarButton,{name:"bold",icon:uo,title:Lo,onClick:s,isActive:t,shortcutType:"primary",shortcutCharacter:"b"}),(0,Pt.jsx)(ie.__unstableRichTextInputEvent,{inputType:"formatBold",onInput:a})]})}};var fa=i(U(),1),Ft=i(K(),1),ir=i(G(),1);var Ut=i(R(),1),Ao="core/code",Oo=(0,fa.__)("Inline code"),ca={name:Ao,title:Oo,tagName:"code",className:null,__unstableInputRule(t){let{start:r,text:n}=t;if(n[r-1]!=="`"||r-2<0)return t;let a=n.lastIndexOf("`",r-2);if(a===-1)return t;let s=a,l=r-2;return s===l||(t=(0,Ft.remove)(t,s,s+1),t=(0,Ft.remove)(t,l,l+1),t=(0,Ft.applyFormat)(t,{type:Ao},s,l)),t},edit({value:t,onChange:e,onFocus:r,isActive:n}){function o(){e((0,Ft.toggleFormat)(t,{type:Ao,title:Oo})),r()}return(0,Ut.jsxs)(Ut.Fragment,{children:[(0,Ut.jsx)(ir.RichTextShortcut,{type:"access",character:"x",onUse:o}),(0,Ut.jsx)(ir.RichTextToolbarButton,{icon:so,title:Oo,onClick:o,isActive:n,role:"menuitemcheckbox"})]})}};var it=i(Wt(),1);function da(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(e=0;e<o;e++)t[e]&&(r=da(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function Ll(){for(var t,e,r=0,n="",o=arguments.length;r<o;r++)(t=arguments[r])&&(e=da(t))&&(n&&(n+=" "),n+=e);return n}var Lt=Ll;var $t=i(N(),1);function pa({controlled:t,default:e,name:r,state:n="value"}){let{current:o}=$t.useRef(t!==void 0),[a,s]=$t.useState(e),l=o?t:a,c=$t.useCallback(f=>{o||s(f)},[]);return[l,c]}var Ml=i(N(),1),Te={...Ml};var ha=i(N(),1),ga={};function bt(t,e){let r=ha.useRef(ga);return r.current===ga&&(r.current=t(e)),r}var Bo=Te.useInsertionEffect,Al=Bo&&Bo!==Te.useLayoutEffect?Bo:t=>t();function O(t){let e=bt(Ol).current;return e.next=t,Al(e.effect),e.trampoline}function Ol(){let t={next:void 0,callback:Bl,trampoline:(...e)=>t.callback?.(...e),effect:()=>{t.callback=t.next}};return t}function Bl(){}var ba=i(N(),1),Vl=()=>{},M=typeof document<"u"?ba.useLayoutEffect:Vl;var Mt=i(N(),1);var sr=i(N(),1),Vo=sr.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}});function va(){return sr.useContext(Vo)}var xa=i(R(),1);function lr(t){let{children:e,elementsRef:r,labelsRef:n,onMapChange:o}=t,a=O(o),s=Mt.useRef(0),l=bt(zl).current,c=bt(jl).current,[f,d]=Mt.useState(0),g=Mt.useRef(f),S=O((v,m)=>{c.set(v,m??null),g.current+=1,d(g.current)}),b=O(v=>{c.delete(v),g.current+=1,d(g.current)}),h=Mt.useMemo(()=>{let v=new Map;return Array.from(c.keys()).filter(_=>_.isConnected).sort(Dl).forEach((_,u)=>{let y=c.get(_)??{};v.set(_,{...y,index:u})}),v},[c,f]);M(()=>{if(typeof MutationObserver!="function"||h.size===0)return;let v=new MutationObserver(m=>{let _=new Set,u=y=>_.has(y)?_.delete(y):_.add(y);m.forEach(y=>{y.removedNodes.forEach(u),y.addedNodes.forEach(u)}),_.size===0&&(g.current+=1,d(g.current))});return h.forEach((m,_)=>{_.parentElement&&v.observe(_.parentElement,{childList:!0})}),()=>{v.disconnect()}},[h]),M(()=>{g.current===f&&(r.current.length!==h.size&&(r.current.length=h.size),n&&n.current.length!==h.size&&(n.current.length=h.size),s.current=h.size),a(h)},[a,h,r,n,f]),M(()=>()=>{r.current=[]},[r]),M(()=>()=>{n&&(n.current=[])},[n]);let w=O(v=>(l.add(v),()=>{l.delete(v)}));M(()=>{l.forEach(v=>v(h))},[l,h]);let T=Mt.useMemo(()=>({register:S,unregister:b,subscribeMapChange:w,elementsRef:r,labelsRef:n,nextIndexRef:s}),[S,b,w,r,n,s]);return(0,xa.jsx)(Vo.Provider,{value:T,children:e})}function jl(){return new Map}function zl(){return new Set}function Dl(t,e){let r=t.compareDocumentPosition(e);return r&Node.DOCUMENT_POSITION_FOLLOWING||r&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:r&Node.DOCUMENT_POSITION_PRECEDING||r&Node.DOCUMENT_POSITION_CONTAINS?1:0}var fr=i(N(),1),Hl=fr.createContext(void 0);function wa(){return fr.useContext(Hl)?.direction??"ltr"}function Fl(t,e){return function(n,...o){let a=new URL(t);return a.searchParams.set("code",n.toString()),o.forEach(s=>a.searchParams.append("args[]",s)),`${e} error #${n}; visit ${a} for the full message.`}}var Ul=Fl("https://base-ui.com/production-error","Base UI"),At=Ul;var Yt=i(N(),1);function Kt(t,e,r,n){let o=bt(ya).current;return Wl(o,t,e,r,n)&&Ra(o,[t,e,r,n]),o.callback}function _a(t){let e=bt(ya).current;return $l(e,t)&&Ra(e,t),e.callback}function ya(){return{callback:null,cleanup:null,refs:[]}}function Wl(t,e,r,n,o){return t.refs[0]!==e||t.refs[1]!==r||t.refs[2]!==n||t.refs[3]!==o}function $l(t,e){return t.refs.length!==e.length||t.refs.some((r,n)=>r!==e[n])}function Ra(t,e){if(t.refs=e,e.every(r=>r==null)){t.callback=null;return}t.callback=r=>{if(t.cleanup&&(t.cleanup(),t.cleanup=null),r!=null){let n=Array(e.length).fill(null);for(let o=0;o<e.length;o+=1){let a=e[o];if(a!=null)switch(typeof a){case"function":{let s=a(r);typeof s=="function"&&(n[o]=s);break}case"object":{a.current=r;break}default:}}t.cleanup=()=>{for(let o=0;o<e.length;o+=1){let a=e[o];if(a!=null)switch(typeof a){case"function":{let s=n[o];typeof s=="function"?s():a(null);break}case"object":{a.current=null;break}default:}}}}}}var Ta=i(N(),1);var Sa=i(N(),1),Kl=parseInt(Sa.version,10);function cr(t){return Kl>=t}function jo(t){if(!Ta.isValidElement(t))return null;let e=t,r=e.props;return(cr(19)?r?.ref:e.ref)??null}function Ce(t,e){if(t&&!e)return t;if(!t&&e)return e;if(t||e)return{...t,...e}}function zo(){}var Ee=Object.freeze([]),vt=Object.freeze({});function Ca(t,e){let r={};for(let n in t){let o=t[n];if(e?.hasOwnProperty(n)){let a=e[n](o);a!=null&&Object.assign(r,a);continue}o===!0?r[`data-${n.toLowerCase()}`]="":o&&(r[`data-${n.toLowerCase()}`]=o.toString())}return r}function Ea(t,e){return typeof t=="function"?t(e):t}function ka(t,e){return typeof t=="function"?t(e):t}var Do={};function ct(t,e,r,n,o){if(!r&&!n&&!o&&!t)return ur(e);let a=ur(t);return e&&(a=ke(a,e)),r&&(a=ke(a,r)),n&&(a=ke(a,n)),o&&(a=ke(a,o)),a}function Na(t){if(t.length===0)return Do;if(t.length===1)return ur(t[0]);let e=ur(t[0]);for(let r=1;r<t.length;r+=1)e=ke(e,t[r]);return e}function ur(t){return Ho(t)?{...Pa(t,Do)}:Yl(t)}function ke(t,e){return Ho(e)?Pa(e,t):Gl(t,e)}function Yl(t){let e={...t};for(let r in e){let n=e[r];Ia(r,n)&&(e[r]=La(n))}return e}function Gl(t,e){if(!e)return t;for(let r in e){let n=e[r];switch(r){case"style":{t[r]=Ce(t.style,n);break}case"className":{t[r]=Fo(t.className,n);break}default:Ia(r,n)?t[r]=ql(t[r],n):t[r]=n}}return t}function Ia(t,e){let r=t.charCodeAt(0),n=t.charCodeAt(1),o=t.charCodeAt(2);return r===111&&n===110&&o>=65&&o<=90&&(typeof e=="function"||typeof e>"u")}function Ho(t){return typeof t=="function"}function Pa(t,e){return Ho(t)?t(e):t??Do}function ql(t,e){return e?t?(...r)=>{let n=r[0];if(Ma(n)){let a=n;Ne(a);let s=e(...r);return a.baseUIHandlerPrevented||t?.(...r),s}let o=e(...r);return t?.(...r),o}:La(e):t}function La(t){return t&&((...e)=>{let r=e[0];return Ma(r)&&Ne(r),t(...e)})}function Ne(t){return t.preventBaseUIHandler=()=>{t.baseUIHandlerPrevented=!0},t}function Fo(t,e){return e?t?e+" "+t:e:t}function Ma(t){return t!=null&&typeof t=="object"&&"nativeEvent"in t}var Uo=i(N(),1);function at(t,e,r={}){let n=e.render,o=Zl(e,r);if(r.enabled===!1)return null;let a=r.state??vt;return Ql(t,n,o,a)}function Zl(t,e={}){let{className:r,style:n,render:o}=t,{state:a=vt,ref:s,props:l,stateAttributesMapping:c,enabled:f=!0}=e,d=f?Ea(r,a):void 0,g=f?ka(n,a):void 0,S=f?Ca(a,c):vt,b=f&&l?Xl(l):void 0,h=f?Ce(S,b)??{}:vt;return typeof document<"u"&&(f?Array.isArray(s)?h.ref=_a([h.ref,jo(o),...s]):h.ref=Kt(h.ref,jo(o),s):Kt(null,null)),f?(d!==void 0&&(h.className=Fo(h.className,d)),g!==void 0&&(h.style=Ce(h.style,g)),h):vt}function Xl(t){return Array.isArray(t)?Na(t):ct(void 0,t)}var Jl=Symbol.for("react.lazy");function Ql(t,e,r,n){if(e){if(typeof e=="function")return e(r,n);let o=ct(r,e.props);o.ref=r.ref;let a=e;return a?.$$typeof===Jl&&(a=Yt.Children.toArray(e)[0]),Yt.cloneElement(a,o)}if(t&&typeof t=="string")return tf(t,r);throw new Error(At(8))}function tf(t,e){return t==="button"?(0,Uo.createElement)("button",{type:"button",...e,key:e.key}):t==="img"?(0,Uo.createElement)("img",{alt:"",...e,key:e.key}):Yt.createElement(t,e)}var dr=i(N(),1);var Aa=0;function ef(t,e="mui"){let[r,n]=dr.useState(t),o=t||r;return dr.useEffect(()=>{r==null&&(Aa+=1,n(`${e}-${Aa}`))},[r,e]),o}var Oa=Te.useId;function Ba(t,e){if(Oa!==void 0){let r=Oa();return t??(e?`${e}-${r}`:r)}return ef(t,e)}function mr(t){return Ba(t,"base-ui")}var ut={};to(ut,{cancelOpen:()=>If,chipRemovePress:()=>df,clearPress:()=>uf,closePress:()=>ff,closeWatcher:()=>Rf,decrementPress:()=>gf,disabled:()=>Lf,drag:()=>Ef,escapeKey:()=>yf,focusOut:()=>_f,imperativeAction:()=>Of,incrementPress:()=>pf,initial:()=>Af,inputBlur:()=>vf,inputChange:()=>hf,inputClear:()=>bf,inputPaste:()=>xf,inputPress:()=>wf,itemPress:()=>lf,keyboard:()=>Tf,linkPress:()=>cf,listNavigation:()=>Sf,missing:()=>Mf,none:()=>rf,outsidePress:()=>sf,pointer:()=>Cf,scrub:()=>Nf,siblingOpen:()=>Pf,swipe:()=>Bf,trackPress:()=>mf,triggerFocus:()=>af,triggerHover:()=>nf,triggerPress:()=>of,wheel:()=>kf,windowResize:()=>Vf});var rf="none",of="trigger-press",nf="trigger-hover",af="trigger-focus",sf="outside-press",lf="item-press",ff="close-press",cf="link-press",uf="clear-press",df="chip-remove-press",mf="track-press",pf="increment-press",gf="decrement-press",hf="input-change",bf="input-clear",vf="input-blur",xf="input-paste",wf="input-press",_f="focus-out",yf="escape-key",Rf="close-watcher",Sf="list-navigation",Tf="keyboard",Cf="pointer",Ef="drag",kf="wheel",Nf="scrub",If="cancel-open",Pf="sibling-open",Lf="disabled",Mf="missing",Af="initial",Of="imperative-action",Bf="swipe",Vf="window-resize";function Ie(t,e,r,n){let o=!1,a=!1,s=n??vt;return{reason:t,event:e??new Event("base-ui"),cancel(){o=!0},allowPropagation(){a=!0},get isCanceled(){return o},get isPropagationAllowed(){return a},trigger:r,...s}}var $o=i(N(),1);var Va=i(N(),1),jf=[];function ja(t){Va.useEffect(t,jf)}var pr=null,em=globalThis.requestAnimationFrame,Wo=class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let r=this.callbacks,n=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,n>0)for(let o=0;o<r.length;o+=1)r[o]?.(e)};request(e){let r=this.nextId;return this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1,!this.isScheduled&&(requestAnimationFrame(this.tick),this.isScheduled=!0),r}cancel(e){let r=e-this.startId;r<0||r>=this.callbacks.length||(this.callbacks[r]=null,this.callbacksCount-=1)}},gr=new Wo,xt=class t{static create(){return new t}static request(e){return gr.request(e)}static cancel(e){return gr.cancel(e)}currentId=pr;request(e){this.cancel(),this.currentId=gr.request(()=>{this.currentId=pr,e()})}cancel=()=>{this.currentId!==pr&&(gr.cancel(this.currentId),this.currentId=pr)};disposeEffect=()=>this.cancel};function za(){let t=bt(xt.create).current;return ja(t.disposeEffect),t}function Da(t,e=!1,r=!1){let[n,o]=$o.useState(t&&e?"idle":void 0),[a,s]=$o.useState(t);return t&&!a&&(s(!0),o("starting")),!t&&a&&n!=="ending"&&!r&&o("ending"),!t&&!a&&n==="ending"&&o(void 0),M(()=>{if(!t&&a&&n!=="ending"&&r){let l=xt.request(()=>{o("ending")});return()=>{xt.cancel(l)}}},[t,a,n,r]),M(()=>{if(!t||e)return;let l=xt.request(()=>{o(void 0)});return()=>{xt.cancel(l)}},[e,t]),M(()=>{if(!t||!e)return;t&&a&&n!=="idle"&&o("starting");let l=xt.request(()=>{o("idle")});return()=>{xt.cancel(l)}},[e,t,a,n]),{mounted:a,setMounted:s,transitionStatus:n}}var Gt=i(N(),1);var zf=(function(t){return t[t.None=0]="None",t[t.GuessFromOrder=1]="GuessFromOrder",t})({});function hr(t={}){let{label:e,metadata:r,textRef:n,indexGuessBehavior:o,index:a}=t,{register:s,unregister:l,subscribeMapChange:c,elementsRef:f,labelsRef:d,nextIndexRef:g}=va(),S=Gt.useRef(-1),[b,h]=Gt.useState(a??(o===zf.GuessFromOrder?()=>{if(S.current===-1){let v=g.current;g.current+=1,S.current=v}return S.current}:-1)),w=Gt.useRef(null),T=Gt.useCallback(v=>{if(w.current=v,b!==-1&&v!==null&&(f.current[b]=v,d)){let m=e!==void 0;d.current[b]=m?e:n?.current?.textContent??v.textContent}},[b,f,d,e,n]);return M(()=>{if(a!=null)return;let v=w.current;if(v)return s(v,r),()=>{l(v)}},[a,s,l,r]),M(()=>{if(a==null)return c(v=>{let m=w.current?v.get(w.current)?.index:null;m!=null&&h(m)})},[a,c,h]),{ref:T,index:b}}var qt=(function(t){return t.startingStyle="data-starting-style",t.endingStyle="data-ending-style",t})({}),Df={[qt.startingStyle]:""},Hf={[qt.endingStyle]:""},Ha={transitionStatus(t){return t==="starting"?Df:t==="ending"?Hf:null}};var se=i(N(),1);function Fa(){return typeof window<"u"}function Ko(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Zt(t){return Fa()?t instanceof HTMLElement||t instanceof Ko(t).HTMLElement:!1}function Ua(t){return!Fa()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Ko(t).ShadowRoot}function br(t){return Ko(t).getComputedStyle(t)}var vr=i(N(),1),Yo=vr.createContext(void 0);function xr(t=!1){let e=vr.useContext(Yo);if(e===void 0&&!t)throw new Error(At(16));return e}var Wa=i(N(),1);function $a(t){let{focusableWhenDisabled:e,disabled:r,composite:n=!1,tabIndex:o=0,isNativeButton:a}=t,s=n&&e!==!1,l=n&&e===!1;return{props:Wa.useMemo(()=>{let f={onKeyDown(d){r&&e&&d.key!=="Tab"&&d.preventDefault()}};return n||(f.tabIndex=o,!a&&r&&(f.tabIndex=e?o:-1)),(a&&(e||s)||!a&&r)&&(f["aria-disabled"]=r),a&&(!e||l)&&(f.disabled=r),f},[n,r,e,s,l,a,o])}}function qo(t={}){let{disabled:e=!1,focusableWhenDisabled:r,tabIndex:n=0,native:o=!0,composite:a}=t,s=se.useRef(null),l=xr(!0),c=a??l!==void 0,{props:f}=$a({focusableWhenDisabled:r,disabled:e,composite:c,tabIndex:n,isNativeButton:o}),d=se.useCallback(()=>{let b=s.current;Go(b)&&c&&e&&f.disabled===void 0&&b.disabled&&(b.disabled=!1)},[e,f.disabled,c]);M(d,[d]);let g=se.useCallback((b={})=>{let{onClick:h,onMouseDown:w,onKeyUp:T,onKeyDown:v,onPointerDown:m,..._}=b;return ct({onClick(u){if(e){u.preventDefault();return}h?.(u)},onMouseDown(u){e||w?.(u)},onKeyDown(u){if(e||(Ne(u),v?.(u),u.baseUIHandlerPrevented))return;let y=u.target===u.currentTarget,L=u.currentTarget,E=Go(L),I=!o&&Ff(L),k=y&&(o?E:!I),p=u.key==="Enter",x=u.key===" ",C=L.getAttribute("role"),H=C?.startsWith("menuitem")||C==="option"||C==="gridcell";if(y&&c&&x){if(u.defaultPrevented&&H)return;u.preventDefault(),I||o&&E?(L.click(),u.preventBaseUIHandler()):k&&(h?.(u),u.preventBaseUIHandler());return}k&&(!o&&(x||p)&&u.preventDefault(),!o&&p&&h?.(u))},onKeyUp(u){if(!e){if(Ne(u),T?.(u),u.target===u.currentTarget&&o&&c&&Go(u.currentTarget)&&u.key===" "){u.preventDefault();return}u.baseUIHandlerPrevented||u.target===u.currentTarget&&!o&&!c&&u.key===" "&&h?.(u)}},onPointerDown(u){if(e){u.preventDefault();return}m?.(u)}},o?{type:"button"}:{role:"button"},f,_)},[e,f,c,o]),S=O(b=>{s.current=b,d()});return{getButtonProps:g,buttonRef:S}}function Go(t){return Zt(t)&&t.tagName==="BUTTON"}function Ff(t){return!!(t?.tagName==="A"&&t?.href)}function Zo(t){return t?.ownerDocument||document}var Xa=i(N(),1);var qa=i(Ya(),1);function Ga(t){return t==null?t:"current"in t?t.current:t}function Za(t,e=!1,r=!0){let n=za();return O((o,a=null)=>{n.cancel();let s=Ga(t);if(s==null)return;let l=s,c=()=>{qa.flushSync(o)};if(typeof l.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED){o();return}function f(){Promise.all(l.getAnimations().map(d=>d.finished)).then(()=>{a?.aborted||c()}).catch(()=>{if(r){a?.aborted||c();return}let d=l.getAnimations();!a?.aborted&&d.length>0&&d.some(g=>g.pending||g.playState!=="finished")&&f()})}if(e){let d=qt.startingStyle;if(!l.hasAttribute(d)){n.request(f);return}let g=new MutationObserver(()=>{l.hasAttribute(d)||(g.disconnect(),f())});g.observe(l,{attributes:!0,attributeFilter:[d]}),a?.addEventListener("abort",()=>g.disconnect(),{once:!0});return}n.request(f)})}function Ja(t){let{enabled:e=!0,open:r,ref:n,onComplete:o}=t,a=O(o),s=Za(n,r,!1);Xa.useEffect(()=>{if(!e)return;let l=new AbortController;return s(a,l.signal),()=>{l.abort()}},[e,r,a,s])}function Xo(t){let e=t.activeElement;for(;e?.shadowRoot?.activeElement!=null;)e=e.shadowRoot.activeElement;return e}function Jo(t,e){if(!t||!e)return!1;let r=e.getRootNode?.();if(t.contains(e))return!0;if(r&&Ua(r)){let n=e;for(;n;){if(t===n)return!0;n=n.parentNode||n.host}}return!1}function wr(t){return"composedPath"in t?t.composedPath()[0]:t.target}var Qo=Math.round;function Pe(t,e){return e<0||e>=t.length}function tn(t,e){return Xt(t.current,{disabledIndices:e})}function en(t,e){return Xt(t.current,{decrement:!0,startingIndex:t.current.length,disabledIndices:e})}function Xt(t,{startingIndex:e=-1,decrement:r=!1,disabledIndices:n,amount:o=1}={}){let a=e;do a+=r?-o:o;while(a>=0&&a<=t.length-1&&Le(t,a,n));return a}function Le(t,e,r){if(typeof r=="function"?r(e):r?.includes(e)??!1)return!0;let o=t[e];return o?Wf(o)?!r&&(o.hasAttribute("disabled")||o.getAttribute("aria-disabled")==="true"):!0:!1}function Uf(t){return t.visibility==="hidden"||t.visibility==="collapse"}function Wf(t,e=t?br(t):null){return!t||!t.isConnected||!e||Uf(e)?!1:typeof t.checkVisibility=="function"?t.checkVisibility():e.display!=="none"&&e.display!=="contents"}var _r=i(N(),1);function oi(){let[,t]=_r.useState({});return _r.useCallback(()=>{t({})},[])}var fe="ArrowUp",ce="ArrowDown",Me="ArrowLeft",Ae="ArrowRight",Oe="Home",Be="End";var on=new Set([Me,Ae]),ai=new Set([Me,Ae,Oe,Be]),nn=new Set([fe,ce]),ii=new Set([fe,ce,Oe,Be]),an=new Set([...on,...nn]),si=new Set([...an,Oe,Be]),tc="Shift",ec="Control",rc="Alt",oc="Meta",li=new Set([tc,ec,rc,oc]);function nc(t){return Zt(t)&&t.tagName==="INPUT"}function sn(t){return!!(nc(t)&&t.selectionStart!=null||Zt(t)&&t.tagName==="TEXTAREA")}function ln(t,e,r,n){if(!t||!e||!e.scrollTo)return;let o=t.scrollLeft,a=t.scrollTop,s=t.clientWidth<t.scrollWidth,l=t.clientHeight<t.scrollHeight;if(s&&n!=="vertical"){let c=ni(t,e,"left"),f=yr(t),d=yr(e);r==="ltr"&&(c+e.offsetWidth+d.scrollMarginRight>t.scrollLeft+t.clientWidth-f.scrollPaddingRight?o=c+e.offsetWidth+d.scrollMarginRight-t.clientWidth+f.scrollPaddingRight:c-d.scrollMarginLeft<t.scrollLeft+f.scrollPaddingLeft&&(o=c-d.scrollMarginLeft-f.scrollPaddingLeft)),r==="rtl"&&(c-d.scrollMarginRight<t.scrollLeft+f.scrollPaddingLeft?o=c-d.scrollMarginLeft-f.scrollPaddingLeft:c+e.offsetWidth+d.scrollMarginRight>t.scrollLeft+t.clientWidth-f.scrollPaddingRight&&(o=c+e.offsetWidth+d.scrollMarginRight-t.clientWidth+f.scrollPaddingRight))}if(l&&n!=="horizontal"){let c=ni(t,e,"top"),f=yr(t),d=yr(e);c-d.scrollMarginTop<t.scrollTop+f.scrollPaddingTop?a=c-d.scrollMarginTop-f.scrollPaddingTop:c+e.offsetHeight+d.scrollMarginBottom>t.scrollTop+t.clientHeight-f.scrollPaddingBottom&&(a=c+e.offsetHeight+d.scrollMarginBottom-t.clientHeight+f.scrollPaddingBottom)}t.scrollTo({left:o,top:a,behavior:"auto"})}function ni(t,e,r){let n=r==="left"?"offsetLeft":"offsetTop",o=0;for(;e.offsetParent&&(o+=e[n],e.offsetParent!==t);)e=e.offsetParent;return o}function yr(t){let e=getComputedStyle(t);return{scrollMarginTop:parseFloat(e.scrollMarginTop)||0,scrollMarginRight:parseFloat(e.scrollMarginRight)||0,scrollMarginBottom:parseFloat(e.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(e.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(e.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(e.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(e.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(e.scrollPaddingLeft)||0}}function fi(t){return cr(19)?t:t?"true":void 0}var ci=i(N(),1);function ui(t={}){let{highlightItemOnHover:e,highlightedIndex:r,onHighlightedIndexChange:n}=xr(),{ref:o,index:a}=hr(t),s=r===a,l=ci.useRef(null),c=Kt(o,l);return{compositeProps:{tabIndex:s?0:-1,onFocus(){n(a)},onMouseMove(){let d=l.current;if(!e||!d)return;let g=d.hasAttribute("disabled")||d.ariaDisabled==="true";!s&&!g&&d.focus()}},compositeRef:c,index:a}}function fn(t){let e=br(t),r=parseFloat(e.width)||0,n=parseFloat(e.height)||0,o=Zt(t),a=o?t.offsetWidth:r,s=o?t.offsetHeight:n;return(Qo(r)!==a||Qo(n)!==s)&&(r=a,n=s),{width:r,height:n}}function di(t){return t==null||t.hasAttribute("disabled")||t.getAttribute("aria-disabled")==="true"}var Rr=i(N(),1),ac=Rr.createContext(void 0),ic={disableStyleElements:!1};function mi(){return Rr.useContext(ac)??ic}var gi=i(N(),1);var ue=i(N(),1);var Sr="data-composite-item-active";var sc=[];function pi(t){let{loopFocus:e=!0,orientation:r="both",grid:n,onLoop:o,direction:a,highlightedIndex:s,onHighlightedIndexChange:l,rootRef:c,enableHomeAndEndKeys:f=!1,stopEventPropagation:d=!1,disabledIndices:g,modifierKeys:S=sc}=t,[b,h]=ue.useState(0),w=n!=null,T=ue.useRef(null),v=Kt(T,c),m=ue.useRef([]),_=ue.useRef(!1),u=s??b,y=O((p,x=!1)=>{if((l??h)(p),x){let C=m.current[p];ln(T.current,C,a,r)}}),L=O(p=>{if(p.size===0||_.current)return;_.current=!0;let x=Array.from(p.keys()),C=x.find(B=>B?.hasAttribute(Sr))??null,H=C?x.indexOf(C):-1;if(H!==-1)y(H);else if(Le(x,u,g)){let B=Xt(x,{disabledIndices:g});Pe(x,B)||y(B)}ln(T.current,C,a,r)});M(()=>{if(g==null||s!=null||!_.current)return;let p=m.current;if(Le(p,u,g)){let x=Xt(p,{disabledIndices:g});Pe(p,x)||y(x)}},[g,s,u,m,y]);let E=O((p,x,C)=>o?o(p,x,C,m):C),I=O(p=>{let x=f?si:an;if(!x.has(p.key)||lc(p,S)||!T.current)return;let H=a==="rtl",B=H?Me:Ae,st={horizontal:B,vertical:ce,both:B}[r],q=H?Ae:Me,lt={horizontal:q,vertical:fe,both:q}[r],et=wr(p.nativeEvent);if(et!=null&&sn(et)&&!di(et)){let ht=et.selectionStart,We=et.selectionEnd,ta=et.value??"";if(ht==null||p.shiftKey||ht!==We||p.key!==lt&&ht<ta.length||p.key!==st&&ht>0)return}let A=u,ot=tn(m,g),nt=en(m,g);n!=null&&(A=n({disabledIndices:g,elementsRef:m,event:p,highlightedIndex:u,loopFocus:e,maxIndex:nt,minIndex:ot,onLoop:E,orientation:r,rtl:H}));let St={horizontal:[B],vertical:[ce],both:[B,ce]}[r],V={horizontal:[q],vertical:[fe],both:[q,fe]}[r],ft=w?x:{horizontal:f?ai:on,vertical:f?ii:nn,both:x}[r];f&&(p.key===Oe?A=ot:p.key===Be&&(A=nt)),A===u&&(St.includes(p.key)||V.includes(p.key))&&(e&&A===nt&&St.includes(p.key)?(A=ot,o&&(A=o(p,u,A,m))):e&&A===ot&&V.includes(p.key)?(A=nt,o&&(A=o(p,u,A,m))):A=Xt(m.current,{startingIndex:A,decrement:V.includes(p.key),disabledIndices:g})),A!==u&&!Pe(m.current,A)&&(d&&p.stopPropagation(),ft.has(p.key)&&p.preventDefault(),y(A,!0),queueMicrotask(()=>{m.current[A]?.focus()}))});return{props:{ref:v,onFocus(p){let x=T.current,C=wr(p.nativeEvent);!x||C==null||!sn(C)||C.setSelectionRange(0,C.value.length??0)},onKeyDown:I},highlightedIndex:u,onHighlightedIndexChange:y,elementsRef:m,disabledIndices:g,onMapChange:L,relayKeyboardEvent:I}}function lc(t,e){for(let r of li.values())if(!e.includes(r)&&t.getModifierState(r))return!0;return!1}var cn=i(R(),1);function hi(t){let{render:e,className:r,style:n,refs:o=Ee,props:a=Ee,state:s=vt,stateAttributesMapping:l,highlightedIndex:c,onHighlightedIndexChange:f,orientation:d,grid:g,loopFocus:S,onLoop:b,enableHomeAndEndKeys:h,onMapChange:w,stopEventPropagation:T=!0,rootRef:v,disabledIndices:m,modifierKeys:_,highlightItemOnHover:u=!1,tag:y="div",...L}=t,E=wa(),{props:I,highlightedIndex:k,onHighlightedIndexChange:p,elementsRef:x,onMapChange:C,relayKeyboardEvent:H}=pi({grid:g,loopFocus:S,onLoop:b,orientation:d,highlightedIndex:c,onHighlightedIndexChange:f,rootRef:v,stopEventPropagation:T,enableHomeAndEndKeys:h,direction:E,disabledIndices:m,modifierKeys:_}),B=at(y,t,{state:s,ref:o,props:[I,...a,L],stateAttributesMapping:l}),st=gi.useMemo(()=>({highlightedIndex:k,onHighlightedIndexChange:p,highlightItemOnHover:u,relayKeyboardEvent:H}),[k,p,u,H]);return(0,cn.jsx)(Yo.Provider,{value:st,children:(0,cn.jsx)(lr,{elementsRef:x,onMapChange:q=>{w?.(q),C(q)},children:B})})}var bi=i(ri(),1);function fc(){return zo}function cc(){return!1}function uc(){return!0}function vi(){return(0,bi.useSyncExternalStore)(fc,cc,uc)}var mt={};to(mt,{Indicator:()=>Si,List:()=>Ei,Panel:()=>Ci,Root:()=>_i,Tab:()=>yi});var z=i(N(),1);var Tr=i(N(),1),un=Tr.createContext(void 0);function Ot(){let t=Tr.useContext(un);if(t===void 0)throw new Error(At(64));return t}var xi=(function(t){return t.activationDirection="data-activation-direction",t.orientation="data-orientation",t})({});var wt={tabActivationDirection:t=>({[xi.activationDirection]:t})};var dn=i(R(),1),_i=z.forwardRef(function(e,r){let{className:n,defaultValue:o=0,onValueChange:a,orientation:s="horizontal",render:l,value:c,style:f,...d}=e,g=e.defaultValue!==void 0,S=z.useRef([]),[b,h]=z.useState(()=>new Map),[w,T]=pa({controlled:c,default:o,name:"Tabs",state:"value"}),v=c!==void 0,[m,_]=z.useState(()=>new Map),u=z.useRef(void 0),y=z.useCallback(P=>{if(P===void 0)return null;for(let[F,X]of m.entries())if(X!=null&&P===(X.value??X.index))return F;return null},[m]),[L,E]=z.useState(()=>({previousValue:w,tabActivationDirection:"none"})),{previousValue:I,tabActivationDirection:k}=L,p=k,x=!1;I!==w&&(p=wi(I,w,s,m),x=I!=null&&w!=null&&y(w)==null);let C=x?I:w,H=I!==C||k!==p;M(()=>{H&&E({previousValue:C,tabActivationDirection:p})},[C,H,p]);let B=O((P,F)=>{let X=wi(w,P,s,m);F.activationDirection=X,a?.(P,F),!F.isCanceled&&T(P)}),st=O((P,F)=>{a?.(P,Ie(F,void 0,void 0,{activationDirection:"none"}))}),q=O((P,F)=>{h(X=>{if(X.get(P)===F)return X;let It=new Map(X);return It.set(P,F),It})}),lt=O((P,F)=>{h(X=>{if(!X.has(P)||X.get(P)!==F)return X;let It=new Map(X);return It.delete(P),It})}),et=z.useCallback(P=>b.get(P),[b]),A=z.useCallback(P=>{for(let F of m.values())if(P===F?.value)return F?.id},[m]),ot=z.useMemo(()=>({getTabElementBySelectedValue:y,getTabIdByPanelValue:A,getTabPanelIdByValue:et,onValueChange:B,orientation:s,registerMountedTabPanel:q,setTabMap:_,unregisterMountedTabPanel:lt,tabActivationDirection:p,value:w}),[y,A,et,B,s,q,_,lt,p,w]),nt=z.useMemo(()=>{for(let P of m.values())if(P!=null&&P.value===w)return P},[m,w]),St=z.useMemo(()=>{for(let P of m.values())if(P!=null&&!P.disabled)return P.value},[m]),V=z.useRef(!g),ft=z.useRef(o),ht=z.useRef(g),We=z.useRef(!1);M(()=>{if(v)return;function P(Ht,Se){T(Ht),E(Jr=>Jr.previousValue===Ht&&Jr.tabActivationDirection==="none"?Jr:{previousValue:Ht,tabActivationDirection:"none"}),st(Ht,Se),V.current=!1}if(m.size===0){We.current&&w!==null&&!u.current?.isConnected&&P(null,ut.missing);return}We.current=!0,u.current=m.keys().next().value;let F=nt?.disabled,X=nt==null&&w!==null;if(!F&&w===ft.current&&(ht.current=!1),ht.current&&F&&w===ft.current)return;let It=V.current;if(F||X){let Ht=St??null;if(w===Ht){V.current=!1;return}let Se=ut.missing;It?Se=ut.initial:F&&(Se=ut.disabled),P(Ht,Se);return}It&&nt!=null&&(st(w,ut.initial),V.current=!1)},[St,v,st,nt,T,m,w]);let Sl=at("div",e,{state:{orientation:s,tabActivationDirection:p},ref:r,props:d,stateAttributesMapping:wt});return(0,dn.jsx)(un.Provider,{value:ot,children:(0,dn.jsx)(lr,{elementsRef:S,children:Sl})})});function wi(t,e,r,n){if(t==null||e==null)return"none";let o=null,a=null;for(let[c,f]of n.entries()){if(f==null)continue;let d=f.value??f.index;if(t===d&&(o=c),e===d&&(a=c),o!=null&&a!=null)break}if(o==null||a==null)return o!==a&&(typeof t=="number"||typeof t=="string")&&typeof t==typeof e?r==="horizontal"?e>t?"right":"left":e>t?"down":"up":"none";let s=o.getBoundingClientRect(),l=a.getBoundingClientRect();if(r==="horizontal"){if(l.left<s.left)return"left";if(l.left>s.left)return"right"}else{if(l.top<s.top)return"up";if(l.top>s.top)return"down"}return"none"}var Tt=i(N(),1);var Cr=i(N(),1),mn=Cr.createContext(void 0);function Er(){let t=Cr.useContext(mn);if(t===void 0)throw new Error(At(65));return t}var yi=Tt.forwardRef(function(e,r){let{className:n,disabled:o=!1,render:a,value:s,id:l,nativeButton:c=!0,style:f,...d}=e,{value:g,getTabPanelIdByValue:S,orientation:b,tabActivationDirection:h}=Ot(),{activateOnFocus:w,highlightedTabIndex:T,onTabActivation:v,registerTabResizeObserverElement:m,setHighlightedTabIndex:_,tabsListElement:u}=Er(),y=mr(l),L=Tt.useMemo(()=>({disabled:o,id:y,value:s}),[o,y,s]),{compositeProps:E,compositeRef:I,index:k}=ui({metadata:L}),p=s===g,x=Tt.useRef(!1),C=Tt.useRef(null);M(()=>{let V=C.current;if(V)return m(V)},[m]),M(()=>{if(x.current){x.current=!1;return}if(!(p&&k>-1&&T!==k))return;let V=u;if(V!=null){let ft=Xo(Zo(V));if(ft&&Jo(V,ft))return}o||_(k)},[p,k,T,_,o,u]);let{getButtonProps:H,buttonRef:B}=qo({disabled:o,native:c,focusableWhenDisabled:!0}),st=S(s),q=Tt.useRef(!1),lt=Tt.useRef(!1);function et(V){p||o||v(s,Ie(ut.none,V.nativeEvent,void 0,{activationDirection:"none"}))}function A(V){p||(k>-1&&!o&&_(k),!o&&w&&(!q.current||q.current&<.current)&&v(s,Ie(ut.none,V.nativeEvent,void 0,{activationDirection:"none"})))}function ot(V){if(p||o)return;q.current=!0;function ft(){q.current=!1,lt.current=!1}(!V.button||V.button===0)&&(lt.current=!0,Zo(V.currentTarget).addEventListener("pointerup",ft,{once:!0}))}return at("button",e,{state:{disabled:o,active:p,orientation:b,tabActivationDirection:h},ref:[r,B,I,C],props:[E,{role:"tab","aria-controls":st,"aria-selected":p,id:y,onClick:et,onFocus:A,onPointerDown:ot,[Sr]:p?"":void 0,onKeyDownCapture(){x.current=!0}},d,H],stateAttributesMapping:wt})});var de=i(N(),1);var Ri='!function(){const t=document.currentScript.previousElementSibling;if(!t)return;const e=t.closest(\'[role="tablist"]\');if(!e)return;const i=e.querySelector("[data-active]");if(!i)return;if(0===i.offsetWidth||0===e.offsetWidth)return;let o=0,n=0,h=0,l=0,r=0,f=0;function s(t){const e=getComputedStyle(t);let i=parseFloat(e.width)||0,o=parseFloat(e.height)||0;return(Math.round(i)!==t.offsetWidth||Math.round(o)!==t.offsetHeight)&&(i=t.offsetWidth,o=t.offsetHeight),{width:i,height:o}}if(null!=i&&null!=e){const{width:t,height:c}=s(i),{width:u,height:d}=s(e),a=i.getBoundingClientRect(),g=e.getBoundingClientRect(),p=u>0?g.width/u:1,b=d>0?g.height/d:1;if(Math.abs(p)>Number.EPSILON&&Math.abs(b)>Number.EPSILON){const t=a.left-g.left,i=a.top-g.top;o=t/p+e.scrollLeft-e.clientLeft,h=i/b+e.scrollTop-e.clientTop}else o=i.offsetLeft,h=i.offsetTop;r=t,f=c,n=e.scrollWidth-o-r,l=e.scrollHeight-h-f}function c(e,i){t.style.setProperty(`--active-tab-${e}`,`${i}px`)}c("left",o),c("right",n),c("top",h),c("bottom",l),c("width",r),c("height",f),r>0&&f>0&&t.removeAttribute("hidden")}();';var Jt=(function(t){return t.activeTabLeft="--active-tab-left",t.activeTabRight="--active-tab-right",t.activeTabTop="--active-tab-top",t.activeTabBottom="--active-tab-bottom",t.activeTabWidth="--active-tab-width",t.activeTabHeight="--active-tab-height",t})({});var kr=i(R(),1),dc={...wt,activeTabPosition:()=>null,activeTabSize:()=>null},Si=de.forwardRef(function(e,r){let{className:n,render:o,renderBeforeHydration:a=!1,style:s,...l}=e,{nonce:c}=mi(),{getTabElementBySelectedValue:f,orientation:d,tabActivationDirection:g,value:S}=Ot(),{tabsListElement:b,registerIndicatorUpdateListener:h}=Er(),w=vi(),T=oi();de.useEffect(()=>h(T),[h,T]);let v=0,m=0,_=0,u=0,y=0,L=0,E=!1;if(S!=null&&b!=null){let B=f(S);if(B!=null){E=!0;let{width:st,height:q}=fn(B),{width:lt,height:et}=fn(b),A=B.getBoundingClientRect(),ot=b.getBoundingClientRect(),nt=lt>0?ot.width/lt:1,St=et>0?ot.height/et:1;if(Math.abs(nt)>Number.EPSILON&&Math.abs(St)>Number.EPSILON){let ft=A.left-ot.left,ht=A.top-ot.top;v=ft/nt+b.scrollLeft-b.clientLeft,_=ht/St+b.scrollTop-b.clientTop}else v=B.offsetLeft,_=B.offsetTop;y=st,L=q,m=b.scrollWidth-v-y,u=b.scrollHeight-_-L}}let I=E?{left:v,right:m,top:_,bottom:u}:null,k=E?{width:y,height:L}:null,p=E?{[Jt.activeTabLeft]:`${v}px`,[Jt.activeTabRight]:`${m}px`,[Jt.activeTabTop]:`${_}px`,[Jt.activeTabBottom]:`${u}px`,[Jt.activeTabWidth]:`${y}px`,[Jt.activeTabHeight]:`${L}px`}:void 0,x=E&&y>0&&L>0,H=at("span",e,{state:{orientation:d,activeTabPosition:I,activeTabSize:k,tabActivationDirection:g},ref:r,props:[{role:"presentation",style:p,hidden:!x},l,{suppressHydrationWarning:!0}],stateAttributesMapping:dc});return S==null?null:(0,kr.jsxs)(de.Fragment,{children:[H,w&&a&&(0,kr.jsx)("script",{nonce:c,dangerouslySetInnerHTML:{__html:Ri},suppressHydrationWarning:!0})]})});var me=i(N(),1);var Ti=(function(t){return t.index="data-index",t.activationDirection="data-activation-direction",t.orientation="data-orientation",t.hidden="data-hidden",t[t.startingStyle=qt.startingStyle]="startingStyle",t[t.endingStyle=qt.endingStyle]="endingStyle",t})({});var mc={...wt,...Ha},Ci=me.forwardRef(function(e,r){let{className:n,value:o,render:a,keepMounted:s=!1,style:l,...c}=e,{value:f,getTabIdByPanelValue:d,orientation:g,tabActivationDirection:S,registerMountedTabPanel:b,unregisterMountedTabPanel:h}=Ot(),w=mr(),T=me.useMemo(()=>({id:w,value:o}),[w,o]),{ref:v,index:m}=hr({metadata:T}),_=o===f,{mounted:u,transitionStatus:y,setMounted:L}=Da(_),E=!u,I=d(o),k={hidden:E,orientation:g,tabActivationDirection:S,transitionStatus:y},p=me.useRef(null),x=at("div",e,{state:k,ref:[r,v,p],props:[{"aria-labelledby":I,hidden:E,id:w,role:"tabpanel",tabIndex:_?0:-1,inert:fi(!_),[Ti.index]:m},c],stateAttributesMapping:mc});return Ja({open:_,ref:p,onComplete(){_||L(!1)}}),M(()=>{if(!(E&&!s)&&w!=null)return b(o,w),()=>{h(o,w)}},[E,s,o,w,b,h]),s||u?x:null});var dt=i(N(),1);var pn=i(R(),1),Ei=dt.forwardRef(function(e,r){let{activateOnFocus:n=!1,className:o,loopFocus:a=!0,render:s,style:l,...c}=e,{onValueChange:f,orientation:d,value:g,setTabMap:S,tabActivationDirection:b}=Ot(),[h,w]=dt.useState(0),[T,v]=dt.useState(null),m=dt.useRef(new Set),_=dt.useRef(new Set),u=dt.useRef(null);M(()=>{if(typeof ResizeObserver>"u")return;let x=new ResizeObserver(()=>{m.current.forEach(C=>{C()})});return u.current=x,T&&x.observe(T),_.current.forEach(C=>{x.observe(C)}),()=>{x.disconnect(),u.current=null}},[T]);let y=O(x=>(m.current.add(x),()=>{m.current.delete(x)})),L=O(x=>(_.current.add(x),u.current?.observe(x),()=>{_.current.delete(x),u.current?.unobserve(x)})),E=O((x,C)=>{x!==g&&f(x,C)}),I={orientation:d,tabActivationDirection:b},k={"aria-orientation":d==="vertical"?"vertical":void 0,role:"tablist"},p=dt.useMemo(()=>({activateOnFocus:n,highlightedTabIndex:h,registerIndicatorUpdateListener:y,registerTabResizeObserverElement:L,onTabActivation:E,setHighlightedTabIndex:w,tabsListElement:T}),[n,h,y,L,E,w,T]);return(0,pn.jsx)(mn.Provider,{value:p,children:(0,pn.jsx)(hi,{render:s,className:o,style:l,state:I,refs:[r,v],props:[k,c],stateAttributesMapping:wt,highlightedIndex:h,enableHomeAndEndKeys:!0,loopFocus:a,orientation:d,onHighlightedIndexChange:w,onMapChange:S,disabledIndices:Ee})})});function pe(t){return at(t.defaultTagName??"div",t,t)}var Ni=i(W(),1),Ii=i(J(),1),Pi=i(R(),1),gn=(0,Ni.forwardRef)(function({icon:e,size:r=24,...n},o){return(0,Pi.jsx)(Ii.SVG,{ref:o,...e.props,...n,width:r,height:r})});var Oi=i(W(),1),bn="data-wp-hash";function vn(){let t=globalThis;return t.__wpStyleRuntime||(t.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&gc(document)),t.__wpStyleRuntime}function pc(t,e){if(!t.head)return!1;for(let r of t.head.querySelectorAll(`style[${bn}]`))if(r.getAttribute(bn)===e)return!0;return!1}function Bi(t,e,r){if(!t.head)return;let n=vn(),o=n.injectedStyles.get(t);if(o||(o=new Set,n.injectedStyles.set(t,o)),o.has(e))return;if(pc(t,e)){o.add(e);return}let a=t.createElement("style");a.setAttribute(bn,e),a.appendChild(t.createTextNode(r)),t.head.appendChild(a),o.add(e)}function gc(t){let e=vn();e.documents.set(t,(e.documents.get(t)??0)+1);for(let[r,n]of e.styles)Bi(t,r,n);return()=>{let r=e.documents.get(t);if(r!==void 0){if(r<=1){e.documents.delete(t);return}e.documents.set(t,r-1)}}}function hc(t,e){let r=vn();r.styles.set(t,e);for(let n of r.documents.keys())Bi(n,t,e)}typeof process>"u",hc("32aba35fe1","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._19ce0419607e1896__stack{display:flex}}}");var bc={stack:"_19ce0419607e1896__stack"},vc={xs:"var(--wpds-dimension-gap-xs, 4px)",sm:"var(--wpds-dimension-gap-sm, 8px)",md:"var(--wpds-dimension-gap-md, 12px)",lg:"var(--wpds-dimension-gap-lg, 16px)",xl:"var(--wpds-dimension-gap-xl, 24px)","2xl":"var(--wpds-dimension-gap-2xl, 32px)","3xl":"var(--wpds-dimension-gap-3xl, 40px)"},pt=(0,Oi.forwardRef)(function({direction:e,gap:r,align:n,justify:o,wrap:a,render:s,...l},c){let f={gap:r&&vc[r],alignItems:n,justifyContent:o,flexDirection:e,flexWrap:a};return pe({render:s,ref:c,props:ct(l,{style:f,className:bc.stack})})});var Bt=i(W(),1);function Vi(t){let e=(0,Bt.useRef)(t);e.current=t;let r=(0,Bt.useRef)(null),n=(0,Bt.useRef)(!1),o=(0,Bt.useCallback)(()=>{n.current||(r.current&&clearTimeout(r.current),r.current=setTimeout(()=>{e.current(),r.current=null},0))},[]);return(0,Bt.useEffect)(()=>(n.current=!1,()=>{n.current=!0,r.current&&clearTimeout(r.current)}),[]),o}var ji=i(W(),1),xn="data-wp-hash";function wn(){let t=globalThis;return t.__wpStyleRuntime||(t.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&wc(document)),t.__wpStyleRuntime}function xc(t,e){if(!t.head)return!1;for(let r of t.head.querySelectorAll(`style[${xn}]`))if(r.getAttribute(xn)===e)return!0;return!1}function zi(t,e,r){if(!t.head)return;let n=wn(),o=n.injectedStyles.get(t);if(o||(o=new Set,n.injectedStyles.set(t,o)),o.has(e))return;if(xc(t,e)){o.add(e);return}let a=t.createElement("style");a.setAttribute(xn,e),a.appendChild(t.createTextNode(r)),t.head.appendChild(a),o.add(e)}function wc(t){let e=wn();e.documents.set(t,(e.documents.get(t)??0)+1);for(let[r,n]of e.styles)zi(t,r,n);return()=>{let r=e.documents.get(t);if(r!==void 0){if(r<=1){e.documents.delete(t);return}e.documents.set(t,r-1)}}}function _c(t,e){let r=wn();r.styles.set(t,e);for(let n of r.documents.keys())zi(n,t,e)}typeof process>"u",_c("fa606a57ae","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.f37b9e2e191ebd66__visually-hidden{word-wrap:normal;border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-break:normal}}}");var yc={"visually-hidden":"f37b9e2e191ebd66__visually-hidden"},_n=(0,ji.forwardRef)(function({render:e,...r},n){return pe({render:e,ref:n,props:ct({className:yc["visually-hidden"]},r,{"data-visually-hidden":""})})});var Di=i(W(),1),Hi=i(U(),1),ge=i(R(),1),yn="data-wp-hash";function Rn(){let t=globalThis;return t.__wpStyleRuntime||(t.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Sc(document)),t.__wpStyleRuntime}function Rc(t,e){if(!t.head)return!1;for(let r of t.head.querySelectorAll(`style[${yn}]`))if(r.getAttribute(yn)===e)return!0;return!1}function Fi(t,e,r){if(!t.head)return;let n=Rn(),o=n.injectedStyles.get(t);if(o||(o=new Set,n.injectedStyles.set(t,o)),o.has(e))return;if(Rc(t,e)){o.add(e);return}let a=t.createElement("style");a.setAttribute(yn,e),a.appendChild(t.createTextNode(r)),t.head.appendChild(a),o.add(e)}function Sc(t){let e=Rn();e.documents.set(t,(e.documents.get(t)??0)+1);for(let[r,n]of e.styles)Fi(t,r,n);return()=>{let r=e.documents.get(t);if(r!==void 0){if(r<=1){e.documents.delete(t);return}e.documents.set(t,r-1)}}}function Pr(t,e){let r=Rn();r.styles.set(t,e);for(let n of r.documents.keys())Fi(n,t,e)}typeof process>"u",Pr("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var Tc={"box-sizing":"_336cd3e4e743482f__box-sizing"};typeof process>"u",Pr("da99a163ac","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._08e8a2e44959f892__outset-ring--focus:focus,.c5cb3ee4bddaa8e4__outset-ring--focus-within-visible:focus-within:has(:focus-visible),.cd83dfc2126a0846__outset-ring--focus-within:focus-within,.d0541bc9dd9dc7b6__outset-ring--focus-visible:focus-visible,:focus-visible .ecadb9e080e2dfa5__outset-ring--focus-parent-visible{--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}._970d04df7376df67__outset-ring--focus-within-except-active:focus-within,.e25b2bdd7aa21721__outset-ring--focus-except-active:focus{outline:none}._970d04df7376df67__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.e25b2bdd7aa21721__outset-ring--focus-except-active:focus:not(:active){@include mixins.focus-ring()}}}");var Cc={"outset-ring--focus":"_08e8a2e44959f892__outset-ring--focus","outset-ring--focus-visible":"d0541bc9dd9dc7b6__outset-ring--focus-visible","outset-ring--focus-within":"cd83dfc2126a0846__outset-ring--focus-within","outset-ring--focus-within-visible":"c5cb3ee4bddaa8e4__outset-ring--focus-within-visible","outset-ring--focus-parent-visible":"ecadb9e080e2dfa5__outset-ring--focus-parent-visible","outset-ring--focus-except-active":"e25b2bdd7aa21721__outset-ring--focus-except-active","outset-ring--focus-within-except-active":"_970d04df7376df67__outset-ring--focus-within-except-active"};typeof process>"u",Pr("e8e6a9be37",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.d4250949359b05ce__link{text-decoration-thickness:from-font;text-underline-offset:.2em}.c6055659b8e2cd2c__is-brand,.c6055659b8e2cd2c__is-brand:visited{--_gcd-a-color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9));color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.c6055659b8e2cd2c__is-brand:active,.c6055659b8e2cd2c__is-brand:hover{--_gcd-a-color:var(--wpds-color-foreground-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 52%,#000));color:var(--wpds-color-foreground-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 52%,#000))}._92e0dfcaeee15b88__is-neutral,._92e0dfcaeee15b88__is-neutral:visited{--_gcd-a-color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);text-decoration-color:var(--wpds-color-stroke-interactive-neutral,#8d8d8d)}._92e0dfcaeee15b88__is-neutral:active,._92e0dfcaeee15b88__is-neutral:hover{--_gcd-a-color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e);color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}.cf122a9bf1035d42__is-unstyled{--_gcd-a-color:inherit;color:inherit;text-decoration:none}._0cb411afac4c86c7__link-icon{display:inline-block;font-weight:var(--wpds-typography-font-weight-default,400);line-height:1;margin-inline-start:var(--wpds-dimension-padding-xs,4px);text-decoration:none}._0cb411afac4c86c7__link-icon:after{content:"\\2197"}._0cb411afac4c86c7__link-icon:dir(rtl):after{content:"\\2196"}}}');var Ir={link:"d4250949359b05ce__link","is-brand":"c6055659b8e2cd2c__is-brand","is-neutral":"_92e0dfcaeee15b88__is-neutral","is-unstyled":"cf122a9bf1035d42__is-unstyled","link-icon":"_0cb411afac4c86c7__link-icon"};typeof process>"u",Pr("af6d9984a6","._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}");var Ec={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a"},Sn=(0,Di.forwardRef)(function({children:e,variant:r="default",tone:n="brand",openInNewTab:o=!1,render:a,className:s,...l},c){return pe({render:a,defaultTagName:"a",ref:c,props:ct(l,{className:Lt(Ec.a,Tc["box-sizing"],Cc["outset-ring--focus-except-active"],r!=="unstyled"&&Ir.link,r!=="unstyled"&&Ir[`is-${n}`],r==="unstyled"&&Ir["is-unstyled"],s),target:o?"_blank":void 0,children:(0,ge.jsxs)(ge.Fragment,{children:[e,o&&(0,ge.jsx)("span",{className:Ir["link-icon"],role:"img","aria-label":(0,Hi.__)("(opens in a new tab)")})]})})})});var te={};to(te,{List:()=>Ki,Panel:()=>ts,Root:()=>rs,Tab:()=>as});var Qt=i(W(),1);var Wi=i(hn(),1),Lr=i(R(),1),Tn="data-wp-hash";function Cn(){let t=globalThis;return t.__wpStyleRuntime||(t.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Nc(document)),t.__wpStyleRuntime}function kc(t,e){if(!t.head)return!1;for(let r of t.head.querySelectorAll(`style[${Tn}]`))if(r.getAttribute(Tn)===e)return!0;return!1}function $i(t,e,r){if(!t.head)return;let n=Cn(),o=n.injectedStyles.get(t);if(o||(o=new Set,n.injectedStyles.set(t,o)),o.has(e))return;if(kc(t,e)){o.add(e);return}let a=t.createElement("style");a.setAttribute(Tn,e),a.appendChild(t.createTextNode(r)),t.head.appendChild(a),o.add(e)}function Nc(t){let e=Cn();e.documents.set(t,(e.documents.get(t)??0)+1);for(let[r,n]of e.styles)$i(t,r,n);return()=>{let r=e.documents.get(t);if(r!==void 0){if(r<=1){e.documents.delete(t);return}e.documents.set(t,r-1)}}}function Ic(t,e){let r=Cn();r.styles.set(t,e);for(let n of r.documents.keys())$i(n,t,e)}typeof process>"u",Ic("bb8cbb8f31",`@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._7313adbc8a112e90__tablist{--direction-factor:1;--direction-start:left;--direction-end:right;align-items:stretch;display:flex;overflow-inline:auto;overscroll-behavior-inline:none;position:relative;&:dir(rtl){--direction-factor:-1;--direction-start:right;--direction-end:left}&[data-orientation=horizontal]{--fade-width:4rem;--fade-gradient-base:transparent 0%,#000 var(--fade-width);--fade-gradient-composed:var(--fade-gradient-base),#000 60%,transparent 50%;width:fit-content;&._9f2ac729c68a735a__is-overflowing-first{mask-image:linear-gradient(to var(--direction-end),var(--fade-gradient-base))}&._81c799c1f3cdd261__is-overflowing-last{mask-image:linear-gradient(to var(--direction-start),var(--fade-gradient-base))}&._9f2ac729c68a735a__is-overflowing-first._81c799c1f3cdd261__is-overflowing-last{mask-image:linear-gradient(to right,var(--fade-gradient-composed)),linear-gradient(to left,var(--fade-gradient-composed))}&._59228b5227f38a99__is-minimal-variant{gap:1rem}}&[data-orientation=vertical]{flex-direction:column}}._1c37dcfaa1ad8cda__indicator{@media not (prefers-reduced-motion){transition-duration:.2s;transition-property:translate,width,height,border-radius,border-block;transition-timing-function:ease-out}outline:2px solid transparent;outline-offset:-1px;pointer-events:none;position:absolute;&[data-orientation=horizontal]{background-color:var(--wpds-color-stroke-interactive-neutral-strong,#6e6e6e);bottom:0;height:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px));left:0;translate:var(--active-tab-left) 0;width:var(--active-tab-width);z-index:1}&[data-orientation=vertical]{background-color:var(--wpds-color-background-interactive-neutral-weak-active,#ededed);border-radius:var(--wpds-border-radius-sm,2px);height:var(--active-tab-height);left:50%;top:0;translate:-50% var(--active-tab-top);width:100%;z-index:0}._7313adbc8a112e90__tablist[data-select-on-move=true]:has(:focus-visible) &[data-orientation=vertical]{border:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));box-sizing:border-box}}.a5fd8814f195aa5e__tab{align-items:center;background:transparent;border:none;border-radius:0;box-shadow:none;color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);cursor:var(--wpds-cursor-control,pointer);display:flex;flex:1 0 auto;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-md,13px);font-weight:400;line-height:1.2;outline:none;padding:0;position:relative;white-space:nowrap;z-index:1;&[data-disabled]{color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);cursor:default;@media (forced-colors:active){color:GrayText}}&:not([data-disabled]):is(:hover,:focus-visible){color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}&:after{border-radius:var(--wpds-border-radius-sm,2px);opacity:0;outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));pointer-events:none;position:absolute;z-index:-1;@media not (prefers-reduced-motion){transition:opacity .1s linear}}&:focus-visible:after{opacity:1}[data-orientation=horizontal] &{height:48px;padding-inline:var(--wpds-dimension-padding-lg,16px);scroll-margin:24px;&:after{content:"";inset:var(--wpds-dimension-padding-md,12px)}}._59228b5227f38a99__is-minimal-variant[data-orientation=horizontal] &{padding-inline:0;&:after{inset-inline:round(up,var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)),1px)}}[data-orientation=vertical] &{min-height:var(--wpds-dimension-size-lg,40px);padding:var(--wpds-dimension-padding-sm,8px) var(--wpds-dimension-padding-md,12px)}[data-orientation=vertical][data-select-on-move=false] &:after{content:"";inset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}}._5dfc77e6edd345d4__tab-children{align-items:center;display:flex;flex-grow:1;[data-orientation=horizontal] &{justify-content:center}[data-orientation=vertical] &{justify-content:start}}._4a20e969d15e5ac1__tab-chevron{flex-shrink:0;margin-inline-end:calc(var(--wpds-dimension-gap-xs, 4px)*-1);opacity:0;[data-orientation=horizontal] &{display:none}[role=tab]:is([aria-selected=true],:focus-visible,:hover) &{opacity:1}@media not (prefers-reduced-motion){[data-select-on-move=true] [role=tab]:is([aria-selected=true]) &{transition:opacity .15s linear .15s}}&:dir(rtl){rotate:180deg}}}}`);var Ve={tablist:"_7313adbc8a112e90__tablist","is-overflowing-first":"_9f2ac729c68a735a__is-overflowing-first","is-overflowing-last":"_81c799c1f3cdd261__is-overflowing-last","is-minimal-variant":"_59228b5227f38a99__is-minimal-variant",indicator:"_1c37dcfaa1ad8cda__indicator",tab:"a5fd8814f195aa5e__tab","tab-children":"_5dfc77e6edd345d4__tab-children","tab-chevron":"_4a20e969d15e5ac1__tab-chevron"},Ui=1,Ki=(0,Qt.forwardRef)(function({children:e,variant:r="default",className:n,activateOnFocus:o,...a},s){let[l,c]=(0,Qt.useState)(null),[f,d]=(0,Qt.useState)({first:!1,last:!1,isScrolling:!1});(0,Qt.useEffect)(()=>{if(!l)return;let S=()=>{let{scrollWidth:m,clientWidth:_,scrollLeft:u}=l,y=Math.max(m-_,0),E=(l.dir||(typeof window<"u"?window.getComputedStyle(l).direction:"ltr"))==="rtl"&&u<0?-u:u,I={first:E>Ui,last:E<y-Ui,isScrolling:m>_};d(k=>k.first===I.first&&k.last===I.last&&k.isScrolling===I.isScrolling?k:I)},b=new ResizeObserver(S),h=()=>{b.disconnect(),b.observe(l),l.querySelectorAll('[role="tab"]').forEach(m=>b.observe(m))},w=new MutationObserver(h);w.observe(l,{childList:!0,subtree:!0});let T=!1,v=()=>{T||(requestAnimationFrame(()=>{S(),T=!1}),T=!0)};return l.addEventListener("scroll",v,{passive:!0}),h(),S(),()=>{l.removeEventListener("scroll",v),b.disconnect(),w.disconnect()}},[l]);let g=(0,Wi.useMergeRefs)([s,S=>c(S)]);return(0,Lr.jsxs)(mt.List,{ref:g,activateOnFocus:o,"data-select-on-move":o?"true":"false",className:Lt(Ve.tablist,f.first&&Ve["is-overflowing-first"],f.last&&Ve["is-overflowing-last"],Ve[`is-${r}-variant`],n),...a,tabIndex:a.tabIndex??(f.isScrolling?-1:void 0),children:[e,(0,Lr.jsx)(mt.Indicator,{className:Ve.indicator})]})});var Zi=i(W(),1);var Q=i(W(),1);var je=i(R(),1),Mr=!1,En=Mr?(0,Q.createContext)(null):null;function Pc(){let t=(0,Q.useContext)(En);(0,Q.useEffect)(()=>{if(t)return t.registerTab()},[t])}function Lc(){}var Yi=Mr?Pc:Lc;function Mc(){let t=(0,Q.useContext)(En);(0,Q.useEffect)(()=>{if(t)return t.registerPanel()},[t])}function Ac(){}var Gi=Mr?Mc:Ac;function Oc({children:t}){let e=(0,Q.useRef)(0),r=(0,Q.useRef)(0),n=Vi(()=>{let l=e.current,c=r.current;if(l!==c)throw new Error(`Tabs: Tab/Panel count mismatch (${l} Tabs, ${c} Panels). Each Tab must be associated with exactly one Panel. Mismatched or missing associations can break screen reader navigation and violate WAI-ARIA Tabs pattern requirements.`)}),o=(0,Q.useCallback)(()=>(e.current+=1,n(),()=>{e.current-=1,n()}),[n]),a=(0,Q.useCallback)(()=>(r.current+=1,n(),()=>{r.current-=1,n()}),[n]),s=(0,Q.useMemo)(()=>({registerTab:o,registerPanel:a}),[o,a]);return(0,je.jsx)(En.Provider,{value:s,children:t})}function Bc({children:t}){return(0,je.jsx)(je.Fragment,{children:t})}var qi=Mr?Oc:Bc;var Qi=i(R(),1),kn="data-wp-hash";function Nn(){let t=globalThis;return t.__wpStyleRuntime||(t.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&jc(document)),t.__wpStyleRuntime}function Vc(t,e){if(!t.head)return!1;for(let r of t.head.querySelectorAll(`style[${kn}]`))if(r.getAttribute(kn)===e)return!0;return!1}function Xi(t,e,r){if(!t.head)return;let n=Nn(),o=n.injectedStyles.get(t);if(o||(o=new Set,n.injectedStyles.set(t,o)),o.has(e))return;if(Vc(t,e)){o.add(e);return}let a=t.createElement("style");a.setAttribute(kn,e),a.appendChild(t.createTextNode(r)),t.head.appendChild(a),o.add(e)}function jc(t){let e=Nn();e.documents.set(t,(e.documents.get(t)??0)+1);for(let[r,n]of e.styles)Xi(t,r,n);return()=>{let r=e.documents.get(t);if(r!==void 0){if(r<=1){e.documents.delete(t);return}e.documents.set(t,r-1)}}}function Ji(t,e){let r=Nn();r.styles.set(t,e);for(let n of r.documents.keys())Xi(n,t,e)}typeof process>"u",Ji("af6d9984a6","._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}");var zc={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a"};typeof process>"u",Ji("da99a163ac","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._08e8a2e44959f892__outset-ring--focus:focus,.c5cb3ee4bddaa8e4__outset-ring--focus-within-visible:focus-within:has(:focus-visible),.cd83dfc2126a0846__outset-ring--focus-within:focus-within,.d0541bc9dd9dc7b6__outset-ring--focus-visible:focus-visible,:focus-visible .ecadb9e080e2dfa5__outset-ring--focus-parent-visible{--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}._970d04df7376df67__outset-ring--focus-within-except-active:focus-within,.e25b2bdd7aa21721__outset-ring--focus-except-active:focus{outline:none}._970d04df7376df67__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.e25b2bdd7aa21721__outset-ring--focus-except-active:focus:not(:active){@include mixins.focus-ring()}}}");var Dc={"outset-ring--focus":"_08e8a2e44959f892__outset-ring--focus","outset-ring--focus-visible":"d0541bc9dd9dc7b6__outset-ring--focus-visible","outset-ring--focus-within":"cd83dfc2126a0846__outset-ring--focus-within","outset-ring--focus-within-visible":"c5cb3ee4bddaa8e4__outset-ring--focus-within-visible","outset-ring--focus-parent-visible":"ecadb9e080e2dfa5__outset-ring--focus-parent-visible","outset-ring--focus-except-active":"e25b2bdd7aa21721__outset-ring--focus-except-active","outset-ring--focus-within-except-active":"_970d04df7376df67__outset-ring--focus-within-except-active"},ts=(0,Zi.forwardRef)(function({className:e,...r},n){return Gi(),(0,Qi.jsx)(mt.Panel,{ref:n,className:Lt(zc.div,Dc["outset-ring--focus-visible"],e),...r})});var es=i(W(),1);var In=i(R(),1),rs=(0,es.forwardRef)(function({...e},r){return(0,In.jsx)(qi,{children:(0,In.jsx)(mt.Root,{ref:r,...e})})});var os=i(W(),1);var ze=i(R(),1),Ln="data-wp-hash";function Mn(){let t=globalThis;return t.__wpStyleRuntime||(t.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Fc(document)),t.__wpStyleRuntime}function Hc(t,e){if(!t.head)return!1;for(let r of t.head.querySelectorAll(`style[${Ln}]`))if(r.getAttribute(Ln)===e)return!0;return!1}function ns(t,e,r){if(!t.head)return;let n=Mn(),o=n.injectedStyles.get(t);if(o||(o=new Set,n.injectedStyles.set(t,o)),o.has(e))return;if(Hc(t,e)){o.add(e);return}let a=t.createElement("style");a.setAttribute(Ln,e),a.appendChild(t.createTextNode(r)),t.head.appendChild(a),o.add(e)}function Fc(t){let e=Mn();e.documents.set(t,(e.documents.get(t)??0)+1);for(let[r,n]of e.styles)ns(t,r,n);return()=>{let r=e.documents.get(t);if(r!==void 0){if(r<=1){e.documents.delete(t);return}e.documents.set(t,r-1)}}}function Uc(t,e){let r=Mn();r.styles.set(t,e);for(let n of r.documents.keys())ns(n,t,e)}typeof process>"u",Uc("bb8cbb8f31",`@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._7313adbc8a112e90__tablist{--direction-factor:1;--direction-start:left;--direction-end:right;align-items:stretch;display:flex;overflow-inline:auto;overscroll-behavior-inline:none;position:relative;&:dir(rtl){--direction-factor:-1;--direction-start:right;--direction-end:left}&[data-orientation=horizontal]{--fade-width:4rem;--fade-gradient-base:transparent 0%,#000 var(--fade-width);--fade-gradient-composed:var(--fade-gradient-base),#000 60%,transparent 50%;width:fit-content;&._9f2ac729c68a735a__is-overflowing-first{mask-image:linear-gradient(to var(--direction-end),var(--fade-gradient-base))}&._81c799c1f3cdd261__is-overflowing-last{mask-image:linear-gradient(to var(--direction-start),var(--fade-gradient-base))}&._9f2ac729c68a735a__is-overflowing-first._81c799c1f3cdd261__is-overflowing-last{mask-image:linear-gradient(to right,var(--fade-gradient-composed)),linear-gradient(to left,var(--fade-gradient-composed))}&._59228b5227f38a99__is-minimal-variant{gap:1rem}}&[data-orientation=vertical]{flex-direction:column}}._1c37dcfaa1ad8cda__indicator{@media not (prefers-reduced-motion){transition-duration:.2s;transition-property:translate,width,height,border-radius,border-block;transition-timing-function:ease-out}outline:2px solid transparent;outline-offset:-1px;pointer-events:none;position:absolute;&[data-orientation=horizontal]{background-color:var(--wpds-color-stroke-interactive-neutral-strong,#6e6e6e);bottom:0;height:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px));left:0;translate:var(--active-tab-left) 0;width:var(--active-tab-width);z-index:1}&[data-orientation=vertical]{background-color:var(--wpds-color-background-interactive-neutral-weak-active,#ededed);border-radius:var(--wpds-border-radius-sm,2px);height:var(--active-tab-height);left:50%;top:0;translate:-50% var(--active-tab-top);width:100%;z-index:0}._7313adbc8a112e90__tablist[data-select-on-move=true]:has(:focus-visible) &[data-orientation=vertical]{border:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));box-sizing:border-box}}.a5fd8814f195aa5e__tab{align-items:center;background:transparent;border:none;border-radius:0;box-shadow:none;color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);cursor:var(--wpds-cursor-control,pointer);display:flex;flex:1 0 auto;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-md,13px);font-weight:400;line-height:1.2;outline:none;padding:0;position:relative;white-space:nowrap;z-index:1;&[data-disabled]{color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);cursor:default;@media (forced-colors:active){color:GrayText}}&:not([data-disabled]):is(:hover,:focus-visible){color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}&:after{border-radius:var(--wpds-border-radius-sm,2px);opacity:0;outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));pointer-events:none;position:absolute;z-index:-1;@media not (prefers-reduced-motion){transition:opacity .1s linear}}&:focus-visible:after{opacity:1}[data-orientation=horizontal] &{height:48px;padding-inline:var(--wpds-dimension-padding-lg,16px);scroll-margin:24px;&:after{content:"";inset:var(--wpds-dimension-padding-md,12px)}}._59228b5227f38a99__is-minimal-variant[data-orientation=horizontal] &{padding-inline:0;&:after{inset-inline:round(up,var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)),1px)}}[data-orientation=vertical] &{min-height:var(--wpds-dimension-size-lg,40px);padding:var(--wpds-dimension-padding-sm,8px) var(--wpds-dimension-padding-md,12px)}[data-orientation=vertical][data-select-on-move=false] &:after{content:"";inset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}}._5dfc77e6edd345d4__tab-children{align-items:center;display:flex;flex-grow:1;[data-orientation=horizontal] &{justify-content:center}[data-orientation=vertical] &{justify-content:start}}._4a20e969d15e5ac1__tab-chevron{flex-shrink:0;margin-inline-end:calc(var(--wpds-dimension-gap-xs, 4px)*-1);opacity:0;[data-orientation=horizontal] &{display:none}[role=tab]:is([aria-selected=true],:focus-visible,:hover) &{opacity:1}@media not (prefers-reduced-motion){[data-select-on-move=true] [role=tab]:is([aria-selected=true]) &{transition:opacity .15s linear .15s}}&:dir(rtl){rotate:180deg}}}}`);var Pn={tablist:"_7313adbc8a112e90__tablist","is-overflowing-first":"_9f2ac729c68a735a__is-overflowing-first","is-overflowing-last":"_81c799c1f3cdd261__is-overflowing-last","is-minimal-variant":"_59228b5227f38a99__is-minimal-variant",indicator:"_1c37dcfaa1ad8cda__indicator",tab:"a5fd8814f195aa5e__tab","tab-children":"_5dfc77e6edd345d4__tab-children","tab-chevron":"_4a20e969d15e5ac1__tab-chevron"},as=(0,os.forwardRef)(function({className:e,children:r,...n},o){return Yi(),(0,ze.jsxs)(mt.Tab,{ref:o,className:Lt(Pn.tab,e),...n,children:[(0,ze.jsx)("span",{className:Pn["tab-children"],children:r}),(0,ze.jsx)(gn,{icon:ao,className:Pn["tab-chevron"]})]})});var gt=i(U(),1),An=i(W(),1),Ar=i(K(),1),he=i(G(),1),$=i(R(),1),Wc=["image"],On="core/image",is=(0,gt.__)("Inline image");function $c(t){if(!t?.className)return;let[,e]=t.className.match(/wp-image-(\d+)/)??[];return e?parseInt(e,10):void 0}var Bn={name:On,title:is,keywords:[(0,gt.__)("photo"),(0,gt.__)("media")],object:!0,tagName:"img",className:null,attributes:{className:"class",style:"style",url:"src",alt:"alt"},edit:Yc};function Kc({value:t,onChange:e,activeObjectAttributes:r,contentRef:n}){let{style:o,alt:a}=r,s=o?.replace(/\D/g,""),[l,c]=(0,An.useState)(s),[f,d]=(0,An.useState)(a),g=l!==s||f!==a,S=(0,Ar.useAnchor)({editableContentElement:n.current,settings:Bn});return(0,$.jsx)(it.Popover,{focusOnMount:!1,anchor:S,className:"block-editor-format-toolbar__image-popover",children:(0,$.jsx)("form",{className:"block-editor-format-toolbar__image-container-content",onSubmit:b=>{let h=t.replacements.slice();h[t.start]={type:On,attributes:{...r,style:l?`width: ${l}px;`:"",alt:f}},e({...t,replacements:h}),b.preventDefault()},children:(0,$.jsxs)(pt,{direction:"column",gap:"lg",children:[(0,$.jsx)(it.__experimentalNumberControl,{label:(0,gt.__)("Width"),value:l,min:1,onChange:b=>{c(b)}}),(0,$.jsx)(it.TextareaControl,{label:(0,gt.__)("Alternative text"),value:f,onChange:b=>{d(b)},help:(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(Sn,{openInNewTab:!0,href:(0,gt.__)("https://www.w3.org/WAI/tutorials/images/decision-tree/"),children:(0,gt.__)("Describe the purpose of the image.")}),(0,$.jsx)("br",{}),(0,gt.__)("Leave empty if decorative.")]})}),(0,$.jsx)(pt,{justify:"right",children:(0,$.jsx)(it.Button,{disabled:!g,accessibleWhenDisabled:!0,variant:"primary",type:"submit",size:"compact",children:(0,gt.__)("Apply")})})]})})})}function Yc({value:t,onChange:e,onFocus:r,isObjectActive:n,activeObjectAttributes:o,contentRef:a}){return(0,$.jsxs)(he.MediaUploadCheck,{children:[(0,$.jsx)(he.MediaUpload,{allowedTypes:Wc,value:$c(o),onSelect:({id:s,url:l,alt:c,width:f})=>{e((0,Ar.insertObject)(t,{type:On,attributes:{className:`wp-image-${s}`,style:`width: ${Math.min(f,150)}px;`,url:l,alt:c}})),r()},render:({open:s})=>(0,$.jsx)(he.RichTextToolbarButton,{icon:(0,$.jsx)(it.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,$.jsx)(it.Path,{d:"M4 18.5h16V17H4v1.5zM16 13v1.5h4V13h-4zM5.1 15h7.8c.6 0 1.1-.5 1.1-1.1V6.1c0-.6-.5-1.1-1.1-1.1H5.1C4.5 5 4 5.5 4 6.1v7.8c0 .6.5 1.1 1.1 1.1zm.4-8.5h7V10l-1-1c-.3-.3-.8-.3-1 0l-1.6 1.5-1.2-.7c-.3-.2-.6-.2-.9 0l-1.3 1V6.5zm0 6.1l1.8-1.3 1.3.8c.3.2.7.2.9-.1l1.5-1.4 1.5 1.4v1.5h-7v-.9z"})}),title:n?(0,gt.__)("Replace image"):is,onClick:s,isActive:n})}),n&&(0,$.jsx)(Kc,{value:t,onChange:e,activeObjectAttributes:o,contentRef:a})]})}var ss=i(U(),1),zn=i(K(),1),be=i(G(),1);var Vt=i(R(),1),Vn="core/italic",jn=(0,ss.__)("Italic"),ls={name:Vn,title:jn,tagName:"em",className:null,edit({isActive:t,value:e,onChange:r,onFocus:n,isVisible:o=!0}){function a(){r((0,zn.toggleFormat)(e,{type:Vn,title:jn}))}function s(){r((0,zn.toggleFormat)(e,{type:Vn})),n()}return(0,Vt.jsxs)(Vt.Fragment,{children:[(0,Vt.jsx)(be.RichTextShortcut,{type:"primary",character:"i",onUse:a}),o&&(0,Vt.jsx)(be.RichTextToolbarButton,{name:"italic",icon:po,title:jn,onClick:s,isActive:t,shortcutType:"primary",shortcutCharacter:"i"}),(0,Vt.jsx)(be.__unstableRichTextInputEvent,{inputType:"formatItalic",onInput:a})]})}};var Fr=i(U(),1),ee=i(W(),1),Y=i(K(),1),re=i(Or(),1),Fe=i(G(),1),Rs=i(us(),1);var Ss=i(Nr(),1);var zr=i(W(),1),_t=i(U(),1),De=i(Nr(),1),ws=i(Wt(),1),_s=i(Or(),1),j=i(K(),1),ve=i(G(),1),Dr=i(Dn(),1);var D=i(Or(),1);function Br(t){if(!t)return!1;let e=t.trim();if(!e)return!1;if(/^\S+:/.test(e)){let r=(0,D.getProtocol)(e);if(!(0,D.isValidProtocol)(r)||r.startsWith("http")&&!/^https?:\/\/[^\/\s]/i.test(e))return!1;let n=(0,D.getAuthority)(e);if(!(0,D.isValidAuthority)(n))return!1;let o=(0,D.getPath)(e);if(o&&!(0,D.isValidPath)(o))return!1;let a=(0,D.getQueryString)(e);if(a&&!(0,D.isValidQueryString)(a))return!1;let s=(0,D.getFragment)(e);if(s&&!(0,D.isValidFragment)(s))return!1}return!(e.startsWith("#")&&!(0,D.isValidFragment)(e))}function ms({url:t,type:e,id:r,opensInNewWindow:n,nofollow:o,cssClasses:a}){let s={type:"core/link",attributes:{url:t}};e&&(s.attributes.type=e),r&&(s.attributes.id=r),n&&(s.attributes.target="_blank",s.attributes.rel=s.attributes.rel?s.attributes.rel+" noopener":"noopener"),o&&(s.attributes.rel=s.attributes.rel?s.attributes.rel+" nofollow":"nofollow");let l=a?.trim();return l?.length&&(s.attributes.class=l),s}function Vr(t,e,r=t.start,n=t.end){let o={start:void 0,end:void 0},{formats:a}=t,s,l;if(!a?.length)return o;let c=a.slice(),f=c[r]?.find(({type:h})=>h===e.type),d=c[n]?.find(({type:h})=>h===e.type),g=c[n-1]?.find(({type:h})=>h===e.type);if(f)s=f,l=r;else if(d)s=d,l=n;else if(g)s=g,l=n-1;else return o;let S=c[l].indexOf(s),b=[c,l,s,S];return r=Gc(...b),n=qc(...b),r=r<0?0:r,{start:r,end:n+1}}function ps(t,e,r,n,o){let a=e,l={forwards:1,backwards:-1}[o]||1,c=l*-1;for(;t[a]&&t[a][n]===r;)a=a+l;return a=a+c,a}var gs=(t,...e)=>(...r)=>t(...r,...e),Gc=gs(ps,"backwards"),qc=gs(ps,"forwards");var hs=i(W(),1),bs=i(hn(),1),Hn=i(U(),1),jr=i(Wt(),1);var Ct=i(R(),1),vs=({setting:t,value:e,onChange:r})=>{let n=e?e?.cssClasses?.length>0:!1,[o,a]=(0,hs.useState)(n),l=`css-classes-setting-${(0,bs.useInstanceId)(vs)}`,c=d=>{let g=typeof d=="string"?d.replace(/,/g," ").replace(/\s+/g," ").trim():d;r({...e,[t.id]:g})},f=()=>{o?(n&&c(""),a(!1)):a(!0)};return(0,Ct.jsxs)("fieldset",{children:[(0,Ct.jsx)(_n,{render:(0,Ct.jsx)("legend",{}),children:t.title}),(0,Ct.jsxs)(pt,{direction:"column",gap:"md",children:[(0,Ct.jsx)(jr.CheckboxControl,{label:t.title,onChange:f,checked:o||n,"aria-expanded":o,"aria-controls":o?l:void 0}),o&&(0,Ct.jsx)("div",{id:l,children:(0,Ct.jsx)(jr.__experimentalInputControl,{label:(0,Hn.__)("CSS classes"),value:e?.cssClasses,onChange:c,help:(0,Hn.__)("Separate multiple classes with spaces."),__unstableInputWidth:"100%"})})]})]})},xs=vs;var He=i(R(),1),Zc=[...ve.LinkControl.DEFAULT_LINK_SETTINGS,{id:"nofollow",title:(0,_t.__)("Mark as nofollow")},{id:"cssClasses",title:(0,_t.__)("Additional CSS class(es)"),render:(t,e,r)=>(0,He.jsx)(xs,{setting:t,value:e,onChange:r})}];function Xc({isActive:t,activeAttributes:e,value:r,onChange:n,onFocusOutside:o,stopAddingLink:a,contentRef:s,focusOnMount:l}){let f=Jc(r,t).text,{selectionChange:d}=(0,Dr.useDispatch)(ve.store),{createPageEntity:g,userCanCreatePages:S,selectionStart:b}=(0,Dr.useSelect)(u=>{let{getSettings:y,getSelectionStart:L}=u(ve.store),E=y();return{createPageEntity:E.__experimentalCreatePageEntity,userCanCreatePages:E.__experimentalUserCanCreatePages,selectionStart:L()}},[]),h=(0,zr.useMemo)(()=>({url:e.url,type:e.type,id:e.id,opensInNewTab:e.target==="_blank",nofollow:e.rel?.includes("nofollow"),title:f,cssClasses:e.class}),[e.class,e.id,e.rel,e.target,e.type,e.url,f]);function w(){let u=(0,j.removeFormat)(r,"core/link");n(u),a(),(0,De.speak)((0,_t.__)("Link removed."),"assertive")}function T(u){let L=!h?.url;u={...h,...u};let E=(0,_s.prependHTTPS)(u.url),I=ms({url:E,type:u.type,id:u.id!==void 0&&u.id!==null?String(u.id):void 0,opensInNewWindow:u.opensInNewTab,nofollow:u.nofollow,cssClasses:u.cssClasses}),k=u.title||E,p;if((0,j.isCollapsed)(r)&&!t){let x=(0,j.insert)(r,k);p=(0,j.applyFormat)(x,I,r.start,r.start+k.length),n(p),a(),d({clientId:b.clientId,identifier:b.attributeKey,start:r.start+k.length+1});return}else if(k===f){let x=Vr(r,{type:"core/link"});p=(0,j.applyFormat)(r,I,x.start,x.end)}else{p=(0,j.create)({text:k}),p=(0,j.applyFormat)(p,I,0,k.length);let x=Vr(r,{type:"core/link"}),[C,H]=(0,j.split)(r,x.start,x.start),B=(0,j.replace)(H,f,p);p=(0,j.concat)(C,B)}n(p),L||a(),Br(E)?t?(0,De.speak)((0,_t.__)("Link edited."),"assertive"):(0,De.speak)((0,_t.__)("Link inserted."),"assertive"):(0,De.speak)((0,_t.__)("Warning: the link has been inserted but may have errors. Please test it."),"assertive")}let v=(0,j.useAnchor)({editableContentElement:s.current,settings:{...Hr,isActive:t}});async function m(u){let y=await g({title:u,status:"draft"});return{id:y.id,type:y.type,title:y.title.rendered,url:y.link,kind:"post-type"}}function _(u){return(0,zr.createInterpolateElement)((0,_t.sprintf)((0,_t.__)("Create page: <mark>%s</mark>"),u),{mark:(0,He.jsx)("mark",{})})}return(0,He.jsx)(ws.Popover,{anchor:v,animate:!1,onClose:a,onFocusOutside:o,placement:"bottom",offset:8,shift:!0,focusOnMount:l,constrainTabbing:!0,children:(0,He.jsx)(ve.LinkControl,{value:h,onChange:T,onRemove:w,hasRichPreviews:!0,createSuggestion:g&&m,withCreateSuggestion:S,createSuggestionButtonText:_,hasTextControl:!0,settings:Zc,showInitialSuggestions:!0,suggestionsQuery:{initialSuggestionsSearchOptions:{type:"post",subtype:"page",perPage:20}}})})}function Jc(t,e){let r=t.start,n=t.end;if(e){let o=Vr(t,{type:"core/link"});r=o.start,n=o.end}return(0,j.slice)(t,r,n)}var ys=Xc;var Et=i(R(),1),xe="core/link",Ts=(0,Fr.__)("Link");function Qc({isActive:t,activeAttributes:e,value:r,onChange:n,onFocus:o,contentRef:a,isVisible:s=!0}){let[l,c]=(0,ee.useState)(!1),[f,d]=(0,ee.useState)(null);(0,ee.useEffect)(()=>{t||c(!1)},[t]),(0,ee.useLayoutEffect)(()=>{let v=a.current;if(!v)return;function m(_){let u=_.target.closest("[contenteditable] a");!u||!t||(c(!0),d({el:u,action:"click"}))}return v.addEventListener("click",m),()=>{v.removeEventListener("click",m)}},[a,t]);function g(v){let m=(0,Y.getTextContent)((0,Y.slice)(r));!t&&m&&(0,re.isURL)(m)&&Br(m)?n((0,Y.applyFormat)(r,{type:xe,attributes:{url:m}})):!t&&m&&(0,re.isEmail)(m)?n((0,Y.applyFormat)(r,{type:xe,attributes:{url:`mailto:${m}`}})):!t&&m&&(0,re.isPhoneNumber)(m)?n((0,Y.applyFormat)(r,{type:xe,attributes:{url:`tel:${m.replace(/\D/g,"")}`}})):(v&&d({el:v,action:null}),c(!0))}function S(){c(!1),f?.el?.tagName==="BUTTON"?f.el.focus():o(),d(null)}function b(){c(!1),d(null)}function h(){n((0,Y.removeFormat)(r,xe)),(0,Ss.speak)((0,Fr.__)("Link removed."),"assertive")}let w=!(f?.el?.tagName==="A"&&f?.action==="click"),T=!(0,Y.isCollapsed)(r);return(0,Et.jsxs)(Et.Fragment,{children:[T&&(0,Et.jsx)(Fe.RichTextShortcut,{type:"primary",character:"k",onUse:g}),(0,Et.jsx)(Fe.RichTextShortcut,{type:"primaryShift",character:"k",onUse:h}),s&&(0,Et.jsx)(Fe.RichTextToolbarButton,{name:"link",icon:yo,title:t?(0,Fr.__)("Link"):Ts,onClick:v=>{g(v.currentTarget)},isActive:t||l,shortcutType:"primary",shortcutCharacter:"k","aria-haspopup":"true","aria-expanded":l}),s&&l&&(0,Et.jsx)(ys,{stopAddingLink:S,onFocusOutside:b,isActive:t,activeAttributes:e,value:r,onChange:n,contentRef:a,focusOnMount:w?"firstElement":!1})]})}var Hr={name:xe,title:Ts,tagName:"a",className:null,attributes:{url:"href",type:"data-type",id:"data-id",_id:"id",target:"target",rel:"rel",class:"class"},__unstablePasteRule(t,{html:e,plainText:r}){let n=(e||r).replace(/<[^>]+>/g,"").trim();if(!(0,re.isURL)(n)||!/^https?:/.test(n))return t;window.console.log(`Created link: `,n);let o={type:xe,attributes:{url:(0,Rs.decodeEntities)(n)}};return(0,Y.isCollapsed)(t)?(0,Y.insert)(t,(0,Y.applyFormat)((0,Y.create)({text:r}),o,0,r.length)):(0,Y.applyFormat)(t,o)},edit:Qc};var Es=i(U(),1),ks=i(K(),1),Ur=i(G(),1);var oe=i(R(),1),Cs="core/strikethrough",Fn=(0,Es.__)("Strikethrough"),Ns={name:Cs,title:Fn,tagName:"s",className:null,edit({isActive:t,value:e,onChange:r,onFocus:n}){function o(){r((0,ks.toggleFormat)(e,{type:Cs,title:Fn})),n()}return(0,oe.jsxs)(oe.Fragment,{children:[(0,oe.jsx)(Ur.RichTextShortcut,{type:"access",character:"d",onUse:o}),(0,oe.jsx)(Ur.RichTextToolbarButton,{icon:ho,title:Fn,onClick:o,isActive:t,role:"menuitemcheckbox"})]})}};var Ls=i(U(),1),Ms=i(K(),1),Wr=i(G(),1),ne=i(R(),1),Is="core/underline",Ps=(0,Ls.__)("Underline"),As={name:Is,title:Ps,tagName:"span",className:null,attributes:{style:"style"},edit({value:t,onChange:e}){let r=()=>{e((0,Ms.toggleFormat)(t,{type:Is,attributes:{style:"text-decoration: underline;"},title:Ps}))};return(0,ne.jsxs)(ne.Fragment,{children:[(0,ne.jsx)(Wr.RichTextShortcut,{type:"primary",character:"u",onUse:r}),(0,ne.jsx)(Wr.__unstableRichTextInputEvent,{inputType:"formatUnderline",onInput:r})]})}};var zs=i(U(),1),Gr=i(W(),1),qr=i(G(),1);var Ds=i(K(),1);var Os=i(W(),1),Bs=i(Dn(),1),jt=i(K(),1),yt=i(G(),1),Vs=i(Wt(),1);var Wn=i(U(),1);var kt=i(R(),1),Un=[{name:"color",title:(0,Wn.__)("Text")},{name:"backgroundColor",title:(0,Wn.__)("Background")}];function tu(t=""){return t.split(";").reduce((e,r)=>{if(r){let[n,o]=r.split(":");n==="color"&&(e.color=o),n==="background-color"&&o!==Ue&&(e.backgroundColor=o)}return e},{})}function eu(t="",e){return t.split(" ").reduce((r,n)=>{if(n.startsWith("has-")&&n.endsWith("-color")){let o=n.replace(/^has-/,"").replace(/-color$/,""),a=(0,yt.getColorObjectByAttributeValues)(e,o);r.color=a.color}return r},{})}function $r(t,e,r){let n=(0,jt.getActiveFormat)(t,e);return n?{...tu(n.attributes.style),...eu(n.attributes.class,r)}:{}}function ru(t,e,r,n){let{color:o,backgroundColor:a}={...$r(t,e,r),...n};if(!o&&!a)return(0,jt.removeFormat)(t,e);let s=[],l=[],c={};if(a?s.push(["background-color",a].join(":")):s.push(["background-color",Ue].join(":")),o){let f=(0,yt.getColorObjectByColorValue)(r,o);f?l.push((0,yt.getColorClassName)("color",f.slug)):s.push(["color",o].join(":"))}return s.length&&(c.style=s.join(";")),l.length&&(c.class=l.join(" ")),(0,jt.applyFormat)(t,{type:e,attributes:c})}function ou({name:t,property:e,value:r,onChange:n}){let o=(0,Bs.useSelect)(s=>{let{getSettings:l}=s(yt.store);return l().colors??[]},[]),a=(0,Os.useMemo)(()=>$r(r,t,o),[t,r,o]);return(0,kt.jsx)(yt.ColorPalette,{value:a[e],onChange:s=>{n(ru(r,t,o,{[e]:s}))},enableAlpha:!0,__experimentalIsRenderedInSidebar:!0})}function js({name:t,value:e,onChange:r,onClose:n,contentRef:o,isActive:a}){let s=(0,jt.useAnchor)({editableContentElement:o.current,settings:{...Kr,isActive:a}});return(0,kt.jsx)(Vs.Popover,{onClose:n,className:"format-library__inline-color-popover",anchor:s,children:(0,kt.jsxs)(te.Root,{defaultValue:Un[0].name,children:[(0,kt.jsx)(te.List,{children:Un.map(l=>(0,kt.jsx)(te.Tab,{value:l.name,children:l.title},l.name))}),Un.map(l=>(0,kt.jsx)(te.Panel,{value:l.name,tabIndex:-1,children:(0,kt.jsx)(ou,{name:t,property:l.name,value:e,onChange:r})},l.name))]})})}var zt=i(R(),1),Ue="rgba(0, 0, 0, 0)",Yr="core/text-color",Hs=(0,zs.__)("Highlight"),nu=[];function $n(t,e){let{ownerDocument:r}=t,{defaultView:n}=r,a=n.getComputedStyle(t).getPropertyValue(e);return e==="background-color"&&a===Ue&&t.parentElement?$n(t.parentElement,e):a}function au(t,{color:e,backgroundColor:r}){if(!(!e&&!r))return{color:e||$n(t,"color"),backgroundColor:r===Ue?$n(t,"background-color"):r}}function iu({value:t,onChange:e,isActive:r,activeAttributes:n,contentRef:o}){let[a,s=nu]=(0,qr.useSettings)("color.custom","color.palette"),[l,c]=(0,Gr.useState)(!1),f=(0,Gr.useMemo)(()=>au(o.current,$r(t,Yr,s)),[o,t,s]),d=!!s.length||a;return!d&&!r?null:(0,zt.jsxs)(zt.Fragment,{children:[(0,zt.jsx)(qr.RichTextToolbarButton,{className:"format-library-text-color-button",isActive:r,icon:(0,zt.jsx)(eo,{icon:Object.keys(n).length?Io:fo,style:f}),title:Hs,onClick:d?()=>c(!0):()=>e((0,Ds.removeFormat)(t,Yr)),role:"menuitemcheckbox"}),l&&(0,zt.jsx)(js,{name:Yr,onClose:()=>c(!1),activeAttributes:n,value:t,onChange:e,contentRef:o,isActive:r})]})}var Kr={name:Yr,title:Hs,tagName:"mark",className:"has-inline-color",attributes:{style:"style",class:"class"},edit:iu};var Us=i(U(),1),Ws=i(K(),1),$s=i(G(),1);var Ks=i(R(),1),Fs="core/subscript",Kn=(0,Us.__)("Subscript"),Ys={name:Fs,title:Kn,tagName:"sub",className:null,edit({isActive:t,value:e,onChange:r,onFocus:n}){function o(){r((0,Ws.toggleFormat)(e,{type:Fs,title:Kn}))}function a(){o(),n()}return(0,Ks.jsx)($s.RichTextToolbarButton,{icon:Co,title:Kn,onClick:a,isActive:t,role:"menuitemcheckbox"})}};var qs=i(U(),1),Zs=i(K(),1),Xs=i(G(),1);var Js=i(R(),1),Gs="core/superscript",Yn=(0,qs.__)("Superscript"),Qs={name:Gs,title:Yn,tagName:"sup",className:null,edit({isActive:t,value:e,onChange:r,onFocus:n}){function o(){r((0,Zs.toggleFormat)(e,{type:Gs,title:Yn}))}function a(){o(),n()}return(0,Js.jsx)(Xs.RichTextToolbarButton,{icon:ko,title:Yn,onClick:a,isActive:t,role:"menuitemcheckbox"})}};var el=i(U(),1),rl=i(K(),1),ol=i(G(),1);var nl=i(R(),1),tl="core/keyboard",Gn=(0,el.__)("Keyboard input"),al={name:tl,title:Gn,tagName:"kbd",className:null,edit({isActive:t,value:e,onChange:r,onFocus:n}){function o(){r((0,rl.toggleFormat)(e,{type:tl,title:Gn}))}function a(){o(),n()}return(0,nl.jsx)(ol.RichTextToolbarButton,{icon:oo,title:Gn,onClick:a,isActive:t,role:"menuitemcheckbox"})}};var sl=i(U(),1),we=i(K(),1),ll=i(G(),1);var fl=i(R(),1),qn="core/unknown",il=(0,sl.__)("Clear Unknown Formatting");function su(t){return(0,we.isCollapsed)(t)?!1:(0,we.slice)(t).formats.some(r=>r.some(n=>n.type===qn))}var cl={name:qn,title:il,tagName:"*",className:null,edit({isActive:t,value:e,onChange:r,onFocus:n}){if(!t&&!su(e))return null;function o(){r((0,we.removeFormat)(e,qn)),n()}return(0,fl.jsx)(ll.RichTextToolbarButton,{name:"unknown",icon:vo,title:il,onClick:o,isActive:!0})}};var ae=i(U(),1),ul=i(G(),1),Dt=i(Wt(),1);var Zr=i(W(),1),_e=i(K(),1);var rt=i(R(),1),Zn="core/language",Xr=(0,ae.__)("Language"),Xn={name:Zn,title:Xr,tagName:"bdo",className:null,attributes:{lang:"lang",dir:"dir"},edit:lu};function lu({isActive:t,value:e,onChange:r,contentRef:n}){let[o,a]=(0,Zr.useState)(!1),s=()=>{a(l=>!l)};return(0,rt.jsxs)(rt.Fragment,{children:[(0,rt.jsx)(ul.RichTextToolbarButton,{icon:wo,label:Xr,title:Xr,onClick:()=>{t?r((0,_e.removeFormat)(e,Zn)):s()},isActive:t,role:"menuitemcheckbox"}),o&&(0,rt.jsx)(fu,{value:e,onChange:r,onClose:s,contentRef:n})]})}function fu({value:t,contentRef:e,onChange:r,onClose:n}){let o=(0,_e.useAnchor)({editableContentElement:e.current,settings:Xn}),[a,s]=(0,Zr.useState)(""),[l,c]=(0,Zr.useState)("ltr");return(0,rt.jsx)(Dt.Popover,{className:"block-editor-format-toolbar__language-popover",anchor:o,onClose:n,children:(0,rt.jsxs)(pt,{render:(0,rt.jsx)("form",{}),direction:"column",gap:"lg",className:"block-editor-format-toolbar__language-container-content",onSubmit:f=>{f.preventDefault(),r((0,_e.applyFormat)(t,{type:Zn,attributes:{lang:a,dir:l}})),n()},children:[(0,rt.jsx)(Dt.TextControl,{label:Xr,value:a,onChange:f=>s(f),help:(0,ae.__)('A valid language attribute, like "en" or "fr".')}),(0,rt.jsx)(Dt.SelectControl,{label:(0,ae.__)("Text direction"),value:l,options:[{label:(0,ae.__)("Left to right"),value:"ltr"},{label:(0,ae.__)("Right to left"),value:"rtl"}],onChange:f=>c(f)}),(0,rt.jsx)(pt,{justify:"right",children:(0,rt.jsx)(Dt.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",text:(0,ae.__)("Apply")})})]})})}var Nt=i(U(),1),ye=i(W(),1),Rt=i(K(),1),pl=i(G(),1),Re=i(Wt(),1);var gl=i(Nr(),1);var dl=i(Ai(),1),{lock:Nb,unlock:ml}=(0,dl.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/format-library");var tt=i(R(),1),{Badge:cu}=ml(Re.privateApis),Jn="core/math",hl=(0,Nt.__)("Math");function uu({value:t,onChange:e,activeAttributes:r,contentRef:n,latexToMathML:o}){let[a,s]=(0,ye.useState)(r?.["data-latex"]||""),[l,c]=(0,ye.useState)(null),f=(0,Rt.useAnchor)({editableContentElement:n.current,settings:Qn}),d=g=>{let S="";if(s(g),g)try{S=o(g,{displayMode:!1}),c(null)}catch(h){c(h.message),(0,gl.speak)((0,Nt.sprintf)((0,Nt.__)("Error parsing mathematical expression: %s"),h.message));return}let b=t.replacements.slice();b[t.start]={type:Jn,attributes:{"data-latex":g},innerHTML:S},e({...t,replacements:b})};return(0,tt.jsx)(Re.Popover,{placement:"bottom-start",offset:8,focusOnMount:!1,anchor:f,className:"block-editor-format-toolbar__math-popover",children:(0,tt.jsx)("div",{style:{minWidth:"300px",padding:"4px"},children:(0,tt.jsxs)(pt,{direction:"column",gap:"xs",children:[(0,tt.jsx)(Re.TextControl,{hideLabelFromVision:!0,label:(0,Nt.__)("LaTeX math syntax"),value:a,onChange:d,placeholder:(0,Nt.__)("e.g., x^2, \\frac{a}{b}"),autoComplete:"off",className:"block-editor-format-toolbar__math-input"}),l&&(0,tt.jsxs)(tt.Fragment,{children:[(0,tt.jsx)(cu,{intent:"error",className:"wp-block-math__error",children:(0,Nt.sprintf)((0,Nt.__)("Error: %s"),l)}),(0,tt.jsx)("style",{children:".wp-block-math__error .components-badge__content{white-space:normal}"})]})]})})})}function du({value:t,onChange:e,onFocus:r,isObjectActive:n,activeObjectAttributes:o,contentRef:a}){let[s,l]=(0,ye.useState)();(0,ye.useEffect)(()=>{import("@wordpress/latex-to-mathml").then(f=>{l(()=>f.default)})},[]);function c(){let f;if(n){let d=o?.["data-latex"]||"";f=(0,Rt.insert)(t,d),f.start=f.end-d.length}else{let d=(0,Rt.getTextContent)((0,Rt.slice)(t)),g="";if(d&&s)try{g=s(d,{displayMode:!1})}catch{}f=(0,Rt.insertObject)(t,{type:Jn,attributes:{"data-latex":d},innerHTML:g}),f.start=f.end-1}e(f),r()}return(0,tt.jsxs)(tt.Fragment,{children:[(0,tt.jsx)(pl.RichTextToolbarButton,{icon:So,title:hl,onClick:c,isActive:n}),n&&(0,tt.jsx)(uu,{value:t,onChange:e,activeAttributes:o,contentRef:a,latexToMathML:s})]})}var Qn={name:Jn,title:hl,tagName:"math",className:null,attributes:{"data-latex":"data-latex"},contentEditable:!1,edit:du};var bl=i(U(),1),vl=i(K(),1),xl=i(G(),1),wl=i(R(),1),mu="core/non-breaking-space",pu=(0,bl.__)("Non breaking space"),_l={name:mu,title:pu,tagName:"nbsp",className:null,edit({value:t,onChange:e}){function r(){e((0,vl.insert)(t,"\xA0"))}return(0,wl.jsx)(xl.RichTextShortcut,{type:"primaryShift",character:" ",onUse:r})}};var yl=[la,ca,Bn,ls,Hr,Ns,As,Kr,Ys,Qs,al,cl,Xn,Qn,_l];yl.forEach(({name:t,...e})=>(0,Rl.registerFormatType)(t,e));})(); /*! Bundled license information: use-sync-external-store/cjs/use-sync-external-store-shim.production.js: (** * @license React * use-sync-external-store-shim.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. *) */ (window.wp ||= {}).formatLibrary = wp.formatLibrary; })();
Save
cmd:
run