HEX
Server: LiteSpeed
System: Linux premium212.web-hosting.com 4.18.0-553.124.4.lve.el8.x86_64 #1 SMP Fri May 15 13:02:13 UTC 2026 x86_64
User: vitanhod (1367)
PHP: 8.2.31
Disabled: NONE
Upload Files
File: //home/vitanhod/www/wp-content/plugins/woocommerce/assets/client/admin/product-editor/index.js
/*! For license information please see index.js.LICENSE.txt */
(()=>{var __webpack_modules__={5520:(e,t,o)=>{"use strict";o.d(t,{A:()=>n});var r=o(86087);const n=(0,r.forwardRef)(function({icon:e,size:t=24,...o},n){return(0,r.cloneElement)(e,{width:t,height:t,...o,ref:n})})},42059:(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var r=o(5573),n=o(39793);const a=(0,n.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(r.Path,{d:"M20 11.2H6.8l3.7-3.7-1-1L3.9 12l5.6 5.5 1-1-3.7-3.7H20z"})})},11538:(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var r=o(5573),n=o(39793);const a=(0,n.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(r.Path,{d:"m14.5 6.5-1 1 3.7 3.7H4v1.6h13.2l-3.7 3.7 1 1 5.6-5.5z"})})},51717:(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var r=o(5573),n=o(39793);const a=(0,n.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(r.Path,{fillRule:"evenodd",d:"M5 5.5h14a.5.5 0 01.5.5v1.5a.5.5 0 01-.5.5H5a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM4 9.232A2 2 0 013 7.5V6a2 2 0 012-2h14a2 2 0 012 2v1.5a2 2 0 01-1 1.732V18a2 2 0 01-2 2H6a2 2 0 01-2-2V9.232zm1.5.268V18a.5.5 0 00.5.5h12a.5.5 0 00.5-.5V9.5h-13z",clipRule:"evenodd"})})},30884:(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var r=o(5573),n=o(39793);const a=(0,n.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(r.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"})})},64816:(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var r=o(5573),n=o(39793);const a=(0,n.jsx)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)(r.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})})},89505:(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var r=o(5573),n=o(39793);const a=(0,n.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(r.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"})})},91218:(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var r=o(5573),n=o(39793);const a=(0,n.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(r.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"})})},67237:(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var r=o(5573),n=o(39793);const a=(0,n.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(r.Path,{d:"M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"})})},27283:(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var r=o(5573),n=o(39793);const a=(0,n.jsx)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)(r.Path,{d:"M18 4h-7c-1.1 0-2 .9-2 2v3H6c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-3h3c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-4.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h3V13c0 1.1.9 2 2 2h2.5v3zm0-4.5H11c-.3 0-.5-.2-.5-.5v-2.5H13c.3 0 .5.2.5.5v2.5zm5-.5c0 .3-.2.5-.5.5h-3V11c0-1.1-.9-2-2-2h-2.5V6c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v7z"})})},72541:(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var r=o(5573),n=o(39793);const a=(0,n.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(r.Path,{d:"M12 4.75a7.25 7.25 0 100 14.5 7.25 7.25 0 000-14.5zM3.25 12a8.75 8.75 0 1117.5 0 8.75 8.75 0 01-17.5 0zM12 8.75a1.5 1.5 0 01.167 2.99c-.465.052-.917.44-.917 1.01V14h1.5v-.845A3 3 0 109 10.25h1.5a1.5 1.5 0 011.5-1.5zM11.25 15v1.5h1.5V15h-1.5z"})})},6006:(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var r=o(5573),n=o(39793);const a=(0,n.jsx)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)(r.Path,{d:"M3 6h11v1.5H3V6Zm3.5 5.5h11V13h-11v-1.5ZM21 17H10v1.5h11V17Z"})})},76938:(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var r=o(5573),n=o(39793);const a=(0,n.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(r.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"})})},2111:(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var r=o(5573),n=o(39793);const a=(0,n.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(r.Path,{d:"M6.6 6L5.4 7l4.5 5-4.5 5 1.1 1 5.5-6-5.4-6zm6 0l-1.1 1 4.5 5-4.5 5 1.1 1 5.5-6-5.5-6z"})})},91128:(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var r=o(5573),n=o(39793);const a=(0,n.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(r.Path,{d:"M10.5 4v4h3V4H15v4h1.5a1 1 0 011 1v4l-3 4v2a1 1 0 01-1 1h-3a1 1 0 01-1-1v-2l-3-4V9a1 1 0 011-1H9V4h1.5zm.5 12.5v2h2v-2l3-4v-3H8v3l3 4z"})})},67606:(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var r=o(5573),n=o(39793);const a=(0,n.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(r.Path,{d:"M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"})})},52887:(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var r=o(5573),n=o(39793);const a=(0,n.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(r.Path,{d:"M11.6 7l-1.1-1L5 12l5.5 6 1.1-1L7 12l4.6-5zm6 0l-1.1-1-5.5 6 5.5 6 1.1-1-4.6-5 4.6-5z"})})},22794:(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var r=o(5573),n=o(39793);const a=(0,n.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(r.Path,{d:"M15.6 6.5l-1.1 1 2.9 3.3H8c-.9 0-1.7.3-2.3.9-1.4 1.5-1.4 4.2-1.4 5.6v.2h1.5v-.3c0-1.1 0-3.5 1-4.5.3-.3.7-.5 1.3-.5h9.2L14.5 15l1.1 1.1 4.6-4.6-4.6-5z"})})},42175:(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var r=o(5573),n=o(39793);const a=(0,n.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(r.Path,{d:"M7 11.5h10V13H7z"})})},51388:(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var r=o(5573),n=o(39793);const a=(0,n.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(r.Path,{d:"M18.3 11.7c-.6-.6-1.4-.9-2.3-.9H6.7l2.9-3.3-1.1-1-4.5 5L8.5 16l1-1-2.7-2.7H16c.5 0 .9.2 1.3.5 1 1 1 3.4 1 4.5v.3h1.5v-.2c0-1.5 0-4.3-1.5-5.7z"})})},59932:(e,t,o)=>{"use strict";o.d(t,{A:()=>s});var r=o(56427),n=o(86087),a=o(39793);const c=()=>{};function i({name:e,as:t=r.Button,onClick:o,...n}){return(0,a.jsx)(r.Fill,{name:e,children:({onClick:e})=>(0,a.jsx)(t,{onClick:o||e?(...t)=>{(o||c)(...t),(e||c)(...t)}:void 0,...n})})}i.Slot=function({name:e,as:t=r.MenuGroup,fillProps:o={},bubblesVirtually:c,...i}){return(0,a.jsx)(r.Slot,{name:e,bubblesVirtually:c,fillProps:o,children:e=>{if(!n.Children.toArray(e).length)return null;const o=[];n.Children.forEach(e,({props:{__unstableExplicitMenuItem:e,__unstableTarget:t}})=>{t&&e&&o.push(t)});const r=n.Children.map(e,e=>!e.props.__unstableExplicitMenuItem&&o.includes(e.props.__unstableTarget)?null:e);return(0,a.jsx)(t,{...i,children:r})}})};const s=i},76995:(e,t,o)=>{"use strict";o.d(t,{A:()=>m});var r=o(4921),n=o(86087),a=o(56427),c=o(27723),i=o(29491),s=o(13474),l=o(39793);const u={type:"tween",duration:.25,ease:[.6,0,.4,1]},d={hidden:{opacity:1,marginTop:-60},visible:{opacity:1,marginTop:0},distractionFreeHover:{opacity:1,marginTop:0,transition:{...u,delay:.2,delayChildren:.2}},distractionFreeHidden:{opacity:0,marginTop:-60},distractionFreeDisabled:{opacity:0,marginTop:0,transition:{...u,delay:.8,delayChildren:.8}}},m=(0,n.forwardRef)(function({isDistractionFree:e,footer:t,header:o,editorNotices:u,sidebar:m,secondarySidebar:p,content:h,actions:_,labels:v,className:w},g){const[f,E]=(0,i.useResizeObserver)(),b=(0,i.useViewportMatch)("medium","<"),C={type:"tween",duration:(0,i.useReducedMotion)()?0:.25,ease:[.6,0,.4,1]};!function(e){(0,n.useEffect)(()=>{const t=document&&document.querySelector(`html:not(.${e})`);if(t)return t.classList.toggle(e),()=>{t.classList.toggle(e)}},[e])}("interface-interface-skeleton__html-container");const x={header:(0,c._x)("Header","header landmark area"),body:(0,c.__)("Content"),secondarySidebar:(0,c.__)("Block Library"),sidebar:(0,c._x)("Settings","settings landmark area"),actions:(0,c.__)("Publish"),footer:(0,c.__)("Footer"),...v};return(0,l.jsxs)("div",{ref:g,className:(0,r.A)(w,"interface-interface-skeleton",!!t&&"has-footer"),children:[(0,l.jsxs)("div",{className:"interface-interface-skeleton__editor",children:[(0,l.jsx)(a.__unstableAnimatePresence,{initial:!1,children:!!o&&(0,l.jsx)(s.A,{as:a.__unstableMotion.div,className:"interface-interface-skeleton__header","aria-label":x.header,initial:e&&!b?"distractionFreeHidden":"hidden",whileHover:e&&!b?"distractionFreeHover":"visible",animate:e&&!b?"distractionFreeDisabled":"visible",exit:e&&!b?"distractionFreeHidden":"hidden",variants:d,transition:C,children:o})}),e&&(0,l.jsx)("div",{className:"interface-interface-skeleton__header",children:u}),(0,l.jsxs)("div",{className:"interface-interface-skeleton__body",children:[(0,l.jsx)(a.__unstableAnimatePresence,{initial:!1,children:!!p&&(0,l.jsx)(s.A,{className:"interface-interface-skeleton__secondary-sidebar",ariaLabel:x.secondarySidebar,as:a.__unstableMotion.div,initial:"closed",animate:"open",exit:"closed",variants:{open:{width:E.width},closed:{width:0}},transition:C,children:(0,l.jsxs)(a.__unstableMotion.div,{style:{position:"absolute",width:b?"100vw":"fit-content",height:"100%",left:0},variants:{open:{x:0},closed:{x:"-100%"}},transition:C,children:[f,p]})})}),(0,l.jsx)(s.A,{className:"interface-interface-skeleton__content",ariaLabel:x.body,children:h}),!!m&&(0,l.jsx)(s.A,{className:"interface-interface-skeleton__sidebar",ariaLabel:x.sidebar,children:m}),!!_&&(0,l.jsx)(s.A,{className:"interface-interface-skeleton__actions",ariaLabel:x.actions,children:_})]})]}),!!t&&(0,l.jsx)(s.A,{className:"interface-interface-skeleton__footer",ariaLabel:x.footer,children:t})]})})},13474:(e,t,o)=>{"use strict";o.d(t,{A:()=>i});var r=o(86087),n=o(4921),a=o(39793);const c=(0,r.forwardRef)(({children:e,className:t,ariaLabel:o,as:r="div",...c},i)=>(0,a.jsx)(r,{ref:i,className:(0,n.A)("interface-navigable-region",t),"aria-label":o,role:"region",tabIndex:"-1",...c,children:e}));c.displayName="NavigableRegion";const i=c},11753:(e,t,o)=>{"use strict";o.d(t,{A:()=>i});var r=o(4921),n=o(56427),a=o(39793);function c({scope:e,...t}){return(0,a.jsx)(n.Fill,{name:`PinnedItems/${e}`,...t})}c.Slot=function({scope:e,className:t,...o}){return(0,a.jsx)(n.Slot,{name:`PinnedItems/${e}`,...o,children:e=>e?.length>0&&(0,a.jsx)("div",{className:(0,r.A)(t,"interface-pinned-items"),children:e})})};const i=c},27071:(e,t,o)=>{"use strict";o.d(t,{h:()=>p});var r=o(86087),n=o(27723),a=o(98846),c=o(93832),i=o(1455),s=o.n(i),l=o(56427);function u({onAdd:e,onCancel:t}){const{errors:o,getInputProps:i,isValidForm:u}=(0,a.useFormContext)(),[d,m]=(0,r.useState)(!1),[p,h]=(0,r.useState)(!1),_=String(i("name").value),[v,w]=(0,r.useState)(_),g=(0,r.useRef)(null);async function f(){if(h(!0),v===_)return;h(!0),w(_);const e=await s()({path:(0,c.addQueryArgs)("/wc/v3/products/shipping_classes/slug-suggestion",{name:_}),method:"GET"});h(!1),i("slug").onChange(e)}(0,r.useEffect)(()=>{g.current?.focus()},[]);const E=p||!_?.length||v===_;return(0,r.createElement)("div",{className:"woocommerce-add-new-shipping-class-modal__wrapper"},(0,r.createElement)(l.TextControl,{...i("name"),placeholder:(0,n.__)("e.g. Fragile products","woocommerce"),label:(0,r.createInterpolateElement)((0,n.__)("Name <required />","woocommerce"),{required:(0,r.createElement)("span",{className:"woocommerce-add-new-shipping-class-modal__optional-input"},(0,n.__)("(required)","woocommerce"))}),onBlur:function(){p&&f()},ref:g}),(0,r.createElement)(l.__experimentalInputControl,{...i("slug"),label:(0,n.__)("Slug","woocommerce"),onChange:e=>{w(""),i("slug").onChange(e??"")},disabled:p,help:(0,n.__)("Set a custom slug or generate it by clicking the button.","woocommerce"),prefix:(0,r.createElement)(l.__experimentalInputControlPrefixWrapper,null,(0,r.createElement)(l.Button,{disabled:E,variant:"secondary",onClick:f,isBusy:p,isSmall:!0},(0,n.__)("Generate","woocommerce")))}),(0,r.createElement)(l.TextControl,{...i("description"),label:(0,n.__)("Description","woocommerce"),help:o?.description??(0,n.__)("Describe how you and other store administrators can use this shipping class.","woocommerce")}),(0,r.createElement)("div",{className:"woocommerce-add-new-shipping-class-modal__buttons"},(0,r.createElement)(l.Button,{variant:"secondary",onClick:t},(0,n.__)("Cancel","woocommerce")),(0,r.createElement)(l.Button,{variant:"primary",isBusy:d,disabled:!u||d,onClick:function(){m(!0),e().then(()=>{m(!1),t()}).catch(()=>{m(!1)})}},(0,n.__)("Add","woocommerce"))))}function d(e){const t={};return e.name?.length||(t.name=(0,n.__)("The shipping class name is required.","woocommerce")),t}const m={name:"",slug:"",description:""};function p({shippingClass:e,onAdd:t,onCancel:o}){return(0,r.createElement)(l.Modal,{title:(0,n.__)("New shipping class","woocommerce"),className:"woocommerce-add-new-shipping-class-modal",onRequestClose:o},(0,r.createElement)(a.Form,{initialValues:e??m,validate:d,errors:{},onSubmit:function(e){return t(Object.entries(e).reduce(function(e,[t,o]){return{...e,[t]:""===o?void 0:o}},{}))}},e=>(0,r.createElement)(u,{onAdd:e.handleSubmit,onCancel:o})))}},31203:(e,t,o)=>{"use strict";o.d(t,{h:()=>r.h});var r=o(27071)},59771:(e,t,o)=>{"use strict";o.d(t,{L:()=>p,m:()=>m});var r=o(51609),n=o(56427),a=o(47143),c=o(86087),i=o(27723),s=o(91218),l=o(98846),u=o(94111),d=o(40314);function m(e){return e.images.length>0?{backgroundImage:`url(${e.images[0].src})`}:void 0}function p({initialValue:e,onSubmit:t,onClose:o}){const[p,h]=(0,c.useState)([]),[_,v]=(0,c.useState)([]),w=(0,c.useCallback)(async(t="")=>(h([]),(0,a.resolveSelect)(d.productsStore).getProducts({search:t,orderby:"title",order:"asc",exclude:[...e,..._].map(e=>e.id)}).then(e=>(h(e),e))),[_]),{isFetching:g,...f}=(0,l.useAsyncFilter)({filter:w});(0,r.useEffect)(function(){w()},[e,_]);const{formatAmount:E}=(0,c.useContext)(u.CurrencyContext);return(0,c.createElement)(n.Modal,{title:(0,i.__)("Add products to this group","woocommerce"),className:"woocommerce-add-products-modal",onRequestClose:o},(0,c.createElement)("form",{noValidate:!0,onSubmit:function(e){e.preventDefault(),t([..._])},className:"woocommerce-add-products-modal__form"},(0,c.createElement)("fieldset",{className:"woocommerce-add-products-modal__form-group"},(0,c.createElement)("legend",{className:"woocommerce-add-products-modal__form-group-title"},(0,i.__)("Add and manage products in this group to let customers purchase them all in one go.","woocommerce")),(0,c.createElement)("div",{className:"woocommerce-add-products-modal__form-group-content"},(0,c.createElement)(l.__experimentalSelectControl,{...f,items:p,placeholder:(0,i.__)("Search for products","woocommerce"),label:"",selected:null,onSelect:function(e){v(t=>[...t,e])},__experimentalOpenMenuOnFocus:!0},({items:e,isOpen:t,highlightedIndex:o,getMenuProps:r,getItemProps:a})=>(0,c.createElement)(l.__experimentalSelectControlMenu,{isOpen:t,getMenuProps:r,className:"woocommerce-add-products-modal__menu"},g?(0,c.createElement)("div",{className:"woocommerce-add-products-modal__menu-loading"},(0,c.createElement)(n.Spinner,null)):e.map((e,t)=>(0,c.createElement)(l.__experimentalSelectControlMenuItem,{key:e.id,index:t,isActive:o===t,item:e,getItemProps:e=>({...a(e),className:"woocommerce-add-products-modal__menu-item"})},(0,c.createElement)(c.Fragment,null,(0,c.createElement)("div",{className:"woocommerce-add-products-modal__menu-item-image",style:m(e)}),(0,c.createElement)("div",{className:"woocommerce-add-products-modal__menu-item-content"},(0,c.createElement)("div",{className:"woocommerce-add-products-modal__menu-item-title"},e.name),Boolean(e.price)&&(0,c.createElement)("div",{className:"woocommerce-add-products-modal__menu-item-description"},E(e.price))))))))),Boolean(_.length)&&(0,c.createElement)("ul",{className:"woocommerce-add-products-modal__list"},_.map(e=>{return(0,c.createElement)("li",{key:e.id,className:"woocommerce-add-products-modal__list-item"},(0,c.createElement)("div",{className:"woocommerce-add-products-modal__list-item-image",style:m(e)}),(0,c.createElement)("div",{className:"woocommerce-add-products-modal__list-item-content"},(0,c.createElement)("div",{className:"woocommerce-add-products-modal__list-item-title"},e.name),(0,c.createElement)("div",{className:"woocommerce-add-products-modal__list-item-description"},e.sku)),(0,c.createElement)("div",{className:"woocommerce-add-products-modal__list-item-actions"},(0,c.createElement)(n.Button,{type:"button",variant:"tertiary",icon:s.A,"aria-label":(0,i.__)("Remove product","woocommerce"),onClick:(t=e,function(){v(e=>e.filter(e=>e.id!==t.id))})})));var t}))),(0,c.createElement)("div",{className:"woocommerce-add-products-modal__actions"},(0,c.createElement)(n.Button,{variant:"tertiary",type:"button",onClick:function(){o()}},(0,i.__)("Cancel","woocommerce")),(0,c.createElement)(n.Button,{variant:"primary",type:"submit"},(0,i.__)("Add","woocommerce")))))}},29462:(e,t,o)=>{"use strict";o.d(t,{W:()=>q});var r=o(27723),n=o(86087),a=o(56427),c=o(98846),i=o(15703),s=o(83306),l=o(47143),u=o(29491),d=o(67606),m=o(40314),p=o(93832),h=o(8088);const _=({initialAttributeTermName:e,attributeId:t,onCancel:o=()=>{},onCreated:i=()=>{}})=>{const{createNotice:u}=(0,l.useDispatch)("core/notices"),[d,_]=(0,n.useState)(!1),{createProductAttributeTerm:v}=(0,l.useDispatch)(m.experimentalProductAttributeTermsStore);return(0,n.createElement)(a.Modal,{title:(0,r.__)("Create attribute","woocommerce"),onRequestClose:e=>{e?.stopPropagation(),o()},className:"woocommerce-create-attribute-term-modal"},(0,n.createElement)(c.Form,{initialValues:{name:e,slug:(0,p.cleanForSlug)(e),description:""},validate:function(e){const t={};return e.name?.length||(t.name=(0,r.__)("The attribute term name is required.","woocommerce")),t},errors:{},onSubmit:async e=>{(0,s.recordEvent)("product_attribute_term_add",{source:h.bG}),_(!0);try{const o=await v({...e,attribute_id:t});(0,s.recordEvent)("product_attribute_term_add_success",{source:h.bG}),_(!1),i(o)}catch(e){(0,s.recordEvent)("product_attribute_term_add_failed",{source:h.bG}),u("error",(0,r.__)("Failed to create attribute term.","woocommerce")),_(!1),o()}}},({getInputProps:e,handleSubmit:t,isValidForm:c,setValue:i,values:s})=>{const l=e("name");return(0,n.createElement)(n.Fragment,null,(0,n.createElement)(a.TextControl,{label:(0,r.__)("Name","woocommerce"),...l,onBlur:()=>{l.onBlur(),i("slug",(0,p.cleanForSlug)(s.name))}}),(0,n.createElement)(a.TextControl,{label:(0,r.__)("Slug","woocommerce"),...e("slug"),help:(0,r.__)("The “slug” is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.","woocommerce")}),(0,n.createElement)(a.TextareaControl,{label:(0,r.__)("Description","woocommerce"),...e("description")}),(0,n.createElement)("div",{className:"woocommerce-create-attribute-term-modal__buttons"},(0,n.createElement)(a.Button,{isSecondary:!0,label:(0,r.__)("Cancel","woocommerce"),onClick:()=>o()},(0,r.__)("Cancel","woocommerce")),(0,n.createElement)(a.Button,{isPrimary:!0,isBusy:d,label:(0,r.__)("Add attribute","woocommerce"),disabled:!c||d,onClick:t},(0,r.__)("Add","woocommerce"))))}))};let v=0;const w=({value:e=[],onChange:t,placeholder:o,disabled:i,attributeId:w,label:g="",autoCreateOnSelect:f=!0,readOnlyWhenClosed:E=!1})=>{const b=(0,n.useRef)("woocommerce-attribute-term-field-"+ ++v),[C,x]=(0,n.useState)([]),[y,A]=(0,n.useState)(!1),[k,S]=(0,n.useState)(!1),[P,V]=(0,n.useState)(),{createNotice:B}=(0,l.useDispatch)("core/notices"),{createProductAttributeTerm:M,invalidateResolutionForStoreSelector:F}=(0,l.useDispatch)(m.experimentalProductAttributeTermsStore),L=(0,n.useCallback)(e=>(A(!0),(0,l.resolveSelect)(m.experimentalProductAttributeTermsStore).getProductAttributeTerms({search:e||"",attribute_id:w}).then(e=>(x(e||[]),A(!1),e),e=>(A(!1),e))),[w]),N=(0,u.useDebounce)(L,250);(0,n.useEffect)(()=>{i||void 0===w||C.length||L()},[i,w]);const T=o=>{t(e.filter(e=>e.slug!==o.slug))},D=()=>{const e=document.querySelector("."+b.current+" .woocommerce-experimental-select-control__input");e&&setTimeout(()=>{e.focus()},0)},H=o=>{-99!==o.id?e.find(e=>e.slug===o.slug)?T(o):t([...e,o]):f?((async o=>{(0,s.recordEvent)("product_attribute_term_add",{source:h.bG}),S(!0);try{const r=await M({...o,attribute_id:w});(0,s.recordEvent)("product_attribute_term_add_success",{source:h.bG}),t([...e,r]),F("getProductAttributeTerms"),S(!1)}catch(e){let t={source:h.bG,code:"Unknown error.",message:"An unknown error occurred."},o=(0,r.__)("Failed to create attribute term.","woocommerce");const n=e;n?.code&&n?.message&&(t={...t,code:n.code,message:n.message},"term_exists"===n.code&&(o=(0,r.__)("Attribute term already exists.","woocommerce"))),(0,s.recordEvent)("product_attribute_term_add_failed",t),B("error",o),S(!1)}})({name:o.name,slug:(0,p.cleanForSlug)(o.name)}),D()):V(o.name)},z=(e||[]).map(e=>e.slug);return(0,n.createElement)(n.Fragment,null,(0,n.createElement)(c.__experimentalSelectControl,{items:C,multiple:!0,disabled:i||!w,label:g,getFilteredItems:(e,t)=>t.length>0&&!e.find(e=>e.name.toLowerCase()===t.toLowerCase())?[...e,{id:-99,name:t}]:e,onInputChange:N,placeholder:o||"",getItemLabel:e=>e?.name||"",getItemValue:e=>e?.slug||"",stateReducer:(e,t)=>{const{changes:o,type:r}=t;switch(r){case c.selectControlStateChangeTypes.ControlledPropUpdatedSelectedItem:const t=k?{isOpen:k}:{};return{...o,...t,inputValue:e.inputValue};case c.selectControlStateChangeTypes.ItemClick:return o.selectedItem&&-99===o.selectedItem.id?o:{...o,isOpen:!0,inputValue:e.inputValue,highlightedIndex:e.highlightedIndex};default:return o}},selected:e,onSelect:H,onRemove:T,readOnlyWhenClosed:E,className:"woocommerce-attribute-term-field "+b.current,__experimentalOpenMenuOnFocus:!0},({items:e,highlightedIndex:t,getItemProps:o,getMenuProps:i,isOpen:s})=>(0,n.createElement)(c.__experimentalSelectControlMenu,{isOpen:s,getMenuProps:i},[y||k?(0,n.createElement)("div",{key:"loading-spinner",className:"woocommerce-attribute-term-field__loading-spinner"},(0,n.createElement)(a.Spinner,null)):null,...e.map((e,i)=>{const s=z.includes(e.slug);return(0,n.createElement)(c.__experimentalSelectControlMenuItem,{key:`${e.slug}`,index:i,isActive:t===i,item:e,getItemProps:o},-99!==e.id?(0,n.createElement)(a.CheckboxControl,{onChange:()=>null,checked:s,label:(0,n.createElement)("span",null,e.name)}):(0,n.createElement)("div",{className:"woocommerce-attribute-term-field__add-new"},(0,n.createElement)(a.Icon,{icon:d.A,size:20,className:"woocommerce-attribute-term-field__add-new-icon"}),(0,n.createElement)("span",null,(0,r.sprintf)((0,r.__)('Create "%s"',"woocommerce"),e.name))))})].filter(e=>null!==e))),!f&&P&&void 0!==w&&(0,n.createElement)(_,{initialAttributeTermName:P,onCancel:()=>{V(void 0),D()},attributeId:w,onCreated:e=>{H(e),V(void 0),F("getProductAttributeTerms"),D()}}))};function g(e){return null!==e&&"object"==typeof e&&!!e.label}const f=({value:e=[],onChange:t,placeholder:o,disabled:i,label:s})=>{const[l,u]=(0,n.useState)(e),m=o=>{t(e.filter(e=>e!==o))};return(0,n.createElement)(n.Fragment,null,(0,n.createElement)(c.__experimentalSelectControl,{items:l,multiple:!0,disabled:i,label:s||"",placeholder:o||"",getItemLabel:e=>g(e)?e.label:e||"",getItemValue:e=>g(e)?e.id:e||"",getFilteredItems:(e,t)=>{const o=e.filter(e=>!t.length||!g(e)&&e.toLowerCase().includes(t.toLowerCase()));return t.length>0&&!o.find(e=>!g(e)&&e.toLowerCase()===t.toLowerCase())?[...o,{id:"is-new",label:t}]:o},selected:e,onSelect:o=>{if(g(o))return u([...l,o.label]),void t([...e,o.label]);e.includes(o)?m(o):t([...e,o])},onRemove:m,className:"woocommerce-attribute-term-field"},({items:t,highlightedIndex:o,getItemProps:i,getMenuProps:s,isOpen:l})=>(0,n.createElement)(c.__experimentalSelectControlMenu,{isOpen:l,getMenuProps:s},t.map((t,s)=>(0,n.createElement)(c.__experimentalSelectControlMenuItem,{key:`${g(t)?t.id:t}`,index:s,isActive:o===s,item:t,getItemProps:i},g(t)?(0,n.createElement)("div",{className:"woocommerce-attribute-term-field__add-new"},(0,n.createElement)(a.Icon,{icon:d.A,size:20,className:"woocommerce-attribute-term-field__add-new-icon"}),(0,n.createElement)("span",null,(0,r.sprintf)((0,r.__)('Create "%s"',"woocommerce"),t.label))):(0,n.createElement)(a.CheckboxControl,{onChange:()=>null,checked:e.includes(t),label:(0,n.createElement)("span",null," ",t," ")}))))))};var E=o(81079);function b(e){return 0!==e.id?e.id:e.name}const C=e=>`${e.id}-${e.name}`,x=e=>!!e?.name.length&&(e=>!(!e?.terms?.length&&!e?.options?.length))(e),y=({title:e=(0,r.__)("Edit attribute","woocommerce"),nameLabel:t=(0,r.__)("Name","woocommerce"),globalAttributeHelperMessage:o,customAttributeHelperMessage:i=(0,r.__)("Your customers will see this on the product page","woocommerce"),termsLabel:s=(0,r.__)("Values","woocommerce"),termsPlaceholder:l=(0,r.__)("Search or create value","woocommerce"),isDefaultLabel:u=(0,r.__)("Set default value","woocommerce"),isDefaultTooltip:d=(0,r.__)("Check to preselect the first choice when customers enter the product page.","woocommerce"),useAsFilterLabel:m=(0,r.__)("Use as filter","woocommerce"),useAsFilterTooltip:p=(0,r.__)("Check to allow customers to search and filter by this option in your store.","woocommerce"),visibleLabel:h=(0,r.__)("Show in product details","woocommerce"),visibleTooltip:_=(0,r.__)("Check to show this option and its values in the product details section on the product page.","woocommerce"),cancelAccessibleLabel:v=(0,r.__)("Cancel","woocommerce"),cancelLabel:g=(0,r.__)("Cancel","woocommerce"),updateAccessibleLabel:b=(0,r.__)("Edit attribute","woocommerce"),updateLabel:x=(0,r.__)("Update","woocommerce"),onCancel:y,onEdit:A,attribute:k,attributes:S})=>{const[P,V]=(0,n.useState)({...k}),B=0===P?.id,{additions:M,deletions:F}=(0,n.useMemo)(()=>{if(!k.variation)return{};const e=S.filter(e=>C(e)!==C(k)).reduce((e,{terms:t})=>e*(t?.length??1),1),t=k.terms?.length??0,o=e*t,r=t+(P?.terms?.filter(e=>!k.terms?.some(t=>t.id===e.id))?.length??0)||1,n=k.terms?.filter(e=>P?.terms?.some(t=>e.id===t.id))?.length??0;return{additions:Math.abs(o-e*r),deletions:Math.abs(o-e*n)}},[S,k,P]);return(0,n.createElement)(n.Fragment,null,(0,n.createElement)(a.Modal,{title:e,onRequestClose:()=>y(),className:"woocommerce-edit-attribute-modal"},(0,n.createElement)("div",{className:"woocommerce-edit-attribute-modal__body"},(0,n.createElement)(a.TextControl,{label:t,disabled:!B,value:P?.name?P?.name:"",onChange:e=>V({...P,name:e})}),(0,n.createElement)("p",{className:"woocommerce-edit-attribute-modal__helper-text"},B?i:o),k.terms?(0,n.createElement)(w,{label:s,placeholder:P?.terms&&P?.terms.length>0?"":l,value:P?.terms,attributeId:P?.id,onChange:e=>{V({...P,terms:e})}}):(0,n.createElement)(f,{label:s,placeholder:P?.options&&P?.options.length>0?"":l,disabled:!k?.name,value:P?.options,onChange:e=>{V({...P,options:e})}}),(0,n.createElement)("div",{className:"woocommerce-edit-attribute-modal__options"},k.variation&&(0,n.createElement)("div",{className:"woocommerce-edit-attribute-modal__option-container"},(0,n.createElement)(a.CheckboxControl,{onChange:e=>V({...P,isDefault:e}),checked:P?.isDefault,label:u}),(0,n.createElement)(c.__experimentalTooltip,{className:"woocommerce-edit-attribute-modal__tooltip-set-default-value",text:d})),(0,n.createElement)("div",{className:"woocommerce-edit-attribute-modal__option-container"},(0,n.createElement)(a.CheckboxControl,{onChange:e=>V({...P,visible:e}),checked:P?.visible,label:h}),(0,n.createElement)(c.__experimentalTooltip,{className:"woocommerce-edit-attribute-modal__tooltip-show-in-product-details",text:_})),0!==k.id&&(0,n.createElement)("div",{className:"woocommerce-edit-attribute-modal__option-container"},(0,n.createElement)(a.CheckboxControl,{disabled:!0,onChange:()=>{},checked:!0,label:m}),(0,n.createElement)(c.__experimentalTooltip,{className:"woocommerce-edit-attribute-modal__tooltip-use-as-filter",text:p}))),Boolean(M||F)&&(0,n.createElement)(E.$,null,function(){const e=(0,r.sprintf)((0,r.__)("%d variations will be added","woocommerce"),M),t=(0,r.sprintf)((0,r.__)("%d variations will be removed","woocommerce"),F);return M&&F?(0,r.sprintf)("%1$s, %2$s.",e,t):M?(0,r.sprintf)("%s.",e):(0,r.sprintf)("%s.",t)}())),(0,n.createElement)("div",{className:"woocommerce-edit-attribute-modal__buttons"},(0,n.createElement)(a.Button,{isSecondary:!0,label:v,onClick:()=>y()},g),(0,n.createElement)(a.Button,{isPrimary:!0,label:b,onClick:()=>{A(P)}},x))),(0,n.createElement)(c.__experimentalSelectControlMenuSlot,null))};var A=o(91218);function k({width:e=24,height:t=24,...o}){return(0,n.createElement)("svg",{...o,width:e,height:t,viewBox:`0 0 ${e} ${t}`,fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,n.createElement)("g",null,(0,n.createElement)("path",{d:"M10 17.5H14V16H10V17.5ZM6 6V7.5H18V6H6ZM8 12.5H16V11H8V12.5Z",fill:"#949494"}),(0,n.createElement)("rect",{x:"16.7734",y:"4",width:"1.22727",height:"16",transform:"rotate(30 16.7734 4)",fill:"#949494"}),(0,n.createElement)("rect",{x:"16",y:"3",width:"1.22727",height:"16",transform:"rotate(30 16 3)",fill:"white"})),(0,n.createElement)("defs",null,(0,n.createElement)("clipPath",{id:"clip0_4951_450432"},(0,n.createElement)("rect",{width:"24",height:"24",fill:"white"}))))}var S=o(51259);const P=(0,r.__)("Visible in product details","woocommerce"),V=(0,r.__)("Custom attribute. Customers can’t filter or search by it to find this product","woocommerce"),B=({attribute:e,editLabel:t=(0,r.__)("Edit","woocommerce"),removeLabel:o=(0,r.__)("Remove attribute","woocommerce"),onDragStart:i,onDragEnd:s,onEditClick:l,onRemoveClick:u})=>(0,n.createElement)(c.ListItem,{className:"woocommerce-attribute-list-item",onDragStart:i,onDragEnd:s},(0,n.createElement)("div",null,e.name),(0,n.createElement)("div",null,e.options.slice(0,e.options.length>3?2:3).map(e=>(0,n.createElement)(c.Tag,{key:e,label:e})),e.options.length>3&&(0,n.createElement)(c.Tag,{label:(0,r.sprintf)((0,r.__)("+ %d more","woocommerce"),e.options.length-2)})),(0,n.createElement)("div",{className:"woocommerce-attribute-list-item__actions"},0===e.id&&(0,n.createElement)(a.Tooltip,{className:"woocommerce-attribute-list-item__actions-tooltip",position:"top center",text:V},(0,n.createElement)("div",{className:"woocommerce-attribute-list-item__actions-icon-wrapper"},(0,n.createElement)(k,{className:"woocommerce-attribute-list-item__actions-icon-wrapper-icon"}))),e.visible&&(0,n.createElement)(a.Tooltip,{className:"woocommerce-attribute-list-item__actions-tooltip",placement:"top",text:P},(0,n.createElement)("div",{className:"woocommerce-attribute-list-item__actions-icon-wrapper"},(0,n.createElement)(S.A,{className:"woocommerce-attribute-list-item__actions-icon-wrapper-icon"}))),"function"==typeof l&&(0,n.createElement)(a.Button,{variant:"tertiary",onClick:()=>l(e)},t),"function"==typeof u&&(0,n.createElement)(a.Button,{icon:A.A,label:o,onClick:()=>u(e)})));var M=o(4921);const F=a.ComboboxControl;function L(e){return{label:e.name,value:`attr-${e.id}`,disabled:!!e.isDisabled}}const N={label:"",value:"",state:"draft"};function T(e){const{item:t}=e;return t.disabled?(0,n.createElement)("div",{className:"item-wrapper is-disabled"},t.label):(0,n.createElement)("div",{className:"item-wrapper"},t.label)}var D=({label:e,help:t,current:o=null,items:c=[],instanceNumber:i=0,isLoading:s=!1,onAddNew:l,onChange:u})=>{const[d,m]=(0,n.useState)(N),p=c?.map(L),h=(0,n.useMemo)(()=>d.label.length?[...p,{label:"draft"===d.state?(0,r.sprintf)((0,r.__)('Create "%s"',"woocommerce"),d.label):d.label,value:d.value}]:p,[p,d]);let _=o?`attr-${o.id}`:"";"creating"===d.state&&(_="create-attribute");const v=(0,n.useRef)(null),[w,g]=(0,n.useState)("");return(0,n.useEffect)(()=>{if(!v?.current)return;const e=v.current.querySelector("input.components-combobox-control__input"),t=e?.getAttribute("id");e&&"string"==typeof t&&g(t);const o=v.current.querySelector(".components-combobox-control__suggestions-container"),r={zIndex:1e3-i};o&&Object.assign(o.style,r)},[i]),t||(t=(0,n.createElement)("div",{className:"woocommerce-attributes-combobox-help"},(0,r.__)("Select an attribute or type to create.","woocommerce")),s?t=(0,n.createElement)("div",{className:"woocommerce-attributes-combobox-help"},(0,n.createElement)(a.Spinner,null),(0,r.__)("Loading…","woocommerce")):c.length||(t=(0,n.createElement)("div",{className:"woocommerce-attributes-combobox-help"},(0,r.__)("No attributes yet. Type to create.","woocommerce")))),(0,n.createElement)("div",{className:(0,M.A)("woocommerce-attributes-combobox-container",{"no-items":!h.length}),ref:v},(0,n.createElement)(a.BaseControl,{label:e,help:t,id:w},(0,n.createElement)(F,{className:"woocommerce-attributes-combobox",allowReset:!1,options:h,value:_,onChange:e=>{if(!e)return;if("create-attribute"===e)return m({...d,state:"creating"}),l?.(d.label);const t=c?.find(t=>t.id===Number(e.replace("attr-","")));t&&!t.isDisabled&&u(t)},onFilterValueChange:e=>{m({label:e,value:"create-attribute",state:"draft"})},__experimentalRenderItem:T})))};const H=a.FormTokenField,z=e=>({value:"string"==typeof e?e:e.value,slug:"string"==typeof e?(0,p.cleanForSlug)(e):(0,p.cleanForSlug)(e.value)}),j=e=>"string"==typeof e?e:e.value,I=({index:e,attribute:t,attributePlaceholder:o,disabledAttributeMessage:c,isLoadingAttributes:i,attributes:s,onNewAttributeAdd:u,onAttributeSelect:d,termPlaceholder:h,onTermsSelect:_,termsAutoSelection:v,clearButtonDisabled:w,removeLabel:g,onRemove:f})=>{const E=t?t.id:void 0,{createProductAttributeTerm:b}=(0,l.useDispatch)(m.experimentalProductAttributeTermsStore),C=(0,n.useMemo)(()=>({search:"",attribute_id:E,per_page:100}),[E]),x=(0,l.useSelect)(e=>{const{getProductAttributeTerms:t}=e(m.experimentalProductAttributeTermsStore);return E?t(C):[]},[E,C]),[y,k]=(0,n.useState)(t?.options?.map(z)||[]),[S,P]=(0,n.useState)([]),V=0===t?.id,B=[...(V?y.map(j):x?.map(e=>e.name))||[]||[],...S.map(j)].filter((e,t,o)=>o.indexOf(e)===t),M=[...(V?t.options?.map(z):t?.terms?.map(({name:e})=>z(e)))||[]||[],...S],[F,L]=(0,n.useState)(!1);(0,n.useEffect)(()=>{if(v&&!F&&t&&x?.length){if(L(!0),"first"===v)return _([x[0]],e,t);_(x.slice(0,20),e,t)}},[v,F,t,x,_,e]);const N=s?.filter(e=>e.id===E||void 0===e?.takenBy||e.takenBy<0),T=B?.length&&B.length>(M?.length||0);return(0,n.createElement)("tr",{key:e,className:`woocommerce-new-attribute-modal__table-row woocommerce-new-attribute-modal__table-row-${e}`},(0,n.createElement)("td",{className:"woocommerce-new-attribute-modal__table-attribute-column"},(0,n.createElement)(D,{instanceNumber:e,placeholder:o,current:t,items:N,isLoading:i,onAddNew:t=>u?.(t,e),onChange:t=>{t.id!==E&&(d(t,e),L(!1))},disabledAttributeMessage:c})),(0,n.createElement)("td",{className:"woocommerce-new-attribute-modal__table-attribute-value-column"+(T?" has-values":"")},(0,n.createElement)(H,{placeholder:h,disabled:!t,suggestions:B,value:M,onChange:o=>{if(!t)return;const n=o.filter(e=>"string"==typeof e).map(z),a=o.map(e=>j(e));if(V)return k(e=>[...e,...n.map(z)]),void _(a,e,t);const c=B.map(p.cleanForSlug),i=n.filter(e=>!c.includes(e.slug)),s=x?.filter(e=>a.includes(e.name));_(s,e,t),i.length&&async function(o){if(!t)return;P(e=>[...e,...o]);const n=o.map(async e=>{try{return await b({name:e.value,slug:e.slug,attribute_id:E},{optimisticQueryUpdate:C,optimisticUrlParameters:E?[E]:[]})}catch(t){return void(0,l.dispatch)("core/notices").createErrorNotice((0,r.sprintf)((0,r.__)('There was an error trying to create the attribute term "%s".',"woocommerce"),e.value))}}),a=(await Promise.all(n)).filter(e=>void 0!==e);P(e=>e.filter(e=>!o.includes(e)));const c=(0,l.select)(m.experimentalProductAttributeTermsStore).getProductAttributeTerms(C),i=c?.filter(e=>M.map(e=>e.value).includes(e.name))??[];_([...i,...a],e,t)}(i.map(e=>({...e,status:"validating"})))},__experimentalExpandOnFocus:!0,__experimentalAutoSelectFirstMatch:!0,__experimentalShowHowTo:!0})),(0,n.createElement)("td",{className:"woocommerce-new-attribute-modal__table-attribute-trash-column"},(0,n.createElement)(a.Button,{icon:A.A,disabled:w,label:g,onClick:()=>f(e)})))},R={order_by:"name"},O=({title:e=(0,r.__)("Add attributes","woocommerce"),description:t="",notice:o,attributeLabel:i=(0,r.__)("Attribute","woocommerce"),valueLabel:u=(0,r.__)("Values","woocommerce"),attributePlaceholder:d=(0,r.__)("Search or create attribute","woocommerce"),termPlaceholder:p=(0,r.__)("Search or create value","woocommerce"),removeLabel:_=(0,r.__)("Remove attribute","woocommerce"),addAnotherAccessibleLabel:v=(0,r.__)("Add another attribute","woocommerce"),addAnotherLabel:w=(0,r.__)("+ Add another","woocommerce"),cancelLabel:g=(0,r.__)("Cancel","woocommerce"),addAccessibleLabel:f=(0,r.__)("Add attributes","woocommerce"),addLabel:E=(0,r.__)("Add","woocommerce"),onCancel:b,onAdd:C,onAddAnother:y=()=>{},onRemoveItem:A=()=>{},selectedAttributeIds:k=[],createNewAttributesAsGlobal:S=!1,disabledAttributeIds:P=[],disabledAttributeMessage:V=(0,r.__)("Already used in Attributes","woocommerce"),termsAutoSelection:B,defaultVisibility:M=!1,defaultSearch:F})=>{const L=e=>0!==e.id,N=e=>{return L(e)?(t=e.terms)?t.map(e=>e.name):[]:e.options;var t};(0,n.useEffect)(function(){const e=document.querySelector(".woocommerce-new-attribute-modal__table-row .woocommerce-attribute-input-field label"),t=setTimeout(()=>{e?.focus()},100);return()=>clearTimeout(t)},[]);const T={name:F},{attributes:D,isLoadingAttributes:H}=(0,l.useSelect)(e=>{const{getProductAttributes:t,hasFinishedResolution:o}=e(m.EXPERIMENTAL_PRODUCT_ATTRIBUTES_STORE_NAME);return{isLoadingAttributes:!o("getProductAttributes",[R]),attributes:t(R)}},[]),{createErrorNotice:z}=(0,l.useDispatch)("core/notices"),{createProductAttribute:j}=(0,l.useDispatch)(m.experimentalProductAttributesStore);return(0,n.createElement)(n.Fragment,null,(0,n.createElement)(c.Form,{initialValues:{attributes:[F?T:null]}},({values:c,setValue:l})=>{const m=!c.attributes.every(e=>x(e));function F(e,t){return(0,s.recordEvent)("product_attribute_add_custom_attribute",{source:h.bG}),l(`attributes[${t}]`,e)}function T(e,t){if(!S)return l(`attributes[${t}]`,{id:0,name:e,slug:e});j({name:e,generate_slug:!0},{optimisticQueryUpdate:R}).then(e=>{l(`attributes[${t}]`,e)}).catch(e=>{let t=(0,r.__)("Failed to create new attribute.","woocommerce");"woocommerce_rest_cannot_create"===e.code&&(t=e.message),z(t,{explicitDismiss:!0})})}function O(e,t,o){const r=o&&L(o)?"terms":"options";l(`attributes[${t}].${r}`,e)}const G=c.attributes.map(e=>e?e.id:null).filter(e=>"number"==typeof e),$=D?.filter(e=>!k.includes(e.id))?.map(e=>({...e,isDisabled:P.includes(e.id),takenBy:G.indexOf(e.id)}));return(0,n.createElement)(a.Modal,{title:e,onRequestClose:e=>{e?.isPropagationStopped()||b()},className:"woocommerce-new-attribute-modal",size:"medium"},o&&(0,n.createElement)(a.Notice,{isDismissible:!1},(0,n.createElement)("p",null,o)),t&&(0,n.createElement)("p",null,t),(0,n.createElement)("div",{className:"woocommerce-new-attribute-modal__body"},(0,n.createElement)("table",{className:"woocommerce-new-attribute-modal__table"},(0,n.createElement)("thead",null,(0,n.createElement)("tr",{className:"woocommerce-new-attribute-modal__table-header"},(0,n.createElement)("th",null,i),(0,n.createElement)("th",null,u))),(0,n.createElement)("tbody",null,c.attributes.map((e,t)=>(0,n.createElement)(I,{key:t,index:t,attribute:e,attributePlaceholder:d,disabledAttributeMessage:V,isLoadingAttributes:H,attributes:$,onNewAttributeAdd:T,onAttributeSelect:F,termPlaceholder:p,removeLabel:_,onTermsSelect:O,onRemove:e=>((e,t,o)=>{A(),t.attributes.length>1?o("attributes",t.attributes.filter((t,o)=>o!==e)):o(`attributes[${e}]`,null)})(e,c,l),termsAutoSelection:B}))))),(0,n.createElement)("div",null,(0,n.createElement)(a.Button,{className:"woocommerce-new-attribute-modal__add-attribute",variant:"tertiary",label:v,onClick:()=>{((e,t)=>{var o;t("attributes",[...e.attributes,null]),o=e.attributes.length,setTimeout(()=>{const e=document.querySelector(`.woocommerce-new-attribute-modal__table-row-${o}`);e?.scrollIntoView({behavior:"smooth"})},0),y()})(c,l)}},w)),(0,n.createElement)("div",{className:"woocommerce-new-attribute-modal__buttons"},(0,n.createElement)(a.Button,{isSecondary:!0,label:g,onClick:()=>b()},g),(0,n.createElement)(a.Tooltip,{text:m?(0,r.__)("Add at least one attribute and one value. Press Enter to select.","woocommerce"):""},(0,n.createElement)("div",null,(0,n.createElement)(a.Button,{variant:"primary",label:f,showTooltip:!0,disabled:m,onClick:()=>(e=>{const t=[];e.attributes.forEach(e=>{var o;x(e)&&t.push({...e,visible:(o=e,void 0!==o.visible?o.visible:M),options:N(e)})}),C(t)})(c)},E)))))}),(0,n.createElement)(c.__experimentalSelectControlMenuSlot,null))};var G=o(68097),$=o(38909),Z=o(2337),U=o(41198);const q=({value:e,onAdd:t=()=>{},onAddAnother:o=()=>{},onRemoveItem:l=()=>{},onChange:u,onEdit:d=()=>{},onNewModalCancel:m=()=>{},onNewModalClose:p=()=>{},onNewModalOpen:_=()=>{},onEditModalCancel:v=()=>{},onEditModalClose:w=()=>{},onEditModalOpen:g=()=>{},onRemove:f=()=>{},onRemoveCancel:E=()=>{},onNoticeDismiss:x=()=>{},renderCustomEmptyState:A,uiStrings:k,createNewAttributesAsGlobal:S=!1,useRemoveConfirmationModal:P=!1,disabledAttributeIds:V=[],termsAutoSelection:M,defaultVisibility:F=!1})=>{k={newAttributeListItemLabel:(0,r.__)("Add new","woocommerce"),globalAttributeHelperMessage:(0,r.__)("You can change the attribute's name in <link>Attributes</link>.","woocommerce"),attributeRemoveConfirmationMessage:(0,r.__)("Remove this attribute?","woocommerce"),...k};const[L,N]=(0,n.useState)(!1),[T,D]=(0,n.useState)(),[H,z]=(0,n.useState)(),[j,I]=(0,n.useState)(null),R=e=>{u(e.map(e=>({...e,options:e.terms?e.terms.map(e=>e.name):e.options,terms:void 0,visible:e.visible||!1})))},q=t=>{R(e.filter(e=>C(e)!==C(t))),f(t),z(null)},W=()=>{N(!0),_()},J=()=>{N(!1),D(void 0),p()},Y=e=>{I(null),w(e)},K=e.sort((e,t)=>e.position-t.position),X=e.reduce((e,t)=>(e[b(t)]=t,e),{}),Q=e.find(e=>C(e)===j);return(0,n.createElement)("div",{className:"woocommerce-attribute-field"},A&&0===e.length?null:(0,n.createElement)(Z.V,null,k?.newAttributeListItemLabel&&(0,n.createElement)(a.Button,{variant:"secondary",className:"woocommerce-add-attribute-list-item__add-button",onClick:W},k.newAttributeListItemLabel)),k.notice&&(0,n.createElement)(a.Notice,{isDismissible:!0,status:"warning",className:"woocommerce-attribute-field__notice",onRemove:x},(0,n.createElement)("p",null,k.notice)),Boolean(e.length)&&(0,n.createElement)(c.Sortable,{onOrderChange:e=>{const t=e.reduce((e,{props:t},o)=>(e[b(t.attribute)]=o,e),{});u(function(e,t){return Object.keys(t).map(o=>isNaN(e[o])?{...t[o]}:{...t[o],position:e[o]})}(t,X))}},K.map(e=>(0,n.createElement)(B,{attribute:e,removeLabel:k?.attributeRemoveLabel,key:C(e),onEditClick:()=>{return t=e,(0,s.recordEvent)("product_options_edit",{source:h.bG,attribute:t.name}),I(C(t)),void g(t);var t},onRemoveClick:()=>{return t=e,void(P?z(t):window.confirm(k?.attributeRemoveConfirmationMessage)?q(t):E(t));var t}}))),L&&(0,n.createElement)(O,{title:k.newAttributeModalTitle,description:k.newAttributeModalDescription,onCancel:()=>{J(),m()},onAdd:o=>{const r=o.filter(t=>!e.some(e=>C(t)===C(e)));R([...e,...r]),t(o),J()},onAddAnother:o,onRemoveItem:l,selectedAttributeIds:e.map(e=>e.id),createNewAttributesAsGlobal:S,disabledAttributeIds:V,disabledAttributeMessage:k.disabledAttributeMessage,termsAutoSelection:M,defaultVisibility:F,defaultSearch:T}),(0,n.createElement)(c.__experimentalSelectControlMenuSlot,null),Q&&(0,n.createElement)(y,{title:(0,r.sprintf)((0,r.__)("Edit %s","woocommerce"),Q.name),customAttributeHelperMessage:k.customAttributeHelperMessage,globalAttributeHelperMessage:k.globalAttributeHelperMessage?(0,n.createInterpolateElement)(k.globalAttributeHelperMessage,{link:(0,n.createElement)(c.Link,{href:(0,i.getAdminLink)("edit.php?post_type=product&page=product_attributes"),target:"_blank",type:"wp-admin"},(0,n.createElement)(n.Fragment,null))}):void 0,onCancel:()=>{Y(Q),v(Q)},onEdit:t=>{(t=>{(0,s.recordEvent)("product_options_update",{source:h.bG,attribute:t.name,values:t.terms?.map(e=>e.name),default:t.isDefault,visible:t.visible,filter:!0});const o=e.map(e=>C(e)===C(t)?t:e);d(t),R(o),Y(t)})(t)},attribute:Q,attributes:e}),H&&(0,n.createElement)(G.z,{title:(0,r.sprintf)((0,r.__)("Delete %(attributeName)s","woocommerce"),{attributeName:H.name}),description:(0,n.createElement)("p",null,k.attributeRemoveConfirmationModalMessage),onRemove:()=>q(H),onCancel:()=>{E(H),z(null)}}),e.length?null:A?A({addAttribute(e){D(e),W()}}):(0,n.createElement)($.p,{names:(0,U.E)((0,r.__)("Attribute","woocommerce"),3)}))}},10441:(e,t,o)=>{"use strict";o.d(t,{e:()=>i});var r=o(86087),n=o(27723),a=o(83306),c=o(29462);const i=({value:e,onChange:t,attributeList:o=[]})=>(0,r.createElement)(c.W,{value:o,disabledAttributeIds:e.filter(e=>!!e.variation).map(e=>e.id),uiStrings:{disabledAttributeMessage:(0,n.__)("Already used in Variations","woocommerce")},onAdd:()=>{(0,a.recordEvent)("product_add_attributes_modal_add_button_click")},onChange:t,onNewModalCancel:()=>{(0,a.recordEvent)("product_add_attributes_modal_cancel_button_click")},onNewModalOpen:()=>{o.length?(0,a.recordEvent)("product_add_attribute_button"):(0,a.recordEvent)("product_add_first_attribute_button_click")},onAddAnother:()=>{(0,a.recordEvent)("product_add_attributes_modal_add_another_attribute_button_click")},onRemoveItem:()=>{(0,a.recordEvent)("product_add_attributes_modal_remove_attribute_button_click")},onRemove:()=>(0,a.recordEvent)("product_remove_attribute_confirmation_confirm_click"),onRemoveCancel:()=>(0,a.recordEvent)("product_remove_attribute_confirmation_cancel_click"),termsAutoSelection:"first",defaultVisibility:!0})},42009:(e,t,o)=>{"use strict";o.d(t,{t:()=>c});var r=o(94715),n=o(47143),a=o(86087);function c({clientId:e}){const t=(0,n.useSelect)(t=>{const{getBlockAttributes:o,getBlockName:r}=t("core/block-editor"),n=o(e);if(n?.icon)return n.icon;const{getBlockType:a}=t("core/blocks"),c=a(r(e)??void 0);return c?.icon},[e]);if(!t)return null;if("object"==typeof t){const{src:e,...o}=t;if(/^<(.)+>$/.test(e)){const t=(0,a.createElement)(a.RawHTML,{"aria-hidden":"true",...o},e);return(0,a.createElement)(r.BlockIcon,{icon:t,showColors:!0})}if(/^https?:\/\/(.)+/.test(e)){const t=(0,a.createElement)("img",{src:e,alt:"","aria-hidden":"true",...o,height:24,width:24});return(0,a.createElement)(r.BlockIcon,{icon:t,showColors:!0})}}return(0,a.createElement)(r.BlockIcon,{icon:t,showColors:!0})}},92218:(e,t,o)=>{"use strict";o.d(t,{P:()=>s});var r=o(56427),n=o(47143),a=o(86087),c=o(94715),i=o(74021);function s({name:e,slotContainerBlockName:t,...o}){const{clientId:s}=(0,c.useBlockEditContext)(),l=(0,n.useSelect)(e=>{const{getBlockParentsByBlockName:o}=e("core/block-editor"),[r]=o(s,t,!0);return r},[s,t]);return l?(0,a.createElement)(r.Fill,{...o,name:(0,i.m)(e,l)}):(console.warn("No closest ancestor client ID found for block fill."),null)}},61219:(e,t,o)=>{"use strict";o.d(t,{A:()=>i});var r=o(56427),n=o(86087),a=o(94715),c=o(74021);function i({name:e,...t}){const{clientId:o}=(0,a.useBlockEditContext)();return(0,n.createElement)(r.Slot,{...t,name:(0,c.m)(e,o)})}},2337:(e,t,o)=>{"use strict";o.d(t,{V:()=>c});var r=o(86087),n=o(92218);const a=["woocommerce/product-section","woocommerce/product-subsection"];function c({containerBlockName:e=a,...t}){return(0,r.createElement)(n.P,{...t,name:"section-actions",slotContainerBlockName:e})}},74021:(e,t,o)=>{"use strict";function r(e,t){return`${e}-${t}`}o.d(t,{m:()=>r})},37532:(e,t,o)=>{"use strict";o.d(t,{ButtonWithDropdownMenu:()=>i});var r=o(86087),n=o(64816),a=o(56427),c=o(27723);function i({dropdownButtonLabel:e=(0,c.__)("More options","woocommerce"),controls:t,defaultOpen:o=!1,popoverProps:{placement:i="bottom-end",position:s="bottom left left",offset:l=0}={placement:"bottom-end",position:"bottom left left",offset:0},className:u,renderMenu:d,onToggle:m,...p}){return(0,r.createElement)(a.Flex,{className:"woocommerce-button-with-dropdown-menu"+(u?.length?" "+u:""),justify:"left",gap:0,expanded:!1,role:"group"},(0,r.createElement)(a.FlexItem,{role:"none"},(0,r.createElement)(a.Button,{...p,className:"woocommerce-button-with-dropdown-menu__main-button"})),(0,r.createElement)(a.FlexItem,{role:"none"},(0,r.createElement)(a.DropdownMenu,{toggleProps:{className:"woocommerce-button-with-dropdown-menu__dropdown-button",variant:p.variant},controls:t,icon:n.A,label:e,popoverProps:{placement:i,position:s,offset:l},defaultOpen:o,onToggle:m},d)))}},89551:(e,t,o)=>{"use strict";o.d(t,{y:()=>i});var r=o(86087),n=o(83306),a=o(56427),c=o(8088);function i({catalogVisibility:e,label:t,visibility:o,onCheckboxChange:i}){return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(a.CheckboxControl,{label:t,checked:e===o||"hidden"===e,onChange:t=>function(t){if(t){if("visible"===e)return i(o),void(0,n.recordEvent)("product_catalog_visibility",{source:c.bG,visibility:e});i("hidden")}else{if("hidden"===e)return"catalog"===o?(i("search"),void(0,n.recordEvent)("product_catalog_visibility",{source:c.bG,visibility:e})):"search"===o?(i("catalog"),void(0,n.recordEvent)("product_catalog_visibility",{source:c.bG,visibility:e})):void 0;i("visible"),(0,n.recordEvent)("product_catalog_visibility",{source:c.bG,visibility:e})}}(t)}))}},3113:(e,t,o)=>{"use strict";o.d(t,{S:()=>l});var r=o(86087),n=o(56427),a=o(98846),c=o(5520),i=o(72541),s=o(42435);const l=({value:e,label:t,onChange:o,tooltip:l,title:u,checkedValue:d,uncheckedValue:m,disabled:p})=>(0,r.createElement)("div",{className:"woocommerce-product-form__checkbox"},u&&(0,r.createElement)("h4",null,u),(0,r.createElement)("div",{className:"woocommerce-product-form__checkbox-wrapper"},(0,r.createElement)(n.CheckboxControl,{label:t,checked:void 0!==d?d===e:e,onChange:function(e){o(e?void 0!==d?d:e:void 0!==m?m:e)},disabled:p}),l&&(0,r.createElement)(a.__experimentalTooltip,{text:(0,r.createElement)("span",{dangerouslySetInnerHTML:{__html:(0,s.sanitizeHTML)(l)}}),position:"top center",className:"woocommerce-product-form__checkbox-tooltip"},(0,r.createElement)("span",{className:"woocommerce-product-form__checkbox-tooltip-icon"},(0,r.createElement)(c.A,{icon:i.A,size:21.94,fill:"#949494"})))))},48617:(e,t,o)=>{"use strict";o.d(t,{x:()=>s});var r=o(56427),n=o(29491),a=o(86087),c=o(4921);const i=r.ComboboxControl,s=(0,a.forwardRef)(function({id:e,name:t,allowReset:o,className:r,help:l,hideLabelFromVision:u,label:d,messages:m,value:p,options:h,onFilterValueChange:_,onChange:v,onBlur:w,__experimentalRenderItem:g},f){const E=(0,a.useRef)(),b=(0,n.useInstanceId)(s,"woocommerce-combobox-control"),C=e??b;return(0,a.useLayoutEffect)(function(){E.current=document.querySelector(`.${C} [role="combobox"]`),t&&E.current?.setAttribute("name",t),f&&("function"==typeof f?f(E.current):f.current=E.current)},[C,t,f]),(0,a.useEffect)(function(){function e(e){w?.({...e,target:{...e.target,value:p}})}return E.current?.addEventListener("blur",e),()=>{E.current?.removeEventListener("blur",e)}},[p,w]),(0,a.createElement)(i,{allowReset:o,help:l,hideLabelFromVision:u,label:d,messages:m,value:p,options:h,onChange:v,onFilterValueChange:_,className:(0,c.A)("woocommerce-combobox-control",C,r),__experimentalRenderItem:g})})},496:(e,t,o)=>{"use strict";o.d(t,{f:()=>y});var r=o(56427),n=o(86087),a=o(27723),c=o(91218),i=o(83306),s=o(4921),l=o(8088),u=o(71072),d=o(21097);function m(e,t){const o={};return e.key?e.key.startsWith("_")?o.key=(0,a.__)("The name cannot begin with the underscore (_) character.","woocommerce"):t.some(t=>t.id!==e.id&&t.key===e.key)&&(o.key=(0,a.__)("The name must be unique.","woocommerce")):o.key=(0,a.__)("The name is required.","woocommerce"),e.value||(o.value=(0,a.__)("The value is required.","woocommerce")),o}var p=o(1455),h=o.n(p),_=o(29491),v=o(93832),w=o(48617);const g=(0,n.forwardRef)(function({value:e,onBlur:t,...o},r){const[a,c]=(0,n.useState)([]),i=(0,n.useMemo)(function(){return e&&!a.some(t=>t.value===e)?[{label:e,value:e},...a]:a},[a,e]),s=(0,_.useDebounce)((0,n.useCallback)(function(t){(async function(e){return h()({path:(0,v.addQueryArgs)("/wc/v3/products/custom-fields/names",{search:e})}).then((t=[])=>{const o=[];return e&&-1===t.indexOf(e)&&o.push({value:e,label:e}),t.forEach(e=>{o.push({value:e,label:e})}),o})})(""===t?e:t).then(c)},[e]),250);return(0,n.createElement)(w.x,{...o,ref:r,value:e,options:i,onFilterValueChange:s,onBlur:function(e){c([]),t?.(e)}})}),f={id:1,key:"",value:""};function E({values:e,onCreate:t,onCancel:o,...u}){const[p,h]=(0,n.useState)([f]),[_,v]=(0,n.useState)({}),w=(0,n.useRef)({});function E(e,t){return function(o){const r=String(e.id);w.current[r]={...w.current[r],[t]:o}}}function b(e,t){return _[String(e.id)]?.[t]}function C(e,t){return function(o){h(r=>r.map(r=>r.id===e.id?{...r,[t]:o}:r))}}function x(t,o){return function(r){const n=m({...t,[o]:r.target.value},[...p,...e]),a=String(t.id);v(e=>({...e,[a]:{...e[a],[o]:n[o]}}))}}function y(e){if(!(p.length<=1))return function(){h(t=>t.filter(({id:t})=>e.id!==t)),v(t=>({...t,[`${e.id}`]:void 0}))}}return(0,n.useEffect)(function(){const e=w.current[f.id];e?.key?.focus()},[]),(0,n.createElement)(r.Modal,{shouldCloseOnClickOutside:!1,title:(0,a.__)("Add custom fields","woocommerce"),onRequestClose:o,...u,className:(0,s.A)("woocommerce-product-custom-fields__create-modal",u.className)},(0,n.createElement)("div",{role:"table"},(0,n.createElement)("div",{role:"rowgroup"},(0,n.createElement)("div",{role:"rowheader"},(0,n.createElement)("div",{role:"columnheader"},(0,a.__)("Name","woocommerce")),(0,n.createElement)("div",{role:"columnheader"},(0,a.__)("Value","woocommerce")),(0,n.createElement)("div",{role:"columnheader","aria-label":(0,a.__)("Actions","woocommerce")}))),(0,n.createElement)("div",{role:"rowgroup"},p.map(e=>(0,n.createElement)("div",{key:e.id,role:"row"},(0,n.createElement)("div",{role:"cell"},(0,n.createElement)(g,{ref:E(e,"key"),label:(0,a.__)("Name","woocommerce"),hideLabelFromVision:!0,allowReset:!1,help:b(e,"key"),value:e.key,onChange:C(e,"key"),onBlur:x(e,"key"),className:(0,s.A)({"has-error":b(e,"key")})})),(0,n.createElement)("div",{role:"cell"},(0,n.createElement)(d.x,{ref:E(e,"value"),label:"","aria-label":(0,a.__)("Value","woocommerce"),error:b(e,"value"),value:e.value,onChange:C(e,"value"),onBlur:x(e,"value")})),(0,n.createElement)("div",{role:"cell"},(0,n.createElement)(r.Button,{icon:c.A,disabled:p.length<=1,"aria-label":(0,a.__)("Remove custom field","woocommerce"),onClick:y(e)})))))),(0,n.createElement)("div",{className:"woocommerce-product-custom-fields__create-modal-add-another"},(0,n.createElement)(r.Button,{variant:"tertiary",onClick:function(){h(e=>{const t=e[e.length-1];return[...e,{...f,id:(t.id??0)+1}]}),(0,i.recordEvent)("product_custom_fields_add_another_button_click",{source:l.bG})}},(0,a.__)("+ Add another","woocommerce"))),(0,n.createElement)("div",{className:"woocommerce-product-custom-fields__create-modal-actions"},(0,n.createElement)(r.Button,{variant:"secondary",onClick:o},(0,a.__)("Cancel","woocommerce")),(0,n.createElement)(r.Button,{variant:"primary",onClick:function(){const{errors:o,hasErrors:r}=p.reduce((t,o)=>{const r=m(o,[...p,...e]);return t.errors[String(o.id)]=r,r.key&&(t.hasErrors||w.current[String(o.id)]?.key?.focus(),t.hasErrors=!0),r.value&&(t.hasErrors||w.current[String(o.id)]?.value?.focus(),t.hasErrors=!0),t},{errors:{},hasErrors:!1});r?v(o):(t(p.map(({id:e,...t})=>({key:t.key.trim(),value:t.value?.trim()}))),(0,i.recordEvent)("product_custom_fields_add_new_button_click",{source:l.bG,custom_field_names:p.map(e=>e.key),total:p.length}))}},(0,a.__)("Add","woocommerce"))))}function b({initialValue:e,values:t,onUpdate:o,onCancel:c,...u}){const[p,h]=(0,n.useState)(e),[_,v]=(0,n.useState)(),w=(0,n.useRef)(null),f=(0,n.useRef)(null);function E(e){return function(t){h(o=>({...o,[e]:t}))}}function b(e){return function(o){const r=m({...p,[e]:o.target.value},t);v(r)}}return(0,n.useEffect)(function(){w.current?.focus()},[]),(0,n.createElement)(r.Modal,{shouldCloseOnClickOutside:!1,...u,title:(0,a.sprintf)((0,a.__)("Edit %s","woocommerce"),p.key),onRequestClose:c,className:(0,s.A)("woocommerce-product-custom-fields__edit-modal",u.className)},(0,n.createElement)(g,{ref:w,label:(0,a.__)("Name","woocommerce"),allowReset:!1,help:_?.key,value:p.key,onChange:E("key"),onBlur:b("key"),className:(0,s.A)({"has-error":_?.key})}),(0,n.createElement)(d.x,{ref:f,label:(0,a.__)("Value","woocommerce"),error:_?.value,value:p.value,onChange:E("value"),onBlur:b("value")}),(0,n.createElement)("div",{className:"woocommerce-product-custom-fields__edit-modal-actions"},(0,n.createElement)(r.Button,{variant:"secondary",onClick:c},(0,a.__)("Cancel","woocommerce")),(0,n.createElement)(r.Button,{variant:"primary",onClick:function(){const r=m(p,t);if(r.key||r.value)return v(r),r.key?void w.current?.focus():void f.current?.focus();o({...p,key:p.key.trim(),value:p.value?.trim()}),(0,i.recordEvent)("product_custom_fields_update_button_click",{source:l.bG,custom_field_id:p.id,custom_field_name:p.key,prev_custom_field_name:e.key})}},(0,a.__)("Update","woocommerce"))))}var C=o(38909),x=o(41198);function y({className:e,renderActionButtonsWrapper:t=e=>e,...o}){const{customFields:d,addCustomFields:m,updateCustomField:p,removeCustomField:h}=(0,u.A)(),[_,v]=(0,n.useState)(!1),[w,g]=(0,n.useState)();function f(e){return function(){h(e),(0,i.recordEvent)("product_custom_fields_remove_button_click",{source:l.bG,custom_field_id:e.id,custom_field_name:e.key})}}return(0,n.createElement)(n.Fragment,null,t((0,n.createElement)(r.Button,{variant:"secondary",onClick:function(){v(!0),(0,i.recordEvent)("product_custom_fields_show_add_modal",{source:l.bG})}},(0,a.__)("Add new","woocommerce"))),0===d.length?(0,n.createElement)(C.p,{names:(0,x.E)((0,a.__)("Custom field","woocommerce"),3)}):(0,n.createElement)("table",{...o,className:(0,s.A)("woocommerce-product-custom-fields__table",e)},(0,n.createElement)("thead",null,(0,n.createElement)("tr",{className:"woocommerce-product-custom-fields__table-row"},(0,n.createElement)("th",null,(0,a.__)("Name","woocommerce")),(0,n.createElement)("th",null,(0,a.__)("Value","woocommerce")),(0,n.createElement)("th",null,(0,a.__)("Actions","woocommerce")))),(0,n.createElement)("tbody",null,d.map((e,t)=>{return(0,n.createElement)("tr",{className:"woocommerce-product-custom-fields__table-row",key:e.id??e.key},(0,n.createElement)("td",{className:"woocommerce-product-custom-fields__table-datacell"},e.key),(0,n.createElement)("td",{className:"woocommerce-product-custom-fields__table-datacell"},e.value),(0,n.createElement)("td",{className:"woocommerce-product-custom-fields__table-datacell"},(0,n.createElement)(r.Button,{variant:"tertiary",onClick:(o=t,function(){g(o);const e=d[o];(0,i.recordEvent)("product_custom_fields_show_edit_modal",{source:l.bG,custom_field_id:e.id,custom_field_name:e.key})})},(0,a.__)("Edit","woocommerce")),(0,n.createElement)(r.Button,{icon:c.A,onClick:f(e),"aria-label":(0,a.__)("Remove custom field","woocommerce")})));var o}))),_&&(0,n.createElement)(E,{values:d,onCreate:function(e){m(e),v(!1)},onCancel:function(){v(!1),(0,i.recordEvent)("product_custom_fields_cancel_add_modal",{source:l.bG})}}),void 0!==w&&(0,n.createElement)(b,{initialValue:d[w],values:d,onUpdate:function(e){p(e,w),g(void 0)},onCancel:function(){g(void 0),(0,i.recordEvent)("product_custom_fields_cancel_edit_modal",{source:l.bG})}}))}},57195:(e,t,o)=>{"use strict";o.d(t,{K:()=>Ce});var r=o(86087);const n=window.wc.adminLayout;var a=o(96476),c=o(47143),i=o(56427),s=o(76995),l=o(3582),u=o(53031),d=o(27723),m=o(89505),p=o(5520),h=o(27283),_=o(51717),v=o(83306),w=o(4921),g=o(98846),f=o(11753),E=o(15361),b=o(81786),C=o(94617),x=o(27932);const y=()=>(0,r.createElement)(r.Fragment,null,(0,r.createElement)(x.Y,{toggleProps:{onClick:()=>(0,v.recordEvent)("product_dropdown_click")},popoverProps:{className:"woocommerce-product-header__more-menu"}},e=>(0,r.createElement)(r.Fragment,null,(0,r.createElement)(C.o.Slot,{fillProps:{onClose:e}}))));var A=o(88437),k=o(68752);function S(e){const[t]=(0,l.useEntityProp)("postType",e,"permalink");return{getProductURL:(0,r.useCallback)(e=>{if(!t)return;const o=new URL(t);return e&&o.searchParams.append("preview","true"),o.toString()},[t])}}var P=o(87853),V=o(8088);function B({productStatus:e,visibleTab:t="general",...o}){const{createErrorNotice:n}=(0,c.useDispatch)("core/notices"),{getProductErrorMessageAndProps:s}=(0,A.u)(),u=function({productStatus:e,productType:t="product",disabled:o,onClick:n,onSaveSuccess:a,onSaveError:i,...s}){const u=(0,r.useRef)(),[m]=(0,l.useEntityProp)("postType",t,"id"),{getProductURL:p}=S(t),{hasEdits:h,isDisabled:_}=(0,c.useSelect)(e=>{const{hasEditsForEntityRecord:o,isSavingEntityRecord:r}=e("core");return{isDisabled:r("postType",t,m),hasEdits:o("postType",t,m)}},[m]),{isValidating:v,validate:w}=(0,k.G)(),g=o||_||v,{editEntityRecord:f,saveEditedEntityRecord:E}=(0,c.useDispatch)("core");return{"aria-label":(0,d.__)("Preview in new tab","woocommerce"),children:(0,d.__)("Preview","woocommerce"),target:"_blank",...s,ref(e){"function"==typeof s.ref&&s.ref(e),u.current=e},"aria-disabled":g,href:p(!0),variant:"tertiary",onClick:async function(o){if(g)return o.preventDefault();if(n&&n(o),h){o.preventDefault();try{await w(),"auto-draft"===e&&await f("postType",t,m,{status:"draft"});const o=await E("postType",t,m,{throwOnError:!0});u.current?.click(),a&&a(o)}catch(t){i&&i((0,P.$)(t,e))}}}}}({productStatus:e,...o,onClick(){(0,v.recordEvent)("product_preview_changes",{source:V.bG})},onSaveSuccess(t){if("auto-draft"===e){const e=(0,a.getNewPath)({},`/product/${t.id}`);(0,a.navigateTo)({url:e})}},async onSaveError(e){const{message:o,errorProps:r}=await s(e,t);n(o,r)}});return(0,r.createElement)(i.Button,{...u})}var M=o(78509),F=o(30884),L=o(96205);function N({productStatus:e,productType:t="product",visibleTab:o="general",...n}){const{createSuccessNotice:s,createErrorNotice:m}=(0,c.useDispatch)("core/notices"),{maybeShowFeedbackBar:p}=(0,L.A)(),{getProductErrorMessageAndProps:h}=(0,A.u)(),_=function({productStatus:e,productType:t="product",disabled:o,onClick:n,onSaveSuccess:a,onSaveError:s,...m}){const[p]=(0,l.useEntityProp)("postType",t,"id"),{hasEdits:h,isDisabled:_}=(0,c.useSelect)(e=>{const{hasEditsForEntityRecord:o,isSavingEntityRecord:r}=e("core");return{isDisabled:r("postType",t,p),hasEdits:o("postType",t,p)}},[p]),{isValidating:v,validate:w}=(0,k.G)(),g=o||_||"publish"!==e&&!h||v,{editEntityRecord:f,saveEditedEntityRecord:E}=(0,c.useDispatch)("core"),b={publish:"product_switch_draft",draft:"product_save_draft"};async function C(){try{await w({status:"draft"}),await f("postType",t,p,{status:"draft"});const o=await E("postType",t,p,{throwOnError:!0}),r=b[e];r&&(0,M.R)(r,o),a&&a(o)}catch(t){s&&s((0,P.$)(t,e))}}let x;return x="publish"===e?(0,d.__)("Switch to draft","woocommerce"):h||"auto-draft"===e?(0,d.__)("Save draft","woocommerce"):(0,r.createElement)(r.Fragment,null,(0,r.createElement)(i.Icon,{icon:F.A}),(0,d.__)("Saved","woocommerce")),(0,u.useShortcut)("core/editor/save",t=>{t.preventDefault(),g||"draft"!==e&&"auto-draft"!==e||C()}),{children:x,...m,"aria-disabled":g,variant:"tertiary",onClick:async function(e){if(g)return e.preventDefault();n&&n(e),await C()}}}({productStatus:e,productType:t,...n,onSaveSuccess(t){if((0,M.R)("product_edit",t),s((0,d.__)("Product saved as draft.","woocommerce")),p(),"auto-draft"===e){const e=(0,a.getNewPath)({},`/product/${t.id}`);(0,a.navigateTo)({url:e})}},async onSaveError(e){const{message:t,errorProps:r}=await h(e,o);m(t,r)}});return(0,r.createElement)(i.Button,{..._})}function T(){return(0,r.createElement)("div",{className:"woocommerce-product-header is-loading","aria-hidden":"true"},(0,r.createElement)("div",{className:"woocommerce-product-header__inner"},(0,r.createElement)("div",null),(0,r.createElement)("div",{className:"woocommerce-product-header__title"}),(0,r.createElement)("div",{className:"woocommerce-product-header__actions"},(0,r.createElement)("div",{className:"woocommerce-product-header__action"}),(0,r.createElement)("div",{className:"woocommerce-product-header__action"}),(0,r.createElement)("div",{className:"woocommerce-product-header__action"}),(0,r.createElement)("div",{className:"woocommerce-product-header__action"}))),(0,r.createElement)("div",{className:"woocommerce-product-tabs"},Array(7).fill(0).map((e,t)=>(0,r.createElement)("div",{key:t,className:"components-button"}))))}var D=o(51609),H=o(82962);function z({fills:e,selected:t,onChange:o}){const n=(0,D.useMemo)(function(){return[...e].sort(([{props:e}],[{props:t}])=>e.order-t.order)},[e]);return(0,r.useEffect)(()=>{if(t)return;const e=n.find(e=>{const[{props:t}]=e;return!t.disabled}),r=e?.[0]?.props?.children?.key;r&&o(r)},[n,t,o]),(0,r.createElement)(r.Fragment,null,n)}function j({selected:e,onChange:t}){const[o]=(0,l.useEntityProp)("postType","product","id");function n(o){return(0,r.createElement)(z,{fills:o,selected:e,onChange:t})}return(0,r.createElement)(i.NavigableMenu,{role:"tablist",onNavigate:function(e,t){t.focus()},onKeyDown:function(e){const t=e?.currentTarget?.querySelectorAll('[role="tab"]');switch(e.key){case"Home":e.preventDefault(),e.stopPropagation();const[o]=t;o?.focus();break;case"End":e.preventDefault(),e.stopPropagation();const r=t[t.length-1];r?.focus()}},className:"woocommerce-product-tabs",orientation:"horizontal"},(0,r.createElement)(i.Slot,{fillProps:{onClick:e=>{t(e);const{getEditedEntityRecord:r}=(0,c.select)("core"),n=r("postType","product",o);(0,v.recordEvent)("product_tab_click",function(e,t){const o={product_tab:e,product_type:t.type,source:V.bG};return"inventory"===e?{...o,is_store_stock_management_enabled:t.manage_stock}:o}(e,n))}},name:H.S},n))}const I=(0,r.lazy)(()=>o.e(3381).then(o.bind(o,53381)).then(e=>({default:e.PublishButton}))),R=(0,d.__)("Return to the main product","woocommerce");function O({onTabSelect:e,productType:t="product",selectedTab:o}){const s=(0,r.useContext)(E.z),u=(0,l.useEntityId)("postType",t),{editedRecord:C}=(0,l.useEntityRecord)("postType",t,u,{enabled:-1!==u}),x=(0,c.useSelect)(e=>{const{getEntityRecord:o}=e("core");return-1!==u?o("postType",t,u):null},[t,u]),A=C?.name,k=C?.catalog_visibility,S=C?.status,P=(0,n.useAdminSidebarWidth)();(0,r.useEffect)(()=>{document.querySelectorAll(".interface-interface-skeleton__header").forEach(e=>{e.style&&(e.style.width="calc(100% - "+P+"px)",e.style.left=P+"px")})},[P]);const M=x?.parent_id>0,F=M?C?.image:C?.images;if(s)return(0,r.createElement)(T,null);const L=!M&&Array.isArray(F)&&F.length>0||M&&F;function D(e,t){return Array.isArray(e)?e[0][t]||"":e[t]||""}return(0,r.createElement)("div",{className:"woocommerce-product-header",role:"region","aria-label":(0,d.__)("Product Editor top bar.","woocommerce"),tabIndex:-1},(0,r.createElement)("div",{className:"woocommerce-product-header__inner"},M?(0,r.createElement)("div",{className:"woocommerce-product-header__back"},(0,r.createElement)(i.Tooltip,{className:"woocommerce-product-header__back-tooltip",text:R},(0,r.createElement)("div",{className:"woocommerce-product-header__back-tooltip-wrapper"},(0,r.createElement)(i.Button,{icon:m.A,isTertiary:!0,onClick:()=>{(0,v.recordEvent)("product_variation_back_to_main_product",{source:V.bG});const e=(0,a.getNewPath)({tab:"variations"},`/product/${x?.parent_id}`);(0,a.navigateTo)({url:e})}},(0,d.__)("Main product","woocommerce"))))):(0,r.createElement)("div",null),(0,r.createElement)("div",{className:(0,w.A)("woocommerce-product-header-title-bar",{"is-variation":M})},(0,r.createElement)("div",{className:"woocommerce-product-header-title-bar__image"},L?(0,r.createElement)("img",{alt:D(F,"alt"),src:D(F,"src"),className:"woocommerce-product-header-title-bar__product-image"}):(0,r.createElement)(p.A,{icon:M?h.A:_.A})),(0,r.createElement)("h1",{className:"woocommerce-product-header__title"},M?(0,r.createElement)(r.Fragment,null,x?.name,(0,r.createElement)("span",{className:"woocommerce-product-header__variable-product-id"},"# ",x?.id)):(0,b.k)(A,x?.name),(0,r.createElement)("div",{className:"woocommerce-product-header__visibility-tags"},function(){const e=[];return"draft"===S&&e.push((0,r.createElement)(g.Tag,{key:"draft-tag",label:(0,d.__)("Draft","woocommerce")})),"future"===S&&e.push((0,r.createElement)(g.Tag,{key:"scheduled-tag",label:(0,d.__)("Scheduled","woocommerce")})),("future"!==S&&"hidden"===k||M&&"private"===S)&&e.push((0,r.createElement)(g.Tag,{key:"hidden-tag",label:(0,d.__)("Hidden","woocommerce")})),e}()))),(0,r.createElement)("div",{className:"woocommerce-product-header__actions"},!M&&(0,r.createElement)(N,{productType:t,visibleTab:o,productStatus:x?.status}),(0,r.createElement)(B,{productType:t,visibleTab:o,productStatus:x?.status}),(0,r.createElement)(r.Suspense,{fallback:null},(0,r.createElement)(I,{productType:t,isMenuButton:!0,visibleTab:o})),(0,r.createElement)(n.WooHeaderItem.Slot,{name:"product"}),(0,r.createElement)(f.A.Slot,{scope:V.LG}),(0,r.createElement)(y,null))),(0,r.createElement)(j,{selected:o,onChange:e}))}var G=o(74997),$=o(16480),Z=o(1455),U=o.n(Z),q=o(96702),W=o(15703),J=o(94715),Y=o(73997),K=o(30895),X=o(95883),Q=o(16958),ee=o(14604),te=o(81079);function oe(){return(0,r.createElement)("div",{className:"woocommerce-product-block-editor__block-list block-editor-block-list__layout is-root-container is-loading","aria-hidden":"true"},(0,r.createElement)("div",{className:"wp-block-woocommerce-product-tab"},(0,r.createElement)("div",{className:"wp-block-woocommerce-product-section"},(0,r.createElement)("div",{className:"wp-block-woocommerce-product-section__heading-title-wrapper"},(0,r.createElement)("div",{className:"wp-block-woocommerce-product-section__heading-title"})),(0,r.createElement)("div",{className:"wp-block-woocommerce-product-section__content wp-block-woocommerce-product-section-header__content--block-gap-unit-30"},(0,r.createElement)("div",{className:"block-editor-block-list__block"},(0,r.createElement)("div",{className:"woocommerce-product-form-label__label"}),(0,r.createElement)("div",{className:"woocommerce-product-form-input"})),(0,r.createElement)("div",{className:"block-editor-block-list__block"},(0,r.createElement)("div",{className:"woocommerce-product-form-label__label"}),(0,r.createElement)("div",{className:"woocommerce-product-form-textarea"})),(0,r.createElement)("div",{className:"block-editor-block-list__block"},(0,r.createElement)("div",{className:"woocommerce-product-form-label__label"}),(0,r.createElement)("div",{className:"woocommerce-product-form-textarea"})))),(0,r.createElement)("div",{className:"wp-block-woocommerce-product-section"},(0,r.createElement)("div",{className:"wp-block-woocommerce-product-section__heading-title-wrapper"},(0,r.createElement)("div",{className:"wp-block-woocommerce-product-section__heading-title"})),(0,r.createElement)("div",{className:"wp-block-woocommerce-product-section__content wp-block-woocommerce-product-section__content--block-gap-unit-30"},(0,r.createElement)("div",{className:"block-editor-block-list__block"},(0,r.createElement)("div",{className:"woocommerce-product-form-label__label"}),(0,r.createElement)("div",{className:"woocommerce-product-form-input"})),(0,r.createElement)("div",{className:"block-editor-block-list__block"},(0,r.createElement)("div",{className:"woocommerce-product-form-label__label"}),(0,r.createElement)("div",{className:"woocommerce-product-form-textarea"})),(0,r.createElement)("div",{className:"block-editor-block-list__block"},(0,r.createElement)("div",{className:"woocommerce-product-form-label__label"}),(0,r.createElement)("div",{className:"woocommerce-product-form-textarea"}))))))}const re="woocommerce_feature_product_block_editor_enabled",ne=(0,r.lazy)(()=>Promise.resolve().then(o.t.bind(o,92279,23)).then(e=>({default:e.PluginArea}))),ae=(0,r.lazy)(()=>Promise.all([o.e(4277),o.e(6407)]).then(o.bind(o,86407)).then(e=>({default:e.ModalEditor})));function ce({context:e,postType:t,productId:o,setIsEditorLoading:n}){!function(e="product"){const t=(0,l.useEntityId)("postType",e),{hasEdits:o}=(0,K.g)(e),{isSaving:r}=(0,c.useSelect)(o=>{const{isSavingEntityRecord:r}=o("core");return{isSaving:r("postType",e,t)}},[t,e]);(0,a.useConfirmUnsavedChanges)(o||r,(0,Y.W)(t))}(t),(0,r.useEffect)(()=>{const e=()=>{document.dispatchEvent(new Event("wp-pin-menu"))};return window.addEventListener("scroll",e,{once:!0}),()=>window.removeEventListener("scroll",e)},[]),(0,r.useEffect)(()=>{const{registerShortcut:e}=(0,c.dispatch)(u.store);e&&e({name:"core/editor/save",category:"global",description:(0,d.__)("Save your changes.","woocommerce"),keyCombination:{modifier:"primary",character:"s"}})},[]);const[s,m]=(0,r.useState)(void 0);(0,r.useEffect)(()=>{let e;const t=()=>{void 0!==window.productBlockEditorSettings?m(window.productBlockEditorSettings):e=setTimeout(t,100)};return t(),()=>{clearTimeout(e)}},[]);const p=(0,r.useMemo)(()=>{if(void 0===s)return;const e=!1!==(0,c.select)("core").canUser("create","media","")?{mediaUpload({onError:e,...t}){(0,$.uploadMedia)({wpAllowedMimeTypes:s.allowedMimeTypes||void 0,onError:({message:t})=>e(t),...t})}}:{};return{...s,...e,templateLock:"all"}},[s]),{editedRecord:h,hasResolved:_}=(0,l.useEntityRecord)("postType",t,o,{enabled:-1!==o}),{_feature_nonce:v=""}=(0,W.getSetting)("admin",{}),w=function(e,t,o){const r="product_variation"===t&&o&&"parent_id"in o&&"number"==typeof o.parent_id?o.parent_id:e;return r>0?(0,W.getAdminLink)(`post.php?post=${r}&action=edit`):(0,W.getAdminLink)("post-new.php?post_type=product")}(o,t,h),g=new URL(w);g.searchParams.set("product_block_editor","0"),g.searchParams.set("_feature_nonce",v);const[f,E]=(0,r.useState)(!1),b=(0,r.useMemo)(()=>h?.meta_data?.find(e=>"_product_template_id"===e.key)?.value,[h?.meta_data]),{productTemplate:C}=(0,X.n)(b,_?h:null),{layoutTemplate:x}=(0,q.useLayoutTemplate)(_?function(e,t){return e?.layoutTemplateId?e.layoutTemplateId:"product_variation"===t?"product-variation":"simple-product"}(C,t):null),[y,A,k]=(0,l.useEntityBlockEditor)("postType",t,{id:-1!==o?o:0}),S=!p||!x||"product_variation"!==t&&!C||-1===o||!_;(0,r.useLayoutEffect)(function(){if(S)return;const e=(0,G.synchronizeBlocksWithTemplate)([],x.blockTemplates);k(e,{}),(0,c.dispatch)("core/editor").updateEditorSettings({...p,productTemplate:C})},[S,x,p,C,o]),(0,r.useEffect)(()=>{n(S)},[S,n]);const{editEntityRecord:P}=(0,c.useDispatch)("core");(0,r.useEffect)(function(){const e=(0,a.getQuery)();if((0,a.getPath)().endsWith("add-product")&&e.template){const r=(window.productBlockEditorSettings?.productTemplates??[]).find(t=>t.id===e.template);r&&P("postType",t,o,{...r.productData,meta_data:[...r.productData.meta_data??[],{key:"_product_template_id",value:r.id}]})}},[]);const V=(0,c.useSelect)(e=>e(ee.p).isModalEditorOpen(),[]);return S?(0,r.createElement)("div",{className:"woocommerce-product-block-editor"},(0,r.createElement)(oe,null)):V?(0,r.createElement)(r.Suspense,{fallback:null},(0,r.createElement)(ae,{onClose:(0,c.dispatch)(ee.p).closeModalEditor,title:(0,d.__)("Edit description","woocommerce"),name:h?.name&&"AUTO-DRAFT"!==h.name?h.name:(0,d.__)("(no product name)","woocommerce")})):(0,r.createElement)("div",{className:"woocommerce-product-block-editor"},(0,r.createElement)(te.$,{className:"woocommerce-product-block-editor__deprecation-notice",type:"warning",title:(0,d.__)("Switch to the classic editor before WooCommerce 11.0","woocommerce"),content:(0,d.__)("We're removing this version of the product editor in WooCommerce 11.0. The classic editor has the same features and your products won't change, so we recommend switching now.","woocommerce")},(0,r.createElement)(i.Button,{className:"woocommerce-product-block-editor__deprecation-notice-action",href:g.toString(),isBusy:f,onClick:async e=>{if(e.preventDefault(),!f){E(!0);try{await U()({path:`/wc/v3/settings/advanced/${re}`,method:"POST",data:{value:"no"}}),window.location.href=w}catch{window.location.href=g.toString()}}},variant:"secondary"},(0,d.__)("Switch to classic editor","woocommerce"))),(0,r.createElement)(J.BlockContextProvider,{value:e},(0,r.createElement)(J.BlockEditorProvider,{value:y,onInput:A,onChange:k,settings:p,useSubRegistry:!1},(0,r.createElement)(J.BlockEditorKeyboardShortcuts.Register,null),(0,r.createElement)(J.BlockTools,null,(0,r.createElement)(J.ObserveTyping,null,(0,r.createElement)(J.BlockList,{className:"woocommerce-product-block-editor__block-list"}))),(0,r.createElement)(Q.O.Provider,{value:e.postType},(0,r.createElement)(r.Suspense,{fallback:null},(0,r.createElement)(ne,{scope:"woocommerce-product-block-editor"}))))))}var ie=o(20509);function se({postType:e,productId:t,children:o}){const n=(0,r.useRef)({}),a=(0,r.useRef)({}),[c,i]=(0,r.useState)({}),{record:s}=(0,l.useEntityRecord)("postType",e,t);async function u(e,t){const o=n.current;return e in o?(0,o[e])(s,t).then(t=>{const o=void 0!==t?{validatorId:e,...t}:void 0;return i(t=>({...t,[e]:o})),o}):Promise.resolve(void 0)}return(0,r.createElement)(ie.d.Provider,{value:{errors:c,getFieldByValidatorId:async function(e){return a.current[e]},registerValidator:function(e,t){return n.current={...n.current,[e]:t},t=>{a.current[e]=t}},unRegisterValidator:function(e){n.current[e]&&delete n.current[e],a.current[e]&&delete a.current[e]},validateField:u,validateAll:async function(e){const t={},o=n.current;for(const r in o)t[r]=await u(r,e);i(t);const r=function(e,t){const o=Object.entries(e).filter(([e,o])=>o?.closest('.is-selected[role="tabpanel"]')&&Boolean(t[e])),[r]=o.sort(([,e],[,t])=>e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1),[,n]=r??[];return n}(a.current,t);return r?.focus(),t}}},o)}var le=o(91218),ue=o(38443),de=o(67525),me=o(17849),pe=o(89551);function he({productType:e}){const[t,o]=(0,l.useEntityProp)("postType",e,"catalog_visibility"),[n,a]=(0,l.useEntityProp)("postType",e,"reviews_allowed"),[c,s]=(0,l.useEntityProp)("postType",e,"post_password");return(0,r.createElement)(i.PanelBody,{initialOpen:!1,title:[(0,d.__)("Visibility: ","woocommerce"),(0,r.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},""!==c?(0,d.__)("Password protected","woocommerce"):"hidden"===t?(0,d.__)("Hidden","woocommerce"):(0,d.__)("Public","woocommerce"))]},(0,r.createElement)("div",{className:"woocommerce-publish-panel-visibility"},(0,r.createElement)("fieldset",{className:"woocommerce-publish-panel-visibility__fieldset"},(0,r.createElement)("legend",{className:"woocommerce-publish-panel-visibility__legend"},(0,d.__)("Control how this product is viewed by customers and other site users.","woocommerce")),(0,r.createElement)(pe.y,{catalogVisibility:t,label:(0,d.__)("Hide in product catalog","woocommerce"),visibility:"search",onCheckboxChange:o}),(0,r.createElement)(pe.y,{catalogVisibility:t,label:(0,d.__)("Hide from search results","woocommerce"),visibility:"catalog",onCheckboxChange:o}),(0,r.createElement)(i.CheckboxControl,{label:(0,d.__)("Enable product reviews","woocommerce"),checked:n,onChange:e=>{a(e),(0,v.recordEvent)("product_prepublish_panel",{source:V.bG,action:"enable_product_reviews",value:e})}}),(0,r.createElement)(me.p,{label:(0,d.__)("Require a password","woocommerce"),postPassword:c,onInputChange:s}))))}var _e=o(43237),ve=o(2144);function we({postType:e}){const{setDate:t,date:o,formattedDate:n}=(0,_e.M)(e);return(0,r.createElement)(i.PanelBody,{initialOpen:!1,title:[(0,d.__)("Publish:","woocommerce"),(0,r.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},n)]},(0,r.createElement)(J.__experimentalPublishDateTimePicker,{currentDate:o,onChange:async function(e){await t(e??void 0)},is12Hour:(0,ve.$)()}))}function ge({productType:e="product"}){const{getProductURL:t}=S(e),{isScheduled:o,formattedDate:n}=(0,_e.M)(e),[a]=(0,l.useEntityProp)("postType",e,"name"),c=t(!1);return(0,r.createElement)("div",{className:"woocommerce-product-publish-panel__published"},o?(0,r.createInterpolateElement)((0,d.sprintf)((0,d.__)("<productURL /> is now scheduled. It will go live on %s","woocommerce"),n),{productURL:(0,r.createElement)("a",{className:"woocommerce-product-list__product-name",href:c,target:"_blank",rel:"noreferrer"},a)}):(0,r.createInterpolateElement)((0,d.__)("<productURL /> is now live.","woocommerce"),{productURL:(0,r.createElement)("a",{className:"woocommerce-product-list__product-name",href:c,target:"_blank",rel:"noreferrer"},a)}))}var fe=o(29491);function Ee({postType:e}){const{getProductURL:t}=S(e),{isScheduled:o}=(0,_e.M)(e),[n,c]=(0,r.useState)(!1),s=t(o);if(!s)return null;const l=({text:e,onCopy:t,children:o})=>{const n=(0,fe.useCopyToClipboard)(e,t);return(0,r.createElement)(i.Button,{variant:"secondary",ref:n},o)};return(0,r.createElement)(i.PanelBody,null,(0,r.createElement)("p",{className:"post-publish-section__postpublish-subheader"},(0,r.createElement)("strong",null,(0,d.__)("What’s next?","woocommerce"))),(0,r.createElement)("div",{className:"post-publish-section__postpublish-post-address-container"},(0,r.createElement)(i.TextControl,{className:"post-publish-section__postpublish-post-address",readOnly:!0,label:(0,d.__)("product address","woocommerce"),value:s,onFocus:e=>{e.target.select()}}),(0,r.createElement)("div",{className:"post-publish-section__copy-button-wrap"},(0,r.createElement)(l,{text:s,onCopy:()=>{(0,v.recordEvent)("product_prepublish_panel",{source:V.bG,action:"copy_product_url"}),c(!0),setTimeout(()=>{c(!1)},4e3)}},(0,r.createElement)(r.Fragment,null,n?(0,d.__)("Copied!","woocommerce"):(0,d.__)("Copy","woocommerce"))))),(0,r.createElement)("div",{className:"post-publish-section__postpublish-buttons"},!o&&(0,r.createElement)(i.Button,{variant:"primary",href:s},(0,d.__)("View Product","woocommerce")),(0,r.createElement)(i.Button,{variant:o?"primary":"secondary",href:(0,a.getNewPath)({},"/add-product",{})},(0,d.__)("Add New Product","woocommerce"))))}function be({productType:e="product",title:t=(0,d.__)("Are you ready to publish this product?","woocommerce"),description:o=(0,d.__)("Double-check your settings before sharing this product with customers.","woocommerce")}){const[n]=(0,l.useEntityProp)("postType",e,"date_created_gmt"),[a,,s]=(0,l.useEntityProp)("postType",e,"status"),{closePrepublishPanel:u}=(0,c.useDispatch)(ee.p),m="product"!==e||"future"===s||"publish"===a;(0,ue.isInTheFuture)(n)&&(t=(0,d.__)("Are you ready to schedule this product?","woocommerce"),o=(0,d.__)("Your product will be published at the specified date and time.","woocommerce"));const p=(0,r.useRef)(null);function h(e){p.current&&!p.current.contains(e.target)&&u()}return(0,r.useEffect)(()=>{if(m)return document.addEventListener("mouseup",h),()=>{document.removeEventListener("mouseup",h)}},[m]),(0,r.createElement)("div",{ref:p,className:(0,w.A)("woocommerce-product-publish-panel",{"is-published":m})},(0,r.createElement)("div",{className:"woocommerce-product-publish-panel__header"},m?(0,r.createElement)(i.Button,{className:"woocommerce-publish-panel-close",icon:le.A,label:(0,d.__)("Close panel","woocommerce"),onClick:()=>{(0,v.recordEvent)("product_prepublish_panel",{source:V.bG,action:"close"}),u()}}):(0,r.createElement)(r.Fragment,null,(0,r.createElement)(de.I,{productType:e}),(0,r.createElement)(i.Button,{variant:"secondary",onClick:()=>{(0,v.recordEvent)("product_prepublish_panel",{source:V.bG,action:"cancel"}),u()}},(0,d.__)("Cancel","woocommerce")))),(0,r.createElement)("div",{className:"woocommerce-product-publish-panel__title"},m?(0,r.createElement)(ge,{productType:e}):(0,r.createElement)(r.Fragment,null,(0,r.createElement)("h4",null,t),(0,r.createElement)("span",null,o))),(0,r.createElement)("div",{className:"woocommerce-product-publish-panel__content"},m?(0,r.createElement)(Ee,{postType:e}):(0,r.createElement)(r.Fragment,null,(0,r.createElement)(he,{productType:e}),(0,r.createElement)(we,{postType:e}))),(0,r.createElement)("div",{className:"woocommerce-product-publish-panel__footer"}))}function Ce({productId:e,postType:t="product"}){const[o,d]=(0,r.useState)(!0),m=(0,a.getQuery)().tab||null,p=(0,r.useCallback)(e=>{(0,a.navigateTo)({url:(0,a.getNewPath)({tab:e})})},[]),h=(0,n.useExtendLayout)("product-block-editor"),_=(0,c.useSelect)(e=>e(ee.p).isPrepublishPanelOpen(),[]);return(0,r.createElement)(n.LayoutContextProvider,{value:h},(0,r.createElement)(r.StrictMode,null,(0,r.createElement)(l.EntityProvider,{kind:"postType",type:t,id:e},(0,r.createElement)(u.ShortcutProvider,null,(0,r.createElement)(se,{postType:t,productId:e},(0,r.createElement)(E.z.Provider,{value:o},(0,r.createElement)(s.A,{header:(0,r.createElement)(O,{onTabSelect:p,productType:t,selectedTab:m}),content:(0,r.createElement)(r.Fragment,null,(0,r.createElement)(ce,{postType:t,productId:e,context:{selectedTab:m,postType:t,postId:e},setIsEditorLoading:d})),actions:_&&(0,r.createElement)(be,{productType:t})})),(0,r.createElement)(i.Popover.Slot,null))))))}},96869:(e,t,o)=>{"use strict";o.d(t,{X:()=>kd});var r={};o.r(r),o.d(r,{Icon:()=>qe.A,addCard:()=>Ur,addSubmenu:()=>qr,addTemplate:()=>Wr,alignCenter:()=>Jo,alignJustify:()=>Ko,alignLeft:()=>Wo,alignNone:()=>Jr,alignRight:()=>Yo,archive:()=>Yr,arrowDown:()=>Kr,arrowLeft:()=>Xr.A,arrowRight:()=>Qr.A,arrowUp:()=>en,aspectRatio:()=>on,atSymbol:()=>tn,audio:()=>rn,backup:()=>nn,blockDefault:()=>an,blockMeta:()=>cn,blockTable:()=>sn,border:()=>ln,box:()=>un.A,brush:()=>dn,bug:()=>mn,button:()=>pn,buttons:()=>hn,calendar:()=>_n,cancelCircleFilled:()=>vn,caption:()=>wn,capturePhoto:()=>gn,captureVideo:()=>fn,category:()=>En,chartBar:()=>bn,check:()=>Cn.A,chevronDown:()=>ye.A,chevronDownSmall:()=>xn,chevronLeft:()=>yn.A,chevronLeftSmall:()=>An,chevronRight:()=>kn,chevronRightSmall:()=>Sn,chevronUp:()=>xe,chevronUpDown:()=>Pn,classic:()=>Vn,close:()=>Bn,closeSmall:()=>Ce.A,cloud:()=>Fn,cloudUpload:()=>Mn,code:()=>Ln,cog:()=>Nn,color:()=>Tn,column:()=>Dn,columns:()=>Hn,comment:()=>In,commentAuthorAvatar:()=>Rn,commentAuthorName:()=>On,commentContent:()=>Gn,commentEditLink:()=>Zn,commentReplyLink:()=>$n,connection:()=>Un,copy:()=>zn,copySmall:()=>jn,cover:()=>qn,create:()=>Wn,crop:()=>Jn,currencyDollar:()=>Yn,currencyEuro:()=>Kn,currencyPound:()=>Xn,customLink:()=>Ae,customPostType:()=>Qn,desktop:()=>ea,details:()=>ta,download:()=>ca,drafts:()=>oa,dragHandle:()=>ra,drawerLeft:()=>na,drawerRight:()=>aa,edit:()=>sa,external:()=>la.A,file:()=>ua,filter:()=>da,flipHorizontal:()=>ma,flipVertical:()=>pa,footer:()=>bs,formatBold:()=>ha,formatCapitalize:()=>_a,formatIndent:()=>va,formatIndentRTL:()=>wa,formatItalic:()=>ga,formatListBullets:()=>fa,formatListBulletsRTL:()=>Ea,formatListNumbered:()=>ba,formatListNumberedRTL:()=>Ca,formatLowercase:()=>xa,formatLtr:()=>Uo,formatOutdent:()=>ya,formatOutdentRTL:()=>Aa,formatRtl:()=>ka,formatStrikethrough:()=>Sa,formatUnderline:()=>Pa,formatUppercase:()=>Va,fullscreen:()=>Ba,funnel:()=>Ma,gallery:()=>Fa,globe:()=>La,grid:()=>Na,group:()=>Ta.A,handle:()=>Da,header:()=>Cs,heading:()=>Ga,headingLevel1:()=>Ha,headingLevel2:()=>za,headingLevel3:()=>ja,headingLevel4:()=>Ia,headingLevel5:()=>Ra,headingLevel6:()=>Oa,help:()=>$a.A,helpFilled:()=>Za,home:()=>Wa,homeButton:()=>Ja,html:()=>Ya,image:()=>Ka,inbox:()=>Ua,info:()=>Xa,insertAfter:()=>Qa,insertBefore:()=>ec,institution:()=>qa,justifyCenter:()=>oc,justifyLeft:()=>tc,justifyRight:()=>rc,justifySpaceBetween:()=>nc,justifyStretch:()=>ac,key:()=>cc,keyboard:()=>ic,keyboardClose:()=>sc,keyboardReturn:()=>ke,language:()=>lc,layout:()=>uc,levelUp:()=>dc,lifesaver:()=>mc,lineDashed:()=>pc,lineDotted:()=>hc,lineSolid:()=>_c,link:()=>vc,linkOff:()=>wc,list:()=>gc,listItem:()=>fc,listView:()=>Ec.A,lock:()=>bc,lockOutline:()=>Cc,lockSmall:()=>xc,login:()=>yc,loop:()=>Ac,mapMarker:()=>kc,media:()=>Sc,mediaAndText:()=>Pc,megaphone:()=>Vc,menu:()=>Bc,mobile:()=>Mc,more:()=>Fc,moreHorizontal:()=>Lc,moreHorizontalMobile:()=>Nc,moreVertical:()=>Tc.A,moveTo:()=>Dc,navigation:()=>Hc,next:()=>vi.A,notAllowed:()=>zc,notFound:()=>jc,offline:()=>wi,overlayText:()=>Ic,page:()=>Oc,pageBreak:()=>Rc,pages:()=>Gc,paragraph:()=>$c,payment:()=>Zc,pencil:()=>ia,pending:()=>Uc,people:()=>Kc,percent:()=>qc,pin:()=>Xc,pinSmall:()=>Qc,plugins:()=>ei.A,plus:()=>ri.A,plusCircle:()=>oi,plusCircleFilled:()=>ti,positionCenter:()=>Wc,positionLeft:()=>Jc,positionRight:()=>Yc,post:()=>ni,postAuthor:()=>ai,postCategories:()=>ci,postComments:()=>ii,postCommentsCount:()=>si,postCommentsForm:()=>li,postContent:()=>re,postDate:()=>ui,postExcerpt:()=>di,postFeaturedImage:()=>mi,postList:()=>pi,postTerms:()=>hi,preformatted:()=>gi,previous:()=>_i.A,published:()=>fi,pullLeft:()=>Ei,pullRight:()=>bi,pullquote:()=>Ci,queryPagination:()=>xi,queryPaginationNext:()=>yi,queryPaginationNumbers:()=>Ai,queryPaginationPrevious:()=>ki,quote:()=>Si,receipt:()=>Pi,redo:()=>Vi.A,removeBug:()=>Bi,removeSubmenu:()=>Mi,replace:()=>Fi,reset:()=>Li.A,resizeCornerNE:()=>Ni,reusableBlock:()=>Ti,rotateLeft:()=>zi,rotateRight:()=>ji,row:()=>Di,rss:()=>Ii,scheduled:()=>$i,search:()=>Ri,seen:()=>Oi,send:()=>Zi,separator:()=>Ui,settings:()=>qi,shadow:()=>Wi,share:()=>Ji,shield:()=>Yi,shipping:()=>as,shortcode:()=>Ki,shuffle:()=>Xi,sidebar:()=>xs,sidesAll:()=>ys,sidesAxial:()=>As,sidesBottom:()=>ks,sidesHorizontal:()=>Ss,sidesLeft:()=>Ps,sidesRight:()=>Vs,sidesTop:()=>Bs,sidesVertical:()=>Ms,siteLogo:()=>Qi,stack:()=>es,starEmpty:()=>ht,starFilled:()=>pt,starHalf:()=>ts,store:()=>os,stretchFullWidth:()=>rs,stretchWide:()=>cs,styles:()=>ns,subscript:()=>is,superscript:()=>ss,swatch:()=>ls,symbol:()=>Hi,symbolFilled:()=>fs,table:()=>ws,tableColumnAfter:()=>us,tableColumnBefore:()=>ds,tableColumnDelete:()=>ms,tableOfContents:()=>ps,tableRowAfter:()=>hs,tableRowBefore:()=>_s,tableRowDelete:()=>vs,tablet:()=>Ts,tag:()=>gs,termDescription:()=>Es,textColor:()=>Fs,textHorizontal:()=>Ls,textVertical:()=>Ns,tip:()=>Hs,title:()=>Ds,tool:()=>zs,trash:()=>Ne,trendingDown:()=>js,trendingUp:()=>Is,typography:()=>Rs,undo:()=>Os.A,ungroup:()=>Gs,unlock:()=>$s,unseen:()=>Gi,update:()=>Zs,upload:()=>Ve,verse:()=>Us,video:()=>qs,warning:()=>Ws,widget:()=>Js,wordpress:()=>Ys});var n={};o.r(n),o.d(n,{gift:()=>el,hidden:()=>Qs,seen:()=>tl.A});var a={};o.r(a),o.d(a,{attributesInit:()=>zr,initCatalogVisibility:()=>w,initCheckbox:()=>O,initCollapsible:()=>q,initConditional:()=>ee,initCustomFields:()=>y,initCustomFieldsToggle:()=>T,initDescription:()=>Ee,initDownloads:()=>Ze,initImages:()=>et,initInventoryQuantity:()=>Ar,initLinkedProductList:()=>id,initLowStockQty:()=>ct,initName:()=>xt,initNotice:()=>Ad,initNoticeHasVariations:()=>Mu,initNoticeSingleVariation:()=>Au,initNumber:()=>Ju,initPricing:()=>Bt,initProductDetailsSectionDescription:()=>cl,initProductList:()=>fl,initRadio:()=>Ht,initRegularPrice:()=>Ot,initRequirePassword:()=>$r,initSalePrice:()=>qt,initScheduleSale:()=>to,initSection:()=>so,initSectionDescription:()=>_o,initSelect:()=>Ed,initShippingClass:()=>Do,initShippingDimensions:()=>$o,initSku:()=>dt,initSubsection:()=>Eo,initSubsectionDescription:()=>Ao,initSummary:()=>rr,initTab:()=>dr,initTag:()=>Er,initTaxonomy:()=>zu,initText:()=>$u,initTextArea:()=>_d,initToggle:()=>Br,initVariationItems:()=>pu,initVariationOptions:()=>fu});var c=o(74997);const i=window.wp.blockLibrary,s=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"woocommerce/product-catalog-visibility-field","description":"A checkbox to manage the catalog visibility of the product.","title":"Product catalog visibility","category":"widgets","keywords":["products","catalog"],"textdomain":"default","attributes":{"label":{"type":"string","role":"content"},"visibility":{"type":"string","enum":["visible","catalog","search","hidden"],"default":"visible"}},"supports":{"align":false,"html":false,"multiple":true,"reusable":false,"inserter":false,"lock":false,"__experimentalToolbar":false}}');var l=o(3582),u=o(86087),d=o(96702),m=o(89551),p=o(18105);const{name:h,..._}=s,v={example:{},edit:function({attributes:e}){const{label:t,visibility:o}=e,r=(0,d.useWooBlockProps)(e),[n,a]=(0,l.useEntityProp)("postType","product","catalog_visibility");return(0,u.createElement)("div",{...r},(0,u.createElement)(m.y,{catalogVisibility:n,label:t,visibility:o,onCheckboxChange:a}))}};function w(){return(0,p.N)({name:h,metadata:_,settings:v})}const g=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"woocommerce/product-custom-fields","title":"Product custom fields control","category":"woocommerce","description":"The product custom fields.","keywords":["products","custom","fields"],"textdomain":"default","attributes":{"name":{"type":"string","role":"content"}},"supports":{"align":false,"html":false,"multiple":true,"reusable":true,"inserter":false,"lock":false,"__experimentalToolbar":false}}');var f=o(2337),E=o(496);const{name:b,...C}=g,x={example:{},edit:function({attributes:e}){const t=(0,d.useWooBlockProps)(e);return(0,u.createElement)("div",{...t},(0,u.createElement)(E.f,{renderActionButtonsWrapper:e=>(0,u.createElement)(f.V,null,e)}))}};function y(){return(0,p.N)({name:b,metadata:C,settings:x})}const A=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"woocommerce/product-custom-fields-toggle-field","title":"Product custom fields toggle control","category":"woocommerce","description":"The product custom fields toggle.","keywords":["products","custom","fields"],"textdomain":"default","attributes":{"label":{"type":"string","role":"content"}},"supports":{"align":false,"html":false,"multiple":true,"reusable":true,"inserter":false,"lock":false,"__experimentalToolbar":false},"editorStyle":"file:./editor.css"}');var k=o(83306),S=o(56427),P=o(94715),V=o(8088),B=o(62693);const M="postcustom",{name:F,...L}=A,N={example:{},edit:function({attributes:e}){const{label:t,_templateBlockId:o}=e,r=(0,d.useWooBlockProps)(e),n=(0,P.useInnerBlocksProps)({className:"wp-block-woocommerce-product-custom-fields-toggle-field__inner-blocks"},{templateLock:"all",renderAppender:!1}),{isLoading:a,metaboxhiddenProduct:c,saveMetaboxhiddenProduct:i}=(0,B.L)(),s=(0,u.useMemo)(()=>c&&!c.some(e=>e===M),[c]);return(0,u.createElement)("div",{...r},(0,u.createElement)("div",{className:"wp-block-woocommerce-product-custom-fields-toggle-field__content"},(0,u.createElement)(S.ToggleControl,{label:t,checked:s,disabled:a,onChange:async function(e){const t=e?c.filter(e=>e!==M):[...c,M];(0,k.recordEvent)("product_custom_fields_toggle_click",{block_id:o,source:V.bG,metaboxhidden_product:t}),await i(t)}}),a&&(0,u.createElement)(S.Spinner,null)),s&&(0,u.createElement)("div",{...n}))}};function T(){return(0,p.N)({name:F,metadata:L,settings:N})}const D=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"woocommerce/product-checkbox-field","title":"Product checkbox control","category":"woocommerce","description":"A reusable checkbox for the product editor.","keywords":["products","checkbox","input"],"textdomain":"default","attributes":{"title":{"type":"string","role":"content"},"label":{"type":"string"},"property":{"type":"string"},"tooltip":{"type":"string"},"checkedValue":{"type":"string"},"uncheckedValue":{"type":"string"}},"supports":{"align":false,"html":false,"multiple":true,"reusable":false,"inserter":false,"lock":false,"__experimentalToolbar":false},"usesContext":["postType"]}');var H=o(38045),z=o(3113);const{name:j,...I}=D,R={example:{},edit:function({attributes:e,context:{postType:t}}){const{property:o,title:r,label:n,tooltip:a,checkedValue:c,uncheckedValue:i,disabled:s}=e,l=(0,d.useWooBlockProps)(e),[m,p]=(0,H.A)(o,{postType:t,fallbackValue:!1});return(0,u.createElement)("div",{...l},(0,u.createElement)(z.S,{value:m||!1,onChange:p,label:n||"",title:r,tooltip:a,checkedValue:c,uncheckedValue:i,disabled:s}))}},O=()=>(0,p.N)({name:j,metadata:I,settings:R}),G=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"woocommerce/product-collapsible","title":"Collapsible","category":"widgets","description":"Container with collapsible inner blocks.","textdomain":"default","attributes":{"toggleText":{"type":"string","role":"content"},"initialCollapsed":{"type":"boolean"},"persistRender":{"type":"boolean"}},"supports":{"align":false,"html":false,"multiple":true,"reusable":false,"inserter":false,"lock":false,"__experimentalToolbar":false}}');var $=o(98846);const{name:Z}=G,U={example:{},edit:function({attributes:e}){const t=(0,d.useWooBlockProps)(e),{toggleText:o,initialCollapsed:r,persistRender:n=!0}=e;return(0,u.createElement)("div",{...t},(0,u.createElement)($.CollapsibleContent,{toggleText:o,initialCollapsed:r,persistRender:n},(0,u.createElement)(P.InnerBlocks,{templateLock:"all"})))}},q=()=>(0,p.N)({name:Z,metadata:G,settings:U}),W=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"woocommerce/conditional","title":"Conditional","category":"widgets","description":"Container to only conditionally render inner blocks.","textdomain":"default","attributes":{"mustMatch":{"role":"content","type":"array","items":{"type":"object"},"default":[]}},"supports":{"align":false,"html":false,"multiple":true,"reusable":false,"inserter":false,"lock":false,"__experimentalToolbar":false}}');var J=o(47143),Y=o(64040),K=o.n(Y);const{name:X}=W,Q={example:{},edit:function({attributes:e,context:t}){K()("`woocommerce/conditional` block",{alternative:"`hideConditions` attribute on any block"});const{postType:o}=t,r=(0,d.useWooBlockProps)(e),{mustMatch:n}=e,a=(0,l.useEntityId)("postType",o),c=(0,J.useSelect)(e=>{const t=e("core").getEditedEntityRecord("postType",o,a);for(const[e,o]of Object.entries(n))if(!o.includes(t[e]))return!1;return!0},[o,a,n]);return(0,u.createElement)($.DisplayState,{...r,state:c?"visible":"visually-hidden"},(0,u.createElement)(P.InnerBlocks,{templateLock:"all"}))}},ee=()=>(0,p.N)({name:X,metadata:W,settings:Q});var te=o(5573),oe=o(39793);const re=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M4 6h12V4.5H4V6Zm16 4.5H4V9h16v1.5ZM4 15h16v-1.5H4V15Zm0 4.5h16V18H4v1.5Z"})});var ne=o(52619);const ae=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"woocommerce/product-description-field","title":"Product description","category":"woocommerce","description":"The product description.","keywords":["products","description"],"textdomain":"default","attributes":{"__contentEditable":{"type":"string","role":"content"}},"supports":{"align":false,"html":false,"multiple":true,"reusable":false,"inserter":false,"lock":false,"__experimentalToolbar":true}}');var ce=o(4921),ie=o(27723);function se({nonAnimatedSrc:e,animatedSrc:t}){return(0,u.createElement)("picture",{className:"edit-post-welcome-guide__image"},(0,u.createElement)("source",{srcSet:e,media:"(prefers-reduced-motion: reduce)"}),(0,u.createElement)("img",{src:t,width:"312",height:"240",alt:""}))}function le(){const{toggle:e}=(0,J.useDispatch)("core/preferences");return(0,u.createElement)(S.Guide,{className:"edit-post-welcome-guide",contentLabel:(0,ie.__)("Welcome to the block editor","woocommerce"),finishButtonText:(0,ie.__)("Get started","woocommerce"),onFinish:()=>e("core/edit-post","welcomeGuide"),pages:[{image:(0,u.createElement)(se,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-canvas.svg",animatedSrc:"https://s.w.org/images/block-editor/welcome-canvas.gif"}),content:(0,u.createElement)(u.Fragment,null,(0,u.createElement)("h1",{className:"edit-post-welcome-guide__heading"},(0,ie.__)("Welcome to the block editor","woocommerce")),(0,u.createElement)("p",{className:"edit-post-welcome-guide__text"},(0,ie.__)("In the WordPress editor, each paragraph, image, or video is presented as a distinct “block” of content.","woocommerce")))},{image:(0,u.createElement)(se,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-editor.svg",animatedSrc:"https://s.w.org/images/block-editor/welcome-editor.gif"}),content:(0,u.createElement)(u.Fragment,null,(0,u.createElement)("h1",{className:"edit-post-welcome-guide__heading"},(0,ie.__)("Make each block your own","woocommerce")),(0,u.createElement)("p",{className:"edit-post-welcome-guide__text"},(0,ie.__)("Each block comes with its own set of controls for changing things like color, width, and alignment. These will show and hide automatically when you have a block selected.","woocommerce")))},{image:(0,u.createElement)(se,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-library.svg",animatedSrc:"https://s.w.org/images/block-editor/welcome-library.gif"}),content:(0,u.createElement)(u.Fragment,null,(0,u.createElement)("h1",{className:"edit-post-welcome-guide__heading"},(0,ie.__)("Get to know the block library","woocommerce")),(0,u.createElement)("p",{className:"edit-post-welcome-guide__text"},(0,u.createInterpolateElement)((0,ie.__)("All of the blocks available to you live in the block library. You’ll find it wherever you see the <InserterIconImage /> icon.","woocommerce"),{InserterIconImage:(0,u.createElement)("img",{alt:(0,ie.__)("inserter","woocommerce"),src:"data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='18' height='18' rx='2' fill='%231E1E1E'/%3E%3Cpath d='M9.22727 4V14M4 8.77273H14' stroke='white' stroke-width='1.5'/%3E%3C/svg%3E%0A"})})))},{image:(0,u.createElement)(se,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-documentation.svg",animatedSrc:"https://s.w.org/images/block-editor/welcome-documentation.gif"}),content:(0,u.createElement)(u.Fragment,null,(0,u.createElement)("h1",{className:"edit-post-welcome-guide__heading"},(0,ie.__)("Learn how to use the block editor","woocommerce")),(0,u.createElement)("p",{className:"edit-post-welcome-guide__text"},(0,ie.__)("New to the block editor? Want to learn more about using it? ","woocommerce"),(0,u.createElement)(S.ExternalLink,{href:(0,ie.__)("https://wordpress.org/documentation/article/wordpress-block-editor/","woocommerce")},(0,ie.__)("Here's a detailed guide.","woocommerce"))))}]})}function ue(){const{isActive:e}=(0,J.useSelect)(e=>{const{get:t}=e("core/preferences");return{isActive:t("core/edit-post","welcomeGuide")}},[]);return e?(0,u.createElement)(le,null):null}var de=o(14604),me=o(15703);function pe({label:e=(0,ie.__)("Edit Product description","woocommerce"),text:t=(0,ie.__)("Full editor","woocommerce")}){const{openModalEditor:o,setModalEditorBlocks:r}=(0,J.dispatch)(de.p),[n]=(0,l.useEntityProp)("postType","product","description");return(0,u.createElement)(S.ToolbarButton,{label:e,onClick:()=>{if(function(){const e=function(){const e=(0,me.getSetting)("admin");return e.gutenberg_version?parseFloat(e?.gutenberg_version):0}();return e>=17.9&&e<18}()){if("true"!==localStorage.getItem("__unsupported_force_product_editor_description_full_editor")?.trim().toLowerCase())return void alert((0,ie.__)("The version of the Gutenberg plugin installed causes a crash in the full editor. To prevent this, the full editor has been disabled.","woocommerce"));alert((0,ie.__)("The version of the Gutenberg plugin installed causes a crash in the full editor. You are proceeding at your own risk and may experience crashes.","woocommerce"))}let e=(0,c.parse)(n);const t=he(e);t&&(e=(0,c.rawHandler)({HTML:t})),r(e),(0,k.recordEvent)("product_add_description_click"),o()}},t)}function he(e){return!(1!==e.length||"core/freeform"!==e[0].name)&&e[0].attributes.content}var _e=o(29491),ve=(0,_e.createHigherOrderComponent)(e=>t=>"woocommerce/product-summary-field"!==t?.name||"product-description__content"!==t?.attributes?._templateBlockId?(0,u.createElement)(e,{...t}):(0,u.createElement)(u.Fragment,null,(0,u.createElement)(P.BlockControls,{group:"other"},(0,u.createElement)(pe,null)),(0,u.createElement)(e,{...t})),"wooBlockwithFullEditorToolbarButton");const{name:we,...ge}=ae,fe={example:{},edit:function({attributes:e}){const[t,o]=(0,l.useEntityProp)("postType","product","description"),[r,n]=(0,u.useState)([]),{isModalEditorOpen:a,modalEditorBlocks:i,hasChanged:s}=(0,J.useSelect)(e=>({isModalEditorOpen:e(de.p).isModalEditorOpen(),modalEditorBlocks:e(de.p).getModalEditorBlocks(),hasChanged:e(de.p).getModalEditorContentHasChanged()}),[]);(0,u.useEffect)(()=>{if(!t)return void n([]);if(-1===t.indexOf("\x3c!-- wp:"))return;const e=(0,c.parse)(t);he(e)||n(e)},[t]),(0,u.useEffect)(()=>{if(!s)return;const e=(0,c.serialize)(i);o(e)},[i,o,s]);const m=(0,d.useWooBlockProps)(e,{className:(0,ce.A)({"has-blocks":!!t.length}),tabIndex:0}),p=(0,P.useInnerBlocksProps)({},{templateLock:"contentOnly",allowedBlocks:["woocommerce/product-summary-field"]});return(0,u.createElement)("div",{...m},r?.length?(0,u.createElement)(u.Fragment,null,(0,u.createElement)(P.BlockControls,null,(0,u.createElement)(pe,{text:(0,ie.__)("Edit in full editor","woocommerce")})),(0,u.createElement)(P.BlockPreview,{blocks:r,viewportWidth:800,additionalStyles:[{css:"body { padding: 32px; height: 10000px }"}]})):(0,u.createElement)("div",{...p}),a&&(0,u.createElement)(ue,null))},icon:re},Ee=()=>(0,p.N)({name:we,metadata:ge,settings:fe});(0,ne.addFilter)("editor.BlockEdit","woocommerce/summary-block-with-full-editor-button",ve);const be=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"woocommerce/product-downloads-field","title":"Product downloads","category":"widgets","description":"The product downloads.","keywords":["products","downloads"],"textdomain":"default","attributes":{"name":{"type":"string","role":"content"}},"supports":{"align":false,"html":false,"multiple":true,"reusable":false,"inserter":false,"lock":false,"__experimentalToolbar":false},"editorStyle":"file:./editor.css","usesContext":["postType"]}');var Ce=o(91218);const xe=(0,oe.jsx)(te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,oe.jsx)(te.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"})});var ye=o(64816);const Ae=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M12.5 14.5h-1V16h1c2.2 0 4-1.8 4-4s-1.8-4-4-4h-1v1.5h1c1.4 0 2.5 1.1 2.5 2.5s-1.1 2.5-2.5 2.5zm-4 1.5v-1.5h-1C6.1 14.5 5 13.4 5 12s1.1-2.5 2.5-2.5h1V8h-1c-2.2 0-4 1.8-4 4s1.8 4 4 4h1zm-1-3.2h5v-1.5h-5v1.5zM18 4H9c-1.1 0-2 .9-2 2v.5h1.5V6c0-.3.2-.5.5-.5h9c.3 0 .5.2.5.5v12c0 .3-.2.5-.5.5H9c-.3 0-.5-.2-.5-.5v-.5H7v.5c0 1.1.9 2 2 2h9c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2z"})}),ke=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",children:(0,oe.jsx)(te.Path,{d:"m6.734 16.106 2.176-2.38-1.093-1.028-3.846 4.158 3.846 4.158 1.093-1.028-2.176-2.38h2.811c1.125 0 2.25.03 3.374 0 1.428-.001 3.362-.25 4.963-1.277 1.66-1.065 2.868-2.906 2.868-5.859 0-2.479-1.327-4.896-3.65-5.93-1.82-.813-3.044-.8-4.806-.788l-.567.002v1.5c.184 0 .368 0 .553-.002 1.82-.007 2.704-.014 4.21.657 1.854.827 2.76 2.657 2.76 4.561 0 2.472-.973 3.824-2.178 4.596-1.258.807-2.864 1.04-4.163 1.04h-.02c-1.115.03-2.229 0-3.344 0H6.734Z"})});function Se(e){e.required=!0,e.setCustomValidity(""),e.validity.valueMissing&&e.setCustomValidity((0,ie.__)("The URL is required","woocommerce")),e.validity.typeMismatch&&e.setCustomValidity((0,ie.__)("Insert a valid URL","woocommerce"))}function Pe({onLinkSuccess:e,onLinkError:t}){function o(o){o.preventDefault();const r=o.currentTarget,n=r.url;if(Se(n),r.checkValidity()){const t=r.url.value;e([{url:t}])}else t(n.validationMessage)}function r(e){Se(e.target)}function n(e){Se(e.target)}return(0,u.createElement)(S.Dropdown,{popoverProps:{placement:"left"},renderToggle:({isOpen:e,onToggle:t})=>(0,u.createElement)(S.MenuItem,{"aria-expanded":e,icon:Ae,iconPosition:"left",onClick:t,info:(0,ie.__)("Link to a file hosted elsewhere","woocommerce")},(0,ie.__)("Insert from URL","woocommerce")),renderContent:()=>(0,u.createElement)("form",{className:"components-dropdown-menu__menu",noValidate:!0,onSubmit:o},(0,u.createElement)(S.__experimentalInputControl,{name:"url",type:"url",placeholder:(0,ie.__)("Insert URL","woocommerce"),suffix:(0,u.createElement)(S.Button,{icon:ke,type:"submit"}),className:"woocommerce-inert-url-menu-item__input","aria-label":(0,ie.__)("Insert URL","woocommerce"),onInput:r,onBlur:n}))})}const Ve=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"})});var Be=o(16480);function Me({allowedTypes:e,maxUploadFileSize:t,onUploadSuccess:o,onUploadError:r}){const n=t||window.productBlockEditorSettings?.maxUploadFileSize||10485760;return(0,u.createElement)(S.FormFileUpload,{multiple:!0,onChange:function(t){const a=Array.from(t.currentTarget.files??[]);(0,Be.uploadMedia)({allowedTypes:e,filesList:a,maxUploadFileSize:n,onFileChange:o,onError:r})},render:({openFileDialog:e})=>(0,u.createElement)(S.MenuItem,{icon:Ve,iconPosition:"left",onClick:e,info:(0,ie.__)("Select files from your device","woocommerce")},(0,ie.__)("Upload","woocommerce"))})}function Fe({allowedTypes:e,maxUploadFileSize:t,onUploadSuccess:o,onUploadError:r,onLinkError:n}){return(0,u.createElement)(S.Dropdown,{popoverProps:{placement:"bottom-end"},contentClassName:"woocommerce-downloads-menu__menu-content",renderToggle:({isOpen:e,onToggle:t})=>(0,u.createElement)(S.Button,{"aria-expanded":e,icon:e?xe:ye.A,variant:"secondary",onClick:t,className:"woocommerce-downloads-menu__toggle"},(0,u.createElement)("span",null,(0,ie.__)("Add new","woocommerce"))),renderContent:({onClose:a})=>(0,u.createElement)("div",{className:"components-dropdown-menu__menu"},(0,u.createElement)(S.MenuGroup,null,(0,u.createElement)(Me,{allowedTypes:e,maxUploadFileSize:t,onUploadSuccess:e=>{o(e),a()},onUploadError:e=>{r(e),a()}}),(0,u.createElement)(Pe,{onLinkSuccess:e=>{o(e),a()},onLinkError:e=>{n(e),a()}})))})}var Le=o(67273);const Ne=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 5.5A2.25 2.25 0 0 0 9.878 7h4.244A2.251 2.251 0 0 0 12 5.5ZM12 4a3.751 3.751 0 0 0-3.675 3H5v1.5h1.27l.818 8.997a2.75 2.75 0 0 0 2.739 2.501h4.347a2.75 2.75 0 0 0 2.738-2.5L17.73 8.5H19V7h-3.325A3.751 3.751 0 0 0 12 4Zm4.224 4.5H7.776l.806 8.861a1.25 1.25 0 0 0 1.245 1.137h4.347a1.25 1.25 0 0 0 1.245-1.137l.805-8.861Z"})}),Te=()=>(0,u.createElement)("svg",{width:"14",height:"16",viewBox:"0 0 14 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,u.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.25 6C0.25 5.0335 1.0335 4.25 2 4.25L3 4.25L3 5.75L2 5.75C1.86193 5.75 1.75 5.86193 1.75 6L1.75 14C1.75 14.1381 1.86193 14.25 2 14.25L8 14.25C8.13807 14.25 8.25 14.1381 8.25 14L8.25 13L9.75 13L9.75 14C9.75 14.9665 8.9665 15.75 8 15.75L2 15.75C1.0335 15.75 0.25 14.9665 0.25 14L0.25 6ZM6 0.25C5.0335 0.25 4.25 1.0335 4.25 2L4.25 10C4.25 10.9665 5.0335 11.75 6 11.75L12 11.75C12.9665 11.75 13.75 10.9665 13.75 10L13.75 2C13.75 1.0335 12.9665 0.249999 12 0.249999L6 0.25ZM5.75 2C5.75 1.86193 5.86193 1.75 6 1.75L12 1.75C12.1381 1.75 12.25 1.86193 12.25 2L12.25 10C12.25 10.1381 12.1381 10.25 12 10.25L6 10.25C5.86193 10.25 5.75 10.1381 5.75 10L5.75 2Z",fill:"#007CBA"})),De=()=>(0,u.createElement)("svg",{width:"56",height:"72",viewBox:"0 0 56 72",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,u.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M37.9551 0H1.41177C0.63207 0 0 0.632067 0 1.41176V70.5882C0 71.3679 0.632067 72 1.41176 72H54.5882C55.3679 72 56 71.3679 56 70.5882V17.9261L37.9551 0Z",fill:"#F0F0F0"}),(0,u.createElement)("rect",{x:"28.6191",y:"40.6892",width:"13.3101",height:"13.3107",rx:"2.85325",fill:"#DDDDDD"}),(0,u.createElement)("ellipse",{cx:"18.1551",cy:"47.3446",rx:"6.65505",ry:"6.65537",fill:"#DDDDDD"}),(0,u.createElement)("path",{d:"M25.9557 24.1401C26.5048 23.1889 27.8776 23.1889 28.4267 24.1401L34.6041 34.84C35.1531 35.7911 34.4668 36.9799 33.3686 36.9799H21.0139C19.9157 36.9799 19.2293 35.7911 19.7784 34.84L25.9557 24.1401Z",fill:"#DDDDDD"}),(0,u.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.0005 9.53674e-05L56 17.9995H40.824C39.2646 17.9995 38.0005 16.7354 38.0005 15.176V9.53674e-05Z",fill:"#DDDDDD"})),He=({downloadableItem:e,onCancel:t,onChange:o,onRemove:r,onSave:n})=>{const{createNotice:a}=(0,J.useDispatch)("core/notices"),[c,i]=(0,u.useState)(!1),{id:s=0,file:l="",name:d=""}=e;return(0,u.createElement)(S.Modal,{title:(0,ie.sprintf)((0,ie.__)("Edit %s","woocommerce"),d),onRequestClose:e=>{!e||e.isPropagationStopped()||c||((0,k.recordEvent)("product_downloads_modal_cancel"),t())},className:"woocommerce-edit-downloads-modal"},(0,u.createElement)("div",{className:"woocommerce-edit-downloads-modal__preview"},(0,u.createElement)($.ImageGallery,{allowDragging:!1,columns:1},((e="")=>{if(!e)return;const t=(e.split(".").pop()||"").toLowerCase();return["jpg","jpeg","png","gif","webp"].includes(t)})(l)?(0,u.createElement)($.ImageGalleryItem,{key:s,alt:d,src:l,id:`${s}`,isCover:!1}):(0,u.createElement)(De,null)),(0,u.createElement)("div",{className:"components-form-file-upload"},(0,u.createElement)("p",null,d))),(0,u.createElement)(S.BaseControl,{id:"file-name-help",className:"woocommerce-edit-downloads-modal__file-name",help:(0,ie.__)("Your customers will see this on the thank-you page and in their order confirmation email.","woocommerce")},(0,u.createElement)(S.__experimentalInputControl,{id:"file-name",label:(0,ie.__)("FILE NAME","woocommerce"),name:"file-name",value:d||"",onChange:e=>{o(e??"")}})),(0,u.createElement)("div",{className:"woocommerce-edit-downloads-modal__file-url"},(0,u.createElement)(S.__experimentalInputControl,{disabled:!0,id:"file-url",label:(0,ie.__)("FILE URL","woocommerce"),name:"file-url",value:l||"",suffix:(0,u.createElement)(S.Button,{icon:(0,u.createElement)(Te,null),onClick:async function(){(0,k.recordEvent)("product_downloads_modal_copy_url_to_clipboard"),i(!0),await async function(e){if("clipboard"in navigator)await navigator.clipboard.writeText(e);else{const t=document.createElement("textarea");t.value=e,document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t)}await void a("success",(0,ie.__)("URL copied successfully.","woocommerce"))}(l),i(!1)}})})),(0,u.createElement)("div",{className:"woocommerce-edit-downloads-modal__buttons"},(0,u.createElement)("div",{className:"woocommerce-edit-downloads-modal__buttons-left"},(0,u.createElement)(S.Button,{icon:Ne,isDestructive:!0,variant:"tertiary",label:(0,ie.__)("Delete","woocommerce"),onClick:()=>{(0,k.recordEvent)("product_downloads_modal_delete"),r()}},(0,ie.__)("Delete file","woocommerce"))),(0,u.createElement)("div",{className:"woocommerce-edit-downloads-modal__buttons-right"},(0,u.createElement)(S.Button,{label:(0,ie.__)("Cancel","woocommerce"),onClick:()=>{(0,k.recordEvent)("product_downloads_modal_cancel"),t()},variant:"tertiary"},(0,ie.__)("Cancel","woocommerce")),(0,u.createElement)(S.Button,{label:(0,ie.__)("Update","woocommerce"),onClick:()=>{(0,k.recordEvent)("product_downloads_modal_update"),n()},variant:"primary"},(0,ie.__)("Update","woocommerce")))))};function ze(){return(0,u.createElement)("svg",{width:"104",height:"64",viewBox:"0 0 104 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,u.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M88.129 64C87.9065 64 87.6851 63.9941 87.4649 63.9823V64H61.888L56.6463 48.9818L68.2211 51.8173L51.9999 35.5945L35.7787 51.8173L47.3535 48.9818L42.1118 64H17.972V63.985C8.36383 63.5505 0.682007 53.7386 0.682007 41.6982C0.682007 29.3812 8.72077 19.3963 18.6371 19.3963C22.011 19.3963 25.1676 20.5522 27.8642 22.5626C32.3286 9.21729 41.8544 0 52.8848 0C65.7239 0 76.5246 12.4881 79.6776 29.4383C82.0937 27.4239 85.001 26.2488 88.129 26.2488C96.5176 26.2488 103.318 34.6997 103.318 45.1244C103.318 55.5491 96.5176 64 88.129 64Z",fill:"#F0F0F0"}))}function je(e){const[t]=e?.split("/").reverse()??[];return t}function Ie(e){return e?String(e):""}function Re(e){return{...e,id:Ie(e.id)}}const{name:Oe,...Ge}=be,$e={example:{},edit:function({attributes:e,context:{postType:t}}){const o=(0,d.useWooBlockProps)(e),[r,n]=(0,l.useEntityProp)("postType",t,"downloads"),[a,c]=(0,l.useEntityProp)("postType",t,"download_limit"),[i,s]=(0,l.useEntityProp)("postType",t,"download_expiry"),[m,p]=(0,u.useState)(),{allowedMimeTypes:h}=(0,J.useSelect)(e=>e("core/editor").getEditorSettings(),[]),_=h?Object.values(h):[],{createErrorNotice:v}=(0,J.useDispatch)("core/notices"),[w,g]=(0,u.useState)(!1);function E(e){if(!Array.isArray(e))return;const t=e.filter(e=>!r.some(t=>t.file===e.url));if(t.length!==e.length&&v(1===e.length?(0,ie.__)("This file has already been added","woocommerce"):(0,ie.__)("Some of these files have already been added","woocommerce")),t.length){const e=t.map(e=>({id:Ie(e.id),file:e.url,name:e.title||e.alt||e.caption||je(e.url)})),o=r.map(Re);o.push(...e),n(o)}}function b(e){const t=r.reduce(function(t,o){return o.file===e.file?t:[...t,Re(o)]},[]);n(t)}function C(e){return function(){b(e)}}function x(e){return function(){p(Re(e))}}const y=function(e){v((0,ie.sprintf)((0,ie.__)("Error uploading file:%1$s%2$s","woocommerce"),"\n",e.message))};return(0,u.createElement)("div",{...o},(0,u.createElement)(f.V,null,Boolean(r.length)&&(0,u.createElement)(S.Button,{variant:"tertiary",onClick:function(){g(!0)}},(0,ie.__)("Manage limits","woocommerce")),(0,u.createElement)(Fe,{allowedTypes:_,onUploadSuccess:E,onUploadError:y,onLinkError:function(e){v((0,ie.sprintf)((0,ie.__)("Error linking file:%1$s%2$s","woocommerce"),"\n",e))}})),(0,u.createElement)("div",{className:"wp-block-woocommerce-product-downloads-field__body"},(0,u.createElement)($.MediaUploader,{label:Boolean(r.length)?"":(0,u.createElement)("div",{className:"wp-block-woocommerce-product-downloads-field__drop-zone-content"},(0,u.createElement)(ze,null),(0,u.createElement)("p",{className:"wp-block-woocommerce-product-downloads-field__drop-zone-label"},(0,u.createInterpolateElement)((0,ie.__)("Supported file types: <Types /> and more. <link>View all</link>","woocommerce"),{Types:(0,u.createElement)(u.Fragment,null,"PNG, JPG, PDF, PPT, DOC, MP3, MP4"),link:(0,u.createElement)("a",{href:"https://codex.wordpress.org/Uploading_Files",target:"_blank",rel:"noreferrer",onClick:e=>e.stopPropagation()})}))),buttonText:"",allowedMediaTypes:_,multipleSelect:"add",maxUploadFileSize:window.productBlockEditorSettings?.maxUploadFileSize,onUpload:E,onFileUploadChange:E,onError:y,additionalData:{type:"downloadable_product"}}),Boolean(r.length)&&(0,u.createElement)($.Sortable,{className:"wp-block-woocommerce-product-downloads-field__table"},r.map(e=>{const t=je(e.file),o=e.file.startsWith("blob");return(0,u.createElement)($.ListItem,{key:e.file,className:"wp-block-woocommerce-product-downloads-field__table-row"},(0,u.createElement)("div",{className:"wp-block-woocommerce-product-downloads-field__table-filename"},(0,u.createElement)("span",null,e.name),e.name!==t&&(0,u.createElement)("span",{className:"wp-block-woocommerce-product-downloads-field__table-filename-description"},t)),(0,u.createElement)("div",{className:"wp-block-woocommerce-product-downloads-field__table-actions"},o&&(0,u.createElement)(S.Spinner,{"aria-label":(0,ie.__)("Uploading file","woocommerce")}),!o&&(0,u.createElement)(S.Button,{onClick:x(e),variant:"tertiary"},(0,ie.__)("Edit","woocommerce")),(0,u.createElement)(S.Button,{icon:Ce.A,label:(0,ie.__)("Remove file","woocommerce"),disabled:o,onClick:C(e)})))}))),w&&(0,u.createElement)(Le.Z,{initialValue:{downloadLimit:a,downloadExpiry:i},onSubmit:function(e){c(e.downloadLimit),s(e.downloadExpiry),g(!1)},onClose:function(){g(!1)}}),m&&(0,u.createElement)(He,{downloadableItem:{...m},onCancel:()=>p(null),onRemove:()=>{b(m),p(null)},onChange:e=>{p({...m,name:e})},onSave:(A=m,function(){const e=r.map(Re).map(e=>e.id===A.id?A:e);n(e),p(null)})}));var A}};function Ze(){return(0,p.N)({name:Oe,metadata:Ge,settings:$e})}const Ue=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"woocommerce/product-images-field","title":"Product images","category":"widgets","description":"The product images.","keywords":["products","image","images","gallery"],"textdomain":"default","attributes":{"mediaId":{"type":"number","role":"content"},"property":{"type":"string"},"multiple":{"type":"boolean","default":true},"images":{"role":"content","type":"array","items":{"type":"number"},"default":[]}},"supports":{"align":false,"html":false,"multiple":true,"reusable":false,"inserter":false,"lock":false,"__experimentalToolbar":false},"editorStyle":"file:./editor.css","usesContext":["postType"]}');var qe=o(5520);function We({...e}){const t=(0,_e.useInstanceId)(We,"clip-path"),o=(0,_e.useInstanceId)(We,"clip-path"),r=(0,_e.useInstanceId)(We,"clip-path"),n=(0,_e.useInstanceId)(We,"clip-path"),a=(0,_e.useInstanceId)(We,"filter");return(0,u.createElement)("svg",{"aria-hidden":"true",width:"330",height:"179",...e,viewBox:"0 0 330 179",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,u.createElement)("g",{clipPath:`url(#${t})`},(0,u.createElement)("rect",{y:"34.9561",width:"115.163",height:"115.163",rx:"8",transform:"rotate(-9.4741 0 34.9561)",fill:"white"}),(0,u.createElement)("rect",{width:"118",height:"90",transform:"translate(0.671875 47.5995) rotate(-9.4741)",fill:"white"}),(0,u.createElement)("path",{d:"M75.235 56.0601C69.3054 57.0496 66.0444 58.6594 64.4714 61.2948C64.9933 56.6155 66.7756 52.8705 70.5469 49.1187C65.5862 50.6193 62.9649 53.0368 61.9995 56.0314C60.1145 53.5147 56.8502 52.0794 51.6706 52.2687C56.4559 54.5926 59.3572 57.5538 61.3707 61.8123C59.0272 59.8305 55.4201 59.3667 49.4906 60.3563C57.1121 62.4959 60.2617 64.7157 63.3629 69.1178L64.9571 68.8517C66.4609 63.6812 68.7212 60.5585 75.2328 56.0605L75.235 56.0601Z",fill:"#DDDDDD"}),(0,u.createElement)("path",{d:"M75.7883 109.541C77.9458 108.305 86.066 105.026 84.7028 96.8581C83.8932 92.0066 78.8948 89.0793 73.7718 89.0612C75.8672 87.9672 78.5654 84.2027 77.9617 80.585C77.1839 75.9242 72.6559 74.7684 69.0874 74.6227C68.9099 73.5588 71.8268 67.4299 71.8268 67.4299L55.982 70.0741C55.982 70.0741 60.731 74.9237 60.9085 75.9876C57.5783 77.2876 53.6734 79.8476 54.4511 84.5084C55.0549 88.1261 58.8293 90.8105 61.1664 91.1648C56.3243 92.8489 52.5503 97.2401 53.3594 102.089C54.723 110.26 63.4677 110.724 65.9092 111.19C60.5417 112.609 58.1704 115.192 58.0308 116.964L85.1178 112.444C84.4073 110.814 81.3259 109.141 75.7913 109.541L75.7883 109.541Z",fill:"#F0F0F0"})),(0,u.createElement)("rect",{x:"0.575481",y:"35.3669",width:"114.163",height:"114.163",rx:"7.5",transform:"rotate(-9.4741 0.575481 35.3669)",stroke:"#CCCCCC"}),(0,u.createElement)("g",{clipPath:`url(#${o})`},(0,u.createElement)("rect",{x:"106",y:"71",width:"108",height:"108",rx:"8",fill:"white"}),(0,u.createElement)("g",{clipPath:`url(#${n})`,filter:`url(#${a})`},(0,u.createElement)("rect",{width:"148",height:"113",transform:"translate(86 68.5)",fill:"white"}),(0,u.createElement)("path",{d:"M190.129 99.2362C176.411 99.2362 168.467 101.637 163.937 106.983C166.869 96.6368 172.287 88.8691 182.185 81.8339C170.456 83.3498 163.648 87.811 160.35 94.1951C157.053 87.8161 150.245 83.3549 138.516 81.8339C148.414 88.8691 153.832 96.6317 156.764 106.983C152.234 101.637 144.289 99.2362 130.572 99.2362C146.922 106.922 153.177 113.108 158.504 124.192H162.192C167.519 113.108 173.779 106.922 190.124 99.2362H190.129Z",fill:"#DDDDDD"}),(0,u.createElement)("path",{d:"M171.287 219.941C176.607 217.968 196.115 213.634 196.115 194.717C196.115 183.482 185.964 175.007 174.44 173.04C179.567 171.363 187.054 163.896 187.054 155.518C187.054 144.724 177.297 140.418 169.32 138.748C169.32 136.284 178.187 123.572 178.187 123.572H141.532C141.532 123.572 150.399 136.284 150.399 138.748C142.416 140.425 132.665 144.724 132.665 155.518C132.665 163.896 140.152 171.363 145.279 173.04C133.749 175.014 123.605 183.489 123.605 194.717C123.605 213.64 143.112 217.974 148.433 219.941C135.819 221.121 129.512 226.049 128.532 229.99H191.195C190.208 226.049 183.901 221.121 171.294 219.941H171.287Z",fill:"#F0F0F0"}))),(0,u.createElement)("rect",{x:"106.5",y:"71.5",width:"107",height:"107",rx:"7.5",stroke:"#CCCCCC"}),(0,u.createElement)("g",{clipPath:`url(#${r})`},(0,u.createElement)("rect",{x:"213.602",width:"117.576",height:"117.576",rx:"8",transform:"rotate(9.10319 213.602 0)",fill:"white"}),(0,u.createElement)("rect",{width:"118",height:"90",transform:"translate(211.211 13.5808) rotate(9.10319)",fill:"white"}),(0,u.createElement)("path",{d:"M279.072 45.3017C273.162 44.3548 269.574 44.8397 267.254 46.8279C269.231 42.5774 272.1 39.6085 276.85 37.264C271.692 37.1068 268.451 38.5568 266.591 41.0766C265.61 38.1037 262.985 35.7138 258.037 34.2496C261.815 37.9605 263.614 41.6752 264.164 46.3327C262.581 43.7191 259.324 42.1374 253.414 41.1905C259.928 45.6271 262.196 48.7209 263.727 53.8589L265.315 54.1135C268.375 49.7109 271.498 47.481 279.07 45.3014L279.072 45.3017Z",fill:"#E0E0E0"}),(0,u.createElement)("path",{d:"M262.631 95.9482C265.059 95.466 273.762 94.9474 275.067 86.8065C275.842 81.9713 272.053 77.6233 267.224 75.9814C269.549 75.6136 273.289 72.9168 273.867 69.3112C274.611 64.666 270.704 62.1391 267.383 60.8697C267.553 59.8094 272.25 54.9507 272.25 54.9507L256.458 52.4204C256.458 52.4204 259.401 58.5033 259.232 59.5636C255.676 59.7342 251.179 60.9115 250.435 65.5567C249.857 69.1623 252.568 72.8927 254.661 73.9684C249.557 74.0219 244.603 76.9689 243.829 81.8012C242.524 89.945 250.629 93.1569 252.785 94.3706C247.27 94.0077 244.213 95.693 243.519 97.3212L270.515 101.647C270.362 99.8828 267.984 97.3268 262.634 95.9487L262.631 95.9482Z",fill:"#F0F0F0"}),(0,u.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M239.562 96.9769C238.554 94.0517 238.285 89.8732 239.007 85.3673C239.729 80.8615 241.29 76.9762 243.162 74.5126L232.691 72.8348C233.7 75.76 233.969 79.9386 233.247 84.4444C232.525 88.9502 230.964 92.8356 229.091 95.2991L239.562 96.9769Z",fill:"#F0F0F0"}),(0,u.createElement)("path",{d:"M241.466 51.1999L235.767 50.2867L218.224 70.9461L233.092 73.3285L242.508 74.8372L257.376 77.2196L247.166 52.1132L241.466 51.1999Z",fill:"#E0E0E0"}),(0,u.createElement)("path",{d:"M253.979 68.868L224.06 64.0739L218.224 70.9461L253.979 68.868Z",fill:"#F0F0F0"}),(0,u.createElement)("path",{d:"M250.583 60.513L229.897 57.1984L224.06 64.074L250.583 60.513Z",fill:"#F0F0F0"}),(0,u.createElement)("path",{d:"M247.166 52.1131L235.767 50.2866L229.896 57.1984L247.166 52.1131Z",fill:"#F0F0F0"}),(0,u.createElement)("path",{d:"M278.485 84.1128L296.917 87.0663L292.88 105.325L276.616 102.719L278.485 84.1128Z",fill:"#F0F0F0"}),(0,u.createElement)("path",{d:"M290.23 80.8727C289.873 83.0995 287.856 84.6278 287.856 84.6278C287.856 84.6278 286.417 82.5457 286.774 80.3189C287.13 78.0921 289.148 76.5637 289.148 76.5637C289.148 76.5637 290.586 78.6458 290.23 80.8727Z",fill:"#E0E0E0"}),(0,u.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M295.836 91.9567L277.984 89.0963L278.485 84.1128L296.917 87.0662L295.836 91.9567Z",fill:"#E0E0E0"})),(0,u.createElement)("rect",{x:"214.017",y:"0.572809",width:"116.576",height:"116.576",rx:"7.5",transform:"rotate(9.10319 214.017 0.572809)",stroke:"#CCCCCC"}),(0,u.createElement)("defs",null,(0,u.createElement)("filter",{id:a,x:"86",y:"52.5",width:"148",height:"129",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},(0,u.createElement)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,u.createElement)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),(0,u.createElement)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,u.createElement)("feOffset",{dy:"-16"}),(0,u.createElement)("feGaussianBlur",{stdDeviation:"15"}),(0,u.createElement)("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),(0,u.createElement)("feColorMatrix",{type:"matrix",values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0"}),(0,u.createElement)("feBlend",{mode:"normal",in2:"shape",result:"effect1_innerShadow_853_49189"})),(0,u.createElement)("clipPath",{id:t},(0,u.createElement)("rect",{y:"34.9561",width:"115.163",height:"115.163",rx:"8",transform:"rotate(-9.4741 0 34.9561)",fill:"white"})),(0,u.createElement)("clipPath",{id:o},(0,u.createElement)("rect",{x:"106",y:"71",width:"108",height:"108",rx:"8",fill:"white"})),(0,u.createElement)("clipPath",{id:n},(0,u.createElement)("rect",{width:"148",height:"113",fill:"white",transform:"translate(86 68.5)"})),(0,u.createElement)("clipPath",{id:r},(0,u.createElement)("rect",{x:"213.602",width:"117.576",height:"117.576",rx:"8",transform:"rotate(9.10319 213.602 0)",fill:"white"}))))}function Je({...e}){return(0,u.createElement)("svg",{"aria-hidden":"true",width:"118",height:"90",...e,viewBox:"0 0 118 90",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,u.createElement)("rect",{width:"118",height:"90",fill:"white"}),(0,u.createElement)("path",{d:"M87.3178 20.5954C81.3245 20.5954 77.8536 21.6433 75.8743 23.9767C77.1554 19.4609 79.5226 16.0706 83.8469 13.0001C78.7224 13.6617 75.748 15.6088 74.3073 18.3952C72.8666 15.6111 69.8921 13.664 64.7677 13.0001C69.092 16.0706 71.4591 19.4586 72.7403 23.9767C70.761 21.6433 67.29 20.5954 61.2968 20.5954C68.4404 23.9501 71.1732 26.6498 73.5005 31.4876H75.1119C77.4391 26.6498 80.1742 23.9501 87.3156 20.5954H87.3178Z",fill:"#E0E0E0"}),(0,u.createElement)("path",{d:"M79.1522 73.2086C81.4767 72.3472 89.9997 70.4556 89.9997 62.1995C89.9997 57.2958 85.5649 53.5969 80.53 52.7385C82.7701 52.0066 86.0412 48.7475 86.0412 45.0908C86.0412 40.3799 81.7782 38.5004 78.293 37.7715C78.293 36.6961 82.1671 31.1479 82.1671 31.1479H66.1521C66.1521 31.1479 70.0262 36.6961 70.0262 37.7715C66.538 38.5034 62.278 40.3799 62.278 45.0908C62.278 48.7475 65.5491 52.0066 67.7892 52.7385C62.7513 53.6 58.3195 57.2988 58.3195 62.1995C58.3195 70.4586 66.8425 72.3502 69.167 73.2086C63.6558 73.7237 60.9002 75.8743 60.4721 77.5942H87.8501C87.419 75.8743 84.6634 73.7237 79.1552 73.2086H79.1522Z",fill:"#F0F0F0"}),(0,u.createElement)("path",{d:"M46.2238 74.2966C48.1078 73.5972 55.012 72.0608 55.012 65.3537C55.012 61.3706 51.4192 58.3667 47.3387 57.6674C49.1518 57.0746 51.8026 54.4259 51.8026 51.4553C51.8026 47.6299 48.3494 46.1024 45.5256 45.5096C45.5256 44.6371 48.6641 40.1301 48.6641 40.1301H35.6913C35.6913 40.1301 38.8298 44.6371 38.8298 45.5096C36.0038 46.1024 32.5528 47.6299 32.5528 51.4553C32.5528 54.4237 35.2037 57.0724 37.0167 57.6674C32.9362 58.3667 29.3434 61.3706 29.3434 65.3537C29.3434 72.0608 36.2476 73.5972 38.1316 74.2966C33.6677 74.7162 31.4357 76.4635 31.0877 77.86H53.2677C52.9197 76.4635 50.6877 74.7162 46.2238 74.2966Z",fill:"white"}),(0,u.createElement)("path",{d:"M42.7052 42.1675C44.3669 32.7344 42.7487 24.8174 37.5744 22.5889C32.5593 20.4293 29.8663 22.9533 30.8901 25.0079C32.118 27.4704 35.8707 25.5778 39.1746 28.6657C42.2669 31.5556 42.3479 42.5139 42.3479 42.5139L42.7067 42.166L42.7052 42.1675Z",fill:"#E0E0E0"}),(0,u.createElement)("path",{d:"M42.6524 39.8413C42.6524 39.8413 43.8097 32.2258 48.5682 28.928C53.2741 25.6661 57.914 27.5152 58.0851 29.3569C58.2562 31.1985 56.9968 32.3983 53.1886 32.3983C47.4889 32.3983 45.0782 34.8848 43.0997 39.9283C42.5458 41.341 42.6524 39.8413 42.6524 39.8413Z",fill:"#E0E0E0"}),(0,u.createElement)("path",{d:"M43.4499 42.3579C43.4499 42.3579 42.2926 34.7424 37.5341 31.4446C32.8282 28.1827 28.1883 30.0319 28.0172 31.8735C27.8461 33.7151 28.9179 35.0424 34.0621 34.9149C39.5321 34.7784 42.1215 42.6159 42.1215 42.6159L43.4499 42.3594V42.3579Z",fill:"#E0E0E0"}),(0,u.createElement)("path",{d:"M46.2243 74.2967C48.1083 73.5973 55.0125 72.061 55.0125 65.3538C55.0125 61.3708 51.4197 58.3668 47.3392 57.6675C49.1522 57.0747 51.8031 54.426 51.8031 51.4554C51.8031 47.63 48.3499 46.1025 45.5261 45.5097C45.5261 44.6372 48.6646 40.1302 48.6646 40.1302H35.6918C35.6918 40.1302 38.8303 44.6372 38.8303 45.5097C36.0043 46.1025 32.5533 47.63 32.5533 51.4554C32.5533 54.4238 35.2042 57.0725 37.0172 57.6675C32.9367 58.3668 29.3439 61.3708 29.3439 65.3538C29.3439 72.061 36.2481 73.5973 38.1321 74.2967C33.6682 74.7163 31.4362 76.4636 31.0882 77.8601H53.2682C52.9202 76.4636 50.6882 74.7163 46.2243 74.2967Z",fill:"#F0F0F0"}),(0,u.createElement)("path",{d:"M42.1795 62.7139C37.4341 62.7139 33.8368 61.8391 30.889 61.1065C29.927 62.3054 29.3463 63.7485 29.3463 65.3515C29.3463 66.8035 29.6699 68.0113 30.1974 69.0215C33.6351 70.1893 36.9177 70.771 42.1817 70.771C47.4458 70.771 50.7284 70.1893 54.1661 69.0215C54.6914 68.0113 55.0172 66.8013 55.0172 65.3515C55.0172 63.7485 54.4342 62.3054 53.4745 61.1065C50.5267 61.8391 46.9294 62.7139 42.184 62.7139H42.1795Z",fill:"#E0E0E0"}),(0,u.createElement)("path",{d:"M51.4907 53.2537C51.6901 52.6786 51.8054 52.0747 51.8054 51.4575C51.8054 50.4696 51.5727 49.6348 51.1826 48.9287C49.7308 49.597 45.9163 50.5894 42.1794 50.5894C38.4424 50.5894 34.6279 49.597 33.1762 48.9287C32.7861 49.6348 32.5533 50.4673 32.5533 51.4575C32.5533 52.077 32.6686 52.6809 32.8681 53.2537C35.2907 54.1417 38.735 54.8566 42.1794 54.8566C45.6237 54.8566 49.0659 54.1417 51.4907 53.2537Z",fill:"#E0E0E0"}))}function Ye({multiple:e=!0}){return(0,u.createElement)("div",{className:"woocommerce-image-placeholder__wrapper"},e?(0,u.createElement)(We,null):(0,u.createElement)(Je,null),(0,u.createElement)("p",null,e?(0,ie.__)("For best results, offer a variety of product images, like close-up details, lifestyle scenes, and color variations.","woocommerce"):(0,ie.__)("Add an image which displays the unique characteristics of this variation.","woocommerce")))}function Ke(e){return e.id?{id:e.id,name:e.title,src:e.url,alt:e.alt}:null}const{name:Xe}=Ue,Qe={example:{},edit:function({attributes:e,context:t}){const{property:o,multiple:r}=e,[n,a]=(0,l.useEntityProp)("postType",t.postType,o),[c,i]=(0,u.useState)(!1),[s,m]=(0,u.useState)(!1),[p,h]=(0,u.useState)(null),_=(0,d.useWooBlockProps)(e,{className:(0,ce.A)({"has-images":Array.isArray(n)?n.length>0:Boolean(n)})}),{createErrorNotice:v}=(0,J.useDispatch)("core/notices");function w(e){return function(t){if((0,k.recordEvent)(e),Array.isArray(t)){const e=t.filter(e=>e.id).map(e=>({id:e.id,name:e.title??"",src:e.url,alt:e.alt}));t[0]?.id&&a([...n,...e])}else t.id&&a(Ke(t))}}const g=null!==n&&(!Array.isArray(n)||n.length>0);return(0,u.createElement)("div",{..._},(0,u.createElement)("div",{className:"woocommerce-product-form__image-drop-zone"},c?(0,u.createElement)("div",{className:"woocommerce-product-form__remove-image-drop-zone"},(0,u.createElement)("span",null,(0,u.createElement)(qe.A,{icon:Ne,size:20,className:"icon-control"}),(0,ie.__)("Drop here to remove","woocommerce")),(0,u.createElement)(S.DropZone,{onHTMLDrop:()=>m(!0),onDrop:()=>m(!0),label:(0,ie.__)("Drop here to remove","woocommerce")})):(0,u.createElement)(f.V,null,(0,u.createElement)("div",{className:"woocommerce-product-form__media-uploader"},(0,u.createElement)($.MediaUploader,{value:Array.isArray(n)?n.map(({id:e})=>e):n?.id??void 0,multipleSelect:!!r&&"add",maxUploadFileSize:window.productBlockEditorSettings?.maxUploadFileSize,onError:function(e){v((0,ie.sprintf)((0,ie.__)("Error uploading image:%1$s%2$s","woocommerce"),"\n",e.message))},onFileUploadChange:w("product_images_add_via_file_upload_area"),onMediaGalleryOpen:()=>{(0,k.recordEvent)("product_images_media_gallery_open")},onSelect:e=>function(e){if((0,k.recordEvent)("product_images_add_via_media_library"),Array.isArray(e)){const t=e.map(e=>Ke(e)).filter(e=>null!==e);a(t)}else a(Ke(e))}(e),onUpload:w("product_images_add_via_drag_and_drop_upload"),label:"",buttonText:(0,ie.__)("Choose an image","woocommerce")})))),g?(0,u.createElement)($.ImageGallery,{allowDragging:!1,onDragStart:function(e){if(Array.isArray(n)){const{id:t,dataset:o}=e.target;if(t)h(parseInt(t,10));else if(o?.index){const e=parseInt(o.index,10);h(n[e]?.id??null)}i(e=>!e)}},onDragEnd:function(){Array.isArray(n)&&(s&&p&&((0,k.recordEvent)("product_images_remove_image_button_click"),a(n.filter(e=>e.id!==p)),m(!1),h(null)),i(e=>!e))},onOrderChange:function(e){if(Array.isArray(n)){const t=n.reduce((e,t)=>({...e,[`${t.id}`]:t}),{}),o=e.filter(e=>e?.props?.id in t).map(e=>t[e?.props?.id]);(0,k.recordEvent)("product_images_change_image_order_via_image_gallery"),a(o)}},onReplace:function({replaceIndex:e,media:t}){if((0,k.recordEvent)("product_images_replace_image_button_click"),Array.isArray(n)){if(n.some(e=>t.id===e.id))return;const o=Ke(t);if(o){const t=[...n];t[e]=o,a(t)}}else a(Ke(t))},onRemove:function({removedItem:e}){if((0,k.recordEvent)("product_images_remove_image_button_click"),Array.isArray(n)){const t=n.filter(t=>String(t.id)!==e.props.id);a(t)}else a(null)},onSelectAsCover:()=>(0,k.recordEvent)("product_images_select_image_as_cover_button_click")},(Array.isArray(n)?n:[n]).map((e,t)=>(0,u.createElement)($.ImageGalleryItem,{key:e.id,alt:e.alt,src:e.src,id:`${e.id}`,isCover:r&&0===t}))):(0,u.createElement)(Ye,{multiple:r}))}},et=()=>(0,p.N)({name:Xe,metadata:Ue,settings:Qe}),tt=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"woocommerce/product-inventory-email-field","title":"Stock level threshold","category":"widgets","description":"Stock management minimum quantity.","keywords":["products","inventory","email","minimum"],"textdomain":"default","attributes":{"name":{"type":"string","role":"content"}},"supports":{"align":false,"html":false,"multiple":true,"reusable":false,"inserter":false,"lock":false,"__experimentalToolbar":false}}');var ot=o(25733);const{name:rt,...nt}=tt,at={example:{},edit:function({attributes:e,clientId:t}){const o=(0,d.useWooBlockProps)(e),r=(0,me.getSetting)("notifyLowStockAmount",2),[n,a]=(0,l.useEntityProp)("postType","product","low_stock_amount"),c=(0,_e.useInstanceId)(S.BaseControl,"low_stock_amount"),{ref:i,error:s,validate:m}=(0,ot.$)(`low_stock_amount-${t}`,async function(){if(n&&n<0)return{message:(0,ie.__)("This field must be a positive number.","woocommerce")}},[n]);return(0,u.createElement)(u.Fragment,null,(0,u.createElement)("div",{...o},(0,u.createElement)("div",{className:"wp-block-columns"},(0,u.createElement)("div",{className:"wp-block-column"},(0,u.createElement)(S.BaseControl,{id:c,label:(0,ie.__)("Email me when stock reaches","woocommerce"),help:s||(0,u.createInterpolateElement)((0,ie.__)("Make sure to enable notifications in <link>store settings.</link>","woocommerce"),{link:(0,u.createElement)($.Link,{href:`${(0,me.getSetting)("adminUrl")}admin.php?page=wc-settings&tab=products&section=inventory`,target:"_blank",type:"external"})}),className:s&&"has-error"},(0,u.createElement)(S.__experimentalInputControl,{id:c,ref:i,name:"low_stock_amount",placeholder:(0,ie.sprintf)((0,ie.__)("%d (store default)","woocommerce"),r),onChange:e=>{a(parseInt(e??"",10))},onBlur:async()=>await m(),value:n?.toString(),type:"number",min:0}))),(0,u.createElement)("div",{className:"wp-block-column"}))))}};function ct(){return(0,p.N)({name:rt,metadata:nt,settings:at})}const it=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"woocommerce/product-sku-field","title":"Product text control","category":"woocommerce","description":"The product sku.","keywords":["products","sku"],"textdomain":"default","attributes":{"name":{"type":"string","role":"content"},"disabled":{"type":"boolean","default":false}},"supports":{"align":false,"html":false,"multiple":true,"reusable":false,"inserter":false,"lock":false,"__experimentalToolbar":false},"editorStyle":"file:./editor.css","usesContext":["postType"]}'),{name:st,...lt}=it,ut={example:{},edit:function({attributes:e,context:t}){const o=(0,d.useWooBlockProps)(e),[r,n]=(0,l.useEntityProp)("postType",t.postType,"sku"),{ref:a}=(0,ot.$)("sku",async function(){},[r]),c=(0,_e.useInstanceId)(S.BaseControl,"product_sku");return(0,u.createElement)("div",{...o},(0,u.createElement)(S.BaseControl,{id:c,className:"woocommerce-product-form_inventory-sku",label:(0,u.createInterpolateElement)((0,ie.__)("Sku <description />","woocommerce"),{description:(0,u.createElement)("span",{className:"woocommerce-product-form__optional-input"},(0,ie.__)("(STOCK KEEPING UNIT)","woocommerce"))})},(0,u.createElement)(S.__experimentalInputControl,{ref:a,id:c,name:"woocommerce-product-sku",onChange:e=>{n(e??"")},value:r||"",disabled:e.disabled})))}},dt=()=>(0,p.N)({name:st,metadata:lt,settings:ut}),mt=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"woocommerce/product-name-field","title":"Product name","category":"widgets","description":"The product name.","keywords":["products","name","title"],"textdomain":"default","attributes":{"name":{"type":"string","role":"content"},"autoFocus":{"type":"boolean","default":false}},"supports":{"align":false,"html":false,"multiple":true,"reusable":false,"inserter":false,"lock":false,"__experimentalToolbar":false},"editorStyle":"file:./editor.css"}'),pt=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M11.776 4.454a.25.25 0 01.448 0l2.069 4.192a.25.25 0 00.188.137l4.626.672a.25.25 0 01.139.426l-3.348 3.263a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.362.263l-4.138-2.175a.25.25 0 00-.232 0l-4.138 2.175a.25.25 0 01-.363-.263l.79-4.607a.25.25 0 00-.071-.222L4.754 9.881a.25.25 0 01.139-.426l4.626-.672a.25.25 0 00.188-.137l2.069-4.192z"})}),ht=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{fillRule:"evenodd",d:"M9.706 8.646a.25.25 0 01-.188.137l-4.626.672a.25.25 0 00-.139.427l3.348 3.262a.25.25 0 01.072.222l-.79 4.607a.25.25 0 00.362.264l4.138-2.176a.25.25 0 01.233 0l4.137 2.175a.25.25 0 00.363-.263l-.79-4.607a.25.25 0 01.072-.222l3.347-3.262a.25.25 0 00-.139-.427l-4.626-.672a.25.25 0 01-.188-.137l-2.069-4.192a.25.25 0 00-.448 0L9.706 8.646zM12 7.39l-.948 1.921a1.75 1.75 0 01-1.317.957l-2.12.308 1.534 1.495c.412.402.6.982.503 1.55l-.362 2.11 1.896-.997a1.75 1.75 0 011.629 0l1.895.997-.362-2.11a1.75 1.75 0 01.504-1.55l1.533-1.495-2.12-.308a1.75 1.75 0 01-1.317-.957L12 7.39z",clipRule:"evenodd"})});var _t=o(93832);const vt=({product:e,permalinkPrefix:t,permalinkSuffix:o,onCancel:r,onSaved:n,saveHandler:a})=>{const{createNotice:c}=(0,J.useDispatch)("core/notices"),[i,s]=(0,u.useState)(!1),[l,d]=(0,u.useState)(e.slug||(0,_t.cleanForSlug)(e.name)),m=t+(0,_t.cleanForSlug)(l)+o;return(0,u.createElement)(S.Modal,{title:(0,ie.__)("Edit product link","woocommerce"),onRequestClose:()=>r(),className:"woocommerce-product-link-edit-modal"},(0,u.createElement)("div",{className:"woocommerce-product-link-edit-modal__wrapper"},(0,u.createElement)("p",{className:"woocommerce-product-link-edit-modal__description"},(0,ie.__)("Create a unique link for this product. Use simple, descriptive words and numbers. We'll replace spaces with hyphens (-).","woocommerce")),(0,u.createElement)(S.TextControl,{label:(0,ie.__)("Product link","woocommerce"),name:"slug",value:l,onChange:d,hideLabelFromVision:!0,help:(0,u.createInterpolateElement)((0,ie.__)("Preview: <link />","woocommerce"),{link:(0,u.createElement)("strong",null,m)})}),(0,u.createElement)("div",{className:"woocommerce-product-link-edit-modal__buttons"},(0,u.createElement)(S.Button,{isSecondary:!0,onClick:()=>r()},(0,ie.__)("Cancel","woocommerce")),(0,u.createElement)(S.Button,{isPrimary:!0,isBusy:i,disabled:i||l===e.slug,onClick:async()=>{s(!0),await(async()=>{(0,k.recordEvent)("product_update_slug",{source:V.bG,product_id:e.id,product_type:e.type});const{slug:t,permalink:o}=await a(l)??{};t?c(t===(0,_t.cleanForSlug)(l)?"success":"info",t===(0,_t.cleanForSlug)(l)?(0,ie.__)("Product link successfully updated.","woocommerce"):(0,ie.__)("Product link already existed, updated to ","woocommerce")+o):c("error",(0,ie.__)("Failed to update product link.","woocommerce")),n()})(),s(!1)}},(0,ie.__)("Save","woocommerce")))))};var wt=o(64557),gt=o(30895),ft=o(55204),Et=o(94134);const{name:bt}=mt,Ct={example:{},edit:function({attributes:e,clientId:t}){const o=(0,d.useWooBlockProps)(e),{editEntityRecord:r,saveEntityRecord:n}=(0,J.useDispatch)("core"),{hasEdit:a}=(0,gt.g)(),[c,i]=(0,u.useState)(!1),s=(0,l.useEntityId)("postType","product"),m=(0,J.useSelect)(e=>e(l.store).getEditedEntityRecord("postType","product",s),[s]),[p,h]=(0,l.useEntityProp)("postType","product","sku"),[_,v]=(0,l.useEntityProp)("postType","product","name"),{prefix:w,suffix:g}=(0,ft.Q)(m),{ref:f,error:E,validate:b}=(0,ot.$)("name",async function(){return _&&_!==Et.u6?_.length>120?{message:(0,ie.__)("Please enter a product name shorter than 120 characters.","woocommerce")}:void 0:{message:(0,ie.__)("Product name is required.","woocommerce")}},[_]),C=E??(s&&["publish","draft"].includes(m.status)&&w&&(0,u.createElement)("span",{className:"woocommerce-product-form__secondary-text product-details-section__product-link"},(0,ie.__)("Product link","woocommerce"),": ",(0,u.createElement)("a",{href:m.permalink,target:"_blank",rel:"noreferrer"},w,m.slug||(0,_t.cleanForSlug)(_),g),(0,u.createElement)(S.Button,{variant:"link",onClick:()=>i(!0)},(0,ie.__)("Edit","woocommerce")))),x=(0,_e.useInstanceId)(S.BaseControl,"product_name"),{selectBlock:y}=(0,J.useDispatch)("core/block-editor");(0,u.useEffect)(()=>{e.autoFocus&&y(t)},[]);const[A,k]=(0,H.A)("featured");function P(){k(!A)}return(0,u.createElement)(u.Fragment,null,(0,u.createElement)("div",{...o},(0,u.createElement)(S.BaseControl,{id:x,label:(0,u.createElement)(wt.J,{label:(0,ie.__)("Name","woocommerce"),required:!0}),className:(0,ce.A)({"has-error":E}),help:C},(0,u.createElement)(S.__experimentalInputControl,{id:x,ref:f,name:"name",autoFocus:e.autoFocus,placeholder:(0,ie.__)("e.g. 12 oz Coffee Mug","woocommerce"),onChange:e=>{v(e??"")},value:_&&_!==Et.u6?_:"",autoComplete:"off","data-1p-ignore":!0,onBlur:()=>{a("name")&&(p||E||h((0,_t.cleanForSlug)(_)),b())},suffix:function(){const e=(0,ie.__)("Mark as featured","woocommerce"),t=(0,ie.__)("Unmark as featured","woocommerce"),o=A?t:e;return(0,u.createElement)(S.Tooltip,{text:o,placement:"top"},A?(0,u.createElement)(S.Button,{icon:pt,"aria-label":t,onClick:P}):(0,u.createElement)(S.Button,{icon:ht,"aria-label":e,onClick:P}))}()})),c&&(0,u.createElement)(vt,{permalinkPrefix:w||"",permalinkSuffix:g||"",product:m,onCancel:()=>i(!1),onSaved:()=>i(!1),saveHandler:async e=>{const{slug:t,permalink:o}=await n("postType","product",{id:m.id,slug:e});if(t&&o)return r("postType","product",m.id,{slug:t,permalink:o}),{slug:t,permalink:o}}})))}},xt=()=>(0,p.N)({name:bt,metadata:mt,settings:Ct}),yt=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"woocommerce/product-pricing-field","description":"A product price block with currency display.","title":"Product pricing","category":"widgets","keywords":["products","price"],"textdomain":"default","attributes":{"property":{"type":"string","role":"content"},"label":{"type":"string"},"help":{"type":"string"},"tooltip":{"type":"string"}},"supports":{"align":false,"html":false,"multiple":true,"reusable":false,"inserter":false,"lock":false,"__experimentalToolbar":false},"editorStyle":"file:./editor.css","usesContext":["postType"]}');var At=o(96476),kt=o(45391);const{name:St,...Pt}=yt,Vt={example:{},edit:function({attributes:e,context:{postType:t}}){const o=(0,d.useWooBlockProps)(e),{property:r,label:n=(0,ie.__)("Price","woocommerce"),help:a,disabled:c,tooltip:i}=e,[s,l]=(0,H.A)(r,{postType:t,fallbackValue:""}),m=(0,kt.d)({value:s||"",onChange:l}),p=a?(0,u.createInterpolateElement)(a,{PricingTab:(0,u.createElement)($.Link,{href:(0,At.getNewPath)({tab:"pricing"}),onClick:()=>{(0,k.recordEvent)("product_pricing_help_click")}})}):null,h=(0,_e.useInstanceId)(S.BaseControl,"wp-block-woocommerce-product-pricing-field");return(0,u.createElement)("div",{...o},(0,u.createElement)(S.BaseControl,{id:h,help:p},(0,u.createElement)(S.__experimentalInputControl,{...m,disabled:c,id:h,name:r,label:i?(0,u.createElement)(wt.J,{label:n,tooltip:i}):n})))}};function Bt(){return(0,p.N)({name:St,metadata:Pt,settings:Vt})}const Mt=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"woocommerce/product-radio-field","title":"Product radio control","category":"woocommerce","description":"The product radio.","keywords":["products","radio","input"],"textdomain":"default","attributes":{"title":{"type":"string"},"description":{"type":"string"},"property":{"type":"string"},"options":{"type":"array","items":{"type":"object"},"default":[],"role":"content"},"disabled":{"type":"boolean","default":false}},"supports":{"align":false,"html":false,"multiple":true,"reusable":false,"inserter":false,"lock":false,"__experimentalToolbar":false},"usesContext":["postType"]}');var Ft=o(42435);function Lt({title:e,description:t,className:o,...r}){return(0,u.createElement)(S.RadioControl,{...r,className:(0,ce.A)(o,"woocommerce-radio-field"),label:(0,u.createElement)(u.Fragment,null,(0,u.createElement)("span",{className:"woocommerce-radio-field__title"},e),t&&(0,u.createElement)("span",{className:"woocommerce-radio-field__description",dangerouslySetInnerHTML:{__html:(0,Ft.sanitizeHTML)(t)}}))})}const{name:Nt,...Tt}=Mt,Dt={example:{},edit:function({attributes:e,context:{postType:t}}){const o=(0,d.useWooBlockProps)(e),{description:r,options:n,property:a,title:c,disabled:i}=e,[s,l]=(0,H.A)(a,{postType:t,fallbackValue:""});return(0,u.createElement)("div",{...o},(0,u.createElement)(Lt,{title:c,description:r,selected:s,options:n,onChange:e=>l(e||""),disabled:i}))}};function Ht(){return(0,p.N)({name:Nt,metadata:Tt,settings:Dt})}const zt=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"woocommerce/product-regular-price-field","description":"A product price block with currency display.","title":"Product regular price","category":"widgets","keywords":["products","price"],"textdomain":"default","attributes":{"label":{"type":"string","role":"content"},"help":{"type":"string"},"isRequired":{"type":"boolean","default":false},"tooltip":{"type":"string"},"disabled":{"type":"boolean","default":false}},"supports":{"align":false,"html":false,"multiple":true,"reusable":false,"inserter":false,"lock":false,"__experimentalToolbar":false},"usesContext":["postType"],"editorStyle":"file:./editor.css"}'),{name:jt,...It}=zt,Rt={example:{},edit:function({attributes:e,clientId:t,context:o}){const r=(0,d.useWooBlockProps)(e),{label:n,help:a,isRequired:c,tooltip:i,disabled:s}=e,[m,p]=(0,l.useEntityProp)("postType",o.postType||"product","regular_price"),[h]=(0,l.useEntityProp)("postType",o.postType||"product","sale_price"),_=(0,kt.d)({value:m,onChange:p}),v=(0,_e.useInstanceId)(S.BaseControl,"wp-block-woocommerce-product-regular-price-field"),{ref:w,error:g,validate:f}=(0,ot.$)(`regular_price-${t}`,async function(){const e=Number.parseFloat(m);if(e){if(e<0)return{message:(0,ie.__)("Regular price must be greater than or equals to zero.","woocommerce")};if(h&&e<=Number.parseFloat(h))return{message:(0,ie.__)("Regular price must be greater than the sale price.","woocommerce")}}else if(c)return{message:(0,ie.sprintf)((0,ie.__)("%s is required.","woocommerce"),n)}},[m,h]);return(0,u.useEffect)(()=>{c&&f()},[]),(0,u.createElement)("div",{...r},(0,u.createElement)(S.BaseControl,{id:v,help:g||function(){if(a)return(0,u.createElement)("span",{dangerouslySetInnerHTML:{__html:(0,Ft.sanitizeHTML)(a)}})}(),className:(0,ce.A)({"has-error":g})},(0,u.createElement)(S.__experimentalInputControl,{..._,id:v,name:"regular_price",inputMode:"decimal",ref:w,label:i?(0,u.createElement)(wt.J,{label:n,tooltip:i}):n,disabled:s,onBlur:()=>f()})))}};function Ot(){return(0,p.N)({name:jt,metadata:It,settings:Rt})}const Gt=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"woocommerce/product-sale-price-field","description":"A product price block with currency display.","title":"Product sale price","category":"widgets","keywords":["products","price"],"textdomain":"default","attributes":{"label":{"type":"string","role":"content"},"help":{"type":"string"},"tooltip":{"type":"string"},"disabled":{"type":"boolean","default":false}},"supports":{"align":false,"html":false,"multiple":true,"reusable":false,"inserter":false,"lock":false,"__experimentalToolbar":false},"usesContext":["postType"],"editorStyle":"file:./editor.css"}'),{name:$t,...Zt}=Gt,Ut={example:{},edit:function({attributes:e,clientId:t,context:o}){const r=(0,d.useWooBlockProps)(e),{label:n,help:a,tooltip:c,disabled:i}=e,[s]=(0,l.useEntityProp)("postType",o.postType||"product","regular_price"),[m,p]=(0,l.useEntityProp)("postType",o.postType||"product","sale_price"),h=(0,kt.d)({value:m,onChange:p}),_=(0,_e.useInstanceId)(S.BaseControl,"wp-block-woocommerce-product-sale-price-field"),{ref:v,error:w,validate:g}=(0,ot.$)(`sale-price-${t}`,async function(){if(m){if(Number.parseFloat(m)<0)return{message:(0,ie.__)("Sale price must be greater than or equals to zero.","woocommerce")};const e=Number.parseFloat(s);if(!e||e<=Number.parseFloat(m))return{message:(0,ie.__)("Sale price must be lower than the regular price.","woocommerce")}}},[s,m]);return(0,u.createElement)("div",{...r},(0,u.createElement)(S.BaseControl,{id:_,help:w||a,className:(0,ce.A)({"has-error":w})},(0,u.createElement)(S.__experimentalInputControl,{...h,id:_,name:"sale_price",inputMode:"decimal",ref:v,label:c?(0,u.createElement)(wt.J,{label:n,tooltip:c}):n,disabled:i,onBlur:()=>g()})))}};function qt(){return(0,p.N)({name:$t,metadata:Zt,settings:Ut})}const Wt=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"woocommerce/product-schedule-sale-fields","title":"Product schedule sale fields","category":"woocommerce","description":"The product schedule sale fields.","keywords":["products","schedule","sale"],"textdomain":"default","attributes":{"name":{"type":"string","role":"content"}},"supports":{"align":false,"html":false,"multiple":true,"reusable":false,"inserter":false,"lock":false,"__experimentalToolbar":false},"editorStyle":"file:./editor.css","usesContext":["postType"]}'),Jt=window.moment;var Yt=o.n(Jt),Kt=o(38443);const{name:Xt,...Qt}=Wt,eo={example:{},edit:function({attributes:e,clientId:t,context:o}){const r=(0,d.useWooBlockProps)(e),{hasEdit:n}=(0,gt.g)(),a=(0,Kt.getSettings)().formats.datetime,[c,i]=(0,u.useState)(!1),[s]=(0,l.useEntityProp)("postType",o.postType||"product","sale_price"),m=Number.parseFloat(s||"0")>0,[p,h]=(0,l.useEntityProp)("postType",o.postType||"product","date_on_sale_from_gmt"),[_,v]=(0,l.useEntityProp)("postType",o.postType||"product","date_on_sale_to_gmt"),w=Yt()().startOf("minute").toISOString();(0,u.useEffect)(()=>{n("sale_price")&&!m&&(i(!1),h(""),v(""))},[m]),(0,u.useEffect)(()=>{(p||_)&&i(!0)},[p,_]);const g=Yt()(p,Yt().ISO_8601,!0),f=Yt()(_,Yt().ISO_8601,!0),{ref:E,error:b,validate:C}=(0,ot.$)(`date_on_sale_from_gmt-${t}`,async function(){if(c&&p){if(!g.isValid())return{message:(0,ie.__)("Please enter a valid date.","woocommerce")};if(g.isAfter(f))return{message:(0,ie.__)("The start date of the sale must be before the end date.","woocommerce")}}},[c,p,g,f]),{ref:x,error:y,validate:A}=(0,ot.$)(`date_on_sale_to_gmt-${t}`,async function(){if(c&&_){if(!f.isValid())return{message:(0,ie.__)("Please enter a valid date.","woocommerce")};if(f.isBefore(g))return{message:(0,ie.__)("The end date of the sale must be after the start date.","woocommerce")}}},[c,p,g,f]);return(0,u.createElement)("div",{...r},(0,u.createElement)(S.ToggleControl,{label:(0,ie.__)("Schedule sale","woocommerce"),checked:c,onChange:function(e){(0,k.recordEvent)("product_pricing_schedule_sale_toggle_click",{enabled:e}),i(e),e?(h(w),v("")):(h(""),v(""))},disabled:!m}),c&&(0,u.createElement)("div",{className:"wp-block-columns wp-block-woocommerce-product-schedule-sale-fields__content"},(0,u.createElement)("div",{className:"wp-block-column"},(0,u.createElement)($.DateTimePickerControl,{ref:E,label:(0,ie.__)("From","woocommerce"),placeholder:(0,ie.__)("Sale start date and time (optional)","woocommerce"),dateTimeFormat:a,currentDate:p,onChange:h,className:b&&"has-error",help:b,onBlur:()=>C()})),(0,u.createElement)("div",{className:"wp-block-column"},(0,u.createElement)($.DateTimePickerControl,{ref:x,label:(0,ie.__)("To","woocommerce"),placeholder:(0,ie.__)("Sale end date and time (optional)","woocommerce"),dateTimeFormat:a,currentDate:_,onChange:e=>v(Yt()(e).startOf("minute").toISOString()),onBlur:()=>A(),className:y&&"has-error",help:y}))))}};function to(){return(0,p.N)({name:Xt,metadata:Qt,settings:eo})}const oo=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"woocommerce/product-section","title":"Product section","category":"woocommerce","description":"The product section.","keywords":["products","section","group"],"textdomain":"default","attributes":{"title":{"type":"string"},"description":{"type":"string","role":"content"},"blockGap":{"type":"string","enum":["unit-20","unit-30","unit-40"],"default":"unit-20"}},"supports":{"align":false,"html":false,"multiple":true,"reusable":false,"inserter":false,"lock":false,"__experimentalToolbar":false},"editorStyle":"file:./editor.css"}');var ro=o(61219);function no({description:e,sectionTagName:t,title:o}){const r="fieldset"===t?"legend":"div";return(0,u.createElement)(r,{className:"wp-block-woocommerce-product-section-header__heading"},(0,u.createElement)("div",{className:"wp-block-woocommerce-product-section-header__heading-title-wrapper"},(0,u.createElement)("h2",{className:"wp-block-woocommerce-product-section-header__heading-title"},o,e&&(0,u.createElement)($.__experimentalTooltip,{className:"wp-block-woocommerce-product-section-header__heading-tooltip",text:(0,u.createElement)("p",{className:"wp-block-woocommerce-product-section-header__heading-description",dangerouslySetInnerHTML:{__html:(0,Ft.sanitizeHTML)(e)}}),position:"bottom center",helperText:(0,ie.__)("View helper text","woocommerce")})),(0,u.createElement)("div",{className:"wp-block-woocommerce-product-section-header__actions"},(0,u.createElement)(ro.A,{name:"section-actions"}))),(0,u.createElement)(ro.A,{name:"section-description"}))}const{name:ao,...co}=oo,io={example:{},edit:function({attributes:e}){const{description:t,title:o,blockGap:r}=e,n=(0,d.useWooBlockProps)(e),a=(0,P.useInnerBlocksProps)({className:(0,ce.A)("wp-block-woocommerce-product-section-header__content",`wp-block-woocommerce-product-section-header__content--block-gap-${r}`)},{templateLock:"all"}),c=o?"fieldset":"div";return(0,u.createElement)(c,{...n},o&&(0,u.createElement)(no,{description:t,sectionTagName:c,title:o}),(0,u.createElement)("div",{...a}))}};function so(){return(0,p.N)({name:ao,metadata:co,settings:io})}const lo=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"woocommerce/product-section-description","title":"Product section description","category":"woocommerce","description":"The product section description.","keywords":["products","section","description"],"textdomain":"default","attributes":{"content":{"type":"string","role":"content"}},"supports":{"align":false,"html":false,"multiple":true,"reusable":false,"inserter":false,"lock":false,"__experimentalToolbar":false}}');var uo=o(92218);const{name:mo,...po}=lo,ho={example:{},edit:function({attributes:e}){const{content:t}=e,o=(0,d.useWooBlockProps)(e);return(0,u.createElement)(uo.P,{...o,name:"section-description",slotContainerBlockName:"woocommerce/product-section"},(0,u.createElement)("div",null,t))}};function _o(){return(0,p.N)({name:mo,metadata:po,settings:ho})}const vo=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"woocommerce/product-subsection","title":"Product subsection","category":"woocommerce","description":"The product subsection.","keywords":["products","subsection","group"],"textdomain":"default","attributes":{"title":{"type":"string"},"description":{"type":"string","role":"content"},"blockGap":{"type":"string","enum":["unit-20","unit-30","unit-40"],"default":"unit-20"}},"supports":{"align":false,"html":false,"multiple":true,"reusable":false,"inserter":false,"lock":false,"__experimentalToolbar":false}}'),{name:wo,...go}=vo,fo={example:{},edit:function({attributes:e}){const{description:t,title:o,blockGap:r}=e,n=(0,d.useWooBlockProps)(e),a=(0,P.useInnerBlocksProps)({className:(0,ce.A)("wp-block-woocommerce-product-section-header__content",`wp-block-woocommerce-product-section-header__content--block-gap-${r}`)},{templateLock:"all"}),c=o?"fieldset":"div";return(0,u.createElement)(c,{...n},o&&(0,u.createElement)(no,{description:t,sectionTagName:c,title:o}),(0,u.createElement)("div",{...a}))}};function Eo(){return(0,p.N)({name:wo,metadata:go,settings:fo})}const bo=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"woocommerce/product-subsection-description","title":"Product subsection description","category":"woocommerce","description":"The product subsection description.","keywords":["products","subsection","description"],"textdomain":"default","attributes":{"content":{"type":"string","role":"content"}},"supports":{"align":false,"html":false,"multiple":true,"reusable":false,"inserter":false,"lock":false,"__experimentalToolbar":false}}'),{name:Co,...xo}=bo,yo={example:{},edit:function({attributes:e}){const{content:t}=e,o=(0,d.useWooBlockProps)(e);return(0,u.createElement)(uo.P,{...o,name:"section-description",slotContainerBlockName:"woocommerce/product-subsection"},(0,u.createElement)("div",null,t))}};function Ao(){return(0,p.N)({name:Co,metadata:xo,settings:yo})}const ko=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"woocommerce/product-shipping-class-field","title":"Product shipping class field","category":"woocommerce","description":"The product shipping class field.","keywords":["products","shipping","class"],"textdomain":"default","attributes":{"title":{"type":"string","role":"content"},"disabled":{"type":"boolean","default":false}},"supports":{"align":false,"html":false,"multiple":true,"reusable":false,"inserter":false,"lock":false,"__experimentalToolbar":false},"usesContext":["postType","isInSelectedTab"]}');var So=o(40314),Po=o(27071);const Vo=[{value:"",label:(0,ie.__)("No shipping class","woocommerce")},{value:V.Vf,label:(0,ie.__)("Add new shipping class","woocommerce")}];function Bo(e){return e.map(({slug:e,name:t})=>({value:e,label:t}))}const Mo={};function Fo(e,t){const o=e?.find(({slug:e})=>"uncategorized"!==e);if(o&&!t?.some(({slug:e})=>e===o.slug))return{name:o.name,slug:o.slug}}const{name:Lo,...No}=ko,To={example:{},edit:function({attributes:e,context:{postType:t,isInSelectedTab:o}}){const[r,n]=(0,u.useState)(!1),a=(0,d.useWooBlockProps)(e),{createProductShippingClass:c}=(0,J.useDispatch)(So.experimentalProductShippingClassesStore),{createErrorNotice:i}=(0,J.useDispatch)("core/notices"),[s]=(0,l.useEntityProp)("postType",t,"categories"),[m,p]=(0,l.useEntityProp)("postType",t,"shipping_class"),[h]=(0,l.useEntityProp)("postType",t,"virtual");function _(e){let t=(0,ie.__)("We couldn’t add this shipping class. Try again in a few seconds.","woocommerce");throw"term_exists"===e.code&&(t=(0,ie.__)("A shipping class with that slug already exists.","woocommerce")),i(t,{explicitDismiss:!0}),e}const{shippingClasses:v}=(0,J.useSelect)(e=>{const{getProductShippingClasses:t}=e(So.experimentalProductShippingClassesStore);return{shippingClasses:o&&t(Mo)||[]}},[o]),w=(0,_e.useInstanceId)(S.BaseControl,"wp-block-woocommerce-product-shipping-class-field");return(0,u.createElement)("div",{...a},(0,u.createElement)("div",{className:"wp-block-columns"},(0,u.createElement)("div",{className:"wp-block-column"},(0,u.createElement)(S.SelectControl,{id:w,name:"shipping_class",value:m,onChange:e=>{e!==V.Vf?p(e):n(!0)},label:(0,ie.__)("Shipping class","woocommerce"),options:[...Vo,...Bo(v??[])],disabled:e.disabled||h,help:(0,u.createInterpolateElement)((0,ie.__)("Manage shipping classes and rates in <Link>global settings</Link>.","woocommerce"),{Link:(0,u.createElement)($.Link,{href:(0,At.getNewPath)({tab:"shipping",section:"classes"},"",{},"wc-settings"),target:"_blank",type:"external",onClick:()=>{(0,k.recordEvent)("product_shipping_global_settings_link_click")}},(0,u.createElement)(u.Fragment,null))})})),(0,u.createElement)("div",{className:"wp-block-column"})),r&&(0,u.createElement)(Po.h,{shippingClass:Fo(s,v),onAdd:e=>c(e,{optimisticQueryUpdate:Mo}).then(e=>((0,k.recordEvent)("product_new_shipping_class_modal_add_button_click"),p(e.slug),e)).catch(_),onCancel:()=>n(!1)}))}};function Do(){return(0,p.N)({name:Lo,metadata:No,settings:To})}const Ho=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"woocommerce/product-shipping-dimensions-fields","title":"Product shipping dimensions fields","category":"woocommerce","description":"The product shipping dimensions fields.","keywords":["products","shipping","dimensions"],"textdomain":"default","attributes":{"__contentEditable":{"type":"string","role":"content"},"disabled":{"type":"boolean","default":false}},"supports":{"align":false,"html":false,"multiple":true,"reusable":false,"inserter":false,"lock":false,"__experimentalToolbar":false},"editorStyle":"file:./editor.css","usesContext":["postType"]}');var zo=o(23709),jo=o(71569);const Io=1e14,{name:Ro,...Oo}=Ho,Go={example:{},edit:function({attributes:e,clientId:t,context:o}){const r=(0,d.useWooBlockProps)(e),[n,a]=(0,l.useEntityProp)("postType",o.postType,"dimensions"),[c,i]=(0,l.useEntityProp)("postType",o.postType,"weight"),[s]=(0,l.useEntityProp)("postType",o.postType,"virtual"),[m,p]=(0,u.useState)(),{dimensionUnit:h,weightUnit:_}=(0,J.useSelect)(e=>{const{getOption:t}=e(So.optionsStore);return{dimensionUnit:t("woocommerce_dimension_unit"),weightUnit:t("woocommerce_weight_unit")}},[]);function v(t,o){return{name:`dimensions.${t}`,value:(n&&n[t])??"",onChange:e=>a({...n??{},[t]:e}),onFocus:()=>p(o),onBlur:()=>p(void 0),suffix:h,disabled:e.disabled||s,min:0,max:Io}}const w=`dimensions_width-${t}`,{ref:g,error:f,validate:E}=(0,ot.$)(w,async function(){if(n?.width&&+n.width<=0)return{message:(0,ie.__)("Width must be greater than zero.","woocommerce")}},[n?.width]),b=`dimensions_length-${t}`,{ref:C,error:x,validate:y}=(0,ot.$)(b,async function(){if(n?.length&&+n.length<=0)return{message:(0,ie.__)("Length must be greater than zero.","woocommerce")}},[n?.length]),A=`dimensions_height-${t}`,{ref:k,error:S,validate:P}=(0,ot.$)(A,async function(){if(n?.height&&+n.height<=0)return{message:(0,ie.__)("Height must be greater than zero.","woocommerce")}},[n?.height]),V=`weight-${t}`,{ref:B,error:M,validate:F}=(0,ot.$)(V,async function(){if(c&&+c<=0)return{message:(0,ie.__)("Weight must be greater than zero.","woocommerce")}},[c]),L={...v("width","A"),ref:g,onBlur:E,id:w},N={...v("length","B"),ref:C,onBlur:y,id:b},T={...v("height","C"),ref:k,onBlur:P,id:A},D={id:V,name:"weight",value:c??"",onChange:i,suffix:_,ref:B,onBlur:F,disabled:e.disabled||s,min:0,max:Io};return(0,u.createElement)("div",{...r},(0,u.createElement)("h4",null,(0,ie.__)("Dimensions","woocommerce")),(0,u.createElement)("div",{className:"wp-block-columns"},(0,u.createElement)("div",{className:"wp-block-column"},(0,u.createElement)(jo.X,{label:(0,u.createInterpolateElement)((0,ie.__)("Width <Side />","woocommerce"),{Side:(0,u.createElement)("span",null,"A")}),error:f,...L}),(0,u.createElement)(jo.X,{label:(0,u.createInterpolateElement)((0,ie.__)("Length <Side />","woocommerce"),{Side:(0,u.createElement)("span",null,"B")}),error:x,...N}),(0,u.createElement)(jo.X,{label:(0,u.createInterpolateElement)((0,ie.__)("Height <Side />","woocommerce"),{Side:(0,u.createElement)("span",null,"C")}),error:S,...T}),(0,u.createElement)(jo.X,{label:(0,ie.__)("Weight","woocommerce"),error:M,...D})),(0,u.createElement)("div",{className:"wp-block-column"},(0,u.createElement)(zo.B,{highlight:m,className:"wp-block-woocommerce-product-shipping-dimensions-fields__dimensions-image",labels:{A:L.value?.length?L.value:void 0,B:N.value?.length?N.value:void 0,C:T.value?.length?T.value:void 0}}))))}};function $o(){return(0,p.N)({name:Ro,metadata:Oo,settings:Go})}const Zo=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"woocommerce/product-summary-field","title":"Product summary","category":"widgets","description":"The product summary.","keywords":["products","summary","excerpt"],"textdomain":"default","attributes":{"property":{"type":"string"},"align":{"type":"string"},"allowedFormats":{"type":"array","default":["core/bold","core/code","core/italic","core/link","core/strikethrough","core/underline","core/text-color","core/subscript","core/superscript","core/unknown"]},"direction":{"type":"string","enum":["ltr","rtl"]},"label":{"type":"string"},"helpText":{"type":"string"},"content":{"type":"string","role":"content"}},"supports":{"align":false,"html":false,"multiple":true,"reusable":false,"inserter":false,"lock":false},"editorStyle":"file:./editor.css","usesContext":["postType"]}'),Uo=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24",children:(0,oe.jsx)(te.Path,{d:"M5.52 2h7.43c.55 0 1 .45 1 1s-.45 1-1 1h-1v13c0 .55-.45 1-1 1s-1-.45-1-1V5c0-.55-.45-1-1-1s-1 .45-1 1v12c0 .55-.45 1-1 1s-1-.45-1-1v-5.96h-.43C3.02 11.04 1 9.02 1 6.52S3.02 2 5.52 2zM14 14l5-4-5-4v8z"})});function qo({direction:e,onChange:t}){return(0,u.createElement)(u.Fragment,null,(0,ie.isRTL)()&&(0,u.createElement)(S.ToolbarButton,{icon:Uo,title:(0,ie._x)("Left to right","editor button","woocommerce"),isActive:"ltr"===e,onClick:function(){"function"==typeof t&&t("ltr"===e?void 0:"ltr")}}))}const Wo=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M13 5.5H4V4h9v1.5Zm7 7H4V11h16v1.5Zm-7 7H4V18h9v1.5Z"})}),Jo=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M7.5 5.5h9V4h-9v1.5Zm-3.5 7h16V11H4v1.5Zm3.5 7h9V18h-9v1.5Z"})}),Yo=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M11.111 5.5H20V4h-8.889v1.5ZM4 12.5h16V11H4v1.5Zm7.111 7H20V18h-8.889v1.5Z"})}),Ko=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M4 12.8h16v-1.5H4v1.5zm0 7h12.4v-1.5H4v1.5zM4 4.3v1.5h16V4.3H4z"})}),Xo=[{icon:Wo,title:(0,ie.__)("Align text left","woocommerce"),align:"left"},{icon:Jo,title:(0,ie.__)("Align text center","woocommerce"),align:"center"},{icon:Yo,title:(0,ie.__)("Align text right","woocommerce"),align:"right"},{icon:Ko,title:(0,ie.__)("Align text justify","woocommerce"),align:"justify"}];var Qo=o(39858);const{name:er,...tr}=Zo,or={example:{},edit:function e({attributes:t,setAttributes:o,context:r}){const{align:n,allowedFormats:a,direction:c,label:i,helpText:s}=t,m=(0,d.useWooBlockProps)(t,{style:{direction:c}}),p=(0,_e.useInstanceId)(e,"wp-block-woocommerce-product-summary-field__content"),[h,_]=(0,l.useEntityProp)("postType",r.postType||"product",t.property),{handleBlur:v}=(0,Qo.p)();return(0,u.createElement)("div",{className:"wp-block wp-block-woocommerce-product-summary-field-wrapper"},(0,u.createElement)(P.BlockControls,{group:"block"},(0,u.createElement)(P.AlignmentControl,{alignmentControls:Xo,value:n,onChange:function(e){o({align:e})}}),(0,u.createElement)(qo,{direction:c,onChange:function(e){o({direction:e})}})),(0,u.createElement)(S.BaseControl,{id:p.toString(),label:void 0===i?(0,u.createInterpolateElement)((0,ie.__)("Summary","woocommerce"),{optional:(0,u.createElement)("span",{className:"woocommerce-product-form__optional-input"},(0,ie.__)("(OPTIONAL)","woocommerce"))}):i,help:void 0===s?(0,ie.__)("Summarize this product in 1-2 short sentences. We'll show it at the top of the page.","woocommerce"):s},(0,u.createElement)("div",{...m},(0,u.createElement)(P.RichText,{id:p.toString(),identifier:"content",tagName:"p",value:h,onChange:_,"data-empty":Boolean(h),className:(0,ce.A)("components-summary-control",{[`has-text-align-${n}`]:n}),dir:c,allowedFormats:a,onBlur:v}))))}};function rr(){return(0,p.N)({name:er,metadata:tr,settings:or})}const nr=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"woocommerce/product-tab","title":"Product tab","category":"woocommerce","description":"The product tab.","keywords":["products","tab","group"],"textdomain":"default","attributes":{"id":{"type":"string"},"title":{"type":"string"}},"supports":{"align":false,"html":false,"multiple":true,"reusable":false,"inserter":false,"lock":false,"__experimentalToolbar":false},"providesContext":{"isInSelectedTab":"isSelected"},"usesContext":["selectedTab"],"editorStyle":"file:./editor.css"}');var ar=o(82962);const cr=({children:e})=>(0,u.createElement)(u.Fragment,null,e);function ir({children:e,className:t,id:o,order:r=100,selected:n=!1}){const a=(0,ce.A)("wp-block-woocommerce-product-tab__button",t,{"is-selected":n});return(0,u.createElement)(S.Fill,{name:ar.S},t=>{const{onClick:c}=t;return(0,u.createElement)(cr,{order:r},(0,u.createElement)(S.Button,{key:o,className:a,onClick:()=>c(o),id:`woocommerce-product-tab__${o}`,"aria-controls":`woocommerce-product-tab__${o}-content`,"aria-selected":n,tabIndex:n?void 0:-1,role:"tab"},e))})}const{name:sr,...lr}=nr,ur={example:{},edit:function({setAttributes:e,attributes:t,context:o}){const r=(0,d.useWooBlockProps)(t),{id:n,title:a,_templateBlockOrder:c,isSelected:i}=t,s=(0,ce.A)("wp-block-woocommerce-product-tab__content",{"is-selected":i}),[l,m]=(0,u.useState)(!1);return(0,u.useEffect)(()=>{if(!o.selectedTab)return;const t=o.selectedTab===n;if(e({isSelected:t}),t)return void m(!0);const r=setTimeout(m,300,!0);return()=>clearTimeout(r)},[o.selectedTab,n,e]),(0,u.createElement)("div",{...r},(0,u.createElement)(ir,{id:n,selected:i,order:c},a),(0,u.createElement)("div",{id:`woocommerce-product-tab__${n}-content`,"aria-labelledby":`woocommerce-product-tab__${n}`,role:"tabpanel",className:s},(0,u.createElement)($.__experimentalErrorBoundary,{errorMessage:(0,ie.__)("An unexpected error occurred in this tab. Make sure any unsaved changes are saved and then try reloading the page to see if the error recurs.","woocommerce"),onError:(e,t)=>{console.error(`Error caught in tab '${n}'`,e,t)}},l&&(0,u.createElement)(P.InnerBlocks,{templateLock:"contentOnly"}))))}};function dr(){return(0,p.N)({name:sr,metadata:lr,settings:ur})}const mr=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"woocommerce/product-tag-field","title":"Product Tag","category":"widgets","description":"A field to select product tags.","keywords":["products","tag"],"textdomain":"default","attributes":{"name":{"type":"string","role":"content"},"label":{"type":"string"},"placeholder":{"type":"string"}},"usesContext":["postType","isInSelectedTab"],"supports":{"align":false,"html":false,"multiple":true,"reusable":false,"inserter":false,"lock":false,"__experimentalToolbar":false},"editorStyle":"file:./editor.css"}'),pr=({initialTagName:e,onCancel:t,onCreate:o})=>{const{createNotice:r}=(0,J.useDispatch)("core/notices"),[n,a]=(0,u.useState)(!1),{createProductTag:c,invalidateResolutionForStoreSelector:i}=(0,J.useDispatch)(So.experimentalProductTagsStore),[s,l]=(0,u.useState)(e||"");return(0,u.createElement)(S.Modal,{title:(0,ie.__)("Create tag","woocommerce"),onRequestClose:()=>t(),className:"woocommerce-create-new-tag-modal"},(0,u.createElement)("div",{className:"woocommerce-create-new-tag-modal__wrapper"},(0,u.createElement)(S.TextControl,{label:(0,ie.__)("Name","woocommerce"),name:"Tops",value:s,onChange:l}),(0,u.createElement)("div",{className:"woocommerce-create-new-tag-modal__buttons"},(0,u.createElement)(S.Button,{isSecondary:!0,onClick:()=>t(),disabled:n},(0,ie.__)("Cancel","woocommerce")),(0,u.createElement)(S.Button,{isPrimary:!0,disabled:0===s.length||n,isBusy:n,onClick:()=>{(async()=>{(0,k.recordEvent)("product_tag_add",{source:V.bG}),a(!0);try{const e=await c({name:s});i("getProductTags"),a(!1),o(e)}catch(e){r("error",(0,ie.__)("Failed to create tag.","woocommerce")),a(!1),t()}})()}},(0,ie.__)("Save","woocommerce")))))};function hr(e){return{value:String(e.id),label:e.name}}function _r(e){return{id:+e.value,name:e.label}}function vr(e){return e.map(hr)}const wr=({id:e,isVisible:t=!1,label:o,placeholder:r,value:n=[],onChange:a})=>{const{tagsSelectList:c,searchTags:i}=(()=>{const[e,t]=(0,u.useState)([]),[o,r]=(0,u.useState)(!0);return{searchTags:e=>{r(!0);const o=void 0!==e?{search:e}:void 0;(0,J.resolveSelect)(So.experimentalProductTagsStore).getProductTags({...o}).then(e=>{t(e??[])}).finally(()=>{r(!1)})},tagsSelectList:e,isSearching:o}})(),[s,l]=(0,u.useState)(""),[d,m]=(0,u.useState)(!1),[p,h]=(0,u.useState)(!1),[_,v]=(0,u.useState)(),{createProductTag:w,invalidateResolutionForStoreSelector:g}=(0,J.useDispatch)(So.experimentalProductTagsStore),{createNotice:f}=(0,J.useDispatch)("core/notices"),E=e=>{l(e||""),i(e||""),v(e)};(0,u.useEffect)(()=>{t&&i()},[t]);const b=(0,_e.useDebounce)(E,150);return(0,u.createElement)(u.Fragment,null,(0,u.createElement)($.__experimentalSelectTreeControl,{id:e,multiple:!0,shouldNotRecursivelySelect:!0,createValue:s,label:o,isLoading:d,onInputChange:b,placeholder:0===n.length?r:"",initialInputValue:_,onCreateNew:0===s.length?()=>h(!0):async()=>{(0,k.recordEvent)("product_tag_add",{source:V.bG}),m(!0);try{v("");const e=await w({name:s});g("getProductTags"),m(!1),a([...n,e]),E("")}catch(e){f("error",(0,ie.__)("Failed to create tag.","woocommerce")),m(!1)}},shouldShowCreateButton:e=>!e||-1===c.findIndex(t=>t.name===e),items:vr(c),selected:vr(n),onSelect:e=>{if(Array.isArray(e)){const t=e.filter(({value:e})=>!n.some(t=>t.id===+e)).map(_r);a([...n,...t])}else a([...n,_r(e)])},onRemove:e=>{const t=Array.isArray(e)?n.filter(t=>!e.some(({value:e})=>t.id===+e)):n.filter(t=>t.id!==+e.value);a(t)}}),p&&(0,u.createElement)(pr,{initialTagName:s,onCancel:()=>h(!1),onCreate:e=>{a([...n,e]),h(!1),E("")}}))},{name:gr}=mr,fr={example:{},edit:function({attributes:e,context:{postType:t,isInSelectedTab:o}}){const r=(0,d.useWooBlockProps)(e),{name:n,label:a,placeholder:c}=e,[i,s]=(0,l.useEntityProp)("postType",t||"product",n||"tags"),m=(0,_e.useInstanceId)(S.BaseControl,"tag-field");return(0,u.createElement)("div",{...r},(0,u.createElement)(wr,{id:m,isVisible:o,label:a||(0,ie.__)("Tags","woocommerce"),placeholder:c||(0,ie.__)("Search or create tags…","woocommerce"),onChange:s,value:i||[]}))}},Er=()=>(0,p.N)({name:gr,metadata:mr,settings:fr}),br=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"woocommerce/product-inventory-quantity-field","title":"Product inventory quantity available","category":"woocommerce","description":"The product available quantity.","keywords":["products","quantity","inventory"],"textdomain":"default","attributes":{"name":{"type":"string","role":"content"}},"supports":{"align":false,"html":false,"multiple":true,"reusable":false,"inserter":false,"lock":false,"__experimentalToolbar":false},"usesContext":["postType"]}'),{name:Cr,...xr}=br,yr={example:{},edit:function({attributes:e,clientId:t,context:o}){const r=(0,d.useWooBlockProps)(e),[n]=(0,l.useEntityProp)("postType",o.postType,"manage_stock"),[a,c]=(0,l.useEntityProp)("postType",o.postType,"stock_quantity"),i=(0,_e.useInstanceId)(S.BaseControl,"product_stock_quantity"),{ref:s,error:m,validate:p}=(0,ot.$)(`stock_quantity-${t}`,async function(){if(n&&a&&a<0)return{message:(0,ie.__)("Stock quantity must be a positive number.","woocommerce")}},[n,a]);return(0,u.useEffect)(()=>{n&&null===a&&c(1)},[n,a]),(0,u.createElement)("div",{...r},(0,u.createElement)("div",{className:"wp-block-columns"},(0,u.createElement)("div",{className:"wp-block-column"},(0,u.createElement)(S.BaseControl,{id:i,className:m&&"has-error",help:m??""},(0,u.createElement)(S.__experimentalInputControl,{id:i,name:"stock_quantity",ref:s,label:(0,ie.__)("Available stock","woocommerce"),value:a?.toString(),onChange:e=>{c(parseInt(e??"",10))},onBlur:()=>p(),type:"number",min:0}))),(0,u.createElement)("div",{className:"wp-block-column"})))}};function Ar(){return(0,p.N)({name:Cr,metadata:xr,settings:yr})}const kr=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"woocommerce/product-toggle-field","title":"Product toggle control","category":"woocommerce","description":"The product toggle.","keywords":["products","radio","input"],"textdomain":"default","attributes":{"label":{"type":"string","role":"content"},"help":{"type":"string"},"checkedHelp":{"type":"string"},"uncheckedHelp":{"type":"string"},"property":{"type":"string"},"disabled":{"type":"boolean","default":false},"disabledCopy":{"type":"string","role":"content"},"checkedValue":{"type":"object"},"uncheckedValue":{"type":"object"}},"supports":{"align":false,"html":false,"multiple":true,"reusable":true,"inserter":false,"lock":false,"__experimentalToolbar":false},"usesContext":["postType"]}'),{name:Sr,...Pr}=kr,Vr={example:{},edit:function({attributes:e,context:{postType:t}}){const o=(0,d.useWooBlockProps)(e),{_templateBlockId:r,label:n,property:a,disabled:c,disabledCopy:i,checkedValue:s,uncheckedValue:m}=e,[p,h]=(0,H.A)(a,{postType:t,fallbackValue:!1}),_=(0,l.useEntityId)("postType",t),[v]=(0,l.useEntityProp)("postType",t,"parent_id");function w(){return void 0!==s?s===p:p}let g=null;return e?.help&&(g=(0,u.createElement)("div",{dangerouslySetInnerHTML:{__html:(0,Ft.sanitizeHTML)(e.help)}})),e?.checkedHelp&&w()&&(g=(0,u.createElement)("div",{dangerouslySetInnerHTML:{__html:(0,Ft.sanitizeHTML)(e.checkedHelp)}})),e?.uncheckedHelp&&!w()&&(g=(0,u.createElement)("div",{dangerouslySetInnerHTML:{__html:(0,Ft.sanitizeHTML)(e.uncheckedHelp)}})),(0,u.createElement)("div",{...o},(0,u.createElement)(S.ToggleControl,{label:n,checked:w(),disabled:c,onChange:function(e){(0,k.recordEvent)("product_toggle_click",{block_id:r,source:V.bG,product_id:v>0?v:_}),h(e?void 0!==s?s:e:void 0!==m?m:e)},help:g}),c&&(0,u.createElement)("p",{className:"wp-block-woocommerce-product-toggle__disable-copy",dangerouslySetInnerHTML:{__html:(0,Ft.sanitizeHTML)(i)}}))}};function Br(){return(0,p.N)({name:Sr,metadata:Pr,settings:Vr})}const Mr=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"woocommerce/product-attributes-field","title":"Product attributes","category":"widgets","description":"The product attributes.","keywords":["products","attributes"],"textdomain":"default","attributes":{"name":{"type":"string","role":"content"}},"supports":{"align":false,"html":false,"multiple":true,"reusable":false,"inserter":false,"lock":false,"__experimentalToolbar":false},"usesContext":["isInSelectedTab"],"editorStyle":"file:./editor.css"}');var Fr=o(29462),Lr=o(39141);const Nr=(e,t)=>t?e.filter(e=>!!e.variation):e.filter(e=>!e.variation);function Tr({allAttributes:e=[],isVariationAttributes:t=!1,onChange:o,productId:r}){const[n,a]=(0,u.useState)(Nr(e,t)),c=(0,u.useCallback)(e=>(0,J.resolveSelect)(So.experimentalProductAttributeTermsStore).getProductAttributeTerms({attribute_id:e}).then(e=>e,e=>e),[r]),i=(e,t,o)=>e.map(({isDefault:e,terms:r,...n},a)=>({...n,variation:t,position:o+a}));return{attributes:n,fetchAttributes:(0,u.useCallback)(()=>{const[o,r]=(0,Lr.p)(Nr(e,t),e=>0===e.id);Promise.all(r.map(e=>c(e.id))).then(e=>{a([...r.map((t,o)=>{return r=t,n=e[o],{...r,terms:(n||[]).filter(e=>r.options.includes(e.name))};var r,n}),...o])})},[e,t,c]),handleChange:r=>{const n=r.reduce((e,t)=>void 0===t.isDefault||!0===t.isDefault?[...e,{id:t.id,name:t.name,option:t.options[0]}]:e,[]);let a=t?e.filter(e=>!e.variation):e.filter(e=>!!e.variation);a=a.filter(e=>!(e.id>0&&r.some(t=>t.id===e.id)||0===e.id&&r.some(t=>t.name.toLowerCase()===e.name.toLowerCase())));const c=i(r,t,t?a.length:0),s=i(a,!t,t?0:r.length);o(t?[...s,...c]:[...c,...s],n)},setAttributes:a}}const{name:Dr}=Mr,Hr={example:{},edit:function({attributes:e,context:{isInSelectedTab:t}}){const[o,r]=(0,l.useEntityProp)("postType","product","attributes"),n=(0,l.useEntityId)("postType","product"),a=(0,d.useWooBlockProps)(e),{attributes:c,fetchAttributes:i,handleChange:s}=Tr({allAttributes:o,onChange:r,productId:n});return(0,u.useEffect)(()=>{t&&i()},[o,t]),(0,u.createElement)("div",{...a},(0,u.createElement)(Fr.W,{value:c,disabledAttributeIds:o.filter(e=>!!e.variation).map(e=>e.id),uiStrings:{disabledAttributeMessage:(0,ie.__)("Already used in Variations","woocommerce")},onAdd:()=>{(0,k.recordEvent)("product_add_attributes_modal_add_button_click")},onChange:s,onNewModalCancel:()=>{(0,k.recordEvent)("product_add_attributes_modal_cancel_button_click")},onNewModalOpen:()=>{c.length?(0,k.recordEvent)("product_add_attribute_button"):(0,k.recordEvent)("product_add_first_attribute_button_click")},onAddAnother:()=>{(0,k.recordEvent)("product_add_attributes_modal_add_another_attribute_button_click")},onRemoveItem:()=>{(0,k.recordEvent)("product_add_attributes_modal_remove_attribute_button_click")},onRemove:()=>(0,k.recordEvent)("product_remove_attribute_confirmation_confirm_click"),onRemoveCancel:()=>(0,k.recordEvent)("product_remove_attribute_confirmation_cancel_click"),termsAutoSelection:"first",defaultVisibility:!0}))}},zr=()=>(0,p.N)({name:Dr,metadata:Mr,settings:Hr}),jr=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"woocommerce/product-password-field","description":"A checkbox and an input to type a password to view a product.","title":"Product password","category":"widgets","keywords":["products","password"],"textdomain":"default","attributes":{"label":{"type":"string","role":"content"}},"supports":{"align":false,"html":false,"multiple":true,"reusable":false,"inserter":false,"lock":false,"__experimentalToolbar":false}}');var Ir=o(17849);const{name:Rr,...Or}=jr,Gr={edit:function({attributes:e}){const t=(0,d.useWooBlockProps)(e),{label:o}=e,[r,n]=(0,l.useEntityProp)("postType","product","post_password");return(0,u.createElement)("div",{...t},(0,u.createElement)(Ir.p,{label:o,postPassword:r,onInputChange:n}))}};function $r(){return(0,p.N)({name:Rr,metadata:Or,settings:Gr})}const Zr=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"woocommerce/product-details-section-description","title":"Product details section description","category":"woocommerce","description":"The product details section description.","keywords":["products","section","description"],"textdomain":"default","attributes":{"content":{"type":"string","role":"content"}},"supports":{"align":false,"html":false,"multiple":true,"reusable":false,"inserter":false,"lock":false,"__experimentalToolbar":false},"usesContext":["selectedTab"],"editorStyle":"file:./editor.css"}'),Ur=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M18.5 5.5V8H20V5.5h2.5V4H20V1.5h-1.5V4H16v1.5h2.5zM12 4H6a2 2 0 00-2 2v12a2 2 0 002 2h12a2 2 0 002-2v-6h-1.5v6a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5h6V4z"})}),qr=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M2 12c0 3.6 2.4 5.5 6 5.5h.5V19l3-2.5-3-2.5v2H8c-2.5 0-4.5-1.5-4.5-4s2-4.5 4.5-4.5h3.5V6H8c-3.6 0-6 2.4-6 6zm19.5-1h-8v1.5h8V11zm0 5h-8v1.5h8V16zm0-10h-8v1.5h8V6z"})}),Wr=(0,oe.jsx)(te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,oe.jsx)(te.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M18.5 5.5V8H20V5.5H22.5V4H20V1.5H18.5V4H16V5.5H18.5ZM13.9624 4H6C4.89543 4 4 4.89543 4 6V18C4 19.1046 4.89543 20 6 20H18C19.1046 20 20 19.1046 20 18V10.0391H18.5V18C18.5 18.2761 18.2761 18.5 18 18.5H10L10 10.4917L16.4589 10.5139L16.4641 9.01389L5.5 8.97618V6C5.5 5.72386 5.72386 5.5 6 5.5H13.9624V4ZM5.5 10.4762V18C5.5 18.2761 5.72386 18.5 6 18.5H8.5L8.5 10.4865L5.5 10.4762Z"})}),Jr=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M19 5.5H5V4h14v1.5ZM19 20H5v-1.5h14V20ZM5 9h14v6H5V9Z"})}),Yr=(0,oe.jsx)(te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,oe.jsx)(te.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M11.934 7.406a1 1 0 0 0 .914.594H19a.5.5 0 0 1 .5.5v9a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5h5.764a.5.5 0 0 1 .447.276l.723 1.63Zm1.064-1.216a.5.5 0 0 0 .462.31H19a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h5.764a2 2 0 0 1 1.789 1.106l.445 1.084ZM8.5 10.5h7V12h-7v-1.5Zm7 3.5h-7v1.5h7V14Z"})}),Kr=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"m16.5 13.5-3.7 3.7V4h-1.5v13.2l-3.8-3.7-1 1 5.5 5.6 5.5-5.6z"})});var Xr=o(42059),Qr=o(11538);const en=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M12 3.9 6.5 9.5l1 1 3.8-3.7V20h1.5V6.8l3.7 3.7 1-1z"})}),tn=(0,oe.jsx)(te.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,oe.jsx)(te.Path,{d:"M12.5939 21C14.1472 21 16.1269 20.5701 17.0711 20.1975L16.6447 18.879C16.0964 19.051 14.3299 19.6242 12.6548 19.6242C7.4467 19.6242 4.67513 16.8726 4.67513 12C4.67513 7.21338 7.50762 4.34713 12.2893 4.34713C17.132 4.34713 19.4162 7.55732 19.4162 10.7675C19.4162 14.035 19.0508 15.4968 17.4975 15.4968C16.5838 15.4968 16.0964 14.7803 16.0964 13.9777V7.5H14.4822V8.30255H14.3909C14.1777 7.67198 12.9898 7.12739 11.467 7.2707C9.18274 7.5 7.4467 9.27707 7.4467 11.8567C7.4467 14.5796 8.81726 16.672 11.467 16.758C13.203 16.8153 14.1168 16.0127 14.4822 15.1815H14.5736C14.7563 16.414 16.401 16.8439 17.467 16.8439C20.6954 16.8439 21 13.5764 21 10.7962C21 6.86943 18.0761 3 12.3807 3C6.50254 3 3 6.3535 3 11.9427C3 17.7325 6.38071 21 12.5939 21ZM11.7107 15.2962C9.73096 15.2962 9.03046 13.6051 9.03046 11.7707C9.03046 10.1083 10.0355 8.67516 11.7716 8.67516C13.599 8.67516 14.5736 9.36306 14.5736 11.7707C14.5736 14.1497 13.7513 15.2962 11.7107 15.2962Z"})}),on=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M18.5 5.5h-13c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2v-9c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5h-13c-.3 0-.5-.2-.5-.5v-9c0-.3.2-.5.5-.5h13c.3 0 .5.2.5.5v9zM6.5 12H8v-2h2V8.5H6.5V12zm9.5 2h-2v1.5h3.5V12H16v2z"})}),rn=(0,oe.jsx)(te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,oe.jsx)(te.Path,{d:"M17.7 4.3c-1.2 0-2.8 0-3.8 1-.6.6-.9 1.5-.9 2.6V14c-.6-.6-1.5-1-2.5-1C8.6 13 7 14.6 7 16.5S8.6 20 10.5 20c1.5 0 2.8-1 3.3-2.3.5-.8.7-1.8.7-2.5V7.9c0-.7.2-1.2.5-1.6.6-.6 1.8-.6 2.8-.6h.3V4.3h-.4z"})}),nn=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M5.5 12h1.75l-2.5 3-2.5-3H4a8 8 0 113.134 6.35l.907-1.194A6.5 6.5 0 105.5 12zm9.53 1.97l-2.28-2.28V8.5a.75.75 0 00-1.5 0V12a.747.747 0 00.218.529l1.282-.84-1.28.842 2.5 2.5a.75.75 0 101.06-1.061z"})}),an=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z"})}),cn=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{fillRule:"evenodd",d:"M8.95 11.25H4v1.5h4.95v4.5H13V18c0 1.1.9 2 2 2h3c1.1 0 2-.9 2-2v-3c0-1.1-.9-2-2-2h-3c-1.1 0-2 .9-2 2v.75h-2.55v-7.5H13V9c0 1.1.9 2 2 2h3c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3c-1.1 0-2 .9-2 2v.75H8.95v4.5ZM14.5 15v3c0 .3.2.5.5.5h3c.3 0 .5-.2.5-.5v-3c0-.3-.2-.5-.5-.5h-3c-.3 0-.5.2-.5.5Zm0-6V6c0-.3.2-.5.5-.5h3c.3 0 .5.2.5.5v3c0 .3-.2.5-.5.5h-3c-.3 0-.5-.2-.5-.5Z",clipRule:"evenodd"})}),sn=(0,oe.jsx)(te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,oe.jsx)(te.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.5h14c.3 0 .5.2.5.5v3.5h-15V5c0-.3.2-.5.5-.5zm8 5.5h6.5v3.5H13V10zm-1.5 3.5h-7V10h7v3.5zm-7 5.5v-4h7v4.5H5c-.3 0-.5-.2-.5-.5zm14.5.5h-6V15h6.5v4c0 .3-.2.5-.5.5z"})}),ln=(0,oe.jsx)(te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,oe.jsx)(te.Path,{d:"m6.6 15.6-1.2.8c.6.9 1.3 1.6 2.2 2.2l.8-1.2c-.7-.5-1.3-1.1-1.8-1.8zM5.5 12c0-.4 0-.9.1-1.3l-1.5-.3c0 .5-.1 1.1-.1 1.6s.1 1.1.2 1.6l1.5-.3c-.2-.4-.2-.9-.2-1.3zm11.9-3.6 1.2-.8c-.6-.9-1.3-1.6-2.2-2.2l-.8 1.2c.7.5 1.3 1.1 1.8 1.8zM5.3 7.6l1.2.8c.5-.7 1.1-1.3 1.8-1.8l-.7-1.3c-.9.6-1.7 1.4-2.3 2.3zm14.5 2.8-1.5.3c.1.4.1.8.1 1.3s0 .9-.1 1.3l1.5.3c.1-.5.2-1 .2-1.6s-.1-1.1-.2-1.6zM12 18.5c-.4 0-.9 0-1.3-.1l-.3 1.5c.5.1 1 .2 1.6.2s1.1-.1 1.6-.2l-.3-1.5c-.4.1-.9.1-1.3.1zm3.6-1.1.8 1.2c.9-.6 1.6-1.3 2.2-2.2l-1.2-.8c-.5.7-1.1 1.3-1.8 1.8zM10.4 4.2l.3 1.5c.4-.1.8-.1 1.3-.1s.9 0 1.3.1l.3-1.5c-.5-.1-1.1-.2-1.6-.2s-1.1.1-1.6.2z"})});var un=o(51717);const dn=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M4 20h8v-1.5H4V20zM18.9 3.5c-.6-.6-1.5-.6-2.1 0l-7.2 7.2c-.4-.1-.7 0-1.1.1-.5.2-1.5.7-1.9 2.2-.4 1.7-.8 2.2-1.1 2.7-.1.1-.2.3-.3.4l-.6 1.1H6c2 0 3.4-.4 4.7-1.4.8-.6 1.2-1.4 1.3-2.3 0-.3 0-.5-.1-.7L19 5.7c.5-.6.5-1.6-.1-2.2zM9.7 14.7c-.7.5-1.5.8-2.4 1 .2-.5.5-1.2.8-2.3.2-.6.4-1 .8-1.1.5-.1 1 .1 1.3.3.2.2.3.5.2.8 0 .3-.1.9-.7 1.3z"})}),mn=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M6.13 5.5l1.926 1.927A4.975 4.975 0 007.025 10H5v1.5h2V13H5v1.5h2.1a5.002 5.002 0 009.8 0H19V13h-2v-1.5h2V10h-2.025a4.979 4.979 0 00-1.167-2.74l1.76-1.76-1.061-1.06-1.834 1.834A4.977 4.977 0 0012 5.5c-1.062 0-2.046.33-2.855.895L7.19 4.44 6.13 5.5zm2.37 5v3a3.5 3.5 0 107 0v-3a3.5 3.5 0 10-7 0z",fillRule:"evenodd",clipRule:"evenodd"})}),pn=(0,oe.jsx)(te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,oe.jsx)(te.Path,{d:"M8 12.5h8V11H8v1.5Z M19 6.5H5a2 2 0 0 0-2 2V15a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8.5a2 2 0 0 0-2-2ZM5 8h14a.5.5 0 0 1 .5.5V15a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V8.5A.5.5 0 0 1 5 8Z"})}),hn=(0,oe.jsx)(te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,oe.jsx)(te.Path,{d:"M14.5 17.5H9.5V16H14.5V17.5Z M14.5 8H9.5V6.5H14.5V8Z M7 3.5H17C18.1046 3.5 19 4.39543 19 5.5V9C19 10.1046 18.1046 11 17 11H7C5.89543 11 5 10.1046 5 9V5.5C5 4.39543 5.89543 3.5 7 3.5ZM17 5H7C6.72386 5 6.5 5.22386 6.5 5.5V9C6.5 9.27614 6.72386 9.5 7 9.5H17C17.2761 9.5 17.5 9.27614 17.5 9V5.5C17.5 5.22386 17.2761 5 17 5Z M7 13H17C18.1046 13 19 13.8954 19 15V18.5C19 19.6046 18.1046 20.5 17 20.5H7C5.89543 20.5 5 19.6046 5 18.5V15C5 13.8954 5.89543 13 7 13ZM17 14.5H7C6.72386 14.5 6.5 14.7239 6.5 15V18.5C6.5 18.7761 6.72386 19 7 19H17C17.2761 19 17.5 18.7761 17.5 18.5V15C17.5 14.7239 17.2761 14.5 17 14.5Z"})}),_n=(0,oe.jsx)(te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,oe.jsx)(te.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V7h15v12zM9 10H7v2h2v-2zm0 4H7v2h2v-2zm4-4h-2v2h2v-2zm4 0h-2v2h2v-2zm-4 4h-2v2h2v-2zm4 0h-2v2h2v-2z"})}),vn=(0,oe.jsx)(te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,oe.jsx)(te.Path,{d:"M12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21ZM15.5303 8.46967C15.8232 8.76256 15.8232 9.23744 15.5303 9.53033L13.0607 12L15.5303 14.4697C15.8232 14.7626 15.8232 15.2374 15.5303 15.5303C15.2374 15.8232 14.7626 15.8232 14.4697 15.5303L12 13.0607L9.53033 15.5303C9.23744 15.8232 8.76256 15.8232 8.46967 15.5303C8.17678 15.2374 8.17678 14.7626 8.46967 14.4697L10.9393 12L8.46967 9.53033C8.17678 9.23744 8.17678 8.76256 8.46967 8.46967C8.76256 8.17678 9.23744 8.17678 9.53033 8.46967L12 10.9393L14.4697 8.46967C14.7626 8.17678 15.2374 8.17678 15.5303 8.46967Z"})}),wn=(0,oe.jsx)(te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,oe.jsx)(te.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M6 5.5h12a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H6a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5ZM4 6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6Zm4 10h2v-1.5H8V16Zm5 0h-2v-1.5h2V16Zm1 0h2v-1.5h-2V16Z"})}),gn=(0,oe.jsx)(te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,oe.jsx)(te.Path,{d:"M12 9.2c-2.2 0-3.9 1.8-3.9 4s1.8 4 3.9 4 4-1.8 4-4-1.8-4-4-4zm0 6.5c-1.4 0-2.4-1.1-2.4-2.5s1.1-2.5 2.4-2.5 2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5zM20.2 8c-.1 0-.3 0-.5-.1l-2.5-.8c-.4-.1-.8-.4-1.1-.8l-1-1.5c-.4-.5-1-.9-1.7-.9h-2.9c-.6.1-1.2.4-1.6 1l-1 1.5c-.3.3-.6.6-1.1.7l-2.5.8c-.2.1-.4.1-.6.1-1 .2-1.7.9-1.7 1.9v8.3c0 1 .9 1.9 2 1.9h16c1.1 0 2-.8 2-1.9V9.9c0-1-.7-1.7-1.8-1.9zm.3 10.1c0 .2-.2.4-.5.4H4c-.3 0-.5-.2-.5-.4V9.9c0-.1.2-.3.5-.4.2 0 .5-.1.8-.2l2.5-.8c.7-.2 1.4-.6 1.8-1.3l1-1.5c.1-.1.2-.2.4-.2h2.9c.2 0 .3.1.4.2l1 1.5c.4.7 1.1 1.1 1.9 1.4l2.5.8c.3.1.6.1.8.2.3 0 .4.2.4.4v8.1z"})}),fn=(0,oe.jsx)(te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,oe.jsx)(te.Path,{d:"M14 5H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm.5 12c0 .3-.2.5-.5.5H4c-.3 0-.5-.2-.5-.5V7c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v10zm2.5-7v4l5 3V7l-5 3zm3.5 4.4l-2-1.2v-2.3l2-1.2v4.7z"})}),En=(0,oe.jsx)(te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,oe.jsx)(te.Path,{d:"M6 5.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM4 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2V6zm11-.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5h-3a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM13 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2h-3a2 2 0 01-2-2V6zm5 8.5h-3a.5.5 0 00-.5.5v3a.5.5 0 00.5.5h3a.5.5 0 00.5-.5v-3a.5.5 0 00-.5-.5zM15 13a2 2 0 00-2 2v3a2 2 0 002 2h3a2 2 0 002-2v-3a2 2 0 00-2-2h-3zm-9 1.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5v-3a.5.5 0 01.5-.5zM4 15a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2v-3z",fillRule:"evenodd",clipRule:"evenodd"})}),bn=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{fillRule:"evenodd",d:"M11.25 5h1.5v15h-1.5V5zM6 10h1.5v10H6V10zm12 4h-1.5v6H18v-6z",clipRule:"evenodd"})});var Cn=o(30884);const xn=(0,oe.jsx)(te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,oe.jsx)(te.Path,{d:"m15.99 10.889-3.988 3.418-3.988-3.418.976-1.14 3.012 2.582 3.012-2.581.976 1.139Z"})});var yn=o(89505);const An=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"m13.1 16-3.4-4 3.4-4 1.1 1-2.6 3 2.6 3-1.1 1z"})}),kn=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"})}),Sn=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"})}),Pn=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"m12 20-4.5-3.6-.9 1.2L12 22l5.5-4.4-.9-1.2L12 20zm0-16 4.5 3.6.9-1.2L12 2 6.5 6.4l.9 1.2L12 4z"})}),Vn=(0,oe.jsx)(te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,oe.jsx)(te.Path,{d:"M20 6H4c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H4c-.3 0-.5-.2-.5-.5V8c0-.3.2-.5.5-.5h16c.3 0 .5.2.5.5v9zM10 10H8v2h2v-2zm-5 2h2v-2H5v2zm8-2h-2v2h2v-2zm-5 6h8v-2H8v2zm6-4h2v-2h-2v2zm3 0h2v-2h-2v2zm0 4h2v-2h-2v2zM5 16h2v-2H5v2z"})}),Bn=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"m13.06 12 6.47-6.47-1.06-1.06L12 10.94 5.53 4.47 4.47 5.53 10.94 12l-6.47 6.47 1.06 1.06L12 13.06l6.47 6.47 1.06-1.06L13.06 12Z"})}),Mn=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M17.3 10.1c0-2.5-2.1-4.4-4.8-4.4-2.2 0-4.1 1.4-4.6 3.3h-.2C5.7 9 4 10.7 4 12.8c0 2.1 1.7 3.8 3.7 3.8h9c1.8 0 3.2-1.5 3.2-3.3.1-1.6-1.1-2.9-2.6-3.2zm-.5 5.1h-4v-2.4L14 14l1-1-3-3-3 3 1 1 1.2-1.2v2.4H7.7c-1.2 0-2.2-1.1-2.2-2.3s1-2.4 2.2-2.4H9l.3-1.1c.4-1.3 1.7-2.2 3.2-2.2 1.8 0 3.3 1.3 3.3 2.9v1.3l1.3.2c.8.1 1.4.9 1.4 1.8 0 1-.8 1.8-1.7 1.8z"})}),Fn=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M17.3 10.1c0-2.5-2.1-4.4-4.8-4.4-2.2 0-4.1 1.4-4.6 3.3h-.2C5.7 9 4 10.7 4 12.8c0 2.1 1.7 3.8 3.7 3.8h9c1.8 0 3.2-1.5 3.2-3.3.1-1.6-1.1-2.9-2.6-3.2zm-.5 5.1h-9c-1.2 0-2.2-1.1-2.2-2.3s1-2.4 2.2-2.4h1.3l.3-1.1c.4-1.3 1.7-2.2 3.2-2.2 1.8 0 3.3 1.3 3.3 2.9v1.3l1.3.2c.8.1 1.4.9 1.4 1.8-.1 1-.9 1.8-1.8 1.8z"})}),Ln=(0,oe.jsx)(te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,oe.jsx)(te.Path,{d:"M20.8 10.7l-4.3-4.3-1.1 1.1 4.3 4.3c.1.1.1.3 0 .4l-4.3 4.3 1.1 1.1 4.3-4.3c.7-.8.7-1.9 0-2.6zM4.2 11.8l4.3-4.3-1-1-4.3 4.3c-.7.7-.7 1.8 0 2.5l4.3 4.3 1.1-1.1-4.3-4.3c-.2-.1-.2-.3-.1-.4z"})}),Nn=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{fillRule:"evenodd",d:"M10.289 4.836A1 1 0 0111.275 4h1.306a1 1 0 01.987.836l.244 1.466c.787.26 1.503.679 2.108 1.218l1.393-.522a1 1 0 011.216.437l.653 1.13a1 1 0 01-.23 1.273l-1.148.944a6.025 6.025 0 010 2.435l1.149.946a1 1 0 01.23 1.272l-.653 1.13a1 1 0 01-1.216.437l-1.394-.522c-.605.54-1.32.958-2.108 1.218l-.244 1.466a1 1 0 01-.987.836h-1.306a1 1 0 01-.986-.836l-.244-1.466a5.995 5.995 0 01-2.108-1.218l-1.394.522a1 1 0 01-1.217-.436l-.653-1.131a1 1 0 01.23-1.272l1.149-.946a6.026 6.026 0 010-2.435l-1.148-.944a1 1 0 01-.23-1.272l.653-1.131a1 1 0 011.217-.437l1.393.522a5.994 5.994 0 012.108-1.218l.244-1.466zM14.929 12a3 3 0 11-6 0 3 3 0 016 0z",clipRule:"evenodd"})}),Tn=(0,oe.jsx)(te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,oe.jsx)(te.Path,{d:"M17.2 10.9c-.5-1-1.2-2.1-2.1-3.2-.6-.9-1.3-1.7-2.1-2.6L12 4l-1 1.1c-.6.9-1.3 1.7-2 2.6-.8 1.2-1.5 2.3-2 3.2-.6 1.2-1 2.2-1 3 0 3.4 2.7 6.1 6.1 6.1s6.1-2.7 6.1-6.1c0-.8-.3-1.8-1-3zm-5.1 7.6c-2.5 0-4.6-2.1-4.6-4.6 0-.3.1-1 .8-2.3.5-.9 1.1-1.9 2-3.1.7-.9 1.3-1.7 1.8-2.3.7.8 1.3 1.6 1.8 2.3.8 1.1 1.5 2.2 2 3.1.7 1.3.8 2 .8 2.3 0 2.5-2.1 4.6-4.6 4.6z"})}),Dn=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M19 6H6c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zM6 17.5c-.3 0-.5-.2-.5-.5V8c0-.3.2-.5.5-.5h3v10H6zm13.5-.5c0 .3-.2.5-.5.5h-3v-10h3c.3 0 .5.2.5.5v9z"})}),Hn=(0,oe.jsx)(te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,oe.jsx)(te.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M15 7.5h-5v10h5v-10Zm1.5 0v10H19a.5.5 0 0 0 .5-.5V8a.5.5 0 0 0-.5-.5h-2.5ZM6 7.5h2.5v10H6a.5.5 0 0 1-.5-.5V8a.5.5 0 0 1 .5-.5ZM6 6h13a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2Z"})}),zn=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5 4.5h11a.5.5 0 0 1 .5.5v11a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V5a.5.5 0 0 1 .5-.5ZM3 5a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5Zm17 3v10.75c0 .69-.56 1.25-1.25 1.25H6v1.5h12.75a2.75 2.75 0 0 0 2.75-2.75V8H20Z"})}),jn=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5.625 5.5h9.75c.069 0 .125.056.125.125v9.75a.125.125 0 0 1-.125.125h-9.75a.125.125 0 0 1-.125-.125v-9.75c0-.069.056-.125.125-.125ZM4 5.625C4 4.728 4.728 4 5.625 4h9.75C16.273 4 17 4.728 17 5.625v9.75c0 .898-.727 1.625-1.625 1.625h-9.75A1.625 1.625 0 0 1 4 15.375v-9.75Zm14.5 11.656v-9H20v9C20 18.8 18.77 20 17.251 20H6.25v-1.5h11.001c.69 0 1.249-.528 1.249-1.219Z"})}),In=(0,oe.jsx)(te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,oe.jsx)(te.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12.9c0 .6.5 1.1 1.1 1.1.3 0 .5-.1.8-.3L8.5 17H18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H7.9l-2.4 2.4V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v9z"})}),Rn=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{fillRule:"evenodd",d:"M7.25 16.437a6.5 6.5 0 1 1 9.5 0V16A2.75 2.75 0 0 0 14 13.25h-4A2.75 2.75 0 0 0 7.25 16v.437Zm1.5 1.193a6.47 6.47 0 0 0 3.25.87 6.47 6.47 0 0 0 3.25-.87V16c0-.69-.56-1.25-1.25-1.25h-4c-.69 0-1.25.56-1.25 1.25v1.63ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm10-2a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z",clipRule:"evenodd"})}),On=(0,oe.jsxs)(te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,oe.jsx)(te.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12.9c0 .6.5 1.1 1.1 1.1.3 0 .5-.1.8-.3L8.5 17H18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H7.9l-2.4 2.4V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v9z",fillRule:"evenodd",clipRule:"evenodd"}),(0,oe.jsx)(te.Path,{d:"M15 15V15C15 13.8954 14.1046 13 13 13L11 13C9.89543 13 9 13.8954 9 15V15",fillRule:"evenodd",clipRule:"evenodd"}),(0,oe.jsx)(te.Circle,{cx:"12",cy:"9",r:"2",fillRule:"evenodd",clipRule:"evenodd"})]}),Gn=(0,oe.jsx)(te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,oe.jsx)(te.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M6.68822 16.625L5.5 17.8145L5.5 5.5L18.5 5.5L18.5 16.625L6.68822 16.625ZM7.31 18.125L19 18.125C19.5523 18.125 20 17.6773 20 17.125L20 5C20 4.44772 19.5523 4 19 4H5C4.44772 4 4 4.44772 4 5V19.5247C4 19.8173 4.16123 20.086 4.41935 20.2237C4.72711 20.3878 5.10601 20.3313 5.35252 20.0845L7.31 18.125ZM16 9.99997H8V8.49997H16V9.99997ZM8 14H13V12.5H8V14Z"})}),$n=(0,oe.jsx)(te.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,oe.jsx)(te.Path,{d:"M6.68822 10.625L6.24878 11.0649L5.5 11.8145L5.5 5.5L12.5 5.5V8L14 6.5V5C14 4.44772 13.5523 4 13 4H5C4.44772 4 4 4.44771 4 5V13.5247C4 13.8173 4.16123 14.086 4.41935 14.2237C4.72711 14.3878 5.10601 14.3313 5.35252 14.0845L7.31 12.125H8.375L9.875 10.625H7.31H6.68822ZM14.5605 10.4983L11.6701 13.75H16.9975C17.9963 13.75 18.7796 14.1104 19.3553 14.7048C19.9095 15.2771 20.2299 16.0224 20.4224 16.7443C20.7645 18.0276 20.7543 19.4618 20.7487 20.2544C20.7481 20.345 20.7475 20.4272 20.7475 20.4999L19.2475 20.5001C19.2475 20.4191 19.248 20.3319 19.2484 20.2394V20.2394C19.2526 19.4274 19.259 18.2035 18.973 17.1307C18.8156 16.5401 18.586 16.0666 18.2778 15.7483C17.9909 15.4521 17.5991 15.25 16.9975 15.25H11.8106L14.5303 17.9697L13.4696 19.0303L8.96956 14.5303L13.4394 9.50171L14.5605 10.4983Z"})}),Zn=(0,oe.jsx)(te.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,oe.jsx)(te.Path,{d:"m6.249 11.065.44-.44h3.186l-1.5 1.5H7.31l-1.957 1.96A.792.792 0 0 1 4 13.524V5a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v1.5L12.5 8V5.5h-7v6.315l.749-.75ZM20 19.75H7v-1.5h13v1.5Zm0-12.653-8.967 9.064L8 17l.867-2.935L17.833 5 20 7.097Z"})}),Un=(0,oe.jsx)(te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",children:(0,oe.jsx)(te.Path,{d:"M19.53 4.47a.75.75 0 0 1 0 1.06L17.06 8l.77.769a3.155 3.155 0 0 1 .685 3.439 3.15 3.15 0 0 1-.685 1.022v.001L13.23 17.83v.001a3.15 3.15 0 0 1-4.462 0L8 17.06l-2.47 2.47a.75.75 0 0 1-1.06-1.06L6.94 16l-.77-.769a3.154 3.154 0 0 1-.685-3.439 3.15 3.15 0 0 1 .685-1.023l4.599-4.598a3.152 3.152 0 0 1 4.462 0l.769.768 2.47-2.47a.75.75 0 0 1 1.06 0Zm-2.76 7.7L15 13.94 10.06 9l1.771-1.77a1.65 1.65 0 0 1 2.338 0L16.77 9.83a1.649 1.649 0 0 1 0 2.338h-.001ZM13.94 15 9 10.06l-1.77 1.771a1.65 1.65 0 0 0 0 2.338l2.601 2.602a1.649 1.649 0 0 0 2.338 0v-.001L13.94 15Z"})}),qn=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h6.2v8.9l2.5-3.1 2.5 3.1V4.5h2.2c.4 0 .8.4.8.8v13.4z"})}),Wn=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M16 11.2h-3.2V8h-1.6v3.2H8v1.6h3.2V16h1.6v-3.2H16z"})}),Jn=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M18 20v-2h2v-1.5H7.75a.25.25 0 0 1-.25-.25V4H6v2H4v1.5h2v8.75c0 .966.784 1.75 1.75 1.75h8.75v2H18ZM9.273 7.5h6.977a.25.25 0 0 1 .25.25v6.977H18V7.75A1.75 1.75 0 0 0 16.25 6H9.273v1.5Z"})}),Yn=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M3.25 12a8.75 8.75 0 1117.5 0 8.75 8.75 0 01-17.5 0zM12 4.75a7.25 7.25 0 100 14.5 7.25 7.25 0 000-14.5zm-1.338 4.877c-.314.22-.412.452-.412.623 0 .171.098.403.412.623.312.218.783.377 1.338.377.825 0 1.605.233 2.198.648.59.414 1.052 1.057 1.052 1.852 0 .795-.461 1.438-1.052 1.852-.41.286-.907.486-1.448.582v.316a.75.75 0 01-1.5 0v-.316a3.64 3.64 0 01-1.448-.582c-.59-.414-1.052-1.057-1.052-1.852a.75.75 0 011.5 0c0 .171.098.403.412.623.312.218.783.377 1.338.377s1.026-.159 1.338-.377c.314-.22.412-.452.412-.623 0-.171-.098-.403-.412-.623-.312-.218-.783-.377-1.338-.377-.825 0-1.605-.233-2.198-.648-.59-.414-1.052-1.057-1.052-1.852 0-.795.461-1.438 1.052-1.852a3.64 3.64 0 011.448-.582V7.5a.75.75 0 011.5 0v.316c.54.096 1.039.296 1.448.582.59.414 1.052 1.057 1.052 1.852a.75.75 0 01-1.5 0c0-.171-.098-.403-.412-.623-.312-.218-.783-.377-1.338-.377s-1.026.159-1.338.377z"})}),Kn=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M12 3.25a8.75 8.75 0 100 17.5 8.75 8.75 0 000-17.5zM4.75 12a7.25 7.25 0 1114.5 0 7.25 7.25 0 01-14.5 0zm9.195 1.944a2.75 2.75 0 01-4.066-.194h.621a.75.75 0 000-1.5H9.262a2.767 2.767 0 010-.5H11.5a.75.75 0 000-1.5H9.88a2.75 2.75 0 014.066-.194.75.75 0 001.06-1.061 4.25 4.25 0 00-6.88 1.255H7.5a.75.75 0 000 1.5h.258c-.01.166-.01.334 0 .5H7.5a.75.75 0 000 1.5h.626a4.25 4.25 0 006.88 1.255.75.75 0 00-1.06-1.06z"})}),Xn=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{fillRule:"evenodd",d:"M3.25 12a8.75 8.75 0 1117.5 0 8.75 8.75 0 01-17.5 0zM12 4.75a7.25 7.25 0 100 14.5 7.25 7.25 0 000-14.5zm.25 4c-.787 0-1.425.638-1.425 1.425 0 .058.014.147.069.3.04.113.088.223.147.36a26.094 26.094 0 01.173.415H12.5a.75.75 0 010 1.5h-.953c.002.047.003.095.003.144 0 .617-.236 1.168-.511 1.606h3.386a.75.75 0 010 1.5H9.35a.75.75 0 01-.452-1.349l.007-.005a4.417 4.417 0 00.596-.581c.328-.39.549-.806.549-1.171 0-.05-.002-.097-.004-.144H9.5a.75.75 0 010-1.5h.088a5.875 5.875 0 01-.106-.27 2.382 2.382 0 01-.157-.805 2.925 2.925 0 015.637-1.097.75.75 0 01-1.39.563 1.426 1.426 0 00-1.322-.891zm-3.35 5.9l.45.6-.45-.6z"})}),Qn=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4zm.8-4l.7.7 2-2V12h1V9.2l2 2 .7-.7-2-2H12v-1H9.2l2-2-.7-.7-2 2V4h-1v2.8l-2-2-.7.7 2 2H4v1h2.8l-2 2z"})}),ea=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M20.5 16h-.7V8c0-1.1-.9-2-2-2H6.2c-1.1 0-2 .9-2 2v8h-.7c-.8 0-1.5.7-1.5 1.5h20c0-.8-.7-1.5-1.5-1.5zM5.7 8c0-.3.2-.5.5-.5h11.6c.3 0 .5.2.5.5v7.6H5.7V8z"})}),ta=(0,oe.jsxs)(te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,oe.jsx)(te.Path,{d:"M4 16h10v1.5H4V16Zm0-4.5h16V13H4v-1.5ZM10 7h10v1.5H10V7Z",fillRule:"evenodd",clipRule:"evenodd"}),(0,oe.jsx)(te.Path,{d:"m4 5.25 4 2.5-4 2.5v-5Z"})]}),oa=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 18.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm8 4a4 4 0 0 0 4-4H8a4 4 0 0 0 4 4Z"})}),ra=(0,oe.jsx)(te.SVG,{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M8 7h2V5H8v2zm0 6h2v-2H8v2zm0 6h2v-2H8v2zm6-14v2h2V5h-2zm0 8h2v-2h-2v2zm0 6h2v-2h-2v2z"})}),na=(0,oe.jsx)(te.SVG,{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM8.5 18.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h2.5v13zm10-.5c0 .3-.2.5-.5.5h-8v-13h8c.3 0 .5.2.5.5v12z"})}),aa=(0,oe.jsx)(te.SVG,{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-4 14.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h8v13zm4.5-.5c0 .3-.2.5-.5.5h-2.5v-13H18c.3 0 .5.2.5.5v12z"})}),ca=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M18 11.3l-1-1.1-4 4V3h-1.5v11.3L7 10.2l-1 1.1 6.2 5.8 5.8-5.8zm.5 3.7v3.5h-13V15H4v5h16v-5h-1.5z"})}),ia=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"})}),sa=ia;var la=o(67237);const ua=(0,oe.jsx)(te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,oe.jsx)(te.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12.848 8a1 1 0 0 1-.914-.594l-.723-1.63a.5.5 0 0 0-.447-.276H5a.5.5 0 0 0-.5.5v11.5a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5v-9A.5.5 0 0 0 19 8h-6.152Zm.612-1.5a.5.5 0 0 1-.462-.31l-.445-1.084A2 2 0 0 0 10.763 4H5a2 2 0 0 0-2 2v11.5a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-9a2 2 0 0 0-2-2h-5.54Z"})}),da=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M12 4 4 19h16L12 4zm0 3.2 5.5 10.3H12V7.2z"})}),ma=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M4 6v12c0 1.1.9 2 2 2h3v-1.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h3V4H6c-1.1 0-2 .9-2 2zm7.2 16h1.5V2h-1.5v20zM15 5.5h1.5V4H15v1.5zm3.5.5H20c0-1.1-.9-2-2-2v1.5c.3 0 .5.2.5.5zm0 10.5H20v-2h-1.5v2zm0-3.5H20v-2h-1.5v2zm-.5 5.5V20c1.1 0 2-.9 2-2h-1.5c0 .3-.2.5-.5.5zM15 20h1.5v-1.5H15V20zm3.5-10.5H20v-2h-1.5v2z"})}),pa=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M2 11.2v1.5h20v-1.5H2zM5.5 6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v3H20V6c0-1.1-.9-2-2-2H6c-1.1 0-2 .9-2 2v3h1.5V6zm2 14h2v-1.5h-2V20zm3.5 0h2v-1.5h-2V20zm7-1.5V20c1.1 0 2-.9 2-2h-1.5c0 .3-.2.5-.5.5zm.5-2H20V15h-1.5v1.5zM5.5 18H4c0 1.1.9 2 2 2v-1.5c-.3 0-.5-.2-.5-.5zm0-3H4v1.5h1.5V15zm9 5h2v-1.5h-2V20z"})}),ha=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M14.7 11.3c1-.6 1.5-1.6 1.5-3 0-2.3-1.3-3.4-4-3.4H7v14h5.8c1.4 0 2.5-.3 3.3-1 .8-.7 1.2-1.7 1.2-2.9.1-1.9-.8-3.1-2.6-3.7zm-5.1-4h2.3c.6 0 1.1.1 1.4.4.3.3.5.7.5 1.2s-.2 1-.5 1.2c-.3.3-.8.4-1.4.4H9.6V7.3zm4.6 9c-.4.3-1 .4-1.7.4H9.6v-3.9h2.9c.7 0 1.3.2 1.7.5.4.3.6.8.6 1.5s-.2 1.2-.6 1.5z"})}),_a=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M7.1 6.8L3.1 18h1.6l1.1-3h4.3l1.1 3h1.6l-4-11.2H7.1zm-.8 6.8L8 8.9l1.7 4.7H6.3zm14.5-1.5c-.3-.6-.7-1.1-1.2-1.5-.6-.4-1.2-.6-1.9-.6-.5 0-.9.1-1.4.3-.4.2-.8.5-1.1.8V6h-1.4v12h1.3l.2-1c.2.4.6.6 1 .8.4.2.9.3 1.4.3.7 0 1.2-.2 1.8-.5.5-.4 1-.9 1.3-1.5.3-.6.5-1.3.5-2.1-.1-.6-.2-1.3-.5-1.9zm-1.7 4c-.4.5-.9.8-1.6.8s-1.2-.2-1.7-.7c-.4-.5-.7-1.2-.7-2.1 0-.9.2-1.6.7-2.1.4-.5 1-.7 1.7-.7s1.2.3 1.6.8c.4.5.6 1.2.6 2 .1.8-.2 1.4-.6 2z"})}),va=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M4 7.2v1.5h16V7.2H4zm8 8.6h8v-1.5h-8v1.5zm-8-3.5l3 3-3 3 1 1 4-4-4-4-1 1z"})}),wa=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M20 5.5H4V4H20V5.5ZM12 12.5H4V11H12V12.5ZM20 20V18.5H4V20H20ZM20.0303 9.03033L17.0607 12L20.0303 14.9697L18.9697 16.0303L15.4697 12.5303L14.9393 12L15.4697 11.4697L18.9697 7.96967L20.0303 9.03033Z"})}),ga=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M12.5 5L10 19h1.9l2.5-14z"})}),fa=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M11.1 15.8H20v-1.5h-8.9v1.5zm0-8.6v1.5H20V7.2h-8.9zM6 13c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-7c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})}),Ea=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M4 8.8h8.9V7.2H4v1.6zm0 7h8.9v-1.5H4v1.5zM18 13c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z"})}),ba=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M11.1 15.8H20v-1.5h-8.9v1.5zm0-8.6v1.5H20V7.2h-8.9zM5 6.7V10h1V5.3L3.8 6l.4 1 .8-.3zm-.4 5.7c-.3.1-.5.2-.7.3l.1 1.1c.2-.2.5-.4.8-.5.3-.1.6 0 .7.1.2.3 0 .8-.2 1.1-.5.8-.9 1.6-1.4 2.5h2.7v-1h-1c.3-.6.8-1.4.9-2.1.1-.3 0-.8-.2-1.1-.5-.6-1.3-.5-1.7-.4z"})}),Ca=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M3.8 15.8h8.9v-1.5H3.8v1.5zm0-7h8.9V7.2H3.8v1.6zm14.7-2.1V10h1V5.3l-2.2.7.3 1 .9-.3zm1.2 6.1c-.5-.6-1.2-.5-1.7-.4-.3.1-.5.2-.7.3l.1 1.1c.2-.2.5-.4.8-.5.3-.1.6 0 .7.1.2.3 0 .8-.2 1.1-.5.8-.9 1.6-1.4 2.5H20v-1h-.9c.3-.6.8-1.4.9-2.1 0-.3 0-.8-.3-1.1z"})}),xa=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M11 16.8c-.1-.1-.2-.3-.3-.5v-2.6c0-.9-.1-1.7-.3-2.2-.2-.5-.5-.9-.9-1.2-.4-.2-.9-.3-1.6-.3-.5 0-1 .1-1.5.2s-.9.3-1.2.6l.2 1.2c.4-.3.7-.4 1.1-.5.3-.1.7-.2 1-.2.6 0 1 .1 1.3.4.3.2.4.7.4 1.4-1.2 0-2.3.2-3.3.7s-1.4 1.1-1.4 2.1c0 .7.2 1.2.7 1.6.4.4 1 .6 1.8.6.9 0 1.7-.4 2.4-1.2.1.3.2.5.4.7.1.2.3.3.6.4.3.1.6.1 1.1.1h.1l.2-1.2h-.1c-.4.1-.6 0-.7-.1zM9.2 16c-.2.3-.5.6-.9.8-.3.1-.7.2-1.1.2-.4 0-.7-.1-.9-.3-.2-.2-.3-.5-.3-.9 0-.6.2-1 .7-1.3.5-.3 1.3-.4 2.5-.5v2zm10.6-3.9c-.3-.6-.7-1.1-1.2-1.5-.6-.4-1.2-.6-1.9-.6-.5 0-.9.1-1.4.3-.4.2-.8.5-1.1.8V6h-1.4v12h1.3l.2-1c.2.4.6.6 1 .8.4.2.9.3 1.4.3.7 0 1.2-.2 1.8-.5.5-.4 1-.9 1.3-1.5.3-.6.5-1.3.5-2.1-.1-.6-.2-1.3-.5-1.9zm-1.7 4c-.4.5-.9.8-1.6.8s-1.2-.2-1.7-.7c-.4-.5-.7-1.2-.7-2.1 0-.9.2-1.6.7-2.1.4-.5 1-.7 1.7-.7s1.2.3 1.6.8c.4.5.6 1.2.6 2s-.2 1.4-.6 2z"})}),ya=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M4 7.2v1.5h16V7.2H4zm8 8.6h8v-1.5h-8v1.5zm-4-4.6l-4 4 4 4 1-1-3-3 3-3-1-1z"})}),Aa=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M20 5.5H4V4H20V5.5ZM12 12.5H4V11H12V12.5ZM20 20V18.5H4V20H20ZM15.4697 14.9697L18.4393 12L15.4697 9.03033L16.5303 7.96967L20.0303 11.4697L20.5607 12L20.0303 12.5303L16.5303 16.0303L15.4697 14.9697Z"})}),ka=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24",children:(0,oe.jsx)(te.Path,{d:"M5.52 2h7.43c.55 0 1 .45 1 1s-.45 1-1 1h-1v13c0 .55-.45 1-1 1s-1-.45-1-1V5c0-.55-.45-1-1-1s-1 .45-1 1v12c0 .55-.45 1-1 1s-1-.45-1-1v-5.96h-.43C3.02 11.04 1 9.02 1 6.52S3.02 2 5.52 2zM19 6l-5 4 5 4V6zM5.52 2h7.43c.55 0 1 .45 1 1s-.45 1-1 1h-1v13c0 .55-.45 1-1 1s-1-.45-1-1V5c0-.55-.45-1-1-1s-1 .45-1 1v12c0 .55-.45 1-1 1s-1-.45-1-1v-5.96h-.43C3.02 11.04 1 9.02 1 6.52S3.02 2 5.52 2zM19 6l-5 4 5 4V6z"})}),Sa=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M9.1 9v-.5c0-.6.2-1.1.7-1.4.5-.3 1.2-.5 2-.5.7 0 1.4.1 2.1.3.7.2 1.4.5 2.1.9l.2-1.9c-.6-.3-1.2-.5-1.9-.7-.8-.1-1.6-.2-2.4-.2-1.5 0-2.7.3-3.6 1-.8.7-1.2 1.5-1.2 2.6V9h2zM20 12H4v1h8.3c.3.1.6.2.8.3.5.2.9.5 1.1.8.3.3.4.7.4 1.2 0 .7-.2 1.1-.8 1.5-.5.3-1.2.5-2.1.5-.8 0-1.6-.1-2.4-.3-.8-.2-1.5-.5-2.2-.8L7 18.1c.5.2 1.2.4 2 .6.8.2 1.6.3 2.4.3 1.7 0 3-.3 3.9-1 .9-.7 1.3-1.6 1.3-2.8 0-.9-.2-1.7-.7-2.2H20v-1z"})}),Pa=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M7 18v1h10v-1H7zm5-2c1.5 0 2.6-.4 3.4-1.2.8-.8 1.1-2 1.1-3.5V5H15v5.8c0 1.2-.2 2.1-.6 2.8-.4.7-1.2 1-2.4 1s-2-.3-2.4-1c-.4-.7-.6-1.6-.6-2.8V5H7.5v6.2c0 1.5.4 2.7 1.1 3.5.8.9 1.9 1.3 3.4 1.3z"})}),Va=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M6.1 6.8L2.1 18h1.6l1.1-3h4.3l1.1 3h1.6l-4-11.2H6.1zm-.8 6.8L7 8.9l1.7 4.7H5.3zm15.1-.7c-.4-.5-.9-.8-1.6-1 .4-.2.7-.5.8-.9.2-.4.3-.9.3-1.4 0-.9-.3-1.6-.8-2-.6-.5-1.3-.7-2.4-.7h-3.5V18h4.2c1.1 0 2-.3 2.6-.8.6-.6 1-1.4 1-2.4-.1-.8-.3-1.4-.6-1.9zm-5.7-4.7h1.8c.6 0 1.1.1 1.4.4.3.2.5.7.5 1.3 0 .6-.2 1.1-.5 1.3-.3.2-.8.4-1.4.4h-1.8V8.2zm4 8c-.4.3-.9.5-1.5.5h-2.6v-3.8h2.6c1.4 0 2 .6 2 1.9.1.6-.1 1-.5 1.4z"})}),Ba=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M6 4a2 2 0 0 0-2 2v3h1.5V6a.5.5 0 0 1 .5-.5h3V4H6Zm3 14.5H6a.5.5 0 0 1-.5-.5v-3H4v3a2 2 0 0 0 2 2h3v-1.5Zm6 1.5v-1.5h3a.5.5 0 0 0 .5-.5v-3H20v3a2 2 0 0 1-2 2h-3Zm3-16a2 2 0 0 1 2 2v3h-1.5V6a.5.5 0 0 0-.5-.5h-3V4h3Z"})}),Ma=(0,oe.jsx)(te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,oe.jsx)(te.Path,{d:"M10 17.5H14V16H10V17.5ZM6 6V7.5H18V6H6ZM8 12.5H16V11H8V12.5Z"})}),Fa=(0,oe.jsx)(te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,oe.jsx)(te.Path,{d:"M16.375 4.5H4.625a.125.125 0 0 0-.125.125v8.254l2.859-1.54a.75.75 0 0 1 .68-.016l2.384 1.142 2.89-2.074a.75.75 0 0 1 .874 0l2.313 1.66V4.625a.125.125 0 0 0-.125-.125Zm.125 9.398-2.75-1.975-2.813 2.02a.75.75 0 0 1-.76.067l-2.444-1.17L4.5 14.583v1.792c0 .069.056.125.125.125h11.75a.125.125 0 0 0 .125-.125v-2.477ZM4.625 3C3.728 3 3 3.728 3 4.625v11.75C3 17.273 3.728 18 4.625 18h11.75c.898 0 1.625-.727 1.625-1.625V4.625C18 3.728 17.273 3 16.375 3H4.625ZM20 8v11c0 .69-.31 1-.999 1H6v1.5h13.001c1.52 0 2.499-.982 2.499-2.5V8H20Z",fillRule:"evenodd",clipRule:"evenodd"})}),La=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M12 3.3c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8s-4-8.8-8.8-8.8zm6.5 5.5h-2.6C15.4 7.3 14.8 6 14 5c2 .6 3.6 2 4.5 3.8zm.7 3.2c0 .6-.1 1.2-.2 1.8h-2.9c.1-.6.1-1.2.1-1.8s-.1-1.2-.1-1.8H19c.2.6.2 1.2.2 1.8zM12 18.7c-1-.7-1.8-1.9-2.3-3.5h4.6c-.5 1.6-1.3 2.9-2.3 3.5zm-2.6-4.9c-.1-.6-.1-1.1-.1-1.8 0-.6.1-1.2.1-1.8h5.2c.1.6.1 1.1.1 1.8s-.1 1.2-.1 1.8H9.4zM4.8 12c0-.6.1-1.2.2-1.8h2.9c-.1.6-.1 1.2-.1 1.8 0 .6.1 1.2.1 1.8H5c-.2-.6-.2-1.2-.2-1.8zM12 5.3c1 .7 1.8 1.9 2.3 3.5H9.7c.5-1.6 1.3-2.9 2.3-3.5zM10 5c-.8 1-1.4 2.3-1.8 3.8H5.5C6.4 7 8 5.6 10 5zM5.5 15.3h2.6c.4 1.5 1 2.8 1.8 3.7-1.8-.6-3.5-2-4.4-3.7zM14 19c.8-1 1.4-2.2 1.8-3.7h2.6C17.6 17 16 18.4 14 19z"})}),Na=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"m3 5c0-1.10457.89543-2 2-2h13.5c1.1046 0 2 .89543 2 2v13.5c0 1.1046-.8954 2-2 2h-13.5c-1.10457 0-2-.8954-2-2zm2-.5h6v6.5h-6.5v-6c0-.27614.22386-.5.5-.5zm-.5 8v6c0 .2761.22386.5.5.5h6v-6.5zm8 0v6.5h6c.2761 0 .5-.2239.5-.5v-6zm0-8v6.5h6.5v-6c0-.27614-.2239-.5-.5-.5z",fillRule:"evenodd",clipRule:"evenodd"})});var Ta=o(27283);const Da=(0,oe.jsx)(te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,oe.jsx)(te.Path,{d:"M7 16.5h10V15H7v1.5zm0-9V9h10V7.5H7z"})}),Ha=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M17.6 7c-.6.9-1.5 1.7-2.6 2v1h2v7h2V7h-1.4zM11 11H7V7H5v10h2v-4h4v4h2V7h-2v4z"})}),za=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M9 11.1H5v-4H3v10h2v-4h4v4h2v-10H9v4zm8 4c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6v1.5h8v-2H17z"})}),ja=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M9 11H5V7H3v10h2v-4h4v4h2V7H9v4zm11.3 1.7c-.4-.4-1-.7-1.6-.8v-.1c.6-.2 1.1-.5 1.5-.9.3-.4.5-.8.5-1.3 0-.4-.1-.8-.3-1.1-.2-.3-.5-.6-.8-.8-.4-.2-.8-.4-1.2-.5-.6-.1-1.1-.2-1.6-.2-.6 0-1.3.1-1.8.3s-1.1.5-1.6.9l1.2 1.4c.4-.2.7-.4 1.1-.6.3-.2.7-.3 1.1-.3.4 0 .8.1 1.1.3.3.2.4.5.4.8 0 .4-.2.7-.6.9-.7.3-1.5.5-2.2.4v1.6c.5 0 1 0 1.5.1.3.1.7.2 1 .3.2.1.4.2.5.4s.1.4.1.6c0 .3-.2.7-.5.8-.4.2-.9.3-1.4.3s-1-.1-1.4-.3c-.4-.2-.8-.4-1.2-.7L13 15.6c.5.4 1 .8 1.6 1 .7.3 1.5.4 2.3.4.6 0 1.1-.1 1.6-.2.4-.1.9-.2 1.3-.5.4-.2.7-.5.9-.9.2-.4.3-.8.3-1.2 0-.6-.3-1.1-.7-1.5z"})}),Ia=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M20 13V7h-3l-4 6v2h5v2h2v-2h1v-2h-1zm-2 0h-2.8L18 9v4zm-9-2H5V7H3v10h2v-4h4v4h2V7H9v4z"})}),Ra=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M9 11H5V7H3v10h2v-4h4v4h2V7H9v4zm11.7 1.2c-.2-.3-.5-.7-.8-.9-.3-.3-.7-.5-1.1-.6-.5-.1-.9-.2-1.4-.2-.2 0-.5.1-.7.1-.2.1-.5.1-.7.2l.1-1.9h4.3V7H14l-.3 5 1 .6.5-.2.4-.1c.1-.1.3-.1.4-.1h.5c.5 0 1 .1 1.4.4.4.2.6.7.6 1.1 0 .4-.2.8-.6 1.1-.4.3-.9.4-1.4.4-.4 0-.9-.1-1.3-.3-.4-.2-.7-.4-1.1-.7 0 0-1.1 1.4-1 1.5.5.4 1 .8 1.6 1 .7.3 1.5.4 2.3.4.5 0 1-.1 1.5-.3s.9-.4 1.3-.7c.4-.3.7-.7.9-1.1s.3-.9.3-1.4-.1-1-.3-1.4z"})}),Oa=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M20.7 12.4c-.2-.3-.4-.6-.7-.9s-.6-.5-1-.6c-.4-.2-.8-.2-1.2-.2-.5 0-.9.1-1.3.3s-.8.5-1.2.8c0-.5 0-.9.2-1.4l.6-.9c.2-.2.5-.4.8-.5.6-.2 1.3-.2 1.9 0 .3.1.6.3.8.5 0 0 1.3-1.3 1.3-1.4-.4-.3-.9-.6-1.4-.8-.6-.2-1.3-.3-2-.3-.6 0-1.1.1-1.7.4-.5.2-1 .5-1.4.9-.4.4-.8 1-1 1.6-.3.7-.4 1.5-.4 2.3s.1 1.5.3 2.1c.2.6.6 1.1 1 1.5.4.4.9.7 1.4.9 1 .3 2 .3 3 0 .4-.1.8-.3 1.2-.6.3-.3.6-.6.8-1 .2-.5.3-.9.3-1.4s-.1-.9-.3-1.3zm-2 2.1c-.1.2-.3.4-.4.5-.1.1-.3.2-.5.2-.2.1-.4.1-.6.1-.2.1-.5 0-.7-.1-.2 0-.3-.2-.5-.3-.1-.2-.3-.4-.4-.6-.2-.3-.3-.7-.3-1 .3-.3.6-.5 1-.7.3-.1.7-.2 1-.2.4 0 .8.1 1.1.3.3.3.4.7.4 1.1 0 .2 0 .5-.1.7zM9 11H5V7H3v10h2v-4h4v4h2V7H9v4z"})}),Ga=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M6 5V18.5911L12 13.8473L18 18.5911V5H6Z"})});var $a=o(72541);const Za=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",children:(0,oe.jsx)(te.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm-1 16v-2h2v2h-2zm2-3v-1.141A3.991 3.991 0 0016 10a4 4 0 00-8 0h2c0-1.103.897-2 2-2s2 .897 2 2-.897 2-2 2a1 1 0 00-1 1v2h2z"})}),Ua=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{fillRule:"evenodd",d:"M6 5.5h12a.5.5 0 01.5.5v7H14a2 2 0 11-4 0H5.5V6a.5.5 0 01.5-.5zm-.5 9V18a.5.5 0 00.5.5h12a.5.5 0 00.5-.5v-3.5h-3.337a3.5 3.5 0 01-6.326 0H5.5zM4 13V6a2 2 0 012-2h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2v-5z",clipRule:"evenodd"})}),qa=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{fillRule:"evenodd",d:"M18.646 9H20V8l-1-.5L12 4 5 7.5 4 8v1h14.646zm-3-1.5L12 5.677 8.354 7.5h7.292zm-7.897 9.44v-6.5h-1.5v6.5h1.5zm5-6.5v6.5h-1.5v-6.5h1.5zm5 0v6.5h-1.5v-6.5h1.5zm2.252 8.81c0 .414-.334.75-.748.75H4.752a.75.75 0 010-1.5h14.5a.75.75 0 01.749.75z",clipRule:"evenodd"})}),Wa=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M12 4L4 7.9V20h16V7.9L12 4zm6.5 14.5H14V13h-4v5.5H5.5V8.8L12 5.7l6.5 3.1v9.7z"})}),Ja=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M4.25 7A2.75 2.75 0 0 1 7 4.25h10A2.75 2.75 0 0 1 19.75 7v10A2.75 2.75 0 0 1 17 19.75H7A2.75 2.75 0 0 1 4.25 17V7ZM7 5.75c-.69 0-1.25.56-1.25 1.25v10c0 .69.56 1.25 1.25 1.25h10c.69 0 1.25-.56 1.25-1.25V7c0-.69-.56-1.25-1.25-1.25H7Z"})}),Ya=(0,oe.jsx)(te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,oe.jsx)(te.Path,{d:"M4.8 11.4H2.1V9H1v6h1.1v-2.6h2.7V15h1.1V9H4.8v2.4zm1.9-1.3h1.7V15h1.1v-4.9h1.7V9H6.7v1.1zM16.2 9l-1.5 2.7L13.3 9h-.9l-.8 6h1.1l.5-4 1.5 2.8 1.5-2.8.5 4h1.1L17 9h-.8zm3.8 5V9h-1.1v6h3.6v-1H20z"})}),Ka=(0,oe.jsx)(te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,oe.jsx)(te.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.5h14c.3 0 .5.2.5.5v8.4l-3-2.9c-.3-.3-.8-.3-1 0L11.9 14 9 12c-.3-.2-.6-.2-.8 0l-3.6 2.6V5c-.1-.3.1-.5.4-.5zm14 15H5c-.3 0-.5-.2-.5-.5v-2.4l4.1-3 3 1.9c.3.2.7.2.9-.1L16 12l3.5 3.4V19c0 .3-.2.5-.5.5z"})}),Xa=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"})}),Qa=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24",children:(0,oe.jsx)(te.Path,{d:"M9 12h2v-2h2V8h-2V6H9v2H7v2h2v2zm1 4c3.9 0 7-3.1 7-7s-3.1-7-7-7-7 3.1-7 7 3.1 7 7 7zm0-12c2.8 0 5 2.2 5 5s-2.2 5-5 5-5-2.2-5-5 2.2-5 5-5zM3 19h14v-2H3v2z"})}),ec=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24",children:(0,oe.jsx)(te.Path,{d:"M11 8H9v2H7v2h2v2h2v-2h2v-2h-2V8zm-1-4c-3.9 0-7 3.1-7 7s3.1 7 7 7 7-3.1 7-7-3.1-7-7-7zm0 12c-2.8 0-5-2.2-5-5s2.2-5 5-5 5 2.2 5 5-2.2 5-5 5zM3 1v2h14V1H3z"})}),tc=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M9 9v6h11V9H9zM4 20h1.5V4H4v16z"})}),oc=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M12.5 15v5H11v-5H4V9h7V4h1.5v5h7v6h-7Z"})}),rc=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M4 15h11V9H4v6zM18.5 4v16H20V4h-1.5z"})}),nc=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M9 15h6V9H9v6zm-5 5h1.5V4H4v16zM18.5 4v16H20V4h-1.5z"})}),ac=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M4 4H5.5V20H4V4ZM7 10L17 10V14L7 14V10ZM20 4H18.5V20H20V4Z"})}),cc=(0,oe.jsx)(te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,oe.jsx)(te.Path,{d:"M9 13.5a1.5 1.5 0 100-3 1.5 1.5 0 000 3zM9 16a4.002 4.002 0 003.8-2.75H15V16h2.5v-2.75H19v-2.5h-6.2A4.002 4.002 0 005 12a4 4 0 004 4z",fillRule:"evenodd",clipRule:"evenodd"})}),ic=(0,oe.jsxs)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,oe.jsx)(te.Path,{d:"m16 15.5h-8v-1.5h8zm-7.5-2.5h-2v-2h2zm3 0h-2v-2h2zm3 0h-2v-2h2zm3 0h-2v-2h2zm-9-3h-2v-2h2zm3 0h-2v-2h2zm3 0h-2v-2h2zm3 0h-2v-2h2z"}),(0,oe.jsx)(te.Path,{d:"m18.5 6.5h-13a.5.5 0 0 0 -.5.5v9.5a.5.5 0 0 0 .5.5h13a.5.5 0 0 0 .5-.5v-9.5a.5.5 0 0 0 -.5-.5zm-13-1.5h13a2 2 0 0 1 2 2v9.5a2 2 0 0 1 -2 2h-13a2 2 0 0 1 -2-2v-9.5a2 2 0 0 1 2-2z"})]}),sc=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24",children:(0,oe.jsx)(te.Path,{d:"M18,0 L2,0 C0.9,0 0.01,0.9 0.01,2 L0,12 C0,13.1 0.9,14 2,14 L18,14 C19.1,14 20,13.1 20,12 L20,2 C20,0.9 19.1,0 18,0 Z M18,12 L2,12 L2,2 L18,2 L18,12 Z M9,3 L11,3 L11,5 L9,5 L9,3 Z M9,6 L11,6 L11,8 L9,8 L9,6 Z M6,3 L8,3 L8,5 L6,5 L6,3 Z M6,6 L8,6 L8,8 L6,8 L6,6 Z M3,6 L5,6 L5,8 L3,8 L3,6 Z M3,3 L5,3 L5,5 L3,5 L3,3 Z M6,9 L14,9 L14,11 L6,11 L6,9 Z M12,6 L14,6 L14,8 L12,8 L12,6 Z M12,3 L14,3 L14,5 L12,5 L12,3 Z M15,6 L17,6 L17,8 L15,8 L15,6 Z M15,3 L17,3 L17,5 L15,5 L15,3 Z M10,20 L14,16 L6,16 L10,20 Z"})}),lc=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M17.5 10h-1.7l-3.7 10.5h1.7l.9-2.6h3.9l.9 2.6h1.7L17.5 10zm-2.2 6.3 1.4-4 1.4 4h-2.8zm-4.8-3.8c1.6-1.8 2.9-3.6 3.7-5.7H16V5.2h-5.8V3H8.8v2.2H3v1.5h9.6c-.7 1.6-1.8 3.1-3.1 4.6C8.6 10.2 7.8 9 7.2 8H5.6c.6 1.4 1.7 2.9 2.9 4.4l-2.4 2.4c-.3.4-.7.8-1.1 1.2l1 1 1.2-1.2c.8-.8 1.6-1.5 2.3-2.3.8.9 1.7 1.7 2.5 2.5l.6-1.5c-.7-.6-1.4-1.3-2.1-2z"})}),uc=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})}),dc=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"m13.53 8.47-1.06 1.06-2.72-2.72V12h-1.5V6.81L5.53 9.53 4.47 8.47 9 3.94l4.53 4.53Zm-1.802 7.968c1.307.697 3.235.812 5.772.812v1.5c-2.463 0-4.785-.085-6.478-.988a4.721 4.721 0 0 1-2.07-2.13C8.48 14.67 8.25 13.471 8.25 12h1.5c0 1.328.208 2.28.548 2.969.332.675.81 1.138 1.43 1.47Z"})}),mc=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{fillRule:"evenodd",d:"M17.375 15.656A6.47 6.47 0 0018.5 12a6.47 6.47 0 00-.943-3.374l-1.262.813c.448.749.705 1.625.705 2.561a4.977 4.977 0 01-.887 2.844l1.262.813zm-1.951 1.87l-.813-1.261A4.976 4.976 0 0112 17c-.958 0-1.852-.27-2.613-.736l-.812 1.261A6.47 6.47 0 0012 18.5a6.47 6.47 0 003.424-.974zm-8.8-1.87A6.47 6.47 0 015.5 12c0-1.235.344-2.39.943-3.373l1.261.812A4.977 4.977 0 007 12c0 1.056.328 2.036.887 2.843l-1.262.813zm2.581-7.803A4.977 4.977 0 0112 7c1.035 0 1.996.314 2.794.853l.812-1.262A6.47 6.47 0 0012 5.5a6.47 6.47 0 00-3.607 1.092l.812 1.261zM12 20a8 8 0 100-16 8 8 0 000 16zm0-4.5a3.5 3.5 0 100-7 3.5 3.5 0 000 7z",clipRule:"evenodd"})}),pc=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{fillRule:"evenodd",d:"M5 11.25h3v1.5H5v-1.5zm5.5 0h3v1.5h-3v-1.5zm8.5 0h-3v1.5h3v-1.5z",clipRule:"evenodd"})}),hc=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{fillRule:"evenodd",d:"M5.25 11.25h1.5v1.5h-1.5v-1.5zm3 0h1.5v1.5h-1.5v-1.5zm4.5 0h-1.5v1.5h1.5v-1.5zm1.5 0h1.5v1.5h-1.5v-1.5zm4.5 0h-1.5v1.5h1.5v-1.5z",clipRule:"evenodd"})}),_c=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M5 11.25h14v1.5H5z"})}),vc=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M10 17.389H8.444A5.194 5.194 0 1 1 8.444 7H10v1.5H8.444a3.694 3.694 0 0 0 0 7.389H10v1.5ZM14 7h1.556a5.194 5.194 0 0 1 0 10.39H14v-1.5h1.556a3.694 3.694 0 0 0 0-7.39H14V7Zm-4.5 6h5v-1.5h-5V13Z"})}),wc=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M17.031 4.703 15.576 4l-1.56 3H14v.03l-2.324 4.47H9.5V13h1.396l-1.502 2.889h-.95a3.694 3.694 0 0 1 0-7.389H10V7H8.444a5.194 5.194 0 1 0 0 10.389h.17L7.5 19.53l1.416.719L15.049 8.5h.507a3.694 3.694 0 0 1 0 7.39H14v1.5h1.556a5.194 5.194 0 0 0 .273-10.383l1.202-2.304Z"})}),gc=(0,oe.jsx)(te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,oe.jsx)(te.Path,{d:"M4 4v1.5h16V4H4zm8 8.5h8V11h-8v1.5zM4 20h16v-1.5H4V20zm4-8c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2z"})}),fc=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M12 11v1.5h8V11h-8zm-6-1c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})});var Ec=o(6006);const bc=(0,oe.jsx)(te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,oe.jsx)(te.Path,{d:"M17 10h-1.2V7c0-2.1-1.7-3.8-3.8-3.8-2.1 0-3.8 1.7-3.8 3.8v3H7c-.6 0-1 .4-1 1v8c0 .6.4 1 1 1h10c.6 0 1-.4 1-1v-8c0-.6-.4-1-1-1zm-2.8 0H9.8V7c0-1.2 1-2.2 2.2-2.2s2.2 1 2.2 2.2v3z"})}),Cc=(0,oe.jsx)(te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,oe.jsx)(te.Path,{d:"M17 10h-1.2V7c0-2.1-1.7-3.8-3.8-3.8-2.1 0-3.8 1.7-3.8 3.8v3H7c-.6 0-1 .4-1 1v8c0 .6.4 1 1 1h10c.6 0 1-.4 1-1v-8c0-.6-.4-1-1-1zM9.8 7c0-1.2 1-2.2 2.2-2.2 1.2 0 2.2 1 2.2 2.2v3H9.8V7zm6.7 11.5h-9v-7h9v7z"})}),xc=(0,oe.jsx)(te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,oe.jsx)(te.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M15 11h-.2V9c0-1.5-1.2-2.8-2.8-2.8S9.2 7.5 9.2 9v2H9c-.6 0-1 .4-1 1v4c0 .6.4 1 1 1h6c.6 0 1-.4 1-1v-4c0-.6-.4-1-1-1zm-1.8 0h-2.5V9c0-.7.6-1.2 1.2-1.2s1.2.6 1.2 1.2v2z"})}),yc=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M11 14.5l1.1 1.1 3-3 .5-.5-.6-.6-3-3-1 1 1.7 1.7H5v1.5h7.7L11 14.5zM16.8 5h-7c-1.1 0-2 .9-2 2v1.5h1.5V7c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v10c0 .3-.2.5-.5.5h-7c-.3 0-.5-.2-.5-.5v-1.5H7.8V17c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2z"})}),Ac=(0,oe.jsx)(te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,oe.jsx)(te.Path,{d:"M18.1823 11.6392C18.1823 13.0804 17.0139 14.2487 15.5727 14.2487C14.3579 14.2487 13.335 13.4179 13.0453 12.2922L13.0377 12.2625L13.0278 12.2335L12.3985 10.377L12.3942 10.3785C11.8571 8.64997 10.246 7.39405 8.33961 7.39405C5.99509 7.39405 4.09448 9.29465 4.09448 11.6392C4.09448 13.9837 5.99509 15.8843 8.33961 15.8843C8.88499 15.8843 9.40822 15.781 9.88943 15.5923L9.29212 14.0697C8.99812 14.185 8.67729 14.2487 8.33961 14.2487C6.89838 14.2487 5.73003 13.0804 5.73003 11.6392C5.73003 10.1979 6.89838 9.02959 8.33961 9.02959C9.55444 9.02959 10.5773 9.86046 10.867 10.9862L10.8772 10.9836L11.4695 12.7311C11.9515 14.546 13.6048 15.8843 15.5727 15.8843C17.9172 15.8843 19.8178 13.9837 19.8178 11.6392C19.8178 9.29465 17.9172 7.39404 15.5727 7.39404C15.0287 7.39404 14.5066 7.4968 14.0264 7.6847L14.6223 9.20781C14.9158 9.093 15.2358 9.02959 15.5727 9.02959C17.0139 9.02959 18.1823 10.1979 18.1823 11.6392Z"})}),kc=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M12 9c-.8 0-1.5.7-1.5 1.5S11.2 12 12 12s1.5-.7 1.5-1.5S12.8 9 12 9zm0-5c-3.6 0-6.5 2.8-6.5 6.2 0 .8.3 1.8.9 3.1.5 1.1 1.2 2.3 2 3.6.7 1 3 3.8 3.2 3.9l.4.5.4-.5c.2-.2 2.6-2.9 3.2-3.9.8-1.2 1.5-2.5 2-3.6.6-1.3.9-2.3.9-3.1C18.5 6.8 15.6 4 12 4zm4.3 8.7c-.5 1-1.1 2.2-1.9 3.4-.5.7-1.7 2.2-2.4 3-.7-.8-1.9-2.3-2.4-3-.8-1.2-1.4-2.3-1.9-3.3-.6-1.4-.7-2.2-.7-2.5 0-2.6 2.2-4.7 5-4.7s5 2.1 5 4.7c0 .2-.1 1-.7 2.4z"})}),Sc=(0,oe.jsxs)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,oe.jsx)(te.Path,{d:"m7 6.5 4 2.5-4 2.5z"}),(0,oe.jsx)(te.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"m5 3c-1.10457 0-2 .89543-2 2v14c0 1.1046.89543 2 2 2h14c1.1046 0 2-.8954 2-2v-14c0-1.10457-.8954-2-2-2zm14 1.5h-14c-.27614 0-.5.22386-.5.5v10.7072l3.62953-2.6465c.25108-.1831.58905-.1924.84981-.0234l2.92666 1.8969 3.5712-3.4719c.2911-.2831.7545-.2831 1.0456 0l2.9772 2.8945v-9.3568c0-.27614-.2239-.5-.5-.5zm-14.5 14.5v-1.4364l4.09643-2.987 2.99567 1.9417c.2936.1903.6798.1523.9307-.0917l3.4772-3.3806 3.4772 3.3806.0228-.0234v2.5968c0 .2761-.2239.5-.5.5h-14c-.27614 0-.5-.2239-.5-.5z"})]}),Pc=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M3 6v11.5h8V6H3Zm11 3h7V7.5h-7V9Zm7 3.5h-7V11h7v1.5ZM14 16h7v-1.5h-7V16Z"})}),Vc=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{fillRule:"evenodd",d:"M6.863 13.644L5 13.25h-.5a.5.5 0 01-.5-.5v-3a.5.5 0 01.5-.5H5L18 6.5h2V16h-2l-3.854-.815.026.008a3.75 3.75 0 01-7.31-1.549zm1.477.313a2.251 2.251 0 004.356.921l-4.356-.921zm-2.84-3.28L18.157 8h.343v6.5h-.343L5.5 11.823v-1.146z",clipRule:"evenodd"})}),Bc=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M5 5v1.5h14V5H5zm0 7.8h14v-1.5H5v1.5zM5 19h14v-1.5H5V19z"})}),Mc=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M15 4H9c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h6c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H9c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h6c.3 0 .5.2.5.5v12zm-4.5-.5h2V16h-2v1.5z"})}),Fc=(0,oe.jsx)(te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,oe.jsx)(te.Path,{d:"M4 9v1.5h16V9H4zm12 5.5h4V13h-4v1.5zm-6 0h4V13h-4v1.5zm-6 0h4V13H4v1.5z"})}),Lc=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M11 13h2v-2h-2v2zm-6 0h2v-2H5v2zm12-2v2h2v-2h-2z"})}),Nc=(0,oe.jsxs)(te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,oe.jsx)(te.Path,{d:"M7.5 12C7.5 11.1716 6.82843 10.5 6 10.5C5.17157 10.5 4.5 11.1716 4.5 12C4.5 12.8284 5.17157 13.5 6 13.5C6.82843 13.5 7.5 12.8284 7.5 12Z"}),(0,oe.jsx)(te.Path,{d:"M13.5 12C13.5 11.1716 12.8284 10.5 12 10.5C11.1716 10.5 10.5 11.1716 10.5 12C10.5 12.8284 11.1716 13.5 12 13.5C12.8284 13.5 13.5 12.8284 13.5 12Z"}),(0,oe.jsx)(te.Path,{d:"M19.5 12C19.5 11.1716 18.8284 10.5 18 10.5C17.1716 10.5 16.5 11.1716 16.5 12C16.5 12.8284 17.1716 13.5 18 13.5C18.8284 13.5 19.5 12.8284 19.5 12Z"})]});var Tc=o(76938);const Dc=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M19.75 9c0-1.257-.565-2.197-1.39-2.858-.797-.64-1.827-1.017-2.815-1.247-1.802-.42-3.703-.403-4.383-.396L11 4.5V6l.177-.001c.696-.006 2.416-.02 4.028.356.887.207 1.67.518 2.216.957.52.416.829.945.829 1.688 0 .592-.167.966-.407 1.23-.255.281-.656.508-1.236.674-1.19.34-2.82.346-4.607.346h-.077c-1.692 0-3.527 0-4.942.404-.732.209-1.424.545-1.935 1.108-.526.579-.796 1.33-.796 2.238 0 1.257.565 2.197 1.39 2.858.797.64 1.827 1.017 2.815 1.247 1.802.42 3.703.403 4.383.396L13 19.5h.714V22L18 18.5 13.714 15v3H13l-.177.001c-.696.006-2.416.02-4.028-.356-.887-.207-1.67-.518-2.216-.957-.52-.416-.829-.945-.829-1.688 0-.592.167-.966.407-1.23.255-.281.656-.508 1.237-.674 1.189-.34 2.819-.346 4.606-.346h.077c1.692 0 3.527 0 4.941-.404.732-.209 1.425-.545 1.936-1.108.526-.579.796-1.33.796-2.238z"})}),Hc=(0,oe.jsx)(te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,oe.jsx)(te.Path,{d:"M12 4c-4.4 0-8 3.6-8 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8zm0 14.5c-3.6 0-6.5-2.9-6.5-6.5S8.4 5.5 12 5.5s6.5 2.9 6.5 6.5-2.9 6.5-6.5 6.5zM9 16l4.5-3L15 8.4l-4.5 3L9 16z"})}),zc=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 18.5A6.5 6.5 0 0 1 6.93 7.931l9.139 9.138A6.473 6.473 0 0 1 12 18.5Zm5.123-2.498a6.5 6.5 0 0 0-9.124-9.124l9.124 9.124ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Z"})}),jc=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M19 5H5c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm.5 12c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V7c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v10zm-11-7.6h-.7l-3.1 4.3h2.8V15h1v-1.3h.7v-.8h-.7V9.4zm-.9 3.5H6.3l1.2-1.7v1.7zm5.6-3.2c-.4-.2-.8-.4-1.2-.4-.5 0-.9.1-1.2.4-.4.2-.6.6-.8 1-.2.4-.3.9-.3 1.5s.1 1.1.3 1.6c.2.4.5.8.8 1 .4.2.8.4 1.2.4.5 0 .9-.1 1.2-.4.4-.2.6-.6.8-1 .2-.4.3-1 .3-1.6 0-.6-.1-1.1-.3-1.5-.1-.5-.4-.8-.8-1zm0 3.6c-.1.3-.3.5-.5.7-.2.1-.4.2-.7.2-.3 0-.5-.1-.7-.2-.2-.1-.4-.4-.5-.7-.1-.3-.2-.7-.2-1.2 0-.7.1-1.2.4-1.5.3-.3.6-.5 1-.5s.7.2 1 .5c.3.3.4.8.4 1.5-.1.5-.1.9-.2 1.2zm5-3.9h-.7l-3.1 4.3h2.8V15h1v-1.3h.7v-.8h-.7V9.4zm-1 3.5H16l1.2-1.7v1.7z"})}),Ic=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12-9.8c.4 0 .8-.3.9-.7l1.1-3h3.6l.5 1.7h1.9L13 9h-2.2l-3.4 9.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12H20V6c0-1.1-.9-2-2-2zm-6 7l1.4 3.9h-2.7L12 11z"})}),Rc=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M17.5 9V6a2 2 0 0 0-2-2h-7a2 2 0 0 0-2 2v3H8V6a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v3h1.5Zm0 6.5V18a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2v-2.5H8V18a.5.5 0 0 0 .5.5h7a.5.5 0 0 0 .5-.5v-2.5h1.5ZM4 13h16v-1.5H4V13Z"})}),Oc=(0,oe.jsxs)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,oe.jsx)(te.Path,{d:"M15.5 7.5h-7V9h7V7.5Zm-7 3.5h7v1.5h-7V11Zm7 3.5h-7V16h7v-1.5Z"}),(0,oe.jsx)(te.Path,{d:"M17 4H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2ZM7 5.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H7a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5Z"})]}),Gc=(0,oe.jsxs)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,oe.jsx)(te.Path,{d:"M14.5 5.5h-7V7h7V5.5ZM7.5 9h7v1.5h-7V9Zm7 3.5h-7V14h7v-1.5Z"}),(0,oe.jsx)(te.Path,{d:"M16 2H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2ZM6 3.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H6a.5.5 0 0 1-.5-.5V4a.5.5 0 0 1 .5-.5Z"}),(0,oe.jsx)(te.Path,{d:"M20 8v11c0 .69-.31 1-.999 1H6v1.5h13.001c1.52 0 2.499-.982 2.499-2.5V8H20Z"})]}),$c=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"m9.99609 14v-.2251l.00391.0001v6.225h1.5v-14.5h2.5v14.5h1.5v-14.5h3v-1.5h-8.50391c-2.76142 0-5 2.23858-5 5 0 2.7614 2.23858 5 5 5z"})}),Zc=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{fillRule:"evenodd",d:"M5.5 9.5v-2h13v2h-13zm0 3v4h13v-4h-13zM4 7a1 1 0 011-1h14a1 1 0 011 1v10a1 1 0 01-1 1H5a1 1 0 01-1-1V7z",clipRule:"evenodd"})}),Uc=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 18.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm8 4a4 4 0 0 1-4-4h4V8a4 4 0 0 1 0 8Z"})}),qc=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{fillRule:"evenodd",d:"M6.5 8a1.5 1.5 0 103 0 1.5 1.5 0 00-3 0zM8 5a3 3 0 100 6 3 3 0 000-6zm6.5 11a1.5 1.5 0 103 0 1.5 1.5 0 00-3 0zm1.5-3a3 3 0 100 6 3 3 0 000-6zM5.47 17.41a.75.75 0 001.06 1.06L18.47 6.53a.75.75 0 10-1.06-1.06L5.47 17.41z",clipRule:"evenodd"})}),Wc=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M19 5.5H5V4h14v1.5ZM19 20H5v-1.5h14V20ZM7 9h10v6H7V9Z"})}),Jc=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M5 5.5h8V4H5v1.5ZM5 20h8v-1.5H5V20ZM19 9H5v6h14V9Z"})}),Yc=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M19 5.5h-8V4h8v1.5ZM19 20h-8v-1.5h8V20ZM5 9h14v6H5V9Z"})}),Kc=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M15.5 9.5a1 1 0 100-2 1 1 0 000 2zm0 1.5a2.5 2.5 0 100-5 2.5 2.5 0 000 5zm-2.25 6v-2a2.75 2.75 0 00-2.75-2.75h-4A2.75 2.75 0 003.75 15v2h1.5v-2c0-.69.56-1.25 1.25-1.25h4c.69 0 1.25.56 1.25 1.25v2h1.5zm7-2v2h-1.5v-2c0-.69-.56-1.25-1.25-1.25H15v-1.5h2.5A2.75 2.75 0 0120.25 15zM9.5 8.5a1 1 0 11-2 0 1 1 0 012 0zm1.5 0a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0z",fillRule:"evenodd"})}),Xc=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"m21.5 9.1-6.6-6.6-4.2 5.6c-1.2-.1-2.4.1-3.6.7-.1 0-.1.1-.2.1-.5.3-.9.6-1.2.9l3.7 3.7-5.7 5.7v1.1h1.1l5.7-5.7 3.7 3.7c.4-.4.7-.8.9-1.2.1-.1.1-.2.2-.3.6-1.1.8-2.4.6-3.6l5.6-4.1zm-7.3 3.5.1.9c.1.9 0 1.8-.4 2.6l-6-6c.8-.4 1.7-.5 2.6-.4l.9.1L15 4.9 19.1 9l-4.9 3.6z"})}),Qc=(0,oe.jsx)(te.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,oe.jsx)(te.Path,{d:"M10.97 10.159a3.382 3.382 0 0 0-2.857.955l1.724 1.723-2.836 2.913L7 17h1.25l2.913-2.837 1.723 1.723a3.38 3.38 0 0 0 .606-.825c.33-.63.446-1.343.35-2.032L17 10.695 13.305 7l-2.334 3.159Z"})});var ei=o(91128);const ti=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M2 12C2 6.44444 6.44444 2 12 2C17.5556 2 22 6.44444 22 12C22 17.5556 17.5556 22 12 22C6.44444 22 2 17.5556 2 12ZM13 11V7H11V11H7V13H11V17H13V13H17V11H13Z"})}),oi=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24",children:(0,oe.jsx)(te.Path,{d:"M10 1c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16c-3.9 0-7-3.1-7-7s3.1-7 7-7 7 3.1 7 7-3.1 7-7 7zm1-11H9v3H6v2h3v3h2v-3h3V9h-3V6zM10 1c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16c-3.9 0-7-3.1-7-7s3.1-7 7-7 7 3.1 7 7-3.1 7-7 7zm1-11H9v3H6v2h3v3h2v-3h3V9h-3V6z"})});var ri=o(67606);const ni=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"m7.3 9.7 1.4 1.4c.2-.2.3-.3.4-.5 0 0 0-.1.1-.1.3-.5.4-1.1.3-1.6L12 7 9 4 7.2 6.5c-.6-.1-1.1 0-1.6.3 0 0-.1 0-.1.1-.3.1-.4.2-.6.4l1.4 1.4L4 11v1h1l2.3-2.3zM4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4z"})}),ai=(0,oe.jsx)(te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,oe.jsx)(te.Path,{d:"M10 4.5a1 1 0 11-2 0 1 1 0 012 0zm1.5 0a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0zm2.25 7.5v-1A2.75 2.75 0 0011 8.25H7A2.75 2.75 0 004.25 11v1h1.5v-1c0-.69.56-1.25 1.25-1.25h4c.69 0 1.25.56 1.25 1.25v1h1.5zM4 20h9v-1.5H4V20zm16-4H4v-1.5h16V16z",fillRule:"evenodd",clipRule:"evenodd"})}),ci=(0,oe.jsx)(te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,oe.jsx)(te.Path,{d:"M20 4H4v1.5h16V4zm-2 9h-3c-1.1 0-2 .9-2 2v3c0 1.1.9 2 2 2h3c1.1 0 2-.9 2-2v-3c0-1.1-.9-2-2-2zm.5 5c0 .3-.2.5-.5.5h-3c-.3 0-.5-.2-.5-.5v-3c0-.3.2-.5.5-.5h3c.3 0 .5.2.5.5v3zM4 9.5h9V8H4v1.5zM9 13H6c-1.1 0-2 .9-2 2v3c0 1.1.9 2 2 2h3c1.1 0 2-.9 2-2v-3c0-1.1-.9-2-2-2zm.5 5c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-3c0-.3.2-.5.5-.5h3c.3 0 .5.2.5.5v3z",fillRule:"evenodd",clipRule:"evenodd"})}),ii=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M14 10.1V4c0-.6-.4-1-1-1H5c-.6 0-1 .4-1 1v8.3c0 .3.2.7.6.8.1.1.2.1.3.1.2 0 .5-.1.6-.3l1.8-1.8H13c.6 0 1-.4 1-1zm-1.5-.5H6.7l-1.2 1.2V4.5h7v5.1zM19 12h-8c-.6 0-1 .4-1 1v6.1c0 .6.4 1 1 1h5.7l1.8 1.8c.1.2.4.3.6.3.1 0 .2 0 .3-.1.4-.1.6-.5.6-.8V13c0-.6-.4-1-1-1zm-.5 7.8l-1.2-1.2h-5.8v-5.1h7v6.3z"})}),si=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M13 8H4v1.5h9V8zM4 4v1.5h16V4H4zm9 8H5c-.6 0-1 .4-1 1v8.3c0 .3.2.7.6.8.1.1.2.1.3.1.2 0 .5-.1.6-.3l1.8-1.8H13c.6 0 1-.4 1-1V13c0-.6-.4-1-1-1zm-2.2 6.6H7l1.6-2.2c.3-.4.5-.7.6-.9.1-.2.2-.4.2-.5 0-.2-.1-.3-.1-.4-.1-.1-.2-.1-.4-.1s-.4 0-.6.1c-.3.1-.5.3-.7.4l-.2.2-.2-1.2.1-.1c.3-.2.5-.3.8-.4.3-.1.6-.1.9-.1.3 0 .6.1.9.2.2.1.4.3.6.5.1.2.2.5.2.7 0 .3-.1.6-.2.9-.1.3-.4.7-.7 1.1l-.5.6h1.6v1.2z"})}),li=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M13 8H4v1.5h9V8zM4 4v1.5h16V4H4zm9 8H5c-.6 0-1 .4-1 1v8.3c0 .3.2.7.6.8.1.1.2.1.3.1.2 0 .5-.1.6-.3l1.8-1.8H13c.6 0 1-.4 1-1V13c0-.6-.4-1-1-1zm-.5 6.6H6.7l-1.2 1.2v-6.3h7v5.1z"})}),ui=(0,oe.jsxs)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,oe.jsx)(te.Path,{d:"M11.696 13.972c.356-.546.599-.958.728-1.235a1.79 1.79 0 00.203-.783c0-.264-.077-.47-.23-.618-.148-.153-.354-.23-.618-.23-.295 0-.569.07-.82.212a3.413 3.413 0 00-.738.571l-.147-1.188c.289-.234.59-.41.903-.526.313-.117.66-.175 1.041-.175.375 0 .695.08.959.24.264.153.46.362.59.626.135.265.203.556.203.876 0 .362-.08.734-.24 1.115-.154.381-.427.87-.82 1.466l-.756 1.152H14v1.106h-4l1.696-2.609z"}),(0,oe.jsx)(te.Path,{d:"M19.5 7h-15v12a.5.5 0 00.5.5h14a.5.5 0 00.5-.5V7zM3 7V5a2 2 0 012-2h14a2 2 0 012 2v14a2 2 0 01-2 2H5a2 2 0 01-2-2V7z"})]}),di=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M8.001 3.984V9.47c0 1.518-.98 2.5-2.499 2.5h-.5v-1.5h.5c.69 0 1-.31 1-1V6.984H4v-3h4.001ZM4 20h9v-1.5H4V20Zm16-4H4v-1.5h16V16ZM13.001 3.984V9.47c0 1.518-.98 2.5-2.499 2.5h-.5v-1.5h.5c.69 0 1-.31 1-1V6.984H9v-3h4.001Z"})}),mi=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M19 3H5c-.6 0-1 .4-1 1v7c0 .5.4 1 1 1h14c.5 0 1-.4 1-1V4c0-.6-.4-1-1-1zM5.5 10.5v-.4l1.8-1.3 1.3.8c.3.2.7.2.9-.1L11 8.1l2.4 2.4H5.5zm13 0h-2.9l-4-4c-.3-.3-.8-.3-1.1 0L8.9 8l-1.2-.8c-.3-.2-.6-.2-.9 0l-1.3 1V4.5h13v6zM4 20h9v-1.5H4V20zm0-4h16v-1.5H4V16z"})}),pi=(0,oe.jsx)(te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,oe.jsx)(te.Path,{d:"M18 5.5H6a.5.5 0 0 0-.5.5v12a.5.5 0 0 0 .5.5h12a.5.5 0 0 0 .5-.5V6a.5.5 0 0 0-.5-.5ZM6 4h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Zm1 5h1.5v1.5H7V9Zm1.5 4.5H7V15h1.5v-1.5ZM10 9h7v1.5h-7V9Zm7 4.5h-7V15h7v-1.5Z"})}),hi=(0,oe.jsx)(te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,oe.jsx)(te.Path,{d:"M8.1 12.3c.1.1.3.3.5.3.2.1.4.1.6.1.2 0 .4 0 .6-.1.2-.1.4-.2.5-.3l3-3c.3-.3.5-.7.5-1.1 0-.4-.2-.8-.5-1.1L9.7 3.5c-.1-.2-.3-.3-.5-.3H5c-.4 0-.8.4-.8.8v4.2c0 .2.1.4.2.5l3.7 3.6zM5.8 4.8h3.1l3.4 3.4v.1l-3 3 .5.5-.7-.5-3.3-3.4V4.8zM4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4z"})});var _i=o(52887),vi=o(2111);const wi=(0,oe.jsx)(te.SVG,{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",children:(0,oe.jsx)(te.Path,{d:"M1.36605 2.81332L2.30144 1.87332L13.5592 13.1867L12.6239 14.1267L7.92702 9.40666C6.74618 9.41999 5.57861 9.87999 4.68302 10.78L3.35623 9.44665C4.19874 8.60665 5.2071 8.03999 6.2818 7.75332L4.7958 6.25999C3.78744 6.67332 2.84542 7.29332 2.02944 8.11332L0.702656 6.77999C1.512 5.97332 2.42085 5.33332 3.3894 4.84665L1.36605 2.81332ZM15.2973 6.77999L13.9705 8.11332C12.3054 6.43999 10.1096 5.61332 7.92039 5.62666L6.20883 3.90665C9.41303 3.34665 12.8229 4.29332 15.2973 6.77999ZM10.1759 7.89332C11.0781 8.21332 11.9273 8.72665 12.6438 9.44665L12.1794 9.90665L10.1759 7.89332ZM6.00981 12.1133L8 14.1133L9.99018 12.1133C8.89558 11.0067 7.11105 11.0067 6.00981 12.1133Z"})}),gi=(0,oe.jsx)(te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,oe.jsx)(te.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12zM7 16.5h6V15H7v1.5zm4-4h6V11h-6v1.5zM9 11H7v1.5h2V11zm6 5.5h2V15h-2v1.5z"})}),fi=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 18.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm11.53-1.47-1.06-1.06L11 12.94l-1.47-1.47-1.06 1.06L11 15.06l4.53-4.53Z"})}),Ei=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M4 18h6V6H4v12zm9-9.5V10h7V8.5h-7zm0 7h7V14h-7v1.5z"})}),bi=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M14 6v12h6V6h-6zM4 10h7V8.5H4V10zm0 5.5h7V14H4v1.5z"})}),Ci=(0,oe.jsx)(te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,oe.jsx)(te.Path,{d:"M18 8H6c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2zm.5 6c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-4c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v4zM4 4v1.5h16V4H4zm0 16h16v-1.5H4V20z"})}),xi=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M4 13.5h6v-3H4v3zm8 0h3v-3h-3v3zm5-3v3h3v-3h-3z"})}),yi=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M5 13.5h3v-3H5v3zm5 0h3v-3h-3v3zM17 9l-1 1 2 2-2 2 1 1 3-3-3-3z"})}),Ai=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M4 13.5h6v-3H4v3zm8.2-2.5.8-.3V14h1V9.3l-2.2.7.4 1zm7.1-1.2c-.5-.6-1.2-.5-1.7-.4-.3.1-.5.2-.7.3l.1 1.1c.2-.2.5-.4.8-.5.3-.1.6 0 .7.1.2.3 0 .8-.2 1.1-.5.8-.9 1.6-1.4 2.5h2.7v-1h-.9c.3-.6.8-1.4.9-2.1 0-.3-.1-.8-.3-1.1z"})}),ki=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M16 10.5v3h3v-3h-3zm-5 3h3v-3h-3v3zM7 9l-3 3 3 3 1-1-2-2 2-2-1-1z"})}),Si=(0,oe.jsx)(te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,oe.jsx)(te.Path,{d:"M13 6v6h5.2v4c0 .8-.2 1.4-.5 1.7-.6.6-1.6.6-2.5.5h-.3v1.5h.5c1 0 2.3-.1 3.3-1 .6-.6 1-1.6 1-2.8V6H13zm-9 6h5.2v4c0 .8-.2 1.4-.5 1.7-.6.6-1.6.6-2.5.5h-.3v1.5h.5c1 0 2.3-.1 3.3-1 .6-.6 1-1.6 1-2.8V6H4v6z"})}),Pi=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{fillRule:"evenodd",d:"M16.83 6.342l.602.3.625-.25.443-.176v12.569l-.443-.178-.625-.25-.603.301-1.444.723-2.41-.804-.475-.158-.474.158-2.41.803-1.445-.722-.603-.3-.625.25-.443.177V6.215l.443.178.625.25.603-.301 1.444-.722 2.41.803.475.158.474-.158 2.41-.803 1.445.722zM20 4l-1.5.6-1 .4-2-1-3 1-3-1-2 1-1-.4L5 4v17l1.5-.6 1-.4 2 1 3-1 3 1 2-1 1 .4 1.5.6V4zm-3.5 6.25v-1.5h-8v1.5h8zm0 3v-1.5h-8v1.5h8zm-8 3v-1.5h8v1.5h-8z",clipRule:"evenodd"})});var Vi=o(22794);const Bi=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M8.45474 21.2069L16.4547 3.7069L15.5453 3.29114L14.2837 6.05081C13.5991 5.69873 12.8228 5.49999 12 5.49999C10.9385 5.49999 9.95431 5.83076 9.1448 6.39485L7.18994 4.44L6.12928 5.50066L8.05556 7.42694C7.49044 8.15127 7.12047 9.0353 7.02469 9.99999H5V11.5H7V13H5V14.5H7.10002C7.35089 15.7359 8.0576 16.8062 9.03703 17.5279L7.54526 20.7911L8.45474 21.2069ZM9.68024 16.1209C8.95633 15.4796 8.5 14.5431 8.5 13.5V10.5C8.5 8.567 10.067 6.99999 12 6.99999C12.6003 6.99999 13.1653 7.15111 13.659 7.41738L9.68024 16.1209ZM15.3555 9.50155L16.1645 7.73191C16.6053 8.39383 16.8926 9.16683 16.9753 9.99999H19V11.5H17V13H19V14.5H16.9C16.4367 16.7822 14.419 18.5 12 18.5C11.7508 18.5 11.5058 18.4818 11.2664 18.4466L11.928 16.9993C11.9519 16.9998 11.9759 17 12 17C13.933 17 15.5 15.433 15.5 13.5V10.5C15.5 10.1531 15.4495 9.81794 15.3555 9.50155Z"})}),Mi=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"m13.955 20.748 8-17.5-.91-.416L19.597 6H13.5v1.5h5.411l-1.6 3.5H13.5v1.5h3.126l-1.6 3.5H13.5l.028 1.5h.812l-1.295 2.832.91.416ZM17.675 16l-.686 1.5h4.539L21.5 16h-3.825Zm2.286-5-.686 1.5H21.5V11h-1.54ZM2 12c0 3.58 2.42 5.5 6 5.5h.5V19l3-2.5-3-2.5v2H8c-2.48 0-4.5-1.52-4.5-4S5.52 7.5 8 7.5h3.5V6H8c-3.58 0-6 2.42-6 6Z"})}),Fi=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M16 10h4c.6 0 1-.4 1-1V5c0-.6-.4-1-1-1h-4c-.6 0-1 .4-1 1v4c0 .6.4 1 1 1zm-8 4H4c-.6 0-1 .4-1 1v4c0 .6.4 1 1 1h4c.6 0 1-.4 1-1v-4c0-.6-.4-1-1-1zm10-2.6L14.5 15l1.1 1.1 1.7-1.7c-.1 1.1-.3 2.3-.9 2.9-.3.3-.7.5-1.3.5h-4.5v1.5H15c.9 0 1.7-.3 2.3-.9 1-1 1.3-2.7 1.4-4l1.8 1.8 1.1-1.1-3.6-3.7zM6.8 9.7c.1-1.1.3-2.3.9-2.9.4-.4.8-.6 1.3-.6h4.5V4.8H9c-.9 0-1.7.3-2.3.9-1 1-1.3 2.7-1.4 4L3.5 8l-1 1L6 12.6 9.5 9l-1-1-1.7 1.7z"})});var Li=o(42175);const Ni=(0,oe.jsx)(te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,oe.jsx)(te.Path,{d:"M7 18h4.5v1.5h-7v-7H6V17L17 6h-4.5V4.5h7v7H18V7L7 18Z"})}),Ti=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M7 7.2h8.2L13.5 9l1.1 1.1 3.6-3.6-3.5-4-1.1 1 1.9 2.3H7c-.9 0-1.7.3-2.3.9-1.4 1.5-1.4 4.2-1.4 5.6v.2h1.5v-.3c0-1.1 0-3.5 1-4.5.3-.3.7-.5 1.2-.5zm13.8 4V11h-1.5v.3c0 1.1 0 3.5-1 4.5-.3.3-.7.5-1.3.5H8.8l1.7-1.7-1.1-1.1L5.9 17l3.5 4 1.1-1-1.9-2.3H17c.9 0 1.7-.3 2.3-.9 1.5-1.4 1.5-4.2 1.5-5.6z"})}),Di=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M4 6.5h5a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H4V16h5a.5.5 0 0 0 .5-.5v-7A.5.5 0 0 0 9 8H4V6.5Zm16 0h-5a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h5V16h-5a.5.5 0 0 1-.5-.5v-7A.5.5 0 0 1 15 8h5V6.5Z"})}),Hi=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-1 1.4l-5.6 5.6c-.1.1-.3.1-.4 0l-5.6-5.6c-.1-.1-.1-.3 0-.4l5.6-5.6s.1-.1.2-.1.1 0 .2.1l5.6 5.6c.1.1.1.3 0 .4zm-16.6-.4L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"})}),zi=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M12 4V2.2L9 4.8l3 2.5V5.5c3.6 0 6.5 2.9 6.5 6.5 0 2.9-1.9 5.3-4.5 6.2v.2l-.1-.2c-.4.1-.7.2-1.1.2l.2 1.5c.3 0 .6-.1 1-.2 3.5-.9 6-4 6-7.7 0-4.4-3.6-8-8-8zm-7.9 7l1.5.2c.1-1.2.5-2.3 1.2-3.2l-1.1-.9C4.8 8.2 4.3 9.6 4.1 11zm1.5 1.8l-1.5.2c.1.7.3 1.4.5 2 .3.7.6 1.3 1 1.8l1.2-.8c-.3-.5-.6-1-.8-1.5s-.4-1.1-.4-1.7zm1.5 5.5c1.1.9 2.4 1.4 3.8 1.6l.2-1.5c-1.1-.1-2.2-.5-3.1-1.2l-.9 1.1z"})}),ji=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M15.1 4.8l-3-2.5V4c-4.4 0-8 3.6-8 8 0 3.7 2.5 6.9 6 7.7.3.1.6.1 1 .2l.2-1.5c-.4 0-.7-.1-1.1-.2l-.1.2v-.2c-2.6-.8-4.5-3.3-4.5-6.2 0-3.6 2.9-6.5 6.5-6.5v1.8l3-2.5zM20 11c-.2-1.4-.7-2.7-1.6-3.8l-1.2.8c.7.9 1.1 2 1.3 3.1L20 11zm-1.5 1.8c-.1.5-.2 1.1-.4 1.6s-.5 1-.8 1.5l1.2.9c.4-.5.8-1.1 1-1.8s.5-1.3.5-2l-1.5-.2zm-5.6 5.6l.2 1.5c1.4-.2 2.7-.7 3.8-1.6l-.9-1.1c-.9.7-2 1.1-3.1 1.2z"})}),Ii=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M5 10.2h-.8v1.5H5c1.9 0 3.8.8 5.1 2.1 1.4 1.4 2.1 3.2 2.1 5.1v.8h1.5V19c0-2.3-.9-4.5-2.6-6.2-1.6-1.6-3.8-2.6-6.1-2.6zm10.4-1.6C12.6 5.8 8.9 4.2 5 4.2h-.8v1.5H5c3.5 0 6.9 1.4 9.4 3.9s3.9 5.8 3.9 9.4v.8h1.5V19c0-3.9-1.6-7.6-4.4-10.4zM4 20h3v-3H4v3z"})}),Ri=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"})}),Oi=(0,oe.jsx)(te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,oe.jsx)(te.Path,{d:"M3.99961 13C4.67043 13.3354 4.6703 13.3357 4.67017 13.3359L4.67298 13.3305C4.67621 13.3242 4.68184 13.3135 4.68988 13.2985C4.70595 13.2686 4.7316 13.2218 4.76695 13.1608C4.8377 13.0385 4.94692 12.8592 5.09541 12.6419C5.39312 12.2062 5.84436 11.624 6.45435 11.0431C7.67308 9.88241 9.49719 8.75 11.9996 8.75C14.502 8.75 16.3261 9.88241 17.5449 11.0431C18.1549 11.624 18.6061 12.2062 18.9038 12.6419C19.0523 12.8592 19.1615 13.0385 19.2323 13.1608C19.2676 13.2218 19.2933 13.2686 19.3093 13.2985C19.3174 13.3135 19.323 13.3242 19.3262 13.3305L19.3291 13.3359C19.3289 13.3357 19.3288 13.3354 19.9996 13C20.6704 12.6646 20.6703 12.6643 20.6701 12.664L20.6697 12.6632L20.6688 12.6614L20.6662 12.6563L20.6583 12.6408C20.6517 12.6282 20.6427 12.6108 20.631 12.5892C20.6078 12.5459 20.5744 12.4852 20.5306 12.4096C20.4432 12.2584 20.3141 12.0471 20.1423 11.7956C19.7994 11.2938 19.2819 10.626 18.5794 9.9569C17.1731 8.61759 14.9972 7.25 11.9996 7.25C9.00203 7.25 6.82614 8.61759 5.41987 9.9569C4.71736 10.626 4.19984 11.2938 3.85694 11.7956C3.68511 12.0471 3.55605 12.2584 3.4686 12.4096C3.42484 12.4852 3.39142 12.5459 3.36818 12.5892C3.35656 12.6108 3.34748 12.6282 3.34092 12.6408L3.33297 12.6563L3.33041 12.6614L3.32948 12.6632L3.32911 12.664C3.32894 12.6643 3.32879 12.6646 3.99961 13ZM11.9996 16C13.9326 16 15.4996 14.433 15.4996 12.5C15.4996 10.567 13.9326 9 11.9996 9C10.0666 9 8.49961 10.567 8.49961 12.5C8.49961 14.433 10.0666 16 11.9996 16Z"})}),Gi=(0,oe.jsx)(te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,oe.jsx)(te.Path,{d:"M4.67 10.664s-2.09 1.11-2.917 1.582l.494.87 1.608-.914.002.002c.343.502.86 1.17 1.563 1.84.348.33.742.663 1.185.976L5.57 16.744l.858.515 1.02-1.701a9.1 9.1 0 0 0 4.051 1.18V19h1v-2.263a9.1 9.1 0 0 0 4.05-1.18l1.021 1.7.858-.514-1.034-1.723c.442-.313.837-.646 1.184-.977.703-.669 1.22-1.337 1.563-1.839l.002-.003 1.61.914.493-.87c-1.75-.994-2.918-1.58-2.918-1.58l-.003.005a8.29 8.29 0 0 1-.422.689 10.097 10.097 0 0 1-1.36 1.598c-1.218 1.16-3.042 2.293-5.544 2.293-2.503 0-4.327-1.132-5.546-2.293a10.099 10.099 0 0 1-1.359-1.599 8.267 8.267 0 0 1-.422-.689l-.003-.005Z"})}),$i=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 18.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm9 1V8h-1.5v3.5h-2V13H13Z"})}),Zi=(0,oe.jsx)(te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,oe.jsx)(te.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M6.332 5.748c-1.03-.426-2.06.607-1.632 1.636l1.702 3.93 7.481.575c.123.01.123.19 0 .2l-7.483.575-1.7 3.909c-.429 1.029.602 2.062 1.632 1.636l12.265-5.076c1.03-.426 1.03-1.884 0-2.31L6.332 5.748Z"})}),Ui=(0,oe.jsx)(te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,oe.jsx)(te.Path,{d:"M4.5 12.5v4H3V7h1.5v3.987h15V7H21v9.5h-1.5v-4h-15Z"})}),qi=(0,oe.jsxs)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,oe.jsx)(te.Path,{d:"m19 7.5h-7.628c-.3089-.87389-1.1423-1.5-2.122-1.5-.97966 0-1.81309.62611-2.12197 1.5h-2.12803v1.5h2.12803c.30888.87389 1.14231 1.5 2.12197 1.5.9797 0 1.8131-.62611 2.122-1.5h7.628z"}),(0,oe.jsx)(te.Path,{d:"m19 15h-2.128c-.3089-.8739-1.1423-1.5-2.122-1.5s-1.8131.6261-2.122 1.5h-7.628v1.5h7.628c.3089.8739 1.1423 1.5 2.122 1.5s1.8131-.6261 2.122-1.5h2.128z"})]}),Wi=(0,oe.jsx)(te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,oe.jsx)(te.Path,{d:"M12 8c-2.2 0-4 1.8-4 4s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4zm0 6.5c-1.4 0-2.5-1.1-2.5-2.5s1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5zM12.8 3h-1.5v3h1.5V3zm-1.6 18h1.5v-3h-1.5v3zm6.8-9.8v1.5h3v-1.5h-3zm-12 0H3v1.5h3v-1.5zm9.7 5.6 2.1 2.1 1.1-1.1-2.1-2.1-1.1 1.1zM8.3 7.2 6.2 5.1 5.1 6.2l2.1 2.1 1.1-1.1zM5.1 17.8l1.1 1.1 2.1-2.1-1.1-1.1-2.1 2.1zM18.9 6.2l-1.1-1.1-2.1 2.1 1.1 1.1 2.1-2.1z"})}),Ji=(0,oe.jsx)(te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,oe.jsx)(te.Path,{d:"M9 11.8l6.1-4.5c.1.4.4.7.9.7h2c.6 0 1-.4 1-1V5c0-.6-.4-1-1-1h-2c-.6 0-1 .4-1 1v.4l-6.4 4.8c-.2-.1-.4-.2-.6-.2H6c-.6 0-1 .4-1 1v2c0 .6.4 1 1 1h2c.2 0 .4-.1.6-.2l6.4 4.8v.4c0 .6.4 1 1 1h2c.6 0 1-.4 1-1v-2c0-.6-.4-1-1-1h-2c-.5 0-.8.3-.9.7L9 12.2v-.4z"})}),Yi=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M12 3.176l6.75 3.068v4.574c0 3.9-2.504 7.59-6.035 8.755a2.283 2.283 0 01-1.43 0c-3.53-1.164-6.035-4.856-6.035-8.755V6.244L12 3.176zM6.75 7.21v3.608c0 3.313 2.145 6.388 5.005 7.33.159.053.331.053.49 0 2.86-.942 5.005-4.017 5.005-7.33V7.21L12 4.824 6.75 7.21z",fillRule:"evenodd",clipRule:"evenodd"})}),Ki=(0,oe.jsx)(te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,oe.jsx)(te.Path,{d:"M16 4.2v1.5h2.5v12.5H16v1.5h4V4.2h-4zM4.2 19.8h4v-1.5H5.8V5.8h2.5V4.2h-4l-.1 15.6zm5.1-3.1l1.4.6 4-10-1.4-.6-4 10z"})}),Xi=(0,oe.jsx)(te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/SVG",children:(0,oe.jsx)(te.Path,{d:"M17.192 6.75L15.47 5.03l1.06-1.06 3.537 3.53-3.537 3.53-1.06-1.06 1.723-1.72h-3.19c-.602 0-.993.202-1.28.498-.309.319-.538.792-.695 1.383-.13.488-.222 1.023-.296 1.508-.034.664-.116 1.413-.303 2.117-.193.721-.513 1.467-1.068 2.04-.575.594-1.359.954-2.357.954H4v-1.5h4.003c.601 0 .993-.202 1.28-.498.308-.319.538-.792.695-1.383.149-.557.216-1.093.288-1.662l.039-.31a9.653 9.653 0 0 1 .272-1.653c.193-.722.513-1.467 1.067-2.04.576-.594 1.36-.954 2.358-.954h3.19zM8.004 6.75c.8 0 1.46.23 1.988.628a6.24 6.24 0 0 0-.684 1.396 1.725 1.725 0 0 0-.024-.026c-.287-.296-.679-.498-1.28-.498H4v-1.5h4.003zM12.699 14.726c-.161.459-.38.94-.684 1.396.527.397 1.188.628 1.988.628h3.19l-1.722 1.72 1.06 1.06L20.067 16l-3.537-3.53-1.06 1.06 1.723 1.72h-3.19c-.602 0-.993-.202-1.28-.498a1.96 1.96 0 0 1-.024-.026z"})}),Qi=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M12 3c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 1.5c4.1 0 7.5 3.4 7.5 7.5v.1c-1.4-.8-3.3-1.7-3.4-1.8-.2-.1-.5-.1-.8.1l-2.9 2.1L9 11.3c-.2-.1-.4 0-.6.1l-3.7 2.2c-.1-.5-.2-1-.2-1.5 0-4.2 3.4-7.6 7.5-7.6zm0 15c-3.1 0-5.7-1.9-6.9-4.5l3.7-2.2 3.5 1.2c.2.1.5 0 .7-.1l2.9-2.1c.8.4 2.5 1.2 3.5 1.9-.9 3.3-3.9 5.8-7.4 5.8z"})}),es=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M17.5 4v5a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2V4H8v5a.5.5 0 0 0 .5.5h7A.5.5 0 0 0 16 9V4h1.5Zm0 16v-5a2 2 0 0 0-2-2h-7a2 2 0 0 0-2 2v5H8v-5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v5h1.5Z"})}),ts=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M9.518 8.783a.25.25 0 00.188-.137l2.069-4.192a.25.25 0 01.448 0l2.07 4.192a.25.25 0 00.187.137l4.626.672a.25.25 0 01.139.427l-3.347 3.262a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.363.264l-4.137-2.176a.25.25 0 00-.233 0l-4.138 2.175a.25.25 0 01-.362-.263l.79-4.607a.25.25 0 00-.072-.222L4.753 9.882a.25.25 0 01.14-.427l4.625-.672zM12 14.533c.28 0 .559.067.814.2l1.895.997-.362-2.11a1.75 1.75 0 01.504-1.55l1.533-1.495-2.12-.308a1.75 1.75 0 01-1.317-.957L12 7.39v7.143z"})}),os=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{fillRule:"evenodd",d:"M19.75 11H21V8.667L19.875 4H4.125L3 8.667V11h1.25v8.75h15.5V11zm-1.5 0H5.75v7.25H10V13h4v5.25h4.25V11zm-5.5-5.5h2.067l.486 3.24.028.76H12.75v-4zm-3.567 0h2.067v4H8.669l.028-.76.486-3.24zm7.615 3.1l-.464-3.1h2.36l.806 3.345V9.5h-2.668l-.034-.9zM7.666 5.5h-2.36L4.5 8.845V9.5h2.668l.034-.9.464-3.1z",clipRule:"evenodd"})}),rs=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M5 4h14v11H5V4Zm11 16H8v-1.5h8V20Z"})}),ns=(0,oe.jsx)(te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,oe.jsx)(te.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M20 12a8 8 0 1 1-16 0 8 8 0 0 1 16 0Zm-1.5 0a6.5 6.5 0 0 1-6.5 6.5v-13a6.5 6.5 0 0 1 6.5 6.5Z"})}),as=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M3 6.75C3 5.784 3.784 5 4.75 5H15V7.313l.05.027 5.056 2.73.394.212v3.468a1.75 1.75 0 01-1.75 1.75h-.012a2.5 2.5 0 11-4.975 0H9.737a2.5 2.5 0 11-4.975 0H3V6.75zM13.5 14V6.5H4.75a.25.25 0 00-.25.25V14h.965a2.493 2.493 0 011.785-.75c.7 0 1.332.287 1.785.75H13.5zm4.535 0h.715a.25.25 0 00.25-.25v-2.573l-4-2.16v4.568a2.487 2.487 0 011.25-.335c.7 0 1.332.287 1.785.75zM6.282 15.5a1.002 1.002 0 00.968 1.25 1 1 0 10-.968-1.25zm9 0a1 1 0 101.937.498 1 1 0 00-1.938-.498z"})}),cs=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M16 5.5H8V4h8v1.5ZM16 20H8v-1.5h8V20ZM5 9h14v6H5V9Z"})}),is=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M16.9 18.3l.8-1.2c.4-.6.7-1.2.9-1.6.2-.4.3-.8.3-1.2 0-.3-.1-.7-.2-1-.1-.3-.4-.5-.6-.7-.3-.2-.6-.3-1-.3s-.8.1-1.1.2c-.3.1-.7.3-1 .6l.2 1.3c.3-.3.5-.5.8-.6s.6-.2.9-.2c.3 0 .5.1.7.2.2.2.2.4.2.7 0 .3-.1.5-.2.8-.1.3-.4.7-.8 1.3L15 19.4h4.3v-1.2h-2.4zM14.1 7.2h-2L9.5 11 6.9 7.2h-2l3.6 5.3L4.7 18h2l2.7-4 2.7 4h2l-3.8-5.5 3.8-5.3z"})}),ss=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M16.9 10.3l.8-1.3c.4-.6.7-1.2.9-1.6.2-.4.3-.8.3-1.2 0-.3-.1-.7-.2-1-.2-.2-.4-.4-.7-.6-.3-.2-.6-.3-1-.3s-.8.1-1.1.2c-.3.1-.7.3-1 .6l.1 1.3c.3-.3.5-.5.8-.6s.6-.2.9-.2c.3 0 .5.1.7.2.2.2.2.4.2.7 0 .3-.1.5-.2.8-.1.3-.4.7-.8 1.3l-1.8 2.8h4.3v-1.2h-2.2zm-2.8-3.1h-2L9.5 11 6.9 7.2h-2l3.6 5.3L4.7 18h2l2.7-4 2.7 4h2l-3.8-5.5 3.8-5.3z"})}),ls=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M5 17.7c.4.5.8.9 1.2 1.2l1.1-1.4c-.4-.3-.7-.6-1-1L5 17.7zM5 6.3l1.4 1.1c.3-.4.6-.7 1-1L6.3 5c-.5.4-.9.8-1.3 1.3zm.1 7.8l-1.7.5c.2.6.4 1.1.7 1.6l1.5-.8c-.2-.4-.4-.8-.5-1.3zM4.8 12v-.7L3 11.1v1.8l1.7-.2c.1-.2.1-.5.1-.7zm3 7.9c.5.3 1.1.5 1.6.7l.5-1.7c-.5-.1-.9-.3-1.3-.5l-.8 1.5zM19 6.3c-.4-.5-.8-.9-1.2-1.2l-1.1 1.4c.4.3.7.6 1 1L19 6.3zm-.1 3.6l1.7-.5c-.2-.6-.4-1.1-.7-1.6l-1.5.8c.2.4.4.8.5 1.3zM5.6 8.6l-1.5-.8c-.3.5-.5 1-.7 1.6l1.7.5c.1-.5.3-.9.5-1.3zm2.2-4.5l.8 1.5c.4-.2.8-.4 1.3-.5l-.5-1.7c-.6.2-1.1.4-1.6.7zm8.8 13.5l1.1 1.4c.5-.4.9-.8 1.2-1.2l-1.4-1.1c-.2.3-.5.6-.9.9zm1.8-2.2l1.5.8c.3-.5.5-1.1.7-1.6l-1.7-.5c-.1.5-.3.9-.5 1.3zm2.6-4.3l-1.7.2v1.4l1.7.2V12v-.9zM11.1 3l.2 1.7h1.4l.2-1.7h-1.8zm3 2.1c.5.1.9.3 1.3.5l.8-1.5c-.5-.3-1.1-.5-1.6-.7l-.5 1.7zM12 19.2h-.7l-.2 1.8h1.8l-.2-1.7c-.2-.1-.5-.1-.7-.1zm2.1-.3l.5 1.7c.6-.2 1.1-.4 1.6-.7l-.8-1.5c-.4.2-.8.4-1.3.5z"})}),us=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24",children:(0,oe.jsx)(te.Path,{d:"M14.08 12.864V9.216h3.648V7.424H14.08V3.776h-1.728v3.648H8.64v1.792h3.712v3.648zM0 17.92V0h20.48v17.92H0zM6.4 1.28H1.28v3.84H6.4V1.28zm0 5.12H1.28v3.84H6.4V6.4zm0 5.12H1.28v3.84H6.4v-3.84zM19.2 1.28H7.68v14.08H19.2V1.28z"})}),ds=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24",children:(0,oe.jsx)(te.Path,{d:"M6.4 3.776v3.648H2.752v1.792H6.4v3.648h1.728V9.216h3.712V7.424H8.128V3.776zM0 17.92V0h20.48v17.92H0zM12.8 1.28H1.28v14.08H12.8V1.28zm6.4 0h-5.12v3.84h5.12V1.28zm0 5.12h-5.12v3.84h5.12V6.4zm0 5.12h-5.12v3.84h5.12v-3.84z"})}),ms=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24",children:(0,oe.jsx)(te.Path,{d:"M6.4 9.98L7.68 8.7v-.256L6.4 7.164V9.98zm6.4-1.532l1.28-1.28V9.92L12.8 8.64v-.192zm7.68 9.472V0H0v17.92h20.48zm-1.28-2.56h-5.12v-1.024l-.256.256-1.024-1.024v1.792H7.68v-1.792l-1.024 1.024-.256-.256v1.024H1.28V1.28H6.4v2.368l.704-.704.576.576V1.216h5.12V3.52l.96-.96.32.32V1.216h5.12V15.36zm-5.76-2.112l-3.136-3.136-3.264 3.264-1.536-1.536 3.264-3.264L5.632 5.44l1.536-1.536 3.136 3.136 3.2-3.2 1.536 1.536-3.2 3.2 3.136 3.136-1.536 1.536z"})}),ps=(0,oe.jsxs)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,oe.jsx)(te.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M20 9.484h-8.889v-1.5H20v1.5Zm0 7h-4.889v-1.5H20v1.5Zm-14 .032a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm0 1a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"}),(0,oe.jsx)(te.Path,{d:"M13 15.516a2 2 0 1 1-4 0 2 2 0 0 1 4 0ZM8 8.484a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z"})]}),hs=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24",children:(0,oe.jsx)(te.Path,{d:"M13.824 10.176h-2.88v-2.88H9.536v2.88h-2.88v1.344h2.88v2.88h1.408v-2.88h2.88zM0 17.92V0h20.48v17.92H0zM6.4 1.28H1.28v3.84H6.4V1.28zm6.4 0H7.68v3.84h5.12V1.28zm6.4 0h-5.12v3.84h5.12V1.28zm0 5.056H1.28v9.024H19.2V6.336z"})}),_s=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24",children:(0,oe.jsx)(te.Path,{d:"M6.656 6.464h2.88v2.88h1.408v-2.88h2.88V5.12h-2.88V2.24H9.536v2.88h-2.88zM0 17.92V0h20.48v17.92H0zm7.68-2.56h5.12v-3.84H7.68v3.84zm-6.4 0H6.4v-3.84H1.28v3.84zM19.2 1.28H1.28v9.024H19.2V1.28zm0 10.24h-5.12v3.84h5.12v-3.84zM6.656 6.464h2.88v2.88h1.408v-2.88h2.88V5.12h-2.88V2.24H9.536v2.88h-2.88zM0 17.92V0h20.48v17.92H0zm7.68-2.56h5.12v-3.84H7.68v3.84zm-6.4 0H6.4v-3.84H1.28v3.84zM19.2 1.28H1.28v9.024H19.2V1.28zm0 10.24h-5.12v3.84h5.12v-3.84z"})}),vs=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24",children:(0,oe.jsx)(te.Path,{d:"M17.728 11.456L14.592 8.32l3.2-3.2-1.536-1.536-3.2 3.2L9.92 3.648 8.384 5.12l3.2 3.2-3.264 3.264 1.536 1.536 3.264-3.264 3.136 3.136 1.472-1.536zM0 17.92V0h20.48v17.92H0zm19.2-6.4h-.448l-1.28-1.28H19.2V6.4h-1.792l1.28-1.28h.512V1.28H1.28v3.84h6.208l1.28 1.28H1.28v3.84h7.424l-1.28 1.28H1.28v3.84H19.2v-3.84z"})}),ws=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M4 6v11.5h16V6H4zm1.5 1.5h6V11h-6V7.5zm0 8.5v-3.5h6V16h-6zm13 0H13v-3.5h5.5V16zM13 11V7.5h5.5V11H13z"})}),gs=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M4.75 4a.75.75 0 0 0-.75.75v7.826c0 .2.08.39.22.53l6.72 6.716a2.313 2.313 0 0 0 3.276-.001l5.61-5.611-.531-.53.532.528a2.315 2.315 0 0 0 0-3.264L13.104 4.22a.75.75 0 0 0-.53-.22H4.75ZM19 12.576a.815.815 0 0 1-.236.574l-5.61 5.611a.814.814 0 0 1-1.153 0L5.5 12.264V5.5h6.763l6.5 6.502a.816.816 0 0 1 .237.574ZM8.75 9.75a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"})}),fs=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-17.6 1L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"})}),Es=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M6.08 10.103h2.914L9.657 12h1.417L8.23 4H6.846L4 12h1.417l.663-1.897Zm1.463-4.137.994 2.857h-2l1.006-2.857ZM11 16H4v-1.5h7V16Zm1 0h8v-1.5h-8V16Zm-4 4H4v-1.5h4V20Zm7-1.5V20H9v-1.5h6Z"})}),bs=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{fillRule:"evenodd",d:"M18 5.5h-8v8h8.5V6a.5.5 0 00-.5-.5zm-9.5 8h-3V6a.5.5 0 01.5-.5h2.5v8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})}),Cs=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M18.5 10.5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})}),xs=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})}),ys=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z"})}),As=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M8.2 5.3h8V3.8h-8v1.5zm0 14.5h8v-1.5h-8v1.5zm3.5-6.5h1v-1h-1v1zm1-6.5h-1v.5h1v-.5zm-1 4.5h1v-1h-1v1zm0-2h1v-1h-1v1zm0 7.5h1v-.5h-1v.5zm1-2.5h-1v1h1v-1zm-8.5 1.5h1.5v-8H4.2v8zm14.5-8v8h1.5v-8h-1.5zm-5 4.5v-1h-1v1h1zm-6.5 0h.5v-1h-.5v1zm3.5-1v1h1v-1h-1zm6 1h.5v-1h-.5v1zm-8-1v1h1v-1h-1zm6 0v1h1v-1h-1z"})}),ks=(0,oe.jsxs)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,oe.jsx)(te.Path,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",style:{opacity:.25}}),(0,oe.jsx)(te.Path,{d:"m16.5 19.5h-9v-1.5h9z"})]}),Ss=(0,oe.jsxs)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,oe.jsx)(te.Path,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",style:{opacity:.25}}),(0,oe.jsx)(te.Path,{d:"m4.5 7.5v9h1.5v-9z"}),(0,oe.jsx)(te.Path,{d:"m18 7.5v9h1.5v-9z"})]}),Ps=(0,oe.jsxs)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,oe.jsx)(te.Path,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",style:{opacity:.25}}),(0,oe.jsx)(te.Path,{d:"m4.5 16.5v-9h1.5v9z"})]}),Vs=(0,oe.jsxs)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,oe.jsx)(te.Path,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",style:{opacity:.25}}),(0,oe.jsx)(te.Path,{d:"m18 16.5v-9h1.5v9z"})]}),Bs=(0,oe.jsxs)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,oe.jsx)(te.Path,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",style:{opacity:.25}}),(0,oe.jsx)(te.Path,{d:"m16.5 6h-9v-1.5h9z"})]}),Ms=(0,oe.jsxs)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,oe.jsx)(te.Path,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",style:{opacity:.25}}),(0,oe.jsx)(te.Path,{d:"m7.5 6h9v-1.5h-9z"}),(0,oe.jsx)(te.Path,{d:"m7.5 19.5h9v-1.5h-9z"})]}),Fs=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M12.9 6h-2l-4 11h1.9l1.1-3h4.2l1.1 3h1.9L12.9 6zm-2.5 6.5l1.5-4.9 1.7 4.9h-3.2z"})}),Ls=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M8.2 14.4h3.9L13 17h1.7L11 6.5H9.3L5.6 17h1.7l.9-2.6zm2-5.5 1.4 4H8.8l1.4-4zm7.4 7.5-1.3.8.8 1.4H5.5V20h14.3l-2.2-3.6z"})}),Ns=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M7 5.6v1.7l2.6.9v3.9L7 13v1.7L17.5 11V9.3L7 5.6zm4.2 6V8.8l4 1.4-4 1.4zm-5.7 5.6V5.5H4v14.3l3.6-2.2-.8-1.3-1.3.9z"})}),Ts=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M17 4H7c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H7c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v12zm-7.5-.5h4V16h-4v1.5z"})}),Ds=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"m4 5.5h2v6.5h1.5v-6.5h2v-1.5h-5.5zm16 10.5h-16v-1.5h16zm-7 4h-9v-1.5h9z"})}),Hs=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M12 15.8c-3.7 0-6.8-3-6.8-6.8s3-6.8 6.8-6.8c3.7 0 6.8 3 6.8 6.8s-3.1 6.8-6.8 6.8zm0-12C9.1 3.8 6.8 6.1 6.8 9s2.4 5.2 5.2 5.2c2.9 0 5.2-2.4 5.2-5.2S14.9 3.8 12 3.8zM8 17.5h8V19H8zM10 20.5h4V22h-4z"})}),zs=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M14.103 7.128l2.26-2.26a4 4 0 00-5.207 4.804L5.828 15a2 2 0 102.828 2.828l5.329-5.328a4 4 0 004.804-5.208l-2.261 2.26-1.912-.512-.513-1.912zm-7.214 9.64a.5.5 0 11.707-.707.5.5 0 01-.707.707z"})}),js=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M4.195 8.245a.75.75 0 011.06-.05l5.004 4.55 4.025-3.521L19 13.939V10.75h1.5v5.75h-5.75V15h3.19l-3.724-3.723-3.975 3.478-5.995-5.45a.75.75 0 01-.051-1.06z"})}),Is=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M3.445 16.505a.75.75 0 001.06.05l5.005-4.55 4.024 3.521 4.716-4.715V14h1.5V8.25H14v1.5h3.19l-3.724 3.723L9.49 9.995l-5.995 5.45a.75.75 0 00-.05 1.06z"})}),Rs=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M6.9 7L3 17.8h1.7l1-2.8h4.1l1 2.8h1.7L8.6 7H6.9zm-.7 6.6l1.5-4.3 1.5 4.3h-3zM21.6 17c-.1.1-.2.2-.3.2-.1.1-.2.1-.4.1s-.3-.1-.4-.2c-.1-.1-.1-.3-.1-.6V12c0-.5 0-1-.1-1.4-.1-.4-.3-.7-.5-1-.2-.2-.5-.4-.9-.5-.4 0-.8-.1-1.3-.1s-1 .1-1.4.2c-.4.1-.7.3-1 .4-.2.2-.4.3-.6.5-.1.2-.2.4-.2.7 0 .3.1.5.2.8.2.2.4.3.8.3.3 0 .6-.1.8-.3.2-.2.3-.4.3-.7 0-.3-.1-.5-.2-.7-.2-.2-.4-.3-.6-.4.2-.2.4-.3.7-.4.3-.1.6-.1.8-.1.3 0 .6 0 .8.1.2.1.4.3.5.5.1.2.2.5.2.9v1.1c0 .3-.1.5-.3.6-.2.2-.5.3-.9.4-.3.1-.7.3-1.1.4-.4.1-.8.3-1.1.5-.3.2-.6.4-.8.7-.2.3-.3.7-.3 1.2 0 .6.2 1.1.5 1.4.3.4.9.5 1.6.5.5 0 1-.1 1.4-.3.4-.2.8-.6 1.1-1.1 0 .4.1.7.3 1 .2.3.6.4 1.2.4.4 0 .7-.1.9-.2.2-.1.5-.3.7-.4h-.3zm-3-.9c-.2.4-.5.7-.8.8-.3.2-.6.2-.8.2-.4 0-.6-.1-.9-.3-.2-.2-.3-.6-.3-1.1 0-.5.1-.9.3-1.2s.5-.5.8-.7c.3-.2.7-.3 1-.5.3-.1.6-.3.7-.6v3.4z"})});var Os=o(51388);const Gs=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M18 4h-7c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 9c0 .3-.2.5-.5.5h-7c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v7zm-5 5c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h1V9H6c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-1h-1.5v1z"})}),$s=(0,oe.jsx)(te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,oe.jsx)(te.Path,{d:"M17 10h-1.2V7c0-2.1-1.7-3.8-3.8-3.8-2.1 0-3.8 1.7-3.8 3.8h1.5c0-1.2 1-2.2 2.2-2.2s2.2 1 2.2 2.2v3H7c-.6 0-1 .4-1 1v8c0 .6.4 1 1 1h10c.6 0 1-.4 1-1v-8c0-.6-.4-1-1-1z"})}),Zs=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"m11.3 17.2-5-5c-.1-.1-.1-.3 0-.4l2.3-2.3-1.1-1-2.3 2.3c-.7.7-.7 1.8 0 2.5l5 5H7.5v1.5h5.3v-5.2h-1.5v2.6zm7.5-6.4-5-5h2.7V4.2h-5.2v5.2h1.5V6.8l5 5c.1.1.1.3 0 .4l-2.3 2.3 1.1 1.1 2.3-2.3c.6-.7.6-1.9-.1-2.5z"})}),Us=(0,oe.jsx)(te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,oe.jsx)(te.Path,{d:"M17.8 2l-.9.3c-.1 0-3.6 1-5.2 2.1C10 5.5 9.3 6.5 8.9 7.1c-.6.9-1.7 4.7-1.7 6.3l-.9 2.3c-.2.4 0 .8.4 1 .1 0 .2.1.3.1.3 0 .6-.2.7-.5l.6-1.5c.3 0 .7-.1 1.2-.2.7-.1 1.4-.3 2.2-.5.8-.2 1.6-.5 2.4-.8.7-.3 1.4-.7 1.9-1.2s.8-1.2 1-1.9c.2-.7.3-1.6.4-2.4.1-.8.1-1.7.2-2.5 0-.8.1-1.5.2-2.1V2zm-1.9 5.6c-.1.8-.2 1.5-.3 2.1-.2.6-.4 1-.6 1.3-.3.3-.8.6-1.4.9-.7.3-1.4.5-2.2.8-.6.2-1.3.3-1.8.4L15 7.5c.3-.3.6-.7 1-1.1 0 .4 0 .8-.1 1.2zM6 20h8v-1.5H6V20z"})}),qs=(0,oe.jsx)(te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,oe.jsx)(te.Path,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h13.4c.4 0 .8.4.8.8v13.4zM10 15l5-3-5-3v6z"})}),Ws=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24",children:(0,oe.jsx)(te.Path,{d:"M10 2c4.42 0 8 3.58 8 8s-3.58 8-8 8-8-3.58-8-8 3.58-8 8-8zm1.13 9.38l.35-6.46H8.52l.35 6.46h2.26zm-.09 3.36c.24-.23.37-.55.37-.96 0-.42-.12-.74-.36-.97s-.59-.35-1.06-.35-.82.12-1.07.35-.37.55-.37.97c0 .41.13.73.38.96.26.23.61.34 1.06.34s.8-.11 1.05-.34z"})}),Js=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.Path,{d:"M6 3H8V5H16V3H18V5C19.1046 5 20 5.89543 20 7V19C20 20.1046 19.1046 21 18 21H6C4.89543 21 4 20.1046 4 19V7C4 5.89543 4.89543 5 6 5V3ZM18 6.5H6C5.72386 6.5 5.5 6.72386 5.5 7V8H18.5V7C18.5 6.72386 18.2761 6.5 18 6.5ZM18.5 9.5H5.5V19C5.5 19.2761 5.72386 19.5 6 19.5H18C18.2761 19.5 18.5 19.2761 18.5 19V9.5ZM11 11H13V13H11V11ZM7 11V13H9V11H7ZM15 13V11H17V13H15Z"})}),Ys=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24",children:(0,oe.jsx)(te.Path,{d:"M20 10c0-5.51-4.49-10-10-10C4.48 0 0 4.49 0 10c0 5.52 4.48 10 10 10 5.51 0 10-4.48 10-10zM7.78 15.37L4.37 6.22c.55-.02 1.17-.08 1.17-.08.5-.06.44-1.13-.06-1.11 0 0-1.45.11-2.37.11-.18 0-.37 0-.58-.01C4.12 2.69 6.87 1.11 10 1.11c2.33 0 4.45.87 6.05 2.34-.68-.11-1.65.39-1.65 1.58 0 .74.45 1.36.9 2.1.35.61.55 1.36.55 2.46 0 1.49-1.4 5-1.4 5l-3.03-8.37c.54-.02.82-.17.82-.17.5-.05.44-1.25-.06-1.22 0 0-1.44.12-2.38.12-.87 0-2.33-.12-2.33-.12-.5-.03-.56 1.2-.06 1.22l.92.08 1.26 3.41zM17.41 10c.24-.64.74-1.87.43-4.25.7 1.29 1.05 2.71 1.05 4.25 0 3.29-1.73 6.24-4.4 7.78.97-2.59 1.94-5.2 2.92-7.78zM6.1 18.09C3.12 16.65 1.11 13.53 1.11 10c0-1.3.23-2.48.72-3.59C3.25 10.3 4.67 14.2 6.1 18.09zm4.03-6.63l2.58 6.98c-.86.29-1.76.45-2.71.45-.79 0-1.57-.11-2.29-.33.81-2.38 1.62-4.74 2.42-7.1z"})});var Ks=o(68752),Xs=o(88437);function Qs({width:e=24,height:t=24,className:o,...r}){return(0,u.createElement)("svg",{...r,width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",className:(0,ce.A)(o,"woocommerce-hidden-icon")},(0,u.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.7226 6.2125C13.1641 6.0766 12.5883 6 11.9999 6C8.10055 6 4.75407 9.36447 3.31899 11.0546C2.8507 11.6061 2.8507 12.3939 3.31899 12.9454C4.17896 13.9582 5.72533 15.5723 7.66574 16.7033L8.41572 15.4043C8.13761 15.242 7.86389 15.0655 7.59553 14.8776C6.25019 13.9359 5.15775 12.7905 4.48406 12C5.15775 11.2095 6.25019 10.0641 7.59553 9.12235C8.96667 8.16257 10.4775 7.5 11.9999 7.5C12.3118 7.5 12.6231 7.5278 12.9329 7.58027L13.7226 6.2125ZM12.3504 8.58923C12.2352 8.57753 12.1182 8.57153 11.9999 8.57153C10.1063 8.57153 8.57132 10.1066 8.57132 12.0001C8.57132 12.7505 8.81237 13.4445 9.22126 14.0091L10.1233 12.4467C10.0893 12.3034 10.0713 12.1538 10.0713 12.0001C10.0713 11.1266 10.652 10.3888 11.4484 10.1515L12.3504 8.58923ZM12.8092 10.2491L13.5611 8.94679C14.6697 9.51479 15.4285 10.6688 15.4285 12.0001C15.4285 13.8937 13.8934 15.4287 11.9999 15.4287C11.3128 15.4287 10.6729 15.2266 10.1364 14.8785L10.8883 13.5763C11.2025 13.7983 11.5859 13.9287 11.9999 13.9287C13.065 13.9287 13.9285 13.0652 13.9285 12.0001C13.9285 11.224 13.4701 10.555 12.8092 10.2491ZM9.51376 15.957C10.3246 16.2986 11.1605 16.5 11.9999 16.5C13.5223 16.5 15.0331 15.8374 16.4043 14.8776C17.7496 13.9359 18.842 12.7905 19.5157 12C18.842 11.2095 17.7496 10.0641 16.4043 9.12235C15.6875 8.62066 14.9327 8.20018 14.1579 7.91308L14.917 6.59839C17.5164 7.64275 19.6204 9.80575 20.6808 11.0546C21.1491 11.6061 21.1491 12.3939 20.6808 12.9454C19.2457 14.6355 15.8992 18 11.9999 18C10.8611 18 9.76945 17.713 8.7588 17.2646L9.51376 15.957Z",fill:"currentColor"}),(0,u.createElement)("rect",{x:"16.0625",y:"4.61377",width:"1.22727",height:"16",transform:"rotate(30 16.0625 4.61377)",fill:"currentColor"}))}var el=(0,u.createElement)(S.SVG,{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,u.createElement)(S.Rect,{x:"-0.75",y:"-0.75",fill:"none",width:"9.5",height:"14.5",transform:"matrix(3.97376e-08 -1 -1 -4.80825e-08 18.5 18.5)",stroke:"#1E1E1E",strokeWidth:"1.5"}),(0,u.createElement)(S.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M13 19L13 9L11.5 9L11.5 19L13 19Z"}),(0,u.createElement)(S.Path,{d:"M16.5 6.5C16.5 7.4665 15.7165 8.25 14.75 8.25H13V6.5C13 5.5335 13.7835 4.75 14.75 4.75C15.7165 4.75 16.5 5.5335 16.5 6.5Z",stroke:"#1E1E1E",fill:"none",strokeWidth:"1.5"}),(0,u.createElement)(S.Path,{d:"M8 6.5C8 7.4665 8.7835 8.25 9.75 8.25H11.5V6.5C11.5 5.5335 10.7165 4.75 9.75 4.75C8.7835 4.75 8 5.5335 8 6.5Z",stroke:"#1E1E1E",fill:"none",strokeWidth:"1.5"})),tl=o(51259),ol=o(87853);const{name:rl,...nl}=Zr,al={example:{},edit:function({attributes:e,clientId:t,context:{selectedTab:o}}){const a=(0,d.useWooBlockProps)(e),{getProductErrorMessageAndProps:c}=(0,Xs.u)(),{productTemplates:i,productTemplate:s}=(0,J.useSelect)(e=>{const{getEditorSettings:t}=e("core/editor");return t()},[]),[m,p]=i.reduce(([e,t],o)=>(o.isSelectableByUser&&(o.layoutTemplateId?e.push(o):t.push(o)),[e,t]),[[],[]]),h=(0,l.useEntityId)("postType","product"),[_]=(0,l.useEntityProp)("postType","product","status"),{validate:v}=(0,Ks.G)(),{editEntityRecord:w,saveEditedEntityRecord:g,saveEntityRecord:f}=(0,J.useDispatch)("core"),{createSuccessNotice:E,createErrorNotice:b}=(0,J.useDispatch)("core/notices"),C=(0,J.useSelect)(e=>{const{getBlockRootClientId:o}=e("core/block-editor");return o(t)},[t]),[x,y]=(0,u.useState)(),{isSaving:A}=(0,J.useSelect)(e=>{const{isSavingEntityRecord:t}=e("core");return{isSaving:t("postType","product",h)}},[h]);if(C)return(0,u.createElement)(uo.P,{name:"section-description",slotContainerBlockName:"woocommerce/product-section"},(0,u.createElement)("div",{...a},(0,u.createElement)("p",null,(0,u.createInterpolateElement)((0,ie.__)("This is a <ProductTemplate />.","woocommerce"),{ProductTemplate:(0,u.createElement)("span",null,s?.title?.toLowerCase())})),(0,u.createElement)(S.Dropdown,{focusOnMount:!0,popoverProps:{placement:"bottom-start"},renderToggle:({isOpen:e,onToggle:t})=>(0,u.createElement)(S.Button,{"aria-expanded":e,variant:"link",onClick:F(e,t)},(0,u.createElement)("span",null,(0,ie.__)("Change product type","woocommerce"))),renderContent:({onClose:e})=>(0,u.createElement)("div",{className:"wp-block-woocommerce-product-details-section-description__dropdown components-dropdown-menu__menu"},(0,u.createElement)(S.MenuGroup,null,m.map(M(e))),p.length>0&&(0,u.createElement)(S.MenuGroup,null,(0,u.createElement)(S.Dropdown,{popoverProps:{placement:"right-start"},renderToggle:({isOpen:e,onToggle:t})=>(0,u.createElement)(S.MenuItem,{"aria-expanded":e,icon:B("chevronRight"),iconPosition:"right",onClick:t},(0,u.createElement)("span",null,(0,ie.__)("More","woocommerce"))),renderContent:()=>(0,u.createElement)("div",{className:"wp-block-woocommerce-product-details-section-description__dropdown components-dropdown-menu__menu"},(0,u.createElement)(S.MenuGroup,null,p.map(M(e))))})))}),Boolean(x)&&(0,u.createElement)(S.Modal,{title:(0,ie.__)("Change product type?","woocommerce"),className:"wp-block-woocommerce-product-details-section-description__modal",onRequestClose:()=>{y(void 0)}},(0,u.createElement)("p",null,(0,u.createElement)("b",null,(0,ie.__)("This product type isn’t supported by the updated product editing experience yet.","woocommerce"))),(0,u.createElement)("p",null,(0,ie.__)("You’ll be taken to the classic editing screen that isn’t optimized for commerce but offers advanced functionality and supports all extensions.","woocommerce")),(0,u.createElement)("div",{className:"wp-block-woocommerce-product-details-section-description__modal-actions"},(0,u.createElement)(S.Button,{variant:"secondary","aria-disabled":A,onClick:()=>{A||y(void 0)}},(0,ie.__)("Cancel","woocommerce")),(0,u.createElement)(S.Button,{variant:"primary",isBusy:A,"aria-disabled":A,onClick:async function(){try{if(A)return;const{id:e,productData:t}=x;await v(t);const o=await g("postType","product",h,{throwOnError:!0})??{id:h},r=t?.meta_data??[];await f("postType","product",{...o,...t,meta_data:[...r,{key:"_product_template_id",value:e}]},{throwOnError:!0}),E((0,ie.__)("Product type changed.","woocommerce")),(0,k.recordEvent)("product_template_changed",{source:V.bG,template:e}),window.location.href=(0,At.getNewPath)({},`/product/${h}`)}catch(e){const{message:t,errorProps:r}=await c((0,ol.$)(e,_),o);b(t,r)}}},(0,ie.__)("Change","woocommerce"))))));function P(e,t){return async function(){try{if((0,k.recordEvent)("product_template_selector_selected",{source:V.bG,selected_template:e.id,unsupported_template:!e.layoutTemplateId}),!e.layoutTemplateId)return y(e),void t();await v(e.productData);const o=e.productData.meta_data??[];await w("postType","product",h,{...e.productData,meta_data:[...o,{key:"_product_template_id",value:e.id}]}),await g("postType","product",h,{throwOnError:!0}),E((0,ie.__)("Product type changed.","woocommerce")),(0,k.recordEvent)("product_template_changed",{source:V.bG,template:e.id})}catch(e){const{message:t,errorProps:r}=await c((0,ol.$)(e,_),o);b(t,r)}t()}}function B(e,t){if(!e)return;const{Icon:o}=r;let a;if(/^https?:\/\//.test(e))a=(0,u.createElement)("img",{src:e,alt:t});else{if(!(e in r)&&!(e in n))return;a=r[e]||n[e]}return(0,u.createElement)(o,{icon:a,size:24})}function M(e){return function(t){const o=s?.id===t.id;return(0,u.createElement)(S.MenuItem,{key:t.id,info:t.description??void 0,isSelected:o,icon:o?B("check"):B(t.icon,t.title),iconPosition:"left",role:"menuitemradio",onClick:P(t,e),className:(0,ce.A)({"components-menu-item__button--selected":o})},t.title)}}function F(e,t){return function(){t(),e||(0,k.recordEvent)("product_template_selector_open",{source:V.bG,supported_templates:m.map(e=>e.id),unsupported_template:p.map(e=>e.id)})}}}};function cl(){return(0,p.N)({name:rl,metadata:nl,settings:al})}const il=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"woocommerce/product-list-field","title":"Product list","category":"widgets","description":"The product list.","keywords":["products"],"textdomain":"default","attributes":{"property":{"type":"string","role":"content"}},"supports":{"align":false,"html":false,"multiple":true,"reusable":false,"inserter":false,"lock":false,"__experimentalToolbar":false},"editorStyle":"file:./editor.css","usesContext":["postType"]}');var sl=o(94111),ll=o(59771);function ul({products:e,onSubmit:t,onClose:o}){const[r,n]=(0,u.useState)([...e]),{container:a,draggable:c,handler:i}=function({onSort:e}){const t=(0,u.useRef)(-1),o=(0,u.useRef)(-1),r=(0,u.useRef)([]);function n(e){const t=e.target;t.closest("[data-draggable=parent] [data-draggable=target]")?.removeAttribute("draggable")}return{container:{"data-draggable":"parent",className:"woocommerce-draggable__container"},draggable:{"data-draggable":"target",onDragStart:function(e){const o=e.target;if("target"!==o.dataset.draggable)return void e.preventDefault();e.dataTransfer.effectAllowed="move",e.dataTransfer.dropEffect="move",o.classList.add("is-dragging");const n=o.closest("[data-draggable=parent]");r.current=Array.from(n?.querySelectorAll("[data-draggable=target]")?.values()??[]),t.current=r.current.indexOf(o)},onDragEnter:function(e){const n=e.target,a=e.relatedTarget;if("target"!==n.dataset.draggable||n.contains(a))return void e.preventDefault();const{draggable:c,index:i}=function(e,t){const o=e.findIndex(e=>e===t||e.contains(t));return{draggable:o>=0?e[o]:void 0,index:o}}(r.current,n);o.current=i,t.current!==o.current&&(t.current<o.current?c?.classList.add("is-dragging-after"):c?.classList.add("is-dragging-before"))},onDragOver:function(e){return e.preventDefault(),!1},onDragLeave:function(e){const t=e.target,o=e.relatedTarget;"target"!==t.dataset.draggable||t.contains(o)?e.preventDefault():(t.classList.remove("is-dragging-before"),t.classList.remove("is-dragging-after"))},onDragEnd:function(e){const t=e.target;"target"===t.dataset.draggable?t.classList.remove("is-dragging"):e.preventDefault()},onDrop:function(r){r.preventDefault();const n=r.target,a="target"===n.dataset.draggable?n:n.closest("[data-draggable=parent] [data-draggable=target]");if(a?.removeAttribute("draggable"),a?.classList.remove("is-dragging-before"),a?.classList.remove("is-dragging-after"),-1!==t.current&&-1!==o.current&&t.current!==o.current){const r=t.current,n=o.current;e(e=>function(e,t,o){const r=e[t],n=e.reduce((e,n,a)=>(a!==t&&(a===o&&e.push(r),e.push(n)),e),[]);return o>=e.length&&n.push(r),n}(e,r,n+Number(r<n)))}t.current=-1,o.current=-1}},handler:{"data-draggable":"handler",onMouseDown:function(e){const t=e.target;t.closest("[data-draggable=parent] [data-draggable=target]")?.setAttribute("draggable","true")},onMouseUp:n,onMouseLeave:n}}}({onSort:n});return(0,u.createElement)(S.Modal,{title:(0,ie.__)("Reorder products in this group","woocommerce"),className:"woocommerce-reorder-products-modal",onRequestClose:o},(0,u.createElement)("form",{noValidate:!0,onSubmit:function(e){e.preventDefault(),t([...r])},className:"woocommerce-add-products-modal__form"},(0,u.createElement)("fieldset",{className:"woocommerce-add-products-modal__form-group"},(0,u.createElement)("legend",{className:"woocommerce-add-products-modal__form-group-title"},(0,ie.__)("Click and drag to reorder on the product page.","woocommerce")),Boolean(r.length)&&(0,u.createElement)("ul",{...a,className:(0,ce.A)("woocommerce-add-products-modal__list",a.className)},r.map(e=>(0,u.createElement)("li",{...c,key:e.id,className:"woocommerce-add-products-modal__list-item"},(0,u.createElement)(S.Button,{...i,icon:ra,variant:"tertiary",type:"button","aria-label":(0,ie.__)("Sortable handler","woocommerce")}),(0,u.createElement)("div",{className:"woocommerce-add-products-modal__list-item-image",style:(0,ll.m)(e)}),(0,u.createElement)("div",{className:"woocommerce-add-products-modal__list-item-content"},(0,u.createElement)("div",{className:"woocommerce-add-products-modal__list-item-title"},e.name),(0,u.createElement)("div",{className:"woocommerce-add-products-modal__list-item-description"},e.sku)))))),(0,u.createElement)("div",{className:"woocommerce-add-products-modal__actions"},(0,u.createElement)(S.Button,{variant:"tertiary",type:"button",onClick:function(){o()}},(0,ie.__)("Cancel","woocommerce")),(0,u.createElement)(S.Button,{variant:"primary",type:"submit"},(0,ie.__)("Done","woocommerce")))))}var dl=o(7733);function ml({colorOne:e="#E0E0E0",colorTwo:t="#F0F0F0",size:o=68,style:r={}}){return(0,u.createElement)(S.SVG,{width:o,height:Math.round(o/(68/56)),viewBox:"0 0 68 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:r},(0,u.createElement)(S.Path,{d:"M43.0926 0.333984C41.0526 1.54732 37.5593 2.46732 34.2526 2.46732C30.946 2.46732 27.4526 1.54732 25.4126 0.333984L22.2793 10.5207H46.2126L43.106 0.333984H43.0926Z",fill:e}),(0,u.createElement)(S.Path,{d:"M43.0927 0.333984C43.0927 4.09398 40.306 8.80065 34.2527 8.80065C28.1994 8.80065 25.4127 4.08065 25.4127 0.333984C15.546 0.333984 3.81268 7.45398 0.666016 10.6006L9.73269 24.7606L14.986 23.414L15.066 55.5606H53.4394L53.5194 23.414L58.7727 24.7606L67.8394 10.6006C64.6927 7.45398 52.9594 0.333984 43.0927 0.333984Z",fill:t}))}function pl({colorOne:e="#DDDDDD",colorTwo:t="#F0F0F0",size:o=50,style:r={}}){const n=(0,_e.useInstanceId)(pl,"pants");return(0,u.createElement)(S.SVG,{width:o,height:Math.round(o/(50/72)),viewBox:"0 0 50 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:r},(0,u.createElement)(S.G,{clipPath:`url(#${n})`},(0,u.createElement)(S.Path,{d:"M44.6084 21.3845C40.788 21.6427 35.5059 20.8456 35.1404 16.333C34.8746 13.0889 34.5867 9.04771 34.3431 5.7811H42.9474L42.3273 0H8.34205L7.72192 5.7811H16.3262C16.0826 9.04771 15.8057 13.0889 15.5289 16.333C15.1635 20.8456 9.87022 21.6314 6.06086 21.3845L0.667969 72H14.0007C14.0007 72 21.7745 32.0711 22.904 26.0318C23.4909 22.9111 24.3989 22.2264 25.3291 22.2264C26.2593 22.2264 27.1673 22.9224 27.7543 26.0318C28.8948 32.0599 36.6575 72 36.6575 72H49.9903L44.5974 21.3845H44.6084Z",fill:t}),(0,u.createElement)(S.Path,{d:"M15.5383 16.3332C15.8041 13.089 16.092 9.04785 16.3356 5.78125H7.73137L6.07031 21.3846C9.89074 21.6428 15.1729 20.8458 15.5383 16.3332Z",fill:e}),(0,u.createElement)(S.Path,{d:"M35.1293 16.3332C35.4948 20.8458 40.788 21.6316 44.5974 21.3846L42.9363 5.78125H34.332C34.5757 9.04785 34.8525 13.089 35.1293 16.3332Z",fill:e})),(0,u.createElement)("defs",null,(0,u.createElement)("clipPath",{id:n},(0,u.createElement)(S.Rect,{width:"49.3334",height:"72",fill:"white",transform:"translate( 0.667969 )"}))))}function hl({colorOne:e="#E0E0E0",colorTwo:t="#F0F0F0",size:o=72,style:r={}}){return(0,u.createElement)(S.SVG,{width:o,height:Math.round(o/(72/33)),viewBox:"0 0 72 33",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:r},(0,u.createElement)(S.Path,{d:"M1.82318 26.2927C2.40837 25.6395 12.1796 15.8683 13.4588 14.6027C14.6156 13.4596 16.0853 12.9696 17.8409 12.8336C19.2426 12.7383 65.159 9.36328 65.159 9.36328L65.9075 12.9016C65.9075 12.9016 17.3782 17.7736 17.3509 17.7736C13.5132 22.8633 8.01523 30.7156 7.49809 31.3008C6.10999 32.8658 3.71482 33.0019 2.13618 31.6274C0.598377 30.2257 0.448677 27.8306 1.83679 26.2655L1.82318 26.2927Z",fill:t}),(0,u.createElement)(S.Path,{d:"M70.4378 26.2927C69.8526 25.6395 60.0815 15.8683 58.8022 14.6027C57.6455 13.4596 56.1757 12.9696 54.4202 12.8336C53.0184 12.7383 7.10201 9.36328 7.10201 9.36328L6.35352 12.9016C6.35352 12.9016 54.8829 17.7736 54.9101 17.7736C58.7478 22.8633 64.2458 30.7156 64.7629 31.3008C66.151 32.8658 68.5462 33.0019 70.1248 31.6274C71.6626 30.2257 71.8123 27.8306 70.4242 26.2655L70.4378 26.2927Z",fill:t}),(0,u.createElement)(S.Path,{d:"M53.3189 0C46.4328 0 41.6016 2.5993 38.4715 8.70969C38.1449 8.4103 37.1379 8.01564 36.1172 8.01564C35.0965 8.01564 34.1031 8.42391 33.7629 8.70969C30.6328 2.5993 25.8017 0 18.9156 0C12.0295 0 4.49012 4.53176 0.666016 6.38257V11.9078H4.77591C5.34748 15.4461 8.61362 25.68 19.0244 25.68C28.1288 25.68 30.9322 19.2838 32.9736 15.378C33.6812 14.0172 34.5658 12.0711 36.1172 12.0711C37.6686 12.0711 38.5532 14.0172 39.2609 15.378C41.2886 19.2838 44.092 25.68 53.21 25.68C63.6208 25.68 66.8869 15.4597 67.4585 11.9078H71.5684V6.38257C67.7443 4.54537 60.3683 0 53.3189 0ZM19.0517 22.3186C12.9277 22.3186 8.83136 16.9022 8.83136 11.4723C8.83136 5.53882 14.1797 3.2117 19.1605 3.2117C24.1414 3.2117 29.8027 5.811 29.8027 11.0912C29.8027 17.1336 25.3662 22.305 19.0517 22.305V22.3186ZM53.21 22.3186C46.9091 22.3186 42.459 17.1472 42.459 11.1049C42.459 5.83822 48.1066 3.22531 53.1011 3.22531C58.0956 3.22531 63.4303 5.55243 63.4303 11.4859C63.4303 16.9159 59.3204 22.3322 53.21 22.3322V22.3186Z",fill:e}))}function _l({tip:e,isDismissible:t=!0,dismissPreferenceId:o,className:r,children:n,onDismiss:a,...c}){const[i,s]=(0,u.useState)(!1),{updateUserPreferences:l,product_advice_card_dismissed:d}=(0,So.useUserPreferences)();if(t){if(o&&d&&"yes"===d?.[o])return null;if(i)return null}return(0,u.createElement)("div",{role:"group",...c,className:(0,ce.A)(r,"woocommerce-advice-card",{"is-dismissible":t})},t&&(0,u.createElement)("div",{className:"woocommerce-advice-card__header"},(0,u.createElement)(S.Button,{className:"woocommerce-advice-card__dismiss-button",onClick:function(){o?l({product_advice_card_dismissed:{...d,[o]:"yes"}}):s(e=>!e),a&&a()},icon:Bn,label:(0,ie.__)("Dismiss","woocommerce"),isSmall:!0})),(0,u.createElement)("div",{className:"woocommerce-advice-card__body"},n),e&&e.length>0&&(0,u.createElement)("div",{className:"woocommerce-advice-card__footer"},e))}const{name:vl,...wl}=il,gl={example:{},edit:function({attributes:e,context:{postType:t}}){const{property:o}=e,r=(0,d.useWooBlockProps)(e),[n,a]=(0,u.useState)(!1),[c,i]=(0,u.useState)(!1),[s,m]=(0,u.useState)(!1),[p,h]=(0,u.useState)(!1),[_,v]=(0,l.useEntityProp)("postType",t,o),[w,g]=(0,u.useState)([]),{formatAmount:E}=(0,u.useContext)(sl.CurrencyContext);function b(e){return function(){const t=w.filter(t=>t.id!==e.id);h(!0),g(t),v(t.map(e=>e.id))}}return(0,u.useEffect)(function(){p||(_.length?(m(!1),(0,J.resolveSelect)(So.productsStore).getProducts({include:_,orderby:"include"}).then(g).finally(()=>m(!1))):g([]))},[_,p]),(0,u.createElement)("div",{...r},(0,u.createElement)(f.V,null,!s&&w.length>0&&(0,u.createElement)(S.Button,{onClick:function(){i(!0)},variant:"tertiary"},(0,ie.__)("Reorder","woocommerce")),(0,u.createElement)(S.Button,{onClick:function(){a(!0)},variant:"secondary"},(0,ie.__)("Add products","woocommerce"))),(0,u.createElement)("div",{className:"wp-block-woocommerce-product-list-field__body"},!s&&0===w.length&&(0,u.createElement)(_l,{tip:(0,ie.__)("Tip: Group together items that have a clear relationship or compliment each other well, e.g., garment bundles, camera kits, or skincare product sets.","woocommerce"),isDismissible:!1},(0,u.createElement)(ml,null),(0,u.createElement)(pl,null),(0,u.createElement)(hl,null)),!s&&w.length>0&&(0,u.createElement)("div",{className:"wp-block-woocommerce-product-list-field__table",role:"table"},(0,u.createElement)("div",{className:"wp-block-woocommerce-product-list-field__table-header"},(0,u.createElement)("div",{className:"wp-block-woocommerce-product-list-field__table-row",role:"rowheader"},(0,u.createElement)("div",{className:"wp-block-woocommerce-product-list-field__table-header-column",role:"columnheader"},(0,ie.__)("Product","woocommerce")),(0,u.createElement)("div",{className:"wp-block-woocommerce-product-list-field__table-header-column",role:"columnheader"},(0,ie.__)("Price","woocommerce")),(0,u.createElement)("div",{className:"wp-block-woocommerce-product-list-field__table-header-column",role:"columnheader"},(0,ie.__)("Stock","woocommerce")),(0,u.createElement)("div",{className:"wp-block-woocommerce-product-list-field__table-header-column",role:"columnheader"}))),(0,u.createElement)("div",{className:"wp-block-woocommerce-product-list-field__table-body",role:"rowgroup"},w.map(e=>(0,u.createElement)("div",{key:e.id,className:"wp-block-woocommerce-product-list-field__table-row",role:"row"},(0,u.createElement)("div",{className:"wp-block-woocommerce-product-list-field__table-cell",role:"cell"},(0,u.createElement)("div",{className:"wp-block-woocommerce-product-list-field__product-image",style:(0,ll.m)(e)}),(0,u.createElement)("div",{className:"wp-block-woocommerce-product-list-field__product-info"},(0,u.createElement)("div",{className:"wp-block-woocommerce-product-list-field__product-name"},(0,u.createElement)(S.Button,{variant:"link",href:(0,At.getNewPath)({},`/product/${e.id}`),target:"_blank"},e.name)),(0,u.createElement)("div",{className:"wp-block-woocommerce-product-list-field__product-sku"},e.sku))),(0,u.createElement)("div",{className:"wp-block-woocommerce-product-list-field__table-cell",role:"cell"},e.on_sale&&(0,u.createElement)("span",null,e.sale_price?E(e.sale_price):E(e.price)),e.regular_price&&(0,u.createElement)("span",{className:(0,ce.A)({"wp-block-woocommerce-product-list-field__price--on-sale":e.on_sale})},E(e.regular_price))),(0,u.createElement)("div",{className:"wp-block-woocommerce-product-list-field__table-cell",role:"cell"},(0,u.createElement)("span",{className:(0,ce.A)("woocommerce-product-variations__status-dot",(0,dl.Ac)(e))},"●"),(0,u.createElement)("span",null,(0,dl.Wj)(e))),(0,u.createElement)("div",{className:"wp-block-woocommerce-product-list-field__table-cell",role:"cell"},(0,u.createElement)(S.Button,{variant:"tertiary",icon:la.A,"aria-label":(0,ie.__)("Preview the product","woocommerce"),href:e.permalink,target:"_blank"}),(0,u.createElement)(S.Button,{type:"button",variant:"tertiary",icon:Ce.A,"aria-label":(0,ie.__)("Remove product","woocommerce"),onClick:b(e)}))))))),n&&(0,u.createElement)(ll.L,{initialValue:w,onSubmit:function(e){const t=[...w,...e];h(!0),g(t),v(t.map(e=>e.id)),a(!1)},onClose:function(){a(!1)}}),c&&(0,u.createElement)(ul,{products:w,onSubmit:function(e){g(e),v(e.map(e=>e.id)),i(!1)},onClose:function(){i(!1)}}))}};function fl(){return(0,p.N)({name:vl,metadata:wl,settings:gl})}const El=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"woocommerce/product-variation-items-field","title":"Product variations items","category":"woocommerce","description":"The product variations items.","keywords":["products","variations"],"textdomain":"default","attributes":{"description":{"type":"string","role":"content"}},"supports":{"align":false,"html":false,"multiple":true,"reusable":false,"inserter":false,"lock":false,"__experimentalToolbar":false},"usesContext":["isInSelectedTab"],"editorStyle":"file:./editor.css"}');function bl({className:e,totalCount:t,perPageOptions:o=V.Tc,defaultPerPage:r=V._R,onPageChange:n,onPerPageChange:a}){const c=(0,$.usePagination)({defaultPerPage:r,totalCount:t,onPageChange:n,onPerPageChange:a}),i=(0,ie.__)("Viewing %d-%d of %d items","woocommerce");return(0,u.createElement)("div",{className:(0,ce.A)(e,"woocommerce-product-variations-pagination")},(0,u.createElement)("div",{className:"woocommerce-product-variations-pagination__info"},(0,ie.sprintf)(i,c.start,c.end,t)),(0,u.createElement)("div",{className:"woocommerce-product-variations-pagination__current-page"},(0,u.createElement)($.PaginationPageArrowsWithPicker,{...c})),(0,u.createElement)("div",{className:"woocommerce-product-variations-pagination__page-size"},(0,u.createElement)($.PaginationPageSizePicker,{...c,total:t,perPageOptions:o,label:""})))}function Cl(){return(0,u.createElement)(S.SVG,{width:"90",height:"64",viewBox:"0 0 90 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,u.createElement)(S.Path,{d:"M89.4707 32.0026L80.0137 38.0743L83.1112 48.872L71.7948 48.2247L69.3959 59.2741L59.1941 54.3068L53.3124 64L45.001 56.2691L36.6895 64L30.8078 54.3068L20.6061 59.2741L18.2072 48.2247L6.89067 48.872L9.98819 38.0743L0.53125 32.0026L9.98819 25.9257L6.89067 15.1332L18.2072 15.7804L20.6061 4.7259L30.8078 9.69837L36.6895 0L45.001 7.73096L53.3124 0L59.1889 9.69837L69.3959 4.7259L71.7948 15.7804L83.1112 15.1332L80.0137 25.9257L89.4707 32.0026Z",fill:"#E0E0E0"}),(0,u.createElement)(S.Path,{d:"M44.9266 16.8066C41.6031 16.8066 38.9062 19.5292 38.9062 26.0632C38.9062 34.051 44.9266 40.7187 44.9266 40.7187C44.9266 40.7187 50.947 34.0459 50.947 26.0632C50.947 19.5292 48.2502 16.8066 44.9266 16.8066Z",fill:"white"}),(0,u.createElement)(S.Path,{d:"M44.9218 49.9242C46.9389 49.9242 48.5741 48.289 48.5741 46.2719C48.5741 44.2548 46.9389 42.6196 44.9218 42.6196C42.9047 42.6196 41.2695 44.2548 41.2695 46.2719C41.2695 48.289 42.9047 49.9242 44.9218 49.9242Z",fill:"white"}))}function xl(e){const t=(0,_e.useInstanceId)(S.G,"clip");return(0,u.createElement)(S.SVG,{width:"264",height:"167",...e,viewBox:"0 0 264 167",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,u.createElement)(S.G,{clipPath:`url(#${t})`},(0,u.createElement)(S.Path,{d:"M38.5556 0.164185C11.3783 0.164185 -3.89877 21.4091 1.5234 37.3916C7.43365 54.8517 25.6968 71.9169 25.6968 85.7696H51.4188C51.4188 71.908 69.6821 54.8517 75.5923 37.3916C81.0145 21.4091 65.7463 0.164185 38.5556 0.164185Z",fill:"#F0F0F0"}),(0,u.createElement)(S.Path,{d:"M50.5063 48.3114C44.2189 48.3114 40.5228 52.5755 40.5228 59.1735V59.9899C40.079 59.9899 39.6176 59.9899 39.1827 59.9944H38.3486C37.7141 59.9944 37.3325 59.9944 36.5915 59.9944V59.1779C36.5915 52.5755 32.8953 48.3114 26.6124 48.3114C21.0127 48.3114 17.8047 50.4812 17.8047 54.2616C17.8047 57.0969 20.4936 59.0137 25.7915 59.9589C29.0306 60.5357 32.1721 60.6777 35.2781 60.7087V85.7652H36.6003V60.7176C37.3413 60.722 37.7185 60.722 38.3574 60.7176C38.9919 60.7176 39.7906 60.7176 40.5316 60.7176V85.7652H41.8539V60.7132C44.9554 60.6777 48.0969 60.5401 51.3405 59.9633C56.6384 59.0182 59.3273 57.1013 59.3273 54.266C59.3273 50.4856 56.1192 48.3158 50.5196 48.3158L50.5063 48.3114ZM35.2781 59.9855C32.2032 59.95 29.106 59.8124 25.9202 59.2445C21.0172 58.3704 19.6905 56.2938 19.6905 54.1329C19.6905 50.2682 23.5996 49.0347 26.6124 49.0347C32.2342 49.0347 35.2781 53.0148 35.2781 59.169V59.981V59.9855ZM51.1985 59.2445C48.0126 59.8124 44.9155 59.9544 41.845 59.9855V59.1735C41.845 53.0148 44.8889 49.0391 50.5107 49.0391C53.528 49.0391 57.4326 50.2726 57.4326 54.1373C57.4326 56.2982 56.1015 58.3704 51.2029 59.2489L51.1985 59.2445Z",fill:"white"}),(0,u.createElement)(S.Path,{d:"M38.5585 101.872C45.5248 101.872 51.4173 96.1613 51.4173 89.834H25.6953C25.6953 96.1613 31.5923 101.872 38.5585 101.872Z",fill:"#E0E0E0"}),(0,u.createElement)(S.Path,{d:"M57.2858 89.9271H19.832V85.7695H57.2858V89.9271Z",fill:"#E0E0E0"}),(0,u.createElement)(S.Path,{d:"M69.5768 106.602H7.63895L0.4375 167L15.2974 151.328H64.2566L69.5768 106.602Z",fill:"#E0E0E0"}),(0,u.createElement)(S.Path,{d:"M119.436 122.749C113.97 115.072 110.828 111.394 104.652 111.394C97.8809 111.394 94.908 119.061 98.9724 123.853C103.445 129.125 118.993 134.627 118.993 134.627C118.993 134.627 94.0694 129.923 84.9112 129.923C79.8573 129.923 74.6836 131.96 74.6836 139.135C74.6836 146.31 79.8617 148.346 84.9112 148.346C94.0694 148.346 118.993 143.643 118.993 143.643C118.993 143.643 103.445 149.145 98.9724 154.416C94.908 159.208 97.8764 166.876 104.652 166.876C110.828 166.876 113.97 163.197 119.436 155.521C121.287 152.921 130.707 139.135 130.707 139.135C130.707 139.135 121.287 125.349 119.436 122.749Z",fill:"#E0E0E0"}),(0,u.createElement)(S.Path,{d:"M94.2838 102.671L169.715 102.671V80.4849L94.2838 80.4849V102.671Z",fill:"#F0F0F0"}),(0,u.createElement)(S.Path,{d:"M169.712 0H94.2812V75.4311H169.712V0Z",fill:"#E0E0E0"}),(0,u.createElement)(S.Path,{d:"M147.619 49.6336C147.619 44.4156 144.429 39.4194 138.168 36.0116H157.66L139.472 6.00781H124.524L106.336 36.0116H125.828C119.567 39.4194 116.377 44.4156 116.377 49.6336C116.377 55.5394 121.005 61.4985 127.106 64.6888C118.667 62.9849 117.344 69.4232 117.344 69.4232H146.661C146.661 69.4232 145.338 62.9849 136.899 64.6888C143 61.4985 147.628 55.5394 147.628 49.6336H147.619Z",fill:"white"}),(0,u.createElement)(S.Path,{d:"M147.86 80.7911H94.2812V85.2283H147.86V80.7911Z",fill:"#E0E0E0"}),(0,u.createElement)(S.Path,{d:"M169.712 89.8473H94.2812V94.2844H169.712V89.8473Z",fill:"#E0E0E0"}),(0,u.createElement)(S.Path,{d:"M136.82 98.9034H94.2812V103.341H136.82V98.9034Z",fill:"#E0E0E0"}),(0,u.createElement)(S.Path,{d:"M219.52 167C229.042 167 235.063 158.538 235.063 151.457H203.977C203.977 158.538 209.998 167 219.52 167Z",fill:"#DDDDDD"}),(0,u.createElement)(S.Path,{d:"M219.516 58.2018C185.027 58.2018 168.143 86.1557 178.522 110.613C185.541 127.141 202.225 125.264 202.225 138.505H236.826C236.826 125.264 253.514 127.141 260.529 110.613C270.903 86.1557 254.006 58.2018 219.516 58.2018Z",fill:"#F0F0F0"}),(0,u.createElement)(S.Path,{d:"M219.52 167C228.9 167 234.882 158.787 235.059 151.776C235.059 151.67 235.059 142.707 235.059 142.6H203.973C203.973 142.685 203.973 151.63 203.973 151.719C204.115 158.742 210.105 167.004 219.511 167.004L219.52 167Z",fill:"#E0E0E0"}),(0,u.createElement)(S.Path,{d:"M240.248 142.596H198.801V138.505H240.248V142.596Z",fill:"#E0E0E0"}),(0,u.createElement)(S.Path,{d:"M240.248 149.074H198.801V144.983H240.248V149.074Z",fill:"#E0E0E0"}),(0,u.createElement)(S.Path,{d:"M169.656 125.371H142.133V152.894H169.656V125.371Z",fill:"#F0F0F0"}),(0,u.createElement)(S.Path,{d:"M155.015 146.194L162.181 139.587L147.445 139.663V138.571L162.154 138.647L155.015 132.067L155.676 131.228L163.982 139.055V139.184L155.676 147.033L155.015 146.194Z",fill:"#DDDDDD"}),(0,u.createElement)(S.Path,{d:"M22.0977 126.533L27.44 141.921L53.5835 112.729",stroke:"white",strokeMiterlimit:"10"}),(0,u.createElement)(S.Path,{d:"M232.227 110.138C232.227 102.307 227.559 97.4392 220.042 97.4126C220.042 97.4126 220.025 97.4126 220.016 97.4126C220.007 97.4126 219.998 97.4126 219.989 97.4126C212.473 97.4392 207.805 102.928 207.805 110.138C207.805 117.349 212.22 120.774 218.516 125.287C214.704 128.858 212.663 134.516 212.663 138.505H215.867C215.867 134.809 216.572 129.56 220.016 126.462C223.463 129.56 224.164 134.809 224.164 138.505H227.368C227.368 134.516 225.322 128.858 221.515 125.287C227.812 120.778 232.227 116.958 232.227 110.138ZM220.016 124.435C213.773 119.989 209.242 117.158 209.242 110.138C209.242 103.119 213.546 98.7216 220.016 98.7082C226.485 98.7216 230.789 103.354 230.789 110.138C230.789 116.222 226.259 119.989 220.016 124.435Z",fill:"#E0E0E0"}),(0,u.createElement)(S.Path,{d:"M250.84 40.1516C250.84 45.9864 246.155 50.7297 240.342 50.8184H199.862C193.97 50.8184 189.195 46.0441 189.195 40.1516C189.195 34.2591 193.97 29.4847 199.862 29.4847H240.36C246.164 29.4847 250.84 34.3256 250.84 40.1516Z",fill:"#F0F0F0"}),(0,u.createElement)(S.Path,{d:"M240.122 47.7347C244.31 47.7347 247.705 44.3396 247.705 40.1516C247.705 35.9636 244.31 32.5686 240.122 32.5686C235.934 32.5686 232.539 35.9636 232.539 40.1516C232.539 44.3396 235.934 47.7347 240.122 47.7347Z",fill:"#E0E0E0"}),(0,u.createElement)(S.Path,{d:"M131.996 6.00781H124.524L106.332 36.0116H125.824H138.168H157.661L139.468 6.00781H131.996Z",fill:"#F0F0F0"}),(0,u.createElement)(S.Path,{d:"M151.608 26.0281H112.384L106.332 36.0116L151.608 26.0281Z",fill:"white"}),(0,u.createElement)(S.Path,{d:"M145.555 16.0446H118.435L112.383 26.0281L145.555 16.0446Z",fill:"white"}),(0,u.createElement)(S.Path,{d:"M139.469 6.00781H124.525L118.438 16.0446L139.469 6.00781Z",fill:"white"}),(0,u.createElement)(S.Path,{d:"M57.4297 42.9647H87.8994",stroke:"#DDDDDD",strokeWidth:"0.71",strokeMiterlimit:"10"}),(0,u.createElement)(S.Path,{d:"M61.8945 32.1914L83.4412 53.7381",stroke:"#DDDDDD",strokeWidth:"0.71",strokeMiterlimit:"10"}),(0,u.createElement)(S.Path,{d:"M72.668 27.7321V58.2018",stroke:"#DDDDDD",strokeWidth:"0.71",strokeMiterlimit:"10"})),(0,u.createElement)("defs",null,(0,u.createElement)("clipPath",{id:t},(0,u.createElement)(S.Rect,{width:"263.121",height:"167",fill:"white",transform:"translate(0.4375)"}))))}function yl({message:e,actionText:t,isError:o,onActionClick:r}){return(0,u.createElement)("div",{className:"woocommerce-variations-table-error-or-empty-state"},o?(0,u.createElement)(Cl,null):(0,u.createElement)(xl,null),(0,u.createElement)("p",{className:"woocommerce-variations-table-error-or-empty-state__message"},o?(0,ie.__)("We couldn’t load the variations","woocommerce"):e??(0,ie.__)("No variations yet","woocommerce")),(0,u.createElement)("div",{className:"woocommerce-variations-table-error-or-empty-state__actions"},(0,u.createElement)(S.Button,{variant:"link",onClick:r},o?(0,ie.__)("Try again","woocommerce"):t??(0,ie.__)("Generate from options","woocommerce"))))}var Al=o(51609);function kl({initialValues:e,attribute:t,onFilter:o}){const[r,n]=(0,u.useState)(e),[a,c]=(0,u.useState)([]),[i,s]=(0,u.useState)(0),[l,d]=(0,u.useState)(!1),[m,p]=(0,u.useState)(""),[h,_]=(0,u.useState)(1),v=(0,Al.useRef)(null),w=0===r.length;async function g(e,t="",o=1){try{d(!0);const{getProductAttributeTerms:r,getProductAttributeTermsTotalCount:n}=(0,J.resolveSelect)(So.experimentalProductAttributeTermsStore),a={attribute_id:e,per_page:10,page:o,search:t},i=await r(a),l=await n(a);c(o>1?e=>[...e,...i]:i),s(l)}catch{}finally{d(!1)}}function f(e,o){return async function(){o(),e||await g(t.id)}}async function E(e){if(l||a.length>=i)return;const o=e.currentTarget,r=o.scrollHeight-o.clientHeight;if(o.scrollTop>=r){const e=h+1;await g(t.id,m,e),_(e)}}function b(e){return r.includes(e)}function C(e){return function(t){n(o=>t?[...o,e]:o.reduce(function(t,o){return o===e?t:[...t,o]},[]))}}function x(e){"Enter"===e.code&&e.preventDefault()}(0,Al.useEffect)(()=>n(e),[e]);const y=(0,_e.useDebounce)(function(e){p(e??""),c([]),_(1),g(t.id,e)},300),A=(0,_e.useInstanceId)(S.__experimentalInputControl,"search"),k=(0,_e.useInstanceId)(S.CheckboxControl,"checkbox");return(0,u.createElement)(S.Dropdown,{className:"woocommerce-product-variations-filter",onClose:function(){p(""),_(1)},renderToggle:({isOpen:e,onToggle:o})=>(0,u.createElement)(S.Button,{"aria-expanded":e,icon:e?xe:ye.A,variant:"tertiary",onClick:f(e,o),className:"woocommerce-product-variations-filter__toggle"},(0,u.createElement)("span",null,(0,ie.sprintf)((0,ie.__)("Any %s","woocommerce"),t.name))),renderContent:({onClose:e})=>{return(0,u.createElement)("form",{className:"woocommerce-product-variations-filter__form",noValidate:!0,onSubmit:(c=e,function(e){e.preventDefault(),o(r),c()}),onReset:async function(e){e.preventDefault(),w||(p(""),n([]),_(1),v.current?.focus(),await g(t.id))}},t.options.length>10&&(0,u.createElement)("div",{className:"woocommerce-product-variations-filter__form-header"},(0,u.createElement)("label",{htmlFor:A,"aria-label":(0,ie.__)("Search options","woocommerce")},(0,u.createElement)(S.__experimentalInputControl,{ref:v,id:A,type:"search",value:m,suffix:(0,u.createElement)(qe.A,{icon:Ri}),onChange:y,onKeyDown:x}))),(0,u.createElement)("div",{className:"woocommerce-product-variations-filter__form-body",onScroll:E},a.length>0?(0,u.createElement)("ul",{className:"woocommerce-product-variations-filter__form-list"},a.map(e=>(0,u.createElement)("li",{key:e.slug,className:"woocommerce-product-variations-filter__form-list-item"},(0,u.createElement)("label",{htmlFor:`${k}-${e.slug}`,className:"woocommerce-product-variations-filter__form-list-item-label"},(0,u.createElement)(S.CheckboxControl,{id:`${k}-${e.slug}`,checked:b(e.slug),onChange:C(e.slug)}),(0,u.createElement)("span",null,e.name))))):!l&&(0,u.createElement)("div",{className:"woocommerce-product-variations-filter__form-list-empty"},(0,ie.__)("No options were found for that search","woocommerce")),l&&(0,u.createElement)("div",{className:"woocommerce-product-variations-filter__loading"},(0,u.createElement)(S.Spinner,null))),(0,u.createElement)("div",{className:"woocommerce-product-variations-filter__form-footer"},(0,u.createElement)(S.Button,{type:"reset",variant:"secondary","aria-disabled":w},(0,ie.__)("Reset","woocommerce")),(0,u.createElement)(S.Button,{type:"submit",variant:"primary"},(0,ie.__)("Filter","woocommerce"))));var c}})}function Sl(){const[e]=(0,l.useEntityProp)("postType","product","id"),{editedRecord:t}=(0,l.useEntityRecord)("postType","product",e),[o,r]=(0,u.useState)(!1),{isGeneratingVariations:n,generateError:a}=(0,J.useSelect)(t=>{const{isGeneratingVariations:o,generateProductVariationsError:r}=t(So.experimentalProductVariationsStore);return{isGeneratingVariations:o({product_id:e}),generateError:r({product_id:e})}},[e]),c=(0,u.useMemo)(()=>o||Boolean(n),[o,n]);return{generateProductVariations:(0,u.useCallback)(async function(o,n){r(!0);const{status:a,variations:c}=await(0,J.resolveSelect)("core").getEditedEntityRecord("postType","product",e),i=o.some(e=>e.variation),s=await async function(e){try{const t=await(0,J.resolveSelect)("core").getEntityRecord("postType","product",e);if(!t)return{};const{attributes:o}=t;if(!o.some(e=>e.variation))return{};const r=await(0,J.resolveSelect)(So.experimentalProductVariationsStore).getProductVariations({product_id:e,per_page:1,has_price:!0});return r&&r.length>0&&r[0].regular_price?{regular_price:r[0].regular_price,stock_quantity:r[0].stock_quantity??void 0,stock_status:r[0].stock_status,manage_stock:r[0].manage_stock,low_stock_amount:r[0].low_stock_amount??void 0}:{}}catch{return{}}}(e);await Promise.all(c.map(e=>(0,J.dispatch)(l.store).invalidateResolution("getEntityRecord",["postType","product_variation",e]))),await(0,J.dispatch)(So.experimentalProductVariationsStore).invalidateResolutionForStore();const u=(0,ne.applyFilters)("woocommerce.product.variations.generate.meta_data",[],t);return(0,J.dispatch)(So.experimentalProductVariationsStore).generateProductVariations({product_id:e},{type:i?"variable":"simple",attributes:o,default_attributes:n},{delete:!0,default_values:s,meta_data:u}).then(async t=>(await(0,J.dispatch)(l.store).invalidateResolution("getEntityRecord",["postType","product",e]),await(0,J.resolveSelect)(l.store).getEntityRecord("postType","product",e),await(0,J.dispatch)(So.experimentalProductVariationsStore).invalidateResolutionForStore(),t)).finally(()=>{if(r(!1),"auto-draft"===a&&(0,At.getPath)().endsWith("add-product")){const t=(0,At.getNewPath)({},`/product/${e}`);(0,At.navigateTo)({url:t})}})},[]),isGenerating:c,generateError:a}}function Pl(){return(0,u.createElement)("div",{className:"woocommerce-table-row-skeleton woocommerce-product-variations__table-row","aria-hidden":"true"},(0,u.createElement)("div",{className:"woocommerce-sortable__handle"}),(0,u.createElement)("div",{className:"woocommerce-product-variations__selection"},(0,u.createElement)("div",{className:"woocommerce-table-row-skeleton__checkbox"})),(0,u.createElement)("div",{className:"woocommerce-product-variations__attributes"},Array(2).fill(0).map((e,t)=>(0,u.createElement)("div",{key:t,className:"woocommerce-tag woocommerce-product-variations__attribute"},(0,u.createElement)("div",{className:"woocommerce-table-row-skeleton__attribute-option"})))),(0,u.createElement)("div",{className:"woocommerce-product-variations__price"},(0,u.createElement)("div",{className:"woocommerce-table-row-skeleton__regular-price"})),(0,u.createElement)("div",{className:"woocommerce-product-variations__quantity"},(0,u.createElement)("div",{className:"woocommerce-table-row-skeleton__quantity"})),(0,u.createElement)("div",{className:"woocommerce-product-variations__actions"},(0,u.createElement)("div",{className:"woocommerce-table-row-skeleton__visibility-icon"}),(0,u.createElement)("div",{className:"woocommerce-table-row-skeleton__edit-link"}),(0,u.createElement)("div",{className:"woocommerce-table-row-skeleton__menu-toggle"})))}var Vl=o(79845),Bl=o(73764),Ml=o(69770);function Fl({selection:e,onChange:t,onClose:o,supportsMultipleSelection:r=!1}){const n=e.map(({id:e})=>e);function a(o){t(e.map(({id:e,dimensions:t})=>({id:e,dimensions:{...t,...o}})))}return(0,u.createElement)(S.Dropdown,{popoverProps:{placement:"right-start"},renderToggle:({isOpen:e,onToggle:t})=>(0,u.createElement)(S.MenuItem,{onClick:()=>{(0,k.recordEvent)("product_variations_menu_shipping_click",{source:V.bG,variation_id:n}),t()},"aria-expanded":e,icon:kn,iconPosition:"right"},(0,ie.__)("Shipping","woocommerce")),renderContent:()=>(0,u.createElement)("div",{className:"components-dropdown-menu__menu"},(0,u.createElement)(S.MenuGroup,null,(0,u.createElement)(S.MenuItem,{onClick:()=>{(0,k.recordEvent)("product_variations_menu_shipping_select",{source:V.bG,action:"toggle_shipping",variation_id:n}),t(e.map(({id:e,virtual:t})=>({id:e,virtual:!t}))),(0,k.recordEvent)("product_variations_menu_shipping_update",{source:V.bG,action:"toggle_shipping",variation_id:n}),o()}},(0,ie.__)("Toggle shipping","woocommerce")),(0,u.createElement)(S.MenuItem,{onClick:()=>{(0,k.recordEvent)("product_variations_menu_shipping_select",{source:V.bG,action:"dimensions_length_set",variation_id:n}),(0,Bl.f)({onOk(e){(0,k.recordEvent)("product_variations_menu_shipping_update",{source:V.bG,action:"dimensions_length_set",variation_id:n}),a({length:e})}}),o()}},(0,ie.__)("Set length","woocommerce")),(0,u.createElement)(S.MenuItem,{onClick:()=>{(0,k.recordEvent)("product_variations_menu_shipping_select",{source:V.bG,action:"dimensions_width_set",variation_id:n}),(0,Bl.f)({onOk(e){(0,k.recordEvent)("product_variations_menu_shipping_update",{source:V.bG,action:"dimensions_width_set",variation_id:n}),a({width:e})}}),o()}},(0,ie.__)("Set width","woocommerce")),(0,u.createElement)(S.MenuItem,{onClick:()=>{(0,k.recordEvent)("product_variations_menu_shipping_select",{source:V.bG,action:"dimensions_height_set",variation_id:n}),(0,Bl.f)({onOk(e){(0,k.recordEvent)("product_variations_menu_shipping_update",{source:V.bG,action:"dimensions_height_set",variation_id:n}),a({height:e})}}),o()}},(0,ie.__)("Set height","woocommerce")),(0,u.createElement)(S.MenuItem,{onClick:()=>{(0,k.recordEvent)("product_variations_menu_shipping_select",{source:V.bG,action:"weight_set",variation_id:n}),(0,Bl.f)({onOk(o){(0,k.recordEvent)("product_variations_menu_shipping_update",{source:V.bG,action:"weight_set",variation_id:n}),t(e.map(({id:e})=>({id:e,weight:o})))}}),o()}},(0,ie.__)("Set weight","woocommerce"))),(0,u.createElement)(Ml.M.Slot,{group:"shipping",onChange:t,onClose:o,selection:e,supportsMultipleSelection:r}))})}function Ll({selection:e,onChange:t,onClose:o}){return(0,u.createElement)(S.MenuItem,{onClick:()=>{const r=e.map(({id:e})=>e);(0,k.recordEvent)("product_variations_menu_inventory_select",{source:V.bG,action:"stock_quantity_set",variation_id:r}),(0,Bl.f)({onOk(o){const n=Number(o);Number.isNaN(n)||((0,k.recordEvent)("product_variations_menu_inventory_update",{source:V.bG,action:"stock_quantity_set",variation_id:r}),t(e.map(({id:e})=>({id:e,stock_quantity:n,manage_stock:!0}))))}}),o()}},(0,ie.__)("Update stock","woocommerce"))}function Nl({selection:e,onChange:t,onClose:o,supportsMultipleSelection:r=!1}){const n=e.map(({id:e})=>e);return(0,u.createElement)(S.Dropdown,{popoverProps:{placement:"right-start"},renderToggle:({isOpen:e,onToggle:t})=>(0,u.createElement)(S.MenuItem,{onClick:()=>{(0,k.recordEvent)("product_variations_menu_inventory_click",{source:V.bG,variation_id:n}),t()},"aria-expanded":e,icon:kn,iconPosition:"right"},(0,ie.__)("Inventory","woocommerce")),renderContent:()=>(0,u.createElement)("div",{className:"components-dropdown-menu__menu"},(0,u.createElement)(S.MenuGroup,null,(0,u.createElement)(Ll,{selection:e,onChange:t,onClose:o}),(0,u.createElement)(S.MenuItem,{onClick:()=>{(0,k.recordEvent)("product_variations_menu_inventory_select",{source:V.bG,action:"manage_stock_toggle",variation_id:n}),t(e.map(({id:e,manage_stock:t})=>({id:e,manage_stock:!t}))),o()}},(0,ie.__)('Toggle "track quantity"',"woocommerce")),(0,u.createElement)(S.MenuItem,{onClick:()=>{(0,k.recordEvent)("product_variations_menu_inventory_select",{source:V.bG,action:"set_status_in_stock",variation_id:n}),t(e.map(({id:e})=>({id:e,stock_status:dl.p_.instock,manage_stock:!1}))),o()}},(0,ie.__)("Set status to In stock","woocommerce")),(0,u.createElement)(S.MenuItem,{onClick:()=>{(0,k.recordEvent)("product_variations_menu_inventory_select",{source:V.bG,action:"set_status_out_of_stock",variation_id:n}),t(e.map(({id:e})=>({id:e,stock_status:dl.p_.outofstock,manage_stock:!1}))),o()}},(0,ie.__)("Set status to Out of stock","woocommerce")),(0,u.createElement)(S.MenuItem,{onClick:()=>{(0,k.recordEvent)("product_variations_menu_inventory_select",{source:V.bG,action:"set_status_on_back_order",variation_id:n}),t(e.map(({id:e})=>({id:e,stock_status:dl.p_.onbackorder,manage_stock:!1}))),o()}},(0,ie.__)("Set status to On back order","woocommerce")),(0,u.createElement)(S.MenuItem,{onClick:()=>{(0,k.recordEvent)("product_variations_menu_inventory_select",{source:V.bG,action:"low_stock_amount_set",variation_id:n}),(0,Bl.f)({onOk(o){(0,k.recordEvent)("product_variations_menu_inventory_update",{source:V.bG,action:"low_stock_amount_set",variation_id:n});const r=Number(o);if(Number.isNaN(r))return null;t(e.map(({id:e})=>({id:e,low_stock_amount:r,manage_stock:!0})))}}),o()}},(0,ie.__)("Edit low stock threshold","woocommerce"))),(0,u.createElement)(Ml.M.Slot,{group:"inventory",onChange:t,onClose:o,selection:e,supportsMultipleSelection:r}))})}function Tl({selection:e,onChange:t,onClose:o}){return(0,u.createElement)(S.MenuItem,{onClick:()=>{const r=e.map(({id:e})=>e);(0,k.recordEvent)("product_variations_menu_pricing_select",{source:V.bG,action:"list_price_set",variation_id:r}),(0,Bl.f)({onOk(o){(0,k.recordEvent)("product_variations_menu_pricing_update",{source:V.bG,action:"list_price_set",variation_id:r}),t(e.map(({id:e})=>({id:e,regular_price:o})))}}),o()}},(0,ie.__)("Set regular price","woocommerce"))}function Dl(e,t,o=1){if(function(e){return e.endsWith("%")}(t)){if(Number.isNaN(Number(e)))return 0;const r=function(e){const t=e.substring(0,e.length-1);if(!Number.isNaN(Number(t)))return Number(t)}(t);return void 0===r?Number(e):Number(e)+Number(e)*(r/100)*o}if(Number.isNaN(Number(e))){if(Number.isNaN(Number(t)))return;return Number(t)}return Number(e)+Number(t)*o}function Hl({selection:e,onChange:t,onClose:o,supportsMultipleSelection:r=!1}){const n=e.map(({id:e})=>e);return(0,u.createElement)(S.Dropdown,{popoverProps:{placement:"right-start"},renderToggle:({isOpen:e,onToggle:t})=>(0,u.createElement)(S.MenuItem,{onClick:()=>{(0,k.recordEvent)("product_variations_menu_pricing_click",{source:V.bG,variation_id:n}),t()},"aria-expanded":e,icon:kn,iconPosition:"right"},(0,ie.__)("Pricing","woocommerce")),renderContent:()=>(0,u.createElement)("div",{className:"components-dropdown-menu__menu"},(0,u.createElement)(S.MenuGroup,{label:(0,ie.__)("Regular price","woocommerce")},(0,u.createElement)(Tl,{selection:e,onChange:t,onClose:o}),(0,u.createElement)(S.MenuItem,{onClick:()=>{(0,k.recordEvent)("product_variations_menu_pricing_select",{source:V.bG,action:"list_price_increase",variation_id:n}),(0,Bl.f)({message:(0,ie.__)("Enter a value (fixed or %)","woocommerce"),onOk(o){(0,k.recordEvent)("product_variations_menu_pricing_update",{source:V.bG,action:"list_price_increase",variation_id:n}),t(e.map(({id:e,regular_price:t})=>({id:e,regular_price:Dl(t,o)?.toFixed(2)})))}}),o()}},(0,ie.__)("Increase regular price","woocommerce")),(0,u.createElement)(S.MenuItem,{onClick:()=>{(0,k.recordEvent)("product_variations_menu_pricing_select",{source:V.bG,action:"list_price_decrease",variation_id:n}),(0,Bl.f)({message:(0,ie.__)("Enter a value (fixed or %)","woocommerce"),onOk(o){(0,k.recordEvent)("product_variations_menu_pricing_update",{source:V.bG,action:"list_price_increase",variation_id:n}),t(e.map(({id:e,regular_price:t})=>({id:e,regular_price:Dl(t,o,-1)?.toFixed(2)})))}}),o()}},(0,ie.__)("Decrease regular price","woocommerce"))),(0,u.createElement)(S.MenuGroup,{label:(0,ie.__)("Sale price","woocommerce")},(0,u.createElement)(S.MenuItem,{onClick:()=>{(0,k.recordEvent)("product_variations_menu_pricing_select",{source:V.bG,action:"sale_price_set",variation_id:n}),(0,Bl.f)({onOk(o){(0,k.recordEvent)("product_variations_menu_pricing_update",{source:V.bG,action:"sale_price_set",variation_id:n}),t(e.map(({id:e})=>({id:e,sale_price:o})))}}),o()}},(0,ie.__)("Set sale price","woocommerce")),(0,u.createElement)(S.MenuItem,{onClick:()=>{(0,k.recordEvent)("product_variations_menu_pricing_select",{source:V.bG,action:"sale_price_increase",variation_id:n}),(0,Bl.f)({message:(0,ie.__)("Enter a value (fixed or %)","woocommerce"),onOk(o){(0,k.recordEvent)("product_variations_menu_pricing_update",{source:V.bG,action:"sale_price_increase",variation_id:n}),t(e.map(({id:e,sale_price:t})=>({id:e,sale_price:Dl(t,o)?.toFixed(2)})))}}),o()}},(0,ie.__)("Increase sale price","woocommerce")),(0,u.createElement)(S.MenuItem,{onClick:()=>{(0,k.recordEvent)("product_variations_menu_pricing_select",{source:V.bG,action:"sale_price_decrease",variation_id:n}),(0,Bl.f)({message:(0,ie.__)("Enter a value (fixed or %)","woocommerce"),onOk(o){(0,k.recordEvent)("product_variations_menu_pricing_update",{source:V.bG,action:"sale_price_decrease",variation_id:n}),t(e.map(({id:e,sale_price:t})=>({id:e,sale_price:Dl(t,o,-1)?.toFixed(2)})))}}),o()}},(0,ie.__)("Decrease sale price","woocommerce")),(0,u.createElement)(S.MenuItem,{onClick:()=>{(0,k.recordEvent)("product_variations_menu_pricing_select",{source:V.bG,action:"sale_price_schedule",variation_id:n}),(0,Bl.f)({message:(0,ie.__)("Sale start date (YYYY-MM-DD format or leave blank)","woocommerce"),onOk(o){(0,k.recordEvent)("product_variations_menu_pricing_update",{source:V.bG,action:"sale_price_schedule",variation_id:n}),t(e.map(({id:e})=>({id:e,date_on_sale_from_gmt:o})))}}),(0,Bl.f)({message:(0,ie.__)("Sale end date (YYYY-MM-DD format or leave blank)","woocommerce"),onOk(o){(0,k.recordEvent)("product_variations_menu_pricing_update",{source:V.bG,action:"sale_price_schedule",variation_id:n}),t(e.map(({id:e})=>({id:e,date_on_sale_to_gmt:o})))}}),o()}},(0,ie.__)("Schedule sale","woocommerce"))),(0,u.createElement)(Ml.M.Slot,{group:"pricing",onChange:t,onClose:o,selection:e,supportsMultipleSelection:r}))})}function zl({selection:e,onChange:t,onClose:o}){return(0,u.createElement)(S.MenuItem,{onClick:function(){const r=e.map(({id:e})=>e);(0,k.recordEvent)("product_variations_menu_toggle_visibility_select",{source:V.bG,action:"status_set",variation_id:r}),t(e.map(({id:e,status:t})=>{return{id:e,status:(o=t,"private"===o?"publish":"private")};var o})),(0,k.recordEvent)("product_variations_toggle_visibility_update",{source:V.bG,action:"status_set",variation_id:r}),o()}},(0,ie.__)("Toggle visibility","woocommerce"))}const jl="downloads_menu_item__upload_files_modal",Il="downloads_menu_item__upload_files_modal_wrapper";function Rl(e){return{id:`${e.id}`,name:e.name,file:e.url}}function Ol({selection:e,onChange:t,onClose:o,supportsMultipleSelection:r=!1}){const n=e.map(({id:e})=>e),a=e?.length>0?e[0].downloads.map(({id:e})=>Number.parseInt(e,10)):[],[c,i]=(0,u.useState)(!1);function s(r){const a={downloadable:!0,downloads:Array.isArray(r)?r.map(Rl):Rl(r)};t(e.map(({id:e})=>({...a,id:e}))),(0,k.recordEvent)("product_variations_menu_downloads_update",{source:V.bG,action:"downloads_set",variation_id:n}),o()}function l(r,a){return function(){(0,k.recordEvent)("product_variations_menu_downloads_select",{source:V.bG,action:`${r}_set`,variation_id:n}),(0,Bl.f)({message:a,onOk(o){t(e.map(({id:e})=>({id:e,downloadable:!0,[r]:o}))),(0,k.recordEvent)("product_variations_menu_downloads_update",{source:V.bG,action:`${r}_set`,variation_id:n})}}),i(!1),o()}}return(0,u.useEffect)(function(){const e=document.querySelector(`.${jl}`),t=e?.closest('[role="dialog"]'),o=t?.parentElement;return o?.classList.add(Il),()=>{o?.classList.remove(Il)}},[c]),(0,u.createElement)(S.Dropdown,{popoverProps:{placement:"right-start"},renderToggle:({isOpen:e,onToggle:t})=>(0,u.createElement)(S.MenuItem,{onClick:()=>{(0,k.recordEvent)("product_variations_menu_downloads_click",{source:V.bG,variation_id:n}),t()},"aria-expanded":e,icon:kn,iconPosition:"right"},(0,ie.__)("Downloads","woocommerce")),renderContent:()=>(0,u.createElement)("div",{className:"components-dropdown-menu__menu"},(0,u.createElement)(S.MenuGroup,null,(0,u.createElement)(Be.MediaUpload,{modalClass:jl,multiple:"add",value:a,onSelect:s,render:({open:e})=>{return(0,u.createElement)(S.MenuItem,{onClick:(t=e,function(){(0,k.recordEvent)("product_variations_menu_downloads_select",{source:V.bG,action:"downloads_set",variation_id:n}),t(),i(!0)})},(0,ie.__)("Upload files","woocommerce"));var t}}),(0,u.createElement)(S.MenuItem,{onClick:l("download_limit",(0,ie.__)("Leave blank for unlimited re-downloads","woocommerce"))},(0,ie.__)("Set download limit","woocommerce")),(0,u.createElement)(S.MenuItem,{onClick:l("download_expiry",(0,ie.__)("Enter the number of days before a download link expires, or leave blank","woocommerce"))},(0,ie.__)("Set download expiry","woocommerce"))),(0,u.createElement)(Ml.M.Slot,{group:"downloads",onChange:e=>t(e),onClose:o,selection:e,supportsMultipleSelection:r}))})}const Gl=["image"],$l="woocommerce-add-image-menu-item__upload_image_modal",Zl="woocommerce-add-image-menu-item__upload_image_modal_wrapper";function Ul({selection:e,onChange:t,onClose:o}){const[r,n]=(0,u.useState)(!1),a=e.map(({id:e})=>e);return(0,u.useEffect)(function(){const e=document.querySelector(`.${$l}`),t=e?.closest('[role="dialog"]'),o=t?.parentElement;return o?.classList.add(Zl),()=>{o?.classList.remove(Zl)}},[r]),(0,u.createElement)(Be.MediaUpload,{onSelect:function(r){const n=Ke(r);(0,k.recordEvent)("product_variations_menu_add_image_update",{source:V.bG,action:"add_image_to_variation",variation_id:a}),t(e.map(({id:e})=>({id:e,image:n}))),o()},modalClass:$l,allowedTypes:Gl,mode:"upload",multiple:!1,render:({open:e})=>{return(0,u.createElement)(S.MenuItem,{onClick:(t=e,function(){(0,k.recordEvent)("product_variations_menu_add_image_select",{source:V.bG,action:"add_image_to_variation",variation_id:a}),t(),n(!0)})},(0,ie.__)("Add image","woocommerce"));var t}})}function ql({selection:e,onChange:t,onDelete:o,onClose:r,supportsMultipleSelection:n=!1}){const a=n||1!==e.length?null:e[0];return(0,u.createElement)("div",{className:(0,ce.A)({"components-dropdown-menu__menu":n})},(0,u.createElement)(S.MenuGroup,{label:n?void 0:(0,ie.sprintf)((0,ie.__)("Variation Id: %s","woocommerce"),a?.id)},n?(0,u.createElement)(u.Fragment,null,(0,u.createElement)(Ll,{selection:e,onChange:t,onClose:r}),(0,u.createElement)(Tl,{selection:e,onChange:t,onClose:r}),(0,u.createElement)(Ul,{selection:e,onChange:t,onClose:r})):(0,u.createElement)(S.MenuItem,{rel:"noreferrer",onClick:()=>{(0,k.recordEvent)("product_variations_preview",{source:V.bG,variation_id:a?.id})}},(0,ie.__)("Preview","woocommerce")),(0,u.createElement)(zl,{selection:e,onChange:t,onClose:r})),(0,u.createElement)(Ml.M.Slot,{group:"top-level",onChange:t,onClose:r,selection:e,supportsMultipleSelection:n}),(0,u.createElement)(S.MenuGroup,null,(0,u.createElement)(Hl,{selection:e,onChange:t,onClose:r,supportsMultipleSelection:n}),(0,u.createElement)(Nl,{selection:e,onChange:t,onClose:r,supportsMultipleSelection:n}),(0,u.createElement)(Fl,{selection:e,onChange:t,onClose:r,supportsMultipleSelection:n}),(0,u.createElement)(Ol,{selection:e,onChange:t,onClose:r,supportsMultipleSelection:n})),(0,u.createElement)(Ml.M.Slot,{group:"secondary",onChange:t,onClose:r,selection:e,supportsMultipleSelection:n}),(0,u.createElement)(S.MenuGroup,null,(0,u.createElement)(S.MenuItem,{isDestructive:!0,label:n?void 0:(0,ie.__)("Delete variation","woocommerce"),onClick:()=>{o(e),r()},className:"woocommerce-product-variations__actions--delete"},(0,ie.__)("Delete","woocommerce"))),(0,u.createElement)(Ml.M.Slot,{group:"tertiary",onChange:t,onClose:r,selection:e,supportsMultipleSelection:n}))}function Wl({selection:e,onChange:t,onDelete:o}){return e&&1===e.length?(0,u.createElement)(S.DropdownMenu,{popoverProps:{placement:"left-start"},icon:Tc.A,label:(0,ie.__)("Actions","woocommerce"),toggleProps:{onClick(){(0,k.recordEvent)("product_variations_menu_view",{source:V.bG,variation_id:e[0].id})}}},({onClose:r})=>(0,u.createElement)(ql,{selection:e,onClose:r,onChange:t,onDelete:o,supportsMultipleSelection:!1})):null}function Jl({icon:e,iconPosition:t,text:o,info:r,...n}){const a=n;return(0,u.createElement)(Be.MediaUpload,{...a,render:({open:n})=>(0,u.createElement)(S.MenuItem,{icon:e??Sc,iconPosition:t??"left",onClick:n,info:r??(0,ie.__)("Choose from uploaded media","woocommerce")},o??(0,ie.__)("Media Library","woocommerce"))})}function Yl({allowedTypes:e,maxUploadFileSize:t,wpAllowedMimeTypes:o,additionalData:r,icon:n,iconPosition:a,text:c,info:i,onUploadProgress:s,onUploadSuccess:l,onUploadError:d,...m}){const p=t||window.productBlockEditorSettings?.maxUploadFileSize||10485760;return(0,u.createElement)(S.FormFileUpload,{...m,onChange:function(t){const n=Array.from(t.currentTarget.files??[]);(0,Be.uploadMedia)({allowedTypes:e,filesList:n,maxUploadFileSize:p,additionalData:r,wpAllowedMimeTypes:o??void 0,onFileChange(e){e.some(e=>!e.id)?s?.(e):l(e)},onError:d})},render:({openFileDialog:e})=>(0,u.createElement)(S.MenuItem,{icon:n??Ve,iconPosition:a??"left",onClick:e,info:i??(0,ie.__)("Select files from your device","woocommerce")},c??(0,ie.__)("Upload","woocommerce"))})}function Kl({selection:e,onChange:t,onDelete:o,...r}){const[n,a]=(0,u.useState)(!1),{createErrorNotice:c}=(0,J.useDispatch)("core/notices");function i(o){return function(r){const n=r.length&&Ke(r[0])||void 0,c={id:e[0].id,image:n};a(!1),t([c],!1),o()}}function s(o){return function(r){const n={id:e[0].id,image:Ke(r)||void 0};t([n],!1),o()}}return(0,u.createElement)(S.Dropdown,{...r,popoverProps:{placement:"bottom-end"},renderToggle:e=>r.renderToggle({...e,isBusy:n}),className:"woocommerce-image-actions-menu",contentClassName:"woocommerce-image-actions-menu__menu-content",renderContent:({onClose:o})=>(0,u.createElement)("div",{className:"components-dropdown-menu__menu"},(0,u.createElement)(S.MenuGroup,null,(0,u.createElement)(Yl,{allowedTypes:["image"],accept:"image/*",multiple:!1,info:(0,ie.__)("1000 pixels wide or larger","woocommerce"),onUploadProgress:()=>{a(!0),o()},onUploadSuccess:i(o),onUploadError:e=>{!function(e){c((0,ie.sprintf)((0,ie.__)("Error uploading file:%1$s%2$s","woocommerce"),"\n",e.message))}(e),a(!1),o()}}),(0,u.createElement)(Jl,{allowedTypes:["image"],multiple:!1,value:e[0].id,onSelect:s(o)})),(0,u.createElement)(Ml.M.Slot,{group:"image-actions-menu",onChange:e=>t(e),onClose:o,selection:e,supportsMultipleSelection:!1}))})}const Xl="woocommerce_manage_stock",Ql=[{label:(0,ie.__)("In stock","woocommerce"),value:"instock"},{label:(0,ie.__)("Out of stock","woocommerce"),value:"outofstock"},{label:(0,ie.__)("On backorder","woocommerce"),value:"onbackorder"}];function eu({initialValue:e,onSubmit:t,onCancel:o}){const[r,n]=(0,u.useState)({manage_stock:Boolean(e?.manage_stock),stock_status:e?.stock_status??"",stock_quantity:e?.stock_quantity??1}),[a,c]=(0,u.useState)({}),{canManageStock:i,isLoadingManageStockOption:s}=(0,J.useSelect)(e=>{const{getOption:t,isResolving:o}=e(So.optionsStore);return{canManageStock:"yes"===t(Xl),isLoadingManageStockOption:o("getOption",[Xl])}},[]);function l(){let e;return r.manage_stock&&r.stock_quantity&&Number.parseInt(r.stock_quantity,10)<0&&(e=(0,ie.__)("Stock quantity must be a positive number.","woocommerce")),c({stock_quantity:e}),!e}return(0,u.createElement)("form",{onSubmit:function(e){e.preventDefault(),l()&&t?.(r)},className:"woocommerce-variation-stock-status-form","aria-label":(0,ie.__)("Variation stock status form","woocommerce"),noValidate:!0},(0,u.createElement)("div",{className:"woocommerce-variation-stock-status-form__controls"},(0,u.createElement)(S.ToggleControl,{label:(0,ie.__)("Track inventory","woocommerce"),disabled:s||!i,checked:r.manage_stock,onChange:function(e){n(t=>({...t,manage_stock:e}))},help:function(){if(!s&&!i)return(0,u.createInterpolateElement)((0,ie.__)("Per your <Link>store settings</Link>, inventory management is <strong>disabled</strong>.","woocommerce"),{Link:(0,u.createElement)("a",{href:(0,me.getAdminLink)("admin.php?page=wc-settings&tab=products&section=inventory"),target:"_blank",rel:"noreferrer"}),strong:(0,u.createElement)("strong",null)})}()})),(0,u.createElement)("div",{className:"woocommerce-variation-stock-status-form__controls"},r.manage_stock?(0,u.createElement)(S.__experimentalInputControl,{type:"number",min:0,label:(0,ie.__)("Available stock","woocommerce"),help:a.stock_quantity,value:r.stock_quantity,onChange:function(e){n(t=>({...t,stock_quantity:e}))},onBlur:l,className:(0,ce.A)({"has-error":a.stock_quantity})}):(0,u.createElement)(Lt,{title:(0,ie.__)("Stock status","woocommerce"),selected:r.stock_status,options:Ql,onChange:function(e){n(t=>({...t,stock_status:e}))}})),(0,u.createElement)("div",{className:"woocommerce-variation-stock-status-form__actions"},(0,u.createElement)(S.Button,{variant:"tertiary",onClick:o},"Cancel"),(0,u.createElement)(S.Button,{variant:"primary",type:"submit"},"Save")))}function tu({initialValue:e,onSubmit:t,onCancel:o}){const[r,n]=(0,u.useState)({regular_price:e?.regular_price??"",sale_price:e?.sale_price??""}),[a,c]=(0,u.useState)({}),i=(0,kt.d)({value:r.regular_price,onChange(e){n(t=>({...t,regular_price:e}))}}),s=(0,kt.d)({value:r.sale_price,onChange(e){n(t=>({...t,sale_price:e}))}});function l(){const e={regular_price:void 0},t=Number.parseFloat(r.regular_price);return t&&(t<0&&(e.regular_price=(0,ie.__)("Regular price must be greater than or equals to zero.","woocommerce")),r.sale_price&&t<=Number.parseFloat(r.sale_price)&&(e.regular_price=(0,ie.__)("Regular price must be greater than the sale price.","woocommerce"))),c(e),!e.regular_price}function d(){const e={sale_price:void 0};if(r.sale_price){const t=Number.parseFloat(r.sale_price);t<0&&(e.sale_price=(0,ie.__)("Sale price must be greater than or equals to zero.","woocommerce")),(!r.regular_price||Number.parseFloat(r.regular_price)<=t)&&(e.sale_price=(0,ie.__)("Sale price must be lower than the regular price.","woocommerce"))}return c(e),!e.sale_price}return(0,u.createElement)("form",{onSubmit:function(e){e.preventDefault(),d()&&l()&&t?.(r)},className:"woocommerce-variation-pricing-form","aria-label":(0,ie.__)("Variation pricing form","woocommerce")},(0,u.createElement)("div",{className:"woocommerce-variation-pricing-form__controls"},(0,u.createElement)(S.__experimentalInputControl,{...i,name:"regular_price",label:(0,ie.__)("Regular price","woocommerce"),help:a.regular_price,className:(0,ce.A)(i.className,{"has-error":a.regular_price}),onBlur:l}),(0,u.createElement)(S.__experimentalInputControl,{...s,name:"sale_price",label:(0,ie.__)("Sale price","woocommerce"),help:a.sale_price,className:(0,ce.A)(s.className,{"has-error":a.sale_price}),onBlur:d})),(0,u.createElement)("div",{className:"woocommerce-variation-pricing-form__actions"},(0,u.createElement)(S.Button,{variant:"tertiary",onClick:o},"Cancel"),(0,u.createElement)(S.Button,{variant:"primary",type:"submit"},"Save")))}const ou=(0,ie.__)("Not visible to customers","woocommerce");function ru(e){return(0,At.getNewPath)({},`/product/${e.parent_id}/variation/${e.id}`,{})}function nu({variation:e,variableAttributes:t,isUpdating:o,isSelected:r,isSelectionDisabled:n,hideActionButtons:a,onChange:c,onDelete:i,onEdit:s,onSelect:l}){const{formatAmount:d}=(0,u.useContext)(sl.CurrencyContext),{matchesAny:m,tags:p}=(0,u.useMemo)(function(){let o=!1;const r=t.map(t=>{const r=e.attributes.find(e=>e.id===t.id);return r?{id:r.id,label:r.option}:(o=!0,{id:t.id,label:(0,ie.sprintf)((0,ie.__)("Any %s","woocommerce"),t.name)})});return{matchesAny:o,tags:r}},[t,e]);function h(e,t){c(e[0],t)}function _(e){i(e[0])}function v(t,o,r){return function(){o||(0,k.recordEvent)("product_variations_inline_select",{source:V.bG,product_id:e.parent_id,variation_id:e.id,selected_option:t}),r()}}return(0,u.createElement)(u.Fragment,null,(0,u.createElement)("div",{className:"woocommerce-product-variations__selection",role:"cell"},m&&(0,u.createElement)($.__experimentalTooltip,{text:(0,ie.__)("'Any' variations are no longer fully supported. Use regular variations instead","woocommerce"),helperText:(0,ie.__)("View helper text","woocommerce"),position:"middle right"},(0,u.createElement)(qe.A,{icon:Xa,size:24})),o?(0,u.createElement)(S.Spinner,null):(0,u.createElement)(S.CheckboxControl,{value:e.id,checked:r,onChange:l,disabled:n,"aria-label":r?(0,ie.__)("Unselect variation","woocommerce"):(0,ie.__)("Select variation","woocommerce")})),(0,u.createElement)("div",{className:"woocommerce-product-variations__attributes-cell",role:"cell"},(0,u.createElement)(Kl,{selection:[e],onChange:h,onDelete:_,renderToggle:({isOpen:t,onToggle:o,isBusy:r})=>r?(0,u.createElement)("div",{className:"woocommerce-product-variations__add-image-button"},(0,u.createElement)(S.Spinner,{"aria-label":(0,ie.__)("Loading image","woocommerce")})):(0,u.createElement)(S.Button,{className:(0,ce.A)(e.image?"woocommerce-product-variations__image-button":"woocommerce-product-variations__add-image-button"),icon:e.image?void 0:ri.A,iconSize:e.image?void 0:16,size:"compact",onClick:v("image",t,o)},e.image&&(0,u.createElement)("div",{className:"woocommerce-product-variations__image",style:{backgroundImage:`url('${e.image.src}')`}}))}),(0,u.createElement)("div",{className:"woocommerce-product-variations__attributes"},p.map(e=>{const t=(0,u.createElement)($.Tag,{id:e.id,className:"woocommerce-product-variations__attribute",key:e.id,label:(0,Vl.x)(e.label,V.TU),screenReaderLabel:e.label});return p.length<=V.TU?t:(0,u.createElement)($.__experimentalTooltip,{key:e.id,text:e.label,position:"top center"},(0,u.createElement)("span",null,t))}))),(0,u.createElement)("div",{className:(0,ce.A)("woocommerce-product-variations__price",{"woocommerce-product-variations__price--fade":"private"===e.status}),role:"cell"},e.regular_price?(0,u.createElement)(S.Dropdown,{contentClassName:"woocommerce-product-variations__pricing-actions-menu",popoverProps:{placement:"bottom"},renderToggle:({isOpen:t,onToggle:o})=>(0,u.createElement)(S.Button,{onClick:v("price",t,o)},(0,u.createElement)(u.Fragment,null,e.on_sale&&(0,u.createElement)("span",{className:"woocommerce-product-variations__sale-price"},d(e.sale_price)),(0,u.createElement)("span",{className:(0,ce.A)("woocommerce-product-variations__regular-price",{"woocommerce-product-variations__regular-price--on-sale":e.on_sale})},d(e.regular_price)))),renderContent:({onClose:t})=>function(t){return(0,u.createElement)(tu,{initialValue:e,onSubmit:o=>{c({...o,id:e.id},!0),t()},onCancel:t})}(t)}):null),(0,u.createElement)("div",{className:(0,ce.A)("woocommerce-product-variations__quantity",{"woocommerce-product-variations__quantity--fade":"private"===e.status}),role:"cell"},e.regular_price?(0,u.createElement)(S.Dropdown,{contentClassName:"woocommerce-product-variations__stock-status-actions-menu",popoverProps:{placement:"bottom"},renderToggle:({isOpen:t,onToggle:o})=>(0,u.createElement)(S.Button,{onClick:v("stock",t,o),variant:"tertiary"},(0,u.createElement)(u.Fragment,null,(0,u.createElement)("span",{className:(0,ce.A)("woocommerce-product-variations__status-dot",(0,dl.Ac)(e))},"●"),(0,dl.Wj)(e))),renderContent:({onClose:t})=>function(t){return(0,u.createElement)(eu,{initialValue:e,onSubmit:o=>{c({...o,id:e.id},!0),t()},onCancel:t})}(t)}):null),(0,u.createElement)("div",{className:"woocommerce-product-variations__actions",role:"cell"},("private"===e.status||!e.regular_price)&&(0,u.createElement)($.__experimentalTooltip,{className:"woocommerce-attribute-list-item__actions-tooltip",position:"top center",text:ou},(0,u.createElement)("div",{className:"woocommerce-attribute-list-item__actions-icon-wrapper"},(0,u.createElement)(Qs,{className:"woocommerce-attribute-list-item__actions-icon-wrapper-icon"}))),a&&(0,u.createElement)(u.Fragment,null,(0,u.createElement)(S.Button,{href:ru(e),onClick:s},(0,ie.__)("Edit","woocommerce")),(0,u.createElement)(Wl,{selection:[e],onChange:h,onDelete:_}))))}function au({selection:e,disabled:t,onChange:o,onDelete:r}){return e?(0,u.createElement)(S.Dropdown,{popoverProps:{placement:"bottom-end"},renderToggle:({isOpen:e,onToggle:o})=>(0,u.createElement)(S.Button,{disabled:t,"aria-expanded":e,icon:e?xe:ye.A,variant:"secondary",onClick:o,className:"variations-actions-menu__toggle"},(0,u.createElement)("span",null,(0,ie.__)("Quick update","woocommerce"))),renderContent:({onClose:t})=>(0,u.createElement)(ql,{selection:e,onClose:t,onChange:o,onDelete:r,supportsMultipleSelection:!0})}):null}function cu(e,t){if("id"in e){const e="update"===t?"updated":"deleted";return(0,ie.sprintf)((0,ie.__)("1 variation %s.","woocommerce"),e)}const{update:o=[],delete:r=[]}=e,n=o.length,a=r.length;return a>0?(0,ie.sprintf)((0,ie.__)("%s variations deleted.","woocommerce"),a):n>0?(0,ie.sprintf)((0,ie.__)("%s variations updated.","woocommerce"),n):""}const iu=(0,u.forwardRef)(function({isVisible:e=!1,noticeText:t,noticeActions:o=[],noticeStatus:r="error",onNoticeDismiss:n=()=>{},onVariationTableChange:a=()=>{}},c){const i=(0,l.useEntityId)("postType","product"),[s]=(0,l.useEntityProp)("postType","product","attributes"),d=(0,u.useMemo)(()=>s.filter(e=>e.variation),[s]),[m]=(0,l.useEntityProp)("postType","product","variations"),{createSuccessNotice:p,createErrorNotice:h}=(0,J.useDispatch)("core/notices"),{isLoading:_,variations:v,totalCount:w,onPageChange:g,onPerPageChange:f,onFilter:E,getFilters:b,hasFilters:C,clearFilters:x,selected:y,isSelectingAll:A,selectedCount:P,areAllSelected:B,areSomeSelected:M,isSelected:F,onSelect:L,onSelectPage:N,onSelectAll:T,onClearSelection:D,isUpdating:H,onUpdate:z,onDelete:j,onBatchUpdate:I,onBatchDelete:R,isGenerating:O,variationsError:G,onGenerate:$,getCurrentVariations:Z}=function({productId:e}){const[t,o]=(0,u.useState)([]),[r,n]=(0,u.useState)(0),[a,c]=(0,u.useState)(!1),[i,s]=(0,u.useState)(),[l,d]=(0,u.useState)([]),m=(0,u.useRef)(V._R);async function p(e,t=!1){const r={product_id:e.product_id,page:e.page||1,per_page:e.per_page||m.current,order:e.order||"asc",orderby:e.orderby||"menu_order",attributes:e.attributes||[]};try{const{invalidateResolution:e}=(0,J.dispatch)(So.experimentalProductVariationsStore);t&&(await e("getProductVariations",[r]),await e("getProductVariationsTotalCount",[r]));const{getProductVariations:a,getProductVariationsTotalCount:i}=(0,J.resolveSelect)(So.experimentalProductVariationsStore);c(!0),s(void 0);const l=await a(r),u=await i(r);o(l),n(u),c(!1)}catch(e){s(e),c(!1)}}const[h,_]=(0,u.useState)(0),[v,w]=(0,u.useState)(!1),g=(0,u.useRef)({}),f=(0,u.useMemo)(function(){return h>0?Object.values(g.current):[]},[h]),E=(0,u.useCallback)(function(e){return h>0&&e.id in g.current},[h]),b=(0,u.useMemo)(()=>h>0&&t.every(E),[t,h,E]),C=(0,u.useMemo)(()=>h>0&&t.some(E),[t,h,E]);function x(e){return function(t){t?(g.current[e.id]=e,_(e=>e+1)):(delete g.current[e.id],_(e=>e-1))}}function y(){g.current={},_(0)}const[A,k]=(0,u.useState)({}),{isGenerating:S,generateProductVariations:P,generateError:B}=Sl(),M=(0,u.useRef)(!1);return{isLoading:a,variations:t,totalCount:r,onPageChange:function(t){p({product_id:e,attributes:l,page:t})},onPerPageChange:function(t){m.current=t,p({product_id:e,attributes:l})},onFilter:function(t){return function(o){let r=!1;const n=l.reduce((e,n)=>n.attribute===t.slug?(r=!0,0===o.length?e:[...e,{...n,terms:o}]):[...e,n],[]);r||n.push({attribute:t.slug,terms:o}),y(),p({product_id:e,attributes:n}),d(n)}},getFilters:function(e){return l.find(t=>t.attribute===e.slug)?.terms??[]},hasFilters:function(){return Boolean(l.length)},clearFilters:async function(){return d([]),p({product_id:e})},selected:f,isSelectingAll:v,selectedCount:h,areAllSelected:b,areSomeSelected:C,isSelected:E,onSelect:x,onSelectPage:function(e){e?t.forEach(e=>{g.current[e.id]=e}):t.forEach(e=>{delete g.current[e.id]}),_(Object.keys(g.current).length)},onSelectAll:async function(){w(!0);const{getProductVariations:t}=(0,J.resolveSelect)(So.experimentalProductVariationsStore);let o=1,n=0;for(;n<r;){const r=await t({product_id:e,page:o++,per_page:50,order:"asc",orderby:"menu_order",attributes:l});n+=r.length,r.forEach(e=>{g.current[e.id]=e})}return _(n),w(!1),n},onClearSelection:y,isUpdating:A,onUpdate:async function({id:t,...r}){if(A[t])return;o(e=>e.map(e=>e.id===t?{...e,...r}:e));const{updateProductVariation:n}=(0,J.dispatch)(So.experimentalProductVariationsStore);return n({product_id:e,id:t},r).then(async o=>(await(0,J.dispatch)("core").invalidateResolution("getEntityRecord",["postType","product_variation",t]),await p({product_id:e,attributes:l}),o))},onDelete:async function(t){if(A[t])return;const{deleteProductVariation:o,invalidateResolutionForStore:r}=(0,J.dispatch)(So.experimentalProductVariationsStore);return o({product_id:e,id:t}).then(async o=>(x(o)(!1),await(0,J.dispatch)("core").invalidateResolution("getEntityRecord",["postType","product",e]),await(0,J.dispatch)("core").invalidateResolution("getEntityRecord",["postType","product_variation",t]),await r(),await p({product_id:e,attributes:l}),o))},onBatchUpdate:async function(t){const{invalidateResolution:o}=(0,J.dispatch)("core"),{batchUpdateProductVariations:r,invalidateResolutionForStore:n}=(0,J.dispatch)(So.experimentalProductVariationsStore);g.current={},_(0);let a=1;const c=[];for(;50*(a-1)<t.length;){const n=50*(a-1),i=n+50,s=t.slice(n,i);k(e=>s.reduce((e,t)=>({...e,[t.id]:!0}),0===n?{}:e));const l=await r({product_id:e},{update:s});a++;const u=l?.update??[];c.push(...u);for(const e of u)await o("getEntityRecord",["postType","product_variation",e.id]),g.current[e.id]=e,_(e=>e+1)}return k({}),await n(),await p({product_id:e,attributes:l}),{update:c}},onBatchDelete:async function(t){const{invalidateResolution:o}=(0,J.dispatch)("core"),{batchUpdateProductVariations:r,invalidateResolutionForStore:n}=(0,J.dispatch)(So.experimentalProductVariationsStore);g.current={},_(0);let a=1;const c=[];for(;50*(a-1)<t.length;){const n=50*(a-1),i=n+50,s=t.slice(n,i);k(e=>s.reduce((e,t)=>({...e,[t.id]:!0}),0===n?{}:e));const l=await r({product_id:e},{delete:s.map(({id:e})=>e)});a++;const u=l?.delete??[];c.push(...l?.delete??[]);for(const e of u)await o("getEntityRecord",["postType","product_variation",e.id]),delete g.current[e.id],_(e=>e-1)}return k({}),await o("getEntityRecord",["postType","product",e]),await n(),await p({product_id:e,attributes:l}),{delete:c}},isGenerating:S,onGenerate:P,variationsError:B??i,getCurrentVariations:function(){S&&(d([]),y());const t=!1===M.current&&!1===S,o=!0===M.current&&!1===S;(t||o)&&p({product_id:e},!0),M.current=Boolean(S)}}}({productId:i});(0,u.useEffect)(()=>{e&&Z()},[e,O,i]);const U=void 0!==G;if(!_&&!O&&(0===m.length||U))return(0,u.createElement)(yl,{onActionClick:function(){$(s)},isError:U});function q(e){j(e.id).then(t=>{(0,k.recordEvent)("product_variations_delete",{source:V.bG,product_id:i,variation_id:e.id}),p(cu(t,"delete")),a("delete")}).catch(()=>{h((0,ie.__)("Failed to delete variation.","woocommerce"))})}function W(e,t=!0){const{id:o,...r}=e;z(e).then(o=>{(0,k.recordEvent)("product_variations_change",{source:V.bG,product_id:i,variation_id:e.id,updated_options:Object.keys(r)}),t&&p(cu(o,"update")),a("update",[e])}).catch(()=>{h((0,ie.__)("Failed to save variation.","woocommerce"))})}function Y(e){const t=Date.now();I(e).then(o=>{(0,k.recordEvent)("product_variations_update_all",{source:V.bG,product_id:i,variations_count:e.length,request_time:Date.now()-t}),p(cu(o)),a("update",e)}).catch(()=>{h((0,ie.__)("Failed to update variations.","woocommerce"))})}function K(e){const t=Date.now();R(e).then(o=>{(0,k.recordEvent)("product_variations_delete_all",{source:V.bG,product_id:i,variations_count:e.length,request_time:Date.now()-t}),p(cu(o)),a("delete")}).catch(()=>{h((0,ie.__)("Failed to delete variations.","woocommerce"))})}function X(e){return function(){(0,k.recordEvent)("product_variations_edit",{source:V.bG,product_id:i,variation_id:e.id})}}return(0,u.createElement)("div",{className:"woocommerce-product-variations",ref:c},t&&(0,u.createElement)(S.Notice,{status:r,className:"woocommerce-product-variations__notice",onRemove:n,actions:o.map(e=>({...e,onClick:()=>{e?.onClick(Y,K)}}))},t),(0,u.createElement)("div",{className:"woocommerce-product-variations__table",role:"table"},(C()||w>0)&&(0,u.createElement)("div",{className:"woocommerce-product-variations__table-header",role:"rowgroup"},(0,u.createElement)("div",{className:"woocommerce-product-variations__table-row",role:"rowheader"},(0,u.createElement)("div",{className:"woocommerce-product-variations__filters"},M?(0,u.createElement)(u.Fragment,null,(0,u.createElement)("span",null,(0,ie.sprintf)((0,ie.__)("%d selected","woocommerce"),P)),(0,u.createElement)(S.Button,{variant:"tertiary",onClick:()=>N(!0)},(0,ie.sprintf)((0,ie.__)("Select page (%d)","woocommerce"),v.length)),(0,u.createElement)(S.Button,{variant:"tertiary",isBusy:A,onClick:async function(){const e=Date.now();T().then(t=>{(0,k.recordEvent)("product_variations_select_all",{source:V.bG,product_id:i,variations_count:t,request_time:Date.now()-e})})}},(0,ie.sprintf)((0,ie.__)("Select all (%d)","woocommerce"),w)),(0,u.createElement)(S.Button,{variant:"tertiary",onClick:D},(0,ie.__)("Clear selection","woocommerce"))):d.map(e=>(0,u.createElement)(kl,{key:e.id,initialValues:b(e),attribute:e,onFilter:E(e)}))),(0,u.createElement)("div",{className:"woocommerce-product-variations__actions"},(0,u.createElement)(au,{selection:y,disabled:!M&&!A,onChange:Y,onDelete:K}))),w>0&&(0,u.createElement)("div",{className:"woocommerce-product-variations__table-row woocommerce-product-variations__table-rowheader",role:"rowheader"},(0,u.createElement)("div",{className:"woocommerce-product-variations__table-column woocommerce-product-variations__selection",role:"columnheader"},(0,u.createElement)(S.CheckboxControl,{value:"all",checked:B,indeterminate:!B&&M,onChange:N,"aria-label":(0,ie.__)("Select all","woocommerce")})),(0,u.createElement)("div",{className:"woocommerce-product-variations__table-column",role:"columnheader"},(0,ie.__)("Variation","woocommerce")),(0,u.createElement)("div",{className:"woocommerce-product-variations__table-column woocommerce-product-variations__price",role:"columnheader"},(0,ie.__)("Price","woocommerce")),(0,u.createElement)("div",{className:"woocommerce-product-variations__table-column",role:"columnheader"},(0,ie.__)("Stock","woocommerce")))),_||O?(0,u.createElement)("div",{className:"woocommerce-product-variations__table-body",role:"presentation","aria-label":O?(0,ie.__)("Generating variations…","woocommerce"):(0,ie.__)("Loading variations…","woocommerce")},Array.from({length:v.length||5}).map((e,t)=>(0,u.createElement)(Pl,{key:t}))):w>0?(0,u.createElement)("div",{className:"woocommerce-product-variations__table-body",role:"rowgroup"},v.map(e=>(0,u.createElement)("div",{key:`${e.id}`,className:"woocommerce-product-variations__table-row",role:"row"},(0,u.createElement)(nu,{variation:e,variableAttributes:d,isUpdating:H[e.id],isSelected:F(e),isSelectionDisabled:A,hideActionButtons:!M,onChange:W,onDelete:q,onEdit:X(e),onSelect:L(e)})))):(0,u.createElement)(yl,{isError:!1,message:(0,ie.__)("No variations were found","woocommerce"),actionText:(0,ie.__)("Clear filters","woocommerce"),onActionClick:x}),w>5&&(0,u.createElement)("div",{className:"woocommerce-product-variations__table-footer",role:"row"},(0,u.createElement)(bl,{totalCount:w,onPageChange:g,onPerPageChange:f}))))}),su=()=>{const[e,t]=(0,u.useState)(!1),o=(0,l.useEntityId)("postType","product"),r=(0,u.useRef)(),n=(0,u.useMemo)(()=>({product_id:o,page:1,per_page:V._R,order:"asc",orderby:"menu_order"}),[o]),{totalCount:a}=(0,J.useSelect)(e=>{const{getProductVariationsTotalCount:t}=e(So.experimentalProductVariationsStore);return{totalCount:t(n)}},[o]),{updateUserPreferences:c,variable_product_block_tour_shown:i}=(0,So.useUserPreferences)(),s={placement:"top",steps:[{referenceElements:{desktop:".wp-block-woocommerce-product-variation-items-field"},focusElement:{desktop:".wp-block-woocommerce-product-variation-items-field"},meta:{name:"product-variations-2",heading:(0,ie.__)("⚡️ This product now has variations","woocommerce"),descriptions:{desktop:(0,ie.__)("From now on, you’ll manage pricing, shipping, and inventory for each variation individually—just like any other product in your store.","woocommerce")},primaryButton:{text:(0,ie.__)("Got it","woocommerce")}}}],options:{classNames:["variation-items-product-tour"],effects:{arrowIndicator:!0,spotlight:{interactivity:{enabled:!0}}},callbacks:{onStepViewOnce:()=>{(0,k.recordEvent)("variable_product_block_tour_shown",{variable_count:a})}},popperModifiers:[{name:"offset",options:{offset:[0,32]}}]},closeHandler:()=>{c({variable_product_block_tour_shown:"yes"}),t(!1),(0,k.recordEvent)("variable_product_block_tour_dismissed")}};(0,u.useEffect)(()=>{const o=r.current!==a&&a>0&&0===r.current;r.current=a,o&&!e&&t(!0)},[a]);const{hasShownProductEditorTour:d}=(0,J.useSelect)(e=>{const{getOption:t}=e(So.optionsStore);return{hasShownProductEditorTour:"yes"===t("woocommerce_block_product_tour_shown")}},[]);return"yes"!==i&&e&&d?(0,u.createElement)($.TourKit,{config:s}):null};var lu=o(38909);const{name:uu,...du}=El,mu={example:{},edit:function({attributes:e,context:{isInSelectedTab:t}}){const o=(0,u.useRef)(!1),{invalidateResolution:r}=(0,J.useDispatch)(So.experimentalProductVariationsStore),n=(0,l.useEntityId)("postType","product"),a=(0,d.useWooBlockProps)(e),[c]=(0,l.useEntityProp)("postType","product","status"),[i]=(0,l.useEntityProp)("postType","product","has_options"),[s]=(0,H.A)("attributes"),m=(0,u.useMemo)(function(){return s?.some(e=>e.variation)},[s]),p=(0,u.useMemo)(()=>({product_id:n,order:"asc",orderby:"menu_order",has_price:!1}),[n]),{totalCountWithoutPrice:h}=(0,J.useSelect)(e=>{const{getProductVariationsTotalCount:t}=e(So.experimentalProductVariationsStore);return{totalCountWithoutPrice:i?t(p):0}},[i,p]),{updateUserPreferences:_,variable_items_without_price_notice_dismissed:v}=(0,So.useUserPreferences)(),{ref:w}=(0,ot.$)("variations",async function(e,t){if(h>0&&!o.current&&"publish"!==c&&"publish"===t?.status)return"yes"!==v&&_({variable_items_without_price_notice_dismissed:{...v||{},[n]:"no"}}),{message:(0,ie.__)("Set variation prices before adding this product.","woocommerce")}},[h]),g=!v||"yes"!==v[n],f=h>0&&g?(0,ie.sprintf)((0,ie.__)("%d variations do not have prices. Variations that do not have prices will not be visible to customers.","woocommerce"),h):"";return m?(0,u.createElement)("div",{...a},(0,u.createElement)(iu,{isVisible:t,ref:w,noticeText:f,onNoticeDismiss:()=>{o.current=!0,_({variable_items_without_price_notice_dismissed:{...v||{},[n]:"yes"}})},noticeActions:[{label:(0,ie.__)("Set prices","woocommerce"),onClick:function(e){(0,k.recordEvent)("product_variations_set_prices_select",{source:V.bG});const t=(0,J.resolveSelect)(So.experimentalProductVariationsStore).getProductVariations({product_id:n,order:"asc",orderby:"menu_order",has_price:!1,_fields:["id"],per_page:h});(0,Bl.f)({onOk(o){(0,k.recordEvent)("product_variations_set_prices_update",{source:V.bG}),t.then(t=>{e(t.map(({id:e})=>({id:e,regular_price:o})))})}})},className:"is-destructive"}],onVariationTableChange:(e,t)=>{("delete"===e||"update"===e&&t&&t.find(e=>"regular_price"in e||"sale_price"in e))&&r("getProductVariationsTotalCount",[p])}}),t&&(0,u.createElement)(su,null)):(0,u.createElement)(lu.p,{names:[(0,ie.__)("Variation","woocommerce"),(0,ie.__)("Colors","woocommerce"),(0,ie.__)("Sizes","woocommerce")]})}};function pu(){return(0,p.N)({name:uu,metadata:du,settings:mu})}const hu=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"woocommerce/product-variations-options-field","title":"Product variations options","category":"woocommerce","description":"The product variations options.","keywords":["products","variations"],"textdomain":"default","attributes":{"description":{"type":"string","role":"content"}},"supports":{"align":false,"html":false,"multiple":true,"reusable":false,"inserter":false,"lock":false,"__experimentalToolbar":false},"usesContext":["postType","isInSelectedTab"],"editorStyle":"file:./editor.css"}');function _u(e){const t=(0,_e.useInstanceId)(_u,"clip-path");return(0,u.createElement)("svg",{...e,viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:!1},(0,u.createElement)("g",{clipPath:`url(#${t})`},(0,u.createElement)("path",{d:"M18.7261 9.37008H26.8168V5.47626H28.4106C29.4938 5.47626 29.9499 4.92889 29.9499 3.91198C29.9499 2.89508 29.4938 2.34771 28.4106 2.34771C27.8689 2.34771 25.6325 2.32955 25.6325 2.32955V0L28.9263 0.0181591C31.2664 0.0181591 32.6244 1.59022 32.6244 3.91198C32.6244 6.23375 31.339 7.72539 29.1206 7.811V9.37008H37.2761C37.2761 9.37008 46.6289 13.7438 46.6289 14.0136H9.31112C9.31112 13.7438 18.7287 9.37008 18.7287 9.37008H18.7261Z",fill:"#F0F0F0"}),(0,u.createElement)("path",{d:"M0 21.0152C0 21.0152 9.19987 12.1613 10.6356 11.0484C11.8717 10.0912 13.3826 9.34668 16.3213 9.34668H18.7263C19.0943 14.2315 23.023 18.076 28.0013 18.076C32.9796 18.076 36.9083 14.2315 37.2763 9.34668H39.6812C42.62 9.34668 44.1309 10.0886 45.367 11.0484C46.8001 12.1613 56 21.0152 56 21.0152L52.8202 30.3541H44.3822L44.39 56.0025H11.6074L11.6152 30.3541H3.17719L-0.00259399 21.0152H0Z",fill:"currentColor"})),(0,u.createElement)("defs",null,(0,u.createElement)("clipPath",{id:t},(0,u.createElement)("rect",{width:"56",height:"56",fill:"white",transform:"matrix(-1 0 0 1 56 0)"}))))}const{name:vu,...wu}=hu,gu={example:{},edit:function({attributes:e,context:{postType:t,isInSelectedTab:o}}){const r=(0,d.useWooBlockProps)(e),{generateProductVariations:n}=Sl(),{updateUserPreferences:a,local_attributes_notice_dismissed_ids:c=[]}=(0,So.useUserPreferences)(),[i,s]=(0,l.useEntityProp)("postType","product","attributes"),[m,p]=(0,l.useEntityProp)("postType","product","default_attributes"),h=(0,l.useEntityId)("postType",t),{attributes:_,fetchAttributes:v,handleChange:w}=Tr({allAttributes:i,isVariationAttributes:!0,productId:h,onChange(e,t){s(e),p(t),n(e,t)}});(0,u.useEffect)(()=>{o&&v()},[o,i]);const g=_.filter(e=>0===e.id).map(e=>e.name);let f="";return g.length>0&&!c?.includes(h)&&(f=(0,u.createInterpolateElement)((0,ie.__)("Buyers can’t search or filter by <attributeNames /> to find the variations. Consider adding them again as <globalAttributeLink>global attributes</globalAttributeLink> to make them easier to discover.","woocommerce"),{attributeNames:(0,u.createElement)("span",null,2===g.length?g.join((0,ie.__)(" and ","woocommerce")):g.join(", ")),globalAttributeLink:(0,u.createElement)($.Link,{href:(0,me.getAdminLink)("edit.php?post_type=product&page=product_attributes"),type:"external",target:"_blank"})})),(0,u.createElement)("div",{...r},(0,u.createElement)(Fr.W,{value:(0,u.useMemo)(function(){return _.map(e=>({...e,isDefault:m.some(t=>t.id===e.id||t.name===e.name)}))},[_,m]),onAdd:()=>{(0,k.recordEvent)("product_options_modal_add_button_click")},onChange:w,createNewAttributesAsGlobal:!0,useRemoveConfirmationModal:!0,onNoticeDismiss:()=>a({local_attributes_notice_dismissed_ids:[...c,h]}),onAddAnother:()=>{(0,k.recordEvent)("product_add_options_modal_add_another_option_button_click")},onNewModalCancel:()=>{(0,k.recordEvent)("product_options_modal_cancel_button_click")},onNewModalOpen:()=>{(0,k.recordEvent)("product_options_add_option")},onRemoveItem:()=>{(0,k.recordEvent)("product_add_options_modal_remove_option_button_click")},onRemove:()=>(0,k.recordEvent)("product_remove_option_confirmation_confirm_click"),onRemoveCancel:()=>(0,k.recordEvent)("product_remove_option_confirmation_cancel_click"),renderCustomEmptyState:function({addAttribute:e}){return(0,u.createElement)("div",{className:"wp-block-woocommerce-product-variations-options-field__empty-state"},(0,u.createElement)("div",{className:"wp-block-woocommerce-product-variations-options-field__empty-state-image"},(0,u.createElement)(_u,{className:"wp-block-woocommerce-product-variations-options-field__empty-state-image-product"}),(0,u.createElement)(_u,{className:"wp-block-woocommerce-product-variations-options-field__empty-state-image-product"}),(0,u.createElement)(_u,{className:"wp-block-woocommerce-product-variations-options-field__empty-state-image-product"})),(0,u.createElement)("p",{className:"wp-block-woocommerce-product-variations-options-field__empty-state-description"},(0,ie.__)("Sell your product in multiple variations like size or color.","woocommerce")),(0,u.createElement)("div",{className:"wp-block-woocommerce-product-variations-options-field__empty-state-actions"},(0,u.createElement)(S.Button,{variant:"primary",onClick:()=>e()},(0,ie.__)("Add options","woocommerce"))))},disabledAttributeIds:i.filter(e=>!e.variation).map(e=>e.id),termsAutoSelection:"all",uiStrings:{notice:f,globalAttributeHelperMessage:"",customAttributeHelperMessage:"",newAttributeModalNotice:"",newAttributeModalTitle:(0,ie.__)("Add variation options","woocommerce"),newAttributeModalDescription:(0,ie.__)("Select from existing attributes or create new ones to add new variations for your product. You can change the order later.","woocommerce"),attributeRemoveLabel:(0,ie.__)("Remove variation option","woocommerce"),attributeRemoveConfirmationModalMessage:(0,ie.__)("If you continue, some variations of this product will be deleted and customers will no longer be able to purchase them.","woocommerce")}}))}};function fu(){return(0,p.N)({name:vu,metadata:wu,settings:gu})}const Eu=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"woocommerce/product-single-variation-notice","title":"Notice","category":"woocommerce","description":"Notice description","keywords":["products","notice"],"textdomain":"default","attributes":{"title":{"type":"string"},"content":{"type":"string"},"isDismissible":{"type":"boolean"},"type":{"type":"string"}},"supports":{"align":false,"html":true,"multiple":true,"reusable":false,"inserter":false,"lock":false,"__experimentalToolbar":false},"editorStyle":"file:./editor.css"}');var bu=o(81079);const{name:Cu,...xu}=Eu,yu={example:{},edit:function({attributes:e}){const t=(0,d.useWooBlockProps)(e),{content:o,isDismissible:r,title:n,type:a="info"}=e,[c]=(0,l.useEntityProp)("postType","product_variation","parent_id"),{dismissedNotices:i,dismissNotice:s,isResolving:m}=function(){const{updateOptions:e}=(0,J.useDispatch)(So.optionsStore),{dismissedNotices:t,isResolving:o}=(0,J.useSelect)(e=>{const{getOption:t,hasFinishedResolution:o}=e(So.optionsStore);return{dismissedNotices:t(V.af)||[],isResolving:!o("getOption",[V.af])}},[]);return{dismissedNotices:t,dismissNotice:async t=>{const{dismissedNoticesOption:o}=await(async()=>{const{getOption:e}=(0,J.resolveSelect)(So.optionsStore);return{dismissedNoticesOption:await e(V.af)||[]}})();e({[V.af]:[...o,t]})},isResolving:o}}(),{parentName:p,isParentResolving:h}=(0,J.useSelect)(e=>{const{getEditedEntityRecord:t,hasFinishedResolution:o}=e(l.store),{name:r}=t("postType","product",c);return{parentName:r||"",isParentResolving:!o("getEditedEntityRecord",["postType","product",c])}},[c]);return i.includes(c)||m||h||""===p?null:(0,u.createElement)("div",{...t},(0,u.createElement)(bu.$,{title:n,type:a,isDismissible:r,handleDismiss:()=>{(0,k.recordEvent)("product_single_variation_notice_dismissed"),s(c)}},(0,u.createInterpolateElement)(o,{strong:(0,u.createElement)("strong",null),noticeLink:(0,u.createElement)($.Link,{href:(0,At.getNewPath)({tab:"variations"},`/product/${c}`),onClick:()=>{(0,k.recordEvent)("product_single_variation_notice_click")}}),parentProductName:(0,u.createElement)("span",null,p)})))}};function Au(){return(0,p.N)({name:Cu,metadata:xu,settings:yu})}const ku=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"woocommerce/product-has-variations-notice","title":"Notice","category":"woocommerce","description":"Notice description","keywords":["products","notice"],"textdomain":"default","attributes":{"title":{"type":"string"},"content":{"type":"string"},"buttonText":{"type":"string"},"type":{"type":"string"}},"supports":{"align":false,"html":false,"multiple":true,"reusable":false,"inserter":false,"lock":false,"__experimentalToolbar":false},"editorStyle":"file:./editor.css"}');var Su=o(36180);const{name:Pu,...Vu}=ku,Bu={example:{},edit:function({attributes:e}){const t=(0,d.useWooBlockProps)(e),{buttonText:o,content:r,title:n,type:a="info"}=e,[c]=(0,l.useEntityProp)("postType","product","attributes"),[i]=(0,l.useEntityProp)("postType","product","type"),s=(0,Su.S)(c)&&"variable"===i;return(0,u.createElement)("div",{...t},s&&(0,u.createElement)(bu.$,{content:r,title:n,type:a},(0,u.createElement)(S.Button,{isSecondary:!0,onClick:()=>(0,At.navigateTo)({url:(0,At.getNewPath)({tab:"variations"})})},o)))}};function Mu(){return(0,p.N)({name:Pu,metadata:Vu,settings:Bu})}const Fu=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"woocommerce/product-taxonomy-field","title":"Taxonomy","category":"widgets","description":"A block that displays a taxonomy field, allowing searching, selection, and creation of new items","keywords":["taxonomy"],"textdomain":"default","attributes":{"slug":{"type":"string","role":"content"},"property":{"type":"string","role":"content"},"label":{"type":"string","role":"content"},"createTitle":{"type":"string","role":"content"},"dialogNameHelpText":{"type":"string","role":"content"},"parentTaxonomyText":{"type":"string","role":"content"},"help":{"type":"string","role":"content"}},"supports":{"align":false,"html":false,"multiple":true,"reusable":false,"inserter":false,"lock":false,"__experimentalToolbar":false},"editorStyle":"file:./editor.css","usesContext":["postType","isInSelectedTab"]}');async function Lu(e,t){const o=[],r={};if(e.forEach(e=>{r[e.id]=e}),e.forEach(e=>{e.parent>0&&!r[e.parent]&&o.push(e.parent)}),o.length>0){const r=await(0,J.resolveSelect)("core").getEntityRecords("taxonomy",t,{include:o});if(r)return Lu([...r,...e],t)}return e}var Nu=(e,t={fetchParents:!0})=>{const[o,r]=(0,u.useState)(!1);return{searchEntity:async function(o){r(!0);let n=[];try{const r=await(0,J.resolveSelect)("core").getEntityRecords("taxonomy",e,{per_page:30,search:(0,$.escapeHTML)(o)});r&&(n=r,t?.fetchParents&&(n=await Lu(n,e)))}finally{r(!1)}return n},isResolving:o}};const Tu=({onCancel:e,onCreate:t,initialName:o,slug:r,hierarchical:n,dialogNameHelpText:a,parentTaxonomyText:c,title:i})=>{const[s,l]=(0,u.useState)(""),[d,m]=(0,u.useState)([]),{searchEntity:p,isResolving:h}=Nu(r),_=(0,_e.useDebounce)((0,u.useCallback)(e=>p(e||"").then(m),[]),150);(0,u.useEffect)(()=>{_("")},[]);const{saveEntityRecord:v}=(0,J.useDispatch)("core"),[w,g]=(0,u.useState)(!1),[f,E]=(0,u.useState)(null),[b,C]=(0,u.useState)(o||""),[x,y]=(0,u.useState)(null),A=(0,_e.useInstanceId)(S.BaseControl,"taxonomy_name"),k=(0,_e.useInstanceId)($.__experimentalSelectTreeControl,"parent-taxonomy-select");return(0,u.createElement)(S.Modal,{title:i,onRequestClose:e,className:"woocommerce-create-new-taxonomy-modal"},(0,u.createElement)("div",{className:"woocommerce-create-new-taxonomy-modal__wrapper"},(0,u.createElement)(S.BaseControl,{id:A,label:(0,ie.__)("Name","woocommerce"),help:f||a,className:(0,ce.A)({"has-error":f})},(0,u.createElement)(S.TextControl,{id:A,value:b,onChange:C})),n&&(0,u.createElement)($.__experimentalSelectTreeControl,{isLoading:h,label:(0,u.createInterpolateElement)(`${c||(0,ie.__)("Parent","woocommerce")} <optional/>`,{optional:(0,u.createElement)("span",{className:"woocommerce-create-new-taxonomy-modal__optional"},(0,ie.__)("(optional)","woocommerce"))}),id:k,items:d.map(e=>({label:e.name,value:String(e.id),parent:e.parent>0?String(e.parent):void 0})),shouldNotRecursivelySelect:!0,selected:x?{value:String(x.id),label:x.name}:void 0,onSelect:e=>e&&y({id:+e.value,name:e.label,parent:e.parent?+e.parent:0}),onRemove:()=>y(null),onInputChange:e=>{_(e),l(e||"")},createValue:s}),(0,u.createElement)("div",{className:"woocommerce-create-new-taxonomy-modal__buttons"},(0,u.createElement)(S.Button,{variant:"tertiary",onClick:e,disabled:w},(0,ie.__)("Cancel","woocommerce")),(0,u.createElement)(S.Button,{variant:"primary",disabled:0===b.length||w,isBusy:w,onClick:async()=>{E(null),g(!0);try{const e=await v("taxonomy",r,{name:b,parent:x?x.id:null},{throwOnError:!0});g(!1),t(e)}catch(e){if(g(!1),!e.message)throw E((0,ie.__)("Failed to create taxonomy","woocommerce")),e;E(e.message)}}},(0,ie.__)("Create","woocommerce")))))},{name:Du}=Fu,Hu={example:{},edit:function({attributes:e,context:{postType:t,isInSelectedTab:o}}){const r=(0,d.useWooBlockProps)(e),{hierarchical:n}=(0,J.useSelect)(t=>t("core").getTaxonomy(e.slug)||{hierarchical:!1},[e.slug]),{label:a,help:c,slug:i,property:s,createTitle:l,dialogNameHelpText:m,parentTaxonomyText:p,disabled:h}=e,[_,v]=(0,u.useState)(""),[w,g]=(0,u.useState)([]),{searchEntity:f,isResolving:E}=Nu(i,{fetchParents:n}),b=(0,_e.useDebounce)((0,u.useCallback)(e=>{v(e),f(e||"").then(g)},[n]),150);(0,u.useEffect)(()=>{o&&b("")},[o]);const[C,x]=(0,H.A)(s,{postType:t,fallbackValue:[]}),y=(C||[]).map(e=>({value:String(e.id),label:e.name})),[A,k]=(0,u.useState)(!1),S=w.map(e=>({parent:n&&e.parent&&e.parent>0?String(e.parent):void 0,label:e.name,value:String(e.id)}));return(0,u.createElement)("div",{...r},(0,u.createElement)(u.Fragment,null,(0,u.createElement)($.__experimentalSelectTreeControl,{id:(0,_e.useInstanceId)($.__experimentalSelectTreeControl,"woocommerce-taxonomy-select"),label:(0,u.createElement)(wt.J,{label:a,tooltip:c}),isLoading:E,disabled:h,multiple:!0,createValue:_,onInputChange:b,shouldNotRecursivelySelect:!0,shouldShowCreateButton:e=>!e||-1===S.findIndex(t=>t.label.toLowerCase()===e.toLowerCase()),onCreateNew:()=>k(!0),items:S,selected:y,onSelect:e=>{Array.isArray(e)?x([...e.map(e=>({id:+e.value,name:e.label,parent:+(e.parent||0)})),...C||[]]):x([{id:+e.value,name:e.label,parent:+(e.parent||0)},...C||[]])},onRemove:e=>{Array.isArray(e)?x((C||[]).filter(t=>!e.find(e=>e.value===String(t.id)))):x((C||[]).filter(t=>String(t.id)!==e.value))},onClear:function(){x([])},isClearingAllowed:(C||[]).length>0}),A&&(0,u.createElement)(Tu,{slug:i,hierarchical:n,title:l,dialogNameHelpText:m,parentTaxonomyText:p,onCancel:()=>k(!1),onCreate:e=>{k(!1),v(""),x([{id:e.id,name:e.name,parent:e.parent},...C||[]])},initialName:_})))}},zu=()=>(0,p.N)({name:Du,metadata:Fu,settings:Hu}),ju=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"woocommerce/product-text-field","title":"Product text field","category":"woocommerce","description":"A text field for use in the product editor.","keywords":["products","text"],"textdomain":"default","attributes":{"label":{"type":"string","role":"content"},"property":{"type":"string"},"placeholder":{"type":"string"},"help":{"type":"string"},"tooltip":{"type":"string"},"suffix":{"type":"object"},"type":{"type":"object"},"required":{"type":"object"},"pattern":{"type":"object"},"minLength":{"type":"object"},"maxLength":{"type":"object"},"min":{"type":"object"},"max":{"type":"object"}},"supports":{"align":false,"html":false,"multiple":true,"reusable":false,"inserter":false,"lock":false,"__experimentalToolbar":false},"editorStyle":"file:./editor.css","usesContext":["postType"]}');var Iu=o(21097);const{name:Ru,...Ou}=ju,Gu={example:{},edit:function({attributes:e,context:{postType:t}}){const o=(0,d.useWooBlockProps)(e),{property:r,label:n,placeholder:a,required:c,pattern:i,minLength:s,maxLength:l,min:m,max:p,help:h,tooltip:_,disabled:v,type:w,suffix:g}=e,[f,E]=(0,H.A)(r,{postType:t,fallbackValue:""}),{hasEdit:b}=(0,gt.g)(),C=(0,u.useRef)(null),{error:x,validate:y,ref:A}=(0,ot.$)(r,async function(){if(!C.current)return;const e=C.current;let t="";return e.validity.typeMismatch&&(t=w?.message??(0,ie.__)("Invalid value for the field.","woocommerce")),e.validity.valueMissing&&(t="string"==typeof c?c:(0,ie.__)("This field is required.","woocommerce")),e.validity.patternMismatch&&(t=i?.message??(0,ie.__)("Invalid value for the field.","woocommerce")),e.validity.tooShort&&(t=(0,ie.sprintf)(s?.message??(0,ie.__)("The minimum length of the field is %d","woocommerce"),s?.value)),e.validity.tooLong&&(t=(0,ie.sprintf)(l?.message??(0,ie.__)("The maximum length of the field is %d","woocommerce"),l?.value)),e.validity.rangeUnderflow&&(t=(0,ie.sprintf)(m?.message??(0,ie.__)("The minimum value of the field is %d","woocommerce"),m?.value)),e.validity.rangeOverflow&&(t=(0,ie.sprintf)(p?.message??(0,ie.__)("The maximum value of the field is %d","woocommerce"),p?.value)),e.setCustomValidity(t),e.validity.valid?void 0:{message:t}},[w,c,i,s,l,m,p,f]);return(0,u.createElement)("div",{...o},(0,u.createElement)(Iu.x,{ref:(0,_e.useMergeRefs)([C,A]),type:w?.value??"text",value:f,disabled:v,label:n,onChange:E,onBlur:()=>{b(r)&&y()},error:x,help:h,placeholder:a,tooltip:_,suffix:function(){if(!g||!f||!C.current)return;const e="url"===C.current.type&&!C.current.validity.typeMismatch;return!0===g&&e?(0,u.createElement)($.Link,{type:"external",href:f,target:"_blank",rel:"noreferrer",className:"wp-block-woocommerce-product-text-field__suffix-link"},(0,u.createElement)(qe.A,{icon:la.A,size:20})):"string"==typeof g?g:void 0}(),required:Boolean(c),pattern:i?.value,minLength:s?.value,maxLength:l?.value,min:m?.value,max:p?.value}))}},$u=()=>(0,p.N)({name:Ru,metadata:Ou,settings:Gu}),Zu=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"woocommerce/product-number-field","title":"Product number control","category":"woocommerce","description":"A reusable number field for the product editor.","keywords":["products","number","input"],"textdomain":"default","attributes":{"label":{"type":"string","role":"content"},"property":{"type":"string"},"suffix":{"type":"string"},"help":{"type":"string"},"placeholder":{"type":"string"},"min":{"type":"number"},"max":{"type":"number"},"tooltip":{"type":"string"},"required":{"type":"boolean","default":false},"step":{"type":"number","default":1}},"supports":{"align":false,"html":false,"multiple":true,"reusable":false,"inserter":false,"lock":false,"__experimentalToolbar":false},"editorStyle":"file:./editor.css"}'),{name:Uu,...qu}=Zu,Wu={example:{},edit:function({attributes:e,context:{postType:t}}){const o=(0,d.useWooBlockProps)(e),{label:r,property:n,suffix:a,placeholder:c,help:i,min:s,max:l,required:m,tooltip:p,disabled:h,step:_}=e,[v,w]=(0,H.A)(n,{postType:t,fallbackValue:""}),{hasEdit:g}=(0,gt.g)(),{error:f,validate:E}=(0,ot.$)(n,async function(){return"number"==typeof s&&v&&parseFloat(v)<s?{message:(0,ie.sprintf)((0,ie.__)("Value must be greater than or equal to %d","woocommerce"),s)}:"number"==typeof l&&v&&parseFloat(v)>l?{message:(0,ie.sprintf)((0,ie.__)("Value must be less than or equal to %d","woocommerce"),s)}:m&&!v?{message:(0,ie.__)("This field is required.","woocommerce")}:void 0},[v]);return(0,u.createElement)("div",{...o},(0,u.createElement)(jo.X,{label:r,onChange:w,value:v||"",help:i,suffix:a,placeholder:c,error:f,onBlur:()=>{g(n)&&E()},required:m,tooltip:p,disabled:h,step:_,min:s,max:l}))}},Ju=()=>(0,p.N)({name:Uu,metadata:qu,settings:Wu}),Yu=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"woocommerce/product-linked-list-field","title":"Linked product list","category":"widgets","description":"The linked product list.","keywords":["products","linked","list"],"textdomain":"default","attributes":{"property":{"type":"string","role":"content"},"emptyState":{"type":"object","default":{}}},"supports":{"align":false,"html":false,"multiple":true,"reusable":false,"inserter":false,"lock":false,"__experimentalToolbar":false},"editorStyle":"file:./editor.css","usesContext":["postType","isInSelectedTab"]}');function Ku(){return(0,u.createElement)("div",{"aria-hidden":"true","aria-label":(0,ie.__)("Loading linked products","woocommerce"),className:"woocommerce-product-list"},(0,u.createElement)("div",{role:"table"},(0,u.createElement)("div",{role:"rowgroup"},(0,u.createElement)("div",{role:"rowheader"},(0,u.createElement)("div",{role:"columnheader"},(0,u.createElement)("div",{className:"skeleton"})),(0,u.createElement)("div",{role:"columnheader"}))),(0,u.createElement)("div",{role:"rowgroup"},Array.from({length:3}).map((e,t)=>(0,u.createElement)("div",{role:"row",key:t},(0,u.createElement)("div",{role:"cell"},(0,u.createElement)("div",{className:"woocommerce-product-list__product-image skeleton"}),(0,u.createElement)("div",{className:"woocommerce-product-list__product-info"},(0,u.createElement)("div",{className:"woocommerce-product-list__product-name skeleton"}),(0,u.createElement)("div",{className:"woocommerce-product-list__product-price skeleton"}))),(0,u.createElement)("div",{role:"cell",className:"woocommerce-product-list__actions"},(0,u.createElement)("div",{className:"skeleton"}),(0,u.createElement)("div",{className:"skeleton"})))))))}var Xu=o(71003),Qu=o(6551);function ed({colorOne:e="#E0E0E0",colorTwo:t="#F0F0F0",size:o="88",style:r={}}){return(0,u.createElement)(S.SVG,{width:o,height:o,viewBox:"0 0 88 88",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:r},(0,u.createElement)(S.Path,{d:"M59.5299 29.3511H6.48494C4.38544 44.6382 0.74386 74.8826 0.105058 79.5685C-0.505262 84.0386 1.48031 87.9998 7.72592 87.9998H58.293C64.5386 87.9998 66.5241 84.0386 65.9138 79.5685C65.275 74.8826 61.6294 44.6382 59.534 29.3511H59.5299Z",fill:e}),(0,u.createElement)(S.Path,{d:"M45.1549 17.5C42.7177 15.6069 39.3976 14.6787 35.0155 14.6665C34.987 14.6665 31.024 14.6665 30.9996 14.6665C26.6175 14.6787 23.3014 15.6069 20.8601 17.5C17.9916 19.7269 16.5391 23.106 16.5391 27.5476V40.2454H23.8629V28.5898C23.8629 25.569 25.2422 22.0393 30.9833 21.9986C31.0159 21.9986 35.0033 21.9986 35.0358 21.9986C40.7769 22.0393 42.1562 25.569 42.1562 28.5898V40.2454H49.4801V27.5476C49.4801 23.106 48.0275 19.7269 45.159 17.5H45.1549Z",fill:t}),(0,u.createElement)(S.Path,{d:"M47.3921 47.6711L44.0312 87.9998H87.9987L84.2676 47.6711H47.3921Z",fill:t}),(0,u.createElement)(S.Path,{d:"M66.0147 65.9912C60.2736 65.9912 56.8477 62.4738 56.8477 56.5828V51.3188H60.5096V56.5828C60.5096 62.3272 64.6516 62.3272 66.0147 62.3272C67.3777 62.3272 71.5197 62.3272 71.5197 56.5828V51.3188H75.1817V56.5828C75.1817 62.4738 71.7557 65.9912 66.0147 65.9912Z",fill:e}))}function td({colorOne:e="#E0E0E0",colorTwo:t="#F0F0F0",size:o="88",style:r={}}){return(0,u.createElement)(S.SVG,{width:o,height:o,viewBox:"0 0 88 88",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:r},(0,u.createElement)(S.G,{clipPath:"url(#clip0_13540_198076)"},(0,u.createElement)(S.Path,{d:"M77.2539 14.7807L39.9517 14.6667C35.4172 14.6667 32.8506 17.199 32.8506 21.718V36.7241L10.818 36.6997C6.29575 36.6997 3.76167 39.2645 3.76167 43.7957L3.66797 81.0294L84.3632 81.0742V21.8319C84.3632 17.313 81.7965 14.7807 77.262 14.7807H77.2539Z",fill:e}),(0,u.createElement)(S.Path,{d:"M47.5672 47.6794H40.2461V54.9953H47.5672V47.6794Z",fill:t}),(0,u.createElement)(S.Path,{d:"M62.3836 47.6794H55.0625V54.9953H62.3836V47.6794Z",fill:t}),(0,u.createElement)(S.Path,{d:"M77.0242 47.6794H69.7031V54.9953H77.0242V47.6794Z",fill:t}),(0,u.createElement)(S.Path,{d:"M47.5672 62.3232H40.2461V69.6391H47.5672V62.3232Z",fill:t}),(0,u.createElement)(S.Path,{d:"M62.3836 62.3232H55.0625V69.6391H62.3836V62.3232Z",fill:t}),(0,u.createElement)(S.Path,{d:"M76.9617 62.3232H69.6406V69.6391H76.9617V62.3232Z",fill:t}),(0,u.createElement)(S.Path,{d:"M77.0221 36.6795L40.3555 36.7243V22.0682L77.0221 22.0234V36.6795Z",fill:t}),(0,u.createElement)(S.Path,{d:"M88 80.8988V80.7034L0 80.6667V87.9581L88 87.9948V80.8988Z",fill:t}),(0,u.createElement)(S.Path,{d:"M29.4451 14.6667C27.844 14.6667 27.3225 16.6901 25.7621 16.6901C24.2018 16.6901 23.6844 14.6667 22.0832 14.6667C20.4821 14.6667 19.9607 16.6901 18.4003 16.6901C16.8399 16.6901 16.3225 14.6667 14.7173 14.6667C13.1121 14.6667 12.5947 16.6901 11.0344 16.6901C9.47399 16.6901 8.95658 14.6667 7.35547 14.6667V19.5643V62.3275H29.4451V14.6667Z",fill:t})))}function od(e,t){switch(t.type){case"SELECT_SEARCHED_PRODUCT":case"REMOVE_LINKED_PRODUCT":return t.payload.selectedProduct?{...e,...t.payload}:e;default:return{...e,...t.payload}}}function rd({image:e,tip:t}){switch(e){case"CashRegister":return(0,u.createElement)(td,null);case"ShoppingBags":return(0,u.createElement)(ed,null);default:return/^https?:\/\//.test(e)?(0,u.createElement)("img",{src:e,alt:t,height:88,width:88}):null}}const{name:nd,...ad}=Yu,cd={example:{},edit:function({attributes:e,context:{postType:t,isInSelectedTab:o}}){const{property:r,emptyState:n}=e,a=(0,u.useRef)(!1),[,c]=(0,u.useState)(""),[i,s]=(0,u.useState)([]),[m,p]=(0,u.useState)(!1),h=(0,d.useWooBlockProps)(e),[_,v]=(0,u.useReducer)(od,{linkedProducts:[]}),w=(0,l.useEntityId)("postType",t),g=function(e){return async function(t){return 0===t.length?(e({type:"SET_LINKED_PRODUCTS",payload:{linkedProducts:[]}}),Promise.resolve([])):(e({type:"LOADING_LINKED_PRODUCTS",payload:{isLoading:!0}}),(0,J.resolveSelect)(So.productsStore).getProducts({include:t}).then(t=>(e({type:"SET_LINKED_PRODUCTS",payload:{linkedProducts:t}}),t)).finally(()=>{e({type:"LOADING_LINKED_PRODUCTS",payload:{isLoading:!1}})}))}}(v),E=function(e){return function(t,o){Array.isArray(t)||(t=[t]);const r=[...o,...t];return e({type:"SELECT_SEARCHED_PRODUCT",payload:{selectedProduct:t,linkedProducts:r}}),r.map(e=>e.id)}}(v),b=function(e){return function(t,o){const r=o.reduce((e,o)=>o.id===t.id?e:[...e,o],[]);return e({type:"REMOVE_LINKED_PRODUCT",payload:{selectedProduct:t,linkedProducts:r}}),r.map(e=>e.id)}}(v),[C,x]=(0,H.A)(r,{postType:t});function y(e="",t=[]){return c(e),p(!0),async function(e="",t=[]){return(0,J.resolveSelect)(So.productsStore).getProducts({search:e,orderby:"title",order:"asc",per_page:5,exclude:t})}(e,t).then(e=>{s(e)}).finally(()=>{p(!1)})}(0,u.useEffect)(()=>{!_.selectedProduct&&C&&C.length>0&&g(C)},[C,_.selectedProduct]);const A=(0,_e.useDebounce)(function(e=""){y(e,[...C||[],w])},300);(0,u.useEffect)(()=>{o&&!a.current&&(a.current=!0,y("",[...C||[],w]))},[o,a,C,w]);const P=(0,u.useCallback)(e=>{if((C||[]).includes(e.id))return;const t=E(e,_.linkedProducts);x(t),y("",[...t||[],w]),(0,k.recordEvent)("linked_products_product_add",{source:V.bG,field:r,product_id:w,linked_product_id:e.id})},[C,_.linkedProducts]),[B,M]=(0,u.useState)(!1);return(0,u.createElement)("div",{...h},(0,u.createElement)(f.V,null,(0,u.createElement)(S.Button,{variant:"tertiary",icon:Ti,onClick:async function(){(0,k.recordEvent)("linked_products_choose_related_click",{source:V.bG,field:r}),v({type:"LOADING_LINKED_PRODUCTS",payload:{isLoading:!0}}),M(!0);const e=await async function({postId:e,postType:t="product",forceRequest:o=!1,exclude:r=[]}){const{getEditedEntityRecord:n}=(0,J.select)("core"),a=n("postType",t,e),c={categories:a?.categories?a.categories.map(e=>e.id):[],tags:a?.tags?a.tags.map(e=>e.id):[],exclude:r?.length?r:[e],limit:4};return o&&await(0,J.dispatch)(So.productsStore).invalidateResolution("getSuggestedProducts",[c]),await(0,J.resolveSelect)(So.productsStore).getSuggestedProducts(c)}({postId:w,forceRequest:!0});if(v({type:"LOADING_LINKED_PRODUCTS",payload:{isLoading:!1}}),M(!1),!e)return;const t=E(e,[]);x(t)},isBusy:B,disabled:B},(0,ie.__)("Choose products for me","woocommerce"))),(0,u.createElement)("div",{className:"wp-block-woocommerce-product-linked-list-field__form-group-content"},(0,u.createElement)(Qu._,{items:i,filter:A,onSelect:P,isLoading:m,selected:null})),_.isLoading&&(0,u.createElement)(Ku,null),!_.isLoading&&0===_.linkedProducts.length&&(0,u.createElement)(_l,{tip:n.tip,dismissPreferenceId:`woocommerce-product-${r}-advice-card-dismissed`,isDismissible:n.isDismissible,onDismiss:function(){(0,k.recordEvent)("linked_products_placeholder_dismiss",{source:V.bG,field:r})}},(0,u.createElement)(rd,{...n})),!_.isLoading&&_.linkedProducts.length>0&&(0,u.createElement)(Xu.E,{products:_.linkedProducts,onRemove:function(e){const t=b(e,_.linkedProducts);x(t),y("",[...t||[],w]),(0,k.recordEvent)("linked_products_product_remove",{source:V.bG,field:r,product_id:w,linked_product_id:e.id})},onEdit:function(e){(0,k.recordEvent)("linked_products_product_select",{source:V.bG,field:r,product_id:w,linked_product_id:e.id})},onPreview:function(e){(0,k.recordEvent)("linked_products_product_preview_click",{source:V.bG,field:r,product_id:w,linked_product_id:e.id})}}))}};function id(){return(0,p.N)({name:nd,metadata:ad,settings:cd})}const sd=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"woocommerce/product-text-area-field","title":"Product textarea block","category":"woocommerce","description":"A text-area field for use in the product editor.","keywords":["textarea","rich-text"],"textdomain":"default","attributes":{"property":{"type":"string"},"label":{"type":"string","role":"content"},"placeholder":{"type":"string"},"help":{"type":"string"},"required":{"type":"string"},"tooltip":{"type":"string"},"disabled":{"type":"boolean"},"align":{"type":"string","enum":["left","center","right","justify"]},"mode":{"type":"string","enum":["plain-text","rich-text"],"default":"rich-text"},"allowedFormats":{"type":"array","default":["core/bold","core/code","core/italic","core/link","core/strikethrough","core/underline","core/text-color","core/subscript","core/superscript","core/unknown"]},"direction":{"type":"string","enum":["ltr","rtl"]}},"supports":{"align":false,"html":false,"multiple":true,"reusable":false,"inserter":false,"lock":false,"__experimentalToolbar":true}}');function ld({direction:e,onChange:t}){return(0,ie.isRTL)()?(0,u.createElement)(S.ToolbarButton,{icon:Uo,title:(0,ie._x)("Left to right","editor button","woocommerce"),isActive:"ltr"===e,onClick:()=>t?.("ltr"===e?void 0:"ltr")}):null}const ud=[{icon:Wo,title:(0,ie.__)("Align text left","woocommerce"),align:"left"},{icon:Jo,title:(0,ie.__)("Align text center","woocommerce"),align:"center"},{icon:Yo,title:(0,ie.__)("Align text right","woocommerce"),align:"right"},{icon:Ko,title:(0,ie.__)("Align text justify","woocommerce"),align:"justify"}];function dd({align:e,setAlignment:t}){return(0,u.createElement)(P.AlignmentControl,{alignmentControls:ud,value:e,onChange:t})}const{name:md,...pd}=sd,hd={example:{},edit:function e({attributes:t,setAttributes:o,context:{postType:r}}){const{property:n,label:a,placeholder:c,help:i,required:s,note:l,tooltip:m,disabled:p=!1,align:h,allowedFormats:_,direction:v,mode:w="rich-text"}=t,g=(0,d.useWooBlockProps)(t,{className:"wp-block-woocommerce-product-text-area-field",style:{direction:v}}),f=(0,_e.useInstanceId)(e,"wp-block-woocommerce-product-content-field__content"),E=f.toString()+"__label";if(!n)throw new Error((0,ie.__)("Property attribute is required.","woocommerce"));const[b,C]=(0,H.A)(n,{postType:r}),{handleBlur:x}=(0,Qo.p)(),y=(0,u.useRef)(null),A=(0,u.useRef)(null),k="rich-text"===w,V="plain-text"===w;return(0,u.createElement)("div",{...g},k&&(0,u.createElement)(P.BlockControls,{group:"block"},(0,u.createElement)(dd,{align:h,setAlignment:function(e){o({align:e})}}),(0,u.createElement)(ld,{direction:v,onChange:function(e){o({direction:e})}})),(0,u.createElement)(S.BaseControl,{id:f.toString(),label:(0,u.createElement)(wt.J,{label:a||"",labelId:E,required:s,note:l,tooltip:m,onClick:k?function(){y.current?.focus()}:function(){A.current?.focus()}}),help:i},k&&(0,u.createElement)(P.RichText,{ref:y,id:f.toString(),"aria-labelledby":E,identifier:"content",tagName:"p",value:b||"",onChange:C,"data-empty":Boolean(b),className:(0,ce.A)("components-summary-control",{[`has-text-align-${h}`]:h}),dir:v,allowedFormats:_,placeholder:c,required:s,"aria-required":s,readOnly:p,onBlur:x}),V&&(0,u.createElement)(S.TextareaControl,{ref:A,"aria-labelledby":E,value:b||"",onChange:C,placeholder:c,required:s,disabled:p,onBlur:x})))},icon:re},_d=()=>(0,p.N)({name:md,metadata:pd,settings:hd}),vd=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"woocommerce/product-select-field","title":"Product select field","category":"woocommerce","description":"A select field for use in the product editor.","keywords":["products","select"],"textdomain":"default","attributes":{"label":{"type":"string","role":"content"},"property":{"type":"string"},"help":{"type":"string"},"tooltip":{"type":"string"},"disabled":{"type":"boolean"},"multiple":{"type":"boolean","default":false},"options":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"value":{"type":"string"},"disabled":{"type":"boolean","default":false}}},"default":[]}},"supports":{"align":false,"html":false,"multiple":true,"reusable":false,"inserter":false,"lock":false,"__experimentalToolbar":false},"usesContext":["postType"]}'),{name:wd,...gd}=vd,fd={example:{},edit:function({attributes:e,context:{postType:t}}){const o=(0,d.useWooBlockProps)(e),{property:r,label:n,note:a,help:c,tooltip:i,disabled:s,options:l,multiple:m}=e,[p,h]=(0,H.A)(r,{postType:t,fallbackValue:""});return Array.isArray(p),(0,u.createElement)("div",{...o},(0,u.createElement)(S.SelectControl,{value:p,disabled:s,label:(0,u.createElement)(wt.J,{label:n,note:a,tooltip:i}),onChange:h,help:function(){if(c)return(0,u.createElement)("span",{dangerouslySetInnerHTML:{__html:(0,Ft.sanitizeHTML)(c)}})}(),options:l,multiple:m}))}},Ed=()=>(0,p.N)({name:wd,metadata:gd,settings:fd}),bd=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"woocommerce/product-notice-field","title":"Product notice field","category":"woocommerce","description":"A notice field for use in the product editor.","keywords":["products","notice"],"textdomain":"default","attributes":{"message":{"type":"string","role":"content"}},"supports":{"align":false,"html":false,"multiple":true,"reusable":false,"inserter":false,"lock":false,"__experimentalToolbar":false},"usesContext":["postType"]}'),{name:Cd,...xd}=bd,yd={example:{},edit:function({attributes:e}){const t=(0,d.useWooBlockProps)(e);return(0,u.createElement)("div",{...t},(0,u.createElement)(bu.$,{content:(0,u.createElement)("div",{dangerouslySetInnerHTML:{__html:(0,Ft.sanitizeHTML)(e.message)}})}))}},Ad=()=>(0,p.N)({name:Cd,metadata:xd,settings:yd});function kd(){const e=(0,i.__experimentalGetCoreBlocks)().filter(e=>!(0,c.getBlockType)(e.name));(0,i.registerCoreBlocks)(e);const t=Object.values(a).map(e=>e()),o=[...e,...t];return function(){o.forEach(e=>e&&(0,c.unregisterBlockType)(e.name))}}},38909:(e,t,o)=>{"use strict";o.d(t,{p:()=>n});var r=o(86087);function n({names:e=[],...t}){return(0,r.createElement)("div",{...t,role:"none",className:"woocommerce-product-empty-state"},e.map(e=>(0,r.createElement)("div",{key:e,className:"woocommerce-product-empty-state__row"},""===e?(0,r.createElement)("div",{className:"woocommerce-product-empty-state__name"}):(0,r.createElement)("div",null,e),(0,r.createElement)("div",null,(0,r.createElement)("div",{className:"woocommerce-product-empty-state__value"})),(0,r.createElement)("div",null,(0,r.createElement)("div",{className:"woocommerce-product-empty-state__actions"})))))}},85273:(e,t,o)=>{"use strict";o.d(t,{w:()=>c});var r=o(86087),n=o(94111),a=o(4921);function c({product:e,className:t,...o}){const{formatAmount:c}=(0,r.useContext)(n.CurrencyContext);return(0,r.createElement)(r.Fragment,null,(Boolean(e.regular_price)||Boolean(e.price))&&(0,r.createElement)("span",{...o,className:(0,a.A)("woocommerce-product-formatted-price",t)},e.on_sale&&(0,r.createElement)("span",{translate:"no"},e.sale_price?c(e.sale_price):c(e.price)),e.regular_price&&(0,r.createElement)("span",{translate:"no",className:(0,a.A)({"woocommerce-product-formatted-price--on-sale":e.on_sale})},c(e.regular_price))))}},74214:(e,t,o)=>{"use strict";o.d(t,{j:()=>s});var r=o(86087),n=o(56427),a=o(91128),c=o(11753),i=o(8088);const s=({children:e,label:t,icon:o,title:s})=>{const[l,u]=(0,r.useState)(!1),d="function"==typeof e?e({isOpen:l,setOpen:u}):e;return(0,r.createElement)(c.A,{scope:i.LG},(0,r.createElement)(r.Fragment,null,(0,r.createElement)(n.Button,{variant:"tertiary",icon:o??a.A,label:t,onClick:()=>u(!l)}),l&&(0,r.createElement)(n.Modal,{title:s,onRequestClose:()=>u(!1)},d)))}},94866:(e,t,o)=>{"use strict";o.d(t,{t:()=>s});var r=o(86087),n=o(56427),a=o(91128),c=o(11753),i=o(8088);const s=({children:e,label:t,icon:o})=>{const[s,l]=(0,r.useState)(!1),u="function"==typeof e?e({isVisible:s,setVisible:l}):e;return(0,r.createElement)(c.A,{scope:i.LG},(0,r.createElement)(r.Fragment,null,(0,r.createElement)(n.Button,{variant:"tertiary",icon:o??a.A,label:t,onClick:()=>l(!s)}),s&&(0,r.createElement)(n.Popover,{focusOnMount:!0,onFocusOutside:()=>l(!1),onClose:()=>l(!1)},u)))}},67525:(e,t,o)=>{"use strict";o.d(t,{I:()=>x});var r=o(56427),n=o(3582),a=o(47143),c=o(86087),i=o(96476),s=o(88437),l=o(78509),u=o(96205),d=o(27723),m=o(53031),p=o(47189),h=o(43237),_=o(15703),v=o(83306),w=o(37532),g=o(9777),f=o(29989);function E(e,t){const{createSuccessNotice:o}=(0,a.dispatch)("core/notices"),r=function(e,t){return"future"===e.status?(0,d.sprintf)((0,d.__)("Product scheduled for %s.","woocommerce"),(0,f.Uq)(`${e.date_created_gmt}+00:00`)):"publish"===t||"future"===t?(0,d.__)("Product updated.","woocommerce"):(0,d.__)("Product published.","woocommerce")}(e,t);o(r,{icon:"🎉",actions:[{label:(0,d.__)("View in store","woocommerce"),url:e.permalink,onClick(t){t.preventDefault(),window.open(e.permalink,"_blank")}}]})}var b=o(8088);function C({postType:e,visibleTab:t="general",...o}){const{isScheduling:u,isScheduled:m,schedule:f,date:C,formattedDate:x}=(0,h.M)(e),[y,A]=(0,c.useState)(),{copyToDraft:k,trash:S}=(0,p.O)(e),{createErrorNotice:P,createSuccessNotice:V}=(0,a.useDispatch)("core/notices"),[,,B]=(0,n.useEntityProp)("postType",e,"status"),{getProductErrorMessageAndProps:M}=(0,s.u)();function F(e){f(e).then(e=>{(0,l.R)("product_schedule",e),E(e)}).catch(async e=>{const{message:o,errorProps:r}=await M(e,t);P(o,r)}).finally(()=>{A(void 0)})}return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(w.ButtonWithDropdownMenu,{...o,onToggle:e=>{e&&(0,v.recordEvent)("product_publish_dropdown_open",{source:b.bG}),o.onToggle?.(e)},renderMenu:function({onClose:e}){return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(r.MenuGroup,null,m?(0,c.createElement)(c.Fragment,null,(0,c.createElement)(r.MenuItem,{onClick:()=>{F(),e&&e()}},(0,d.__)("Publish now","woocommerce")),(0,c.createElement)(r.MenuItem,{info:x,onClick:()=>{A("edit"),e&&e()}},(0,d.__)("Edit schedule","woocommerce"))):(0,c.createElement)(r.MenuItem,{onClick:()=>{(0,v.recordEvent)("product_schedule_publish",{source:b.bG}),A("schedule"),e&&e()}},(0,d.__)("Schedule publish","woocommerce"))),"trash"!==B&&(0,c.createElement)(r.MenuGroup,null,(0,c.createElement)(r.MenuItem,{onClick:()=>{k().then(e=>{(0,l.R)("product_copied_to_draft",e),V((0,d.__)("Product successfully duplicated","woocommerce"));const t=(0,i.getNewPath)({},`/product/${e.id}`);(0,i.navigateTo)({url:t})}).catch(async e=>{const{message:o,errorProps:r}=await M(e,t);P(o,r)}),e&&e()}},(0,d.__)("Copy to a new draft","woocommerce")),(0,c.createElement)(r.MenuItem,{isDestructive:!0,onClick:()=>{S().then(e=>{(0,l.R)("product_delete",e),V((0,d.__)("Product successfully deleted","woocommerce"));const t=(0,_.getAdminLink)("edit.php?post_type=product");(0,i.navigateTo)({url:t})}).catch(async e=>{const{message:o,errorProps:r}=await M(e,t);P(o,r)}),e&&e()}},(0,d.__)("Move to trash","woocommerce"))))}}),y&&(0,c.createElement)(g.Y,{postType:e,value:"edit"===y?C:void 0,isScheduling:u,onCancel:()=>A(void 0),onSchedule:F}))}function x({productType:e="product",isMenuButton:t,visibleTab:o="general",..._}){const{createErrorNotice:v}=(0,a.useDispatch)("core/notices"),{maybeShowFeedbackBar:w}=(0,u.A)(),{getProductErrorMessageAndProps:g}=(0,s.u)(),[,,f]=(0,n.useEntityProp)("postType",e,"status"),b=function({productType:e="product",disabled:t,onClick:o,onPublishSuccess:r,onPublishError:a,...c}){const{isValidating:i,isDirty:s,isPublishing:l,publish:u}=(0,p.O)(e),[,,_]=(0,n.useEntityProp)("postType",e,"status"),{isScheduled:v}=(0,h.M)(e),w=l||i,g="draft"!==_&&(t||w||!s),f=()=>u().then(r).catch(a);return(0,m.useShortcut)("core/editor/save",e=>{e.preventDefault(),g||"publish"!==_&&"future"!==_||f()}),{children:v?(0,d.__)("Schedule","woocommerce"):"publish"===_||"future"===_?(0,d.__)("Update","woocommerce"):(0,d.__)("Publish","woocommerce"),...c,isBusy:w,"aria-disabled":g,variant:"primary",onClick:function(e){g?e.preventDefault?.():(o&&o(e),f())}}}({productType:e,..._,onPublishSuccess(e){if(("publish"===e.status||"future"===e.status)&&(0,l.R)("product_update",e),E(e,f),w(),"auto-draft"===f||"draft"===f){const t=(0,i.getNewPath)({},`/product/${e.id}`);(0,i.navigateTo)({url:t})}},async onPublishError(e){const{message:t,errorProps:r}=await g(e,o);v(t,r)}});if("product"===e&&t){let t=function(t){return(0,c.createElement)(C,{...t,postType:e,visibleTab:o})};return(0,c.createElement)(C,{...b,postType:e,controls:void 0,renderMenu:t,visibleTab:o})}return(0,c.createElement)(r.Button,{...b})}},94617:(e,t,o)=>{"use strict";o.d(t,{o:()=>i});var r=o(56427),n=o(86087),a=o(98846);const c="WooProductMenuMenuItem",i=({children:e,order:t=1})=>(0,n.createElement)(r.Fill,{name:c},o=>(0,a.createOrderedChildren)(e,t,o));i.Slot=({fillProps:e})=>(0,n.createElement)(r.Slot,{name:c,fillProps:e},a.sortFillsByOrder)},84246:(e,t,o)=>{"use strict";o.d(t,{L1:()=>n,PK:()=>r,g1:()=>a});const r="woocommerce-product-editor-settings-sidebar",n="woocommerce/product-editor/modal-block-editor/sidebar",a=`${n}/plugin-more-menu`},36664:(e,t,o)=>{"use strict";o.d(t,{P:()=>s});var r=o(29491),n=o(56427),a=o(92279),c=o(59932),i=o(84246);const s=(0,r.compose)((0,a.withPluginContext)((e,t)=>({as:t.as??n.MenuItem,icon:t.icon||e.icon,name:i.g1})))(c.A)},2341:(e,t,o)=>{"use strict";o.d(t,{w:()=>c});var r=o(86087),n=o(84246);const a=(0,r.lazy)(()=>o.e(4277).then(o.bind(o,34277)).then(e=>({default:e.ComplementaryArea})));function c({className:e,...t}){return(0,r.createElement)(a,{panelClassName:e,className:"woocommerce-iframe-editor__sidebar",scope:n.L1,...t})}},87202:(e,t,o)=>{"use strict";o.r(t),o.d(t,{AddNewShippingClassModal:()=>f.h,__experimentalAddProductsModal:()=>P.L,__experimentalAttributeControl:()=>w.W,__experimentalAttributes:()=>g.e,__experimentalBlockFill:()=>V.P,__experimentalBlockIcon:()=>p.t,__experimentalBlockSlot:()=>B.A,__experimentalButtonWithDropdownMenu:()=>L.ButtonWithDropdownMenu,__experimentalCheckboxControl:()=>A.S,__experimentalComboboxControl:()=>G.x,__experimentalCustomFields:()=>I.f,__experimentalEditor:()=>d.K,__experimentalFormattedPrice:()=>N.w,__experimentalInitBlocks:()=>m.X,__experimentalLabel:()=>F.J,__experimentalManageDownloadLimitsModal:()=>y.Z,__experimentalModalBlockEditorPluginMoreMenuItem:()=>O.P,__experimentalModalBlockEditorPluginSidebar:()=>R.w,__experimentalNotice:()=>z.$,__experimentalNumberControl:()=>k.X,__experimentalPluginHeaderItemModal:()=>l.j,__experimentalPluginHeaderItemPopover:()=>u.t,__experimentalProductFieldSection:()=>r.r,__experimentalProductImage:()=>H.X,__experimentalProductList:()=>T.E,__experimentalProductMVPFeedbackModal:()=>h.L,__experimentalProductMVPFeedbackModalContainer:()=>_.A,__experimentalProductSectionLayout:()=>n.D,__experimentalProductSelect:()=>D._,__experimentalSchedulePublishModal:()=>j.Y,__experimentalSectionActions:()=>M.V,__experimentalShippingDimensionsImage:()=>v.B,__experimentalTextControl:()=>S.x,__experimentalVariationQuickUpdateMenuItem:()=>b.M,__experimentalVariationSwitcherFooter:()=>E.m,__experimentalWooProductFieldItem:()=>a.Q,__experimentalWooProductMoreMenuItem:()=>s.o,__experimentalWooProductSectionItem:()=>c.R,__experimentalWooProductTabItem:()=>i.N});var r=o(30837),n=o(61483),a=o(38823),c=o(25241),i=o(21353),s=o(94617),l=o(74214),u=o(94866),d=o(57195),m=o(96869),p=o(42009),h=o(25910),_=o(68677),v=o(23709),w=o(29462),g=o(10441),f=o(31203),E=o(31232),b=o(69770),C=o(4283),x={};for(const e in C)["default","__experimentalAddProductsModal","__experimentalAttributeControl","__experimentalAttributes","__experimentalBlockFill","__experimentalBlockIcon","__experimentalBlockSlot","__experimentalButtonWithDropdownMenu","__experimentalCheckboxControl","__experimentalComboboxControl","__experimentalCustomFields","__experimentalEditor","__experimentalFormattedPrice","__experimentalInitBlocks","__experimentalLabel","__experimentalManageDownloadLimitsModal","__experimentalModalBlockEditorPluginMoreMenuItem","__experimentalModalBlockEditorPluginSidebar","__experimentalNotice","__experimentalNumberControl","__experimentalPluginHeaderItemModal","__experimentalPluginHeaderItemPopover","__experimentalProductFieldSection","__experimentalProductImage","__experimentalProductList","__experimentalProductMVPFeedbackModal","__experimentalProductMVPFeedbackModalContainer","__experimentalProductSectionLayout","__experimentalProductSelect","__experimentalSchedulePublishModal","__experimentalSectionActions","__experimentalShippingDimensionsImage","__experimentalTextControl","__experimentalVariationQuickUpdateMenuItem","__experimentalVariationSwitcherFooter","__experimentalWooProductFieldItem","__experimentalWooProductMoreMenuItem","__experimentalWooProductSectionItem","__experimentalWooProductTabItem","AddNewShippingClassModal"].indexOf(e)<0&&(x[e]=()=>C[e]);o.d(t,x);var y=o(67273),A=o(3113),k=o(71569),S=o(21097),P=o(59771),V=o(92218),B=o(61219),M=o(2337),F=o(64557),L=o(37532),N=o(85273),T=o(71003),D=o(6551),H=o(53513),z=o(81079),j=o(9777),I=o(496),R=o(2341),O=o(36664),G=o(48617)},64557:(e,t,o)=>{"use strict";o.d(t,{J:()=>l});var r=o(86087),n=o(27723),a=o(5520),c=o(72541),i=o(98846),s=o(42435);const l=({label:e,labelId:t,required:o,tooltip:l,note:u,onClick:d})=>{let m=e;o?m=u?.length?(0,r.createInterpolateElement)((0,n.__)("<label/> <note /> <required/>","woocommerce"),{label:(0,r.createElement)("span",{dangerouslySetInnerHTML:{__html:(0,s.sanitizeHTML)(e)}}),note:(0,r.createElement)("span",{className:"woocommerce-product-form-label__note"},u),required:(0,r.createElement)("span",{"aria-hidden":"true",className:"woocommerce-product-form-label__required"},(0,n.__)("*","woocommerce"))}):(0,r.createInterpolateElement)((0,n.__)("<label/> <required/>","woocommerce"),{label:(0,r.createElement)("span",null,e),required:(0,r.createElement)("span",{"aria-hidden":"true",className:"woocommerce-product-form-label__required"},(0,n.__)("*","woocommerce"))}):u?.length&&(m=(0,r.createInterpolateElement)((0,n.__)("<label/> <note />","woocommerce"),{label:(0,r.createElement)("span",null,e),note:(0,r.createElement)("span",{className:"woocommerce-product-form-label__note"},u)}));const p="string"==typeof m?{dangerouslySetInnerHTML:{__html:(0,s.sanitizeHTML)(e)}}:{};return(0,r.createElement)("div",{className:"woocommerce-product-form-label__label"},(0,r.createElement)("span",{id:t,onClick:d,...p},(0,r.isValidElement)(m)?m:null),l&&(0,r.createElement)(i.__experimentalTooltip,{text:(0,r.createElement)("span",{dangerouslySetInnerHTML:{__html:(0,s.sanitizeHTML)(l)}}),position:"top center",className:"woocommerce-product-form-label__tooltip"},(0,r.createElement)("span",{className:"woocommerce-product-form-label__icon"},(0,r.createElement)(a.A,{icon:c.A,size:18,fill:"#949494"}))))}},67273:(e,t,o)=>{"use strict";o.d(t,{Z:()=>h});var r=o(4921),n=o(29491),a=o(86087),c=o(27723),i=o(56427),s=o(71569);const l=0,u=1e10,d=0,m=1e10;function p(e){return null===e?"0":-1===e?"":String(e)}function h({initialValue:e,onSubmit:t,onClose:o}){const[h,_]=(0,a.useState)(p(e.downloadLimit)),[v,w]=(0,a.useState)(p(e.downloadExpiry)),[g,f]=(0,a.useState)({});function E(){return h&&!Number.isInteger(Number(h))?(f(e=>({...e,downloadLimit:(0,c.__)("Download limit must be an integer number","woocommerce")})),!1):Number.parseInt(h,10)<l?(f(e=>({...e,downloadLimit:(0,c.sprintf)((0,c.__)("Download limit must be greater than or equal to %d","woocommerce"),l)})),!1):(f(({downloadLimit:e,...t})=>t),!0)}function b(){return v&&!Number.isInteger(Number(v))?(f(e=>({...e,downloadExpiry:(0,c.__)("Expiry period must be an integer number","woocommerce")})),!1):Number.parseInt(v,10)<d?(f(e=>({...e,downloadExpiry:(0,c.sprintf)((0,c.__)("Expiry period must be greater than or equal to %d","woocommerce"),d)})),!1):(f(({downloadExpiry:e,...t})=>t),!0)}const C={value:h,onChange:_,id:(0,n.useInstanceId)(i.BaseControl,"product_download_limit_field"),min:l,max:u,className:(0,r.A)({"has-error":g.downloadLimit}),label:(0,c.__)("Download limit","woocommerce"),help:(0,c.__)("Decide how many times customers can download files after purchasing the product. Leave blank for unlimited re-downloads.","woocommerce"),error:g.downloadLimit,placeholder:(0,c.__)("Unlimited","woocommerce"),suffix:(0,c.__)("times","woocommerce"),onBlur(){E()}},x={value:v,onChange:w,id:(0,n.useInstanceId)(i.BaseControl,"product_download_expiry_field"),min:d,max:m,className:(0,r.A)({"has-error":g.downloadExpiry}),label:(0,c.__)("Expiry period","woocommerce"),help:(0,c.__)("Decide how long customers can access the files after purchasing the product. Leave blank for unlimited access.","woocommerce"),error:g.downloadExpiry,placeholder:(0,c.__)("Unlimited","woocommerce"),suffix:(0,c.__)("days","woocommerce"),onBlur(){b()}};return(0,a.createElement)(i.Modal,{title:(0,c.__)("Manage download limits","woocommerce"),className:"woocommerce-manage-download-limits-modal",onRequestClose:o},(0,a.createElement)("form",{noValidate:!0,onSubmit:function(e){e.preventDefault();const o=E(),r=b();o&&r&&t({downloadLimit:""===h?-1:Number.parseInt(h,10),downloadExpiry:""===v?-1:Number.parseInt(v,10)})}},(0,a.createElement)("div",{className:"woocommerce-manage-download-limits-modal__content"},(0,a.createElement)(s.X,{...C}),(0,a.createElement)(s.X,{...x})),(0,a.createElement)("div",{className:"woocommerce-manage-download-limits-modal__actions"},(0,a.createElement)(i.Button,{variant:"tertiary",type:"button",onClick:function(){o()}},(0,c.__)("Cancel","woocommerce")),(0,a.createElement)(i.Button,{variant:"primary",type:"submit"},(0,c.__)("Save","woocommerce")))))}},27932:(e,t,o)=>{"use strict";o.d(t,{Y:()=>s});var r=o(4921),n=o(56427),a=o(86087),c=o(27723),i=o(76938);const s=({as:e=n.DropdownMenu,className:t,label:o=(0,c.__)("Options","woocommerce"),popoverProps:s,toggleProps:l,children:u})=>(0,a.createElement)(e,{className:(0,r.A)("interface-more-menu-dropdown",t),icon:i.A,label:o,popoverProps:{placement:"bottom-end",...s,className:(0,r.A)("interface-more-menu-dropdown__content",s?.className)},toggleProps:{tooltipPosition:"bottom",...l,size:"compact"}},({onClose:e})=>u(e))},81079:(e,t,o)=>{"use strict";o.d(t,{$:()=>i});var r=o(86087),n=o(4921),a=o(56427),c=o(91218);function i({title:e="",content:t="",className:o,type:i="info",children:s,isDismissible:l=!1,handleDismiss:u=()=>{}}){return(0,r.createElement)("div",{className:(0,n.A)(o,i,"woocommerce-product-notice",{"is-dismissible":l})},e&&(0,r.createElement)("h3",{className:"woocommerce-product-notice__title"},e),t&&(0,r.createElement)("p",{className:"woocommerce-product-notice__content"},t),(0,r.createElement)("div",{className:"woocommerce-product-notice__content"},s),l&&(0,r.createElement)(a.Button,{className:"woocommerce-product-notice__dismiss",icon:c.A,onClick:u}))}},71569:(e,t,o)=>{"use strict";o.d(t,{X:()=>h});var r=o(86087),n=o(29491),a=o(4921),c=o(67606),i=o(42175),s=o(27723),l=o(56427),u=o(37255),d=o(89359);const m=/[^0-9,.\ -]/g;var p=o(64557);const h=(0,r.forwardRef)(({id:e,value:t,onChange:o,label:h,suffix:_,help:v,error:w,onBlur:g,onFocus:f,required:E,tooltip:b,placeholder:C,disabled:x,step:y=1,min:A=-1/0,max:k=1/0},S)=>{const P=(0,n.useInstanceId)(l.BaseControl,"product_number_field"),V=e??P,[B,M]=(0,r.useState)(!1),F=e=>{document.getElementById(V)?.parentElement?.contains(e.relatedTarget)||(M(!1),g?.())},L=(({value:e,onChange:t,onFocus:o,onKeyDown:r,min:n,max:a})=>{const{formatNumber:c,parseNumber:i}=(0,u.R)();return{value:c(e),onFocus(e){(0,d.m)(e.currentTarget),o&&o(e)},onKeyUp(e){"ArrowUp"!==e.code&&"ArrowDown"!==e.code||e.preventDefault()},inputMode:"decimal",onKeyDown(o){const c=Number.parseFloat(e||"0"),i=Number(o.currentTarget.step||"1");"ArrowUp"===o.code&&(o.preventDefault(),c+i<=a&&t(String(c+i))),"ArrowDown"===o.code&&(o.preventDefault(),c-i>=n&&t(String(c-i))),r&&r(o)},onChange(e){let o=i((e??"").replace(m,""));const r=Number(o);o&&r>=a?o=String(a):o&&r<=n&&(o=String(n)),t(Number.isNaN(r)?"":o)}}})({value:t||"",onChange:o,onFocus:function(){M(!0),f?.()},min:A,max:k}),[N,T]=(0,r.useState)(0),D=(0,r.useRef)(null),H=(0,r.useRef)(!1);function z(){const e=parseFloat(t||"0")+N;e>=A&&e<=k&&o(String(e))}function j(){T(0)}function I(e){const r=parseFloat(t||"0")+e;r>=A&&r<=k&&(o(String(parseFloat(t||"0")+e)),T(e),H.current=!0)}return(0,r.useEffect)(()=>(0!==N?(D.current=setTimeout(z,H.current?500:100),H.current=!1):D.current&&clearTimeout(D.current),()=>{D.current&&clearTimeout(D.current)}),[N,t]),(0,r.createElement)(l.BaseControl,{className:(0,a.A)({"has-error":w}),id:V,label:(0,r.isValidElement)(h)?h:(0,r.createElement)(p.J,{label:h,required:E,tooltip:b}),help:w||v},(0,r.createElement)(l.__experimentalInputControl,{...L,ref:S,step:y,disabled:x,autoComplete:"off",id:V,className:"woocommerce-number-control",suffix:(0,r.createElement)(r.Fragment,null,_,B&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)(l.Button,{className:"woocommerce-number-control__increment",icon:c.A,disabled:parseFloat(t||"0")>=k,onMouseDown:()=>I(y),onMouseLeave:j,onMouseUp:j,onBlur:F,isSmall:!0,"aria-hidden":"true","aria-label":(0,s.__)("Increment","woocommerce"),tabIndex:-1}),(0,r.createElement)(l.Button,{icon:i.A,disabled:parseFloat(t||"0")<=A,className:"woocommerce-number-control__decrement",onBlur:F,onMouseDown:()=>I(-y),onMouseLeave:j,onMouseUp:j,isSmall:!0,"aria-hidden":"true","aria-label":(0,s.__)("Decrement","woocommerce"),tabIndex:-1}))),placeholder:C,onBlur:F}))})},53513:(e,t,o)=>{"use strict";o.d(t,{X:()=>c});var r=o(86087),n=o(4921);function a(e){return e.images.length>0?{backgroundImage:`url(${e.images[0].src})`}:void 0}function c({product:e,className:t,style:o,...c}){return(0,r.createElement)("div",{"aria-hidden":"true",...c,className:(0,n.A)("woocommerce-product-image",t),style:{...o,...a(e)}})}},71003:(e,t,o)=>{"use strict";o.d(t,{E:()=>m});var r=o(56427),n=o(86087),a=o(27723),c=o(67237),i=o(91218),s=o(96476),l=o(4921),u=o(85273),d=o(53513);function m({products:e,onRemove:t,onEdit:o,onPreview:m,className:p,...h}){function _(e){return function(){o&&o(e)}}function v(e){return function(){m&&m(e)}}function w(e){return function(){t&&t(e)}}return(0,n.createElement)("div",{...h,className:(0,l.A)("woocommerce-product-list",p)},(0,n.createElement)("div",{role:"table"},(0,n.createElement)("div",{role:"rowgroup"},(0,n.createElement)("div",{role:"rowheader"},(0,n.createElement)("div",{role:"columnheader"},(0,a.__)("Product","woocommerce")),(0,n.createElement)("div",{role:"columnheader","aria-label":(0,a.__)("Actions","woocommerce")}))),(0,n.createElement)("div",{role:"rowgroup"},e.map(e=>(0,n.createElement)("div",{role:"row",key:e.id},(0,n.createElement)("div",{role:"cell"},(0,n.createElement)(d.X,{product:e,className:"woocommerce-product-list__product-image"}),(0,n.createElement)("div",{className:"woocommerce-product-list__product-info"},(0,n.createElement)("a",{className:"woocommerce-product-list__product-name",href:(0,s.getNewPath)({},`/product/${e.id}`,{}),target:"_blank",rel:"noreferrer",onClick:_(e)},e.name),(0,n.createElement)(u.w,{product:e,className:"woocommerce-product-list__product-price"}))),(0,n.createElement)("div",{role:"cell",className:"woocommerce-product-list__actions"},(0,n.createElement)(r.Button,{icon:c.A,"aria-label":(0,a.__)("See product page","woocommerce"),href:e.permalink,target:"_blank",rel:"noreferrer",onClick:v(e)}),(0,n.createElement)(r.Button,{icon:i.A,"aria-label":(0,a.__)("Remove product","woocommerce"),onClick:w(e)})))))))}},68677:(e,t,o)=>{"use strict";o.d(t,{A:()=>u});var r=o(47143),n=o(86087),a=o(27752),c=o(83306),i=o(15703),s=o(98846),l=o(25910);const u=({productId:e})=>{const{values:t}=(0,s.useFormContext)(),{hideProductMVPFeedbackModal:o}=(0,r.useDispatch)(a.STORE_KEY),{isProductMVPModalVisible:u}=(0,r.useSelect)(e=>{const{isProductMVPFeedbackModalVisible:t}=e(a.STORE_KEY);return{isProductMVPModalVisible:t()}},[]),d=e??t?.id,{_feature_nonce:m}=(0,i.getSetting)("admin",{}),p=d?(0,i.getAdminLink)(`post.php?post=${d}&action=edit&product_block_editor=0&_feature_nonce=${m}`):(0,i.getAdminLink)(`post-new.php?post_type=product&product_block_editor=0&_feature_nonce=${m}`);return u?(0,n.createElement)(l.L,{recordScoreCallback:(e,t,r)=>{(0,c.recordEvent)("product_mvp_feedback",{action:"disable",checked:e,comments:t||"",email:r}),o(),window.location.href=`${p}&new-product-experience-disabled=true`},onCloseModal:()=>{(0,c.recordEvent)("product_mvp_feedback",{action:"cancel",checked:"",comments:""}),o()},onSkipFeedback:()=>{(0,c.recordEvent)("product_mvp_feedback",{action:"disable",checked:"",comments:"Feedback skipped"}),o(),window.location.href=p}}):null}},25910:(e,t,o)=>{"use strict";o.d(t,{L:()=>l});var r=o(86087),n=o(56427),a=o(27752);const c=window.wc.experimental;var i=o(27723),s=o(47143);function l({recordScoreCallback:e,onCloseModal:t,onSkipFeedback:o}){const[l,u]=(0,r.useState)(!1),[d,m]=(0,r.useState)(!1),[p,h]=(0,r.useState)(!1),[_,v]=(0,r.useState)(!1),[w,g]=(0,r.useState)(!1),f=[{key:"missing-features",label:(0,i.__)("Missing features","woocommerce"),checked:l,onChange:u},{key:"missing-plugins",label:(0,i.__)("Missing plugins","woocommerce"),checked:d,onChange:m},{key:"difficult-to-use",label:(0,i.__)("It's difficult to use","woocommerce"),checked:p,onChange:h},{key:"slow-buggy-or-broken",label:(0,i.__)("It's slow, buggy, or broken","woocommerce"),checked:_,onChange:v},{key:"other",label:(0,i.__)("Other (describe below)","woocommerce"),checked:w,onChange:g}],[E,b]=(0,r.useState)(""),[C,x]=(0,r.useState)(""),y=f.filter(e=>e.checked).map(e=>e.key),{createSuccessNotice:A}=(0,s.useDispatch)("core/notices"),k=(0,r.createElement)("span",{className:"woocommerce-product-mvp-feedback-modal__optional"},(0,i.__)("(optional)","woocommerce"));return(0,r.createElement)(a.FeedbackModal,{title:(0,i.__)("Thanks for trying out the new product editor!","woocommerce"),onSubmit:()=>{e(y,E,C),A((0,i.__)("Thanks for the feedback — we'll put it to good use!","woocommerce"))},onCancel:o,onModalClose:t,isSubmitButtonDisabled:!y.length,submitButtonLabel:(0,i.__)("Send","woocommerce"),cancelButtonLabel:(0,i.__)("Skip","woocommerce"),className:"woocommerce-product-mvp-feedback-modal"},(0,r.createElement)(r.Fragment,null,(0,r.createElement)(c.Text,{variant:"subtitle.small",as:"p",weight:"600",size:"14",lineHeight:"20px"}),(0,r.createElement)("fieldset",{className:"woocommerce-product-mvp-feedback-modal__reason"},(0,r.createElement)("legend",null,(0,i.__)("What made you turn off the new product editor?","woocommerce")),(0,r.createElement)("div",{className:"woocommerce-product-mvp-feedback-modal__checkboxes"},f.map((e,t)=>(0,r.createElement)(n.CheckboxControl,{key:t,label:e.label,name:e.key,checked:e.checked,onChange:e.onChange})))),(0,r.createElement)("div",{className:"woocommerce-product-mvp-feedback-modal__comments"},(0,r.createElement)(n.TextareaControl,{label:(0,r.createInterpolateElement)((0,i.__)("Additional thoughts <optional/>","woocommerce"),{optional:k}),value:E,onChange:e=>b(e),rows:5})),(0,r.createElement)("div",{className:"woocommerce-product-mvp-feedback-modal__email"},(0,r.createElement)(n.TextControl,{label:(0,r.createInterpolateElement)((0,i.__)("Your email address <optional/>","woocommerce"),{optional:k}),value:C,onChange:e=>x(e),help:(0,i.__)("In case you want to participate in further discussion and future user research.","woocommerce")}))))}},30837:(e,t,o)=>{"use strict";o.d(t,{r:()=>i});var r=o(86087),n=o(56427),a=o(61483),c=o(38823);const i=({id:e,title:t,description:o,className:i,children:s})=>(0,r.createElement)(a.D,{title:t,description:o,className:i},(0,r.createElement)(n.Card,null,(0,r.createElement)(n.CardBody,null,s,(0,r.createElement)(c.Q.Slot,{section:e}))))},61483:(e,t,o)=>{"use strict";o.d(t,{D:()=>a});var r=o(86087),n=o(98846);const a=({title:e,description:t,className:o,children:a})=>(0,r.createElement)(n.FormSection,{title:e,description:t,className:o},r.Children.map(a,e=>(0,r.isValidElement)(e)&&e.props.onChange?(0,r.createElement)("div",{className:"product-field-layout"},e):e))},6551:(e,t,o)=>{"use strict";o.d(t,{_:()=>m});var r=o(86087),n=o(27723),a=o(56427),c=o(4921),i=o(85273),s=o(53513),l=o(48617);function u(e){return{label:e.name,value:`attr-${e.id}`,product:e}}function d(e){const{item:t}=e;return(0,r.createElement)("div",{className:"woocommerce-product-select__menu-item"},t.product&&(0,r.createElement)(s.X,{product:t.product,className:"woocommerce-product-select__menu-item-image"}),(0,r.createElement)("div",{className:"woocommerce-product-select__menu-item-content"},(0,r.createElement)("div",{className:"woocommerce-product-select__menu-item-title"},t.label),t.product&&(0,r.createElement)(i.w,{product:t.product,className:"woocommerce-product-select__menu-item-description"})))}function m({className:e,label:t,help:o,placeholder:i,items:s=[],isLoading:m=!1,filter:p,onSelect:h}){const[_,v]=(0,r.useState)(""),w=s?.map(u),g=(0,r.useRef)(null),[f,E]=(0,r.useState)("");return(0,r.useEffect)(()=>{if(!g?.current)return;const e=g.current.getAttribute("id");g.current&&"string"==typeof e&&E(e)},[]),i&&!o&&(o=i),o||(o=(0,r.createElement)("div",{className:"woocommerce-product-combobox-help"},(0,n.__)("Search for products","woocommerce")),m&&(o=(0,r.createElement)("div",{className:"woocommerce-product-combobox-help"},(0,r.createElement)(a.Spinner,null),(0,n.__)("Loading…","woocommerce")))),(0,r.createElement)("div",{className:(0,c.A)("woocommerce-product-select",{"no-items":!w.length},e)},(0,r.createElement)(a.BaseControl,{label:t,help:o,id:f},(0,r.createElement)(l.x,{className:"woocommerce-product-combobox",allowReset:!1,options:w,value:_,ref:g,onChange:e=>{if(!e)return;const t=s?.find(t=>t.id===Number(e.replace("attr-","")));t&&h&&h(t)},onFilterValueChange:e=>{v(e),p(e)},__experimentalRenderItem:d})))}},4283:(e,t,o)=>{"use strict";o.r(t),o.d(t,{RemoveConfirmationModal:()=>r.z});var r=o(68097),n=o(10586),a={};for(const e in n)["default","RemoveConfirmationModal"].indexOf(e)<0&&(a[e]=()=>n[e]);o.d(t,a)},68097:(e,t,o)=>{"use strict";o.d(t,{z:()=>c});var r=o(27723),n=o(86087),a=o(56427);function c({title:e,description:t,onCancel:o,onRemove:c}){const[i,s]=(0,n.useState)(!1);return(0,n.createElement)(a.Modal,{title:e,onRequestClose:e=>{e&&!e.isPropagationStopped()&&o&&o()},className:"woocommerce-remove-confirmation-modal"},(0,n.createElement)("div",{className:"woocommerce-remove-confirmation-modal__content"},t),(0,n.createElement)("div",{className:"woocommerce-remove-confirmation-modal__buttons"},(0,n.createElement)(a.Button,{isDestructive:!0,variant:"primary",isBusy:i,onClick:async function(){try{s(!0),await c()}finally{s(!1)}}},(0,r.__)("Delete","woocommerce")),(0,n.createElement)(a.Button,{variant:"tertiary",onClick:o},(0,r.__)("Cancel","woocommerce"))))}},10586:()=>{},17849:(e,t,o)=>{"use strict";o.d(t,{p:()=>l});var r=o(29491),n=o(86087),a=o(27723),c=o(83306),i=o(56427),s=o(8088);function l({label:e,postPassword:t,onInputChange:o}){const l=(0,r.useInstanceId)(i.BaseControl,"post_password"),[u,d]=(0,n.useState)(Boolean(t));return(0,n.useEffect)(()=>{u||""===t||d(!0)},[t]),(0,n.createElement)(n.Fragment,null,(0,n.createElement)(i.CheckboxControl,{label:e,checked:u,className:"wp-block-woocommerce-product-password-fields__field",onChange:e=>{(0,c.recordEvent)("product_catalog_require_password",{source:s.bG,value:e}),d(e),e||o("")}}),u&&(0,n.createElement)(i.BaseControl,{id:l,label:(0,a.__)("Password","woocommerce")},(0,n.createElement)(i.__experimentalInputControl,{id:l,value:t,onChange:e=>{o(e??"")}})))}},9777:(e,t,o)=>{"use strict";o.d(t,{Y:()=>l});var r=o(56427),n=o(86087),a=o(27723),c=o(4921),i=o(73234),s=o(2144);function l({postType:e,title:t=(0,a.__)("Schedule product","woocommerce"),description:o=(0,a.__)("Decide when this product should become visible to customers.","woocommerce"),value:l,className:u,onCancel:d,onSchedule:m,isScheduling:p,...h}){const[_,v]=(0,n.useState)(()=>l??(0,i.H)());function w(e){v(e??"")}return(0,n.createElement)(r.Modal,{...h,title:t,className:(0,c.A)(u,"woocommerce-schedule-publish-modal"),onRequestClose:()=>d?.()},(0,n.createElement)("p",{className:"woocommerce-schedule-publish-modal__description"},o),(0,n.createElement)("div",{className:"woocommerce-schedule-publish-modal__content"},(0,n.createElement)("div",{className:"woocommerce-schedule-publish-modal__button-now"},(0,n.createElement)("strong",null,(0,a.__)("Publish","woocommerce")),(0,n.createElement)(r.Button,{variant:"link",onClick:()=>w((0,i.H)())},(0,a.__)("Now","woocommerce"))),(0,n.createElement)(r.DateTimePicker,{currentDate:_,onChange:w,is12Hour:(0,s.$)()})),(0,n.createElement)("div",{className:"woocommerce-schedule-publish-modal__buttons"},(0,n.createElement)(r.Button,{variant:"tertiary",onClick:d},(0,a.__)("Cancel","woocommerce")),(0,n.createElement)(r.Button,{variant:"primary",isBusy:p,disabled:p,onClick:()=>m?.(_)},(0,a.__)("Schedule","woocommerce"))))}},23709:(e,t,o)=>{"use strict";o.d(t,{B:()=>n});var r=o(86087);function n({highlight:e,labels:t={},...o}){return(0,r.createElement)("svg",{width:"295",height:"195",viewBox:"0 0 295 195",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o},(0,r.createElement)("path",{d:"M11.5664 134.604V35.3599C11.5664 33.9482 12.9862 32.9782 14.3014 33.4915L99.6373 66.7959C100.4 67.0935 100.905 67.8243 100.914 68.6426L102.037 171.578C102.052 173.027 100.574 174.014 99.2419 173.444L12.7831 136.448C12.0451 136.132 11.5664 135.407 11.5664 134.604Z",fill:"A"===e?"#F0F6FC":"#FFFFFF"}),(0,r.createElement)("path",{d:"M11.5664 134.603V35.3599C11.5664 33.9482 12.9862 32.9782 14.3014 33.4915L99.624 66.7908C100.393 67.0909 100.9 67.8314 100.901 68.6569L101.024 174.131L12.7844 136.447C12.0457 136.132 11.5664 135.406 11.5664 134.603Z",stroke:"#E0E0E0",strokeWidth:"2.00574"}),(0,r.createElement)("path",{d:"M1.25977 150.388L86.0112 188.183",stroke:"A"===e?"#006FAD":"#CCCCCC",strokeWidth:"1.50431",strokeMiterlimit:"16"}),(0,r.createElement)("path",{d:"M250.775 32.9793L100.9 66.9577V172.981C100.9 174.297 102.146 175.257 103.418 174.921L251.73 135.764C252.611 135.531 253.224 134.735 253.224 133.824V34.9354C253.224 33.6488 252.03 32.6948 250.775 32.9793Z",fill:"B"===e?"#F0F6FC":"#FFFFFF",stroke:"#E0E0E0",strokeWidth:"2.00574"}),(0,r.createElement)("path",{d:"M270.402 28.9875V132.064",stroke:"C"===e?"#006FAD":"#CCCCCC",strokeWidth:"1.50431",strokeMiterlimit:"16"}),(0,r.createElement)("path",{d:"M257.804 152.679L107.771 192.765",stroke:"B"===e?"#006FAD":"#CCCCCC",strokeWidth:"1.50431",strokeMiterlimit:"16"}),(0,r.createElement)("path",{d:"M13.1406 33.41L161.446 1.61817C161.808 1.54066 162.184 1.56462 162.533 1.68742L251.16 32.8868",stroke:"#E0E0E0",strokeWidth:"2.00574"}),t.C?(0,r.createElement)("text",{x:"280",y:"85",fontSize:11,fill:"C"===e?"#007CBA":"#949494"},t.C):(0,r.createElement)("path",{d:"M282.123 80.7892C282.123 79.5323 282.435 78.5405 283.058 77.8136C283.685 77.0867 284.537 76.7233 285.615 76.7233C286.467 76.7233 287.192 76.9739 287.79 77.4752C288.391 77.9729 288.741 78.6175 288.837 79.4088H287.639C287.525 78.9326 287.285 78.553 286.92 78.2701C286.558 77.9873 286.123 77.8458 285.615 77.8458C284.92 77.8458 284.368 78.1108 283.96 78.6407C283.556 79.1671 283.353 79.8833 283.353 80.7892C283.353 81.6915 283.556 82.4077 283.96 82.9376C284.368 83.464 284.922 83.7272 285.62 83.7272C286.132 83.7272 286.569 83.5983 286.93 83.3405C287.296 83.0826 287.532 82.7353 287.639 82.2985H288.837C288.73 83.0647 288.382 83.6824 287.795 84.1515C287.208 84.617 286.483 84.8497 285.62 84.8497C284.542 84.8497 283.69 84.4863 283.063 83.7594C282.437 83.0325 282.123 82.0424 282.123 80.7892Z",fill:"C"===e?"#007CBA":"#949494"}),t.B?(0,r.createElement)("text",{x:"188",y:"190",fontSize:11,fill:"B"===e?"#007CBA":"#949494"},t.B):(0,r.createElement)("path",{d:"M192.281 189.611V181.861H195.396C196.123 181.861 196.692 182.034 197.104 182.382C197.519 182.725 197.727 183.196 197.727 183.794C197.727 184.199 197.596 184.562 197.335 184.885C197.073 185.203 196.751 185.395 196.368 185.459V185.551C196.891 185.604 197.312 185.803 197.63 186.147C197.953 186.487 198.114 186.91 198.114 187.414C198.114 188.098 197.879 188.635 197.41 189.026C196.941 189.416 196.293 189.611 195.466 189.611H192.281ZM193.484 188.591H195.224C195.765 188.591 196.177 188.483 196.459 188.268C196.742 188.054 196.884 187.74 196.884 187.328C196.884 186.924 196.737 186.618 196.443 186.41C196.15 186.199 195.72 186.093 195.154 186.093H193.484V188.591ZM193.484 185.142H194.913C195.442 185.142 195.844 185.048 196.116 184.858C196.391 184.664 196.529 184.383 196.529 184.015C196.529 183.656 196.404 183.379 196.153 183.182C195.906 182.981 195.561 182.881 195.117 182.881H193.484V185.142Z",fill:"B"===e?"#007CBA":"#949494"}),t.A?(0,r.createElement)("text",{x:"18",y:"185",fontSize:11,fill:"A"===e?"#007CBA":"#949494"},t.A):(0,r.createElement)("path",{d:"M22.7694 185.149L25.5678 177.399H26.8622L29.6605 185.149H28.3822L27.6732 183.092H24.7191L24.0048 185.149H22.7694ZM25.0253 182.082H27.3671L26.2445 178.806H26.1532L25.0253 182.082Z",fill:"A"===e?"#007CBA":"#949494"}))}},82962:(e,t,o)=>{"use strict";o.d(t,{S:()=>r});const r="woocommerce_product_tabs"},21097:(e,t,o)=>{"use strict";o.d(t,{x:()=>i});var r=o(86087),n=o(4921),a=o(56427),c=o(64557);const i=(0,r.forwardRef)(function({label:e,help:t,error:o,tooltip:i,className:s,required:l,onChange:u,onBlur:d,...m},p){return(0,r.createElement)(a.__experimentalInputControl,{...m,ref:p,className:(0,n.A)("woocommerce-product-text-control",s,{"has-error":o}),label:(0,r.createElement)(c.J,{label:e,required:l,tooltip:i}),required:l,help:o||t,onChange:e=>{u(e??"")},onBlur:d})})},31232:(e,t,o)=>{"use strict";o.d(t,{m:()=>h});var r=o(27723),n=o(56427),a=o(86087),c=o(5520),i=o(42059),s=o(11538),l=o(47143),u=o(83306);function d({position:e}){return(0,a.createElement)(n.Button,{"data-testid":"woocommerce-product-variation-switcher-footer-placeholder",className:"woocommerce-product-variation-switcher-footer__button is-placeholder",disabled:!0},"left"===e&&(0,a.createElement)(a.Fragment,null,(0,a.createElement)(c.A,{icon:i.A,size:16,className:"woocommerce-product-variation-switcher-footer__arrow"}),(0,a.createElement)("div",{className:"woocommerce-product-variation-switcher-footer__product-image"})),(0,a.createElement)("div",{className:"woocommerce-product-variation-switcher-footer__item-label"}),"right"===e&&(0,a.createElement)(a.Fragment,null,(0,a.createElement)("div",{className:"woocommerce-product-variation-switcher-footer__product-image"}),(0,a.createElement)(c.A,{icon:s.A,size:16,className:"woocommerce-product-variation-switcher-footer__arrow"})))}function m({className:e}){return(0,a.createElement)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,style:{borderRadius:"3px",background:"var(--wp-gray-gray-0, #F6F7F7)"}},(0,a.createElement)("g",{clipPath:"url(#clip0_7819_478402)"},(0,a.createElement)("path",{d:"M22.9869 7.07134C19.8275 7.07134 17.9977 7.62377 16.9543 8.85386C17.6297 6.47326 18.8776 4.68605 21.1572 3.06738C18.4558 3.41616 16.8877 4.44261 16.1282 5.91147C15.3688 4.44378 13.8007 3.41733 11.0993 3.06738C13.3789 4.68605 14.6268 6.47209 15.3021 8.85386C14.2587 7.62377 12.429 7.07134 9.26953 7.07134C13.0354 8.83982 14.4761 10.263 15.7029 12.8133H16.5524C17.7792 10.263 19.2211 8.83982 22.9858 7.07134H22.9869Z",fill:"#BBBBBB"}),(0,a.createElement)("path",{d:"M18.6464 34.8438C19.8718 34.3897 24.3648 33.3925 24.3648 29.0402C24.3648 26.4551 22.0269 24.5052 19.3727 24.0527C20.5536 23.6669 22.278 21.9488 22.278 20.0211C22.278 17.5377 20.0307 16.5469 18.1934 16.1626C18.1934 15.5957 20.2357 12.6709 20.2357 12.6709H11.7932C11.7932 12.6709 13.8355 15.5957 13.8355 16.1626C11.9966 16.5485 9.75086 17.5377 9.75086 20.0211C9.75086 21.9488 11.4753 23.6669 12.6562 24.0527C10.0004 24.5068 7.66406 26.4567 7.66406 29.0402C7.66406 33.3941 12.1571 34.3913 13.3825 34.8438C10.4772 35.1154 9.02453 36.2491 8.79885 37.1558H23.2316C23.0043 36.2491 21.5517 35.1154 18.648 34.8438H18.6464Z",fill:"#DDDDDD"})),(0,a.createElement)("defs",null,(0,a.createElement)("clipPath",{id:"clip0_7819_478402"},(0,a.createElement)("rect",{width:"34.0881",height:"25.9994",fill:"white",transform:"translate(-1)"}))))}var p=o(74549);function h({parentProductType:e,variationId:t,parentId:o}){const{numberOfVariations:h,nextVariationId:_,previousVariationId:v,activeVariationIndex:w,nextVariationIndex:g,previousVariationIndex:f,goToNextVariation:E,goToPreviousVariation:b}=(0,p.C)({variationId:t,parentId:o,parentProductType:e}),{previousVariation:C,nextVariation:x}=(0,l.useSelect)(e=>{const{getEntityRecord:t}=e("core"),o=e=>null!==e?t("postType","product_variation",e):void 0;return h&&h>0?{previousVariation:o(v),nextVariation:o(_)}:{}},[_,v,h]);return!h||h<2?null:(0,a.createElement)("div",{className:"woocommerce-product-variation-switcher-footer"},C&&(0,a.createElement)(n.Button,{className:"woocommerce-product-variation-switcher-footer__button woocommerce-product-variation-switcher-footer__button-previous",label:(0,r.__)("Previous","woocommerce"),onClick:function(){C&&((0,u.recordEvent)("product_variation_switch_previous",{variation_length:h,variation_id:C?.id,variation_index:w,previous_variation_index:f}),b())}},(0,a.createElement)(c.A,{icon:i.A,size:16}),C.image?(0,a.createElement)("img",{alt:C.image.alt||"",src:C.image.src,className:"woocommerce-product-variation-switcher-footer__product-image"}):(0,a.createElement)(m,{className:"woocommerce-product-variation-switcher-footer__product-image"}),C.name),!C&&null!==v&&(0,a.createElement)(d,{position:"left"}),x&&(0,a.createElement)(n.Button,{className:"woocommerce-product-variation-switcher-footer__button woocommerce-product-variation-switcher-footer__button-next",label:(0,r.__)("Next","woocommerce"),onClick:function(){x&&((0,u.recordEvent)("product_variation_switch_next",{variation_length:h,variation_id:x?.id,variation_index:w,next_variation_index:g}),E())}},x.name,x.image?(0,a.createElement)("img",{alt:x.image.alt||"",src:x.image.src,className:"woocommerce-product-variation-switcher-footer__product-image"}):(0,a.createElement)(m,{className:"woocommerce-product-variation-switcher-footer__product-image"}),(0,a.createElement)(c.A,{icon:s.A,size:16})),!x&&null!==_&&(0,a.createElement)(d,{position:"right"}))}},69770:(e,t,o)=>{"use strict";o.d(t,{M:()=>d});var r=o(56427),n=o(86087),a=o(98846);const c="multiple-update",i="single-update",s="woocommerce-actions-menu-slot",l="top-level",u=(e,t)=>e?`${s}_${e}${t?`_${c}`:`_${i}`}`:s,d=({children:e,order:t=20,group:o=l,supportsMultipleSelection:s,onClick:d=()=>{},...m})=>{const p=i=>(0,n.createElement)(r.Fill,{key:i,name:u(o,i===c)},o=>(0,a.createOrderedChildren)((0,n.createElement)(r.MenuItem,{...m,onClick:()=>{const{selection:e,onChange:t,onClose:r}=o;d({selection:Array.isArray(e)?e:[e],onChange:t,onClose:r})}},e),t,o)),h=s?[c,i].map(p):p(i);return(0,n.createElement)(n.Fragment,null,h)};d.Slot=({fillProps:e,group:t=l,onChange:o,onClose:c,selection:i,supportsMultipleSelection:s})=>(0,n.createElement)(r.Slot,{name:u(t,s),fillProps:{...e,onChange:o,onClose:c,selection:i}},e=>!a.sortFillsByOrder||e&&0===n.Children.count(e)?null:(0,n.createElement)(r.MenuGroup,null,(0,a.sortFillsByOrder)(e)))},38823:(e,t,o)=>{"use strict";o.d(t,{Q:()=>l});var r=o(56427),n=o(86087),a=o(98846),c=o(35827),i=o(32469);const s=({fieldName:e,sectionName:t,order:o,children:i})=>{const{registerFill:s,getFillHelpers:l}=(0,a.useSlotContext)(),u=`product_field/${t}/${e}`;return(0,n.useEffect)(()=>{s(u)},[]),(0,n.createElement)(r.Fill,{name:`woocommerce_product_field_${t}`,key:u},e=>(0,c.v)(i,o,{sectionName:t,...e,...l()},{_id:u}))},l=({children:e,sections:t,id:o})=>(0,n.createElement)(n.Fragment,null,t.map(({name:t,order:r=20})=>(0,n.createElement)(s,{fieldName:o,sectionName:t,order:r,key:t},e)));l.Slot=({fillProps:e,section:t})=>{const{filterRegisteredFills:o}=(0,a.useSlotContext)();return(0,n.createElement)(r.Slot,{name:`woocommerce_product_field_${t}`,fillProps:e},e=>i.C?n.Children.map((0,i.C)(o(e))?.props.children,e=>(0,n.createElement)("div",{className:"woocommerce-product-form__field"},e)):null)}},25241:(e,t,o)=>{"use strict";o.d(t,{R:()=>i});var r=o(56427),n=o(86087),a=o(35827),c=o(32469);const i=({children:e,tabs:t})=>(0,n.createElement)(n.Fragment,null,t.map(({name:t,order:o})=>(0,n.createElement)(r.Fill,{name:`woocommerce_product_section_${t}`,key:t},r=>(0,a.v)(e,o||20,{tabName:t,...r}))));i.Slot=({fillProps:e,tab:t})=>(0,n.createElement)(r.Slot,{name:`woocommerce_product_section_${t}`,fillProps:e},e=>c.C?(0,c.C)(e):null)},21353:(e,t,o)=>{"use strict";o.d(t,{N:()=>c});var r=o(56427),n=o(86087),a=o(35827);const c=({children:e,tabProps:t,templates:o})=>o?(0,n.createElement)(n.Fragment,null,o.map(o=>(0,n.createElement)(r.Fill,{name:`woocommerce_product_tab_${o.name}`,key:o.name},r=>(0,a.v)(e,o.order||20,{},{tabProps:t,templateName:o.name,order:o.order||20,...r})))):(console.warn("WooProductTabItem fill is missing templates property."),null);c.Slot=({fillProps:e,template:t,children:o})=>(0,n.createElement)(r.Slot,{name:`woocommerce_product_tab_${t}`,fillProps:e},t=>{const r=t.reduce(({childrenMap:t,tabs:o},r)=>{const n=r[0].props;if(n&&n.tabProps){t[n.tabProps.name]=r[0];const a="function"==typeof n.tabProps?n.tabProps(e):n.tabProps;o.push({...a,order:n.order??20})}return{childrenMap:t,tabs:o}},{childrenMap:{},tabs:[]}),n=r.tabs.sort((e,t)=>e.order-t.order);return o(n,r.childrenMap)})},8088:(e,t,o)=>{"use strict";o.d(t,{Bz:()=>a,LG:()=>m,TU:()=>s,Tc:()=>h,Vf:()=>i,_R:()=>p,af:()=>n,bG:()=>d,cw:()=>r,dB:()=>u,hq:()=>l,w1:()=>c});const r="woocommerce_product_editor_show_feedback_bar",n="woocommerce_single_variation_notice_dismissed",a="[^-\\d\\%s]+",c="[%s](?=%s*[%s])",i="__ADD_NEW_SHIPPING_CLASS_OPTION__",s=32,l="tab/general",u=`${l}/details`,d="product-block-editor-v1",m="woocommerce/product-editor",p=5,h=[5,10,25]},15361:(e,t,o)=>{"use strict";o.d(t,{z:()=>r});const r=(0,o(86087).createContext)(!1)},16958:(e,t,o)=>{"use strict";o.d(t,{O:()=>r});const r=(0,o(86087).createContext)("product")},6311:()=>{},25733:(e,t,o)=>{"use strict";o.d(t,{$:()=>a});var r=o(86087),n=o(20509);function a(e,t,o=[]){const a=(0,r.useContext)(n.d),[c,i]=(0,r.useState)(!1),s=(0,r.useMemo)(()=>a.registerValidator(e,t),[e,...o]);return(0,r.useEffect)(()=>()=>{a.unRegisterValidator(e)},[]),{ref:s,error:a.errors[e]?.message,isValidating:c,validate:async t=>(i(!0),a.validateField(e,t).finally(()=>{i(!1)}))}}},68752:(e,t,o)=>{"use strict";o.d(t,{G:()=>a});var r=o(86087),n=o(20509);function a(){const e=(0,r.useContext)(n.d),[t,o]=(0,r.useState)(!1);return{isValidating:t,validate:async t=>(o(!0),new Promise((o,r)=>{e.validateAll(t).then(e=>{!function(e){return Object.values(e).some(Boolean)}(e)?o():r(e)}).catch(()=>{r(e.errors)})}).finally(()=>{o(!1)})),focusByValidatorId:async function(t){const o=await e.getFieldByValidatorId(t);if(!o)return;const r=o.closest(".wp-block-woocommerce-product-tab__content"),n=new MutationObserver(()=>{r&&"none"!==getComputedStyle(r).display&&(o.focus(),n.disconnect())});r&&n.observe(r,{attributes:!0})},getFieldByValidatorId:e.getFieldByValidatorId}}},20509:(e,t,o)=>{"use strict";o.d(t,{d:()=>r});const r=(0,o(86087).createContext)({errors:{},getFieldByValidatorId:()=>({}),registerValidator:()=>()=>{},unRegisterValidator:()=>()=>{},validateField:()=>Promise.resolve(void 0),validateAll:()=>Promise.resolve({})})},74916:(e,t,o)=>{"use strict";o.d(t,{sz:()=>b.p,HN:()=>d.d,kG:()=>r.A,S8:()=>a.A,JA:()=>E.L,_8:()=>C.g,TJ:()=>p.A,BV:()=>n.R,qb:()=>f.O,mn:()=>v,uh:()=>g.M,BK:()=>w.n,K9:()=>m.C,_1:()=>u});var r=o(71072),n=o(37255),a=o(96205),c=o(98846);function i(e){return`${e.id}:${e.menu_order}`}function s({key:e}){return"string"==typeof e?Number.parseInt(e.split(":")[1],10):Number.MAX_SAFE_INTEGER}function l(e,t,{variationsOrder:o}){if(!o||!o[t])return e;const r=o[t];return[...e].sort((e,t)=>r[e.id]&&r[t.id]?r[e.id]-r[t.id]:0)}const u=({variations:e,currentPage:t})=>{const{setValue:o,values:r}=(0,c.useFormContext)();return{sortedVariations:l(e,t,r),getVariationKey:i,onOrderChange:function(e){const n=Math.min(...e.map(s));o("variationsOrder",{...r.variationsOrder,[t]:e.reduce((e,t,o)=>{const r=function({key:e}){return"string"==typeof e?Number.parseInt(e.split(":")[0],10):0}(t);return{...e,[r]:n+o}},{})})}}};var d=o(45391),m=o(74549),p=o(38045),h=o(3582),_=o(47143),v=function(e){const t=e?.postType||"product",o=(0,h.useEntityId)("postType",t),r=e?.id||o,{editEntityRecord:n}=(0,_.useDispatch)("core"),{isLoading:a,meta_data:c}=(0,_.useSelect)(e=>{const{getEditedEntityRecord:o,hasFinishedResolution:n}=e("core"),{meta_data:a}=o("postType",t,r);return{meta_data:a||[],isLoading:!n("getEditedEntityRecord",["postType",t,r])}},[r]);return{metadata:c.reduce(function(e,t){return e[t.key]=t.value,e},{}),update:e=>n("postType",t,r,{meta_data:[...c.filter(t=>-1===e.findIndex(e=>e.key===t.key)),...e]}),isLoading:a}},w=o(95883),g=o(43237),f=o(47189),E=o(62693),b=o(39858),C=o(30895)},39858:(e,t,o)=>{"use strict";o.d(t,{p:()=>a});var r=o(47143),n=o(94715);const a=()=>{const{clearSelectedBlock:e}=(0,r.useDispatch)(n.store);return{handleBlur:function(t){t?.relatedTarget?.closest(".block-editor-block-contextual-toolbar")||t?.relatedTarget?.closest(".block-editor-link-control")||e()}}}},45391:(e,t,o)=>{"use strict";o.d(t,{d:()=>l});var r=o(94111),n=o(86087),a=o(37255),c=o(81005),i=o(89359);const s=1e18,l=({value:e,onChange:t,onFocus:o,onKeyUp:l})=>{const{sanitizePrice:u}=(0,a.R)(),d=(0,n.useContext)(r.CurrencyContext),{getCurrencyConfig:m,formatAmount:p}=d,h=m();return{prefix:h.symbol,className:"components-currency-control",value:(0,c.O)(String(e),h,p),sanitize:e=>u(String(e)),onFocus(e){(0,i.m)(e.currentTarget),o&&o(e)},onKeyUp(o){const r=Number.parseFloat(u(e||"0")),n=Number(o.currentTarget.step||"1");"ArrowUp"===o.code&&t(String(r+n)),"ArrowDown"===o.code&&t(String(r-n)),l&&l(o)},onChange(e){const o=u(e??"");t&&t(Number(o)<=s?o:String(s))}}}},71072:(e,t,o)=>{"use strict";o.d(t,{A:()=>c});var r=o(3582),n=o(86087);function a(e,t){var o;return(o=t).key.startsWith("_")||null===o.value?e.otherMetas.push(t):e.customFields.push(t),e}function c(){const[e,t]=(0,r.useEntityProp)("postType","product","meta_data"),{customFields:o,otherMetas:c}=(0,n.useMemo)(function(){return e.reduce(a,{customFields:[],otherMetas:[]})},[e]);function i(e){const r="function"==typeof e?e(o):e;t([...c,...r])}return{customFields:o,addCustomFields:function(e){i(t=>[...t,...e])},setCustomFields:i,updateCustomField:function(e,t){i(o=>o.map((o,r)=>e.id&&o.id===e.id||t===r?e:o))},removeCustomField:function(e){i(t=>void 0===e.id?t.filter(function(t){return!(t.key===e.key&&t.value===e.value)}):t.map(t=>t.id===e.id?{...t,value:null}:t))}}}},88437:(e,t,o)=>{"use strict";o.d(t,{u:()=>l});var r=o(27723),n=o(86087),a=o(96476),c=o(68752),i=o(47143);function s(e="",t,o,n=(0,r.__)("View error","woocommerce")){return{explicitDismiss:!0,actions:[{label:n,onClick:async()=>{var r;await o(t),(0,a.navigateTo)({url:(r=e,(0,a.getNewPath)({tab:r}))})}}]}}const l=()=>{const{focusByValidatorId:e,getFieldByValidatorId:t}=(0,c.G)(),{getClientIdByField:o,getParentTabId:a,getParentTabIdByBlockName:l}=function(){function e(e){const[t]=(0,i.select)("core/block-editor").getBlockParentsByBlockName(e,"woocommerce/product-tab",!0);if(!t)return null;const o=(0,i.select)("core/block-editor").getBlock(t);return o?.attributes?.id}return{getClientIdByField:function(e){const t=e.closest("[data-block]");return t?.dataset.block},getParentTabId:function(t){return t?e(t):null},getParentTabIdByBlockName:function(t){const o=(0,i.select)("core/block-editor").getBlocksByName(t);return o.length?e(o[0]):null}}}();return{getProductErrorMessageAndProps:(0,n.useCallback)(async(n,c)=>{const i={message:"",errorProps:{}},{code:u,message:d,validatorId:m=""}=n,p=await async function(e){if(!e)return null;const r=await t(e);return r?o(r):null}(m),h=a(p);switch(u){case"variable_product_no_variation_prices":i.message=d,"variations"!==c&&null!==h&&(i.errorProps=s(h,m,e));break;case"product_form_field_error":i.message=d,c!==h&&null!==h&&(i.errorProps=s(h,m,e));break;case"product_invalid_sku":i.message=(0,r.__)("Invalid or duplicated SKU.","woocommerce");const t=l("woocommerce/product-sku-field");c!==t&&null!==t&&(i.errorProps=s(t,"sku",e,(0,r.__)("View SKU field","woocommerce")));break;case"product_invalid_global_unique_id":i.message=(0,r.__)("Invalid or duplicated GTIN, UPC, EAN or ISBN.","woocommerce");const o=h||"inventory";c!==o&&(i.errorProps=s(o,"global_unique_id",e,(0,r.__)("View identifier field","woocommerce")));break;case"product_create_error":i.message=(0,r.__)("Failed to create product.","woocommerce");break;case"product_publish_error":i.message=(0,r.__)("Failed to publish product.","woocommerce");break;case"product_preview_error":i.message=(0,r.__)("Failed to preview product.","woocommerce");break;default:i.message=(0,r.__)("Failed to save product.","woocommerce")}return i},[])}}},96205:(e,t,o)=>{"use strict";o.d(t,{A:()=>c});var r=o(47143),n=o(40314),a=o(8088);const c=()=>{const{updateOptions:e}=(0,r.useDispatch)(n.optionsStore),{shouldShowFeedbackBar:t}=(0,r.useSelect)(e=>{const{getOption:t,hasFinishedResolution:o}=e(n.optionsStore),r=t(a.cw);return{shouldShowFeedbackBar:!!o("getOption",[a.cw])&&window.wcTracks?.isEnabled&&"yes"===r}},[]);return{shouldShowFeedbackBar:t,maybeShowFeedbackBar:async()=>{const{showFeedbackBarOption:t}=await(async()=>{const{getOption:e}=(0,r.resolveSelect)(n.optionsStore);return{showFeedbackBarOption:await e(a.cw)}})();window.wcTracks?.isEnabled&&"no"!==t&&e({[a.cw]:"yes"})},hideFeedbackBar:()=>{e({[a.cw]:"no"})}}}},62693:(e,t,o)=>{"use strict";o.d(t,{L:()=>i});var r=o(40314),n=o(3582),a=o(47143),c=o(86087);function i(){const[e,t]=(0,c.useState)(!1),{user:o,isRequesting:i}=(0,r.useUser)(),[s,l,u]=(0,n.useEntityProp)("root","user","metaboxhidden_product",o.id);return{isLoading:i||e,metaboxhiddenProduct:s,prevMetaboxhiddenProduct:u,setMetaboxhiddenProduct:l,saveMetaboxhiddenProduct:async function(e){try{t(!0);const{saveEntityRecord:r}=(0,a.dispatch)(n.store);return await r("root","user",{id:o.id,metaboxhidden_product:e})}finally{t(!1)}}}}},30895:(e,t,o)=>{"use strict";o.d(t,{g:()=>c});var r=o(3582),n=o(47143);function a(e){return delete e.content,delete e.blocks,e}function c(e="product"){const t=(0,r.useEntityId)("postType",e),{edits:o}=(0,n.useSelect)(o=>{const{getEntityRecordNonTransientEdits:r}=o("core");return{edits:a(r("postType",e,t))}},[t,e]);return{hasEdit:function(e){if(e.startsWith("meta_data.")){const t=e.replace("meta_data.","");return o.hasOwnProperty("meta_data")&&-1!==o.meta_data.findIndex(e=>e.key===t)}return o.hasOwnProperty(e)},hasEdits:Object.keys(o).length>0}}},38045:(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var r=o(3582),n=o(86087),a=function(e,t){const o=e.startsWith("meta_data."),a=e.replace("meta_data.",""),[c,i]=(0,r.useEntityProp)("postType",t?.postType||"product",e),[s,l]=(0,r.useEntityProp)("postType",t?.postType||"product","meta_data"),u=(0,n.useMemo)(()=>s?s.find(e=>e.key===a):null,[s,a]),d=(0,n.useCallback)(e=>{l(u?s.map(t=>t.key===a?{...t,value:e}:t):[...s,{key:a,value:e}])},[s,a,u]);return o?[u?.value??t?.fallbackValue,d]:[c,i]}},37255:(e,t,o)=>{"use strict";o.d(t,{R:()=>h});var r=o(27723),n=o(47143),a=o(86087);const c=window.wc.number;var i=o(40314),s=o(83306),l=o(94111),u=o(882),d=o(94134),m=o(8088);function p(e,t){return"publish"===e&&t?[{label:(0,r.__)("View in store","woocommerce"),onClick:()=>{(0,s.recordEvent)("product_preview_changes",{source:m.bG}),window.open(t,"_blank")}}]:[]}function h(){const{createProduct:e,updateProduct:t,deleteProduct:o}=(0,n.useDispatch)(i.productsStore),{batchUpdateProductVariations:s,invalidateResolutionForStoreSelector:h}=(0,n.useDispatch)(i.experimentalProductVariationsStore),{createNotice:_}=(0,n.useDispatch)("core/notices"),[v,w]=(0,a.useState)(!1),[g,f]=(0,a.useState)({draft:!1,publish:!1}),E=(0,a.useContext)(l.CurrencyContext),b=(0,a.useCallback)(async(t,o,n=!1)=>(f({...g,[o]:!0}),e({...t,status:o,type:(0,u.b)(t)}).then(e=>{if(!n){const t="publish"===e.status?(0,r.__)("Product published.","woocommerce"):(0,r.__)("Product successfully created.","woocommerce");_("success",`🎉‎ ${t}`,{actions:p(e.status,e.permalink)})}return f({...g,[o]:!1}),e},e=>(n||_("error","publish"===o?(0,r.__)("Failed to publish product.","woocommerce"):(0,r.__)("Failed to create product.","woocommerce")),f({...g,[o]:!1}),e))),[g]),C=(0,a.useCallback)(async(e,o,n,a=!1)=>(f({...g,[n]:!0}),t(e,{...o,status:n,type:(0,u.b)(o)}).then(async e=>async function(e,t){if(t)return s({product_id:e},{update:Object.values(t).flatMap(Object.entries).map(([e,t])=>({id:e,menu_order:t}))})}(e.id,o.variationsOrder).then(()=>h("getProductVariations")).then(()=>e)).then(e=>{if(!a){const t="draft"===o.status&&"publish"===e.status?(0,r.__)("Product published.","woocommerce"):(0,r.__)("Product successfully updated.","woocommerce");_("success",`🎉‎ ${t}`,{actions:p(e.status,e.permalink)})}return f({...g,[n]:!1}),e},e=>(a||_("error",(0,r.__)("Failed to update product.","woocommerce")),f({...g,[n]:!1}),e))),[g]),x=(0,a.useCallback)(async(e,t="draft")=>b(function(e){return i.productReadOnlyProperties.forEach(t=>delete e[t]),e}({...e,name:(e.name||d.u6)+" - Copy"}),t),[]),y=(0,a.useCallback)(async e=>(w(!0),o(e).then(e=>{const t=(0,r.__)("Successfully moved product to Trash.","woocommerce");return _("success",`🎉‎ ${t}`),w(!1),e},e=>(_("error",(0,r.__)("Failed to move product to Trash.","woocommerce")),w(!1),e))),[]),A=(0,a.useCallback)(e=>{if(!e.length)return"";const{getCurrencyConfig:t}=E,{decimalSeparator:o}=t(),r=new RegExp(m.Bz.replace("%s",o),"g"),n=new RegExp(m.w1.replaceAll("%s",o),"g");return e.replace(r,"").replace(n,"").replace(o,".")},[E]),k=(0,a.useCallback)(e=>{const{getCurrencyConfig:t}=E,{decimalSeparator:o,thousandSeparator:r}=t();return c.numberFormat({decimalSeparator:o,thousandSeparator:r},e)},[E]),S=(0,a.useCallback)(e=>{const{getCurrencyConfig:t}=E,{decimalSeparator:o,thousandSeparator:r}=t();return c.parseNumber({decimalSeparator:o,thousandSeparator:r},e)},[E]);return{createProductWithStatus:b,updateProductWithStatus:C,copyProductWithStatus:x,deleteProductAndRedirect:y,sanitizePrice:A,formatNumber:k,parseNumber:S,isUpdatingDraft:g.draft,isUpdatingPublished:g.publish,isDeleting:v}}},47189:(e,t,o)=>{"use strict";o.d(t,{O:()=>u});var r=o(3582),n=o(47143),a=o(86087),c=o(40314),i=o(68752),s=o(94134),l=o(87853);function u(e){const[t]=(0,r.useEntityProp)("postType",e,"id"),[o,,u]=(0,r.useEntityProp)("postType",e,"name"),[d]=(0,r.useEntityProp)("postType",e,"status"),[m,p]=(0,a.useState)(!1),[h,_]=(0,a.useState)(!1),{isValidating:v,validate:w}=(0,i.G)(),{isDirty:g}=(0,n.useSelect)(o=>({isDirty:o("core").hasEditsForEntityRecord("postType",e,t)}),[e,t]);async function f(o={}){try{p(!0),await w(o);const{saveEntityRecord:a}=(0,n.dispatch)(r.store),{blocks:c,content:i,selection:s,...l}=(0,n.select)(r.store).getEntityRecordEdits("postType",e,t);return await a("postType",e,{...l,...o,id:t},{throwOnError:!0})}catch(e){throw(0,l.$)(e,d)}finally{p(!1)}}return{isValidating:v,isDirty:g,isSaving:m,isPublishing:m,isTrashing:h,save:f,publish:async function(e={}){return f("publish"===d||"future"===d?e:{status:"publish",...e})},trash:async function(o=!1){try{_(!0),await w();const{deleteEntityRecord:r,saveEditedEntityRecord:a}=(0,n.dispatch)("core");return await a("postType",e,t,{throwOnError:!0}),await r("postType",e,t,{force:o,throwOnError:!0})}catch(e){throw(0,l.$)(e,d)}finally{_(!1)}},copyToDraft:async function(){try{const e=s.u6===u&&o!==u?{name:o}:{};return p(!0),await(0,n.dispatch)(c.productsStore).duplicateProduct(t,e)}catch(e){throw(0,l.$)(e,d)}finally{p(!1)}}}}},43237:(e,t,o)=>{"use strict";o.d(t,{M:()=>l});var r=o(3582),n=o(38443),a=o(73234),c=o(29989),i=o(47189);const s="Y-m-d\\TH:i:s";function l(e){const{isSaving:t,save:o}=(0,i.O)(e),[l,u]=(0,r.useEntityProp)("postType",e,"date_created_gmt"),[d,m,p]=(0,r.useEntityProp)("postType",e,"status"),h=`${l}+00:00`,_=(0,a.H)(h);function v(e){const t=(0,n.getDate)(e??null),o=(0,n.date)(s,t,"GMT");let r=p;return(0,n.isInTheFuture)(t.toISOString())?r="future":"future"===p&&(r="publish"),{status:r,date_created_gmt:o}}return{isScheduling:t,isScheduled:"future"===d||(0,n.isInTheFuture)(_),date:_,formattedDate:(0,c.Uq)(h),setDate:async function(e){const t=v(e);u(t.date_created_gmt),m(t.status)},schedule:async function(e){const t=v(e);return o(t)}}}},95883:(e,t,o)=>{"use strict";o.d(t,{n:()=>r});const r=(e,t)=>{const o=window.productBlockEditorSettings?.productTemplates??[],r=t?.type;if(!e&&"variation"===r)return{productTemplate:null,isResolving:!1};let n;if(e&&(n=o.find(t=>t.id===e)),!n&&t){const e=o.filter(e=>function(e,t){return Object.entries(e.productData).every(([e,o])=>{return"meta_data"===e?(r=o,n=t.meta_data||[],r.every(e=>n.find(t=>t.key===e.key&&t.value===e.value))):t[e]===o;var r,n})}(e,t));n=function(e){return e.reduce((e,t)=>Object.keys(t.productData).length>Object.keys(e.productData).length?t:e,e[0])}(e)||o.find(e=>"standard-product-template"===e.id)}return{productTemplate:n,isResolving:!1}}},74549:(e,t,o)=>{"use strict";o.d(t,{C:()=>c});var r=o(47143),n=o(40314),a=o(96476);function c({variationId:e,parentId:t,parentProductType:o}){const{invalidateResolution:c}=(0,r.useDispatch)("core"),{invalidateResolutionForStoreSelector:i}=(0,r.useDispatch)(n.EXPERIMENTAL_PRODUCT_VARIATIONS_STORE_NAME),s=(0,r.useSelect)(r=>{if(void 0===t)return{};const{getEntityRecord:n}=r("core"),a=n("postType",o||"product",t);if(void 0!==e&&a&&a.variations){const t=a.variations.indexOf(e),o=t>0?t-1:null,r=t!==a.variations.length-1?t+1:null;return{activeVariationIndex:t,nextVariationIndex:r,previousVariationIndex:o,numberOfVariations:a.variations.length,previousVariationId:null!==o?a.variations[o]:null,nextVariationId:null!==r?a.variations[r]:null}}return{}},[e,t]);function l(e){(0,a.navigateTo)({url:(0,a.getNewPath)({},`/product/${t}/variation/${e}`)})}return{...s,invalidateVariationList:function(){c("getEntityRecord",["postType",o||"product",t]),i("getProductVariations"),i("getProductVariationsTotalCount")},goToVariation:l,goToNextVariation:function(){return void 0!==s.nextVariationId&&null!==s.nextVariationId&&(l(s.nextVariationId),!0)},goToPreviousVariation:function(){return void 0!==s.previousVariationId&&null!==s.previousVariationId&&(l(s.previousVariationId),!0)}}}},51259:(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var r=o(86087),n=o(4921);function a({width:e=24,height:t=24,className:o,...a}){return(0,r.createElement)("svg",{...a,width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",className:(0,n.A)(o,"woocommerce-hidden-icon")},(0,r.createElement)("path",{d:"M3.99863 13C4.66945 13.3354 4.66932 13.3357 4.66919 13.3359L4.672 13.3305C4.67523 13.3242 4.68086 13.3135 4.6889 13.2985C4.70497 13.2686 4.73062 13.2218 4.76597 13.1608C4.83672 13.0385 4.94594 12.8592 5.09443 12.6419C5.39214 12.2062 5.84338 11.624 6.45337 11.0431C7.6721 9.88241 9.49621 8.75 11.9986 8.75C14.501 8.75 16.3251 9.88241 17.5439 11.0431C18.1539 11.624 18.6051 12.2062 18.9028 12.6419C19.0513 12.8592 19.1605 13.0385 19.2313 13.1608C19.2666 13.2218 19.2923 13.2686 19.3083 13.2985C19.3164 13.3135 19.322 13.3242 19.3252 13.3305L19.3281 13.3359C19.3279 13.3357 19.3278 13.3354 19.9986 13C20.6694 12.6646 20.6693 12.6643 20.6691 12.664L20.6678 12.6614L20.6652 12.6563L20.6573 12.6408C20.6507 12.6282 20.6417 12.6108 20.63 12.5892C20.6068 12.5459 20.5734 12.4852 20.5296 12.4096C20.4422 12.2584 20.3131 12.0471 20.1413 11.7956C19.7984 11.2938 19.2809 10.626 18.5784 9.9569C17.1721 8.61759 14.9962 7.25 11.9986 7.25C9.00105 7.25 6.82516 8.61759 5.41889 9.9569C4.71638 10.626 4.19886 11.2938 3.85596 11.7956C3.68413 12.0471 3.55507 12.2584 3.46762 12.4096C3.42386 12.4852 3.39044 12.5459 3.3672 12.5892C3.35558 12.6108 3.3465 12.6282 3.33994 12.6408L3.33199 12.6563L3.32943 12.6614L3.3285 12.6632C3.32833 12.6635 3.32781 12.6646 3.99863 13ZM11.9986 16C13.9316 16 15.4986 14.433 15.4986 12.5C15.4986 10.567 13.9316 9 11.9986 9C10.0656 9 8.49863 10.567 8.49863 12.5C8.49863 14.433 10.0656 16 11.9986 16Z",fill:"#949494"}))}},14604:(e,t,o)=>{"use strict";o.d(t,{A:()=>p,p:()=>m});var r=o(47143);const n="MODAL_EDITOR_OPEN",a="MODAL_EDITOR_CLOSE",c="MODAL_EDITOR_SET_BLOCKS",i="MODAL_EDITOR_CONTENT_HAS_CHANGED",s="PANEL_PREPUBLISH_OPEN",l="PANEL_PREPUBLISH_CLOSE";var u={openModalEditor:()=>({type:n}),closeModalEditor:()=>({type:a}),setModalEditorBlocks:e=>({type:c,blocks:e}),setModalEditorContentHasChanged:e=>({type:i,hasChanged:e}),isModalEditorOpen:()=>({type:Boolean}),openPrepublishPanel:()=>({type:s}),closePrepublishPanel:()=>({type:l})};const d={modalEditor:{isOpen:!1,blocks:[],hasChanged:!1},prepublishPanel:{isOpen:!1}},m=(0,r.createReduxStore)("woo/product-editor-ui",{actions:u,selectors:{isModalEditorOpen:function(e){return e.modalEditor?.isOpen},getModalEditorBlocks:function(e){return e.modalEditor?.blocks||[]},getModalEditorContentHasChanged:function(e){return!!e.modalEditor?.hasChanged},isPrepublishPanelOpen:function(e){return e.prepublishPanel?.isOpen}},reducer:function(e=d,t){switch(t.type){case n:return{...e,modalEditor:{...e.modalEditor,isOpen:!0}};case a:return{...e,modalEditor:{...e.modalEditor,isOpen:!1}};case c:return{...e,modalEditor:{...e.modalEditor,blocks:t.blocks||[]}};case i:return{...e,modalEditor:{...e.modalEditor,hasChanged:t?.hasChanged||!1}};case s:return{...e,prepublishPanel:{isOpen:!0}};case l:return{...e,prepublishPanel:{isOpen:!1}}}return e}});function p(){(0,r.register)(m)}},46016:()=>{},94134:(e,t,o)=>{"use strict";o.d(t,{TU:()=>n,gI:()=>r,u6:()=>a});const r="[^-0-9%s1%s2]",n=32,a="AUTO-DRAFT"},35827:(e,t,o)=>{"use strict";o.d(t,{v:()=>a});var r=o(51609),n=o(86087);function a(e,t,o,a){const{children:c,props:i}=function(e,t,o,n){if("function"==typeof e)return{children:e({...o,order:t,...n}),props:{order:t,...n}};if((0,r.isValidElement)(e))return"function"==typeof e?.type?{children:e,props:{...o,order:t,...n}}:{children:e,props:{order:t,...n}};throw Error("Invalid children type")}(e,t,o,a);return(0,n.cloneElement)(c,i)}},29989:(e,t,o)=>{"use strict";o.d(t,{Ib:()=>l,J$:()=>u,T4:()=>s,Uq:()=>d});var r=o(38443),n=o(27723),a=o(67613),c=o(96334),i=o(35763);const s="Y-m-d\\TH:i:s";function l(e,t){const{formats:o}=(0,r.getSettings)(),a=(0,n.sprintf)((0,n._x)("F j, Y %s","product schedule full date format","woocommerce"),o.time);return(0,r.dateI18n)(t??a,e,void 0)}function u(e){const t=(0,a.y)(),o=l(e);return(0,n.isRTL)()?`${t} ${o}`:`${o} ${t}`}function d(e){const{formats:t}=(0,r.getSettings)(),o=(0,r.getDate)(e),a=(0,r.getDate)(null);if((0,c.r)(o,a)&&!(0,r.isInTheFuture)(e))return(0,n.__)("Immediately","woocommerce");if(!(0,i.X)(a))return u(e);if((0,c.r)(o,a))return(0,n.sprintf)((0,n.__)("Today at %s","woocommerce"),l(e,t.time));const s=new Date(a);return s.setDate(s.getDate()+1),(0,c.r)(o,s)?(0,n.sprintf)((0,n.__)("Tomorrow at %s","woocommerce"),l(e,t.time)):o.getFullYear()===a.getFullYear()?l(o,(0,n.sprintf)((0,n._x)("F j %s","product schedule date format without year","woocommerce"),t.time)):l(e)}},73234:(e,t,o)=>{"use strict";o.d(t,{H:()=>n});var r=o(38443);function n(e){const t=(0,r.getDate)(e??null);return(0,r.date)("Y-m-d\\TH:i:s",t,void 0)}},67613:(e,t,o)=>{"use strict";o.d(t,{y:()=>n});var r=o(38443);function n(){const{timezone:e}=(0,r.getSettings)();return e.abbr&&isNaN(Number(e.abbr))?e.abbr:`UTC${Number(e.offset)<0?"":"+"}${e.offsetFormatted??e.offset}`}},96334:(e,t,o)=>{"use strict";function r(e,t){return e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()}o.d(t,{r:()=>r})},2144:(e,t,o)=>{"use strict";o.d(t,{$:()=>n});var r=o(38443);function n(){const e=(0,r.getSettings)();return/a(?!\\)/i.test(e.formats.time.toLowerCase().replace(/\\\\/g,"").split("").reverse().join(""))}},35763:(e,t,o)=>{"use strict";o.d(t,{X:()=>n});var r=o(38443);function n(e){const{timezone:t}=(0,r.getSettings)();return Number(t.offset)===e.getTimezoneOffset()/60*-1}},89359:(e,t,o)=>{"use strict";function r(e){setTimeout(function(t){e.ownerDocument.activeElement===t&&t.select()},0,e)}o.d(t,{m:()=>r})},81005:(e,t,o)=>{"use strict";o.d(t,{O:()=>n});var r=o(94134);const n=(e,t,o)=>{const{decimalSeparator:n,thousandSeparator:a}=t,c=new RegExp(r.gI.replace("%s1",n).replace("%s2",a),"g");return void 0===e?e:o(e).replace(c,"")}},87853:(e,t,o)=>{"use strict";function r(e,t){if(e.code)return e;const o=Object.values(e).find(e=>void 0!==e);return"variations"in e&&e.variations?{...o,code:"variable_product_no_variation_prices"}:void 0!==o?{...o,code:"product_form_field_error"}:{code:"publish"===t||"future"===t?"product_publish_error":"product_create_error"}}o.d(t,{$:()=>r})},882:(e,t,o)=>{"use strict";o.d(t,{b:()=>r});const r=e=>e.attributes?.find(e=>e.options.length&&e.variation)?"variable":"simple"},41198:(e,t,o)=>{"use strict";function r(e,t){return Array(t).fill(0).map((t,o)=>`${e} ${o+1}`)}o.d(t,{E:()=>r})},81786:(e,t,o)=>{"use strict";o.d(t,{k:()=>a});var r=o(27723),n=o(94134);const a=(e,t)=>{const o=Boolean(e),a=e!==t,c=t===n.u6;return o&&a?e:c?(0,r.__)("Add new product","woocommerce"):t}},55204:(e,t,o)=>{"use strict";o.d(t,{Q:()=>r});const r=e=>{let t,o,r;return e&&e.permalink_template&&(t=e.slug||e.generated_slug,[o,r]=e.permalink_template.split(/%(?:postname|pagename)%/)),{prefix:o,postName:t,suffix:r}}},7733:(e,t,o)=>{"use strict";o.d(t,{Ac:()=>s,Wj:()=>i,p_:()=>n});var r=o(27723),n=(e=>(e.instock="instock",e.onbackorder="onbackorder",e.outofstock="outofstock",e))(n||{}),a=(e=>(e.instock="green",e.onbackorder="yellow",e.outofstock="red",e))(a||{});const c={instock:(0,r.__)("In stock","woocommerce"),onbackorder:(0,r.__)("On backorder","woocommerce"),outofstock:(0,r.__)("Out of stock","woocommerce")},i=e=>e.manage_stock?e.stock_quantity||0:e.stock_status?c[e.stock_status]:c.instock,s=e=>{if(e.manage_stock){const t=e.stock_quantity||0;return t>=10?"green":t<10&&t>2?"yellow":"red"}return e.stock_status?a[e.stock_status]:""}},73764:(e,t,o)=>{"use strict";o.d(t,{f:()=>n});var r=o(27723);async function n({message:e=(0,r.__)("Enter a value","woocommerce"),defaultValue:t,onOk:o,onCancel:n}){const a=window.prompt(e,t);null!==a?o(a):n?.()}},36180:(e,t,o)=>{"use strict";o.d(t,{S:()=>r});const r=e=>!(!Array.isArray(e)||!e.length)&&e.some(({variation:e})=>e)},8537:(e,t,o)=>{"use strict";o.d(t,{u6:()=>r.u6,BH:()=>p,T4:()=>k.T4,vX:()=>A.v,mw:()=>n.m,Oh:()=>a.O,Uq:()=>k.Uq,eR:()=>i,W3:()=>s,b4:()=>l.b,Es:()=>w.E,Ib:()=>k.Ib,J$:()=>k.J$,k1:()=>u.k,QY:()=>d.Q,G8:()=>h,Wj:()=>_.Wj,Ac:()=>_.Ac,A5:()=>v,T8:()=>g,H7:()=>S.H,yL:()=>P.y,Nt:()=>f,L3:()=>y,f1:()=>x.f,S_:()=>b.S,SC:()=>D,ro:()=>V.r,$1:()=>B.$,XF:()=>M.X,B9:()=>C,Wc:()=>E.W,w5:()=>O,cP:()=>G,NH:()=>L.N,p$:()=>$.p,CW:()=>F.C,xv:()=>Z.x,BO:()=>L.B});var r=o(94134),n=o(89359),a=o(81005),c=o(83306);function i(e){return{onChange:t=>{(0,c.recordEvent)(`product_checkbox_${e}`,{checked:t})}}}const s=e=>{const{symbol:t,symbolPosition:o}=e,r=o.includes("left")?"prefix":"suffix";return{[r]:t}};var l=o(882),u=o(81786),d=o(55204),m=o(27723);const p={unsaved:(0,m.__)("Unsaved","woocommerce"),draft:(0,m.__)("Draft","woocommerce"),instock:(0,m.__)("In stock","woocommerce"),outofstock:(0,m.__)("Out of stock","woocommerce")},h=e=>e?"draft"===e.status?"draft":"instock"===e.stock_status?"instock":"outofstock":"unsaved";var _=o(7733);const v=(e,t,o)=>e?.length?e:o&&o!==r.u6?o:"simple"===t?(0,m.__)("New standard product","woocommerce"):(0,m.__)("New product","woocommerce");var w=o(41198);const g=e=>e?.attributes?.length?e.attributes.map(e=>e.option).join(", "):"#"+e.id,f=e=>{const t=g(e);return t.length>r.TU?t.substring(0,r.TU)+"…":t};var E=o(73997),b=o(36180);const C=e=>/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(String(e).toLowerCase());var x=o(73764);async function y({message:e=(0,m.__)("Are you sure?","woocommerce"),onOk:t,onCancel:o}){window.confirm(e)?t?.():o?.()}var A=o(35827),k=o(29989),S=o(73234),P=o(67613),V=o(96334),B=o(2144),M=o(35763),F=o(32469),L=o(18105),N=o(64040),T=o.n(N);function D(e){if(T()("initBlock()",{alternative:"registerProductEditorBlockType()",version:"10.9.0",plugin:"WooCommerce",hint:"Product editor extension APIs are deprecated and will be removed in WooCommerce 11.0."}),e)return(0,L.N)(e)}var H=o(1455),z=o.n(H),j=o(96476);const I=()=>{const e=(0,j.getQuery)();return"wc-admin"===e?.page&&["/add-product","/product/"].some(t=>e?.path?.startsWith(t))},R=[{matcher:new RegExp("^/wp/v2/product(?!_)"),getReplaceString:()=>"/wc/v3/products"},{matcher:new RegExp("^/wp/v2/product_variation"),replacement:"/wc/v3/products/0/variations",getReplaceString:()=>{const e=(0,j.getQuery)(),t=new RegExp("/product/([0-9]+)/variation/([0-9]+)"),o=(e.path||"").match(t);return o&&3===o.length?"/wc/v3/products/"+o[1]+"/variations":"/wc/v3/products/0/variations"}}],O=()=>{z().use((e,t)=>{if(e.path&&I())for(const{matcher:t,getReplaceString:o}of R)if(t.test(e.path)){e.path=e.path.replace(t,o());break}return t(e)})},G=()=>{z().use((e,t)=>(I()&&(e.headers=e.headers||{},e.headers["X-Wc-From-Product-Editor"]="1"),t(e)))};var $=o(39141),Z=o(79845)},73997:(e,t,o)=>{"use strict";o.d(t,{W:()=>r});const r=e=>(t,o)=>{const r=new URLSearchParams(t.search),n=new URLSearchParams(o.search);return r.delete("tab"),n.delete("tab"),(void 0===e||"/add-product"!==n.get("path")||r.get("path")!=="/product/"+e)&&r.toString()!==n.toString()}},78509:(e,t,o)=>{"use strict";o.d(t,{R:()=>c});var r=o(83306);const n={cross_sell_ids:"cross_sells",reviews_allowed:"enable_reviews",downloadable:"is_downloadable",virtual:"is_virtual",images:"product_gallery",upsell_ids:"upsells"},a=["attributes","categories","description","manage_stock","menu_order","note","purchase_note","sale_price","short_description","tags","weight","cross_sell_ids","reviews_allowed","downloadable","virtual","images","upsell_ids"];function c(e,t){const{id:o,type:c}=t,i={product_id:o,source:"product-blocks-editor-v1",product_type:c};t.parent_id>0&&(t.note=t.description,delete t.description);for(const e of Object.keys(t))if(a.includes(e)){const o=n[e]||e;Array.isArray(t[e])||"string"==typeof t[e]?i[o]=t[e].length?"yes":"no":i[o]=t[e]?"yes":"no"}if(t.downloadable||t.virtual){const{downloadable:e,virtual:o}=t,r={virtual:o,downloadable:e};i.product_type_options=Object.keys(r).filter(e=>r[e]).join(",")}"images"in t&&(i.product_image=t.images.length?"yes":"no"),t.dimensions&&(i.dimensions=t.dimensions.length.length||t.dimensions.width.length||t.dimensions.height.length?"yes":"no"),(0,r.recordEvent)(e,i)}},18105:(e,t,o)=>{"use strict";o.d(t,{B:()=>i,N:()=>s});var r=o(96702),n=o(3582),a=o(64040),c=o.n(a);function i(e){const{postType:t}=e,o=(0,n.useEntityId)("postType",t);return{getEvaluationContext:r=>{const n=r("core").getEditedEntityRecord("postType",t,o);return{...e,editedProduct:n}}}}function s(e){c()("registerProductEditorBlockType()",{version:"10.9.0",plugin:"WooCommerce",hint:"Product editor extension APIs are deprecated and will be removed in WooCommerce 11.0."});const{metadata:t,settings:o,name:n}=e,a={...t,usesContext:(s=t.usesContext,[...s||[],"postType"])};var s;return(0,r.registerWooBlockType)({name:n,metadata:a,settings:o},i)}},39141:(e,t,o)=>{"use strict";o.d(t,{p:()=>r});const r=(e,t)=>e.reduce((e,o)=>(e[t(o)?0:1].push(o),e),[[],[]])},32469:(e,t,o)=>{"use strict";o.d(t,{C:()=>a});var r=o(51609),n=o(86087);const a=e=>{const t=[...e].sort((e,t)=>e[0].props.order-t[0].props.order);return(0,n.createElement)(r.Fragment,null,t)}},79845:(e,t,o)=>{"use strict";function r(e,t){return e.length>t?e.substring(0,t)+"…":e}o.d(t,{x:()=>r})},54756:(e,t,o)=>{"use strict";o.d(t,{A:()=>u});var r=o(86087),n=o(52619),a=o(29491),c=o(47143);const i=o(54897).generate('\n{{\n\tfunction evaluateUnaryExpression( operator, operand ) {\n\t\tswitch ( operator ) {\n\t\t\tcase \'!\':\n\t\t\t\treturn !operand;\n\t\t\t\tbreak;\n\t\t\tcase \'-\':\n\t\t\t\treturn -operand;\n\t\t\t\tbreak;\n\t\t\tcase \'+\':\n\t\t\t\treturn +operand;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\treturn undefined;\n\t\t\t\tbreak;\n\t\t}\n\t}\n\n\tfunction evaluateBinaryExpression( head, tail ) {\n\t\treturn tail.reduce( ( leftOperand, tailElement ) => {\n\t\t\tconst operator = tailElement[ 1 ];\n\t\t\tconst rightOperand = tailElement[ 3 ];\n\n\t\t\tswitch ( operator ) {\n\t\t\t\tcase \'&&\':\n\t\t\t\t\treturn leftOperand && rightOperand;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \'||\':\n\t\t\t\t\treturn leftOperand || rightOperand;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \'===\':\n\t\t\t\t\treturn leftOperand === rightOperand;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \'!==\':\n\t\t\t\t\treturn leftOperand !== rightOperand;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \'==\':\n\t\t\t\t\treturn leftOperand == rightOperand;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \'!=\':\n\t\t\t\t\treturn leftOperand != rightOperand;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \'<=\':\n\t\t\t\t\treturn leftOperand <= rightOperand;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \'<\':\n\t\t\t\t\treturn leftOperand < rightOperand;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \'>=\':\n\t\t\t\t\treturn leftOperand >= rightOperand;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \'>\':\n\t\t\t\t\treturn leftOperand > rightOperand;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \'+\':\n\t\t\t\t\treturn leftOperand + rightOperand;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \'-\':\n\t\t\t\t\treturn leftOperand - rightOperand;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \'*\':\n\t\t\t\t\treturn leftOperand * rightOperand;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \'/\':\n\t\t\t\t\treturn leftOperand / rightOperand;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \'%\':\n\t\t\t\t\treturn leftOperand % rightOperand;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\treturn undefined;\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}, head );\n\t}\n\n\tfunction getPropertyValue( obj, propertyName ) {\n\t\tif ( Object.hasOwn( obj, propertyName ) ) {\n\t\t\treturn obj[ propertyName ];\n\t\t} else if (\n\t\t\tArray.isArray( obj ) &&\n\t\t\tobj.length > 0 &&\n\t\t\tObject.hasOwn( obj[ 0 ], \'key\' ) &&\n\t\t\tObject.hasOwn( obj[ 0 ], \'value\' )\n\t\t) {\n\t\t\t// We likely dealing with an array of objects with key/value pairs (like post meta data)\n\t\t\tconst item = obj.find( ( item ) => item.key === propertyName );\n\t\t\treturn item?.value;\n\t\t}\n\n\t\treturn undefined;\n\t}\n}}\n\nStart\n\t= Expression\n\nSourceCharacter\n\t= .\n\nWhiteSpace\n\t= " "\n\t/ "\\t"\n\nLineTerminator\n\t= "\\n"\n\t/ "\\r"\n\t/ "\\u2028"\n\t/ "\\u2029"\n\nLineTerminatorSequence\n\t= "\\n"\n\t/ "\\r\\n"\n\t/ "\\r"\n\t/ "\\u2028"\n\t/ "\\u2029"\n\nComment "comment"\n\t= MultiLineComment\n\nMultiLineComment\n\t= "/*" (!"*/" SourceCharacter)* "*/"\n\n__ "skipped"\n\t= (WhiteSpace / LineTerminatorSequence / Comment)*\n\nIdentifierPath\n\t= variable:Identifier accessor:(__ "." __ Identifier)* {\n\t\tconst path = variable.split( \'.\' );\n\t\tlet result = path.reduce( getPropertyValue, options.context );\n\n\t\tfor ( let i = 0; i < accessor.length; i++ ) {\n\t\t\tresult = getPropertyValue( result, accessor[ i ][ 3 ] );\n\t\t}\n\n\t\treturn result;\n\t}\n\nIdentifier\n\t= !ReservedWord name:IdentifierName {\n\t\treturn name;\n\t}\n\nIdentifierName\n\t= first:IdentifierStart rest:IdentifierPart* {\n\t\treturn text();\n\t}\n\nIdentifierStart\n\t= [a-zA-Z]\n\t/ "_"\n\t/ "$"\n\nIdentifierPart\n\t= IdentifierStart\n\nReservedWord\n\t= NullLiteral\n\t/ BooleanLiteral\n\n// Literals\n\nLiteral\n\t= NullLiteral\n\t/ BooleanLiteral\n\t/ NumericLiteral\n\t/ StringLiteral\n\nNullLiteral\n\t= NullToken { return null; }\n\nBooleanLiteral\n\t= "true" { return true; }\n\t/ "false" { return false; }\n\nNumericLiteral\n\t= literal:HexIntegerLiteral !(IdentifierStart / DecimalDigit) {\n\t\treturn literal;\n\t}\n\t/ literal:DecimalLiteral !(IdentifierStart / DecimalDigit) {\n\t\treturn literal;\n\t}\n\nHexIntegerLiteral\n\t= "0x"i digits:$HexDigit+ {\n\t\treturn parseInt( digits, 16 );\n\t}\n\nHexDigit\n\t= [0-9a-f]i\n\nDecimalLiteral\n\t= DecimalIntegerLiteral "." DecimalDigit* ExponentPart? {\n\t\treturn parseFloat( text() );\n\t}\n\t/ "." DecimalDigit+ ExponentPart? {\n\t\treturn parseFloat( text() );\n\t}\n\t/ DecimalIntegerLiteral ExponentPart? {\n\t\treturn parseFloat( text() );\n\t}\n\nDecimalIntegerLiteral\n\t= "0"\n\t/ NonZeroDigit DecimalDigit*\n\nDecimalDigit\n\t= [0-9]\n\nNonZeroDigit\n\t= [1-9]\n\nExponentPart\n\t= ExponentIndicator SignedInteger\n\nExponentIndicator\n\t= "e"i\n\nSignedInteger\n\t= [+-]? DecimalDigit+\n\nStringLiteral\n\t= \'"\' chars:DoubleQuotedStringCharacter* \'"\' {\n\t\treturn chars.join( \'\' );\n\t}\n\t/ "\'" chars:SingleQuotedStringCharacter* "\'" {\n\t\treturn chars.join( \'\' );\n\t}\n\nDoubleQuotedStringCharacter\n\t= !(\'"\' / "\\\\" / LineTerminator) SourceCharacter {\n\t\treturn text();\n\t}\n\t/ "\\\\" escapeSequence:EscapeSequence {\n\t\treturn escapeSequence;\n\t}\n\t/ LineContinuation\n\nSingleQuotedStringCharacter\n\t= !("\'" / "\\\\" / LineTerminator) SourceCharacter {\n\t\treturn text();\n\t}\n\t/ "\\\\" escapeSequence:EscapeSequence {\n\t\treturn escapeSequence;\n\t}\n\t/ LineContinuation\n\nLineContinuation\n\t= "\\\\" LineTerminatorSequence {\n\t\treturn \'\';\n\t}\n\nEscapeSequence\n\t= CharacterEscapeSequence\n\t/ "0" !DecimalDigit {\n\t\treturn "\\0";\n\t}\n\t/ HexEscapeSequence\n\t/ UnicodeEscapeSequence\n\nCharacterEscapeSequence\n\t= SingleEscapeCharacter\n\t/ NonEscapeCharacter\n\nSingleEscapeCharacter\n\t= "\'"\n\t/ \'"\'\n\t/ "\\\\"\n\t/ "b" {\n\t\treturn "\\b";\n\t}\n\t/ "f" {\n\t\treturn "\\f";\n\t}\n\t/ "n" {\n\t\treturn "\\n";\n\t}\n\t/ "r" {\n\t\treturn "\\r";\n\t}\n\t/ "t" {\n\t\treturn "\\t";\n\t}\n\t/ "v" {\n\t\treturn "\\v";\n\t}\n\nNonEscapeCharacter\n\t= (!EscapeCharacter / LineTerminator) SourceCharacter {\n\t\treturn text();\n\t}\n\nEscapeCharacter\n\t= SingleEscapeCharacter\n\t/ DecimalDigit\n\t/ "x"\n\t/ "u"\n\nHexEscapeSequence\n\t= "x" digits:$(HexDigit HexDigit) {\n\t\treturn String.fromCharCode( parseInt( digits, 16 ) );\n\t}\n\nUnicodeEscapeSequence\n\t= "u" digits:$(HexDigit HexDigit HexDigit HexDigit) {\n\t\treturn String.fromCharCode( parseInt( digits, 16 ) );\n\t}\n\n// Tokens\n\nNullToken\n\t= "null" !IdentifierPart\n\nTrueToken\n\t= "true" !IdentifierPart\n\nFalseToken\n\t= "false" !IdentifierPart\n\n// Expressions\n\nPrimaryExpression\n\t= IdentifierPath\n\t/ Literal\n\t/ "(" __ expression:Expression __ ")" {\n\t\treturn expression;\n\t}\n\nUnaryExpression\n\t= PrimaryExpression\n\t/ operator:UnaryOperator __ operand:UnaryExpression {\n\t\treturn evaluateUnaryExpression( operator, operand );\n\t}\n\nUnaryOperator\n\t= "!"\n\t/ "-"\n\t/ "+"\n\nMultiplicativeExpression\n\t= head:UnaryExpression tail:(__ MultiplicativeOperator __ UnaryExpression)* {\n\t\treturn evaluateBinaryExpression( head, tail );\n\t}\n\nMultiplicativeOperator\n\t= "*"\n\t/ "/"\n\t/ "%"\n\nAdditiveExpression\n\t= head:MultiplicativeExpression tail:(__ AdditiveOperator __ MultiplicativeExpression)* {\n\t\treturn evaluateBinaryExpression( head, tail );\n\t}\n\nAdditiveOperator\n\t= "+"\n\t/ "-"\n\nRelationalExpression\n\t= head:AdditiveExpression tail:(__ RelationalOperator __ AdditiveExpression)* {\n\t\treturn evaluateBinaryExpression( head, tail );\n\t}\n\nRelationalOperator\n\t= "<="\n\t/ "<"\n\t/ ">="\n\t/ ">"\n\nEqualityExpression\n\t= head:RelationalExpression tail:(__ EqualityOperator __ RelationalExpression)* {\n\t\treturn evaluateBinaryExpression( head, tail );\n\t}\n\nEqualityOperator\n\t= "==="\n\t/ "!=="\n\t/ "=="\n\t/ "!="\n\nLogicalAndExpression\n\t= head:EqualityExpression tail:(__ LogicalAndOperator __ EqualityExpression)* {\n\t\treturn evaluateBinaryExpression( head, tail );\n\t}\n\nLogicalAndOperator\n\t= "&&"\n\nLogicalOrExpression\n\t= head:LogicalAndExpression tail:(__ LogicalOrOperator __ LogicalAndExpression)* {\n\t\treturn evaluateBinaryExpression( head, tail );\n\t}\n\nLogicalOrOperator\n\t= "||"\n\nConditionalExpression\n\t= condition:LogicalOrExpression __ ConditionalTrueOperator __ expressionIfTrue:ConditionalExpression __ ConditionalFalseOperator __ expressionIfFalse:ConditionalExpression {\n\t\treturn condition ? expressionIfTrue : expressionIfFalse;\n\t}\n\t/ LogicalOrExpression\n\nConditionalTrueOperator\n\t= "?"\n\nConditionalFalseOperator\n\t= ":"\n\nExpression\n\t= __ expression:ConditionalExpression __ {\n\t\treturn expression;\n\t}\n');var s=o(18105);const l=(0,a.createHigherOrderComponent)(e=>t=>{const{hasInnerBlocks:o,allBlocksInvisible:n}=(0,c.useSelect)(e=>{if("product-inventory-advanced"!==t?.attributes?._templateBlockId)return{hasInnerBlocks:!0,allBlocksInvisible:!1};const o=(0,s.B)(t.context),r=e("core/block-editor").getBlock(t?.clientId);let n=!1;if(r?.innerBlocks?.length){const t=r?.innerBlocks[0];a=t?.innerBlocks,c=o.getEvaluationContext(e),n=a.every(e=>!(!e.attributes?._templateBlockHideConditions||!Array.isArray(e.attributes?._templateBlockHideConditions))&&e.attributes._templateBlockHideConditions.some(e=>function(e,t={}){return i.parse(e,{context:t})}(e.expression,c)))}var a,c;return{hasInnerBlocks:!!r?.innerBlocks?.length,allBlocksInvisible:n}},[t.attributes,t.context,t.clientId]);return o&&n?null:(0,r.createElement)(e,{...t})},"maybeHideInventoryAdvancedCollapsible");function u(){(0,n.addFilter)("editor.BlockEdit","woocommerce/handle-hide-inventory-advanced-collapsible",l)}},26078:(e,t,o)=>{"use strict";const r=o(56821),n={findRule(e,t){for(let o=0;o<e.rules.length;o++)if(e.rules[o].name===t)return e.rules[o]},indexOfRule(e,t){for(let o=0;o<e.rules.length;o++)if(e.rules[o].name===t)return o;return-1},alwaysConsumesOnSuccess(e,t){function o(){return!0}function a(){return!1}const c=r.build({choice:e=>e.alternatives.every(c),sequence:e=>e.elements.some(c),simple_and:a,simple_not:a,optional:a,zero_or_more:a,repeated(e){const t=e.min?e.min:e.max;return!("constant"!==t.type||0===t.value||!c(e.expression)&&!(t.value>1&&e.delimiter&&c(e.delimiter)))},semantic_and:a,semantic_not:a,rule_ref(t){const o=n.findRule(e,t.name);return o?c(o):void 0},literal:e=>""!==e.value,class:o,any:o});return c(t)}};e.exports=n},2491:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";const generateBytecode=__webpack_require__(99856),generateJS=__webpack_require__(62256),inferenceMatchResult=__webpack_require__(63190),removeProxyRules=__webpack_require__(76974),reportDuplicateLabels=__webpack_require__(81375),reportDuplicateRules=__webpack_require__(92829),reportInfiniteRecursion=__webpack_require__(1733),reportInfiniteRepetition=__webpack_require__(97782),reportUndefinedRules=__webpack_require__(10328),reportIncorrectPlucking=__webpack_require__(23645),Session=__webpack_require__(3899),visitor=__webpack_require__(56821),{base64}=__webpack_require__(6854);function processOptions(e,t){const o={};return Object.keys(e).forEach(t=>{o[t]=e[t]}),Object.keys(t).forEach(e=>{Object.prototype.hasOwnProperty.call(o,e)||(o[e]=t[e])}),o}function isSourceMapCapable(e){return"string"==typeof e?e.length>0:e&&"function"==typeof e.offset}const compiler={visitor,passes:{check:[reportUndefinedRules,reportDuplicateRules,reportDuplicateLabels,reportInfiniteRecursion,reportInfiniteRepetition,reportIncorrectPlucking],transform:[removeProxyRules,inferenceMatchResult],generate:[generateBytecode,generateJS]},compile(ast,passes,options){if(options=void 0!==options?options:{},options=processOptions(options,{allowedStartRules:[ast.rules[0].name],cache:!1,dependencies:{},exportVar:null,format:"bare",output:"parser",trace:!1}),!Array.isArray(options.allowedStartRules))throw new Error("allowedStartRules must be an array");if(0===options.allowedStartRules.length)throw new Error("Must have at least one start rule");const allRules=ast.rules.map(e=>e.name);if(options.allowedStartRules.some(e=>"*"===e))options.allowedStartRules=allRules;else for(const e of options.allowedStartRules)if(-1===allRules.indexOf(e))throw new Error(`Unknown start rule "${e}"`);if(("source-and-map"===options.output||"source-with-inline-map"===options.output)&&!isSourceMapCapable(options.grammarSource))throw new Error("Must provide grammarSource (as a string or GrammarLocation) in order to generate source maps");const session=new Session(options);switch(Object.keys(passes).forEach(e=>{session.stage=e,session.info(`Process stage ${e}`),passes[e].forEach(t=>{session.info(`Process pass ${e}.${t.name}`),t(ast,options,session)}),session.checkErrors()}),options.output){case"parser":return eval(ast.code.toString());case"source":return ast.code.toString();case"source-and-map":return ast.code;case"source-with-inline-map":{if("undefined"==typeof TextEncoder)throw new Error("TextEncoder is not supported by this platform");const e=ast.code.toStringWithSourceMap(),t=new TextEncoder,o=base64(t.encode(JSON.stringify(e.map.toJSON())));return e.code+`//# sourceMappingURL=data:application/json;charset=utf-8;base64,${o}\n`}case"ast":return ast;default:throw new Error("Invalid output format: "+options.output+".")}}};module.exports=compiler},90620:e=>{"use strict";e.exports={PUSH:0,PUSH_EMPTY_STRING:35,PUSH_UNDEFINED:1,PUSH_NULL:2,PUSH_FAILED:3,PUSH_EMPTY_ARRAY:4,PUSH_CURR_POS:5,POP:6,POP_CURR_POS:7,POP_N:8,NIP:9,APPEND:10,WRAP:11,TEXT:12,PLUCK:36,IF:13,IF_ERROR:14,IF_NOT_ERROR:15,IF_LT:30,IF_GE:31,IF_LT_DYNAMIC:32,IF_GE_DYNAMIC:33,WHILE_NOT_ERROR:16,MATCH_ANY:17,MATCH_STRING:18,MATCH_STRING_IC:19,MATCH_CHAR_CLASS:20,MATCH_REGEXP:20,ACCEPT_N:21,ACCEPT_STRING:22,FAIL:23,LOAD_SAVED_POS:24,UPDATE_SAVED_POS:25,CALL:26,RULE:27,SILENT_FAILS_ON:28,SILENT_FAILS_OFF:29,SOURCE_MAP_PUSH:37,SOURCE_MAP_POP:38,SOURCE_MAP_LABEL_PUSH:39,SOURCE_MAP_LABEL_POP:40}},99856:(e,t,o)=>{"use strict";const r=o(26078),n=o(90620),a=o(56821),{ALWAYS_MATCH:c,SOMETIMES_MATCH:i,NEVER_MATCH:s}=o(63190);e.exports=function(e,t){const o=[],l=[],u=[],d=[],m=[];function p(e){const t=o.indexOf(e);return-1===t?o.push(e)-1:t}function h(e){const t=JSON.stringify(e),o=u.findIndex(e=>JSON.stringify(e)===t);return-1===o?u.push(e)-1:o}function _(e,t,o){const r={predicate:e,params:t,body:o.code,location:o.codeLocation},n=JSON.stringify(r),a=d.findIndex(e=>JSON.stringify(e)===n);return-1===a?d.push(r)-1:a}function v(e){return m.push(e)-1}function w(e){const t={};return Object.keys(e).forEach(o=>{t[o]=e[o]}),t}function g(e,...t){return e.concat(...t)}function f(e,t,o,r){return e===c?o:e===s?r:t.concat([o.length,r.length],o,r)}function E(e,t,o,r){const a=Object.keys(o).map(e=>r-o[e]);return[n.CALL,e,t,a.length].concat(a)}function b(e,t,o){const r=0|e.match;return g([n.PUSH_CURR_POS],[n.SILENT_FAILS_ON],k(e,{sp:o.sp+1,env:w(o.env),action:null}),[n.SILENT_FAILS_OFF],f(t?-r:r,[t?n.IF_ERROR:n.IF_NOT_ERROR],g([n.POP],[t?n.POP:n.POP_CURR_POS],[n.PUSH_UNDEFINED]),g([n.POP],[t?n.POP_CURR_POS:n.POP],[n.PUSH_FAILED])))}function C(e,t,o){const r=_(!0,Object.keys(o.env),e);return g([n.UPDATE_SAVED_POS],E(r,0,o.env,o.sp),f(0|e.match,[n.IF],g([n.POP],t?[n.PUSH_FAILED]:[n.PUSH_UNDEFINED]),g([n.POP],t?[n.PUSH_UNDEFINED]:[n.PUSH_FAILED])))}function x(e){return t=[n.WHILE_NOT_ERROR],o=g([n.APPEND],e),t.concat([o.length],o);var t,o}function y(e,t,o,r){switch(e.type){case"constant":return{pre:[],post:[],sp:o};case"variable":return e.sp=r+o-t[e.value],{pre:[],post:[],sp:o};case"function":return e.sp=r,{pre:E(_(!0,Object.keys(t),{code:e.value,codeLocation:e.codeLocation}),0,t,o),post:[n.NIP],sp:o+1};default:throw new Error(`Unknown boundary type "${e.type}" for the "repeated" node`)}}function A(e,t){if(null!==t.value){const o="constant"===t.type?[n.IF_GE,t.value]:[n.IF_GE_DYNAMIC,t.sp];return f(i,o,[n.PUSH_FAILED],e)}return e}const k=(S={grammar(e){e.rules.forEach(k),e.literals=o,e.classes=l,e.expectations=u,e.functions=d,e.locations=m},rule(e){e.bytecode=k(e.expression,{sp:-1,env:{},pluck:[],action:null})},named(e,t){const o=0|e.match,r=o===s?null:h({type:"rule",value:e.name});return g([n.SILENT_FAILS_ON],k(e.expression,t),[n.SILENT_FAILS_OFF],f(o,[n.IF_ERROR],[n.FAIL,r],[]))},choice:(e,t)=>function e(t,o){const r=0|t[0].match,a=k(t[0],{sp:o.sp,env:w(o.env),action:null});return r===c?a:g(a,t.length>1?f(i,[n.IF_ERROR],g([n.POP],e(t.slice(1),o)),[]):[])}(e.alternatives,t),action(e,t){const o=w(t.env),r="sequence"!==e.expression.type||0===e.expression.elements.length,a=k(e.expression,{sp:t.sp+(r?1:0),env:o,action:e}),c=0|e.expression.match,i=r&&c!==s?_(!1,Object.keys(o),e):null;return r?g([n.PUSH_CURR_POS],a,f(c,[n.IF_NOT_ERROR],g([n.LOAD_SAVED_POS,1],E(i,1,o,t.sp+2)),[]),[n.NIP]):a},sequence:(e,t)=>g([n.PUSH_CURR_POS],function t(o,r){if(o.length>0){const a=e.elements.length-o.length+1;return g(k(o[0],{sp:r.sp,env:r.env,pluck:r.pluck,action:null}),f(0|o[0].match,[n.IF_NOT_ERROR],t(o.slice(1),{sp:r.sp+1,env:r.env,pluck:r.pluck,action:r.action}),g(a>1?[n.POP_N,a]:[n.POP],[n.POP_CURR_POS],[n.PUSH_FAILED])))}if(r.pluck.length>0)return g([n.PLUCK,e.elements.length+1,r.pluck.length],r.pluck.map(e=>r.sp-e));if(r.action){const t=_(!1,Object.keys(r.env),r.action);return g([n.LOAD_SAVED_POS,e.elements.length],E(t,e.elements.length+1,r.env,r.sp))}return g([n.WRAP,e.elements.length],[n.NIP])}(e.elements,{sp:t.sp+1,env:t.env,pluck:[],action:t.action})),labeled(e,o){let r=o.env;const a=e.label,c=o.sp+1;a&&(r=w(o.env),o.env[e.label]=c),e.pick&&o.pluck.push(c);const i=k(e.expression,{sp:o.sp,env:r,action:null});return a&&e.labelLocation&&t&&"source-and-map"===t.output?g([n.SOURCE_MAP_LABEL_PUSH,c,p(a),v(e.labelLocation)],i,[n.SOURCE_MAP_LABEL_POP,c]):i},text:(e,t)=>g([n.PUSH_CURR_POS],k(e.expression,{sp:t.sp+1,env:w(t.env),action:null}),f(0|e.match,[n.IF_NOT_ERROR],g([n.POP],[n.TEXT]),[n.NIP])),simple_and:(e,t)=>b(e.expression,!1,t),simple_not:(e,t)=>b(e.expression,!0,t),optional:(e,t)=>g(k(e.expression,{sp:t.sp,env:w(t.env),action:null}),f(-(0|e.expression.match),[n.IF_ERROR],g([n.POP],[n.PUSH_NULL]),[])),zero_or_more(e,t){const o=k(e.expression,{sp:t.sp+1,env:w(t.env),action:null});return g([n.PUSH_EMPTY_ARRAY],o,x(o),[n.POP])},one_or_more(e,t){const o=k(e.expression,{sp:t.sp+1,env:w(t.env),action:null});return g([n.PUSH_EMPTY_ARRAY],o,f(0|e.expression.match,[n.IF_NOT_ERROR],g(x(o),[n.POP]),g([n.POP],[n.POP],[n.PUSH_FAILED])))},repeated(e,t){const o=e.min?e.min:e.max,r="constant"!==o.type||o.value>0,a="constant"!==e.max.type&&null!==e.max.value,c=r?2:1,s=e.min?y(e.min,t.env,t.sp,2+("function"===e.max.type?1:0)):{pre:[],post:[],sp:t.sp},l=y(e.max,t.env,s.sp,c),u=k(e.expression,{sp:l.sp+c,env:w(t.env),action:null}),d=null!==e.delimiter?k(e.expression,{sp:l.sp+c+1,env:w(t.env),action:null}):u,m=function(e,t,o,r,a){return e?g([n.PUSH_CURR_POS],k(e,{sp:r.sp+a+1,env:w(r.env),action:null}),f(0|e.match,[n.IF_NOT_ERROR],g([n.POP],o,f(-t,[n.IF_ERROR],[n.POP,n.POP_CURR_POS,n.PUSH_FAILED],[n.NIP])),[n.NIP])):o}(e.delimiter,0|e.expression.match,d,t,c),p=A(m,e.max),h=a?A(u,e.max):u,_=g(r?[n.PUSH_CURR_POS]:[],[n.PUSH_EMPTY_ARRAY],h,x(p),[n.POP]);return g(s.pre,l.pre,r?function(e,t){const o="constant"===t.type?[n.IF_LT,t.value]:[n.IF_LT_DYNAMIC,t.sp];return g(e,f(i,o,[n.POP,n.POP_CURR_POS,n.PUSH_FAILED],[n.NIP]))}(_,o):_,l.post,s.post)},group:(e,t)=>k(e.expression,{sp:t.sp,env:w(t.env),action:null}),semantic_and:(e,t)=>C(e,!1,t),semantic_not:(e,t)=>C(e,!0,t),rule_ref:t=>[n.RULE,r.indexOfRule(e,t.name)],literal(e){if(e.value.length>0){const t=0|e.match,o=t===i||t===c&&!e.ignoreCase?p(e.ignoreCase?e.value.toLowerCase():e.value):null,r=t!==c?h({type:"literal",value:e.value,ignoreCase:e.ignoreCase}):null;return f(t,e.ignoreCase?[n.MATCH_STRING_IC,o]:[n.MATCH_STRING,o],e.ignoreCase?[n.ACCEPT_N,e.value.length]:[n.ACCEPT_STRING,o],[n.FAIL,r])}return[n.PUSH_EMPTY_STRING]},class(e){const t=0|e.match,o=t===i?function(e){const t={value:e.parts,inverted:e.inverted,ignoreCase:e.ignoreCase},o=JSON.stringify(t),r=l.findIndex(e=>JSON.stringify(e)===o);return-1===r?l.push(t)-1:r}(e):null,r=t!==c?h({type:"class",value:e.parts,inverted:e.inverted,ignoreCase:e.ignoreCase}):null;return f(t,[n.MATCH_CHAR_CLASS,o],[n.ACCEPT_N,1],[n.FAIL,r])},any(e){const t=0|e.match,o=t!==c?h({type:"any"}):null;return f(t,[n.MATCH_ANY],[n.ACCEPT_N,1],[n.FAIL,o])}},t&&"source-and-map"===t.output&&Object.entries(S).forEach(([e,t])=>{S[e]=function(e,...o){const r=t(e,...o);return void 0!==r&&e.location?g([n.SOURCE_MAP_PUSH,v(e.location)],r,[n.SOURCE_MAP_POP]):r}}),a.build(S));var S;k(e)}},62256:(e,t,o)=>{"use strict";const r=o(26078),n=o(90620),a=o(65311),c=o(66925),{stringEscape:i,regexpClassEscape:s}=o(6854),{SourceNode:l}=o(3640),u=o(89798);function d(e,t,o){const r=u.offsetStart(t),n=r.line,a=r.column-1,c=e.split("\n");return 1===c.length?new l(n,a,String(t.source),e,o):new l(null,null,String(t.source),c.map((e,r)=>new l(n+r,0===r?a:0,String(t.source),r===c.length-1?e:[e,"\n"],o)))}function m(e,t,o,r,n){if(o){const a=u.offsetEnd(o);return new l(null,null,String(o.source),[e,d(t,o,n),new l(a.line,a.column-1,String(o.source),r)])}return new l(null,null,null,[e,t,r])}e.exports=function(e,t){function o(e){let t=!0,o=0;return function e(r){return Array.isArray(r)?r.map(e):r instanceof l?(o++,r.children=e(r.children),o--,r):(r=t?r.replace(/^(.+)$/gm,"  $1"):r.replace(/\n(\s*\S)/g,"\n  $1"),t=!o||r.endsWith("\n"),r)}(e)}function u(e){return"peg$c"+e}function p(e){return"peg$r"+e}function h(e){return"peg$e"+e}function _(e){return"peg$f"+e}function v(e){return"peg$parse"+e}function w(e){return e.codeLocation?d(e.code,e.codeLocation,"$"+e.type):e.code}e.code=function(e){function r(){return[`// Generated by Peggy ${c}.`,"//","// https://peggyjs.org/"]}function n(){return t.trace?["{","  SyntaxError: peg$SyntaxError,","  DefaultTracer: peg$DefaultTracer,","  parse: peg$parse","}"].join("\n"):["{","  SyntaxError: peg$SyntaxError,","  parse: peg$parse","}"].join("\n")}const a={bare:()=>[...r(),"(function() {",'  "use strict";',"",e,"",o("return "+n()+";"),"})()"],commonjs(){const o=Object.keys(t.dependencies),a=r();return a.push("",'"use strict";',""),o.length>0&&(o.forEach(e=>{a.push("var "+e+' = require("'+i(t.dependencies[e])+'");')}),a.push("")),a.push(e,"","module.exports = "+n()+";"),a},es(){const o=Object.keys(t.dependencies),n=r();return n.push(""),o.length>0&&(o.forEach(e=>{n.push("import "+e+' from "'+i(t.dependencies[e])+'";')}),n.push("")),n.push(e,"","export {","  peg$SyntaxError as SyntaxError,",t.trace?"  peg$DefaultTracer as DefaultTracer,":"","  peg$parse as parse","};"),n},amd(){const a=Object.keys(t.dependencies),c="["+a.map(e=>t.dependencies[e]).map(e=>'"'+i(e)+'"').join(", ")+"]",s=a.join(", ");return[...r(),"define("+c+", function("+s+") {",'  "use strict";',"",e,"",o("return "+n()+";"),"});"]},globals:()=>[...r(),"(function(root) {",'  "use strict";',"",e,"",o("root."+t.exportVar+" = "+n()+";"),"})(this);"],umd(){const a=Object.keys(t.dependencies),c=a.map(e=>t.dependencies[e]),s="["+c.map(e=>'"'+i(e)+'"').join(", ")+"]",l=c.map(e=>'require("'+i(e)+'")').join(", "),u=a.join(", "),d=r();return d.push("(function(root, factory) {",'  if (typeof define === "function" && define.amd) {',"    define("+s+", factory);",'  } else if (typeof module === "object" && module.exports) {',"    module.exports = factory("+l+");"),null!==t.exportVar&&d.push("  } else {","    root."+t.exportVar+" = factory();"),d.push("  }","})(this, function("+u+") {",'  "use strict";',"",e,"",o("return "+n()+";"),"});"),d}}[t.format]();return new l(null,null,t.grammarSource,a.map(e=>e instanceof l?e:e+"\n"))}(function(){const c=[];e.topLevelInitializer&&(c.push(w(e.topLevelInitializer)),c.push("")),c.push("function peg$subclass(child, parent) {","  function C() { this.constructor = child; }","  C.prototype = parent.prototype;","  child.prototype = new C();","}","","function peg$SyntaxError(message, expected, found, location) {","  var self = Error.call(this, message);","  // istanbul ignore next Check is a necessary evil to support older environments","  if (Object.setPrototypeOf) {","    Object.setPrototypeOf(self, peg$SyntaxError.prototype);","  }","  self.expected = expected;","  self.found = found;","  self.location = location;",'  self.name = "SyntaxError";',"  return self;","}","","peg$subclass(peg$SyntaxError, Error);","","function peg$padEnd(str, targetLength, padString) {",'  padString = padString || " ";',"  if (str.length > targetLength) { return str; }","  targetLength -= str.length;","  padString += padString.repeat(targetLength);","  return str + padString.slice(0, targetLength);","}","","peg$SyntaxError.prototype.format = function(sources) {",'  var str = "Error: " + this.message;',"  if (this.location) {","    var src = null;","    var k;","    for (k = 0; k < sources.length; k++) {","      if (sources[k].source === this.location.source) {","        src = sources[k].text.split(/\\r\\n|\\n|\\r/g);","        break;","      }","    }","    var s = this.location.start;",'    var offset_s = (this.location.source && (typeof this.location.source.offset === "function"))',"      ? this.location.source.offset(s)","      : s;",'    var loc = this.location.source + ":" + offset_s.line + ":" + offset_s.column;',"    if (src) {","      var e = this.location.end;","      var filler = peg$padEnd(\"\", offset_s.line.toString().length, ' ');","      var line = src[s.line - 1];","      var last = s.line === e.line ? e.column : line.length + 1;","      var hatLen = (last - s.column) || 1;",'      str += "\\n --\x3e " + loc + "\\n"','          + filler + " |\\n"','          + offset_s.line + " | " + line + "\\n"','          + filler + " | " + peg$padEnd("", s.column - 1, \' \')','          + peg$padEnd("", hatLen, "^");',"    } else {",'      str += "\\n at " + loc;',"    }","  }","  return str;","};","","peg$SyntaxError.buildMessage = function(expected, found) {","  var DESCRIBE_EXPECTATION_FNS = {","    literal: function(expectation) {",'      return "\\"" + literalEscape(expectation.text) + "\\"";',"    },","","    class: function(expectation) {","      var escapedParts = expectation.parts.map(function(part) {","        return Array.isArray(part)",'          ? classEscape(part[0]) + "-" + classEscape(part[1])',"          : classEscape(part);","      });","",'      return "[" + (expectation.inverted ? "^" : "") + escapedParts.join("") + "]";',"    },","","    any: function() {",'      return "any character";',"    },","","    end: function() {",'      return "end of input";',"    },","","    other: function(expectation) {","      return expectation.description;","    }","  };","","  function hex(ch) {","    return ch.charCodeAt(0).toString(16).toUpperCase();","  }","","  function literalEscape(s) {","    return s",'      .replace(/\\\\/g, "\\\\\\\\")','      .replace(/"/g,  "\\\\\\"")','      .replace(/\\0/g, "\\\\0")','      .replace(/\\t/g, "\\\\t")','      .replace(/\\n/g, "\\\\n")','      .replace(/\\r/g, "\\\\r")','      .replace(/[\\x00-\\x0F]/g,          function(ch) { return "\\\\x0" + hex(ch); })','      .replace(/[\\x10-\\x1F\\x7F-\\x9F]/g, function(ch) { return "\\\\x"  + hex(ch); });',"  }","","  function classEscape(s) {","    return s",'      .replace(/\\\\/g, "\\\\\\\\")','      .replace(/\\]/g, "\\\\]")','      .replace(/\\^/g, "\\\\^")','      .replace(/-/g,  "\\\\-")','      .replace(/\\0/g, "\\\\0")','      .replace(/\\t/g, "\\\\t")','      .replace(/\\n/g, "\\\\n")','      .replace(/\\r/g, "\\\\r")','      .replace(/[\\x00-\\x0F]/g,          function(ch) { return "\\\\x0" + hex(ch); })','      .replace(/[\\x10-\\x1F\\x7F-\\x9F]/g, function(ch) { return "\\\\x"  + hex(ch); });',"  }","","  function describeExpectation(expectation) {","    return DESCRIBE_EXPECTATION_FNS[expectation.type](expectation);","  }","","  function describeExpected(expected) {","    var descriptions = expected.map(describeExpectation);","    var i, j;","","    descriptions.sort();","","    if (descriptions.length > 0) {","      for (i = 1, j = 1; i < descriptions.length; i++) {","        if (descriptions[i - 1] !== descriptions[i]) {","          descriptions[j] = descriptions[i];","          j++;","        }","      }","      descriptions.length = j;","    }","","    switch (descriptions.length) {","      case 1:","        return descriptions[0];","","      case 2:",'        return descriptions[0] + " or " + descriptions[1];',"","      default:",'        return descriptions.slice(0, -1).join(", ")','          + ", or "',"          + descriptions[descriptions.length - 1];","    }","  }","","  function describeFound(found) {",'    return found ? "\\"" + literalEscape(found) + "\\"" : "end of input";',"  }","",'  return "Expected " + describeExpected(expected) + " but " + describeFound(found) + " found.";',"};",""),t.trace&&c.push("function peg$DefaultTracer() {","  this.indentLevel = 0;","}","","peg$DefaultTracer.prototype.trace = function(event) {","  var that = this;","","  function log(event) {","    function repeat(string, n) {",'       var result = "", i;',"","       for (i = 0; i < n; i++) {","         result += string;","       }","","       return result;","    }","","    function pad(string, length) {",'      return string + repeat(" ", length - string.length);',"    }","",'    if (typeof console === "object") {',"      console.log(",'        event.location.start.line + ":" + event.location.start.column + "-"','          + event.location.end.line + ":" + event.location.end.column + " "','          + pad(event.type, 10) + " "','          + repeat("  ", that.indentLevel) + event.rule',"      );","    }","  }","","  switch (event.type) {",'    case "rule.enter":',"      log(event);","      this.indentLevel++;","      break;","",'    case "rule.match":',"      this.indentLevel--;","      log(event);","      break;","",'    case "rule.fail":',"      this.indentLevel--;","      log(event);","      break;","","    default:",'      throw new Error("Invalid event type: " + event.type + ".");',"  }","};","");const d="{ "+t.allowedStartRules.map(e=>e+": "+v(e)).join(", ")+" }",g=v(t.allowedStartRules[0]);return c.push("function peg$parse(input, options) {","  options = options !== undefined ? options : {};","","  var peg$FAILED = {};","  var peg$source = options.grammarSource;","","  var peg$startRuleFunctions = "+d+";","  var peg$startRuleFunction = "+g+";","",new l(null,null,t.grammarSource,[e.literals.map((e,t)=>"  var "+u(t)+' = "'+i(e)+'";').concat("",e.classes.map((e,t)=>{return"  var "+p(t)+" = /^["+((o=e).inverted?"^":"")+o.value.map(e=>Array.isArray(e)?s(e[0])+"-"+s(e[1]):s(e)).join("")+"]/"+(o.ignoreCase?"i":"")+";";var o})).concat("",e.expectations.map((e,t)=>"  var "+h(t)+" = "+function(e){switch(e.type){case"rule":return'peg$otherExpectation("'+i(e.value)+'")';case"literal":return'peg$literalExpectation("'+i(e.value)+'", '+e.ignoreCase+")";case"class":return"peg$classExpectation(["+e.value.map(e=>Array.isArray(e)?'["'+i(e[0])+'", "'+i(e[1])+'"]':'"'+i(e)+'"').join(", ")+"], "+e.inverted+", "+e.ignoreCase+")";case"any":return"peg$anyExpectation()";default:throw new Error("Unknown expectation type ("+JSON.stringify(e)+")")}}(e)+";")).concat("").join("\n"),e.functions.map(function(e,t){return m(`\n  var ${_(t)} = function(${e.params.join(", ")}) {`,e.body,e.location,"};")})]),"","  var peg$currPos = 0;","  var peg$savedPos = 0;","  var peg$posDetailsCache = [{ line: 1, column: 1 }];","  var peg$maxFailPos = 0;","  var peg$maxFailExpected = [];","  var peg$silentFails = 0;",""),t.cache&&c.push("  var peg$resultsCache = {};",""),t.trace&&c.push('  var peg$tracer = "tracer" in options ? options.tracer : new peg$DefaultTracer();',""),c.push("  var peg$result;","",'  if ("startRule" in options) {',"    if (!(options.startRule in peg$startRuleFunctions)) {",'      throw new Error("Can\'t start parsing from rule \\"" + options.startRule + "\\".");',"    }","","    peg$startRuleFunction = peg$startRuleFunctions[options.startRule];","  }","","  function text() {","    return input.substring(peg$savedPos, peg$currPos);","  }","","  function offset() {","    return peg$savedPos;","  }","","  function range() {","    return {","      source: peg$source,","      start: peg$savedPos,","      end: peg$currPos","    };","  }","","  function location() {","    return peg$computeLocation(peg$savedPos, peg$currPos);","  }","","  function expected(description, location) {","    location = location !== undefined","      ? location","      : peg$computeLocation(peg$savedPos, peg$currPos);","","    throw peg$buildStructuredError(","      [peg$otherExpectation(description)],","      input.substring(peg$savedPos, peg$currPos),","      location","    );","  }","","  function error(message, location) {","    location = location !== undefined","      ? location","      : peg$computeLocation(peg$savedPos, peg$currPos);","","    throw peg$buildSimpleError(message, location);","  }","","  function peg$literalExpectation(text, ignoreCase) {",'    return { type: "literal", text: text, ignoreCase: ignoreCase };',"  }","","  function peg$classExpectation(parts, inverted, ignoreCase) {",'    return { type: "class", parts: parts, inverted: inverted, ignoreCase: ignoreCase };',"  }","","  function peg$anyExpectation() {",'    return { type: "any" };',"  }","","  function peg$endExpectation() {",'    return { type: "end" };',"  }","","  function peg$otherExpectation(description) {",'    return { type: "other", description: description };',"  }","","  function peg$computePosDetails(pos) {","    var details = peg$posDetailsCache[pos];","    var p;","","    if (details) {","      return details;","    } else {","      p = pos - 1;","      while (!peg$posDetailsCache[p]) {","        p--;","      }","","      details = peg$posDetailsCache[p];","      details = {","        line: details.line,","        column: details.column","      };","","      while (p < pos) {","        if (input.charCodeAt(p) === 10) {","          details.line++;","          details.column = 1;","        } else {","          details.column++;","        }","","        p++;","      }","","      peg$posDetailsCache[pos] = details;","","      return details;","    }","  }","","  function peg$computeLocation(startPos, endPos, offset) {","    var startPosDetails = peg$computePosDetails(startPos);","    var endPosDetails = peg$computePosDetails(endPos);","","    var res = {","      source: peg$source,","      start: {","        offset: startPos,","        line: startPosDetails.line,","        column: startPosDetails.column","      },","      end: {","        offset: endPos,","        line: endPosDetails.line,","        column: endPosDetails.column","      }","    };",'    if (offset && peg$source && (typeof peg$source.offset === "function")) {',"      res.start = peg$source.offset(res.start);","      res.end = peg$source.offset(res.end);","    }","    return res;","  }","","  function peg$fail(expected) {","    if (peg$currPos < peg$maxFailPos) { return; }","","    if (peg$currPos > peg$maxFailPos) {","      peg$maxFailPos = peg$currPos;","      peg$maxFailExpected = [];","    }","","    peg$maxFailExpected.push(expected);","  }","","  function peg$buildSimpleError(message, location) {","    return new peg$SyntaxError(message, null, null, location);","  }","","  function peg$buildStructuredError(expected, found, location) {","    return new peg$SyntaxError(","      peg$SyntaxError.buildMessage(expected, found),","      expected,","      found,","      location","    );","  }",""),e.rules.forEach(s=>{c.push(...o(function(c){const s=[],l=new a(c.name,"s","var",c.bytecode),d=function t(r){let a=0;const i=r.length,s=[];let d;function m(e,n){const c=n+3,i=r[a+c-2],u=r[a+c-1];let d,m;l.checkedIf(a,()=>{a+=c,d=t(r.slice(a,a+i)),a+=i},u>0?()=>{m=t(r.slice(a,a+u)),a+=u}:null),s.push("if ("+e+") {"),s.push(...o(d)),u>0&&(s.push("} else {"),s.push(...o(m))),s.push("}")}function w(e){const n=r[a+2-1];let c;l.checkedLoop(a,()=>{a+=2,c=t(r.slice(a,a+n)),a+=n}),s.push("while ("+e+") {"),s.push(...o(c)),s.push("}")}function g(e){const t=r[a+e-1];return _(r[a+1])+"("+r.slice(a+e,a+e+t).map(e=>l.index(e)).join(", ")+")"}for(;a<i;)switch(r[a]){case n.PUSH_EMPTY_STRING:s.push(l.push("''")),a++;break;case n.PUSH_CURR_POS:s.push(l.push("peg$currPos")),a++;break;case n.PUSH_UNDEFINED:s.push(l.push("undefined")),a++;break;case n.PUSH_NULL:s.push(l.push("null")),a++;break;case n.PUSH_FAILED:s.push(l.push("peg$FAILED")),a++;break;case n.PUSH_EMPTY_ARRAY:s.push(l.push("[]")),a++;break;case n.POP:l.pop(),a++;break;case n.POP_CURR_POS:s.push("peg$currPos = "+l.pop()+";"),a++;break;case n.POP_N:l.pop(r[a+1]),a+=2;break;case n.NIP:d=l.pop(),l.pop(),s.push(l.push(d)),a++;break;case n.APPEND:d=l.pop(),s.push(l.top()+".push("+d+");"),a++;break;case n.WRAP:s.push(l.push("["+l.pop(r[a+1]).join(", ")+"]")),a+=2;break;case n.TEXT:s.push(l.push("input.substring("+l.pop()+", peg$currPos)")),a++;break;case n.PLUCK:{const e=3,t=r[a+e-1],o=e+t;d=r.slice(a+e,a+o),d=1===t?l.index(d[0]):`[ ${d.map(e=>l.index(e)).join(", ")} ]`,l.pop(r[a+1]),s.push(l.push(d)),a+=o;break}case n.IF:m(l.top(),0);break;case n.IF_ERROR:m(l.top()+" === peg$FAILED",0);break;case n.IF_NOT_ERROR:m(l.top()+" !== peg$FAILED",0);break;case n.IF_LT:m(l.top()+".length < "+r[a+1],1);break;case n.IF_GE:m(l.top()+".length >= "+r[a+1],1);break;case n.IF_LT_DYNAMIC:m(l.top()+".length < ("+l.index(r[a+1])+"|0)",1);break;case n.IF_GE_DYNAMIC:m(l.top()+".length >= ("+l.index(r[a+1])+"|0)",1);break;case n.WHILE_NOT_ERROR:w(l.top()+" !== peg$FAILED");break;case n.MATCH_ANY:m("input.length > peg$currPos",0);break;case n.MATCH_STRING:m(e.literals[r[a+1]].length>1?"input.substr(peg$currPos, "+e.literals[r[a+1]].length+") === "+u(r[a+1]):"input.charCodeAt(peg$currPos) === "+e.literals[r[a+1]].charCodeAt(0),1);break;case n.MATCH_STRING_IC:m("input.substr(peg$currPos, "+e.literals[r[a+1]].length+").toLowerCase() === "+u(r[a+1]),1);break;case n.MATCH_CHAR_CLASS:m(p(r[a+1])+".test(input.charAt(peg$currPos))",1);break;case n.ACCEPT_N:s.push(l.push(r[a+1]>1?"input.substr(peg$currPos, "+r[a+1]+")":"input.charAt(peg$currPos)")),s.push(r[a+1]>1?"peg$currPos += "+r[a+1]+";":"peg$currPos++;"),a+=2;break;case n.ACCEPT_STRING:s.push(l.push(u(r[a+1]))),s.push(e.literals[r[a+1]].length>1?"peg$currPos += "+e.literals[r[a+1]].length+";":"peg$currPos++;"),a+=2;break;case n.FAIL:s.push(l.push("peg$FAILED")),s.push("if (peg$silentFails === 0) { peg$fail("+h(r[a+1])+"); }"),a+=2;break;case n.LOAD_SAVED_POS:s.push("peg$savedPos = "+l.index(r[a+1])+";"),a+=2;break;case n.UPDATE_SAVED_POS:s.push("peg$savedPos = peg$currPos;"),a++;break;case n.CALL:d=g(4),l.pop(r[a+2]),s.push(l.push(d)),a+=4+r[a+3];break;case n.RULE:s.push(l.push(v(e.rules[r[a+1]].name)+"()")),a+=2;break;case n.SILENT_FAILS_ON:s.push("peg$silentFails++;"),a++;break;case n.SILENT_FAILS_OFF:s.push("peg$silentFails--;"),a++;break;case n.SOURCE_MAP_PUSH:l.sourceMapPush(s,e.locations[r[a+1]]),a+=2;break;case n.SOURCE_MAP_POP:l.sourceMapPop(),a++;break;case n.SOURCE_MAP_LABEL_PUSH:l.labels[r[a+1]]={label:e.literals[r[a+2]],location:e.locations[r[a+3]]},a+=4;break;case n.SOURCE_MAP_LABEL_POP:delete l.labels[r[a+1]],a+=2;break;default:throw new Error("Invalid opcode: "+r[a]+".",{rule:c.name,bytecode:r})}return s}(c.bytecode);return s.push(m("function ",v(c.name),c.nameLocation,"() {\n",c.name)),t.trace&&s.push("  var startPos = peg$currPos;"),s.push(o(l.defines())),s.push(...o(function(o,r){const n=[];return n.push(""),t.trace&&n.push("peg$tracer.trace({",'  type: "rule.enter",',"  rule: "+o+",","  location: peg$computeLocation(startPos, startPos, true)","});",""),t.cache&&(n.push("var key = peg$currPos * "+e.rules.length+" + "+r+";","var cached = peg$resultsCache[key];","","if (cached) {","  peg$currPos = cached.nextPos;",""),t.trace&&n.push("if (cached.result !== peg$FAILED) {","  peg$tracer.trace({",'    type: "rule.match",',"    rule: "+o+",","    result: cached.result,","    location: peg$computeLocation(startPos, peg$currPos, true)","  });","} else {","  peg$tracer.trace({",'    type: "rule.fail",',"    rule: "+o+",","    location: peg$computeLocation(startPos, startPos, true)","  });","}",""),n.push("  return cached.result;","}","")),n}('"'+i(c.name)+'"',r.indexOfRule(e,c.name)))),s.push(...o(d)),s.push(...o(function(e,o){const r=[];return t.cache&&r.push("","peg$resultsCache[key] = { nextPos: peg$currPos, result: "+o+" };"),t.trace&&r.push("","if ("+o+" !== peg$FAILED) {","  peg$tracer.trace({",'    type: "rule.match",',"    rule: "+e+",","    result: "+o+",","    location: peg$computeLocation(startPos, peg$currPos, true)","  });","} else {","  peg$tracer.trace({",'    type: "rule.fail",',"    rule: "+e+",","    location: peg$computeLocation(startPos, startPos, true)","  });","}"),r.push("","return "+o+";"),r}('"'+i(c.name)+'"',l.result()))),s.push("}"),s}(s))),c.push("")}),e.initializer&&(c.push(w(e.initializer)),c.push("")),c.push("  peg$result = peg$startRuleFunction();","","  if (peg$result !== peg$FAILED && peg$currPos === input.length) {","    return peg$result;","  } else {","    if (peg$result !== peg$FAILED && peg$currPos < input.length) {","      peg$fail(peg$endExpectation());","    }","","    throw peg$buildStructuredError(","      peg$maxFailExpected,","      peg$maxFailPos < input.length ? input.charAt(peg$maxFailPos) : null,","      peg$maxFailPos < input.length","        ? peg$computeLocation(peg$maxFailPos, peg$maxFailPos + 1)","        : peg$computeLocation(peg$maxFailPos, peg$maxFailPos)","    );","  }","}"),new l(null,null,t.grammarSource,c.map(e=>e instanceof l?e:e+"\n"))}())}},63190:(e,t,o)=>{"use strict";const r=o(56821),n=o(26078),a=o(60343),c=-1;function i(e){function t(e){return e.match=0}function o(e){return l(e.expression),e.match=1}function i(e){return e.match=l(e.expression)}function s(e,t){const o=e.length;let r=0,n=0;for(let t=0;t<o;++t){const o=l(e[t]);1===o&&++r,o===c&&++n}return r===o?1:t?n===o?c:0:n>0?c:0}const l=r.build({rule(e){let t,o=0;if(void 0===e.match){e.match=0;do{if(t=e.match,e.match=l(e.expression),++o>6)throw new a("Infinity cycle detected when trying to evaluate node match result",e.location)}while(t!==e.match)}return e.match},named:i,choice:e=>e.match=s(e.alternatives,!0),action:i,sequence:e=>e.match=s(e.elements,!1),labeled:i,text:i,simple_and:i,simple_not:e=>e.match=-l(e.expression),optional:o,zero_or_more:o,one_or_more:i,repeated(e){const t=l(e.expression),o=e.delimiter?l(e.delimiter):c,r=e.min?e.min:e.max;return"constant"!==r.type||"constant"!==e.max.type?e.match=0:0===e.max.value||null!==e.max.value&&r.value>e.max.value?e.match=c:t===c?e.match=0===r.value?1:c:1===t?e.delimiter&&r.value>=2?e.match=o:e.match=1:e.delimiter&&r.value>=2?e.match=o===c?c:0:e.match=0===r.value?1:0},group:i,semantic_and:t,semantic_not:t,rule_ref(t){const o=n.findRule(e,t.name);return t.match=l(o)},literal(e){const t=0===e.value.length?1:0;return e.match=t},class(e){const t=0===e.parts.length?c:0;return e.match=t},any:t});l(e)}i.ALWAYS_MATCH=1,i.SOMETIMES_MATCH=0,i.NEVER_MATCH=c,e.exports=i},76974:(e,t,o)=>{"use strict";const r=o(26078),n=o(56821);e.exports=function(e,t,o){const a=[];e.rules.forEach((c,i)=>{var s;"rule"===(s=c).type&&"rule_ref"===s.expression.type&&(function(e,t,a){n.build({rule_ref(n){n.name===t&&(n.name=a,o.info(`Proxy rule "${t}" replaced by the rule "${a}"`,n.location,[{message:"This rule will be used",location:r.findRule(e,a).nameLocation}]))}})(e)}(e,c.name,c.expression.name),-1===t.allowedStartRules.indexOf(c.name)&&a.push(i))}),a.reverse(),a.forEach(t=>{e.rules.splice(t,1)})}},81375:(e,t,o)=>{"use strict";const r=o(56821);e.exports=function(e,t,o){function n(e){const t={};return Object.keys(e).forEach(o=>{t[o]=e[o]}),t}function a(e,t){c(e.expression,n(t))}const c=r.build({rule(e){c(e.expression,{})},choice(e,t){e.alternatives.forEach(e=>{c(e,n(t))})},action:a,labeled(e,t){const r=e.label;r&&Object.prototype.hasOwnProperty.call(t,r)&&o.error(`Label "${e.label}" is already defined`,e.labelLocation,[{message:"Original label location",location:t[r]}]),c(e.expression,t),t[e.label]=e.labelLocation},text:a,simple_and:a,simple_not:a,optional:a,zero_or_more:a,one_or_more:a,repeated(e,t){e.delimiter&&c(e.delimiter,n(t)),c(e.expression,n(t))},group:a});c(e)}},92829:(e,t,o)=>{"use strict";const r=o(56821);e.exports=function(e,t,o){const n={};r.build({rule(e){Object.prototype.hasOwnProperty.call(n,e.name)?o.error(`Rule "${e.name}" is already defined`,e.nameLocation,[{message:"Original rule location",location:n[e.name]}]):n[e.name]=e.nameLocation}})(e)}},23645:(e,t,o)=>{"use strict";const r=o(56821);e.exports=function(e,t,o){const n=r.build({action(e){n(e.expression,e)},labeled(e,t){e.pick&&t&&o.error('"@" cannot be used with an action block',e.labelLocation,[{message:"Action block location",location:t.codeLocation}]),n(e.expression)}});n(e)}},1733:(e,t,o)=>{"use strict";const r=o(26078),n=o(56821);e.exports=function(e,t,o){const a=[],c=[],i=n.build({rule(e){a.push(e.name),i(e.expression),a.pop()},sequence(t){t.elements.every(t=>(i(t),!r.alwaysConsumesOnSuccess(e,t)))},repeated(t){i(t.expression),t.delimiter&&!r.alwaysConsumesOnSuccess(e,t.expression)&&i(t.delimiter)},rule_ref(t){c.push(t);const n=r.findRule(e,t.name);if(-1!==a.indexOf(t.name))return a.push(t.name),void o.error("Possible infinite loop when parsing (left recursion: "+a.join(" -> ")+")",n.nameLocation,c.map((e,t,o)=>({message:t+1!==o.length?`Step ${t+1}: call of the rule "${e.name}" without input consumption`:`Step ${t+1}: call itself without input consumption - left recursion`,location:e.location})));n&&i(n),c.pop()}});i(e)}},97782:(e,t,o)=>{"use strict";const r=o(26078),n=o(56821);e.exports=function(e,t,o){const a=n.build({zero_or_more(t){r.alwaysConsumesOnSuccess(e,t.expression)||o.error("Possible infinite loop when parsing (repetition used with an expression that may not consume any input)",t.location)},one_or_more(t){r.alwaysConsumesOnSuccess(e,t.expression)||o.error("Possible infinite loop when parsing (repetition used with an expression that may not consume any input)",t.location)},repeated(t){if(t.delimiter&&a(t.delimiter),!(r.alwaysConsumesOnSuccess(e,t.expression)||t.delimiter&&r.alwaysConsumesOnSuccess(e,t.delimiter)))if(null===t.max.value)o.error("Possible infinite loop when parsing (unbounded range repetition used with an expression that may not consume any input)",t.location);else{const e=t.min?t.min:t.max;o.warning("constant"===e.type&&"constant"===t.max.type?`An expression may not consume any input and may always match ${t.max.value} times`:"An expression may not consume any input and may always match with a maximum repetition count",t.location)}}});a(e)}},10328:(e,t,o)=>{"use strict";const r=o(26078),n=o(56821);e.exports=function(e,t,o){n.build({rule_ref(t){r.findRule(e,t.name)||o.error(`Rule "${t.name}" is not defined`,t.location)}})(e)}},3899:(e,t,o)=>{"use strict";const r=o(60343);class n{constructor(e){"function"==typeof(e=void 0!==e?e:{}).error&&(this.error=e.error),"function"==typeof e.warning&&(this.warning=e.warning),"function"==typeof e.info&&(this.info=e.info)}error(){}warning(){}info(){}}e.exports=class{constructor(e){this._callbacks=new n(e),this._firstError=null,this.errors=0,this.problems=[],this.stage=null}error(...e){++this.errors,null===this._firstError&&(this._firstError=new r(...e),this._firstError.stage=this.stage,this._firstError.problems=this.problems),this.problems.push(["error",...e]),this._callbacks.error(this.stage,...e)}warning(...e){this.problems.push(["warning",...e]),this._callbacks.warning(this.stage,...e)}info(...e){this.problems.push(["info",...e]),this._callbacks.info(this.stage,...e)}checkErrors(){if(0!==this.errors)throw this._firstError}}},65311:(e,t,o)=>{"use strict";const{SourceNode:r}=o(3640),n=o(89798);class a{constructor(e,t,o,r){this.sp=-1,this.maxSp=-1,this.varName=t,this.ruleName=e,this.type=o,this.bytecode=r,this.labels={},this.sourceMapStack=[]}name(e){if(e<0)throw new RangeError(`Rule '${this.ruleName}': The variable stack underflow: attempt to use a variable '${this.varName}<x>' at an index ${e}.\nBytecode: ${this.bytecode}`);return this.varName+e}static sourceNode(e,t,o){const a=n.offsetStart(e);return new r(a.line,a.column?a.column-1:null,String(e.source),t,o)}push(e){++this.sp>this.maxSp&&(this.maxSp=this.sp);const t=this.labels[this.sp],o=[this.name(this.sp)," = ",e,";"];if(t){if(this.sourceMapStack.length){const e=a.sourceNode(t.location,o.splice(0,2),t.label),{parts:n,location:c}=this.sourceMapPopInternal(),i=c.start.offset<t.location.end.offset?{start:t.location.end,end:c.end,source:c.source}:c,s=a.sourceNode(i,o.concat("\n"));return this.sourceMapStack.push([n,n.length+1,c]),new r(null,null,t.location.source,[e,s])}return a.sourceNode(t.location,o.concat("\n"))}return o.join("")}pop(e){return void 0!==e?(this.sp-=e,Array.from({length:e},(e,t)=>this.name(this.sp+1+t))):this.name(this.sp--)}top(){return this.name(this.sp)}index(e){if(e<0)throw new RangeError(`Rule '${this.ruleName}': The variable stack overflow: attempt to get a variable at a negative index ${e}.\nBytecode: ${this.bytecode}`);return this.name(this.sp-e)}result(){if(this.maxSp<0)throw new RangeError(`Rule '${this.ruleName}': The variable stack is empty, can't get the result.\nBytecode: ${this.bytecode}`);return this.name(0)}defines(){return this.maxSp<0?"":this.type+" "+Array.from({length:this.maxSp+1},(e,t)=>this.name(t)).join(", ")+";"}checkedIf(e,t,o){const r=this.sp;if(t(),o){const t=this.sp;if(this.sp=r,o(),t!==this.sp)throw new Error("Rule '"+this.ruleName+"', position "+e+": Branches of a condition can't move the stack pointer differently (before: "+r+", after then: "+t+", after else: "+this.sp+"). Bytecode: "+this.bytecode)}}checkedLoop(e,t){const o=this.sp;if(t(),o!==this.sp)throw new Error("Rule '"+this.ruleName+"', position "+e+": Body of a loop can't move the stack pointer (before: "+o+", after: "+this.sp+"). Bytecode: "+this.bytecode)}sourceMapPush(e,t){if(this.sourceMapStack.length){const e=this.sourceMapStack[this.sourceMapStack.length-1];e[2].start.offset===t.start.offset&&e[2].end.offset>t.end.offset&&(e[2]={start:t.end,end:e[2].end,source:e[2].source})}this.sourceMapStack.push([e,e.length,t])}sourceMapPopInternal(){const[e,t,o]=this.sourceMapStack.pop(),a=e.splice(t).map(e=>e instanceof r?e:e+"\n");if(a.length){const t=n.offsetStart(o);e.push(new r(t.line,t.column-1,String(o.source),a))}return{parts:e,location:o}}sourceMapPop(e){const{location:t}=this.sourceMapPopInternal();if(this.sourceMapStack.length&&t.end.offset<this.sourceMapStack[this.sourceMapStack.length-1][2].end.offset){const{parts:o,location:r}=this.sourceMapPopInternal(),n=r.start.offset<t.end.offset?{start:t.end,end:r.end,source:r.source}:r;this.sourceMapStack.push([o,o.length+(e||0),n])}}}e.exports=a},6854:(e,t)=>{"use strict";function o(e){return e.charCodeAt(0).toString(16).toUpperCase()}t.hex=o,t.stringEscape=function(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\x08/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\v/g,"\\v").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,e=>"\\x0"+o(e)).replace(/[\x10-\x1F\x7F-\xFF]/g,e=>"\\x"+o(e)).replace(/[\u0100-\u0FFF]/g,e=>"\\u0"+o(e)).replace(/[\u1000-\uFFFF]/g,e=>"\\u"+o(e))},t.regexpClassEscape=function(e){return e.replace(/\\/g,"\\\\").replace(/\//g,"\\/").replace(/]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\x08/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\v/g,"\\v").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,e=>"\\x0"+o(e)).replace(/[\x10-\x1F\x7F-\xFF]/g,e=>"\\x"+o(e)).replace(/[\u0100-\u0FFF]/g,e=>"\\u0"+o(e)).replace(/[\u1000-\uFFFF]/g,e=>"\\u"+o(e))},t.base64=function(e){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=e.length%3,r=e.length-o;let n="";for(let o=0;o<r;o+=3)n+=t[e[o]>>2],n+=t[(3&e[o])<<4|e[o+1]>>4],n+=t[(15&e[o+1])<<2|e[o+2]>>6],n+=t[63&e[o+2]];return 1===o?(n+=t[e[r]>>2],n+=t[(3&e[r])<<4],n+="=="):2===o&&(n+=t[e[r]>>2],n+=t[(3&e[r])<<4|e[r+1]>>4],n+=t[(15&e[r+1])<<2],n+="="),n}},56821:e=>{"use strict";const t={build(e){function t(t,...o){return e[t.type](t,...o)}function o(){}function r(e,...o){return t(e.expression,...o)}function n(e){return function(o,...r){o[e].forEach(e=>t(e,...r))}}const a={grammar(e,...o){e.topLevelInitializer&&t(e.topLevelInitializer,...o),e.initializer&&t(e.initializer,...o),e.rules.forEach(e=>t(e,...o))},top_level_initializer:o,initializer:o,rule:r,named:r,choice:n("alternatives"),action:r,sequence:n("elements"),labeled:r,text:r,simple_and:r,simple_not:r,optional:r,zero_or_more:r,one_or_more:r,repeated:(e,...o)=>(e.delimiter&&t(e.delimiter,...o),t(e.expression,...o)),group:r,semantic_and:o,semantic_not:o,rule_ref:o,literal:o,class:o,any:o};return Object.keys(a).forEach(t=>{Object.prototype.hasOwnProperty.call(e,t)||(e[t]=a[t])}),t}};e.exports=t},60343:(e,t,o)=>{"use strict";const r=o(89798),n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])};class a extends Error{constructor(e,t,o){super(e),n(this,a.prototype),this.name="GrammarError",this.location=t,void 0===o&&(o=[]),this.diagnostics=o,this.stage=null,this.problems=[["error",e,t,o]]}toString(){let e=super.toString();this.location&&(e+="\n at ",void 0!==this.location.source&&null!==this.location.source&&(e+=`${this.location.source}:`),e+=`${this.location.start.line}:${this.location.start.column}`);for(const t of this.diagnostics)e+="\n from ",void 0!==t.location.source&&null!==t.location.source&&(e+=`${t.location.source}:`),e+=`${t.location.start.line}:${t.location.start.column}: ${t.message}`;return e}format(e){const t=e.map(({source:e,text:t})=>({source:e,text:null!=t?String(t).split(/\r\n|\n|\r/g):[]}));function o(e,o,n=""){let a="";const c=t.find(({source:t})=>t===e.source),i=e.start,s=r.offsetStart(e);if(c){const t=e.end,r=c.text[i.line-1],l=(i.line===t.line?t.column:r.length+1)-i.column||1;n&&(a+=`\nnote: ${n}`),a+=`\n --\x3e ${e.source}:${s.line}:${s.column}\n${"".padEnd(o)} |\n${s.line.toString().padStart(o)} | ${r}\n${"".padEnd(o)} | ${"".padEnd(i.column-1)}${"".padEnd(l,"^")}`}else a+=`\n at ${e.source}:${s.line}:${s.column}`,n&&(a+=`: ${n}`);return a}return this.problems.filter(e=>"info"!==e[0]).map(e=>function(e,t,n,a=[]){let c=-1/0;c=n?a.reduce((e,{location:t})=>Math.max(e,r.offsetStart(t).line),n.start.line):Math.max.apply(null,a.map(e=>e.location.start.line)),c=c.toString().length;let i=`${e}: ${t}`;n&&(i+=o(n,c));for(const e of a)i+=o(e.location,c,e.message);return i}(...e)).join("\n\n")}}e.exports=a},89798:e=>{"use strict";e.exports=class{constructor(e,t){this.source=e,this.start=t}toString(){return String(this.source)}offset(e){return{line:e.line+this.start.line-1,column:1===e.line?e.column+this.start.column-1:e.column,offset:e.offset+this.start.offset}}static offsetStart(e){return e.source&&"function"==typeof e.source.offset?e.source.offset(e.start):e.start}static offsetEnd(e){return e.source&&"function"==typeof e.source.offset?e.source.offset(e.end):e.end}}},67274:e=>{"use strict";const t={$:"text","&":"simple_and","!":"simple_not"},o={"?":"optional","*":"zero_or_more","+":"one_or_more"},r={"&":"semantic_and","!":"semantic_not"};function n(e,t,o,r){var a=Error.call(this,e);return Object.setPrototypeOf&&Object.setPrototypeOf(a,n.prototype),a.expected=t,a.found=o,a.location=r,a.name="SyntaxError",a}function a(e,t,o){return o=o||" ",e.length>t?e:(t-=e.length,e+(o+=o.repeat(t)).slice(0,t))}!function(e,t){function o(){this.constructor=e}o.prototype=t.prototype,e.prototype=new o}(n,Error),n.prototype.format=function(e){var t="Error: "+this.message;if(this.location){var o,r=null;for(o=0;o<e.length;o++)if(e[o].source===this.location.source){r=e[o].text.split(/\r\n|\n|\r/g);break}var n=this.location.start,c=this.location.source&&"function"==typeof this.location.source.offset?this.location.source.offset(n):n,i=this.location.source+":"+c.line+":"+c.column;if(r){var s=this.location.end,l=a("",c.line.toString().length," "),u=r[n.line-1],d=(n.line===s.line?s.column:u.length+1)-n.column||1;t+="\n --\x3e "+i+"\n"+l+" |\n"+c.line+" | "+u+"\n"+l+" | "+a("",n.column-1," ")+a("",d,"^")}else t+="\n at "+i}return t},n.buildMessage=function(e,t){var o={literal:function(e){return'"'+n(e.text)+'"'},class:function(e){var t=e.parts.map(function(e){return Array.isArray(e)?a(e[0])+"-"+a(e[1]):a(e)});return"["+(e.inverted?"^":"")+t.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(e){return e.description}};function r(e){return e.charCodeAt(0).toString(16).toUpperCase()}function n(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(e){return"\\x0"+r(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return"\\x"+r(e)})}function a(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(e){return"\\x0"+r(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return"\\x"+r(e)})}function c(e){return o[e.type](e)}return"Expected "+function(e){var t,o,r=e.map(c);if(r.sort(),r.length>0){for(t=1,o=1;t<r.length;t++)r[t-1]!==r[t]&&(r[o]=r[t],o++);r.length=o}switch(r.length){case 1:return r[0];case 2:return r[0]+" or "+r[1];default:return r.slice(0,-1).join(", ")+", or "+r[r.length-1]}}(e)+" but "+function(e){return e?'"'+n(e)+'"':"end of input"}(t)+" found."},e.exports={SyntaxError:n,parse:function(e,a){var c,i={},s=(a=void 0!==a?a:{}).grammarSource,l={Grammar:Yo},u=Yo,d="{",m="}",p="=",h="/",_="@",v=":",w="$",g="&",f="!",E="?",b="*",C="+",x="|",y=",",A="..",k="(",S=")",P="\t",V="\v",B="\f",M=" ",F=" ",L="\ufeff",N="\n",T="\r\n",D="\r",H="\u2028",z="\u2029",j="/*",I="*/",R="//",O="_",G="\\",$="‌",Z="‍",U="i",q='"',W="'",J="[",Y="^",K="]",X="-",Q="0",ee="b",te="f",oe="n",re="r",ne="t",ae="v",ce="x",ie="u",se=".",le=";",ue=/^[\n\r\u2028\u2029]/,de=/^[0-9]/,me=/^[0-9a-f]/i,pe=/^[{}]/,he=/^[a-z\xB5\xDF-\xF6\xF8-\xFF\u0101\u0103\u0105\u0107\u0109\u010B\u010D\u010F\u0111\u0113\u0115\u0117\u0119\u011B\u011D\u011F\u0121\u0123\u0125\u0127\u0129\u012B\u012D\u012F\u0131\u0133\u0135\u0137-\u0138\u013A\u013C\u013E\u0140\u0142\u0144\u0146\u0148-\u0149\u014B\u014D\u014F\u0151\u0153\u0155\u0157\u0159\u015B\u015D\u015F\u0161\u0163\u0165\u0167\u0169\u016B\u016D\u016F\u0171\u0173\u0175\u0177\u017A\u017C\u017E-\u0180\u0183\u0185\u0188\u018C-\u018D\u0192\u0195\u0199-\u019B\u019E\u01A1\u01A3\u01A5\u01A8\u01AA-\u01AB\u01AD\u01B0\u01B4\u01B6\u01B9-\u01BA\u01BD-\u01BF\u01C6\u01C9\u01CC\u01CE\u01D0\u01D2\u01D4\u01D6\u01D8\u01DA\u01DC-\u01DD\u01DF\u01E1\u01E3\u01E5\u01E7\u01E9\u01EB\u01ED\u01EF-\u01F0\u01F3\u01F5\u01F9\u01FB\u01FD\u01FF\u0201\u0203\u0205\u0207\u0209\u020B\u020D\u020F\u0211\u0213\u0215\u0217\u0219\u021B\u021D\u021F\u0221\u0223\u0225\u0227\u0229\u022B\u022D\u022F\u0231\u0233-\u0239\u023C\u023F-\u0240\u0242\u0247\u0249\u024B\u024D\u024F-\u0293\u0295-\u02AF\u0371\u0373\u0377\u037B-\u037D\u0390\u03AC-\u03CE\u03D0-\u03D1\u03D5-\u03D7\u03D9\u03DB\u03DD\u03DF\u03E1\u03E3\u03E5\u03E7\u03E9\u03EB\u03ED\u03EF-\u03F3\u03F5\u03F8\u03FB-\u03FC\u0430-\u045F\u0461\u0463\u0465\u0467\u0469\u046B\u046D\u046F\u0471\u0473\u0475\u0477\u0479\u047B\u047D\u047F\u0481\u048B\u048D\u048F\u0491\u0493\u0495\u0497\u0499\u049B\u049D\u049F\u04A1\u04A3\u04A5\u04A7\u04A9\u04AB\u04AD\u04AF\u04B1\u04B3\u04B5\u04B7\u04B9\u04BB\u04BD\u04BF\u04C2\u04C4\u04C6\u04C8\u04CA\u04CC\u04CE-\u04CF\u04D1\u04D3\u04D5\u04D7\u04D9\u04DB\u04DD\u04DF\u04E1\u04E3\u04E5\u04E7\u04E9\u04EB\u04ED\u04EF\u04F1\u04F3\u04F5\u04F7\u04F9\u04FB\u04FD\u04FF\u0501\u0503\u0505\u0507\u0509\u050B\u050D\u050F\u0511\u0513\u0515\u0517\u0519\u051B\u051D\u051F\u0521\u0523\u0525\u0527\u0529\u052B\u052D\u052F\u0561-\u0587\u13F8-\u13FD\u1D00-\u1D2B\u1D6B-\u1D77\u1D79-\u1D9A\u1E01\u1E03\u1E05\u1E07\u1E09\u1E0B\u1E0D\u1E0F\u1E11\u1E13\u1E15\u1E17\u1E19\u1E1B\u1E1D\u1E1F\u1E21\u1E23\u1E25\u1E27\u1E29\u1E2B\u1E2D\u1E2F\u1E31\u1E33\u1E35\u1E37\u1E39\u1E3B\u1E3D\u1E3F\u1E41\u1E43\u1E45\u1E47\u1E49\u1E4B\u1E4D\u1E4F\u1E51\u1E53\u1E55\u1E57\u1E59\u1E5B\u1E5D\u1E5F\u1E61\u1E63\u1E65\u1E67\u1E69\u1E6B\u1E6D\u1E6F\u1E71\u1E73\u1E75\u1E77\u1E79\u1E7B\u1E7D\u1E7F\u1E81\u1E83\u1E85\u1E87\u1E89\u1E8B\u1E8D\u1E8F\u1E91\u1E93\u1E95-\u1E9D\u1E9F\u1EA1\u1EA3\u1EA5\u1EA7\u1EA9\u1EAB\u1EAD\u1EAF\u1EB1\u1EB3\u1EB5\u1EB7\u1EB9\u1EBB\u1EBD\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1EC9\u1ECB\u1ECD\u1ECF\u1ED1\u1ED3\u1ED5\u1ED7\u1ED9\u1EDB\u1EDD\u1EDF\u1EE1\u1EE3\u1EE5\u1EE7\u1EE9\u1EEB\u1EED\u1EEF\u1EF1\u1EF3\u1EF5\u1EF7\u1EF9\u1EFB\u1EFD\u1EFF-\u1F07\u1F10-\u1F15\u1F20-\u1F27\u1F30-\u1F37\u1F40-\u1F45\u1F50-\u1F57\u1F60-\u1F67\u1F70-\u1F7D\u1F80-\u1F87\u1F90-\u1F97\u1FA0-\u1FA7\u1FB0-\u1FB4\u1FB6-\u1FB7\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FC7\u1FD0-\u1FD3\u1FD6-\u1FD7\u1FE0-\u1FE7\u1FF2-\u1FF4\u1FF6-\u1FF7\u210A\u210E-\u210F\u2113\u212F\u2134\u2139\u213C-\u213D\u2146-\u2149\u214E\u2184\u2C30-\u2C5E\u2C61\u2C65-\u2C66\u2C68\u2C6A\u2C6C\u2C71\u2C73-\u2C74\u2C76-\u2C7B\u2C81\u2C83\u2C85\u2C87\u2C89\u2C8B\u2C8D\u2C8F\u2C91\u2C93\u2C95\u2C97\u2C99\u2C9B\u2C9D\u2C9F\u2CA1\u2CA3\u2CA5\u2CA7\u2CA9\u2CAB\u2CAD\u2CAF\u2CB1\u2CB3\u2CB5\u2CB7\u2CB9\u2CBB\u2CBD\u2CBF\u2CC1\u2CC3\u2CC5\u2CC7\u2CC9\u2CCB\u2CCD\u2CCF\u2CD1\u2CD3\u2CD5\u2CD7\u2CD9\u2CDB\u2CDD\u2CDF\u2CE1\u2CE3-\u2CE4\u2CEC\u2CEE\u2CF3\u2D00-\u2D25\u2D27\u2D2D\uA641\uA643\uA645\uA647\uA649\uA64B\uA64D\uA64F\uA651\uA653\uA655\uA657\uA659\uA65B\uA65D\uA65F\uA661\uA663\uA665\uA667\uA669\uA66B\uA66D\uA681\uA683\uA685\uA687\uA689\uA68B\uA68D\uA68F\uA691\uA693\uA695\uA697\uA699\uA69B\uA723\uA725\uA727\uA729\uA72B\uA72D\uA72F-\uA731\uA733\uA735\uA737\uA739\uA73B\uA73D\uA73F\uA741\uA743\uA745\uA747\uA749\uA74B\uA74D\uA74F\uA751\uA753\uA755\uA757\uA759\uA75B\uA75D\uA75F\uA761\uA763\uA765\uA767\uA769\uA76B\uA76D\uA76F\uA771-\uA778\uA77A\uA77C\uA77F\uA781\uA783\uA785\uA787\uA78C\uA78E\uA791\uA793-\uA795\uA797\uA799\uA79B\uA79D\uA79F\uA7A1\uA7A3\uA7A5\uA7A7\uA7A9\uA7B5\uA7B7\uA7FA\uAB30-\uAB5A\uAB60-\uAB65\uAB70-\uABBF\uFB00-\uFB06\uFB13-\uFB17\uFF41-\uFF5A]/,_e=/^[\u02B0-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0374\u037A\u0559\u0640\u06E5-\u06E6\u07F4-\u07F5\u07FA\u081A\u0824\u0828\u0971\u0E46\u0EC6\u10FC\u17D7\u1843\u1AA7\u1C78-\u1C7D\u1D2C-\u1D6A\u1D78\u1D9B-\u1DBF\u2071\u207F\u2090-\u209C\u2C7C-\u2C7D\u2D6F\u2E2F\u3005\u3031-\u3035\u303B\u309D-\u309E\u30FC-\u30FE\uA015\uA4F8-\uA4FD\uA60C\uA67F\uA69C-\uA69D\uA717-\uA71F\uA770\uA788\uA7F8-\uA7F9\uA9CF\uA9E6\uAA70\uAADD\uAAF3-\uAAF4\uAB5C-\uAB5F\uFF70\uFF9E-\uFF9F]/,ve=/^[\xAA\xBA\u01BB\u01C0-\u01C3\u0294\u05D0-\u05EA\u05F0-\u05F2\u0620-\u063F\u0641-\u064A\u066E-\u066F\u0671-\u06D3\u06D5\u06EE-\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u0800-\u0815\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0972-\u0980\u0985-\u098C\u098F-\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC-\u09DD\u09DF-\u09E1\u09F0-\u09F1\u0A05-\u0A0A\u0A0F-\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32-\u0A33\u0A35-\u0A36\u0A38-\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2-\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0-\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F-\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32-\u0B33\u0B35-\u0B39\u0B3D\u0B5C-\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99-\u0B9A\u0B9C\u0B9E-\u0B9F\u0BA3-\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60-\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0-\u0CE1\u0CF1-\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32-\u0E33\u0E40-\u0E45\u0E81-\u0E82\u0E84\u0E87-\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA-\u0EAB\u0EAD-\u0EB0\u0EB2-\u0EB3\u0EBD\u0EC0-\u0EC4\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065-\u1066\u106E-\u1070\u1075-\u1081\u108E\u10D0-\u10FA\u10FD-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17DC\u1820-\u1842\u1844-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE-\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C77\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5-\u1CF6\u2135-\u2138\u2D30-\u2D67\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3006\u303C\u3041-\u3096\u309F\u30A1-\u30FA\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA014\uA016-\uA48C\uA4D0-\uA4F7\uA500-\uA60B\uA610-\uA61F\uA62A-\uA62B\uA66E\uA6A0-\uA6E5\uA78F\uA7F7\uA7FB-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9E0-\uA9E4\uA9E7-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA6F\uAA71-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5-\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADC\uAAE0-\uAAEA\uAAF2\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40-\uFB41\uFB43-\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF66-\uFF6F\uFF71-\uFF9D\uFFA0-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,we=/^[\u01C5\u01C8\u01CB\u01F2\u1F88-\u1F8F\u1F98-\u1F9F\u1FA8-\u1FAF\u1FBC\u1FCC\u1FFC]/,ge=/^[A-Z\xC0-\xD6\xD8-\xDE\u0100\u0102\u0104\u0106\u0108\u010A\u010C\u010E\u0110\u0112\u0114\u0116\u0118\u011A\u011C\u011E\u0120\u0122\u0124\u0126\u0128\u012A\u012C\u012E\u0130\u0132\u0134\u0136\u0139\u013B\u013D\u013F\u0141\u0143\u0145\u0147\u014A\u014C\u014E\u0150\u0152\u0154\u0156\u0158\u015A\u015C\u015E\u0160\u0162\u0164\u0166\u0168\u016A\u016C\u016E\u0170\u0172\u0174\u0176\u0178-\u0179\u017B\u017D\u0181-\u0182\u0184\u0186-\u0187\u0189-\u018B\u018E-\u0191\u0193-\u0194\u0196-\u0198\u019C-\u019D\u019F-\u01A0\u01A2\u01A4\u01A6-\u01A7\u01A9\u01AC\u01AE-\u01AF\u01B1-\u01B3\u01B5\u01B7-\u01B8\u01BC\u01C4\u01C7\u01CA\u01CD\u01CF\u01D1\u01D3\u01D5\u01D7\u01D9\u01DB\u01DE\u01E0\u01E2\u01E4\u01E6\u01E8\u01EA\u01EC\u01EE\u01F1\u01F4\u01F6-\u01F8\u01FA\u01FC\u01FE\u0200\u0202\u0204\u0206\u0208\u020A\u020C\u020E\u0210\u0212\u0214\u0216\u0218\u021A\u021C\u021E\u0220\u0222\u0224\u0226\u0228\u022A\u022C\u022E\u0230\u0232\u023A-\u023B\u023D-\u023E\u0241\u0243-\u0246\u0248\u024A\u024C\u024E\u0370\u0372\u0376\u037F\u0386\u0388-\u038A\u038C\u038E-\u038F\u0391-\u03A1\u03A3-\u03AB\u03CF\u03D2-\u03D4\u03D8\u03DA\u03DC\u03DE\u03E0\u03E2\u03E4\u03E6\u03E8\u03EA\u03EC\u03EE\u03F4\u03F7\u03F9-\u03FA\u03FD-\u042F\u0460\u0462\u0464\u0466\u0468\u046A\u046C\u046E\u0470\u0472\u0474\u0476\u0478\u047A\u047C\u047E\u0480\u048A\u048C\u048E\u0490\u0492\u0494\u0496\u0498\u049A\u049C\u049E\u04A0\u04A2\u04A4\u04A6\u04A8\u04AA\u04AC\u04AE\u04B0\u04B2\u04B4\u04B6\u04B8\u04BA\u04BC\u04BE\u04C0-\u04C1\u04C3\u04C5\u04C7\u04C9\u04CB\u04CD\u04D0\u04D2\u04D4\u04D6\u04D8\u04DA\u04DC\u04DE\u04E0\u04E2\u04E4\u04E6\u04E8\u04EA\u04EC\u04EE\u04F0\u04F2\u04F4\u04F6\u04F8\u04FA\u04FC\u04FE\u0500\u0502\u0504\u0506\u0508\u050A\u050C\u050E\u0510\u0512\u0514\u0516\u0518\u051A\u051C\u051E\u0520\u0522\u0524\u0526\u0528\u052A\u052C\u052E\u0531-\u0556\u10A0-\u10C5\u10C7\u10CD\u13A0-\u13F5\u1E00\u1E02\u1E04\u1E06\u1E08\u1E0A\u1E0C\u1E0E\u1E10\u1E12\u1E14\u1E16\u1E18\u1E1A\u1E1C\u1E1E\u1E20\u1E22\u1E24\u1E26\u1E28\u1E2A\u1E2C\u1E2E\u1E30\u1E32\u1E34\u1E36\u1E38\u1E3A\u1E3C\u1E3E\u1E40\u1E42\u1E44\u1E46\u1E48\u1E4A\u1E4C\u1E4E\u1E50\u1E52\u1E54\u1E56\u1E58\u1E5A\u1E5C\u1E5E\u1E60\u1E62\u1E64\u1E66\u1E68\u1E6A\u1E6C\u1E6E\u1E70\u1E72\u1E74\u1E76\u1E78\u1E7A\u1E7C\u1E7E\u1E80\u1E82\u1E84\u1E86\u1E88\u1E8A\u1E8C\u1E8E\u1E90\u1E92\u1E94\u1E9E\u1EA0\u1EA2\u1EA4\u1EA6\u1EA8\u1EAA\u1EAC\u1EAE\u1EB0\u1EB2\u1EB4\u1EB6\u1EB8\u1EBA\u1EBC\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1EC8\u1ECA\u1ECC\u1ECE\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EDA\u1EDC\u1EDE\u1EE0\u1EE2\u1EE4\u1EE6\u1EE8\u1EEA\u1EEC\u1EEE\u1EF0\u1EF2\u1EF4\u1EF6\u1EF8\u1EFA\u1EFC\u1EFE\u1F08-\u1F0F\u1F18-\u1F1D\u1F28-\u1F2F\u1F38-\u1F3F\u1F48-\u1F4D\u1F59\u1F5B\u1F5D\u1F5F\u1F68-\u1F6F\u1FB8-\u1FBB\u1FC8-\u1FCB\u1FD8-\u1FDB\u1FE8-\u1FEC\u1FF8-\u1FFB\u2102\u2107\u210B-\u210D\u2110-\u2112\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u2130-\u2133\u213E-\u213F\u2145\u2183\u2C00-\u2C2E\u2C60\u2C62-\u2C64\u2C67\u2C69\u2C6B\u2C6D-\u2C70\u2C72\u2C75\u2C7E-\u2C80\u2C82\u2C84\u2C86\u2C88\u2C8A\u2C8C\u2C8E\u2C90\u2C92\u2C94\u2C96\u2C98\u2C9A\u2C9C\u2C9E\u2CA0\u2CA2\u2CA4\u2CA6\u2CA8\u2CAA\u2CAC\u2CAE\u2CB0\u2CB2\u2CB4\u2CB6\u2CB8\u2CBA\u2CBC\u2CBE\u2CC0\u2CC2\u2CC4\u2CC6\u2CC8\u2CCA\u2CCC\u2CCE\u2CD0\u2CD2\u2CD4\u2CD6\u2CD8\u2CDA\u2CDC\u2CDE\u2CE0\u2CE2\u2CEB\u2CED\u2CF2\uA640\uA642\uA644\uA646\uA648\uA64A\uA64C\uA64E\uA650\uA652\uA654\uA656\uA658\uA65A\uA65C\uA65E\uA660\uA662\uA664\uA666\uA668\uA66A\uA66C\uA680\uA682\uA684\uA686\uA688\uA68A\uA68C\uA68E\uA690\uA692\uA694\uA696\uA698\uA69A\uA722\uA724\uA726\uA728\uA72A\uA72C\uA72E\uA732\uA734\uA736\uA738\uA73A\uA73C\uA73E\uA740\uA742\uA744\uA746\uA748\uA74A\uA74C\uA74E\uA750\uA752\uA754\uA756\uA758\uA75A\uA75C\uA75E\uA760\uA762\uA764\uA766\uA768\uA76A\uA76C\uA76E\uA779\uA77B\uA77D-\uA77E\uA780\uA782\uA784\uA786\uA78B\uA78D\uA790\uA792\uA796\uA798\uA79A\uA79C\uA79E\uA7A0\uA7A2\uA7A4\uA7A6\uA7A8\uA7AA-\uA7AD\uA7B0-\uA7B4\uA7B6\uFF21-\uFF3A]/,fe=/^[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E-\u094F\u0982-\u0983\u09BE-\u09C0\u09C7-\u09C8\u09CB-\u09CC\u09D7\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB-\u0ACC\u0B02-\u0B03\u0B3E\u0B40\u0B47-\u0B48\u0B4B-\u0B4C\u0B57\u0BBE-\u0BBF\u0BC1-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0BD7\u0C01-\u0C03\u0C41-\u0C44\u0C82-\u0C83\u0CBE\u0CC0-\u0CC4\u0CC7-\u0CC8\u0CCA-\u0CCB\u0CD5-\u0CD6\u0D02-\u0D03\u0D3E-\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D57\u0D82-\u0D83\u0DCF-\u0DD1\u0DD8-\u0DDF\u0DF2-\u0DF3\u0F3E-\u0F3F\u0F7F\u102B-\u102C\u1031\u1038\u103B-\u103C\u1056-\u1057\u1062-\u1064\u1067-\u106D\u1083-\u1084\u1087-\u108C\u108F\u109A-\u109C\u17B6\u17BE-\u17C5\u17C7-\u17C8\u1923-\u1926\u1929-\u192B\u1930-\u1931\u1933-\u1938\u1A19-\u1A1A\u1A55\u1A57\u1A61\u1A63-\u1A64\u1A6D-\u1A72\u1B04\u1B35\u1B3B\u1B3D-\u1B41\u1B43-\u1B44\u1B82\u1BA1\u1BA6-\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2-\u1BF3\u1C24-\u1C2B\u1C34-\u1C35\u1CE1\u1CF2-\u1CF3\u302E-\u302F\uA823-\uA824\uA827\uA880-\uA881\uA8B4-\uA8C3\uA952-\uA953\uA983\uA9B4-\uA9B5\uA9BA-\uA9BB\uA9BD-\uA9C0\uAA2F-\uAA30\uAA33-\uAA34\uAA4D\uAA7B\uAA7D\uAAEB\uAAEE-\uAAEF\uAAF5\uABE3-\uABE4\uABE6-\uABE7\uABE9-\uABEA\uABEC]/,Ee=/^[\u0300-\u036F\u0483-\u0487\u0591-\u05BD\u05BF\u05C1-\u05C2\u05C4-\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7-\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962-\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2-\u09E3\u0A01-\u0A02\u0A3C\u0A41-\u0A42\u0A47-\u0A48\u0A4B-\u0A4D\u0A51\u0A70-\u0A71\u0A75\u0A81-\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7-\u0AC8\u0ACD\u0AE2-\u0AE3\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B56\u0B62-\u0B63\u0B82\u0BC0\u0BCD\u0C00\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55-\u0C56\u0C62-\u0C63\u0C81\u0CBC\u0CBF\u0CC6\u0CCC-\u0CCD\u0CE2-\u0CE3\u0D01\u0D41-\u0D44\u0D4D\u0D62-\u0D63\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB-\u0EBC\u0EC8-\u0ECD\u0F18-\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86-\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039-\u103A\u103D-\u103E\u1058-\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085-\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752-\u1753\u1772-\u1773\u17B4-\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u18A9\u1920-\u1922\u1927-\u1928\u1932\u1939-\u193B\u1A17-\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ABD\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80-\u1B81\u1BA2-\u1BA5\u1BA8-\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8-\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8-\u1CF9\u1DC0-\u1DF5\u1DFC-\u1DFF\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302D\u3099-\u309A\uA66F\uA674-\uA67D\uA69E-\uA69F\uA6F0-\uA6F1\uA802\uA806\uA80B\uA825-\uA826\uA8C4\uA8E0-\uA8F1\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9E5\uAA29-\uAA2E\uAA31-\uAA32\uAA35-\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7-\uAAB8\uAABE-\uAABF\uAAC1\uAAEC-\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/,be=/^[0-9\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0BE6-\u0BEF\u0C66-\u0C6F\u0CE6-\u0CEF\u0D66-\u0D6F\u0DE6-\u0DEF\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F29\u1040-\u1049\u1090-\u1099\u17E0-\u17E9\u1810-\u1819\u1946-\u194F\u19D0-\u19D9\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\uA620-\uA629\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uA9F0-\uA9F9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19]/,Ce=/^[\u16EE-\u16F0\u2160-\u2182\u2185-\u2188\u3007\u3021-\u3029\u3038-\u303A\uA6E6-\uA6EF]/,xe=/^[_\u203F-\u2040\u2054\uFE33-\uFE34\uFE4D-\uFE4F\uFF3F]/,ye=/^[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Ae=$o("{",!1),ke=$o("}",!1),Se=$o("=",!1),Pe=$o("/",!1),Ve=$o("@",!1),Be=$o(":",!1),Me=$o("$",!1),Fe=$o("&",!1),Le=$o("!",!1),Ne=$o("?",!1),Te=$o("*",!1),De=$o("+",!1),He=$o("|",!1),ze=$o(",",!1),je=$o("..",!1),Ie=$o("(",!1),Re=$o(")",!1),Oe={type:"any"},Ge=Uo("whitespace"),$e=$o("\t",!1),Ze=$o("\v",!1),Ue=$o("\f",!1),qe=$o(" ",!1),We=$o(" ",!1),Je=$o("\ufeff",!1),Ye=Zo(["\n","\r","\u2028","\u2029"],!1,!1),Ke=Uo("end of line"),Xe=$o("\n",!1),Qe=$o("\r\n",!1),et=$o("\r",!1),tt=$o("\u2028",!1),ot=$o("\u2029",!1),rt=Uo("comment"),nt=$o("/*",!1),at=$o("*/",!1),ct=$o("//",!1),it=Uo("identifier"),st=$o("_",!1),lt=$o("\\",!1),ut=$o("‌",!1),dt=$o("‍",!1),mt=Uo("literal"),pt=$o("i",!1),ht=Uo("string"),_t=$o('"',!1),vt=$o("'",!1),wt=Uo("character class"),gt=$o("[",!1),ft=$o("^",!1),Et=$o("]",!1),bt=$o("-",!1),Ct=$o("0",!1),xt=$o("b",!1),yt=$o("f",!1),At=$o("n",!1),kt=$o("r",!1),St=$o("t",!1),Pt=$o("v",!1),Vt=$o("x",!1),Bt=$o("u",!1),Mt=Zo([["0","9"]],!1,!1),Ft=Zo([["0","9"],["a","f"]],!1,!0),Lt=$o(".",!1),Nt=Uo("code block"),Tt=Zo(["{","}"],!1,!1),Dt=Zo([["a","z"],"µ",["ß","ö"],["ø","ÿ"],"ā","ă","ą","ć","ĉ","ċ","č","ď","đ","ē","ĕ","ė","ę","ě","ĝ","ğ","ġ","ģ","ĥ","ħ","ĩ","ī","ĭ","į","ı","ij","ĵ",["ķ","ĸ"],"ĺ","ļ","ľ","ŀ","ł","ń","ņ",["ň","ʼn"],"ŋ","ō","ŏ","ő","œ","ŕ","ŗ","ř","ś","ŝ","ş","š","ţ","ť","ŧ","ũ","ū","ŭ","ů","ű","ų","ŵ","ŷ","ź","ż",["ž","ƀ"],"ƃ","ƅ","ƈ",["ƌ","ƍ"],"ƒ","ƕ",["ƙ","ƛ"],"ƞ","ơ","ƣ","ƥ","ƨ",["ƪ","ƫ"],"ƭ","ư","ƴ","ƶ",["ƹ","ƺ"],["ƽ","ƿ"],"dž","lj","nj","ǎ","ǐ","ǒ","ǔ","ǖ","ǘ","ǚ",["ǜ","ǝ"],"ǟ","ǡ","ǣ","ǥ","ǧ","ǩ","ǫ","ǭ",["ǯ","ǰ"],"dz","ǵ","ǹ","ǻ","ǽ","ǿ","ȁ","ȃ","ȅ","ȇ","ȉ","ȋ","ȍ","ȏ","ȑ","ȓ","ȕ","ȗ","ș","ț","ȝ","ȟ","ȡ","ȣ","ȥ","ȧ","ȩ","ȫ","ȭ","ȯ","ȱ",["ȳ","ȹ"],"ȼ",["ȿ","ɀ"],"ɂ","ɇ","ɉ","ɋ","ɍ",["ɏ","ʓ"],["ʕ","ʯ"],"ͱ","ͳ","ͷ",["ͻ","ͽ"],"ΐ",["ά","ώ"],["ϐ","ϑ"],["ϕ","ϗ"],"ϙ","ϛ","ϝ","ϟ","ϡ","ϣ","ϥ","ϧ","ϩ","ϫ","ϭ",["ϯ","ϳ"],"ϵ","ϸ",["ϻ","ϼ"],["а","џ"],"ѡ","ѣ","ѥ","ѧ","ѩ","ѫ","ѭ","ѯ","ѱ","ѳ","ѵ","ѷ","ѹ","ѻ","ѽ","ѿ","ҁ","ҋ","ҍ","ҏ","ґ","ғ","ҕ","җ","ҙ","қ","ҝ","ҟ","ҡ","ң","ҥ","ҧ","ҩ","ҫ","ҭ","ү","ұ","ҳ","ҵ","ҷ","ҹ","һ","ҽ","ҿ","ӂ","ӄ","ӆ","ӈ","ӊ","ӌ",["ӎ","ӏ"],"ӑ","ӓ","ӕ","ӗ","ә","ӛ","ӝ","ӟ","ӡ","ӣ","ӥ","ӧ","ө","ӫ","ӭ","ӯ","ӱ","ӳ","ӵ","ӷ","ӹ","ӻ","ӽ","ӿ","ԁ","ԃ","ԅ","ԇ","ԉ","ԋ","ԍ","ԏ","ԑ","ԓ","ԕ","ԗ","ԙ","ԛ","ԝ","ԟ","ԡ","ԣ","ԥ","ԧ","ԩ","ԫ","ԭ","ԯ",["ա","և"],["ᏸ","ᏽ"],["ᴀ","ᴫ"],["ᵫ","ᵷ"],["ᵹ","ᶚ"],"ḁ","ḃ","ḅ","ḇ","ḉ","ḋ","ḍ","ḏ","ḑ","ḓ","ḕ","ḗ","ḙ","ḛ","ḝ","ḟ","ḡ","ḣ","ḥ","ḧ","ḩ","ḫ","ḭ","ḯ","ḱ","ḳ","ḵ","ḷ","ḹ","ḻ","ḽ","ḿ","ṁ","ṃ","ṅ","ṇ","ṉ","ṋ","ṍ","ṏ","ṑ","ṓ","ṕ","ṗ","ṙ","ṛ","ṝ","ṟ","ṡ","ṣ","ṥ","ṧ","ṩ","ṫ","ṭ","ṯ","ṱ","ṳ","ṵ","ṷ","ṹ","ṻ","ṽ","ṿ","ẁ","ẃ","ẅ","ẇ","ẉ","ẋ","ẍ","ẏ","ẑ","ẓ",["ẕ","ẝ"],"ẟ","ạ","ả","ấ","ầ","ẩ","ẫ","ậ","ắ","ằ","ẳ","ẵ","ặ","ẹ","ẻ","ẽ","ế","ề","ể","ễ","ệ","ỉ","ị","ọ","ỏ","ố","ồ","ổ","ỗ","ộ","ớ","ờ","ở","ỡ","ợ","ụ","ủ","ứ","ừ","ử","ữ","ự","ỳ","ỵ","ỷ","ỹ","ỻ","ỽ",["ỿ","ἇ"],["ἐ","ἕ"],["ἠ","ἧ"],["ἰ","ἷ"],["ὀ","ὅ"],["ὐ","ὗ"],["ὠ","ὧ"],["ὰ","ώ"],["ᾀ","ᾇ"],["ᾐ","ᾗ"],["ᾠ","ᾧ"],["ᾰ","ᾴ"],["ᾶ","ᾷ"],"ι",["ῂ","ῄ"],["ῆ","ῇ"],["ῐ","ΐ"],["ῖ","ῗ"],["ῠ","ῧ"],["ῲ","ῴ"],["ῶ","ῷ"],"ℊ",["ℎ","ℏ"],"ℓ","ℯ","ℴ","ℹ",["ℼ","ℽ"],["ⅆ","ⅉ"],"ⅎ","ↄ",["ⰰ","ⱞ"],"ⱡ",["ⱥ","ⱦ"],"ⱨ","ⱪ","ⱬ","ⱱ",["ⱳ","ⱴ"],["ⱶ","ⱻ"],"ⲁ","ⲃ","ⲅ","ⲇ","ⲉ","ⲋ","ⲍ","ⲏ","ⲑ","ⲓ","ⲕ","ⲗ","ⲙ","ⲛ","ⲝ","ⲟ","ⲡ","ⲣ","ⲥ","ⲧ","ⲩ","ⲫ","ⲭ","ⲯ","ⲱ","ⲳ","ⲵ","ⲷ","ⲹ","ⲻ","ⲽ","ⲿ","ⳁ","ⳃ","ⳅ","ⳇ","ⳉ","ⳋ","ⳍ","ⳏ","ⳑ","ⳓ","ⳕ","ⳗ","ⳙ","ⳛ","ⳝ","ⳟ","ⳡ",["ⳣ","ⳤ"],"ⳬ","ⳮ","ⳳ",["ⴀ","ⴥ"],"ⴧ","ⴭ","ꙁ","ꙃ","ꙅ","ꙇ","ꙉ","ꙋ","ꙍ","ꙏ","ꙑ","ꙓ","ꙕ","ꙗ","ꙙ","ꙛ","ꙝ","ꙟ","ꙡ","ꙣ","ꙥ","ꙧ","ꙩ","ꙫ","ꙭ","ꚁ","ꚃ","ꚅ","ꚇ","ꚉ","ꚋ","ꚍ","ꚏ","ꚑ","ꚓ","ꚕ","ꚗ","ꚙ","ꚛ","ꜣ","ꜥ","ꜧ","ꜩ","ꜫ","ꜭ",["ꜯ","ꜱ"],"ꜳ","ꜵ","ꜷ","ꜹ","ꜻ","ꜽ","ꜿ","ꝁ","ꝃ","ꝅ","ꝇ","ꝉ","ꝋ","ꝍ","ꝏ","ꝑ","ꝓ","ꝕ","ꝗ","ꝙ","ꝛ","ꝝ","ꝟ","ꝡ","ꝣ","ꝥ","ꝧ","ꝩ","ꝫ","ꝭ","ꝯ",["ꝱ","ꝸ"],"ꝺ","ꝼ","ꝿ","ꞁ","ꞃ","ꞅ","ꞇ","ꞌ","ꞎ","ꞑ",["ꞓ","ꞕ"],"ꞗ","ꞙ","ꞛ","ꞝ","ꞟ","ꞡ","ꞣ","ꞥ","ꞧ","ꞩ","ꞵ","ꞷ","ꟺ",["ꬰ","ꭚ"],["ꭠ","ꭥ"],["ꭰ","ꮿ"],["ff","st"],["ﬓ","ﬗ"],["a","z"]],!1,!1),Ht=Zo([["ʰ","ˁ"],["ˆ","ˑ"],["ˠ","ˤ"],"ˬ","ˮ","ʹ","ͺ","ՙ","ـ",["ۥ","ۦ"],["ߴ","ߵ"],"ߺ","ࠚ","ࠤ","ࠨ","ॱ","ๆ","ໆ","ჼ","ៗ","ᡃ","ᪧ",["ᱸ","ᱽ"],["ᴬ","ᵪ"],"ᵸ",["ᶛ","ᶿ"],"ⁱ","ⁿ",["ₐ","ₜ"],["ⱼ","ⱽ"],"ⵯ","ⸯ","々",["〱","〵"],"〻",["ゝ","ゞ"],["ー","ヾ"],"ꀕ",["ꓸ","ꓽ"],"ꘌ","ꙿ",["ꚜ","ꚝ"],["ꜗ","ꜟ"],"ꝰ","ꞈ",["ꟸ","ꟹ"],"ꧏ","ꧦ","ꩰ","ꫝ",["ꫳ","ꫴ"],["ꭜ","ꭟ"],"ー",["゙","゚"]],!1,!1),zt=Zo(["ª","º","ƻ",["ǀ","ǃ"],"ʔ",["א","ת"],["װ","ײ"],["ؠ","ؿ"],["ف","ي"],["ٮ","ٯ"],["ٱ","ۓ"],"ە",["ۮ","ۯ"],["ۺ","ۼ"],"ۿ","ܐ",["ܒ","ܯ"],["ݍ","ޥ"],"ޱ",["ߊ","ߪ"],["ࠀ","ࠕ"],["ࡀ","ࡘ"],["ࢠ","ࢴ"],["ऄ","ह"],"ऽ","ॐ",["क़","ॡ"],["ॲ","ঀ"],["অ","ঌ"],["এ","ঐ"],["ও","ন"],["প","র"],"ল",["শ","হ"],"ঽ","ৎ",["ড়","ঢ়"],["য়","ৡ"],["ৰ","ৱ"],["ਅ","ਊ"],["ਏ","ਐ"],["ਓ","ਨ"],["ਪ","ਰ"],["ਲ","ਲ਼"],["ਵ","ਸ਼"],["ਸ","ਹ"],["ਖ਼","ੜ"],"ਫ਼",["ੲ","ੴ"],["અ","ઍ"],["એ","ઑ"],["ઓ","ન"],["પ","ર"],["લ","ળ"],["વ","હ"],"ઽ","ૐ",["ૠ","ૡ"],"ૹ",["ଅ","ଌ"],["ଏ","ଐ"],["ଓ","ନ"],["ପ","ର"],["ଲ","ଳ"],["ଵ","ହ"],"ଽ",["ଡ଼","ଢ଼"],["ୟ","ୡ"],"ୱ","ஃ",["அ","ஊ"],["எ","ஐ"],["ஒ","க"],["ங","ச"],"ஜ",["ஞ","ட"],["ண","த"],["ந","ப"],["ம","ஹ"],"ௐ",["అ","ఌ"],["ఎ","ఐ"],["ఒ","న"],["ప","హ"],"ఽ",["ౘ","ౚ"],["ౠ","ౡ"],["ಅ","ಌ"],["ಎ","ಐ"],["ಒ","ನ"],["ಪ","ಳ"],["ವ","ಹ"],"ಽ","ೞ",["ೠ","ೡ"],["ೱ","ೲ"],["അ","ഌ"],["എ","ഐ"],["ഒ","ഺ"],"ഽ","ൎ",["ൟ","ൡ"],["ൺ","ൿ"],["අ","ඖ"],["ක","න"],["ඳ","ර"],"ල",["ව","ෆ"],["ก","ะ"],["า","ำ"],["เ","ๅ"],["ກ","ຂ"],"ຄ",["ງ","ຈ"],"ຊ","ຍ",["ດ","ທ"],["ນ","ຟ"],["ມ","ຣ"],"ລ","ວ",["ສ","ຫ"],["ອ","ະ"],["າ","ຳ"],"ຽ",["ເ","ໄ"],["ໜ","ໟ"],"ༀ",["ཀ","ཇ"],["ཉ","ཬ"],["ྈ","ྌ"],["က","ဪ"],"ဿ",["ၐ","ၕ"],["ၚ","ၝ"],"ၡ",["ၥ","ၦ"],["ၮ","ၰ"],["ၵ","ႁ"],"ႎ",["ა","ჺ"],["ჽ","ቈ"],["ቊ","ቍ"],["ቐ","ቖ"],"ቘ",["ቚ","ቝ"],["በ","ኈ"],["ኊ","ኍ"],["ነ","ኰ"],["ኲ","ኵ"],["ኸ","ኾ"],"ዀ",["ዂ","ዅ"],["ወ","ዖ"],["ዘ","ጐ"],["ጒ","ጕ"],["ጘ","ፚ"],["ᎀ","ᎏ"],["ᐁ","ᙬ"],["ᙯ","ᙿ"],["ᚁ","ᚚ"],["ᚠ","ᛪ"],["ᛱ","ᛸ"],["ᜀ","ᜌ"],["ᜎ","ᜑ"],["ᜠ","ᜱ"],["ᝀ","ᝑ"],["ᝠ","ᝬ"],["ᝮ","ᝰ"],["ក","ឳ"],"ៜ",["ᠠ","ᡂ"],["ᡄ","ᡷ"],["ᢀ","ᢨ"],"ᢪ",["ᢰ","ᣵ"],["ᤀ","ᤞ"],["ᥐ","ᥭ"],["ᥰ","ᥴ"],["ᦀ","ᦫ"],["ᦰ","ᧉ"],["ᨀ","ᨖ"],["ᨠ","ᩔ"],["ᬅ","ᬳ"],["ᭅ","ᭋ"],["ᮃ","ᮠ"],["ᮮ","ᮯ"],["ᮺ","ᯥ"],["ᰀ","ᰣ"],["ᱍ","ᱏ"],["ᱚ","ᱷ"],["ᳩ","ᳬ"],["ᳮ","ᳱ"],["ᳵ","ᳶ"],["ℵ","ℸ"],["ⴰ","ⵧ"],["ⶀ","ⶖ"],["ⶠ","ⶦ"],["ⶨ","ⶮ"],["ⶰ","ⶶ"],["ⶸ","ⶾ"],["ⷀ","ⷆ"],["ⷈ","ⷎ"],["ⷐ","ⷖ"],["ⷘ","ⷞ"],"〆","〼",["ぁ","ゖ"],"ゟ",["ァ","ヺ"],"ヿ",["ㄅ","ㄭ"],["ㄱ","ㆎ"],["ㆠ","ㆺ"],["ㇰ","ㇿ"],["㐀","䶵"],["一","鿕"],["ꀀ","ꀔ"],["ꀖ","ꒌ"],["ꓐ","ꓷ"],["ꔀ","ꘋ"],["ꘐ","ꘟ"],["ꘪ","ꘫ"],"ꙮ",["ꚠ","ꛥ"],"ꞏ","ꟷ",["ꟻ","ꠁ"],["ꠃ","ꠅ"],["ꠇ","ꠊ"],["ꠌ","ꠢ"],["ꡀ","ꡳ"],["ꢂ","ꢳ"],["ꣲ","ꣷ"],"ꣻ","ꣽ",["ꤊ","ꤥ"],["ꤰ","ꥆ"],["ꥠ","ꥼ"],["ꦄ","ꦲ"],["ꧠ","ꧤ"],["ꧧ","ꧯ"],["ꧺ","ꧾ"],["ꨀ","ꨨ"],["ꩀ","ꩂ"],["ꩄ","ꩋ"],["ꩠ","ꩯ"],["ꩱ","ꩶ"],"ꩺ",["ꩾ","ꪯ"],"ꪱ",["ꪵ","ꪶ"],["ꪹ","ꪽ"],"ꫀ","ꫂ",["ꫛ","ꫜ"],["ꫠ","ꫪ"],"ꫲ",["ꬁ","ꬆ"],["ꬉ","ꬎ"],["ꬑ","ꬖ"],["ꬠ","ꬦ"],["ꬨ","ꬮ"],["ꯀ","ꯢ"],["가","힣"],["ힰ","ퟆ"],["ퟋ","ퟻ"],["豈","舘"],["並","龎"],"יִ",["ײַ","ﬨ"],["שׁ","זּ"],["טּ","לּ"],"מּ",["נּ","סּ"],["ףּ","פּ"],["צּ","ﮱ"],["ﯓ","ﴽ"],["ﵐ","ﶏ"],["ﶒ","ﷇ"],["ﷰ","ﷻ"],["ﹰ","ﹴ"],["ﹶ","ﻼ"],["ヲ","ッ"],["ア","ン"],["ᅠ","ᄒ"],["ᅡ","ᅦ"],["ᅧ","ᅬ"],["ᅭ","ᅲ"],["ᅳ","ᅵ"]],!1,!1),jt=Zo(["Dž","Lj","Nj","Dz",["ᾈ","ᾏ"],["ᾘ","ᾟ"],["ᾨ","ᾯ"],"ᾼ","ῌ","ῼ"],!1,!1),It=Zo([["A","Z"],["À","Ö"],["Ø","Þ"],"Ā","Ă","Ą","Ć","Ĉ","Ċ","Č","Ď","Đ","Ē","Ĕ","Ė","Ę","Ě","Ĝ","Ğ","Ġ","Ģ","Ĥ","Ħ","Ĩ","Ī","Ĭ","Į","İ","IJ","Ĵ","Ķ","Ĺ","Ļ","Ľ","Ŀ","Ł","Ń","Ņ","Ň","Ŋ","Ō","Ŏ","Ő","Œ","Ŕ","Ŗ","Ř","Ś","Ŝ","Ş","Š","Ţ","Ť","Ŧ","Ũ","Ū","Ŭ","Ů","Ű","Ų","Ŵ","Ŷ",["Ÿ","Ź"],"Ż","Ž",["Ɓ","Ƃ"],"Ƅ",["Ɔ","Ƈ"],["Ɖ","Ƌ"],["Ǝ","Ƒ"],["Ɠ","Ɣ"],["Ɩ","Ƙ"],["Ɯ","Ɲ"],["Ɵ","Ơ"],"Ƣ","Ƥ",["Ʀ","Ƨ"],"Ʃ","Ƭ",["Ʈ","Ư"],["Ʊ","Ƴ"],"Ƶ",["Ʒ","Ƹ"],"Ƽ","DŽ","LJ","NJ","Ǎ","Ǐ","Ǒ","Ǔ","Ǖ","Ǘ","Ǚ","Ǜ","Ǟ","Ǡ","Ǣ","Ǥ","Ǧ","Ǩ","Ǫ","Ǭ","Ǯ","DZ","Ǵ",["Ƕ","Ǹ"],"Ǻ","Ǽ","Ǿ","Ȁ","Ȃ","Ȅ","Ȇ","Ȉ","Ȋ","Ȍ","Ȏ","Ȑ","Ȓ","Ȕ","Ȗ","Ș","Ț","Ȝ","Ȟ","Ƞ","Ȣ","Ȥ","Ȧ","Ȩ","Ȫ","Ȭ","Ȯ","Ȱ","Ȳ",["Ⱥ","Ȼ"],["Ƚ","Ⱦ"],"Ɂ",["Ƀ","Ɇ"],"Ɉ","Ɋ","Ɍ","Ɏ","Ͱ","Ͳ","Ͷ","Ϳ","Ά",["Έ","Ί"],"Ό",["Ύ","Ώ"],["Α","Ρ"],["Σ","Ϋ"],"Ϗ",["ϒ","ϔ"],"Ϙ","Ϛ","Ϝ","Ϟ","Ϡ","Ϣ","Ϥ","Ϧ","Ϩ","Ϫ","Ϭ","Ϯ","ϴ","Ϸ",["Ϲ","Ϻ"],["Ͻ","Я"],"Ѡ","Ѣ","Ѥ","Ѧ","Ѩ","Ѫ","Ѭ","Ѯ","Ѱ","Ѳ","Ѵ","Ѷ","Ѹ","Ѻ","Ѽ","Ѿ","Ҁ","Ҋ","Ҍ","Ҏ","Ґ","Ғ","Ҕ","Җ","Ҙ","Қ","Ҝ","Ҟ","Ҡ","Ң","Ҥ","Ҧ","Ҩ","Ҫ","Ҭ","Ү","Ұ","Ҳ","Ҵ","Ҷ","Ҹ","Һ","Ҽ","Ҿ",["Ӏ","Ӂ"],"Ӄ","Ӆ","Ӈ","Ӊ","Ӌ","Ӎ","Ӑ","Ӓ","Ӕ","Ӗ","Ә","Ӛ","Ӝ","Ӟ","Ӡ","Ӣ","Ӥ","Ӧ","Ө","Ӫ","Ӭ","Ӯ","Ӱ","Ӳ","Ӵ","Ӷ","Ӹ","Ӻ","Ӽ","Ӿ","Ԁ","Ԃ","Ԅ","Ԇ","Ԉ","Ԋ","Ԍ","Ԏ","Ԑ","Ԓ","Ԕ","Ԗ","Ԙ","Ԛ","Ԝ","Ԟ","Ԡ","Ԣ","Ԥ","Ԧ","Ԩ","Ԫ","Ԭ","Ԯ",["Ա","Ֆ"],["Ⴀ","Ⴥ"],"Ⴧ","Ⴭ",["Ꭰ","Ᏽ"],"Ḁ","Ḃ","Ḅ","Ḇ","Ḉ","Ḋ","Ḍ","Ḏ","Ḑ","Ḓ","Ḕ","Ḗ","Ḙ","Ḛ","Ḝ","Ḟ","Ḡ","Ḣ","Ḥ","Ḧ","Ḩ","Ḫ","Ḭ","Ḯ","Ḱ","Ḳ","Ḵ","Ḷ","Ḹ","Ḻ","Ḽ","Ḿ","Ṁ","Ṃ","Ṅ","Ṇ","Ṉ","Ṋ","Ṍ","Ṏ","Ṑ","Ṓ","Ṕ","Ṗ","Ṙ","Ṛ","Ṝ","Ṟ","Ṡ","Ṣ","Ṥ","Ṧ","Ṩ","Ṫ","Ṭ","Ṯ","Ṱ","Ṳ","Ṵ","Ṷ","Ṹ","Ṻ","Ṽ","Ṿ","Ẁ","Ẃ","Ẅ","Ẇ","Ẉ","Ẋ","Ẍ","Ẏ","Ẑ","Ẓ","Ẕ","ẞ","Ạ","Ả","Ấ","Ầ","Ẩ","Ẫ","Ậ","Ắ","Ằ","Ẳ","Ẵ","Ặ","Ẹ","Ẻ","Ẽ","Ế","Ề","Ể","Ễ","Ệ","Ỉ","Ị","Ọ","Ỏ","Ố","Ồ","Ổ","Ỗ","Ộ","Ớ","Ờ","Ở","Ỡ","Ợ","Ụ","Ủ","Ứ","Ừ","Ử","Ữ","Ự","Ỳ","Ỵ","Ỷ","Ỹ","Ỻ","Ỽ","Ỿ",["Ἀ","Ἇ"],["Ἐ","Ἕ"],["Ἠ","Ἧ"],["Ἰ","Ἷ"],["Ὀ","Ὅ"],"Ὑ","Ὓ","Ὕ","Ὗ",["Ὠ","Ὧ"],["Ᾰ","Ά"],["Ὲ","Ή"],["Ῐ","Ί"],["Ῠ","Ῥ"],["Ὸ","Ώ"],"ℂ","ℇ",["ℋ","ℍ"],["ℐ","ℒ"],"ℕ",["ℙ","ℝ"],"ℤ","Ω","ℨ",["K","ℭ"],["ℰ","ℳ"],["ℾ","ℿ"],"ⅅ","Ↄ",["Ⰰ","Ⱞ"],"Ⱡ",["Ɫ","Ɽ"],"Ⱨ","Ⱪ","Ⱬ",["Ɑ","Ɒ"],"Ⱳ","Ⱶ",["Ȿ","Ⲁ"],"Ⲃ","Ⲅ","Ⲇ","Ⲉ","Ⲋ","Ⲍ","Ⲏ","Ⲑ","Ⲓ","Ⲕ","Ⲗ","Ⲙ","Ⲛ","Ⲝ","Ⲟ","Ⲡ","Ⲣ","Ⲥ","Ⲧ","Ⲩ","Ⲫ","Ⲭ","Ⲯ","Ⲱ","Ⲳ","Ⲵ","Ⲷ","Ⲹ","Ⲻ","Ⲽ","Ⲿ","Ⳁ","Ⳃ","Ⳅ","Ⳇ","Ⳉ","Ⳋ","Ⳍ","Ⳏ","Ⳑ","Ⳓ","Ⳕ","Ⳗ","Ⳙ","Ⳛ","Ⳝ","Ⳟ","Ⳡ","Ⳣ","Ⳬ","Ⳮ","Ⳳ","Ꙁ","Ꙃ","Ꙅ","Ꙇ","Ꙉ","Ꙋ","Ꙍ","Ꙏ","Ꙑ","Ꙓ","Ꙕ","Ꙗ","Ꙙ","Ꙛ","Ꙝ","Ꙟ","Ꙡ","Ꙣ","Ꙥ","Ꙧ","Ꙩ","Ꙫ","Ꙭ","Ꚁ","Ꚃ","Ꚅ","Ꚇ","Ꚉ","Ꚋ","Ꚍ","Ꚏ","Ꚑ","Ꚓ","Ꚕ","Ꚗ","Ꚙ","Ꚛ","Ꜣ","Ꜥ","Ꜧ","Ꜩ","Ꜫ","Ꜭ","Ꜯ","Ꜳ","Ꜵ","Ꜷ","Ꜹ","Ꜻ","Ꜽ","Ꜿ","Ꝁ","Ꝃ","Ꝅ","Ꝇ","Ꝉ","Ꝋ","Ꝍ","Ꝏ","Ꝑ","Ꝓ","Ꝕ","Ꝗ","Ꝙ","Ꝛ","Ꝝ","Ꝟ","Ꝡ","Ꝣ","Ꝥ","Ꝧ","Ꝩ","Ꝫ","Ꝭ","Ꝯ","Ꝺ","Ꝼ",["Ᵹ","Ꝿ"],"Ꞁ","Ꞃ","Ꞅ","Ꞇ","Ꞌ","Ɥ","Ꞑ","Ꞓ","Ꞗ","Ꞙ","Ꞛ","Ꞝ","Ꞟ","Ꞡ","Ꞣ","Ꞥ","Ꞧ","Ꞩ",["Ɦ","Ɬ"],["Ʞ","Ꞵ"],"Ꞷ",["A","Z"]],!1,!1),Rt=Zo(["ः","ऻ",["ा","ी"],["ॉ","ौ"],["ॎ","ॏ"],["ং","ঃ"],["া","ী"],["ে","ৈ"],["ো","ৌ"],"ৗ","ਃ",["ਾ","ੀ"],"ઃ",["ા","ી"],"ૉ",["ો","ૌ"],["ଂ","ଃ"],"ା","ୀ",["େ","ୈ"],["ୋ","ୌ"],"ୗ",["ா","ி"],["ு","ூ"],["ெ","ை"],["ொ","ௌ"],"ௗ",["ఁ","ః"],["ు","ౄ"],["ಂ","ಃ"],"ಾ",["ೀ","ೄ"],["ೇ","ೈ"],["ೊ","ೋ"],["ೕ","ೖ"],["ം","ഃ"],["ാ","ീ"],["െ","ൈ"],["ൊ","ൌ"],"ൗ",["ං","ඃ"],["ා","ෑ"],["ෘ","ෟ"],["ෲ","ෳ"],["༾","༿"],"ཿ",["ါ","ာ"],"ေ","း",["ျ","ြ"],["ၖ","ၗ"],["ၢ","ၤ"],["ၧ","ၭ"],["ႃ","ႄ"],["ႇ","ႌ"],"ႏ",["ႚ","ႜ"],"ា",["ើ","ៅ"],["ះ","ៈ"],["ᤣ","ᤦ"],["ᤩ","ᤫ"],["ᤰ","ᤱ"],["ᤳ","ᤸ"],["ᨙ","ᨚ"],"ᩕ","ᩗ","ᩡ",["ᩣ","ᩤ"],["ᩭ","ᩲ"],"ᬄ","ᬵ","ᬻ",["ᬽ","ᭁ"],["ᭃ","᭄"],"ᮂ","ᮡ",["ᮦ","ᮧ"],"᮪","ᯧ",["ᯪ","ᯬ"],"ᯮ",["᯲","᯳"],["ᰤ","ᰫ"],["ᰴ","ᰵ"],"᳡",["ᳲ","ᳳ"],["〮","〯"],["ꠣ","ꠤ"],"ꠧ",["ꢀ","ꢁ"],["ꢴ","ꣃ"],["ꥒ","꥓"],"ꦃ",["ꦴ","ꦵ"],["ꦺ","ꦻ"],["ꦽ","꧀"],["ꨯ","ꨰ"],["ꨳ","ꨴ"],"ꩍ","ꩻ","ꩽ","ꫫ",["ꫮ","ꫯ"],"ꫵ",["ꯣ","ꯤ"],["ꯦ","ꯧ"],["ꯩ","ꯪ"],"꯬"],!1,!1),Ot=Zo([["̀","ͯ"],["҃","҇"],["֑","ֽ"],"ֿ",["ׁ","ׂ"],["ׄ","ׅ"],"ׇ",["ؐ","ؚ"],["ً","ٟ"],"ٰ",["ۖ","ۜ"],["۟","ۤ"],["ۧ","ۨ"],["۪","ۭ"],"ܑ",["ܰ","݊"],["ަ","ް"],["߫","߳"],["ࠖ","࠙"],["ࠛ","ࠣ"],["ࠥ","ࠧ"],["ࠩ","࠭"],["࡙","࡛"],["ࣣ","ं"],"ऺ","़",["ु","ै"],"्",["॑","ॗ"],["ॢ","ॣ"],"ঁ","়",["ু","ৄ"],"্",["ৢ","ৣ"],["ਁ","ਂ"],"਼",["ੁ","ੂ"],["ੇ","ੈ"],["ੋ","੍"],"ੑ",["ੰ","ੱ"],"ੵ",["ઁ","ં"],"઼",["ુ","ૅ"],["ે","ૈ"],"્",["ૢ","ૣ"],"ଁ","଼","ି",["ୁ","ୄ"],"୍","ୖ",["ୢ","ୣ"],"ஂ","ீ","்","ఀ",["ా","ీ"],["ె","ై"],["ొ","్"],["ౕ","ౖ"],["ౢ","ౣ"],"ಁ","಼","ಿ","ೆ",["ೌ","್"],["ೢ","ೣ"],"ഁ",["ു","ൄ"],"്",["ൢ","ൣ"],"්",["ි","ු"],"ූ","ั",["ิ","ฺ"],["็","๎"],"ັ",["ິ","ູ"],["ົ","ຼ"],["່","ໍ"],["༘","༙"],"༵","༷","༹",["ཱ","ཾ"],["ྀ","྄"],["྆","྇"],["ྍ","ྗ"],["ྙ","ྼ"],"࿆",["ိ","ူ"],["ဲ","့"],["္","်"],["ွ","ှ"],["ၘ","ၙ"],["ၞ","ၠ"],["ၱ","ၴ"],"ႂ",["ႅ","ႆ"],"ႍ","ႝ",["፝","፟"],["ᜒ","᜔"],["ᜲ","᜴"],["ᝒ","ᝓ"],["ᝲ","ᝳ"],["឴","឵"],["ិ","ួ"],"ំ",["៉","៓"],"៝",["᠋","᠍"],"ᢩ",["ᤠ","ᤢ"],["ᤧ","ᤨ"],"ᤲ",["᤹","᤻"],["ᨗ","ᨘ"],"ᨛ","ᩖ",["ᩘ","ᩞ"],"᩠","ᩢ",["ᩥ","ᩬ"],["ᩳ","᩼"],"᩿",["᪰","᪽"],["ᬀ","ᬃ"],"᬴",["ᬶ","ᬺ"],"ᬼ","ᭂ",["᭫","᭳"],["ᮀ","ᮁ"],["ᮢ","ᮥ"],["ᮨ","ᮩ"],["᮫","ᮭ"],"᯦",["ᯨ","ᯩ"],"ᯭ",["ᯯ","ᯱ"],["ᰬ","ᰳ"],["ᰶ","᰷"],["᳐","᳒"],["᳔","᳠"],["᳢","᳨"],"᳭","᳴",["᳸","᳹"],["᷀","᷵"],["᷼","᷿"],["⃐","⃜"],"⃡",["⃥","⃰"],["⳯","⳱"],"⵿",["ⷠ","ⷿ"],["〪","〭"],["゙","゚"],"꙯",["ꙴ","꙽"],["ꚞ","ꚟ"],["꛰","꛱"],"ꠂ","꠆","ꠋ",["ꠥ","ꠦ"],"꣄",["꣠","꣱"],["ꤦ","꤭"],["ꥇ","ꥑ"],["ꦀ","ꦂ"],"꦳",["ꦶ","ꦹ"],"ꦼ","ꧥ",["ꨩ","ꨮ"],["ꨱ","ꨲ"],["ꨵ","ꨶ"],"ꩃ","ꩌ","ꩼ","ꪰ",["ꪲ","ꪴ"],["ꪷ","ꪸ"],["ꪾ","꪿"],"꫁",["ꫬ","ꫭ"],"꫶","ꯥ","ꯨ","꯭","ﬞ",["︀","️"],["︠","︯"]],!1,!1),Gt=Zo([["0","9"],["٠","٩"],["۰","۹"],["߀","߉"],["०","९"],["০","৯"],["੦","੯"],["૦","૯"],["୦","୯"],["௦","௯"],["౦","౯"],["೦","೯"],["൦","൯"],["෦","෯"],["๐","๙"],["໐","໙"],["༠","༩"],["၀","၉"],["႐","႙"],["០","៩"],["᠐","᠙"],["᥆","᥏"],["᧐","᧙"],["᪀","᪉"],["᪐","᪙"],["᭐","᭙"],["᮰","᮹"],["᱀","᱉"],["᱐","᱙"],["꘠","꘩"],["꣐","꣙"],["꤀","꤉"],["꧐","꧙"],["꧰","꧹"],["꩐","꩙"],["꯰","꯹"],["0","9"]],!1,!1),$t=Zo([["ᛮ","ᛰ"],["Ⅰ","ↂ"],["ↅ","ↈ"],"〇",["〡","〩"],["〸","〺"],["ꛦ","ꛯ"]],!1,!1),Zt=Zo(["_",["‿","⁀"],"⁔",["︳","︴"],["﹍","﹏"],"_"],!1,!1),Ut=Zo([" "," "," ",[" "," "]," "," "," "],!1,!1),qt=$o(";",!1),Wt=function(e,t,o){return{type:"grammar",topLevelInitializer:e,initializer:t,rules:o,location:Oo()}},Jt=function(e){return{type:"top_level_initializer",code:e[0],codeLocation:e[1],location:Oo()}},Yt=function(e){return{type:"initializer",code:e[0],codeLocation:e[1],location:Oo()}},Kt=function(e,t,o){return{type:"rule",name:e[0],nameLocation:e[1],expression:null!==t?{type:"named",name:t,expression:o,location:Oo()}:o,location:Oo()}},Xt=function(e,t){return t.length>0?{type:"choice",alternatives:[e].concat(t),location:Oo()}:e},Qt=function(e,t){return null!==t?{type:"action",expression:e,code:t[0],codeLocation:t[1],location:Oo()}:e},eo=function(e,t){return t.length>0||"labeled"===e.type&&e.pick?{type:"sequence",elements:[e].concat(t),location:Oo()}:e},to=function(e,t,o){return o.type.startsWith("semantic_")&&Go('"@" cannot be used on a semantic predicate',e),{type:"labeled",label:null!==t?t[0]:null,labelLocation:null!==t?t[1]:e,pick:!0,expression:o,location:Oo()}},oo=function(e,t){return{type:"labeled",label:e[0],labelLocation:e[1],expression:t,location:Oo()}},ro=function(){return Oo()},no=function(e){return Mr.indexOf(e[0])>=0&&Go(`Label can't be a reserved word "${e[0]}"`,e[1]),e},ao=function(e,o){return{type:t[e],expression:o,location:Oo()}},co=function(e,t){return{type:o[t],expression:e,location:Oo()}},io=function(e,t,o){let r=t[0],n=t[1];return"constant"===n.type&&0===n.value&&Go("The maximum count of repetitions of the rule must be > 0",n.location),{type:"repeated",min:r,max:n,expression:e,delimiter:o,location:Oo()}},so=function(e,t){return[null!==e?e:{type:"constant",value:0},null!==t?t:{type:"constant",value:null}]},lo=function(e){return[null,e]},uo=function(e){return{type:"constant",value:e,location:Oo()}},mo=function(e){return{type:"variable",value:e[0],location:Oo()}},po=function(e){return{type:"function",value:e[0],codeLocation:e[1],location:Oo()}},ho=function(e){return"labeled"===e.type||"sequence"===e.type?{type:"group",expression:e,location:Oo()}:e},_o=function(e){return{type:"rule_ref",name:e[0],location:Oo()}},vo=function(e,t){return{type:r[e],code:t[0],codeLocation:t[1],location:Oo()}},wo=function(e,t){return[e+t.join(""),Oo()]},go=function(e,t){return{type:"literal",value:e,ignoreCase:null!==t,location:Oo()}},fo=function(e){return e.join("")},Eo=function(e){return e.join("")},bo=function(e,t,o){return{type:"class",parts:t.filter(e=>""!==e),inverted:null!==e,ignoreCase:null!==o,location:Oo()}},Co=function(t,o){return t.charCodeAt(0)>o.charCodeAt(0)&&Go("Invalid character range: "+e.substring(Ho,Do)+"."),[t,o]},xo=function(){return""},yo=function(){return"\0"},Ao=function(){return"\b"},ko=function(){return"\f"},So=function(){return"\n"},Po=function(){return"\r"},Vo=function(){return"\t"},Bo=function(){return"\v"},Mo=function(e){return String.fromCharCode(parseInt(e,16))},Fo=function(e){return String.fromCharCode(parseInt(e,16))},Lo=function(){return{type:"any",location:Oo()}},No=function(e){return[e,Oo()]},To=function(e){return parseInt(e,10)},Do=0,Ho=0,zo=[{line:1,column:1}],jo=0,Io=[],Ro=0;if("startRule"in a){if(!(a.startRule in l))throw new Error("Can't start parsing from rule \""+a.startRule+'".');u=l[a.startRule]}function Oo(){return Wo(Ho,Do)}function Go(e,t){throw function(e,t){return new n(e,null,null,t)}(e,t=void 0!==t?t:Wo(Ho,Do))}function $o(e,t){return{type:"literal",text:e,ignoreCase:t}}function Zo(e,t,o){return{type:"class",parts:e,inverted:t,ignoreCase:o}}function Uo(e){return{type:"other",description:e}}function qo(t){var o,r=zo[t];if(r)return r;for(o=t-1;!zo[o];)o--;for(r={line:(r=zo[o]).line,column:r.column};o<t;)10===e.charCodeAt(o)?(r.line++,r.column=1):r.column++,o++;return zo[t]=r,r}function Wo(e,t,o){var r=qo(e),n=qo(t),a={source:s,start:{offset:e,line:r.line,column:r.column},end:{offset:t,line:n.line,column:n.column}};return o&&s&&"function"==typeof s.offset&&(a.start=s.offset(a.start),a.end=s.offset(a.end)),a}function Jo(e){Do<jo||(Do>jo&&(jo=Do,Io=[]),Io.push(e))}function Yo(){var t,o,r,n,a,c;if(t=Do,Vr(),o=Do,r=function(){var t,o,r,n;return t=Do,123===e.charCodeAt(Do)?(o=d,Do++):(o=i,0===Ro&&Jo(Ae)),o!==i&&(r=Sr())!==i?(125===e.charCodeAt(Do)?(n=m,Do++):(n=i,0===Ro&&Jo(ke)),n!==i&&Br()!==i?(Ho=t,t=Jt(r)):(Do=t,t=i)):(Do=t,t=i),t}(),r!==i?(n=Vr(),o=r):(Do=o,o=i),o===i&&(o=null),r=Do,n=function(){var e,t;return e=Do,(t=Sr())!==i&&Br()!==i?(Ho=e,e=Yt(t)):(Do=e,e=i),e}(),n!==i?(a=Vr(),r=n):(Do=r,r=i),r===i&&(r=null),n=[],a=Do,(c=Ko())!==i?(Vr(),a=c):(Do=a,a=i),a!==i)for(;a!==i;)n.push(a),a=Do,(c=Ko())!==i?(Vr(),a=c):(Do=a,a=i);else n=i;return n!==i?(Ho=t,t=Wt(o,r,n)):(Do=t,t=i),t}function Ko(){var t,o,r,n,a;return t=Do,(o=pr())!==i?(Vr(),r=Do,(n=vr())!==i?(Vr(),r=n):(Do=r,r=i),r===i&&(r=null),61===e.charCodeAt(Do)?(n=p,Do++):(n=i,0===Ro&&Jo(Se)),n!==i?(Vr(),(a=Xo())!==i&&Br()!==i?(Ho=t,t=Kt(o,r,a)):(Do=t,t=i)):(Do=t,t=i)):(Do=t,t=i),t}function Xo(){var t,o,r,n,a,c;if(t=Do,(o=Qo())!==i){for(r=[],n=Do,Vr(),47===e.charCodeAt(Do)?(a=h,Do++):(a=i,0===Ro&&Jo(Pe)),a!==i?(Vr(),(c=Qo())!==i?n=c:(Do=n,n=i)):(Do=n,n=i);n!==i;)r.push(n),n=Do,Vr(),47===e.charCodeAt(Do)?(a=h,Do++):(a=i,0===Ro&&Jo(Pe)),a!==i?(Vr(),(c=Qo())!==i?n=c:(Do=n,n=i)):(Do=n,n=i);Ho=t,t=Xt(o,r)}else Do=t,t=i;return t}function Qo(){var e,t,o,r;return e=Do,t=function(){var e,t,o,r,n;if(e=Do,(t=er())!==i){for(o=[],r=Do,Vr(),(n=er())!==i?r=n:(Do=r,r=i);r!==i;)o.push(r),r=Do,Vr(),(n=er())!==i?r=n:(Do=r,r=i);Ho=e,e=eo(t,o)}else Do=e,e=i;return e}(),t!==i?(o=Do,Vr(),(r=Sr())!==i?o=r:(Do=o,o=i),o===i&&(o=null),Ho=e,e=Qt(t,o)):(Do=e,e=i),e}function er(){var t,o,r,n;return t=Do,o=function(){var t,o;return t=Do,64===e.charCodeAt(Do)?(o=_,Do++):(o=i,0===Ro&&Jo(Ve)),o!==i&&(Ho=t,o=ro()),t=o}(),o!==i?((r=tr())===i&&(r=null),(n=or())!==i?(Ho=t,t=to(o,r,n)):(Do=t,t=i)):(Do=t,t=i),t===i&&(t=Do,(o=tr())!==i?(r=Vr(),(n=or())!==i?(Ho=t,t=oo(o,n)):(Do=t,t=i)):(Do=t,t=i),t===i&&(t=or())),t}function tr(){var t,o,r;return t=Do,(o=pr())!==i?(Vr(),58===e.charCodeAt(Do)?(r=v,Do++):(r=i,0===Ro&&Jo(Be)),r!==i?(Ho=t,t=no(o)):(Do=t,t=i)):(Do=t,t=i),t}function or(){var t,o,r;return t=Do,o=function(){var t;return 36===e.charCodeAt(Do)?(t=w,Do++):(t=i,0===Ro&&Jo(Me)),t===i&&(38===e.charCodeAt(Do)?(t=g,Do++):(t=i,0===Ro&&Jo(Fe)),t===i&&(33===e.charCodeAt(Do)?(t=f,Do++):(t=i,0===Ro&&Jo(Le)))),t}(),o!==i?(Vr(),(r=rr())!==i?(Ho=t,t=ao(o,r)):(Do=t,t=i)):(Do=t,t=i),t===i&&(t=rr()),t}function rr(){var t,o,r;return t=Do,(o=ar())!==i?(Vr(),r=function(){var t;return 63===e.charCodeAt(Do)?(t=E,Do++):(t=i,0===Ro&&Jo(Ne)),t===i&&(42===e.charCodeAt(Do)?(t=b,Do++):(t=i,0===Ro&&Jo(Te)),t===i&&(43===e.charCodeAt(Do)?(t=C,Do++):(t=i,0===Ro&&Jo(De)))),t}(),r!==i?(Ho=t,t=co(o,r)):(Do=t,t=i)):(Do=t,t=i),t===i&&(t=function(){var t,o,r,n,a,c,s;return t=Do,(o=ar())!==i?(Vr(),124===e.charCodeAt(Do)?(r=x,Do++):(r=i,0===Ro&&Jo(He)),r!==i?(Vr(),n=function(){var t,o,r,n;return t=Do,(o=nr())===i&&(o=null),Vr(),e.substr(Do,2)===A?(r=A,Do+=2):(r=i,0===Ro&&Jo(je)),r!==i?(Vr(),(n=nr())===i&&(n=null),Ho=t,t=so(o,n)):(Do=t,t=i),t===i&&(t=Do,(o=nr())!==i&&(Ho=t,o=lo(o)),t=o),t}(),n!==i?(Vr(),a=Do,44===e.charCodeAt(Do)?(c=y,Do++):(c=i,0===Ro&&Jo(ze)),c!==i?(Vr(),(s=Xo())!==i?(Vr(),a=s):(Do=a,a=i)):(Do=a,a=i),a===i&&(a=null),124===e.charCodeAt(Do)?(c=x,Do++):(c=i,0===Ro&&Jo(He)),c!==i?(Ho=t,t=io(o,n,a)):(Do=t,t=i)):(Do=t,t=i)):(Do=t,t=i)):(Do=t,t=i),t}(),t===i&&(t=ar())),t}function nr(){var t,o;return t=Do,o=function(){var t,o,r,n;if(t=Do,o=Do,r=[],(n=Ar())!==i)for(;n!==i;)r.push(n),n=Ar();else r=i;return(o=r!==i?e.substring(o,Do):r)!==i&&(Ho=t,o=To(o)),t=o}(),o!==i&&(Ho=t,o=uo(o)),(t=o)===i&&(t=Do,(o=pr())!==i&&(Ho=t,o=mo(o)),(t=o)===i&&(t=Do,(o=Sr())!==i&&(Ho=t,o=po(o)),t=o)),t}function ar(){var t,o,r,n;return t=function(){var t,o,r;return Ro++,t=Do,(o=vr())!==i?(105===e.charCodeAt(Do)?(r=U,Do++):(r=i,0===Ro&&Jo(pt)),r===i&&(r=null),Ho=t,t=go(o,r)):(Do=t,t=i),Ro--,t===i&&(o=i,0===Ro&&Jo(mt)),t}(),t===i&&(t=function(){var t,o,r,n,a,c;if(Ro++,t=Do,91===e.charCodeAt(Do)?(o=J,Do++):(o=i,0===Ro&&Jo(gt)),o!==i){for(94===e.charCodeAt(Do)?(r=Y,Do++):(r=i,0===Ro&&Jo(ft)),r===i&&(r=null),n=[],(a=fr())===i&&(a=Er());a!==i;)n.push(a),(a=fr())===i&&(a=Er());93===e.charCodeAt(Do)?(a=K,Do++):(a=i,0===Ro&&Jo(Et)),a!==i?(105===e.charCodeAt(Do)?(c=U,Do++):(c=i,0===Ro&&Jo(pt)),c===i&&(c=null),Ho=t,t=bo(r,n,c)):(Do=t,t=i)}else Do=t,t=i;return Ro--,t===i&&(o=i,0===Ro&&Jo(wt)),t}(),t===i&&(t=function(){var t,o;return t=Do,46===e.charCodeAt(Do)?(o=se,Do++):(o=i,0===Ro&&Jo(Lt)),o!==i&&(Ho=t,o=Lo()),t=o}(),t===i&&(t=function(){var t,o,r,n,a,c,s;return t=Do,(o=pr())!==i?(r=Do,Ro++,n=Do,a=Vr(),c=Do,(s=vr())!==i?c=s=[s,Vr()]:(Do=c,c=i),c===i&&(c=null),61===e.charCodeAt(Do)?(s=p,Do++):(s=i,0===Ro&&Jo(Se)),s!==i?n=a=[a,c,s]:(Do=n,n=i),Ro--,n===i?r=void 0:(Do=r,r=i),r!==i?(Ho=t,t=_o(o)):(Do=t,t=i)):(Do=t,t=i),t}(),t===i&&(t=function(){var t,o,r;return t=Do,o=function(){var t;return 38===e.charCodeAt(Do)?(t=g,Do++):(t=i,0===Ro&&Jo(Fe)),t===i&&(33===e.charCodeAt(Do)?(t=f,Do++):(t=i,0===Ro&&Jo(Le))),t}(),o!==i?(Vr(),(r=Sr())!==i?(Ho=t,t=vo(o,r)):(Do=t,t=i)):(Do=t,t=i),t}(),t===i&&(t=Do,40===e.charCodeAt(Do)?(o=k,Do++):(o=i,0===Ro&&Jo(Ie)),o!==i?(Vr(),(r=Xo())!==i?(Vr(),41===e.charCodeAt(Do)?(n=S,Do++):(n=i,0===Ro&&Jo(Re)),n!==i?(Ho=t,t=ho(r)):(Do=t,t=i)):(Do=t,t=i)):(Do=t,t=i)))))),t}function cr(){var t;return e.length>Do?(t=e.charAt(Do),Do++):(t=i,0===Ro&&Jo(Oe)),t}function ir(){var t;return Ro++,9===e.charCodeAt(Do)?(t=P,Do++):(t=i,0===Ro&&Jo($e)),t===i&&(11===e.charCodeAt(Do)?(t=V,Do++):(t=i,0===Ro&&Jo(Ze)),t===i&&(12===e.charCodeAt(Do)?(t=B,Do++):(t=i,0===Ro&&Jo(Ue)),t===i&&(32===e.charCodeAt(Do)?(t=M,Do++):(t=i,0===Ro&&Jo(qe)),t===i&&(160===e.charCodeAt(Do)?(t=F,Do++):(t=i,0===Ro&&Jo(We)),t===i&&(65279===e.charCodeAt(Do)?(t=L,Do++):(t=i,0===Ro&&Jo(Je)),t===i&&(t=function(){var t;return ye.test(e.charAt(Do))?(t=e.charAt(Do),Do++):(t=i,0===Ro&&Jo(Ut)),t}())))))),Ro--,t===i&&0===Ro&&Jo(Ge),t}function sr(){var t;return ue.test(e.charAt(Do))?(t=e.charAt(Do),Do++):(t=i,0===Ro&&Jo(Ye)),t}function lr(){var t;return Ro++,10===e.charCodeAt(Do)?(t=N,Do++):(t=i,0===Ro&&Jo(Xe)),t===i&&(e.substr(Do,2)===T?(t=T,Do+=2):(t=i,0===Ro&&Jo(Qe)),t===i&&(13===e.charCodeAt(Do)?(t=D,Do++):(t=i,0===Ro&&Jo(et)),t===i&&(8232===e.charCodeAt(Do)?(t=H,Do++):(t=i,0===Ro&&Jo(tt)),t===i&&(8233===e.charCodeAt(Do)?(t=z,Do++):(t=i,0===Ro&&Jo(ot)))))),Ro--,t===i&&0===Ro&&Jo(Ke),t}function ur(){var t;return Ro++,(t=function(){var t,o,r,n,a,c;if(t=Do,e.substr(Do,2)===j?(o=j,Do+=2):(o=i,0===Ro&&Jo(nt)),o!==i){for(r=[],n=Do,a=Do,Ro++,e.substr(Do,2)===I?(c=I,Do+=2):(c=i,0===Ro&&Jo(at)),Ro--,c===i?a=void 0:(Do=a,a=i),a!==i&&(c=cr())!==i?n=a=[a,c]:(Do=n,n=i);n!==i;)r.push(n),n=Do,a=Do,Ro++,e.substr(Do,2)===I?(c=I,Do+=2):(c=i,0===Ro&&Jo(at)),Ro--,c===i?a=void 0:(Do=a,a=i),a!==i&&(c=cr())!==i?n=a=[a,c]:(Do=n,n=i);e.substr(Do,2)===I?(n=I,Do+=2):(n=i,0===Ro&&Jo(at)),n!==i?t=o=[o,r,n]:(Do=t,t=i)}else Do=t,t=i;return t}())===i&&(t=mr()),Ro--,t===i&&0===Ro&&Jo(rt),t}function dr(){var t,o,r,n,a,c;if(t=Do,e.substr(Do,2)===j?(o=j,Do+=2):(o=i,0===Ro&&Jo(nt)),o!==i){for(r=[],n=Do,a=Do,Ro++,e.substr(Do,2)===I?(c=I,Do+=2):(c=i,0===Ro&&Jo(at)),c===i&&(c=sr()),Ro--,c===i?a=void 0:(Do=a,a=i),a!==i&&(c=cr())!==i?n=a=[a,c]:(Do=n,n=i);n!==i;)r.push(n),n=Do,a=Do,Ro++,e.substr(Do,2)===I?(c=I,Do+=2):(c=i,0===Ro&&Jo(at)),c===i&&(c=sr()),Ro--,c===i?a=void 0:(Do=a,a=i),a!==i&&(c=cr())!==i?n=a=[a,c]:(Do=n,n=i);e.substr(Do,2)===I?(n=I,Do+=2):(n=i,0===Ro&&Jo(at)),n!==i?t=o=[o,r,n]:(Do=t,t=i)}else Do=t,t=i;return t}function mr(){var t,o,r,n,a,c;if(t=Do,e.substr(Do,2)===R?(o=R,Do+=2):(o=i,0===Ro&&Jo(ct)),o!==i){for(r=[],n=Do,a=Do,Ro++,c=sr(),Ro--,c===i?a=void 0:(Do=a,a=i),a!==i&&(c=cr())!==i?n=a=[a,c]:(Do=n,n=i);n!==i;)r.push(n),n=Do,a=Do,Ro++,c=sr(),Ro--,c===i?a=void 0:(Do=a,a=i),a!==i&&(c=cr())!==i?n=a=[a,c]:(Do=n,n=i);t=o=[o,r]}else Do=t,t=i;return t}function pr(){var e,t,o,r;if(Ro++,e=Do,(t=hr())!==i){for(o=[],r=_r();r!==i;)o.push(r),r=_r();Ho=e,e=wo(t,o)}else Do=e,e=i;return Ro--,e===i&&(t=i,0===Ro&&Jo(it)),e}function hr(){var t,o,r;return(t=function(){var t;return(t=function(){var t;return ge.test(e.charAt(Do))?(t=e.charAt(Do),Do++):(t=i,0===Ro&&Jo(It)),t}())===i&&(t=function(){var t;return he.test(e.charAt(Do))?(t=e.charAt(Do),Do++):(t=i,0===Ro&&Jo(Dt)),t}())===i&&(t=function(){var t;return we.test(e.charAt(Do))?(t=e.charAt(Do),Do++):(t=i,0===Ro&&Jo(jt)),t}())===i&&(t=function(){var t;return _e.test(e.charAt(Do))?(t=e.charAt(Do),Do++):(t=i,0===Ro&&Jo(Ht)),t}())===i&&(t=function(){var t;return ve.test(e.charAt(Do))?(t=e.charAt(Do),Do++):(t=i,0===Ro&&Jo(zt)),t}())===i&&(t=function(){var t;return Ce.test(e.charAt(Do))?(t=e.charAt(Do),Do++):(t=i,0===Ro&&Jo($t)),t}()),t}())===i&&(95===e.charCodeAt(Do)?(t=O,Do++):(t=i,0===Ro&&Jo(st)),t===i&&(t=Do,92===e.charCodeAt(Do)?(o=G,Do++):(o=i,0===Ro&&Jo(lt)),o!==i&&(r=yr())!==i?t=r:(Do=t,t=i))),t}function _r(){var t;return(t=hr())===i&&(36===e.charCodeAt(Do)?(t=w,Do++):(t=i,0===Ro&&Jo(Me)),t===i&&(t=function(){var t;return(t=function(){var t;return Ee.test(e.charAt(Do))?(t=e.charAt(Do),Do++):(t=i,0===Ro&&Jo(Ot)),t}())===i&&(t=function(){var t;return fe.test(e.charAt(Do))?(t=e.charAt(Do),Do++):(t=i,0===Ro&&Jo(Rt)),t}()),t}())===i&&(t=function(){var t;return be.test(e.charAt(Do))?(t=e.charAt(Do),Do++):(t=i,0===Ro&&Jo(Gt)),t}())===i&&(t=function(){var t;return xe.test(e.charAt(Do))?(t=e.charAt(Do),Do++):(t=i,0===Ro&&Jo(Zt)),t}())===i&&(8204===e.charCodeAt(Do)?(t=$,Do++):(t=i,0===Ro&&Jo(ut)),t===i&&(8205===e.charCodeAt(Do)?(t=Z,Do++):(t=i,0===Ro&&Jo(dt))))),t}function vr(){var t,o,r,n;if(Ro++,t=Do,34===e.charCodeAt(Do)?(o=q,Do++):(o=i,0===Ro&&Jo(_t)),o!==i){for(r=[],n=wr();n!==i;)r.push(n),n=wr();34===e.charCodeAt(Do)?(n=q,Do++):(n=i,0===Ro&&Jo(_t)),n!==i?(Ho=t,t=fo(r)):(Do=t,t=i)}else Do=t,t=i;if(t===i)if(t=Do,39===e.charCodeAt(Do)?(o=W,Do++):(o=i,0===Ro&&Jo(vt)),o!==i){for(r=[],n=gr();n!==i;)r.push(n),n=gr();39===e.charCodeAt(Do)?(n=W,Do++):(n=i,0===Ro&&Jo(vt)),n!==i?(Ho=t,t=Eo(r)):(Do=t,t=i)}else Do=t,t=i;return Ro--,t===i&&(o=i,0===Ro&&Jo(ht)),t}function wr(){var t,o,r,n;return t=Do,o=Do,r=Do,Ro++,34===e.charCodeAt(Do)?(n=q,Do++):(n=i,0===Ro&&Jo(_t)),n===i&&(92===e.charCodeAt(Do)?(n=G,Do++):(n=i,0===Ro&&Jo(lt)),n===i&&(n=sr())),Ro--,n===i?r=void 0:(Do=r,r=i),r!==i&&(n=cr())!==i?o=r=[r,n]:(Do=o,o=i),(t=o!==i?e.substring(t,Do):o)===i&&(t=Do,92===e.charCodeAt(Do)?(o=G,Do++):(o=i,0===Ro&&Jo(lt)),o!==i&&(r=Cr())!==i?t=r:(Do=t,t=i),t===i&&(t=br())),t}function gr(){var t,o,r,n;return t=Do,o=Do,r=Do,Ro++,39===e.charCodeAt(Do)?(n=W,Do++):(n=i,0===Ro&&Jo(vt)),n===i&&(92===e.charCodeAt(Do)?(n=G,Do++):(n=i,0===Ro&&Jo(lt)),n===i&&(n=sr())),Ro--,n===i?r=void 0:(Do=r,r=i),r!==i&&(n=cr())!==i?o=r=[r,n]:(Do=o,o=i),(t=o!==i?e.substring(t,Do):o)===i&&(t=Do,92===e.charCodeAt(Do)?(o=G,Do++):(o=i,0===Ro&&Jo(lt)),o!==i&&(r=Cr())!==i?t=r:(Do=t,t=i),t===i&&(t=br())),t}function fr(){var t,o,r,n;return t=Do,(o=Er())!==i?(45===e.charCodeAt(Do)?(r=X,Do++):(r=i,0===Ro&&Jo(bt)),r!==i&&(n=Er())!==i?(Ho=t,t=Co(o,n)):(Do=t,t=i)):(Do=t,t=i),t}function Er(){var t,o,r,n;return t=Do,o=Do,r=Do,Ro++,93===e.charCodeAt(Do)?(n=K,Do++):(n=i,0===Ro&&Jo(Et)),n===i&&(92===e.charCodeAt(Do)?(n=G,Do++):(n=i,0===Ro&&Jo(lt)),n===i&&(n=sr())),Ro--,n===i?r=void 0:(Do=r,r=i),r!==i&&(n=cr())!==i?o=r=[r,n]:(Do=o,o=i),(t=o!==i?e.substring(t,Do):o)===i&&(t=Do,92===e.charCodeAt(Do)?(o=G,Do++):(o=i,0===Ro&&Jo(lt)),o!==i&&(r=Cr())!==i?t=r:(Do=t,t=i),t===i&&(t=br())),t}function br(){var t,o;return t=Do,92===e.charCodeAt(Do)?(o=G,Do++):(o=i,0===Ro&&Jo(lt)),o!==i&&lr()!==i?(Ho=t,t=xo()):(Do=t,t=i),t}function Cr(){var t,o,r,n;return t=function(){var t;return(t=xr())===i&&(t=function(){var t,o,r,n;return t=Do,o=Do,r=Do,Ro++,n=function(){var t;return(t=xr())===i&&(t=Ar())===i&&(120===e.charCodeAt(Do)?(t=ce,Do++):(t=i,0===Ro&&Jo(Vt)),t===i&&(117===e.charCodeAt(Do)?(t=ie,Do++):(t=i,0===Ro&&Jo(Bt)))),t}(),n===i&&(n=sr()),Ro--,n===i?r=void 0:(Do=r,r=i),r!==i&&(n=cr())!==i?o=r=[r,n]:(Do=o,o=i),t=o!==i?e.substring(t,Do):o}()),t}(),t===i&&(t=Do,48===e.charCodeAt(Do)?(o=Q,Do++):(o=i,0===Ro&&Jo(Ct)),o!==i?(r=Do,Ro++,n=Ar(),Ro--,n===i?r=void 0:(Do=r,r=i),r!==i?(Ho=t,t=yo()):(Do=t,t=i)):(Do=t,t=i),t===i&&(t=function(){var t,o,r,n,a,c;return t=Do,120===e.charCodeAt(Do)?(o=ce,Do++):(o=i,0===Ro&&Jo(Vt)),o!==i?(r=Do,n=Do,(a=kr())!==i&&(c=kr())!==i?n=a=[a,c]:(Do=n,n=i),(r=n!==i?e.substring(r,Do):n)!==i?(Ho=t,t=Mo(r)):(Do=t,t=i)):(Do=t,t=i),t}(),t===i&&(t=yr()))),t}function xr(){var t,o;return 39===e.charCodeAt(Do)?(t=W,Do++):(t=i,0===Ro&&Jo(vt)),t===i&&(34===e.charCodeAt(Do)?(t=q,Do++):(t=i,0===Ro&&Jo(_t)),t===i&&(92===e.charCodeAt(Do)?(t=G,Do++):(t=i,0===Ro&&Jo(lt)),t===i&&(t=Do,98===e.charCodeAt(Do)?(o=ee,Do++):(o=i,0===Ro&&Jo(xt)),o!==i&&(Ho=t,o=Ao()),(t=o)===i&&(t=Do,102===e.charCodeAt(Do)?(o=te,Do++):(o=i,0===Ro&&Jo(yt)),o!==i&&(Ho=t,o=ko()),(t=o)===i&&(t=Do,110===e.charCodeAt(Do)?(o=oe,Do++):(o=i,0===Ro&&Jo(At)),o!==i&&(Ho=t,o=So()),(t=o)===i&&(t=Do,114===e.charCodeAt(Do)?(o=re,Do++):(o=i,0===Ro&&Jo(kt)),o!==i&&(Ho=t,o=Po()),(t=o)===i&&(t=Do,116===e.charCodeAt(Do)?(o=ne,Do++):(o=i,0===Ro&&Jo(St)),o!==i&&(Ho=t,o=Vo()),(t=o)===i&&(t=Do,118===e.charCodeAt(Do)?(o=ae,Do++):(o=i,0===Ro&&Jo(Pt)),o!==i&&(Ho=t,o=Bo()),t=o)))))))),t}function yr(){var t,o,r,n,a,c,s,l;return t=Do,117===e.charCodeAt(Do)?(o=ie,Do++):(o=i,0===Ro&&Jo(Bt)),o!==i?(r=Do,n=Do,(a=kr())!==i&&(c=kr())!==i&&(s=kr())!==i&&(l=kr())!==i?n=a=[a,c,s,l]:(Do=n,n=i),(r=n!==i?e.substring(r,Do):n)!==i?(Ho=t,t=Fo(r)):(Do=t,t=i)):(Do=t,t=i),t}function Ar(){var t;return de.test(e.charAt(Do))?(t=e.charAt(Do),Do++):(t=i,0===Ro&&Jo(Mt)),t}function kr(){var t;return me.test(e.charAt(Do))?(t=e.charAt(Do),Do++):(t=i,0===Ro&&Jo(Ft)),t}function Sr(){var t,o,r,n;return Ro++,t=Do,123===e.charCodeAt(Do)?(o=d,Do++):(o=i,0===Ro&&Jo(Ae)),o!==i?(r=function(){var e,t;return e=Do,t=Pr(),Ho=e,e=t=No(t)}(),125===e.charCodeAt(Do)?(n=m,Do++):(n=i,0===Ro&&Jo(ke)),n!==i?t=r:(Do=t,t=i)):(Do=t,t=i),Ro--,t===i&&(o=i,0===Ro&&Jo(Nt)),t}function Pr(){var t,o,r,n,a,c;if(t=Do,o=[],r=[],n=Do,a=Do,Ro++,pe.test(e.charAt(Do))?(c=e.charAt(Do),Do++):(c=i,0===Ro&&Jo(Tt)),Ro--,c===i?a=void 0:(Do=a,a=i),a!==i&&(c=cr())!==i?n=a=[a,c]:(Do=n,n=i),n!==i)for(;n!==i;)r.push(n),n=Do,a=Do,Ro++,pe.test(e.charAt(Do))?(c=e.charAt(Do),Do++):(c=i,0===Ro&&Jo(Tt)),Ro--,c===i?a=void 0:(Do=a,a=i),a!==i&&(c=cr())!==i?n=a=[a,c]:(Do=n,n=i);else r=i;for(r===i&&(r=Do,123===e.charCodeAt(Do)?(n=d,Do++):(n=i,0===Ro&&Jo(Ae)),n!==i?(a=Pr(),125===e.charCodeAt(Do)?(c=m,Do++):(c=i,0===Ro&&Jo(ke)),c!==i?r=n=[n,a,c]:(Do=r,r=i)):(Do=r,r=i));r!==i;){if(o.push(r),r=[],n=Do,a=Do,Ro++,pe.test(e.charAt(Do))?(c=e.charAt(Do),Do++):(c=i,0===Ro&&Jo(Tt)),Ro--,c===i?a=void 0:(Do=a,a=i),a!==i&&(c=cr())!==i?n=a=[a,c]:(Do=n,n=i),n!==i)for(;n!==i;)r.push(n),n=Do,a=Do,Ro++,pe.test(e.charAt(Do))?(c=e.charAt(Do),Do++):(c=i,0===Ro&&Jo(Tt)),Ro--,c===i?a=void 0:(Do=a,a=i),a!==i&&(c=cr())!==i?n=a=[a,c]:(Do=n,n=i);else r=i;r===i&&(r=Do,123===e.charCodeAt(Do)?(n=d,Do++):(n=i,0===Ro&&Jo(Ae)),n!==i?(a=Pr(),125===e.charCodeAt(Do)?(c=m,Do++):(c=i,0===Ro&&Jo(ke)),c!==i?r=n=[n,a,c]:(Do=r,r=i)):(Do=r,r=i))}return e.substring(t,Do)}function Vr(){var e,t;for(e=[],(t=ir())===i&&(t=lr())===i&&(t=ur());t!==i;)e.push(t),(t=ir())===i&&(t=lr())===i&&(t=ur());return e}function Br(){var t,o,r,n;if(t=[],o=Do,r=Vr(),59===e.charCodeAt(Do)?(n=le,Do++):(n=i,0===Ro&&Jo(qt)),n!==i?o=r=[r,n]:(Do=o,o=i),o!==i)for(;o!==i;)t.push(o),o=Do,r=Vr(),59===e.charCodeAt(Do)?(n=le,Do++):(n=i,0===Ro&&Jo(qt)),n!==i?o=r=[r,n]:(Do=o,o=i);else t=i;return t===i&&(t=Do,o=function(){var e,t;for(e=[],(t=ir())===i&&(t=dr());t!==i;)e.push(t),(t=ir())===i&&(t=dr());return e}(),(r=mr())===i&&(r=null),(n=lr())!==i?t=o=[o,r,n]:(Do=t,t=i),t===i&&(t=Do,o=Vr(),r=function(){var t,o;return t=Do,Ro++,e.length>Do?(o=e.charAt(Do),Do++):(o=i,0===Ro&&Jo(Oe)),Ro--,o===i?t=void 0:(Do=t,t=i),t}(),r!==i?t=o=[o,r]:(Do=t,t=i))),t}const Mr=a.reservedWords||[];if((c=u())!==i&&Do===e.length)return c;throw c!==i&&Do<e.length&&Jo({type:"end"}),function(e,t,o){return new n(n.buildMessage(e,t),e,t,o)}(Io,jo<e.length?e.charAt(jo):null,jo<e.length?Wo(jo,jo+1):Wo(jo,jo))}}},54897:(e,t,o)=>{"use strict";const r=o(60343),n=o(89798),a=o(2491),c=o(67274),i={VERSION:o(66925),RESERVED_WORDS:["break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","finally","for","function","if","import","in","instanceof","new","return","super","switch","this","throw","try","typeof","var","void","while","with","null","true","false","enum","implements","interface","let","package","private","protected","public","static","yield","await","arguments","eval"],GrammarError:r,GrammarLocation:n,parser:c,compiler:a,generate(e,t){const o="plugins"in(t=void 0!==t?t:{})?t.plugins:[],r={parser:i.parser,passes:function(e){const t={};return Object.keys(e).forEach(o=>{t[o]=e[o].slice()}),t}(i.compiler.passes),reservedWords:i.RESERVED_WORDS.slice()};return o.forEach(e=>{e.use(r,t)}),i.compiler.compile(r.parser.parse(e,{grammarSource:t.grammarSource,reservedWords:r.reservedWords}),r.passes,t)}};e.exports=i},66925:e=>{"use strict";e.exports="3.0.2"},94931:(e,t,o)=>{"use strict";var r=o(51609),n=Symbol.for("react.element"),a=Symbol.for("react.fragment"),c=Object.prototype.hasOwnProperty,i=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,o){var r,a={},l=null,u=null;for(r in void 0!==o&&(l=""+o),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(u=t.ref),t)c.call(t,r)&&!s.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===a[r]&&(a[r]=t[r]);return{$$typeof:n,type:e,key:l,ref:u,props:a,_owner:i.current}}t.Fragment=a,t.jsx=l,t.jsxs=l},39793:(e,t,o)=>{"use strict";e.exports=o(94931)},55020:(e,t)=>{class o{constructor(){this._array=[],this._set=new Map}static fromArray(e,t){const r=new o;for(let o=0,n=e.length;o<n;o++)r.add(e[o],t);return r}size(){return this._set.size}add(e,t){const o=this.has(e),r=this._array.length;o&&!t||this._array.push(e),o||this._set.set(e,r)}has(e){return this._set.has(e)}indexOf(e){const t=this._set.get(e);if(t>=0)return t;throw new Error('"'+e+'" is not in the set.')}at(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)}toArray(){return this._array.slice()}}t.C=o},12453:(e,t,o)=>{const r=o(92733);t.encode=function(e){let t,o="",n=function(e){return e<0?1+(-e<<1):0+(e<<1)}(e);do{t=31&n,n>>>=5,n>0&&(t|=32),o+=r.encode(t)}while(n>0);return o}},92733:(e,t)=>{const o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");t.encode=function(e){if(0<=e&&e<o.length)return o[e];throw new TypeError("Must be between 0 and 63: "+e)}},48343:(e,t,o)=>{const r=o(12098);t.P=class{constructor(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}unsortedForEach(e,t){this._array.forEach(e,t)}add(e){!function(e,t){const o=e.generatedLine,n=t.generatedLine,a=e.generatedColumn,c=t.generatedColumn;return n>o||n==o&&c>=a||r.compareByGeneratedPositionsInflated(e,t)<=0}(this._last,e)?(this._sorted=!1,this._array.push(e)):(this._last=e,this._array.push(e))}toArray(){return this._sorted||(this._array.sort(r.compareByGeneratedPositionsInflated),this._sorted=!0),this._array}}},57416:(e,t,o)=>{const r=o(12453),n=o(12098),a=o(55020).C,c=o(48343).P;class i{constructor(e){e||(e={}),this._file=n.getArg(e,"file",null),this._sourceRoot=n.getArg(e,"sourceRoot",null),this._skipValidation=n.getArg(e,"skipValidation",!1),this._sources=new a,this._names=new a,this._mappings=new c,this._sourcesContents=null}static fromSourceMap(e){const t=e.sourceRoot,o=new i({file:e.file,sourceRoot:t});return e.eachMapping(function(e){const r={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(r.source=e.source,null!=t&&(r.source=n.relative(t,r.source)),r.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(r.name=e.name)),o.addMapping(r)}),e.sources.forEach(function(r){let a=r;null!=t&&(a=n.relative(t,r)),o._sources.has(a)||o._sources.add(a);const c=e.sourceContentFor(r);null!=c&&o.setSourceContent(r,c)}),o}addMapping(e){const t=n.getArg(e,"generated"),o=n.getArg(e,"original",null);let r=n.getArg(e,"source",null),a=n.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,o,r,a),null!=r&&(r=String(r),this._sources.has(r)||this._sources.add(r)),null!=a&&(a=String(a),this._names.has(a)||this._names.add(a)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:o&&o.line,originalColumn:o&&o.column,source:r,name:a})}setSourceContent(e,t){let o=e;null!=this._sourceRoot&&(o=n.relative(this._sourceRoot,o)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[n.toSetString(o)]=t):this._sourcesContents&&(delete this._sourcesContents[n.toSetString(o)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))}applySourceMap(e,t,o){let r=t;if(null==t){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');r=e.file}const c=this._sourceRoot;null!=c&&(r=n.relative(c,r));const i=this._mappings.toArray().length>0?new a:this._sources,s=new a;this._mappings.unsortedForEach(function(t){if(t.source===r&&null!=t.originalLine){const r=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=r.source&&(t.source=r.source,null!=o&&(t.source=n.join(o,t.source)),null!=c&&(t.source=n.relative(c,t.source)),t.originalLine=r.line,t.originalColumn=r.column,null!=r.name&&(t.name=r.name))}const a=t.source;null==a||i.has(a)||i.add(a);const l=t.name;null==l||s.has(l)||s.add(l)},this),this._sources=i,this._names=s,e.sources.forEach(function(t){const r=e.sourceContentFor(t);null!=r&&(null!=o&&(t=n.join(o,t)),null!=c&&(t=n.relative(c,t)),this.setSourceContent(t,r))},this)}_validateMapping(e,t,o,r){if(t&&"number"!=typeof t.line&&"number"!=typeof t.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!t&&!o&&!r);else if(!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&o))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:o,original:t,name:r}))}_serializeMappings(){let e,t,o,a,c=0,i=1,s=0,l=0,u=0,d=0,m="";const p=this._mappings.toArray();for(let h=0,_=p.length;h<_;h++){if(t=p[h],e="",t.generatedLine!==i)for(c=0;t.generatedLine!==i;)e+=";",i++;else if(h>0){if(!n.compareByGeneratedPositionsInflated(t,p[h-1]))continue;e+=","}e+=r.encode(t.generatedColumn-c),c=t.generatedColumn,null!=t.source&&(a=this._sources.indexOf(t.source),e+=r.encode(a-d),d=a,e+=r.encode(t.originalLine-1-l),l=t.originalLine-1,e+=r.encode(t.originalColumn-s),s=t.originalColumn,null!=t.name&&(o=this._names.indexOf(t.name),e+=r.encode(o-u),u=o)),m+=e}return m}_generateSourcesContent(e,t){return e.map(function(e){if(!this._sourcesContents)return null;null!=t&&(e=n.relative(t,e));const o=n.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,o)?this._sourcesContents[o]:null},this)}toJSON(){const e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e}toString(){return JSON.stringify(this.toJSON())}}i.prototype._version=3,t.SourceMapGenerator=i},93404:(e,t,o)=>{const r=o(57416).SourceMapGenerator,n=o(12098),a=/(\r?\n)/,c="$$$isSourceNode$$$";class i{constructor(e,t,o,r,n){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==o?null:o,this.name=null==n?null:n,this[c]=!0,null!=r&&this.add(r)}static fromStringWithSourceMap(e,t,o){const r=new i,c=e.split(a);let s=0;const l=function(){return e()+(e()||"");function e(){return s<c.length?c[s++]:void 0}};let u,d=1,m=0,p=null;return t.eachMapping(function(e){if(null!==p){if(!(d<e.generatedLine)){u=c[s]||"";const t=u.substr(0,e.generatedColumn-m);return c[s]=u.substr(e.generatedColumn-m),m=e.generatedColumn,h(p,t),void(p=e)}h(p,l()),d++,m=0}for(;d<e.generatedLine;)r.add(l()),d++;m<e.generatedColumn&&(u=c[s]||"",r.add(u.substr(0,e.generatedColumn)),c[s]=u.substr(e.generatedColumn),m=e.generatedColumn),p=e},this),s<c.length&&(p&&h(p,l()),r.add(c.splice(s).join(""))),t.sources.forEach(function(e){const a=t.sourceContentFor(e);null!=a&&(null!=o&&(e=n.join(o,e)),r.setSourceContent(e,a))}),r;function h(e,t){if(null===e||void 0===e.source)r.add(t);else{const a=o?n.join(o,e.source):e.source;r.add(new i(e.originalLine,e.originalColumn,a,t,e.name))}}}add(e){if(Array.isArray(e))e.forEach(function(e){this.add(e)},this);else{if(!e[c]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);e&&this.children.push(e)}return this}prepend(e){if(Array.isArray(e))for(let t=e.length-1;t>=0;t--)this.prepend(e[t]);else{if(!e[c]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this}walk(e){let t;for(let o=0,r=this.children.length;o<r;o++)t=this.children[o],t[c]?t.walk(e):""!==t&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})}join(e){let t,o;const r=this.children.length;if(r>0){for(t=[],o=0;o<r-1;o++)t.push(this.children[o]),t.push(e);t.push(this.children[o]),this.children=t}return this}replaceRight(e,t){const o=this.children[this.children.length-1];return o[c]?o.replaceRight(e,t):"string"==typeof o?this.children[this.children.length-1]=o.replace(e,t):this.children.push("".replace(e,t)),this}setSourceContent(e,t){this.sourceContents[n.toSetString(e)]=t}walkSourceContents(e){for(let t=0,o=this.children.length;t<o;t++)this.children[t][c]&&this.children[t].walkSourceContents(e);const t=Object.keys(this.sourceContents);for(let o=0,r=t.length;o<r;o++)e(n.fromSetString(t[o]),this.sourceContents[t[o]])}toString(){let e="";return this.walk(function(t){e+=t}),e}toStringWithSourceMap(e){const t={code:"",line:1,column:0},o=new r(e);let n=!1,a=null,c=null,i=null,s=null;return this.walk(function(e,r){t.code+=e,null!==r.source&&null!==r.line&&null!==r.column?(a===r.source&&c===r.line&&i===r.column&&s===r.name||o.addMapping({source:r.source,original:{line:r.line,column:r.column},generated:{line:t.line,column:t.column},name:r.name}),a=r.source,c=r.line,i=r.column,s=r.name,n=!0):n&&(o.addMapping({generated:{line:t.line,column:t.column}}),a=null,n=!1);for(let c=0,i=e.length;c<i;c++)10===e.charCodeAt(c)?(t.line++,t.column=0,c+1===i?(a=null,n=!1):n&&o.addMapping({source:r.source,original:{line:r.line,column:r.column},generated:{line:t.line,column:t.column},name:r.name})):t.column++}),this.walkSourceContents(function(e,t){o.setSourceContent(e,t)}),{code:t.code,map:o}}}t.SourceNode=i},12098:(e,t)=>{t.getArg=function(e,t,o){if(t in e)return e[t];if(3===arguments.length)return o;throw new Error('"'+t+'" is a required argument.')};const o=!("__proto__"in Object.create(null));function r(e){return e}function n(e){if(!e)return!1;const t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(let o=t-10;o>=0;o--)if(36!==e.charCodeAt(o))return!1;return!0}function a(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}t.toSetString=o?r:function(e){return n(e)?"$"+e:e},t.fromSetString=o?r:function(e){return n(e)?e.slice(1):e},t.compareByGeneratedPositionsInflated=function(e,t){let o=e.generatedLine-t.generatedLine;return 0!==o?o:(o=e.generatedColumn-t.generatedColumn,0!==o?o:(o=a(e.source,t.source),0!==o?o:(o=e.originalLine-t.originalLine,0!==o?o:(o=e.originalColumn-t.originalColumn,0!==o?o:a(e.name,t.name)))))};const c="http://host";function i(e){return t=>{const o=d(t),r=l(t),n=new URL(t,r);e(n);const a=n.toString();return"absolute"===o?a:"scheme-relative"===o?a.slice(5):"path-absolute"===o?a.slice(11):m(r,a)}}function s(e,t){return new URL(e,t).toString()}function l(e){const t=e.split("..").length-1,o=function(e,t){let o=0;for(;;){const e="p"+o++;if(-1===t.indexOf(e))return e}}(0,e);let r=`${c}/`;for(let e=0;e<t;e++)r+=`${o}/`;return r}const u=/^[A-Za-z0-9\+\-\.]+:/;function d(e){return"/"===e[0]?"/"===e[1]?"scheme-relative":"path-absolute":u.test(e)?"absolute":"path-relative"}function m(e,t){"string"==typeof e&&(e=new URL(e)),"string"==typeof t&&(t=new URL(t));const o=t.pathname.split("/"),r=e.pathname.split("/");for(r.length>0&&!r[r.length-1]&&r.pop();o.length>0&&r.length>0&&o[0]===r[0];)o.shift(),r.shift();return r.map(()=>"..").concat(o).join("/")+t.search+t.hash}const p=i(e=>{e.pathname=e.pathname.replace(/\/?$/,"/")}),h=i(e=>{});t.normalize=h,t.join=function(e,t){const o=d(t),r=d(e);if(e=p(e),"absolute"===o)return s(t,void 0);if("absolute"===r)return s(t,e);if("scheme-relative"===o)return h(t);if("scheme-relative"===r)return s(t,s(e,c)).slice(5);if("path-absolute"===o)return h(t);if("path-absolute"===r)return s(t,s(e,c)).slice(11);const n=l(t+e);return m(n,s(t,s(e,n)))},t.relative=function(e,t){const o=function(e,t){if(d(e)!==d(t))return null;const o=l(e+t),r=new URL(e,o),n=new URL(t,o);try{new URL("",n.toString())}catch(e){return null}return n.protocol!==r.protocol||n.user!==r.user||n.password!==r.password||n.hostname!==r.hostname||n.port!==r.port?null:m(r,n)}(e,t);return"string"==typeof o?o:h(t)}},3640:(e,t,o)=>{t.SourceMapGenerator=o(57416).SourceMapGenerator,t.SourceNode=o(93404).SourceNode},51609:e=>{"use strict";e.exports=window.React},96702:e=>{"use strict";e.exports=window.wc.blockTemplates},98846:e=>{"use strict";e.exports=window.wc.components},94111:e=>{"use strict";e.exports=window.wc.currency},27752:e=>{"use strict";e.exports=window.wc.customerEffortScore},40314:e=>{"use strict";e.exports=window.wc.data},96476:e=>{"use strict";e.exports=window.wc.navigation},42435:e=>{"use strict";e.exports=window.wc.sanitize},83306:e=>{"use strict";e.exports=window.wc.tracks},15703:e=>{"use strict";e.exports=window.wc.wcSettings},1455:e=>{"use strict";e.exports=window.wp.apiFetch},94715:e=>{"use strict";e.exports=window.wp.blockEditor},74997:e=>{"use strict";e.exports=window.wp.blocks},56427:e=>{"use strict";e.exports=window.wp.components},29491:e=>{"use strict";e.exports=window.wp.compose},3582:e=>{"use strict";e.exports=window.wp.coreData},47143:e=>{"use strict";e.exports=window.wp.data},38443:e=>{"use strict";e.exports=window.wp.date},64040:e=>{"use strict";e.exports=window.wp.deprecated},86087:e=>{"use strict";e.exports=window.wp.element},52619:e=>{"use strict";e.exports=window.wp.hooks},27723:e=>{"use strict";e.exports=window.wp.i18n},53031:e=>{"use strict";e.exports=window.wp.keyboardShortcuts},48558:e=>{"use strict";e.exports=window.wp.keycodes},16480:e=>{"use strict";e.exports=window.wp.mediaUtils},92279:e=>{"use strict";e.exports=window.wp.plugins},41233:e=>{"use strict";e.exports=window.wp.preferences},5573:e=>{"use strict";e.exports=window.wp.primitives},93832:e=>{"use strict";e.exports=window.wp.url},26873:e=>{"use strict";e.exports=window.wp.viewport},4921:(e,t,o)=>{"use strict";function r(e){var t,o,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(o=r(e[t]))&&(n&&(n+=" "),n+=o)}else for(o in e)e[o]&&(n&&(n+=" "),n+=o);return n}o.d(t,{A:()=>n});const n=function(){for(var e,t,o=0,n="",a=arguments.length;o<a;o++)(e=arguments[o])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}}},__webpack_module_cache__={},leafPrototypes,getProto,inProgress,dataWebpackPrefix;function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var o=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](o,o.exports,__webpack_require__),o.exports}__webpack_require__.m=__webpack_modules__,__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},getProto=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,__webpack_require__.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var o=Object.create(null);__webpack_require__.r(o);var r={};leafPrototypes=leafPrototypes||[null,getProto({}),getProto([]),getProto(getProto)];for(var n=2&t&&e;"object"==typeof n&&!~leafPrototypes.indexOf(n);n=getProto(n))Object.getOwnPropertyNames(n).forEach(t=>r[t]=()=>e[t]);return r.default=()=>e,__webpack_require__.d(o,r),o},__webpack_require__.d=(e,t)=>{for(var o in t)__webpack_require__.o(t,o)&&!__webpack_require__.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},__webpack_require__.f={},__webpack_require__.e=e=>Promise.all(Object.keys(__webpack_require__.f).reduce((t,o)=>(__webpack_require__.f[o](e,t),t),[])),__webpack_require__.u=e=>"chunks/"+e+".js?ver="+{3381:"0a9a0da748006a40f1fa",4277:"b46d72eb246802a0f2fd",6407:"eff3bd787a909ac59a28"}[e],__webpack_require__.miniCssF=e=>{},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),inProgress={},dataWebpackPrefix="__wcAdmin_webpackJsonp:",__webpack_require__.l=(e,t,o,r)=>{if(inProgress[e])inProgress[e].push(t);else{var n,a;if(void 0!==o)for(var c=document.getElementsByTagName("script"),i=0;i<c.length;i++){var s=c[i];if(s.getAttribute("src")==e||s.getAttribute("data-webpack")==dataWebpackPrefix+o){n=s;break}}n||(a=!0,(n=document.createElement("script")).charset="utf-8",n.timeout=120,__webpack_require__.nc&&n.setAttribute("nonce",__webpack_require__.nc),n.setAttribute("data-webpack",dataWebpackPrefix+o),n.src=e),inProgress[e]=[t];var l=(t,o)=>{n.onerror=n.onload=null,clearTimeout(u);var r=inProgress[e];if(delete inProgress[e],n.parentNode&&n.parentNode.removeChild(n),r&&r.forEach(e=>e(o)),t)return t(o)},u=setTimeout(l.bind(null,void 0,{type:"timeout",target:n}),12e4);n.onerror=l.bind(null,n.onerror),n.onload=l.bind(null,n.onload),a&&document.head.appendChild(n)}},__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;__webpack_require__.g.importScripts&&(e=__webpack_require__.g.location+"");var t=__webpack_require__.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var o=t.getElementsByTagName("script");if(o.length)for(var r=o.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=o[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),__webpack_require__.p=e+"../"})(),(()=>{var e={6418:0};__webpack_require__.f.j=(t,o)=>{var r=__webpack_require__.o(e,t)?e[t]:void 0;if(0!==r)if(r)o.push(r[2]);else{var n=new Promise((o,n)=>r=e[t]=[o,n]);o.push(r[2]=n);var a=__webpack_require__.p+__webpack_require__.u(t),c=new Error;__webpack_require__.l(a,o=>{if(__webpack_require__.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var n=o&&("load"===o.type?"missing":o.type),a=o&&o.target&&o.target.src;c.message="Loading chunk "+t+" failed.\n("+n+": "+a+")",c.name="ChunkLoadError",c.type=n,c.request=a,r[1](c)}},"chunk-"+t,t)}};var t=(t,o)=>{var r,n,[a,c,i]=o,s=0;if(a.some(t=>0!==e[t])){for(r in c)__webpack_require__.o(c,r)&&(__webpack_require__.m[r]=c[r]);i&&i(__webpack_require__)}for(t&&t(o);s<a.length;s++)n=a[s],__webpack_require__.o(e,n)&&e[n]&&e[n][0](),e[n]=0},o=globalThis.webpackChunk_wcAdmin_webpackJsonp=globalThis.webpackChunk_wcAdmin_webpackJsonp||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})();var __webpack_exports__={};(()=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{AUTO_DRAFT_NAME:()=>s.u6,DETAILS_SECTION_ID:()=>c.dB,PRODUCT_STATUS_LABELS:()=>s.BH,PostTypeContext:()=>h.O,TAB_GENERAL_ID:()=>c.hq,TIMEZONELESS_FORMAT:()=>s.T4,TRACKS_SOURCE:()=>c.bG,__experimentalClearSelectedBlockOnBlur:()=>l.sz,__experimentalEditorLoadingContext:()=>p.z,__experimentalUseCurrencyInputProps:()=>l.HN,__experimentalUseCustomFields:()=>l.kG,__experimentalUseFeedbackBar:()=>l.S8,__experimentalUseMetaboxHiddenProduct:()=>l.JA,__experimentalUseProductEdits:()=>l._8,__experimentalUseProductEntityProp:()=>l.TJ,__experimentalUseProductHelper:()=>l.BV,__experimentalUseProductManager:()=>l.qb,__experimentalUseProductMetadata:()=>l.mn,__experimentalUseProductScheduled:()=>l.uh,__experimentalUseProductTemplate:()=>l.BK,__experimentalUseVariationSwitcher:()=>l.K9,__experimentalUseVariationsOrder:()=>l._1,createOrderedChildren:()=>s.vX,deferSelectInFocus:()=>s.mw,formatCurrencyDisplayValue:()=>s.Oh,formatScheduleDatetime:()=>s.Uq,getCheckboxTracks:()=>s.eR,getCurrencySymbolProps:()=>s.W3,getDerivedProductType:()=>s.b4,getEmptyStateSequentialNames:()=>s.Es,getFormattedDateTime:()=>s.Ib,getFullScheduleLabel:()=>s.J$,getHeaderTitle:()=>s.k1,getPermalinkParts:()=>s.QY,getProductStatus:()=>s.G8,getProductStockStatus:()=>s.Wj,getProductStockStatusClass:()=>s.Ac,getProductTitle:()=>s.A5,getProductVariationTitle:()=>s.T8,getSiteDatetime:()=>s.H7,getSiteSettingsTimezoneAbbreviation:()=>s.yL,getTruncatedProductVariationTitle:()=>s.Nt,handleConfirm:()=>s.L3,handlePrompt:()=>s.f1,hasAttributesUsedForVariations:()=>s.S_,initBlock:()=>s.SC,isSameDay:()=>s.ro,isSiteSettingsTime12HourFormatted:()=>s.$1,isSiteSettingsTimezoneSameAsDateTimezone:()=>s.XF,isValidEmail:()=>s.B9,preventLeavingProductForm:()=>s.Wc,productApiFetchMiddleware:()=>s.w5,productEditorHeaderApiFetchMiddleware:()=>s.cP,registerProductEditorBlockType:()=>s.NH,sift:()=>s.p$,sortFillsByOrder:()=>s.CW,truncate:()=>s.xv,useEvaluationContext:()=>s.BO,useValidation:()=>u.$,useValidations:()=>d.G,wooProductEditorUiStore:()=>o.p});var e=__webpack_require__(64040),t=__webpack_require__.n(e),o=__webpack_require__(14604),r=__webpack_require__(54756),n=__webpack_require__(87202),a={};for(const e in n)["default","DETAILS_SECTION_ID","PostTypeContext","TAB_GENERAL_ID","TRACKS_SOURCE","__experimentalEditorLoadingContext","useValidation","useValidations"].indexOf(e)<0&&(a[e]=()=>n[e]);__webpack_require__.d(__webpack_exports__,a);var c=__webpack_require__(8088),i=__webpack_require__(46016);a={};for(const e in i)["default","DETAILS_SECTION_ID","PostTypeContext","TAB_GENERAL_ID","TRACKS_SOURCE","__experimentalEditorLoadingContext","useValidation","useValidations","__experimentalAddProductsModal","__experimentalAttributeControl","__experimentalAttributes","__experimentalBlockFill","__experimentalBlockIcon","__experimentalBlockSlot","__experimentalButtonWithDropdownMenu","__experimentalCheckboxControl","__experimentalComboboxControl","__experimentalCustomFields","__experimentalEditor","__experimentalFormattedPrice","__experimentalInitBlocks","__experimentalLabel","__experimentalManageDownloadLimitsModal","__experimentalModalBlockEditorPluginMoreMenuItem","__experimentalModalBlockEditorPluginSidebar","__experimentalNotice","__experimentalNumberControl","__experimentalPluginHeaderItemModal","__experimentalPluginHeaderItemPopover","__experimentalProductFieldSection","__experimentalProductImage","__experimentalProductList","__experimentalProductMVPFeedbackModal","__experimentalProductMVPFeedbackModalContainer","__experimentalProductSectionLayout","__experimentalProductSelect","__experimentalSchedulePublishModal","__experimentalSectionActions","__experimentalShippingDimensionsImage","__experimentalTextControl","__experimentalVariationQuickUpdateMenuItem","__experimentalVariationSwitcherFooter","__experimentalWooProductFieldItem","__experimentalWooProductMoreMenuItem","__experimentalWooProductSectionItem","__experimentalWooProductTabItem","AddNewShippingClassModal"].indexOf(e)<0&&(a[e]=()=>i[e]);__webpack_require__.d(__webpack_exports__,a);var s=__webpack_require__(8537),l=__webpack_require__(74916),u=__webpack_require__(25733),d=__webpack_require__(68752),m=__webpack_require__(6311);a={};for(const e in m)["default","DETAILS_SECTION_ID","PostTypeContext","TAB_GENERAL_ID","TRACKS_SOURCE","__experimentalEditorLoadingContext","useValidation","useValidations","__experimentalAddProductsModal","__experimentalAttributeControl","__experimentalAttributes","__experimentalBlockFill","__experimentalBlockIcon","__experimentalBlockSlot","__experimentalButtonWithDropdownMenu","__experimentalCheckboxControl","__experimentalComboboxControl","__experimentalCustomFields","__experimentalEditor","__experimentalFormattedPrice","__experimentalInitBlocks","__experimentalLabel","__experimentalManageDownloadLimitsModal","__experimentalModalBlockEditorPluginMoreMenuItem","__experimentalModalBlockEditorPluginSidebar","__experimentalNotice","__experimentalNumberControl","__experimentalPluginHeaderItemModal","__experimentalPluginHeaderItemPopover","__experimentalProductFieldSection","__experimentalProductImage","__experimentalProductList","__experimentalProductMVPFeedbackModal","__experimentalProductMVPFeedbackModalContainer","__experimentalProductSectionLayout","__experimentalProductSelect","__experimentalSchedulePublishModal","__experimentalSectionActions","__experimentalShippingDimensionsImage","__experimentalTextControl","__experimentalVariationQuickUpdateMenuItem","__experimentalVariationSwitcherFooter","__experimentalWooProductFieldItem","__experimentalWooProductMoreMenuItem","__experimentalWooProductSectionItem","__experimentalWooProductTabItem","AddNewShippingClassModal","AUTO_DRAFT_NAME","PRODUCT_STATUS_LABELS","TIMEZONELESS_FORMAT","createOrderedChildren","deferSelectInFocus","formatCurrencyDisplayValue","formatScheduleDatetime","getCheckboxTracks","getCurrencySymbolProps","getDerivedProductType","getEmptyStateSequentialNames","getFormattedDateTime","getFullScheduleLabel","getHeaderTitle","getPermalinkParts","getProductStatus","getProductStockStatus","getProductStockStatusClass","getProductTitle","getProductVariationTitle","getSiteDatetime","getSiteSettingsTimezoneAbbreviation","getTruncatedProductVariationTitle","handleConfirm","handlePrompt","hasAttributesUsedForVariations","initBlock","isSameDay","isSiteSettingsTime12HourFormatted","isSiteSettingsTimezoneSameAsDateTimezone","isValidEmail","preventLeavingProductForm","productApiFetchMiddleware","productEditorHeaderApiFetchMiddleware","registerProductEditorBlockType","sift","sortFillsByOrder","truncate","useEvaluationContext","wooProductEditorUiStore","__experimentalClearSelectedBlockOnBlur","__experimentalUseCurrencyInputProps","__experimentalUseCustomFields","__experimentalUseFeedbackBar","__experimentalUseMetaboxHiddenProduct","__experimentalUseProductEdits","__experimentalUseProductEntityProp","__experimentalUseProductHelper","__experimentalUseProductManager","__experimentalUseProductMetadata","__experimentalUseProductScheduled","__experimentalUseProductTemplate","__experimentalUseVariationSwitcher","__experimentalUseVariationsOrder"].indexOf(e)<0&&(a[e]=()=>m[e]);__webpack_require__.d(__webpack_exports__,a);var p=__webpack_require__(15361),h=__webpack_require__(16958);t()("@woocommerce/product-editor",{version:"10.9.0",plugin:"WooCommerce",hint:"The new product editor and its extension APIs are deprecated and will be removed in WooCommerce 11.0."}),(0,o.A)(),(0,r.A)()})(),(window.wc=window.wc||{}).productEditor=__webpack_exports__})();