geno/wp-content/plugins/woocommerce/packages/woocommerce-blocks/build/mini-cart-component-frontend.js
2024-02-01 11:54:18 +00:00

4 lines
No EOL
95 KiB
JavaScript
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(()=>{var e,t,r={4877:(e,t,r)=>{"use strict";r.d(t,{Z:()=>s});var n=r(9196),o=r(9685),i=r(4184),a=r.n(i),c=(r(5482),r(4705));const s=({className:e,showSpinner:t=!1,children:r,variant:i="contained",...s})=>{const l=a()("wc-block-components-button","wp-element-button",e,i,{"wc-block-components-button--loading":t});return(0,n.createElement)(o.Z,{className:l,...s},t&&(0,n.createElement)(c.Z,null),(0,n.createElement)("span",{className:"wc-block-components-button__text"},r))}},3340:(e,t,r)=>{"use strict";r.d(t,{Z:()=>u});var n=r(4617),o=r(5736),i=r(1478),a=r(2646),c=r(5271);const s=e=>{const t={};return void 0!==e.label&&(t.label=e.label),void 0!==e.required&&(t.required=e.required),void 0!==e.hidden&&(t.hidden=e.hidden),void 0===e.label||e.optionalLabel||(t.optionalLabel=(0,o.sprintf)(/* translators: %s Field label. */
(0,o.__)("%s (optional)","woocommerce"),e.label)),e.priority&&((0,i.h)(e.priority)&&(t.index=e.priority),(0,a.H)(e.priority)&&(t.index=parseInt(e.priority,10))),e.hidden&&(t.required=!1),t},l=Object.entries(c.vr).map((([e,t])=>[e,Object.entries(t).map((([e,t])=>[e,s(t)])).reduce(((e,[t,r])=>(e[t]=r,e)),{})])).reduce(((e,[t,r])=>(e[t]=r,e)),{}),u=(e,t,r="")=>{const o=r&&void 0!==l[r]?l[r]:{};return e.map((e=>({key:e,...n.defaultAddressFields[e]||{},...o[e]||{},...t[e]||{}}))).sort(((e,t)=>e.index-t.index))}},5577:(e,t,r)=>{"use strict";r.d(t,{m:()=>o});var n=r(9638);const o=(e,t)=>(r,o=10)=>{const i=n.Nw.addEventCallback(e,r,o);return t(i),()=>{t(n.Nw.removeEventCallback(e,i.id))}}},5017:(e,t,r)=>{"use strict";r.d(t,{P:()=>i});var n=r(6423),o=r(7755);const i=async(e,t,r)=>{const i=[],a=(0,n.Xj)(e,t);for(const e of a)try{const t=await Promise.resolve(e.callback(r));if(!(0,o.X)(t))continue;if(!t.hasOwnProperty("type"))throw new Error("Returned objects from event emitter observers must return an object with a type property");if((0,n.qm)(t)||(0,n.x$)(t))return i.push(t),i;i.push(t)}catch(e){return console.error(e),i.push({type:n.dO.ERROR}),i}return i}},9638:(e,t,r)=>{"use strict";r.d(t,{I6:()=>a,Nw:()=>o});var n=r(5400);const o={addEventCallback:(e,t,r=10)=>({id:Math.floor(Math.random()*Date.now()).toString(),type:n.o.ADD_EVENT_CALLBACK,eventType:e,callback:t,priority:r}),removeEventCallback:(e,t)=>({id:t,type:n.o.REMOVE_EVENT_CALLBACK,eventType:e})},i={},a=(e=i,{type:t,eventType:r,id:o,callback:a,priority:c})=>{const s=e.hasOwnProperty(r)?new Map(e[r]):new Map;switch(t){case n.o.ADD_EVENT_CALLBACK:return s.set(o,{priority:c,callback:a}),{...e,[r]:s};case n.o.REMOVE_EVENT_CALLBACK:return s.delete(o),{...e,[r]:s}}}},5400:(e,t,r)=>{"use strict";r.d(t,{o:()=>n});let n=function(e){return e.ADD_EVENT_CALLBACK="add_event_callback",e.REMOVE_EVENT_CALLBACK="remove_event_callback",e}({})},6423:(e,t,r)=>{"use strict";r.d(t,{Xj:()=>o,dO:()=>i,qm:()=>c,x$:()=>s});var n=r(7884);const o=(e,t)=>e[t]?Array.from(e[t].values()).sort(((e,t)=>e.priority-t.priority)):[];let i=function(e){return e.SUCCESS="success",e.FAIL="failure",e.ERROR="error",e}({});const a=(e,t)=>(0,n.Kn)(e)&&"type"in e&&e.type===t,c=e=>a(e,i.ERROR),s=e=>a(e,i.FAIL)},4055:(e,t,r)=>{"use strict";r.d(t,{b:()=>w});var n=r(2991),o=r.n(n),i=r(9307),a=r(4801),c=r(9818),s=r(2629),l=r(3881),u=r(8832);var d=r(9456);const p=e=>{const t=null==e?void 0:e.detail;t&&t.preserveCartData||(0,c.dispatch)(a.CART_STORE_KEY).invalidateResolutionForStore()},m=e=>{(null!=e&&e.persisted||"back_forward"===(window.performance&&window.performance.getEntriesByType("navigation").length?window.performance.getEntriesByType("navigation")[0].type:""))&&(0,c.dispatch)(a.CART_STORE_KEY).invalidateResolutionForStore()},f=()=>{1===window.wcBlocksStoreCartListeners.count&&window.wcBlocksStoreCartListeners.remove(),window.wcBlocksStoreCartListeners.count--},h={first_name:"",last_name:"",company:"",address_1:"",address_2:"",city:"",state:"",postcode:"",country:"",phone:""},g={...h,email:""},b={total_items:"",total_items_tax:"",total_fees:"",total_fees_tax:"",total_discount:"",total_discount_tax:"",total_shipping:"",total_shipping_tax:"",total_price:"",total_tax:"",tax_lines:a.EMPTY_TAX_LINES,currency_code:"",currency_symbol:"",currency_minor_unit:2,currency_decimal_separator:"",currency_thousand_separator:"",currency_prefix:"",currency_suffix:""},y=e=>Object.fromEntries(Object.entries(e).map((([e,t])=>[e,(0,s.decodeEntities)(t)]))),v={cartCoupons:a.EMPTY_CART_COUPONS,cartItems:a.EMPTY_CART_ITEMS,cartFees:a.EMPTY_CART_FEES,cartItemsCount:0,cartItemsWeight:0,crossSellsProducts:a.EMPTY_CART_CROSS_SELLS,cartNeedsPayment:!0,cartNeedsShipping:!0,cartItemErrors:a.EMPTY_CART_ITEM_ERRORS,cartTotals:b,cartIsLoading:!0,cartErrors:a.EMPTY_CART_ERRORS,billingAddress:g,shippingAddress:h,shippingRates:a.EMPTY_SHIPPING_RATES,isLoadingRates:!1,cartHasCalculatedShipping:!1,paymentMethods:a.EMPTY_PAYMENT_METHODS,paymentRequirements:a.EMPTY_PAYMENT_REQUIREMENTS,receiveCart:()=>{},receiveCartContents:()=>{},extensions:a.EMPTY_EXTENSIONS},w=(e={shouldSelect:!0})=>{const{isEditor:t,previewData:r}=(0,u._)(),n=null==r?void 0:r.previewCart,{shouldSelect:s}=e,b=(0,i.useRef)();(0,i.useEffect)((()=>((()=>{if(window.wcBlocksStoreCartListeners||(window.wcBlocksStoreCartListeners={count:0,remove:()=>{}}),(null===(e=window.wcBlocksStoreCartListeners)||void 0===e?void 0:e.count)>0)return void window.wcBlocksStoreCartListeners.count++;var e;document.body.addEventListener("wc-blocks_added_to_cart",p),document.body.addEventListener("wc-blocks_removed_from_cart",p),window.addEventListener("pageshow",m);const t=(0,d.Es)("added_to_cart","wc-blocks_added_to_cart"),r=(0,d.Es)("removed_from_cart","wc-blocks_removed_from_cart");window.wcBlocksStoreCartListeners.count=1,window.wcBlocksStoreCartListeners.remove=()=>{document.body.removeEventListener("wc-blocks_added_to_cart",p),document.body.removeEventListener("wc-blocks_removed_from_cart",p),window.removeEventListener("pageshow",m),t(),r()}})(),f)),[]);const w=(0,c.useSelect)(((e,{dispatch:r})=>{if(!s)return v;if(t)return{cartCoupons:n.coupons,cartItems:n.items,crossSellsProducts:n.cross_sells,cartFees:n.fees,cartItemsCount:n.items_count,cartItemsWeight:n.items_weight,cartNeedsPayment:n.needs_payment,cartNeedsShipping:n.needs_shipping,cartItemErrors:a.EMPTY_CART_ITEM_ERRORS,cartTotals:n.totals,cartIsLoading:!1,cartErrors:a.EMPTY_CART_ERRORS,billingData:g,billingAddress:g,shippingAddress:h,extensions:a.EMPTY_EXTENSIONS,shippingRates:n.shipping_rates,isLoadingRates:!1,cartHasCalculatedShipping:n.has_calculated_shipping,paymentRequirements:n.paymentRequirements,receiveCart:"function"==typeof(null==n?void 0:n.receiveCart)?n.receiveCart:()=>{},receiveCartContents:"function"==typeof(null==n?void 0:n.receiveCartContents)?n.receiveCartContents:()=>{}};const o=e(a.CART_STORE_KEY),i=o.getCartData(),c=o.getCartErrors(),u=o.getCartTotals(),d=!o.hasFinishedResolution("getCartData"),p=o.isCustomerDataUpdating(),{receiveCart:m,receiveCartContents:f}=r(a.CART_STORE_KEY),b=y(i.billingAddress),w=i.needsShipping?y(i.shippingAddress):b,k=i.fees.length>0?i.fees.map((e=>y(e))):a.EMPTY_CART_FEES;return{cartCoupons:i.coupons.length>0?i.coupons.map((e=>({...e,label:e.code}))):a.EMPTY_CART_COUPONS,cartItems:i.items,crossSellsProducts:i.crossSells,cartFees:k,cartItemsCount:i.itemsCount,cartItemsWeight:i.itemsWeight,cartNeedsPayment:i.needsPayment,cartNeedsShipping:i.needsShipping,cartItemErrors:i.errors,cartTotals:u,cartIsLoading:d,cartErrors:c,billingData:(0,l.QI)(b),billingAddress:(0,l.QI)(b),shippingAddress:(0,l.QI)(w),extensions:i.extensions,shippingRates:i.shippingRates,isLoadingRates:p,cartHasCalculatedShipping:i.hasCalculatedShipping,paymentRequirements:i.paymentRequirements,receiveCart:m,receiveCartContents:f}}),[s]);return b.current&&o()(b.current,w)||(b.current=w),b.current}},3691:(e,t,r)=>{"use strict";r.d(t,{T:()=>d,b:()=>u});var n=r(9196),o=r(9307),i=r(9638),a=r(5577);const c="cart_proceed_to_checkout";var s=r(5017);const l=(0,o.createContext)({onProceedToCheckout:()=>()=>{},dispatchOnProceedToCheckout:()=>new Promise((()=>{}))}),u=()=>(0,o.useContext)(l),d=({children:e})=>{const[t,r]=(0,o.useReducer)(i.I6,{}),u=(0,o.useRef)(t),{onProceedToCheckout:d}=(e=>(0,o.useMemo)((()=>({onProceedToCheckout:(0,a.m)(c,e)})),[e]))(r);(0,o.useEffect)((()=>{u.current=t}),[t]);const p={onProceedToCheckout:d,dispatchOnProceedToCheckout:async()=>await(0,s.P)(u.current,c,null)};return(0,n.createElement)(l.Provider,{value:p},e)}},8832:(e,t,r)=>{"use strict";r.d(t,{_:()=>i}),r(9196);var n=r(9307);r(9818);const o=(0,n.createContext)({isEditor:!1,currentPostId:0,currentView:"",previewData:{},getPreviewData:()=>({})}),i=()=>(0,n.useContext)(o)},3881:(e,t,r)=>{"use strict";r.d(t,{QI:()=>i});var n=r(3340),o=(r(6483),r(4617));r(2629),r(5271);const i=e=>{const t=Object.keys(o.defaultAddressFields),r=(0,n.Z)(t,{},e.country),i=Object.assign({},e);return r.forEach((({key:t="",hidden:r=!1})=>{r&&((e,t)=>e in t)(t,e)&&(i[t]="")})),i}},9456:(e,t,r)=>{"use strict";r.d(t,{Es:()=>o});const n=window.CustomEvent||null,o=(e,t,r=!1,o=!1)=>{if("function"!=typeof jQuery)return()=>{};const i=()=>{((e,{bubbles:t=!1,cancelable:r=!1,element:o,detail:i={}})=>{if(!n)return;o||(o=document.body);const a=new n(e,{bubbles:t,cancelable:r,detail:i});o.dispatchEvent(a)})(t,{bubbles:r,cancelable:o})};return jQuery(document).on(e,i),()=>jQuery(document).off(e,i)}},7530:(e,t,r)=>{"use strict";r.d(t,{Cm:()=>f,Pe:()=>b,VF:()=>g,fh:()=>v,sE:()=>y,td:()=>h,vr:()=>E});var n,o,i,a,c,s,l,u,d,p,m=r(4617);const f=(0,m.getSetting)("wcBlocksConfig",{buildPhase:1,pluginUrl:"",productCount:0,defaultAvatar:"",restApiRoutes:{},wordCountType:"words"}),h=f.pluginUrl+"images/",g=f.pluginUrl+"build/",b=(f.buildPhase,null===(n=m.STORE_PAGES.shop)||void 0===n?void 0:n.permalink),y=(null===(o=m.STORE_PAGES.checkout)||void 0===o||o.id,null===(i=m.STORE_PAGES.checkout)||void 0===i?void 0:i.permalink),v=(null===(a=m.STORE_PAGES.privacy)||void 0===a||a.permalink,null===(c=m.STORE_PAGES.privacy)||void 0===c||c.title,null===(s=m.STORE_PAGES.terms)||void 0===s||s.permalink,null===(l=m.STORE_PAGES.terms)||void 0===l||l.title,null===(u=m.STORE_PAGES.cart)||void 0===u||u.id,null===(d=m.STORE_PAGES.cart)||void 0===d?void 0:d.permalink),w=(null!==(p=m.STORE_PAGES.myaccount)&&void 0!==p&&p.permalink?m.STORE_PAGES.myaccount.permalink:(0,m.getSetting)("wpLoginUrl","/wp-login.php"),(0,m.getSetting)("localPickupEnabled",!1),(0,m.getSetting)("countries",{})),k=(0,m.getSetting)("countryData",{}),E=(Object.fromEntries(Object.keys(k).filter((e=>!0===k[e].allowBilling)).map((e=>[e,w[e]||""]))),Object.fromEntries(Object.keys(k).filter((e=>!0===k[e].allowBilling)).map((e=>[e,k[e].states||[]]))),Object.fromEntries(Object.keys(k).filter((e=>!0===k[e].allowShipping)).map((e=>[e,w[e]||""]))),Object.fromEntries(Object.keys(k).filter((e=>!0===k[e].allowShipping)).map((e=>[e,k[e].states||[]]))),Object.fromEntries(Object.keys(k).map((e=>[e,k[e].locale||[]]))))},5271:(e,t,r)=>{"use strict";r.d(t,{Cm:()=>n.Cm,Pe:()=>n.Pe,VF:()=>n.VF,fh:()=>n.fh,sE:()=>n.sE,td:()=>n.td,vr:()=>n.vr});var n=r(7530)},8519:(e,t,r)=>{"use strict";r.d(t,{F:()=>n});const n=e=>null===e},1478:(e,t,r)=>{"use strict";r.d(t,{h:()=>n});const n=e=>"number"==typeof e},7884:(e,t,r)=>{"use strict";r.d(t,{$n:()=>i,Kn:()=>o});var n=r(8519);const o=e=>!(0,n.F)(e)&&e instanceof Object&&e.constructor===Object;function i(e,t){return o(e)&&t in e}},7755:(e,t,r)=>{"use strict";r.d(t,{X:()=>o});var n=r(7884);const o=e=>(0,n.Kn)(e)&&(0,n.$n)(e,"type")},2646:(e,t,r)=>{"use strict";r.d(t,{H:()=>n});const n=e=>"string"==typeof e},4705:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(9196);r(129);const o=()=>(0,n.createElement)("span",{className:"wc-block-components-spinner","aria-hidden":"true"})},4184:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)){if(r.length){var a=o.apply(null,r);a&&e.push(a)}}else if("object"===i)if(r.toString===Object.prototype.toString)for(var c in r)n.call(r,c)&&r[c]&&e.push(c);else e.push(r.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},9960:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(r=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===r.Tag||e.type===r.Script||e.type===r.Style},t.Root=r.Root,t.Text=r.Text,t.Directive=r.Directive,t.Comment=r.Comment,t.Script=r.Script,t.Style=r.Style,t.Tag=r.Tag,t.CDATA=r.CDATA,t.Doctype=r.Doctype},7915:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var i=r(9960),a=r(7790);o(r(7790),t);var c={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},s=function(){function e(e,t,r){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(r=t,t=c),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:c,this.elementCB=null!=r?r:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var r=this.options.xmlMode?i.ElementType.Tag:void 0,n=new a.Element(e,t,void 0,r);this.addNode(n),this.tagStack.push(n)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===i.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var r=new a.Text(e);this.addNode(r),this.lastNode=r}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===i.ElementType.Comment)this.lastNode.data+=e;else{var t=new a.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new a.Text(""),t=new a.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var r=new a.ProcessingInstruction(e,t);this.addNode(r)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],r=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),r&&(e.prev=r,r.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=s,t.default=s},7790:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.cloneNode=t.hasChildren=t.isDocument=t.isDirective=t.isComment=t.isText=t.isCDATA=t.isTag=t.Element=t.Document=t.CDATA=t.NodeWithChildren=t.ProcessingInstruction=t.Comment=t.Text=t.DataNode=t.Node=void 0;var a=r(9960),c=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),E(this,e)},e}();t.Node=c;var s=function(e){function t(t){var r=e.call(this)||this;return r.data=t,r}return o(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(c);t.DataNode=s;var l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Text,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(s);t.Text=l;var u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Comment,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(s);t.Comment=u;var d=function(e){function t(t,r){var n=e.call(this,r)||this;return n.name=t,n.type=a.ElementType.Directive,n}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(s);t.ProcessingInstruction=d;var p=function(e){function t(t){var r=e.call(this)||this;return r.children=t,r}return o(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(c);t.NodeWithChildren=p;var m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.CDATA,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(p);t.CDATA=m;var f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Root,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(p);t.Document=f;var h=function(e){function t(t,r,n,o){void 0===n&&(n=[]),void 0===o&&(o="script"===t?a.ElementType.Script:"style"===t?a.ElementType.Style:a.ElementType.Tag);var i=e.call(this,n)||this;return i.name=t,i.attribs=r,i.type=o,i}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var r,n;return{name:t,value:e.attribs[t],namespace:null===(r=e["x-attribsNamespace"])||void 0===r?void 0:r[t],prefix:null===(n=e["x-attribsPrefix"])||void 0===n?void 0:n[t]}}))},enumerable:!1,configurable:!0}),t}(p);function g(e){return(0,a.isTag)(e)}function b(e){return e.type===a.ElementType.CDATA}function y(e){return e.type===a.ElementType.Text}function v(e){return e.type===a.ElementType.Comment}function w(e){return e.type===a.ElementType.Directive}function k(e){return e.type===a.ElementType.Root}function E(e,t){var r;if(void 0===t&&(t=!1),y(e))r=new l(e.data);else if(v(e))r=new u(e.data);else if(g(e)){var n=t?C(e.children):[],o=new h(e.name,i({},e.attribs),n);n.forEach((function(e){return e.parent=o})),null!=e.namespace&&(o.namespace=e.namespace),e["x-attribsNamespace"]&&(o["x-attribsNamespace"]=i({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(o["x-attribsPrefix"]=i({},e["x-attribsPrefix"])),r=o}else if(b(e)){n=t?C(e.children):[];var a=new m(n);n.forEach((function(e){return e.parent=a})),r=a}else if(k(e)){n=t?C(e.children):[];var c=new f(n);n.forEach((function(e){return e.parent=c})),e["x-mode"]&&(c["x-mode"]=e["x-mode"]),r=c}else{if(!w(e))throw new Error("Not implemented yet: ".concat(e.type));var s=new d(e.name,e.data);null!=e["x-name"]&&(s["x-name"]=e["x-name"],s["x-publicId"]=e["x-publicId"],s["x-systemId"]=e["x-systemId"]),r=s}return r.startIndex=e.startIndex,r.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(r.sourceCodeLocation=e.sourceCodeLocation),r}function C(e){for(var t=e.map((function(e){return E(e,!0)})),r=1;r<t.length;r++)t[r].prev=t[r-1],t[r-1].next=t[r];return t}t.Element=h,t.isTag=g,t.isCDATA=b,t.isText=y,t.isComment=v,t.isDirective=w,t.isDocument=k,t.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},t.cloneNode=E},2991:e=>{"use strict";e.exports=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;var n,o,i;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(o=n;0!=o--;)if(!e(t[o],r[o]))return!1;return!0}if(t instanceof Map&&r instanceof Map){if(t.size!==r.size)return!1;for(o of t.entries())if(!r.has(o[0]))return!1;for(o of t.entries())if(!e(o[1],r.get(o[0])))return!1;return!0}if(t instanceof Set&&r instanceof Set){if(t.size!==r.size)return!1;for(o of t.entries())if(!r.has(o[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(r)){if((n=t.length)!=r.length)return!1;for(o=n;0!=o--;)if(t[o]!==r[o])return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(i=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(o=n;0!=o--;)if(!Object.prototype.hasOwnProperty.call(r,i[o]))return!1;for(o=n;0!=o--;){var a=i[o];if(!e(t[a],r[a]))return!1}return!0}return t!=t&&r!=r}},885:(e,t)=>{t.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussainBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"]},8276:e=>{var t="html",r="head",n="body",o=/<([a-zA-Z]+[0-9]?)/,i=/<head[^]*>/i,a=/<body[^]*>/i,c=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},s=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},l="object"==typeof window&&window.DOMParser;if("function"==typeof l){var u=new l;c=s=function(e,t){return t&&(e="<"+t+">"+e+"</"+t+">"),u.parseFromString(e,"text/html")}}if("object"==typeof document&&document.implementation){var d=document.implementation.createHTMLDocument();c=function(e,t){return t?(d.documentElement.querySelector(t).innerHTML=e,d):(d.documentElement.innerHTML=e,d)}}var p,m="object"==typeof document?document.createElement("template"):{};m.content&&(p=function(e){return m.innerHTML=e,m.content.childNodes}),e.exports=function(e){var l,u,d,m,f=e.match(o);switch(f&&f[1]&&(l=f[1].toLowerCase()),l){case t:return u=s(e),i.test(e)||(d=u.querySelector(r))&&d.parentNode.removeChild(d),a.test(e)||(d=u.querySelector(n))&&d.parentNode.removeChild(d),u.querySelectorAll(t);case r:case n:return m=(u=c(e)).querySelectorAll(l),a.test(e)&&i.test(e)?m[0].parentNode.childNodes:m;default:return p?p(e):(d=c(e,n).querySelector(n)).childNodes}}},4152:(e,t,r)=>{var n=r(8276),o=r(1507).formatDOM,i=/<(![a-zA-Z\s]+)>/;e.exports=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(""===e)return[];var t,r=e.match(i);return r&&r[1]&&(t=r[1]),o(n(e),null,t)}},1507:(e,t,r)=>{for(var n,o=r(7915),i=r(885).CASE_SENSITIVE_TAG_NAMES,a=o.Comment,c=o.Element,s=o.ProcessingInstruction,l=o.Text,u={},d=0,p=i.length;d<p;d++)n=i[d],u[n.toLowerCase()]=n;function m(e){for(var t,r={},n=0,o=e.length;n<o;n++)r[(t=e[n]).name]=t.value;return r}function f(e){return function(e){return u[e]}(e=e.toLowerCase())||e}t.formatAttributes=m,t.formatDOM=function e(t,r,n){r=r||null;for(var o=[],i=0,u=t.length;i<u;i++){var d,p=t[i];switch(p.nodeType){case 1:(d=new c(f(p.nodeName),m(p.attributes))).children=e(p.childNodes,d);break;case 3:d=new l(p.nodeValue);break;case 8:d=new a(p.nodeValue);break;default:continue}var h=o[i-1]||null;h&&(h.next=d),d.parent=r,d.prev=h,d.next=null,o.push(d)}return n&&((d=new s(n.substring(0,n.indexOf(" ")).toLowerCase(),n)).next=o[0]||null,d.parent=r,o.unshift(d),o[1]&&(o[1].prev=o[0])),o}},488:(e,t,r)=>{var n=r(3670),o=r(484),i=r(4152);i="function"==typeof i.default?i.default:i;var a={lowerCaseAttributeNames:!1};function c(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return""===e?[]:n(i(e,(t=t||{}).htmlparser2||a),t)}c.domToReact=n,c.htmlToDOM=i,c.attributesToProps=o,c.Element=r(7915).Element,e.exports=c,e.exports.default=c},484:(e,t,r)=>{var n=r(5726),o=r(4606);function i(e){return n.possibleStandardNames[e]}e.exports=function(e){var t,r,a,c,s,l={},u=(e=e||{}).type&&{reset:!0,submit:!0}[e.type];for(t in e)if(a=e[t],n.isCustomAttribute(t))l[t]=a;else if(c=i(r=t.toLowerCase()))switch(s=n.getPropertyInfo(c),"checked"!==c&&"value"!==c||u||(c=i("default"+r)),l[c]=a,s&&s.type){case n.BOOLEAN:l[c]=!0;break;case n.OVERLOADED_BOOLEAN:""===a&&(l[c]=!0)}else o.PRESERVE_CUSTOM_ATTRIBUTES&&(l[t]=a);return o.setStyleProp(e.style,l),l}},3670:(e,t,r)=>{var n=r(9196),o=r(484),i=r(4606),a=i.setStyleProp,c=i.canTextBeChildOfNode;function s(e){return i.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&i.isCustomComponent(e.name,e.attribs)}e.exports=function e(t,r){for(var i,l,u,d,p,m=(r=r||{}).library||n,f=m.cloneElement,h=m.createElement,g=m.isValidElement,b=[],y="function"==typeof r.replace,v=r.trim,w=0,k=t.length;w<k;w++)if(i=t[w],y&&g(u=r.replace(i)))k>1&&(u=f(u,{key:u.key||w})),b.push(u);else if("text"!==i.type){switch(d=i.attribs,s(i)?a(d.style,d):d&&(d=o(d)),p=null,i.type){case"script":case"style":i.children[0]&&(d.dangerouslySetInnerHTML={__html:i.children[0].data});break;case"tag":"textarea"===i.name&&i.children[0]?d.defaultValue=i.children[0].data:i.children&&i.children.length&&(p=e(i.children,r));break;default:continue}k>1&&(d.key=w),b.push(h(i.name,d,p))}else{if((l=!i.data.trim().length)&&i.parent&&!c(i.parent))continue;if(v&&l)continue;b.push(i.data)}return 1===b.length?b[0]:b}},4606:(e,t,r)=>{var n=r(9196),o=r(1476).default,i={reactCompat:!0},a=n.version.split(".")[0]>=16,c=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);e.exports={PRESERVE_CUSTOM_ATTRIBUTES:a,invertObject:function(e,t){if(!e||"object"!=typeof e)throw new TypeError("First argument must be an object");var r,n,o="function"==typeof t,i={},a={};for(r in e)n=e[r],o&&(i=t(r,n))&&2===i.length?a[i[0]]=i[1]:"string"==typeof n&&(a[n]=r);return a},isCustomComponent:function(e,t){if(-1===e.indexOf("-"))return t&&"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}},setStyleProp:function(e,t){if(null!=e)try{t.style=o(e,i)}catch(e){t.style={}}},canTextBeChildOfNode:function(e){return!c.has(e.name)},elementsWithNoTextChildren:c}},4578:()=>{},5482:()=>{},8559:()=>{},9794:()=>{},5848:()=>{},129:()=>{},8139:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,n=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,s=/^\s+|\s+$/g,l="";function u(e){return e?e.replace(s,l):l}e.exports=function(e,s){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];s=s||{};var d=1,p=1;function m(e){var t=e.match(r);t&&(d+=t.length);var n=e.lastIndexOf("\n");p=~n?e.length-n:p+e.length}function f(){var e={line:d,column:p};return function(t){return t.position=new h(e),v(),t}}function h(e){this.start=e,this.end={line:d,column:p},this.source=s.source}h.prototype.content=e;var g=[];function b(t){var r=new Error(s.source+":"+d+":"+p+": "+t);if(r.reason=t,r.filename=s.source,r.line=d,r.column=p,r.source=e,!s.silent)throw r;g.push(r)}function y(t){var r=t.exec(e);if(r){var n=r[0];return m(n),e=e.slice(n.length),r}}function v(){y(n)}function w(e){var t;for(e=e||[];t=k();)!1!==t&&e.push(t);return e}function k(){var t=f();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var r=2;l!=e.charAt(r)&&("*"!=e.charAt(r)||"/"!=e.charAt(r+1));)++r;if(r+=2,l===e.charAt(r-1))return b("End of comment missing");var n=e.slice(2,r-2);return p+=2,m(n),e=e.slice(r),p+=2,t({type:"comment",comment:n})}}function E(){var e=f(),r=y(o);if(r){if(k(),!y(i))return b("property missing ':'");var n=y(a),s=e({type:"declaration",property:u(r[0].replace(t,l)),value:n?u(n[0].replace(t,l)):l});return y(c),s}}return v(),function(){var e,t=[];for(w(t);e=E();)!1!==e&&(t.push(e),w(t));return t}()}},5726:(e,t,r)=>{"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function o(e,t,r,n,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}Object.defineProperty(t,"__esModule",{value:!0});var i={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach((function(e){i[e]=new o(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t,r,a=(r=2,function(e){if(Array.isArray(e))return e}(t=e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],_n=!0,a=!1;try{for(r=r.call(e);!(_n=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);_n=!0);}catch(e){a=!0,o=e}finally{try{_n||null==r.return||r.return()}finally{if(a)throw o}}return i}}(t,r)||function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=a[0],s=a[1];i[c]=new o(c,1,!1,s,null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){i[e]=new o(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){i[e]=new o(e,2,!1,e,null,!1,!1)})),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach((function(e){i[e]=new o(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){i[e]=new o(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){i[e]=new o(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){i[e]=new o(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){i[e]=new o(e,5,!1,e.toLowerCase(),null,!1,!1)}));var a=/[\-\:]([a-z])/g,c=function(e){return e[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach((function(e){var t=e.replace(a,c);i[t]=new o(t,1,!1,e,null,!1,!1)})),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach((function(e){var t=e.replace(a,c);i[t]=new o(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(a,c);i[t]=new o(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){i[e]=new o(e,1,!1,e.toLowerCase(),null,!1,!1)})),i.xlinkHref=new o("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){i[e]=new o(e,1,!1,e.toLowerCase(),null,!0,!0)}));var s=r(8229),l=s.CAMELCASE,u=s.SAME,d=s.possibleStandardNames,p=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),m=Object.keys(d).reduce((function(e,t){var r=d[t];return r===u?e[t]=t:r===l?e[t.toLowerCase()]=t:e[t]=r,e}),{});t.BOOLEAN=3,t.BOOLEANISH_STRING=2,t.NUMERIC=5,t.OVERLOADED_BOOLEAN=4,t.POSITIVE_NUMERIC=6,t.RESERVED=0,t.STRING=1,t.getPropertyInfo=function(e){return i.hasOwnProperty(e)?i[e]:null},t.isCustomAttribute=p,t.possibleStandardNames=m},8229:(e,t)=>{t.SAME=0,t.CAMELCASE=1,t.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},1476:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0;var o=n(r(7848)),i=r(6678);t.default=function(e,t){var r={};return e&&"string"==typeof e?((0,o.default)(e,(function(e,n){e&&n&&(r[(0,i.camelCase)(e,t)]=n)})),r):r}},6678:(e,t)=>{"use strict";t.__esModule=!0,t.camelCase=void 0;var r=/^--[a-zA-Z0-9-]+$/,n=/-([a-z])/g,o=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,c=function(e,t){return t.toUpperCase()},s=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||o.test(e)||r.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(a,s):e.replace(i,s)).replace(n,c))}},7848:(e,t,r)=>{var n=r(8139);e.exports=function(e,t){var r,o=null;if(!e||"string"!=typeof e)return o;for(var i,a,c=n(e),s="function"==typeof t,l=0,u=c.length;l<u;l++)i=(r=c[l]).property,a=r.value,s?t(i,a,r):a&&(o||(o={}),o[i]=a);return o}},4697:(e,t,r)=>{"use strict";r.d(t,{Nr:()=>c,y1:()=>o});var n=r(9196);function o(e,t,r){var o=this,i=(0,n.useRef)(null),a=(0,n.useRef)(0),c=(0,n.useRef)(null),s=(0,n.useRef)([]),l=(0,n.useRef)(),u=(0,n.useRef)(),d=(0,n.useRef)(e),p=(0,n.useRef)(!0);(0,n.useEffect)((function(){d.current=e}),[e]);var m=!t&&0!==t&&"undefined"!=typeof window;if("function"!=typeof e)throw new TypeError("Expected a function");t=+t||0;var f=!!(r=r||{}).leading,h=!("trailing"in r)||!!r.trailing,g="maxWait"in r,b=g?Math.max(+r.maxWait||0,t):null;(0,n.useEffect)((function(){return p.current=!0,function(){p.current=!1}}),[]);var y=(0,n.useMemo)((function(){var e=function(e){var t=s.current,r=l.current;return s.current=l.current=null,a.current=e,u.current=d.current.apply(r,t)},r=function(e,t){m&&cancelAnimationFrame(c.current),c.current=m?requestAnimationFrame(e):setTimeout(e,t)},n=function(e){if(!p.current)return!1;var r=e-i.current;return!i.current||r>=t||r<0||g&&e-a.current>=b},y=function(t){return c.current=null,h&&s.current?e(t):(s.current=l.current=null,u.current)},v=function e(){var o=Date.now();if(n(o))return y(o);if(p.current){var c=t-(o-i.current),s=g?Math.min(c,b-(o-a.current)):c;r(e,s)}},w=function(){var d=Date.now(),m=n(d);if(s.current=[].slice.call(arguments),l.current=o,i.current=d,m){if(!c.current&&p.current)return a.current=i.current,r(v,t),f?e(i.current):u.current;if(g)return r(v,t),e(i.current)}return c.current||r(v,t),u.current};return w.cancel=function(){c.current&&(m?cancelAnimationFrame(c.current):clearTimeout(c.current)),a.current=0,s.current=i.current=l.current=c.current=null},w.isPending=function(){return!!c.current},w.flush=function(){return c.current?y(Date.now()):u.current},w}),[f,g,t,b,h,m]);return y}function i(e,t){return e===t}function a(e){return"function"==typeof e?function(){return e}:e}function c(e,t,r){var c,s,l=r&&r.equalityFn||i,u=(c=(0,n.useState)(a(e)),s=c[1],[c[0],(0,n.useCallback)((function(e){return s(a(e))}),[])]),d=u[0],p=u[1],m=o((0,n.useCallback)((function(e){return p(e)}),[p]),t,r),f=(0,n.useRef)(e);return l(f.current,e)||(m(e),f.current=e),[d,m]}},2444:(e,t,r)=>{"use strict";r.d(t,{T:()=>a});var n=r(4184),o=r.n(n);function i(e){return"appear"===e?"top":"left"}function a(e){if("loading"===e.type)return o()("components-animate__loading");const{type:t,origin:r=i(t)}=e;if("appear"===t){const[e,t="center"]=r.split(" ");return o()("components-animate__appear",{["is-from-"+t]:"center"!==t,["is-from-"+e]:"middle"!==e})}return"slide-in"===t?o()("components-animate__slide-in","is-from-"+r):void 0}},9685:(e,t,r)=>{"use strict";r.d(t,{Z:()=>f});var n=r(7462),o=r(9307),i=r(4184),a=r.n(i),c=r(2819),s=r(7180),l=r.n(s),u=r(9178),d=r(7392),p=r(7593);const m=["onMouseDown","onClick"],f=(0,o.forwardRef)((function(e,t){const{href:r,target:i,isSmall:s,isPressed:f,isBusy:h,isDestructive:g,className:b,disabled:y,icon:v,iconPosition:w="left",iconSize:k,showTooltip:E,tooltipPosition:C,shortcut:_,label:x,children:S,text:T,variant:O,__experimentalIsFocusable:R,describedBy:P,...A}=function({isDefault:e,isPrimary:t,isSecondary:r,isTertiary:n,isLink:o,variant:i,...a}){let c=i;var s,u,d,p,m;return t&&(null!==(s=c)&&void 0!==s||(c="primary")),n&&(null!==(u=c)&&void 0!==u||(c="tertiary")),r&&(null!==(d=c)&&void 0!==d||(c="secondary")),e&&(l()("Button isDefault prop",{since:"5.4",alternative:'variant="secondary"'}),null!==(p=c)&&void 0!==p||(c="secondary")),o&&(null!==(m=c)&&void 0!==m||(c="link")),{...a,variant:c}}(e),M=a()("components-button",b,{"is-secondary":"secondary"===O,"is-primary":"primary"===O,"is-small":s,"is-tertiary":"tertiary"===O,"is-pressed":f,"is-busy":h,"is-link":"link"===O,"is-destructive":g,"has-text":!!v&&!!S,"has-icon":!!v}),N=y&&!R,L=void 0===r||N?"button":"a",B="a"===L?{href:r,target:i}:{type:"button",disabled:N,"aria-pressed":f};if(y&&R){B["aria-disabled"]=!0;for(const e of m)A[e]=e=>{e.stopPropagation(),e.preventDefault()}}const I=!N&&(E&&x||_||!!x&&(!S||(0,c.isArray)(S)&&!S.length)&&!1!==E),F=P?(0,c.uniqueId)():null,j=A["aria-describedby"]||F,D=(0,o.createElement)(L,(0,n.Z)({},B,A,{className:M,"aria-label":A["aria-label"]||x,"aria-describedby":j,ref:t}),v&&"left"===w&&(0,o.createElement)(d.Z,{icon:v,size:k}),T&&(0,o.createElement)(o.Fragment,null,T),v&&"right"===w&&(0,o.createElement)(d.Z,{icon:v,size:k}),S);return I?(0,o.createElement)(o.Fragment,null,(0,o.createElement)(u.Z,{text:P||x,shortcut:_,position:C},D),P&&(0,o.createElement)(p.Z,null,(0,o.createElement)("span",{id:F},P))):(0,o.createElement)(o.Fragment,null,D,P&&(0,o.createElement)(p.Z,null,(0,o.createElement)("span",{id:F},P)))}))},6658:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(7462),o=r(9307);const i=function({icon:e,className:t,...r}){const i=["dashicon","dashicons","dashicons-"+e,t].filter(Boolean).join(" ");return(0,o.createElement)("span",(0,n.Z)({className:i},r))}},7392:(e,t,r)=>{"use strict";r.d(t,{Z:()=>c});var n=r(7462),o=r(9307),i=r(444),a=r(6658);const c=function({icon:e=null,size:t=24,...r}){if("string"==typeof e)return(0,o.createElement)(a.Z,(0,n.Z)({icon:e},r));if((0,o.isValidElement)(e)&&a.Z===e.type)return(0,o.cloneElement)(e,{...r});if("function"==typeof e)return e.prototype instanceof o.Component?(0,o.createElement)(e,{size:t,...r}):e({size:t,...r});if(e&&("svg"===e.type||e.type===i.SVG)){const n={width:t,height:t,...e.props,...r};return(0,o.createElement)(i.SVG,n)}return(0,o.isValidElement)(e)?(0,o.cloneElement)(e,{size:t,...r}):e}},4638:(e,t,r)=>{"use strict";r.d(t,{Z:()=>_});var n=r(7462),o=r(9307),i=r(4184),a=r.n(i),c=r(5904),s=r(7180),l=r.n(s),u=r(4333),d=r(4787),p=r(4103),m=r(9685),f=r(9753),h=r(1515),g=r(6580),b=r(2444);const y="Popover";function v(e,t){const{paddingTop:r,paddingBottom:n,paddingLeft:o,paddingRight:i}=(a=t).ownerDocument.defaultView.getComputedStyle(a);var a;const c=r?parseInt(r,10):0,s=n?parseInt(n,10):0,l=o?parseInt(o,10):0,u=i?parseInt(i,10):0;return{x:e.left+l,y:e.top+c,width:e.width-l-u,height:e.height-c-s,left:e.left+l,right:e.right-u,top:e.top+c,bottom:e.bottom-s}}function w(e,t,r){r?e.getAttribute(t)!==r&&e.setAttribute(t,r):e.hasAttribute(t)&&e.removeAttribute(t)}function k(e,t,r=""){e.style[t]!==r&&(e.style[t]=r)}function E(e,t,r){r?e.classList.contains(t)||e.classList.add(t):e.classList.contains(t)&&e.classList.remove(t)}const C=(0,o.forwardRef)((({headerTitle:e,onClose:t,children:r,className:i,noArrow:s=!0,isAlternate:C,position:_="bottom right",range:x,focusOnMount:S="firstElement",anchorRef:T,shouldAnchorIncludePadding:O,anchorRect:R,getAnchorRect:P,expandOnMobile:A,animate:M=!0,onClickOutside:N,onFocusOutside:L,__unstableStickyBoundaryElement:B,__unstableSlotName:I=y,__unstableObserveElement:F,__unstableBoundaryParent:j,__unstableForcePosition:D,__unstableForceXAlignment:H,...V},z)=>{const Z=(0,o.useRef)(null),W=(0,o.useRef)(null),U=(0,o.useRef)(),q=(0,u.useViewportMatch)("medium","<"),[$,G]=(0,o.useState)(),Y=(0,h.Z)(I),J=A&&q,[X,K]=(0,u.useResizeObserver)();s=J||s,(0,o.useLayoutEffect)((()=>{if(J)return E(U.current,"is-without-arrow",s),E(U.current,"is-alternate",C),w(U.current,"data-x-axis"),w(U.current,"data-y-axis"),k(U.current,"top"),k(U.current,"left"),k(W.current,"maxHeight"),void k(W.current,"maxWidth");const e=()=>{if(!U.current||!W.current)return;let e=function(e,t,r,n=!1,o,i){if(t)return t;if(r){if(!e.current)return;const t=r(e.current);return(0,p.cS)(t,t.ownerDocument||e.current.ownerDocument,i)}if(!1!==n){if(!(n&&window.Range&&window.Element&&window.DOMRect))return;if("function"==typeof(null==n?void 0:n.cloneRange))return(0,p.cS)((0,c.getRectangleFromRange)(n),n.endContainer.ownerDocument,i);if("function"==typeof(null==n?void 0:n.getBoundingClientRect)){const e=(0,p.cS)(n.getBoundingClientRect(),n.ownerDocument,i);return o?e:v(e,n)}const{top:e,bottom:t}=n,r=e.getBoundingClientRect(),a=t.getBoundingClientRect(),s=(0,p.cS)(new window.DOMRect(r.left,r.top,r.width,a.bottom-r.top),e.ownerDocument,i);return o?s:v(s,n)}if(!e.current)return;const{parentNode:a}=e.current,s=a.getBoundingClientRect();return o?s:v(s,a)}(Z,R,P,T,O,U.current);if(!e)return;const{offsetParent:t,ownerDocument:r}=U.current;let n,o=0;if(t&&t!==r.body){const r=t.getBoundingClientRect();o=r.top,e=new window.DOMRect(e.left-r.left,e.top-r.top,e.width,e.height)}var i;j&&(n=null===(i=U.current.closest(".popover-slot"))||void 0===i?void 0:i.parentNode);const a=K.height?K:W.current.getBoundingClientRect(),{popoverTop:l,popoverLeft:u,xAxis:d,yAxis:m,contentHeight:f,contentWidth:h}=(0,p.sw)(e,a,_,B,U.current,o,n,D,H);"number"==typeof l&&"number"==typeof u&&(k(U.current,"top",l+"px"),k(U.current,"left",u+"px")),E(U.current,"is-without-arrow",s||"center"===d&&"middle"===m),E(U.current,"is-alternate",C),w(U.current,"data-x-axis",d),w(U.current,"data-y-axis",m),k(W.current,"maxHeight","number"==typeof f?f+"px":""),k(W.current,"maxWidth","number"==typeof h?h+"px":""),G(({left:"right",right:"left"}[d]||"center")+" "+({top:"bottom",bottom:"top"}[m]||"middle"))};e();const{ownerDocument:t}=U.current,{defaultView:r}=t,n=r.setInterval(e,500);let o;const i=()=>{r.cancelAnimationFrame(o),o=r.requestAnimationFrame(e)};r.addEventListener("click",i),r.addEventListener("resize",e),r.addEventListener("scroll",e,!0);const a=function(e){if(e)return e.endContainer?e.endContainer.ownerDocument:e.top?e.top.ownerDocument:e.ownerDocument}(T);let l;return a&&a!==t&&(a.defaultView.addEventListener("resize",e),a.defaultView.addEventListener("scroll",e,!0)),F&&(l=new r.MutationObserver(e),l.observe(F,{attributes:!0})),()=>{r.clearInterval(n),r.removeEventListener("resize",e),r.removeEventListener("scroll",e,!0),r.removeEventListener("click",i),r.cancelAnimationFrame(o),a&&a!==t&&(a.defaultView.removeEventListener("resize",e),a.defaultView.removeEventListener("scroll",e,!0)),l&&l.disconnect()}}),[J,R,P,T,O,_,K,B,F,j]);const Q=(e,r)=>{if("focus-outside"===e&&L)L(r);else if("focus-outside"===e&&N){const e=new window.MouseEvent("click");Object.defineProperty(e,"target",{get:()=>r.relatedTarget}),l()("Popover onClickOutside prop",{since:"5.3",alternative:"onFocusOutside"}),N(e)}else t&&t()},[ee,te]=(0,u.__experimentalUseDialog)({focusOnMount:S,__unstableOnClose:Q,onClose:Q}),re=(0,u.useMergeRefs)([U,ee,z]),ne=Boolean(M&&$)&&(0,b.T)({type:"appear",origin:$});let oe=(0,o.createElement)("div",(0,n.Z)({className:a()("components-popover",i,ne,{"is-expanded":J,"is-without-arrow":s,"is-alternate":C})},V,{ref:re},te,{tabIndex:"-1"}),J&&(0,o.createElement)(f.Z,null),J&&(0,o.createElement)("div",{className:"components-popover__header"},(0,o.createElement)("span",{className:"components-popover__header-title"},e),(0,o.createElement)(m.Z,{className:"components-popover__close",icon:d.Z,onClick:t})),(0,o.createElement)("div",{ref:W,className:"components-popover__content"},(0,o.createElement)("div",{style:{position:"relative"}},X,r)));return Y.ref&&(oe=(0,o.createElement)(g.de,{name:I},oe)),T||R?oe:(0,o.createElement)("span",{ref:Z},oe)}));C.Slot=(0,o.forwardRef)((function({name:e=y},t){return(0,o.createElement)(g.g7,{bubblesVirtually:!0,name:e,className:"popover-slot",ref:t})}));const _=C},4103:(e,t,r)=>{"use strict";r.d(t,{cS:()=>a,sw:()=>i});var n=r(5736);const o=10;function i(e,t,r="top",i,a,c,s,l,u){const[d,p="center",m]=r.split(" "),f=function(e,t,r,n,i,a,c,s){const{height:l}=t;if(i){const t=i.getBoundingClientRect().top+l-c;if(e.top<=t)return{yAxis:r,popoverTop:Math.min(e.bottom,t)}}let u=e.top+e.height/2;"bottom"===n?u=e.bottom:"top"===n&&(u=e.top);const d={popoverTop:u,contentHeight:(u-l/2>0?l/2:u)+(u+l/2>window.innerHeight?window.innerHeight-u:l/2)},p={popoverTop:e.top,contentHeight:e.top-o-l>0?l:e.top-o},m={popoverTop:e.bottom,contentHeight:e.bottom+o+l>window.innerHeight?window.innerHeight-o-e.bottom:l};let f,h=r,g=null;if(!i&&!s)if("middle"===r&&d.contentHeight===l)h="middle";else if("top"===r&&p.contentHeight===l)h="top";else if("bottom"===r&&m.contentHeight===l)h="bottom";else{h=p.contentHeight>m.contentHeight?"top":"bottom";const e="top"===h?p.contentHeight:m.contentHeight;g=e!==l?e:null}return f="middle"===h?d.popoverTop:"top"===h?p.popoverTop:m.popoverTop,{yAxis:h,popoverTop:f,contentHeight:g}}(e,t,d,m,i,0,c,l),h=function(e,t,r,o,i,a,c,s,l){const{width:u}=t;"left"===r&&(0,n.isRTL)()?r="right":"right"===r&&(0,n.isRTL)()&&(r="left"),"left"===o&&(0,n.isRTL)()?o="right":"right"===o&&(0,n.isRTL)()&&(o="left");const d=Math.round(e.left+e.width/2),p={popoverLeft:d,contentWidth:(d-u/2>0?u/2:d)+(d+u/2>window.innerWidth?window.innerWidth-d:u/2)};let m=e.left;"right"===o?m=e.right:"middle"===a||l||(m=d);let f=e.right;"left"===o?f=e.left:"middle"===a||l||(f=d);const h={popoverLeft:m,contentWidth:m-u>0?u:m},g={popoverLeft:f,contentWidth:f+u>window.innerWidth?window.innerWidth-f:u};let b,y=r,v=null;if(!i&&!s)if("center"===r&&p.contentWidth===u)y="center";else if("left"===r&&h.contentWidth===u)y="left";else if("right"===r&&g.contentWidth===u)y="right";else{y=h.contentWidth>g.contentWidth?"left":"right";const e="left"===y?h.contentWidth:g.contentWidth;u>window.innerWidth&&(v=window.innerWidth),e!==u&&(y="center",p.popoverLeft=window.innerWidth/2)}if(b="center"===y?p.popoverLeft:"left"===y?h.popoverLeft:g.popoverLeft,c){const e=c.getBoundingClientRect();b=Math.min(b,e.right-u),(0,n.isRTL)()||(b=Math.max(b,0))}return{xAxis:y,popoverLeft:b,contentWidth:v}}(e,t,p,m,i,f.yAxis,s,l,u);return{...h,...f}}function a(e,t,r){const{defaultView:n}=t,{frameElement:o}=n;if(!o||t===r.ownerDocument)return e;const i=o.getBoundingClientRect();return new n.DOMRect(e.left+i.left,e.top+i.top,e.width,e.height)}},9753:(e,t,r)=>{"use strict";r.d(t,{Z:()=>c});var n=r(9307);let o=0;function i(e){const t=document.scrollingElement||document.body;e&&(o=t.scrollTop);const r=e?"add":"remove";t.classList[r]("lockscroll"),document.documentElement.classList[r]("lockscroll"),e||(t.scrollTop=o)}let a=0;function c(){return(0,n.useEffect)((()=>(0===a&&i(!0),++a,()=>{1===a&&i(!1),--a})),[]),null}},3586:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(9307),o=r(2819);const i=function({shortcut:e,className:t}){if(!e)return null;let r,i;return(0,o.isString)(e)&&(r=e),(0,o.isObject)(e)&&(r=e.display,i=e.ariaLabel),(0,n.createElement)("span",{className:t,"aria-label":i},r)}},4160:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(9307),o=r(1515);function i(){const[,e]=(0,n.useState)({}),t=(0,n.useRef)(!0);return(0,n.useEffect)((()=>()=>{t.current=!1}),[]),()=>{t.current&&e({})}}function a({name:e,children:t}){const r=(0,o.Z)(e),a=(0,n.useRef)({rerender:i()});return(0,n.useEffect)((()=>(r.registerFill(a),()=>{r.unregisterFill(a)})),[r.registerFill,r.unregisterFill]),r.ref&&r.ref.current?("function"==typeof t&&(t=t(r.fillProps)),(0,n.createPortal)(t,r.ref.current)):null}},159:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(9307);r(2560);const o=(0,n.createContext)({slots:{},fills:{},registerSlot:()=>{"undefined"!=typeof process&&process.env},updateSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{}})},9934:(e,t,r)=>{"use strict";r.d(t,{Z:()=>c});var n=r(7462),o=r(9307),i=r(4333),a=r(159);const c=(0,o.forwardRef)((function({name:e,fillProps:t={},as:r="div",...c},s){const l=(0,o.useContext)(a.Z),u=(0,o.useRef)();return(0,o.useLayoutEffect)((()=>(l.registerSlot(e,u,t),()=>{l.unregisterSlot(e,u)})),[l.registerSlot,l.unregisterSlot,e]),(0,o.useLayoutEffect)((()=>{l.updateSlot(e,t)})),(0,o.createElement)(r,(0,n.Z)({ref:(0,i.useMergeRefs)([s,u])},c))}))},1515:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(9307),o=r(159);function i(e){const t=(0,n.useContext)(o.Z),r=t.slots[e]||{},i=t.fills[e],a=(0,n.useMemo)((()=>i||[]),[i]);return{...r,updateSlot:(0,n.useCallback)((r=>{t.updateSlot(e,r)}),[e,t.updateSlot]),unregisterSlot:(0,n.useCallback)((r=>{t.unregisterSlot(e,r)}),[e,t.unregisterSlot]),fills:a,registerFill:(0,n.useCallback)((r=>{t.registerFill(e,r)}),[e,t.registerFill]),unregisterFill:(0,n.useCallback)((r=>{t.unregisterFill(e,r)}),[e,t.unregisterFill])}}},566:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const n=(0,r(9307).createContext)({registerSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{},getSlot:()=>{},getFills:()=>{},subscribe:()=>{}})},8198:(e,t,r)=>{"use strict";r.d(t,{Z:()=>l});var n=r(7462),o=r(9307),i=r(2819),a=r(566),c=r(2009);function s({name:e,children:t,registerFill:r,unregisterFill:n}){const a=(0,c.Z)(e),s=(0,o.useRef)({name:e,children:t});return(0,o.useLayoutEffect)((()=>(r(e,s.current),()=>n(e,s.current))),[]),(0,o.useLayoutEffect)((()=>{s.current.children=t,a&&a.forceUpdate()}),[t]),(0,o.useLayoutEffect)((()=>{e!==s.current.name&&(n(s.current.name,s.current),s.current.name=e,r(e,s.current))}),[e]),a&&a.node?((0,i.isFunction)(t)&&(t=t(a.props.fillProps)),(0,o.createPortal)(t,a.node)):null}const l=e=>(0,o.createElement)(a.Z.Consumer,null,(({registerFill:t,unregisterFill:r})=>(0,o.createElement)(s,(0,n.Z)({},e,{registerFill:t,unregisterFill:r}))))},6580:(e,t,r)=>{"use strict";r.d(t,{de:()=>l,g7:()=>u});var n=r(7462),o=r(9307),i=r(8198),a=r(8612),c=r(4160),s=r(9934);function l(e){return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(i.Z,e),(0,o.createElement)(c.Z,e))}const u=(0,o.forwardRef)((({bubblesVirtually:e,...t},r)=>e?(0,o.createElement)(s.Z,(0,n.Z)({},t,{ref:r})):(0,o.createElement)(a.Z,t)))},8612:(e,t,r)=>{"use strict";r.d(t,{Z:()=>s});var n=r(7462),o=r(9307),i=r(2819),a=r(566);class c extends o.Component{constructor(){super(...arguments),this.isUnmounted=!1,this.bindNode=this.bindNode.bind(this)}componentDidMount(){const{registerSlot:e}=this.props;e(this.props.name,this)}componentWillUnmount(){const{unregisterSlot:e}=this.props;this.isUnmounted=!0,e(this.props.name,this)}componentDidUpdate(e){const{name:t,unregisterSlot:r,registerSlot:n}=this.props;e.name!==t&&(r(e.name),n(t,this))}bindNode(e){this.node=e}forceUpdate(){this.isUnmounted||super.forceUpdate()}render(){const{children:e,name:t,fillProps:r={},getFills:n}=this.props,a=(0,i.map)(n(t,this),(e=>{const t=(0,i.isFunction)(e.children)?e.children(r):e.children;return o.Children.map(t,((e,t)=>{if(!e||(0,i.isString)(e))return e;const r=e.key||t;return(0,o.cloneElement)(e,{key:r})}))})).filter((0,i.negate)(o.isEmptyElement));return(0,o.createElement)(o.Fragment,null,(0,i.isFunction)(e)?e(a):a)}}const s=e=>(0,o.createElement)(a.Z.Consumer,null,(({registerSlot:t,unregisterSlot:r,getFills:i})=>(0,o.createElement)(c,(0,n.Z)({},e,{registerSlot:t,unregisterSlot:r,getFills:i}))))},2009:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(9307),o=r(566);const i=e=>{const{getSlot:t,subscribe:r}=(0,n.useContext)(o.Z),[i,a]=(0,n.useState)(t(e));return(0,n.useEffect)((()=>(a(t(e)),r((()=>{a(t(e))})))),[e]),i}},9178:(e,t,r)=>{"use strict";r.d(t,{Z:()=>p});var n=r(9307),o=r(2819),i=r(4333),a=r(4638),c=r(3586);const s=(0,n.createElement)("div",{className:"event-catcher"}),l=({eventHandlers:e,child:t,childrenWithPopover:r})=>(0,n.cloneElement)((0,n.createElement)("span",{className:"disabled-element-wrapper"},(0,n.cloneElement)(s,e),(0,n.cloneElement)(t,{children:r}),","),e),u=({child:e,eventHandlers:t,childrenWithPopover:r})=>(0,n.cloneElement)(e,{...t,children:r}),d=(e,t,r)=>{if(1!==n.Children.count(e))return;const o=n.Children.only(e);"function"==typeof o.props[t]&&o.props[t](r)},p=function({children:e,position:t,text:r,shortcut:s}){const[p,m]=(0,n.useState)(!1),[f,h]=(0,n.useState)(!1),g=(0,i.useDebounce)(h,700),b=t=>{d(e,"onMouseDown",t),document.addEventListener("mouseup",w),m(!0)},y=t=>{d(e,"onMouseUp",t),document.removeEventListener("mouseup",w),m(!1)},v=e=>"mouseUp"===e?y:"mouseDown"===e?b:void 0,w=v("mouseUp"),k=(t,r)=>n=>{if(d(e,t,n),n.currentTarget.disabled)return;if("focus"===n.type&&p)return;g.cancel();const i=(0,o.includes)(["focus","mouseenter"],n.type);i!==f&&(r?g(i):h(i))},E=()=>{g.cancel(),document.removeEventListener("mouseup",w)};if((0,n.useEffect)((()=>E),[]),1!==n.Children.count(e))return e;const C={onMouseEnter:k("onMouseEnter",!0),onMouseLeave:k("onMouseLeave"),onClick:k("onClick"),onFocus:k("onFocus"),onBlur:k("onBlur"),onMouseDown:v("mouseDown")},_=n.Children.only(e),{children:x,disabled:S}=_.props,T=S?l:u,O=(({grandchildren:e,isOver:t,position:r,text:o,shortcut:i})=>(0,n.concatChildren)(e,t&&(0,n.createElement)(a.Z,{focusOnMount:!1,position:r,className:"components-tooltip","aria-hidden":"true",animate:!1,noArrow:!0},o,(0,n.createElement)(c.Z,{className:"components-tooltip__shortcut",shortcut:i}))))({grandchildren:x,isOver:f,position:t,text:r,shortcut:s});return T({child:_,eventHandlers:C,childrenWithPopover:O})}},7593:(e,t,r)=>{"use strict";r.d(t,{Z:()=>c});var n=r(4184),o=r.n(n),i=r(9307),a=r(2004);const c=(0,i.forwardRef)((function({as:e="div",className:t,...r},n){return(0,a.k)({as:e,className:o()("components-visually-hidden",t),...r,ref:n})}))},2004:(e,t,r)=>{"use strict";r.d(t,{k:()=>o});var n=r(9307);function o({as:e="div",...t}){return"function"==typeof t.children?t.children(t):(0,n.createElement)(e,t)}},4787:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(9307),o=r(444);const i=(0,n.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,n.createElement)(o.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}))},9196:e=>{"use strict";e.exports=window.React},2819:e=>{"use strict";e.exports=window.lodash},3554:e=>{"use strict";e.exports=window.wc.blocksCheckout},711:e=>{"use strict";e.exports=window.wc.blocksComponents},4293:e=>{"use strict";e.exports=window.wc.priceFormat},4801:e=>{"use strict";e.exports=window.wc.wcBlocksData},4613:e=>{"use strict";e.exports=window.wc.wcBlocksRegistry},4617:e=>{"use strict";e.exports=window.wc.wcSettings},5158:e=>{"use strict";e.exports=window.wp.a11y},987:e=>{"use strict";e.exports=window.wp.autop},4333:e=>{"use strict";e.exports=window.wp.compose},9818:e=>{"use strict";e.exports=window.wp.data},7180:e=>{"use strict";e.exports=window.wp.deprecated},5904:e=>{"use strict";e.exports=window.wp.dom},9307:e=>{"use strict";e.exports=window.wp.element},2694:e=>{"use strict";e.exports=window.wp.hooks},2629:e=>{"use strict";e.exports=window.wp.htmlEntities},5736:e=>{"use strict";e.exports=window.wp.i18n},9127:e=>{"use strict";e.exports=window.wp.isShallowEqual},9630:e=>{"use strict";e.exports=window.wp.keycodes},444:e=>{"use strict";e.exports=window.wp.primitives},2289:e=>{"use strict";e.exports=window.wp.styleEngine},6483:e=>{"use strict";e.exports=window.wp.url},2560:e=>{"use strict";e.exports=window.wp.warning},5266:e=>{"use strict";e.exports=window.wp.wordcount},7462:(e,t,r)=>{"use strict";function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},n.apply(this,arguments)}r.d(t,{Z:()=>n})}},n={};function o(e){var t=n[e];if(void 0!==t)return t.exports;var i=n[e]={exports:{}};return r[e].call(i.exports,i,i.exports,o),i.exports}o.m=r,o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((t,r)=>(o.f[r](e,t),t)),[])),o.u=e=>({262:"mini-cart-contents-block/title-label",458:"mini-cart-contents-block/checkout-button",833:"mini-cart-contents-block/filled-cart",1114:"mini-cart-contents-block/title-items-counter",1959:"mini-cart-contents-block/cart-button",3271:"mini-cart-contents-block/title",4097:"mini-cart-contents-block/products-table",6567:"mini-cart-contents-block/shopping-button",6575:"mini-cart-contents-block/items",8513:"mini-cart-contents-block/empty-cart",9007:"mini-cart-contents-block/footer"}[e]+"-frontend.js?ver="+{262:"47f8025a9016364e3026",458:"dd72cf9ccb8939df2908",833:"6298b5663ffb465c60c8",1114:"f60e283429ce711c688f",1959:"c079d3683da41aeeb6e2",3271:"c712f33ea4d205931ca2",4097:"e3c581f618b0497bc39e",6567:"551d57be83a735943878",6575:"62c3a20f2ab7d3105591",8513:"c242b71e9a7a89c7596d",9007:"54834c124c60267d1f77"}[e]),o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="webpackWcBlocksJsonp:",o.l=(r,n,i,a)=>{if(e[r])e[r].push(n);else{var c,s;if(void 0!==i)for(var l=document.getElementsByTagName("script"),u=0;u<l.length;u++){var d=l[u];if(d.getAttribute("src")==r||d.getAttribute("data-webpack")==t+i){c=d;break}}c||(s=!0,(c=document.createElement("script")).charset="utf-8",c.timeout=120,o.nc&&c.setAttribute("nonce",o.nc),c.setAttribute("data-webpack",t+i),c.src=r),e[r]=[n];var p=(t,n)=>{c.onerror=c.onload=null,clearTimeout(m);var o=e[r];if(delete e[r],c.parentNode&&c.parentNode.removeChild(c),o&&o.forEach((e=>e(n))),t)return t(n)},m=setTimeout(p.bind(null,void 0,{type:"timeout",target:c}),12e4);c.onerror=p.bind(null,c.onerror),c.onload=p.bind(null,c.onload),s&&document.head.appendChild(c)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;o.g.importScripts&&(e=o.g.location+"");var t=o.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var n=r.length-1;n>-1&&!e;)e=r[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e})(),(()=>{var e={1735:0};o.f.j=(t,r)=>{var n=o.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else{var i=new Promise(((r,o)=>n=e[t]=[r,o]));r.push(n[2]=i);var a=o.p+o.u(t),c=new Error;o.l(a,(r=>{if(o.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var i=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;c.message="Loading chunk "+t+" failed.\n("+i+": "+a+")",c.name="ChunkLoadError",c.type=i,c.request=a,n[1](c)}}),"chunk-"+t,t)}};var t=(t,r)=>{var n,i,[a,c,s]=r,l=0;if(a.some((t=>0!==e[t]))){for(n in c)o.o(c,n)&&(o.m[n]=c[n]);s&&s(o)}for(t&&t(r);l<a.length;l++)i=a[l],o.o(e,i)&&e[i]&&e[i][0](),e[i]=0},r=self.webpackChunkwebpackWcBlocksJsonp=self.webpackChunkwebpackWcBlocksJsonp||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),(()=>{"use strict";var e=o(9196),t=o(9307);function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var n=o(5736),i=o(5271);const a=({imageUrl:t=`${i.td}/block-error.svg`,header:r=(0,n.__)("Oops!","woocommerce"),text:o=(0,n.__)("There was an error loading the content.","woocommerce"),errorMessage:a,errorMessagePrefix:c=(0,n.__)("Error:","woocommerce"),button:s,showErrorBlock:l=!0})=>l?(0,e.createElement)("div",{className:"wc-block-error wc-block-components-error"},t&&(0,e.createElement)("img",{className:"wc-block-error__image wc-block-components-error__image",src:t,alt:""}),(0,e.createElement)("div",{className:"wc-block-error__content wc-block-components-error__content"},r&&(0,e.createElement)("p",{className:"wc-block-error__header wc-block-components-error__header"},r),o&&(0,e.createElement)("p",{className:"wc-block-error__text wc-block-components-error__text"},o),a&&(0,e.createElement)("p",{className:"wc-block-error__message wc-block-components-error__message"},c?c+" ":"",a),s&&(0,e.createElement)("p",{className:"wc-block-error__button wc-block-components-error__button"},s))):null;o(4578);class c extends t.Component{constructor(...e){var t,n,o;super(...e),t=this,o={errorMessage:"",hasError:!1},(n=function(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===r(t)?t:String(t)}(n="state"))in t?Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[n]=o}static getDerivedStateFromError(t){return void 0!==t.statusText&&void 0!==t.status?{errorMessage:(0,e.createElement)(e.Fragment,null,(0,e.createElement)("strong",null,t.status),": ",t.statusText),hasError:!0}:{errorMessage:t.message,hasError:!0}}render(){const{header:t,imageUrl:r,showErrorMessage:n=!0,showErrorBlock:o=!0,text:i,errorMessagePrefix:c,renderError:s,button:l}=this.props,{errorMessage:u,hasError:d}=this.state;return d?"function"==typeof s?s({errorMessage:u}):(0,e.createElement)(a,{showErrorBlock:o,errorMessage:n?u:null,header:t,imageUrl:r,text:i,errorMessagePrefix:c,button:l}):this.props.children}}const s=c,l=[".wp-block-woocommerce-cart"],u=({Block:r,containers:n,getProps:o=(()=>({})),getErrorBoundaryProps:i=(()=>({}))})=>{0!==n.length&&Array.prototype.forEach.call(n,((n,a)=>{const c=o(n,a),l=i(n,a),u={...n.dataset,...c.attributes||{}};(({Block:r,container:n,attributes:o={},props:i={},errorBoundaryProps:a={}})=>{(0,t.render)((0,e.createElement)(s,{...a},(0,e.createElement)(t.Suspense,{fallback:(0,e.createElement)("div",{className:"wc-block-placeholder"})},r&&(0,e.createElement)(r,{...i,attributes:o}))),n,(()=>{n.classList&&n.classList.remove("is-loading")}))})({Block:r,container:n,props:c,attributes:u,errorBoundaryProps:l})}))},d=e=>{const t=document.body.querySelectorAll(l.join(",")),{Block:r,getProps:n,getErrorBoundaryProps:o,selector:i}=e;(({Block:e,getProps:t,getErrorBoundaryProps:r,selector:n,wrappers:o})=>{const i=document.body.querySelectorAll(n);o&&o.length>0&&Array.prototype.filter.call(i,(e=>!((e,t)=>Array.prototype.some.call(t,(t=>t.contains(e)&&!t.isSameNode(e))))(e,o))),u({Block:e,containers:i,getProps:t,getErrorBoundaryProps:r})})({Block:r,getProps:n,getErrorBoundaryProps:o,selector:i,wrappers:t}),Array.prototype.forEach.call(t,(t=>{t.addEventListener("wc-blocks_render_blocks_frontend",(()=>{(({Block:e,getProps:t,getErrorBoundaryProps:r,selector:n,wrapper:o})=>{const i=o.querySelectorAll(n);u({Block:e,containers:i,getProps:t,getErrorBoundaryProps:r})})({...e,wrapper:t})}))}))};var p=o(4617),m=o(488);m.domToReact,m.htmlToDOM,m.attributesToProps,m.Element;const f=m;var h=o(3554);const g=(e,t)=>e&&t[e]?t[e]:null,b=({block:r,blockMap:n,blockWrapper:o,children:i,depth:a=1})=>i&&0!==i.length?Array.from(i).map(((i,c)=>{const{blockName:l="",...u}={...i instanceof HTMLElement?i.dataset:{},className:i instanceof Element?null==i?void 0:i.className:""},d=`${r}_${a}_${c}`,m=g(l,n);if(!m){const e=f(i instanceof Element&&(null==i?void 0:i.outerHTML)||(null==i?void 0:i.textContent)||"");if("string"==typeof e&&e)return e;if(!(0,t.isValidElement)(e))return null;const c=i.childNodes.length?b({block:r,blockMap:n,children:i.childNodes,depth:a+1,blockWrapper:o}):void 0;return c?(0,t.cloneElement)(e,{key:d,...(null==e?void 0:e.props)||{}},c):(0,t.cloneElement)(e,{key:d,...(null==e?void 0:e.props)||{}})}const y=o||t.Fragment;return(0,e.createElement)(t.Suspense,{key:`${r}_${a}_${c}_suspense`,fallback:(0,e.createElement)("div",{className:"wc-block-placeholder"})},(0,e.createElement)(s,{text:`Unexpected error in: ${l}`,showErrorBlock:p.CURRENT_USER_IS_ADMIN},(0,e.createElement)(y,null,(0,e.createElement)(m,{key:d,...u},b({block:r,blockMap:n,children:i.childNodes,depth:a+1,blockWrapper:o}),((r,n,o,i)=>{if(!(0,h.hasInnerBlocks)(r))return null;const a=o?Array.from(o).map((e=>e instanceof HTMLElement&&(null==e?void 0:e.dataset.blockName)||null)).filter(Boolean):[],c=(0,h.getRegisteredBlocks)(r).filter((({blockName:e,force:t})=>!0===t&&!a.includes(e))),l=i||t.Fragment;return(0,e.createElement)(t.Fragment,null,c.map((({blockName:t,component:r},o)=>{const i=r||g(t,n);return i?(0,e.createElement)(s,{key:`${t}_blockerror`,text:`Unexpected error in: ${t}`,showErrorBlock:p.CURRENT_USER_IS_ADMIN},(0,e.createElement)(l,null,(0,e.createElement)(i,{key:`${t}_forced_${o}`}))):null})))})(l,n,i.childNodes,o)))))})):null;var y=o(4184),v=o.n(y),w=o(4697),k=o(444);const E=(0,e.createElement)(k.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(k.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));var C=o(4333),_=o(4877);const x=new Set(["alert","status","log","marquee","timer"]);let S=[],T=!1;o(8559);const O=()=>(0,e.createElement)("div",{className:"wc-block-components-drawer__close-wrapper"}),R=({onClick:r,contentRef:o})=>{var i;const a=null==o||null===(i=o.current)||void 0===i?void 0:i.querySelector(".wc-block-components-drawer__close-wrapper");return a?(0,t.createPortal)((0,e.createElement)(_.Z,{className:"wc-block-components-drawer__close",icon:E,onClick:r,label:(0,n.__)("Close","woocommerce"),showTooltip:!1}),a):null},P=(0,t.forwardRef)((({children:r,className:n,isOpen:o,onClose:i,slideIn:a=!0,slideOut:c=!0},s)=>{const[l]=(0,w.Nr)(o,300),u=!o&&l,d="drawer-open",p=()=>{document.body.classList.remove(d),T&&(S.forEach((e=>{e.removeAttribute("aria-hidden")})),S=[],T=!1),i()},m=(0,t.useRef)(),f=(0,C.useFocusOnMount)(),h=(0,C.useConstrainedTabbing)(),g=(0,C.useFocusReturn)(),b=(0,t.useRef)(null);(0,t.useEffect)((()=>{var e;o&&(e=m.current,T||(Array.from(document.body.children).forEach((t=>{t!==e&&function(e){const t=e.getAttribute("role");return!("SCRIPT"===e.tagName||e.hasAttribute("aria-hidden")||e.hasAttribute("aria-live")||t&&x.has(t))}(t)&&(t.setAttribute("aria-hidden","true"),S.push(t))})),T=!0),document.body.classList.add(d))}),[o,d]);const y=(0,C.useMergeRefs)([m,s]),k=(0,C.useMergeRefs)([h,g,f]);return o||u?(0,t.createPortal)((0,e.createElement)("div",{ref:y,className:v()("wc-block-components-drawer__screen-overlay",{"wc-block-components-drawer__screen-overlay--is-hidden":!o,"wc-block-components-drawer__screen-overlay--with-slide-in":a,"wc-block-components-drawer__screen-overlay--with-slide-out":c}),onKeyDown:function(e){e.nativeEvent.isComposing||229===e.keyCode||"Escape"!==e.code||e.defaultPrevented||(e.preventDefault(),p())},onClick:e=>{e.target===m.current&&p()}},(0,e.createElement)("div",{className:v()(n,"wc-block-components-drawer"),ref:k,role:"dialog",tabIndex:-1},(0,e.createElement)("div",{className:"wc-block-components-drawer__content",role:"document",ref:b},(0,e.createElement)(R,{contentRef:b,onClick:p}),r))),document.body):null}));var A=o(4055);const M=(e,t)=>{const r=[];return Object.keys(e).forEach((n=>{if(void 0!==t[n])switch(e[n].type){case"boolean":r[n]="false"!==t[n]&&!1!==t[n];break;case"number":r[n]=parseInt(t[n],10);break;case"array":case"object":r[n]=JSON.parse(t[n]);break;default:r[n]=t[n]}else r[n]=e[n].default})),r};var N=o(9456),L=o(4613),B=o(4293),I=o(7884);const F=e=>!!(0,I.Kn)(e)&&Object.keys({total_items:0,total_items_tax:0,total_fees:0,total_fees_tax:0,total_discount:0,total_discount_tax:0,total_shipping:0,total_shipping_tax:0,total_price:0,total_tax:0,tax_lines:0,currency_code:0,currency_symbol:0,currency_minor_unit:0,currency_decimal_separator:0,currency_thousand_separator:0,currency_prefix:0,currency_suffix:0}).every((t=>t in e));var j=o(1478);const D=e=>"boolean"==typeof e;var H=o(2646);const V=(0,e.createElement)(k.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"none"},(0,e.createElement)("circle",{cx:"12.6667",cy:"24.6667",r:"2",fill:"currentColor"}),(0,e.createElement)("circle",{cx:"23.3333",cy:"24.6667",r:"2",fill:"currentColor"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.28491 10.0356C9.47481 9.80216 9.75971 9.66667 10.0606 9.66667H25.3333C25.6232 9.66667 25.8989 9.79247 26.0888 10.0115C26.2787 10.2305 26.3643 10.5211 26.3233 10.8081L24.99 20.1414C24.9196 20.6341 24.4977 21 24 21H12C11.5261 21 11.1173 20.6674 11.0209 20.2034L9.08153 10.8701C9.02031 10.5755 9.09501 10.269 9.28491 10.0356ZM11.2898 11.6667L12.8136 19H23.1327L24.1803 11.6667H11.2898Z",fill:"currentColor"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.66669 6.66667C5.66669 6.11438 6.1144 5.66667 6.66669 5.66667H9.33335C9.81664 5.66667 10.2308 6.01229 10.3172 6.48778L11.0445 10.4878C11.1433 11.0312 10.7829 11.5517 10.2395 11.6505C9.69614 11.7493 9.17555 11.3889 9.07676 10.8456L8.49878 7.66667H6.66669C6.1144 7.66667 5.66669 7.21895 5.66669 6.66667Z",fill:"currentColor"})),z=(0,e.createElement)(k.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"none"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.4444 14.2222C12.9354 14.2222 13.3333 14.6202 13.3333 15.1111C13.3333 15.8183 13.6143 16.4966 14.1144 16.9967C14.6145 17.4968 15.2927 17.7778 16 17.7778C16.7072 17.7778 17.3855 17.4968 17.8856 16.9967C18.3857 16.4966 18.6667 15.8183 18.6667 15.1111C18.6667 14.6202 19.0646 14.2222 19.5555 14.2222C20.0465 14.2222 20.4444 14.6202 20.4444 15.1111C20.4444 16.2898 19.9762 17.4203 19.1427 18.2538C18.3092 19.0873 17.1787 19.5555 16 19.5555C14.8212 19.5555 13.6908 19.0873 12.8573 18.2538C12.0238 17.4203 11.5555 16.2898 11.5555 15.1111C11.5555 14.6202 11.9535 14.2222 12.4444 14.2222Z",fill:"currentColor"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.2408 6.68254C11.4307 6.46089 11.7081 6.33333 12 6.33333H20C20.2919 6.33333 20.5693 6.46089 20.7593 6.68254L24.7593 11.3492C25.0134 11.6457 25.0717 12.0631 24.9085 12.4179C24.7453 12.7727 24.3905 13 24 13H8.00001C7.60948 13 7.25469 12.7727 7.0915 12.4179C6.92832 12.0631 6.9866 11.6457 7.24076 11.3492L11.2408 6.68254ZM12.4599 8.33333L10.1742 11H21.8258L19.5401 8.33333H12.4599Z",fill:"currentColor"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 12C7 11.4477 7.44772 11 8 11H24C24.5523 11 25 11.4477 25 12V25.3333C25 25.8856 24.5523 26.3333 24 26.3333H8C7.44772 26.3333 7 25.8856 7 25.3333V12ZM9 13V24.3333H23V13H9Z",fill:"currentColor"})),Z=(0,e.createElement)(k.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"none"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5556 12.3333C19.0646 12.3333 18.6667 11.9354 18.6667 11.4444C18.6667 10.7372 18.3857 8.05893 17.8856 7.55883C17.3855 7.05873 16.7073 6.77778 16 6.77778C15.2928 6.77778 14.6145 7.05873 14.1144 7.55883C13.6143 8.05893 13.3333 10.7372 13.3333 11.4444C13.3333 11.9354 12.9354 12.3333 12.4445 12.3333C11.9535 12.3333 11.5556 11.9354 11.5556 11.4444C11.5556 10.2657 12.0238 7.13524 12.8573 6.30175C13.6908 5.46825 14.8213 5 16 5C17.1788 5 18.3092 5.46825 19.1427 6.30175C19.9762 7.13524 20.4445 10.2657 20.4445 11.4444C20.4445 11.9354 20.0465 12.3333 19.5556 12.3333Z",fill:"currentColor"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.5 12C7.5 11.4477 7.94772 11 8.5 11H23.5C24.0523 11 24.5 11.4477 24.5 12V25.3333C24.5 25.8856 24.0523 26.3333 23.5 26.3333H8.5C7.94772 26.3333 7.5 25.8856 7.5 25.3333V12ZM9.5 13V24.3333H22.5V13H9.5Z",fill:"currentColor"})),W=(0,t.forwardRef)((function({icon:e,size:r=24,...n},o){return(0,t.cloneElement)(e,{width:r,height:r,...n,ref:o})}));o(9794);const U=({count:t,icon:r,iconColor:n,productCountColor:o})=>(0,e.createElement)("span",{className:"wc-block-mini-cart__quantity-badge"},(0,e.createElement)(W,{className:"wc-block-mini-cart__icon",color:n.color,size:20,icon:function(e){switch(e){case"cart":default:return V;case"bag":return z;case"bag-alt":return Z}}(r)}),(0,e.createElement)("span",{className:"wc-block-mini-cart__badge",style:{background:o.color}},t>0?t:""));var q=o(3691);const $=JSON.parse('{"name":"woocommerce/empty-mini-cart-contents-block","version":"1.0.0","title":"Empty Mini-Cart view","description":"Blocks that are displayed when the Mini-Cart is empty.","category":"woocommerce","supports":{"align":false,"html":false,"multiple":false,"reusable":false,"inserter":false,"lock":false},"attributes":{"lock":{"type":"object","default":{"remove":true,"move":true}}},"parent":["woocommerce/mini-cart-contents"],"textdomain":"woocommerce","apiVersion":2,"$schema":"https://schemas.wp.org/trunk/block.json"}'),G=JSON.parse('{"name":"woocommerce/filled-mini-cart-contents-block","version":"1.0.0","title":"Filled Mini-Cart view","description":"Contains blocks that display the content of the Mini-Cart.","category":"woocommerce","supports":{"align":false,"html":false,"multiple":false,"reusable":false,"inserter":false,"lock":false},"attributes":{"lock":{"type":"object","default":{"remove":true,"move":true}}},"parent":["woocommerce/mini-cart-contents"],"textdomain":"woocommerce","apiVersion":2,"$schema":"https://schemas.wp.org/trunk/block.json"}'),Y=JSON.parse('{"name":"woocommerce/mini-cart-title-block","version":"1.0.0","title":"Mini-Cart Title","description":"Block that displays the title of the Mini-Cart block.","category":"woocommerce","supports":{"align":false,"html":false,"multiple":false,"reusable":false,"inserter":false,"lock":false,"color":{"text":true,"background":false},"typography":{"fontSize":true}},"attributes":{"lock":{"type":"object","default":{"remove":true,"move":true}}},"parent":["woocommerce/filled-mini-cart-contents-block"],"textdomain":"woocommerce","apiVersion":2,"$schema":"https://schemas.wp.org/trunk/block.json"}'),J=JSON.parse('{"name":"woocommerce/mini-cart-title-items-counter-block","version":"1.0.0","title":"Mini-Cart Title Items Counter","description":"Block that displays the items counter part of the Mini-Cart Title block.","category":"woocommerce","supports":{"align":false,"html":false,"multiple":false,"reusable":false,"inserter":false,"lock":false,"color":{"text":true,"background":true},"typography":{"fontSize":true},"spacing":{"padding":true}},"parent":["woocommerce/mini-cart-title-block"],"textdomain":"woocommerce","apiVersion":2,"$schema":"https://schemas.wp.org/trunk/block.json"}'),X=JSON.parse('{"name":"woocommerce/mini-cart-title-label-block","version":"1.0.0","title":"Mini-Cart Title Label","description":"Block that displays the \'Your cart\' part of the Mini-Cart Title block.","category":"woocommerce","supports":{"align":false,"html":false,"multiple":false,"reusable":false,"inserter":false,"lock":false,"color":{"text":true,"background":true},"typography":{"fontSize":true},"spacing":{"padding":true}},"attributes":{"label":{"type":"string"}},"parent":["woocommerce/mini-cart-title-block"],"textdomain":"woocommerce","apiVersion":2,"$schema":"https://schemas.wp.org/trunk/block.json"}'),K=JSON.parse('{"name":"woocommerce/mini-cart-products-table-block","version":"1.0.0","title":"Mini-Cart Products Table","description":"Block that displays the products table of the Mini-Cart block.","category":"woocommerce","supports":{"align":false,"html":false,"multiple":false,"reusable":false,"inserter":false,"lock":false},"attributes":{"lock":{"type":"object","default":{"remove":true,"move":false}}},"parent":["woocommerce/mini-cart-items-block"],"textdomain":"woocommerce","apiVersion":2,"$schema":"https://schemas.wp.org/trunk/block.json"}'),Q=JSON.parse('{"name":"woocommerce/mini-cart-footer-block","version":"1.0.0","title":"Mini-Cart Footer","description":"Block that displays the footer of the Mini-Cart block.","category":"woocommerce","supports":{"align":false,"html":false,"multiple":false,"reusable":false,"inserter":false,"lock":false},"attributes":{"lock":{"type":"object","default":{"remove":true,"move":true}}},"parent":["woocommerce/filled-mini-cart-contents-block"],"textdomain":"woocommerce","apiVersion":2,"$schema":"https://schemas.wp.org/trunk/block.json"}'),ee=JSON.parse('{"name":"woocommerce/mini-cart-items-block","version":"1.0.0","title":"Mini-Cart Items","description":"Contains the products table and other custom blocks of filled mini-cart.","category":"woocommerce","supports":{"align":false,"html":false,"multiple":false,"reusable":false,"inserter":false,"lock":false},"attributes":{"lock":{"type":"object","default":{"remove":true,"move":true}}},"parent":["woocommerce/filled-mini-cart-contents-block"],"textdomain":"woocommerce","apiVersion":2,"$schema":"https://schemas.wp.org/trunk/block.json"}'),te=JSON.parse('{"name":"woocommerce/mini-cart-shopping-button-block","version":"1.0.0","title":"Mini-Cart Shopping Button","description":"Block that displays the shopping button when the Mini-Cart is empty.","category":"woocommerce","supports":{"align":false,"html":false,"multiple":false,"reusable":false,"inserter":true,"color":{"text":true,"background":true}},"attributes":{"lock":{"type":"object","default":{"remove":false,"move":false}}},"styles":[{"name":"fill","label":"Fill","isDefault":true},{"name":"outline","label":"Outline"}],"parent":["woocommerce/empty-mini-cart-contents-block"],"textdomain":"woocommerce","apiVersion":2,"$schema":"https://schemas.wp.org/trunk/block.json"}'),re=JSON.parse('{"name":"woocommerce/mini-cart-cart-button-block","version":"1.0.0","title":"Mini-Cart View Cart Button","description":"Block that displays the cart button when the Mini-Cart has products.","category":"woocommerce","supports":{"align":false,"html":false,"multiple":false,"reusable":false,"inserter":true,"color":{"text":true,"background":true}},"attributes":{"lock":{"type":"object","default":{"remove":false,"move":false}}},"styles":[{"name":"fill","label":"Fill"},{"name":"outline","label":"Outline","isDefault":true}],"parent":["woocommerce/mini-cart-footer-block"],"textdomain":"woocommerce","apiVersion":2,"$schema":"https://schemas.wp.org/trunk/block.json"}'),ne=JSON.parse('{"name":"woocommerce/mini-cart-checkout-button-block","version":"1.0.0","title":"Mini-Cart Proceed to Checkout Button","description":"Block that displays the checkout button when the Mini-Cart has products.","category":"woocommerce","supports":{"align":false,"html":false,"multiple":false,"reusable":false,"inserter":true,"color":{"text":true,"background":true}},"attributes":{"lock":{"type":"object","default":{"remove":false,"move":false}}},"styles":[{"name":"fill","label":"Fill","isDefault":true},{"name":"outline","label":"Outline"}],"parent":["woocommerce/mini-cart-footer-block"],"textdomain":"woocommerce","apiVersion":2,"$schema":"https://schemas.wp.org/trunk/block.json"}');o.p=i.VF,(0,h.registerCheckoutBlock)({metadata:G,component:(0,t.lazy)((()=>o.e(833).then(o.bind(o,7411))))}),(0,h.registerCheckoutBlock)({metadata:$,component:(0,t.lazy)((()=>o.e(8513).then(o.bind(o,1492))))}),(0,h.registerCheckoutBlock)({metadata:Y,force:!1,component:(0,t.lazy)((()=>o.e(3271).then(o.bind(o,3792))))}),(0,h.registerCheckoutBlock)({metadata:J,force:!1,component:(0,t.lazy)((()=>o.e(1114).then(o.bind(o,2368))))}),(0,h.registerCheckoutBlock)({metadata:X,force:!1,component:(0,t.lazy)((()=>o.e(262).then(o.bind(o,7407))))}),(0,h.registerCheckoutBlock)({metadata:ee,component:(0,t.lazy)((()=>o.e(6575).then(o.bind(o,1594))))}),(0,h.registerCheckoutBlock)({metadata:K,component:(0,t.lazy)((()=>o.e(4097).then(o.bind(o,6567))))}),(0,h.registerCheckoutBlock)({metadata:Q,component:(0,t.lazy)((()=>o.e(9007).then(o.bind(o,9314))))}),(0,h.registerCheckoutBlock)({metadata:te,component:(0,t.lazy)((()=>o.e(6567).then(o.bind(o,4205))))}),(0,h.registerCheckoutBlock)({metadata:re,component:(0,t.lazy)((()=>o.e(1959).then(o.bind(o,5895))))}),(0,h.registerCheckoutBlock)({metadata:ne,component:(0,t.lazy)((()=>o.e(458).then(o.bind(o,9009))))});const oe=t=>{const{children:r}=t;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(q.T,null,(0,e.createElement)(O,null),r))};o(5848);const ie=(0,e.createElement)(k.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)("g",{fill:"none",fillRule:"evenodd"},(0,e.createElement)("path",{d:"M0 0h24v24H0z"}),(0,e.createElement)("path",{fill:"currentColor",fillRule:"nonzero",d:"M15.55 13c.75 0 1.41-.41 1.75-1.03l3.58-6.49A.996.996 0 0 0 20.01 4H5.21l-.94-2H1v2h2l3.6 7.59-1.35 2.44C4.52 15.37 5.48 17 7 17h12v-2H7l1.1-2h7.45ZM7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2Zm10 0c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2Z"}))," "),ae=(0,e.createElement)(k.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)("path",{d:"M22.7 22.7l-20-20L2 2l-.7-.7L0 2.5 4.4 7l2.2 4.7L5.2 14A2 2 0 007 17h7.5l1.3 1.4a2 2 0 102.8 2.8l2.9 2.8 1.2-1.3zM7.4 15a.2.2 0 01-.2-.3l.9-1.7h2.4l2 2h-5zm8.2-2a2 2 0 001.7-1l3.6-6.5.1-.5c0-.6-.4-1-1-1H6.5l9 9zM7 18a2 2 0 100 4 2 2 0 000-4z"}),(0,e.createElement)("path",{fill:"none",d:"M0 0h24v24H0z"})),ce="woocommerce/mini-cart-contents",se={isPreview:{type:"boolean",default:!1},lock:{type:"object",default:{remove:!0,move:!0}},currentView:{type:"string",default:"woocommerce/filled-mini-cart-contents-block",source:"readonly"},editorViews:{type:"object",default:[{view:"woocommerce/filled-mini-cart-contents-block",label:(0,n.__)("Filled Mini-Cart","woocommerce"),icon:(0,e.createElement)(W,{icon:ie})},{view:"woocommerce/empty-mini-cart-contents-block",label:(0,n.__)("Empty Mini-Cart","woocommerce"),icon:(0,e.createElement)(W,{icon:ae})}]},width:{type:"string",default:"480px"}},le={name:void 0,color:void 0,slug:void 0},ue=r=>{const{initialCartItemsCount:o,initialCartTotals:i,isInitiallyOpen:a=!1,colorClassNames:c,contents:s="",miniCartIcon:l,addToCartBehaviour:u="none",hasHiddenPrice:m=!1,priceColor:f=le,iconColor:h=le,productCountColor:g=le}=r,{cartItemsCount:y,cartIsLoading:w,cartTotals:k}=(0,A.b)(),E=(0,t.useRef)(w);(0,t.useEffect)((()=>{E.current&&!w&&(E.current=!1)}),[w,E]),(0,t.useEffect)((()=>{!w&&F(k)&&(0,j.h)(y)&&localStorage.setItem("wc-blocks_mini_cart_totals",JSON.stringify({totals:k,itemsCount:y}))}));const[C,_]=(0,t.useState)(a),[x,S]=(0,t.useState)(a),[T,O]=(0,t.useState)(null),R=(0,t.useCallback)((e=>{O(e)}),[]);(0,t.useEffect)((()=>{const e=document.querySelector("body");if(e){const t=window.innerWidth-document.documentElement.clientWidth;C?Object.assign(e.style,{overflow:"hidden",paddingRight:t+"px"}):Object.assign(e.style,{overflow:"",paddingRight:0})}}),[C]),(0,t.useEffect)((()=>{if(T instanceof Element){if(!T.querySelector(".wp-block-woocommerce-mini-cart-contents"))return;C&&(({Block:e,selector:t,blockName:r,getProps:n=(()=>({})),blockMap:o,blockWrapper:i})=>{d({Block:e,selector:t,getProps:(e,t)=>{const a=b({block:r,blockMap:o,children:e.children||[],blockWrapper:i});return{...n(e,t),children:a}}})})({Block:oe,blockName:ce,getProps:e=>({attributes:M(se,e instanceof HTMLElement?e.dataset:{})}),selector:".wp-block-woocommerce-mini-cart-contents",blockMap:(0,L.getRegisteredBlockComponents)(ce)})}return()=>{if(T instanceof Element&&C){const e=T.querySelector(".wp-block-woocommerce-mini-cart-contents");e&&(0,t.unmountComponentAtNode)(e)}}}),[C,T]),(0,t.useEffect)((()=>{const e=()=>{"open_drawer"===u&&(S(!1),_(!0))},t=(0,N.Es)("added_to_cart","wc-blocks_added_to_cart");return document.body.addEventListener("wc-blocks_added_to_cart",e),()=>{t(),document.body.removeEventListener("wc-blocks_added_to_cart",e)}}),[u]);const I=(0,p.getSettingWithCoercion)("displayCartPricesIncludingTax",!1,D),V=(0,p.getSettingWithCoercion)("taxLabel","",H.H),z=E.current&&F(i)?i:k,Z=E.current&&(0,j.h)(o)?o:y,W=I?parseInt(z.total_items,10)+parseInt(z.total_items_tax,10):parseInt(z.total_items,10),q=m?(0,n.sprintf)(/* translators: %1$d is the number of products in the cart. */
(0,n._n)("%1$d item in cart","%1$d items in cart",Z,"woocommerce"),Z):(0,n.sprintf)(/* translators: %1$d is the number of products in the cart. %2$s is the cart total */
(0,n._n)("%1$d item in cart, total price of %2$s","%1$d items in cart, total price of %2$s",Z,"woocommerce"),Z,(0,B.formatPrice)(W,(0,B.getCurrencyFromPriceResponse)(z)));return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("button",{className:`wc-block-mini-cart__button ${c}`,onClick:()=>{C||(_(!0),S(!1))},"aria-label":q},!m&&(0,e.createElement)("span",{className:"wc-block-mini-cart__amount",style:{color:f.color}},(0,B.formatPrice)(W,(0,B.getCurrencyFromPriceResponse)(z))),""!==V&&0!==W&&!m&&(0,e.createElement)("small",{className:"wc-block-mini-cart__tax-label",style:{color:f.color}},V),(0,e.createElement)(U,{count:Z,icon:l,iconColor:h,productCountColor:g})),(0,e.createElement)(P,{className:v()("wc-block-mini-cart__drawer","is-mobile",{"is-loading":w}),isOpen:C,onClose:()=>{_(!1)},slideIn:!x},(0,e.createElement)("div",{className:"wc-block-mini-cart__template-part",ref:R,dangerouslySetInnerHTML:{__html:s}})))};(()=>{let e=null;if(document.activeElement&&document.activeElement.classList.contains("wc-block-mini-cart__button")&&document.activeElement.parentNode instanceof HTMLElement&&(e=document.activeElement.parentNode),d({selector:".wc-block-mini-cart",Block:ue,getProps:e=>{var t,r;let n="";const o=e.querySelector(".wc-block-mini-cart__button");return o instanceof HTMLButtonElement&&(n=o.classList.toString().replace("wc-block-mini-cart__button","")),{initialCartTotals:e.dataset.cartTotals?JSON.parse(e.dataset.cartTotals):null,initialCartItemsCount:e.dataset.cartItemsCount?parseInt(e.dataset.cartItemsCount,10):0,isInitiallyOpen:"true"===e.dataset.isInitiallyOpen,colorClassNames:n,style:e.dataset.style?JSON.parse(e.dataset.style):{},miniCartIcon:e.dataset.miniCartIcon,addToCartBehaviour:e.dataset.addToCartBehaviour||"none",hasHiddenPrice:e.dataset.hasHiddenPrice,priceColor:e.dataset.priceColor?JSON.parse(e.dataset.priceColor):{},iconColor:e.dataset.iconColor?JSON.parse(e.dataset.iconColor):{},productCountColor:e.dataset.productCountColor?JSON.parse(e.dataset.productCountColor):{},contents:null!==(t=null===(r=e.querySelector(".wc-block-mini-cart__template-part"))||void 0===r?void 0:r.innerHTML)&&void 0!==t?t:""}}}),e instanceof HTMLElement&&!e.dataset.isInitiallyOpen){const t=e.querySelector(".wc-block-mini-cart__button");t instanceof HTMLElement&&t.focus()}})()})()})();