@emailmaker/emailmaker 1.1.102 → 1.1.103
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/emailmaker-core.3529b1de.js +859 -0
- package/emailmaker-esm.js +6 -6
- package/{emailmaker-po.57f6a0df.js → emailmaker-po.3529b1de.js} +1 -1
- package/emailmaker.d.ts +31 -6
- package/emailmaker.js +6 -6
- package/iframe/.vite/manifest.json +4 -4
- package/iframe/{iframe-eblock.57f6a0df.html → iframe-eblock.3529b1de.html} +2 -2
- package/iframe/{iframe.57f6a0df.html → iframe.3529b1de.html} +2 -2
- package/iframe/js/{discussHandlers.D8Llk-NI.js → discussHandlers.BrvInbT7.js} +44 -44
- package/iframe/js/{iframe-eblock.body.57f6a0df.js → iframe-eblock.body.3529b1de.js} +1 -1
- package/iframe/js/iframe-eblock.js +2 -2
- package/iframe/js/{iframe.body.57f6a0df.js → iframe.body.3529b1de.js} +3 -3
- package/iframe/js/iframe.js +2 -2
- package/package.json +1 -1
- package/runtime/react/index.js +1 -1
- package/static/core/{f6b48cfa.js → 3b315cf0.js} +1 -1
- package/static/core/{66d074ec.js → 48387a41.js} +1 -1
- package/static/core/{3be1d4c4.js → 5de7475e.js} +1 -1
- package/static/core/{2c6bfa7b.js → 5eaa42ac.js} +1 -1
- package/static/core/{dff5a620.js → 66be8204.js} +1 -1
- package/static/core/{cf40f907.js → 682a8e2c.js} +1 -1
- package/static/core/{8e72f761.js → 6dd152e5.js} +2 -2
- package/static/core/{7a8692a1.js → 6efc4a78.js} +1 -1
- package/static/core/{aa164b27.js → 71d7c710.js} +1 -1
- package/static/core/{e4ed0895.js → 73291b7c.js} +1 -1
- package/static/core/{26638dd2.js → 7fd8d843.js} +1 -1
- package/static/core/{72c8e9fa.js → 82f5152d.js} +1 -1
- package/static/core/{e629b309.js → 8fe408ef.js} +1 -1
- package/static/core/{fa5574e7.js → 90715222.js} +13 -13
- package/static/core/{3dc80546.js → 91e9b542.js} +1 -1
- package/static/core/{52e8f855.js → 9909de51.js} +1 -1
- package/static/core/{5c35bbb7.js → 9ca4cda3.js} +1 -1
- package/static/core/{b95851bb.js → a4d1fdc5.js} +1 -1
- package/static/core/{8abe35b5.js → b3d5871e.js} +1 -1
- package/static/core/{a43f18b7.js → b99c36c9.js} +1 -1
- package/static/core/{8c2781f1.js → c1460335.js} +1 -1
- package/static/core/{bf236eca.js → c9a013a6.js} +2 -2
- package/static/core/{c028417b.js → d4619860.js} +1 -1
- package/static/core/{cd8498d6.js → e420456c.js} +1 -1
- package/static/core/{18bab88a.js → fbd1b42a.js} +1 -1
- package/static/umd-runtime/{runtime.BEfQbXPe.js → runtime.D9PiY8Jx.js} +1 -1
- package/vendor/@emailmaker/ui-kit/package.json +1 -1
- package/emailmaker-core.57f6a0df.js +0 -859
|
@@ -1 +1 @@
|
|
|
1
|
-
__emailmaker__.define("static/core/
|
|
1
|
+
__emailmaker__.define("static/core/91e9b542.js",["require","exports","module","static/core/5dc34752.js","static/core/3acdfe13.js"],function(n,d,S){const x=n("./5dc34752.js"),u=n("./3acdfe13.js");var p={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"};function o(t){"@babel/helpers - typeof";return o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(t)}function i(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);e&&(l=l.filter(function(P){return Object.getOwnPropertyDescriptor(t,P).enumerable})),r.push.apply(r,l)}return r}function c(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?i(Object(r),!0).forEach(function(l){b(t,l,r[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(l){Object.defineProperty(t,l,Object.getOwnPropertyDescriptor(r,l))})}return t}function b(t,e,r){return e=f(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function f(t){var e=g(t,"string");return o(e)=="symbol"?e:String(e)}function g(t,e){if(o(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var l=r.call(t,e||"default");if(o(l)!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var h=c(c({},u.commonLocale),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"}),s={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},m={lang:{placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"],...h},timePickerLocale:{...s}},y=m,a="${label} is not a valid ${type}",v={locale:"en",Pagination:p,DatePicker:m,TimePicker:s,Calendar:y,global:{placeholder:"Please select",close:"Close",sortable:"sortable",show:"Show",hide:"Hide"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckAll:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:a,method:a,array:a,object:a,number:a,date:a,boolean:a,integer:a,float:a,regexp:a,email:a,url:a,hex:a},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};d.default=v});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
__emailmaker__.define("static/core/
|
|
1
|
+
__emailmaker__.define("static/core/9909de51.js",["require","exports","module","static/core/3acdfe13.js"],function(u,t,s){const r=u("./3acdfe13.js");var n="https://cdn.ampproject.org/v0",i=`${n}.js`,c=`script[src='${i}']`;function a(e){return r.isElement(e)&&(e.tagName.startsWith("AMP")||e.tagName==="FORM"||e.tagName==="TEMPLATE"&&e.getAttribute("type")?.toLowerCase()==="amp-mustache")}function m(e){return r.isScriptElement(e)&&e.src?.startsWith("https://cdn.ampproject.org/v0")}Object.defineProperty(t,"AMP_BASE_SCRIPT",{enumerable:!0,get:function(){return i}}),Object.defineProperty(t,"AMP_BASE_SELECTOR",{enumerable:!0,get:function(){return c}}),Object.defineProperty(t,"AMP_SCRIPTS_PATH",{enumerable:!0,get:function(){return n}}),Object.defineProperty(t,"isAmpElement",{enumerable:!0,get:function(){return a}}),Object.defineProperty(t,"isAmpScript",{enumerable:!0,get:function(){return m}})});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
(function(){try{if(typeof document<"u"){var r=".blocks-app .image-editor-modal .ant-modal-container{flex-direction:column;min-height:100vh;display:flex;border-radius:0!important}.blocks-app .image-editor-modal .ant-modal-body{border-bottom:1px solid #d9d9d9;flex-grow:1;display:flex}.blocks-app .image-editor-modal .ant-modal-body #filerobot-editor{flex-grow:1;height:calc(100vh - 70px);min-height:calc(100vh - 70px);overflow:hidden}.blocks-app .image-editor-modal .pi .text-on-primary{background:var(--em-colorPrimary);border-color:var(--em-colorPrimary)}.blocks-app .image-editor-modal .pi .text-on-primary:hover{background:var(--em-colorPrimaryHover);border-color:var(--em-colorPrimaryHover)}.blocks-app .image-editor-modal .pi .text-on-primary.rounded-full{border-radius:calc(var(--em-borderRadius) * 1px)}.blocks-app .image-editor-modal .pi .shadow-xl{box-shadow:none}.blocks-app .image-editor-modal .w-\\[4ch\\].text-sm.text-center{width:5ch}.blocks-app .image-editor-modal .pi .border-white{border-color:var(--em-colorPrimary)}.blocks-app .image-editor-modal .pi .bg-white\\/50{background-color:var(--em-colorPrimary)}.blocks-app .image-editor-modal .pi .text-on-primary{color:var(--em-colorWhite)}",e=window.__emailmaker_styles__||(window.__emailmaker_styles__={sheets:{},order:[]}),i=r;if(!e.sheets[i]){var t=null;try{typeof CSSStyleSheet=="function"&&"replaceSync"in CSSStyleSheet.prototype&&(t=new CSSStyleSheet,t.replaceSync(r))}catch{t=null}if(t){if(!e.host||!e.host.isConnected||!e.host.sheet){var o=document.createElement("style");o.setAttribute("data-emailmaker","true"),document.head.appendChild(o),e.host=o}for(var d=e.host.sheet,l=0;l<t.cssRules.length;l++)try{d.insertRule(t.cssRules[l].cssText,d.cssRules.length)}catch{}(e.texts||(e.texts=[])).push(r),(e.listeners||[]).forEach(function(a){try{a(r)}catch{}})}else{var o=document.createElement("style");o.setAttribute("data-emailmaker","true"),o.appendChild(document.createTextNode(r)),document.head.appendChild(o)}e.sheets[i]=!0,e.order.push(i)}}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
|
|
2
|
-
__emailmaker__.define("static/core/
|
|
2
|
+
__emailmaker__.define("static/core/9ca4cda3.js",["require","exports","module","static/core/5dc34752.js","static/core/a68428d8.js","static/core/3acdfe13.js","static/core/3b315cf0.js","static/core/c9a013a6.js","static/core/82f5152d.js","static/core/61378c9e.js","react","react/jsx-runtime","__delivery__/libs"],function(r,N,Z){const F=r("./5dc34752.js"),E=r("./a68428d8.js"),e=r("./3acdfe13.js"),I=r("./3b315cf0.js");r("./c9a013a6.js");const d=r("./82f5152d.js"),U=r("./61378c9e.js");let s=r("react");s=F.__toESM(s);let c=r("react/jsx-runtime"),_=r("__delivery__/libs");var L={width:"100%",height:"100%"},P=[d.TABS_IDS.ADJUST,d.TABS_IDS.ANNOTATE,d.TABS_IDS.RESIZE],$={presetsItems:I.C};function z(n,l){if(n==="json")return new Blob([l],{type:"application/json"});if(n==="svg")return new Blob([l],{type:"image/svg+xml"});const f=`image/${n}`,m=l.replace(/data:image\/([a-z]*)?;base64,/,"");return U.base64ToBlob(m,f)}var Y=({currentImageLink:n,prefetchedBlob:l,resolveImageBlob:f,onSave:m,uploadImageResultIsLoading:J})=>{const b=e.useCookieManager(),[v,S]=(0,s.useState)(),[R,T]=(0,s.useState)(),{__:D}=e.useI18n();let g=e.useDispatch();const w=e.useStore(),y=e.useAppConfig(),k=e.useEditorLocale(),G=e.useSelector(e.selectSecondModal),O=e.useProjectData();(0,s.useMemo)(()=>{if(!y?.icons)return;const o={};for(const[i,t]of Object.entries(y.icons))typeof t=="string"&&(o[i]=e.sanitizeHtml(t));return Object.keys(o).length>0?o:void 0},[y?.icons]);const[H,x]=(0,s.useState)(!1),h=(0,s.useRef)(),A=(0,s.useRef)(null),j=d.useCornerRadiusSync(A),B=e.useEventEmitter(E.events.FILE_PROXY_EVENT_ID);(0,s.useEffect)(()=>{let o=!1;return(async()=>{const t=n;if(!t&&!l)return;let a=l;if(!a&&t)try{typeof f=="function"?a=await f(t):a=await(await fetch(t)).blob()}catch{if(o)return;if(a=await B.fire({url:t,project:O}).filter(u=>u instanceof Blob)[0],!a){const u=b.get(e.APP_COOKIES.em_token)||await e.di.getContainer(w)?.getInstance(E.TOKEN_ID);a=await(await fetch(`https://app.emailmaker.ru/api/wp-json/cors-proxy/v1/get?url=${encodeURIComponent(t)}`,{headers:{authorization:`Bearer ${u}`}})).blob()}}if(o||!a)return;const p=new FileReader;p.onload=()=>{if(o)return;const u=p.result;typeof u=="string"&&(S(u),T(a.type))},p.onerror=()=>{},p.readAsDataURL(a)})().catch(t=>{}),()=>{o=!0}},[n,l,f,b,B,O,w]);const K=(0,s.useCallback)(()=>{S(null),T(null),x(!1),g(e.closeSecondModal()),g(e.closeModal$1(e.MODALS.UPLOAD_IMAGE_MODAL))},[g]),M=(0,s.useRef)();M.current=async function(o,i,t){try{const a=z(t,o);m&&await m(new File([a],i,{lastModified:Date.now(),type:a.type}))}catch(a){throw a}};const V=(0,s.useCallback)(o=>{x(!!o)},[]),W=(0,s.useCallback)(()=>{if(!h.current)return;const o=n?.split("/").pop().split(".")[0]||"image",i=j.isRounded?"png":R?.split("/")[1]||"png";try{const{imageData:t}=h.current({name:o,extension:i},void 0,!1),a=t.imageBase64??(t.imageCanvas?t.imageCanvas.toDataURL(`image/${i}`):void 0);if(!a)throw new Error("FIE не вернул ни imageBase64, ни imageCanvas");M.current(a,o,i)}catch{}},[j.isRounded,n,R]),C=k?k.replace("_","-"):"ru-RU",X=(0,s.useMemo)(()=>I._(C),[C]);return(0,c.jsxs)(_.ui_kit$Modal,{afterOpenChange:V,width:"100%",style:{maxWidth:"100%",minHeight:"100vh"},className:"image-editor-modal",centered:!0,closable:!1,zIndex:1100,mask:!1,open:G,footer:[(0,c.jsx)(_.ui_kit$Button,{className:"em-analytics__profile-cancel",onClick:K,children:D("Cancel")},"Cancel"),(0,c.jsx)(_.ui_kit$Button,{className:"em-analytics__profile-updafilerobotte",id:"save",type:"primary",onClick:W,children:D("Update")},"Ok")],children:[J&&(0,c.jsx)("div",{style:{position:"absolute",height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"center",background:e.emCssVar("colorBgLayout"),zIndex:10,opacity:.7},children:(0,c.jsx)(_.ui_kit$Spin,{size:"large"})}),(0,c.jsx)("div",{id:"filerobot-editor",ref:A,style:L,children:H&&v&&(0,c.jsx)(d.AssemblyPoint_default,{source:v,useBackendTranslations:!1,language:C.split("-")[0],translations:X,tabsIds:P,defaultTabId:d.TABS_IDS.ADJUST,Crop:$,...j.editorConfig,avoidChangesNotSavedAlertOnLeave:!0,removeSaveButton:!0,getCurrentImgDataFnRef:h})})]})};N.default=Y});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
__emailmaker__.define("static/core/
|
|
1
|
+
__emailmaker__.define("static/core/a4d1fdc5.js",["require","exports","module","static/core/5dc34752.js","static/core/3acdfe13.js"],function(n,p,P){const x=n("./5dc34752.js"),u=n("./3acdfe13.js");var d={items_per_page:"/ сторінці",jump_to:"Перейти",jump_to_confirm:"підтвердити",page:"",prev_page:"Попередня сторінка",next_page:"Наступна сторінка",prev_5:"Попередні 5 сторінок",next_5:"Наступні 5 сторінок",prev_3:"Попередні 3 сторінки",next_3:"Наступні 3 сторінки",page_size:"Page Size"};function o(r){"@babel/helpers - typeof";return o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(r)}function i(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(r);e&&(a=a.filter(function(v){return Object.getOwnPropertyDescriptor(r,v).enumerable})),t.push.apply(t,a)}return t}function c(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?i(Object(t),!0).forEach(function(a){b(r,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):i(Object(t)).forEach(function(a){Object.defineProperty(r,a,Object.getOwnPropertyDescriptor(t,a))})}return r}function b(r,e,t){return e=f(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function f(r){var e=y(r,"string");return o(e)=="symbol"?e:String(e)}function y(r,e){if(o(r)!="object"||!r)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var a=t.call(r,e||"default");if(o(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}var g=c(c({},u.commonLocale),{},{locale:"uk_UA",today:"Сьогодні",now:"Зараз",backToToday:"Поточна дата",ok:"OK",clear:"Очистити",week:"Тиждень",month:"Місяць",year:"Рік",timeSelect:"Обрати час",dateSelect:"Обрати дату",monthSelect:"Обрати місяць",yearSelect:"Обрати рік",decadeSelect:"Обрати десятиріччя",previousMonth:"Попередній місяць (PageUp)",nextMonth:"Наступний місяць (PageDown)",previousYear:"Попередній рік (Control + left)",nextYear:"Наступний рік (Control + right)",previousDecade:"Попереднє десятиріччя",nextDecade:"Наступне десятиріччя",previousCentury:"Попереднє століття",nextCentury:"Наступне століття"}),s={placeholder:"Оберіть час",rangePlaceholder:["Початковий час","Кінцевий час"]},m={lang:{placeholder:"Оберіть дату",yearPlaceholder:"Оберіть рік",quarterPlaceholder:"Оберіть квартал",monthPlaceholder:"Оберіть місяць",weekPlaceholder:"Оберіть тиждень",rangePlaceholder:["Початкова дата","Кінцева дата"],rangeYearPlaceholder:["Початковий рік","Кінцевий рік"],rangeMonthPlaceholder:["Початковий місяць","Кінцевий місяць"],rangeWeekPlaceholder:["Початковий тиждень","Кінцевий тиждень"],shortWeekDays:["Нд","Пн","Вт","Ср","Чт","Пт","Сб"],shortMonths:["Січ","Лют","Бер","Кві","Тра","Чер","Лип","Сер","Вер","Жов","Лис","Гру"],...g},timePickerLocale:{...s}},h=m,l="${label} не є типом ${type}",$={locale:"uk",Pagination:d,DatePicker:m,TimePicker:s,Calendar:h,global:{placeholder:"Будь ласка, оберіть",close:"Закрити",show:"Показати",hide:"Приховати"},Table:{filterTitle:"Фільтрувати",filterConfirm:"OK",filterReset:"Скинути",filterEmptyText:"Фільтри відсутні",filterCheckAll:"Обрати всі",filterSearchPlaceholder:"Пошук у фільтрах",emptyText:"Даних немає",selectAll:"Обрати всі на сторінці",selectInvert:"Інвертувати вибір",selectNone:"Очистити вибір",selectionAll:"Обрати всі",sortTitle:"Сортувати",expand:"Розгорнути рядок",collapse:"Згорнути рядок",triggerDesc:"Сортувати за спаданням",triggerAsc:"Сортувати за зростанням",cancelSort:"Відмінити сортування"},Tour:{Next:"Далі",Previous:"Назад",Finish:"Завершити"},Modal:{okText:"Гаразд",cancelText:"Скасувати",justOkText:"Гаразд"},Popconfirm:{okText:"Гаразд",cancelText:"Скасувати"},Transfer:{titles:["",""],searchPlaceholder:"Введіть текст для пошуку",itemUnit:"елем.",itemsUnit:"елем.",remove:"Видалити",selectCurrent:"Вибрати поточну сторінку",removeCurrent:"Скасувати вибір на сторінці",selectAll:"Вибрати всі дані",deselectAll:"Очистити вибір",removeAll:"Скасувати вибір",selectInvert:"Інвертувати поточну сторінку"},Upload:{uploading:"Завантаження ...",removeFile:"Видалити файл",uploadError:"Помилка завантаження",previewFile:"Попередній перегляд файлу",downloadFile:"Завантажити файл"},Empty:{description:"Даних немає"},Icon:{icon:"іконка"},Text:{edit:"Редагувати",copy:"Скопіювати",copied:"Скопійовано",expand:"Розширити"},Form:{optional:"(опціонально)",defaultValidateMessages:{default:"Помилка валідації для поля ${label}",required:"Будь ласка, заповніть ${label}",enum:"Лише одне зі значень [${enum}] доступне для ${label}",whitespace:"Значення у полі ${label} не може бути пробілом",date:{format:"Не валідний формат дати у ${label}",parse:"Значення ${label} не може бути приведене до дати",invalid:"Не валідна дата у ${label}"},types:{string:l,method:l,array:l,object:l,number:l,date:l,boolean:l,integer:l,float:l,regexp:l,email:l,url:l,hex:l},string:{len:"${label} має містити ${len} символів",min:"${label} має містити не менш, ніж ${min} символів",max:"${label} має містити не більш, ніж ${max} символів",range:"${label} має містити ${min}-${max} символів"},number:{len:"${label} має дорівнювати ${len}",min:"${label} має бути не менш, ніж ${min}",max:"${label} має бути не більш, ніж ${max}",range:"${label} має бути в межах ${min}-${max}"},array:{len:"${label} має містити ${len} елементи",min:"${label} має містити не менш, ніж ${min} елементи",max:"${label} має містити не більш, ніж ${max} елементи",range:"Кількість елементів в ${label} має бути в межах ${min}-${max}"},pattern:{mismatch:"${label} не відповідає шаблону ${pattern}"}}},QRCode:{expired:"QR-код закінчився",refresh:"Оновити"}};p.default=$});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
__emailmaker__.define("static/core/
|
|
1
|
+
__emailmaker__.define("static/core/b3d5871e.js",["require","exports","module","static/core/5dc34752.js","static/core/3acdfe13.js","static/core/c1460335.js"],function(f,M,it){const D=f("./5dc34752.js"),s=f("./3acdfe13.js"),h=f("./c1460335.js");var F=1.25,O=80,$=3,k=1,p=16,L="p, div, td, th";function d(t){if(!t)return;const e=parseFloat(t);if(Number.isFinite(e))return t.trim().endsWith("pt")?e*4/3:e}function A(t){return t.style}function l(t){const e=A(t);if(!e)return!1;if(e.display==="none"||e.visibility==="hidden"||e.opacity==="0")return!0;const r=d(e.fontSize);return r!==void 0&&r<=k&&N(t)<=k?!0:d(e.maxHeight)===0}function u(t){for(let e=t;e;e=e.parentElement){const r=d(A(e)?.fontSize);if(r!==void 0)return r}return p}function w(t,e){for(const r of Array.from(t.childNodes)){if(s.isTextNode(r)){const n=r.data.trim().length;if(n){const i=u(r.parentElement);e.set(i,(e.get(i)??0)+n)}continue}!s.isElement(r)||l(r)||w(r,e)}}function j(t){const e=new Map;w(t,e);let r=p,n=0;for(const[i,o]of e)o>n&&(r=i,n=o);return r}function N(t){let e=u(t);for(const r of Array.from(t.querySelectorAll("*")))r.textContent?.trim()&&(e=Math.max(e,u(r)));return e}function q(t,e){return t.querySelector("a")?.textContent?.trim()===e}function b(t){return Array.from(t.querySelectorAll(L)).some(e=>e.textContent?.trim())}function G(t){const e=j(t),r=[];for(const o of Array.from(t.querySelectorAll(L))){if(l(o)||b(o))continue;const a=o.textContent?.trim()??"";if(!a||a.length>O||q(o,a))continue;const c=N(o);c>=e*F&&r.push({elem:o,size:c})}const n=[...new Set(r.map(o=>o.size))].sort((o,a)=>a-o),i=new Map;for(const{elem:o,size:a}of r)i.set(o,Math.min(n.indexOf(a)+1,$));return{headingLevels:i}}var R=D.__exportAll({markdownAnchor:()=>Y,markdownBlock:()=>X,markdownImage:()=>Q,markdownInline:()=>J,markdownOrderedList:()=>Z,markdownStrong:()=>K,markdownUnorderedList:()=>U}),E=h.formatList,_=20;function W(t){return!t||t.includes("%")?NaN:parseFloat(t)}function m(t,e){const r=t.style,n=e==="width"?"maxWidth":"maxHeight";for(const i of[t.getAttribute(e),r?.[e],r?.[n]]){const o=W(i);if(Number.isFinite(o))return o}return NaN}function x(t){return(t.getAttribute("alt")??"").trim()?!1:m(t,"width")<=_||m(t,"height")<=_}function S(t){return t.replace(/ /g,"%20").replace(/\(/g,"%28").replace(/\)/g,"%29")}function B(t){const e=t.getAttribute("href");return!e||e.startsWith("#")?"":e}function g(t){for(const e of Array.from(t.childNodes)){if(s.isTextNode(e)){if(/\S/.test(e.data))return!0;continue}if(!s.isElement(e))continue;const r=e.tagName.toLowerCase();if(r==="img"){if(e.getAttribute("src")&&!x(e))return!0;continue}if(r==="hr"||r==="a"&&B(e)&&v(e)||g(e))return!0}return!1}function v(t){const e=(t.getAttribute("title")??"").trim();if(e)return e;const r=t.querySelector("img");return r?(r.getAttribute("title")??"").trim():""}function y(t,e,r){r.addLiteral("["),e(),r.addLiteral(`](${S(t)})`)}function I(t,e){return t.parentElement?.tagName.toLowerCase()!=="li"?e:{...e,leadingLineBreaks:1,trailingLineBreaks:1}}var U=(t,e,r,n)=>{E(t,e,r,I(t,n),()=>"- ")},Z=(t,e,r,n)=>{let i=Number(t.getAttribute("start")??"1")||1;E(t,e,r,I(t,n),()=>`${i++}. `)},V={h1:1,h2:2,h3:3,h4:4,h5:5,h6:6};function z(t,e){return V[t.tagName.toLowerCase()]??e.metadata?.headingLevels.get(t)}var X=(t,e,r,n)=>{if(l(t)||!g(t))return;const i=z(t,r);r.openBlock({leadingLineBreaks:i?2:n.leadingLineBreaks}),i&&r.addLiteral(`${"#".repeat(i)} `),e(Array.from(t.childNodes),r),r.closeBlock({trailingLineBreaks:i?2:n.trailingLineBreaks})};function P(t,e){for(let r=t.parentElement;r;r=r.parentElement)if(z(r,e))return!0;return!1}function C(t){return s.isTextNode(t)?!/\S/.test(t.data):s.isElement(t)&&t.tagName.toLowerCase()==="br"}var K=(t,e,r)=>{const n=Array.from(t.childNodes);if(P(t,r)){e(n,r);return}let i=0,o=n.length;for(;i<o&&C(n[i]);)i++;for(;o>i&&C(n[o-1]);)o--;const a=n.slice(i,o),c=a.map(nt=>nt.textContent??"").join("");if(!a.length||c!==c.trim()){e(n,r);return}e(n.slice(0,i),r),r.addLiteral("**"),e(a,r),r.addLiteral("**"),e(n.slice(o),r)},J=(t,e,r)=>{l(t)||e(Array.from(t.childNodes),r)};function T(t){return t.replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">")}function H(t,e){const r=m(t,e);return Number.isFinite(r)?` ${e}="${Math.round(r)}"`:""}var Q=(t,e,r)=>{const n=t.getAttribute("src");if(!n||x(t))return;const i=t.getAttribute("alt")??"",o=H(t,"width"),a=H(t,"height");if(o||a){r.addLiteral(`<img src="${T(n)}" alt="${T(i)}"${o}${a}>`);return}r.addLiteral("})`)},Y=(t,e,r)=>{const n=B(t);if(!n){e(Array.from(t.childNodes),r);return}if(g(t)){y(n,()=>e(Array.from(t.childNodes),r),r);return}const i=v(t);i&&y(n,()=>r.addInline(i),r)},tt={"\\":"\\\\","`":"\\`","*":"\\*",_:"\\_","[":"\\[","]":"\\]","#":"\\#",">":"\\>"},et={wordwrap:!1,encodeCharacters:tt,baseElements:{selectors:["body"]},formatters:R,selectors:[{selector:"*",format:"markdownInline"},{selector:"p",format:"markdownBlock",options:{leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"div",format:"markdownBlock",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"td",format:"markdownBlock",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"table",format:"markdownBlock",options:{leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"th",format:"markdownBlock",options:{leadingLineBreaks:1,trailingLineBreaks:1}},...["h1","h2","h3","h4","h5","h6"].map(t=>({selector:t,format:"markdownBlock"})),{selector:"a",format:"markdownAnchor"},{selector:"img",format:"markdownImage"},{selector:"ul",format:"markdownUnorderedList"},{selector:"ol",format:"markdownOrderedList"},{selector:"hr",format:"blockString",options:{string:"---",leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"b",format:"markdownStrong"},{selector:"strong",format:"markdownStrong"},{selector:"i",format:"inlineSurround",options:{prefix:"*",suffix:"*"}},{selector:"em",format:"inlineSurround",options:{prefix:"*",suffix:"*"}}]};function rt(t){return h.convert(t,et,G(t))}M.htmlToMarkdown=rt});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
__emailmaker__.define("static/core/
|
|
1
|
+
__emailmaker__.define("static/core/b99c36c9.js",["require","exports","module","static/core/5dc34752.js","static/core/3acdfe13.js"],function(i,u,S){const x=i("./5dc34752.js"),m=i("./3acdfe13.js");var d={items_per_page:"/ página",jump_to:"Ir a",jump_to_confirm:"confirmar",page:"Página",prev_page:"Página anterior",next_page:"Página siguiente",prev_5:"5 páginas previas",next_5:"5 páginas siguientes",prev_3:"3 páginas previas",next_3:"3 páginas siguientes",page_size:"tamaño de página"};function o(r){"@babel/helpers - typeof";return o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(r)}function l(r,e){var a=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function($){return Object.getOwnPropertyDescriptor(r,$).enumerable})),a.push.apply(a,n)}return a}function c(r){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?arguments[e]:{};e%2?l(Object(a),!0).forEach(function(n){b(r,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(a)):l(Object(a)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(a,n))})}return r}function b(r,e,a){return e=g(e),e in r?Object.defineProperty(r,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[e]=a,r}function g(r){var e=f(r,"string");return o(e)=="symbol"?e:String(e)}function f(r,e){if(o(r)!="object"||!r)return r;var a=r[Symbol.toPrimitive];if(a!==void 0){var n=a.call(r,e||"default");if(o(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}var v=c(c({},m.commonLocale),{},{locale:"es_ES",today:"Hoy",now:"Ahora",backToToday:"Volver a hoy",ok:"Aceptar",clear:"Limpiar",week:"Semana",month:"Mes",year:"Año",timeSelect:"Seleccionar hora",dateSelect:"Seleccionar fecha",monthSelect:"Elegir un mes",yearSelect:"Elegir un año",decadeSelect:"Elegir una década",previousMonth:"Mes anterior (PageUp)",nextMonth:"Mes siguiente (PageDown)",previousYear:"Año anterior (Control + left)",nextYear:"Año siguiente (Control + right)",previousDecade:"Década anterior",nextDecade:"Década siguiente",previousCentury:"Siglo anterior",nextCentury:"Siglo siguiente"}),s={placeholder:"Seleccionar hora",rangePlaceholder:["Hora de inicio","Hora de fin"]},p={lang:{placeholder:"Seleccionar fecha",rangePlaceholder:["Fecha inicial","Fecha final"],shortWeekDays:["Dom","Lun","Mar","Mié","Jue","Vie","Sáb"],shortMonths:["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],...v},timePickerLocale:{...s}},y=p,t="${label} no es un ${type} válido",h={locale:"es",Pagination:d,DatePicker:p,TimePicker:s,Calendar:y,global:{placeholder:"Seleccione",close:"Cerrar",show:"Mostrar",hide:"Ocultar"},Table:{filterTitle:"Filtrar menú",filterConfirm:"Aceptar",filterReset:"Reiniciar",filterEmptyText:"Sin filtros",filterCheckAll:"Seleccionar todo",filterSearchPlaceholder:"Buscar en filtros",emptyText:"Sin datos",selectAll:"Seleccionar todo",selectInvert:"Invertir selección",selectNone:"Vacíe todo",selectionAll:"Seleccionar todos los datos",sortTitle:"Ordenar",expand:"Expandir fila",collapse:"Colapsar fila",triggerDesc:"Click para ordenar en orden descendente",triggerAsc:"Click para ordenar en orden ascendente",cancelSort:"Click para cancelar ordenamiento"},Tour:{Next:"Siguiente",Previous:"Anterior",Finish:"Finalizar"},Modal:{okText:"Aceptar",cancelText:"Cancelar",justOkText:"Aceptar"},Popconfirm:{okText:"Aceptar",cancelText:"Cancelar"},Transfer:{titles:["",""],searchPlaceholder:"Buscar aquí",itemUnit:"elemento",itemsUnit:"elementos",remove:"Eliminar",selectCurrent:"Seleccionar página actual",removeCurrent:"Eliminar página actual",selectAll:"Seleccionar todos los datos",removeAll:"Eliminar todos los datos",selectInvert:"Invertir página actual"},Upload:{uploading:"Subiendo...",removeFile:"Eliminar archivo",uploadError:"Error al subir el archivo",previewFile:"Vista previa",downloadFile:"Descargar archivo"},Empty:{description:"No hay datos"},Icon:{icon:"ícono"},Text:{edit:"Editar",copy:"Copiar",copied:"Copiado",expand:"Expandir"},Form:{optional:"(opcional)",defaultValidateMessages:{default:"Error de validación del campo ${label}",required:"Por favor, rellena ${label}",enum:"${label} debe ser uno de [${enum}]",whitespace:"${label} no puede ser un carácter en blanco",date:{format:"El formato de fecha de ${label} es inválido",parse:"${label} no se puede convertir a una fecha",invalid:"${label} es una fecha inválida"},types:{string:t,method:t,array:t,object:t,number:t,date:t,boolean:t,integer:t,float:t,regexp:t,email:t,url:t,hex:t},string:{len:"${label} debe tener ${len} caracteres",min:"${label} debe tener al menos ${min} caracteres",max:"${label} debe tener hasta ${max} caracteres",range:"${label} debe tener entre ${min}-${max} caracteres"},number:{len:"${label} debe ser igual a ${len}",min:"${label} valor mínimo es ${min}",max:"${label} valor máximo es ${max}",range:"${label} debe ser entre ${min}-${max}"},array:{len:"Debe ser ${len} ${label}",min:"Al menos ${min} ${label}",max:"Como máximo ${max} ${label}",range:"El valor de ${label} debe estar entre ${min}-${max}"},pattern:{mismatch:"${label} no coincide con el patrón ${pattern}"}}}};u.default=h});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
__emailmaker__.define("static/core/
|
|
1
|
+
__emailmaker__.define("static/core/c1460335.js",["require","exports","module","static/core/5dc34752.js","static/core/3acdfe13.js"],function(me,O,hr){const H=me("./5dc34752.js"),N=me("./3acdfe13.js");var it=/\n/g;function at(e){const n=[...e.matchAll(it)].map((r=>r.index||0));n.unshift(-1);const t=ee(n,0,n.length);return r=>de(t,r)}function ee(e,n,t){if(t-n==1)return{offset:e[n],index:n+1};const r=Math.ceil((n+t)/2),s=ee(e,n,r),i=ee(e,r,t);return{offset:s.offset,low:s,high:i}}function de(e,n){return(function(t){return Object.prototype.hasOwnProperty.call(t,"index")})(e)?{line:e.index,column:n-e.offset}:de(e.high.offset<n?e.high:e.low,n)}function ge(e,n="",t={}){const r=typeof n!="string"?n:t,s=typeof n=="string"?n:"",i=e.map(ot),a=!!r.lineNumbers;return function(o,c=0){const l=a?at(o):()=>({line:0,column:0});let h=c;const g=[];e:for(;h<o.length;){let y=!1;for(const p of i){p.regex.lastIndex=h;const k=p.regex.exec(o);if(k&&k[0].length>0){if(!p.discard){const v=l(h),B=typeof p.replace=="string"?k[0].replace(new RegExp(p.regex.source,p.regex.flags),p.replace):k[0];g.push({state:s,name:p.name,text:B,offset:h,len:k[0].length,line:v.line,column:v.column})}if(h=p.regex.lastIndex,y=!0,p.push){const v=p.push(o,h);g.push(...v.tokens),h=v.offset}if(p.pop)break e;break}}if(!y)break}return{tokens:g,offset:h,complete:o.length<=h}}}function ot(e,n){return{...e,regex:ct(e,n)}}function ct(e,n){if(e.name.length===0)throw new Error(`Rule #${n} has empty name, which is not allowed.`);if((function(t){return Object.prototype.hasOwnProperty.call(t,"regex")})(e))return(function(t){if(t.global)throw new Error(`Regular expression /${t.source}/${t.flags} contains the global flag, which is not allowed.`);return t.sticky?t:new RegExp(t.source,t.flags+"y")})(e.regex);if((function(t){return Object.prototype.hasOwnProperty.call(t,"str")})(e)){if(e.str.length===0)throw new Error(`Rule #${n} ("${e.name}") has empty "str" property, which is not allowed.`);return new RegExp(ke(e.str),"y")}return new RegExp(ke(e.name),"y")}function ke(e){return e.replace(/[-[\]{}()*+!<=:?./\\^$|#\s,]/g,"\\$&")}function I(e,n){return(t,r)=>{let s=r,i;return r<t.tokens.length?(i=e(t.tokens[r],t,r),i!==void 0&&s++):n?.(t,r),i===void 0?{matched:!1}:{matched:!0,position:s,value:i}}}function te(e,n){return e.matched?{matched:!0,position:e.position,value:n(e.value,e.position)}:e}function U(e,n){return e.matched?n(e):e}function L(e,n){return(t,r)=>te(e(t,r),(s,i)=>n(s,t,r,i))}function q(e,n){return(t,r)=>{const s=e(t,r);return s.matched?s:{matched:!0,position:r,value:n}}}function F(...e){return(n,t)=>{for(const r of e){const s=r(n,t);if(s.matched)return s}return{matched:!1}}}function W(e,n){return(t,r)=>{const s=e(t,r);return s.matched?s:n(t,r)}}function lt(e,n){return(t,r)=>{const s=[];let i=!0;do{const a=e(t,r);a.matched&&n(a.value,s.length+1,t,r,a.position)?(s.push(a.value),r=a.position):i=!1}while(i);return{matched:!0,position:r,value:s}}}function ne(e){return lt(e,()=>!0)}function ut(e){return w(e,ne(e),(n,t)=>[n,...t])}function w(e,n,t){return(r,s)=>U(e(r,s),i=>te(n(r,i.position),(a,o)=>t(i.value,a,r,s,o)))}function ft(e,n){return w(e,n,t=>t)}function Le(e,n){return w(e,n,(t,r)=>r)}function re(e,n,t,r){return(s,i)=>U(e(s,i),a=>U(n(s,a.position),o=>te(t(s,o.position),(c,l)=>r(a.value,o.value,c,s,i,l))))}function we(e,n,t){return re(e,n,t,(r,s)=>s)}function ht(...e){return(n,t)=>{const r=[];let s=t;for(const i of e){const a=i(n,s);if(a.matched)r.push(a.value),s=a.position;else return{matched:!1}}return{matched:!0,position:s,value:r}}}function pt(...e){return mt(ht(...e))}function mt(e){return L(e,n=>n.flatMap(t=>t))}function dt(e,n){return(t,r)=>{let s=!0,i=e,a=r;do{const o=n(i,t,a)(t,a);o.matched?(i=o.value,a=o.position):s=!1}while(s);return{matched:!0,position:a,value:i}}}function gt(e,n,t){return dt(e,r=>L(n,(s,i,a,o)=>t(r,s,i,a,o)))}function xe(e,n,t){return kt(e,r=>gt(r,w(n,t,(s,i)=>[s,i]),(s,[i,a])=>i(s,a)))}function kt(e,n){return(t,r)=>U(e(t,r),s=>n(s.value,t,r,s.position)(t,s.position))}var Lt="(?:[ \\t\\r\\n\\f]*)",ve="(?:\\n|\\r\\n|\\r|\\f)",K="[^\\x00-\\x7F]",M="(?:\\\\[0-9a-f]{1,6}(?:\\r\\n|[ \\n\\r\\t\\f])?)",j="(?:\\\\[^\\n\\r\\f0-9a-f])",wt=`(?:[_a-z]|${K}|${M}|${j})`,ye=`(?:[_a-z0-9-]|${K}|${M}|${j})`,xt=`(?:${ye}+)`,vt=`(?:[-]?${wt}${ye}*)`,yt=`'([^\\n\\r\\f\\\\']|\\\\${ve}|${K}|${M}|${j})*'`,Bt=`"([^\\n\\r\\f\\\\"]|\\\\${ve}|${K}|${M}|${j})*"`,_t=ge([{name:"ws",regex:new RegExp(Lt)},{name:"hash",regex:new RegExp(`#${xt}`,"i")},{name:"ident",regex:new RegExp(vt,"i")},{name:"str1",regex:new RegExp(yt,"i")},{name:"str2",regex:new RegExp(Bt,"i")},{name:"*"},{name:"."},{name:","},{name:"["},{name:"]"},{name:"="},{name:">"},{name:"|"},{name:"+"},{name:"~"},{name:"^"},{name:"$"}]),bt=ge([{name:"unicode",regex:new RegExp(M,"i")},{name:"escape",regex:new RegExp(j,"i")},{name:"any",regex:new RegExp("[\\s\\S]","i")}]);function Be([e,n,t],[r,s,i]){return[e+r,n+s,t+i]}function St(e){return e.reduce(Be,[0,0,0])}var It=I(e=>e.name==="unicode"?String.fromCodePoint(parseInt(e.text.slice(1),16)):void 0),Nt=I(e=>e.name==="escape"?e.text.slice(1):void 0),Wt=I(e=>e.name==="any"?e.text:void 0),Et=L(ne(F(It,Nt,Wt)),e=>e.join(""));function se(e){const n=bt(e);return Et({tokens:n.tokens,options:void 0},0).value}function d(e){return I(n=>n.name===e?!0:void 0)}var ie=I(e=>e.name==="ws"?null:void 0),ae=q(ie,null);function A(e){return we(ae,e,ae)}var D=I(e=>e.name==="ident"?se(e.text):void 0),Tt=I(e=>e.name==="hash"?se(e.text.slice(1)):void 0),Ct=I(e=>e.name.startsWith("str")?se(e.text.slice(1,-1)):void 0),_e=ft(q(D,""),d("|")),oe=W(w(_e,D,(e,n)=>({name:n,namespace:e})),L(D,e=>({name:e,namespace:null}))),At=W(w(_e,d("*"),e=>({type:"universal",namespace:e,specificity:[0,0,0]})),L(d("*"),()=>({type:"universal",namespace:null,specificity:[0,0,0]}))),Pt=L(oe,({name:e,namespace:n})=>({type:"tag",name:e,namespace:n,specificity:[0,0,1]})),$t=w(d("."),D,(e,n)=>({type:"class",name:n,specificity:[0,1,0]})),Rt=L(Tt,e=>({type:"id",name:e,specificity:[1,0,0]})),be=I(e=>{if(e.name==="ident"){if(e.text==="i"||e.text==="I")return"i";if(e.text==="s"||e.text==="S")return"s"}}),Ot=W(w(Ct,q(Le(ae,be),null),(e,n)=>({value:e,modifier:n})),w(D,q(Le(ie,be),null),(e,n)=>({value:e,modifier:n}))),Mt=F(L(d("="),()=>"="),w(d("~"),d("="),()=>"~="),w(d("|"),d("="),()=>"|="),w(d("^"),d("="),()=>"^="),w(d("$"),d("="),()=>"$="),w(d("*"),d("="),()=>"*=")),jt=re(d("["),A(oe),d("]"),(e,{name:n,namespace:t})=>({type:"attrPresence",name:n,namespace:t,specificity:[0,1,0]})),Dt=we(d("["),re(A(oe),Mt,A(Ot),({name:e,namespace:n},t,{value:r,modifier:s})=>({type:"attrValue",name:e,namespace:n,matcher:t,value:r,modifier:s,specificity:[0,1,0]})),d("]")),Vt=W(jt,Dt),Ht=W(At,Pt),Se=F(Rt,$t,Vt),Ie=L(W(pt(Ht,ne(Se)),ut(Se)),e=>({type:"compound",list:e,specificity:St(e.map(n=>n.specificity))})),Ut=F(L(d(">"),()=>">"),L(d("+"),()=>"+"),L(d("~"),()=>"~"),w(d("|"),d("|"),()=>"||")),qt=W(A(Ut),L(ie,()=>" ")),ce=xe(Ie,L(qt,e=>(n,t)=>({type:"compound",list:[...t.list,{type:"combinator",combinator:e,left:n,specificity:n.specificity}],specificity:Be(n.specificity,t.specificity)})),Ie),pr=xe(L(ce,e=>({type:"list",list:[e]})),L(A(d(",")),()=>(e,n)=>({type:"list",list:[...e.list,n]})),ce);function Ft(e,n){if(!(typeof n=="string"||n instanceof String))throw new Error("Expected a selector string. Actual input is not a string!");const t=_t(n);if(!t.complete)throw new Error(`The input "${n}" was only partially tokenized, stopped at offset ${t.offset}!
|
|
2
2
|
`+Ne(n,t.offset));const r=A(e)({tokens:t.tokens,options:void 0},0);if(!r.matched)throw new Error(`No match for "${n}" input!`);if(r.position<t.tokens.length){const s=t.tokens[r.position];throw new Error(`The input "${n}" was only partially parsed, stopped at offset ${s.offset}!
|
|
3
3
|
`+Ne(n,s.offset,s.len))}return r.value}function Ne(e,n,t=1){return`${e.replace(/(\t)|(\r)|(\n)/g,(r,s,i)=>s?"␉":i?"␍":"␊")}
|
|
4
4
|
${"".padEnd(n)}${"^".repeat(t)}`}function Kt(e){return Ft(ce,e)}function b(e){if(!e.type)throw new Error("This is not an AST node.");switch(e.type){case"universal":return z(e.namespace)+"*";case"tag":return z(e.namespace)+P(e.name);case"class":return"."+P(e.name);case"id":return"#"+P(e.name);case"attrPresence":return`[${z(e.namespace)}${P(e.name)}]`;case"attrValue":return`[${z(e.namespace)}${P(e.name)}${e.matcher}"${zt(e.value)}"${e.modifier?e.modifier:""}]`;case"combinator":return b(e.left)+e.combinator;case"compound":return e.list.reduce((n,t)=>t.type==="combinator"?b(t)+n:n+b(t),"");case"list":return e.list.map(b).join(",")}}function z(e){return e||e===""?P(e)+"|":""}function X(e){return`\\${e.codePointAt(0).toString(16)} `}function P(e){return e.replace(/(^[0-9])|(^-[0-9])|(^-$)|([-0-9a-zA-Z_]|[^\x00-\x7F])|(\x00)|([\x01-\x1f]|\x7f)|([\s\S])/g,(n,t,r,s,i,a,o,c)=>t?X(t):r?"-"+X(r.slice(1)):s?"\\-":i||(a?"�":o?X(o):"\\"+c))}function zt(e){return e.replace(/(")|(\\)|(\x00)|([\x01-\x1f]|\x7f)/g,(n,t,r,s,i)=>t?'\\"':r?"\\\\":s?"�":X(i))}function G(e){if(!e.type)throw new Error("This is not an AST node.");switch(e.type){case"compound":e.list.forEach(G),e.list.sort((n,t)=>Te(We(n),We(t)));break;case"combinator":G(e.left);break;case"list":e.list.forEach(G),e.list.sort((n,t)=>b(n)<b(t)?-1:1)}return e}function We(e){switch(e.type){case"universal":return[1];case"tag":return[1];case"id":return[2];case"class":return[3,e.name];case"attrPresence":return[4,b(e)];case"attrValue":return[5,b(e)];case"combinator":return[15,b(e)]}}function Ee(e,n){return Te(e,n)}function Te(e,n){if(!Array.isArray(e)||!Array.isArray(n))throw new Error("Arguments must be arrays.");const t=e.length<n.length?e.length:n.length;for(let r=0;r<t;r++)if(e[r]!==n[r])return e[r]<n[r]?-1:1;return e.length-n.length}var Ce=class{constructor(e){this.branches=$(Xt(e))}build(e){return e(this.branches)}};function Xt(e){const n=e.length,t=new Array(n);for(let r=0;r<n;r++){const[s,i]=e[r],a=Gt(Kt(s));t[r]={ast:a,terminal:{type:"terminal",valueContainer:{index:r,value:i,specificity:a.specificity}}}}return t}function Gt(e){return Ae(e),G(e),e}function Ae(e){const n=[];e.list.forEach(t=>{switch(t.type){case"class":n.push({matcher:"~=",modifier:null,name:"class",namespace:null,specificity:t.specificity,type:"attrValue",value:t.name});break;case"id":n.push({matcher:"=",modifier:null,name:"id",namespace:null,specificity:t.specificity,type:"attrValue",value:t.name});break;case"combinator":Ae(t.left),n.push(t);break;case"universal":break;default:n.push(t)}}),e.list=n}function $(e){const n=[];for(;e.length;){const t=Oe(e,a=>!0,Pe),{matches:r,nonmatches:s,empty:i}=Yt(e,t);e=s,r.length&&n.push(Zt(t,r)),i.length&&n.push(...Jt(i))}return n}function Jt(e){const n=[];for(const t of e){const r=t.terminal;if(r.type==="terminal")n.push(r);else{const{matches:s,rest:i}=rn(r.cont,a=>a.type==="terminal");s.forEach(a=>n.push(a)),i.length&&(r.cont=i,n.push(r))}}return n}function Yt(e,n){const t=[],r=[],s=[];for(const i of e){const a=i.ast.list;a.length?(a.some(o=>Pe(o)===n)?t:r).push(i):s.push(i)}return{matches:t,nonmatches:r,empty:s}}function Pe(e){switch(e.type){case"attrPresence":return`attrPresence ${e.name}`;case"attrValue":return`attrValue ${e.name}`;case"combinator":return`combinator ${e.combinator}`;default:return e.type}}function Zt(e,n){if(e==="tag")return Qt(n);if(e.startsWith("attrValue "))return tn(e.substring(10),n);if(e.startsWith("attrPresence "))return en(e.substring(13),n);if(e==="combinator >")return $e(">",n);if(e==="combinator +")return $e("+",n);throw new Error(`Unsupported selector kind: ${e}`)}function Qt(e){const n=le(e,t=>t.type==="tag",t=>t.name);return{type:"tagName",variants:Object.entries(n).map(([t,r])=>({type:"variant",value:t,cont:$(r.items)}))}}function en(e,n){for(const t of n)Re(t,r=>r.type==="attrPresence"&&r.name===e);return{type:"attrPresence",name:e,cont:$(n)}}function tn(e,n){const t=le(n,s=>s.type==="attrValue"&&s.name===e,s=>`${s.matcher} ${s.modifier||""} ${s.value}`),r=[];for(const s of Object.values(t)){const i=s.oneSimpleSelector,a=nn(i),o=$(s.items);r.push({type:"matcher",matcher:i.matcher,modifier:i.modifier,value:i.value,predicate:a,cont:o})}return{type:"attrValue",name:e,matchers:r}}function nn(e){if(e.modifier==="i"){const n=e.value.toLowerCase();switch(e.matcher){case"=":return t=>n===t.toLowerCase();case"~=":return t=>t.toLowerCase().split(/[ \t]+/).includes(n);case"^=":return t=>t.toLowerCase().startsWith(n);case"$=":return t=>t.toLowerCase().endsWith(n);case"*=":return t=>t.toLowerCase().includes(n);case"|=":return t=>{const r=t.toLowerCase();return n===r||r.startsWith(n)&&r[n.length]==="-"}}}else{const n=e.value;switch(e.matcher){case"=":return t=>n===t;case"~=":return t=>t.split(/[ \t]+/).includes(n);case"^=":return t=>t.startsWith(n);case"$=":return t=>t.endsWith(n);case"*=":return t=>t.includes(n);case"|=":return t=>n===t||t.startsWith(n)&&t[n.length]==="-"}}}function $e(e,n){const t=le(n,s=>s.type==="combinator"&&s.combinator===e,s=>b(s.left)),r=[];for(const s of Object.values(t)){const i=$(s.items),a=s.oneSimpleSelector.left;r.push({ast:a,terminal:{type:"popElement",cont:i}})}return{type:"pushElement",combinator:e,cont:$(r)}}function le(e,n,t){const r={};for(;e.length;){const s=Oe(e,n,t),i=h=>n(h)&&t(h)===s,a=h=>h.ast.list.some(i),{matches:o,rest:c}=sn(e,a);let l=null;for(const h of o){const g=Re(h,i);l||(l=g)}if(l==null)throw new Error("No simple selector is found.");r[s]={oneSimpleSelector:l,items:o},e=c}return r}function Re(e,n){const t=e.ast.list,r=new Array(t.length);let s=-1;for(let a=t.length;a-- >0;)n(t[a])&&(r[a]=!0,s=a);if(s==-1)throw new Error("Couldn't find the required simple selector.");const i=t[s];return e.ast.list=t.filter((a,o)=>!r[o]),i}function Oe(e,n,t){const r={};for(const a of e){const o={};for(const c of a.ast.list.filter(n))o[t(c)]=!0;for(const c of Object.keys(o))r[c]?r[c]++:r[c]=1}let s="",i=0;for(const a of Object.entries(r))a[1]>i&&(s=a[0],i=a[1]);return s}function rn(e,n){const t=[],r=[];for(const s of e)n(s)?t.push(s):r.push(s);return{matches:t,rest:r}}function sn(e,n){const t=[],r=[];for(const s of e)n(s)?t.push(s):r.push(s);return{matches:t,rest:r}}var an=class{constructor(e){this.f=e}pickAll(e){return this.f(e)}pick1(e,n=!1){const t=this.f(e),r=t.length;if(r===0)return null;if(r===1)return t[0].value;const s=n?on:cn;let i=t[0];for(let a=1;a<r;a++){const o=t[a];s(i,o)&&(i=o)}return i.value}};function on(e,n){const t=Ee(n.specificity,e.specificity);return t>0||t===0&&n.index<e.index}function cn(e,n){const t=Ee(n.specificity,e.specificity);return t>0||t===0&&n.index>e.index}function Me(e){return new an(R(e))}function R(e){const n=e.map(ln);return(t,...r)=>n.flatMap(s=>s(t,...r))}function ln(e){switch(e.type){case"terminal":return()=>[e.valueContainer];case"tagName":return un(e);case"attrValue":return hn(e);case"attrPresence":return fn(e);case"pushElement":return pn(e);case"popElement":return mn(e);default:return()=>[]}}function un(e){const n={};for(const t of e.variants)n[t.value.toLowerCase()]=R(t.cont);return(t,...r)=>{const s=t.tagName?.toLowerCase(),i=s&&n[s];return i?i(t,...r):[]}}function fn(e){const n=e.name,t=R(e.cont);return(r,...s)=>r.hasAttribute(n)?t(r,...s):[]}function hn(e){const n=[];for(const r of e.matchers){const s=r.predicate,i=R(r.cont);n.push((a,o,...c)=>s(a)?i(o,...c):[])}const t=e.name;return(r,...s)=>{const i=r.getAttribute(t);return i!==null?n.flatMap(a=>a(i,r,...s)):[]}}function pn(e){const n=R(e.cont),t=e.combinator==="+"?dn:gn;return(r,...s)=>{const i=t(r);return i?n(i,r,...s):[]}}function mn(e){const n=R(e.cont);return(t,r,...s)=>n(r,...s)}function dn(e){let n=e.previousSibling;for(;n&&n.nodeType!==Node.ELEMENT_NODE;)n=n.previousSibling;return n}function gn(e){return e.parentElement}var kn=H.__commonJSMin(((e,n)=>{var t=function(f){return r(f)&&!s(f)};function r(u){return!!u&&typeof u=="object"}function s(u){var f=Object.prototype.toString.call(u);return f==="[object RegExp]"||f==="[object Date]"||a(u)}var i=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.element"):60103;function a(u){return u.$$typeof===i}function o(u){return Array.isArray(u)?[]:{}}function c(u,f){return f.clone!==!1&&f.isMergeableObject(u)?B(o(u),u,f):u}function l(u,f,m){return u.concat(f).map(function(_){return c(_,m)})}function h(u,f){if(!f.customMerge)return B;var m=f.customMerge(u);return typeof m=="function"?m:B}function g(u){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(u).filter(function(f){return Object.propertyIsEnumerable.call(u,f)}):[]}function y(u){return Object.keys(u).concat(g(u))}function p(u,f){try{return f in u}catch{return!1}}function k(u,f){return p(u,f)&&!(Object.hasOwnProperty.call(u,f)&&Object.propertyIsEnumerable.call(u,f))}function v(u,f,m){var _={};return m.isMergeableObject(u)&&y(u).forEach(function(x){_[x]=c(u[x],m)}),y(f).forEach(function(x){k(u,x)||(p(u,x)&&m.isMergeableObject(f[x])?_[x]=h(x,m)(u[x],f[x],m):_[x]=c(f[x],m))}),_}function B(u,f,m){m=m||{},m.arrayMerge=m.arrayMerge||l,m.isMergeableObject=m.isMergeableObject||t,m.cloneUnlessOtherwiseSpecified=c;var _=Array.isArray(f);return _!==Array.isArray(u)?c(f,m):_?m.arrayMerge(u,f,m):v(u,f,m)}B.all=function(f,m){if(!Array.isArray(f))throw new Error("first argument should be an array");return f.reduce(function(_,x){return B(_,x,m)},{})};var fr=B;n.exports=fr})),je=H.__toESM(kn());function ue(e,n,t=()=>{}){if(e===void 0){const r=function(...s){return n(r,...s)};return r}return e>=0?function(...r){return n(ue(e-1,n,t),...r)}:t}function De(e,n){let t=0,r=e.length;for(;t<r&&e[t]===n;)++t;for(;r>t&&e[r-1]===n;)--r;return t>0||r<e.length?e.substring(t,r):e}function Ln(e,n){let t=e.length;for(;t>0&&e[t-1]===n;)--t;return t<e.length?e.substring(0,t):e}function wn(e){return e.replace(/[\s\S]/g,n=>"\\u"+n.charCodeAt().toString(16).padStart(4,"0"))}function Ve(e,n){const t=new Map;for(let r=e.length;r-- >0;){const s=e[r],i=n(s);t.set(i,t.has(i)?(0,je.default)(s,t.get(i),{arrayMerge:xn}):s)}return[...t.values()].reverse()}var xn=(e,n,t)=>[...n];function J(e,n){for(const t of n){if(!e)return;e=e[t]}return e}function He(e,n="a",t=26){const r=[];do e-=1,r.push(e%t),e=e/t>>0;while(e>0);const s=n.charCodeAt(0);return r.reverse().map(i=>String.fromCharCode(s+i)).join("")}var fe=["I","X","C","M"],Ue=["V","L","D"];function qe(e){return[...e+""].map(n=>+n).reverse().map((n,t)=>n%5<4?(n<5?"":Ue[t])+fe[t].repeat(n%5):fe[t]+(n<5?Ue[t]:fe[t+1])).reverse().join("")}var Fe=class{constructor(e,n=void 0){this.lines=[],this.nextLineWords=[],this.maxLineLength=n||e.wordwrap||Number.MAX_VALUE,this.nextLineAvailableChars=this.maxLineLength,this.wrapCharacters=J(e,["longWordSplit","wrapCharacters"])||[],this.forceWrapOnLimit=J(e,["longWordSplit","forceWrapOnLimit"])||!1,this.stashedSpace=!1,this.wordBreakOpportunity=!1}pushWord(e,n=!1){this.nextLineAvailableChars<=0&&!n&&this.startNewLine();const t=this.nextLineWords.length===0,r=e.length+(t?0:1);if(r<=this.nextLineAvailableChars||n)this.nextLineWords.push(e),this.nextLineAvailableChars-=r;else{const[s,...i]=this.splitLongWord(e);t||this.startNewLine(),this.nextLineWords.push(s),this.nextLineAvailableChars-=s.length;for(const a of i)this.startNewLine(),this.nextLineWords.push(a),this.nextLineAvailableChars-=a.length}}popWord(){const e=this.nextLineWords.pop();if(e!==void 0){const n=this.nextLineWords.length===0,t=e.length+(n?0:1);this.nextLineAvailableChars+=t}return e}concatWord(e,n=!1){if(this.wordBreakOpportunity&&e.length>this.nextLineAvailableChars)this.pushWord(e,n),this.wordBreakOpportunity=!1;else{const t=this.popWord();this.pushWord(t?t.concat(e):e,n)}}startNewLine(e=1){this.lines.push(this.nextLineWords),e>1&&this.lines.push(...Array.from({length:e-1},()=>[])),this.nextLineWords=[],this.nextLineAvailableChars=this.maxLineLength}isEmpty(){return this.lines.length===0&&this.nextLineWords.length===0}clear(){this.lines.length=0,this.nextLineWords.length=0,this.nextLineAvailableChars=this.maxLineLength}toString(){return[...this.lines,this.nextLineWords].map(e=>e.join(" ")).join(`
|