useblocks 1.1.6 → 1.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- __useblocks__.define(`static/core/f1547990.js`,[`require`,`exports`,`module`,`static/core/4dc58c63.js`,`static/core/91f27762.js`,`static/core/613230e7.js`,`react`,`prop-types`,`react-dom`,`react-router-dom`],function(e,t,n){let r=e("./4dc58c63.js"),i=e("./91f27762.js"),a=e("./613230e7.js"),o=e("react");o=r.l(o);let s=e("prop-types");s=r.l(s);let c=e("react-dom"),l=e("react-router-dom");var u=class e{_inner;_isDisposed=!1;constructor(e=[]){this._inner=e}addDisposable(t){return this._inner.push(t),t instanceof e&&t.addDispose(()=>{this.removeDisposable(t)}),t}addDispose(e){this.addDisposable({dispose:e})}removeDisposable(e){let t=this._inner.indexOf(e);t>=0&&this._inner.splice(t,1)}isDisposed(){return this._isDisposed}dispose(){if(!this._isDisposed){this._isDisposed=!0;for(let e of[...this._inner])e.dispose()}}};function d(e){return`service_container_${e}`}var f=class e extends u{_parent;_injectCallbacks=[];_injections=Object.create(null);_runCallbacks(e){this._injectCallbacks.forEach(t=>t(e))}constructor(e=null){super(),this._parent=e,e&&this.addDisposable(e.onInject(e=>this._runCallbacks(e)))}onInject=e=>(this._injectCallbacks.push(e),{dispose:()=>{let t=this._injectCallbacks.indexOf(e);t>=0&&this._injectCallbacks.splice(t,1)}});inject(e,t){this._injections[e]=()=>t,this._runCallbacks(e)}injectFactory(e,t,n){let r=this._injections[e],i=typeof r==`function`?r():r,a=this._injections[e]=()=>(i=t(this,i),i);n&&a(),this._runCallbacks(e)}_find(e,t=!0){return this._injections[e]||t&&this._parent?._find(e)}_onInject(e,t,n=new u){return n.addDisposable(this.onInject(r=>{e===r&&(n.dispose(),t(this.getInstance(r)))})),this._parent&&n.addDisposable(this._parent._onInject(e,t,n)),this.addDisposable(n),n}getInstance(e,t=!0){let n=this._find(e,t);if(typeof n==`function`)return n()}getOrCreateInstance(e,t){let n=this._find(e);if(typeof n==`function`)return n();let r=t(this);return this.inject(e,r),r}getInstanceAsync(e){let t=this._find(e);return typeof t==`function`?Promise.resolve(t()):new Promise(t=>this._onInject(e,()=>t(this.getInstance(e))))}addService(e,t){let n=d(e);this.injectFactory(n,(e,n=[])=>n.indexOf(t)<0?[...n,t]:n);let r=new u;return r.addDispose(()=>{this.injectFactory(n,(e,n=[])=>n.filter(e=>e!==t))}),r}addServiceFactory(e,t,n){let r=d(e),i;this.injectFactory(r,(e,n=[])=>(i=t(e,i),i===void 0?n:n.indexOf(i)<0?[...n,i]:n),n);let a=new u;return a.addDispose(()=>{this.injectFactory(r,(e,t=[])=>i===void 0?t:t.filter(e=>e!==i))}),a}getServices(e){let t=d(e);return[...this.getInstance(t,!1)||[],...this._parent?.getServices(e)||[]]}createChild(){return new e(this)}getOrCreateIsolatedContainer(t){return this.getOrCreateInstance(t,()=>{let n=this._parent?.getOrCreateIsolatedContainer(t);return new e(n)})}dispose(){this._injections=Object.create(null)}};function p(e){return e.startsWith(`__`)?e:`__${e}__`}function m(e){if(typeof globalThis>`u`)throw Error(`[di] globalThis is required for namespace container access.`);let t=p(e),n=globalThis;return n[t]??={}}function h(e){return typeof e==`object`&&!!e&&typeof e.inject==`function`&&typeof e.getInstance==`function`}function g(e){return p(e||`useblocks`)}function _(e){let t=m(g(e));if(h(t.container))return t.container;let n=new f(null);return t.container=n,n}function v(e){return _(e)}function y(){let e=new Date().getTime(),t=typeof performance<`u`&&performance.now&&performance.now()*1e3||0;return`xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx`.replace(/[xy]/g,function(n){let r=Math.random()*16;return e>0?(r=(e+r)%16|0,e=Math.floor(e/16)):(r=(t+r)%16|0,t=Math.floor(t/16)),(n===`x`?r:r&3|8).toString(16)})}function b(){return typeof crypto<`u`&&typeof crypto.randomUUID==`function`?crypto.randomUUID():y()}function x(e=b()){return e}function S(){return`core`}function C(e){if(typeof globalThis>`u`)return;let t=S(),n=globalThis[e]??{};globalThis[e]=n;let r=n.__diagnostics??={},i=r.diModuleEval??={evalCount:0,records:[],duplicateWarned:!1};i.records.push({buildSource:t,timestamp:Date.now(),stack:Error().stack}),i.evalCount+=1,!(i.evalCount<=1||i.duplicateWarned)&&(i.duplicateWarned=!0,i.evalCount,i.records)}function w(){return`__useblocks__`}function T(e,t){if(C(t),typeof globalThis>`u`)return e;let n=S(),r=globalThis,i=r[t]=r[t]||{},a=i.__diagnostics=i.__diagnostics||{},o=a.dependencyResolver=a.dependencyResolver||{entries:[],warnings:[]},s={container:e,source:`packages/runtime-core/di/index.ts`,buildSource:n,timestamp:Date.now(),stack:Error().stack};if(o.entries.push(s),o.entries.length>1){let e=o.entries[0];if(o.entries.some(t=>t.container!==e.container)&&!o.duplicateWarningShown){o.duplicateWarningShown=!0;let e={message:`[di] Multiple DependencyResolver instances detected on namespace`,namespaceKey:t,buildSource:n,entries:o.entries};o.warnings.push(e)}}return e}var E;function D(){if(E)return E;let e=w();return E=T(_(e),e),E}var O=new Proxy({},{get(e,t,n){let r=D(),i=Reflect.get(r,t,n);return typeof i==`function`?i.bind(r):i}}),k=class e extends Error{code;httpStatus;details;constructor(t,n,r,i){super(t),this.name=`FileManagerApiError`,this.code=n,this.httpStatus=r,this.details=i;let a=Error.captureStackTrace;a&&a(this,e)}},ee=class extends u{_options;_listeners=[];constructor(e={}){super(),this._options=e}getListeners(e){return this._listeners.flatMap(([t])=>typeof t==`function`?t:t.getListeners(e))}hasListeners(){return this._listeners.length>0}_addListener(e,t=0,n){if(this.isDisposed())return{dispose:()=>{}};let r=this._listeners,i=this._options;n&&typeof e==`function`&&(e=e.bind(n));let a=r.findIndex(([,e])=>e<t),o=[e,t];return r.splice(a>=0?a:r.length,0,o),r.length===1&&i.onFirstListenerAdd&&i.onFirstListenerAdd(),{dispose:()=>{let e=r.indexOf(o);e>=0&&(r.splice(e,1),!r.length&&i.onLastListenerRemove&&i.onLastListenerRemove())}}}on=this._addListener.bind(this);event=this._addListener.bind(this);once=(e,t=0,n)=>{let r=this._addListener((...t)=>(r?.dispose(),n?e.call(n,...t):e(...t)),t);return r};un=e=>{let t=this._listeners.findIndex(([t])=>t===e);t>=0&&(this._listeners.splice(t,1),this._listeners.length===0&&this._options.onLastListenerRemove&&this._options.onLastListenerRemove())};dispose(){this._listeners.splice(0,this._listeners.length),this._options.onLastListenerRemove&&this._options.onLastListenerRemove(),super.dispose()}},te=class extends ee{execute(e,t){for(let n of t)try{n(...e)}catch{}}fire(...e){if(!this.isDisposed()){let t=this.execute(e,this.getListeners(e));return t===void 0?void 0:t}}},ne=class extends te{execute([e],t){for(let n of t)try{n(e)}catch{}}},re=class extends te{_suspendCounter=0;_wasFired=!1;execute([e],t){if(this._suspendCounter)this._wasFired=!0;else for(let n of t)try{n(e)}catch{}}suspend(){this._suspendCounter++}resume(){--this._suspendCounter===0&&this._wasFired&&(this.fire(),this._wasFired=!1)}},A=class extends te{async execute([e],t){let n=[];for(let r of t)try{n.push(await r(e))}catch{}return n}};function ie(e,t=0){let n=new ee,r=e(n,t);return r&&n.addDisposable(r),n.event}function ae(e,t,n=0){let r=new te,i=e((...e)=>{if(t(...e))return r.fire(...e)},n);return i&&r.addDisposable(i),r.event}function oe(e,t=0,n=0){let r=new te,i,a,o=e((...e)=>{a=e,i||=setTimeout(()=>{a&&r.fire(...a),i=void 0},t)},n);return o&&r.addDisposable(o),r.event}var se=class{_listeners=[];add(e,t=0,n){let r={fn:n?e.bind(n):e,priority:t};return this._listeners.push(r),{dispose:()=>{let e=this._listeners.indexOf(r);e>=0&&this._listeners.splice(e,1)}}}async run(e){let t=[...this._listeners].sort((e,t)=>t.priority-e.priority);for(let{fn:n}of t){let t=await n(e);typeof t==`object`&&t&&!Array.isArray(t)&&!(t instanceof Date)&&!(t instanceof RegExp)&&Object.assign(e,t)}return e}},ce=x(`ELEMENT_INSERT_HTML_PIPELINE`),le=x(`BLOCK_INSERT_HTML_PIPELINE`);function ue(e){return e.getOrCreateInstance(ce,()=>new se)}function de(e){return e.getOrCreateInstance(le,()=>new se)}async function fe(e,t){return e?ue(e).run({...t}):t}async function pe(e,t){return e?de(e).run({...t}):t}function j(e){return e}function me(e){return e&&typeof e==`object`}function he(e,t){return e&&typeof e==`object`&&e.operationId===t}var ge=j(`INIT_MESSAGE`),_e=j(``);function M(){return Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15)}var ve=class extends u{_listeners=Object.create(null);addListenerAsync=(e,t,n=0,r)=>{let i=this._listeners[e]||(this._listeners[e]=[]);r&&typeof t==`function`&&(t=t.bind(r));let a=i.findIndex(([e,t])=>n<=t),o=[t,n];return this.isDisposed()||i.splice(a>=0?a:i.length,0,o),{dispose(){let e=i.indexOf(o);e>=0&&i.splice(e,1)}}};fireAsync=(e,t)=>{if(!this.isDisposed()){let n=this._listeners[e]||(this._listeners[e]=[]),r;for(let e=0;e<n.length;e++){let t=n[e][0],i=r;r=e=>t(e,i)}if(r)return r(t)}};addListener=(e,t,n=0)=>this.addListenerAsync(e,(e,n)=>{try{t(e)}catch{}return n&&n(e)},n)},ye=class extends u{_singleton;_target;_inited=!1;_emitter=this.addDisposable(new ve);constructor(e,t){super(),this._singleton=t,window.addEventListener(`message`,this._onReceiveMessage),this.addListener(ge,()=>{this._inited||(this._inited=!0,this.send(ge))}),e&&this.setTarget(e)}_onReceiveMessage=e=>{let t=e.data;if(me(t)&&e.source==this.target||this._singleton&&he(t,ge)){let n=this._emitter.fireAsync(t.operationId||_e,t.operationId===void 0?e:t.data),r=t.result,i=t.error;r&&i&&Promise.resolve(n).then(e=>this._sendMessage(r,e),e=>this._sendMessage(i,e))}};setTarget(e){this._target!==e&&(this._target=e,e&&this._postMessage(e,{operationId:ge,data:{}}))}getTarget(){return this._target}get target(){return this._target}_postMessage(e,t){try{e.postMessage(t,`*`)}catch(e){throw e?.name===`DataCloneError`&&typeof t?.data==`object`&&t?.data!==null&&t.data,e}}_sendMessage(e,t,n=!0){if(!n&&!this.isInited())return;let r=this.addDisposable(this.onInit(n=>{let i=e?{operationId:e,data:t}:t;try{this._postMessage(n,{...i})}finally{r.dispose()}}))}send(e,t,n){return typeof e==`string`?this._sendMessage(e,t,n):this._sendMessage(_e,e,t)}sendAsync(e,t,n=!0){if(!n&&!this.isInited())return Promise.resolve();let r=j(M()),i=j(M());return new Promise((n,a)=>{let o=this.addDisposable(new u);o.addDisposable(this.onInit(s=>{try{this._postMessage(s,{operationId:e,data:t,result:r,error:i})}catch(e){o.dispose(),a(e);return}o.addDisposable(this._onMessage(r,e=>{n(e),o.dispose()})),o.addDisposable(this._onMessage(i,e=>{a(e),o.dispose()}))}))})}_onMessage(e,t,n=0){return this._emitter.addListener(e,t,n)}addListener(e,t,n){return t?this._onMessage(e,t,n):this._onMessage(_e,e)}addListenerAsyncPipe(e,t,n=0){return this._emitter.addListenerAsync(e,t,n)}addListenerAsync(e,t,n=0){return this._emitter.addListenerAsync(e,async(e,n)=>{let r=await t(e);return n?n(e):r},n)}isInited(){return this._inited}get inited(){return this._inited}onInit(e,t=!0,n=0){let r=this.addDisposable(new u);return this._inited&&this._target?t&&Promise.resolve().then(()=>{!this._inited||!this._target?r.addDisposable(this.onInit(e,t,n)):e(this._target)}):r.addDisposable(this._onMessage(ge,()=>{e(this._target)},n)),r}dispose(){window.removeEventListener(`message`,this._onReceiveMessage),super.dispose()}};function be(e){return x(e)}var xe=x(),Se=be(`HANDLE_ATOM_INSERT`),Ce=x(),we=j(`SANDBOX_EXTENSION_SCRIPT_STATUS`),Te=x(`MESSAGE_SERVICE`),Ee=be(`SETTINGS_PANEL_EVENT`),De=`advanced`,Oe=be(`MODAL_SHOW_EVENT`),ke=be(`MODAL_CLOSE_EVENT`),Ae=be(`MODAL_UPDATE_EVENT`),je=`application_block_inserted`,Me=class{_context;constructor(e){this._context=e}get _container(){return this._context.container}handleBeforeInject(e,t,n){return this._container.getOrCreateInstance(le,()=>new se).add(e,t??0,n)}handleInject(e,t,n){let r=this._container.getOrCreateInstance(Te,()=>new ye),i=n?e.bind(n):e;return r.addListener(je,i,t)}},Ne=class{_factories=new Map;add(e,t){let n=e;return this._factories.set(n,t),{dispose:()=>{this._factories.get(n)===t&&this._factories.delete(n)}}}get(e){return this._factories.get(e)}},Pe=x(`DomComponentRegistry`);function Fe(e,t=Pe){return O.getOrCreateInstance(t,()=>new Ne)}function Ie(e){return typeof e==`function`}function Le(e){return(0,o.isValidElement)(e)}function Re(e){return typeof e==`function`||Le(e)}function ze(e){return typeof e==`object`&&!!e&&`type`in e&&`props`in e&&!Le(e)}function Be(e,t){return(0,o.createElement)(e,t)}function Ve(e){return class extends o.Component{_ref=(0,o.createRef)();_instance;componentDidMount(){this._ref.current&&(this._instance=e(this.props),this._ref.current.appendChild(this._instance.node))}componentDidUpdate(e){this._instance?.update&&this._instance.update(this.props)}componentWillUnmount(){this._instance?.dispose&&this._instance.dispose()}render(){return(0,o.createElement)(`div`,{ref:this._ref})}}}var He=class{_domComponentRegistry;_components=new Map;_domAdapters=new Map;constructor(e){this._domComponentRegistry=e}add(e,t){return this.override(e,()=>t)}addDom(e,t){let n=e;this._domAdapters.delete(n);let r=this._domComponentRegistry.add(e,t);return{dispose:()=>{this._domAdapters.delete(n),r.dispose()}}}override(e,t){let n=e,r=this._components.get(n);r||(r={replacers:[]},this._components.set(n,r));let i=()=>{let e=r.replacers.findIndex(e=>e.replacer===t);e>=0&&(r.replacers.splice(e,1),this._recomputeComponent(n,r))};return r.replacers.push({replacer:t,dispose:i}),this._recomputeComponent(n,r),{dispose:i}}_recomputeComponent(e,t){t.component=t.replacers.reduce((e,{replacer:t})=>t(e),void 0)}get(e){if(Re(e))return e;let t=e,n=this._components.get(t);if(n?.component)return n.component;let r=this._domComponentRegistry.get(e);if(r){let e=this._domAdapters.get(t);return e||(e=Ve(r),this._domAdapters.set(t,e)),e}}_resolveComponentInput(e){if(e==null)return null;if(typeof e==`number`||typeof e==`boolean`||Le(e))return e;if(typeof e==`string`){let t=this.get(e);return Le(t)?t:t?Be(t):e}if(Ie(e))return Be(e);if(ze(e)){let t=this.get(e.type);return Le(t)?t:t?Be(t,e.props):null}return null}getReactNode(e){return this._resolveComponentInput(e)}getReactElement(e){let t=this._resolveComponentInput(e);return Le(t)?t:typeof t==`string`||t==null||typeof t==`boolean`||typeof t==`number`?(0,o.createElement)(o.Fragment,null,t):(0,o.createElement)(o.Fragment,null)}},Ue=x(`ComponentRegistry`);function We(e,t=Ue){return O.getOrCreateInstance(t,()=>new He(Fe(O,Pe)))}function Ge(e,t){return e.getOrCreateInstance(t,()=>new A)}var Ke=class{_context;constructor(e){this._context=e}get _container(){return this._context.container}getNames(){return new Promise(e=>{let t=this._container.addService(xe,{execute:n=>{t.dispose(),e(n.value.map(e=>({name:e.name,html:e.html})))}})})}update(e,t){let n=this._container,r=We(n);return n.addService(xe,{execute:n=>{let i=n.value.find(t=>t.name===e);if(i){let{icon:e,title:n,fallbackTooltip:a,...o}=t;e&&(i.icon=r.getReactNode(e)),n&&(i.title=r.getReactNode(n)),a&&(i.fallbackTooltip=r.getReactNode(a)),Object.assign(i,o)}}})}delete(e){this._container.addService(xe,{execute:t=>{let n=t.value.findIndex(t=>t.name===e);n>=0&&t.value.splice(n,1)}})}insert(e,t){let n=this._container,r=We(n);return n.addService(xe,{execute:n=>{n.value.splice(t??n.value.length,0,{...e,title:r.getReactNode(e.title),icon:r.getReactNode(e.icon),fallbackTooltip:r.getReactNode(e.fallbackTooltip)})}})}handleBeforeInject(e,t,n){return this._container.getOrCreateInstance(ce,()=>new se).add(e,t??0,n)}handleInject(e,t,n){return Ge(this._container,Se).event(t=>{e({name:t.name,className:t.className||``,html:t.html})},t,n)}},qe=class{_messageService;constructor(e){this._messageService=e.container.getOrCreateInstance(Te,()=>new ye)}send(e,t,n){this._messageService.send(e,t,n)}sendAsync(e,t,n=!0){return this._messageService.sendAsync(e,t,n)}addListener(e,t,n){return this._messageService.addListener(e,t,n)}addListenerAsync(e,t,n=0){return this._messageService.addListenerAsync(e,t,n)}onInit(e,t=!0,n=0){return this._messageService.onInit(e,t,n)}isInited(){return this._messageService.isInited()}};function Je(e){return Object.fromEntries(Object.entries(e).filter(([e,t])=>t!==void 0))}var Ye=class{_context;_showModalEmitter;_closeModalEmitter;_updateModalEmitter;constructor(e){this._context=e;let t=e.container;this._showModalEmitter=Ge(t,Oe),this._closeModalEmitter=Ge(t,ke),this._updateModalEmitter=Ge(t,Ae)}get _container(){return this._context.container}show(e){let t=We(this._container),n=`modal_${Date.now()}_${Math.random().toString(36).substr(2,9)}`,r=e.modalProps;return this._showModalEmitter.fire({...e,content:t.getReactNode(e.content),title:t.getReactNode(e.title),id:n,modalProps:r?{...r,footer:t.getReactNode(r.footer),okText:t.getReactNode(r.okText),cancelText:t.getReactNode(r.cancelText),closeIcon:t.getReactNode(r.closeIcon)}:void 0}),n}close(e){this._closeModalEmitter.fire(e)}closeAll(){this._closeModalEmitter.fire()}update(e,t){let n=We(this._container),r=t.modalProps;this._updateModalEmitter.fire(Je({...t,content:n.getReactNode(t.content),title:n.getReactNode(t.title),id:e,modalProps:r?{...r,footer:n.getReactNode(r.footer),okText:n.getReactNode(r.okText),cancelText:n.getReactNode(r.cancelText),closeIcon:n.getReactNode(r.closeIcon)}:void 0}))}},Xe=class{_registration;_loadedDisposable;loaded;ready;_loadedSettled=!1;_readySettled=!1;constructor(e,t){this._registration=e,this._loadedDisposable=t,this.loaded=new Promise((e,t)=>{let n=()=>this._loadedDisposable.dispose(),r=()=>{this._loadedSettled||(this._loadedSettled=!0,this._readySettled&&n(),e())},i=e=>{this._loadedSettled||(this._loadedSettled=!0,this._readySettled&&n(),t(e))};this._resolveLoaded=r,this._rejectLoaded=i}),this.ready=new Promise((e,t)=>{let n=()=>this._loadedDisposable.dispose(),r=()=>{this._readySettled||(this._readySettled=!0,this._loadedSettled&&n(),e())},i=e=>{this._readySettled||(this._readySettled=!0,this._loadedSettled&&n(),t(e))};this._resolveReady=r,this._rejectReady=i})}_resolveLoaded=()=>{};_rejectLoaded=()=>{};_resolveReady=()=>{};_rejectReady=()=>{};resolveLoaded(){this._resolveLoaded()}resolveReady(){this._resolveReady()}rejectLoad(e){this._rejectLoaded(e),this._rejectReady(e)}rejectReady(e){this._rejectReady(e)}dispose(){this._registration.dispose();let e=Error(`Sandbox script registration disposed before completion.`);this.rejectLoad(e),this.rejectReady(e)}},Ze=class{_context;constructor(e){this._context=e}get _container(){return this._context.container}get _messageService(){return this._container.getOrCreateInstance(Te,()=>new ye)}_createScriptHandle(e,t){let n=new Xe(t,this._messageService.addListener(we,t=>{if(t.key===e){if(t.phase===`load`&&t.status===`success`){n.resolveLoaded();return}if(t.phase===`ready`&&t.status===`success`){n.resolveReady();return}if(t.phase===`load`){n.rejectLoad(Error(t.error||`Sandbox script "${e}" failed to load.`));return}n.rejectReady(Error(t.error||`Sandbox script "${e}" failed to initialize.`))}}));return n}registerSandboxCSS(e){return this._container.addService(Ce,{type:`link`,key:e,parent:`head`,attributes:{rel:`stylesheet`,type:`text/css`,href:e}})}registerSandboxCSSCode(e,t){return this._container.addService(Ce,{type:`style`,key:e,parent:`head`,attributes:{type:`text/css`},innerHTML:t})}registerSandboxScript(e){let t=this._container.addService(Ce,{type:`script`,key:e,parent:`head`,attributes:{src:e,type:`text/javascript`}});return this._createScriptHandle(e,t)}registerSandboxScriptCode(e,t){let n=this._container.addService(Ce,{type:`script`,key:e,parent:`head`,attributes:{type:`text/javascript`},innerHTML:t});return this._createScriptHandle(e,n)}};function Qe(){let e=globalThis.crypto;if(e&&typeof e.randomUUID==`function`)return e.randomUUID();if(e&&typeof e.getRandomValues==`function`){let t=new Uint8Array(16);return e.getRandomValues(t),Array.from(t,e=>e.toString(16).padStart(2,`0`)).join(``)}return`nohwcrypto-${Date.now()}`}function $e(){return`__settingsPanel:${Qe()}`}function et(e,t){return{type:e,props:t}}function tt(e){return(0,o.isValidElement)(e)}function nt(e){return typeof e==`object`&&!!e&&`type`in e&&`props`in e&&!tt(e)}function rt(e,t,n){if(t==null||typeof t==`number`||typeof t==`boolean`||typeof t==`string`)return t;if(tt(t)){let r=$e();return n(e.add(r,t)),et(r,{})}if(typeof t==`function`){let r=$e();return n(e.add(r,t)),et(r,{})}if(nt(t)){let r=t.type;if(typeof r==`string`)return t;if(tt(r)||typeof r==`function`){let i=$e();return n(e.add(i,r)),et(i,t.props)}return t}return t}var it={SandboxScriptApi:Ze,ElementsApi:Ke,BlocksApi:Me,MessageService:qe,SettingsPanelApi:class{_context;_panelRegistrationDisposables=[];constructor(e){this._context=e}get _container(){return this._context.container}_clearPanelRegistrations(){for(let e of this._panelRegistrationDisposables)e.dispose();this._panelRegistrationDisposables.length=0}_trackRegistration(e){this._panelRegistrationDisposables.push(e)}showSettingsPanel(e){this._clearPanelRegistrations();let t=We(this._container),n=e=>this._trackRegistration(e),r=rt(t,e.content,n),i=e.advancedTabs?.map(e=>({...e,content:rt(t,e.content,n)})),a=e.instanceKey??Qe();Ge(this._container,Ee).fire({...e,content:r,advancedTabs:i,instanceKey:a,type:De})}closeSettingsPanel(){this._clearPanelRegistrations(),Ge(this._container,Ee).fire(null)}},ModalApi:Ye};function at(e){if(e.meta!==void 0&&e.meta!==null&&typeof e.meta==`object`)return e.meta;let t=e.catalogExtra?.meta;if(typeof t==`object`&&t)return t}function ot(e,t){let n=e.insertFrom??t?.type,r=t?.blockId??(e.id!=null&&e.id!==``?String(e.id):void 0),i=t?.project??(e.project!==void 0&&e.project!==null?String(e.project):void 0);return{type:t?.type??n,insertFrom:n,name:t?.name??e.name,blockId:r,project:i,fragmentRole:e.fragmentRole,id:r,title:e.title??void 0,blockType:e.type,meta:at(e)}}function st(e,t){return t?ot(t,e):{type:e.type,name:e.name,blockId:e.blockId,project:e.project,insertFrom:e.type}}function N(e){return x(e)}var ct;(function(e){e.BEFORE_SAVE_EMAIL=N(),e.ON_SAVEBUTTON_CLICK_ID=N(),e.ON_NEXTBUTTON_CLICK_ID=N(),e.ON_PREVIOUSBUTTON_CLICK_ID=N(),e.ON_MODEL_CHANGE=N(),e.WILL_EMAIL_INIT_ID=N(),e.ON_EMAIL_INIT_ID=N(),e.ON_BLOCK_INIT_ID=N(),e.ON_CONTENT_CHANGED_ID=N(),e.ON_PREHEADER_CHANGED_ID=N(),e.ON_SUBJECT_CHANGED_ID=N(),e.ON_EMAIL_CHANGED_ID=N(),e.ON_BLOCK_CHANGED_ID=N(),e.ON_CHUNKS_LOADED=N(),e.ON_SEND_TESTEMAIL_ID=N(),e.ON_SEND_LIVEPREVIEW_ID=N(),e.ON_SHARE_ID=N(),e.ON_SHOW_PREVIEW_ID=N(),e.ON_EMAIL_CLONE_ID=N(),e.ON_SEND_EMAIL_MODAL_ID=N(),e.ON_NOTIFICATION=N(),e.READ_LOCALE=N(),e.ON_TRANSLATE_ID=N(),e.ON_CODE_VALIDATE_ID=N(),e.UPLOAD_EVENT_ID=N(),e.PROXY_URL_EVENT_ID=N(),e.FILE_PROXY_EVENT_ID=N(),e.ON_LIMIT_ID=N(),e.ON_GLOBAL_BLOCK_PROPAGATE_UPDATE_ID=N(),e.ON_BROWSER_EXTENSION_DETECTED_ID=N()})(ct||={});function lt(e,t){return e.getOrCreateInstance(t,()=>new A).event}function ut(e,t){return e.getOrCreateInstance(t,()=>new A)}var dt=`Not implemented in plugin`,ft=x(),pt=x(),mt=x(),ht=x(),gt=x(),_t=x(),vt=x(),yt=x(`PluginCollection`),bt=N(`APP_LOAD_EVENT`),xt=N(`CONFIG_CHANGED_EVENT`),P=function(e){return e.Json=`application/json`,e.FormData=`multipart/form-data`,e.UrlEncoded=`application/x-www-form-urlencoded`,e.Text=`text/plain`,e}({}),St=class{baseUrl=`https://api.emailmaker.ru/wp-json`;securityData=null;securityWorker;abortControllers=new Map;customFetch=(...e)=>fetch(...e);baseApiParams={credentials:`same-origin`,headers:{},redirect:`follow`,referrerPolicy:`no-referrer`};constructor(e={}){Object.assign(this,e)}setSecurityData=e=>{this.securityData=e};encodeQueryParam(e,t){return`${encodeURIComponent(e)}=${encodeURIComponent(typeof t==`number`?t:`${t}`)}`}addQueryParam(e,t){return this.encodeQueryParam(t,e[t])}addArrayQueryParam(e,t){return e[t].map(e=>this.encodeQueryParam(t,e)).join(`&`)}toQueryString(e){let t=e||{};return Object.keys(t).filter(e=>t[e]!==void 0).map(e=>Array.isArray(t[e])?this.addArrayQueryParam(t,e):this.addQueryParam(t,e)).join(`&`)}addQueryParams(e){let t=this.toQueryString(e);return t?`?${t}`:``}contentFormatters={"application/json":e=>e!==null&&(typeof e==`object`||typeof e==`string`)?JSON.stringify(e):e,"text/plain":e=>e!==null&&typeof e!=`string`?JSON.stringify(e):e,"multipart/form-data":e=>Object.keys(e||{}).reduce((t,n)=>{let r=e[n];return t.append(n,r instanceof Blob?r:typeof r==`object`&&r?JSON.stringify(r):`${r}`),t},new FormData),"application/x-www-form-urlencoded":e=>this.toQueryString(e)};mergeRequestParams(e,t){return{...this.baseApiParams,...e,...t||{},headers:{...this.baseApiParams.headers||{},...e.headers||{},...t&&t.headers||{}}}}createAbortSignal=e=>{if(this.abortControllers.has(e)){let t=this.abortControllers.get(e);return t?t.signal:void 0}let t=new AbortController;return this.abortControllers.set(e,t),t.signal};abortRequest=e=>{let t=this.abortControllers.get(e);t&&(t.abort(),this.abortControllers.delete(e))};async request({body:e,secure:t,path:n,type:r,query:i,format:a,baseUrl:o,cancelToken:s,extraQuery:c,proxyHandler:l,...u}){let d=(typeof t==`boolean`?t:this.baseApiParams.secure)&&this.securityWorker&&await this.securityWorker(this.securityData)||{},f=this.mergeRequestParams(u,d);c&&(i=i?{...i,...c}:c);let p=i&&this.toQueryString(i),m=this.contentFormatters[r||`application/json`],h=a||f.format,g=`${o||this.baseUrl||``}${n}${p?`?${p}`:``}`,_=l?l(g,{body:e,secure:t,path:n,type:r,query:i,format:a,baseUrl:o,cancelToken:s,extraQuery:c,proxyHandler:l,...u}):g,v=new Request(_,{...f,headers:{...f.headers||{},...r&&r!==`multipart/form-data`?{"Content-Type":r}:{}},signal:(s?this.createAbortSignal(s):f.signal)||null,body:e==null?null:m(e)});return this.customFetch(v).then(async e=>{let t=e;t.data=null,t.error=null,t.meta={request:v,response:t};let n=h?await e[h]().then(e=>(t.ok?t.data=e:t.error={data:e},t)).catch(e=>(t.error=e,t)):t;return s&&this.abortControllers.delete(s),n})}},Ct=class extends St{limits={get_limits:(e,t={})=>this.request({path:`/limits/v1`,method:`GET`,query:e,...t}),stats_list:(e={})=>this.request({path:`/limits/v1/stats`,method:`GET`,...e}),stats_detail:({type:e,...t},n={})=>this.request({path:`/limits/v1/stats/${e}`,method:`GET`,...n}),warnings_list:(e={})=>this.request({path:`/limits/v1/warnings`,method:`GET`,...e}),reset_to_subscription_base_create:(e={})=>this.request({path:`/limits/v1/reset-to-subscription-base`,method:`POST`,...e}),update_create:(e={})=>this.request({path:`/limits/v1/update`,method:`POST`,...e})};unisenderProxy={get_unisender_proxy:(e,t={})=>this.request({path:`/unisender-proxy/v1`,method:`GET`,query:e,...t}),create_message_create:(e={})=>this.request({path:`/unisender-proxy/v1/create-message`,method:`POST`,...e})};bdpwr={get_bdpwr:(e,t={})=>this.request({path:`/bdpwr/v1`,method:`GET`,query:e,...t}),reset_password_create:(e={})=>this.request({path:`/bdpwr/v1/reset-password`,method:`POST`,...e}),set_password_create:(e={})=>this.request({path:`/bdpwr/v1/set-password`,method:`POST`,...e}),validate_code_create:(e={})=>this.request({path:`/bdpwr/v1/validate-code`,method:`POST`,...e})};corsProxy={get_cors_proxy:(e,t={})=>this.request({path:`/cors-proxy/V1`,method:`GET`,query:e,...t}),get_list:(e,t={})=>this.request({path:`/cors-proxy/V1/get`,method:`GET`,query:e,...t})};saveFile={get_save_file:(e,t={})=>this.request({path:`/save-file/v1`,method:`GET`,query:e,...t}),ai_create:(e,t={})=>this.request({path:`/save-file/v1/ai`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t}),ai_status_list:(e,t={})=>this.request({path:`/save-file/v1/ai-status`,method:`GET`,query:e,...t}),test_list:(e={})=>this.request({path:`/save-file/v1/test`,method:`GET`,...e}),upload_create:(e,t={})=>this.request({path:`/save-file/v1/upload`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),shortener_create:(e,t={})=>this.request({path:`/save-file/v1/shortener`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),get_link_create:(e,t={})=>this.request({path:`/save-file/v1/get-link`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t}),send_email_create:(e,t={})=>this.request({path:`/save-file/v1/send-email`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t})};aiGenerator={get_ai_generator:(e,t={})=>this.request({path:`/ai-generator/v1`,method:`GET`,query:e,...t}),ai_create:(e,t={})=>this.request({path:`/ai-generator/v1/ai`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t}),ai_status_list:(e,t={})=>this.request({path:`/ai-generator/v1/ai-status`,method:`GET`,query:e,...t}),test_list:(e={})=>this.request({path:`/ai-generator/v1/test`,method:`GET`,...e}),clear_history_list:(e,t={})=>this.request({path:`/ai-generator/v1/clear-history`,method:`GET`,query:e,...t}),save_task_create:(e,t={})=>this.request({path:`/ai-generator/v1/save-task`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t}),identificate_blocks_create:(e,t={})=>this.request({path:`/ai-generator/v1/identificate_blocks`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t}),create_subject_create:(e,t={})=>this.request({path:`/ai-generator/v1/create_subject`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t}),ai_subj2_create:(e={})=>this.request({path:`/ai-generator/v1/ai-subj-2`,method:`POST`,...e}),ai_chain_create:(e={})=>this.request({path:`/ai-generator/v1/ai-chain`,method:`POST`,...e})};auth={get_auth:(e,t={})=>this.request({path:`/auth/v1`,method:`GET`,query:e,...t}),users_register_create:(e,t={})=>this.request({path:`/auth/v1/users/register`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t}),check_auth_list:(e={})=>this.request({path:`/auth/v1/check_auth`,method:`GET`,...e}),yandex_callback_create:(e,t={})=>this.request({path:`/auth/v1/yandex/callback`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t}),google_callback_create:(e,t={})=>this.request({path:`/auth/v1/google/callback`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t}),elama_callback_list:(e,t={})=>this.request({path:`/auth/v1/elama/callback`,method:`GET`,query:e,...t}),elama_callback_create:(e,t={})=>this.request({path:`/auth/v1/elama/callback`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t}),elama_refresh_token_list:(e,t={})=>this.request({path:`/auth/v1/elama/refresh_token`,method:`GET`,query:e,...t}),elama_refresh_token_create:(e,t={})=>this.request({path:`/auth/v1/elama/refresh_token`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t})};inbox={get_inbox:(e,t={})=>this.request({path:`/inbox/v1`,method:`GET`,query:e,...t}),check_inbox_create:(e,t={})=>this.request({path:`/inbox/v1/check-inbox`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t})};promo={get_promo:(e,t={})=>this.request({path:`/promo/v1`,method:`GET`,query:e,...t}),set_code_create:(e,t={})=>this.request({path:`/promo/v1/set_code`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t}),get_code_info_list:(e,t={})=>this.request({path:`/promo/v1/get_code_info`,method:`GET`,query:e,...t}),get_referral_data_list:(e={})=>this.request({path:`/promo/v1/get_referral_data`,method:`GET`,...e})};optimization={get_optimization:(e,t={})=>this.request({path:`/optimization/v1`,method:`GET`,query:e,...t}),validate_images_create:(e,t={})=>this.request({path:`/optimization/v1/validate/images`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),validate_links_create:(e,t={})=>this.request({path:`/optimization/v1/validate/links`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),validate_spamassasin_create:(e,t={})=>this.request({path:`/optimization/v1/validate/spamassasin`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t})};previewSettings={get_preview_settings:(e,t={})=>this.request({path:`/preview_settings/v1`,method:`GET`,query:e,...t}),preview_emails_detail:({id:e,...t},n={})=>this.request({path:`/preview_settings/v1/preview/emails/${e}`,method:`GET`,...n}),preview_emails_partial_update:({id:e,...t},n,r={})=>this.request({path:`/preview_settings/v1/preview/emails/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,...r}),projects_temporary_user_create:({projectId:e,...t},n,r={})=>this.request({path:`/preview_settings/v1/projects/${e}/temporary_user`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,...r}),projects_temporary_user_delete:({projectId:e,...t},n={})=>this.request({path:`/preview_settings/v1/projects/${e}/temporary_user`,method:`DELETE`,...n}),emails_temporary_access_list:({emailId:e,...t},n={})=>this.request({path:`/preview_settings/v1/emails/${e}/temporary_access`,method:`GET`,...n}),emails_temporary_access_create:({emailId:e,...t},n,r={})=>this.request({path:`/preview_settings/v1/emails/${e}/temporary_access`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,...r}),emails_temporary_access_delete:({emailId:e,targetUserId:t,...n},r={})=>this.request({path:`/preview_settings/v1/emails/${e}/temporary_access/${t}`,method:`DELETE`,...r})};emFiles={get_em_files:(e,t={})=>this.request({path:`/em-files/v1`,method:`GET`,query:e,...t}),folders_list:(e,t={})=>this.request({path:`/em-files/v1/folders`,method:`GET`,query:e,format:`json`,...t}),folders_create:(e,t={})=>this.request({path:`/em-files/v1/folders`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),folders_delete:(e,t={})=>this.request({path:`/em-files/v1/folders`,method:`DELETE`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),empty_trash_create:(e,t={})=>this.request({path:`/em-files/v1/empty-trash`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t}),files_list:(e,t={})=>this.request({path:`/em-files/v1/files`,method:`GET`,query:e,format:`json`,...t}),files_create:(e,t={})=>this.request({path:`/em-files/v1/files`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),files_delete:(e,t={})=>this.request({path:`/em-files/v1/files`,method:`DELETE`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),files_partial_update:(e,t={})=>this.request({path:`/em-files/v1/files`,method:`PATCH`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),files_upload_by_url_create:(e,t={})=>this.request({path:`/em-files/v1/files/upload-by-url`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),files_rename_partial_update:(e,t={})=>this.request({path:`/em-files/v1/files/rename`,method:`PATCH`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),items_move_partial_update:(e,t={})=>this.request({path:`/em-files/v1/items/move`,method:`PATCH`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),file_dimensions_list:(e,t={})=>this.request({path:`/em-files/v1/file/dimensions`,method:`GET`,query:e,format:`json`,...t}),cache_clear_create:(e,t={})=>this.request({path:`/em-files/v1/cache/clear`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t})};projects={get_projects:(e,t={})=>this.request({path:`/projects/v1`,method:`GET`,query:e,...t}),flush_email_template_cache_create:(e={})=>this.request({path:`/projects/v1/flush-email-template-cache`,method:`POST`,...e}),list_advanced_list:(e,t={})=>this.request({path:`/projects/v1/list_advanced`,method:`GET`,query:e,...t}),top_used_list:(e,t={})=>this.request({path:`/projects/v1/top-used`,method:`GET`,query:e,...t}),frequent_list:(e,t={})=>this.request({path:`/projects/v1/frequent`,method:`GET`,query:e,...t}),members_bulk_create:(e,t={})=>this.request({path:`/projects/v1/members/bulk`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t}),flush_project_cache_create:(e,t={})=>this.request({path:`/projects/v1/flush-project-cache`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t}),profile_options_list:(e={})=>this.request({path:`/projects/v1/profile/options`,method:`GET`,...e}),profile_detail:({projectId:e,...t},n={})=>this.request({path:`/projects/v1/profile/${e}`,method:`GET`,...n}),profile_partial_update:({projectId:e,...t},n={})=>this.request({path:`/projects/v1/profile/${e}`,method:`PATCH`,...n}),storage_detail:({projectId:e,...t},n={})=>this.request({path:`/projects/v1/storage/${e}`,method:`GET`,...n}),storage_partial_update:({projectId:e,...t},n={})=>this.request({path:`/projects/v1/storage/${e}`,method:`PATCH`,...n}),storage_test_create:({projectId:e,...t},n={})=>this.request({path:`/projects/v1/storage/${e}/test`,method:`POST`,...n}),integrations_detail:({projectId:e,...t},n={})=>this.request({path:`/projects/v1/integrations/${e}`,method:`GET`,query:t,...n}),integrations_partial_update:({projectId:e,...t},n,r={})=>this.request({path:`/projects/v1/integrations/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,...r}),members_detail:({projectId:e,...t},n={})=>this.request({path:`/projects/v1/members/${e}`,method:`GET`,...n}),styles_detail:({projectId:e,...t},n={})=>this.request({path:`/projects/v1/styles/${e}`,method:`GET`,...n}),styles_partial_update:({projectId:e,...t},n={})=>this.request({path:`/projects/v1/styles/${e}`,method:`PATCH`,...n}),social_detail:({projectId:e,...t},n={})=>this.request({path:`/projects/v1/social/${e}`,method:`GET`,...n}),social_partial_update:({projectId:e,...t},n={})=>this.request({path:`/projects/v1/social/${e}`,method:`PATCH`,...n}),developer_credentials_detail:({projectId:e,...t},n={})=>this.request({path:`/projects/v1/developer-credentials/${e}`,method:`GET`,...n}),developer_credentials_partial_update:({projectId:e,...t},n={})=>this.request({path:`/projects/v1/developer-credentials/${e}`,method:`PATCH`,...n}),developer_credentials_rotate_secret_create:({projectId:e,...t},n={})=>this.request({path:`/projects/v1/developer-credentials/${e}/rotate-secret`,method:`POST`,...n}),developer_credentials_verify_secret_create:({projectId:e,...t},n={})=>this.request({path:`/projects/v1/developer-credentials/${e}/verify-secret`,method:`POST`,...n}),developer_kit_postman_collection_list:(e={})=>this.request({path:`/projects/v1/developer-kit/postman-collection`,method:`GET`,...e}),usage_detail:({projectId:e,...t},n={})=>this.request({path:`/projects/v1/usage/${e}`,method:`GET`,...n}),billing_context_detail:({projectId:e,...t},n={})=>this.request({path:`/projects/v1/billing-context/${e}`,method:`GET`,...n}),settings_summary_detail:({projectId:e,...t},n={})=>this.request({path:`/projects/v1/settings-summary/${e}`,method:`GET`,...n})};wp={get_wp:(e,t={})=>this.request({path:`/wp/v2`,method:`GET`,query:e,...t}),confirmation_list:(e,t={})=>this.request({path:`/wp/v2/confirmation`,method:`GET`,query:e,...t}),users_register_create:(e={})=>this.request({path:`/wp/v2/users/register`,method:`POST`,...e}),users_lostpassword_create:(e={})=>this.request({path:`/wp/v2/users/lostpassword`,method:`POST`,...e}),users_lost_password_create:(e={})=>this.request({path:`/wp/v2/users/lost-password`,method:`POST`,...e}),posts_list:(e,t={})=>this.request({path:`/wp/v2/posts`,method:`GET`,query:e,format:`json`,...t}),posts_create:(e,t={})=>this.request({path:`/wp/v2/posts`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),posts_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/posts/${e}`,method:`GET`,query:t,format:`json`,...n}),posts_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/posts/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),posts_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/posts/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),posts_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/posts/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),posts_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/posts/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),posts_revisions_list:({parent:e,...t},n={})=>this.request({path:`/wp/v2/posts/${e}/revisions`,method:`GET`,query:t,format:`json`,...n}),posts_revisions_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/posts/${e}/revisions/${t}`,method:`GET`,query:n,format:`json`,...r}),posts_revisions_delete:({parent:e,id:t,...n},r,i={})=>this.request({path:`/wp/v2/posts/${e}/revisions/${t}`,method:`DELETE`,body:r,type:`application/x-www-form-urlencoded`,format:`json`,...i}),posts_autosaves_list:({id:e,...t},n={})=>this.request({path:`/wp/v2/posts/${e}/autosaves`,method:`GET`,query:t,format:`json`,...n}),posts_autosaves_create:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/posts/${e}/autosaves`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),posts_autosaves_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/posts/${e}/autosaves/${t}`,method:`GET`,query:n,format:`json`,...r}),pages_list:(e,t={})=>this.request({path:`/wp/v2/pages`,method:`GET`,query:e,format:`json`,...t}),pages_create:(e,t={})=>this.request({path:`/wp/v2/pages`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),pages_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/pages/${e}`,method:`GET`,query:t,format:`json`,...n}),pages_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/pages/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),pages_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/pages/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),pages_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/pages/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),pages_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/pages/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),pages_revisions_list:({parent:e,...t},n={})=>this.request({path:`/wp/v2/pages/${e}/revisions`,method:`GET`,query:t,format:`json`,...n}),pages_revisions_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/pages/${e}/revisions/${t}`,method:`GET`,query:n,format:`json`,...r}),pages_revisions_delete:({parent:e,id:t,...n},r,i={})=>this.request({path:`/wp/v2/pages/${e}/revisions/${t}`,method:`DELETE`,body:r,type:`application/x-www-form-urlencoded`,format:`json`,...i}),pages_autosaves_list:({id:e,...t},n={})=>this.request({path:`/wp/v2/pages/${e}/autosaves`,method:`GET`,query:t,format:`json`,...n}),pages_autosaves_create:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/pages/${e}/autosaves`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),pages_autosaves_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/pages/${e}/autosaves/${t}`,method:`GET`,query:n,format:`json`,...r}),media_list:(e,t={})=>this.request({path:`/wp/v2/media`,method:`GET`,query:e,format:`json`,...t}),media_create:(e,t={})=>this.request({path:`/wp/v2/media`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),media_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/media/${e}`,method:`GET`,query:t,format:`json`,...n}),media_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/media/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),media_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/media/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),media_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/media/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),media_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/media/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),media_post_process_create:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/media/${e}/post-process`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,...r}),media_edit_create:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/media/${e}/edit`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,...r}),menu_items_list:(e,t={})=>this.request({path:`/wp/v2/menu-items`,method:`GET`,query:e,format:`json`,...t}),menu_items_create:(e,t={})=>this.request({path:`/wp/v2/menu-items`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),menu_items_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/menu-items/${e}`,method:`GET`,query:t,format:`json`,...n}),menu_items_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/menu-items/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),menu_items_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/menu-items/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),menu_items_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/menu-items/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),menu_items_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/menu-items/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),menu_items_autosaves_list:({id:e,...t},n={})=>this.request({path:`/wp/v2/menu-items/${e}/autosaves`,method:`GET`,query:t,format:`json`,...n}),menu_items_autosaves_create:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/menu-items/${e}/autosaves`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),menu_items_autosaves_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/menu-items/${e}/autosaves/${t}`,method:`GET`,query:n,format:`json`,...r}),blocks_list:(e,t={})=>this.request({path:`/wp/v2/blocks`,method:`GET`,query:e,format:`json`,...t}),blocks_create:(e,t={})=>this.request({path:`/wp/v2/blocks`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),blocks_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/blocks/${e}`,method:`GET`,query:t,format:`json`,...n}),blocks_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/blocks/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),blocks_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/blocks/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),blocks_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/blocks/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),blocks_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/blocks/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),blocks_revisions_list:({parent:e,...t},n={})=>this.request({path:`/wp/v2/blocks/${e}/revisions`,method:`GET`,query:t,format:`json`,...n}),blocks_revisions_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/blocks/${e}/revisions/${t}`,method:`GET`,query:n,format:`json`,...r}),blocks_revisions_delete:({parent:e,id:t,...n},r,i={})=>this.request({path:`/wp/v2/blocks/${e}/revisions/${t}`,method:`DELETE`,body:r,type:`application/x-www-form-urlencoded`,format:`json`,...i}),blocks_autosaves_list:({id:e,...t},n={})=>this.request({path:`/wp/v2/blocks/${e}/autosaves`,method:`GET`,query:t,format:`json`,...n}),blocks_autosaves_create:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/blocks/${e}/autosaves`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),blocks_autosaves_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/blocks/${e}/autosaves/${t}`,method:`GET`,query:n,format:`json`,...r}),templates_revisions_list:({parent:e,...t},n={})=>this.request({path:`/wp/v2/templates/${e}/revisions`,method:`GET`,query:t,format:`json`,...n}),templates_revisions_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/templates/${e}/revisions/${t}`,method:`GET`,query:n,format:`json`,...r}),templates_revisions_delete:({parent:e,id:t,...n},r,i={})=>this.request({path:`/wp/v2/templates/${e}/revisions/${t}`,method:`DELETE`,body:r,type:`application/x-www-form-urlencoded`,format:`json`,...i}),templates_autosaves_list:({id:e,...t},n={})=>this.request({path:`/wp/v2/templates/${e}/autosaves`,method:`GET`,query:t,format:`json`,...n}),templates_autosaves_create:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/templates/${e}/autosaves`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),templates_autosaves_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/templates/${e}/autosaves/${t}`,method:`GET`,query:n,format:`json`,...r}),templates_list:(e,t={})=>this.request({path:`/wp/v2/templates`,method:`GET`,query:e,format:`json`,...t}),templates_create:(e,t={})=>this.request({path:`/wp/v2/templates`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),templates_lookup_list:(e,t={})=>this.request({path:`/wp/v2/templates/lookup`,method:`GET`,query:e,...t}),templates_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/templates/${e}`,method:`GET`,query:t,format:`json`,...n}),templates_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/templates/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),templates_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/templates/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),templates_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/templates/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),templates_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/templates/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),template_parts_revisions_list:({parent:e,...t},n={})=>this.request({path:`/wp/v2/template-parts/${e}/revisions`,method:`GET`,query:t,format:`json`,...n}),template_parts_revisions_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/template-parts/${e}/revisions/${t}`,method:`GET`,query:n,format:`json`,...r}),template_parts_revisions_delete:({parent:e,id:t,...n},r,i={})=>this.request({path:`/wp/v2/template-parts/${e}/revisions/${t}`,method:`DELETE`,body:r,type:`application/x-www-form-urlencoded`,format:`json`,...i}),template_parts_autosaves_list:({id:e,...t},n={})=>this.request({path:`/wp/v2/template-parts/${e}/autosaves`,method:`GET`,query:t,format:`json`,...n}),template_parts_autosaves_create:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/template-parts/${e}/autosaves`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),template_parts_autosaves_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/template-parts/${e}/autosaves/${t}`,method:`GET`,query:n,format:`json`,...r}),template_parts_list:(e,t={})=>this.request({path:`/wp/v2/template-parts`,method:`GET`,query:e,format:`json`,...t}),template_parts_create:(e,t={})=>this.request({path:`/wp/v2/template-parts`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),template_parts_lookup_list:(e,t={})=>this.request({path:`/wp/v2/template-parts/lookup`,method:`GET`,query:e,...t}),template_parts_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/template-parts/${e}`,method:`GET`,query:t,format:`json`,...n}),template_parts_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/template-parts/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),template_parts_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/template-parts/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),template_parts_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/template-parts/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),template_parts_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/template-parts/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),global_styles_revisions_list:({parent:e,...t},n={})=>this.request({path:`/wp/v2/global-styles/${e}/revisions`,method:`GET`,query:t,format:`json`,...n}),global_styles_revisions_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/global-styles/${e}/revisions/${t}`,method:`GET`,query:n,format:`json`,...r}),global_styles_themes_variations_list:({stylesheet:e,...t},n={})=>this.request({path:`/wp/v2/global-styles/themes/${e}/variations`,method:`GET`,...n}),global_styles_themes_detail:({stylesheet:e,...t},n={})=>this.request({path:`/wp/v2/global-styles/themes/${e}`,method:`GET`,...n}),global_styles_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/global-styles/${e}`,method:`GET`,format:`json`,...n}),global_styles_create:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/global-styles/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),global_styles_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/global-styles/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),global_styles_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/global-styles/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),navigation_list:(e,t={})=>this.request({path:`/wp/v2/navigation`,method:`GET`,query:e,format:`json`,...t}),navigation_create:(e,t={})=>this.request({path:`/wp/v2/navigation`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),navigation_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/navigation/${e}`,method:`GET`,query:t,format:`json`,...n}),navigation_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/navigation/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),navigation_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/navigation/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),navigation_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/navigation/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),navigation_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/navigation/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),navigation_revisions_list:({parent:e,...t},n={})=>this.request({path:`/wp/v2/navigation/${e}/revisions`,method:`GET`,query:t,format:`json`,...n}),navigation_revisions_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/navigation/${e}/revisions/${t}`,method:`GET`,query:n,format:`json`,...r}),navigation_revisions_delete:({parent:e,id:t,...n},r,i={})=>this.request({path:`/wp/v2/navigation/${e}/revisions/${t}`,method:`DELETE`,body:r,type:`application/x-www-form-urlencoded`,format:`json`,...i}),navigation_autosaves_list:({id:e,...t},n={})=>this.request({path:`/wp/v2/navigation/${e}/autosaves`,method:`GET`,query:t,format:`json`,...n}),navigation_autosaves_create:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/navigation/${e}/autosaves`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),navigation_autosaves_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/navigation/${e}/autosaves/${t}`,method:`GET`,query:n,format:`json`,...r}),font_families_list:(e,t={})=>this.request({path:`/wp/v2/font-families`,method:`GET`,query:e,format:`json`,...t}),font_families_create:(e,t={})=>this.request({path:`/wp/v2/font-families`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),font_families_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/font-families/${e}`,method:`GET`,query:t,format:`json`,...n}),font_families_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/font-families/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),font_families_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/font-families/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),font_families_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/font-families/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),font_families_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/font-families/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),font_families_font_faces_list:({fontFamilyId:e,...t},n={})=>this.request({path:`/wp/v2/font-families/${e}/font-faces`,method:`GET`,query:t,format:`json`,...n}),font_families_font_faces_create:({fontFamilyId:e,...t},n,r={})=>this.request({path:`/wp/v2/font-families/${e}/font-faces`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),font_families_font_faces_detail:({fontFamilyId:e,id:t,...n},r={})=>this.request({path:`/wp/v2/font-families/${e}/font-faces/${t}`,method:`GET`,query:n,format:`json`,...r}),font_families_font_faces_delete:({fontFamilyId:e,id:t,...n},r,i={})=>this.request({path:`/wp/v2/font-families/${e}/font-faces/${t}`,method:`DELETE`,body:r,type:`application/x-www-form-urlencoded`,format:`json`,...i}),eblock_list:(e,t={})=>this.request({path:`/wp/v2/eblock`,method:`GET`,query:e,format:`json`,...t}),eblock_create:(e,t={})=>this.request({path:`/wp/v2/eblock`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),eblock_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/eblock/${e}`,method:`GET`,query:t,format:`json`,...n}),eblock_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/eblock/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),eblock_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/eblock/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),eblock_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/eblock/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),eblock_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/eblock/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),eblock_revisions_list:({parent:e,...t},n={})=>this.request({path:`/wp/v2/eblock/${e}/revisions`,method:`GET`,query:t,format:`json`,...n}),eblock_revisions_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/eblock/${e}/revisions/${t}`,method:`GET`,query:n,format:`json`,...r}),eblock_revisions_delete:({parent:e,id:t,...n},r,i={})=>this.request({path:`/wp/v2/eblock/${e}/revisions/${t}`,method:`DELETE`,body:r,type:`application/x-www-form-urlencoded`,format:`json`,...i}),eblock_autosaves_list:({id:e,...t},n={})=>this.request({path:`/wp/v2/eblock/${e}/autosaves`,method:`GET`,query:t,format:`json`,...n}),eblock_autosaves_create:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/eblock/${e}/autosaves`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),eblock_autosaves_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/eblock/${e}/autosaves/${t}`,method:`GET`,query:n,format:`json`,...r}),email_list:(e,t={})=>this.request({path:`/wp/v2/email`,method:`GET`,query:e,format:`json`,...t}),email_create:(e,t={})=>this.request({path:`/wp/v2/email`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),email_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/email/${e}`,method:`GET`,query:t,format:`json`,...n}),email_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/email/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),email_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/email/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),email_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/email/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),email_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/email/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),email_revisions_list:({parent:e,...t},n={})=>this.request({path:`/wp/v2/email/${e}/revisions`,method:`GET`,query:t,format:`json`,...n}),email_revisions_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/email/${e}/revisions/${t}`,method:`GET`,query:n,format:`json`,...r}),email_revisions_delete:({parent:e,id:t,...n},r,i={})=>this.request({path:`/wp/v2/email/${e}/revisions/${t}`,method:`DELETE`,body:r,type:`application/x-www-form-urlencoded`,format:`json`,...i}),email_autosaves_list:({id:e,...t},n={})=>this.request({path:`/wp/v2/email/${e}/autosaves`,method:`GET`,query:t,format:`json`,...n}),email_autosaves_create:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/email/${e}/autosaves`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),email_autosaves_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/email/${e}/autosaves/${t}`,method:`GET`,query:n,format:`json`,...r}),notification_list:(e,t={})=>this.request({path:`/wp/v2/notification`,method:`GET`,query:e,format:`json`,...t}),notification_create:(e,t={})=>this.request({path:`/wp/v2/notification`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),notification_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/notification/${e}`,method:`GET`,query:t,format:`json`,...n}),notification_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/notification/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),notification_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/notification/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),notification_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/notification/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),notification_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/notification/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),notification_autosaves_list:({id:e,...t},n={})=>this.request({path:`/wp/v2/notification/${e}/autosaves`,method:`GET`,query:t,format:`json`,...n}),notification_autosaves_create:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/notification/${e}/autosaves`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),notification_autosaves_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/notification/${e}/autosaves/${t}`,method:`GET`,query:n,format:`json`,...r}),payment_list:(e,t={})=>this.request({path:`/wp/v2/payment`,method:`GET`,query:e,format:`json`,...t}),payment_create:(e,t={})=>this.request({path:`/wp/v2/payment`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),payment_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/payment/${e}`,method:`GET`,query:t,format:`json`,...n}),payment_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/payment/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),payment_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/payment/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),payment_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/payment/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),payment_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/payment/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),project_list:(e,t={})=>this.request({path:`/wp/v2/project`,method:`GET`,query:e,format:`json`,...t}),project_create:(e,t={})=>this.request({path:`/wp/v2/project`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),project_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/project/${e}`,method:`GET`,query:t,format:`json`,...n}),project_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/project/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),project_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/project/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),project_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/project/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),project_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/project/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),project_revisions_list:({parent:e,...t},n={})=>this.request({path:`/wp/v2/project/${e}/revisions`,method:`GET`,query:t,format:`json`,...n}),project_revisions_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/project/${e}/revisions/${t}`,method:`GET`,query:n,format:`json`,...r}),project_revisions_delete:({parent:e,id:t,...n},r,i={})=>this.request({path:`/wp/v2/project/${e}/revisions/${t}`,method:`DELETE`,body:r,type:`application/x-www-form-urlencoded`,format:`json`,...i}),subscription_list:(e,t={})=>this.request({path:`/wp/v2/subscription`,method:`GET`,query:e,format:`json`,...t}),subscription_create:(e,t={})=>this.request({path:`/wp/v2/subscription`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),subscription_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/subscription/${e}`,method:`GET`,query:t,format:`json`,...n}),subscription_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/subscription/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),subscription_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/subscription/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),subscription_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/subscription/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),subscription_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/subscription/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),user_promocodes_list:(e,t={})=>this.request({path:`/wp/v2/user_promocodes`,method:`GET`,query:e,format:`json`,...t}),user_promocodes_create:(e,t={})=>this.request({path:`/wp/v2/user_promocodes`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),user_promocodes_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/user_promocodes/${e}`,method:`GET`,query:t,format:`json`,...n}),user_promocodes_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/user_promocodes/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),user_promocodes_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/user_promocodes/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),user_promocodes_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/user_promocodes/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),user_promocodes_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/user_promocodes/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),types_list:(e,t={})=>this.request({path:`/wp/v2/types`,method:`GET`,query:e,format:`json`,...t}),types_detail:({type:e,...t},n={})=>this.request({path:`/wp/v2/types/${e}`,method:`GET`,query:t,format:`json`,...n}),statuses_list:(e,t={})=>this.request({path:`/wp/v2/statuses`,method:`GET`,query:e,format:`json`,...t}),statuses_detail:({status:e,...t},n={})=>this.request({path:`/wp/v2/statuses/${e}`,method:`GET`,query:t,format:`json`,...n}),taxonomies_list:(e,t={})=>this.request({path:`/wp/v2/taxonomies`,method:`GET`,query:e,format:`json`,...t}),taxonomies_detail:({taxonomy:e,...t},n={})=>this.request({path:`/wp/v2/taxonomies/${e}`,method:`GET`,query:t,format:`json`,...n}),categories_list:(e,t={})=>this.request({path:`/wp/v2/categories`,method:`GET`,query:e,format:`json`,...t}),categories_create:(e,t={})=>this.request({path:`/wp/v2/categories`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),categories_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/categories/${e}`,method:`GET`,query:t,format:`json`,...n}),categories_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/categories/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),categories_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/categories/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),categories_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/categories/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),categories_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/categories/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),tags_list:(e,t={})=>this.request({path:`/wp/v2/tags`,method:`GET`,query:e,format:`json`,...t}),tags_create:(e,t={})=>this.request({path:`/wp/v2/tags`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),tags_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/tags/${e}`,method:`GET`,query:t,format:`json`,...n}),tags_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/tags/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),tags_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/tags/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),tags_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/tags/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),tags_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/tags/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),menus_list:(e,t={})=>this.request({path:`/wp/v2/menus`,method:`GET`,query:e,format:`json`,...t}),menus_create:(e,t={})=>this.request({path:`/wp/v2/menus`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),menus_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/menus/${e}`,method:`GET`,query:t,format:`json`,...n}),menus_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/menus/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),menus_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/menus/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),menus_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/menus/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),menus_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/menus/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),wp_pattern_category_list:(e,t={})=>this.request({path:`/wp/v2/wp_pattern_category`,method:`GET`,query:e,format:`json`,...t}),wp_pattern_category_create:(e,t={})=>this.request({path:`/wp/v2/wp_pattern_category`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),wp_pattern_category_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/wp_pattern_category/${e}`,method:`GET`,query:t,format:`json`,...n}),wp_pattern_category_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/wp_pattern_category/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),wp_pattern_category_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/wp_pattern_category/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),wp_pattern_category_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/wp_pattern_category/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),wp_pattern_category_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/wp_pattern_category/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),group_list:(e,t={})=>this.request({path:`/wp/v2/group`,method:`GET`,query:e,format:`json`,...t}),group_create:(e,t={})=>this.request({path:`/wp/v2/group`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),group_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/group/${e}`,method:`GET`,query:t,format:`json`,...n}),group_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/group/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),group_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/group/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),group_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/group/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),group_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/group/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),blockfolder_list:(e,t={})=>this.request({path:`/wp/v2/blockfolder`,method:`GET`,query:e,format:`json`,...t}),blockfolder_create:(e,t={})=>this.request({path:`/wp/v2/blockfolder`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),blockfolder_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/blockfolder/${e}`,method:`GET`,query:t,format:`json`,...n}),blockfolder_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/blockfolder/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),blockfolder_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/blockfolder/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),blockfolder_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/blockfolder/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),blockfolder_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/blockfolder/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),blocktags_list:(e,t={})=>this.request({path:`/wp/v2/blocktags`,method:`GET`,query:e,format:`json`,...t}),blocktags_create:(e,t={})=>this.request({path:`/wp/v2/blocktags`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),blocktags_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/blocktags/${e}`,method:`GET`,query:t,format:`json`,...n}),blocktags_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/blocktags/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),blocktags_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/blocktags/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),blocktags_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/blocktags/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),blocktags_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/blocktags/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),emailtags_list:(e,t={})=>this.request({path:`/wp/v2/emailtags`,method:`GET`,query:e,format:`json`,...t}),emailtags_create:(e,t={})=>this.request({path:`/wp/v2/emailtags`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),emailtags_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/emailtags/${e}`,method:`GET`,query:t,format:`json`,...n}),emailtags_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/emailtags/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),emailtags_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/emailtags/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),emailtags_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/emailtags/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),emailtags_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/emailtags/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),folder_list:(e,t={})=>this.request({path:`/wp/v2/folder`,method:`GET`,query:e,format:`json`,...t}),folder_create:(e,t={})=>this.request({path:`/wp/v2/folder`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),folder_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/folder/${e}`,method:`GET`,query:t,format:`json`,...n}),folder_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/folder/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),folder_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/folder/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),folder_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/folder/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),folder_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/folder/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),users_list:(e,t={})=>this.request({path:`/wp/v2/users`,method:`GET`,query:e,format:`json`,...t}),users_create:(e,t={})=>this.request({path:`/wp/v2/users`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),users_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/users/${e}`,method:`GET`,query:t,format:`json`,...n}),users_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/users/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),users_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/users/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),users_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/users/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),users_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/users/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),users_me_list:(e,t={})=>this.request({path:`/wp/v2/users/me`,method:`GET`,query:e,format:`json`,...t}),users_me_create:(e,t={})=>this.request({path:`/wp/v2/users/me`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),users_me_update:(e,t={})=>this.request({path:`/wp/v2/users/me`,method:`PUT`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),users_me_partial_update:(e,t={})=>this.request({path:`/wp/v2/users/me`,method:`PATCH`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),users_me_delete:(e,t={})=>this.request({path:`/wp/v2/users/me`,method:`DELETE`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),users_application_passwords_list:({userId:e,...t},n={})=>this.request({path:`/wp/v2/users/${e}/application-passwords`,method:`GET`,query:t,format:`json`,...n}),users_application_passwords_create:({userId:e,...t},n,r={})=>this.request({path:`/wp/v2/users/${e}/application-passwords`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),users_application_passwords_delete:({userId:e,...t},n={})=>this.request({path:`/wp/v2/users/${e}/application-passwords`,method:`DELETE`,format:`json`,...n}),users_application_passwords_introspect_list:({userId:e,...t},n={})=>this.request({path:`/wp/v2/users/${e}/application-passwords/introspect`,method:`GET`,query:t,format:`json`,...n}),users_application_passwords_detail:({userId:e,uuid:t,...n},r={})=>this.request({path:`/wp/v2/users/${e}/application-passwords/${t}`,method:`GET`,query:n,format:`json`,...r}),users_application_passwords_create2:({userId:e,uuid:t,...n},r,i={})=>this.request({path:`/wp/v2/users/${e}/application-passwords/${t}`,method:`POST`,body:r,type:`application/x-www-form-urlencoded`,format:`json`,...i}),users_application_passwords_update:({userId:e,uuid:t,...n},r,i={})=>this.request({path:`/wp/v2/users/${e}/application-passwords/${t}`,method:`PUT`,body:r,type:`application/x-www-form-urlencoded`,format:`json`,...i}),users_application_passwords_partial_update:({userId:e,uuid:t,...n},r,i={})=>this.request({path:`/wp/v2/users/${e}/application-passwords/${t}`,method:`PATCH`,body:r,type:`application/x-www-form-urlencoded`,format:`json`,...i}),users_application_passwords_delete2:({userId:e,uuid:t,...n},r={})=>this.request({path:`/wp/v2/users/${e}/application-passwords/${t}`,method:`DELETE`,format:`json`,...r}),comments_list:(e,t={})=>this.request({path:`/wp/v2/comments`,method:`GET`,query:e,format:`json`,...t}),comments_create:(e,t={})=>this.request({path:`/wp/v2/comments`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),comments_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/comments/${e}`,method:`GET`,query:t,format:`json`,...n}),comments_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/comments/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),comments_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/comments/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),comments_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/comments/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),comments_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/comments/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),search_list:(e,t={})=>this.request({path:`/wp/v2/search`,method:`GET`,query:e,format:`json`,...t}),block_renderer_detail:({name:e,...t},n={})=>this.request({path:`/wp/v2/block-renderer/${e}`,method:`GET`,query:t,format:`json`,...n}),block_renderer_create:({name:e,...t},n,r={})=>this.request({path:`/wp/v2/block-renderer/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),block_types_list:(e,t={})=>this.request({path:`/wp/v2/block-types`,method:`GET`,query:e,format:`json`,...t}),block_types_detail:({namespace:e,...t},n={})=>this.request({path:`/wp/v2/block-types/${e}`,method:`GET`,query:t,format:`json`,...n}),block_types_detail2:({name:e,namespace:t,...n},r={})=>this.request({path:`/wp/v2/block-types/${t}/${e}`,method:`GET`,query:n,format:`json`,...r}),settings_list:(e={})=>this.request({path:`/wp/v2/settings`,method:`GET`,format:`json`,...e}),settings_create:(e,t={})=>this.request({path:`/wp/v2/settings`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),settings_update:(e,t={})=>this.request({path:`/wp/v2/settings`,method:`PUT`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),settings_partial_update:(e,t={})=>this.request({path:`/wp/v2/settings`,method:`PATCH`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),themes_list:(e,t={})=>this.request({path:`/wp/v2/themes`,method:`GET`,query:e,format:`json`,...t}),themes_detail:({stylesheet:e,...t},n={})=>this.request({path:`/wp/v2/themes/${e}`,method:`GET`,format:`json`,...n}),plugins_list:(e,t={})=>this.request({path:`/wp/v2/plugins`,method:`GET`,query:e,format:`json`,...t}),plugins_create:(e,t={})=>this.request({path:`/wp/v2/plugins`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),plugins_detail:({plugin:e,...t},n={})=>this.request({path:`/wp/v2/plugins/${e}`,method:`GET`,query:t,format:`json`,...n}),plugins_create2:({plugin:e,...t},n,r={})=>this.request({path:`/wp/v2/plugins/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),plugins_update:({plugin:e,...t},n,r={})=>this.request({path:`/wp/v2/plugins/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),plugins_partial_update:({plugin:e,...t},n,r={})=>this.request({path:`/wp/v2/plugins/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),plugins_delete:({plugin:e,...t},n,r={})=>this.request({path:`/wp/v2/plugins/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),sidebars_list:(e,t={})=>this.request({path:`/wp/v2/sidebars`,method:`GET`,query:e,format:`json`,...t}),sidebars_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/sidebars/${e}`,method:`GET`,query:t,format:`json`,...n}),sidebars_create:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/sidebars/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),sidebars_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/sidebars/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),sidebars_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/sidebars/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),widget_types_list:(e,t={})=>this.request({path:`/wp/v2/widget-types`,method:`GET`,query:e,format:`json`,...t}),widget_types_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/widget-types/${e}`,method:`GET`,query:t,format:`json`,...n}),widget_types_encode_create:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/widget-types/${e}/encode`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,...r}),widget_types_render_create:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/widget-types/${e}/render`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,...r}),widgets_list:(e,t={})=>this.request({path:`/wp/v2/widgets`,method:`GET`,query:e,format:`json`,...t}),widgets_create:(e,t={})=>this.request({path:`/wp/v2/widgets`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),widgets_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/widgets/${e}`,method:`GET`,query:t,format:`json`,...n}),widgets_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/widgets/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),widgets_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/widgets/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),widgets_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/widgets/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),widgets_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/widgets/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),block_directory_search_list:(e,t={})=>this.request({path:`/wp/v2/block-directory/search`,method:`GET`,query:e,format:`json`,...t}),pattern_directory_patterns_list:(e,t={})=>this.request({path:`/wp/v2/pattern-directory/patterns`,method:`GET`,query:e,format:`json`,...t}),block_patterns_patterns_list:(e={})=>this.request({path:`/wp/v2/block-patterns/patterns`,method:`GET`,format:`json`,...e}),block_patterns_categories_list:(e={})=>this.request({path:`/wp/v2/block-patterns/categories`,method:`GET`,format:`json`,...e}),menu_locations_list:(e,t={})=>this.request({path:`/wp/v2/menu-locations`,method:`GET`,query:e,format:`json`,...t}),menu_locations_detail:({location:e,...t},n={})=>this.request({path:`/wp/v2/menu-locations/${e}`,method:`GET`,query:t,format:`json`,...n}),font_collections_list:(e,t={})=>this.request({path:`/wp/v2/font-collections`,method:`GET`,query:e,format:`json`,...t}),font_collections_detail:({slug:e,...t},n={})=>this.request({path:`/wp/v2/font-collections/${e}`,method:`GET`,query:t,format:`json`,...n}),icons_list:(e,t={})=>this.request({path:`/wp/v2/icons`,method:`GET`,query:e,format:`json`,...t}),icons_detail:({name:e,...t},n={})=>this.request({path:`/wp/v2/icons/${e}`,method:`GET`,query:t,format:`json`,...n})};userToProject={get_user_to_project:(e,t={})=>this.request({path:`/user_to_project/v1`,method:`GET`,query:e,...t}),add_user_create:(e,t={})=>this.request({path:`/user_to_project/v1/add_user`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t})};payment={get_payment:(e,t={})=>this.request({path:`/payment/v1`,method:`GET`,query:e,...t}),check_duplicate_list:(e,t={})=>this.request({path:`/payment/v1/check_duplicate`,method:`GET`,query:e,...t}),check_duplicate_create:(e,t={})=>this.request({path:`/payment/v1/check_duplicate`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t}),subscription_payment_create:(e,t={})=>this.request({path:`/payment/v1/subscription_payment`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t}),subscription_cancelled_create:(e={})=>this.request({path:`/payment/v1/subscription_cancelled`,method:`POST`,...e}),refund_create:(e,t={})=>this.request({path:`/payment/v1/refund`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t}),package_purchase_create:(e,t={})=>this.request({path:`/payment/v1/package_purchase`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t})};counters={get_counters:(e,t={})=>this.request({path:`/counters/v1`,method:`GET`,query:e,...t}),increment_counter_partial_update:(e={})=>this.request({path:`/counters/v1/increment_counter`,method:`PATCH`,...e})};users={get_users:(e,t={})=>this.request({path:`/users/v1`,method:`GET`,query:e,...t}),is_paying_user_list:(e={})=>this.request({path:`/users/v1/is_paying_user`,method:`GET`,...e}),subscription_by_email_list:(e,t={})=>this.request({path:`/users/v1/subscription_by_email`,method:`GET`,query:e,...t})};email={get_email:(e,t={})=>this.request({path:`/email/v2`,method:`GET`,query:e,...t}),export_batches_create:(e={})=>this.request({path:`/email/v2/export/batches`,method:`POST`,...e}),export_batches_latest_list:(e,t={})=>this.request({path:`/email/v2/export/batches/latest`,method:`GET`,query:e,...t}),export_batches_detail:({batchId:e,...t},n={})=>this.request({path:`/email/v2/export/batches/${e}`,method:`GET`,...n}),export_batches_delete:({batchId:e,...t},n={})=>this.request({path:`/email/v2/export/batches/${e}`,method:`DELETE`,...n}),export_batches_cancel_create:({batchId:e,...t},n={})=>this.request({path:`/email/v2/export/batches/${e}/cancel`,method:`POST`,...n}),export_download_list:(e,t={})=>this.request({path:`/email/v2/export/download`,method:`GET`,query:e,...t}),templates_list:(e,t={})=>this.request({path:`/email/v2/templates`,method:`GET`,query:e,...t}),html_list:(e,t={})=>this.request({path:`/email/v2/html`,method:`GET`,query:e,...t}),copy_create:(e,t={})=>this.request({path:`/email/v2/copy`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t})};wpOpenapi={wp_openapi_list:(e,t={})=>this.request({path:`/wp-openapi`,method:`GET`,query:e,...t}),stoplight_ui_list:(e={})=>this.request({path:`/wp-openapi/stoplight-ui`,method:`GET`,...e}),get_wp_openapi:(e,t={})=>this.request({path:`/wp-openapi/v1`,method:`GET`,query:e,...t}),schema_list:(e,t={})=>this.request({path:`/wp-openapi/v1/schema`,method:`GET`,query:e,...t})};subscription={get_subscription:(e,t={})=>this.request({path:`/subscription/v2`,method:`GET`,query:e,...t}),activate_trial_list:(e={})=>this.request({path:`/subscription/v2/activate_trial`,method:`GET`,...e}),me_list:(e={})=>this.request({path:`/subscription/v2/me`,method:`GET`,...e}),me_notification_preferences_update:(e={})=>this.request({path:`/subscription/v2/me/notification-preferences`,method:`PUT`,...e})};app={get_app:(e,t={})=>this.request({path:`/app/v1`,method:`GET`,query:e,...t}),app_init_create:(e,t={})=>this.request({path:`/app/v1/app_init`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t})};jwtAuth={get_jwt_auth:(e,t={})=>this.request({path:`/jwt-auth/v1`,method:`GET`,query:e,...t}),token_create:(e={})=>this.request({path:`/jwt-auth/v1/token`,method:`POST`,...e}),token_validate_create:(e={})=>this.request({path:`/jwt-auth/v1/token/validate`,method:`POST`,...e})};translations={translations_list:(e,t={})=>this.request({path:`/translations`,method:`GET`,query:e,...t}),post_translations:(e={})=>this.request({path:`/translations/v1`,method:`POST`,...e}),get_translations:(e,t={})=>this.request({path:`/translations/v1`,method:`GET`,query:e,...t}),get_translations2:({file:e,...t},n={})=>this.request({path:`/translations/v1/${e}`,method:`GET`,...n}),get_translations3:({id:e,file:t,...n},r={})=>this.request({path:`/translations/v1/${t}/${e}`,method:`GET`,...r})};em1CSync={get_em1_c_sync:(e,t={})=>this.request({path:`/em-1c-sync/v1`,method:`GET`,query:e,...t}),invoice_request_create:(e={})=>this.request({path:`/em-1c-sync/v1/invoice-request`,method:`POST`,...e}),invoice_create:(e={})=>this.request({path:`/em-1c-sync/v1/invoice`,method:`POST`,...e}),ack_create:(e={})=>this.request({path:`/em-1c-sync/v1/ack`,method:`POST`,...e}),test_receiver_create:(e={})=>this.request({path:`/em-1c-sync/v1/test-receiver`,method:`POST`,...e})};prmonline={get_prmonline:(e,t={})=>this.request({path:`/prmonline/v1`,method:`GET`,query:e,...t}),save_ref_create:(e={})=>this.request({path:`/prmonline/v1/save-ref`,method:`POST`,...e}),track_list:(e={})=>this.request({path:`/prmonline/v1/track`,method:`GET`,...e}),track_create:(e={})=>this.request({path:`/prmonline/v1/track`,method:`POST`,...e})};wpMailSmtp={get_wp_mail_smtp:(e,t={})=>this.request({path:`/wp-mail-smtp/v1`,method:`GET`,query:e,...t}),e_detail:({data:e,...t},n={})=>this.request({path:`/wp-mail-smtp/v1/e/${e}`,method:`GET`,...n})};emailmakerLayoutConverter={get_emailmaker_layout_converter:(e,t={})=>this.request({path:`/emailmaker-layout-converter/v1`,method:`GET`,query:e,...t}),convert_create:(e,t={})=>this.request({path:`/emailmaker-layout-converter/v1/convert`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t}),convert_async_create:(e,t={})=>this.request({path:`/emailmaker-layout-converter/v1/convert/async`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t}),convert_jobs_detail:({jobId:e,...t},n={})=>this.request({path:`/emailmaker-layout-converter/v1/convert/jobs/${e}`,method:`GET`,...n})};emFmOps={get_em_fm_ops:(e,t={})=>this.request({path:`/em-fm-ops/v1`,method:`GET`,query:e,...t}),history_list:(e,t={})=>this.request({path:`/em-fm-ops/v1/history`,method:`GET`,query:e,...t})};wpSiteHealth={get_wp_site_health:(e,t={})=>this.request({path:`/wp-site-health/v1`,method:`GET`,query:e,...t}),tests_background_updates_list:(e={})=>this.request({path:`/wp-site-health/v1/tests/background-updates`,method:`GET`,format:`json`,...e}),tests_loopback_requests_list:(e={})=>this.request({path:`/wp-site-health/v1/tests/loopback-requests`,method:`GET`,format:`json`,...e}),tests_https_status_list:(e={})=>this.request({path:`/wp-site-health/v1/tests/https-status`,method:`GET`,format:`json`,...e}),tests_dotorg_communication_list:(e={})=>this.request({path:`/wp-site-health/v1/tests/dotorg-communication`,method:`GET`,format:`json`,...e}),tests_authorization_header_list:(e={})=>this.request({path:`/wp-site-health/v1/tests/authorization-header`,method:`GET`,format:`json`,...e}),directory_sizes_list:(e={})=>this.request({path:`/wp-site-health/v1/directory-sizes`,method:`GET`,...e}),tests_page_cache_list:(e={})=>this.request({path:`/wp-site-health/v1/tests/page-cache`,method:`GET`,...e})};wpBlockEditor={get_wp_block_editor:(e,t={})=>this.request({path:`/wp-block-editor/v1`,method:`GET`,query:e,...t}),url_details_list:(e,t={})=>this.request({path:`/wp-block-editor/v1/url-details`,method:`GET`,query:e,...t}),export_list:(e={})=>this.request({path:`/wp-block-editor/v1/export`,method:`GET`,...e}),navigation_fallback_list:(e={})=>this.request({path:`/wp-block-editor/v1/navigation-fallback`,method:`GET`,format:`json`,...e})};wpAbilities={get_wp_abilities:(e,t={})=>this.request({path:`/wp-abilities/v1`,method:`GET`,query:e,...t}),categories_list:(e,t={})=>this.request({path:`/wp-abilities/v1/categories`,method:`GET`,query:e,format:`json`,...t}),categories_detail:({slug:e,...t},n={})=>this.request({path:`/wp-abilities/v1/categories/${e}`,method:`GET`,format:`json`,...n}),abilities_run_list:({name:e,...t},n={})=>this.request({path:`/wp-abilities/v1/abilities/${e}/run`,method:`GET`,query:t,format:`json`,...n}),abilities_run_create:({name:e,...t},n,r={})=>this.request({path:`/wp-abilities/v1/abilities/${e}/run`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),abilities_run_update:({name:e,...t},n,r={})=>this.request({path:`/wp-abilities/v1/abilities/${e}/run`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),abilities_run_partial_update:({name:e,...t},n,r={})=>this.request({path:`/wp-abilities/v1/abilities/${e}/run`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),abilities_run_delete:({name:e,...t},n,r={})=>this.request({path:`/wp-abilities/v1/abilities/${e}/run`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),abilities_list:(e,t={})=>this.request({path:`/wp-abilities/v1/abilities`,method:`GET`,query:e,format:`json`,...t}),abilities_detail:({name:e,...t},n={})=>this.request({path:`/wp-abilities/v1/abilities/${e}`,method:`GET`,format:`json`,...n})}},wt=x(`client`),Tt=x(`ai_client`),Et=x(),Dt=x(),Ot=`INJECTION`;function kt(e){return e.getState}function F(e){if(kt(e)){let t=e.getState()[Ot];return t&&O.getInstance(t)}else return e}r.i(),i.n();function At(e,t){for(let n of e)if(n&&t in n)return n[t]}function jt(e){return Object.assign({},...e)}var Mt=[`generic`,`stockImages`,`emFiles`,`cdn`];function Nt(e){return!!e&&typeof e==`object`&&!Array.isArray(e)}function Pt(e){return!Nt(e)||`match`in e||`rewrite`in e||`proxyBase`in e?!1:Object.keys(e).some(e=>Mt.includes(e))}function Ft(e){return e.length===0?[]:e.length===1?e[0]:e}function It(e){let t=!1,n=[];for(let r of e)if(r!==void 0){if(t=!0,Array.isArray(r)){n=[...r,...n];continue}n=[r,...n]}if(t)return Ft(n)}function Lt(e){return Nt(e)&&(`value`in e||`replace`in e)}function Rt(e,t){return t===void 0?e:Array.isArray(t)?[...t,...e]:[t,...e]}function zt(e){let t=!1,n=[],r=!1;for(let i of e)if(i!==void 0){if(Lt(i)){t=!0,i.replace&&(n=[],r=!0),i.value!==void 0&&(n=Rt(n,i.value),r=!0);continue}n=Rt(n,i),r=!0}let i=r?Ft(n):void 0;if(!t)return i;if(i!==void 0)return{value:i}}function Bt(e){let t=e.filter(e=>e!==void 0);if(t.length===0)return;if(!t.some(e=>Pt(e)))return It(t);let n={};for(let t of Mt){let r=zt(e.map(e=>{if(e!==void 0)return Pt(e)?e[t]:t===`generic`?e:void 0}));r!==void 0&&(n[t]=r)}return Object.keys(n).length>0?n:void 0}function Vt(e){return It(e)}function Ht(e){if(e!==void 0){if(Array.isArray(e))return{replace:!1,hosts:e};if(Nt(e)&&Array.isArray(e.value))return{replace:!!e.replace,hosts:e.value}}}function Ut(e,t){let n=[...e],r=new Set(n.map(e=>e.toLowerCase()));for(let e of t){let t=e.trim().replace(/:\d+$/,``);if(!t)continue;let i=t.toLowerCase();r.has(i)||(r.add(i),n.push(t))}return n}function Wt(e){let t=[],n=!1;for(let r of e){let e=Ht(r);e&&(n=!0,e.replace&&(t=[]),t=Ut(t,e.hosts))}return n?t:void 0}function Gt(e){let t=e.filter(e=>e!==void 0);if(t.length===0)return;let n=jt(t.map(({directHosts:e,...t})=>t)),r=Wt(t.map(e=>e?.directHosts));return r!==void 0&&(n.directHosts=r),n}var Kt=3e5,qt=new Map,Jt=new Map,Yt=new Set([`generic`,`stockImages`,`emFiles`,`cdn`]),Xt=/^https:\/\/(?:media\d*|i)\.giphy\.com\/media/i,Zt=/^https:\/\/api\.giphy\.com\/v1\/gifs/i,Qt=/^https:\/\/images\.unsplash\.com/i,$t=/^https:\/\/api\.unsplash\.com/i,en=/^https:\/\/assets\.streamlinehq\.com/i,tn=/^https:\/\/public-api\.streamlinehq\.com/i;function nn(e){return typeof e==`string`&&e.trim().length>0}function rn(){let e=`https://px0.useblocks.io/`;if(nn(e))return e;let t=i.t.env.REACT_APP_UNSPLASH_PROXY;return nn(t)?t:void 0}function an(){return{stockImagesProxyUrl:i.t.env.REACT_APP_STOCK_IMAGES_PROXY,stockImagesProxyUrlApi:i.t.env.REACT_APP_STOCK_IMAGES_PROXY_API,genericProxyUrl:rn()}}function on(e){let t=[],{stockImagesProxyUrl:n,stockImagesProxyUrlApi:r,genericProxyUrl:i}=an();return r&&t.push({id:`mode-default-stock-images-api`,match:`https://api.unsplash.com/{path}`,proxyBase:r,rewrite:`{path}?proxy_url={origin}{search}{hash}`}),n&&t.push({id:`mode-default-stock-images-cdn`,match:`https://images.unsplash.com/{path}`,proxyBase:n,rewrite:`{path}?proxy_url={origin}{search}{hash}`}),i&&t.push({id:`mode-default-generic`,proxyBase:i,rewrite:`{path}?proxy_url={origin}{search}{hash}`}),t.length>0?t:void 0}function sn(e){return!!e}var cn=()=>{if(!(typeof window>`u`))return window.location.origin};function ln(e){let t=cn();if(!t)return!1;try{return new URL(e).origin===t}catch{return!1}}function un(e,t){try{let n=new URL(e).hostname.toLowerCase();return t.find(e=>e.toLowerCase()===n)??null}catch{return null}}function dn(e,t){return!t&&e===`downloadBlob`}function fn(e){let t=e.trim();return t?t.replace(/:\d+$/,``):``}function pn(e,t){if(t.proxySameOrigin&&ln(e))try{return{skipReason:`same-origin`,matchedHost:new URL(e).hostname}}catch{return null}let n=un(e,t.directHosts);return n?{skipReason:`direct-host`,matchedHost:n}:null}function mn(e){let t=[];for(let n of e){if(Array.isArray(n)){for(let e of n)t.push(e);continue}t.push(n)}return t}function hn(e){let t=new Set,n=[];for(let r of e){let e=_n(typeof r==`string`?r:r.proxyBase||``);e&&t.has(e)||(e&&t.add(e),n.push(r))}return n}function gn(e){return e?.backendProxy}function _n(e){return e.replace(/\/$/,``)}function vn(e){return/^https?:\/\//i.test(e)}function yn(e){return e===`/`?``:e.replace(/\/$/,``)}function bn(e){return!!e&&typeof e==`object`&&!Array.isArray(e)}function xn(e){let t=new Set;return e.filter(e=>!e.url||t.has(e.url)?!1:(t.add(e.url),!0))}function Sn(){return`https://cdn.useblocks.io`}function Cn(e){return!bn(e)||`match`in e||`rewrite`in e||`proxyBase`in e?!1:Object.keys(e).some(e=>Yt.has(e))}function wn(e){if(e!=null)return bn(e)&&(`value`in e||`replace`in e)?e.value:e}function Tn(e,t=`generic`,n=!1){let r=Fn(e,n);if(r)return Cn(r)?wn(r[t]??r.generic):r}function En(e,t=!1){let n=Fn(e,t);return n?Cn(n)?Object.keys(n).filter(e=>Yt.has(e)).map(e=>wn(n[e])).filter(Boolean):[n]:[]}function Dn(e){let t=gn(e);return t?[t]:[]}function On(e,t=!1){if(sn(t))return{proxyBlobFetch:!0,proxyCdn:!0,proxyEmFiles:!0,proxyStockImages:!0};let{stockImagesProxyUrl:n,stockImagesProxyUrlApi:r}=an();return{proxyBlobFetch:!0,proxyCdn:!1,proxyEmFiles:!1,proxyStockImages:nn(n)||nn(r)}}function kn(e){let t=[],n=new Set;for(let r of e){let e=fn(r);if(!e)continue;let i=e.toLowerCase();n.has(i)||(n.add(i),t.push(e))}return t}function An(e){return e?kn(Array.isArray(e)?e:e.value??[]):[]}function jn(e,t){return{inheritEnvDefaults:!e,proxySameOrigin:!0,directHosts:[],...On(t,e)}}function Mn(e,t=!1){let n=jn(t,e),r=e?.resourceProxyPolicy??{};return{inheritEnvDefaults:r.inheritEnvDefaults??n.inheritEnvDefaults,proxySameOrigin:r.proxySameOrigin??n.proxySameOrigin,directHosts:r.directHosts===void 0?n.directHosts:An(r.directHosts),proxyBlobFetch:r.proxyBlobFetch??n.proxyBlobFetch,proxyCdn:r.proxyCdn??n.proxyCdn,proxyEmFiles:r.proxyEmFiles??n.proxyEmFiles,proxyStockImages:r.proxyStockImages??n.proxyStockImages,recoveryTtlMs:r.recoveryTtlMs??n.recoveryTtlMs}}function Nn(e,t=!1){return Mn(e,t).inheritEnvDefaults}function Pn(e,t=!1){let n=Mn(e,t).recoveryTtlMs;return typeof n==`number`&&n>0?n:Kt}function Fn(e,t=!1){let n=e?.resourceProxy;if(!Nn(e,t))return n;let r=on(e);if(n===void 0)return r;let i=Bt([r,n]);return Array.isArray(i)?hn(mn(i)):i}function In(e){return{proxyEmFiles:!0,proxyAi:!1}}function Ln(e,t,n=!1){let r=Mn(t,n);switch(e){case`cdn`:return r.proxyCdn;case`emFiles`:return r.proxyEmFiles;case`stockImages`:return r.proxyStockImages;default:return r.proxyBlobFetch}}function Rn(e,t,n=!1){return e===`stockImages`&&Ln(`stockImages`,t,n)}function zn(e,t){let n=In(t),r=t?.backendProxyPolicy;switch(e){case`emFiles`:return r?.proxyEmFiles??n.proxyEmFiles;case`ai`:return r?.proxyAi??n.proxyAi;default:return!0}}var Bn={url:`.+`,url_encoded:`.+`,origin:`https?:\\/\\/[^\\/?#]+`,origin_encoded:`.+`,proxy_url:`https?:\\/\\/[^\\/?#]+`,proxy_url_encoded:`.+`,path:`[^?#]*`,pathname:`[^?#]*`,path_with_slash:`\\/[^?#]*`,pathname_with_slash:`\\/[^?#]*`,query:`[^#]*`,search:`\\?[^#]*`,hash:`#.*`,fragment:`.*`,pathname_after_wp_json:`[^?#]*`,pathname_after_wp_json_with_slash:`\\/[^?#]*`,rest_namespace:`[^/?#]*`,rest_version:`[^/?#]*`,rest_route:`[^?#]*`,rest_route_with_slash:`\\/[^?#]*`};function Vn(e){let t=[],n=e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`).replace(/\\\{([a-z_]+)\\\}/gi,(e,n)=>(t.push(n),`(${Bn[n]||`.+`})`));return{regex:RegExp(`^${n}$`,`i`),tokens:t}}function Hn(e){return/[?#]/.test(e)||/\{(?:url|url_encoded|query|search|hash|fragment)\}/i.test(e)}function Un(e,t){if(Hn(t))return e;try{let t=new URL(e);return`${t.origin}${t.pathname}`}catch{return e.split(/[?#]/)[0]||e}}function Wn(e,t,n){if(n.endsWith(`_encoded`))return!0;let r=e.slice(0,t),i=r.lastIndexOf(`#`),a=r.lastIndexOf(`?`),o=r.lastIndexOf(`&`),s=r.lastIndexOf(`=`);return s>Math.max(a,o)&&s>i}function Gn(e){try{let t=new URL(e),n=t.pathname.replace(/^\/+/,``),r=t.search.replace(/^\?/,``),i=t.hash.replace(/^#/,``),a=n.replace(/^wp-json\/?/i,``),o=a?`/${a}`:`/`,s=a.match(/^([^/]+)(?:\/([^/]+))?(?:\/(.*))?$/),c=s?.[1]||``,l=s?.[2]||``,u=s?.[3]||``;return{url:e,url_encoded:encodeURIComponent(e),origin:t.origin,origin_encoded:encodeURIComponent(t.origin),proxy_url:t.origin,proxy_url_encoded:encodeURIComponent(t.origin),path:n,pathname:n,path_with_slash:t.pathname||`/`,pathname_with_slash:t.pathname||`/`,query:r,search:t.search,hash:t.hash,fragment:i,pathname_after_wp_json:a,pathname_after_wp_json_with_slash:o,rest_namespace:c,rest_version:l,rest_route:u,rest_route_with_slash:u?`/${u}`:`/`}}catch{return}}function Kn(e,t){if(!e)return{};if(Array.isArray(e)){for(let n of e){let e=Kn(n,t);if(e!==void 0)return e}return}if(e===`*`)return{};let n=Un(t,e),{regex:r,tokens:i}=Vn(e),a=r.exec(n);if(!a)return;let o={};return i.forEach((e,t)=>{o[`matched_${e}`]=a[t+1]||``}),o}function qn(e,t,n={}){let r=Gn(t);if(!r)return t;let i={...r,...n},a=``,o=0,s=/\{([a-z_]+)\}/gi,c;for(;c=s.exec(e);){a+=e.slice(o,c.index);let t=i[c[1]]??``,n=Wn(e,c.index,c[1])?encodeURIComponent(t):t;a+=n,o=c.index+c[0].length}a+=e.slice(o);try{let e=new URL(a),n=new URL(t);return!a.includes(`{search}`)&&!a.includes(`{query}`)&&n.search&&n.searchParams.forEach((t,n)=>{e.searchParams.has(n)||e.searchParams.append(n,t)}),!a.includes(`{hash}`)&&!a.includes(`{fragment}`)&&n.hash&&!e.hash&&(e.hash=n.hash),e.toString()}catch{return a}}function Jn(e,t){try{let n=new URL(t);return`${_n(e)}/${n.pathname.replace(/^\//,``)}${n.search}${n.hash}`}catch{return t}}function Yn(e,t){let n=_n(e);return t?vn(t)?t:t.startsWith(`?`)||t.startsWith(`#`)?`${n}${t}`:`${n}${t.startsWith(`/`)?``:`/`}${t}`:n}function Xn(e,t,n,r){let i=e.match;return i?Array.isArray(i)?i.some(i=>Xn({...e,match:i},t,n,r)):typeof i==`function`?!!i({url:t,resourceType:n,intent:r}):i===`*`?!0:Kn(i,t)!==void 0:!0}function Zn(e,t,n,r,i,a){if(e==null)return[];let o=Array.isArray(e)?e:[e],s=[];return o.forEach((e,o)=>{if(!e)return;if(typeof e==`string`){let i=e.includes(`{`)&&e.includes(`}`)?qn(e,t):Jn(e,t);s.push({key:`${n}:${o}`,url:i,source:r});return}if(!bn(e)||!(`rewrite`in e))return;let c=e;if(!Xn(c,t,i,a))return;let l=(typeof c.match==`string`||Array.isArray(c.match))&&Kn(c.match,t)||{},u=typeof c.proxyBase==`string`&&c.proxyBase.trim()?c.proxyBase.trim():void 0;(Array.isArray(c.rewrite)?c.rewrite:[c.rewrite]).filter(Boolean).forEach((e,d)=>{let f=typeof e==`function`?(()=>{let n=e({url:t,proxyBase:u,resourceType:i,intent:a,...l}),r=u&&!vn(n)?Yn(u,n):n;return r.includes(`{`)&&r.includes(`}`)?qn(r,t,l):r})():u?qn(Yn(u,e),t,l):e.includes(`{`)&&e.includes(`}`)?qn(e,t,l):Jn(e,t);s.push({key:`${n}:${c.id||`rule`}:${o}:${d}`,url:f,source:r})})}),xn(s)}function Qn(e,t,n,r){let i=e.match;return i?Array.isArray(i)?i.some(i=>Qn({...e,match:i},t,n,r)):typeof i==`function`?!!i({url:t,method:r,requestType:n}):i===`*`?!0:Kn(i,t)!==void 0:!0}function $n(e,t,n,r=`generic`){if(e==null)return[];let i=Array.isArray(e)?e:[e],a=[];return i.forEach((e,i)=>{if(!e)return;if(typeof e==`string`){let n=e.includes(`{`)&&e.includes(`}`)?qn(e,t):Jn(e,t);a.push({key:`backend:${i}`,url:n,source:`resource`});return}if(!bn(e)||!(`rewrite`in e))return;let o=e;if(!Qn(o,t,r,n))return;let s=(typeof o.match==`string`||Array.isArray(o.match))&&Kn(o.match,t)||{},c=typeof o.proxyBase==`string`&&o.proxyBase.trim()?o.proxyBase.trim():void 0;(Array.isArray(o.rewrite)?o.rewrite:[o.rewrite]).filter(Boolean).forEach((e,l)=>{let u=typeof e==`function`?(()=>{let i=e({url:t,proxyBase:c,method:n,requestType:r,...s}),a=c&&!vn(i)?Yn(c,i):i;return a.includes(`{`)&&a.includes(`}`)?qn(a,t,s):a})():c?qn(Yn(c,e),t,s):e.includes(`{`)&&e.includes(`}`)?qn(e,t,s):Jn(e,t);a.push({key:`backend:${o.id||`rule`}:${i}:${l}`,url:u,source:`resource`})})}),xn(a)}function er(e,t,n){return[e,...n.map(e=>e.url)].join(`|`)}function tr(e,t){if(!e||t.length<2)return t;let n=qt.get(e);if(!n?.activeUrl)return t;let r=t.find(e=>e.url===n.activeUrl);return r?[r,...t.filter(e=>e.url!==n.activeUrl)]:t}function nr(e){e&&Jt.get(e)?.forEach(e=>{try{e()}catch{}})}function rr(e,t){if(!e)return()=>void 0;let n=Jt.get(e)||new Set;return n.add(t),Jt.set(e,n),()=>{let n=Jt.get(e);n&&(n.delete(t),n.size===0&&Jt.delete(e))}}function ir(e,t){if(!e)return!1;let n=qt.get(e);return!!n?.failedUntil&&n.activeUrl===t.url&&n.failedUntil>Date.now()}function ar(e,t){let n=tr(e,t);if(!e||n.length<2)return n;let r=[],i=[];return n.forEach(t=>{ir(e,t)?i.push(t):r.push(t)}),[...r,...i]}function or(e,t){if(!e)return;let n=qt.get(e);qt.set(e,{activeUrl:t.url}),(n?.activeUrl!==t.url||n?.failedUntil)&&nr(e)}function sr(e,t,n,r=!1){if(!e)return;let i=Pn(n,r),a={activeUrl:t.url,failedUntil:Date.now()+i},o=qt.get(e);qt.set(e,a),(o?.activeUrl!==a.activeUrl||o?.failedUntil!==a.failedUntil)&&nr(e)}function cr(e){return en.test(e)||tn.test(e)}function lr(e){return Xt.test(e)||Zt.test(e)}function ur(e){return cr(e)||lr(e)}function dr(e,t){let n=Sn();return n&&e.startsWith(_n(n))?`cdn`:Qt.test(e)||$t.test(e)?`stockImages`:`generic`}function fr(e){try{let t=new URL(e);return/(?:^|\/)wp-json\/em-files\/v\d+(?:\/|$)/i.test(t.pathname)?`emFiles`:/(?:^|\/)wp-json\/ai-generator\/v\d+(?:\/|$)/i.test(t.pathname)?`ai`:`generic`}catch{return`generic`}}function pr(e,t){try{let n=new URL(e),r=new URL(t),i=yn(r.pathname),a=i===``?!0:n.pathname===i||n.pathname.startsWith(`${i}/`);if(n.origin!==r.origin||!a)return null;let o=n.searchParams.get(`url`);if(o)return o;let s=n.searchParams.get(`proxy_url`);if(!s)return null;let c=new URL(s),l=i===``?n.pathname.replace(/^\/+/,``):n.pathname.slice(i.length).replace(/^\/+/,``);return c.pathname=l?`/${l}`:`/`,n.searchParams.forEach((e,t)=>{t===`proxy_url`||t===`url`||c.searchParams.has(t)||c.searchParams.append(t,e)}),n.hash&&!c.hash&&(c.hash=n.hash),c.toString()}catch{return null}}function mr(e,t=[]){return e==null||(Array.isArray(e)?e:[e]).forEach(e=>{if(e){if(typeof e==`string`){let n=e.split(`{`)[0]?.trim();n&&t.push(_n(n));return}!bn(e)||!(`rewrite`in e)||(typeof e.proxyBase==`string`&&e.proxyBase.trim()&&t.push(_n(e.proxyBase.trim())),(Array.isArray(e.rewrite)?e.rewrite:[e.rewrite]).forEach(e=>{if(typeof e!=`string`)return;let n=e.split(`{`)[0]?.trim();n&&t.push(_n(n))}))}}),t}function hr(e,t,n=!1){return En(t,n).flatMap(e=>mr(e)).filter(Boolean).some(t=>t&&e.startsWith(t))}function gr(e,t){return Dn(t).flatMap(e=>mr(e)).filter(Boolean).some(t=>t&&e.startsWith(t))}function _r(e,t,n=!1){let r=En(t,n).flatMap(e=>mr(e)).filter(Boolean);for(let t of r){let n=pr(e,t);if(n)return n}return null}function vr(e,t,n=!1){return hr(e,t,n)}function yr(e,t,n=!1){return _r(e,t,n)||e}function br(e,t,n=!1){return!!Tn(t,e,n)&&Ln(e,t,n)}function xr(e,t){return!!gn(t)&&zn(e,t)}function Sr(e,t,n,r=!1){if(sn(r)||t===`downloadBlob`)return!1;switch(e){case`stockImages`:return Ln(e,n,r);default:return!1}}function Cr(e,t={}){let n=t.config,r=yr(e,n,t.standalone),i=t.resourceType||dr(r,n),a=t.intent||`display`;if(ur(r))return{resourceType:`generic`,intent:a,candidates:[]};let o=br(i,n,t.standalone)?Zn(Tn(n,i,t.standalone),r,i,`resource`,i,a):[];return{resourceType:i,intent:a,candidates:o,stabilityKey:o.length?er(i,a,o):void 0}}function wr(e,t={}){let n=t.requestType||fr(e);return xr(n,t.config)?$n(gn(t.config),e,t.method,n):[]}function Tr(e,t={},n){let r=t.intent||n;if(vr(e,t.config,t.standalone)){let n=yr(e,t.config,t.standalone),i=t.resourceType||dr(n,t.config),a={key:`already-proxied`,url:e,source:`direct`};return{chain:{resourceType:i,intent:r,candidates:[a]},candidates:[a]}}let i=yr(e,t.config,t.standalone),a=t.resourceType||dr(i,t.config),o=Sr(a,r,t.config,t.standalone);if(dn(r,o)&&!ur(i)&&!Rn(a,t.config,t.standalone)){let e=pn(i,Mn(t.config,t.standalone));if(e){let t={key:`direct-${e.skipReason}`,url:i,source:`direct`};return{chain:{resourceType:a,intent:r,candidates:[t],directShortCircuit:e},candidates:[t]}}}let s=Cr(i,{...t,intent:r,resourceType:a});return{chain:s,candidates:xn([...ar(s.stabilityKey,s.candidates),...o?[]:[{key:`direct`,url:i,source:`direct`}]])}}function Er(e,t,n={},r){let{chain:i,candidates:a}=Tr(e,n,r),o=a.find(e=>e.url===t);return!o||o.source!==`resource`?null:{chain:i,candidate:o}}function Dr(e,t,n={}){let r=Er(e,t,n,`display`);r&&or(r.chain.stabilityKey,r.candidate)}function Or(e,t,n={}){let r=Er(e,t,n,`display`);r&&sr(r.chain.stabilityKey,r.candidate,n.config,n.standalone)}function kr(e,t,n,r=!1){return{src:e,changed:n,exhausted:r,reason:t}}var Ar=class extends Error{final=!0;skipReason;hostname;constructor(e,t){super(`Direct resource fetch failed (${e}: ${t}). ${e===`same-origin`?`The same-origin asset is unreachable; check that the resource exists and is served by the editor origin.`:`Add CORS headers for the editor origin or remove the host from directHosts.`}`),this.name=`DirectResourceFetchError`,this.skipReason=e,this.hostname=t}};function jr(e,t){return new Ar(e,t)}function Mr(e){if(e instanceof Error&&e.name===`AbortError`)return!1;if(e instanceof TypeError)return!0;if(e instanceof Error){if(e.message===`Proxy validation failed`)return!1;if(e.message.startsWith(`Proxy fetch failed with status`))return!0}return!0}function Nr(e,t=!1){let n=Mn(e,t);return{inheritEnvDefaults:n.inheritEnvDefaults,proxySameOrigin:n.proxySameOrigin,directHosts:[...n.directHosts]}}function Pr(e){return e.length>0&&e.every(e=>e.source===`direct`)}function Fr(e,t,n){return e.directShortCircuit?e.directShortCircuit.skipReason:t.length===1&&t[0]?.source===`direct`&&ur(n)?`direct-only-vendor`:null}function Ir(e,t,n){return e.directShortCircuit||n===`direct-only-vendor`||Pr(t)?`direct`:`proxy`}function Lr(e,t={}){let{chain:n,candidates:r}=Tr(e,t,t.intent||`display`),i=n.stabilityKey?qt.get(n.stabilityKey):void 0,a=r[0]?.url||e,o=Fr(n,r,yr(e,t.config,t.standalone)),s=Nr(t.config,t.standalone);return{originalUrl:e,resourceType:n.resourceType,intent:n.intent,stabilityKey:n.stabilityKey,currentSrc:a,runtimeState:i?{...i}:void 0,decision:Ir(n,r,o),skipReason:o,matchedHost:n.directShortCircuit?.matchedHost,policy:s,candidates:r.map(e=>({...e,isCurrent:e.url===a,isFailed:ir(n.stabilityKey,e),failedUntil:i?.activeUrl===e.url?i?.failedUntil:void 0}))}}function Rr(e,t={}){let n=Tr(e,t,`display`),r=n.candidates,i=r[0]?.url||e,a=Math.max(0,r.findIndex(e=>e.url===i)),o=()=>{let o=Tr(e,t,`display`),s=o.candidates,c=s[0]?.url||e;return!c||c===i?(n=o,r=s,a=Math.max(0,s.findIndex(e=>e.url===i)),kr(i,`unchanged`,!1)):(n=o,r=s,i=c,a=Math.max(0,s.findIndex(e=>e.url===i)),kr(i,`runtime-update`,!0))};return{get src(){return i},get stabilityKey(){return n.chain.stabilityKey},handleChangeSrc:()=>o(),handleSuccess:()=>{Dr(e,i,t)},handleError:()=>{Or(e,i,t);let n=o();if(n.changed&&n.src)return n;let s=r[a+1];return!s||s.url===i?kr(null,`exhausted`,!1,!0):(i=s.url,a+=1,kr(i,`candidate-fallback`,!0))},subscribeToSrcChange:e=>rr(n.chain.stabilityKey,()=>{let t=o();t.changed&&e(t)}),getDebugSnapshot:()=>Lr(e,t)}}async function zr(e,t={}){if(vr(e,t.config,t.standalone))return fetch(e,t.init);let n=t.config,{chain:r,candidates:i}=Tr(e,t,t.intent||`downloadBlob`),a;for(let e of i)try{let n=await fetch(e.url,t.init);if(!n.ok)throw Error(`Proxy fetch failed with status ${n.status}`);if(t.validateBlob){let e=await n.clone().blob();if(!await t.validateBlob(e))throw Error(`Proxy validation failed`)}return e.source===`resource`&&or(r.stabilityKey,e),n}catch(i){a=i,e.source===`resource`&&sr(r.stabilityKey,e,n,t.standalone)}throw r.directShortCircuit&&i.length===1&&i[0]?.source===`direct`&&Mr(a)?jr(r.directShortCircuit.skipReason,r.directShortCircuit.matchedHost):a instanceof Error?a:Error(`Failed to fetch resource through proxy chain`)}function Br(e,t={}){return gr(e,t.config)?[e]:wr(e,t).map(e=>e.url)}function Vr(e,t){let n=Sn(),r=t.filter(Boolean).map(e=>String(e).replace(/^\/+|\/+$/g,``));return n?`${_n(n)}/${r.join(`/`)}`:r.join(`/`)}function Hr(e,t){let n=Sn();return!!n&&e.startsWith(_n(n))}var Ur=e=>{let t=new FormData,n=(e,t,r)=>{if(t!=null){if(t instanceof Blob){e.append(r,t);return}if(Array.isArray(t)){t.forEach((t,i)=>{n(e,t,r?`${r}[${i}]`:`${i}`)});return}if(typeof t==`object`){Object.keys(t).forEach(i=>{let a=t[i];n(e,a,r?`${r}[${i}]`:i)});return}e.append(r,String(t))}};return n(t,e),t};function Wr(e){for(;e.endsWith(`/`);)e=e.slice(0,e.length-1);return/\/wp-json$/i.test(e)?e:`${e}/wp-json`}var Gr={baseUrl:Wr(`https://app.useblocks.io/api`),baseApiParams:{secure:!0,credentials:`same-origin`,format:`json`},securityWorker:()=>({credentials:`same-origin`})},Kr=new Map;function qr(e){if(e)return e.getState().configSlice?.config}var Jr=class extends Ct{container;constructor(e={},t){super(e),this.container=t}buildRequestUrl(e){let{path:t,baseUrl:n,extraQuery:r}=e,{query:i}=e;r&&(i=i?{...i,...r}:r);let a=i&&this.toQueryString(i);return`${n||this.baseUrl||``}${t}${a?`?${a}`:``}`}buildRequestKey(e,t){return`${t.toUpperCase()} ${e}`}getBackendProxyCandidates(e,t){let n=Br(e,{config:qr(this.container?.getInstance(ht)),method:t,standalone:this.container?.getInstance(vt)!==void 0}),r=n.length>0?n:[e],i=this.buildRequestKey(e,t),a=Kr.get(i);return!a||!r.includes(a)?r:[a,...r.filter(e=>e!==a)]}shouldRetryResponse(e){return e.status===502||e.status===503||e.status===504}async request(e){let t=this.buildRequestUrl(e),n=e.method||`GET`,r=this.buildRequestKey(t,n),i=this.getBackendProxyCandidates(t,n),a,o;for(let n of i){let s=e=>e===t?n:e;try{let t=await super.request({...e,proxyHandler:s});if(!t.ok&&this.shouldRetryResponse(t)&&n!==i[i.length-1]){o=t,Kr.get(r)===n&&Kr.delete(r);continue}return Kr.set(r,n),t}catch(e){if(a=e,Kr.get(r)===n&&Kr.delete(r),e instanceof DOMException&&e.name===`AbortError`)throw e}}if(o)return o;throw a instanceof Error?a:Error(`Backend proxy chain failed`)}};function Yr(e=Gr){let t=new Map;return{create(n,r){let i=new Jr({...e,...n},r);return i.contentFormatters[`multipart/form-data`]=Ur,t.set(i,{options:n,container:r}),i},getOptions(){return e},setOptions(n){e=n;for(let[n,r]of t)Object.assign(n,{...e,...r.options})}}}var Xr=x();function Zr(e){return e.getOrCreateInstance(Xr,()=>Yr())}function Qr(e,t={}){let n=kt(e)?F(e):e;return Zr(n).create(t,n)}var $r=x(),ei=x(),ti=x(),ni=e=>{e.inject(ti,{execute:async(t,n={})=>{let r=e.getServices($r),i=t instanceof Request?t:new Request(t,n);for(let e of r){let t=await e.execute(i);t instanceof Request&&(i=t)}let a=await fetch(i),o=e.getServices(ei);for(let e of o)a=await e.execute(a);return a}})},ri=e=>{ni(e);let t=e.getInstance(ti);e.inject(wt,Qr(e,{customFetch:t?.execute||fetch}))},ii;(function(e){let t=`https://racs.rest/v3`;function n(e,n){let r={method:`POST`,headers:{"Content-Type":`application/json`,Accept:`application/json`},body:JSON.stringify(n)};return fetch(`${t}?resource=${e}&dataset=${document.location.hostname}`,r)}e.post=n;async function r(e,n=0){let r={method:`POST`,headers:{"Content-Type":`application/json`,Accept:`application/json`},body:`{"filter":{},"limit":${n}}`};return await(await fetch(`${t}/get?resource=${e}&dataset=${document.location.hostname}`,r)).json()}e.getAll=r})(ii||={});function ai(e){if(typeof e==`object`&&e){let t={};for(let n of Object.keys(e)){let r=e[n];r&&typeof r==`object`?t[n]=ai(r):t[n]=r}return t}return e}function oi(e,t){if(e!==t){if(!e||!t||typeof e!=`object`||typeof t!=`object`)return!1;let n=e instanceof Array,r=t instanceof Array;if(n){if(!r)return!1;let n=e.length;if(t.length!==n)return!1;for(let r=0;r<n;r++)if(!oi(e[r],t[r]))return!1}else if(r)return!1;let i=Object.keys(e),a=Object.keys(t),o=i.length;if(o!==a.length)return!1;for(let n=0;n<o;n++){let r=i[n];if(!t.hasOwnProperty(r)||!oi(e[r],t[r]))return!1}}return!0}var si={text:{fontFamily:[`Google Fonts`,`Sans Serif`,`Mulish`,`Regular`],fontSize:16,fontSizeDim:`px`,lineHeight:24,lineHeightDim:`px`,color:`#595959`,contrastColor:`#FFFFFF`,textAlign:`left`,paddingBottom:10,paddingBottomDim:`px`},headings:{fontFamily:[`Google Fonts`,`Sans Serif`,`Mulish`,`Bold`],fontSize:28,fontSizeDim:`px`,lineHeight:34,lineHeightDim:`px`,color:`#000000`,contrastColor:`#FFFFFF`,textAlign:`left`,paddingTop:20,paddingTopDim:`px`,paddingBottom:20,paddingBottomDim:`px`,letterSpacing:0,letterSpacingDim:`px`,bold:!0,italic:!1},links:{color:`#1890ff`,contrastColor:`#FFFFFF`,underline:!0},buttons:{fontFamily:[`Google Fonts`,`Sans Serif`,`Mulish`,`Medium`],fontSize:16,fontSizeDim:`px`,letterSpacing:0,letterSpacingDim:`px`,color:`#FFFFFF`,contrastColor:`#1890ff`,bold:!1,italic:!1,backgroundColor:`#1890ff`,contrastBackgroundColor:`#FFFFFF`,marginTop:10,marginTopDim:`px`,marginBottom:10,marginBottomDim:`px`,border:{all:null,top:null,right:null,bottom:null,left:null},borderRadius:{all:6,topLeft:null,topRight:null,bottomRight:null,bottomLeft:null},textAlign:`center`,padding:{all:null,top:null,right:null,bottom:null,left:null}},block:{backgroundColor:`#FFFFFF`,contrastBackgroundColor:`#1890ff`,padding:{all:null,top:null,right:null,bottom:null,left:null}},cards:{contrastBackgroundColor:`#1890ff`,contrastTextColor:`#ffffff`,baseBackgroundColor:`#f8f8f8`,baseTextColor:`#333333`,border:{all:null,top:null,right:null,bottom:null,left:null},borderRadius:{all:10,topLeft:null,topRight:null,bottomRight:null,bottomLeft:null}}},ci=`ERROR`,li=`useblocks`,ui={isPlugin:!0},di={isEditor:!1},fi={em_token:`em_token`,em_elements_view:`em_elements_view`,em_new_block:`em_new_block`,em_new_email:`em_new_email`,em_id:`em_id`,em_name:`em_name`,em_email:`em_email`,em_locale:`em_locale`,em_carrotquest_hash:`em_carrotquest_hash`,em_ducalis_hash:`em_ducalis_hash`,em_email_subscription_consent:`em_email_subscription_consent`,em_folder:`em_folder`,promocode:`promocode`,em_active_tab:`em_active_tab`},pi={em_color_scheme:`em_color_scheme`,em_code_mode_pane_sizes:`em_code_mode_pane_sizes`,em_preview_pane_sizes:`em_preview_pane_sizes`,em_default_sizes:`em_default_sizes`,em_pane_sizes:`em_pane_sizes`,em_test_emails:`em_test_emails`,em_menu_is_locked:`em_menu_is_locked`,em_code_mode_settings:`em_code_mode_settings`,em_folder_is_open:`em_folder_is_open`,em_active_tab:`em_active_tab`,em_ai_settings:`em_ai_settings`,em_last_active_page:`em_last_active_page`},mi=`deleted`,hi=`not all`,gi=`light`,_i=`dark`,vi=`system`,yi=`(prefers-color-scheme: light)`,bi=`(prefers-color-scheme: dark)`,xi={auth:`/auth`,projects_index:`/`,projects:`/projects`,project:`/projects/:projectId/emails`,email:`/projects/:projectId/emails/:emailId`,create_email:`/projects/:projectId/emails/new`,billing:`/billing`},Si={ADD_NEW_PROJECT_MODAL:`ADD_NEW_PROJECT_MODAL`,EDIT_PROJECT_MODAL:`EDIT_PROJECT_MODAL`,BLOCKS_MODAL:`BLOCKS_MODAL`,EDIT_PROFILE_MODAL:`EDIT_PROFILE_MODAL`,SEND_TEST_EMAIL:`SEND_TEST_EMAIL`,ADD_NEW_EBLOCK_MODAL:`ADD_NEW_EBLOCK_MODAL`,ADD_NEW_EMAIL_MODAL:`ADD_NEW_EMAIL_MODAL`,ADD_NEW_AI_EMAIL:`ADD_NEW_AI_EMAIL`,SWITCH_TO_PLAN_MODAL:`SWITCH_TO_PLAN_MODAL`,IMAGE_EDITOR_MODAL:`IMAGE_EDITOR_MODAL`,ADD_NEW_FOLDER_MODAL:`ADD_NEW_FOLDER_MODAL`,EDIT_FOLDER_NAME_MODAL:`EDIT_FOLDER_NAME_MODAL`,ADD_NEW_GROUP_MODAL:`ADD_NEW_GROUP_MODAL`,EDIT_GROUP_NAME_MODAL:`EDIT_GROUP_NAME_MODAL`,RENAME_EMAIL_MODAL:`RENAME_EMAIL_MODAL`,RENAME_BLOCK_MODAL:`RENAME_BLOCK_MODAL`,UPLOAD_IMAGE_MODAL:`UPLOAD_IMAGE_MODAL`,UPLOAD_BACKGROUND_MODAL:`UPLOAD_BACKGROUND_MODAL`,UPLOAD_IMAGE_MODAL_AI:`UPLOAD_IMAGE_MODAL_AI`,UPLOAD_BACKGROUND_MODAL_AI:`UPLOAD_BACKGROUND_MODAL_AI`,UPLOAD_IMAGE_MODAL_STOCK:`UPLOAD_IMAGE_MODAL_STOCK`,UPLOAD_BACKGROUND_MODAL_STOCK:`UPLOAD_BACKGROUND_MODAL_STOCK`,UPLOAD_IMAGE_MODAL_GIF:`UPLOAD_IMAGE_MODAL_GIF`,UPLOAD_BACKGROUND_MODAL_GIF:`UPLOAD_BACKGROUND_MODAL_GIF`,UPLOAD_IMAGE_MODAL_EDIT:`UPLOAD_IMAGE_MODAL_EDIT`,UPLOAD_BACKGROUND_MODAL_EDIT:`UPLOAD_BACKGROUND_MODAL_EDIT`,UPLOAD_IMAGE_MODAL_UPLOAD:`UPLOAD_IMAGE_MODAL_UPLOAD`,UPLOAD_BACKGROUND_MODAL_UPLOAD:`UPLOAD_BACKGROUND_MODAL_UPLOAD`},Ci=`application/x-emailmaker-social-reorder`,wi={MESSAGE:`message`,INIT_PREVIEW:`init_preview`,UPDATE_PREVIEW:`update_preview`,UPDATE_EDITOR:`update_editor`,UPDATE_EDITOR_POSITION:`update_editor_position`,UPDATE_SIDE_MENU_EDITOR:`update_side_menu_editor`,SAVE_EMAIL:`saveEmail`,SANDBOX_ELEMENT_SETTINGS_SET:`sandbox_element_settings_set`,SANDBOX_CURRENT_IMAGE_RELOAD:`sandbox_current_image_reload`,SANDBOX_NATIVE_IMAGE_DROP_CLEAR:`sandbox_native-image-drop-clear`,SANDBOX_EMAIL_SETTINGS_SET:`sandbox_email_settings_set`,SANDBOX_BLOCK_SETTINGS_SET:`sandbox_block_settings_set`,SANDBOX_ELEMENT_PARENT_GET:`sandbox_element_parent_get`,SANDBOX_ELEMENT_PARENT_TABLE_GET:`sandbox_element_parent_table_get`,SANDBOX_ELEMENT_PREV_GET:`sandbox_element_prev_get`,SANDBOX_ELEMENT_NEXT_GET:`sandbox_element_next_get`,SANDBOX_ELEMENT_REMOVE:`sandbox_element_remove`,SANDBOX_ELEMENT_ACTIVE_RESET:`sandbox_element_active_reset`,SANDBOX_ELEMENT_ACTIVE_SET:`sandbox_element_active_set`,SANDBOX_ELEMENT_HOVER_SET:`sandbox_element_hover_set`,SANDBOX_ELEMENT_IMG_LINK:`sandbox_element_img_link`,SANDBOX_ELEMENT_TEXT:`sandbox_element_text`,SANDBOX_EMAIL_CONTENT_GET:`sandbox_email_content_get`,SANDBOX_SET_POSITION_TO_IMG:`sandbox_set_position_to_img`,SANDBOX_SET_POSITION_TO_LINK:`sandbox_set_position_to_link`,SANDBOX_ACCORDION_ADD_SECTION:`sandbox_accordion_add_section`,SANDBOX_ACCORDION_REMOVE_SECTION:`sandbox_accordion_remove_section`,APPLICATION_FOCUS_IN_IFRAME:`application_focus_in_iframe`,APPLICATION_EMAIL_SETTINGS_SET:`application_email_settings_set`,APPLICATION_BLOCK_SETTINGS_SET:`application_block_settings_set`,APPLICATION_ELEMENT_SETTINGS_SET:`application_element_settings_set`,_APPLICATION_ELEMENT_SETTINGS_SET:j(`application_element_settings_set`),APPLICATION_ELEMENT_SETTINGS_CLOSE:`application_element_settings_close`,APPLICATION_ACTION:`application_action`,APPLICATION_EBLOCK_ADD:`application_eblock_add`,APPLICATION_EBLOCK_PROPAGATE_UPDATE:`application_eblock_propagate_update`,SANDBOX_EBLOCK_SET_EM_BLOCK_ID:`sandbox_eblock_set_em_block_id`,APPLICATION_SCROLL_TO:`application_scroll-to`,APPLICATION_SCROLL_BLOCK_SHOW:`application_scroll-block-show`,APPLICATION_SCROLL_BLOCK_HIDE:`application_scroll-block-hide`,APPLICATION_DISCUSS_SET_ID:`application_discuss_set_id`,APPLICATION_DISCUSS_GET_COMMENT:`application_discuss_get_comment`,APPLICATION_DISCUSS_NO_COMMENT:`application_discuss_no_comment`,APPLICATION_DISCUSS_SAVE_TARGET:`application_discuss_save_target`,APPLICATION_IFRAME_SET_HEIGHT:`application_iframe_set_height`,APPLICATION_COMMON_STYLES_UPDATE:`application_commonStyles_update`,APPLICATION_EMAIL_CONTENT_GET:`application_email_content_get`,APPLICATION_OPEN_IMAGE_AI_POPUP:`application_open-image-ai-popup`,APPLICATION_OPEN_IMAGE_UPLOAD_POPUP:`application_open-image-upload-popup`,APPLICATION_OPEN_IMAGE_EDIT_POPUP:`application_open-image-edit-popup`,APPLICATION_OPEN_IMAGE_GIF_POPUP:`application_open-image-gif-popup`,APPLICATION_OPEN_IMAGE_STOCK_POPUP:`application_open-image-stock-popup`,APPLICATION_CLOSE_IMAGE_EDIT_POPUP:`application_close-image-edit-popup`,APPLICATION_NATIVE_IMAGE_DROP:`application_native-image-drop`,APPLICATION_SUBJECT_UPDATE:j(`application_subject_update`),APPLICATION_PREHEADER_UPDATE:j(`application_preheader_update`),APPLICATION_DOMPARSER_ERROR:j(`application_domparser_error`),APPLICATION_UPDATE_ENTITY:j(`application_update_entity`),APPLICATION_IFRAME_DRAG_EVENT:j(`application_iframe_drag_event`),APPLICATION_HAS_AMP:j(`application_has_amp`),APPLICATION_PREVIEW_ALERT_SHOW:`application_preview_alert_show`,APPLICATION_ATOM_INSERTED:j(`application_atom_inserted`),APPLICATION_TEMPLATE_NOT_EM_ALERT_SHOW:`application_template_not_em_alert_show`,SANDBOX_WINDOW_CHARACTERISTIC:`sandbox_window-characteristic`,SANDBOX_IFRAME_SETSIZE:`sandbox_iframe-setsize`,SANDBOX_BLOCK_INSERT:`sandbox_block-insert`,SANDBOX_ATOM_INSERT:`sandbox_atom-insert`,SANDBOX_DRAG_CANCEL:`sandbox_drag-cancel`,UPDATE_EDITOR_POSITION_FROM_EDITOR:`update_position_from_editor`,UPDATE_EDITOR_POSITION_FROM_IFRAME:`update_position_from_iframe`,SANDBOX_CHANGE_PREVIEW:`sandbox_change_preview`,APPLICATION_CHANGE_PREVIEW:`application_change_preview`,SANDBOX_LOCK_EDIT:`sandbox_lock_edit`,SANDBOX_FLOATBLOCK_ADD:`sandbox_floatBlock_add`,SANDBOX_FLOATBLOCK_REMOVE:`sandbox_floatBlock_remove`,EDITOR_CHANGE_FOCUS:`editor_change_focus`,SANDBOX_RESIZED:`sandbox_resized`,SANDBOX_LOCK_DISCUSS:`sandbox_lock_discuss`,SANDBOX_DISCUSS_SET_TARGET:`sandbox_discuss_set_target`,SANDBOX_DISCUSS_REMOVE_TARGET:`sandbox_discuss_remove_target`,SANDBOX_DISCUSS_RESET:`sandbox_discuss_reset`,SANDBOX_DISCUSS_GET_TARGET:`sandbox_discuss_get_target`,SANDBOX_READY:j(`SANDBOX_READY`),SANDBOX_FLOATBLOCK_WRAP:`sandbox_floatblock_wrap`,SANDBOX_FLOATBLOCK_DIR:`sandbox_floatblock_dir`,SANDBOX_SUBJECT_UPDATE:j(`sandbox_subject_update`),SANDBOX_PREHEADER_UPDATE:j(`sandbox_preheader_update`),SANDBOX_DRAG_EVENT:j(`sandbox_drag_event`),SANDBOX_ADD_MERGETAG:j(`sandbox_add_mergetag`),SANDBOX_TRANSLATIONS:j(`sandbox_send_translations`),SANDBOX_SET_THEME_VARIABLES:j(`sandbox_send_theme_variables`),SANDBOX_SET_ENTITY:j(`sandbox_set_entity`),SANDBOX_INIT_START:j(`sandbox_init_start`),SANDBOX_INITED:j(`sandbox_inited`),SANDBOX_UPDATE_ENTITY:j(`sandbox_update_entity`),RELOAD:j(`reload`),SANDBOX_ADD_EXTENSIONS:j(`sandbox_add_extensions`),SANDBOX_REMOVE_EXTENSIONS:j(`sandbox_remove_extensions`),SANDBOX_ADD_SCRIPT:j(`sandbox_add_script`),SANDBOX_IS_EMAIL_EMPTY:j(`sandbox_is_email_empty`),SANDBOX_SWITCH_THEME:j(`sandbox_switch_theme`)},Ti={language:`html`,detectIndentation:!1,wordWrap:`on`,wrappingIndent:`same`,smoothScrolling:!0,automaticLayout:!0,tabSize:2,indentSize:2},Ei=function(e){return e.IMG=`img`,e.TEXT=`text`,e.LINK=`a`,e.TABLE=`table`,e.VINDENT=`vindent`,e.TD=`td`,e.STRUCTURE=`structure`,e.GROUP=`group`,e.BUTTON=`button`,e.DIV=`div`,e.FLOAT_BLOCK=`floatBlock`,e.VAR=`var`,e.EMPTY_TABLE=`emptyTable`,e.EMPTY_TD=`emptyTd`,e.COUNTDOWN=`countdown`,e.VIDEO=`video`,e.COLUMN=`column`,e.CAROUSEL=`carousel`,e.ACCORDION=`accordion`,e.CUSTOM_TABLE=`customTable`,e.SOCIAL=`social`,e}({}),Di={ALL:`All`,STANDARD:`Standard`,PROJECT:`Project`},Oi=`Appearance`,ki=`Structure`,Ai=`Settings`,ji=`Properties`,Mi=`History`,Ni=`Disabled_tab`,Pi=`Edit selected element`,Fi=`UTM parameters`,Ii=`Table properties`,Li=`Edit selected table cells`,Ri=`#b9b1b1`,zi=`Edit`,Bi=`AiChat`,Vi=`Build`,Hi=`Styles`,Ui=`Discuss`,Wi=`Blocks`,Gi=`Atoms`,Ki=`Optimise`,qi={top:{width:null,style:null,color:null},right:{width:null,style:null,color:null},bottom:{width:null,style:null,color:null},left:{width:null,style:null,color:null},all:{width:null,style:null,color:null}},Ji=`block`,Yi=`email`,Xi=`cards`,Zi=`list`,Qi=`pending`,$i=`d41d8`,ea=`valid`,ta=`warnings`,na=`errors`,ra={LINKS:`Links`,IMAGES:`Images`,SPAM_ASSASSIN:`Spam assassin`,PROBLEMS:`Problems`},ia=`1865`,aa=6892,oa=`desktop`,sa=`mobile`,ca=`emailtags`,la=`blocktags`,ua=e=>({REORDER_ATOM:e(`Reorder element`),CLONE_ATOM:e(`Clone element`),REMOVE_ATOM:e(`Remove element`),EDIT_ATOM:e(`Edit element`),CHANGE_IMAGE:e(`Change image`),REORDER_BLOCK:e(`Reorder block`),REORDER_BLOCK_UP:e(`Move up`),REORDER_BLOCK_DOWN:e(`Move down`),EDIT_BLOCK:e(`Edit block`),CLONE_BLOCK:e(`Clone block`),MERGE_BLOCK:e(`Merge with the chosen block`),UNMERGE_BLOCK:e(`Split blocks`),COPY_BLOCK_TO_CLIPBOARD:e(`Copy block to clipboard`),PASTE_BLOCK_FROM_CLIPBOARD:e(`Paste block from clipboard`),REMOVE_BLOCK:e(`Remove block`),SAVE_TO_BLOCKS:e(`Save to Blocks`),UPDATE_GLOBAL_BLOCK_IN_TEMPLATES:e(`Push block update to all templates`),ADD_BLOCK:e(`Add block`),ADD_EMPTY_BLOCK:e(`Add an empty block`),ADD_SAVED_BLOCK:e(`Add a saved block`),ADD_COMMON_BLOCK:e(`Add a common block`),ADD_TEMPLATE_BLOCK:e(`Add a template block`),ADD_SEARCH_BLOCK:e(`Search a block`),REORDER_GROUP:e(`Reorder group`),EDIT_GROUP:e(`Edit group`),CLONE_GROUP:e(`Clone group`),REMOVE_GROUP:e(`Remove group`),ADD_GROUP:e(`Add group`),LINK:e(`link`),TABLE_COLUMN:e(`cell`),TABLE:e(`table`),FLOAT_BLOCK:e(`column`),CONTAINER:e(`container`),PICTURE:e(`picture`),CAROUSEL:e(`carousel`),ACCORDION:e(`accordion`),SOCIAL:e(`Social media`),VERTICAL_INDENT:e(`indent`),TEXT:e(`text`),BUTTON:e(`button`),VAR:e(`variable`),STRUCTURE:e(`block`),EMAIL:e(`email`),GROUP:e(`group`),TYPOGRAF:e(`Typograf`),COUNTDOWN:e(`countdown`),ELEMENT:e(`element`),VIDEO:e(`video`),ELEMENT_PATH_LINK:e(`Link`),ELEMENT_PATH_BLOCK:e(`Block`),ELEMENT_PATH_ATOM:e(`Element`),ELEMENT_PATH_TD:e(`Cell`),ELEMENT_PATH_TABLE:e(`Table`),ELEMENT_PATH_FLOATBLOCK:e(`Column`),ELEMENT_PATH_TEXT:e(`Text`),ELEMENT_PATH_DIV:e(`Container`),ELEMENT_PATH_GROUP:e(`Group`),ELEMENT_PATH_EMAIL:e(`Email`),ELEMENT_PATH_IMG:e(`Picture`),ELEMENT_PATH_VINDENT:e(`Indent`),ELEMENT_PATH_BUTTON:e(`Button`),ELEMENT_PATH_CAROUSEL:e(`Carousel`),ELEMENT_PATH_ACCORDION:e(`Accordion`),ELEMENT_PATH_SOCIAL:e(`Social media`),ELEMENT_PATH_SECTION:e(`Section`),TINYMCE_CHANGECASE:e(`Case Change`),TINYMCE_UPPERCASE:e(`Uppercase`),TINYMCE_LOWERCASE:e(`Lowercase`),PASTE_HERE:e(`Drop here`),INSERT_COLUMN_BEFORE_TABLE:e(`Insert column before`),INSERT_COLUMN_AFTER_TABLE:e(`Insert column after`),INSERT_ROW_BEFORE_TABLE:e(`Insert row before`),INSERT_ROW_AFTER_TABLE:e(`Insert row after`),MERGE_RIGHT_CELL_TABLE:e(`Merge right cell`),MERGE_LEFT_CELL_TABLE:e(`Merge left cell`),MERGE_TOP_CELL_TABLE:e(`Merge top cell`),MERGE_BOTTOM_CELL_TABLE:e(`Merge bottom cell`),SPLIT_CELL_TABLE:e(`Split cell`),REMOVE_COLUMN_TABLE:e(`Remove column`),REMOVE_ROW_TABLE:e(`Remove row`),DROP_BLOCK_HINT:e(`Click or drag a block`)}),da={Applications:`Apps`,Articles:`Article`,Banners:`Banners`,Buttons:`Buttons`,"Call to Action":`Call to Action`,Contacts:`Contacts`,Content:`Content`,"E-Commerce":`E-Commerce`,Feature:`Features`,Footer:`Footers`,Header:`Headers`,Lists:`Lists`,Menu:`Menus`,Other:`Others`,Polls:`Polls`,Promocodes:`Promocodes`,Separators:`Separators`},fa={maker:`https://ai-mail.emcdn.ru`,blocks:`https://ai-mail.useblocks.io`};function I(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error(`[Immer] minified error nr: `+e+(n.length?` `+n.map((function(e){return`'`+e+`'`})).join(`,`):``)+`. Find the full error at: https://bit.ly/3cXEKWf`)}function L(e){return!!e&&!!e[R]}function pa(e){return!!e&&(function(e){if(!e||typeof e!=`object`)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;var n=Object.hasOwnProperty.call(t,`constructor`)&&t.constructor;return n===Object||typeof n==`function`&&Function.toString.call(n)===ro}(e)||Array.isArray(e)||!!e[no]||!!e.constructor?.[no]||xa(e)||Sa(e))}function ma(e){return L(e)||I(23,e),e[R].t}function ha(e,t,n){n===void 0&&(n=!1),ga(e)===0?(n?Object.keys:io)(e).forEach((function(r){n&&typeof r==`symbol`||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function ga(e){var t=e[R];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:xa(e)?2:Sa(e)?3:0}function _a(e,t){return ga(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function va(e,t){return ga(e)===2?e.get(t):e[t]}function ya(e,t,n){var r=ga(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function ba(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function xa(e){return Qa&&e instanceof Map}function Sa(e){return $a&&e instanceof Set}function Ca(e){return e.o||e.t}function wa(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=ao(e);delete t[R];for(var n=io(t),r=0;r<n.length;r++){var i=n[r],a=t[i];!1===a.writable&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function Ta(e,t){return t===void 0&&(t=!1),Da(e)||L(e)||!pa(e)||(ga(e)>1&&(e.set=e.add=e.clear=e.delete=Ea),Object.freeze(e),t&&ha(e,(function(e,t){return Ta(t,!0)}),!0)),e}function Ea(){I(2)}function Da(e){return typeof e!=`object`||!e||Object.isFrozen(e)}function Oa(e){var t=oo[e];return t||I(18,e),t}function ka(e,t){oo[e]||(oo[e]=t)}function Aa(){return Xa}function ja(e,t){t&&(Oa(`Patches`),e.u=[],e.s=[],e.v=t)}function Ma(e){Na(e),e.p.forEach(Fa),e.p=null}function Na(e){e===Xa&&(Xa=e.l)}function Pa(e){return Xa={p:[],l:Xa,h:e,m:!0,_:0}}function Fa(e){var t=e[R];t.i===0||t.i===1?t.j():t.g=!0}function Ia(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.O||Oa(`ES5`).S(t,e,r),r?(n[R].P&&(Ma(t),I(4)),pa(e)&&(e=La(t,e),t.l||za(t,e)),t.u&&Oa(`Patches`).M(n[R].t,e,t.u,t.s)):e=La(t,n,[]),Ma(t),t.u&&t.v(t.u,t.s),e===to?void 0:e}function La(e,t,n){if(Da(t))return t;var r=t[R];if(!r)return ha(t,(function(i,a){return Ra(e,r,t,i,a,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return za(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=r.i===4||r.i===5?r.o=wa(r.k):r.o,a=i,o=!1;r.i===3&&(a=new Set(i),i.clear(),o=!0),ha(a,(function(t,a){return Ra(e,r,i,t,a,n,o)})),za(e,i,!1),n&&e.u&&Oa(`Patches`).N(r,n,e.u,e.s)}return r.o}function Ra(e,t,n,r,i,a,o){if(L(i)){var s=La(e,i,a&&t&&t.i!==3&&!_a(t.R,r)?a.concat(r):void 0);if(ya(n,r,s),!L(s))return;e.m=!1}else o&&n.add(i);if(pa(i)&&!Da(i)){if(!e.h.D&&e._<1)return;La(e,i),t&&t.A.l||za(e,i)}}function za(e,t,n){n===void 0&&(n=!1),!e.l&&e.h.D&&e.m&&Ta(t,n)}function Ba(e,t){var n=e[R];return(n?Ca(n):e)[t]}function Va(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function Ha(e){e.P||(e.P=!0,e.l&&Ha(e.l))}function Ua(e){e.o||=wa(e.t)}function Wa(e,t,n){var r=xa(t)?Oa(`MapSet`).F(t,n):Sa(t)?Oa(`MapSet`).T(t,n):e.O?function(e,t){var n=Array.isArray(e),r={i:+!!n,A:t?t.A:Aa(),P:!1,I:!1,R:{},l:t,t:e,k:null,o:null,j:null,C:!1},i=r,a=so;n&&(i=[r],a=co);var o=Proxy.revocable(i,a),s=o.revoke,c=o.proxy;return r.k=c,r.j=s,c}(t,n):Oa(`ES5`).J(t,n);return(n?n.A:Aa()).p.push(r),r}function Ga(e){return L(e)||I(22,e),function e(t){if(!pa(t))return t;var n,r=t[R],i=ga(t);if(r){if(!r.P&&(r.i<4||!Oa(`ES5`).K(r)))return r.t;r.I=!0,n=Ka(t,i),r.I=!1}else n=Ka(t,i);return ha(n,(function(t,i){r&&va(r.t,t)===i||ya(n,t,e(i))})),i===3?new Set(n):n}(e)}function Ka(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return wa(e)}function qa(){function e(e,t){var n=i[e];return n?n.enumerable=t:i[e]=n={configurable:!0,enumerable:t,get:function(){var t=this[R];return so.get(t,e)},set:function(t){var n=this[R];so.set(n,e,t)}},n}function t(e){for(var t=e.length-1;t>=0;t--){var i=e[t][R];if(!i.P)switch(i.i){case 5:r(i)&&Ha(i);break;case 4:n(i)&&Ha(i)}}}function n(e){for(var t=e.t,n=e.k,r=io(n),i=r.length-1;i>=0;i--){var a=r[i];if(a!==R){var o=t[a];if(o===void 0&&!_a(t,a))return!0;var s=n[a],c=s&&s[R];if(c?c.t!==o:!ba(s,o))return!0}}var l=!!t[R];return r.length!==io(t).length+ +!l}function r(e){var t=e.k;if(t.length!==e.t.length)return!0;var n=Object.getOwnPropertyDescriptor(t,t.length-1);if(n&&!n.get)return!0;for(var r=0;r<t.length;r++)if(!t.hasOwnProperty(r))return!0;return!1}var i={};ka(`ES5`,{J:function(t,n){var r=Array.isArray(t),i=function(t,n){if(t){for(var r=Array(n.length),i=0;i<n.length;i++)Object.defineProperty(r,``+i,e(i,!0));return r}var a=ao(n);delete a[R];for(var o=io(a),s=0;s<o.length;s++){var c=o[s];a[c]=e(c,t||!!a[c].enumerable)}return Object.create(Object.getPrototypeOf(n),a)}(r,t),a={i:r?5:4,A:n?n.A:Aa(),P:!1,I:!1,R:{},l:n,t,k:i,o:null,g:!1,C:!1};return Object.defineProperty(i,R,{value:a,writable:!0}),i},S:function(e,n,i){i?L(n)&&n[R].A===e&&t(e.p):(e.u&&function e(t){if(t&&typeof t==`object`){var n=t[R];if(n){var i=n.t,a=n.k,o=n.R,s=n.i;if(s===4)ha(a,(function(t){t!==R&&(i[t]!==void 0||_a(i,t)?o[t]||e(a[t]):(o[t]=!0,Ha(n)))})),ha(i,(function(e){a[e]!==void 0||_a(a,e)||(o[e]=!1,Ha(n))}));else if(s===5){if(r(n)&&(Ha(n),o.length=!0),a.length<i.length)for(var c=a.length;c<i.length;c++)o[c]=!1;else for(var l=i.length;l<a.length;l++)o[l]=!0;for(var u=Math.min(a.length,i.length),d=0;d<u;d++)a.hasOwnProperty(d)||(o[d]=!0),o[d]===void 0&&e(a[d])}}}}(e.p[0]),t(e.p))},K:function(e){return e.i===4?n(e):r(e)}})}function Ja(){function e(t){if(!pa(t))return t;if(Array.isArray(t))return t.map(e);if(xa(t))return new Map(Array.from(t.entries()).map((function(t){return[t[0],e(t[1])]})));if(Sa(t))return new Set(Array.from(t).map(e));var n=Object.create(Object.getPrototypeOf(t));for(var r in t)n[r]=e(t[r]);return _a(t,no)&&(n[no]=t[no]),n}function t(t){return L(t)?e(t):t}var n=`add`;ka(`Patches`,{$:function(t,r){return r.forEach((function(r){for(var i=r.path,a=r.op,o=t,s=0;s<i.length-1;s++){var c=ga(o),l=i[s];typeof l!=`string`&&typeof l!=`number`&&(l=``+l),c!==0&&c!==1||l!==`__proto__`&&l!==`constructor`||I(24),typeof o==`function`&&l===`prototype`&&I(24),typeof(o=va(o,l))!=`object`&&I(15,i.join(`/`))}var u=ga(o),d=e(r.value),f=i[i.length-1];switch(a){case`replace`:switch(u){case 2:return o.set(f,d);case 3:I(16);default:return o[f]=d}case n:switch(u){case 1:return f===`-`?o.push(d):o.splice(f,0,d);case 2:return o.set(f,d);case 3:return o.add(d);default:return o[f]=d}case`remove`:switch(u){case 1:return o.splice(f,1);case 2:return o.delete(f);case 3:return o.delete(r.value);default:return delete o[f]}default:I(17,a)}})),t},N:function(e,r,i,a){switch(e.i){case 0:case 4:case 2:return function(e,r,i,a){var o=e.t,s=e.o;ha(e.R,(function(e,c){var l=va(o,e),u=va(s,e),d=c?_a(o,e)?`replace`:n:`remove`;if(l!==u||d!==`replace`){var f=r.concat(e);i.push(d===`remove`?{op:d,path:f}:{op:d,path:f,value:u}),a.push(d===n?{op:`remove`,path:f}:d===`remove`?{op:n,path:f,value:t(l)}:{op:`replace`,path:f,value:t(l)})}}))}(e,r,i,a);case 5:case 1:return function(e,r,i,a){var o=e.t,s=e.R,c=e.o;if(c.length<o.length){var l=[c,o];o=l[0],c=l[1];var u=[a,i];i=u[0],a=u[1]}for(var d=0;d<o.length;d++)if(s[d]&&c[d]!==o[d]){var f=r.concat([d]);i.push({op:`replace`,path:f,value:t(c[d])}),a.push({op:`replace`,path:f,value:t(o[d])})}for(var p=o.length;p<c.length;p++){var m=r.concat([p]);i.push({op:n,path:m,value:t(c[p])})}o.length<c.length&&a.push({op:`replace`,path:r.concat([`length`]),value:o.length})}(e,r,i,a);case 3:return function(e,t,r,i){var a=e.t,o=e.o,s=0;a.forEach((function(e){if(!o.has(e)){var a=t.concat([s]);r.push({op:`remove`,path:a,value:e}),i.unshift({op:n,path:a,value:e})}s++})),s=0,o.forEach((function(e){if(!a.has(e)){var o=t.concat([s]);r.push({op:n,path:o,value:e}),i.unshift({op:`remove`,path:o,value:e})}s++}))}(e,r,i,a)}},M:function(e,t,n,r){n.push({op:`replace`,path:[],value:t===to?void 0:t}),r.push({op:`replace`,path:[],value:e})}})}var Ya,Xa,Za=typeof Symbol<`u`&&typeof Symbol(`x`)==`symbol`,Qa=typeof Map<`u`,$a=typeof Set<`u`,eo=typeof Proxy<`u`&&Proxy.revocable!==void 0&&typeof Reflect<`u`,to=Za?Symbol.for(`immer-nothing`):((Ya={})[`immer-nothing`]=!0,Ya),no=Za?Symbol.for(`immer-draftable`):`__$immer_draftable`,R=Za?Symbol.for(`immer-state`):`__$immer_state`,ro=``+Object.prototype.constructor,io=typeof Reflect<`u`&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols===void 0?Object.getOwnPropertyNames:function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))},ao=Object.getOwnPropertyDescriptors||function(e){var t={};return io(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},oo={},so={get:function(e,t){if(t===R)return e;var n=Ca(e);if(!_a(n,t))return function(e,t,n){var r=Va(t,n);return r?`value`in r?r.value:r.get?.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!pa(r)?r:r===Ba(e.t,t)?(Ua(e),e.o[t]=Wa(e.A.h,r,e)):r},has:function(e,t){return t in Ca(e)},ownKeys:function(e){return Reflect.ownKeys(Ca(e))},set:function(e,t,n){var r=Va(Ca(e),t);if(r?.set)return r.set.call(e.k,n),!0;if(!e.P){var i=Ba(Ca(e),t),a=i?.[R];if(a&&a.t===n)return e.o[t]=n,e.R[t]=!1,!0;if(ba(n,i)&&(n!==void 0||_a(e.t,t)))return!0;Ua(e),Ha(e)}return e.o[t]===n&&(n!==void 0||t in e.o)||Number.isNaN(n)&&Number.isNaN(e.o[t])||(e.o[t]=n,e.R[t]=!0),!0},deleteProperty:function(e,t){return Ba(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,Ua(e),Ha(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=Ca(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!==`length`,enumerable:r.enumerable,value:n[t]}},defineProperty:function(){I(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){I(12)}},co={};ha(so,(function(e,t){co[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),co.deleteProperty=function(e,t){return co.set.call(this,e,t,void 0)},co.set=function(e,t,n){return so.set.call(this,e[0],t,n,e[0])};var z=new(function(){function e(e){var t=this;this.O=eo,this.D=!0,this.produce=function(e,n,r){if(typeof e==`function`&&typeof n!=`function`){var i=n;n=e;var a=t;return function(e){var t=this;e===void 0&&(e=i);for(var r=arguments.length,o=Array(r>1?r-1:0),s=1;s<r;s++)o[s-1]=arguments[s];return a.produce(e,(function(e){var r;return(r=n).call.apply(r,[t,e].concat(o))}))}}var o;if(typeof n!=`function`&&I(6),r!==void 0&&typeof r!=`function`&&I(7),pa(e)){var s=Pa(t),c=Wa(t,e,void 0),l=!0;try{o=n(c),l=!1}finally{l?Ma(s):Na(s)}return typeof Promise<`u`&&o instanceof Promise?o.then((function(e){return ja(s,r),Ia(e,s)}),(function(e){throw Ma(s),e})):(ja(s,r),Ia(o,s))}if(!e||typeof e!=`object`){if((o=n(e))===void 0&&(o=e),o===to&&(o=void 0),t.D&&Ta(o,!0),r){var u=[],d=[];Oa(`Patches`).M(e,o,u,d),r(u,d)}return o}I(21,e)},this.produceWithPatches=function(e,n){if(typeof e==`function`)return function(n){for(var r=arguments.length,i=Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];return t.produceWithPatches(n,(function(t){return e.apply(void 0,[t].concat(i))}))};var r,i,a=t.produce(e,n,(function(e,t){r=e,i=t}));return typeof Promise<`u`&&a instanceof Promise?a.then((function(e){return[e,r,i]})):[a,r,i]},typeof e?.useProxies==`boolean`&&this.setUseProxies(e.useProxies),typeof e?.autoFreeze==`boolean`&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){pa(e)||I(8),L(e)&&(e=Ga(e));var t=Pa(this),n=Wa(this,e,void 0);return n[R].C=!0,Na(t),n},t.finishDraft=function(e,t){var n=(e&&e[R]).A;return ja(n,t),Ia(void 0,n)},t.setAutoFreeze=function(e){this.D=e},t.setUseProxies=function(e){e&&!eo&&I(20),this.O=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var r=t[n];if(r.path.length===0&&r.op===`replace`){e=r.value;break}}n>-1&&(t=t.slice(n+1));var i=Oa(`Patches`).$;return L(e)?i(e,t):this.produce(e,(function(e){return i(e,t)}))},e}()),lo=z.produce,uo=z.produceWithPatches.bind(z);z.setAutoFreeze.bind(z),z.setUseProxies.bind(z);var fo=z.applyPatches.bind(z);z.createDraft.bind(z),z.finishDraft.bind(z);function B(e){return`Minified Redux error #`+e+`; visit https://redux.js.org/Errors?code=`+e+` for the full message or use the non-minified dev environment for full errors. `}var po=(function(){return typeof Symbol==`function`&&Symbol.observable||`@@observable`})(),mo=function(){return Math.random().toString(36).substring(7).split(``).join(`.`)},ho={INIT:`@@redux/INIT`+mo(),REPLACE:`@@redux/REPLACE`+mo(),PROBE_UNKNOWN_ACTION:function(){return`@@redux/PROBE_UNKNOWN_ACTION`+mo()}};function go(e){if(typeof e!=`object`||!e)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function _o(e,t,n){var r;if(typeof t==`function`&&typeof n==`function`||typeof n==`function`&&typeof arguments[3]==`function`)throw Error(B(0));if(typeof t==`function`&&n===void 0&&(n=t,t=void 0),n!==void 0){if(typeof n!=`function`)throw Error(B(1));return n(_o)(e,t)}if(typeof e!=`function`)throw Error(B(2));var i=e,a=t,o=[],s=o,c=!1;function l(){s===o&&(s=o.slice())}function u(){if(c)throw Error(B(3));return a}function d(e){if(typeof e!=`function`)throw Error(B(4));if(c)throw Error(B(5));var t=!0;return l(),s.push(e),function(){if(t){if(c)throw Error(B(6));t=!1,l();var n=s.indexOf(e);s.splice(n,1),o=null}}}function f(e){if(!go(e))throw Error(B(7));if(e.type===void 0)throw Error(B(8));if(c)throw Error(B(9));try{c=!0,a=i(a,e)}finally{c=!1}for(var t=o=s,n=0;n<t.length;n++){var r=t[n];r()}return e}function p(e){if(typeof e!=`function`)throw Error(B(10));i=e,f({type:ho.REPLACE})}function m(){var e,t=d;return e={subscribe:function(e){if(typeof e!=`object`||!e)throw Error(B(11));function n(){e.next&&e.next(u())}return n(),{unsubscribe:t(n)}}},e[po]=function(){return this},e}return f({type:ho.INIT}),r={dispatch:f,subscribe:d,getState:u,replaceReducer:p},r[po]=m,r}function vo(e){Object.keys(e).forEach(function(t){var n=e[t];if(n(void 0,{type:ho.INIT})===void 0)throw Error(B(12));if(n(void 0,{type:ho.PROBE_UNKNOWN_ACTION()})===void 0)throw Error(B(13))})}function yo(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var i=t[r];typeof e[i]==`function`&&(n[i]=e[i])}var a=Object.keys(n),o;try{vo(n)}catch(e){o=e}return function(e,t){if(e===void 0&&(e={}),o)throw o;for(var r=!1,i={},s=0;s<a.length;s++){var c=a[s],l=n[c],u=e[c],d=l(u,t);if(d===void 0)throw t&&t.type,Error(B(14));i[c]=d,r||=d!==u}return r||=a.length!==Object.keys(e).length,r?i:e}}function bo(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.length===0?function(e){return e}:t.length===1?t[0]:t.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}function xo(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw Error(B(15))},i={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},o=t.map(function(e){return e(i)});return r=bo.apply(void 0,o)(n.dispatch),a.t(a.t({},n),{},{dispatch:r})}}}var So=`NOT_FOUND`;function Co(e){var t;return{get:function(n){return t&&e(t.key,n)?t.value:So},put:function(e,n){t={key:e,value:n}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}function wo(e,t){var n=[];function r(e){var r=n.findIndex(function(n){return t(e,n.key)});if(r>-1){var i=n[r];return r>0&&(n.splice(r,1),n.unshift(i)),i.value}return So}function i(t,i){r(t)===So&&(n.unshift({key:t,value:i}),n.length>e&&n.pop())}function a(){return n}function o(){n=[]}return{get:r,put:i,getEntries:a,clear:o}}var To=function(e,t){return e===t};function Eo(e){return function(t,n){if(t===null||n===null||t.length!==n.length)return!1;for(var r=t.length,i=0;i<r;i++)if(!e(t[i],n[i]))return!1;return!0}}function Do(e,t){var n=typeof t==`object`?t:{equalityCheck:t},r=n.equalityCheck,i=r===void 0?To:r,a=n.maxSize,o=a===void 0?1:a,s=n.resultEqualityCheck,c=Eo(i),l=o===1?Co(c):wo(o,c);function u(){var t=l.get(arguments);if(t===So){if(t=e.apply(null,arguments),s){var n=l.getEntries().find(function(e){return s(e.value,t)});n&&(t=n.value)}l.put(arguments,t)}return t}return u.clearCache=function(){return l.clear()},u}function Oo(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every(function(e){return typeof e==`function`})){var n=t.map(function(e){return typeof e==`function`?`function `+(e.name||`unnamed`)+`()`:typeof e}).join(`, `);throw Error(`createSelector expects all input-selectors to be functions, but received the following types: [`+n+`]`)}return t}function ko(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){for(var t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];var a=0,o,s={memoizeOptions:void 0},c=r.pop();if(typeof c==`object`&&(s=c,c=r.pop()),typeof c!=`function`)throw Error(`createSelector expects an output function after the inputs, but received: [`+typeof c+`]`);var l=s.memoizeOptions,u=l===void 0?n:l,d=Array.isArray(u)?u:[u],f=Oo(r),p=e.apply(void 0,[function(){return a++,c.apply(null,arguments)}].concat(d)),m=e(function(){for(var e=[],t=f.length,n=0;n<t;n++)e.push(f[n].apply(null,arguments));return o=p.apply(null,e),o});return Object.assign(m,{resultFunc:c,memoizedResultFunc:p,dependencies:f,lastResult:function(){return o},recomputations:function(){return a},resetRecomputations:function(){return a=0}}),m}}var Ao=ko(Do);function jo(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(i){return typeof i==`function`?i(n,r,e):t(i)}}}}var Mo=jo();Mo.withExtraArgument=jo;var No=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),Po=function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==`function`&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(o){if(r)throw TypeError(`Generator is already executing.`);for(;n;)try{if(r=1,i&&(a=o[0]&2?i.return:o[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;switch(i=0,a&&(o=[o[0]&2,a.value]),o[0]){case 0:case 1:a=o;break;case 4:return n.label++,{value:o[1],done:!1};case 5:n.label++,i=o[1],o=[0];continue;case 7:o=n.ops.pop(),n.trys.pop();continue;default:if((a=n.trys,!(a=a.length>0&&a[a.length-1]))&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){n.label=o[1];break}if(o[0]===6&&n.label<a[1]){n.label=a[1],a=o;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(o);break}a[2]&&n.ops.pop(),n.trys.pop();continue}o=t.call(e,n)}catch(e){o=[6,e],i=0}finally{r=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},Fo=function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e},Io=Object.defineProperty,Lo=Object.defineProperties,Ro=Object.getOwnPropertyDescriptors,zo=Object.getOwnPropertySymbols,Bo=Object.prototype.hasOwnProperty,Vo=Object.prototype.propertyIsEnumerable,Ho=function(e,t,n){return t in e?Io(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},Uo=function(e,t){for(var n in t||={})Bo.call(t,n)&&Ho(e,n,t[n]);if(zo)for(var r=0,i=zo(t);r<i.length;r++){var n=i[r];Vo.call(t,n)&&Ho(e,n,t[n])}return e},Wo=function(e,t){return Lo(e,Ro(t))},Go=function(e,t,n){return new Promise(function(r,i){var a=function(e){try{s(n.next(e))}catch(e){i(e)}},o=function(e){try{s(n.throw(e))}catch(e){i(e)}},s=function(e){return e.done?r(e.value):Promise.resolve(e.value).then(a,o)};s((n=n.apply(e,t)).next())})},Ko=typeof window<`u`&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]==`object`?bo:bo.apply(null,arguments)};typeof window<`u`&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;function qo(e){if(typeof e!=`object`||!e)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var n=t;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return t===n}var Jo=function(e){return e&&typeof e.match==`function`};function V(e,t){function n(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];if(t){var i=t.apply(void 0,n);if(!i)throw Error(`prepareAction did not return an object`);return Uo(Uo({type:e,payload:i.payload},`meta`in i&&{meta:i.meta}),`error`in i&&{error:i.error})}return{type:e,payload:n[0]}}return n.toString=function(){return``+e},n.type=e,n.match=function(t){return t.type===e},n}var Yo=function(e){No(t,e);function t(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=e.apply(this,n)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.prototype.concat.apply(this,t)},t.prototype.prepend=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e.length===1&&Array.isArray(e[0])?new(t.bind.apply(t,Fo([void 0],e[0].concat(this)))):new(t.bind.apply(t,Fo([void 0],e.concat(this))))},t}(Array),Xo=function(e){No(t,e);function t(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=e.apply(this,n)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.prototype.concat.apply(this,t)},t.prototype.prepend=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e.length===1&&Array.isArray(e[0])?new(t.bind.apply(t,Fo([void 0],e[0].concat(this)))):new(t.bind.apply(t,Fo([void 0],e.concat(this))))},t}(Array);function Zo(e){return pa(e)?lo(e,function(){}):e}function Qo(e){return typeof e==`boolean`}function $o(){return function(e){return es(e)}}function es(e){e===void 0&&(e={});var t=e.thunk,n=t===void 0?!0:t;e.immutableCheck,e.serializableCheck,e.actionCreatorCheck;var r=new Yo;return n&&(Qo(n)?r.push(Mo):r.push(Mo.withExtraArgument(n.extraArgument))),r}var ts=!0;function ns(e){var t=$o(),n=e||{},r=n.reducer,i=r===void 0?void 0:r,a=n.middleware,o=a===void 0?t():a,s=n.devTools,c=s===void 0?!0:s,l=n.preloadedState,u=l===void 0?void 0:l,d=n.enhancers,f=d===void 0?void 0:d,p;if(typeof i==`function`)p=i;else if(qo(i))p=yo(i);else throw Error(`"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers`);var m=o;if(typeof m==`function`&&(m=m(t),!ts&&!Array.isArray(m)))throw Error(`when using a middleware builder function, an array of middleware must be returned`);if(!ts&&m.some(function(e){return typeof e!=`function`}))throw Error(`each middleware provided to configureStore must be a function`);var h=xo.apply(void 0,m),g=bo;c&&(g=Ko(Uo({trace:!ts},typeof c==`object`&&c)));var _=new Xo(h),v=_;Array.isArray(f)?v=Fo([h],f):typeof f==`function`&&(v=f(_));var y=g.apply(void 0,v);return _o(p,u,y)}function rs(e){var t={},n=[],r,i={addCase:function(e,n){var r=typeof e==`string`?e:e.type;if(!r)throw Error("`builder.addCase` cannot be called with an empty action type");if(r in t)throw Error("`builder.addCase` cannot be called with two reducers for the same action type");return t[r]=n,i},addMatcher:function(e,t){return n.push({matcher:e,reducer:t}),i},addDefaultCase:function(e){return r=e,i}};return e(i),[t,n,r]}function is(e){return typeof e==`function`}function as(e,t,n,r){n===void 0&&(n=[]);var i=typeof t==`function`?rs(t):[t,n,r],a=i[0],o=i[1],s=i[2],c;if(is(e))c=function(){return Zo(e())};else{var l=Zo(e);c=function(){return l}}function u(e,t){e===void 0&&(e=c());var n=Fo([a[t.type]],o.filter(function(e){var n=e.matcher;return n(t)}).map(function(e){return e.reducer}));return n.filter(function(e){return!!e}).length===0&&(n=[s]),n.reduce(function(e,n){if(n)if(L(e)){var r=n(e,t);return r===void 0?e:r}else if(pa(e))return lo(e,function(e){return n(e,t)});else{var r=n(e,t);if(r===void 0){if(e===null)return e;throw Error(`A case reducer on a non-draftable value must not return undefined`)}return r}return e},e)}return u.getInitialState=c,u}function os(e,t){return e+`/`+t}function H(e){var t=e.name;if(!t)throw Error("`name` is a required option for createSlice");var n=typeof e.initialState==`function`?e.initialState:Zo(e.initialState),r=e.reducers||{},i=Object.keys(r),a={},o={},s={};i.forEach(function(e){var n=r[e],i=os(t,e),c,l;`reducer`in n?(c=n.reducer,l=n.prepare):c=n,a[e]=c,o[i]=c,s[e]=l?V(i,l):V(i)});function c(){var t=typeof e.extraReducers==`function`?rs(e.extraReducers):[e.extraReducers],r=t[0],i=r===void 0?{}:r,a=t[1],s=a===void 0?[]:a,c=t[2],l=c===void 0?void 0:c,u=Uo(Uo({},i),o);return as(n,function(e){for(var t in u)e.addCase(t,u[t]);for(var n=0,r=s;n<r.length;n++){var i=r[n];e.addMatcher(i.matcher,i.reducer)}l&&e.addDefaultCase(l)})}var l;return{name:t,reducer:function(e,t){return l||=c(),l(e,t)},actions:s,caseReducers:a,getInitialState:function(){return l||=c(),l.getInitialState()}}}var ss=`ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW`,cs=function(e){e===void 0&&(e=21);for(var t=``,n=e;n--;)t+=ss[Math.random()*64|0];return t},ls=[`name`,`message`,`stack`,`code`],us=function(){function e(e,t){this.payload=e,this.meta=t}return e}(),ds=function(){function e(e,t){this.payload=e,this.meta=t}return e}(),fs=function(e){if(typeof e==`object`&&e){for(var t={},n=0,r=ls;n<r.length;n++){var i=r[n];typeof e[i]==`string`&&(t[i]=e[i])}return t}return{message:String(e)}},ps=(function(){function e(e,t,n){var r=V(e+`/fulfilled`,function(e,t,n,r){return{payload:e,meta:Wo(Uo({},r||{}),{arg:n,requestId:t,requestStatus:`fulfilled`})}}),i=V(e+`/pending`,function(e,t,n){return{payload:void 0,meta:Wo(Uo({},n||{}),{arg:t,requestId:e,requestStatus:`pending`})}}),a=V(e+`/rejected`,function(e,t,r,i,a){return{payload:i,error:(n&&n.serializeError||fs)(e||`Rejected`),meta:Wo(Uo({},a||{}),{arg:r,requestId:t,rejectedWithValue:!!i,requestStatus:`rejected`,aborted:e?.name===`AbortError`,condition:e?.name===`ConditionError`})}}),o=typeof AbortController<`u`?AbortController:function(){function e(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return e.prototype.abort=function(){},e}();function s(e){return function(s,c,l){var u=n?.idGenerator?n.idGenerator(e):cs(),d=new o,f;function p(e){f=e,d.abort()}var m=function(){return Go(this,null,function(){var o,m,h,g,_;return Po(this,function(v){switch(v.label){case 0:return v.trys.push([0,4,,5]),m=(n?.condition)?.call(n,e,{getState:c,extra:l}),hs(m)?[4,m]:[3,2];case 1:m=v.sent(),v.label=2;case 2:if(m===!1||d.signal.aborted)throw{name:`ConditionError`,message:`Aborted due to condition callback returning false.`};return h=new Promise(function(e,t){return d.signal.addEventListener(`abort`,function(){return t({name:`AbortError`,message:f||`Aborted`})})}),s(i(u,e,(n?.getPendingMeta)?.call(n,{requestId:u,arg:e},{getState:c,extra:l}))),[4,Promise.race([h,Promise.resolve(t(e,{dispatch:s,getState:c,extra:l,requestId:u,signal:d.signal,abort:p,rejectWithValue:function(e,t){return new us(e,t)},fulfillWithValue:function(e,t){return new ds(e,t)}})).then(function(t){if(t instanceof us)throw t;return t instanceof ds?r(t.payload,u,e,t.meta):r(t,u,e)})])];case 3:return o=v.sent(),[3,5];case 4:return g=v.sent(),o=g instanceof us?a(null,u,e,g.payload,g.meta):a(g,u,e),[3,5];case 5:return _=n&&!n.dispatchConditionRejection&&a.match(o)&&o.meta.condition,_||s(o),[2,o]}})})}();return Object.assign(m,{abort:p,requestId:u,arg:e,unwrap:function(){return m.then(ms)}})}}return Object.assign(s,{pending:i,rejected:a,fulfilled:r,typePrefix:e})}return e.withTypes=function(){return e},e})();function ms(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function hs(e){return typeof e==`object`&&!!e&&typeof e.then==`function`}var gs=function(e,t){return Jo(e)?e.match(t):e(t)};function _s(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return e.some(function(e){return gs(e,t)})}}function vs(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return e.every(function(e){return gs(e,t)})}}function ys(e,t){if(!e||!e.meta)return!1;var n=typeof e.meta.requestId==`string`,r=t.indexOf(e.meta.requestStatus)>-1;return n&&r}function bs(e){return typeof e[0]==`function`&&`pending`in e[0]&&`fulfilled`in e[0]&&`rejected`in e[0]}function xs(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length===0?function(e){return ys(e,[`pending`])}:bs(e)?function(t){var n=e.map(function(e){return e.pending});return _s.apply(void 0,n)(t)}:xs()(e[0])}function Ss(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length===0?function(e){return ys(e,[`rejected`])}:bs(e)?function(t){var n=e.map(function(e){return e.rejected});return _s.apply(void 0,n)(t)}:Ss()(e[0])}function Cs(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=function(e){return e&&e.meta&&e.meta.rejectedWithValue};return e.length===0||bs(e)?function(t){return vs(Ss.apply(void 0,e),n)(t)}:Cs()(e[0])}function ws(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length===0?function(e){return ys(e,[`fulfilled`])}:bs(e)?function(t){var n=e.map(function(e){return e.fulfilled});return _s.apply(void 0,n)(t)}:ws()(e[0])}function Ts(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length===0?function(e){return ys(e,[`pending`,`fulfilled`,`rejected`])}:bs(e)?function(t){for(var n=[],r=0,i=e;r<i.length;r++){var a=i[r];n.push(a.pending,a.rejected,a.fulfilled)}return _s.apply(void 0,n)(t)}:Ts()(e[0])}var Es=`task`,Ds=`listener`,Os=`completed`,ks=`cancelled`;``+ks,``+Os,Ds+``+ks,Ds+``+Os,function(){function e(e){this.code=e,this.name=`TaskAbortError`,this.message=Es+` `+ks+` (reason: `+e+`)`}return e}();var As=`listenerMiddleware`;V(As+`/add`),V(As+`/removeAll`),V(As+`/remove`);var js=`RTK_autoBatch`,Ms=function(){return function(e){var t;return{payload:e,meta:(t={},t[js]=!0,t)}}};typeof queueMicrotask==`function`&&queueMicrotask.bind(typeof window<`u`?window:r.r===void 0?globalThis:r.r),typeof window<`u`&&window.requestAnimationFrame?window.requestAnimationFrame:function(e){return function(t){setTimeout(t,e)}}(10),qa(),r.i();var Ns=function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==`function`&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(o){if(r)throw TypeError(`Generator is already executing.`);for(;n;)try{if(r=1,i&&(a=o[0]&2?i.return:o[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;switch(i=0,a&&(o=[o[0]&2,a.value]),o[0]){case 0:case 1:a=o;break;case 4:return n.label++,{value:o[1],done:!1};case 5:n.label++,i=o[1],o=[0];continue;case 7:o=n.ops.pop(),n.trys.pop();continue;default:if((a=n.trys,!(a=a.length>0&&a[a.length-1]))&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){n.label=o[1];break}if(o[0]===6&&n.label<a[1]){n.label=a[1],a=o;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(o);break}a[2]&&n.ops.pop(),n.trys.pop();continue}o=t.call(e,n)}catch(e){o=[6,e],i=0}finally{r=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},Ps=function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e},Fs=Object.defineProperty,Is=Object.defineProperties,Ls=Object.getOwnPropertyDescriptors,Rs=Object.getOwnPropertySymbols,zs=Object.prototype.hasOwnProperty,Bs=Object.prototype.propertyIsEnumerable,Vs=function(e,t,n){return t in e?Fs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},U=function(e,t){for(var n in t||={})zs.call(t,n)&&Vs(e,n,t[n]);if(Rs)for(var r=0,i=Rs(t);r<i.length;r++){var n=i[r];Bs.call(t,n)&&Vs(e,n,t[n])}return e},Hs=function(e,t){return Is(e,Ls(t))},Us=function(e,t){var n={};for(var r in e)zs.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Rs)for(var i=0,a=Rs(e);i<a.length;i++){var r=a[i];t.indexOf(r)<0&&Bs.call(e,r)&&(n[r]=e[r])}return n},Ws=function(e,t,n){return new Promise(function(r,i){var a=function(e){try{s(n.next(e))}catch(e){i(e)}},o=function(e){try{s(n.throw(e))}catch(e){i(e)}},s=function(e){return e.done?r(e.value):Promise.resolve(e.value).then(a,o)};s((n=n.apply(e,t)).next())})},W;(function(e){e.uninitialized=`uninitialized`,e.pending=`pending`,e.fulfilled=`fulfilled`,e.rejected=`rejected`})(W||={});function Gs(e){return{status:e,isUninitialized:e===W.uninitialized,isLoading:e===W.pending,isSuccess:e===W.fulfilled,isError:e===W.rejected}}function Ks(e){return RegExp(`(^|:)//`).test(e)}var qs=function(e){return e.replace(/\/$/,``)},Js=function(e){return e.replace(/^\//,``)};function Ys(e,t){if(!e)return t;if(!t)return e;if(Ks(t))return t;var n=e.endsWith(`/`)||!t.startsWith(`?`)?`/`:``;return e=qs(e),t=Js(t),``+e+n+t}var Xs=function(e){return[].concat.apply([],e)};function Zs(){return typeof navigator>`u`||navigator.onLine===void 0?!0:navigator.onLine}function Qs(){return typeof document>`u`?!0:document.visibilityState!==`hidden`}var $s=qo;function ec(e,t){if(e===t||!($s(e)&&$s(t)||Array.isArray(e)&&Array.isArray(t)))return t;for(var n=Object.keys(t),r=Object.keys(e),i=n.length===r.length,a=Array.isArray(t)?[]:{},o=0,s=n;o<s.length;o++){var c=s[o];a[c]=ec(e[c],t[c]),i&&=e[c]===a[c]}return i?e:a}var tc=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return fetch.apply(void 0,e)},nc=function(e){return e.status>=200&&e.status<=299},rc=function(e){return/ion\/(vnd\.api\+)?json/.test(e.get(`content-type`)||``)};function ic(e){if(!qo(e))return e;for(var t=U({},e),n=0,r=Object.entries(t);n<r.length;n++){var i=r[n],a=i[0];i[1]===void 0&&delete t[a]}return t}function ac(e){var t=this;e===void 0&&(e={});var n=e,r=n.baseUrl,i=n.prepareHeaders,a=i===void 0?function(e){return e}:i,o=n.fetchFn,s=o===void 0?tc:o,c=n.paramsSerializer,l=n.isJsonContentType,u=l===void 0?rc:l,d=n.jsonContentType,f=d===void 0?`application/json`:d,p=n.jsonReplacer,m=n.timeout,h=n.responseHandler,g=n.validateStatus,_=Us(n,[`baseUrl`,`prepareHeaders`,`fetchFn`,`paramsSerializer`,`isJsonContentType`,`jsonContentType`,`jsonReplacer`,`timeout`,`responseHandler`,`validateStatus`]);return function(e,n){return Ws(t,null,function(){var t,i,o,l,d,y,b,x,S,C,w,T,E,D,O,k,ee,te,ne,re,A,ie,ae,oe,se,ce,le,ue,de,fe,pe,j,me,he,ge,_e;return Ns(this,function(M){switch(M.label){case 0:return t=n.signal,i=n.getState,o=n.extra,l=n.endpoint,d=n.forced,y=n.type,x=typeof e==`string`?{url:e}:e,S=x.url,C=x.headers,w=C===void 0?new Headers(_.headers):C,T=x.params,E=T===void 0?void 0:T,D=x.responseHandler,O=D===void 0?h??`json`:D,k=x.validateStatus,ee=k===void 0?g??nc:k,te=x.timeout,ne=te===void 0?m:te,re=Us(x,[`url`,`headers`,`params`,`responseHandler`,`validateStatus`,`timeout`]),A=U(Hs(U({},_),{signal:t}),re),w=new Headers(ic(w)),ie=A,[4,a(w,{getState:i,extra:o,endpoint:l,forced:d,type:y})];case 1:ie.headers=M.sent()||w,ae=function(e){return typeof e==`object`&&(qo(e)||Array.isArray(e)||typeof e.toJSON==`function`)},!A.headers.has(`content-type`)&&ae(A.body)&&A.headers.set(`content-type`,f),ae(A.body)&&u(A.headers)&&(A.body=JSON.stringify(A.body,p)),E&&(oe=~S.indexOf(`?`)?`&`:`?`,se=c?c(E):new URLSearchParams(ic(E)),S+=oe+se),S=Ys(r,S),ce=new Request(S,A),le=new Request(S,A),b={request:le},de=!1,fe=ne&&setTimeout(function(){de=!0,n.abort()},ne),M.label=2;case 2:return M.trys.push([2,4,5,6]),[4,s(ce)];case 3:return ue=M.sent(),[3,6];case 4:return pe=M.sent(),[2,{error:{status:de?`TIMEOUT_ERROR`:`FETCH_ERROR`,error:String(pe)},meta:b}];case 5:return fe&&clearTimeout(fe),[7];case 6:j=ue.clone(),b.response=j,he=``,M.label=7;case 7:return M.trys.push([7,9,,10]),[4,Promise.all([v(ue,O).then(function(e){return me=e},function(e){return ge=e}),j.text().then(function(e){return he=e},function(){})])];case 8:if(M.sent(),ge)throw ge;return[3,10];case 9:return _e=M.sent(),[2,{error:{status:`PARSING_ERROR`,originalStatus:ue.status,data:he,error:String(_e)},meta:b}];case 10:return[2,ee(ue,me)?{data:me,meta:b}:{error:{status:ue.status,data:me},meta:b}]}})})};function v(e,t){return Ws(this,null,function(){var n;return Ns(this,function(r){switch(r.label){case 0:return typeof t==`function`?[2,t(e)]:(t===`content-type`&&(t=u(e.headers)?`json`:`text`),t===`json`?[4,e.text()]:[3,2]);case 1:return n=r.sent(),[2,n.length?JSON.parse(n):null];case 2:return[2,e.text()]}})})}}var oc=function(){function e(e,t){t===void 0&&(t=void 0),this.value=e,this.meta=t}return e}(),sc=V(`__rtkq/focused`),cc=V(`__rtkq/unfocused`),lc=V(`__rtkq/online`),uc=V(`__rtkq/offline`),dc=!1;function fc(e,t){function n(){var t=function(){return e(sc())},n=function(){return e(cc())},r=function(){return e(lc())},i=function(){return e(uc())},a=function(){window.document.visibilityState===`visible`?t():n()};return dc||typeof window<`u`&&window.addEventListener&&(window.addEventListener(`visibilitychange`,a,!1),window.addEventListener(`focus`,t,!1),window.addEventListener(`online`,r,!1),window.addEventListener(`offline`,i,!1),dc=!0),function(){window.removeEventListener(`focus`,t),window.removeEventListener(`visibilitychange`,a),window.removeEventListener(`online`,r),window.removeEventListener(`offline`,i),dc=!1}}return t?t(e,{onFocus:sc,onFocusLost:cc,onOffline:uc,onOnline:lc}):n()}var pc;(function(e){e.query=`query`,e.mutation=`mutation`})(pc||={});function mc(e){return e.type===pc.query}function hc(e){return e.type===pc.mutation}function gc(e,t,n,r,i,a){return _c(e)?e(t,n,r,i).map(vc).map(a):Array.isArray(e)?e.map(vc).map(a):[]}function _c(e){return typeof e==`function`}function vc(e){return typeof e==`string`?{type:e}:e}function yc(e){return e!=null}var bc=Symbol(`forceQueryFn`),xc=function(e){return typeof e[bc]==`function`};function Sc(e){var t=e.serializeQueryArgs,n=e.queryThunk,r=e.mutationThunk,i=e.api,a=e.context,o=new Map,s=new Map,c=i.internalActions,l=c.unsubscribeQueryResult,u=c.removeMutationResult,d=c.updateSubscriptionOptions;return{buildInitiateQuery:v,buildInitiateMutation:y,getRunningQueryThunk:m,getRunningMutationThunk:h,getRunningQueriesThunk:g,getRunningMutationsThunk:_,getRunningOperationPromises:p,removalWarning:f};function f(){throw Error(`This method had to be removed due to a conceptual bug in RTK.
1
+ __useblocks__.define(`static/core/6c7ae547.js`,[`require`,`exports`,`module`,`static/core/4dc58c63.js`,`static/core/91f27762.js`,`static/core/613230e7.js`,`react`,`prop-types`,`react-dom`,`react-router-dom`],function(e,t,n){let r=e("./4dc58c63.js"),i=e("./91f27762.js"),a=e("./613230e7.js"),o=e("react");o=r.l(o);let s=e("prop-types");s=r.l(s);let c=e("react-dom"),l=e("react-router-dom");var u=class e{_inner;_isDisposed=!1;constructor(e=[]){this._inner=e}addDisposable(t){return this._inner.push(t),t instanceof e&&t.addDispose(()=>{this.removeDisposable(t)}),t}addDispose(e){this.addDisposable({dispose:e})}removeDisposable(e){let t=this._inner.indexOf(e);t>=0&&this._inner.splice(t,1)}isDisposed(){return this._isDisposed}dispose(){if(!this._isDisposed){this._isDisposed=!0;for(let e of[...this._inner])e.dispose()}}};function d(e){return`service_container_${e}`}var f=class e extends u{_parent;_injectCallbacks=[];_injections=Object.create(null);_runCallbacks(e){this._injectCallbacks.forEach(t=>t(e))}constructor(e=null){super(),this._parent=e,e&&this.addDisposable(e.onInject(e=>this._runCallbacks(e)))}onInject=e=>(this._injectCallbacks.push(e),{dispose:()=>{let t=this._injectCallbacks.indexOf(e);t>=0&&this._injectCallbacks.splice(t,1)}});inject(e,t){this._injections[e]=()=>t,this._runCallbacks(e)}injectFactory(e,t,n){let r=this._injections[e],i=typeof r==`function`?r():r,a=this._injections[e]=()=>(i=t(this,i),i);n&&a(),this._runCallbacks(e)}_find(e,t=!0){return this._injections[e]||t&&this._parent?._find(e)}_onInject(e,t,n=new u){return n.addDisposable(this.onInject(r=>{e===r&&(n.dispose(),t(this.getInstance(r)))})),this._parent&&n.addDisposable(this._parent._onInject(e,t,n)),this.addDisposable(n),n}getInstance(e,t=!0){let n=this._find(e,t);if(typeof n==`function`)return n()}getOrCreateInstance(e,t){let n=this._find(e);if(typeof n==`function`)return n();let r=t(this);return this.inject(e,r),r}getInstanceAsync(e){let t=this._find(e);return typeof t==`function`?Promise.resolve(t()):new Promise(t=>this._onInject(e,()=>t(this.getInstance(e))))}addService(e,t){let n=d(e);this.injectFactory(n,(e,n=[])=>n.indexOf(t)<0?[...n,t]:n);let r=new u;return r.addDispose(()=>{this.injectFactory(n,(e,n=[])=>n.filter(e=>e!==t))}),r}addServiceFactory(e,t,n){let r=d(e),i;this.injectFactory(r,(e,n=[])=>(i=t(e,i),i===void 0?n:n.indexOf(i)<0?[...n,i]:n),n);let a=new u;return a.addDispose(()=>{this.injectFactory(r,(e,t=[])=>i===void 0?t:t.filter(e=>e!==i))}),a}getServices(e){let t=d(e);return[...this.getInstance(t,!1)||[],...this._parent?.getServices(e)||[]]}createChild(){return new e(this)}getOrCreateIsolatedContainer(t){return this.getOrCreateInstance(t,()=>{let n=this._parent?.getOrCreateIsolatedContainer(t);return new e(n)})}dispose(){this._injections=Object.create(null)}};function p(e){return e.startsWith(`__`)?e:`__${e}__`}function m(e){if(typeof globalThis>`u`)throw Error(`[di] globalThis is required for namespace container access.`);let t=p(e),n=globalThis;return n[t]??={}}function h(e){return typeof e==`object`&&!!e&&typeof e.inject==`function`&&typeof e.getInstance==`function`}function g(e){return p(e||`useblocks`)}function _(e){let t=m(g(e));if(h(t.container))return t.container;let n=new f(null);return t.container=n,n}function v(e){return _(e)}function y(){let e=new Date().getTime(),t=typeof performance<`u`&&performance.now&&performance.now()*1e3||0;return`xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx`.replace(/[xy]/g,function(n){let r=Math.random()*16;return e>0?(r=(e+r)%16|0,e=Math.floor(e/16)):(r=(t+r)%16|0,t=Math.floor(t/16)),(n===`x`?r:r&3|8).toString(16)})}function b(){return typeof crypto<`u`&&typeof crypto.randomUUID==`function`?crypto.randomUUID():y()}function x(e=b()){return e}function S(){return`core`}function C(e){if(typeof globalThis>`u`)return;let t=S(),n=globalThis[e]??{};globalThis[e]=n;let r=n.__diagnostics??={},i=r.diModuleEval??={evalCount:0,records:[],duplicateWarned:!1};i.records.push({buildSource:t,timestamp:Date.now(),stack:Error().stack}),i.evalCount+=1,!(i.evalCount<=1||i.duplicateWarned)&&(i.duplicateWarned=!0,i.evalCount,i.records)}function w(){return`__useblocks__`}function T(e,t){if(C(t),typeof globalThis>`u`)return e;let n=S(),r=globalThis,i=r[t]=r[t]||{},a=i.__diagnostics=i.__diagnostics||{},o=a.dependencyResolver=a.dependencyResolver||{entries:[],warnings:[]},s={container:e,source:`packages/runtime-core/di/index.ts`,buildSource:n,timestamp:Date.now(),stack:Error().stack};if(o.entries.push(s),o.entries.length>1){let e=o.entries[0];if(o.entries.some(t=>t.container!==e.container)&&!o.duplicateWarningShown){o.duplicateWarningShown=!0;let e={message:`[di] Multiple DependencyResolver instances detected on namespace`,namespaceKey:t,buildSource:n,entries:o.entries};o.warnings.push(e)}}return e}var E;function D(){if(E)return E;let e=w();return E=T(_(e),e),E}var O=new Proxy({},{get(e,t,n){let r=D(),i=Reflect.get(r,t,n);return typeof i==`function`?i.bind(r):i}}),k=class e extends Error{code;httpStatus;details;constructor(t,n,r,i){super(t),this.name=`FileManagerApiError`,this.code=n,this.httpStatus=r,this.details=i;let a=Error.captureStackTrace;a&&a(this,e)}},ee=class extends u{_options;_listeners=[];constructor(e={}){super(),this._options=e}getListeners(e){return this._listeners.flatMap(([t])=>typeof t==`function`?t:t.getListeners(e))}hasListeners(){return this._listeners.length>0}_addListener(e,t=0,n){if(this.isDisposed())return{dispose:()=>{}};let r=this._listeners,i=this._options;n&&typeof e==`function`&&(e=e.bind(n));let a=r.findIndex(([,e])=>e<t),o=[e,t];return r.splice(a>=0?a:r.length,0,o),r.length===1&&i.onFirstListenerAdd&&i.onFirstListenerAdd(),{dispose:()=>{let e=r.indexOf(o);e>=0&&(r.splice(e,1),!r.length&&i.onLastListenerRemove&&i.onLastListenerRemove())}}}on=this._addListener.bind(this);event=this._addListener.bind(this);once=(e,t=0,n)=>{let r=this._addListener((...t)=>(r?.dispose(),n?e.call(n,...t):e(...t)),t);return r};un=e=>{let t=this._listeners.findIndex(([t])=>t===e);t>=0&&(this._listeners.splice(t,1),this._listeners.length===0&&this._options.onLastListenerRemove&&this._options.onLastListenerRemove())};dispose(){this._listeners.splice(0,this._listeners.length),this._options.onLastListenerRemove&&this._options.onLastListenerRemove(),super.dispose()}},te=class extends ee{execute(e,t){for(let n of t)try{n(...e)}catch{}}fire(...e){if(!this.isDisposed()){let t=this.execute(e,this.getListeners(e));return t===void 0?void 0:t}}},ne=class extends te{execute([e],t){for(let n of t)try{n(e)}catch{}}},re=class extends te{_suspendCounter=0;_wasFired=!1;execute([e],t){if(this._suspendCounter)this._wasFired=!0;else for(let n of t)try{n(e)}catch{}}suspend(){this._suspendCounter++}resume(){--this._suspendCounter===0&&this._wasFired&&(this.fire(),this._wasFired=!1)}},A=class extends te{async execute([e],t){let n=[];for(let r of t)try{n.push(await r(e))}catch{}return n}};function ie(e,t=0){let n=new ee,r=e(n,t);return r&&n.addDisposable(r),n.event}function ae(e,t,n=0){let r=new te,i=e((...e)=>{if(t(...e))return r.fire(...e)},n);return i&&r.addDisposable(i),r.event}function oe(e,t=0,n=0){let r=new te,i,a,o=e((...e)=>{a=e,i||=setTimeout(()=>{a&&r.fire(...a),i=void 0},t)},n);return o&&r.addDisposable(o),r.event}var se=class{_listeners=[];add(e,t=0,n){let r={fn:n?e.bind(n):e,priority:t};return this._listeners.push(r),{dispose:()=>{let e=this._listeners.indexOf(r);e>=0&&this._listeners.splice(e,1)}}}async run(e){let t=[...this._listeners].sort((e,t)=>t.priority-e.priority);for(let{fn:n}of t){let t=await n(e);typeof t==`object`&&t&&!Array.isArray(t)&&!(t instanceof Date)&&!(t instanceof RegExp)&&Object.assign(e,t)}return e}},ce=x(`ELEMENT_INSERT_HTML_PIPELINE`),le=x(`BLOCK_INSERT_HTML_PIPELINE`);function ue(e){return e.getOrCreateInstance(ce,()=>new se)}function de(e){return e.getOrCreateInstance(le,()=>new se)}async function fe(e,t){return e?ue(e).run({...t}):t}async function pe(e,t){return e?de(e).run({...t}):t}function j(e){return e}function me(e){return e&&typeof e==`object`}function he(e,t){return e&&typeof e==`object`&&e.operationId===t}var ge=j(`INIT_MESSAGE`),_e=j(``);function M(){return Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15)}var ve=class extends u{_listeners=Object.create(null);addListenerAsync=(e,t,n=0,r)=>{let i=this._listeners[e]||(this._listeners[e]=[]);r&&typeof t==`function`&&(t=t.bind(r));let a=i.findIndex(([e,t])=>n<=t),o=[t,n];return this.isDisposed()||i.splice(a>=0?a:i.length,0,o),{dispose(){let e=i.indexOf(o);e>=0&&i.splice(e,1)}}};fireAsync=(e,t)=>{if(!this.isDisposed()){let n=this._listeners[e]||(this._listeners[e]=[]),r;for(let e=0;e<n.length;e++){let t=n[e][0],i=r;r=e=>t(e,i)}if(r)return r(t)}};addListener=(e,t,n=0)=>this.addListenerAsync(e,(e,n)=>{try{t(e)}catch{}return n&&n(e)},n)},ye=class extends u{_singleton;_target;_inited=!1;_emitter=this.addDisposable(new ve);constructor(e,t){super(),this._singleton=t,window.addEventListener(`message`,this._onReceiveMessage),this.addListener(ge,()=>{this._inited||(this._inited=!0,this.send(ge))}),e&&this.setTarget(e)}_onReceiveMessage=e=>{let t=e.data;if(me(t)&&e.source==this.target||this._singleton&&he(t,ge)){let n=this._emitter.fireAsync(t.operationId||_e,t.operationId===void 0?e:t.data),r=t.result,i=t.error;r&&i&&Promise.resolve(n).then(e=>this._sendMessage(r,e),e=>this._sendMessage(i,e))}};setTarget(e){this._target!==e&&(this._target=e,e&&this._postMessage(e,{operationId:ge,data:{}}))}getTarget(){return this._target}get target(){return this._target}_postMessage(e,t){try{e.postMessage(t,`*`)}catch(e){throw e?.name===`DataCloneError`&&typeof t?.data==`object`&&t?.data!==null&&t.data,e}}_sendMessage(e,t,n=!0){if(!n&&!this.isInited())return;let r=this.addDisposable(this.onInit(n=>{let i=e?{operationId:e,data:t}:t;try{this._postMessage(n,{...i})}finally{r.dispose()}}))}send(e,t,n){return typeof e==`string`?this._sendMessage(e,t,n):this._sendMessage(_e,e,t)}sendAsync(e,t,n=!0){if(!n&&!this.isInited())return Promise.resolve();let r=j(M()),i=j(M());return new Promise((n,a)=>{let o=this.addDisposable(new u);o.addDisposable(this.onInit(s=>{try{this._postMessage(s,{operationId:e,data:t,result:r,error:i})}catch(e){o.dispose(),a(e);return}o.addDisposable(this._onMessage(r,e=>{n(e),o.dispose()})),o.addDisposable(this._onMessage(i,e=>{a(e),o.dispose()}))}))})}_onMessage(e,t,n=0){return this._emitter.addListener(e,t,n)}addListener(e,t,n){return t?this._onMessage(e,t,n):this._onMessage(_e,e)}addListenerAsyncPipe(e,t,n=0){return this._emitter.addListenerAsync(e,t,n)}addListenerAsync(e,t,n=0){return this._emitter.addListenerAsync(e,async(e,n)=>{let r=await t(e);return n?n(e):r},n)}isInited(){return this._inited}get inited(){return this._inited}onInit(e,t=!0,n=0){let r=this.addDisposable(new u);return this._inited&&this._target?t&&Promise.resolve().then(()=>{!this._inited||!this._target?r.addDisposable(this.onInit(e,t,n)):e(this._target)}):r.addDisposable(this._onMessage(ge,()=>{e(this._target)},n)),r}dispose(){window.removeEventListener(`message`,this._onReceiveMessage),super.dispose()}};function be(e){return x(e)}var xe=x(),Se=be(`HANDLE_ATOM_INSERT`),Ce=x(),we=j(`SANDBOX_EXTENSION_SCRIPT_STATUS`),Te=x(`MESSAGE_SERVICE`),Ee=be(`SETTINGS_PANEL_EVENT`),De=`advanced`,Oe=be(`MODAL_SHOW_EVENT`),ke=be(`MODAL_CLOSE_EVENT`),Ae=be(`MODAL_UPDATE_EVENT`),je=`application_block_inserted`,Me=class{_context;constructor(e){this._context=e}get _container(){return this._context.container}handleBeforeInject(e,t,n){return this._container.getOrCreateInstance(le,()=>new se).add(e,t??0,n)}handleInject(e,t,n){let r=this._container.getOrCreateInstance(Te,()=>new ye),i=n?e.bind(n):e;return r.addListener(je,i,t)}},Ne=class{_factories=new Map;add(e,t){let n=e;return this._factories.set(n,t),{dispose:()=>{this._factories.get(n)===t&&this._factories.delete(n)}}}get(e){return this._factories.get(e)}},Pe=x(`DomComponentRegistry`);function Fe(e,t=Pe){return O.getOrCreateInstance(t,()=>new Ne)}function Ie(e){return typeof e==`function`}function Le(e){return(0,o.isValidElement)(e)}function Re(e){return typeof e==`function`||Le(e)}function ze(e){return typeof e==`object`&&!!e&&`type`in e&&`props`in e&&!Le(e)}function Be(e,t){return(0,o.createElement)(e,t)}function Ve(e){return class extends o.Component{_ref=(0,o.createRef)();_instance;componentDidMount(){this._ref.current&&(this._instance=e(this.props),this._ref.current.appendChild(this._instance.node))}componentDidUpdate(e){this._instance?.update&&this._instance.update(this.props)}componentWillUnmount(){this._instance?.dispose&&this._instance.dispose()}render(){return(0,o.createElement)(`div`,{ref:this._ref})}}}var He=class{_domComponentRegistry;_components=new Map;_domAdapters=new Map;constructor(e){this._domComponentRegistry=e}add(e,t){return this.override(e,()=>t)}addDom(e,t){let n=e;this._domAdapters.delete(n);let r=this._domComponentRegistry.add(e,t);return{dispose:()=>{this._domAdapters.delete(n),r.dispose()}}}override(e,t){let n=e,r=this._components.get(n);r||(r={replacers:[]},this._components.set(n,r));let i=()=>{let e=r.replacers.findIndex(e=>e.replacer===t);e>=0&&(r.replacers.splice(e,1),this._recomputeComponent(n,r))};return r.replacers.push({replacer:t,dispose:i}),this._recomputeComponent(n,r),{dispose:i}}_recomputeComponent(e,t){t.component=t.replacers.reduce((e,{replacer:t})=>t(e),void 0)}get(e){if(Re(e))return e;let t=e,n=this._components.get(t);if(n?.component)return n.component;let r=this._domComponentRegistry.get(e);if(r){let e=this._domAdapters.get(t);return e||(e=Ve(r),this._domAdapters.set(t,e)),e}}_resolveComponentInput(e){if(e==null)return null;if(typeof e==`number`||typeof e==`boolean`||Le(e))return e;if(typeof e==`string`){let t=this.get(e);return Le(t)?t:t?Be(t):e}if(Ie(e))return Be(e);if(ze(e)){let t=this.get(e.type);return Le(t)?t:t?Be(t,e.props):null}return null}getReactNode(e){return this._resolveComponentInput(e)}getReactElement(e){let t=this._resolveComponentInput(e);return Le(t)?t:typeof t==`string`||t==null||typeof t==`boolean`||typeof t==`number`?(0,o.createElement)(o.Fragment,null,t):(0,o.createElement)(o.Fragment,null)}},Ue=x(`ComponentRegistry`);function We(e,t=Ue){return O.getOrCreateInstance(t,()=>new He(Fe(O,Pe)))}function Ge(e,t){return e.getOrCreateInstance(t,()=>new A)}var Ke=class{_context;constructor(e){this._context=e}get _container(){return this._context.container}getNames(){return new Promise(e=>{let t=this._container.addService(xe,{execute:n=>{t.dispose(),e(n.value.map(e=>({name:e.name,html:e.html})))}})})}update(e,t){let n=this._container,r=We(n);return n.addService(xe,{execute:n=>{let i=n.value.find(t=>t.name===e);if(i){let{icon:e,title:n,fallbackTooltip:a,...o}=t;e&&(i.icon=r.getReactNode(e)),n&&(i.title=r.getReactNode(n)),a&&(i.fallbackTooltip=r.getReactNode(a)),Object.assign(i,o)}}})}delete(e){this._container.addService(xe,{execute:t=>{let n=t.value.findIndex(t=>t.name===e);n>=0&&t.value.splice(n,1)}})}insert(e,t){let n=this._container,r=We(n);return n.addService(xe,{execute:n=>{n.value.splice(t??n.value.length,0,{...e,title:r.getReactNode(e.title),icon:r.getReactNode(e.icon),fallbackTooltip:r.getReactNode(e.fallbackTooltip)})}})}handleBeforeInject(e,t,n){return this._container.getOrCreateInstance(ce,()=>new se).add(e,t??0,n)}handleInject(e,t,n){return Ge(this._container,Se).event(t=>{e({name:t.name,className:t.className||``,html:t.html})},t,n)}},qe=class{_messageService;constructor(e){this._messageService=e.container.getOrCreateInstance(Te,()=>new ye)}send(e,t,n){this._messageService.send(e,t,n)}sendAsync(e,t,n=!0){return this._messageService.sendAsync(e,t,n)}addListener(e,t,n){return this._messageService.addListener(e,t,n)}addListenerAsync(e,t,n=0){return this._messageService.addListenerAsync(e,t,n)}onInit(e,t=!0,n=0){return this._messageService.onInit(e,t,n)}isInited(){return this._messageService.isInited()}};function Je(e){return Object.fromEntries(Object.entries(e).filter(([e,t])=>t!==void 0))}var Ye=class{_context;_showModalEmitter;_closeModalEmitter;_updateModalEmitter;constructor(e){this._context=e;let t=e.container;this._showModalEmitter=Ge(t,Oe),this._closeModalEmitter=Ge(t,ke),this._updateModalEmitter=Ge(t,Ae)}get _container(){return this._context.container}show(e){let t=We(this._container),n=`modal_${Date.now()}_${Math.random().toString(36).substr(2,9)}`,r=e.modalProps;return this._showModalEmitter.fire({...e,content:t.getReactNode(e.content),title:t.getReactNode(e.title),id:n,modalProps:r?{...r,footer:t.getReactNode(r.footer),okText:t.getReactNode(r.okText),cancelText:t.getReactNode(r.cancelText),closeIcon:t.getReactNode(r.closeIcon)}:void 0}),n}close(e){this._closeModalEmitter.fire(e)}closeAll(){this._closeModalEmitter.fire()}update(e,t){let n=We(this._container),r=t.modalProps;this._updateModalEmitter.fire(Je({...t,content:n.getReactNode(t.content),title:n.getReactNode(t.title),id:e,modalProps:r?{...r,footer:n.getReactNode(r.footer),okText:n.getReactNode(r.okText),cancelText:n.getReactNode(r.cancelText),closeIcon:n.getReactNode(r.closeIcon)}:void 0}))}},Xe=class{_registration;_loadedDisposable;loaded;ready;_loadedSettled=!1;_readySettled=!1;constructor(e,t){this._registration=e,this._loadedDisposable=t,this.loaded=new Promise((e,t)=>{let n=()=>this._loadedDisposable.dispose(),r=()=>{this._loadedSettled||(this._loadedSettled=!0,this._readySettled&&n(),e())},i=e=>{this._loadedSettled||(this._loadedSettled=!0,this._readySettled&&n(),t(e))};this._resolveLoaded=r,this._rejectLoaded=i}),this.ready=new Promise((e,t)=>{let n=()=>this._loadedDisposable.dispose(),r=()=>{this._readySettled||(this._readySettled=!0,this._loadedSettled&&n(),e())},i=e=>{this._readySettled||(this._readySettled=!0,this._loadedSettled&&n(),t(e))};this._resolveReady=r,this._rejectReady=i})}_resolveLoaded=()=>{};_rejectLoaded=()=>{};_resolveReady=()=>{};_rejectReady=()=>{};resolveLoaded(){this._resolveLoaded()}resolveReady(){this._resolveReady()}rejectLoad(e){this._rejectLoaded(e),this._rejectReady(e)}rejectReady(e){this._rejectReady(e)}dispose(){this._registration.dispose();let e=Error(`Sandbox script registration disposed before completion.`);this.rejectLoad(e),this.rejectReady(e)}},Ze=class{_context;constructor(e){this._context=e}get _container(){return this._context.container}get _messageService(){return this._container.getOrCreateInstance(Te,()=>new ye)}_createScriptHandle(e,t){let n=new Xe(t,this._messageService.addListener(we,t=>{if(t.key===e){if(t.phase===`load`&&t.status===`success`){n.resolveLoaded();return}if(t.phase===`ready`&&t.status===`success`){n.resolveReady();return}if(t.phase===`load`){n.rejectLoad(Error(t.error||`Sandbox script "${e}" failed to load.`));return}n.rejectReady(Error(t.error||`Sandbox script "${e}" failed to initialize.`))}}));return n}registerSandboxCSS(e){return this._container.addService(Ce,{type:`link`,key:e,parent:`head`,attributes:{rel:`stylesheet`,type:`text/css`,href:e}})}registerSandboxCSSCode(e,t){return this._container.addService(Ce,{type:`style`,key:e,parent:`head`,attributes:{type:`text/css`},innerHTML:t})}registerSandboxScript(e){let t=this._container.addService(Ce,{type:`script`,key:e,parent:`head`,attributes:{src:e,type:`text/javascript`}});return this._createScriptHandle(e,t)}registerSandboxScriptCode(e,t){let n=this._container.addService(Ce,{type:`script`,key:e,parent:`head`,attributes:{type:`text/javascript`},innerHTML:t});return this._createScriptHandle(e,n)}};function Qe(){let e=globalThis.crypto;if(e&&typeof e.randomUUID==`function`)return e.randomUUID();if(e&&typeof e.getRandomValues==`function`){let t=new Uint8Array(16);return e.getRandomValues(t),Array.from(t,e=>e.toString(16).padStart(2,`0`)).join(``)}return`nohwcrypto-${Date.now()}`}function $e(){return`__settingsPanel:${Qe()}`}function et(e,t){return{type:e,props:t}}function tt(e){return(0,o.isValidElement)(e)}function nt(e){return typeof e==`object`&&!!e&&`type`in e&&`props`in e&&!tt(e)}function rt(e,t,n){if(t==null||typeof t==`number`||typeof t==`boolean`||typeof t==`string`)return t;if(tt(t)){let r=$e();return n(e.add(r,t)),et(r,{})}if(typeof t==`function`){let r=$e();return n(e.add(r,t)),et(r,{})}if(nt(t)){let r=t.type;if(typeof r==`string`)return t;if(tt(r)||typeof r==`function`){let i=$e();return n(e.add(i,r)),et(i,t.props)}return t}return t}var it={SandboxScriptApi:Ze,ElementsApi:Ke,BlocksApi:Me,MessageService:qe,SettingsPanelApi:class{_context;_panelRegistrationDisposables=[];constructor(e){this._context=e}get _container(){return this._context.container}_clearPanelRegistrations(){for(let e of this._panelRegistrationDisposables)e.dispose();this._panelRegistrationDisposables.length=0}_trackRegistration(e){this._panelRegistrationDisposables.push(e)}showSettingsPanel(e){this._clearPanelRegistrations();let t=We(this._container),n=e=>this._trackRegistration(e),r=rt(t,e.content,n),i=e.advancedTabs?.map(e=>({...e,content:rt(t,e.content,n)})),a=e.instanceKey??Qe();Ge(this._container,Ee).fire({...e,content:r,advancedTabs:i,instanceKey:a,type:De})}closeSettingsPanel(){this._clearPanelRegistrations(),Ge(this._container,Ee).fire(null)}},ModalApi:Ye};function at(e){if(e.meta!==void 0&&e.meta!==null&&typeof e.meta==`object`)return e.meta;let t=e.catalogExtra?.meta;if(typeof t==`object`&&t)return t}function ot(e,t){let n=e.insertFrom??t?.type,r=t?.blockId??(e.id!=null&&e.id!==``?String(e.id):void 0),i=t?.project??(e.project!==void 0&&e.project!==null?String(e.project):void 0);return{type:t?.type??n,insertFrom:n,name:t?.name??e.name,blockId:r,project:i,fragmentRole:e.fragmentRole,id:r,title:e.title??void 0,blockType:e.type,meta:at(e)}}function st(e,t){return t?ot(t,e):{type:e.type,name:e.name,blockId:e.blockId,project:e.project,insertFrom:e.type}}function N(e){return x(e)}var ct;(function(e){e.BEFORE_SAVE_EMAIL=N(),e.ON_SAVEBUTTON_CLICK_ID=N(),e.ON_NEXTBUTTON_CLICK_ID=N(),e.ON_PREVIOUSBUTTON_CLICK_ID=N(),e.ON_MODEL_CHANGE=N(),e.WILL_EMAIL_INIT_ID=N(),e.ON_EMAIL_INIT_ID=N(),e.ON_BLOCK_INIT_ID=N(),e.ON_CONTENT_CHANGED_ID=N(),e.ON_PREHEADER_CHANGED_ID=N(),e.ON_SUBJECT_CHANGED_ID=N(),e.ON_EMAIL_CHANGED_ID=N(),e.ON_BLOCK_CHANGED_ID=N(),e.ON_CHUNKS_LOADED=N(),e.ON_SEND_TESTEMAIL_ID=N(),e.ON_SEND_LIVEPREVIEW_ID=N(),e.ON_SHARE_ID=N(),e.ON_SHOW_PREVIEW_ID=N(),e.ON_EMAIL_CLONE_ID=N(),e.ON_SEND_EMAIL_MODAL_ID=N(),e.ON_NOTIFICATION=N(),e.READ_LOCALE=N(),e.ON_TRANSLATE_ID=N(),e.ON_CODE_VALIDATE_ID=N(),e.UPLOAD_EVENT_ID=N(),e.PROXY_URL_EVENT_ID=N(),e.FILE_PROXY_EVENT_ID=N(),e.ON_LIMIT_ID=N(),e.ON_GLOBAL_BLOCK_PROPAGATE_UPDATE_ID=N(),e.ON_BROWSER_EXTENSION_DETECTED_ID=N()})(ct||={});function lt(e,t){return e.getOrCreateInstance(t,()=>new A).event}function ut(e,t){return e.getOrCreateInstance(t,()=>new A)}var dt=`Not implemented in plugin`,ft=x(),pt=x(),mt=x(),ht=x(),gt=x(),_t=x(),vt=x(),yt=x(`PluginCollection`),bt=N(`APP_LOAD_EVENT`),xt=N(`CONFIG_CHANGED_EVENT`),P=function(e){return e.Json=`application/json`,e.FormData=`multipart/form-data`,e.UrlEncoded=`application/x-www-form-urlencoded`,e.Text=`text/plain`,e}({}),St=class{baseUrl=`https://api.emailmaker.ru/wp-json`;securityData=null;securityWorker;abortControllers=new Map;customFetch=(...e)=>fetch(...e);baseApiParams={credentials:`same-origin`,headers:{},redirect:`follow`,referrerPolicy:`no-referrer`};constructor(e={}){Object.assign(this,e)}setSecurityData=e=>{this.securityData=e};encodeQueryParam(e,t){return`${encodeURIComponent(e)}=${encodeURIComponent(typeof t==`number`?t:`${t}`)}`}addQueryParam(e,t){return this.encodeQueryParam(t,e[t])}addArrayQueryParam(e,t){return e[t].map(e=>this.encodeQueryParam(t,e)).join(`&`)}toQueryString(e){let t=e||{};return Object.keys(t).filter(e=>t[e]!==void 0).map(e=>Array.isArray(t[e])?this.addArrayQueryParam(t,e):this.addQueryParam(t,e)).join(`&`)}addQueryParams(e){let t=this.toQueryString(e);return t?`?${t}`:``}contentFormatters={"application/json":e=>e!==null&&(typeof e==`object`||typeof e==`string`)?JSON.stringify(e):e,"text/plain":e=>e!==null&&typeof e!=`string`?JSON.stringify(e):e,"multipart/form-data":e=>Object.keys(e||{}).reduce((t,n)=>{let r=e[n];return t.append(n,r instanceof Blob?r:typeof r==`object`&&r?JSON.stringify(r):`${r}`),t},new FormData),"application/x-www-form-urlencoded":e=>this.toQueryString(e)};mergeRequestParams(e,t){return{...this.baseApiParams,...e,...t||{},headers:{...this.baseApiParams.headers||{},...e.headers||{},...t&&t.headers||{}}}}createAbortSignal=e=>{if(this.abortControllers.has(e)){let t=this.abortControllers.get(e);return t?t.signal:void 0}let t=new AbortController;return this.abortControllers.set(e,t),t.signal};abortRequest=e=>{let t=this.abortControllers.get(e);t&&(t.abort(),this.abortControllers.delete(e))};async request({body:e,secure:t,path:n,type:r,query:i,format:a,baseUrl:o,cancelToken:s,extraQuery:c,proxyHandler:l,...u}){let d=(typeof t==`boolean`?t:this.baseApiParams.secure)&&this.securityWorker&&await this.securityWorker(this.securityData)||{},f=this.mergeRequestParams(u,d);c&&(i=i?{...i,...c}:c);let p=i&&this.toQueryString(i),m=this.contentFormatters[r||`application/json`],h=a||f.format,g=`${o||this.baseUrl||``}${n}${p?`?${p}`:``}`,_=l?l(g,{body:e,secure:t,path:n,type:r,query:i,format:a,baseUrl:o,cancelToken:s,extraQuery:c,proxyHandler:l,...u}):g,v=new Request(_,{...f,headers:{...f.headers||{},...r&&r!==`multipart/form-data`?{"Content-Type":r}:{}},signal:(s?this.createAbortSignal(s):f.signal)||null,body:e==null?null:m(e)});return this.customFetch(v).then(async e=>{let t=e;t.data=null,t.error=null,t.meta={request:v,response:t};let n=h?await e[h]().then(e=>(t.ok?t.data=e:t.error={data:e},t)).catch(e=>(t.error=e,t)):t;return s&&this.abortControllers.delete(s),n})}},Ct=class extends St{limits={get_limits:(e,t={})=>this.request({path:`/limits/v1`,method:`GET`,query:e,...t}),stats_list:(e={})=>this.request({path:`/limits/v1/stats`,method:`GET`,...e}),stats_detail:({type:e,...t},n={})=>this.request({path:`/limits/v1/stats/${e}`,method:`GET`,...n}),warnings_list:(e={})=>this.request({path:`/limits/v1/warnings`,method:`GET`,...e}),reset_to_subscription_base_create:(e={})=>this.request({path:`/limits/v1/reset-to-subscription-base`,method:`POST`,...e}),update_create:(e={})=>this.request({path:`/limits/v1/update`,method:`POST`,...e})};unisenderProxy={get_unisender_proxy:(e,t={})=>this.request({path:`/unisender-proxy/v1`,method:`GET`,query:e,...t}),create_message_create:(e={})=>this.request({path:`/unisender-proxy/v1/create-message`,method:`POST`,...e})};bdpwr={get_bdpwr:(e,t={})=>this.request({path:`/bdpwr/v1`,method:`GET`,query:e,...t}),reset_password_create:(e={})=>this.request({path:`/bdpwr/v1/reset-password`,method:`POST`,...e}),set_password_create:(e={})=>this.request({path:`/bdpwr/v1/set-password`,method:`POST`,...e}),validate_code_create:(e={})=>this.request({path:`/bdpwr/v1/validate-code`,method:`POST`,...e})};corsProxy={get_cors_proxy:(e,t={})=>this.request({path:`/cors-proxy/V1`,method:`GET`,query:e,...t}),get_list:(e,t={})=>this.request({path:`/cors-proxy/V1/get`,method:`GET`,query:e,...t})};saveFile={get_save_file:(e,t={})=>this.request({path:`/save-file/v1`,method:`GET`,query:e,...t}),ai_create:(e,t={})=>this.request({path:`/save-file/v1/ai`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t}),ai_status_list:(e,t={})=>this.request({path:`/save-file/v1/ai-status`,method:`GET`,query:e,...t}),test_list:(e={})=>this.request({path:`/save-file/v1/test`,method:`GET`,...e}),upload_create:(e,t={})=>this.request({path:`/save-file/v1/upload`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),shortener_create:(e,t={})=>this.request({path:`/save-file/v1/shortener`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),get_link_create:(e,t={})=>this.request({path:`/save-file/v1/get-link`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t}),send_email_create:(e,t={})=>this.request({path:`/save-file/v1/send-email`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t})};aiGenerator={get_ai_generator:(e,t={})=>this.request({path:`/ai-generator/v1`,method:`GET`,query:e,...t}),ai_create:(e,t={})=>this.request({path:`/ai-generator/v1/ai`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t}),ai_status_list:(e,t={})=>this.request({path:`/ai-generator/v1/ai-status`,method:`GET`,query:e,...t}),test_list:(e={})=>this.request({path:`/ai-generator/v1/test`,method:`GET`,...e}),clear_history_list:(e,t={})=>this.request({path:`/ai-generator/v1/clear-history`,method:`GET`,query:e,...t}),save_task_create:(e,t={})=>this.request({path:`/ai-generator/v1/save-task`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t}),identificate_blocks_create:(e,t={})=>this.request({path:`/ai-generator/v1/identificate_blocks`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t}),create_subject_create:(e,t={})=>this.request({path:`/ai-generator/v1/create_subject`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t}),ai_subj2_create:(e={})=>this.request({path:`/ai-generator/v1/ai-subj-2`,method:`POST`,...e}),ai_chain_create:(e={})=>this.request({path:`/ai-generator/v1/ai-chain`,method:`POST`,...e})};auth={get_auth:(e,t={})=>this.request({path:`/auth/v1`,method:`GET`,query:e,...t}),users_register_create:(e,t={})=>this.request({path:`/auth/v1/users/register`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t}),check_auth_list:(e={})=>this.request({path:`/auth/v1/check_auth`,method:`GET`,...e}),yandex_callback_create:(e,t={})=>this.request({path:`/auth/v1/yandex/callback`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t}),google_callback_create:(e,t={})=>this.request({path:`/auth/v1/google/callback`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t}),elama_callback_list:(e,t={})=>this.request({path:`/auth/v1/elama/callback`,method:`GET`,query:e,...t}),elama_callback_create:(e,t={})=>this.request({path:`/auth/v1/elama/callback`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t}),elama_refresh_token_list:(e,t={})=>this.request({path:`/auth/v1/elama/refresh_token`,method:`GET`,query:e,...t}),elama_refresh_token_create:(e,t={})=>this.request({path:`/auth/v1/elama/refresh_token`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t})};inbox={get_inbox:(e,t={})=>this.request({path:`/inbox/v1`,method:`GET`,query:e,...t}),check_inbox_create:(e,t={})=>this.request({path:`/inbox/v1/check-inbox`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t})};promo={get_promo:(e,t={})=>this.request({path:`/promo/v1`,method:`GET`,query:e,...t}),set_code_create:(e,t={})=>this.request({path:`/promo/v1/set_code`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t}),get_code_info_list:(e,t={})=>this.request({path:`/promo/v1/get_code_info`,method:`GET`,query:e,...t}),get_referral_data_list:(e={})=>this.request({path:`/promo/v1/get_referral_data`,method:`GET`,...e})};optimization={get_optimization:(e,t={})=>this.request({path:`/optimization/v1`,method:`GET`,query:e,...t}),validate_images_create:(e,t={})=>this.request({path:`/optimization/v1/validate/images`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),validate_links_create:(e,t={})=>this.request({path:`/optimization/v1/validate/links`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),validate_spamassasin_create:(e,t={})=>this.request({path:`/optimization/v1/validate/spamassasin`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t})};previewSettings={get_preview_settings:(e,t={})=>this.request({path:`/preview_settings/v1`,method:`GET`,query:e,...t}),preview_emails_detail:({id:e,...t},n={})=>this.request({path:`/preview_settings/v1/preview/emails/${e}`,method:`GET`,...n}),preview_emails_partial_update:({id:e,...t},n,r={})=>this.request({path:`/preview_settings/v1/preview/emails/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,...r}),projects_temporary_user_create:({projectId:e,...t},n,r={})=>this.request({path:`/preview_settings/v1/projects/${e}/temporary_user`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,...r}),projects_temporary_user_delete:({projectId:e,...t},n={})=>this.request({path:`/preview_settings/v1/projects/${e}/temporary_user`,method:`DELETE`,...n}),emails_temporary_access_list:({emailId:e,...t},n={})=>this.request({path:`/preview_settings/v1/emails/${e}/temporary_access`,method:`GET`,...n}),emails_temporary_access_create:({emailId:e,...t},n,r={})=>this.request({path:`/preview_settings/v1/emails/${e}/temporary_access`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,...r}),emails_temporary_access_delete:({emailId:e,targetUserId:t,...n},r={})=>this.request({path:`/preview_settings/v1/emails/${e}/temporary_access/${t}`,method:`DELETE`,...r})};emFiles={get_em_files:(e,t={})=>this.request({path:`/em-files/v1`,method:`GET`,query:e,...t}),folders_list:(e,t={})=>this.request({path:`/em-files/v1/folders`,method:`GET`,query:e,format:`json`,...t}),folders_create:(e,t={})=>this.request({path:`/em-files/v1/folders`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),folders_delete:(e,t={})=>this.request({path:`/em-files/v1/folders`,method:`DELETE`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),empty_trash_create:(e,t={})=>this.request({path:`/em-files/v1/empty-trash`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t}),files_list:(e,t={})=>this.request({path:`/em-files/v1/files`,method:`GET`,query:e,format:`json`,...t}),files_create:(e,t={})=>this.request({path:`/em-files/v1/files`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),files_delete:(e,t={})=>this.request({path:`/em-files/v1/files`,method:`DELETE`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),files_partial_update:(e,t={})=>this.request({path:`/em-files/v1/files`,method:`PATCH`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),files_upload_by_url_create:(e,t={})=>this.request({path:`/em-files/v1/files/upload-by-url`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),files_rename_partial_update:(e,t={})=>this.request({path:`/em-files/v1/files/rename`,method:`PATCH`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),items_move_partial_update:(e,t={})=>this.request({path:`/em-files/v1/items/move`,method:`PATCH`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),file_dimensions_list:(e,t={})=>this.request({path:`/em-files/v1/file/dimensions`,method:`GET`,query:e,format:`json`,...t}),cache_clear_create:(e,t={})=>this.request({path:`/em-files/v1/cache/clear`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t})};projects={get_projects:(e,t={})=>this.request({path:`/projects/v1`,method:`GET`,query:e,...t}),flush_email_template_cache_create:(e={})=>this.request({path:`/projects/v1/flush-email-template-cache`,method:`POST`,...e}),list_advanced_list:(e,t={})=>this.request({path:`/projects/v1/list_advanced`,method:`GET`,query:e,...t}),top_used_list:(e,t={})=>this.request({path:`/projects/v1/top-used`,method:`GET`,query:e,...t}),frequent_list:(e,t={})=>this.request({path:`/projects/v1/frequent`,method:`GET`,query:e,...t}),members_bulk_create:(e,t={})=>this.request({path:`/projects/v1/members/bulk`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t}),flush_project_cache_create:(e,t={})=>this.request({path:`/projects/v1/flush-project-cache`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t}),profile_options_list:(e={})=>this.request({path:`/projects/v1/profile/options`,method:`GET`,...e}),profile_detail:({projectId:e,...t},n={})=>this.request({path:`/projects/v1/profile/${e}`,method:`GET`,...n}),profile_partial_update:({projectId:e,...t},n={})=>this.request({path:`/projects/v1/profile/${e}`,method:`PATCH`,...n}),storage_detail:({projectId:e,...t},n={})=>this.request({path:`/projects/v1/storage/${e}`,method:`GET`,...n}),storage_partial_update:({projectId:e,...t},n={})=>this.request({path:`/projects/v1/storage/${e}`,method:`PATCH`,...n}),storage_test_create:({projectId:e,...t},n={})=>this.request({path:`/projects/v1/storage/${e}/test`,method:`POST`,...n}),integrations_detail:({projectId:e,...t},n={})=>this.request({path:`/projects/v1/integrations/${e}`,method:`GET`,query:t,...n}),integrations_partial_update:({projectId:e,...t},n,r={})=>this.request({path:`/projects/v1/integrations/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,...r}),members_detail:({projectId:e,...t},n={})=>this.request({path:`/projects/v1/members/${e}`,method:`GET`,...n}),styles_detail:({projectId:e,...t},n={})=>this.request({path:`/projects/v1/styles/${e}`,method:`GET`,...n}),styles_partial_update:({projectId:e,...t},n={})=>this.request({path:`/projects/v1/styles/${e}`,method:`PATCH`,...n}),social_detail:({projectId:e,...t},n={})=>this.request({path:`/projects/v1/social/${e}`,method:`GET`,...n}),social_partial_update:({projectId:e,...t},n={})=>this.request({path:`/projects/v1/social/${e}`,method:`PATCH`,...n}),developer_credentials_detail:({projectId:e,...t},n={})=>this.request({path:`/projects/v1/developer-credentials/${e}`,method:`GET`,...n}),developer_credentials_partial_update:({projectId:e,...t},n={})=>this.request({path:`/projects/v1/developer-credentials/${e}`,method:`PATCH`,...n}),developer_credentials_rotate_secret_create:({projectId:e,...t},n={})=>this.request({path:`/projects/v1/developer-credentials/${e}/rotate-secret`,method:`POST`,...n}),developer_credentials_verify_secret_create:({projectId:e,...t},n={})=>this.request({path:`/projects/v1/developer-credentials/${e}/verify-secret`,method:`POST`,...n}),developer_kit_postman_collection_list:(e={})=>this.request({path:`/projects/v1/developer-kit/postman-collection`,method:`GET`,...e}),usage_detail:({projectId:e,...t},n={})=>this.request({path:`/projects/v1/usage/${e}`,method:`GET`,...n}),billing_context_detail:({projectId:e,...t},n={})=>this.request({path:`/projects/v1/billing-context/${e}`,method:`GET`,...n}),settings_summary_detail:({projectId:e,...t},n={})=>this.request({path:`/projects/v1/settings-summary/${e}`,method:`GET`,...n})};wp={get_wp:(e,t={})=>this.request({path:`/wp/v2`,method:`GET`,query:e,...t}),confirmation_list:(e,t={})=>this.request({path:`/wp/v2/confirmation`,method:`GET`,query:e,...t}),users_register_create:(e={})=>this.request({path:`/wp/v2/users/register`,method:`POST`,...e}),users_lostpassword_create:(e={})=>this.request({path:`/wp/v2/users/lostpassword`,method:`POST`,...e}),users_lost_password_create:(e={})=>this.request({path:`/wp/v2/users/lost-password`,method:`POST`,...e}),posts_list:(e,t={})=>this.request({path:`/wp/v2/posts`,method:`GET`,query:e,format:`json`,...t}),posts_create:(e,t={})=>this.request({path:`/wp/v2/posts`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),posts_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/posts/${e}`,method:`GET`,query:t,format:`json`,...n}),posts_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/posts/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),posts_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/posts/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),posts_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/posts/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),posts_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/posts/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),posts_revisions_list:({parent:e,...t},n={})=>this.request({path:`/wp/v2/posts/${e}/revisions`,method:`GET`,query:t,format:`json`,...n}),posts_revisions_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/posts/${e}/revisions/${t}`,method:`GET`,query:n,format:`json`,...r}),posts_revisions_delete:({parent:e,id:t,...n},r,i={})=>this.request({path:`/wp/v2/posts/${e}/revisions/${t}`,method:`DELETE`,body:r,type:`application/x-www-form-urlencoded`,format:`json`,...i}),posts_autosaves_list:({id:e,...t},n={})=>this.request({path:`/wp/v2/posts/${e}/autosaves`,method:`GET`,query:t,format:`json`,...n}),posts_autosaves_create:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/posts/${e}/autosaves`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),posts_autosaves_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/posts/${e}/autosaves/${t}`,method:`GET`,query:n,format:`json`,...r}),pages_list:(e,t={})=>this.request({path:`/wp/v2/pages`,method:`GET`,query:e,format:`json`,...t}),pages_create:(e,t={})=>this.request({path:`/wp/v2/pages`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),pages_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/pages/${e}`,method:`GET`,query:t,format:`json`,...n}),pages_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/pages/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),pages_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/pages/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),pages_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/pages/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),pages_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/pages/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),pages_revisions_list:({parent:e,...t},n={})=>this.request({path:`/wp/v2/pages/${e}/revisions`,method:`GET`,query:t,format:`json`,...n}),pages_revisions_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/pages/${e}/revisions/${t}`,method:`GET`,query:n,format:`json`,...r}),pages_revisions_delete:({parent:e,id:t,...n},r,i={})=>this.request({path:`/wp/v2/pages/${e}/revisions/${t}`,method:`DELETE`,body:r,type:`application/x-www-form-urlencoded`,format:`json`,...i}),pages_autosaves_list:({id:e,...t},n={})=>this.request({path:`/wp/v2/pages/${e}/autosaves`,method:`GET`,query:t,format:`json`,...n}),pages_autosaves_create:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/pages/${e}/autosaves`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),pages_autosaves_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/pages/${e}/autosaves/${t}`,method:`GET`,query:n,format:`json`,...r}),media_list:(e,t={})=>this.request({path:`/wp/v2/media`,method:`GET`,query:e,format:`json`,...t}),media_create:(e,t={})=>this.request({path:`/wp/v2/media`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),media_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/media/${e}`,method:`GET`,query:t,format:`json`,...n}),media_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/media/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),media_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/media/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),media_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/media/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),media_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/media/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),media_post_process_create:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/media/${e}/post-process`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,...r}),media_edit_create:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/media/${e}/edit`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,...r}),menu_items_list:(e,t={})=>this.request({path:`/wp/v2/menu-items`,method:`GET`,query:e,format:`json`,...t}),menu_items_create:(e,t={})=>this.request({path:`/wp/v2/menu-items`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),menu_items_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/menu-items/${e}`,method:`GET`,query:t,format:`json`,...n}),menu_items_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/menu-items/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),menu_items_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/menu-items/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),menu_items_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/menu-items/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),menu_items_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/menu-items/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),menu_items_autosaves_list:({id:e,...t},n={})=>this.request({path:`/wp/v2/menu-items/${e}/autosaves`,method:`GET`,query:t,format:`json`,...n}),menu_items_autosaves_create:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/menu-items/${e}/autosaves`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),menu_items_autosaves_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/menu-items/${e}/autosaves/${t}`,method:`GET`,query:n,format:`json`,...r}),blocks_list:(e,t={})=>this.request({path:`/wp/v2/blocks`,method:`GET`,query:e,format:`json`,...t}),blocks_create:(e,t={})=>this.request({path:`/wp/v2/blocks`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),blocks_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/blocks/${e}`,method:`GET`,query:t,format:`json`,...n}),blocks_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/blocks/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),blocks_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/blocks/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),blocks_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/blocks/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),blocks_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/blocks/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),blocks_revisions_list:({parent:e,...t},n={})=>this.request({path:`/wp/v2/blocks/${e}/revisions`,method:`GET`,query:t,format:`json`,...n}),blocks_revisions_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/blocks/${e}/revisions/${t}`,method:`GET`,query:n,format:`json`,...r}),blocks_revisions_delete:({parent:e,id:t,...n},r,i={})=>this.request({path:`/wp/v2/blocks/${e}/revisions/${t}`,method:`DELETE`,body:r,type:`application/x-www-form-urlencoded`,format:`json`,...i}),blocks_autosaves_list:({id:e,...t},n={})=>this.request({path:`/wp/v2/blocks/${e}/autosaves`,method:`GET`,query:t,format:`json`,...n}),blocks_autosaves_create:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/blocks/${e}/autosaves`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),blocks_autosaves_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/blocks/${e}/autosaves/${t}`,method:`GET`,query:n,format:`json`,...r}),templates_revisions_list:({parent:e,...t},n={})=>this.request({path:`/wp/v2/templates/${e}/revisions`,method:`GET`,query:t,format:`json`,...n}),templates_revisions_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/templates/${e}/revisions/${t}`,method:`GET`,query:n,format:`json`,...r}),templates_revisions_delete:({parent:e,id:t,...n},r,i={})=>this.request({path:`/wp/v2/templates/${e}/revisions/${t}`,method:`DELETE`,body:r,type:`application/x-www-form-urlencoded`,format:`json`,...i}),templates_autosaves_list:({id:e,...t},n={})=>this.request({path:`/wp/v2/templates/${e}/autosaves`,method:`GET`,query:t,format:`json`,...n}),templates_autosaves_create:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/templates/${e}/autosaves`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),templates_autosaves_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/templates/${e}/autosaves/${t}`,method:`GET`,query:n,format:`json`,...r}),templates_list:(e,t={})=>this.request({path:`/wp/v2/templates`,method:`GET`,query:e,format:`json`,...t}),templates_create:(e,t={})=>this.request({path:`/wp/v2/templates`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),templates_lookup_list:(e,t={})=>this.request({path:`/wp/v2/templates/lookup`,method:`GET`,query:e,...t}),templates_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/templates/${e}`,method:`GET`,query:t,format:`json`,...n}),templates_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/templates/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),templates_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/templates/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),templates_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/templates/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),templates_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/templates/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),template_parts_revisions_list:({parent:e,...t},n={})=>this.request({path:`/wp/v2/template-parts/${e}/revisions`,method:`GET`,query:t,format:`json`,...n}),template_parts_revisions_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/template-parts/${e}/revisions/${t}`,method:`GET`,query:n,format:`json`,...r}),template_parts_revisions_delete:({parent:e,id:t,...n},r,i={})=>this.request({path:`/wp/v2/template-parts/${e}/revisions/${t}`,method:`DELETE`,body:r,type:`application/x-www-form-urlencoded`,format:`json`,...i}),template_parts_autosaves_list:({id:e,...t},n={})=>this.request({path:`/wp/v2/template-parts/${e}/autosaves`,method:`GET`,query:t,format:`json`,...n}),template_parts_autosaves_create:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/template-parts/${e}/autosaves`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),template_parts_autosaves_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/template-parts/${e}/autosaves/${t}`,method:`GET`,query:n,format:`json`,...r}),template_parts_list:(e,t={})=>this.request({path:`/wp/v2/template-parts`,method:`GET`,query:e,format:`json`,...t}),template_parts_create:(e,t={})=>this.request({path:`/wp/v2/template-parts`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),template_parts_lookup_list:(e,t={})=>this.request({path:`/wp/v2/template-parts/lookup`,method:`GET`,query:e,...t}),template_parts_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/template-parts/${e}`,method:`GET`,query:t,format:`json`,...n}),template_parts_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/template-parts/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),template_parts_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/template-parts/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),template_parts_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/template-parts/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),template_parts_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/template-parts/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),global_styles_revisions_list:({parent:e,...t},n={})=>this.request({path:`/wp/v2/global-styles/${e}/revisions`,method:`GET`,query:t,format:`json`,...n}),global_styles_revisions_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/global-styles/${e}/revisions/${t}`,method:`GET`,query:n,format:`json`,...r}),global_styles_themes_variations_list:({stylesheet:e,...t},n={})=>this.request({path:`/wp/v2/global-styles/themes/${e}/variations`,method:`GET`,...n}),global_styles_themes_detail:({stylesheet:e,...t},n={})=>this.request({path:`/wp/v2/global-styles/themes/${e}`,method:`GET`,...n}),global_styles_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/global-styles/${e}`,method:`GET`,format:`json`,...n}),global_styles_create:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/global-styles/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),global_styles_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/global-styles/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),global_styles_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/global-styles/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),navigation_list:(e,t={})=>this.request({path:`/wp/v2/navigation`,method:`GET`,query:e,format:`json`,...t}),navigation_create:(e,t={})=>this.request({path:`/wp/v2/navigation`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),navigation_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/navigation/${e}`,method:`GET`,query:t,format:`json`,...n}),navigation_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/navigation/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),navigation_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/navigation/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),navigation_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/navigation/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),navigation_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/navigation/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),navigation_revisions_list:({parent:e,...t},n={})=>this.request({path:`/wp/v2/navigation/${e}/revisions`,method:`GET`,query:t,format:`json`,...n}),navigation_revisions_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/navigation/${e}/revisions/${t}`,method:`GET`,query:n,format:`json`,...r}),navigation_revisions_delete:({parent:e,id:t,...n},r,i={})=>this.request({path:`/wp/v2/navigation/${e}/revisions/${t}`,method:`DELETE`,body:r,type:`application/x-www-form-urlencoded`,format:`json`,...i}),navigation_autosaves_list:({id:e,...t},n={})=>this.request({path:`/wp/v2/navigation/${e}/autosaves`,method:`GET`,query:t,format:`json`,...n}),navigation_autosaves_create:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/navigation/${e}/autosaves`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),navigation_autosaves_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/navigation/${e}/autosaves/${t}`,method:`GET`,query:n,format:`json`,...r}),font_families_list:(e,t={})=>this.request({path:`/wp/v2/font-families`,method:`GET`,query:e,format:`json`,...t}),font_families_create:(e,t={})=>this.request({path:`/wp/v2/font-families`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),font_families_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/font-families/${e}`,method:`GET`,query:t,format:`json`,...n}),font_families_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/font-families/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),font_families_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/font-families/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),font_families_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/font-families/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),font_families_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/font-families/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),font_families_font_faces_list:({fontFamilyId:e,...t},n={})=>this.request({path:`/wp/v2/font-families/${e}/font-faces`,method:`GET`,query:t,format:`json`,...n}),font_families_font_faces_create:({fontFamilyId:e,...t},n,r={})=>this.request({path:`/wp/v2/font-families/${e}/font-faces`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),font_families_font_faces_detail:({fontFamilyId:e,id:t,...n},r={})=>this.request({path:`/wp/v2/font-families/${e}/font-faces/${t}`,method:`GET`,query:n,format:`json`,...r}),font_families_font_faces_delete:({fontFamilyId:e,id:t,...n},r,i={})=>this.request({path:`/wp/v2/font-families/${e}/font-faces/${t}`,method:`DELETE`,body:r,type:`application/x-www-form-urlencoded`,format:`json`,...i}),eblock_list:(e,t={})=>this.request({path:`/wp/v2/eblock`,method:`GET`,query:e,format:`json`,...t}),eblock_create:(e,t={})=>this.request({path:`/wp/v2/eblock`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),eblock_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/eblock/${e}`,method:`GET`,query:t,format:`json`,...n}),eblock_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/eblock/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),eblock_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/eblock/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),eblock_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/eblock/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),eblock_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/eblock/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),eblock_revisions_list:({parent:e,...t},n={})=>this.request({path:`/wp/v2/eblock/${e}/revisions`,method:`GET`,query:t,format:`json`,...n}),eblock_revisions_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/eblock/${e}/revisions/${t}`,method:`GET`,query:n,format:`json`,...r}),eblock_revisions_delete:({parent:e,id:t,...n},r,i={})=>this.request({path:`/wp/v2/eblock/${e}/revisions/${t}`,method:`DELETE`,body:r,type:`application/x-www-form-urlencoded`,format:`json`,...i}),eblock_autosaves_list:({id:e,...t},n={})=>this.request({path:`/wp/v2/eblock/${e}/autosaves`,method:`GET`,query:t,format:`json`,...n}),eblock_autosaves_create:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/eblock/${e}/autosaves`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),eblock_autosaves_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/eblock/${e}/autosaves/${t}`,method:`GET`,query:n,format:`json`,...r}),email_list:(e,t={})=>this.request({path:`/wp/v2/email`,method:`GET`,query:e,format:`json`,...t}),email_create:(e,t={})=>this.request({path:`/wp/v2/email`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),email_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/email/${e}`,method:`GET`,query:t,format:`json`,...n}),email_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/email/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),email_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/email/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),email_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/email/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),email_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/email/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),email_revisions_list:({parent:e,...t},n={})=>this.request({path:`/wp/v2/email/${e}/revisions`,method:`GET`,query:t,format:`json`,...n}),email_revisions_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/email/${e}/revisions/${t}`,method:`GET`,query:n,format:`json`,...r}),email_revisions_delete:({parent:e,id:t,...n},r,i={})=>this.request({path:`/wp/v2/email/${e}/revisions/${t}`,method:`DELETE`,body:r,type:`application/x-www-form-urlencoded`,format:`json`,...i}),email_autosaves_list:({id:e,...t},n={})=>this.request({path:`/wp/v2/email/${e}/autosaves`,method:`GET`,query:t,format:`json`,...n}),email_autosaves_create:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/email/${e}/autosaves`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),email_autosaves_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/email/${e}/autosaves/${t}`,method:`GET`,query:n,format:`json`,...r}),notification_list:(e,t={})=>this.request({path:`/wp/v2/notification`,method:`GET`,query:e,format:`json`,...t}),notification_create:(e,t={})=>this.request({path:`/wp/v2/notification`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),notification_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/notification/${e}`,method:`GET`,query:t,format:`json`,...n}),notification_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/notification/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),notification_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/notification/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),notification_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/notification/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),notification_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/notification/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),notification_autosaves_list:({id:e,...t},n={})=>this.request({path:`/wp/v2/notification/${e}/autosaves`,method:`GET`,query:t,format:`json`,...n}),notification_autosaves_create:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/notification/${e}/autosaves`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),notification_autosaves_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/notification/${e}/autosaves/${t}`,method:`GET`,query:n,format:`json`,...r}),payment_list:(e,t={})=>this.request({path:`/wp/v2/payment`,method:`GET`,query:e,format:`json`,...t}),payment_create:(e,t={})=>this.request({path:`/wp/v2/payment`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),payment_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/payment/${e}`,method:`GET`,query:t,format:`json`,...n}),payment_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/payment/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),payment_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/payment/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),payment_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/payment/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),payment_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/payment/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),project_list:(e,t={})=>this.request({path:`/wp/v2/project`,method:`GET`,query:e,format:`json`,...t}),project_create:(e,t={})=>this.request({path:`/wp/v2/project`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),project_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/project/${e}`,method:`GET`,query:t,format:`json`,...n}),project_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/project/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),project_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/project/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),project_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/project/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),project_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/project/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),project_revisions_list:({parent:e,...t},n={})=>this.request({path:`/wp/v2/project/${e}/revisions`,method:`GET`,query:t,format:`json`,...n}),project_revisions_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/project/${e}/revisions/${t}`,method:`GET`,query:n,format:`json`,...r}),project_revisions_delete:({parent:e,id:t,...n},r,i={})=>this.request({path:`/wp/v2/project/${e}/revisions/${t}`,method:`DELETE`,body:r,type:`application/x-www-form-urlencoded`,format:`json`,...i}),subscription_list:(e,t={})=>this.request({path:`/wp/v2/subscription`,method:`GET`,query:e,format:`json`,...t}),subscription_create:(e,t={})=>this.request({path:`/wp/v2/subscription`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),subscription_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/subscription/${e}`,method:`GET`,query:t,format:`json`,...n}),subscription_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/subscription/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),subscription_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/subscription/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),subscription_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/subscription/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),subscription_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/subscription/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),user_promocodes_list:(e,t={})=>this.request({path:`/wp/v2/user_promocodes`,method:`GET`,query:e,format:`json`,...t}),user_promocodes_create:(e,t={})=>this.request({path:`/wp/v2/user_promocodes`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),user_promocodes_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/user_promocodes/${e}`,method:`GET`,query:t,format:`json`,...n}),user_promocodes_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/user_promocodes/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),user_promocodes_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/user_promocodes/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),user_promocodes_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/user_promocodes/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),user_promocodes_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/user_promocodes/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),types_list:(e,t={})=>this.request({path:`/wp/v2/types`,method:`GET`,query:e,format:`json`,...t}),types_detail:({type:e,...t},n={})=>this.request({path:`/wp/v2/types/${e}`,method:`GET`,query:t,format:`json`,...n}),statuses_list:(e,t={})=>this.request({path:`/wp/v2/statuses`,method:`GET`,query:e,format:`json`,...t}),statuses_detail:({status:e,...t},n={})=>this.request({path:`/wp/v2/statuses/${e}`,method:`GET`,query:t,format:`json`,...n}),taxonomies_list:(e,t={})=>this.request({path:`/wp/v2/taxonomies`,method:`GET`,query:e,format:`json`,...t}),taxonomies_detail:({taxonomy:e,...t},n={})=>this.request({path:`/wp/v2/taxonomies/${e}`,method:`GET`,query:t,format:`json`,...n}),categories_list:(e,t={})=>this.request({path:`/wp/v2/categories`,method:`GET`,query:e,format:`json`,...t}),categories_create:(e,t={})=>this.request({path:`/wp/v2/categories`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),categories_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/categories/${e}`,method:`GET`,query:t,format:`json`,...n}),categories_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/categories/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),categories_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/categories/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),categories_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/categories/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),categories_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/categories/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),tags_list:(e,t={})=>this.request({path:`/wp/v2/tags`,method:`GET`,query:e,format:`json`,...t}),tags_create:(e,t={})=>this.request({path:`/wp/v2/tags`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),tags_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/tags/${e}`,method:`GET`,query:t,format:`json`,...n}),tags_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/tags/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),tags_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/tags/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),tags_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/tags/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),tags_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/tags/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),menus_list:(e,t={})=>this.request({path:`/wp/v2/menus`,method:`GET`,query:e,format:`json`,...t}),menus_create:(e,t={})=>this.request({path:`/wp/v2/menus`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),menus_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/menus/${e}`,method:`GET`,query:t,format:`json`,...n}),menus_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/menus/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),menus_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/menus/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),menus_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/menus/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),menus_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/menus/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),wp_pattern_category_list:(e,t={})=>this.request({path:`/wp/v2/wp_pattern_category`,method:`GET`,query:e,format:`json`,...t}),wp_pattern_category_create:(e,t={})=>this.request({path:`/wp/v2/wp_pattern_category`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),wp_pattern_category_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/wp_pattern_category/${e}`,method:`GET`,query:t,format:`json`,...n}),wp_pattern_category_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/wp_pattern_category/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),wp_pattern_category_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/wp_pattern_category/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),wp_pattern_category_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/wp_pattern_category/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),wp_pattern_category_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/wp_pattern_category/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),group_list:(e,t={})=>this.request({path:`/wp/v2/group`,method:`GET`,query:e,format:`json`,...t}),group_create:(e,t={})=>this.request({path:`/wp/v2/group`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),group_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/group/${e}`,method:`GET`,query:t,format:`json`,...n}),group_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/group/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),group_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/group/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),group_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/group/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),group_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/group/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),blockfolder_list:(e,t={})=>this.request({path:`/wp/v2/blockfolder`,method:`GET`,query:e,format:`json`,...t}),blockfolder_create:(e,t={})=>this.request({path:`/wp/v2/blockfolder`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),blockfolder_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/blockfolder/${e}`,method:`GET`,query:t,format:`json`,...n}),blockfolder_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/blockfolder/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),blockfolder_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/blockfolder/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),blockfolder_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/blockfolder/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),blockfolder_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/blockfolder/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),blocktags_list:(e,t={})=>this.request({path:`/wp/v2/blocktags`,method:`GET`,query:e,format:`json`,...t}),blocktags_create:(e,t={})=>this.request({path:`/wp/v2/blocktags`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),blocktags_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/blocktags/${e}`,method:`GET`,query:t,format:`json`,...n}),blocktags_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/blocktags/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),blocktags_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/blocktags/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),blocktags_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/blocktags/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),blocktags_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/blocktags/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),emailtags_list:(e,t={})=>this.request({path:`/wp/v2/emailtags`,method:`GET`,query:e,format:`json`,...t}),emailtags_create:(e,t={})=>this.request({path:`/wp/v2/emailtags`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),emailtags_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/emailtags/${e}`,method:`GET`,query:t,format:`json`,...n}),emailtags_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/emailtags/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),emailtags_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/emailtags/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),emailtags_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/emailtags/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),emailtags_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/emailtags/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),folder_list:(e,t={})=>this.request({path:`/wp/v2/folder`,method:`GET`,query:e,format:`json`,...t}),folder_create:(e,t={})=>this.request({path:`/wp/v2/folder`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),folder_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/folder/${e}`,method:`GET`,query:t,format:`json`,...n}),folder_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/folder/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),folder_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/folder/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),folder_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/folder/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),folder_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/folder/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),users_list:(e,t={})=>this.request({path:`/wp/v2/users`,method:`GET`,query:e,format:`json`,...t}),users_create:(e,t={})=>this.request({path:`/wp/v2/users`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),users_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/users/${e}`,method:`GET`,query:t,format:`json`,...n}),users_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/users/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),users_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/users/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),users_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/users/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),users_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/users/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),users_me_list:(e,t={})=>this.request({path:`/wp/v2/users/me`,method:`GET`,query:e,format:`json`,...t}),users_me_create:(e,t={})=>this.request({path:`/wp/v2/users/me`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),users_me_update:(e,t={})=>this.request({path:`/wp/v2/users/me`,method:`PUT`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),users_me_partial_update:(e,t={})=>this.request({path:`/wp/v2/users/me`,method:`PATCH`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),users_me_delete:(e,t={})=>this.request({path:`/wp/v2/users/me`,method:`DELETE`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),users_application_passwords_list:({userId:e,...t},n={})=>this.request({path:`/wp/v2/users/${e}/application-passwords`,method:`GET`,query:t,format:`json`,...n}),users_application_passwords_create:({userId:e,...t},n,r={})=>this.request({path:`/wp/v2/users/${e}/application-passwords`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),users_application_passwords_delete:({userId:e,...t},n={})=>this.request({path:`/wp/v2/users/${e}/application-passwords`,method:`DELETE`,format:`json`,...n}),users_application_passwords_introspect_list:({userId:e,...t},n={})=>this.request({path:`/wp/v2/users/${e}/application-passwords/introspect`,method:`GET`,query:t,format:`json`,...n}),users_application_passwords_detail:({userId:e,uuid:t,...n},r={})=>this.request({path:`/wp/v2/users/${e}/application-passwords/${t}`,method:`GET`,query:n,format:`json`,...r}),users_application_passwords_create2:({userId:e,uuid:t,...n},r,i={})=>this.request({path:`/wp/v2/users/${e}/application-passwords/${t}`,method:`POST`,body:r,type:`application/x-www-form-urlencoded`,format:`json`,...i}),users_application_passwords_update:({userId:e,uuid:t,...n},r,i={})=>this.request({path:`/wp/v2/users/${e}/application-passwords/${t}`,method:`PUT`,body:r,type:`application/x-www-form-urlencoded`,format:`json`,...i}),users_application_passwords_partial_update:({userId:e,uuid:t,...n},r,i={})=>this.request({path:`/wp/v2/users/${e}/application-passwords/${t}`,method:`PATCH`,body:r,type:`application/x-www-form-urlencoded`,format:`json`,...i}),users_application_passwords_delete2:({userId:e,uuid:t,...n},r={})=>this.request({path:`/wp/v2/users/${e}/application-passwords/${t}`,method:`DELETE`,format:`json`,...r}),comments_list:(e,t={})=>this.request({path:`/wp/v2/comments`,method:`GET`,query:e,format:`json`,...t}),comments_create:(e,t={})=>this.request({path:`/wp/v2/comments`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),comments_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/comments/${e}`,method:`GET`,query:t,format:`json`,...n}),comments_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/comments/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),comments_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/comments/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),comments_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/comments/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),comments_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/comments/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),search_list:(e,t={})=>this.request({path:`/wp/v2/search`,method:`GET`,query:e,format:`json`,...t}),block_renderer_detail:({name:e,...t},n={})=>this.request({path:`/wp/v2/block-renderer/${e}`,method:`GET`,query:t,format:`json`,...n}),block_renderer_create:({name:e,...t},n,r={})=>this.request({path:`/wp/v2/block-renderer/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),block_types_list:(e,t={})=>this.request({path:`/wp/v2/block-types`,method:`GET`,query:e,format:`json`,...t}),block_types_detail:({namespace:e,...t},n={})=>this.request({path:`/wp/v2/block-types/${e}`,method:`GET`,query:t,format:`json`,...n}),block_types_detail2:({name:e,namespace:t,...n},r={})=>this.request({path:`/wp/v2/block-types/${t}/${e}`,method:`GET`,query:n,format:`json`,...r}),settings_list:(e={})=>this.request({path:`/wp/v2/settings`,method:`GET`,format:`json`,...e}),settings_create:(e,t={})=>this.request({path:`/wp/v2/settings`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),settings_update:(e,t={})=>this.request({path:`/wp/v2/settings`,method:`PUT`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),settings_partial_update:(e,t={})=>this.request({path:`/wp/v2/settings`,method:`PATCH`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),themes_list:(e,t={})=>this.request({path:`/wp/v2/themes`,method:`GET`,query:e,format:`json`,...t}),themes_detail:({stylesheet:e,...t},n={})=>this.request({path:`/wp/v2/themes/${e}`,method:`GET`,format:`json`,...n}),plugins_list:(e,t={})=>this.request({path:`/wp/v2/plugins`,method:`GET`,query:e,format:`json`,...t}),plugins_create:(e,t={})=>this.request({path:`/wp/v2/plugins`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),plugins_detail:({plugin:e,...t},n={})=>this.request({path:`/wp/v2/plugins/${e}`,method:`GET`,query:t,format:`json`,...n}),plugins_create2:({plugin:e,...t},n,r={})=>this.request({path:`/wp/v2/plugins/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),plugins_update:({plugin:e,...t},n,r={})=>this.request({path:`/wp/v2/plugins/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),plugins_partial_update:({plugin:e,...t},n,r={})=>this.request({path:`/wp/v2/plugins/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),plugins_delete:({plugin:e,...t},n,r={})=>this.request({path:`/wp/v2/plugins/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),sidebars_list:(e,t={})=>this.request({path:`/wp/v2/sidebars`,method:`GET`,query:e,format:`json`,...t}),sidebars_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/sidebars/${e}`,method:`GET`,query:t,format:`json`,...n}),sidebars_create:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/sidebars/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),sidebars_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/sidebars/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),sidebars_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/sidebars/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),widget_types_list:(e,t={})=>this.request({path:`/wp/v2/widget-types`,method:`GET`,query:e,format:`json`,...t}),widget_types_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/widget-types/${e}`,method:`GET`,query:t,format:`json`,...n}),widget_types_encode_create:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/widget-types/${e}/encode`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,...r}),widget_types_render_create:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/widget-types/${e}/render`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,...r}),widgets_list:(e,t={})=>this.request({path:`/wp/v2/widgets`,method:`GET`,query:e,format:`json`,...t}),widgets_create:(e,t={})=>this.request({path:`/wp/v2/widgets`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),widgets_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/widgets/${e}`,method:`GET`,query:t,format:`json`,...n}),widgets_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/widgets/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),widgets_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/widgets/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),widgets_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/widgets/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),widgets_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/widgets/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),block_directory_search_list:(e,t={})=>this.request({path:`/wp/v2/block-directory/search`,method:`GET`,query:e,format:`json`,...t}),pattern_directory_patterns_list:(e,t={})=>this.request({path:`/wp/v2/pattern-directory/patterns`,method:`GET`,query:e,format:`json`,...t}),block_patterns_patterns_list:(e={})=>this.request({path:`/wp/v2/block-patterns/patterns`,method:`GET`,format:`json`,...e}),block_patterns_categories_list:(e={})=>this.request({path:`/wp/v2/block-patterns/categories`,method:`GET`,format:`json`,...e}),menu_locations_list:(e,t={})=>this.request({path:`/wp/v2/menu-locations`,method:`GET`,query:e,format:`json`,...t}),menu_locations_detail:({location:e,...t},n={})=>this.request({path:`/wp/v2/menu-locations/${e}`,method:`GET`,query:t,format:`json`,...n}),font_collections_list:(e,t={})=>this.request({path:`/wp/v2/font-collections`,method:`GET`,query:e,format:`json`,...t}),font_collections_detail:({slug:e,...t},n={})=>this.request({path:`/wp/v2/font-collections/${e}`,method:`GET`,query:t,format:`json`,...n}),icons_list:(e,t={})=>this.request({path:`/wp/v2/icons`,method:`GET`,query:e,format:`json`,...t}),icons_detail:({name:e,...t},n={})=>this.request({path:`/wp/v2/icons/${e}`,method:`GET`,query:t,format:`json`,...n})};userToProject={get_user_to_project:(e,t={})=>this.request({path:`/user_to_project/v1`,method:`GET`,query:e,...t}),add_user_create:(e,t={})=>this.request({path:`/user_to_project/v1/add_user`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t})};payment={get_payment:(e,t={})=>this.request({path:`/payment/v1`,method:`GET`,query:e,...t}),check_duplicate_list:(e,t={})=>this.request({path:`/payment/v1/check_duplicate`,method:`GET`,query:e,...t}),check_duplicate_create:(e,t={})=>this.request({path:`/payment/v1/check_duplicate`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t}),subscription_payment_create:(e,t={})=>this.request({path:`/payment/v1/subscription_payment`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t}),subscription_cancelled_create:(e={})=>this.request({path:`/payment/v1/subscription_cancelled`,method:`POST`,...e}),refund_create:(e,t={})=>this.request({path:`/payment/v1/refund`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t}),package_purchase_create:(e,t={})=>this.request({path:`/payment/v1/package_purchase`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t})};counters={get_counters:(e,t={})=>this.request({path:`/counters/v1`,method:`GET`,query:e,...t}),increment_counter_partial_update:(e={})=>this.request({path:`/counters/v1/increment_counter`,method:`PATCH`,...e})};users={get_users:(e,t={})=>this.request({path:`/users/v1`,method:`GET`,query:e,...t}),is_paying_user_list:(e={})=>this.request({path:`/users/v1/is_paying_user`,method:`GET`,...e}),subscription_by_email_list:(e,t={})=>this.request({path:`/users/v1/subscription_by_email`,method:`GET`,query:e,...t})};email={get_email:(e,t={})=>this.request({path:`/email/v2`,method:`GET`,query:e,...t}),export_batches_create:(e={})=>this.request({path:`/email/v2/export/batches`,method:`POST`,...e}),export_batches_latest_list:(e,t={})=>this.request({path:`/email/v2/export/batches/latest`,method:`GET`,query:e,...t}),export_batches_detail:({batchId:e,...t},n={})=>this.request({path:`/email/v2/export/batches/${e}`,method:`GET`,...n}),export_batches_delete:({batchId:e,...t},n={})=>this.request({path:`/email/v2/export/batches/${e}`,method:`DELETE`,...n}),export_batches_cancel_create:({batchId:e,...t},n={})=>this.request({path:`/email/v2/export/batches/${e}/cancel`,method:`POST`,...n}),export_download_list:(e,t={})=>this.request({path:`/email/v2/export/download`,method:`GET`,query:e,...t}),templates_list:(e,t={})=>this.request({path:`/email/v2/templates`,method:`GET`,query:e,...t}),html_list:(e,t={})=>this.request({path:`/email/v2/html`,method:`GET`,query:e,...t}),copy_create:(e,t={})=>this.request({path:`/email/v2/copy`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t})};wpOpenapi={wp_openapi_list:(e,t={})=>this.request({path:`/wp-openapi`,method:`GET`,query:e,...t}),stoplight_ui_list:(e={})=>this.request({path:`/wp-openapi/stoplight-ui`,method:`GET`,...e}),get_wp_openapi:(e,t={})=>this.request({path:`/wp-openapi/v1`,method:`GET`,query:e,...t}),schema_list:(e,t={})=>this.request({path:`/wp-openapi/v1/schema`,method:`GET`,query:e,...t})};subscription={get_subscription:(e,t={})=>this.request({path:`/subscription/v2`,method:`GET`,query:e,...t}),activate_trial_list:(e={})=>this.request({path:`/subscription/v2/activate_trial`,method:`GET`,...e}),me_list:(e={})=>this.request({path:`/subscription/v2/me`,method:`GET`,...e}),me_notification_preferences_update:(e={})=>this.request({path:`/subscription/v2/me/notification-preferences`,method:`PUT`,...e})};app={get_app:(e,t={})=>this.request({path:`/app/v1`,method:`GET`,query:e,...t}),app_init_create:(e,t={})=>this.request({path:`/app/v1/app_init`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t})};jwtAuth={get_jwt_auth:(e,t={})=>this.request({path:`/jwt-auth/v1`,method:`GET`,query:e,...t}),token_create:(e={})=>this.request({path:`/jwt-auth/v1/token`,method:`POST`,...e}),token_validate_create:(e={})=>this.request({path:`/jwt-auth/v1/token/validate`,method:`POST`,...e})};translations={translations_list:(e,t={})=>this.request({path:`/translations`,method:`GET`,query:e,...t}),post_translations:(e={})=>this.request({path:`/translations/v1`,method:`POST`,...e}),get_translations:(e,t={})=>this.request({path:`/translations/v1`,method:`GET`,query:e,...t}),get_translations2:({file:e,...t},n={})=>this.request({path:`/translations/v1/${e}`,method:`GET`,...n}),get_translations3:({id:e,file:t,...n},r={})=>this.request({path:`/translations/v1/${t}/${e}`,method:`GET`,...r})};em1CSync={get_em1_c_sync:(e,t={})=>this.request({path:`/em-1c-sync/v1`,method:`GET`,query:e,...t}),invoice_request_create:(e={})=>this.request({path:`/em-1c-sync/v1/invoice-request`,method:`POST`,...e}),invoice_create:(e={})=>this.request({path:`/em-1c-sync/v1/invoice`,method:`POST`,...e}),ack_create:(e={})=>this.request({path:`/em-1c-sync/v1/ack`,method:`POST`,...e}),test_receiver_create:(e={})=>this.request({path:`/em-1c-sync/v1/test-receiver`,method:`POST`,...e})};prmonline={get_prmonline:(e,t={})=>this.request({path:`/prmonline/v1`,method:`GET`,query:e,...t}),save_ref_create:(e={})=>this.request({path:`/prmonline/v1/save-ref`,method:`POST`,...e}),track_list:(e={})=>this.request({path:`/prmonline/v1/track`,method:`GET`,...e}),track_create:(e={})=>this.request({path:`/prmonline/v1/track`,method:`POST`,...e})};wpMailSmtp={get_wp_mail_smtp:(e,t={})=>this.request({path:`/wp-mail-smtp/v1`,method:`GET`,query:e,...t}),e_detail:({data:e,...t},n={})=>this.request({path:`/wp-mail-smtp/v1/e/${e}`,method:`GET`,...n})};emailmakerLayoutConverter={get_emailmaker_layout_converter:(e,t={})=>this.request({path:`/emailmaker-layout-converter/v1`,method:`GET`,query:e,...t}),convert_create:(e,t={})=>this.request({path:`/emailmaker-layout-converter/v1/convert`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t}),convert_async_create:(e,t={})=>this.request({path:`/emailmaker-layout-converter/v1/convert/async`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t}),convert_jobs_detail:({jobId:e,...t},n={})=>this.request({path:`/emailmaker-layout-converter/v1/convert/jobs/${e}`,method:`GET`,...n})};emFmOps={get_em_fm_ops:(e,t={})=>this.request({path:`/em-fm-ops/v1`,method:`GET`,query:e,...t}),history_list:(e,t={})=>this.request({path:`/em-fm-ops/v1/history`,method:`GET`,query:e,...t})};wpSiteHealth={get_wp_site_health:(e,t={})=>this.request({path:`/wp-site-health/v1`,method:`GET`,query:e,...t}),tests_background_updates_list:(e={})=>this.request({path:`/wp-site-health/v1/tests/background-updates`,method:`GET`,format:`json`,...e}),tests_loopback_requests_list:(e={})=>this.request({path:`/wp-site-health/v1/tests/loopback-requests`,method:`GET`,format:`json`,...e}),tests_https_status_list:(e={})=>this.request({path:`/wp-site-health/v1/tests/https-status`,method:`GET`,format:`json`,...e}),tests_dotorg_communication_list:(e={})=>this.request({path:`/wp-site-health/v1/tests/dotorg-communication`,method:`GET`,format:`json`,...e}),tests_authorization_header_list:(e={})=>this.request({path:`/wp-site-health/v1/tests/authorization-header`,method:`GET`,format:`json`,...e}),directory_sizes_list:(e={})=>this.request({path:`/wp-site-health/v1/directory-sizes`,method:`GET`,...e}),tests_page_cache_list:(e={})=>this.request({path:`/wp-site-health/v1/tests/page-cache`,method:`GET`,...e})};wpBlockEditor={get_wp_block_editor:(e,t={})=>this.request({path:`/wp-block-editor/v1`,method:`GET`,query:e,...t}),url_details_list:(e,t={})=>this.request({path:`/wp-block-editor/v1/url-details`,method:`GET`,query:e,...t}),export_list:(e={})=>this.request({path:`/wp-block-editor/v1/export`,method:`GET`,...e}),navigation_fallback_list:(e={})=>this.request({path:`/wp-block-editor/v1/navigation-fallback`,method:`GET`,format:`json`,...e})};wpAbilities={get_wp_abilities:(e,t={})=>this.request({path:`/wp-abilities/v1`,method:`GET`,query:e,...t}),categories_list:(e,t={})=>this.request({path:`/wp-abilities/v1/categories`,method:`GET`,query:e,format:`json`,...t}),categories_detail:({slug:e,...t},n={})=>this.request({path:`/wp-abilities/v1/categories/${e}`,method:`GET`,format:`json`,...n}),abilities_run_list:({name:e,...t},n={})=>this.request({path:`/wp-abilities/v1/abilities/${e}/run`,method:`GET`,query:t,format:`json`,...n}),abilities_run_create:({name:e,...t},n,r={})=>this.request({path:`/wp-abilities/v1/abilities/${e}/run`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),abilities_run_update:({name:e,...t},n,r={})=>this.request({path:`/wp-abilities/v1/abilities/${e}/run`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),abilities_run_partial_update:({name:e,...t},n,r={})=>this.request({path:`/wp-abilities/v1/abilities/${e}/run`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),abilities_run_delete:({name:e,...t},n,r={})=>this.request({path:`/wp-abilities/v1/abilities/${e}/run`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),abilities_list:(e,t={})=>this.request({path:`/wp-abilities/v1/abilities`,method:`GET`,query:e,format:`json`,...t}),abilities_detail:({name:e,...t},n={})=>this.request({path:`/wp-abilities/v1/abilities/${e}`,method:`GET`,format:`json`,...n})}},wt=x(`client`),Tt=x(`ai_client`),Et=x(),Dt=x(),Ot=`INJECTION`;function kt(e){return e.getState}function F(e){if(kt(e)){let t=e.getState()[Ot];return t&&O.getInstance(t)}else return e}r.i(),i.n();function At(e,t){for(let n of e)if(n&&t in n)return n[t]}function jt(e){return Object.assign({},...e)}var Mt=[`generic`,`stockImages`,`emFiles`,`cdn`];function Nt(e){return!!e&&typeof e==`object`&&!Array.isArray(e)}function Pt(e){return!Nt(e)||`match`in e||`rewrite`in e||`proxyBase`in e?!1:Object.keys(e).some(e=>Mt.includes(e))}function Ft(e){return e.length===0?[]:e.length===1?e[0]:e}function It(e){let t=!1,n=[];for(let r of e)if(r!==void 0){if(t=!0,Array.isArray(r)){n=[...r,...n];continue}n=[r,...n]}if(t)return Ft(n)}function Lt(e){return Nt(e)&&(`value`in e||`replace`in e)}function Rt(e,t){return t===void 0?e:Array.isArray(t)?[...t,...e]:[t,...e]}function zt(e){let t=!1,n=[],r=!1;for(let i of e)if(i!==void 0){if(Lt(i)){t=!0,i.replace&&(n=[],r=!0),i.value!==void 0&&(n=Rt(n,i.value),r=!0);continue}n=Rt(n,i),r=!0}let i=r?Ft(n):void 0;if(!t)return i;if(i!==void 0)return{value:i}}function Bt(e){let t=e.filter(e=>e!==void 0);if(t.length===0)return;if(!t.some(e=>Pt(e)))return It(t);let n={};for(let t of Mt){let r=zt(e.map(e=>{if(e!==void 0)return Pt(e)?e[t]:t===`generic`?e:void 0}));r!==void 0&&(n[t]=r)}return Object.keys(n).length>0?n:void 0}function Vt(e){return It(e)}function Ht(e){if(e!==void 0){if(Array.isArray(e))return{replace:!1,hosts:e};if(Nt(e)&&Array.isArray(e.value))return{replace:!!e.replace,hosts:e.value}}}function Ut(e,t){let n=[...e],r=new Set(n.map(e=>e.toLowerCase()));for(let e of t){let t=e.trim().replace(/:\d+$/,``);if(!t)continue;let i=t.toLowerCase();r.has(i)||(r.add(i),n.push(t))}return n}function Wt(e){let t=[],n=!1;for(let r of e){let e=Ht(r);e&&(n=!0,e.replace&&(t=[]),t=Ut(t,e.hosts))}return n?t:void 0}function Gt(e){let t=e.filter(e=>e!==void 0);if(t.length===0)return;let n=jt(t.map(({directHosts:e,...t})=>t)),r=Wt(t.map(e=>e?.directHosts));return r!==void 0&&(n.directHosts=r),n}var Kt=3e5,qt=new Map,Jt=new Map,Yt=new Set([`generic`,`stockImages`,`emFiles`,`cdn`]),Xt=/^https:\/\/(?:media\d*|i)\.giphy\.com\/media/i,Zt=/^https:\/\/api\.giphy\.com\/v1\/gifs/i,Qt=/^https:\/\/images\.unsplash\.com/i,$t=/^https:\/\/api\.unsplash\.com/i,en=/^https:\/\/assets\.streamlinehq\.com/i,tn=/^https:\/\/public-api\.streamlinehq\.com/i;function nn(e){return typeof e==`string`&&e.trim().length>0}function rn(){let e=`https://px0.useblocks.io/`;if(nn(e))return e;let t=i.t.env.REACT_APP_UNSPLASH_PROXY;return nn(t)?t:void 0}function an(){return{stockImagesProxyUrl:i.t.env.REACT_APP_STOCK_IMAGES_PROXY,stockImagesProxyUrlApi:i.t.env.REACT_APP_STOCK_IMAGES_PROXY_API,genericProxyUrl:rn()}}function on(e){let t=[],{stockImagesProxyUrl:n,stockImagesProxyUrlApi:r,genericProxyUrl:i}=an();return r&&t.push({id:`mode-default-stock-images-api`,match:`https://api.unsplash.com/{path}`,proxyBase:r,rewrite:`{path}?proxy_url={origin}{search}{hash}`}),n&&t.push({id:`mode-default-stock-images-cdn`,match:`https://images.unsplash.com/{path}`,proxyBase:n,rewrite:`{path}?proxy_url={origin}{search}{hash}`}),i&&t.push({id:`mode-default-generic`,proxyBase:i,rewrite:`{path}?proxy_url={origin}{search}{hash}`}),t.length>0?t:void 0}function sn(e){return!!e}var cn=()=>{if(!(typeof window>`u`))return window.location.origin};function ln(e){let t=cn();if(!t)return!1;try{return new URL(e).origin===t}catch{return!1}}function un(e,t){try{let n=new URL(e).hostname.toLowerCase();return t.find(e=>e.toLowerCase()===n)??null}catch{return null}}function dn(e,t){return t?!1:e===`downloadBlob`||e===`display`}function fn(e){let t=e.trim();return t?t.replace(/:\d+$/,``):``}function pn(e,t){if(!t.proxySameOrigin&&ln(e))try{return{skipReason:`same-origin`,matchedHost:new URL(e).hostname}}catch{return null}let n=un(e,t.directHosts);return n?{skipReason:`direct-host`,matchedHost:n}:null}function mn(e){let t=[];for(let n of e){if(Array.isArray(n)){for(let e of n)t.push(e);continue}t.push(n)}return t}function hn(e){let t=new Set,n=[];for(let r of e){let e=_n(typeof r==`string`?r:r.proxyBase||``);e&&t.has(e)||(e&&t.add(e),n.push(r))}return n}function gn(e){return e?.backendProxy}function _n(e){return e.replace(/\/$/,``)}function vn(e){return/^https?:\/\//i.test(e)}function yn(e){return e===`/`?``:e.replace(/\/$/,``)}function bn(e){return!!e&&typeof e==`object`&&!Array.isArray(e)}function xn(e){let t=new Set;return e.filter(e=>!e.url||t.has(e.url)?!1:(t.add(e.url),!0))}function Sn(){return`https://cdn.useblocks.io`}function Cn(e){return!bn(e)||`match`in e||`rewrite`in e||`proxyBase`in e?!1:Object.keys(e).some(e=>Yt.has(e))}function wn(e){if(e!=null)return bn(e)&&(`value`in e||`replace`in e)?e.value:e}function Tn(e,t=`generic`,n=!1){let r=Fn(e,n);if(r)return Cn(r)?wn(r[t]??r.generic):r}function En(e,t=!1){let n=Fn(e,t);return n?Cn(n)?Object.keys(n).filter(e=>Yt.has(e)).map(e=>wn(n[e])).filter(Boolean):[n]:[]}function Dn(e){let t=gn(e);return t?[t]:[]}function On(e,t=!1){if(sn(t))return{proxyBlobFetch:!0,proxyImgSrc:!0,proxyCdn:!0,proxyEmFiles:!0,proxyStockImages:!0};let{stockImagesProxyUrl:n,stockImagesProxyUrlApi:r}=an();return{proxyBlobFetch:!0,proxyImgSrc:!1,proxyCdn:!1,proxyEmFiles:!1,proxyStockImages:nn(n)||nn(r)}}function kn(e){let t=[],n=new Set;for(let r of e){let e=fn(r);if(!e)continue;let i=e.toLowerCase();n.has(i)||(n.add(i),t.push(e))}return t}function An(e){return e?kn(Array.isArray(e)?e:e.value??[]):[]}function jn(e,t){return{inheritDefaults:!e,proxySameOrigin:!1,directHosts:[],...On(t,e)}}function Mn(e,t=!1){let n=jn(t,e),r=e?.resourceProxyPolicy??{};return{inheritDefaults:r.inheritDefaults??n.inheritDefaults,proxySameOrigin:r.proxySameOrigin??n.proxySameOrigin,directHosts:r.directHosts===void 0?n.directHosts:An(r.directHosts),proxyBlobFetch:r.proxyBlobFetch??n.proxyBlobFetch,proxyImgSrc:r.proxyImgSrc??n.proxyImgSrc,proxyCdn:r.proxyCdn??n.proxyCdn,proxyEmFiles:r.proxyEmFiles??n.proxyEmFiles,proxyStockImages:r.proxyStockImages??n.proxyStockImages,recoveryTtlMs:r.recoveryTtlMs??n.recoveryTtlMs}}function Nn(e,t=!1){return Mn(e,t).inheritDefaults}function Pn(e,t=!1){let n=Mn(e,t).recoveryTtlMs;return typeof n==`number`&&n>0?n:Kt}function Fn(e,t=!1){let n=e?.resourceProxy;if(!Nn(e,t))return n;let r=on(e);if(n===void 0)return r;let i=Bt([r,n]);return Array.isArray(i)?hn(mn(i)):i}function In(e){return{proxyEmFiles:!0,proxyAi:!1}}function Ln(e,t,n,r=!1){let i=Mn(n,r);if(t===`display`)return e===`stockImages`?i.proxyStockImages:i.proxyImgSrc;switch(e){case`cdn`:return i.proxyCdn;case`emFiles`:return i.proxyEmFiles;case`stockImages`:return i.proxyStockImages;default:return i.proxyBlobFetch}}function Rn(e,t,n,r=!1){return e===`stockImages`&&Ln(`stockImages`,t,n,r)}function zn(e,t){let n=In(t),r=t?.backendProxyPolicy;switch(e){case`emFiles`:return r?.proxyEmFiles??n.proxyEmFiles;case`ai`:return r?.proxyAi??n.proxyAi;default:return!0}}var Bn={url:`.+`,url_encoded:`.+`,origin:`https?:\\/\\/[^\\/?#]+`,origin_encoded:`.+`,proxy_url:`https?:\\/\\/[^\\/?#]+`,proxy_url_encoded:`.+`,path:`[^?#]*`,pathname:`[^?#]*`,path_with_slash:`\\/[^?#]*`,pathname_with_slash:`\\/[^?#]*`,query:`[^#]*`,search:`\\?[^#]*`,hash:`#.*`,fragment:`.*`,pathname_after_wp_json:`[^?#]*`,pathname_after_wp_json_with_slash:`\\/[^?#]*`,rest_namespace:`[^/?#]*`,rest_version:`[^/?#]*`,rest_route:`[^?#]*`,rest_route_with_slash:`\\/[^?#]*`};function Vn(e){let t=[],n=e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`).replace(/\\\{([a-z_]+)\\\}/gi,(e,n)=>(t.push(n),`(${Bn[n]||`.+`})`));return{regex:RegExp(`^${n}$`,`i`),tokens:t}}function Hn(e){return/[?#]/.test(e)||/\{(?:url|url_encoded|query|search|hash|fragment)\}/i.test(e)}function Un(e,t){if(Hn(t))return e;try{let t=new URL(e);return`${t.origin}${t.pathname}`}catch{return e.split(/[?#]/)[0]||e}}function Wn(e,t,n){if(n.endsWith(`_encoded`))return!0;let r=e.slice(0,t),i=r.lastIndexOf(`#`),a=r.lastIndexOf(`?`),o=r.lastIndexOf(`&`),s=r.lastIndexOf(`=`);return s>Math.max(a,o)&&s>i}function Gn(e){try{let t=new URL(e),n=t.pathname.replace(/^\/+/,``),r=t.search.replace(/^\?/,``),i=t.hash.replace(/^#/,``),a=n.replace(/^wp-json\/?/i,``),o=a?`/${a}`:`/`,s=a.match(/^([^/]+)(?:\/([^/]+))?(?:\/(.*))?$/),c=s?.[1]||``,l=s?.[2]||``,u=s?.[3]||``;return{url:e,url_encoded:encodeURIComponent(e),origin:t.origin,origin_encoded:encodeURIComponent(t.origin),proxy_url:t.origin,proxy_url_encoded:encodeURIComponent(t.origin),path:n,pathname:n,path_with_slash:t.pathname||`/`,pathname_with_slash:t.pathname||`/`,query:r,search:t.search,hash:t.hash,fragment:i,pathname_after_wp_json:a,pathname_after_wp_json_with_slash:o,rest_namespace:c,rest_version:l,rest_route:u,rest_route_with_slash:u?`/${u}`:`/`}}catch{return}}function Kn(e,t){if(!e)return{};if(Array.isArray(e)){for(let n of e){let e=Kn(n,t);if(e!==void 0)return e}return}if(e===`*`)return{};let n=Un(t,e),{regex:r,tokens:i}=Vn(e),a=r.exec(n);if(!a)return;let o={};return i.forEach((e,t)=>{o[`matched_${e}`]=a[t+1]||``}),o}function qn(e,t,n={}){let r=Gn(t);if(!r)return t;let i={...r,...n},a=``,o=0,s=/\{([a-z_]+)\}/gi,c;for(;c=s.exec(e);){a+=e.slice(o,c.index);let t=i[c[1]]??``,n=Wn(e,c.index,c[1])?encodeURIComponent(t):t;a+=n,o=c.index+c[0].length}a+=e.slice(o);try{let e=new URL(a),n=new URL(t);return!a.includes(`{search}`)&&!a.includes(`{query}`)&&n.search&&n.searchParams.forEach((t,n)=>{e.searchParams.has(n)||e.searchParams.append(n,t)}),!a.includes(`{hash}`)&&!a.includes(`{fragment}`)&&n.hash&&!e.hash&&(e.hash=n.hash),e.toString()}catch{return a}}function Jn(e,t){try{let n=new URL(t);return`${_n(e)}/${n.pathname.replace(/^\//,``)}${n.search}${n.hash}`}catch{return t}}function Yn(e,t){let n=_n(e);return t?vn(t)?t:t.startsWith(`?`)||t.startsWith(`#`)?`${n}${t}`:`${n}${t.startsWith(`/`)?``:`/`}${t}`:n}function Xn(e,t,n,r){let i=e.match;return i?Array.isArray(i)?i.some(i=>Xn({...e,match:i},t,n,r)):typeof i==`function`?!!i({url:t,resourceType:n,intent:r}):i===`*`?!0:Kn(i,t)!==void 0:!0}function Zn(e,t,n,r,i,a){if(e==null)return[];let o=Array.isArray(e)?e:[e],s=[];return o.forEach((e,o)=>{if(!e)return;if(typeof e==`string`){let i=e.includes(`{`)&&e.includes(`}`)?qn(e,t):Jn(e,t);s.push({key:`${n}:${o}`,url:i,source:r});return}if(!bn(e)||!(`rewrite`in e))return;let c=e;if(!Xn(c,t,i,a))return;let l=(typeof c.match==`string`||Array.isArray(c.match))&&Kn(c.match,t)||{},u=typeof c.proxyBase==`string`&&c.proxyBase.trim()?c.proxyBase.trim():void 0;(Array.isArray(c.rewrite)?c.rewrite:[c.rewrite]).filter(Boolean).forEach((e,d)=>{let f=typeof e==`function`?(()=>{let n=e({url:t,proxyBase:u,resourceType:i,intent:a,...l}),r=u&&!vn(n)?Yn(u,n):n;return r.includes(`{`)&&r.includes(`}`)?qn(r,t,l):r})():u?qn(Yn(u,e),t,l):e.includes(`{`)&&e.includes(`}`)?qn(e,t,l):Jn(e,t);s.push({key:`${n}:${c.id||`rule`}:${o}:${d}`,url:f,source:r})})}),xn(s)}function Qn(e,t,n,r){let i=e.match;return i?Array.isArray(i)?i.some(i=>Qn({...e,match:i},t,n,r)):typeof i==`function`?!!i({url:t,method:r,requestType:n}):i===`*`?!0:Kn(i,t)!==void 0:!0}function $n(e,t,n,r=`generic`){if(e==null)return[];let i=Array.isArray(e)?e:[e],a=[];return i.forEach((e,i)=>{if(!e)return;if(typeof e==`string`){let n=e.includes(`{`)&&e.includes(`}`)?qn(e,t):Jn(e,t);a.push({key:`backend:${i}`,url:n,source:`resource`});return}if(!bn(e)||!(`rewrite`in e))return;let o=e;if(!Qn(o,t,r,n))return;let s=(typeof o.match==`string`||Array.isArray(o.match))&&Kn(o.match,t)||{},c=typeof o.proxyBase==`string`&&o.proxyBase.trim()?o.proxyBase.trim():void 0;(Array.isArray(o.rewrite)?o.rewrite:[o.rewrite]).filter(Boolean).forEach((e,l)=>{let u=typeof e==`function`?(()=>{let i=e({url:t,proxyBase:c,method:n,requestType:r,...s}),a=c&&!vn(i)?Yn(c,i):i;return a.includes(`{`)&&a.includes(`}`)?qn(a,t,s):a})():c?qn(Yn(c,e),t,s):e.includes(`{`)&&e.includes(`}`)?qn(e,t,s):Jn(e,t);a.push({key:`backend:${o.id||`rule`}:${i}:${l}`,url:u,source:`resource`})})}),xn(a)}function er(e,t,n){return[e,...n.map(e=>e.url)].join(`|`)}function tr(e,t){if(!e||t.length<2)return t;let n=qt.get(e);if(!n?.activeUrl)return t;let r=t.find(e=>e.url===n.activeUrl);return r?[r,...t.filter(e=>e.url!==n.activeUrl)]:t}function nr(e){e&&Jt.get(e)?.forEach(e=>{try{e()}catch{}})}function rr(e,t){if(!e)return()=>void 0;let n=Jt.get(e)||new Set;return n.add(t),Jt.set(e,n),()=>{let n=Jt.get(e);n&&(n.delete(t),n.size===0&&Jt.delete(e))}}function ir(e,t){if(!e)return!1;let n=qt.get(e);return!!n?.failedUntil&&n.activeUrl===t.url&&n.failedUntil>Date.now()}function ar(e,t){let n=tr(e,t);if(!e||n.length<2)return n;let r=[],i=[];return n.forEach(t=>{ir(e,t)?i.push(t):r.push(t)}),[...r,...i]}function or(e,t){if(!e)return;let n=qt.get(e);qt.set(e,{activeUrl:t.url}),(n?.activeUrl!==t.url||n?.failedUntil)&&nr(e)}function sr(e,t,n,r=!1){if(!e)return;let i=Pn(n,r),a={activeUrl:t.url,failedUntil:Date.now()+i},o=qt.get(e);qt.set(e,a),(o?.activeUrl!==a.activeUrl||o?.failedUntil!==a.failedUntil)&&nr(e)}function cr(e){return en.test(e)||tn.test(e)}function lr(e){return Xt.test(e)||Zt.test(e)}function ur(e){return cr(e)||lr(e)}function dr(e,t){let n=Sn();return n&&e.startsWith(_n(n))?`cdn`:Qt.test(e)||$t.test(e)?`stockImages`:`generic`}function fr(e){try{let t=new URL(e);return/(?:^|\/)wp-json\/em-files\/v\d+(?:\/|$)/i.test(t.pathname)?`emFiles`:/(?:^|\/)wp-json\/ai-generator\/v\d+(?:\/|$)/i.test(t.pathname)?`ai`:`generic`}catch{return`generic`}}function pr(e,t){try{let n=new URL(e),r=new URL(t),i=yn(r.pathname),a=i===``?!0:n.pathname===i||n.pathname.startsWith(`${i}/`);if(n.origin!==r.origin||!a)return null;let o=n.searchParams.get(`url`);if(o)return o;let s=n.searchParams.get(`proxy_url`);if(!s)return null;let c=new URL(s),l=i===``?n.pathname.replace(/^\/+/,``):n.pathname.slice(i.length).replace(/^\/+/,``);return c.pathname=l?`/${l}`:`/`,n.searchParams.forEach((e,t)=>{t===`proxy_url`||t===`url`||c.searchParams.has(t)||c.searchParams.append(t,e)}),n.hash&&!c.hash&&(c.hash=n.hash),c.toString()}catch{return null}}function mr(e,t=[]){return e==null||(Array.isArray(e)?e:[e]).forEach(e=>{if(e){if(typeof e==`string`){let n=e.split(`{`)[0]?.trim();n&&t.push(_n(n));return}!bn(e)||!(`rewrite`in e)||(typeof e.proxyBase==`string`&&e.proxyBase.trim()&&t.push(_n(e.proxyBase.trim())),(Array.isArray(e.rewrite)?e.rewrite:[e.rewrite]).forEach(e=>{if(typeof e!=`string`)return;let n=e.split(`{`)[0]?.trim();n&&t.push(_n(n))}))}}),t}function hr(e,t,n=!1){return En(t,n).flatMap(e=>mr(e)).filter(Boolean).some(t=>t&&e.startsWith(t))}function gr(e,t){return Dn(t).flatMap(e=>mr(e)).filter(Boolean).some(t=>t&&e.startsWith(t))}function _r(e,t,n=!1){let r=En(t,n).flatMap(e=>mr(e)).filter(Boolean);for(let t of r){let n=pr(e,t);if(n)return n}return null}function vr(e,t,n=!1){return hr(e,t,n)}function yr(e,t,n=!1){return _r(e,t,n)||e}function br(e,t,n,r=!1){return!!Tn(n,e,r)&&Ln(e,t,n,r)}function xr(e,t){return!!gn(t)&&zn(e,t)}function Sr(e,t,n,r=!1){if(sn(r)||t===`downloadBlob`)return!1;switch(e){case`stockImages`:return Ln(e,t,n,r);default:return!1}}function Cr(e,t={}){let n=t.config,r=yr(e,n,t.standalone),i=t.resourceType||dr(r,n),a=t.intent||`display`;if(ur(r))return{resourceType:`generic`,intent:a,candidates:[]};let o=br(i,a,n,t.standalone)?Zn(Tn(n,i,t.standalone),r,i,`resource`,i,a):[];return{resourceType:i,intent:a,candidates:o,stabilityKey:o.length?er(i,a,o):void 0}}function wr(e,t={}){let n=t.requestType||fr(e);return xr(n,t.config)?$n(gn(t.config),e,t.method,n):[]}function Tr(e,t={},n){let r=t.intent||n;if(vr(e,t.config,t.standalone)){let n=yr(e,t.config,t.standalone),i=t.resourceType||dr(n,t.config),a={key:`already-proxied`,url:e,source:`direct`};return{chain:{resourceType:i,intent:r,candidates:[a]},candidates:[a]}}let i=yr(e,t.config,t.standalone),a=t.resourceType||dr(i,t.config),o=Sr(a,r,t.config,t.standalone);if(dn(r,o)&&!ur(i)&&!Rn(a,r,t.config,t.standalone)){let e=pn(i,Mn(t.config,t.standalone));if(e){let t={key:`direct-${e.skipReason}`,url:i,source:`direct`};return{chain:{resourceType:a,intent:r,candidates:[t],directShortCircuit:e},candidates:[t]}}}let s=Cr(i,{...t,intent:r,resourceType:a});return{chain:s,candidates:xn([...ar(s.stabilityKey,s.candidates),...o?[]:[{key:`direct`,url:i,source:`direct`}]])}}function Er(e,t,n={},r){let{chain:i,candidates:a}=Tr(e,n,r),o=a.find(e=>e.url===t);return!o||o.source!==`resource`?null:{chain:i,candidate:o}}function Dr(e,t,n={}){let r=Er(e,t,n,`display`);r&&or(r.chain.stabilityKey,r.candidate)}function Or(e,t,n={}){let r=Er(e,t,n,`display`);r&&sr(r.chain.stabilityKey,r.candidate,n.config,n.standalone)}function kr(e,t,n,r=!1){return{src:e,changed:n,exhausted:r,reason:t}}var Ar=class extends Error{final=!0;skipReason;hostname;constructor(e,t){super(`Direct resource fetch failed (${e}: ${t}). ${e===`same-origin`?`The same-origin asset is unreachable; check that the resource exists and is served by the editor origin.`:`Add CORS headers for the editor origin or remove the host from directHosts.`}`),this.name=`DirectResourceFetchError`,this.skipReason=e,this.hostname=t}};function jr(e,t){return new Ar(e,t)}function Mr(e){if(e instanceof Error&&e.name===`AbortError`)return!1;if(e instanceof TypeError)return!0;if(e instanceof Error){if(e.message===`Proxy validation failed`)return!1;if(e.message.startsWith(`Proxy fetch failed with status`))return!0}return!0}function Nr(e,t=!1){let n=Mn(e,t);return{inheritDefaults:n.inheritDefaults,proxySameOrigin:n.proxySameOrigin,directHosts:[...n.directHosts]}}function Pr(e){return e.length>0&&e.every(e=>e.source===`direct`)}function Fr(e,t,n){return e.directShortCircuit?e.directShortCircuit.skipReason:t.length===1&&t[0]?.source===`direct`&&ur(n)?`direct-only-vendor`:null}function Ir(e,t,n){return e.directShortCircuit||n===`direct-only-vendor`||Pr(t)?`direct`:`proxy`}function Lr(e,t={}){let{chain:n,candidates:r}=Tr(e,t,t.intent||`display`),i=n.stabilityKey?qt.get(n.stabilityKey):void 0,a=r[0]?.url||e,o=Fr(n,r,yr(e,t.config,t.standalone)),s=Nr(t.config,t.standalone);return{originalUrl:e,resourceType:n.resourceType,intent:n.intent,stabilityKey:n.stabilityKey,currentSrc:a,runtimeState:i?{...i}:void 0,decision:Ir(n,r,o),skipReason:o,matchedHost:n.directShortCircuit?.matchedHost,policy:s,candidates:r.map(e=>({...e,isCurrent:e.url===a,isFailed:ir(n.stabilityKey,e),failedUntil:i?.activeUrl===e.url?i?.failedUntil:void 0}))}}function Rr(e,t={}){let n=Tr(e,t,`display`),r=n.candidates,i=r[0]?.url||e,a=Math.max(0,r.findIndex(e=>e.url===i)),o=()=>{let o=Tr(e,t,`display`),s=o.candidates,c=s[0]?.url||e;return!c||c===i?(n=o,r=s,a=Math.max(0,s.findIndex(e=>e.url===i)),kr(i,`unchanged`,!1)):(n=o,r=s,i=c,a=Math.max(0,s.findIndex(e=>e.url===i)),kr(i,`runtime-update`,!0))};return{get src(){return i},get stabilityKey(){return n.chain.stabilityKey},handleChangeSrc:()=>o(),handleSuccess:()=>{Dr(e,i,t)},handleError:()=>{Or(e,i,t);let n=o();if(n.changed&&n.src)return n;let s=r[a+1];return!s||s.url===i?kr(null,`exhausted`,!1,!0):(i=s.url,a+=1,kr(i,`candidate-fallback`,!0))},subscribeToSrcChange:e=>rr(n.chain.stabilityKey,()=>{let t=o();t.changed&&e(t)}),getDebugSnapshot:()=>Lr(e,t)}}async function zr(e,t={}){if(vr(e,t.config,t.standalone))return fetch(e,t.init);let n=t.config,{chain:r,candidates:i}=Tr(e,t,t.intent||`downloadBlob`),a;for(let e of i)try{let n=await fetch(e.url,t.init);if(!n.ok)throw Error(`Proxy fetch failed with status ${n.status}`);if(t.validateBlob){let e=await n.clone().blob();if(!await t.validateBlob(e))throw Error(`Proxy validation failed`)}return e.source===`resource`&&or(r.stabilityKey,e),n}catch(i){a=i,e.source===`resource`&&sr(r.stabilityKey,e,n,t.standalone)}throw r.directShortCircuit&&i.length===1&&i[0]?.source===`direct`&&Mr(a)?jr(r.directShortCircuit.skipReason,r.directShortCircuit.matchedHost):a instanceof Error?a:Error(`Failed to fetch resource through proxy chain`)}function Br(e,t={}){return gr(e,t.config)?[e]:wr(e,t).map(e=>e.url)}function Vr(e,t){let n=Sn(),r=t.filter(Boolean).map(e=>String(e).replace(/^\/+|\/+$/g,``));return n?`${_n(n)}/${r.join(`/`)}`:r.join(`/`)}function Hr(e,t){let n=Sn();return!!n&&e.startsWith(_n(n))}var Ur=e=>{let t=new FormData,n=(e,t,r)=>{if(t!=null){if(t instanceof Blob){e.append(r,t);return}if(Array.isArray(t)){t.forEach((t,i)=>{n(e,t,r?`${r}[${i}]`:`${i}`)});return}if(typeof t==`object`){Object.keys(t).forEach(i=>{let a=t[i];n(e,a,r?`${r}[${i}]`:i)});return}e.append(r,String(t))}};return n(t,e),t};function Wr(e){for(;e.endsWith(`/`);)e=e.slice(0,e.length-1);return/\/wp-json$/i.test(e)?e:`${e}/wp-json`}var Gr={baseUrl:Wr(`https://app.useblocks.io/api`),baseApiParams:{secure:!0,credentials:`same-origin`,format:`json`},securityWorker:()=>({credentials:`same-origin`})},Kr=new Map;function qr(e){if(e)return e.getState().configSlice?.config}var Jr=class extends Ct{container;constructor(e={},t){super(e),this.container=t}buildRequestUrl(e){let{path:t,baseUrl:n,extraQuery:r}=e,{query:i}=e;r&&(i=i?{...i,...r}:r);let a=i&&this.toQueryString(i);return`${n||this.baseUrl||``}${t}${a?`?${a}`:``}`}buildRequestKey(e,t){return`${t.toUpperCase()} ${e}`}getBackendProxyCandidates(e,t){let n=Br(e,{config:qr(this.container?.getInstance(ht)),method:t,standalone:this.container?.getInstance(vt)!==void 0}),r=n.length>0?n:[e],i=this.buildRequestKey(e,t),a=Kr.get(i);return!a||!r.includes(a)?r:[a,...r.filter(e=>e!==a)]}shouldRetryResponse(e){return e.status===502||e.status===503||e.status===504}async request(e){let t=this.buildRequestUrl(e),n=e.method||`GET`,r=this.buildRequestKey(t,n),i=this.getBackendProxyCandidates(t,n),a,o;for(let n of i){let s=e=>e===t?n:e;try{let t=await super.request({...e,proxyHandler:s});if(!t.ok&&this.shouldRetryResponse(t)&&n!==i[i.length-1]){o=t,Kr.get(r)===n&&Kr.delete(r);continue}return Kr.set(r,n),t}catch(e){if(a=e,Kr.get(r)===n&&Kr.delete(r),e instanceof DOMException&&e.name===`AbortError`)throw e}}if(o)return o;throw a instanceof Error?a:Error(`Backend proxy chain failed`)}};function Yr(e=Gr){let t=new Map;return{create(n,r){let i=new Jr({...e,...n},r);return i.contentFormatters[`multipart/form-data`]=Ur,t.set(i,{options:n,container:r}),i},getOptions(){return e},setOptions(n){e=n;for(let[n,r]of t)Object.assign(n,{...e,...r.options})}}}var Xr=x();function Zr(e){return e.getOrCreateInstance(Xr,()=>Yr())}function Qr(e,t={}){let n=kt(e)?F(e):e;return Zr(n).create(t,n)}var $r=x(),ei=x(),ti=x(),ni=e=>{e.inject(ti,{execute:async(t,n={})=>{let r=e.getServices($r),i=t instanceof Request?t:new Request(t,n);for(let e of r){let t=await e.execute(i);t instanceof Request&&(i=t)}let a=await fetch(i),o=e.getServices(ei);for(let e of o)a=await e.execute(a);return a}})},ri=e=>{ni(e);let t=e.getInstance(ti);e.inject(wt,Qr(e,{customFetch:t?.execute||fetch}))},ii;(function(e){let t=`https://racs.rest/v3`;function n(e,n){let r={method:`POST`,headers:{"Content-Type":`application/json`,Accept:`application/json`},body:JSON.stringify(n)};return fetch(`${t}?resource=${e}&dataset=${document.location.hostname}`,r)}e.post=n;async function r(e,n=0){let r={method:`POST`,headers:{"Content-Type":`application/json`,Accept:`application/json`},body:`{"filter":{},"limit":${n}}`};return await(await fetch(`${t}/get?resource=${e}&dataset=${document.location.hostname}`,r)).json()}e.getAll=r})(ii||={});function ai(e){if(typeof e==`object`&&e){let t={};for(let n of Object.keys(e)){let r=e[n];r&&typeof r==`object`?t[n]=ai(r):t[n]=r}return t}return e}function oi(e,t){if(e!==t){if(!e||!t||typeof e!=`object`||typeof t!=`object`)return!1;let n=e instanceof Array,r=t instanceof Array;if(n){if(!r)return!1;let n=e.length;if(t.length!==n)return!1;for(let r=0;r<n;r++)if(!oi(e[r],t[r]))return!1}else if(r)return!1;let i=Object.keys(e),a=Object.keys(t),o=i.length;if(o!==a.length)return!1;for(let n=0;n<o;n++){let r=i[n];if(!t.hasOwnProperty(r)||!oi(e[r],t[r]))return!1}}return!0}var si={text:{fontFamily:[`Google Fonts`,`Sans Serif`,`Mulish`,`Regular`],fontSize:16,fontSizeDim:`px`,lineHeight:24,lineHeightDim:`px`,color:`#595959`,contrastColor:`#FFFFFF`,textAlign:`left`,paddingBottom:10,paddingBottomDim:`px`},headings:{fontFamily:[`Google Fonts`,`Sans Serif`,`Mulish`,`Bold`],fontSize:28,fontSizeDim:`px`,lineHeight:34,lineHeightDim:`px`,color:`#000000`,contrastColor:`#FFFFFF`,textAlign:`left`,paddingTop:20,paddingTopDim:`px`,paddingBottom:20,paddingBottomDim:`px`,letterSpacing:0,letterSpacingDim:`px`,bold:!0,italic:!1},links:{color:`#1890ff`,contrastColor:`#FFFFFF`,underline:!0},buttons:{fontFamily:[`Google Fonts`,`Sans Serif`,`Mulish`,`Medium`],fontSize:16,fontSizeDim:`px`,letterSpacing:0,letterSpacingDim:`px`,color:`#FFFFFF`,contrastColor:`#1890ff`,bold:!1,italic:!1,backgroundColor:`#1890ff`,contrastBackgroundColor:`#FFFFFF`,marginTop:10,marginTopDim:`px`,marginBottom:10,marginBottomDim:`px`,border:{all:null,top:null,right:null,bottom:null,left:null},borderRadius:{all:6,topLeft:null,topRight:null,bottomRight:null,bottomLeft:null},textAlign:`center`,padding:{all:null,top:null,right:null,bottom:null,left:null}},block:{backgroundColor:`#FFFFFF`,contrastBackgroundColor:`#1890ff`,padding:{all:null,top:null,right:null,bottom:null,left:null}},cards:{contrastBackgroundColor:`#1890ff`,contrastTextColor:`#ffffff`,baseBackgroundColor:`#f8f8f8`,baseTextColor:`#333333`,border:{all:null,top:null,right:null,bottom:null,left:null},borderRadius:{all:10,topLeft:null,topRight:null,bottomRight:null,bottomLeft:null}}},ci=`ERROR`,li=`useblocks`,ui={isPlugin:!0},di={isEditor:!1},fi={em_token:`em_token`,em_elements_view:`em_elements_view`,em_new_block:`em_new_block`,em_new_email:`em_new_email`,em_id:`em_id`,em_name:`em_name`,em_email:`em_email`,em_locale:`em_locale`,em_carrotquest_hash:`em_carrotquest_hash`,em_ducalis_hash:`em_ducalis_hash`,em_email_subscription_consent:`em_email_subscription_consent`,em_folder:`em_folder`,promocode:`promocode`,em_active_tab:`em_active_tab`},pi={em_color_scheme:`em_color_scheme`,em_code_mode_pane_sizes:`em_code_mode_pane_sizes`,em_preview_pane_sizes:`em_preview_pane_sizes`,em_default_sizes:`em_default_sizes`,em_pane_sizes:`em_pane_sizes`,em_test_emails:`em_test_emails`,em_menu_is_locked:`em_menu_is_locked`,em_code_mode_settings:`em_code_mode_settings`,em_folder_is_open:`em_folder_is_open`,em_active_tab:`em_active_tab`,em_ai_settings:`em_ai_settings`,em_last_active_page:`em_last_active_page`},mi=`deleted`,hi=`not all`,gi=`light`,_i=`dark`,vi=`system`,yi=`(prefers-color-scheme: light)`,bi=`(prefers-color-scheme: dark)`,xi={auth:`/auth`,projects_index:`/`,projects:`/projects`,project:`/projects/:projectId/emails`,email:`/projects/:projectId/emails/:emailId`,create_email:`/projects/:projectId/emails/new`,billing:`/billing`},Si={ADD_NEW_PROJECT_MODAL:`ADD_NEW_PROJECT_MODAL`,EDIT_PROJECT_MODAL:`EDIT_PROJECT_MODAL`,BLOCKS_MODAL:`BLOCKS_MODAL`,EDIT_PROFILE_MODAL:`EDIT_PROFILE_MODAL`,SEND_TEST_EMAIL:`SEND_TEST_EMAIL`,ADD_NEW_EBLOCK_MODAL:`ADD_NEW_EBLOCK_MODAL`,ADD_NEW_EMAIL_MODAL:`ADD_NEW_EMAIL_MODAL`,ADD_NEW_AI_EMAIL:`ADD_NEW_AI_EMAIL`,SWITCH_TO_PLAN_MODAL:`SWITCH_TO_PLAN_MODAL`,IMAGE_EDITOR_MODAL:`IMAGE_EDITOR_MODAL`,ADD_NEW_FOLDER_MODAL:`ADD_NEW_FOLDER_MODAL`,EDIT_FOLDER_NAME_MODAL:`EDIT_FOLDER_NAME_MODAL`,ADD_NEW_GROUP_MODAL:`ADD_NEW_GROUP_MODAL`,EDIT_GROUP_NAME_MODAL:`EDIT_GROUP_NAME_MODAL`,RENAME_EMAIL_MODAL:`RENAME_EMAIL_MODAL`,RENAME_BLOCK_MODAL:`RENAME_BLOCK_MODAL`,UPLOAD_IMAGE_MODAL:`UPLOAD_IMAGE_MODAL`,UPLOAD_BACKGROUND_MODAL:`UPLOAD_BACKGROUND_MODAL`,UPLOAD_IMAGE_MODAL_AI:`UPLOAD_IMAGE_MODAL_AI`,UPLOAD_BACKGROUND_MODAL_AI:`UPLOAD_BACKGROUND_MODAL_AI`,UPLOAD_IMAGE_MODAL_STOCK:`UPLOAD_IMAGE_MODAL_STOCK`,UPLOAD_BACKGROUND_MODAL_STOCK:`UPLOAD_BACKGROUND_MODAL_STOCK`,UPLOAD_IMAGE_MODAL_GIF:`UPLOAD_IMAGE_MODAL_GIF`,UPLOAD_BACKGROUND_MODAL_GIF:`UPLOAD_BACKGROUND_MODAL_GIF`,UPLOAD_IMAGE_MODAL_EDIT:`UPLOAD_IMAGE_MODAL_EDIT`,UPLOAD_BACKGROUND_MODAL_EDIT:`UPLOAD_BACKGROUND_MODAL_EDIT`,UPLOAD_IMAGE_MODAL_UPLOAD:`UPLOAD_IMAGE_MODAL_UPLOAD`,UPLOAD_BACKGROUND_MODAL_UPLOAD:`UPLOAD_BACKGROUND_MODAL_UPLOAD`},Ci=`application/x-emailmaker-social-reorder`,wi={MESSAGE:`message`,INIT_PREVIEW:`init_preview`,UPDATE_PREVIEW:`update_preview`,UPDATE_EDITOR:`update_editor`,UPDATE_EDITOR_POSITION:`update_editor_position`,UPDATE_SIDE_MENU_EDITOR:`update_side_menu_editor`,SAVE_EMAIL:`saveEmail`,SANDBOX_ELEMENT_SETTINGS_SET:`sandbox_element_settings_set`,SANDBOX_CURRENT_IMAGE_RELOAD:`sandbox_current_image_reload`,SANDBOX_NATIVE_IMAGE_DROP_CLEAR:`sandbox_native-image-drop-clear`,SANDBOX_EMAIL_SETTINGS_SET:`sandbox_email_settings_set`,SANDBOX_BLOCK_SETTINGS_SET:`sandbox_block_settings_set`,SANDBOX_ELEMENT_PARENT_GET:`sandbox_element_parent_get`,SANDBOX_ELEMENT_PARENT_TABLE_GET:`sandbox_element_parent_table_get`,SANDBOX_ELEMENT_PREV_GET:`sandbox_element_prev_get`,SANDBOX_ELEMENT_NEXT_GET:`sandbox_element_next_get`,SANDBOX_ELEMENT_REMOVE:`sandbox_element_remove`,SANDBOX_ELEMENT_ACTIVE_RESET:`sandbox_element_active_reset`,SANDBOX_ELEMENT_ACTIVE_SET:`sandbox_element_active_set`,SANDBOX_ELEMENT_HOVER_SET:`sandbox_element_hover_set`,SANDBOX_ELEMENT_IMG_LINK:`sandbox_element_img_link`,SANDBOX_ELEMENT_TEXT:`sandbox_element_text`,SANDBOX_EMAIL_CONTENT_GET:`sandbox_email_content_get`,SANDBOX_SET_POSITION_TO_IMG:`sandbox_set_position_to_img`,SANDBOX_SET_POSITION_TO_LINK:`sandbox_set_position_to_link`,SANDBOX_ACCORDION_ADD_SECTION:`sandbox_accordion_add_section`,SANDBOX_ACCORDION_REMOVE_SECTION:`sandbox_accordion_remove_section`,APPLICATION_FOCUS_IN_IFRAME:`application_focus_in_iframe`,APPLICATION_EMAIL_SETTINGS_SET:`application_email_settings_set`,APPLICATION_BLOCK_SETTINGS_SET:`application_block_settings_set`,APPLICATION_ELEMENT_SETTINGS_SET:`application_element_settings_set`,_APPLICATION_ELEMENT_SETTINGS_SET:j(`application_element_settings_set`),APPLICATION_ELEMENT_SETTINGS_CLOSE:`application_element_settings_close`,APPLICATION_ACTION:`application_action`,APPLICATION_EBLOCK_ADD:`application_eblock_add`,APPLICATION_EBLOCK_PROPAGATE_UPDATE:`application_eblock_propagate_update`,SANDBOX_EBLOCK_SET_EM_BLOCK_ID:`sandbox_eblock_set_em_block_id`,APPLICATION_SCROLL_TO:`application_scroll-to`,APPLICATION_SCROLL_BLOCK_SHOW:`application_scroll-block-show`,APPLICATION_SCROLL_BLOCK_HIDE:`application_scroll-block-hide`,APPLICATION_DISCUSS_SET_ID:`application_discuss_set_id`,APPLICATION_DISCUSS_GET_COMMENT:`application_discuss_get_comment`,APPLICATION_DISCUSS_NO_COMMENT:`application_discuss_no_comment`,APPLICATION_DISCUSS_SAVE_TARGET:`application_discuss_save_target`,APPLICATION_IFRAME_SET_HEIGHT:`application_iframe_set_height`,APPLICATION_COMMON_STYLES_UPDATE:`application_commonStyles_update`,APPLICATION_EMAIL_CONTENT_GET:`application_email_content_get`,APPLICATION_OPEN_IMAGE_AI_POPUP:`application_open-image-ai-popup`,APPLICATION_OPEN_IMAGE_UPLOAD_POPUP:`application_open-image-upload-popup`,APPLICATION_OPEN_IMAGE_EDIT_POPUP:`application_open-image-edit-popup`,APPLICATION_OPEN_IMAGE_GIF_POPUP:`application_open-image-gif-popup`,APPLICATION_OPEN_IMAGE_STOCK_POPUP:`application_open-image-stock-popup`,APPLICATION_CLOSE_IMAGE_EDIT_POPUP:`application_close-image-edit-popup`,APPLICATION_NATIVE_IMAGE_DROP:`application_native-image-drop`,APPLICATION_SUBJECT_UPDATE:j(`application_subject_update`),APPLICATION_PREHEADER_UPDATE:j(`application_preheader_update`),APPLICATION_DOMPARSER_ERROR:j(`application_domparser_error`),APPLICATION_UPDATE_ENTITY:j(`application_update_entity`),APPLICATION_IFRAME_DRAG_EVENT:j(`application_iframe_drag_event`),APPLICATION_HAS_AMP:j(`application_has_amp`),APPLICATION_PREVIEW_ALERT_SHOW:`application_preview_alert_show`,APPLICATION_ATOM_INSERTED:j(`application_atom_inserted`),APPLICATION_TEMPLATE_NOT_EM_ALERT_SHOW:`application_template_not_em_alert_show`,SANDBOX_WINDOW_CHARACTERISTIC:`sandbox_window-characteristic`,SANDBOX_IFRAME_SETSIZE:`sandbox_iframe-setsize`,SANDBOX_BLOCK_INSERT:`sandbox_block-insert`,SANDBOX_ATOM_INSERT:`sandbox_atom-insert`,SANDBOX_DRAG_CANCEL:`sandbox_drag-cancel`,UPDATE_EDITOR_POSITION_FROM_EDITOR:`update_position_from_editor`,UPDATE_EDITOR_POSITION_FROM_IFRAME:`update_position_from_iframe`,SANDBOX_CHANGE_PREVIEW:`sandbox_change_preview`,APPLICATION_CHANGE_PREVIEW:`application_change_preview`,SANDBOX_LOCK_EDIT:`sandbox_lock_edit`,SANDBOX_FLOATBLOCK_ADD:`sandbox_floatBlock_add`,SANDBOX_FLOATBLOCK_REMOVE:`sandbox_floatBlock_remove`,EDITOR_CHANGE_FOCUS:`editor_change_focus`,SANDBOX_RESIZED:`sandbox_resized`,SANDBOX_LOCK_DISCUSS:`sandbox_lock_discuss`,SANDBOX_DISCUSS_SET_TARGET:`sandbox_discuss_set_target`,SANDBOX_DISCUSS_REMOVE_TARGET:`sandbox_discuss_remove_target`,SANDBOX_DISCUSS_RESET:`sandbox_discuss_reset`,SANDBOX_DISCUSS_GET_TARGET:`sandbox_discuss_get_target`,SANDBOX_READY:j(`SANDBOX_READY`),SANDBOX_FLOATBLOCK_WRAP:`sandbox_floatblock_wrap`,SANDBOX_FLOATBLOCK_DIR:`sandbox_floatblock_dir`,SANDBOX_SUBJECT_UPDATE:j(`sandbox_subject_update`),SANDBOX_PREHEADER_UPDATE:j(`sandbox_preheader_update`),SANDBOX_DRAG_EVENT:j(`sandbox_drag_event`),SANDBOX_ADD_MERGETAG:j(`sandbox_add_mergetag`),SANDBOX_TRANSLATIONS:j(`sandbox_send_translations`),SANDBOX_SET_THEME_VARIABLES:j(`sandbox_send_theme_variables`),SANDBOX_SET_ENTITY:j(`sandbox_set_entity`),SANDBOX_INIT_START:j(`sandbox_init_start`),SANDBOX_INITED:j(`sandbox_inited`),SANDBOX_UPDATE_ENTITY:j(`sandbox_update_entity`),RELOAD:j(`reload`),SANDBOX_ADD_EXTENSIONS:j(`sandbox_add_extensions`),SANDBOX_REMOVE_EXTENSIONS:j(`sandbox_remove_extensions`),SANDBOX_ADD_SCRIPT:j(`sandbox_add_script`),SANDBOX_IS_EMAIL_EMPTY:j(`sandbox_is_email_empty`),SANDBOX_SWITCH_THEME:j(`sandbox_switch_theme`)},Ti={language:`html`,detectIndentation:!1,wordWrap:`on`,wrappingIndent:`same`,smoothScrolling:!0,automaticLayout:!0,tabSize:2,indentSize:2},Ei=function(e){return e.IMG=`img`,e.TEXT=`text`,e.LINK=`a`,e.TABLE=`table`,e.VINDENT=`vindent`,e.TD=`td`,e.STRUCTURE=`structure`,e.GROUP=`group`,e.BUTTON=`button`,e.DIV=`div`,e.FLOAT_BLOCK=`floatBlock`,e.VAR=`var`,e.EMPTY_TABLE=`emptyTable`,e.EMPTY_TD=`emptyTd`,e.COUNTDOWN=`countdown`,e.VIDEO=`video`,e.COLUMN=`column`,e.CAROUSEL=`carousel`,e.ACCORDION=`accordion`,e.CUSTOM_TABLE=`customTable`,e.SOCIAL=`social`,e}({}),Di={ALL:`All`,STANDARD:`Standard`,PROJECT:`Project`},Oi=`Appearance`,ki=`Structure`,Ai=`Settings`,ji=`Properties`,Mi=`History`,Ni=`Disabled_tab`,Pi=`Edit selected element`,Fi=`UTM parameters`,Ii=`Table properties`,Li=`Edit selected table cells`,Ri=`#b9b1b1`,zi=`Edit`,Bi=`AiChat`,Vi=`Build`,Hi=`Styles`,Ui=`Discuss`,Wi=`Blocks`,Gi=`Atoms`,Ki=`Optimise`,qi={top:{width:null,style:null,color:null},right:{width:null,style:null,color:null},bottom:{width:null,style:null,color:null},left:{width:null,style:null,color:null},all:{width:null,style:null,color:null}},Ji=`block`,Yi=`email`,Xi=`cards`,Zi=`list`,Qi=`pending`,$i=`d41d8`,ea=`valid`,ta=`warnings`,na=`errors`,ra={LINKS:`Links`,IMAGES:`Images`,SPAM_ASSASSIN:`Spam assassin`,PROBLEMS:`Problems`},ia=`1865`,aa=6892,oa=`desktop`,sa=`mobile`,ca=`emailtags`,la=`blocktags`,ua=e=>({REORDER_ATOM:e(`Reorder element`),CLONE_ATOM:e(`Clone element`),REMOVE_ATOM:e(`Remove element`),EDIT_ATOM:e(`Edit element`),CHANGE_IMAGE:e(`Change image`),REORDER_BLOCK:e(`Reorder block`),REORDER_BLOCK_UP:e(`Move up`),REORDER_BLOCK_DOWN:e(`Move down`),EDIT_BLOCK:e(`Edit block`),CLONE_BLOCK:e(`Clone block`),MERGE_BLOCK:e(`Merge with the chosen block`),UNMERGE_BLOCK:e(`Split blocks`),COPY_BLOCK_TO_CLIPBOARD:e(`Copy block to clipboard`),PASTE_BLOCK_FROM_CLIPBOARD:e(`Paste block from clipboard`),REMOVE_BLOCK:e(`Remove block`),SAVE_TO_BLOCKS:e(`Save to Blocks`),UPDATE_GLOBAL_BLOCK_IN_TEMPLATES:e(`Push block update to all templates`),ADD_BLOCK:e(`Add block`),ADD_EMPTY_BLOCK:e(`Add an empty block`),ADD_SAVED_BLOCK:e(`Add a saved block`),ADD_COMMON_BLOCK:e(`Add a common block`),ADD_TEMPLATE_BLOCK:e(`Add a template block`),ADD_SEARCH_BLOCK:e(`Search a block`),REORDER_GROUP:e(`Reorder group`),EDIT_GROUP:e(`Edit group`),CLONE_GROUP:e(`Clone group`),REMOVE_GROUP:e(`Remove group`),ADD_GROUP:e(`Add group`),LINK:e(`link`),TABLE_COLUMN:e(`cell`),TABLE:e(`table`),FLOAT_BLOCK:e(`column`),CONTAINER:e(`container`),PICTURE:e(`picture`),CAROUSEL:e(`carousel`),ACCORDION:e(`accordion`),SOCIAL:e(`Social media`),VERTICAL_INDENT:e(`indent`),TEXT:e(`text`),BUTTON:e(`button`),VAR:e(`variable`),STRUCTURE:e(`block`),EMAIL:e(`email`),GROUP:e(`group`),TYPOGRAF:e(`Typograf`),COUNTDOWN:e(`countdown`),ELEMENT:e(`element`),VIDEO:e(`video`),ELEMENT_PATH_LINK:e(`Link`),ELEMENT_PATH_BLOCK:e(`Block`),ELEMENT_PATH_ATOM:e(`Element`),ELEMENT_PATH_TD:e(`Cell`),ELEMENT_PATH_TABLE:e(`Table`),ELEMENT_PATH_FLOATBLOCK:e(`Column`),ELEMENT_PATH_TEXT:e(`Text`),ELEMENT_PATH_DIV:e(`Container`),ELEMENT_PATH_GROUP:e(`Group`),ELEMENT_PATH_EMAIL:e(`Email`),ELEMENT_PATH_IMG:e(`Picture`),ELEMENT_PATH_VINDENT:e(`Indent`),ELEMENT_PATH_BUTTON:e(`Button`),ELEMENT_PATH_CAROUSEL:e(`Carousel`),ELEMENT_PATH_ACCORDION:e(`Accordion`),ELEMENT_PATH_SOCIAL:e(`Social media`),ELEMENT_PATH_SECTION:e(`Section`),TINYMCE_CHANGECASE:e(`Case Change`),TINYMCE_UPPERCASE:e(`Uppercase`),TINYMCE_LOWERCASE:e(`Lowercase`),PASTE_HERE:e(`Drop here`),INSERT_COLUMN_BEFORE_TABLE:e(`Insert column before`),INSERT_COLUMN_AFTER_TABLE:e(`Insert column after`),INSERT_ROW_BEFORE_TABLE:e(`Insert row before`),INSERT_ROW_AFTER_TABLE:e(`Insert row after`),MERGE_RIGHT_CELL_TABLE:e(`Merge right cell`),MERGE_LEFT_CELL_TABLE:e(`Merge left cell`),MERGE_TOP_CELL_TABLE:e(`Merge top cell`),MERGE_BOTTOM_CELL_TABLE:e(`Merge bottom cell`),SPLIT_CELL_TABLE:e(`Split cell`),REMOVE_COLUMN_TABLE:e(`Remove column`),REMOVE_ROW_TABLE:e(`Remove row`),DROP_BLOCK_HINT:e(`Click or drag a block`)}),da={Applications:`Apps`,Articles:`Article`,Banners:`Banners`,Buttons:`Buttons`,"Call to Action":`Call to Action`,Contacts:`Contacts`,Content:`Content`,"E-Commerce":`E-Commerce`,Feature:`Features`,Footer:`Footers`,Header:`Headers`,Lists:`Lists`,Menu:`Menus`,Other:`Others`,Polls:`Polls`,Promocodes:`Promocodes`,Separators:`Separators`},fa={maker:`https://ai-mail.emcdn.ru`,blocks:`https://ai-mail.useblocks.io`};function I(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error(`[Immer] minified error nr: `+e+(n.length?` `+n.map((function(e){return`'`+e+`'`})).join(`,`):``)+`. Find the full error at: https://bit.ly/3cXEKWf`)}function L(e){return!!e&&!!e[R]}function pa(e){return!!e&&(function(e){if(!e||typeof e!=`object`)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;var n=Object.hasOwnProperty.call(t,`constructor`)&&t.constructor;return n===Object||typeof n==`function`&&Function.toString.call(n)===ro}(e)||Array.isArray(e)||!!e[no]||!!e.constructor?.[no]||xa(e)||Sa(e))}function ma(e){return L(e)||I(23,e),e[R].t}function ha(e,t,n){n===void 0&&(n=!1),ga(e)===0?(n?Object.keys:io)(e).forEach((function(r){n&&typeof r==`symbol`||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function ga(e){var t=e[R];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:xa(e)?2:Sa(e)?3:0}function _a(e,t){return ga(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function va(e,t){return ga(e)===2?e.get(t):e[t]}function ya(e,t,n){var r=ga(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function ba(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function xa(e){return Qa&&e instanceof Map}function Sa(e){return $a&&e instanceof Set}function Ca(e){return e.o||e.t}function wa(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=ao(e);delete t[R];for(var n=io(t),r=0;r<n.length;r++){var i=n[r],a=t[i];!1===a.writable&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function Ta(e,t){return t===void 0&&(t=!1),Da(e)||L(e)||!pa(e)||(ga(e)>1&&(e.set=e.add=e.clear=e.delete=Ea),Object.freeze(e),t&&ha(e,(function(e,t){return Ta(t,!0)}),!0)),e}function Ea(){I(2)}function Da(e){return typeof e!=`object`||!e||Object.isFrozen(e)}function Oa(e){var t=oo[e];return t||I(18,e),t}function ka(e,t){oo[e]||(oo[e]=t)}function Aa(){return Xa}function ja(e,t){t&&(Oa(`Patches`),e.u=[],e.s=[],e.v=t)}function Ma(e){Na(e),e.p.forEach(Fa),e.p=null}function Na(e){e===Xa&&(Xa=e.l)}function Pa(e){return Xa={p:[],l:Xa,h:e,m:!0,_:0}}function Fa(e){var t=e[R];t.i===0||t.i===1?t.j():t.g=!0}function Ia(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.O||Oa(`ES5`).S(t,e,r),r?(n[R].P&&(Ma(t),I(4)),pa(e)&&(e=La(t,e),t.l||za(t,e)),t.u&&Oa(`Patches`).M(n[R].t,e,t.u,t.s)):e=La(t,n,[]),Ma(t),t.u&&t.v(t.u,t.s),e===to?void 0:e}function La(e,t,n){if(Da(t))return t;var r=t[R];if(!r)return ha(t,(function(i,a){return Ra(e,r,t,i,a,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return za(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=r.i===4||r.i===5?r.o=wa(r.k):r.o,a=i,o=!1;r.i===3&&(a=new Set(i),i.clear(),o=!0),ha(a,(function(t,a){return Ra(e,r,i,t,a,n,o)})),za(e,i,!1),n&&e.u&&Oa(`Patches`).N(r,n,e.u,e.s)}return r.o}function Ra(e,t,n,r,i,a,o){if(L(i)){var s=La(e,i,a&&t&&t.i!==3&&!_a(t.R,r)?a.concat(r):void 0);if(ya(n,r,s),!L(s))return;e.m=!1}else o&&n.add(i);if(pa(i)&&!Da(i)){if(!e.h.D&&e._<1)return;La(e,i),t&&t.A.l||za(e,i)}}function za(e,t,n){n===void 0&&(n=!1),!e.l&&e.h.D&&e.m&&Ta(t,n)}function Ba(e,t){var n=e[R];return(n?Ca(n):e)[t]}function Va(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function Ha(e){e.P||(e.P=!0,e.l&&Ha(e.l))}function Ua(e){e.o||=wa(e.t)}function Wa(e,t,n){var r=xa(t)?Oa(`MapSet`).F(t,n):Sa(t)?Oa(`MapSet`).T(t,n):e.O?function(e,t){var n=Array.isArray(e),r={i:+!!n,A:t?t.A:Aa(),P:!1,I:!1,R:{},l:t,t:e,k:null,o:null,j:null,C:!1},i=r,a=so;n&&(i=[r],a=co);var o=Proxy.revocable(i,a),s=o.revoke,c=o.proxy;return r.k=c,r.j=s,c}(t,n):Oa(`ES5`).J(t,n);return(n?n.A:Aa()).p.push(r),r}function Ga(e){return L(e)||I(22,e),function e(t){if(!pa(t))return t;var n,r=t[R],i=ga(t);if(r){if(!r.P&&(r.i<4||!Oa(`ES5`).K(r)))return r.t;r.I=!0,n=Ka(t,i),r.I=!1}else n=Ka(t,i);return ha(n,(function(t,i){r&&va(r.t,t)===i||ya(n,t,e(i))})),i===3?new Set(n):n}(e)}function Ka(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return wa(e)}function qa(){function e(e,t){var n=i[e];return n?n.enumerable=t:i[e]=n={configurable:!0,enumerable:t,get:function(){var t=this[R];return so.get(t,e)},set:function(t){var n=this[R];so.set(n,e,t)}},n}function t(e){for(var t=e.length-1;t>=0;t--){var i=e[t][R];if(!i.P)switch(i.i){case 5:r(i)&&Ha(i);break;case 4:n(i)&&Ha(i)}}}function n(e){for(var t=e.t,n=e.k,r=io(n),i=r.length-1;i>=0;i--){var a=r[i];if(a!==R){var o=t[a];if(o===void 0&&!_a(t,a))return!0;var s=n[a],c=s&&s[R];if(c?c.t!==o:!ba(s,o))return!0}}var l=!!t[R];return r.length!==io(t).length+ +!l}function r(e){var t=e.k;if(t.length!==e.t.length)return!0;var n=Object.getOwnPropertyDescriptor(t,t.length-1);if(n&&!n.get)return!0;for(var r=0;r<t.length;r++)if(!t.hasOwnProperty(r))return!0;return!1}var i={};ka(`ES5`,{J:function(t,n){var r=Array.isArray(t),i=function(t,n){if(t){for(var r=Array(n.length),i=0;i<n.length;i++)Object.defineProperty(r,``+i,e(i,!0));return r}var a=ao(n);delete a[R];for(var o=io(a),s=0;s<o.length;s++){var c=o[s];a[c]=e(c,t||!!a[c].enumerable)}return Object.create(Object.getPrototypeOf(n),a)}(r,t),a={i:r?5:4,A:n?n.A:Aa(),P:!1,I:!1,R:{},l:n,t,k:i,o:null,g:!1,C:!1};return Object.defineProperty(i,R,{value:a,writable:!0}),i},S:function(e,n,i){i?L(n)&&n[R].A===e&&t(e.p):(e.u&&function e(t){if(t&&typeof t==`object`){var n=t[R];if(n){var i=n.t,a=n.k,o=n.R,s=n.i;if(s===4)ha(a,(function(t){t!==R&&(i[t]!==void 0||_a(i,t)?o[t]||e(a[t]):(o[t]=!0,Ha(n)))})),ha(i,(function(e){a[e]!==void 0||_a(a,e)||(o[e]=!1,Ha(n))}));else if(s===5){if(r(n)&&(Ha(n),o.length=!0),a.length<i.length)for(var c=a.length;c<i.length;c++)o[c]=!1;else for(var l=i.length;l<a.length;l++)o[l]=!0;for(var u=Math.min(a.length,i.length),d=0;d<u;d++)a.hasOwnProperty(d)||(o[d]=!0),o[d]===void 0&&e(a[d])}}}}(e.p[0]),t(e.p))},K:function(e){return e.i===4?n(e):r(e)}})}function Ja(){function e(t){if(!pa(t))return t;if(Array.isArray(t))return t.map(e);if(xa(t))return new Map(Array.from(t.entries()).map((function(t){return[t[0],e(t[1])]})));if(Sa(t))return new Set(Array.from(t).map(e));var n=Object.create(Object.getPrototypeOf(t));for(var r in t)n[r]=e(t[r]);return _a(t,no)&&(n[no]=t[no]),n}function t(t){return L(t)?e(t):t}var n=`add`;ka(`Patches`,{$:function(t,r){return r.forEach((function(r){for(var i=r.path,a=r.op,o=t,s=0;s<i.length-1;s++){var c=ga(o),l=i[s];typeof l!=`string`&&typeof l!=`number`&&(l=``+l),c!==0&&c!==1||l!==`__proto__`&&l!==`constructor`||I(24),typeof o==`function`&&l===`prototype`&&I(24),typeof(o=va(o,l))!=`object`&&I(15,i.join(`/`))}var u=ga(o),d=e(r.value),f=i[i.length-1];switch(a){case`replace`:switch(u){case 2:return o.set(f,d);case 3:I(16);default:return o[f]=d}case n:switch(u){case 1:return f===`-`?o.push(d):o.splice(f,0,d);case 2:return o.set(f,d);case 3:return o.add(d);default:return o[f]=d}case`remove`:switch(u){case 1:return o.splice(f,1);case 2:return o.delete(f);case 3:return o.delete(r.value);default:return delete o[f]}default:I(17,a)}})),t},N:function(e,r,i,a){switch(e.i){case 0:case 4:case 2:return function(e,r,i,a){var o=e.t,s=e.o;ha(e.R,(function(e,c){var l=va(o,e),u=va(s,e),d=c?_a(o,e)?`replace`:n:`remove`;if(l!==u||d!==`replace`){var f=r.concat(e);i.push(d===`remove`?{op:d,path:f}:{op:d,path:f,value:u}),a.push(d===n?{op:`remove`,path:f}:d===`remove`?{op:n,path:f,value:t(l)}:{op:`replace`,path:f,value:t(l)})}}))}(e,r,i,a);case 5:case 1:return function(e,r,i,a){var o=e.t,s=e.R,c=e.o;if(c.length<o.length){var l=[c,o];o=l[0],c=l[1];var u=[a,i];i=u[0],a=u[1]}for(var d=0;d<o.length;d++)if(s[d]&&c[d]!==o[d]){var f=r.concat([d]);i.push({op:`replace`,path:f,value:t(c[d])}),a.push({op:`replace`,path:f,value:t(o[d])})}for(var p=o.length;p<c.length;p++){var m=r.concat([p]);i.push({op:n,path:m,value:t(c[p])})}o.length<c.length&&a.push({op:`replace`,path:r.concat([`length`]),value:o.length})}(e,r,i,a);case 3:return function(e,t,r,i){var a=e.t,o=e.o,s=0;a.forEach((function(e){if(!o.has(e)){var a=t.concat([s]);r.push({op:`remove`,path:a,value:e}),i.unshift({op:n,path:a,value:e})}s++})),s=0,o.forEach((function(e){if(!a.has(e)){var o=t.concat([s]);r.push({op:n,path:o,value:e}),i.unshift({op:`remove`,path:o,value:e})}s++}))}(e,r,i,a)}},M:function(e,t,n,r){n.push({op:`replace`,path:[],value:t===to?void 0:t}),r.push({op:`replace`,path:[],value:e})}})}var Ya,Xa,Za=typeof Symbol<`u`&&typeof Symbol(`x`)==`symbol`,Qa=typeof Map<`u`,$a=typeof Set<`u`,eo=typeof Proxy<`u`&&Proxy.revocable!==void 0&&typeof Reflect<`u`,to=Za?Symbol.for(`immer-nothing`):((Ya={})[`immer-nothing`]=!0,Ya),no=Za?Symbol.for(`immer-draftable`):`__$immer_draftable`,R=Za?Symbol.for(`immer-state`):`__$immer_state`,ro=``+Object.prototype.constructor,io=typeof Reflect<`u`&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols===void 0?Object.getOwnPropertyNames:function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))},ao=Object.getOwnPropertyDescriptors||function(e){var t={};return io(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},oo={},so={get:function(e,t){if(t===R)return e;var n=Ca(e);if(!_a(n,t))return function(e,t,n){var r=Va(t,n);return r?`value`in r?r.value:r.get?.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!pa(r)?r:r===Ba(e.t,t)?(Ua(e),e.o[t]=Wa(e.A.h,r,e)):r},has:function(e,t){return t in Ca(e)},ownKeys:function(e){return Reflect.ownKeys(Ca(e))},set:function(e,t,n){var r=Va(Ca(e),t);if(r?.set)return r.set.call(e.k,n),!0;if(!e.P){var i=Ba(Ca(e),t),a=i?.[R];if(a&&a.t===n)return e.o[t]=n,e.R[t]=!1,!0;if(ba(n,i)&&(n!==void 0||_a(e.t,t)))return!0;Ua(e),Ha(e)}return e.o[t]===n&&(n!==void 0||t in e.o)||Number.isNaN(n)&&Number.isNaN(e.o[t])||(e.o[t]=n,e.R[t]=!0),!0},deleteProperty:function(e,t){return Ba(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,Ua(e),Ha(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=Ca(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!==`length`,enumerable:r.enumerable,value:n[t]}},defineProperty:function(){I(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){I(12)}},co={};ha(so,(function(e,t){co[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),co.deleteProperty=function(e,t){return co.set.call(this,e,t,void 0)},co.set=function(e,t,n){return so.set.call(this,e[0],t,n,e[0])};var z=new(function(){function e(e){var t=this;this.O=eo,this.D=!0,this.produce=function(e,n,r){if(typeof e==`function`&&typeof n!=`function`){var i=n;n=e;var a=t;return function(e){var t=this;e===void 0&&(e=i);for(var r=arguments.length,o=Array(r>1?r-1:0),s=1;s<r;s++)o[s-1]=arguments[s];return a.produce(e,(function(e){var r;return(r=n).call.apply(r,[t,e].concat(o))}))}}var o;if(typeof n!=`function`&&I(6),r!==void 0&&typeof r!=`function`&&I(7),pa(e)){var s=Pa(t),c=Wa(t,e,void 0),l=!0;try{o=n(c),l=!1}finally{l?Ma(s):Na(s)}return typeof Promise<`u`&&o instanceof Promise?o.then((function(e){return ja(s,r),Ia(e,s)}),(function(e){throw Ma(s),e})):(ja(s,r),Ia(o,s))}if(!e||typeof e!=`object`){if((o=n(e))===void 0&&(o=e),o===to&&(o=void 0),t.D&&Ta(o,!0),r){var u=[],d=[];Oa(`Patches`).M(e,o,u,d),r(u,d)}return o}I(21,e)},this.produceWithPatches=function(e,n){if(typeof e==`function`)return function(n){for(var r=arguments.length,i=Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];return t.produceWithPatches(n,(function(t){return e.apply(void 0,[t].concat(i))}))};var r,i,a=t.produce(e,n,(function(e,t){r=e,i=t}));return typeof Promise<`u`&&a instanceof Promise?a.then((function(e){return[e,r,i]})):[a,r,i]},typeof e?.useProxies==`boolean`&&this.setUseProxies(e.useProxies),typeof e?.autoFreeze==`boolean`&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){pa(e)||I(8),L(e)&&(e=Ga(e));var t=Pa(this),n=Wa(this,e,void 0);return n[R].C=!0,Na(t),n},t.finishDraft=function(e,t){var n=(e&&e[R]).A;return ja(n,t),Ia(void 0,n)},t.setAutoFreeze=function(e){this.D=e},t.setUseProxies=function(e){e&&!eo&&I(20),this.O=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var r=t[n];if(r.path.length===0&&r.op===`replace`){e=r.value;break}}n>-1&&(t=t.slice(n+1));var i=Oa(`Patches`).$;return L(e)?i(e,t):this.produce(e,(function(e){return i(e,t)}))},e}()),lo=z.produce,uo=z.produceWithPatches.bind(z);z.setAutoFreeze.bind(z),z.setUseProxies.bind(z);var fo=z.applyPatches.bind(z);z.createDraft.bind(z),z.finishDraft.bind(z);function B(e){return`Minified Redux error #`+e+`; visit https://redux.js.org/Errors?code=`+e+` for the full message or use the non-minified dev environment for full errors. `}var po=(function(){return typeof Symbol==`function`&&Symbol.observable||`@@observable`})(),mo=function(){return Math.random().toString(36).substring(7).split(``).join(`.`)},ho={INIT:`@@redux/INIT`+mo(),REPLACE:`@@redux/REPLACE`+mo(),PROBE_UNKNOWN_ACTION:function(){return`@@redux/PROBE_UNKNOWN_ACTION`+mo()}};function go(e){if(typeof e!=`object`||!e)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function _o(e,t,n){var r;if(typeof t==`function`&&typeof n==`function`||typeof n==`function`&&typeof arguments[3]==`function`)throw Error(B(0));if(typeof t==`function`&&n===void 0&&(n=t,t=void 0),n!==void 0){if(typeof n!=`function`)throw Error(B(1));return n(_o)(e,t)}if(typeof e!=`function`)throw Error(B(2));var i=e,a=t,o=[],s=o,c=!1;function l(){s===o&&(s=o.slice())}function u(){if(c)throw Error(B(3));return a}function d(e){if(typeof e!=`function`)throw Error(B(4));if(c)throw Error(B(5));var t=!0;return l(),s.push(e),function(){if(t){if(c)throw Error(B(6));t=!1,l();var n=s.indexOf(e);s.splice(n,1),o=null}}}function f(e){if(!go(e))throw Error(B(7));if(e.type===void 0)throw Error(B(8));if(c)throw Error(B(9));try{c=!0,a=i(a,e)}finally{c=!1}for(var t=o=s,n=0;n<t.length;n++){var r=t[n];r()}return e}function p(e){if(typeof e!=`function`)throw Error(B(10));i=e,f({type:ho.REPLACE})}function m(){var e,t=d;return e={subscribe:function(e){if(typeof e!=`object`||!e)throw Error(B(11));function n(){e.next&&e.next(u())}return n(),{unsubscribe:t(n)}}},e[po]=function(){return this},e}return f({type:ho.INIT}),r={dispatch:f,subscribe:d,getState:u,replaceReducer:p},r[po]=m,r}function vo(e){Object.keys(e).forEach(function(t){var n=e[t];if(n(void 0,{type:ho.INIT})===void 0)throw Error(B(12));if(n(void 0,{type:ho.PROBE_UNKNOWN_ACTION()})===void 0)throw Error(B(13))})}function yo(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var i=t[r];typeof e[i]==`function`&&(n[i]=e[i])}var a=Object.keys(n),o;try{vo(n)}catch(e){o=e}return function(e,t){if(e===void 0&&(e={}),o)throw o;for(var r=!1,i={},s=0;s<a.length;s++){var c=a[s],l=n[c],u=e[c],d=l(u,t);if(d===void 0)throw t&&t.type,Error(B(14));i[c]=d,r||=d!==u}return r||=a.length!==Object.keys(e).length,r?i:e}}function bo(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.length===0?function(e){return e}:t.length===1?t[0]:t.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}function xo(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw Error(B(15))},i={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},o=t.map(function(e){return e(i)});return r=bo.apply(void 0,o)(n.dispatch),a.t(a.t({},n),{},{dispatch:r})}}}var So=`NOT_FOUND`;function Co(e){var t;return{get:function(n){return t&&e(t.key,n)?t.value:So},put:function(e,n){t={key:e,value:n}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}function wo(e,t){var n=[];function r(e){var r=n.findIndex(function(n){return t(e,n.key)});if(r>-1){var i=n[r];return r>0&&(n.splice(r,1),n.unshift(i)),i.value}return So}function i(t,i){r(t)===So&&(n.unshift({key:t,value:i}),n.length>e&&n.pop())}function a(){return n}function o(){n=[]}return{get:r,put:i,getEntries:a,clear:o}}var To=function(e,t){return e===t};function Eo(e){return function(t,n){if(t===null||n===null||t.length!==n.length)return!1;for(var r=t.length,i=0;i<r;i++)if(!e(t[i],n[i]))return!1;return!0}}function Do(e,t){var n=typeof t==`object`?t:{equalityCheck:t},r=n.equalityCheck,i=r===void 0?To:r,a=n.maxSize,o=a===void 0?1:a,s=n.resultEqualityCheck,c=Eo(i),l=o===1?Co(c):wo(o,c);function u(){var t=l.get(arguments);if(t===So){if(t=e.apply(null,arguments),s){var n=l.getEntries().find(function(e){return s(e.value,t)});n&&(t=n.value)}l.put(arguments,t)}return t}return u.clearCache=function(){return l.clear()},u}function Oo(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every(function(e){return typeof e==`function`})){var n=t.map(function(e){return typeof e==`function`?`function `+(e.name||`unnamed`)+`()`:typeof e}).join(`, `);throw Error(`createSelector expects all input-selectors to be functions, but received the following types: [`+n+`]`)}return t}function ko(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){for(var t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];var a=0,o,s={memoizeOptions:void 0},c=r.pop();if(typeof c==`object`&&(s=c,c=r.pop()),typeof c!=`function`)throw Error(`createSelector expects an output function after the inputs, but received: [`+typeof c+`]`);var l=s.memoizeOptions,u=l===void 0?n:l,d=Array.isArray(u)?u:[u],f=Oo(r),p=e.apply(void 0,[function(){return a++,c.apply(null,arguments)}].concat(d)),m=e(function(){for(var e=[],t=f.length,n=0;n<t;n++)e.push(f[n].apply(null,arguments));return o=p.apply(null,e),o});return Object.assign(m,{resultFunc:c,memoizedResultFunc:p,dependencies:f,lastResult:function(){return o},recomputations:function(){return a},resetRecomputations:function(){return a=0}}),m}}var Ao=ko(Do);function jo(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(i){return typeof i==`function`?i(n,r,e):t(i)}}}}var Mo=jo();Mo.withExtraArgument=jo;var No=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),Po=function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==`function`&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(o){if(r)throw TypeError(`Generator is already executing.`);for(;n;)try{if(r=1,i&&(a=o[0]&2?i.return:o[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;switch(i=0,a&&(o=[o[0]&2,a.value]),o[0]){case 0:case 1:a=o;break;case 4:return n.label++,{value:o[1],done:!1};case 5:n.label++,i=o[1],o=[0];continue;case 7:o=n.ops.pop(),n.trys.pop();continue;default:if((a=n.trys,!(a=a.length>0&&a[a.length-1]))&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){n.label=o[1];break}if(o[0]===6&&n.label<a[1]){n.label=a[1],a=o;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(o);break}a[2]&&n.ops.pop(),n.trys.pop();continue}o=t.call(e,n)}catch(e){o=[6,e],i=0}finally{r=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},Fo=function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e},Io=Object.defineProperty,Lo=Object.defineProperties,Ro=Object.getOwnPropertyDescriptors,zo=Object.getOwnPropertySymbols,Bo=Object.prototype.hasOwnProperty,Vo=Object.prototype.propertyIsEnumerable,Ho=function(e,t,n){return t in e?Io(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},Uo=function(e,t){for(var n in t||={})Bo.call(t,n)&&Ho(e,n,t[n]);if(zo)for(var r=0,i=zo(t);r<i.length;r++){var n=i[r];Vo.call(t,n)&&Ho(e,n,t[n])}return e},Wo=function(e,t){return Lo(e,Ro(t))},Go=function(e,t,n){return new Promise(function(r,i){var a=function(e){try{s(n.next(e))}catch(e){i(e)}},o=function(e){try{s(n.throw(e))}catch(e){i(e)}},s=function(e){return e.done?r(e.value):Promise.resolve(e.value).then(a,o)};s((n=n.apply(e,t)).next())})},Ko=typeof window<`u`&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]==`object`?bo:bo.apply(null,arguments)};typeof window<`u`&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;function qo(e){if(typeof e!=`object`||!e)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var n=t;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return t===n}var Jo=function(e){return e&&typeof e.match==`function`};function V(e,t){function n(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];if(t){var i=t.apply(void 0,n);if(!i)throw Error(`prepareAction did not return an object`);return Uo(Uo({type:e,payload:i.payload},`meta`in i&&{meta:i.meta}),`error`in i&&{error:i.error})}return{type:e,payload:n[0]}}return n.toString=function(){return``+e},n.type=e,n.match=function(t){return t.type===e},n}var Yo=function(e){No(t,e);function t(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=e.apply(this,n)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.prototype.concat.apply(this,t)},t.prototype.prepend=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e.length===1&&Array.isArray(e[0])?new(t.bind.apply(t,Fo([void 0],e[0].concat(this)))):new(t.bind.apply(t,Fo([void 0],e.concat(this))))},t}(Array),Xo=function(e){No(t,e);function t(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=e.apply(this,n)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.prototype.concat.apply(this,t)},t.prototype.prepend=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e.length===1&&Array.isArray(e[0])?new(t.bind.apply(t,Fo([void 0],e[0].concat(this)))):new(t.bind.apply(t,Fo([void 0],e.concat(this))))},t}(Array);function Zo(e){return pa(e)?lo(e,function(){}):e}function Qo(e){return typeof e==`boolean`}function $o(){return function(e){return es(e)}}function es(e){e===void 0&&(e={});var t=e.thunk,n=t===void 0?!0:t;e.immutableCheck,e.serializableCheck,e.actionCreatorCheck;var r=new Yo;return n&&(Qo(n)?r.push(Mo):r.push(Mo.withExtraArgument(n.extraArgument))),r}var ts=!0;function ns(e){var t=$o(),n=e||{},r=n.reducer,i=r===void 0?void 0:r,a=n.middleware,o=a===void 0?t():a,s=n.devTools,c=s===void 0?!0:s,l=n.preloadedState,u=l===void 0?void 0:l,d=n.enhancers,f=d===void 0?void 0:d,p;if(typeof i==`function`)p=i;else if(qo(i))p=yo(i);else throw Error(`"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers`);var m=o;if(typeof m==`function`&&(m=m(t),!ts&&!Array.isArray(m)))throw Error(`when using a middleware builder function, an array of middleware must be returned`);if(!ts&&m.some(function(e){return typeof e!=`function`}))throw Error(`each middleware provided to configureStore must be a function`);var h=xo.apply(void 0,m),g=bo;c&&(g=Ko(Uo({trace:!ts},typeof c==`object`&&c)));var _=new Xo(h),v=_;Array.isArray(f)?v=Fo([h],f):typeof f==`function`&&(v=f(_));var y=g.apply(void 0,v);return _o(p,u,y)}function rs(e){var t={},n=[],r,i={addCase:function(e,n){var r=typeof e==`string`?e:e.type;if(!r)throw Error("`builder.addCase` cannot be called with an empty action type");if(r in t)throw Error("`builder.addCase` cannot be called with two reducers for the same action type");return t[r]=n,i},addMatcher:function(e,t){return n.push({matcher:e,reducer:t}),i},addDefaultCase:function(e){return r=e,i}};return e(i),[t,n,r]}function is(e){return typeof e==`function`}function as(e,t,n,r){n===void 0&&(n=[]);var i=typeof t==`function`?rs(t):[t,n,r],a=i[0],o=i[1],s=i[2],c;if(is(e))c=function(){return Zo(e())};else{var l=Zo(e);c=function(){return l}}function u(e,t){e===void 0&&(e=c());var n=Fo([a[t.type]],o.filter(function(e){var n=e.matcher;return n(t)}).map(function(e){return e.reducer}));return n.filter(function(e){return!!e}).length===0&&(n=[s]),n.reduce(function(e,n){if(n)if(L(e)){var r=n(e,t);return r===void 0?e:r}else if(pa(e))return lo(e,function(e){return n(e,t)});else{var r=n(e,t);if(r===void 0){if(e===null)return e;throw Error(`A case reducer on a non-draftable value must not return undefined`)}return r}return e},e)}return u.getInitialState=c,u}function os(e,t){return e+`/`+t}function H(e){var t=e.name;if(!t)throw Error("`name` is a required option for createSlice");var n=typeof e.initialState==`function`?e.initialState:Zo(e.initialState),r=e.reducers||{},i=Object.keys(r),a={},o={},s={};i.forEach(function(e){var n=r[e],i=os(t,e),c,l;`reducer`in n?(c=n.reducer,l=n.prepare):c=n,a[e]=c,o[i]=c,s[e]=l?V(i,l):V(i)});function c(){var t=typeof e.extraReducers==`function`?rs(e.extraReducers):[e.extraReducers],r=t[0],i=r===void 0?{}:r,a=t[1],s=a===void 0?[]:a,c=t[2],l=c===void 0?void 0:c,u=Uo(Uo({},i),o);return as(n,function(e){for(var t in u)e.addCase(t,u[t]);for(var n=0,r=s;n<r.length;n++){var i=r[n];e.addMatcher(i.matcher,i.reducer)}l&&e.addDefaultCase(l)})}var l;return{name:t,reducer:function(e,t){return l||=c(),l(e,t)},actions:s,caseReducers:a,getInitialState:function(){return l||=c(),l.getInitialState()}}}var ss=`ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW`,cs=function(e){e===void 0&&(e=21);for(var t=``,n=e;n--;)t+=ss[Math.random()*64|0];return t},ls=[`name`,`message`,`stack`,`code`],us=function(){function e(e,t){this.payload=e,this.meta=t}return e}(),ds=function(){function e(e,t){this.payload=e,this.meta=t}return e}(),fs=function(e){if(typeof e==`object`&&e){for(var t={},n=0,r=ls;n<r.length;n++){var i=r[n];typeof e[i]==`string`&&(t[i]=e[i])}return t}return{message:String(e)}},ps=(function(){function e(e,t,n){var r=V(e+`/fulfilled`,function(e,t,n,r){return{payload:e,meta:Wo(Uo({},r||{}),{arg:n,requestId:t,requestStatus:`fulfilled`})}}),i=V(e+`/pending`,function(e,t,n){return{payload:void 0,meta:Wo(Uo({},n||{}),{arg:t,requestId:e,requestStatus:`pending`})}}),a=V(e+`/rejected`,function(e,t,r,i,a){return{payload:i,error:(n&&n.serializeError||fs)(e||`Rejected`),meta:Wo(Uo({},a||{}),{arg:r,requestId:t,rejectedWithValue:!!i,requestStatus:`rejected`,aborted:e?.name===`AbortError`,condition:e?.name===`ConditionError`})}}),o=typeof AbortController<`u`?AbortController:function(){function e(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return e.prototype.abort=function(){},e}();function s(e){return function(s,c,l){var u=n?.idGenerator?n.idGenerator(e):cs(),d=new o,f;function p(e){f=e,d.abort()}var m=function(){return Go(this,null,function(){var o,m,h,g,_;return Po(this,function(v){switch(v.label){case 0:return v.trys.push([0,4,,5]),m=(n?.condition)?.call(n,e,{getState:c,extra:l}),hs(m)?[4,m]:[3,2];case 1:m=v.sent(),v.label=2;case 2:if(m===!1||d.signal.aborted)throw{name:`ConditionError`,message:`Aborted due to condition callback returning false.`};return h=new Promise(function(e,t){return d.signal.addEventListener(`abort`,function(){return t({name:`AbortError`,message:f||`Aborted`})})}),s(i(u,e,(n?.getPendingMeta)?.call(n,{requestId:u,arg:e},{getState:c,extra:l}))),[4,Promise.race([h,Promise.resolve(t(e,{dispatch:s,getState:c,extra:l,requestId:u,signal:d.signal,abort:p,rejectWithValue:function(e,t){return new us(e,t)},fulfillWithValue:function(e,t){return new ds(e,t)}})).then(function(t){if(t instanceof us)throw t;return t instanceof ds?r(t.payload,u,e,t.meta):r(t,u,e)})])];case 3:return o=v.sent(),[3,5];case 4:return g=v.sent(),o=g instanceof us?a(null,u,e,g.payload,g.meta):a(g,u,e),[3,5];case 5:return _=n&&!n.dispatchConditionRejection&&a.match(o)&&o.meta.condition,_||s(o),[2,o]}})})}();return Object.assign(m,{abort:p,requestId:u,arg:e,unwrap:function(){return m.then(ms)}})}}return Object.assign(s,{pending:i,rejected:a,fulfilled:r,typePrefix:e})}return e.withTypes=function(){return e},e})();function ms(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function hs(e){return typeof e==`object`&&!!e&&typeof e.then==`function`}var gs=function(e,t){return Jo(e)?e.match(t):e(t)};function _s(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return e.some(function(e){return gs(e,t)})}}function vs(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return e.every(function(e){return gs(e,t)})}}function ys(e,t){if(!e||!e.meta)return!1;var n=typeof e.meta.requestId==`string`,r=t.indexOf(e.meta.requestStatus)>-1;return n&&r}function bs(e){return typeof e[0]==`function`&&`pending`in e[0]&&`fulfilled`in e[0]&&`rejected`in e[0]}function xs(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length===0?function(e){return ys(e,[`pending`])}:bs(e)?function(t){var n=e.map(function(e){return e.pending});return _s.apply(void 0,n)(t)}:xs()(e[0])}function Ss(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length===0?function(e){return ys(e,[`rejected`])}:bs(e)?function(t){var n=e.map(function(e){return e.rejected});return _s.apply(void 0,n)(t)}:Ss()(e[0])}function Cs(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=function(e){return e&&e.meta&&e.meta.rejectedWithValue};return e.length===0||bs(e)?function(t){return vs(Ss.apply(void 0,e),n)(t)}:Cs()(e[0])}function ws(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length===0?function(e){return ys(e,[`fulfilled`])}:bs(e)?function(t){var n=e.map(function(e){return e.fulfilled});return _s.apply(void 0,n)(t)}:ws()(e[0])}function Ts(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length===0?function(e){return ys(e,[`pending`,`fulfilled`,`rejected`])}:bs(e)?function(t){for(var n=[],r=0,i=e;r<i.length;r++){var a=i[r];n.push(a.pending,a.rejected,a.fulfilled)}return _s.apply(void 0,n)(t)}:Ts()(e[0])}var Es=`task`,Ds=`listener`,Os=`completed`,ks=`cancelled`;``+ks,``+Os,Ds+``+ks,Ds+``+Os,function(){function e(e){this.code=e,this.name=`TaskAbortError`,this.message=Es+` `+ks+` (reason: `+e+`)`}return e}();var As=`listenerMiddleware`;V(As+`/add`),V(As+`/removeAll`),V(As+`/remove`);var js=`RTK_autoBatch`,Ms=function(){return function(e){var t;return{payload:e,meta:(t={},t[js]=!0,t)}}};typeof queueMicrotask==`function`&&queueMicrotask.bind(typeof window<`u`?window:r.r===void 0?globalThis:r.r),typeof window<`u`&&window.requestAnimationFrame?window.requestAnimationFrame:function(e){return function(t){setTimeout(t,e)}}(10),qa(),r.i();var Ns=function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==`function`&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(o){if(r)throw TypeError(`Generator is already executing.`);for(;n;)try{if(r=1,i&&(a=o[0]&2?i.return:o[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;switch(i=0,a&&(o=[o[0]&2,a.value]),o[0]){case 0:case 1:a=o;break;case 4:return n.label++,{value:o[1],done:!1};case 5:n.label++,i=o[1],o=[0];continue;case 7:o=n.ops.pop(),n.trys.pop();continue;default:if((a=n.trys,!(a=a.length>0&&a[a.length-1]))&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){n.label=o[1];break}if(o[0]===6&&n.label<a[1]){n.label=a[1],a=o;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(o);break}a[2]&&n.ops.pop(),n.trys.pop();continue}o=t.call(e,n)}catch(e){o=[6,e],i=0}finally{r=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},Ps=function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e},Fs=Object.defineProperty,Is=Object.defineProperties,Ls=Object.getOwnPropertyDescriptors,Rs=Object.getOwnPropertySymbols,zs=Object.prototype.hasOwnProperty,Bs=Object.prototype.propertyIsEnumerable,Vs=function(e,t,n){return t in e?Fs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},U=function(e,t){for(var n in t||={})zs.call(t,n)&&Vs(e,n,t[n]);if(Rs)for(var r=0,i=Rs(t);r<i.length;r++){var n=i[r];Bs.call(t,n)&&Vs(e,n,t[n])}return e},Hs=function(e,t){return Is(e,Ls(t))},Us=function(e,t){var n={};for(var r in e)zs.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Rs)for(var i=0,a=Rs(e);i<a.length;i++){var r=a[i];t.indexOf(r)<0&&Bs.call(e,r)&&(n[r]=e[r])}return n},Ws=function(e,t,n){return new Promise(function(r,i){var a=function(e){try{s(n.next(e))}catch(e){i(e)}},o=function(e){try{s(n.throw(e))}catch(e){i(e)}},s=function(e){return e.done?r(e.value):Promise.resolve(e.value).then(a,o)};s((n=n.apply(e,t)).next())})},W;(function(e){e.uninitialized=`uninitialized`,e.pending=`pending`,e.fulfilled=`fulfilled`,e.rejected=`rejected`})(W||={});function Gs(e){return{status:e,isUninitialized:e===W.uninitialized,isLoading:e===W.pending,isSuccess:e===W.fulfilled,isError:e===W.rejected}}function Ks(e){return RegExp(`(^|:)//`).test(e)}var qs=function(e){return e.replace(/\/$/,``)},Js=function(e){return e.replace(/^\//,``)};function Ys(e,t){if(!e)return t;if(!t)return e;if(Ks(t))return t;var n=e.endsWith(`/`)||!t.startsWith(`?`)?`/`:``;return e=qs(e),t=Js(t),``+e+n+t}var Xs=function(e){return[].concat.apply([],e)};function Zs(){return typeof navigator>`u`||navigator.onLine===void 0?!0:navigator.onLine}function Qs(){return typeof document>`u`?!0:document.visibilityState!==`hidden`}var $s=qo;function ec(e,t){if(e===t||!($s(e)&&$s(t)||Array.isArray(e)&&Array.isArray(t)))return t;for(var n=Object.keys(t),r=Object.keys(e),i=n.length===r.length,a=Array.isArray(t)?[]:{},o=0,s=n;o<s.length;o++){var c=s[o];a[c]=ec(e[c],t[c]),i&&=e[c]===a[c]}return i?e:a}var tc=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return fetch.apply(void 0,e)},nc=function(e){return e.status>=200&&e.status<=299},rc=function(e){return/ion\/(vnd\.api\+)?json/.test(e.get(`content-type`)||``)};function ic(e){if(!qo(e))return e;for(var t=U({},e),n=0,r=Object.entries(t);n<r.length;n++){var i=r[n],a=i[0];i[1]===void 0&&delete t[a]}return t}function ac(e){var t=this;e===void 0&&(e={});var n=e,r=n.baseUrl,i=n.prepareHeaders,a=i===void 0?function(e){return e}:i,o=n.fetchFn,s=o===void 0?tc:o,c=n.paramsSerializer,l=n.isJsonContentType,u=l===void 0?rc:l,d=n.jsonContentType,f=d===void 0?`application/json`:d,p=n.jsonReplacer,m=n.timeout,h=n.responseHandler,g=n.validateStatus,_=Us(n,[`baseUrl`,`prepareHeaders`,`fetchFn`,`paramsSerializer`,`isJsonContentType`,`jsonContentType`,`jsonReplacer`,`timeout`,`responseHandler`,`validateStatus`]);return function(e,n){return Ws(t,null,function(){var t,i,o,l,d,y,b,x,S,C,w,T,E,D,O,k,ee,te,ne,re,A,ie,ae,oe,se,ce,le,ue,de,fe,pe,j,me,he,ge,_e;return Ns(this,function(M){switch(M.label){case 0:return t=n.signal,i=n.getState,o=n.extra,l=n.endpoint,d=n.forced,y=n.type,x=typeof e==`string`?{url:e}:e,S=x.url,C=x.headers,w=C===void 0?new Headers(_.headers):C,T=x.params,E=T===void 0?void 0:T,D=x.responseHandler,O=D===void 0?h??`json`:D,k=x.validateStatus,ee=k===void 0?g??nc:k,te=x.timeout,ne=te===void 0?m:te,re=Us(x,[`url`,`headers`,`params`,`responseHandler`,`validateStatus`,`timeout`]),A=U(Hs(U({},_),{signal:t}),re),w=new Headers(ic(w)),ie=A,[4,a(w,{getState:i,extra:o,endpoint:l,forced:d,type:y})];case 1:ie.headers=M.sent()||w,ae=function(e){return typeof e==`object`&&(qo(e)||Array.isArray(e)||typeof e.toJSON==`function`)},!A.headers.has(`content-type`)&&ae(A.body)&&A.headers.set(`content-type`,f),ae(A.body)&&u(A.headers)&&(A.body=JSON.stringify(A.body,p)),E&&(oe=~S.indexOf(`?`)?`&`:`?`,se=c?c(E):new URLSearchParams(ic(E)),S+=oe+se),S=Ys(r,S),ce=new Request(S,A),le=new Request(S,A),b={request:le},de=!1,fe=ne&&setTimeout(function(){de=!0,n.abort()},ne),M.label=2;case 2:return M.trys.push([2,4,5,6]),[4,s(ce)];case 3:return ue=M.sent(),[3,6];case 4:return pe=M.sent(),[2,{error:{status:de?`TIMEOUT_ERROR`:`FETCH_ERROR`,error:String(pe)},meta:b}];case 5:return fe&&clearTimeout(fe),[7];case 6:j=ue.clone(),b.response=j,he=``,M.label=7;case 7:return M.trys.push([7,9,,10]),[4,Promise.all([v(ue,O).then(function(e){return me=e},function(e){return ge=e}),j.text().then(function(e){return he=e},function(){})])];case 8:if(M.sent(),ge)throw ge;return[3,10];case 9:return _e=M.sent(),[2,{error:{status:`PARSING_ERROR`,originalStatus:ue.status,data:he,error:String(_e)},meta:b}];case 10:return[2,ee(ue,me)?{data:me,meta:b}:{error:{status:ue.status,data:me},meta:b}]}})})};function v(e,t){return Ws(this,null,function(){var n;return Ns(this,function(r){switch(r.label){case 0:return typeof t==`function`?[2,t(e)]:(t===`content-type`&&(t=u(e.headers)?`json`:`text`),t===`json`?[4,e.text()]:[3,2]);case 1:return n=r.sent(),[2,n.length?JSON.parse(n):null];case 2:return[2,e.text()]}})})}}var oc=function(){function e(e,t){t===void 0&&(t=void 0),this.value=e,this.meta=t}return e}(),sc=V(`__rtkq/focused`),cc=V(`__rtkq/unfocused`),lc=V(`__rtkq/online`),uc=V(`__rtkq/offline`),dc=!1;function fc(e,t){function n(){var t=function(){return e(sc())},n=function(){return e(cc())},r=function(){return e(lc())},i=function(){return e(uc())},a=function(){window.document.visibilityState===`visible`?t():n()};return dc||typeof window<`u`&&window.addEventListener&&(window.addEventListener(`visibilitychange`,a,!1),window.addEventListener(`focus`,t,!1),window.addEventListener(`online`,r,!1),window.addEventListener(`offline`,i,!1),dc=!0),function(){window.removeEventListener(`focus`,t),window.removeEventListener(`visibilitychange`,a),window.removeEventListener(`online`,r),window.removeEventListener(`offline`,i),dc=!1}}return t?t(e,{onFocus:sc,onFocusLost:cc,onOffline:uc,onOnline:lc}):n()}var pc;(function(e){e.query=`query`,e.mutation=`mutation`})(pc||={});function mc(e){return e.type===pc.query}function hc(e){return e.type===pc.mutation}function gc(e,t,n,r,i,a){return _c(e)?e(t,n,r,i).map(vc).map(a):Array.isArray(e)?e.map(vc).map(a):[]}function _c(e){return typeof e==`function`}function vc(e){return typeof e==`string`?{type:e}:e}function yc(e){return e!=null}var bc=Symbol(`forceQueryFn`),xc=function(e){return typeof e[bc]==`function`};function Sc(e){var t=e.serializeQueryArgs,n=e.queryThunk,r=e.mutationThunk,i=e.api,a=e.context,o=new Map,s=new Map,c=i.internalActions,l=c.unsubscribeQueryResult,u=c.removeMutationResult,d=c.updateSubscriptionOptions;return{buildInitiateQuery:v,buildInitiateMutation:y,getRunningQueryThunk:m,getRunningMutationThunk:h,getRunningQueriesThunk:g,getRunningMutationsThunk:_,getRunningOperationPromises:p,removalWarning:f};function f(){throw Error(`This method had to be removed due to a conceptual bug in RTK.
2
2
  Please see https://github.com/reduxjs/redux-toolkit/pull/2481 for details.
3
3
  See https://redux-toolkit.js.org/rtk-query/usage/server-side-rendering for new guidance on SSR.`)}function p(){var e=function(e){return Array.from(e.values()).flatMap(function(e){return e?Object.values(e):[]})};return Ps(Ps([],e(o)),e(s)).filter(yc)}function m(e,n){return function(r){var i=a.endpointDefinitions[e],s=t({queryArgs:n,endpointDefinition:i,endpointName:e});return o.get(r)?.[s]}}function h(e,t){return function(e){return s.get(e)?.[t]}}function g(){return function(e){return Object.values(o.get(e)||{}).filter(yc)}}function _(){return function(e){return Object.values(s.get(e)||{}).filter(yc)}}function v(e,r){var a=function(s,c){var u=c===void 0?{}:c,f=u.subscribe,p=f===void 0?!0:f,m=u.forceRefetch,h=u.subscriptionOptions,g=u[bc];return function(c,u){var f,_=t({queryArgs:s,endpointDefinition:r,endpointName:e}),v=n((f={type:`query`,subscribe:p,forceRefetch:m,subscriptionOptions:h,endpointName:e,originalArgs:s,queryCacheKey:_},f[bc]=g,f)),y=i.endpoints[e].select(s),b=c(v),x=y(u()),S=b.requestId,C=b.abort,w=x.requestId!==S,T=o.get(c)?.[_],E=function(){return y(u())},D=Object.assign(g?b.then(E):w&&!T?Promise.resolve(x):Promise.all([T,b]).then(E),{arg:s,requestId:S,subscriptionOptions:h,queryCacheKey:_,abort:C,unwrap:function(){return Ws(this,null,function(){var e;return Ns(this,function(t){switch(t.label){case 0:return[4,D];case 1:if(e=t.sent(),e.isError)throw e.error;return[2,e.data]}})})},refetch:function(){return c(a(s,{subscribe:!1,forceRefetch:!0}))},unsubscribe:function(){p&&c(l({queryCacheKey:_,requestId:S}))},updateSubscriptionOptions:function(t){D.subscriptionOptions=t,c(d({endpointName:e,requestId:S,queryCacheKey:_,options:t}))}});if(!T&&!w&&!g){var O=o.get(c)||{};O[_]=D,o.set(c,O),D.then(function(){delete O[_],Object.keys(O).length||o.delete(c)})}return D}};return a}function y(e){return function(t,n){var i=n===void 0?{}:n,a=i.track,o=a===void 0?!0:a,c=i.fixedCacheKey;return function(n,i){var a=n(r({type:`mutation`,endpointName:e,originalArgs:t,track:o,fixedCacheKey:c})),l=a.requestId,d=a.abort,f=a.unwrap,p=a.unwrap().then(function(e){return{data:e}}).catch(function(e){return{error:e}}),m=function(){n(u({requestId:l,fixedCacheKey:c}))},h=Object.assign(p,{arg:a.arg,requestId:l,abort:d,unwrap:f,unsubscribe:m,reset:m}),g=s.get(n)||{};return s.set(n,g),g[l]=h,h.then(function(){delete g[l],Object.keys(g).length||s.delete(n)}),c&&(g[c]=h,h.then(function(){g[c]===h&&(delete g[c],Object.keys(g).length||s.delete(n))})),h}}}}function Cc(e){return e}function wc(e){var t=this,n=e.reducerPath,r=e.baseQuery,i=e.context.endpointDefinitions,a=e.serializeQueryArgs,o=e.api,s=e.assertTagType,c=function(e,t,n,r){return function(c,l){var u=i[e],d=a({queryArgs:t,endpointDefinition:u,endpointName:e});if(c(o.internalActions.queryResultPatched({queryCacheKey:d,patches:n})),r){var f=o.endpoints[e].select(t)(l()),p=gc(u.providesTags,f.data,void 0,t,{},s);c(o.internalActions.updateProvidedBy({queryCacheKey:d,providedTags:p}))}}},l=function(e,t,n,r){return r===void 0&&(r=!0),function(i,a){var s,c,l=o.endpoints[e].select(t)(a()),u={patches:[],inversePatches:[],undo:function(){return i(o.util.patchQueryData(e,t,u.inversePatches,r))}};if(l.status===W.uninitialized)return u;var d;if(`data`in l)if(pa(l.data)){var f=uo(l.data,n),p=f[0],m=f[1],h=f[2];(s=u.patches).push.apply(s,m),(c=u.inversePatches).push.apply(c,h),d=p}else d=n(l.data),u.patches.push({op:`replace`,path:[],value:d}),u.inversePatches.push({op:`replace`,path:[],value:l.data});return i(o.util.patchQueryData(e,t,u.patches,r)),u}},u=function(e,t,n){return function(r){var i;return r(o.endpoints[e].initiate(t,(i={subscribe:!1,forceRefetch:!0},i[bc]=function(){return{data:n}},i)))}},d=function(e,n){return Ws(t,[e,n],function(e,t){var n,a,o,s,c,l,u,d,p,m,h,g,_,v=t.signal,y=t.abort,b=t.rejectWithValue,x=t.fulfillWithValue,S=t.dispatch,C=t.getState,w=t.extra;return Ns(this,function(t){switch(t.label){case 0:n=i[e.endpointName],t.label=1;case 1:return t.trys.push([1,8,,13]),a=Cc,o=void 0,s={signal:v,abort:y,dispatch:S,getState:C,extra:w,endpoint:e.endpointName,type:e.type,forced:e.type===`query`?f(e,C()):void 0},c=e.type===`query`?e[bc]:void 0,c?(o=c(),[3,6]):[3,2];case 2:return n.query?[4,r(n.query(e.originalArgs),s,n.extraOptions)]:[3,4];case 3:return o=t.sent(),n.transformResponse&&(a=n.transformResponse),[3,6];case 4:return[4,n.queryFn(e.originalArgs,s,n.extraOptions,function(e){return r(e,s,n.extraOptions)})];case 5:o=t.sent(),t.label=6;case 6:if(o.error)throw new oc(o.error,o.meta);return l=x,[4,a(o.data,o.meta,e.originalArgs)];case 7:return[2,l.apply(void 0,[t.sent(),(g={fulfilledTimeStamp:Date.now(),baseQueryMeta:o.meta},g[js]=!0,g)])];case 8:if(u=t.sent(),d=u,!(d instanceof oc))return[3,12];p=Cc,n.query&&n.transformErrorResponse&&(p=n.transformErrorResponse),t.label=9;case 9:return t.trys.push([9,11,,12]),m=b,[4,p(d.value,d.meta,e.originalArgs)];case 10:return[2,m.apply(void 0,[t.sent(),(_={baseQueryMeta:d.meta},_[js]=!0,_)])];case 11:return h=t.sent(),d=h,[3,12];case 12:throw d;case 13:return[2]}})})};function f(e,t){var r=t[n]?.queries?.[e.queryCacheKey],i=t[n]?.config.refetchOnMountOrArgChange,a=r?.fulfilledTimeStamp,o=e.forceRefetch??(e.subscribe&&i);return o?o===!0||(Number(new Date)-Number(a))/1e3>=o:!1}var p=ps(n+`/executeQuery`,d,{getPendingMeta:function(){var e;return e={startedTimeStamp:Date.now()},e[js]=!0,e},condition:function(e,t){var r=t.getState,a=r(),o=a[n]?.queries?.[e.queryCacheKey],s=o?.fulfilledTimeStamp,c=e.originalArgs,l=o?.originalArgs,u=i[e.endpointName];return xc(e)?!0:o?.status===`pending`?!1:f(e,a)||mc(u)&&(u?.forceRefetch)?.call(u,{currentArg:c,previousArg:l,endpointState:o,state:a})?!0:!s},dispatchConditionRejection:!0}),m=ps(n+`/executeMutation`,d,{getPendingMeta:function(){var e;return e={startedTimeStamp:Date.now()},e[js]=!0,e}}),h=function(e){return`force`in e},g=function(e){return`ifOlderThan`in e},_=function(e,t,n){return function(r,i){var a=h(n)&&n.force,s=g(n)&&n.ifOlderThan,c=function(n){return n===void 0&&(n=!0),o.endpoints[e].initiate(t,{forceRefetch:n})},l=o.endpoints[e].select(t)(i());if(a)r(c());else if(s){var u=l?.fulfilledTimeStamp;if(!u){r(c());return}(Number(new Date)-Number(new Date(u)))/1e3>=s&&r(c())}else r(c(!1))}};function v(e){return function(t){return t?.meta?.arg?.endpointName===e}}function y(e,t){return{matchPending:vs(xs(e),v(t)),matchFulfilled:vs(ws(e),v(t)),matchRejected:vs(Ss(e),v(t))}}return{queryThunk:p,mutationThunk:m,prefetch:_,updateQueryData:l,upsertQueryData:u,patchQueryData:c,buildMatchThunkActions:y}}function Tc(e,t,n,r){return gc(n[e.meta.arg.endpointName][t],ws(e)?e.payload:void 0,Cs(e)?e.payload:void 0,e.meta.arg.originalArgs,`baseQueryMeta`in e.meta?e.meta.baseQueryMeta:void 0,r)}function Ec(e,t,n){var r=e[t];r&&n(r)}function Dc(e){return(`arg`in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function Oc(e,t,n){var r=e[Dc(t)];r&&n(r)}var kc={};function Ac(e){var t=e.reducerPath,n=e.queryThunk,r=e.mutationThunk,i=e.context,a=i.endpointDefinitions,o=i.apiUid,s=i.extractRehydrationInfo,c=i.hasRehydrationInfo,l=e.assertTagType,u=e.config,d=V(t+`/resetApiState`),f=H({name:t+`/queries`,initialState:kc,reducers:{removeQueryResult:{reducer:function(e,t){var n=t.payload.queryCacheKey;delete e[n]},prepare:Ms()},queryResultPatched:{reducer:function(e,t){var n=t.payload,r=n.queryCacheKey,i=n.patches;Ec(e,r,function(e){e.data=fo(e.data,i.concat())})},prepare:Ms()}},extraReducers:function(e){e.addCase(n.pending,function(e,t){var n=t.meta,r=t.meta.arg,i,a=xc(r);(r.subscribe||a)&&(e[i=r.queryCacheKey]??(e[i]={status:W.uninitialized,endpointName:r.endpointName})),Ec(e,r.queryCacheKey,function(e){e.status=W.pending,e.requestId=a&&e.requestId?e.requestId:n.requestId,r.originalArgs!==void 0&&(e.originalArgs=r.originalArgs),e.startedTimeStamp=n.startedTimeStamp})}).addCase(n.fulfilled,function(e,t){var n=t.meta,r=t.payload;Ec(e,n.arg.queryCacheKey,function(e){if(!(e.requestId!==n.requestId&&!xc(n.arg))){var t=a[n.arg.endpointName].merge;if(e.status=W.fulfilled,t)if(e.data!==void 0){var i=n.fulfilledTimeStamp,o=n.arg,s=n.baseQueryMeta,c=n.requestId;e.data=lo(e.data,function(e){return t(e,r,{arg:o.originalArgs,baseQueryMeta:s,fulfilledTimeStamp:i,requestId:c})})}else e.data=r;else e.data=a[n.arg.endpointName].structuralSharing??!0?ec(L(e.data)?ma(e.data):e.data,r):r;delete e.error,e.fulfilledTimeStamp=n.fulfilledTimeStamp}})}).addCase(n.rejected,function(e,t){var n=t.meta,r=n.condition,i=n.arg,a=n.requestId,o=t.error,s=t.payload;Ec(e,i.queryCacheKey,function(e){if(!r){if(e.requestId!==a)return;e.status=W.rejected,e.error=s??o}})}).addMatcher(c,function(e,t){for(var n=s(t).queries,r=0,i=Object.entries(n);r<i.length;r++){var a=i[r],o=a[0],c=a[1];(c?.status===W.fulfilled||c?.status===W.rejected)&&(e[o]=c)}})}}),p=H({name:t+`/mutations`,initialState:kc,reducers:{removeMutationResult:{reducer:function(e,t){var n=t.payload,r=Dc(n);r in e&&delete e[r]},prepare:Ms()}},extraReducers:function(e){e.addCase(r.pending,function(e,t){var n=t.meta,r=t.meta,i=r.requestId,a=r.arg,o=r.startedTimeStamp;a.track&&(e[Dc(n)]={requestId:i,status:W.pending,endpointName:a.endpointName,startedTimeStamp:o})}).addCase(r.fulfilled,function(e,t){var n=t.payload,r=t.meta;r.arg.track&&Oc(e,r,function(e){e.requestId===r.requestId&&(e.status=W.fulfilled,e.data=n,e.fulfilledTimeStamp=r.fulfilledTimeStamp)})}).addCase(r.rejected,function(e,t){var n=t.payload,r=t.error,i=t.meta;i.arg.track&&Oc(e,i,function(e){e.requestId===i.requestId&&(e.status=W.rejected,e.error=n??r)})}).addMatcher(c,function(e,t){for(var n=s(t).mutations,r=0,i=Object.entries(n);r<i.length;r++){var a=i[r],o=a[0],c=a[1];(c?.status===W.fulfilled||c?.status===W.rejected)&&o!==c?.requestId&&(e[o]=c)}})}}),m=H({name:t+`/invalidation`,initialState:kc,reducers:{updateProvidedBy:{reducer:function(e,t){for(var n,r,i=t.payload,a=i.queryCacheKey,o=i.providedTags,s=0,c=Object.values(e);s<c.length;s++)for(var l=c[s],u=0,d=Object.values(l);u<d.length;u++){var f=d[u],p=f.indexOf(a);p!==-1&&f.splice(p,1)}for(var m=0,h=o;m<h.length;m++){var g=h[m],_=g.type,v=g.id,y=(n=e[_]??(e[_]={}))[r=v||`__internal_without_id`]??(n[r]=[]);y.includes(a)||y.push(a)}},prepare:Ms()}},extraReducers:function(e){e.addCase(f.actions.removeQueryResult,function(e,t){for(var n=t.payload.queryCacheKey,r=0,i=Object.values(e);r<i.length;r++)for(var a=i[r],o=0,s=Object.values(a);o<s.length;o++){var c=s[o],l=c.indexOf(n);l!==-1&&c.splice(l,1)}}).addMatcher(c,function(e,t){for(var n,r,i=s(t).provided,a=0,o=Object.entries(i);a<o.length;a++)for(var c=o[a],l=c[0],u=c[1],d=0,f=Object.entries(u);d<f.length;d++)for(var p=f[d],m=p[0],h=p[1],g=(n=e[l]??(e[l]={}))[r=m||`__internal_without_id`]??(n[r]=[]),_=0,v=h;_<v.length;_++){var y=v[_];g.includes(y)||g.push(y)}}).addMatcher(_s(ws(n),Cs(n)),function(e,t){var n=Tc(t,`providesTags`,a,l),r=t.meta.arg.queryCacheKey;m.caseReducers.updateProvidedBy(e,m.actions.updateProvidedBy({queryCacheKey:r,providedTags:n}))})}}),h=H({name:t+`/subscriptions`,initialState:kc,reducers:{updateSubscriptionOptions:function(e,t){},unsubscribeQueryResult:function(e,t){},internal_probeSubscription:function(e,t){}}}),g=H({name:t+`/internalSubscriptions`,initialState:kc,reducers:{subscriptionsUpdated:{reducer:function(e,t){return fo(e,t.payload)},prepare:Ms()}}}),_=H({name:t+`/config`,initialState:U({online:Zs(),focused:Qs(),middlewareRegistered:!1},u),reducers:{middlewareRegistered:function(e,t){var n=t.payload;e.middlewareRegistered=e.middlewareRegistered===`conflict`||o!==n?`conflict`:!0}},extraReducers:function(e){e.addCase(lc,function(e){e.online=!0}).addCase(uc,function(e){e.online=!1}).addCase(sc,function(e){e.focused=!0}).addCase(cc,function(e){e.focused=!1}).addMatcher(c,function(e){return U({},e)})}}),v=yo({queries:f.reducer,mutations:p.reducer,provided:m.reducer,subscriptions:g.reducer,config:_.reducer});return{reducer:function(e,t){return v(d.match(t)?void 0:e,t)},actions:Hs(U(U(U(U(U(U({},_.actions),f.actions),h.actions),g.actions),p.actions),m.actions),{unsubscribeMutationResult:p.actions.removeMutationResult,resetApiState:d})}}var jc=Symbol.for(`RTKQ/skipToken`),Mc={status:W.uninitialized},Nc=lo(Mc,function(){}),Pc=lo(Mc,function(){});function Fc(e){var t=e.serializeQueryArgs,n=e.reducerPath,r=function(e){return Nc},i=function(e){return Pc};return{buildQuerySelector:s,buildMutationSelector:c,selectInvalidatedBy:l};function a(e){return U(U({},e),Gs(e.status))}function o(e){return e[n]}function s(e,n){return function(i){var s=t({queryArgs:i,endpointDefinition:n,endpointName:e});return Ao(i===jc?r:function(e){return o(e)?.queries?.[s]??Nc},a)}}function c(){return function(e){var t=typeof e==`object`?Dc(e)??jc:e;return Ao(t===jc?i:function(e){return o(e)?.mutations?.[t]??Pc},a)}}function l(e,t){for(var r=e[n],i=new Set,a=0,o=t.map(vc);a<o.length;a++){var s=o[a],c=r.provided[s.type];if(c)for(var l=(s.id===void 0?Xs(Object.values(c)):c[s.id])??[],u=0,d=l;u<d.length;u++){var f=d[u];i.add(f)}}return Xs(Array.from(i.values()).map(function(e){var t=r.queries[e];return t?[{queryCacheKey:e,endpointName:t.endpointName,originalArgs:t.originalArgs}]:[]}))}}var Ic=WeakMap?new WeakMap:void 0,Lc=function(e){var t=e.endpointName,n=e.queryArgs,r=``,i=Ic?.get(n);if(typeof i==`string`)r=i;else{var a=JSON.stringify(n,function(e,t){return qo(t)?Object.keys(t).sort().reduce(function(e,n){return e[n]=t[n],e},{}):t});qo(n)&&Ic?.set(n,a),r=a}return t+`(`+r+`)`};function Rc(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){var n=Do(function(e){return t.extractRehydrationInfo?.call(t,e,{reducerPath:t.reducerPath??`api`})}),r=Hs(U({reducerPath:`api`,keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1},t),{extractRehydrationInfo:n,serializeQueryArgs:function(e){var n=Lc;if(`serializeQueryArgs`in e.endpointDefinition){var r=e.endpointDefinition.serializeQueryArgs;n=function(e){var t=r(e);return typeof t==`string`?t:Lc(Hs(U({},e),{queryArgs:t}))}}else t.serializeQueryArgs&&(n=t.serializeQueryArgs);return n(e)},tagTypes:Ps([],t.tagTypes||[])}),i={endpointDefinitions:{},batch:function(e){e()},apiUid:cs(),extractRehydrationInfo:n,hasRehydrationInfo:Do(function(e){return n(e)!=null})},a={injectEndpoints:s,enhanceEndpoints:function(e){var t=e.addTagTypes,n=e.endpoints;if(t)for(var o=0,s=t;o<s.length;o++){var c=s[o];r.tagTypes.includes(c)||r.tagTypes.push(c)}if(n)for(var l=0,u=Object.entries(n);l<u.length;l++){var d=u[l],f=d[0],p=d[1];typeof p==`function`?p(i.endpointDefinitions[f]):Object.assign(i.endpointDefinitions[f]||{},p)}return a}},o=e.map(function(e){return e.init(a,r,i)});function s(e){for(var t=e.endpoints({query:function(e){return Hs(U({},e),{type:pc.query})},mutation:function(e){return Hs(U({},e),{type:pc.mutation})}}),n=0,r=Object.entries(t);n<r.length;n++){var s=r[n],c=s[0],l=s[1];if(!(!e.overrideExisting&&c in i.endpointDefinitions)){i.endpointDefinitions[c]=l;for(var u=0,d=o;u<d.length;u++)d[u].injectEndpoint(c,l)}}return a}return a.injectEndpoints({endpoints:t.endpoints})}}function zc(e){for(var t in e)return!1;return!0}var Bc=2147483647/1e3-1,Vc=function(e){var t=e.reducerPath,n=e.api,r=e.context,i=e.internalState,a=n.internalActions,o=a.removeQueryResult,s=a.unsubscribeQueryResult;function c(e){var t=i.currentSubscriptions[e];return!!t&&!zc(t)}var l={},u=function(e,i,a){if(s.match(e)){var o=i.getState()[t],c=e.payload.queryCacheKey;d(c,o.queries[c]?.endpointName,i,o.config)}if(n.util.resetApiState.match(e))for(var u=0,f=Object.entries(l);u<f.length;u++){var p=f[u],m=p[0],h=p[1];h&&clearTimeout(h),delete l[m]}if(r.hasRehydrationInfo(e))for(var o=i.getState()[t],g=r.extractRehydrationInfo(e).queries,_=0,v=Object.entries(g);_<v.length;_++){var y=v[_],c=y[0],b=y[1];d(c,b?.endpointName,i,o.config)}};function d(e,t,n,i){var a=r.endpointDefinitions[t]?.keepUnusedDataFor??i.keepUnusedDataFor;if(a!==1/0){var s=Math.max(0,Math.min(a,Bc));if(!c(e)){var u=l[e];u&&clearTimeout(u),l[e]=setTimeout(function(){c(e)||n.dispatch(o({queryCacheKey:e})),delete l[e]},s*1e3)}}}return u},Hc=function(e){var t=e.reducerPath,n=e.context,r=e.context.endpointDefinitions,i=e.mutationThunk,a=e.api,o=e.assertTagType,s=e.refetchQuery,c=a.internalActions.removeQueryResult,l=_s(ws(i),Cs(i)),u=function(e,t){l(e)&&d(Tc(e,`invalidatesTags`,r,o),t),a.util.invalidateTags.match(e)&&d(gc(e.payload,void 0,void 0,void 0,void 0,o),t)};function d(e,r){var i=r.getState(),o=i[t],l=a.util.selectInvalidatedBy(i,e);n.batch(function(){for(var e=Array.from(l.values()),t=0,n=e;t<n.length;t++){var i=n[t].queryCacheKey,a=o.queries[i],u=o.subscriptions[i]??{};a&&(Object.keys(u).length===0?r.dispatch(c({queryCacheKey:i})):a.status!==W.uninitialized&&r.dispatch(s(a,i)))}})}return u},Uc=function(e){var t=e.reducerPath,n=e.queryThunk,r=e.api,i=e.refetchQuery,a=e.internalState,o={},s=function(e,t){(r.internalActions.updateSubscriptionOptions.match(e)||r.internalActions.unsubscribeQueryResult.match(e))&&l(e.payload,t),(n.pending.match(e)||n.rejected.match(e)&&e.meta.condition)&&l(e.meta.arg,t),(n.fulfilled.match(e)||n.rejected.match(e)&&!e.meta.condition)&&c(e.meta.arg,t),r.util.resetApiState.match(e)&&d()};function c(e,n){var r=e.queryCacheKey,s=n.getState()[t].queries[r],c=a.currentSubscriptions[r];if(!(!s||s.status===W.uninitialized)){var l=f(c);if(Number.isFinite(l)){var u=o[r];u?.timeout&&(clearTimeout(u.timeout),u.timeout=void 0);var d=o[r]={nextPollTimestamp:Date.now()+l,pollingInterval:l,timeout:setTimeout(function(){d.timeout=void 0,n.dispatch(i(s,r))},l)}}}}function l(e,n){var r=e.queryCacheKey,i=n.getState()[t].queries[r],s=a.currentSubscriptions[r];if(!(!i||i.status===W.uninitialized)){var l=f(s);if(!Number.isFinite(l)){u(r);return}var d=o[r],p=Date.now()+l;(!d||p<d.nextPollTimestamp)&&c({queryCacheKey:r},n)}}function u(e){var t=o[e];t?.timeout&&clearTimeout(t.timeout),delete o[e]}function d(){for(var e=0,t=Object.keys(o);e<t.length;e++){var n=t[e];u(n)}}function f(e){e===void 0&&(e={});var t=1/0;for(var n in e)e[n].pollingInterval&&(t=Math.min(e[n].pollingInterval,t));return t}return s},Wc=function(e){var t=e.reducerPath,n=e.context,r=e.api,i=e.refetchQuery,a=e.internalState,o=r.internalActions.removeQueryResult,s=function(e,t){sc.match(e)&&c(t,`refetchOnFocus`),lc.match(e)&&c(t,`refetchOnReconnect`)};function c(e,r){var s=e.getState()[t],c=s.queries,l=a.currentSubscriptions;n.batch(function(){for(var t=0,n=Object.keys(l);t<n.length;t++){var a=n[t],u=c[a],d=l[a];!d||!u||(Object.values(d).some(function(e){return e[r]===!0})||Object.values(d).every(function(e){return e[r]===void 0})&&s.config[r])&&(Object.keys(d).length===0?e.dispatch(o({queryCacheKey:a})):u.status!==W.uninitialized&&e.dispatch(i(u,a)))}})}return s},Gc=Error(`Promise never resolved before cacheEntryRemoved.`),Kc=function(e){var t=e.api,n=e.reducerPath,r=e.context,i=e.queryThunk,a=e.mutationThunk;e.internalState;var o=Ts(i),s=Ts(a),c=ws(i,a),l={},u=function(e,r,o){var s=d(e);if(i.pending.match(e)){var u=o[n].queries[s],p=r.getState()[n].queries[s];!u&&p&&f(e.meta.arg.endpointName,e.meta.arg.originalArgs,s,r,e.meta.requestId)}else if(a.pending.match(e)){var p=r.getState()[n].mutations[s];p&&f(e.meta.arg.endpointName,e.meta.arg.originalArgs,s,r,e.meta.requestId)}else if(c(e)){var m=l[s];m?.valueResolved&&(m.valueResolved({data:e.payload,meta:e.meta.baseQueryMeta}),delete m.valueResolved)}else if(t.internalActions.removeQueryResult.match(e)||t.internalActions.removeMutationResult.match(e)){var m=l[s];m&&(delete l[s],m.cacheEntryRemoved())}else if(t.util.resetApiState.match(e))for(var h=0,g=Object.entries(l);h<g.length;h++){var _=g[h],v=_[0],m=_[1];delete l[v],m.cacheEntryRemoved()}};function d(e){return o(e)?e.meta.arg.queryCacheKey:s(e)?e.meta.requestId:t.internalActions.removeQueryResult.match(e)?e.payload.queryCacheKey:t.internalActions.removeMutationResult.match(e)?Dc(e.payload):``}function f(e,n,i,a,o){var s=r.endpointDefinitions[e],c=s?.onCacheEntryAdded;if(c){var u={},d=new Promise(function(e){u.cacheEntryRemoved=e}),f=Promise.race([new Promise(function(e){u.valueResolved=e}),d.then(function(){throw Gc})]);f.catch(function(){}),l[i]=u;var p=t.endpoints[e].select(s.type===pc.query?n:i),m=a.dispatch(function(e,t,n){return n}),h=c(n,Hs(U({},a),{getCacheEntry:function(){return p(a.getState())},requestId:o,extra:m,updateCachedData:s.type===pc.query?function(r){return a.dispatch(t.util.updateQueryData(e,n,r))}:void 0,cacheDataLoaded:f,cacheEntryRemoved:d}));Promise.resolve(h).catch(function(e){if(e!==Gc)throw e})}}return u},qc=function(e){var t=e.api,n=e.context,r=e.queryThunk,i=e.mutationThunk,a=xs(r,i),o=Ss(r,i),s=ws(r,i),c={};return function(e,r){var i,l;if(a(e)){var u=e.meta,d=u.requestId,f=u.arg,p=f.endpointName,m=f.originalArgs,h=n.endpointDefinitions[p],g=h?.onQueryStarted;if(g){var _={},v=new Promise(function(e,t){_.resolve=e,_.reject=t});v.catch(function(){}),c[d]=_;var y=t.endpoints[p].select(h.type===pc.query?m:d),b=r.dispatch(function(e,t,n){return n});g(m,Hs(U({},r),{getCacheEntry:function(){return y(r.getState())},requestId:d,extra:b,updateCachedData:h.type===pc.query?function(e){return r.dispatch(t.util.updateQueryData(p,m,e))}:void 0,queryFulfilled:v}))}}else if(s(e)){var x=e.meta,d=x.requestId,S=x.baseQueryMeta;(i=c[d])==null||i.resolve({data:e.payload,meta:S}),delete c[d]}else if(o(e)){var C=e.meta,d=C.requestId,w=C.rejectedWithValue,S=C.baseQueryMeta;(l=c[d])==null||l.reject({error:e.payload??e.error,isUnhandledError:!w,meta:S}),delete c[d]}}},Jc=function(e){var t=e.api,n=e.context.apiUid;return e.reducerPath,function(e,r){t.util.resetApiState.match(e)&&r.dispatch(t.internalActions.middlewareRegistered(n))}},Yc,Xc=typeof queueMicrotask==`function`?queueMicrotask.bind(typeof window<`u`?window:r.r===void 0?globalThis:r.r):function(e){return(Yc||=Promise.resolve()).then(e).catch(function(e){return setTimeout(function(){throw e},0)})},Zc=function(e){var t=e.api,n=e.queryThunk,r=e.internalState,i=t.reducerPath+`/subscriptions`,a=null,o=!1,s=t.internalActions,c=s.updateSubscriptionOptions,l=s.unsubscribeQueryResult,u=function(e,r){var i,a;if(c.match(r)){var o=r.payload,s=o.queryCacheKey,u=o.requestId,d=o.options;return e?.[s]?.[u]&&(e[s][u]=d),!0}if(l.match(r)){var f=r.payload,s=f.queryCacheKey,u=f.requestId;return e[s]&&delete e[s][u],!0}if(t.internalActions.removeQueryResult.match(r))return delete e[r.payload.queryCacheKey],!0;if(n.pending.match(r)){var p=r.meta,m=p.arg,u=p.requestId;if(m.subscribe){var h=e[i=m.queryCacheKey]??(e[i]={});return h[u]=m.subscriptionOptions??h[u]??{},!0}}if(n.rejected.match(r)){var g=r.meta,_=g.condition,m=g.arg,u=g.requestId;if(_&&m.subscribe){var h=e[a=m.queryCacheKey]??(e[a]={});return h[u]=m.subscriptionOptions??h[u]??{},!0}}return!1};return function(e,s){if(a||=JSON.parse(JSON.stringify(r.currentSubscriptions)),t.util.resetApiState.match(e))return a=r.currentSubscriptions={},[!0,!1];if(t.internalActions.internal_probeSubscription.match(e)){var c=e.payload,l=c.queryCacheKey,d=c.requestId;return[!1,!!r.currentSubscriptions[l]?.[d]]}if(u(r.currentSubscriptions,e)){o||=(Xc(function(){var e=JSON.parse(JSON.stringify(r.currentSubscriptions)),n=uo(a,function(){return e})[1];s.next(t.internalActions.subscriptionsUpdated(n)),a=e,o=!1}),!0);var f=!!e.type?.startsWith(i),p=n.rejected.match(e)&&e.meta.condition&&!!e.meta.arg.subscribe;return[!f&&!p,!1]}return[!0,!1]}};function Qc(e){var t=e.reducerPath,n=e.queryThunk,r=e.api,i=e.context,a=i.apiUid,o={invalidateTags:V(t+`/invalidateTags`)},s=function(e){return!!e&&typeof e.type==`string`&&e.type.startsWith(t+`/`)},c=[Jc,Vc,Hc,Uc,Kc,qc];return{middleware:function(n){var o=!1,u=Hs(U({},e),{internalState:{currentSubscriptions:{}},refetchQuery:l}),d=c.map(function(e){return e(u)}),f=Zc(u),p=Wc(u);return function(e){return function(c){o||(o=!0,n.dispatch(r.internalActions.middlewareRegistered(a)));var l=Hs(U({},n),{next:e}),u=n.getState(),m=f(c,l,u),h=m[0],g=m[1],_=h?e(c):g;if(n.getState()[t]&&(p(c,l,u),s(c)||i.hasRehydrationInfo(c)))for(var v=0,y=d;v<y.length;v++){var b=y[v];b(c,l,u)}return _}}},actions:o};function l(e,t,r){return r===void 0&&(r={}),n(U({type:`query`,endpointName:e.endpointName,originalArgs:e.originalArgs,subscribe:!1,forceRefetch:!0,queryCacheKey:t},r))}}function $c(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];Object.assign.apply(Object,Ps([e],t))}var el=Symbol(),tl=function(){return{name:el,init:function(e,t,n){var r=t.baseQuery;t.tagTypes;var i=t.reducerPath,a=t.serializeQueryArgs,o=t.keepUnusedDataFor,s=t.refetchOnMountOrArgChange,c=t.refetchOnFocus,l=t.refetchOnReconnect;Ja();var u=function(e){return e};Object.assign(e,{reducerPath:i,endpoints:{},internalActions:{onOnline:lc,onOffline:uc,onFocus:sc,onFocusLost:cc},util:{}});var d=wc({baseQuery:r,reducerPath:i,context:n,api:e,serializeQueryArgs:a,assertTagType:u}),f=d.queryThunk,p=d.mutationThunk,m=d.patchQueryData,h=d.updateQueryData,g=d.upsertQueryData,_=d.prefetch,v=d.buildMatchThunkActions,y=Ac({context:n,queryThunk:f,mutationThunk:p,reducerPath:i,assertTagType:u,config:{refetchOnFocus:c,refetchOnReconnect:l,refetchOnMountOrArgChange:s,keepUnusedDataFor:o,reducerPath:i}}),b=y.reducer,x=y.actions;$c(e.util,{patchQueryData:m,updateQueryData:h,upsertQueryData:g,prefetch:_,resetApiState:x.resetApiState}),$c(e.internalActions,x);var S=Qc({reducerPath:i,context:n,queryThunk:f,mutationThunk:p,api:e,assertTagType:u}),C=S.middleware,w=S.actions;$c(e.util,w),$c(e,{reducer:b,middleware:C});var T=Fc({serializeQueryArgs:a,reducerPath:i}),E=T.buildQuerySelector,D=T.buildMutationSelector,O=T.selectInvalidatedBy;$c(e.util,{selectInvalidatedBy:O});var k=Sc({queryThunk:f,mutationThunk:p,api:e,serializeQueryArgs:a,context:n}),ee=k.buildInitiateQuery,te=k.buildInitiateMutation,ne=k.getRunningMutationThunk,re=k.getRunningMutationsThunk,A=k.getRunningQueriesThunk,ie=k.getRunningQueryThunk,ae=k.getRunningOperationPromises,oe=k.removalWarning;return $c(e.util,{getRunningOperationPromises:ae,getRunningOperationPromise:oe,getRunningMutationThunk:ne,getRunningMutationsThunk:re,getRunningQueryThunk:ie,getRunningQueriesThunk:A}),{name:el,injectEndpoint:function(t,n){var r,i=e;(r=i.endpoints)[t]??(r[t]={}),mc(n)?$c(i.endpoints[t],{name:t,select:E(t,n),initiate:ee(t,n)},v(f,t)):hc(n)&&$c(i.endpoints[t],{name:t,select:D(),initiate:te(t)},v(p,t))}}}}},nl=o.default.createContext(null);function rl(e){e()}var il=rl,al=function(e){return il=e},ol=function(){return il};function sl(){var e=ol(),t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e(function(){for(var e=t;e;)e.callback(),e=e.next})},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,i=n={callback:e,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){!r||t===null||(r=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}var cl={notify:function(){},get:function(){return[]}};function ll(e,t){var n,r=cl;function i(e){return c(),r.subscribe(e)}function a(){r.notify()}function o(){u.onStateChange&&u.onStateChange()}function s(){return!!n}function c(){n||(n=t?t.addNestedSub(o):e.subscribe(o),r=sl())}function l(){n&&(n(),n=void 0,r.clear(),r=cl)}var u={addNestedSub:i,notifyNestedSubs:a,handleChangeWrapper:o,isSubscribed:s,trySubscribe:c,tryUnsubscribe:l,getListeners:function(){return r}};return u}var ul=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0?o.useLayoutEffect:o.useEffect;function dl(e){var t=e.store,n=e.context,r=e.children,i=(0,o.useMemo)(function(){return{store:t,subscription:ll(t)}},[t]),a=(0,o.useMemo)(function(){return t.getState()},[t]);ul(function(){var e=i.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),a!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}},[i,a]);var s=n||nl;return o.default.createElement(s.Provider,{value:i},r)}var fl=r.a((e=>{var t=typeof Symbol==`function`&&Symbol.for,n=t?Symbol.for(`react.element`):60103,r=t?Symbol.for(`react.portal`):60106,i=t?Symbol.for(`react.fragment`):60107,a=t?Symbol.for(`react.strict_mode`):60108,o=t?Symbol.for(`react.profiler`):60114,s=t?Symbol.for(`react.provider`):60109,c=t?Symbol.for(`react.context`):60110,l=t?Symbol.for(`react.async_mode`):60111,u=t?Symbol.for(`react.concurrent_mode`):60111,d=t?Symbol.for(`react.forward_ref`):60112,f=t?Symbol.for(`react.suspense`):60113,p=t?Symbol.for(`react.suspense_list`):60120,m=t?Symbol.for(`react.memo`):60115,h=t?Symbol.for(`react.lazy`):60116,g=t?Symbol.for(`react.block`):60121,_=t?Symbol.for(`react.fundamental`):60117,v=t?Symbol.for(`react.responder`):60118,y=t?Symbol.for(`react.scope`):60119;function b(e){if(typeof e==`object`&&e){var t=e.$$typeof;switch(t){case n:switch(e=e.type,e){case l:case u:case i:case o:case a:case f:return e;default:switch(e&&=e.$$typeof,e){case c:case d:case h:case m:case s:return e;default:return t}}case r:return t}}}function x(e){return b(e)===u}e.AsyncMode=l,e.ConcurrentMode=u,e.ContextConsumer=c,e.ContextProvider=s,e.Element=n,e.ForwardRef=d,e.Fragment=i,e.Lazy=h,e.Memo=m,e.Portal=r,e.Profiler=o,e.StrictMode=a,e.Suspense=f,e.isAsyncMode=function(e){return x(e)||b(e)===l},e.isConcurrentMode=x,e.isContextConsumer=function(e){return b(e)===c},e.isContextProvider=function(e){return b(e)===s},e.isElement=function(e){return typeof e==`object`&&!!e&&e.$$typeof===n},e.isForwardRef=function(e){return b(e)===d},e.isFragment=function(e){return b(e)===i},e.isLazy=function(e){return b(e)===h},e.isMemo=function(e){return b(e)===m},e.isPortal=function(e){return b(e)===r},e.isProfiler=function(e){return b(e)===o},e.isStrictMode=function(e){return b(e)===a},e.isSuspense=function(e){return b(e)===f},e.isValidElementType=function(e){return typeof e==`string`||typeof e==`function`||e===i||e===u||e===o||e===a||e===f||e===p||typeof e==`object`&&!!e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===_||e.$$typeof===v||e.$$typeof===y||e.$$typeof===g)},e.typeOf=b})),pl=r.a(((e,t)=>{t.exports=fl()})),ml=r.a(((e,t)=>{var n=pl(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[n.ForwardRef]=a,s[n.Memo]=o;function c(e){return n.isMemo(e)?o:s[e.$$typeof]||r}var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;function h(e,t,n){if(typeof t!=`string`){if(m){var r=p(t);r&&r!==m&&h(e,r,n)}var a=u(t);d&&(a=a.concat(d(t)));for(var o=c(e),s=c(t),g=0;g<a.length;++g){var _=a[g];if(!i[_]&&!(n&&n[_])&&!(s&&s[_])&&!(o&&o[_])){var v=f(t,_);try{l(e,_,v)}catch{}}}}return e}t.exports=h})),hl=r.a((e=>{if(typeof Symbol==`function`&&Symbol.for){var t=Symbol.for;t(`react.element`),t(`react.portal`),t(`react.fragment`),t(`react.strict_mode`),t(`react.profiler`),t(`react.provider`),t(`react.context`),t(`react.forward_ref`),t(`react.suspense`),t(`react.suspense_list`),t(`react.memo`),t(`react.lazy`),t(`react.block`),t(`react.server.block`),t(`react.fundamental`),t(`react.debug_trace_mode`),t(`react.legacy_hidden`)}})),gl=r.a(((e,t)=>{t.exports=hl()}));ml(),gl();function _l(e,t){return e===t?e!==0||t!==0||1/e==1/t:e!==e&&t!==t}function vl(e,t){if(_l(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!_l(e[n[i]],t[n[i]]))return!1;return!0}function yl(){return(0,o.useContext)(nl)}function bl(e){e===void 0&&(e=nl);var t=e===nl?yl:function(){return(0,o.useContext)(e)};return function(){return t().store}}var G=bl();function xl(e){e===void 0&&(e=nl);var t=e===nl?G:bl(e);return function(){return t().dispatch}}var Sl=xl(),Cl=function(e,t){return e===t};function wl(e,t,n,r){var i=(0,o.useReducer)(function(e){return e+1},0)[1],a=(0,o.useMemo)(function(){return ll(n,r)},[n,r]),s=(0,o.useRef)(),c=(0,o.useRef)(),l=(0,o.useRef)(),u=(0,o.useRef)(),d=n.getState(),f;try{if(e!==c.current||d!==l.current||s.current){var p=e(d);f=u.current===void 0||!t(p,u.current)?p:u.current}else f=u.current}catch(e){throw s.current&&(e.message+=`
4
4
  The error may be correlated with this previous error: