!function(){"use strict";vare={d:function(t,r){for(varninr)e.o(r,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:r[n]})},o:function(e,t){returnObject.prototype.hasOwnProperty.call(e,t)}},t={};e.d(t,{default:function(){returnT}});varr=window.wp.i18n;varn=function(e){constt=(e,r)=>{const{headers:n={}}=e;for(constainn)if("x-wp-nonce"===a.toLowerCase()&&n[a]===t.nonce)returnr(e);returnr({...e,headers:{...n,"X-WP-Nonce":t.nonce}})};returnt.nonce=e,t};vara=(e,t)=>{letr,n,a=e.path;return"string"==typeofe.namespace&&"string"==typeofe.endpoint&&(r=e.namespace.replace(/^\/|\/$/g,""),n=e.endpoint.replace(/^\//,""),a=n?r+"/"+n:r),deletee.namespace,deletee.endpoint,t({...e,path:a})};varo=e=>(t,r)=>a(t,(t=>{letn,a=t.url,o=t.path;return"string"==typeofo&&(n=e,-1!==e.indexOf("?")&&(o=o.replace("?","&")),o=o.replace(/^\//,""),"string"==typeofn&&-1!==n.indexOf("?")&&(o=o.replace("?","&")),a=n+o),r({...t,url:a})})),s=window.wp.url;functioni(e,t){returnPromise.resolve(t?e.body:newwindow.Response(JSON.stringify(e.body),{status:200,statusText:"OK",headers:e.headers}))}varc=function(e){constt=Object.fromEntries(Object.entries(e).map((([e,t])=>[(0,s.normalizePath)(e),t])));return(e,r)=>{const{parse:n=!0}=e;leta=e.path;if(!a&&e.url){const{rest_route:t,...r}=(0,s.getQueryArgs)(e.url);"string"==typeoft&&(a=(0,s.addQueryArgs)(t,r))}if("string"!=typeofa)returnr(e);consto=e.method||"GET",c=(0,s.normalizePath)(a);if("GET"===o&&t[c]){conste=t[c];returndeletet[c],i(e,!!n)}if("OPTIONS"===o&&t[o]&&t[o][c]){conste=t[o][c];returndeletet[o][c],i(e,!!n)}returnr(e)}};constd=({path:e,url:t,...r},n)=>({...r,url:t&&(0,s.addQueryArgs)(t,n),path:e&&(0,s.addQueryArgs)(e,n)}),p=e=>e.json?e.json():Promise.reject(e),u=e=>{const{next:t}=(e=>{if(!e)return{};constt=e.match(/<([^>]+)>; rel="next"/);returnt?{next:t[1]}:{}})(e.headers.get("link"));returnt};varh=async(e,t)=>{if(!1===e.parse)returnt(e);if(!(e=>{constt=!!e.path&&-1!==e.path.indexOf("per_page=-1"),r=!!e.url&&-1!==e.url.indexOf("per_page=-1");returnt||r})(e))returnt(e);constr=awaitT({...d(e,{per_page:100}),parse:!1}),n=awaitp(r);if(!Array.isArray(n))returnn;leta=u(r);if(!a)returnn;leto=[].concat(n);for(;a;){constt=awaitT({...e,path:void0,url:a,parse:!1}),r=awaitp(t);o=o.concat(r),a=u(t)}returno};constl=newSet(["PATCH","PUT","DELETE"]),f="GET";constw=(e,t=!0)=>Promise.resolve(((e,t=!0)=>t?204===e.status?null:e.json?e.json():Promise.reject(e):e)(e,t)).catch((e=>m(e,t)));functionm(e,t=!0){if(!t)throwe;return(e=>{constt={code:"invalid_json",message:(0,r.__)("The response is not a valid JSON response.")};if(!e||!e.json)throwt;returne.json().catch((()=>{throwt}))})(e).then((e=>{constt={code:"unknown_error",message:(0,r.__)("An unknown error occurred.")};throwe||t}))}varg=(e,t)=>{if(!function(e){constt=!!e.method&&"POST"===e.method;return(!!e.path&&-1!==e.path.indexOf("/wp/v2/media")||!!e.url&&-1!==e.url.indexOf("/wp/v2/media"))&&t}(e))returnt(e);letn=0;consta=e=>(n++,t({path:`/wp/v2/media/${e}/post-process`,method:"POST",data:{action:"create-image-subsizes"},parse:!1}).catch((()=>n<5?a(e):(t({path:`/wp/v2/media/${e}?force=true`,method:"DELETE"}),Promise.reject()))));returnt({...e,parse:!1}).catch((t=>{constn=t.headers.get("x-wp-upload-attachment-id");returnt.status>=500&&t.status<600&&n?a(n).catch((()=>!1!==e.parse?Promise.reject({code:"post_process",message:(0,r.__)("Media upload failed. If this is a photo or a large image, please scale it down and try again.")}):Promise.reject(t))):m(t,e.parse)})).then((t=>w(t,e.parse)))};vary=e=>(t,r)=>("string"!=typeoft.url||(0,s.hasQueryArg)(t.url,"wp_theme_preview")||(t.url=(0,s.addQueryArgs)(t.url,{wp_theme_preview:e})),"string"!=typeoft.path||(0,s.hasQueryArg)(t.path,"wp_theme_preview")||(t.path=(0,s.addQueryArgs)(t.path,{wp_theme_preview:e})),r(t));const_={Accept:"application/json, */*;q=0.1"},v={credentials:"include"},P=[(e,t)=>("string"!=typeofe.url||(0,s.hasQueryArg)(e.url,"_locale")||(e.url=(0,s.addQueryArgs)(e.url,{_locale:"user"})),"string"!=typeofe.path||(0,s.hasQueryArg