@dcodegroup-au/page-builder 0.2.7 → 0.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,65 +1,65 @@
1
- (function(Ye,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],i):(Ye=typeof globalThis<"u"?globalThis:Ye||self,i(Ye.PageBuilder={},Ye.Vue))})(this,function(Ye,i){"use strict";var rE=Object.defineProperty;var sE=(Ye,i,Yn)=>i in Ye?rE(Ye,i,{enumerable:!0,configurable:!0,writable:!0,value:Yn}):Ye[i]=Yn;var Ee=(Ye,i,Yn)=>sE(Ye,typeof i!="symbol"?i+"":i,Yn);const Yn={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function ru(n,e){return i.openBlock(),i.createElementBlock("svg",Yn,e[0]||(e[0]=[i.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m9 18 6-6-6-6"},null,-1)]))}const oo={render:ru},su={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function ou(n,e){return i.openBlock(),i.createElementBlock("svg",su,e[0]||(e[0]=[i.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m6 9 6 6 6-6"},null,-1)]))}const iu={render:ou},Zn=(n,e)=>{const t=n.__vccOpts||n;for(const[r,s]of e)t[r]=s;return t},au={};function lu(n,e){return e[0]||(e[0]=i.createStaticVNode('<div class="text-lg pb-6 font-semibold text-gray-900 border-b border-gray-200">Instruction</div><div class="flex flex-col gap-3 py-6 text-gray-600"><div class="font-semibold text-gray-900">Modules</div><p>Modules are fixed and for internal reference only, and admin users cannot make the following changes:</p><ul class="list-inside list-disc pl-3"><li>Edit the title of any module (e.g., &quot;Hero header&quot;).</li><li>Change the order of the modules.</li><li>Add new module.</li></ul><p>For any changes at the module level, please contact the development team.</p></div><div class="flex flex-col gap-3 py-6 text-gray-600"><div class="font-semibold text-gray-900">Edit sub-modules or edit nested items</div><p>Click any sub-module to edit its settings and any nested items within it.</p></div>',3))}const cu=Zn(au,[["render",lu]]),uu={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function du(n,e){return i.openBlock(),i.createElementBlock("svg",uu,e[0]||(e[0]=[i.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 5v14m-7-7h14"},null,-1)]))}const kr={render:du},Ln={data:{required:!0,type:Object},sites:{required:!0,type:Array}};function fu(n){return n.charAt(0).toUpperCase()+n.slice(1)}function io(n,e=!1){const t={children:"child",people:"person",mice:"mouse",feet:"foot",teeth:"tooth",geese:"goose"};n=n.replace(/_/g," ");let r=Object.keys(t).find(s=>s===n)?t[n]:n.endsWith("s")?n.slice(0,-1):n;return e&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}function ao(n,e=!0){if(!n)return"";const t=n.split("_").pop();return e?fu(t):t}function hu(n={},e=!0){let t={title:"New Item",description:"New description",public:!1,featured_image:"",primary_button:{show:!1,label:"",type:"site-content",url:"",is_new_tab:!1,...n.primary_button||{}}};return e||(t.primary_button.name="Linked to"),e&&(t.secondary_button={show:!1,label:"",type:"site-content",url:"",is_new_tab:!1,...n.secondary_button||{}}),{...t,...n}}function pu(n={}){return{title:"New link",url:"",open_in_new_tab:!0,type:"site-content",...n||{}}}const mu={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function gu(n,e){return i.openBlock(),i.createElementBlock("svg",mu,e[0]||(e[0]=[i.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2M19 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2M5 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2"},null,-1)]))}const yu={render:gu},vu={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function bu(n,e){return i.openBlock(),i.createElementBlock("svg",vu,e[0]||(e[0]=[i.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M16 6v-.8c0-1.12 0-1.68-.218-2.108a2 2 0 0 0-.874-.874C14.48 2 13.92 2 12.8 2h-1.6c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C8 3.52 8 4.08 8 5.2V6m2 5.5v5m4-5v5M3 6h18m-2 0v11.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C16.72 22 15.88 22 14.2 22H9.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C5 19.72 5 18.88 5 17.2V6"},null,-1)]))}const Hi={render:bu},xu={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function Eu(n,e){return i.openBlock(),i.createElementBlock("svg",xu,e[0]||(e[0]=[i.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m2.5 21.5 5.55-2.134c.354-.137.532-.205.698-.294q.221-.12.42-.274c.149-.115.283-.25.552-.518L21 7a2.828 2.828 0 1 0-4-4L5.72 14.28c-.269.268-.403.403-.519.552a3 3 0 0 0-.273.42c-.089.166-.157.344-.294.699zm0 0 2.058-5.351c.147-.383.221-.575.347-.662a.5.5 0 0 1 .38-.08c.15.028.295.173.585.463l2.26 2.26c.29.29.435.434.464.585a.5.5 0 0 1-.08.38c-.089.126-.28.2-.663.347z"},null,-1)]))}const wu={render:Eu},Au={beforeMount:(n,e)=>{n.clickOutsideEvent=t=>{n===t.target||n.contains(t.target)||e.value()},document.addEventListener("click",n.clickOutsideEvent)},unmounted:n=>{document.removeEventListener("click",n.clickOutsideEvent)}},Su={class:"relative z-50"},Tu={key:0,class:"absolute -left-60 top-6 w-[240px] rounded-lg border border-gray-200 bg-white text-sm"},is=Object.assign({directives:{clickOutside:Au}},{__name:"ActionMenu",props:{enableEdit:{type:Boolean,default:!1}},emits:["removeItem"],setup(n,{emit:e}){const t=i.ref(!1),r=e,s=()=>{t.value&&(t.value=!1)},l=()=>{r("removeItem"),t.value=!1},a=()=>{r("editItem"),t.value=!1};return(c,o)=>{const u=i.resolveDirective("click-outside");return i.withDirectives((i.openBlock(),i.createElementBlock("div",Su,[i.createElementVNode("div",{class:"cursor-pointer text-gray-600 rounded-full hover:bg-gray-50 p-2.5 block",onClick:o[0]||(o[0]=d=>t.value=!t.value)},[i.createVNode(i.unref(yu),{class:"w-5"})]),t.value?(i.openBlock(),i.createElementBlock("div",Tu,[n.enableEdit?(i.openBlock(),i.createElementBlock("a",{key:0,class:"flex items-center gap-2 px-2.5 cursor-pointer h-[48px] w-auto hover:bg-gray-100 rounded-lg m-1.5 text-gray-700",onClick:a},[i.createVNode(i.unref(wu),{class:"w-4 text-gray-500"}),o[1]||(o[1]=i.createElementVNode("span",{class:"font-medium"}," Edit ",-1))])):i.createCommentVNode("",!0),i.createElementVNode("a",{class:"flex items-center gap-2 px-2.5 cursor-pointer h-[48px] w-auto hover:bg-gray-100 rounded-lg m-1.5 text-gray-700",onClick:l},[i.createVNode(i.unref(Hi),{class:"w-4 text-gray-500"}),o[2]||(o[2]=i.createElementVNode("span",{class:"font-medium"}," Delete ",-1))])])):i.createCommentVNode("",!0)])),[[u,s]])}}}),Nu={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function ku(n,e){return i.openBlock(),i.createElementBlock("svg",Nu,e[0]||(e[0]=[i.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M18 6 6 18M6 6l12 12"},null,-1)]))}const Cu={render:ku},Ou={key:0,class:"fixed min-w-[400px] left-1/2 top-1/2 z-50 flex max-h-screen -translate-x-1/2 -translate-y-1/2 transform flex-col rounded-xl border-tertiary-500 bg-white"},Ru={class:"p-6 flex justify-between flex-col"},Iu={class:"flex justify-between"},Lu={class:"p-2 rounded-full border-8 border-error-50 bg-error-100 text-error-600"},Bu={class:"text-lg font-semibold text-gray-900 pb-2 pt-4"},Pu={class:"text-sm text-gray-600 pb-4"},Fu={class:"flex justify-between space-x-xsSpace pt-xsSpace gap-4"},Mu=["textContent"],Du=["textContent"],as=Zn(i.defineComponent({__name:"VModal",props:{entity:{type:String,required:!0},callback:{type:Function,required:!1,default:()=>{}}},setup(n,{expose:e}){const t=n,r=i.ref(!1),s=i.reactive({cancelTitle:null,confirmTitle:null,scrollable:!0,data:null}),l=i.computed(()=>s.cancelTitle?s.cancelTitle:"Cancel"),a=i.computed(()=>s.confirmTitle?s.confirmTitle:"Delete"),c=d=>{r.value=!0,s.data=d},o=()=>{r.value=!1},u=async()=>{t.callback(s.data),r.value=!1};return e({open:c,close:o}),(d,h)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass([{"-open":r.value},"v-modal"])},[i.createVNode(i.Transition,{name:"fade"},{default:i.withCtx(()=>[r.value?(i.openBlock(),i.createElementBlock("div",Ou,[i.renderSlot(d.$slots,"default",{},()=>[i.createElementVNode("div",{class:i.normalizeClass(["relative min-h-[260px] overflow-y-auto flex",{"overflow-y-visible":!d.scrollable}])},[i.createElementVNode("div",Ru,[i.createElementVNode("div",null,[i.createElementVNode("div",Iu,[i.createElementVNode("span",Lu,[i.createVNode(i.unref(Hi),{class:"w-6 h-6"})]),i.createVNode(i.unref(Cu),{class:"w-6 h-6 text-gray-400 hover:bg-gray-100 rounded-md cursor-pointer",onClick:o})]),i.createElementVNode("h4",Bu,"Delete this "+i.toDisplayString(n.entity)+"?",1),i.createElementVNode("p",Pu,"Do you want to delete this "+i.toDisplayString(n.entity)+"? This action cannot be undone.",1)]),i.createElementVNode("div",Fu,[i.createElementVNode("a",{onClick:o,class:"w-1/2 py-[9px] rounded-full border border-gray-300 shadow-xs text-md font-semibold hover:bg-gray-100 text-gray-700 text-center cursor-pointer",textContent:i.toDisplayString(l.value)},null,8,Mu),i.createElementVNode("a",{onClick:i.withModifiers(u,["prevent"]),class:"w-1/2 py-[9px] rounded-full shadow-xs text-md font-semibold text-white bg-error-600 hover:bg-error-700 border border-error-600 text-center cursor-pointer",textContent:i.toDisplayString(a.value)},null,8,Du)])])],2)],!0)])):i.createCommentVNode("",!0)]),_:3})],2))}}),[["__scopeId","data-v-0ca1257f"]]),Uu={class:"flex justify-between pb-2"},_u={class:"text-lg font-semibold text-gray-900"},Vu={class:"flex flex-col gap-4"},ju={class:"text-gray-600 border-b border-gray-200 pb-4 text-sm"},$u={class:"flex flex-col gap-3"},qu={class:"flex justify-between"},zu={class:"flex flex-col gap-1"},Hu={class:"font-semibold text-gray-900"},Gu={class:"text-sm text-gray-600"},Wu=["disabled"],Ku={class:"flex flex-col gap-3"},Xu=["onClick"],Yu=["onClick"],Zu={class:"text-xs text-gray-600"},Qu={class:"text-sm font-medium text-gray-900"},Gi={__name:"VItems",props:{...Ln},emits:["update"],setup(n,{emit:e}){const t=e,r=n,s=i.ref(r.data.component),l=s.value.type,a=i.ref(null),c=`${l.value}-openItemStates`,o=i.ref(JSON.parse(window.localStorage.getItem(c)));o.value||(o.value={},s.value.data.forEach((p,y)=>{o.value[y]=!1}),window.localStorage.setItem(c,JSON.stringify(o.value)));const u=p=>{Object.keys(o.value).forEach(y=>{o.value[y]=!1}),o.value[p]=!o.value[p],window.localStorage.setItem(c,JSON.stringify(o.value))},d=()=>{s.value.data.push(hu({},l==="sliders")),t("update",!1)},h=p=>{var y;(y=a==null?void 0:a.value)==null||y.open(p)},f=p=>{s.value.data.splice(p,1),t("update",!1)},m=(p,y)=>{var b,A,T,O;p.hasOwnProperty("edit_url")&&(window.location.href=p.edit_url),window.location.href=`/admin/pages/${(A=(b=r==null?void 0:r.data)==null?void 0:b.page)==null?void 0:A.id}/sections/${(T=r==null?void 0:r.data)==null?void 0:T.sectionIndex}/components/${(O=r==null?void 0:r.data)==null?void 0:O.componentIndex}/items/${y}`};return(p,y)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",Uu,[i.createElementVNode("p",_u,i.toDisplayString(s.value.name),1)]),i.createElementVNode("div",Vu,[i.createElementVNode("div",ju,i.toDisplayString(s.value.supportive_text),1),i.createElementVNode("div",$u,[i.createElementVNode("div",qu,[i.createElementVNode("div",zu,[i.createElementVNode("div",Hu,i.toDisplayString(i.unref(ao)(i.unref(l))),1),i.createElementVNode("div",Gu,"This "+i.toDisplayString(i.unref(io)(i.unref(l)))+" can contain up to "+i.toDisplayString(s.value.max_items)+" "+i.toDisplayString(i.unref(ao)(i.unref(l),!1)),1)]),i.createElementVNode("div",null,[i.createElementVNode("button",{disabled:s.value.data.length>=s.value.max_items,onClick:d,type:"button",class:i.normalizeClass(["text-sm cursor-pointer flex items-center justify-center gap-1 rounded-[99px] border border-brand-600 bg-brand-500 px-3.5 py-2 font-semibold text-white hover:bg-brand-600",{"border-gray-100 bg-gray-100 !text-gray-400 hover:bg-gray-100":s.value.data.length>=s.value.max_items}])},[i.createVNode(i.unref(kr),{class:"h-5 w-5"}),y[0]||(y[0]=i.createElementVNode("span",null,"Add",-1))],10,Wu)])]),i.createElementVNode("div",Ku,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value.data,(b,A)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["flex items-center gap-4 px-2 py-1 hover:bg-gray-100 rounded-lg",{"bg-gray-200 hover:bg-gray-200":o.value[A]}])},[i.createElementVNode("div",{class:"flex flex-1 items-center justify-between relative",onClick:T=>{u(A)}},[i.createElementVNode("div",{class:"flex flex-1 flex-col cursor-pointer",onClick:T=>m(b,A)},[i.createElementVNode("div",Zu,i.toDisplayString(i.unref(io)(i.unref(ao)(i.unref(l))))+" #"+i.toDisplayString(A+1),1),i.createElementVNode("div",Qu,i.toDisplayString(b.title),1)],8,Yu),i.createVNode(is,{onRemoveItem:T=>h(A),"enable-edit":!0,onEditItem:T=>m(b,A)},null,8,["onRemoveItem","onEditItem"])],8,Xu)],2))),256))])])]),i.createVNode(as,{ref_key:"modalRef",ref:a,entity:i.unref(io)(i.unref(l)),callback:f},null,8,["entity"])],64))}},Ju=["for"],ed={key:0,class:"v-field-label inline-block mb-2"},td={key:0},nd={key:1,class:"absolute right-0 -bottom-6 text-sm text-gray-600 font-normal"},rd={key:2,class:"absolute left-0 -bottom-6 text-sm text-gray-600 font-normal"},_t={__name:"InputWrapper",props:{field:{type:String,required:!0},labelText:{type:String,default:""},value:{type:[String,Number],default:""},limit:{type:Number,default:null},showCount:{type:Boolean,default:!1},darkTheme:{type:Boolean,default:!1},isRequired:{type:Boolean,default:!1}},setup(n){return(e,t)=>{var r;return i.openBlock(),i.createElementBlock("label",{for:n.field,class:"block space-y-2xsSpace text-sm font-medium leading-none text-gray-700 relative"},[n.labelText||e.$slots.label?(i.openBlock(),i.createElementBlock("span",ed,[e.$slots.label?i.renderSlot(e.$slots,"label",{key:0}):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(i.toDisplayString(n.labelText)+" ",1),n.isRequired?(i.openBlock(),i.createElementBlock("span",td," *")):i.createCommentVNode("",!0)],64))])):i.createCommentVNode("",!0),i.renderSlot(e.$slots,"default"),n.limit?(i.openBlock(),i.createElementBlock("span",nd,i.toDisplayString((r=n.value)==null?void 0:r.length)+"/"+i.toDisplayString(n.limit)+" characters ",1)):i.createCommentVNode("",!0),n.showCount?(i.openBlock(),i.createElementBlock("span",rd," Word count: "+i.toDisplayString(n.value),1)):i.createCommentVNode("",!0)],8,Ju)}}},sd={class:"flex items-center gap-2"},od=["aria-checked"],id={key:0,class:"text-sm text-gray-700 font-medium"},Cr={__name:"VToggle",props:{modelValue:{type:[Number,Boolean]},title:{type:String},isDisabled:{type:Boolean},small:{type:Boolean},ring:{type:Boolean}},emits:"update:modelValue",setup(n,{emit:e}){const t=n,r=e,s=i.computed(()=>({"!bg-brand-700 hover:!bg-brand-700":t.modelValue,"!h-3 !w-6":t.small,"focus:outline-none focus:ring-2 focus:ring-brand-700 focus:ring-offset-2":t.ring!==!1})),l=()=>{t.isDisabled||r("update:modelValue",!t.modelValue)};return(a,c)=>(i.openBlock(),i.createElementBlock("div",sd,[i.createElementVNode("button",{type:"button",class:i.normalizeClass(["relative inline-flex h-5 w-10 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent bg-gray-100 transition-colors duration-200 ease-in-out",s.value]),role:"switch","aria-checked":n.modelValue,onClick:l},[i.createElementVNode("span",{"aria-hidden":"true",class:i.normalizeClass(["pointer-events-none inline-block h-4 w-4 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out",{"translate-x-5":n.modelValue,"translate-x-0":!n.modelValue,"!translate-x-3":n.small&&n.modelValue,"!h-2 !w-2":n.small}])},null,2)],10,od),n.title?(i.openBlock(),i.createElementBlock("span",id,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)]))}},ad={class:"flex flex-col gap-2"},ld=["value"],cd={__name:"SiteContent",props:i.mergeModels({sites:{type:Object,required:!0},errors:{type:Object,required:!1,default:()=>({})}},{url:{},urlModifiers:{}}),emits:["update:url"],setup(n){const e=i.useModel(n,"url");return(t,r)=>(i.openBlock(),i.createElementBlock("div",ad,[r[1]||(r[1]=i.createElementVNode("label",{class:"text-sm font-medium text-gray-700"},"Select a page from the site*",-1)),i.withDirectives(i.createElementVNode("select",{"onUpdate:modelValue":r[0]||(r[0]=s=>e.value=s),name:"url"},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.sites,s=>(i.openBlock(),i.createElementBlock("option",{value:s.href},i.toDisplayString(s.name),9,ld))),256))],512),[[i.vModelSelect,e.value]])]))}},ud={__name:"ExternalPage",props:{url:{},urlModifiers:{}},emits:["update:url"],setup(n){const e=i.useModel(n,"url");return(t,r)=>(i.openBlock(),i.createBlock(_t,{"is-vertical":"",field:"title","label-text":"URL *",class:"w-full"},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":r[0]||(r[0]=s=>e.value=s),name:"title",type:"text",placeholder:"Enter your url",class:"border-1 border-solid border-gray-300 rounded-lg bg-white w-full"},null,512),[[i.vModelText,e.value]])]),_:1}))}},dd={class:"flex flex-col gap-5"},fd={key:0,class:"text-sm text-gray-700 font-medium py-2"},hd={class:"text-sm flex items-center gap-6 font-medium text-gray-700"},pd={class:"flex items-center gap-2 cursor-pointer"},md=["name","value","disabled"],gd={class:"flex flex-col gap-2"},yd=["value"],vd={class:"flex items-center gap-2"},Or={__name:"LinkedTo",props:i.mergeModels({label:{type:String,required:!1},sites:{type:Object,required:!0},name:{type:String,required:!0},options:{type:Array,required:!1,default:["site-content","external-page"]}},{type:{default:"site-content"},typeModifiers:{},url:{},urlModifiers:{},openInNewTab:{},openInNewTabModifiers:{}}),emits:["update:type","update:url","update:openInNewTab"],setup(n){const e=i.useModel(n,"type"),t=i.useModel(n,"url"),r=i.useModel(n,"openInNewTab"),s=a=>a.split("-").map(c=>c.charAt(0).toUpperCase()+c.slice(1)).join(" "),l=a=>({"site-content":cd,"external-page":ud})[a]||null;return(a,c)=>(i.openBlock(),i.createElementBlock("div",dd,[i.createElementVNode("div",null,[n.label?(i.openBlock(),i.createElementBlock("p",fd,i.toDisplayString(n.label),1)):i.createCommentVNode("",!0),i.createElementVNode("div",hd,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.options,o=>(i.openBlock(),i.createElementBlock("label",pd,[i.withDirectives(i.createElementVNode("input",{name:n.name,type:"radio",value:o,"onUpdate:modelValue":c[0]||(c[0]=u=>e.value=u),class:"checked:bg-brand-600 hover:bg-brand-600 checked:hover:bg-brand-600 focus:bg-brand-600 focus:ring-brand-600 focus:checked:bg-brand-600 rounded-full",disabled:o==="form"},null,8,md),[[i.vModelRadio,e.value]]),i.createElementVNode("span",null,i.toDisplayString(s(o)),1)]))),256))])]),i.createElementVNode("div",gd,[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(l(e.value)),{url:t.value,"onUpdate:url":c[1]||(c[1]=o=>t.value=o),sites:n.sites},null,40,["url","sites"])),i.createElementVNode("input",{type:"hidden",name:"url",value:t.value},null,8,yd)]),i.createElementVNode("div",vd,[i.createVNode(Cr,{class:"mb-1",name:"open_in_new_tab",modelValue:r.value,"onUpdate:modelValue":c[2]||(c[2]=o=>r.value=o),title:"Open in a new tab"},null,8,["modelValue"])])]))}},bd={class:"flex justify-between pb-2"},xd={class:"flex justify-between w-full py-1"},Ed={class:"text-lg font-semibold text-gray-900"},wd={class:"text-sm text-gray-600 mt-1"},Ad={class:"flex flex-col gap-3"},Sd={class:"flex items-center justify-between"},Td={class:"text-lg font-semibold text-gray-900"},Nd={class:"relative flex items-end"},kd={class:"flex flex-col gap-6"},Cd={class:"flex flex-col gap-1.5"},Od=["onUpdate:modelValue"],Wi={__name:"VLinks",props:{...Ln},emits:["update"],setup(n,{emit:e}){const t=e,r=n,s=i.ref(r.data.component),l=i.ref(null),a=i.ref(null),c=i.ref(null);function o(){var h,f;s.value.hasOwnProperty("data")||(s.value.data=[]),!(((h=s.value.data)==null?void 0:h.length)>=s.value.max_items)&&((f=s.value.data)==null||f.push(pu()),i.nextTick(()=>{a.value&&a.value.scrollIntoView({behavior:"smooth"})}),t("update",!1))}const u=h=>{var f;c.value=h,(f=l==null?void 0:l.value)==null||f.open(h)},d=h=>{var f;(f=s.value.data)==null||f.splice(h,1),t("update",!1)};return(h,f)=>{var m;return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",bd,[i.createElementVNode("div",xd,[i.createElementVNode("div",null,[i.createElementVNode("p",Ed,i.toDisplayString(s.value.name),1),i.createElementVNode("p",wd,i.toDisplayString(s.value.supportive_text),1)]),i.createElementVNode("div",null,[i.createElementVNode("a",{onClick:o,class:i.normalizeClass(["text-sm cursor-pointer flex items-center justify-center gap-1 rounded-[99px] border border-brand-600 bg-brand-500 px-3.5 py-2 font-semibold text-white hover:bg-brand-600",{"border-gray-100 bg-gray-100 !text-gray-400 hover:bg-gray-100":((m=s.value.data)==null?void 0:m.length)>=s.value.max_items}])},[i.createVNode(i.unref(kr),{class:"h-5 w-5"}),f[0]||(f[0]=i.createElementVNode("span",null,"Add",-1))],2)])])]),i.createElementVNode("div",Ad,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value.data,(p,y)=>(i.openBlock(),i.createElementBlock("div",{class:"flex flex-col gap-4 rounded-xl px-6 py-4 bg-gray-200",key:y,ref_for:!0,ref:y===s.value.data.length-1?b=>a.value=b:null},[i.createElementVNode("div",Sd,[i.createElementVNode("div",Td," Link #"+i.toDisplayString(y+1),1),i.createElementVNode("div",Nd,[i.createVNode(is,{onRemoveItem:b=>u(y)},null,8,["onRemoveItem"])])]),i.createElementVNode("div",kd,[i.createElementVNode("div",Cd,[i.createVNode(_t,{"is-vertical":"",field:"title","label-text":"Title *",class:"w-full mb-4",value:p.title,limit:20},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":b=>p.title=b,name:"title",type:"text",placeholder:"Title",maxlength:20,class:"border-1 border-solid border-gray-300 rounded-lg bg-white w-full"},null,8,Od),[[i.vModelText,p.title]])]),_:2},1032,["value"]),i.createVNode(Or,{label:"Linked to",name:`link_${y+1}`,type:p.type,"onUpdate:type":b=>p.type=b,url:p.url,"onUpdate:url":b=>p.url=b,openInNewTab:p.open_in_new_tab,"onUpdate:openInNewTab":b=>p.open_in_new_tab=b,sites:h.sites},null,8,["name","type","onUpdate:type","url","onUpdate:url","openInNewTab","onUpdate:openInNewTab","sites"])])])]))),128))]),i.createVNode(as,{ref_key:"modalRef",ref:l,entity:"link",callback:d},null,512)],64)}}},Rd={class:"flex flex-col gap-4"},Id={class:"text-lg font-semibold text-gray-900 border-b border-gray-200 pb-4"},Ld=["maxlength"],Bd={__name:"VHeader",props:{...Ln},emits:["update"],setup(n,{emit:e}){const t=n,r=i.ref(t.data.component);return(s,l)=>(i.openBlock(),i.createElementBlock("div",Rd,[i.createElementVNode("p",Id,i.toDisplayString(r.value.name),1),r.value.hasOwnProperty("title")?(i.openBlock(),i.createBlock(_t,{key:0,"is-vertical":"",field:"title","label-text":"Title *",class:"w-full mb-4",value:r.value.title,limit:51},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":l[0]||(l[0]=a=>r.value.title=a),name:"title",type:"text",placeholder:"Title",maxlength:51,class:"border-1 border-solid border-gray-300 rounded-lg bg-white w-full"},null,512),[[i.vModelText,r.value.title]])]),_:1},8,["value"])):i.createCommentVNode("",!0),r.value.hasOwnProperty("supporting_text")?(i.openBlock(),i.createBlock(_t,{key:1,"is-vertical":"",field:"supporting_text","label-text":"Supporting Text *",class:"w-full mb-4",value:r.value.supporting_text,limit:r.value.supporting_text_max_length??100},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":l[1]||(l[1]=a=>r.value.supporting_text=a),name:"supporting_text",type:"text",placeholder:"Supporting Text",maxlength:r.value.supporting_text_max_length??100,class:"border-1 border-solid border-gray-300 rounded-lg bg-white w-full"},null,8,Ld),[[i.vModelText,r.value.supporting_text]])]),_:1},8,["value","limit"])):i.createCommentVNode("",!0)]))}};function Ki(n,e){return function(){return n.apply(e,arguments)}}const{toString:Pd}=Object.prototype,{getPrototypeOf:lo}=Object,{iterator:ls,toStringTag:Xi}=Symbol,cs=(n=>e=>{const t=Pd.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),Vt=n=>(n=n.toLowerCase(),e=>cs(e)===n),us=n=>e=>typeof e===n,{isArray:Qn}=Array,Rr=us("undefined");function Fd(n){return n!==null&&!Rr(n)&&n.constructor!==null&&!Rr(n.constructor)&&Tt(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const Yi=Vt("ArrayBuffer");function Md(n){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(n):e=n&&n.buffer&&Yi(n.buffer),e}const Dd=us("string"),Tt=us("function"),Zi=us("number"),ds=n=>n!==null&&typeof n=="object",Ud=n=>n===!0||n===!1,fs=n=>{if(cs(n)!=="object")return!1;const e=lo(n);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Xi in n)&&!(ls in n)},_d=Vt("Date"),Vd=Vt("File"),jd=Vt("Blob"),$d=Vt("FileList"),qd=n=>ds(n)&&Tt(n.pipe),zd=n=>{let e;return n&&(typeof FormData=="function"&&n instanceof FormData||Tt(n.append)&&((e=cs(n))==="formdata"||e==="object"&&Tt(n.toString)&&n.toString()==="[object FormData]"))},Hd=Vt("URLSearchParams"),[Gd,Wd,Kd,Xd]=["ReadableStream","Request","Response","Headers"].map(Vt),Yd=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ir(n,e,{allOwnKeys:t=!1}={}){if(n===null||typeof n>"u")return;let r,s;if(typeof n!="object"&&(n=[n]),Qn(n))for(r=0,s=n.length;r<s;r++)e.call(null,n[r],r,n);else{const l=t?Object.getOwnPropertyNames(n):Object.keys(n),a=l.length;let c;for(r=0;r<a;r++)c=l[r],e.call(null,n[c],c,n)}}function Qi(n,e){e=e.toLowerCase();const t=Object.keys(n);let r=t.length,s;for(;r-- >0;)if(s=t[r],e===s.toLowerCase())return s;return null}const Bn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ji=n=>!Rr(n)&&n!==Bn;function co(){const{caseless:n}=Ji(this)&&this||{},e={},t=(r,s)=>{const l=n&&Qi(e,s)||s;fs(e[l])&&fs(r)?e[l]=co(e[l],r):fs(r)?e[l]=co({},r):Qn(r)?e[l]=r.slice():e[l]=r};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&Ir(arguments[r],t);return e}const Zd=(n,e,t,{allOwnKeys:r}={})=>(Ir(e,(s,l)=>{t&&Tt(s)?n[l]=Ki(s,t):n[l]=s},{allOwnKeys:r}),n),Qd=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),Jd=(n,e,t,r)=>{n.prototype=Object.create(e.prototype,r),n.prototype.constructor=n,Object.defineProperty(n,"super",{value:e.prototype}),t&&Object.assign(n.prototype,t)},ef=(n,e,t,r)=>{let s,l,a;const c={};if(e=e||{},n==null)return e;do{for(s=Object.getOwnPropertyNames(n),l=s.length;l-- >0;)a=s[l],(!r||r(a,n,e))&&!c[a]&&(e[a]=n[a],c[a]=!0);n=t!==!1&&lo(n)}while(n&&(!t||t(n,e))&&n!==Object.prototype);return e},tf=(n,e,t)=>{n=String(n),(t===void 0||t>n.length)&&(t=n.length),t-=e.length;const r=n.indexOf(e,t);return r!==-1&&r===t},nf=n=>{if(!n)return null;if(Qn(n))return n;let e=n.length;if(!Zi(e))return null;const t=new Array(e);for(;e-- >0;)t[e]=n[e];return t},rf=(n=>e=>n&&e instanceof n)(typeof Uint8Array<"u"&&lo(Uint8Array)),sf=(n,e)=>{const r=(n&&n[ls]).call(n);let s;for(;(s=r.next())&&!s.done;){const l=s.value;e.call(n,l[0],l[1])}},of=(n,e)=>{let t;const r=[];for(;(t=n.exec(e))!==null;)r.push(t);return r},af=Vt("HTMLFormElement"),lf=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,r,s){return r.toUpperCase()+s}),ea=(({hasOwnProperty:n})=>(e,t)=>n.call(e,t))(Object.prototype),cf=Vt("RegExp"),ta=(n,e)=>{const t=Object.getOwnPropertyDescriptors(n),r={};Ir(t,(s,l)=>{let a;(a=e(s,l,n))!==!1&&(r[l]=a||s)}),Object.defineProperties(n,r)},uf=n=>{ta(n,(e,t)=>{if(Tt(n)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const r=n[t];if(Tt(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},df=(n,e)=>{const t={},r=s=>{s.forEach(l=>{t[l]=!0})};return Qn(n)?r(n):r(String(n).split(e)),t},ff=()=>{},hf=(n,e)=>n!=null&&Number.isFinite(n=+n)?n:e;function pf(n){return!!(n&&Tt(n.append)&&n[Xi]==="FormData"&&n[ls])}const mf=n=>{const e=new Array(10),t=(r,s)=>{if(ds(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[s]=r;const l=Qn(r)?[]:{};return Ir(r,(a,c)=>{const o=t(a,s+1);!Rr(o)&&(l[c]=o)}),e[s]=void 0,l}}return r};return t(n,0)},gf=Vt("AsyncFunction"),yf=n=>n&&(ds(n)||Tt(n))&&Tt(n.then)&&Tt(n.catch),na=((n,e)=>n?setImmediate:e?((t,r)=>(Bn.addEventListener("message",({source:s,data:l})=>{s===Bn&&l===t&&r.length&&r.shift()()},!1),s=>{r.push(s),Bn.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t))(typeof setImmediate=="function",Tt(Bn.postMessage)),vf=typeof queueMicrotask<"u"?queueMicrotask.bind(Bn):typeof process<"u"&&process.nextTick||na,ee={isArray:Qn,isArrayBuffer:Yi,isBuffer:Fd,isFormData:zd,isArrayBufferView:Md,isString:Dd,isNumber:Zi,isBoolean:Ud,isObject:ds,isPlainObject:fs,isReadableStream:Gd,isRequest:Wd,isResponse:Kd,isHeaders:Xd,isUndefined:Rr,isDate:_d,isFile:Vd,isBlob:jd,isRegExp:cf,isFunction:Tt,isStream:qd,isURLSearchParams:Hd,isTypedArray:rf,isFileList:$d,forEach:Ir,merge:co,extend:Zd,trim:Yd,stripBOM:Qd,inherits:Jd,toFlatObject:ef,kindOf:cs,kindOfTest:Vt,endsWith:tf,toArray:nf,forEachEntry:sf,matchAll:of,isHTMLForm:af,hasOwnProperty:ea,hasOwnProp:ea,reduceDescriptors:ta,freezeMethods:uf,toObjectSet:df,toCamelCase:lf,noop:ff,toFiniteNumber:hf,findKey:Qi,global:Bn,isContextDefined:Ji,isSpecCompliantForm:pf,toJSONObject:mf,isAsyncFn:gf,isThenable:yf,setImmediate:na,asap:vf,isIterable:n=>n!=null&&Tt(n[ls])};function Me(n,e,t,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=n,this.name="AxiosError",e&&(this.code=e),t&&(this.config=t),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}ee.inherits(Me,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ee.toJSONObject(this.config),code:this.code,status:this.status}}});const ra=Me.prototype,sa={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(n=>{sa[n]={value:n}}),Object.defineProperties(Me,sa),Object.defineProperty(ra,"isAxiosError",{value:!0}),Me.from=(n,e,t,r,s,l)=>{const a=Object.create(ra);return ee.toFlatObject(n,a,function(o){return o!==Error.prototype},c=>c!=="isAxiosError"),Me.call(a,n.message,e,t,r,s),a.cause=n,a.name=n.name,l&&Object.assign(a,l),a};const bf=null;function uo(n){return ee.isPlainObject(n)||ee.isArray(n)}function oa(n){return ee.endsWith(n,"[]")?n.slice(0,-2):n}function ia(n,e,t){return n?n.concat(e).map(function(s,l){return s=oa(s),!t&&l?"["+s+"]":s}).join(t?".":""):e}function xf(n){return ee.isArray(n)&&!n.some(uo)}const Ef=ee.toFlatObject(ee,{},null,function(e){return/^is[A-Z]/.test(e)});function hs(n,e,t){if(!ee.isObject(n))throw new TypeError("target must be an object");e=e||new FormData,t=ee.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,b){return!ee.isUndefined(b[y])});const r=t.metaTokens,s=t.visitor||d,l=t.dots,a=t.indexes,o=(t.Blob||typeof Blob<"u"&&Blob)&&ee.isSpecCompliantForm(e);if(!ee.isFunction(s))throw new TypeError("visitor must be a function");function u(p){if(p===null)return"";if(ee.isDate(p))return p.toISOString();if(!o&&ee.isBlob(p))throw new Me("Blob is not supported. Use a Buffer instead.");return ee.isArrayBuffer(p)||ee.isTypedArray(p)?o&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function d(p,y,b){let A=p;if(p&&!b&&typeof p=="object"){if(ee.endsWith(y,"{}"))y=r?y:y.slice(0,-2),p=JSON.stringify(p);else if(ee.isArray(p)&&xf(p)||(ee.isFileList(p)||ee.endsWith(y,"[]"))&&(A=ee.toArray(p)))return y=oa(y),A.forEach(function(O,F){!(ee.isUndefined(O)||O===null)&&e.append(a===!0?ia([y],F,l):a===null?y:y+"[]",u(O))}),!1}return uo(p)?!0:(e.append(ia(b,y,l),u(p)),!1)}const h=[],f=Object.assign(Ef,{defaultVisitor:d,convertValue:u,isVisitable:uo});function m(p,y){if(!ee.isUndefined(p)){if(h.indexOf(p)!==-1)throw Error("Circular reference detected in "+y.join("."));h.push(p),ee.forEach(p,function(A,T){(!(ee.isUndefined(A)||A===null)&&s.call(e,A,ee.isString(T)?T.trim():T,y,f))===!0&&m(A,y?y.concat(T):[T])}),h.pop()}}if(!ee.isObject(n))throw new TypeError("data must be an object");return m(n),e}function aa(n){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function fo(n,e){this._pairs=[],n&&hs(n,this,e)}const la=fo.prototype;la.append=function(e,t){this._pairs.push([e,t])},la.toString=function(e){const t=e?function(r){return e.call(this,r,aa)}:aa;return this._pairs.map(function(s){return t(s[0])+"="+t(s[1])},"").join("&")};function wf(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ca(n,e,t){if(!e)return n;const r=t&&t.encode||wf;ee.isFunction(t)&&(t={serialize:t});const s=t&&t.serialize;let l;if(s?l=s(e,t):l=ee.isURLSearchParams(e)?e.toString():new fo(e,t).toString(r),l){const a=n.indexOf("#");a!==-1&&(n=n.slice(0,a)),n+=(n.indexOf("?")===-1?"?":"&")+l}return n}class ua{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){ee.forEach(this.handlers,function(r){r!==null&&e(r)})}}const da={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Af={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:fo,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},ho=typeof window<"u"&&typeof document<"u",po=typeof navigator=="object"&&navigator||void 0,Sf=ho&&(!po||["ReactNative","NativeScript","NS"].indexOf(po.product)<0),Tf=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Nf=ho&&window.location.href||"http://localhost",gt={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ho,hasStandardBrowserEnv:Sf,hasStandardBrowserWebWorkerEnv:Tf,navigator:po,origin:Nf},Symbol.toStringTag,{value:"Module"})),...Af};function kf(n,e){return hs(n,new gt.classes.URLSearchParams,Object.assign({visitor:function(t,r,s,l){return gt.isNode&&ee.isBuffer(t)?(this.append(r,t.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)}},e))}function Cf(n){return ee.matchAll(/\w+|\[(\w*)]/g,n).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Of(n){const e={},t=Object.keys(n);let r;const s=t.length;let l;for(r=0;r<s;r++)l=t[r],e[l]=n[l];return e}function fa(n){function e(t,r,s,l){let a=t[l++];if(a==="__proto__")return!0;const c=Number.isFinite(+a),o=l>=t.length;return a=!a&&ee.isArray(s)?s.length:a,o?(ee.hasOwnProp(s,a)?s[a]=[s[a],r]:s[a]=r,!c):((!s[a]||!ee.isObject(s[a]))&&(s[a]=[]),e(t,r,s[a],l)&&ee.isArray(s[a])&&(s[a]=Of(s[a])),!c)}if(ee.isFormData(n)&&ee.isFunction(n.entries)){const t={};return ee.forEachEntry(n,(r,s)=>{e(Cf(r),s,t,0)}),t}return null}function Rf(n,e,t){if(ee.isString(n))try{return(e||JSON.parse)(n),ee.trim(n)}catch(r){if(r.name!=="SyntaxError")throw r}return(t||JSON.stringify)(n)}const Lr={transitional:da,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",s=r.indexOf("application/json")>-1,l=ee.isObject(e);if(l&&ee.isHTMLForm(e)&&(e=new FormData(e)),ee.isFormData(e))return s?JSON.stringify(fa(e)):e;if(ee.isArrayBuffer(e)||ee.isBuffer(e)||ee.isStream(e)||ee.isFile(e)||ee.isBlob(e)||ee.isReadableStream(e))return e;if(ee.isArrayBufferView(e))return e.buffer;if(ee.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let c;if(l){if(r.indexOf("application/x-www-form-urlencoded")>-1)return kf(e,this.formSerializer).toString();if((c=ee.isFileList(e))||r.indexOf("multipart/form-data")>-1){const o=this.env&&this.env.FormData;return hs(c?{"files[]":e}:e,o&&new o,this.formSerializer)}}return l||s?(t.setContentType("application/json",!1),Rf(e)):e}],transformResponse:[function(e){const t=this.transitional||Lr.transitional,r=t&&t.forcedJSONParsing,s=this.responseType==="json";if(ee.isResponse(e)||ee.isReadableStream(e))return e;if(e&&ee.isString(e)&&(r&&!this.responseType||s)){const a=!(t&&t.silentJSONParsing)&&s;try{return JSON.parse(e)}catch(c){if(a)throw c.name==="SyntaxError"?Me.from(c,Me.ERR_BAD_RESPONSE,this,null,this.response):c}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:gt.classes.FormData,Blob:gt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ee.forEach(["delete","get","head","post","put","patch"],n=>{Lr.headers[n]={}});const If=ee.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Lf=n=>{const e={};let t,r,s;return n&&n.split(`
1
+ (function(Ye,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],i):(Ye=typeof globalThis<"u"?globalThis:Ye||self,i(Ye.PageBuilder={},Ye.Vue))})(this,function(Ye,i){"use strict";var iE=Object.defineProperty;var aE=(Ye,i,Yn)=>i in Ye?iE(Ye,i,{enumerable:!0,configurable:!0,writable:!0,value:Yn}):Ye[i]=Yn;var Ee=(Ye,i,Yn)=>aE(Ye,typeof i!="symbol"?i+"":i,Yn);const Yn={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function ru(n,e){return i.openBlock(),i.createElementBlock("svg",Yn,e[0]||(e[0]=[i.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m9 18 6-6-6-6"},null,-1)]))}const oo={render:ru},su={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function ou(n,e){return i.openBlock(),i.createElementBlock("svg",su,e[0]||(e[0]=[i.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m6 9 6 6 6-6"},null,-1)]))}const iu={render:ou},Zn=(n,e)=>{const t=n.__vccOpts||n;for(const[r,s]of e)t[r]=s;return t},au={};function lu(n,e){return e[0]||(e[0]=i.createStaticVNode('<div class="text-lg pb-6 font-semibold text-gray-900 border-b border-gray-200">Instruction</div><div class="flex flex-col gap-3 py-6 text-gray-600"><div class="font-semibold text-gray-900">Modules</div><p>Modules are fixed and for internal reference only, and admin users cannot make the following changes:</p><ul class="list-inside list-disc pl-3"><li>Edit the title of any module (e.g., &quot;Hero header&quot;).</li><li>Change the order of the modules.</li><li>Add new module.</li></ul><p>For any changes at the module level, please contact the development team.</p></div><div class="flex flex-col gap-3 py-6 text-gray-600"><div class="font-semibold text-gray-900">Edit sub-modules or edit nested items</div><p>Click any sub-module to edit its settings and any nested items within it.</p></div>',3))}const cu=Zn(au,[["render",lu]]),uu={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function du(n,e){return i.openBlock(),i.createElementBlock("svg",uu,e[0]||(e[0]=[i.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 5v14m-7-7h14"},null,-1)]))}const kr={render:du},Ln={data:{required:!0,type:Object},sites:{required:!0,type:Array}};function fu(n){return n.charAt(0).toUpperCase()+n.slice(1)}function io(n,e=!1){const t={children:"child",people:"person",mice:"mouse",feet:"foot",teeth:"tooth",geese:"goose"};n=n.replace(/_/g," ");let r=Object.keys(t).find(s=>s===n)?t[n]:n.endsWith("s")?n.slice(0,-1):n;return e&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}function ao(n,e=!0){if(!n)return"";const t=n.split("_").pop();return e?fu(t):t}function hu(n={},e=!0){let t={title:"New Item",description:"New description",public:!1,featured_image:"",primary_button:{show:!1,label:"",type:"site-content",url:"",is_new_tab:!1,...n.primary_button||{}}};return e||(t.primary_button.name="Linked to"),e&&(t.secondary_button={show:!1,label:"",type:"site-content",url:"",is_new_tab:!1,...n.secondary_button||{}}),{...t,...n}}function pu(n={}){return{title:"New link",url:"",open_in_new_tab:!0,type:"site-content",...n||{}}}const mu={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function gu(n,e){return i.openBlock(),i.createElementBlock("svg",mu,e[0]||(e[0]=[i.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2M19 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2M5 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2"},null,-1)]))}const yu={render:gu},vu={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function bu(n,e){return i.openBlock(),i.createElementBlock("svg",vu,e[0]||(e[0]=[i.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M16 6v-.8c0-1.12 0-1.68-.218-2.108a2 2 0 0 0-.874-.874C14.48 2 13.92 2 12.8 2h-1.6c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C8 3.52 8 4.08 8 5.2V6m2 5.5v5m4-5v5M3 6h18m-2 0v11.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C16.72 22 15.88 22 14.2 22H9.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C5 19.72 5 18.88 5 17.2V6"},null,-1)]))}const Hi={render:bu},xu={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function Eu(n,e){return i.openBlock(),i.createElementBlock("svg",xu,e[0]||(e[0]=[i.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m2.5 21.5 5.55-2.134c.354-.137.532-.205.698-.294q.221-.12.42-.274c.149-.115.283-.25.552-.518L21 7a2.828 2.828 0 1 0-4-4L5.72 14.28c-.269.268-.403.403-.519.552a3 3 0 0 0-.273.42c-.089.166-.157.344-.294.699zm0 0 2.058-5.351c.147-.383.221-.575.347-.662a.5.5 0 0 1 .38-.08c.15.028.295.173.585.463l2.26 2.26c.29.29.435.434.464.585a.5.5 0 0 1-.08.38c-.089.126-.28.2-.663.347z"},null,-1)]))}const wu={render:Eu},Au={beforeMount:(n,e)=>{n.clickOutsideEvent=t=>{n===t.target||n.contains(t.target)||e.value()},document.addEventListener("click",n.clickOutsideEvent)},unmounted:n=>{document.removeEventListener("click",n.clickOutsideEvent)}},Su={class:"relative z-50"},Tu={key:0,class:"absolute -left-60 top-6 w-[240px] rounded-lg border border-gray-200 bg-white text-sm"},is=Object.assign({directives:{clickOutside:Au}},{__name:"ActionMenu",props:{enableEdit:{type:Boolean,default:!1}},emits:["removeItem"],setup(n,{emit:e}){const t=i.ref(!1),r=e,s=()=>{t.value&&(t.value=!1)},l=()=>{r("removeItem"),t.value=!1},a=()=>{r("editItem"),t.value=!1};return(c,o)=>{const u=i.resolveDirective("click-outside");return i.withDirectives((i.openBlock(),i.createElementBlock("div",Su,[i.createElementVNode("div",{class:"cursor-pointer text-gray-600 rounded-full hover:bg-gray-50 p-2.5 block",onClick:o[0]||(o[0]=d=>t.value=!t.value)},[i.createVNode(i.unref(yu),{class:"w-5"})]),t.value?(i.openBlock(),i.createElementBlock("div",Tu,[n.enableEdit?(i.openBlock(),i.createElementBlock("a",{key:0,class:"flex items-center gap-2 px-2.5 cursor-pointer h-[48px] w-auto hover:bg-gray-100 rounded-lg m-1.5 text-gray-700",onClick:a},[i.createVNode(i.unref(wu),{class:"w-4 text-gray-500"}),o[1]||(o[1]=i.createElementVNode("span",{class:"font-medium"}," Edit ",-1))])):i.createCommentVNode("",!0),i.createElementVNode("a",{class:"flex items-center gap-2 px-2.5 cursor-pointer h-[48px] w-auto hover:bg-gray-100 rounded-lg m-1.5 text-gray-700",onClick:l},[i.createVNode(i.unref(Hi),{class:"w-4 text-gray-500"}),o[2]||(o[2]=i.createElementVNode("span",{class:"font-medium"}," Delete ",-1))])])):i.createCommentVNode("",!0)])),[[u,s]])}}}),Nu={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function ku(n,e){return i.openBlock(),i.createElementBlock("svg",Nu,e[0]||(e[0]=[i.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M18 6 6 18M6 6l12 12"},null,-1)]))}const Cu={render:ku},Ou={key:0,class:"fixed min-w-[400px] left-1/2 top-1/2 z-50 flex max-h-screen -translate-x-1/2 -translate-y-1/2 transform flex-col rounded-xl border-tertiary-500 bg-white"},Ru={class:"p-6 flex justify-between flex-col"},Iu={class:"flex justify-between"},Lu={class:"p-2 rounded-full border-8 border-error-50 bg-error-100 text-error-600"},Bu={class:"text-lg font-semibold text-gray-900 pb-2 pt-4"},Pu={class:"text-sm text-gray-600 pb-4"},Fu={class:"flex justify-between space-x-xsSpace pt-xsSpace gap-4"},Mu=["textContent"],Du=["textContent"],as=Zn(i.defineComponent({__name:"VModal",props:{entity:{type:String,required:!0},callback:{type:Function,required:!1,default:()=>{}}},setup(n,{expose:e}){const t=n,r=i.ref(!1),s=i.reactive({cancelTitle:null,confirmTitle:null,scrollable:!0,data:null}),l=i.computed(()=>s.cancelTitle?s.cancelTitle:"Cancel"),a=i.computed(()=>s.confirmTitle?s.confirmTitle:"Delete"),c=d=>{r.value=!0,s.data=d},o=()=>{r.value=!1},u=async()=>{t.callback(s.data),r.value=!1};return e({open:c,close:o}),(d,h)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass([{"-open":r.value},"v-modal"])},[i.createVNode(i.Transition,{name:"fade"},{default:i.withCtx(()=>[r.value?(i.openBlock(),i.createElementBlock("div",Ou,[i.renderSlot(d.$slots,"default",{},()=>[i.createElementVNode("div",{class:i.normalizeClass(["relative min-h-[260px] overflow-y-auto flex",{"overflow-y-visible":!d.scrollable}])},[i.createElementVNode("div",Ru,[i.createElementVNode("div",null,[i.createElementVNode("div",Iu,[i.createElementVNode("span",Lu,[i.createVNode(i.unref(Hi),{class:"w-6 h-6"})]),i.createVNode(i.unref(Cu),{class:"w-6 h-6 text-gray-400 hover:bg-gray-100 rounded-md cursor-pointer",onClick:o})]),i.createElementVNode("h4",Bu,"Delete this "+i.toDisplayString(n.entity)+"?",1),i.createElementVNode("p",Pu,"Do you want to delete this "+i.toDisplayString(n.entity)+"? This action cannot be undone.",1)]),i.createElementVNode("div",Fu,[i.createElementVNode("a",{onClick:o,class:"w-1/2 py-[9px] rounded-full border border-gray-300 shadow-xs text-md font-semibold hover:bg-gray-100 text-gray-700 text-center cursor-pointer",textContent:i.toDisplayString(l.value)},null,8,Mu),i.createElementVNode("a",{onClick:i.withModifiers(u,["prevent"]),class:"w-1/2 py-[9px] rounded-full shadow-xs text-md font-semibold text-white bg-error-600 hover:bg-error-700 border border-error-600 text-center cursor-pointer",textContent:i.toDisplayString(a.value)},null,8,Du)])])],2)],!0)])):i.createCommentVNode("",!0)]),_:3})],2))}}),[["__scopeId","data-v-0ca1257f"]]),Uu={class:"flex justify-between pb-2"},_u={class:"text-lg font-semibold text-gray-900"},Vu={class:"flex flex-col gap-4"},ju={class:"text-gray-600 border-b border-gray-200 pb-4 text-sm"},$u={class:"flex flex-col gap-3"},qu={class:"flex justify-between"},zu={class:"flex flex-col gap-1"},Hu={class:"font-semibold text-gray-900"},Gu={class:"text-sm text-gray-600"},Wu=["disabled"],Ku={class:"flex flex-col gap-3"},Xu=["onClick"],Yu=["onClick"],Zu={class:"text-xs text-gray-600"},Ju={class:"text-sm font-medium text-gray-900"},Gi={__name:"VItems",props:{...Ln},emits:["update"],setup(n,{emit:e}){const t=e,r=n,s=i.ref(r.data.component),l=s.value.type,a=i.ref(null),c=`${l.value}-openItemStates`,o=i.ref(JSON.parse(window.localStorage.getItem(c)));o.value||(o.value={},s.value.data.forEach((p,y)=>{o.value[y]=!1}),window.localStorage.setItem(c,JSON.stringify(o.value)));const u=p=>{Object.keys(o.value).forEach(y=>{o.value[y]=!1}),o.value[p]=!o.value[p],window.localStorage.setItem(c,JSON.stringify(o.value))},d=()=>{s.value.data.push(hu({},l==="sliders")),t("update",!1)},h=p=>{var y;(y=a==null?void 0:a.value)==null||y.open(p)},f=p=>{s.value.data.splice(p,1),t("update",!1)},m=(p,y)=>{var b,A,T,O;p.hasOwnProperty("edit_url")&&(window.location.href=p.edit_url),window.location.href=`/admin/pages/${(A=(b=r==null?void 0:r.data)==null?void 0:b.page)==null?void 0:A.id}/sections/${(T=r==null?void 0:r.data)==null?void 0:T.sectionIndex}/components/${(O=r==null?void 0:r.data)==null?void 0:O.componentIndex}/items/${y}`};return(p,y)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",Uu,[i.createElementVNode("p",_u,i.toDisplayString(s.value.name),1)]),i.createElementVNode("div",Vu,[i.createElementVNode("div",ju,i.toDisplayString(s.value.supportive_text),1),i.createElementVNode("div",$u,[i.createElementVNode("div",qu,[i.createElementVNode("div",zu,[i.createElementVNode("div",Hu,i.toDisplayString(i.unref(ao)(i.unref(l))),1),i.createElementVNode("div",Gu,"This "+i.toDisplayString(i.unref(io)(i.unref(l)))+" can contain up to "+i.toDisplayString(s.value.max_items)+" "+i.toDisplayString(i.unref(ao)(i.unref(l),!1)),1)]),i.createElementVNode("div",null,[i.createElementVNode("button",{disabled:s.value.data.length>=s.value.max_items,onClick:d,type:"button",class:i.normalizeClass(["text-sm cursor-pointer flex items-center justify-center gap-1 rounded-[99px] border border-brand-600 bg-brand-500 px-3.5 py-2 font-semibold text-white hover:bg-brand-600",{"border-gray-100 bg-gray-100 !text-gray-400 hover:bg-gray-100":s.value.data.length>=s.value.max_items}])},[i.createVNode(i.unref(kr),{class:"h-5 w-5"}),y[0]||(y[0]=i.createElementVNode("span",null,"Add",-1))],10,Wu)])]),i.createElementVNode("div",Ku,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value.data,(b,A)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["flex items-center gap-4 px-2 py-1 hover:bg-gray-100 rounded-lg",{"bg-gray-200 hover:bg-gray-200":o.value[A]}])},[i.createElementVNode("div",{class:"flex flex-1 items-center justify-between relative",onClick:T=>{u(A)}},[i.createElementVNode("div",{class:"flex flex-1 flex-col cursor-pointer",onClick:T=>m(b,A)},[i.createElementVNode("div",Zu,i.toDisplayString(i.unref(io)(i.unref(ao)(i.unref(l))))+" #"+i.toDisplayString(A+1),1),i.createElementVNode("div",Ju,i.toDisplayString(b.title),1)],8,Yu),i.createVNode(is,{onRemoveItem:T=>h(A),"enable-edit":!0,onEditItem:T=>m(b,A)},null,8,["onRemoveItem","onEditItem"])],8,Xu)],2))),256))])])]),i.createVNode(as,{ref_key:"modalRef",ref:a,entity:i.unref(io)(i.unref(l)),callback:f},null,8,["entity"])],64))}},Qu=["for"],ed={key:0,class:"v-field-label inline-block mb-2"},td={key:0},nd={key:1,class:"absolute right-0 -bottom-6 text-sm text-gray-600 font-normal"},rd={key:2,class:"absolute left-0 -bottom-6 text-sm text-gray-600 font-normal"},_t={__name:"InputWrapper",props:{field:{type:String,required:!0},labelText:{type:String,default:""},value:{type:[String,Number],default:""},limit:{type:Number,default:null},showCount:{type:Boolean,default:!1},darkTheme:{type:Boolean,default:!1},isRequired:{type:Boolean,default:!1}},setup(n){return(e,t)=>{var r;return i.openBlock(),i.createElementBlock("label",{for:n.field,class:"block space-y-2xsSpace text-sm font-medium leading-none text-gray-700 relative"},[n.labelText||e.$slots.label?(i.openBlock(),i.createElementBlock("span",ed,[e.$slots.label?i.renderSlot(e.$slots,"label",{key:0}):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(i.toDisplayString(n.labelText)+" ",1),n.isRequired?(i.openBlock(),i.createElementBlock("span",td," *")):i.createCommentVNode("",!0)],64))])):i.createCommentVNode("",!0),i.renderSlot(e.$slots,"default"),n.limit?(i.openBlock(),i.createElementBlock("span",nd,i.toDisplayString((r=n.value)==null?void 0:r.length)+"/"+i.toDisplayString(n.limit)+" characters ",1)):i.createCommentVNode("",!0),n.showCount?(i.openBlock(),i.createElementBlock("span",rd," Word count: "+i.toDisplayString(n.value),1)):i.createCommentVNode("",!0)],8,Qu)}}},sd={class:"flex items-center gap-2"},od=["aria-checked"],id={key:0,class:"text-sm text-gray-700 font-medium"},Cr={__name:"VToggle",props:{modelValue:{type:[Number,Boolean]},title:{type:String},isDisabled:{type:Boolean},small:{type:Boolean},ring:{type:Boolean}},emits:"update:modelValue",setup(n,{emit:e}){const t=n,r=e,s=i.computed(()=>({"!bg-brand-700 hover:!bg-brand-700":t.modelValue,"!h-3 !w-6":t.small,"focus:outline-none focus:ring-2 focus:ring-brand-700 focus:ring-offset-2":t.ring!==!1})),l=()=>{t.isDisabled||r("update:modelValue",!t.modelValue)};return(a,c)=>(i.openBlock(),i.createElementBlock("div",sd,[i.createElementVNode("button",{type:"button",class:i.normalizeClass(["relative inline-flex h-5 w-10 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent bg-gray-100 transition-colors duration-200 ease-in-out",s.value]),role:"switch","aria-checked":n.modelValue,onClick:l},[i.createElementVNode("span",{"aria-hidden":"true",class:i.normalizeClass(["pointer-events-none inline-block h-4 w-4 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out",{"translate-x-5":n.modelValue,"translate-x-0":!n.modelValue,"!translate-x-3":n.small&&n.modelValue,"!h-2 !w-2":n.small}])},null,2)],10,od),n.title?(i.openBlock(),i.createElementBlock("span",id,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)]))}},ad={class:"flex flex-col gap-2"},ld=["value"],cd={__name:"SiteContent",props:i.mergeModels({sites:{type:Object,required:!0},errors:{type:Object,required:!1,default:()=>({})}},{url:{},urlModifiers:{}}),emits:["update:url"],setup(n){const e=i.useModel(n,"url");return(t,r)=>(i.openBlock(),i.createElementBlock("div",ad,[r[1]||(r[1]=i.createElementVNode("label",{class:"text-sm font-medium text-gray-700"},"Select a page from the site*",-1)),i.withDirectives(i.createElementVNode("select",{"onUpdate:modelValue":r[0]||(r[0]=s=>e.value=s),name:"url"},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.sites,s=>(i.openBlock(),i.createElementBlock("option",{value:s.href},i.toDisplayString(s.name),9,ld))),256))],512),[[i.vModelSelect,e.value]])]))}},ud={__name:"ExternalPage",props:{url:{},urlModifiers:{}},emits:["update:url"],setup(n){const e=i.useModel(n,"url");return(t,r)=>(i.openBlock(),i.createBlock(_t,{"is-vertical":"",field:"title","label-text":"URL *",class:"w-full"},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":r[0]||(r[0]=s=>e.value=s),name:"title",type:"text",placeholder:"Enter your url",class:"border-1 border-solid border-gray-300 rounded-lg bg-white w-full"},null,512),[[i.vModelText,e.value]])]),_:1}))}},dd={class:"flex flex-col gap-5"},fd={key:0,class:"text-sm text-gray-700 font-medium py-2"},hd={class:"text-sm flex items-center gap-6 font-medium text-gray-700"},pd={class:"flex items-center gap-2 cursor-pointer"},md=["name","value","disabled"],gd={class:"flex flex-col gap-2"},yd=["value"],vd={class:"flex items-center gap-2"},Or={__name:"LinkedTo",props:i.mergeModels({label:{type:String,required:!1},sites:{type:Object,required:!0},name:{type:String,required:!0},options:{type:Array,required:!1,default:["site-content","external-page"]}},{type:{default:"site-content"},typeModifiers:{},url:{},urlModifiers:{},openInNewTab:{},openInNewTabModifiers:{}}),emits:["update:type","update:url","update:openInNewTab"],setup(n){const e=i.useModel(n,"type"),t=i.useModel(n,"url"),r=i.useModel(n,"openInNewTab"),s=a=>a.split("-").map(c=>c.charAt(0).toUpperCase()+c.slice(1)).join(" "),l=a=>({"site-content":cd,"external-page":ud})[a]||null;return(a,c)=>(i.openBlock(),i.createElementBlock("div",dd,[i.createElementVNode("div",null,[n.label?(i.openBlock(),i.createElementBlock("p",fd,i.toDisplayString(n.label),1)):i.createCommentVNode("",!0),i.createElementVNode("div",hd,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.options,o=>(i.openBlock(),i.createElementBlock("label",pd,[i.withDirectives(i.createElementVNode("input",{name:n.name,type:"radio",value:o,"onUpdate:modelValue":c[0]||(c[0]=u=>e.value=u),class:"checked:bg-brand-600 hover:bg-brand-600 checked:hover:bg-brand-600 focus:bg-brand-600 focus:ring-brand-600 focus:checked:bg-brand-600 rounded-full",disabled:o==="form"},null,8,md),[[i.vModelRadio,e.value]]),i.createElementVNode("span",null,i.toDisplayString(s(o)),1)]))),256))])]),i.createElementVNode("div",gd,[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(l(e.value)),{url:t.value,"onUpdate:url":c[1]||(c[1]=o=>t.value=o),sites:n.sites},null,40,["url","sites"])),i.createElementVNode("input",{type:"hidden",name:"url",value:t.value},null,8,yd)]),i.createElementVNode("div",vd,[i.createVNode(Cr,{class:"mb-1",name:"open_in_new_tab",modelValue:r.value,"onUpdate:modelValue":c[2]||(c[2]=o=>r.value=o),title:"Open in a new tab"},null,8,["modelValue"])])]))}},bd={class:"flex justify-between pb-2"},xd={class:"flex justify-between w-full py-1"},Ed={class:"text-lg font-semibold text-gray-900"},wd={class:"text-sm text-gray-600 mt-1"},Ad={class:"flex flex-col gap-3"},Sd={class:"flex items-center justify-between"},Td={class:"text-lg font-semibold text-gray-900"},Nd={class:"relative flex items-end"},kd={class:"flex flex-col gap-6"},Cd={class:"flex flex-col gap-1.5"},Od=["onUpdate:modelValue"],Wi={__name:"VLinks",props:{...Ln},emits:["update"],setup(n,{emit:e}){const t=e,r=n,s=i.ref(r.data.component),l=i.ref(null),a=i.ref(null),c=i.ref(null);function o(){var h,f;s.value.hasOwnProperty("data")||(s.value.data=[]),!(((h=s.value.data)==null?void 0:h.length)>=s.value.max_items)&&((f=s.value.data)==null||f.push(pu()),i.nextTick(()=>{a.value&&a.value.scrollIntoView({behavior:"smooth"})}),t("update",!1))}const u=h=>{var f;c.value=h,(f=l==null?void 0:l.value)==null||f.open(h)},d=h=>{var f;(f=s.value.data)==null||f.splice(h,1),t("update",!1)};return(h,f)=>{var m;return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",bd,[i.createElementVNode("div",xd,[i.createElementVNode("div",null,[i.createElementVNode("p",Ed,i.toDisplayString(s.value.name),1),i.createElementVNode("p",wd,i.toDisplayString(s.value.supportive_text),1)]),i.createElementVNode("div",null,[i.createElementVNode("a",{onClick:o,class:i.normalizeClass(["text-sm cursor-pointer flex items-center justify-center gap-1 rounded-[99px] border border-brand-600 bg-brand-500 px-3.5 py-2 font-semibold text-white hover:bg-brand-600",{"border-gray-100 bg-gray-100 !text-gray-400 hover:bg-gray-100":((m=s.value.data)==null?void 0:m.length)>=s.value.max_items}])},[i.createVNode(i.unref(kr),{class:"h-5 w-5"}),f[0]||(f[0]=i.createElementVNode("span",null,"Add",-1))],2)])])]),i.createElementVNode("div",Ad,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value.data,(p,y)=>(i.openBlock(),i.createElementBlock("div",{class:"flex flex-col gap-4 rounded-xl px-6 py-4 bg-gray-200",key:y,ref_for:!0,ref:y===s.value.data.length-1?b=>a.value=b:null},[i.createElementVNode("div",Sd,[i.createElementVNode("div",Td," Link #"+i.toDisplayString(y+1),1),i.createElementVNode("div",Nd,[i.createVNode(is,{onRemoveItem:b=>u(y)},null,8,["onRemoveItem"])])]),i.createElementVNode("div",kd,[i.createElementVNode("div",Cd,[i.createVNode(_t,{"is-vertical":"",field:"title","label-text":"Title *",class:"w-full mb-4",value:p.title,limit:20},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":b=>p.title=b,name:"title",type:"text",placeholder:"Title",maxlength:20,class:"border-1 border-solid border-gray-300 rounded-lg bg-white w-full"},null,8,Od),[[i.vModelText,p.title]])]),_:2},1032,["value"]),i.createVNode(Or,{label:"Linked to",name:`link_${y+1}`,type:p.type,"onUpdate:type":b=>p.type=b,url:p.url,"onUpdate:url":b=>p.url=b,openInNewTab:p.open_in_new_tab,"onUpdate:openInNewTab":b=>p.open_in_new_tab=b,sites:h.sites},null,8,["name","type","onUpdate:type","url","onUpdate:url","openInNewTab","onUpdate:openInNewTab","sites"])])])]))),128))]),i.createVNode(as,{ref_key:"modalRef",ref:l,entity:"link",callback:d},null,512)],64)}}},Rd={class:"flex flex-col gap-4"},Id={class:"text-lg font-semibold text-gray-900 border-b border-gray-200 pb-4"},Ld=["maxlength"],Bd={__name:"VHeader",props:{...Ln},emits:["update"],setup(n,{emit:e}){const t=n,r=i.ref(t.data.component);return(s,l)=>(i.openBlock(),i.createElementBlock("div",Rd,[i.createElementVNode("p",Id,i.toDisplayString(r.value.name),1),r.value.hasOwnProperty("title")?(i.openBlock(),i.createBlock(_t,{key:0,"is-vertical":"",field:"title","label-text":"Title *",class:"w-full mb-4",value:r.value.title,limit:51},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":l[0]||(l[0]=a=>r.value.title=a),name:"title",type:"text",placeholder:"Title",maxlength:51,class:"border-1 border-solid border-gray-300 rounded-lg bg-white w-full"},null,512),[[i.vModelText,r.value.title]])]),_:1},8,["value"])):i.createCommentVNode("",!0),r.value.hasOwnProperty("supporting_text")?(i.openBlock(),i.createBlock(_t,{key:1,"is-vertical":"",field:"supporting_text","label-text":"Supporting Text *",class:"w-full mb-4",value:r.value.supporting_text,limit:r.value.supporting_text_max_length??100},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":l[1]||(l[1]=a=>r.value.supporting_text=a),name:"supporting_text",type:"text",placeholder:"Supporting Text",maxlength:r.value.supporting_text_max_length??100,class:"border-1 border-solid border-gray-300 rounded-lg bg-white w-full"},null,8,Ld),[[i.vModelText,r.value.supporting_text]])]),_:1},8,["value","limit"])):i.createCommentVNode("",!0)]))}};function Ki(n,e){return function(){return n.apply(e,arguments)}}const{toString:Pd}=Object.prototype,{getPrototypeOf:lo}=Object,{iterator:ls,toStringTag:Xi}=Symbol,cs=(n=>e=>{const t=Pd.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),Vt=n=>(n=n.toLowerCase(),e=>cs(e)===n),us=n=>e=>typeof e===n,{isArray:Jn}=Array,Rr=us("undefined");function Fd(n){return n!==null&&!Rr(n)&&n.constructor!==null&&!Rr(n.constructor)&&Tt(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const Yi=Vt("ArrayBuffer");function Md(n){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(n):e=n&&n.buffer&&Yi(n.buffer),e}const Dd=us("string"),Tt=us("function"),Zi=us("number"),ds=n=>n!==null&&typeof n=="object",Ud=n=>n===!0||n===!1,fs=n=>{if(cs(n)!=="object")return!1;const e=lo(n);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Xi in n)&&!(ls in n)},_d=Vt("Date"),Vd=Vt("File"),jd=Vt("Blob"),$d=Vt("FileList"),qd=n=>ds(n)&&Tt(n.pipe),zd=n=>{let e;return n&&(typeof FormData=="function"&&n instanceof FormData||Tt(n.append)&&((e=cs(n))==="formdata"||e==="object"&&Tt(n.toString)&&n.toString()==="[object FormData]"))},Hd=Vt("URLSearchParams"),[Gd,Wd,Kd,Xd]=["ReadableStream","Request","Response","Headers"].map(Vt),Yd=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ir(n,e,{allOwnKeys:t=!1}={}){if(n===null||typeof n>"u")return;let r,s;if(typeof n!="object"&&(n=[n]),Jn(n))for(r=0,s=n.length;r<s;r++)e.call(null,n[r],r,n);else{const l=t?Object.getOwnPropertyNames(n):Object.keys(n),a=l.length;let c;for(r=0;r<a;r++)c=l[r],e.call(null,n[c],c,n)}}function Ji(n,e){e=e.toLowerCase();const t=Object.keys(n);let r=t.length,s;for(;r-- >0;)if(s=t[r],e===s.toLowerCase())return s;return null}const Bn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Qi=n=>!Rr(n)&&n!==Bn;function co(){const{caseless:n}=Qi(this)&&this||{},e={},t=(r,s)=>{const l=n&&Ji(e,s)||s;fs(e[l])&&fs(r)?e[l]=co(e[l],r):fs(r)?e[l]=co({},r):Jn(r)?e[l]=r.slice():e[l]=r};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&Ir(arguments[r],t);return e}const Zd=(n,e,t,{allOwnKeys:r}={})=>(Ir(e,(s,l)=>{t&&Tt(s)?n[l]=Ki(s,t):n[l]=s},{allOwnKeys:r}),n),Jd=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),Qd=(n,e,t,r)=>{n.prototype=Object.create(e.prototype,r),n.prototype.constructor=n,Object.defineProperty(n,"super",{value:e.prototype}),t&&Object.assign(n.prototype,t)},ef=(n,e,t,r)=>{let s,l,a;const c={};if(e=e||{},n==null)return e;do{for(s=Object.getOwnPropertyNames(n),l=s.length;l-- >0;)a=s[l],(!r||r(a,n,e))&&!c[a]&&(e[a]=n[a],c[a]=!0);n=t!==!1&&lo(n)}while(n&&(!t||t(n,e))&&n!==Object.prototype);return e},tf=(n,e,t)=>{n=String(n),(t===void 0||t>n.length)&&(t=n.length),t-=e.length;const r=n.indexOf(e,t);return r!==-1&&r===t},nf=n=>{if(!n)return null;if(Jn(n))return n;let e=n.length;if(!Zi(e))return null;const t=new Array(e);for(;e-- >0;)t[e]=n[e];return t},rf=(n=>e=>n&&e instanceof n)(typeof Uint8Array<"u"&&lo(Uint8Array)),sf=(n,e)=>{const r=(n&&n[ls]).call(n);let s;for(;(s=r.next())&&!s.done;){const l=s.value;e.call(n,l[0],l[1])}},of=(n,e)=>{let t;const r=[];for(;(t=n.exec(e))!==null;)r.push(t);return r},af=Vt("HTMLFormElement"),lf=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,r,s){return r.toUpperCase()+s}),ea=(({hasOwnProperty:n})=>(e,t)=>n.call(e,t))(Object.prototype),cf=Vt("RegExp"),ta=(n,e)=>{const t=Object.getOwnPropertyDescriptors(n),r={};Ir(t,(s,l)=>{let a;(a=e(s,l,n))!==!1&&(r[l]=a||s)}),Object.defineProperties(n,r)},uf=n=>{ta(n,(e,t)=>{if(Tt(n)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const r=n[t];if(Tt(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},df=(n,e)=>{const t={},r=s=>{s.forEach(l=>{t[l]=!0})};return Jn(n)?r(n):r(String(n).split(e)),t},ff=()=>{},hf=(n,e)=>n!=null&&Number.isFinite(n=+n)?n:e;function pf(n){return!!(n&&Tt(n.append)&&n[Xi]==="FormData"&&n[ls])}const mf=n=>{const e=new Array(10),t=(r,s)=>{if(ds(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[s]=r;const l=Jn(r)?[]:{};return Ir(r,(a,c)=>{const o=t(a,s+1);!Rr(o)&&(l[c]=o)}),e[s]=void 0,l}}return r};return t(n,0)},gf=Vt("AsyncFunction"),yf=n=>n&&(ds(n)||Tt(n))&&Tt(n.then)&&Tt(n.catch),na=((n,e)=>n?setImmediate:e?((t,r)=>(Bn.addEventListener("message",({source:s,data:l})=>{s===Bn&&l===t&&r.length&&r.shift()()},!1),s=>{r.push(s),Bn.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t))(typeof setImmediate=="function",Tt(Bn.postMessage)),vf=typeof queueMicrotask<"u"?queueMicrotask.bind(Bn):typeof process<"u"&&process.nextTick||na,ee={isArray:Jn,isArrayBuffer:Yi,isBuffer:Fd,isFormData:zd,isArrayBufferView:Md,isString:Dd,isNumber:Zi,isBoolean:Ud,isObject:ds,isPlainObject:fs,isReadableStream:Gd,isRequest:Wd,isResponse:Kd,isHeaders:Xd,isUndefined:Rr,isDate:_d,isFile:Vd,isBlob:jd,isRegExp:cf,isFunction:Tt,isStream:qd,isURLSearchParams:Hd,isTypedArray:rf,isFileList:$d,forEach:Ir,merge:co,extend:Zd,trim:Yd,stripBOM:Jd,inherits:Qd,toFlatObject:ef,kindOf:cs,kindOfTest:Vt,endsWith:tf,toArray:nf,forEachEntry:sf,matchAll:of,isHTMLForm:af,hasOwnProperty:ea,hasOwnProp:ea,reduceDescriptors:ta,freezeMethods:uf,toObjectSet:df,toCamelCase:lf,noop:ff,toFiniteNumber:hf,findKey:Ji,global:Bn,isContextDefined:Qi,isSpecCompliantForm:pf,toJSONObject:mf,isAsyncFn:gf,isThenable:yf,setImmediate:na,asap:vf,isIterable:n=>n!=null&&Tt(n[ls])};function Me(n,e,t,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=n,this.name="AxiosError",e&&(this.code=e),t&&(this.config=t),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}ee.inherits(Me,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ee.toJSONObject(this.config),code:this.code,status:this.status}}});const ra=Me.prototype,sa={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(n=>{sa[n]={value:n}}),Object.defineProperties(Me,sa),Object.defineProperty(ra,"isAxiosError",{value:!0}),Me.from=(n,e,t,r,s,l)=>{const a=Object.create(ra);return ee.toFlatObject(n,a,function(o){return o!==Error.prototype},c=>c!=="isAxiosError"),Me.call(a,n.message,e,t,r,s),a.cause=n,a.name=n.name,l&&Object.assign(a,l),a};const bf=null;function uo(n){return ee.isPlainObject(n)||ee.isArray(n)}function oa(n){return ee.endsWith(n,"[]")?n.slice(0,-2):n}function ia(n,e,t){return n?n.concat(e).map(function(s,l){return s=oa(s),!t&&l?"["+s+"]":s}).join(t?".":""):e}function xf(n){return ee.isArray(n)&&!n.some(uo)}const Ef=ee.toFlatObject(ee,{},null,function(e){return/^is[A-Z]/.test(e)});function hs(n,e,t){if(!ee.isObject(n))throw new TypeError("target must be an object");e=e||new FormData,t=ee.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,b){return!ee.isUndefined(b[y])});const r=t.metaTokens,s=t.visitor||d,l=t.dots,a=t.indexes,o=(t.Blob||typeof Blob<"u"&&Blob)&&ee.isSpecCompliantForm(e);if(!ee.isFunction(s))throw new TypeError("visitor must be a function");function u(p){if(p===null)return"";if(ee.isDate(p))return p.toISOString();if(!o&&ee.isBlob(p))throw new Me("Blob is not supported. Use a Buffer instead.");return ee.isArrayBuffer(p)||ee.isTypedArray(p)?o&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function d(p,y,b){let A=p;if(p&&!b&&typeof p=="object"){if(ee.endsWith(y,"{}"))y=r?y:y.slice(0,-2),p=JSON.stringify(p);else if(ee.isArray(p)&&xf(p)||(ee.isFileList(p)||ee.endsWith(y,"[]"))&&(A=ee.toArray(p)))return y=oa(y),A.forEach(function(O,F){!(ee.isUndefined(O)||O===null)&&e.append(a===!0?ia([y],F,l):a===null?y:y+"[]",u(O))}),!1}return uo(p)?!0:(e.append(ia(b,y,l),u(p)),!1)}const h=[],f=Object.assign(Ef,{defaultVisitor:d,convertValue:u,isVisitable:uo});function m(p,y){if(!ee.isUndefined(p)){if(h.indexOf(p)!==-1)throw Error("Circular reference detected in "+y.join("."));h.push(p),ee.forEach(p,function(A,T){(!(ee.isUndefined(A)||A===null)&&s.call(e,A,ee.isString(T)?T.trim():T,y,f))===!0&&m(A,y?y.concat(T):[T])}),h.pop()}}if(!ee.isObject(n))throw new TypeError("data must be an object");return m(n),e}function aa(n){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function fo(n,e){this._pairs=[],n&&hs(n,this,e)}const la=fo.prototype;la.append=function(e,t){this._pairs.push([e,t])},la.toString=function(e){const t=e?function(r){return e.call(this,r,aa)}:aa;return this._pairs.map(function(s){return t(s[0])+"="+t(s[1])},"").join("&")};function wf(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ca(n,e,t){if(!e)return n;const r=t&&t.encode||wf;ee.isFunction(t)&&(t={serialize:t});const s=t&&t.serialize;let l;if(s?l=s(e,t):l=ee.isURLSearchParams(e)?e.toString():new fo(e,t).toString(r),l){const a=n.indexOf("#");a!==-1&&(n=n.slice(0,a)),n+=(n.indexOf("?")===-1?"?":"&")+l}return n}class ua{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){ee.forEach(this.handlers,function(r){r!==null&&e(r)})}}const da={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Af={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:fo,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},ho=typeof window<"u"&&typeof document<"u",po=typeof navigator=="object"&&navigator||void 0,Sf=ho&&(!po||["ReactNative","NativeScript","NS"].indexOf(po.product)<0),Tf=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Nf=ho&&window.location.href||"http://localhost",gt={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ho,hasStandardBrowserEnv:Sf,hasStandardBrowserWebWorkerEnv:Tf,navigator:po,origin:Nf},Symbol.toStringTag,{value:"Module"})),...Af};function kf(n,e){return hs(n,new gt.classes.URLSearchParams,Object.assign({visitor:function(t,r,s,l){return gt.isNode&&ee.isBuffer(t)?(this.append(r,t.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)}},e))}function Cf(n){return ee.matchAll(/\w+|\[(\w*)]/g,n).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Of(n){const e={},t=Object.keys(n);let r;const s=t.length;let l;for(r=0;r<s;r++)l=t[r],e[l]=n[l];return e}function fa(n){function e(t,r,s,l){let a=t[l++];if(a==="__proto__")return!0;const c=Number.isFinite(+a),o=l>=t.length;return a=!a&&ee.isArray(s)?s.length:a,o?(ee.hasOwnProp(s,a)?s[a]=[s[a],r]:s[a]=r,!c):((!s[a]||!ee.isObject(s[a]))&&(s[a]=[]),e(t,r,s[a],l)&&ee.isArray(s[a])&&(s[a]=Of(s[a])),!c)}if(ee.isFormData(n)&&ee.isFunction(n.entries)){const t={};return ee.forEachEntry(n,(r,s)=>{e(Cf(r),s,t,0)}),t}return null}function Rf(n,e,t){if(ee.isString(n))try{return(e||JSON.parse)(n),ee.trim(n)}catch(r){if(r.name!=="SyntaxError")throw r}return(t||JSON.stringify)(n)}const Lr={transitional:da,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",s=r.indexOf("application/json")>-1,l=ee.isObject(e);if(l&&ee.isHTMLForm(e)&&(e=new FormData(e)),ee.isFormData(e))return s?JSON.stringify(fa(e)):e;if(ee.isArrayBuffer(e)||ee.isBuffer(e)||ee.isStream(e)||ee.isFile(e)||ee.isBlob(e)||ee.isReadableStream(e))return e;if(ee.isArrayBufferView(e))return e.buffer;if(ee.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let c;if(l){if(r.indexOf("application/x-www-form-urlencoded")>-1)return kf(e,this.formSerializer).toString();if((c=ee.isFileList(e))||r.indexOf("multipart/form-data")>-1){const o=this.env&&this.env.FormData;return hs(c?{"files[]":e}:e,o&&new o,this.formSerializer)}}return l||s?(t.setContentType("application/json",!1),Rf(e)):e}],transformResponse:[function(e){const t=this.transitional||Lr.transitional,r=t&&t.forcedJSONParsing,s=this.responseType==="json";if(ee.isResponse(e)||ee.isReadableStream(e))return e;if(e&&ee.isString(e)&&(r&&!this.responseType||s)){const a=!(t&&t.silentJSONParsing)&&s;try{return JSON.parse(e)}catch(c){if(a)throw c.name==="SyntaxError"?Me.from(c,Me.ERR_BAD_RESPONSE,this,null,this.response):c}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:gt.classes.FormData,Blob:gt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ee.forEach(["delete","get","head","post","put","patch"],n=>{Lr.headers[n]={}});const If=ee.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Lf=n=>{const e={};let t,r,s;return n&&n.split(`
2
2
  `).forEach(function(a){s=a.indexOf(":"),t=a.substring(0,s).trim().toLowerCase(),r=a.substring(s+1).trim(),!(!t||e[t]&&If[t])&&(t==="set-cookie"?e[t]?e[t].push(r):e[t]=[r]:e[t]=e[t]?e[t]+", "+r:r)}),e},ha=Symbol("internals");function Br(n){return n&&String(n).trim().toLowerCase()}function ps(n){return n===!1||n==null?n:ee.isArray(n)?n.map(ps):String(n)}function Bf(n){const e=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=t.exec(n);)e[r[1]]=r[2];return e}const Pf=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function mo(n,e,t,r,s){if(ee.isFunction(r))return r.call(this,e,t);if(s&&(e=t),!!ee.isString(e)){if(ee.isString(r))return e.indexOf(r)!==-1;if(ee.isRegExp(r))return r.test(e)}}function Ff(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r)}function Mf(n,e){const t=ee.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(n,r+t,{value:function(s,l,a){return this[r].call(this,e,s,l,a)},configurable:!0})})}let Nt=class{constructor(e){e&&this.set(e)}set(e,t,r){const s=this;function l(c,o,u){const d=Br(o);if(!d)throw new Error("header name must be a non-empty string");const h=ee.findKey(s,d);(!h||s[h]===void 0||u===!0||u===void 0&&s[h]!==!1)&&(s[h||o]=ps(c))}const a=(c,o)=>ee.forEach(c,(u,d)=>l(u,d,o));if(ee.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(ee.isString(e)&&(e=e.trim())&&!Pf(e))a(Lf(e),t);else if(ee.isObject(e)&&ee.isIterable(e)){let c={},o,u;for(const d of e){if(!ee.isArray(d))throw TypeError("Object iterator must return a key-value pair");c[u=d[0]]=(o=c[u])?ee.isArray(o)?[...o,d[1]]:[o,d[1]]:d[1]}a(c,t)}else e!=null&&l(t,e,r);return this}get(e,t){if(e=Br(e),e){const r=ee.findKey(this,e);if(r){const s=this[r];if(!t)return s;if(t===!0)return Bf(s);if(ee.isFunction(t))return t.call(this,s,r);if(ee.isRegExp(t))return t.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Br(e),e){const r=ee.findKey(this,e);return!!(r&&this[r]!==void 0&&(!t||mo(this,this[r],r,t)))}return!1}delete(e,t){const r=this;let s=!1;function l(a){if(a=Br(a),a){const c=ee.findKey(r,a);c&&(!t||mo(r,r[c],c,t))&&(delete r[c],s=!0)}}return ee.isArray(e)?e.forEach(l):l(e),s}clear(e){const t=Object.keys(this);let r=t.length,s=!1;for(;r--;){const l=t[r];(!e||mo(this,this[l],l,e,!0))&&(delete this[l],s=!0)}return s}normalize(e){const t=this,r={};return ee.forEach(this,(s,l)=>{const a=ee.findKey(r,l);if(a){t[a]=ps(s),delete t[l];return}const c=e?Ff(l):String(l).trim();c!==l&&delete t[l],t[c]=ps(s),r[c]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return ee.forEach(this,(r,s)=>{r!=null&&r!==!1&&(t[s]=e&&ee.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(`
3
- `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach(s=>r.set(s)),r}static accessor(e){const r=(this[ha]=this[ha]={accessors:{}}).accessors,s=this.prototype;function l(a){const c=Br(a);r[c]||(Mf(s,a),r[c]=!0)}return ee.isArray(e)?e.forEach(l):l(e),this}};Nt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ee.reduceDescriptors(Nt.prototype,({value:n},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:()=>n,set(r){this[t]=r}}}),ee.freezeMethods(Nt);function go(n,e){const t=this||Lr,r=e||t,s=Nt.from(r.headers);let l=r.data;return ee.forEach(n,function(c){l=c.call(t,l,s.normalize(),e?e.status:void 0)}),s.normalize(),l}function pa(n){return!!(n&&n.__CANCEL__)}function Jn(n,e,t){Me.call(this,n??"canceled",Me.ERR_CANCELED,e,t),this.name="CanceledError"}ee.inherits(Jn,Me,{__CANCEL__:!0});function ma(n,e,t){const r=t.config.validateStatus;!t.status||!r||r(t.status)?n(t):e(new Me("Request failed with status code "+t.status,[Me.ERR_BAD_REQUEST,Me.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}function Df(n){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return e&&e[1]||""}function Uf(n,e){n=n||10;const t=new Array(n),r=new Array(n);let s=0,l=0,a;return e=e!==void 0?e:1e3,function(o){const u=Date.now(),d=r[l];a||(a=u),t[s]=o,r[s]=u;let h=l,f=0;for(;h!==s;)f+=t[h++],h=h%n;if(s=(s+1)%n,s===l&&(l=(l+1)%n),u-a<e)return;const m=d&&u-d;return m?Math.round(f*1e3/m):void 0}}function _f(n,e){let t=0,r=1e3/e,s,l;const a=(u,d=Date.now())=>{t=d,s=null,l&&(clearTimeout(l),l=null),n.apply(null,u)};return[(...u)=>{const d=Date.now(),h=d-t;h>=r?a(u,d):(s=u,l||(l=setTimeout(()=>{l=null,a(s)},r-h)))},()=>s&&a(s)]}const ms=(n,e,t=3)=>{let r=0;const s=Uf(50,250);return _f(l=>{const a=l.loaded,c=l.lengthComputable?l.total:void 0,o=a-r,u=s(o),d=a<=c;r=a;const h={loaded:a,total:c,progress:c?a/c:void 0,bytes:o,rate:u||void 0,estimated:u&&c&&d?(c-a)/u:void 0,event:l,lengthComputable:c!=null,[e?"download":"upload"]:!0};n(h)},t)},ga=(n,e)=>{const t=n!=null;return[r=>e[0]({lengthComputable:t,total:n,loaded:r}),e[1]]},ya=n=>(...e)=>ee.asap(()=>n(...e)),Vf=gt.hasStandardBrowserEnv?((n,e)=>t=>(t=new URL(t,gt.origin),n.protocol===t.protocol&&n.host===t.host&&(e||n.port===t.port)))(new URL(gt.origin),gt.navigator&&/(msie|trident)/i.test(gt.navigator.userAgent)):()=>!0,jf=gt.hasStandardBrowserEnv?{write(n,e,t,r,s,l){const a=[n+"="+encodeURIComponent(e)];ee.isNumber(t)&&a.push("expires="+new Date(t).toGMTString()),ee.isString(r)&&a.push("path="+r),ee.isString(s)&&a.push("domain="+s),l===!0&&a.push("secure"),document.cookie=a.join("; ")},read(n){const e=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(n){this.write(n,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function $f(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function qf(n,e){return e?n.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):n}function va(n,e,t){let r=!$f(e);return n&&(r||t==!1)?qf(n,e):e}const ba=n=>n instanceof Nt?{...n}:n;function Pn(n,e){e=e||{};const t={};function r(u,d,h,f){return ee.isPlainObject(u)&&ee.isPlainObject(d)?ee.merge.call({caseless:f},u,d):ee.isPlainObject(d)?ee.merge({},d):ee.isArray(d)?d.slice():d}function s(u,d,h,f){if(ee.isUndefined(d)){if(!ee.isUndefined(u))return r(void 0,u,h,f)}else return r(u,d,h,f)}function l(u,d){if(!ee.isUndefined(d))return r(void 0,d)}function a(u,d){if(ee.isUndefined(d)){if(!ee.isUndefined(u))return r(void 0,u)}else return r(void 0,d)}function c(u,d,h){if(h in e)return r(u,d);if(h in n)return r(void 0,u)}const o={url:l,method:l,data:l,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:c,headers:(u,d,h)=>s(ba(u),ba(d),h,!0)};return ee.forEach(Object.keys(Object.assign({},n,e)),function(d){const h=o[d]||s,f=h(n[d],e[d],d);ee.isUndefined(f)&&h!==c||(t[d]=f)}),t}const xa=n=>{const e=Pn({},n);let{data:t,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:l,headers:a,auth:c}=e;e.headers=a=Nt.from(a),e.url=ca(va(e.baseURL,e.url,e.allowAbsoluteUrls),n.params,n.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let o;if(ee.isFormData(t)){if(gt.hasStandardBrowserEnv||gt.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((o=a.getContentType())!==!1){const[u,...d]=o?o.split(";").map(h=>h.trim()).filter(Boolean):[];a.setContentType([u||"multipart/form-data",...d].join("; "))}}if(gt.hasStandardBrowserEnv&&(r&&ee.isFunction(r)&&(r=r(e)),r||r!==!1&&Vf(e.url))){const u=s&&l&&jf.read(l);u&&a.set(s,u)}return e},zf=typeof XMLHttpRequest<"u"&&function(n){return new Promise(function(t,r){const s=xa(n);let l=s.data;const a=Nt.from(s.headers).normalize();let{responseType:c,onUploadProgress:o,onDownloadProgress:u}=s,d,h,f,m,p;function y(){m&&m(),p&&p(),s.cancelToken&&s.cancelToken.unsubscribe(d),s.signal&&s.signal.removeEventListener("abort",d)}let b=new XMLHttpRequest;b.open(s.method.toUpperCase(),s.url,!0),b.timeout=s.timeout;function A(){if(!b)return;const O=Nt.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),M={data:!c||c==="text"||c==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:O,config:n,request:b};ma(function(X){t(X),y()},function(X){r(X),y()},M),b=null}"onloadend"in b?b.onloadend=A:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)||setTimeout(A)},b.onabort=function(){b&&(r(new Me("Request aborted",Me.ECONNABORTED,n,b)),b=null)},b.onerror=function(){r(new Me("Network Error",Me.ERR_NETWORK,n,b)),b=null},b.ontimeout=function(){let F=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const M=s.transitional||da;s.timeoutErrorMessage&&(F=s.timeoutErrorMessage),r(new Me(F,M.clarifyTimeoutError?Me.ETIMEDOUT:Me.ECONNABORTED,n,b)),b=null},l===void 0&&a.setContentType(null),"setRequestHeader"in b&&ee.forEach(a.toJSON(),function(F,M){b.setRequestHeader(M,F)}),ee.isUndefined(s.withCredentials)||(b.withCredentials=!!s.withCredentials),c&&c!=="json"&&(b.responseType=s.responseType),u&&([f,p]=ms(u,!0),b.addEventListener("progress",f)),o&&b.upload&&([h,m]=ms(o),b.upload.addEventListener("progress",h),b.upload.addEventListener("loadend",m)),(s.cancelToken||s.signal)&&(d=O=>{b&&(r(!O||O.type?new Jn(null,n,b):O),b.abort(),b=null)},s.cancelToken&&s.cancelToken.subscribe(d),s.signal&&(s.signal.aborted?d():s.signal.addEventListener("abort",d)));const T=Df(s.url);if(T&&gt.protocols.indexOf(T)===-1){r(new Me("Unsupported protocol "+T+":",Me.ERR_BAD_REQUEST,n));return}b.send(l||null)})},Hf=(n,e)=>{const{length:t}=n=n?n.filter(Boolean):[];if(e||t){let r=new AbortController,s;const l=function(u){if(!s){s=!0,c();const d=u instanceof Error?u:this.reason;r.abort(d instanceof Me?d:new Jn(d instanceof Error?d.message:d))}};let a=e&&setTimeout(()=>{a=null,l(new Me(`timeout ${e} of ms exceeded`,Me.ETIMEDOUT))},e);const c=()=>{n&&(a&&clearTimeout(a),a=null,n.forEach(u=>{u.unsubscribe?u.unsubscribe(l):u.removeEventListener("abort",l)}),n=null)};n.forEach(u=>u.addEventListener("abort",l));const{signal:o}=r;return o.unsubscribe=()=>ee.asap(c),o}},Gf=function*(n,e){let t=n.byteLength;if(t<e){yield n;return}let r=0,s;for(;r<t;)s=r+e,yield n.slice(r,s),r=s},Wf=async function*(n,e){for await(const t of Kf(n))yield*Gf(t,e)},Kf=async function*(n){if(n[Symbol.asyncIterator]){yield*n;return}const e=n.getReader();try{for(;;){const{done:t,value:r}=await e.read();if(t)break;yield r}}finally{await e.cancel()}},Ea=(n,e,t,r)=>{const s=Wf(n,e);let l=0,a,c=o=>{a||(a=!0,r&&r(o))};return new ReadableStream({async pull(o){try{const{done:u,value:d}=await s.next();if(u){c(),o.close();return}let h=d.byteLength;if(t){let f=l+=h;t(f)}o.enqueue(new Uint8Array(d))}catch(u){throw c(u),u}},cancel(o){return c(o),s.return()}},{highWaterMark:2})},gs=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",wa=gs&&typeof ReadableStream=="function",Xf=gs&&(typeof TextEncoder=="function"?(n=>e=>n.encode(e))(new TextEncoder):async n=>new Uint8Array(await new Response(n).arrayBuffer())),Aa=(n,...e)=>{try{return!!n(...e)}catch{return!1}},Yf=wa&&Aa(()=>{let n=!1;const e=new Request(gt.origin,{body:new ReadableStream,method:"POST",get duplex(){return n=!0,"half"}}).headers.has("Content-Type");return n&&!e}),Sa=64*1024,yo=wa&&Aa(()=>ee.isReadableStream(new Response("").body)),ys={stream:yo&&(n=>n.body)};gs&&(n=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!ys[e]&&(ys[e]=ee.isFunction(n[e])?t=>t[e]():(t,r)=>{throw new Me(`Response type '${e}' is not supported`,Me.ERR_NOT_SUPPORT,r)})})})(new Response);const Zf=async n=>{if(n==null)return 0;if(ee.isBlob(n))return n.size;if(ee.isSpecCompliantForm(n))return(await new Request(gt.origin,{method:"POST",body:n}).arrayBuffer()).byteLength;if(ee.isArrayBufferView(n)||ee.isArrayBuffer(n))return n.byteLength;if(ee.isURLSearchParams(n)&&(n=n+""),ee.isString(n))return(await Xf(n)).byteLength},Qf=async(n,e)=>{const t=ee.toFiniteNumber(n.getContentLength());return t??Zf(e)},vo={http:bf,xhr:zf,fetch:gs&&(async n=>{let{url:e,method:t,data:r,signal:s,cancelToken:l,timeout:a,onDownloadProgress:c,onUploadProgress:o,responseType:u,headers:d,withCredentials:h="same-origin",fetchOptions:f}=xa(n);u=u?(u+"").toLowerCase():"text";let m=Hf([s,l&&l.toAbortSignal()],a),p;const y=m&&m.unsubscribe&&(()=>{m.unsubscribe()});let b;try{if(o&&Yf&&t!=="get"&&t!=="head"&&(b=await Qf(d,r))!==0){let M=new Request(e,{method:"POST",body:r,duplex:"half"}),z;if(ee.isFormData(r)&&(z=M.headers.get("content-type"))&&d.setContentType(z),M.body){const[X,H]=ga(b,ms(ya(o)));r=Ea(M.body,Sa,X,H)}}ee.isString(h)||(h=h?"include":"omit");const A="credentials"in Request.prototype;p=new Request(e,{...f,signal:m,method:t.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",credentials:A?h:void 0});let T=await fetch(p);const O=yo&&(u==="stream"||u==="response");if(yo&&(c||O&&y)){const M={};["status","statusText","headers"].forEach(re=>{M[re]=T[re]});const z=ee.toFiniteNumber(T.headers.get("content-length")),[X,H]=c&&ga(z,ms(ya(c),!0))||[];T=new Response(Ea(T.body,Sa,X,()=>{H&&H(),y&&y()}),M)}u=u||"text";let F=await ys[ee.findKey(ys,u)||"text"](T,n);return!O&&y&&y(),await new Promise((M,z)=>{ma(M,z,{data:F,headers:Nt.from(T.headers),status:T.status,statusText:T.statusText,config:n,request:p})})}catch(A){throw y&&y(),A&&A.name==="TypeError"&&/Load failed|fetch/i.test(A.message)?Object.assign(new Me("Network Error",Me.ERR_NETWORK,n,p),{cause:A.cause||A}):Me.from(A,A&&A.code,n,p)}})};ee.forEach(vo,(n,e)=>{if(n){try{Object.defineProperty(n,"name",{value:e})}catch{}Object.defineProperty(n,"adapterName",{value:e})}});const Ta=n=>`- ${n}`,Jf=n=>ee.isFunction(n)||n===null||n===!1,Na={getAdapter:n=>{n=ee.isArray(n)?n:[n];const{length:e}=n;let t,r;const s={};for(let l=0;l<e;l++){t=n[l];let a;if(r=t,!Jf(t)&&(r=vo[(a=String(t)).toLowerCase()],r===void 0))throw new Me(`Unknown adapter '${a}'`);if(r)break;s[a||"#"+l]=r}if(!r){const l=Object.entries(s).map(([c,o])=>`adapter ${c} `+(o===!1?"is not supported by the environment":"is not available in the build"));let a=e?l.length>1?`since :
3
+ `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach(s=>r.set(s)),r}static accessor(e){const r=(this[ha]=this[ha]={accessors:{}}).accessors,s=this.prototype;function l(a){const c=Br(a);r[c]||(Mf(s,a),r[c]=!0)}return ee.isArray(e)?e.forEach(l):l(e),this}};Nt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ee.reduceDescriptors(Nt.prototype,({value:n},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:()=>n,set(r){this[t]=r}}}),ee.freezeMethods(Nt);function go(n,e){const t=this||Lr,r=e||t,s=Nt.from(r.headers);let l=r.data;return ee.forEach(n,function(c){l=c.call(t,l,s.normalize(),e?e.status:void 0)}),s.normalize(),l}function pa(n){return!!(n&&n.__CANCEL__)}function Qn(n,e,t){Me.call(this,n??"canceled",Me.ERR_CANCELED,e,t),this.name="CanceledError"}ee.inherits(Qn,Me,{__CANCEL__:!0});function ma(n,e,t){const r=t.config.validateStatus;!t.status||!r||r(t.status)?n(t):e(new Me("Request failed with status code "+t.status,[Me.ERR_BAD_REQUEST,Me.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}function Df(n){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return e&&e[1]||""}function Uf(n,e){n=n||10;const t=new Array(n),r=new Array(n);let s=0,l=0,a;return e=e!==void 0?e:1e3,function(o){const u=Date.now(),d=r[l];a||(a=u),t[s]=o,r[s]=u;let h=l,f=0;for(;h!==s;)f+=t[h++],h=h%n;if(s=(s+1)%n,s===l&&(l=(l+1)%n),u-a<e)return;const m=d&&u-d;return m?Math.round(f*1e3/m):void 0}}function _f(n,e){let t=0,r=1e3/e,s,l;const a=(u,d=Date.now())=>{t=d,s=null,l&&(clearTimeout(l),l=null),n.apply(null,u)};return[(...u)=>{const d=Date.now(),h=d-t;h>=r?a(u,d):(s=u,l||(l=setTimeout(()=>{l=null,a(s)},r-h)))},()=>s&&a(s)]}const ms=(n,e,t=3)=>{let r=0;const s=Uf(50,250);return _f(l=>{const a=l.loaded,c=l.lengthComputable?l.total:void 0,o=a-r,u=s(o),d=a<=c;r=a;const h={loaded:a,total:c,progress:c?a/c:void 0,bytes:o,rate:u||void 0,estimated:u&&c&&d?(c-a)/u:void 0,event:l,lengthComputable:c!=null,[e?"download":"upload"]:!0};n(h)},t)},ga=(n,e)=>{const t=n!=null;return[r=>e[0]({lengthComputable:t,total:n,loaded:r}),e[1]]},ya=n=>(...e)=>ee.asap(()=>n(...e)),Vf=gt.hasStandardBrowserEnv?((n,e)=>t=>(t=new URL(t,gt.origin),n.protocol===t.protocol&&n.host===t.host&&(e||n.port===t.port)))(new URL(gt.origin),gt.navigator&&/(msie|trident)/i.test(gt.navigator.userAgent)):()=>!0,jf=gt.hasStandardBrowserEnv?{write(n,e,t,r,s,l){const a=[n+"="+encodeURIComponent(e)];ee.isNumber(t)&&a.push("expires="+new Date(t).toGMTString()),ee.isString(r)&&a.push("path="+r),ee.isString(s)&&a.push("domain="+s),l===!0&&a.push("secure"),document.cookie=a.join("; ")},read(n){const e=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(n){this.write(n,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function $f(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function qf(n,e){return e?n.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):n}function va(n,e,t){let r=!$f(e);return n&&(r||t==!1)?qf(n,e):e}const ba=n=>n instanceof Nt?{...n}:n;function Pn(n,e){e=e||{};const t={};function r(u,d,h,f){return ee.isPlainObject(u)&&ee.isPlainObject(d)?ee.merge.call({caseless:f},u,d):ee.isPlainObject(d)?ee.merge({},d):ee.isArray(d)?d.slice():d}function s(u,d,h,f){if(ee.isUndefined(d)){if(!ee.isUndefined(u))return r(void 0,u,h,f)}else return r(u,d,h,f)}function l(u,d){if(!ee.isUndefined(d))return r(void 0,d)}function a(u,d){if(ee.isUndefined(d)){if(!ee.isUndefined(u))return r(void 0,u)}else return r(void 0,d)}function c(u,d,h){if(h in e)return r(u,d);if(h in n)return r(void 0,u)}const o={url:l,method:l,data:l,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:c,headers:(u,d,h)=>s(ba(u),ba(d),h,!0)};return ee.forEach(Object.keys(Object.assign({},n,e)),function(d){const h=o[d]||s,f=h(n[d],e[d],d);ee.isUndefined(f)&&h!==c||(t[d]=f)}),t}const xa=n=>{const e=Pn({},n);let{data:t,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:l,headers:a,auth:c}=e;e.headers=a=Nt.from(a),e.url=ca(va(e.baseURL,e.url,e.allowAbsoluteUrls),n.params,n.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let o;if(ee.isFormData(t)){if(gt.hasStandardBrowserEnv||gt.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((o=a.getContentType())!==!1){const[u,...d]=o?o.split(";").map(h=>h.trim()).filter(Boolean):[];a.setContentType([u||"multipart/form-data",...d].join("; "))}}if(gt.hasStandardBrowserEnv&&(r&&ee.isFunction(r)&&(r=r(e)),r||r!==!1&&Vf(e.url))){const u=s&&l&&jf.read(l);u&&a.set(s,u)}return e},zf=typeof XMLHttpRequest<"u"&&function(n){return new Promise(function(t,r){const s=xa(n);let l=s.data;const a=Nt.from(s.headers).normalize();let{responseType:c,onUploadProgress:o,onDownloadProgress:u}=s,d,h,f,m,p;function y(){m&&m(),p&&p(),s.cancelToken&&s.cancelToken.unsubscribe(d),s.signal&&s.signal.removeEventListener("abort",d)}let b=new XMLHttpRequest;b.open(s.method.toUpperCase(),s.url,!0),b.timeout=s.timeout;function A(){if(!b)return;const O=Nt.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),M={data:!c||c==="text"||c==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:O,config:n,request:b};ma(function(X){t(X),y()},function(X){r(X),y()},M),b=null}"onloadend"in b?b.onloadend=A:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)||setTimeout(A)},b.onabort=function(){b&&(r(new Me("Request aborted",Me.ECONNABORTED,n,b)),b=null)},b.onerror=function(){r(new Me("Network Error",Me.ERR_NETWORK,n,b)),b=null},b.ontimeout=function(){let F=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const M=s.transitional||da;s.timeoutErrorMessage&&(F=s.timeoutErrorMessage),r(new Me(F,M.clarifyTimeoutError?Me.ETIMEDOUT:Me.ECONNABORTED,n,b)),b=null},l===void 0&&a.setContentType(null),"setRequestHeader"in b&&ee.forEach(a.toJSON(),function(F,M){b.setRequestHeader(M,F)}),ee.isUndefined(s.withCredentials)||(b.withCredentials=!!s.withCredentials),c&&c!=="json"&&(b.responseType=s.responseType),u&&([f,p]=ms(u,!0),b.addEventListener("progress",f)),o&&b.upload&&([h,m]=ms(o),b.upload.addEventListener("progress",h),b.upload.addEventListener("loadend",m)),(s.cancelToken||s.signal)&&(d=O=>{b&&(r(!O||O.type?new Qn(null,n,b):O),b.abort(),b=null)},s.cancelToken&&s.cancelToken.subscribe(d),s.signal&&(s.signal.aborted?d():s.signal.addEventListener("abort",d)));const T=Df(s.url);if(T&&gt.protocols.indexOf(T)===-1){r(new Me("Unsupported protocol "+T+":",Me.ERR_BAD_REQUEST,n));return}b.send(l||null)})},Hf=(n,e)=>{const{length:t}=n=n?n.filter(Boolean):[];if(e||t){let r=new AbortController,s;const l=function(u){if(!s){s=!0,c();const d=u instanceof Error?u:this.reason;r.abort(d instanceof Me?d:new Qn(d instanceof Error?d.message:d))}};let a=e&&setTimeout(()=>{a=null,l(new Me(`timeout ${e} of ms exceeded`,Me.ETIMEDOUT))},e);const c=()=>{n&&(a&&clearTimeout(a),a=null,n.forEach(u=>{u.unsubscribe?u.unsubscribe(l):u.removeEventListener("abort",l)}),n=null)};n.forEach(u=>u.addEventListener("abort",l));const{signal:o}=r;return o.unsubscribe=()=>ee.asap(c),o}},Gf=function*(n,e){let t=n.byteLength;if(t<e){yield n;return}let r=0,s;for(;r<t;)s=r+e,yield n.slice(r,s),r=s},Wf=async function*(n,e){for await(const t of Kf(n))yield*Gf(t,e)},Kf=async function*(n){if(n[Symbol.asyncIterator]){yield*n;return}const e=n.getReader();try{for(;;){const{done:t,value:r}=await e.read();if(t)break;yield r}}finally{await e.cancel()}},Ea=(n,e,t,r)=>{const s=Wf(n,e);let l=0,a,c=o=>{a||(a=!0,r&&r(o))};return new ReadableStream({async pull(o){try{const{done:u,value:d}=await s.next();if(u){c(),o.close();return}let h=d.byteLength;if(t){let f=l+=h;t(f)}o.enqueue(new Uint8Array(d))}catch(u){throw c(u),u}},cancel(o){return c(o),s.return()}},{highWaterMark:2})},gs=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",wa=gs&&typeof ReadableStream=="function",Xf=gs&&(typeof TextEncoder=="function"?(n=>e=>n.encode(e))(new TextEncoder):async n=>new Uint8Array(await new Response(n).arrayBuffer())),Aa=(n,...e)=>{try{return!!n(...e)}catch{return!1}},Yf=wa&&Aa(()=>{let n=!1;const e=new Request(gt.origin,{body:new ReadableStream,method:"POST",get duplex(){return n=!0,"half"}}).headers.has("Content-Type");return n&&!e}),Sa=64*1024,yo=wa&&Aa(()=>ee.isReadableStream(new Response("").body)),ys={stream:yo&&(n=>n.body)};gs&&(n=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!ys[e]&&(ys[e]=ee.isFunction(n[e])?t=>t[e]():(t,r)=>{throw new Me(`Response type '${e}' is not supported`,Me.ERR_NOT_SUPPORT,r)})})})(new Response);const Zf=async n=>{if(n==null)return 0;if(ee.isBlob(n))return n.size;if(ee.isSpecCompliantForm(n))return(await new Request(gt.origin,{method:"POST",body:n}).arrayBuffer()).byteLength;if(ee.isArrayBufferView(n)||ee.isArrayBuffer(n))return n.byteLength;if(ee.isURLSearchParams(n)&&(n=n+""),ee.isString(n))return(await Xf(n)).byteLength},Jf=async(n,e)=>{const t=ee.toFiniteNumber(n.getContentLength());return t??Zf(e)},vo={http:bf,xhr:zf,fetch:gs&&(async n=>{let{url:e,method:t,data:r,signal:s,cancelToken:l,timeout:a,onDownloadProgress:c,onUploadProgress:o,responseType:u,headers:d,withCredentials:h="same-origin",fetchOptions:f}=xa(n);u=u?(u+"").toLowerCase():"text";let m=Hf([s,l&&l.toAbortSignal()],a),p;const y=m&&m.unsubscribe&&(()=>{m.unsubscribe()});let b;try{if(o&&Yf&&t!=="get"&&t!=="head"&&(b=await Jf(d,r))!==0){let M=new Request(e,{method:"POST",body:r,duplex:"half"}),z;if(ee.isFormData(r)&&(z=M.headers.get("content-type"))&&d.setContentType(z),M.body){const[X,H]=ga(b,ms(ya(o)));r=Ea(M.body,Sa,X,H)}}ee.isString(h)||(h=h?"include":"omit");const A="credentials"in Request.prototype;p=new Request(e,{...f,signal:m,method:t.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",credentials:A?h:void 0});let T=await fetch(p);const O=yo&&(u==="stream"||u==="response");if(yo&&(c||O&&y)){const M={};["status","statusText","headers"].forEach(re=>{M[re]=T[re]});const z=ee.toFiniteNumber(T.headers.get("content-length")),[X,H]=c&&ga(z,ms(ya(c),!0))||[];T=new Response(Ea(T.body,Sa,X,()=>{H&&H(),y&&y()}),M)}u=u||"text";let F=await ys[ee.findKey(ys,u)||"text"](T,n);return!O&&y&&y(),await new Promise((M,z)=>{ma(M,z,{data:F,headers:Nt.from(T.headers),status:T.status,statusText:T.statusText,config:n,request:p})})}catch(A){throw y&&y(),A&&A.name==="TypeError"&&/Load failed|fetch/i.test(A.message)?Object.assign(new Me("Network Error",Me.ERR_NETWORK,n,p),{cause:A.cause||A}):Me.from(A,A&&A.code,n,p)}})};ee.forEach(vo,(n,e)=>{if(n){try{Object.defineProperty(n,"name",{value:e})}catch{}Object.defineProperty(n,"adapterName",{value:e})}});const Ta=n=>`- ${n}`,Qf=n=>ee.isFunction(n)||n===null||n===!1,Na={getAdapter:n=>{n=ee.isArray(n)?n:[n];const{length:e}=n;let t,r;const s={};for(let l=0;l<e;l++){t=n[l];let a;if(r=t,!Qf(t)&&(r=vo[(a=String(t)).toLowerCase()],r===void 0))throw new Me(`Unknown adapter '${a}'`);if(r)break;s[a||"#"+l]=r}if(!r){const l=Object.entries(s).map(([c,o])=>`adapter ${c} `+(o===!1?"is not supported by the environment":"is not available in the build"));let a=e?l.length>1?`since :
4
4
  `+l.map(Ta).join(`
5
- `):" "+Ta(l[0]):"as no adapter specified";throw new Me("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:vo};function bo(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new Jn(null,n)}function ka(n){return bo(n),n.headers=Nt.from(n.headers),n.data=go.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),Na.getAdapter(n.adapter||Lr.adapter)(n).then(function(r){return bo(n),r.data=go.call(n,n.transformResponse,r),r.headers=Nt.from(r.headers),r},function(r){return pa(r)||(bo(n),r&&r.response&&(r.response.data=go.call(n,n.transformResponse,r.response),r.response.headers=Nt.from(r.response.headers))),Promise.reject(r)})}const Ca="1.9.0",vs={};["object","boolean","number","function","string","symbol"].forEach((n,e)=>{vs[n]=function(r){return typeof r===n||"a"+(e<1?"n ":" ")+n}});const Oa={};vs.transitional=function(e,t,r){function s(l,a){return"[Axios v"+Ca+"] Transitional option '"+l+"'"+a+(r?". "+r:"")}return(l,a,c)=>{if(e===!1)throw new Me(s(a," has been removed"+(t?" in "+t:"")),Me.ERR_DEPRECATED);return t&&!Oa[a]&&(Oa[a]=!0,console.warn(s(a," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(l,a,c):!0}},vs.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function eh(n,e,t){if(typeof n!="object")throw new Me("options must be an object",Me.ERR_BAD_OPTION_VALUE);const r=Object.keys(n);let s=r.length;for(;s-- >0;){const l=r[s],a=e[l];if(a){const c=n[l],o=c===void 0||a(c,l,n);if(o!==!0)throw new Me("option "+l+" must be "+o,Me.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new Me("Unknown option "+l,Me.ERR_BAD_OPTION)}}const bs={assertOptions:eh,validators:vs},Jt=bs.validators;let Fn=class{constructor(e){this.defaults=e||{},this.interceptors={request:new ua,response:new ua}}async request(e,t){try{return await this._request(e,t)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const l=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?l&&!String(r.stack).endsWith(l.replace(/^.+\n.+\n/,""))&&(r.stack+=`
6
- `+l):r.stack=l}catch{}}throw r}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=Pn(this.defaults,t);const{transitional:r,paramsSerializer:s,headers:l}=t;r!==void 0&&bs.assertOptions(r,{silentJSONParsing:Jt.transitional(Jt.boolean),forcedJSONParsing:Jt.transitional(Jt.boolean),clarifyTimeoutError:Jt.transitional(Jt.boolean)},!1),s!=null&&(ee.isFunction(s)?t.paramsSerializer={serialize:s}:bs.assertOptions(s,{encode:Jt.function,serialize:Jt.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),bs.assertOptions(t,{baseUrl:Jt.spelling("baseURL"),withXsrfToken:Jt.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=l&&ee.merge(l.common,l[t.method]);l&&ee.forEach(["delete","get","head","post","put","patch","common"],p=>{delete l[p]}),t.headers=Nt.concat(a,l);const c=[];let o=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(t)===!1||(o=o&&y.synchronous,c.unshift(y.fulfilled,y.rejected))});const u=[];this.interceptors.response.forEach(function(y){u.push(y.fulfilled,y.rejected)});let d,h=0,f;if(!o){const p=[ka.bind(this),void 0];for(p.unshift.apply(p,c),p.push.apply(p,u),f=p.length,d=Promise.resolve(t);h<f;)d=d.then(p[h++],p[h++]);return d}f=c.length;let m=t;for(h=0;h<f;){const p=c[h++],y=c[h++];try{m=p(m)}catch(b){y.call(this,b);break}}try{d=ka.call(this,m)}catch(p){return Promise.reject(p)}for(h=0,f=u.length;h<f;)d=d.then(u[h++],u[h++]);return d}getUri(e){e=Pn(this.defaults,e);const t=va(e.baseURL,e.url,e.allowAbsoluteUrls);return ca(t,e.params,e.paramsSerializer)}};ee.forEach(["delete","get","head","options"],function(e){Fn.prototype[e]=function(t,r){return this.request(Pn(r||{},{method:e,url:t,data:(r||{}).data}))}}),ee.forEach(["post","put","patch"],function(e){function t(r){return function(l,a,c){return this.request(Pn(c||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:l,data:a}))}}Fn.prototype[e]=t(),Fn.prototype[e+"Form"]=t(!0)});let th=class tu{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(l){t=l});const r=this;this.promise.then(s=>{if(!r._listeners)return;let l=r._listeners.length;for(;l-- >0;)r._listeners[l](s);r._listeners=null}),this.promise.then=s=>{let l;const a=new Promise(c=>{r.subscribe(c),l=c}).then(s);return a.cancel=function(){r.unsubscribe(l)},a},e(function(l,a,c){r.reason||(r.reason=new Jn(l,a,c),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=r=>{e.abort(r)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new tu(function(s){e=s}),cancel:e}}};function nh(n){return function(t){return n.apply(null,t)}}function rh(n){return ee.isObject(n)&&n.isAxiosError===!0}const xo={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(xo).forEach(([n,e])=>{xo[e]=n});function Ra(n){const e=new Fn(n),t=Ki(Fn.prototype.request,e);return ee.extend(t,Fn.prototype,e,{allOwnKeys:!0}),ee.extend(t,e,null,{allOwnKeys:!0}),t.create=function(s){return Ra(Pn(n,s))},t}const tt=Ra(Lr);tt.Axios=Fn,tt.CanceledError=Jn,tt.CancelToken=th,tt.isCancel=pa,tt.VERSION=Ca,tt.toFormData=hs,tt.AxiosError=Me,tt.Cancel=tt.CanceledError,tt.all=function(e){return Promise.all(e)},tt.spread=nh,tt.isAxiosError=rh,tt.mergeConfig=Pn,tt.AxiosHeaders=Nt,tt.formToJSON=n=>fa(ee.isHTMLForm(n)?new FormData(n):n),tt.getAdapter=Na.getAdapter,tt.HttpStatusCode=xo,tt.default=tt;const{Axios:pE,AxiosError:mE,CanceledError:gE,isCancel:yE,CancelToken:vE,VERSION:bE,all:xE,Cancel:EE,isAxiosError:wE,spread:AE,toFormData:SE,AxiosHeaders:TE,HttpStatusCode:NE,formToJSON:kE,getAdapter:CE,mergeConfig:OE}=tt;var En=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Eo(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var wo={exports:{}},Ia;function sh(){return Ia||(Ia=1,function(n,e){(function(r,s){n.exports=s()})(self,function(){return function(){var t={3099:function(a){a.exports=function(c){if(typeof c!="function")throw TypeError(String(c)+" is not a function");return c}},6077:function(a,c,o){var u=o(111);a.exports=function(d){if(!u(d)&&d!==null)throw TypeError("Can't set "+String(d)+" as a prototype");return d}},1223:function(a,c,o){var u=o(5112),d=o(30),h=o(3070),f=u("unscopables"),m=Array.prototype;m[f]==null&&h.f(m,f,{configurable:!0,value:d(null)}),a.exports=function(p){m[f][p]=!0}},1530:function(a,c,o){var u=o(8710).charAt;a.exports=function(d,h,f){return h+(f?u(d,h).length:1)}},5787:function(a){a.exports=function(c,o,u){if(!(c instanceof o))throw TypeError("Incorrect "+(u?u+" ":"")+"invocation");return c}},9670:function(a,c,o){var u=o(111);a.exports=function(d){if(!u(d))throw TypeError(String(d)+" is not an object");return d}},4019:function(a){a.exports=typeof ArrayBuffer<"u"&&typeof DataView<"u"},260:function(a,c,o){var u=o(4019),d=o(9781),h=o(7854),f=o(111),m=o(6656),p=o(648),y=o(8880),b=o(1320),A=o(3070).f,T=o(9518),O=o(7674),F=o(5112),M=o(9711),z=h.Int8Array,X=z&&z.prototype,H=h.Uint8ClampedArray,re=H&&H.prototype,G=z&&T(z),E=X&&T(X),P=Object.prototype,k=P.isPrototypeOf,$=F("toStringTag"),_=M("TYPED_ARRAY_TAG"),V=u&&!!O&&p(h.opera)!=="Opera",K=!1,q,J={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},te={BigInt64Array:8,BigUint64Array:8},me=function(N){if(!f(N))return!1;var R=p(N);return R==="DataView"||m(J,R)||m(te,R)},ge=function(ve){if(!f(ve))return!1;var N=p(ve);return m(J,N)||m(te,N)},ye=function(ve){if(ge(ve))return ve;throw TypeError("Target is not a typed array")},xe=function(ve){if(O){if(k.call(G,ve))return ve}else for(var N in J)if(m(J,q)){var R=h[N];if(R&&(ve===R||k.call(R,ve)))return ve}throw TypeError("Target is not a typed array constructor")},he=function(ve,N,R){if(d){if(R)for(var w in J){var C=h[w];C&&m(C.prototype,ve)&&delete C.prototype[ve]}(!E[ve]||R)&&b(E,ve,R?N:V&&X[ve]||N)}},ke=function(ve,N,R){var w,C;if(d){if(O){if(R)for(w in J)C=h[w],C&&m(C,ve)&&delete C[ve];if(!G[ve]||R)try{return b(G,ve,R?N:V&&z[ve]||N)}catch{}else return}for(w in J)C=h[w],C&&(!C[ve]||R)&&b(C,ve,N)}};for(q in J)h[q]||(V=!1);if((!V||typeof G!="function"||G===Function.prototype)&&(G=function(){throw TypeError("Incorrect invocation")},V))for(q in J)h[q]&&O(h[q],G);if((!V||!E||E===P)&&(E=G.prototype,V))for(q in J)h[q]&&O(h[q].prototype,E);if(V&&T(re)!==E&&O(re,E),d&&!m(E,$)){K=!0,A(E,$,{get:function(){return f(this)?this[_]:void 0}});for(q in J)h[q]&&y(h[q],_,q)}a.exports={NATIVE_ARRAY_BUFFER_VIEWS:V,TYPED_ARRAY_TAG:K&&_,aTypedArray:ye,aTypedArrayConstructor:xe,exportTypedArrayMethod:he,exportTypedArrayStaticMethod:ke,isView:me,isTypedArray:ge,TypedArray:G,TypedArrayPrototype:E}},3331:function(a,c,o){var u=o(7854),d=o(9781),h=o(4019),f=o(8880),m=o(2248),p=o(7293),y=o(5787),b=o(9958),A=o(7466),T=o(7067),O=o(1179),F=o(9518),M=o(7674),z=o(8006).f,X=o(3070).f,H=o(1285),re=o(8003),G=o(9909),E=G.get,P=G.set,k="ArrayBuffer",$="DataView",_="prototype",V="Wrong length",K="Wrong index",q=u[k],J=q,te=u[$],me=te&&te[_],ge=Object.prototype,ye=u.RangeError,xe=O.pack,he=O.unpack,ke=function(Q){return[Q&255]},ve=function(Q){return[Q&255,Q>>8&255]},N=function(Q){return[Q&255,Q>>8&255,Q>>16&255,Q>>24&255]},R=function(Q){return Q[3]<<24|Q[2]<<16|Q[1]<<8|Q[0]},w=function(Q){return xe(Q,23,4)},C=function(Q){return xe(Q,52,8)},v=function(Q,ne){X(Q[_],ne,{get:function(){return E(this)[ne]}})},x=function(Q,ne,ie,fe){var we=T(ie),De=E(Q);if(we+ne>De.byteLength)throw ye(K);var Ge=E(De.buffer).bytes,_e=we+De.byteOffset,Be=Ge.slice(_e,_e+ne);return fe?Be:Be.reverse()},I=function(Q,ne,ie,fe,we,De){var Ge=T(ie),_e=E(Q);if(Ge+ne>_e.byteLength)throw ye(K);for(var Be=E(_e.buffer).bytes,Ve=Ge+_e.byteOffset,rt=fe(+we),ot=0;ot<ne;ot++)Be[Ve+ot]=rt[De?ot:ne-ot-1]};if(!h)J=function(ne){y(this,J,k);var ie=T(ne);P(this,{bytes:H.call(new Array(ie),0),byteLength:ie}),d||(this.byteLength=ie)},te=function(ne,ie,fe){y(this,te,$),y(ne,J,$);var we=E(ne).byteLength,De=b(ie);if(De<0||De>we)throw ye("Wrong offset");if(fe=fe===void 0?we-De:A(fe),De+fe>we)throw ye(V);P(this,{buffer:ne,byteLength:fe,byteOffset:De}),d||(this.buffer=ne,this.byteLength=fe,this.byteOffset=De)},d&&(v(J,"byteLength"),v(te,"buffer"),v(te,"byteLength"),v(te,"byteOffset")),m(te[_],{getInt8:function(ne){return x(this,1,ne)[0]<<24>>24},getUint8:function(ne){return x(this,1,ne)[0]},getInt16:function(ne){var ie=x(this,2,ne,arguments.length>1?arguments[1]:void 0);return(ie[1]<<8|ie[0])<<16>>16},getUint16:function(ne){var ie=x(this,2,ne,arguments.length>1?arguments[1]:void 0);return ie[1]<<8|ie[0]},getInt32:function(ne){return R(x(this,4,ne,arguments.length>1?arguments[1]:void 0))},getUint32:function(ne){return R(x(this,4,ne,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(ne){return he(x(this,4,ne,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(ne){return he(x(this,8,ne,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(ne,ie){I(this,1,ne,ke,ie)},setUint8:function(ne,ie){I(this,1,ne,ke,ie)},setInt16:function(ne,ie){I(this,2,ne,ve,ie,arguments.length>2?arguments[2]:void 0)},setUint16:function(ne,ie){I(this,2,ne,ve,ie,arguments.length>2?arguments[2]:void 0)},setInt32:function(ne,ie){I(this,4,ne,N,ie,arguments.length>2?arguments[2]:void 0)},setUint32:function(ne,ie){I(this,4,ne,N,ie,arguments.length>2?arguments[2]:void 0)},setFloat32:function(ne,ie){I(this,4,ne,w,ie,arguments.length>2?arguments[2]:void 0)},setFloat64:function(ne,ie){I(this,8,ne,C,ie,arguments.length>2?arguments[2]:void 0)}});else{if(!p(function(){q(1)})||!p(function(){new q(-1)})||p(function(){return new q,new q(1.5),new q(NaN),q.name!=k})){J=function(ne){return y(this,J),new q(T(ne))};for(var B=J[_]=q[_],U=z(q),j=0,W;U.length>j;)(W=U[j++])in J||f(J,W,q[W]);B.constructor=J}M&&F(me)!==ge&&M(me,ge);var Z=new te(new J(2)),Y=me.setInt8;Z.setInt8(0,2147483648),Z.setInt8(1,2147483649),(Z.getInt8(0)||!Z.getInt8(1))&&m(me,{setInt8:function(ne,ie){Y.call(this,ne,ie<<24>>24)},setUint8:function(ne,ie){Y.call(this,ne,ie<<24>>24)}},{unsafe:!0})}re(J,k),re(te,$),a.exports={ArrayBuffer:J,DataView:te}},1048:function(a,c,o){var u=o(7908),d=o(1400),h=o(7466),f=Math.min;a.exports=[].copyWithin||function(p,y){var b=u(this),A=h(b.length),T=d(p,A),O=d(y,A),F=arguments.length>2?arguments[2]:void 0,M=f((F===void 0?A:d(F,A))-O,A-T),z=1;for(O<T&&T<O+M&&(z=-1,O+=M-1,T+=M-1);M-- >0;)O in b?b[T]=b[O]:delete b[T],T+=z,O+=z;return b}},1285:function(a,c,o){var u=o(7908),d=o(1400),h=o(7466);a.exports=function(m){for(var p=u(this),y=h(p.length),b=arguments.length,A=d(b>1?arguments[1]:void 0,y),T=b>2?arguments[2]:void 0,O=T===void 0?y:d(T,y);O>A;)p[A++]=m;return p}},8533:function(a,c,o){var u=o(2092).forEach,d=o(9341),h=d("forEach");a.exports=h?[].forEach:function(m){return u(this,m,arguments.length>1?arguments[1]:void 0)}},8457:function(a,c,o){var u=o(9974),d=o(7908),h=o(3411),f=o(7659),m=o(7466),p=o(6135),y=o(1246);a.exports=function(A){var T=d(A),O=typeof this=="function"?this:Array,F=arguments.length,M=F>1?arguments[1]:void 0,z=M!==void 0,X=y(T),H=0,re,G,E,P,k,$;if(z&&(M=u(M,F>2?arguments[2]:void 0,2)),X!=null&&!(O==Array&&f(X)))for(P=X.call(T),k=P.next,G=new O;!(E=k.call(P)).done;H++)$=z?h(P,M,[E.value,H],!0):E.value,p(G,H,$);else for(re=m(T.length),G=new O(re);re>H;H++)$=z?M(T[H],H):T[H],p(G,H,$);return G.length=H,G}},1318:function(a,c,o){var u=o(5656),d=o(7466),h=o(1400),f=function(m){return function(p,y,b){var A=u(p),T=d(A.length),O=h(b,T),F;if(m&&y!=y){for(;T>O;)if(F=A[O++],F!=F)return!0}else for(;T>O;O++)if((m||O in A)&&A[O]===y)return m||O||0;return!m&&-1}};a.exports={includes:f(!0),indexOf:f(!1)}},2092:function(a,c,o){var u=o(9974),d=o(8361),h=o(7908),f=o(7466),m=o(5417),p=[].push,y=function(b){var A=b==1,T=b==2,O=b==3,F=b==4,M=b==6,z=b==7,X=b==5||M;return function(H,re,G,E){for(var P=h(H),k=d(P),$=u(re,G,3),_=f(k.length),V=0,K=E||m,q=A?K(H,_):T||z?K(H,0):void 0,J,te;_>V;V++)if((X||V in k)&&(J=k[V],te=$(J,V,P),b))if(A)q[V]=te;else if(te)switch(b){case 3:return!0;case 5:return J;case 6:return V;case 2:p.call(q,J)}else switch(b){case 4:return!1;case 7:p.call(q,J)}return M?-1:O||F?F:q}};a.exports={forEach:y(0),map:y(1),filter:y(2),some:y(3),every:y(4),find:y(5),findIndex:y(6),filterOut:y(7)}},6583:function(a,c,o){var u=o(5656),d=o(9958),h=o(7466),f=o(9341),m=Math.min,p=[].lastIndexOf,y=!!p&&1/[1].lastIndexOf(1,-0)<0,b=f("lastIndexOf"),A=y||!b;a.exports=A?function(O){if(y)return p.apply(this,arguments)||0;var F=u(this),M=h(F.length),z=M-1;for(arguments.length>1&&(z=m(z,d(arguments[1]))),z<0&&(z=M+z);z>=0;z--)if(z in F&&F[z]===O)return z||0;return-1}:p},1194:function(a,c,o){var u=o(7293),d=o(5112),h=o(7392),f=d("species");a.exports=function(m){return h>=51||!u(function(){var p=[],y=p.constructor={};return y[f]=function(){return{foo:1}},p[m](Boolean).foo!==1})}},9341:function(a,c,o){var u=o(7293);a.exports=function(d,h){var f=[][d];return!!f&&u(function(){f.call(null,h||function(){throw 1},1)})}},3671:function(a,c,o){var u=o(3099),d=o(7908),h=o(8361),f=o(7466),m=function(p){return function(y,b,A,T){u(b);var O=d(y),F=h(O),M=f(O.length),z=p?M-1:0,X=p?-1:1;if(A<2)for(;;){if(z in F){T=F[z],z+=X;break}if(z+=X,p?z<0:M<=z)throw TypeError("Reduce of empty array with no initial value")}for(;p?z>=0:M>z;z+=X)z in F&&(T=b(T,F[z],z,O));return T}};a.exports={left:m(!1),right:m(!0)}},5417:function(a,c,o){var u=o(111),d=o(3157),h=o(5112),f=h("species");a.exports=function(m,p){var y;return d(m)&&(y=m.constructor,typeof y=="function"&&(y===Array||d(y.prototype))?y=void 0:u(y)&&(y=y[f],y===null&&(y=void 0))),new(y===void 0?Array:y)(p===0?0:p)}},3411:function(a,c,o){var u=o(9670),d=o(9212);a.exports=function(h,f,m,p){try{return p?f(u(m)[0],m[1]):f(m)}catch(y){throw d(h),y}}},7072:function(a,c,o){var u=o(5112),d=u("iterator"),h=!1;try{var f=0,m={next:function(){return{done:!!f++}},return:function(){h=!0}};m[d]=function(){return this},Array.from(m,function(){throw 2})}catch{}a.exports=function(p,y){if(!y&&!h)return!1;var b=!1;try{var A={};A[d]=function(){return{next:function(){return{done:b=!0}}}},p(A)}catch{}return b}},4326:function(a){var c={}.toString;a.exports=function(o){return c.call(o).slice(8,-1)}},648:function(a,c,o){var u=o(1694),d=o(4326),h=o(5112),f=h("toStringTag"),m=d(function(){return arguments}())=="Arguments",p=function(y,b){try{return y[b]}catch{}};a.exports=u?d:function(y){var b,A,T;return y===void 0?"Undefined":y===null?"Null":typeof(A=p(b=Object(y),f))=="string"?A:m?d(b):(T=d(b))=="Object"&&typeof b.callee=="function"?"Arguments":T}},9920:function(a,c,o){var u=o(6656),d=o(3887),h=o(1236),f=o(3070);a.exports=function(m,p){for(var y=d(p),b=f.f,A=h.f,T=0;T<y.length;T++){var O=y[T];u(m,O)||b(m,O,A(p,O))}}},8544:function(a,c,o){var u=o(7293);a.exports=!u(function(){function d(){}return d.prototype.constructor=null,Object.getPrototypeOf(new d)!==d.prototype})},4994:function(a,c,o){var u=o(3383).IteratorPrototype,d=o(30),h=o(9114),f=o(8003),m=o(7497),p=function(){return this};a.exports=function(y,b,A){var T=b+" Iterator";return y.prototype=d(u,{next:h(1,A)}),f(y,T,!1,!0),m[T]=p,y}},8880:function(a,c,o){var u=o(9781),d=o(3070),h=o(9114);a.exports=u?function(f,m,p){return d.f(f,m,h(1,p))}:function(f,m,p){return f[m]=p,f}},9114:function(a){a.exports=function(c,o){return{enumerable:!(c&1),configurable:!(c&2),writable:!(c&4),value:o}}},6135:function(a,c,o){var u=o(7593),d=o(3070),h=o(9114);a.exports=function(f,m,p){var y=u(m);y in f?d.f(f,y,h(0,p)):f[y]=p}},654:function(a,c,o){var u=o(2109),d=o(4994),h=o(9518),f=o(7674),m=o(8003),p=o(8880),y=o(1320),b=o(5112),A=o(1913),T=o(7497),O=o(3383),F=O.IteratorPrototype,M=O.BUGGY_SAFARI_ITERATORS,z=b("iterator"),X="keys",H="values",re="entries",G=function(){return this};a.exports=function(E,P,k,$,_,V,K){d(k,P,$);var q=function(N){if(N===_&&ye)return ye;if(!M&&N in me)return me[N];switch(N){case X:return function(){return new k(this,N)};case H:return function(){return new k(this,N)};case re:return function(){return new k(this,N)}}return function(){return new k(this)}},J=P+" Iterator",te=!1,me=E.prototype,ge=me[z]||me["@@iterator"]||_&&me[_],ye=!M&&ge||q(_),xe=P=="Array"&&me.entries||ge,he,ke,ve;if(xe&&(he=h(xe.call(new E)),F!==Object.prototype&&he.next&&(!A&&h(he)!==F&&(f?f(he,F):typeof he[z]!="function"&&p(he,z,G)),m(he,J,!0,!0),A&&(T[J]=G))),_==H&&ge&&ge.name!==H&&(te=!0,ye=function(){return ge.call(this)}),(!A||K)&&me[z]!==ye&&p(me,z,ye),T[P]=ye,_)if(ke={values:q(H),keys:V?ye:q(X),entries:q(re)},K)for(ve in ke)(M||te||!(ve in me))&&y(me,ve,ke[ve]);else u({target:P,proto:!0,forced:M||te},ke);return ke}},9781:function(a,c,o){var u=o(7293);a.exports=!u(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},317:function(a,c,o){var u=o(7854),d=o(111),h=u.document,f=d(h)&&d(h.createElement);a.exports=function(m){return f?h.createElement(m):{}}},8324:function(a){a.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},8113:function(a,c,o){var u=o(5005);a.exports=u("navigator","userAgent")||""},7392:function(a,c,o){var u=o(7854),d=o(8113),h=u.process,f=h&&h.versions,m=f&&f.v8,p,y;m?(p=m.split("."),y=p[0]+p[1]):d&&(p=d.match(/Edge\/(\d+)/),(!p||p[1]>=74)&&(p=d.match(/Chrome\/(\d+)/),p&&(y=p[1]))),a.exports=y&&+y},748:function(a){a.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(a,c,o){var u=o(7854),d=o(1236).f,h=o(8880),f=o(1320),m=o(3505),p=o(9920),y=o(4705);a.exports=function(b,A){var T=b.target,O=b.global,F=b.stat,M,z,X,H,re,G;if(O?z=u:F?z=u[T]||m(T,{}):z=(u[T]||{}).prototype,z)for(X in A){if(re=A[X],b.noTargetGet?(G=d(z,X),H=G&&G.value):H=z[X],M=y(O?X:T+(F?".":"#")+X,b.forced),!M&&H!==void 0){if(typeof re==typeof H)continue;p(re,H)}(b.sham||H&&H.sham)&&h(re,"sham",!0),f(z,X,re,b)}}},7293:function(a){a.exports=function(c){try{return!!c()}catch{return!0}}},7007:function(a,c,o){o(4916);var u=o(1320),d=o(7293),h=o(5112),f=o(2261),m=o(8880),p=h("species"),y=!d(function(){var F=/./;return F.exec=function(){var M=[];return M.groups={a:"7"},M},"".replace(F,"$<a>")!=="7"}),b=function(){return"a".replace(/./,"$0")==="$0"}(),A=h("replace"),T=function(){return/./[A]?/./[A]("a","$0")==="":!1}(),O=!d(function(){var F=/(?:)/,M=F.exec;F.exec=function(){return M.apply(this,arguments)};var z="ab".split(F);return z.length!==2||z[0]!=="a"||z[1]!=="b"});a.exports=function(F,M,z,X){var H=h(F),re=!d(function(){var _={};return _[H]=function(){return 7},""[F](_)!=7}),G=re&&!d(function(){var _=!1,V=/a/;return F==="split"&&(V={},V.constructor={},V.constructor[p]=function(){return V},V.flags="",V[H]=/./[H]),V.exec=function(){return _=!0,null},V[H](""),!_});if(!re||!G||F==="replace"&&!(y&&b&&!T)||F==="split"&&!O){var E=/./[H],P=z(H,""[F],function(_,V,K,q,J){return V.exec===f?re&&!J?{done:!0,value:E.call(V,K,q)}:{done:!0,value:_.call(K,V,q)}:{done:!1}},{REPLACE_KEEPS_$0:b,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:T}),k=P[0],$=P[1];u(String.prototype,F,k),u(RegExp.prototype,H,M==2?function(_,V){return $.call(_,this,V)}:function(_){return $.call(_,this)})}X&&m(RegExp.prototype[H],"sham",!0)}},9974:function(a,c,o){var u=o(3099);a.exports=function(d,h,f){if(u(d),h===void 0)return d;switch(f){case 0:return function(){return d.call(h)};case 1:return function(m){return d.call(h,m)};case 2:return function(m,p){return d.call(h,m,p)};case 3:return function(m,p,y){return d.call(h,m,p,y)}}return function(){return d.apply(h,arguments)}}},5005:function(a,c,o){var u=o(857),d=o(7854),h=function(f){return typeof f=="function"?f:void 0};a.exports=function(f,m){return arguments.length<2?h(u[f])||h(d[f]):u[f]&&u[f][m]||d[f]&&d[f][m]}},1246:function(a,c,o){var u=o(648),d=o(7497),h=o(5112),f=h("iterator");a.exports=function(m){if(m!=null)return m[f]||m["@@iterator"]||d[u(m)]}},8554:function(a,c,o){var u=o(9670),d=o(1246);a.exports=function(h){var f=d(h);if(typeof f!="function")throw TypeError(String(h)+" is not iterable");return u(f.call(h))}},647:function(a,c,o){var u=o(7908),d=Math.floor,h="".replace,f=/\$([$&'`]|\d\d?|<[^>]*>)/g,m=/\$([$&'`]|\d\d?)/g;a.exports=function(p,y,b,A,T,O){var F=b+p.length,M=A.length,z=m;return T!==void 0&&(T=u(T),z=f),h.call(O,z,function(X,H){var re;switch(H.charAt(0)){case"$":return"$";case"&":return p;case"`":return y.slice(0,b);case"'":return y.slice(F);case"<":re=T[H.slice(1,-1)];break;default:var G=+H;if(G===0)return X;if(G>M){var E=d(G/10);return E===0?X:E<=M?A[E-1]===void 0?H.charAt(1):A[E-1]+H.charAt(1):X}re=A[G-1]}return re===void 0?"":re})}},7854:function(a,c,o){var u=function(d){return d&&d.Math==Math&&d};a.exports=u(typeof globalThis=="object"&&globalThis)||u(typeof window=="object"&&window)||u(typeof self=="object"&&self)||u(typeof o.g=="object"&&o.g)||function(){return this}()||Function("return this")()},6656:function(a){var c={}.hasOwnProperty;a.exports=function(o,u){return c.call(o,u)}},3501:function(a){a.exports={}},490:function(a,c,o){var u=o(5005);a.exports=u("document","documentElement")},4664:function(a,c,o){var u=o(9781),d=o(7293),h=o(317);a.exports=!u&&!d(function(){return Object.defineProperty(h("div"),"a",{get:function(){return 7}}).a!=7})},1179:function(a){var c=Math.abs,o=Math.pow,u=Math.floor,d=Math.log,h=Math.LN2,f=function(p,y,b){var A=new Array(b),T=b*8-y-1,O=(1<<T)-1,F=O>>1,M=y===23?o(2,-24)-o(2,-77):0,z=p<0||p===0&&1/p<0?1:0,X=0,H,re,G;for(p=c(p),p!=p||p===1/0?(re=p!=p?1:0,H=O):(H=u(d(p)/h),p*(G=o(2,-H))<1&&(H--,G*=2),H+F>=1?p+=M/G:p+=M*o(2,1-F),p*G>=2&&(H++,G/=2),H+F>=O?(re=0,H=O):H+F>=1?(re=(p*G-1)*o(2,y),H=H+F):(re=p*o(2,F-1)*o(2,y),H=0));y>=8;A[X++]=re&255,re/=256,y-=8);for(H=H<<y|re,T+=y;T>0;A[X++]=H&255,H/=256,T-=8);return A[--X]|=z*128,A},m=function(p,y){var b=p.length,A=b*8-y-1,T=(1<<A)-1,O=T>>1,F=A-7,M=b-1,z=p[M--],X=z&127,H;for(z>>=7;F>0;X=X*256+p[M],M--,F-=8);for(H=X&(1<<-F)-1,X>>=-F,F+=y;F>0;H=H*256+p[M],M--,F-=8);if(X===0)X=1-O;else{if(X===T)return H?NaN:z?-1/0:1/0;H=H+o(2,y),X=X-O}return(z?-1:1)*H*o(2,X-y)};a.exports={pack:f,unpack:m}},8361:function(a,c,o){var u=o(7293),d=o(4326),h="".split;a.exports=u(function(){return!Object("z").propertyIsEnumerable(0)})?function(f){return d(f)=="String"?h.call(f,""):Object(f)}:Object},9587:function(a,c,o){var u=o(111),d=o(7674);a.exports=function(h,f,m){var p,y;return d&&typeof(p=f.constructor)=="function"&&p!==m&&u(y=p.prototype)&&y!==m.prototype&&d(h,y),h}},2788:function(a,c,o){var u=o(5465),d=Function.toString;typeof u.inspectSource!="function"&&(u.inspectSource=function(h){return d.call(h)}),a.exports=u.inspectSource},9909:function(a,c,o){var u=o(8536),d=o(7854),h=o(111),f=o(8880),m=o(6656),p=o(5465),y=o(6200),b=o(3501),A=d.WeakMap,T,O,F,M=function(P){return F(P)?O(P):T(P,{})},z=function(P){return function(k){var $;if(!h(k)||($=O(k)).type!==P)throw TypeError("Incompatible receiver, "+P+" required");return $}};if(u){var X=p.state||(p.state=new A),H=X.get,re=X.has,G=X.set;T=function(P,k){return k.facade=P,G.call(X,P,k),k},O=function(P){return H.call(X,P)||{}},F=function(P){return re.call(X,P)}}else{var E=y("state");b[E]=!0,T=function(P,k){return k.facade=P,f(P,E,k),k},O=function(P){return m(P,E)?P[E]:{}},F=function(P){return m(P,E)}}a.exports={set:T,get:O,has:F,enforce:M,getterFor:z}},7659:function(a,c,o){var u=o(5112),d=o(7497),h=u("iterator"),f=Array.prototype;a.exports=function(m){return m!==void 0&&(d.Array===m||f[h]===m)}},3157:function(a,c,o){var u=o(4326);a.exports=Array.isArray||function(h){return u(h)=="Array"}},4705:function(a,c,o){var u=o(7293),d=/#|\.prototype\./,h=function(b,A){var T=m[f(b)];return T==y?!0:T==p?!1:typeof A=="function"?u(A):!!A},f=h.normalize=function(b){return String(b).replace(d,".").toLowerCase()},m=h.data={},p=h.NATIVE="N",y=h.POLYFILL="P";a.exports=h},111:function(a){a.exports=function(c){return typeof c=="object"?c!==null:typeof c=="function"}},1913:function(a){a.exports=!1},7850:function(a,c,o){var u=o(111),d=o(4326),h=o(5112),f=h("match");a.exports=function(m){var p;return u(m)&&((p=m[f])!==void 0?!!p:d(m)=="RegExp")}},9212:function(a,c,o){var u=o(9670);a.exports=function(d){var h=d.return;if(h!==void 0)return u(h.call(d)).value}},3383:function(a,c,o){var u=o(7293),d=o(9518),h=o(8880),f=o(6656),m=o(5112),p=o(1913),y=m("iterator"),b=!1,A=function(){return this},T,O,F;[].keys&&(F=[].keys(),"next"in F?(O=d(d(F)),O!==Object.prototype&&(T=O)):b=!0);var M=T==null||u(function(){var z={};return T[y].call(z)!==z});M&&(T={}),(!p||M)&&!f(T,y)&&h(T,y,A),a.exports={IteratorPrototype:T,BUGGY_SAFARI_ITERATORS:b}},7497:function(a){a.exports={}},133:function(a,c,o){var u=o(7293);a.exports=!!Object.getOwnPropertySymbols&&!u(function(){return!String(Symbol())})},590:function(a,c,o){var u=o(7293),d=o(5112),h=o(1913),f=d("iterator");a.exports=!u(function(){var m=new URL("b?a=1&b=2&c=3","http://a"),p=m.searchParams,y="";return m.pathname="c%20d",p.forEach(function(b,A){p.delete("b"),y+=A+b}),h&&!m.toJSON||!p.sort||m.href!=="http://a/c%20d?a=1&c=3"||p.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!p[f]||new URL("https://a@b").username!=="a"||new URLSearchParams(new URLSearchParams("a=b")).get("a")!=="b"||new URL("http://тест").host!=="xn--e1aybc"||new URL("http://a#б").hash!=="#%D0%B1"||y!=="a1c3"||new URL("http://x",void 0).host!=="x"})},8536:function(a,c,o){var u=o(7854),d=o(2788),h=u.WeakMap;a.exports=typeof h=="function"&&/native code/.test(d(h))},1574:function(a,c,o){var u=o(9781),d=o(7293),h=o(1956),f=o(5181),m=o(5296),p=o(7908),y=o(8361),b=Object.assign,A=Object.defineProperty;a.exports=!b||d(function(){if(u&&b({b:1},b(A({},"a",{enumerable:!0,get:function(){A(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var T={},O={},F=Symbol(),M="abcdefghijklmnopqrst";return T[F]=7,M.split("").forEach(function(z){O[z]=z}),b({},T)[F]!=7||h(b({},O)).join("")!=M})?function(O,F){for(var M=p(O),z=arguments.length,X=1,H=f.f,re=m.f;z>X;)for(var G=y(arguments[X++]),E=H?h(G).concat(H(G)):h(G),P=E.length,k=0,$;P>k;)$=E[k++],(!u||re.call(G,$))&&(M[$]=G[$]);return M}:b},30:function(a,c,o){var u=o(9670),d=o(6048),h=o(748),f=o(3501),m=o(490),p=o(317),y=o(6200),b=">",A="<",T="prototype",O="script",F=y("IE_PROTO"),M=function(){},z=function(E){return A+O+b+E+A+"/"+O+b},X=function(E){E.write(z("")),E.close();var P=E.parentWindow.Object;return E=null,P},H=function(){var E=p("iframe"),P="java"+O+":",k;return E.style.display="none",m.appendChild(E),E.src=String(P),k=E.contentWindow.document,k.open(),k.write(z("document.F=Object")),k.close(),k.F},re,G=function(){try{re=document.domain&&new ActiveXObject("htmlfile")}catch{}G=re?X(re):H();for(var E=h.length;E--;)delete G[T][h[E]];return G()};f[F]=!0,a.exports=Object.create||function(P,k){var $;return P!==null?(M[T]=u(P),$=new M,M[T]=null,$[F]=P):$=G(),k===void 0?$:d($,k)}},6048:function(a,c,o){var u=o(9781),d=o(3070),h=o(9670),f=o(1956);a.exports=u?Object.defineProperties:function(p,y){h(p);for(var b=f(y),A=b.length,T=0,O;A>T;)d.f(p,O=b[T++],y[O]);return p}},3070:function(a,c,o){var u=o(9781),d=o(4664),h=o(9670),f=o(7593),m=Object.defineProperty;c.f=u?m:function(y,b,A){if(h(y),b=f(b,!0),h(A),d)try{return m(y,b,A)}catch{}if("get"in A||"set"in A)throw TypeError("Accessors not supported");return"value"in A&&(y[b]=A.value),y}},1236:function(a,c,o){var u=o(9781),d=o(5296),h=o(9114),f=o(5656),m=o(7593),p=o(6656),y=o(4664),b=Object.getOwnPropertyDescriptor;c.f=u?b:function(T,O){if(T=f(T),O=m(O,!0),y)try{return b(T,O)}catch{}if(p(T,O))return h(!d.f.call(T,O),T[O])}},8006:function(a,c,o){var u=o(6324),d=o(748),h=d.concat("length","prototype");c.f=Object.getOwnPropertyNames||function(m){return u(m,h)}},5181:function(a,c){c.f=Object.getOwnPropertySymbols},9518:function(a,c,o){var u=o(6656),d=o(7908),h=o(6200),f=o(8544),m=h("IE_PROTO"),p=Object.prototype;a.exports=f?Object.getPrototypeOf:function(y){return y=d(y),u(y,m)?y[m]:typeof y.constructor=="function"&&y instanceof y.constructor?y.constructor.prototype:y instanceof Object?p:null}},6324:function(a,c,o){var u=o(6656),d=o(5656),h=o(1318).indexOf,f=o(3501);a.exports=function(m,p){var y=d(m),b=0,A=[],T;for(T in y)!u(f,T)&&u(y,T)&&A.push(T);for(;p.length>b;)u(y,T=p[b++])&&(~h(A,T)||A.push(T));return A}},1956:function(a,c,o){var u=o(6324),d=o(748);a.exports=Object.keys||function(f){return u(f,d)}},5296:function(a,c){var o={}.propertyIsEnumerable,u=Object.getOwnPropertyDescriptor,d=u&&!o.call({1:2},1);c.f=d?function(f){var m=u(this,f);return!!m&&m.enumerable}:o},7674:function(a,c,o){var u=o(9670),d=o(6077);a.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var h=!1,f={},m;try{m=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,m.call(f,[]),h=f instanceof Array}catch{}return function(y,b){return u(y),d(b),h?m.call(y,b):y.__proto__=b,y}}():void 0)},288:function(a,c,o){var u=o(1694),d=o(648);a.exports=u?{}.toString:function(){return"[object "+d(this)+"]"}},3887:function(a,c,o){var u=o(5005),d=o(8006),h=o(5181),f=o(9670);a.exports=u("Reflect","ownKeys")||function(p){var y=d.f(f(p)),b=h.f;return b?y.concat(b(p)):y}},857:function(a,c,o){var u=o(7854);a.exports=u},2248:function(a,c,o){var u=o(1320);a.exports=function(d,h,f){for(var m in h)u(d,m,h[m],f);return d}},1320:function(a,c,o){var u=o(7854),d=o(8880),h=o(6656),f=o(3505),m=o(2788),p=o(9909),y=p.get,b=p.enforce,A=String(String).split("String");(a.exports=function(T,O,F,M){var z=M?!!M.unsafe:!1,X=M?!!M.enumerable:!1,H=M?!!M.noTargetGet:!1,re;if(typeof F=="function"&&(typeof O=="string"&&!h(F,"name")&&d(F,"name",O),re=b(F),re.source||(re.source=A.join(typeof O=="string"?O:""))),T===u){X?T[O]=F:f(O,F);return}else z?!H&&T[O]&&(X=!0):delete T[O];X?T[O]=F:d(T,O,F)})(Function.prototype,"toString",function(){return typeof this=="function"&&y(this).source||m(this)})},7651:function(a,c,o){var u=o(4326),d=o(2261);a.exports=function(h,f){var m=h.exec;if(typeof m=="function"){var p=m.call(h,f);if(typeof p!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return p}if(u(h)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return d.call(h,f)}},2261:function(a,c,o){var u=o(7066),d=o(2999),h=RegExp.prototype.exec,f=String.prototype.replace,m=h,p=function(){var T=/a/,O=/b*/g;return h.call(T,"a"),h.call(O,"a"),T.lastIndex!==0||O.lastIndex!==0}(),y=d.UNSUPPORTED_Y||d.BROKEN_CARET,b=/()??/.exec("")[1]!==void 0,A=p||b||y;A&&(m=function(O){var F=this,M,z,X,H,re=y&&F.sticky,G=u.call(F),E=F.source,P=0,k=O;return re&&(G=G.replace("y",""),G.indexOf("g")===-1&&(G+="g"),k=String(O).slice(F.lastIndex),F.lastIndex>0&&(!F.multiline||F.multiline&&O[F.lastIndex-1]!==`
7
- `)&&(E="(?: "+E+")",k=" "+k,P++),z=new RegExp("^(?:"+E+")",G)),b&&(z=new RegExp("^"+E+"$(?!\\s)",G)),p&&(M=F.lastIndex),X=h.call(re?z:F,k),re?X?(X.input=X.input.slice(P),X[0]=X[0].slice(P),X.index=F.lastIndex,F.lastIndex+=X[0].length):F.lastIndex=0:p&&X&&(F.lastIndex=F.global?X.index+X[0].length:M),b&&X&&X.length>1&&f.call(X[0],z,function(){for(H=1;H<arguments.length-2;H++)arguments[H]===void 0&&(X[H]=void 0)}),X}),a.exports=m},7066:function(a,c,o){var u=o(9670);a.exports=function(){var d=u(this),h="";return d.global&&(h+="g"),d.ignoreCase&&(h+="i"),d.multiline&&(h+="m"),d.dotAll&&(h+="s"),d.unicode&&(h+="u"),d.sticky&&(h+="y"),h}},2999:function(a,c,o){var u=o(7293);function d(h,f){return RegExp(h,f)}c.UNSUPPORTED_Y=u(function(){var h=d("a","y");return h.lastIndex=2,h.exec("abcd")!=null}),c.BROKEN_CARET=u(function(){var h=d("^r","gy");return h.lastIndex=2,h.exec("str")!=null})},4488:function(a){a.exports=function(c){if(c==null)throw TypeError("Can't call method on "+c);return c}},3505:function(a,c,o){var u=o(7854),d=o(8880);a.exports=function(h,f){try{d(u,h,f)}catch{u[h]=f}return f}},6340:function(a,c,o){var u=o(5005),d=o(3070),h=o(5112),f=o(9781),m=h("species");a.exports=function(p){var y=u(p),b=d.f;f&&y&&!y[m]&&b(y,m,{configurable:!0,get:function(){return this}})}},8003:function(a,c,o){var u=o(3070).f,d=o(6656),h=o(5112),f=h("toStringTag");a.exports=function(m,p,y){m&&!d(m=y?m:m.prototype,f)&&u(m,f,{configurable:!0,value:p})}},6200:function(a,c,o){var u=o(2309),d=o(9711),h=u("keys");a.exports=function(f){return h[f]||(h[f]=d(f))}},5465:function(a,c,o){var u=o(7854),d=o(3505),h="__core-js_shared__",f=u[h]||d(h,{});a.exports=f},2309:function(a,c,o){var u=o(1913),d=o(5465);(a.exports=function(h,f){return d[h]||(d[h]=f!==void 0?f:{})})("versions",[]).push({version:"3.9.0",mode:u?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},6707:function(a,c,o){var u=o(9670),d=o(3099),h=o(5112),f=h("species");a.exports=function(m,p){var y=u(m).constructor,b;return y===void 0||(b=u(y)[f])==null?p:d(b)}},8710:function(a,c,o){var u=o(9958),d=o(4488),h=function(f){return function(m,p){var y=String(d(m)),b=u(p),A=y.length,T,O;return b<0||b>=A?f?"":void 0:(T=y.charCodeAt(b),T<55296||T>56319||b+1===A||(O=y.charCodeAt(b+1))<56320||O>57343?f?y.charAt(b):T:f?y.slice(b,b+2):(T-55296<<10)+(O-56320)+65536)}};a.exports={codeAt:h(!1),charAt:h(!0)}},3197:function(a){var c=2147483647,o=36,u=1,d=26,h=38,f=700,m=72,p=128,y="-",b=/[^\0-\u007E]/,A=/[.\u3002\uFF0E\uFF61]/g,T="Overflow: input needs wider integers to process",O=o-u,F=Math.floor,M=String.fromCharCode,z=function(G){for(var E=[],P=0,k=G.length;P<k;){var $=G.charCodeAt(P++);if($>=55296&&$<=56319&&P<k){var _=G.charCodeAt(P++);(_&64512)==56320?E.push((($&1023)<<10)+(_&1023)+65536):(E.push($),P--)}else E.push($)}return E},X=function(G){return G+22+75*(G<26)},H=function(G,E,P){var k=0;for(G=P?F(G/f):G>>1,G+=F(G/E);G>O*d>>1;k+=o)G=F(G/O);return F(k+(O+1)*G/(G+h))},re=function(G){var E=[];G=z(G);var P=G.length,k=p,$=0,_=m,V,K;for(V=0;V<G.length;V++)K=G[V],K<128&&E.push(M(K));var q=E.length,J=q;for(q&&E.push(y);J<P;){var te=c;for(V=0;V<G.length;V++)K=G[V],K>=k&&K<te&&(te=K);var me=J+1;if(te-k>F((c-$)/me))throw RangeError(T);for($+=(te-k)*me,k=te,V=0;V<G.length;V++){if(K=G[V],K<k&&++$>c)throw RangeError(T);if(K==k){for(var ge=$,ye=o;;ye+=o){var xe=ye<=_?u:ye>=_+d?d:ye-_;if(ge<xe)break;var he=ge-xe,ke=o-xe;E.push(M(X(xe+he%ke))),ge=F(he/ke)}E.push(M(X(ge))),_=H($,me,J==q),$=0,++J}}++$,++k}return E.join("")};a.exports=function(G){var E=[],P=G.toLowerCase().replace(A,".").split("."),k,$;for(k=0;k<P.length;k++)$=P[k],E.push(b.test($)?"xn--"+re($):$);return E.join(".")}},6091:function(a,c,o){var u=o(7293),d=o(1361),h="​…᠎";a.exports=function(f){return u(function(){return!!d[f]()||h[f]()!=h||d[f].name!==f})}},3111:function(a,c,o){var u=o(4488),d=o(1361),h="["+d+"]",f=RegExp("^"+h+h+"*"),m=RegExp(h+h+"*$"),p=function(y){return function(b){var A=String(u(b));return y&1&&(A=A.replace(f,"")),y&2&&(A=A.replace(m,"")),A}};a.exports={start:p(1),end:p(2),trim:p(3)}},1400:function(a,c,o){var u=o(9958),d=Math.max,h=Math.min;a.exports=function(f,m){var p=u(f);return p<0?d(p+m,0):h(p,m)}},7067:function(a,c,o){var u=o(9958),d=o(7466);a.exports=function(h){if(h===void 0)return 0;var f=u(h),m=d(f);if(f!==m)throw RangeError("Wrong length or index");return m}},5656:function(a,c,o){var u=o(8361),d=o(4488);a.exports=function(h){return u(d(h))}},9958:function(a){var c=Math.ceil,o=Math.floor;a.exports=function(u){return isNaN(u=+u)?0:(u>0?o:c)(u)}},7466:function(a,c,o){var u=o(9958),d=Math.min;a.exports=function(h){return h>0?d(u(h),9007199254740991):0}},7908:function(a,c,o){var u=o(4488);a.exports=function(d){return Object(u(d))}},4590:function(a,c,o){var u=o(3002);a.exports=function(d,h){var f=u(d);if(f%h)throw RangeError("Wrong offset");return f}},3002:function(a,c,o){var u=o(9958);a.exports=function(d){var h=u(d);if(h<0)throw RangeError("The argument can't be less than 0");return h}},7593:function(a,c,o){var u=o(111);a.exports=function(d,h){if(!u(d))return d;var f,m;if(h&&typeof(f=d.toString)=="function"&&!u(m=f.call(d))||typeof(f=d.valueOf)=="function"&&!u(m=f.call(d))||!h&&typeof(f=d.toString)=="function"&&!u(m=f.call(d)))return m;throw TypeError("Can't convert object to primitive value")}},1694:function(a,c,o){var u=o(5112),d=u("toStringTag"),h={};h[d]="z",a.exports=String(h)==="[object z]"},9843:function(a,c,o){var u=o(2109),d=o(7854),h=o(9781),f=o(3832),m=o(260),p=o(3331),y=o(5787),b=o(9114),A=o(8880),T=o(7466),O=o(7067),F=o(4590),M=o(7593),z=o(6656),X=o(648),H=o(111),re=o(30),G=o(7674),E=o(8006).f,P=o(7321),k=o(2092).forEach,$=o(6340),_=o(3070),V=o(1236),K=o(9909),q=o(9587),J=K.get,te=K.set,me=_.f,ge=V.f,ye=Math.round,xe=d.RangeError,he=p.ArrayBuffer,ke=p.DataView,ve=m.NATIVE_ARRAY_BUFFER_VIEWS,N=m.TYPED_ARRAY_TAG,R=m.TypedArray,w=m.TypedArrayPrototype,C=m.aTypedArrayConstructor,v=m.isTypedArray,x="BYTES_PER_ELEMENT",I="Wrong length",B=function(Q,ne){for(var ie=0,fe=ne.length,we=new(C(Q))(fe);fe>ie;)we[ie]=ne[ie++];return we},U=function(Q,ne){me(Q,ne,{get:function(){return J(this)[ne]}})},j=function(Q){var ne;return Q instanceof he||(ne=X(Q))=="ArrayBuffer"||ne=="SharedArrayBuffer"},W=function(Q,ne){return v(Q)&&typeof ne!="symbol"&&ne in Q&&String(+ne)==String(ne)},Z=function(ne,ie){return W(ne,ie=M(ie,!0))?b(2,ne[ie]):ge(ne,ie)},Y=function(ne,ie,fe){return W(ne,ie=M(ie,!0))&&H(fe)&&z(fe,"value")&&!z(fe,"get")&&!z(fe,"set")&&!fe.configurable&&(!z(fe,"writable")||fe.writable)&&(!z(fe,"enumerable")||fe.enumerable)?(ne[ie]=fe.value,ne):me(ne,ie,fe)};h?(ve||(V.f=Z,_.f=Y,U(w,"buffer"),U(w,"byteOffset"),U(w,"byteLength"),U(w,"length")),u({target:"Object",stat:!0,forced:!ve},{getOwnPropertyDescriptor:Z,defineProperty:Y}),a.exports=function(Q,ne,ie){var fe=Q.match(/\d+$/)[0]/8,we=Q+(ie?"Clamped":"")+"Array",De="get"+Q,Ge="set"+Q,_e=d[we],Be=_e,Ve=Be&&Be.prototype,rt={},ot=function($e,Pe){var We=J($e);return We.view[De](Pe*fe+We.byteOffset,!0)},Dt=function($e,Pe,We){var pe=J($e);ie&&(We=(We=ye(We))<0?0:We>255?255:We&255),pe.view[Ge](Pe*fe+pe.byteOffset,We,!0)},bt=function($e,Pe){me($e,Pe,{get:function(){return ot(this,Pe)},set:function(We){return Dt(this,Pe,We)},enumerable:!0})};ve?f&&(Be=ne(function($e,Pe,We,pe){return y($e,Be,we),q(function(){return H(Pe)?j(Pe)?pe!==void 0?new _e(Pe,F(We,fe),pe):We!==void 0?new _e(Pe,F(We,fe)):new _e(Pe):v(Pe)?B(Be,Pe):P.call(Be,Pe):new _e(O(Pe))}(),$e,Be)}),G&&G(Be,R),k(E(_e),function($e){$e in Be||A(Be,$e,_e[$e])}),Be.prototype=Ve):(Be=ne(function($e,Pe,We,pe){y($e,Be,we);var be=0,Ce=0,Ie,Re,je;if(!H(Pe))je=O(Pe),Re=je*fe,Ie=new he(Re);else if(j(Pe)){Ie=Pe,Ce=F(We,fe);var Ke=Pe.byteLength;if(pe===void 0){if(Ke%fe||(Re=Ke-Ce,Re<0))throw xe(I)}else if(Re=T(pe)*fe,Re+Ce>Ke)throw xe(I);je=Re/fe}else return v(Pe)?B(Be,Pe):P.call(Be,Pe);for(te($e,{buffer:Ie,byteOffset:Ce,byteLength:Re,length:je,view:new ke(Ie)});be<je;)bt($e,be++)}),G&&G(Be,R),Ve=Be.prototype=re(w)),Ve.constructor!==Be&&A(Ve,"constructor",Be),N&&A(Ve,N,we),rt[we]=Be,u({global:!0,forced:Be!=_e,sham:!ve},rt),x in Be||A(Be,x,fe),x in Ve||A(Ve,x,fe),$(we)}):a.exports=function(){}},3832:function(a,c,o){var u=o(7854),d=o(7293),h=o(7072),f=o(260).NATIVE_ARRAY_BUFFER_VIEWS,m=u.ArrayBuffer,p=u.Int8Array;a.exports=!f||!d(function(){p(1)})||!d(function(){new p(-1)})||!h(function(y){new p,new p(null),new p(1.5),new p(y)},!0)||d(function(){return new p(new m(2),1,void 0).length!==1})},3074:function(a,c,o){var u=o(260).aTypedArrayConstructor,d=o(6707);a.exports=function(h,f){for(var m=d(h,h.constructor),p=0,y=f.length,b=new(u(m))(y);y>p;)b[p]=f[p++];return b}},7321:function(a,c,o){var u=o(7908),d=o(7466),h=o(1246),f=o(7659),m=o(9974),p=o(260).aTypedArrayConstructor;a.exports=function(b){var A=u(b),T=arguments.length,O=T>1?arguments[1]:void 0,F=O!==void 0,M=h(A),z,X,H,re,G,E;if(M!=null&&!f(M))for(G=M.call(A),E=G.next,A=[];!(re=E.call(G)).done;)A.push(re.value);for(F&&T>2&&(O=m(O,arguments[2],2)),X=d(A.length),H=new(p(this))(X),z=0;X>z;z++)H[z]=F?O(A[z],z):A[z];return H}},9711:function(a){var c=0,o=Math.random();a.exports=function(u){return"Symbol("+String(u===void 0?"":u)+")_"+(++c+o).toString(36)}},3307:function(a,c,o){var u=o(133);a.exports=u&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},5112:function(a,c,o){var u=o(7854),d=o(2309),h=o(6656),f=o(9711),m=o(133),p=o(3307),y=d("wks"),b=u.Symbol,A=p?b:b&&b.withoutSetter||f;a.exports=function(T){return h(y,T)||(m&&h(b,T)?y[T]=b[T]:y[T]=A("Symbol."+T)),y[T]}},1361:function(a){a.exports=`
8
- \v\f\r                 \u2028\u2029\uFEFF`},8264:function(a,c,o){var u=o(2109),d=o(7854),h=o(3331),f=o(6340),m="ArrayBuffer",p=h[m],y=d[m];u({global:!0,forced:y!==p},{ArrayBuffer:p}),f(m)},2222:function(a,c,o){var u=o(2109),d=o(7293),h=o(3157),f=o(111),m=o(7908),p=o(7466),y=o(6135),b=o(5417),A=o(1194),T=o(5112),O=o(7392),F=T("isConcatSpreadable"),M=9007199254740991,z="Maximum allowed index exceeded",X=O>=51||!d(function(){var E=[];return E[F]=!1,E.concat()[0]!==E}),H=A("concat"),re=function(E){if(!f(E))return!1;var P=E[F];return P!==void 0?!!P:h(E)},G=!X||!H;u({target:"Array",proto:!0,forced:G},{concat:function(P){var k=m(this),$=b(k,0),_=0,V,K,q,J,te;for(V=-1,q=arguments.length;V<q;V++)if(te=V===-1?k:arguments[V],re(te)){if(J=p(te.length),_+J>M)throw TypeError(z);for(K=0;K<J;K++,_++)K in te&&y($,_,te[K])}else{if(_>=M)throw TypeError(z);y($,_++,te)}return $.length=_,$}})},7327:function(a,c,o){var u=o(2109),d=o(2092).filter,h=o(1194),f=h("filter");u({target:"Array",proto:!0,forced:!f},{filter:function(p){return d(this,p,arguments.length>1?arguments[1]:void 0)}})},2772:function(a,c,o){var u=o(2109),d=o(1318).indexOf,h=o(9341),f=[].indexOf,m=!!f&&1/[1].indexOf(1,-0)<0,p=h("indexOf");u({target:"Array",proto:!0,forced:m||!p},{indexOf:function(b){return m?f.apply(this,arguments)||0:d(this,b,arguments.length>1?arguments[1]:void 0)}})},6992:function(a,c,o){var u=o(5656),d=o(1223),h=o(7497),f=o(9909),m=o(654),p="Array Iterator",y=f.set,b=f.getterFor(p);a.exports=m(Array,"Array",function(A,T){y(this,{type:p,target:u(A),index:0,kind:T})},function(){var A=b(this),T=A.target,O=A.kind,F=A.index++;return!T||F>=T.length?(A.target=void 0,{value:void 0,done:!0}):O=="keys"?{value:F,done:!1}:O=="values"?{value:T[F],done:!1}:{value:[F,T[F]],done:!1}},"values"),h.Arguments=h.Array,d("keys"),d("values"),d("entries")},1249:function(a,c,o){var u=o(2109),d=o(2092).map,h=o(1194),f=h("map");u({target:"Array",proto:!0,forced:!f},{map:function(p){return d(this,p,arguments.length>1?arguments[1]:void 0)}})},7042:function(a,c,o){var u=o(2109),d=o(111),h=o(3157),f=o(1400),m=o(7466),p=o(5656),y=o(6135),b=o(5112),A=o(1194),T=A("slice"),O=b("species"),F=[].slice,M=Math.max;u({target:"Array",proto:!0,forced:!T},{slice:function(X,H){var re=p(this),G=m(re.length),E=f(X,G),P=f(H===void 0?G:H,G),k,$,_;if(h(re)&&(k=re.constructor,typeof k=="function"&&(k===Array||h(k.prototype))?k=void 0:d(k)&&(k=k[O],k===null&&(k=void 0)),k===Array||k===void 0))return F.call(re,E,P);for($=new(k===void 0?Array:k)(M(P-E,0)),_=0;E<P;E++,_++)E in re&&y($,_,re[E]);return $.length=_,$}})},561:function(a,c,o){var u=o(2109),d=o(1400),h=o(9958),f=o(7466),m=o(7908),p=o(5417),y=o(6135),b=o(1194),A=b("splice"),T=Math.max,O=Math.min,F=9007199254740991,M="Maximum allowed length exceeded";u({target:"Array",proto:!0,forced:!A},{splice:function(X,H){var re=m(this),G=f(re.length),E=d(X,G),P=arguments.length,k,$,_,V,K,q;if(P===0?k=$=0:P===1?(k=0,$=G-E):(k=P-2,$=O(T(h(H),0),G-E)),G+k-$>F)throw TypeError(M);for(_=p(re,$),V=0;V<$;V++)K=E+V,K in re&&y(_,V,re[K]);if(_.length=$,k<$){for(V=E;V<G-$;V++)K=V+$,q=V+k,K in re?re[q]=re[K]:delete re[q];for(V=G;V>G-$+k;V--)delete re[V-1]}else if(k>$)for(V=G-$;V>E;V--)K=V+$-1,q=V+k-1,K in re?re[q]=re[K]:delete re[q];for(V=0;V<k;V++)re[V+E]=arguments[V+2];return re.length=G-$+k,_}})},8309:function(a,c,o){var u=o(9781),d=o(3070).f,h=Function.prototype,f=h.toString,m=/^\s*function ([^ (]*)/,p="name";u&&!(p in h)&&d(h,p,{configurable:!0,get:function(){try{return f.call(this).match(m)[1]}catch{return""}}})},489:function(a,c,o){var u=o(2109),d=o(7293),h=o(7908),f=o(9518),m=o(8544),p=d(function(){f(1)});u({target:"Object",stat:!0,forced:p,sham:!m},{getPrototypeOf:function(b){return f(h(b))}})},1539:function(a,c,o){var u=o(1694),d=o(1320),h=o(288);u||d(Object.prototype,"toString",h,{unsafe:!0})},4916:function(a,c,o){var u=o(2109),d=o(2261);u({target:"RegExp",proto:!0,forced:/./.exec!==d},{exec:d})},9714:function(a,c,o){var u=o(1320),d=o(9670),h=o(7293),f=o(7066),m="toString",p=RegExp.prototype,y=p[m],b=h(function(){return y.call({source:"a",flags:"b"})!="/a/b"}),A=y.name!=m;(b||A)&&u(RegExp.prototype,m,function(){var O=d(this),F=String(O.source),M=O.flags,z=String(M===void 0&&O instanceof RegExp&&!("flags"in p)?f.call(O):M);return"/"+F+"/"+z},{unsafe:!0})},8783:function(a,c,o){var u=o(8710).charAt,d=o(9909),h=o(654),f="String Iterator",m=d.set,p=d.getterFor(f);h(String,"String",function(y){m(this,{type:f,string:String(y),index:0})},function(){var b=p(this),A=b.string,T=b.index,O;return T>=A.length?{value:void 0,done:!0}:(O=u(A,T),b.index+=O.length,{value:O,done:!1})})},4723:function(a,c,o){var u=o(7007),d=o(9670),h=o(7466),f=o(4488),m=o(1530),p=o(7651);u("match",1,function(y,b,A){return[function(O){var F=f(this),M=O==null?void 0:O[y];return M!==void 0?M.call(O,F):new RegExp(O)[y](String(F))},function(T){var O=A(b,T,this);if(O.done)return O.value;var F=d(T),M=String(this);if(!F.global)return p(F,M);var z=F.unicode;F.lastIndex=0;for(var X=[],H=0,re;(re=p(F,M))!==null;){var G=String(re[0]);X[H]=G,G===""&&(F.lastIndex=m(M,h(F.lastIndex),z)),H++}return H===0?null:X}]})},5306:function(a,c,o){var u=o(7007),d=o(9670),h=o(7466),f=o(9958),m=o(4488),p=o(1530),y=o(647),b=o(7651),A=Math.max,T=Math.min,O=function(F){return F===void 0?F:String(F)};u("replace",2,function(F,M,z,X){var H=X.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,re=X.REPLACE_KEEPS_$0,G=H?"$":"$0";return[function(P,k){var $=m(this),_=P==null?void 0:P[F];return _!==void 0?_.call(P,$,k):M.call(String($),P,k)},function(E,P){if(!H&&re||typeof P=="string"&&P.indexOf(G)===-1){var k=z(M,E,this,P);if(k.done)return k.value}var $=d(E),_=String(this),V=typeof P=="function";V||(P=String(P));var K=$.global;if(K){var q=$.unicode;$.lastIndex=0}for(var J=[];;){var te=b($,_);if(te===null||(J.push(te),!K))break;var me=String(te[0]);me===""&&($.lastIndex=p(_,h($.lastIndex),q))}for(var ge="",ye=0,xe=0;xe<J.length;xe++){te=J[xe];for(var he=String(te[0]),ke=A(T(f(te.index),_.length),0),ve=[],N=1;N<te.length;N++)ve.push(O(te[N]));var R=te.groups;if(V){var w=[he].concat(ve,ke,_);R!==void 0&&w.push(R);var C=String(P.apply(void 0,w))}else C=y(he,_,ke,ve,R,P);ke>=ye&&(ge+=_.slice(ye,ke)+C,ye=ke+he.length)}return ge+_.slice(ye)}]})},3123:function(a,c,o){var u=o(7007),d=o(7850),h=o(9670),f=o(4488),m=o(6707),p=o(1530),y=o(7466),b=o(7651),A=o(2261),T=o(7293),O=[].push,F=Math.min,M=4294967295,z=!T(function(){return!RegExp(M,"y")});u("split",2,function(X,H,re){var G;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?G=function(E,P){var k=String(f(this)),$=P===void 0?M:P>>>0;if($===0)return[];if(E===void 0)return[k];if(!d(E))return H.call(k,E,$);for(var _=[],V=(E.ignoreCase?"i":"")+(E.multiline?"m":"")+(E.unicode?"u":"")+(E.sticky?"y":""),K=0,q=new RegExp(E.source,V+"g"),J,te,me;(J=A.call(q,k))&&(te=q.lastIndex,!(te>K&&(_.push(k.slice(K,J.index)),J.length>1&&J.index<k.length&&O.apply(_,J.slice(1)),me=J[0].length,K=te,_.length>=$)));)q.lastIndex===J.index&&q.lastIndex++;return K===k.length?(me||!q.test(""))&&_.push(""):_.push(k.slice(K)),_.length>$?_.slice(0,$):_}:"0".split(void 0,0).length?G=function(E,P){return E===void 0&&P===0?[]:H.call(this,E,P)}:G=H,[function(P,k){var $=f(this),_=P==null?void 0:P[X];return _!==void 0?_.call(P,$,k):G.call(String($),P,k)},function(E,P){var k=re(G,E,this,P,G!==H);if(k.done)return k.value;var $=h(E),_=String(this),V=m($,RegExp),K=$.unicode,q=($.ignoreCase?"i":"")+($.multiline?"m":"")+($.unicode?"u":"")+(z?"y":"g"),J=new V(z?$:"^(?:"+$.source+")",q),te=P===void 0?M:P>>>0;if(te===0)return[];if(_.length===0)return b(J,_)===null?[_]:[];for(var me=0,ge=0,ye=[];ge<_.length;){J.lastIndex=z?ge:0;var xe=b(J,z?_:_.slice(ge)),he;if(xe===null||(he=F(y(J.lastIndex+(z?0:ge)),_.length))===me)ge=p(_,ge,K);else{if(ye.push(_.slice(me,ge)),ye.length===te)return ye;for(var ke=1;ke<=xe.length-1;ke++)if(ye.push(xe[ke]),ye.length===te)return ye;ge=me=he}}return ye.push(_.slice(me)),ye}]},!z)},3210:function(a,c,o){var u=o(2109),d=o(3111).trim,h=o(6091);u({target:"String",proto:!0,forced:h("trim")},{trim:function(){return d(this)}})},2990:function(a,c,o){var u=o(260),d=o(1048),h=u.aTypedArray,f=u.exportTypedArrayMethod;f("copyWithin",function(p,y){return d.call(h(this),p,y,arguments.length>2?arguments[2]:void 0)})},8927:function(a,c,o){var u=o(260),d=o(2092).every,h=u.aTypedArray,f=u.exportTypedArrayMethod;f("every",function(p){return d(h(this),p,arguments.length>1?arguments[1]:void 0)})},3105:function(a,c,o){var u=o(260),d=o(1285),h=u.aTypedArray,f=u.exportTypedArrayMethod;f("fill",function(p){return d.apply(h(this),arguments)})},5035:function(a,c,o){var u=o(260),d=o(2092).filter,h=o(3074),f=u.aTypedArray,m=u.exportTypedArrayMethod;m("filter",function(y){var b=d(f(this),y,arguments.length>1?arguments[1]:void 0);return h(this,b)})},7174:function(a,c,o){var u=o(260),d=o(2092).findIndex,h=u.aTypedArray,f=u.exportTypedArrayMethod;f("findIndex",function(p){return d(h(this),p,arguments.length>1?arguments[1]:void 0)})},4345:function(a,c,o){var u=o(260),d=o(2092).find,h=u.aTypedArray,f=u.exportTypedArrayMethod;f("find",function(p){return d(h(this),p,arguments.length>1?arguments[1]:void 0)})},2846:function(a,c,o){var u=o(260),d=o(2092).forEach,h=u.aTypedArray,f=u.exportTypedArrayMethod;f("forEach",function(p){d(h(this),p,arguments.length>1?arguments[1]:void 0)})},4731:function(a,c,o){var u=o(260),d=o(1318).includes,h=u.aTypedArray,f=u.exportTypedArrayMethod;f("includes",function(p){return d(h(this),p,arguments.length>1?arguments[1]:void 0)})},7209:function(a,c,o){var u=o(260),d=o(1318).indexOf,h=u.aTypedArray,f=u.exportTypedArrayMethod;f("indexOf",function(p){return d(h(this),p,arguments.length>1?arguments[1]:void 0)})},6319:function(a,c,o){var u=o(7854),d=o(260),h=o(6992),f=o(5112),m=f("iterator"),p=u.Uint8Array,y=h.values,b=h.keys,A=h.entries,T=d.aTypedArray,O=d.exportTypedArrayMethod,F=p&&p.prototype[m],M=!!F&&(F.name=="values"||F.name==null),z=function(){return y.call(T(this))};O("entries",function(){return A.call(T(this))}),O("keys",function(){return b.call(T(this))}),O("values",z,!M),O(m,z,!M)},8867:function(a,c,o){var u=o(260),d=u.aTypedArray,h=u.exportTypedArrayMethod,f=[].join;h("join",function(p){return f.apply(d(this),arguments)})},7789:function(a,c,o){var u=o(260),d=o(6583),h=u.aTypedArray,f=u.exportTypedArrayMethod;f("lastIndexOf",function(p){return d.apply(h(this),arguments)})},3739:function(a,c,o){var u=o(260),d=o(2092).map,h=o(6707),f=u.aTypedArray,m=u.aTypedArrayConstructor,p=u.exportTypedArrayMethod;p("map",function(b){return d(f(this),b,arguments.length>1?arguments[1]:void 0,function(A,T){return new(m(h(A,A.constructor)))(T)})})},4483:function(a,c,o){var u=o(260),d=o(3671).right,h=u.aTypedArray,f=u.exportTypedArrayMethod;f("reduceRight",function(p){return d(h(this),p,arguments.length,arguments.length>1?arguments[1]:void 0)})},9368:function(a,c,o){var u=o(260),d=o(3671).left,h=u.aTypedArray,f=u.exportTypedArrayMethod;f("reduce",function(p){return d(h(this),p,arguments.length,arguments.length>1?arguments[1]:void 0)})},2056:function(a,c,o){var u=o(260),d=u.aTypedArray,h=u.exportTypedArrayMethod,f=Math.floor;h("reverse",function(){for(var p=this,y=d(p).length,b=f(y/2),A=0,T;A<b;)T=p[A],p[A++]=p[--y],p[y]=T;return p})},3462:function(a,c,o){var u=o(260),d=o(7466),h=o(4590),f=o(7908),m=o(7293),p=u.aTypedArray,y=u.exportTypedArrayMethod,b=m(function(){new Int8Array(1).set({})});y("set",function(T){p(this);var O=h(arguments.length>1?arguments[1]:void 0,1),F=this.length,M=f(T),z=d(M.length),X=0;if(z+O>F)throw RangeError("Wrong length");for(;X<z;)this[O+X]=M[X++]},b)},678:function(a,c,o){var u=o(260),d=o(6707),h=o(7293),f=u.aTypedArray,m=u.aTypedArrayConstructor,p=u.exportTypedArrayMethod,y=[].slice,b=h(function(){new Int8Array(1).slice()});p("slice",function(T,O){for(var F=y.call(f(this),T,O),M=d(this,this.constructor),z=0,X=F.length,H=new(m(M))(X);X>z;)H[z]=F[z++];return H},b)},7462:function(a,c,o){var u=o(260),d=o(2092).some,h=u.aTypedArray,f=u.exportTypedArrayMethod;f("some",function(p){return d(h(this),p,arguments.length>1?arguments[1]:void 0)})},3824:function(a,c,o){var u=o(260),d=u.aTypedArray,h=u.exportTypedArrayMethod,f=[].sort;h("sort",function(p){return f.call(d(this),p)})},5021:function(a,c,o){var u=o(260),d=o(7466),h=o(1400),f=o(6707),m=u.aTypedArray,p=u.exportTypedArrayMethod;p("subarray",function(b,A){var T=m(this),O=T.length,F=h(b,O);return new(f(T,T.constructor))(T.buffer,T.byteOffset+F*T.BYTES_PER_ELEMENT,d((A===void 0?O:h(A,O))-F))})},2974:function(a,c,o){var u=o(7854),d=o(260),h=o(7293),f=u.Int8Array,m=d.aTypedArray,p=d.exportTypedArrayMethod,y=[].toLocaleString,b=[].slice,A=!!f&&h(function(){y.call(new f(1))}),T=h(function(){return[1,2].toLocaleString()!=new f([1,2]).toLocaleString()})||!h(function(){f.prototype.toLocaleString.call([1,2])});p("toLocaleString",function(){return y.apply(A?b.call(m(this)):m(this),arguments)},T)},5016:function(a,c,o){var u=o(260).exportTypedArrayMethod,d=o(7293),h=o(7854),f=h.Uint8Array,m=f&&f.prototype||{},p=[].toString,y=[].join;d(function(){p.call({})})&&(p=function(){return y.call(this)});var b=m.toString!=p;u("toString",p,b)},2472:function(a,c,o){var u=o(9843);u("Uint8",function(d){return function(f,m,p){return d(this,f,m,p)}})},4747:function(a,c,o){var u=o(7854),d=o(8324),h=o(8533),f=o(8880);for(var m in d){var p=u[m],y=p&&p.prototype;if(y&&y.forEach!==h)try{f(y,"forEach",h)}catch{y.forEach=h}}},3948:function(a,c,o){var u=o(7854),d=o(8324),h=o(6992),f=o(8880),m=o(5112),p=m("iterator"),y=m("toStringTag"),b=h.values;for(var A in d){var T=u[A],O=T&&T.prototype;if(O){if(O[p]!==b)try{f(O,p,b)}catch{O[p]=b}if(O[y]||f(O,y,A),d[A]){for(var F in h)if(O[F]!==h[F])try{f(O,F,h[F])}catch{O[F]=h[F]}}}}},1637:function(a,c,o){o(6992);var u=o(2109),d=o(5005),h=o(590),f=o(1320),m=o(2248),p=o(8003),y=o(4994),b=o(9909),A=o(5787),T=o(6656),O=o(9974),F=o(648),M=o(9670),z=o(111),X=o(30),H=o(9114),re=o(8554),G=o(1246),E=o(5112),P=d("fetch"),k=d("Headers"),$=E("iterator"),_="URLSearchParams",V=_+"Iterator",K=b.set,q=b.getterFor(_),J=b.getterFor(V),te=/\+/g,me=Array(4),ge=function(B){return me[B-1]||(me[B-1]=RegExp("((?:%[\\da-f]{2}){"+B+"})","gi"))},ye=function(B){try{return decodeURIComponent(B)}catch{return B}},xe=function(B){var U=B.replace(te," "),j=4;try{return decodeURIComponent(U)}catch{for(;j;)U=U.replace(ge(j--),ye);return U}},he=/[!'()~]|%20/g,ke={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ve=function(B){return ke[B]},N=function(B){return encodeURIComponent(B).replace(he,ve)},R=function(B,U){if(U)for(var j=U.split("&"),W=0,Z,Y;W<j.length;)Z=j[W++],Z.length&&(Y=Z.split("="),B.push({key:xe(Y.shift()),value:xe(Y.join("="))}))},w=function(B){this.entries.length=0,R(this.entries,B)},C=function(B,U){if(B<U)throw TypeError("Not enough arguments")},v=y(function(U,j){K(this,{type:V,iterator:re(q(U).entries),kind:j})},"Iterator",function(){var U=J(this),j=U.kind,W=U.iterator.next(),Z=W.value;return W.done||(W.value=j==="keys"?Z.key:j==="values"?Z.value:[Z.key,Z.value]),W}),x=function(){A(this,x,_);var U=arguments.length>0?arguments[0]:void 0,j=this,W=[],Z,Y,Q,ne,ie,fe,we,De,Ge;if(K(j,{type:_,entries:W,updateURL:function(){},updateSearchParams:w}),U!==void 0)if(z(U))if(Z=G(U),typeof Z=="function")for(Y=Z.call(U),Q=Y.next;!(ne=Q.call(Y)).done;){if(ie=re(M(ne.value)),fe=ie.next,(we=fe.call(ie)).done||(De=fe.call(ie)).done||!fe.call(ie).done)throw TypeError("Expected sequence with length 2");W.push({key:we.value+"",value:De.value+""})}else for(Ge in U)T(U,Ge)&&W.push({key:Ge,value:U[Ge]+""});else R(W,typeof U=="string"?U.charAt(0)==="?"?U.slice(1):U:U+"")},I=x.prototype;m(I,{append:function(U,j){C(arguments.length,2);var W=q(this);W.entries.push({key:U+"",value:j+""}),W.updateURL()},delete:function(B){C(arguments.length,1);for(var U=q(this),j=U.entries,W=B+"",Z=0;Z<j.length;)j[Z].key===W?j.splice(Z,1):Z++;U.updateURL()},get:function(U){C(arguments.length,1);for(var j=q(this).entries,W=U+"",Z=0;Z<j.length;Z++)if(j[Z].key===W)return j[Z].value;return null},getAll:function(U){C(arguments.length,1);for(var j=q(this).entries,W=U+"",Z=[],Y=0;Y<j.length;Y++)j[Y].key===W&&Z.push(j[Y].value);return Z},has:function(U){C(arguments.length,1);for(var j=q(this).entries,W=U+"",Z=0;Z<j.length;)if(j[Z++].key===W)return!0;return!1},set:function(U,j){C(arguments.length,1);for(var W=q(this),Z=W.entries,Y=!1,Q=U+"",ne=j+"",ie=0,fe;ie<Z.length;ie++)fe=Z[ie],fe.key===Q&&(Y?Z.splice(ie--,1):(Y=!0,fe.value=ne));Y||Z.push({key:Q,value:ne}),W.updateURL()},sort:function(){var U=q(this),j=U.entries,W=j.slice(),Z,Y,Q;for(j.length=0,Q=0;Q<W.length;Q++){for(Z=W[Q],Y=0;Y<Q;Y++)if(j[Y].key>Z.key){j.splice(Y,0,Z);break}Y===Q&&j.push(Z)}U.updateURL()},forEach:function(U){for(var j=q(this).entries,W=O(U,arguments.length>1?arguments[1]:void 0,3),Z=0,Y;Z<j.length;)Y=j[Z++],W(Y.value,Y.key,this)},keys:function(){return new v(this,"keys")},values:function(){return new v(this,"values")},entries:function(){return new v(this,"entries")}},{enumerable:!0}),f(I,$,I.entries),f(I,"toString",function(){for(var U=q(this).entries,j=[],W=0,Z;W<U.length;)Z=U[W++],j.push(N(Z.key)+"="+N(Z.value));return j.join("&")},{enumerable:!0}),p(x,_),u({global:!0,forced:!h},{URLSearchParams:x}),!h&&typeof P=="function"&&typeof k=="function"&&u({global:!0,enumerable:!0,forced:!0},{fetch:function(U){var j=[U],W,Z,Y;return arguments.length>1&&(W=arguments[1],z(W)&&(Z=W.body,F(Z)===_&&(Y=W.headers?new k(W.headers):new k,Y.has("content-type")||Y.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),W=X(W,{body:H(0,String(Z)),headers:H(0,Y)}))),j.push(W)),P.apply(this,j)}}),a.exports={URLSearchParams:x,getState:q}},285:function(a,c,o){o(8783);var u=o(2109),d=o(9781),h=o(590),f=o(7854),m=o(6048),p=o(1320),y=o(5787),b=o(6656),A=o(1574),T=o(8457),O=o(8710).codeAt,F=o(3197),M=o(8003),z=o(1637),X=o(9909),H=f.URL,re=z.URLSearchParams,G=z.getState,E=X.set,P=X.getterFor("URL"),k=Math.floor,$=Math.pow,_="Invalid authority",V="Invalid scheme",K="Invalid host",q="Invalid port",J=/[A-Za-z]/,te=/[\d+-.A-Za-z]/,me=/\d/,ge=/^(0x|0X)/,ye=/^[0-7]+$/,xe=/^\d+$/,he=/^[\dA-Fa-f]+$/,ke=/[\u0000\t\u000A\u000D #%/:?@[\\]]/,ve=/[\u0000\t\u000A\u000D #/:?@[\\]]/,N=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,R=/[\t\u000A\u000D]/g,w,C=function(L,ae){var se,ce,de;if(ae.charAt(0)=="["){if(ae.charAt(ae.length-1)!="]"||(se=x(ae.slice(1,-1)),!se))return K;L.host=se}else if(ne(L)){if(ae=F(ae),ke.test(ae)||(se=v(ae),se===null))return K;L.host=se}else{if(ve.test(ae))return K;for(se="",ce=T(ae),de=0;de<ce.length;de++)se+=Y(ce[de],U);L.host=se}},v=function(L){var ae=L.split("."),se,ce,de,Le,Ae,Ue,qe;if(ae.length&&ae[ae.length-1]==""&&ae.pop(),se=ae.length,se>4)return L;for(ce=[],de=0;de<se;de++){if(Le=ae[de],Le=="")return L;if(Ae=10,Le.length>1&&Le.charAt(0)=="0"&&(Ae=ge.test(Le)?16:8,Le=Le.slice(Ae==8?1:2)),Le==="")Ue=0;else{if(!(Ae==10?xe:Ae==8?ye:he).test(Le))return L;Ue=parseInt(Le,Ae)}ce.push(Ue)}for(de=0;de<se;de++)if(Ue=ce[de],de==se-1){if(Ue>=$(256,5-se))return null}else if(Ue>255)return null;for(qe=ce.pop(),de=0;de<ce.length;de++)qe+=ce[de]*$(256,3-de);return qe},x=function(L){var ae=[0,0,0,0,0,0,0,0],se=0,ce=null,de=0,Le,Ae,Ue,qe,Qe,Et,ue,st=function(){return L.charAt(de)};if(st()==":"){if(L.charAt(1)!=":")return;de+=2,se++,ce=se}for(;st();){if(se==8)return;if(st()==":"){if(ce!==null)return;de++,se++,ce=se;continue}for(Le=Ae=0;Ae<4&&he.test(st());)Le=Le*16+parseInt(st(),16),de++,Ae++;if(st()=="."){if(Ae==0||(de-=Ae,se>6))return;for(Ue=0;st();){if(qe=null,Ue>0)if(st()=="."&&Ue<4)de++;else return;if(!me.test(st()))return;for(;me.test(st());){if(Qe=parseInt(st(),10),qe===null)qe=Qe;else{if(qe==0)return;qe=qe*10+Qe}if(qe>255)return;de++}ae[se]=ae[se]*256+qe,Ue++,(Ue==2||Ue==4)&&se++}if(Ue!=4)return;break}else if(st()==":"){if(de++,!st())return}else if(st())return;ae[se++]=Le}if(ce!==null)for(Et=se-ce,se=7;se!=0&&Et>0;)ue=ae[se],ae[se--]=ae[ce+Et-1],ae[ce+--Et]=ue;else if(se!=8)return;return ae},I=function(L){for(var ae=null,se=1,ce=null,de=0,Le=0;Le<8;Le++)L[Le]!==0?(de>se&&(ae=ce,se=de),ce=null,de=0):(ce===null&&(ce=Le),++de);return de>se&&(ae=ce,se=de),ae},B=function(L){var ae,se,ce,de;if(typeof L=="number"){for(ae=[],se=0;se<4;se++)ae.unshift(L%256),L=k(L/256);return ae.join(".")}else if(typeof L=="object"){for(ae="",ce=I(L),se=0;se<8;se++)de&&L[se]===0||(de&&(de=!1),ce===se?(ae+=se?":":"::",de=!0):(ae+=L[se].toString(16),se<7&&(ae+=":")));return"["+ae+"]"}return L},U={},j=A({},U,{" ":1,'"':1,"<":1,">":1,"`":1}),W=A({},j,{"#":1,"?":1,"{":1,"}":1}),Z=A({},W,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Y=function(L,ae){var se=O(L,0);return se>32&&se<127&&!b(ae,L)?L:encodeURIComponent(L)},Q={ftp:21,file:null,http:80,https:443,ws:80,wss:443},ne=function(L){return b(Q,L.scheme)},ie=function(L){return L.username!=""||L.password!=""},fe=function(L){return!L.host||L.cannotBeABaseURL||L.scheme=="file"},we=function(L,ae){var se;return L.length==2&&J.test(L.charAt(0))&&((se=L.charAt(1))==":"||!ae&&se=="|")},De=function(L){var ae;return L.length>1&&we(L.slice(0,2))&&(L.length==2||(ae=L.charAt(2))==="/"||ae==="\\"||ae==="?"||ae==="#")},Ge=function(L){var ae=L.path,se=ae.length;se&&(L.scheme!="file"||se!=1||!we(ae[0],!0))&&ae.pop()},_e=function(L){return L==="."||L.toLowerCase()==="%2e"},Be=function(L){return L=L.toLowerCase(),L===".."||L==="%2e."||L===".%2e"||L==="%2e%2e"},Ve={},rt={},ot={},Dt={},bt={},$e={},Pe={},We={},pe={},be={},Ce={},Ie={},Re={},je={},Ke={},et={},dt={},ft={},Rt={},Ut={},lt={},kt=function(L,ae,se,ce){var de=se||Ve,Le=0,Ae="",Ue=!1,qe=!1,Qe=!1,Et,ue,st,It;for(se||(L.scheme="",L.username="",L.password="",L.host=null,L.port=null,L.path=[],L.query=null,L.fragment=null,L.cannotBeABaseURL=!1,ae=ae.replace(N,"")),ae=ae.replace(R,""),Et=T(ae);Le<=Et.length;){switch(ue=Et[Le],de){case Ve:if(ue&&J.test(ue))Ae+=ue.toLowerCase(),de=rt;else{if(se)return V;de=ot;continue}break;case rt:if(ue&&(te.test(ue)||ue=="+"||ue=="-"||ue=="."))Ae+=ue.toLowerCase();else if(ue==":"){if(se&&(ne(L)!=b(Q,Ae)||Ae=="file"&&(ie(L)||L.port!==null)||L.scheme=="file"&&!L.host))return;if(L.scheme=Ae,se){ne(L)&&Q[L.scheme]==L.port&&(L.port=null);return}Ae="",L.scheme=="file"?de=je:ne(L)&&ce&&ce.scheme==L.scheme?de=Dt:ne(L)?de=We:Et[Le+1]=="/"?(de=bt,Le++):(L.cannotBeABaseURL=!0,L.path.push(""),de=Rt)}else{if(se)return V;Ae="",de=ot,Le=0;continue}break;case ot:if(!ce||ce.cannotBeABaseURL&&ue!="#")return V;if(ce.cannotBeABaseURL&&ue=="#"){L.scheme=ce.scheme,L.path=ce.path.slice(),L.query=ce.query,L.fragment="",L.cannotBeABaseURL=!0,de=lt;break}de=ce.scheme=="file"?je:$e;continue;case Dt:if(ue=="/"&&Et[Le+1]=="/")de=pe,Le++;else{de=$e;continue}break;case bt:if(ue=="/"){de=be;break}else{de=ft;continue}case $e:if(L.scheme=ce.scheme,ue==w)L.username=ce.username,L.password=ce.password,L.host=ce.host,L.port=ce.port,L.path=ce.path.slice(),L.query=ce.query;else if(ue=="/"||ue=="\\"&&ne(L))de=Pe;else if(ue=="?")L.username=ce.username,L.password=ce.password,L.host=ce.host,L.port=ce.port,L.path=ce.path.slice(),L.query="",de=Ut;else if(ue=="#")L.username=ce.username,L.password=ce.password,L.host=ce.host,L.port=ce.port,L.path=ce.path.slice(),L.query=ce.query,L.fragment="",de=lt;else{L.username=ce.username,L.password=ce.password,L.host=ce.host,L.port=ce.port,L.path=ce.path.slice(),L.path.pop(),de=ft;continue}break;case Pe:if(ne(L)&&(ue=="/"||ue=="\\"))de=pe;else if(ue=="/")de=be;else{L.username=ce.username,L.password=ce.password,L.host=ce.host,L.port=ce.port,de=ft;continue}break;case We:if(de=pe,ue!="/"||Ae.charAt(Le+1)!="/")continue;Le++;break;case pe:if(ue!="/"&&ue!="\\"){de=be;continue}break;case be:if(ue=="@"){Ue&&(Ae="%40"+Ae),Ue=!0,st=T(Ae);for(var Wn=0;Wn<st.length;Wn++){var yn=st[Wn];if(yn==":"&&!Qe){Qe=!0;continue}var On=Y(yn,Z);Qe?L.password+=On:L.username+=On}Ae=""}else if(ue==w||ue=="/"||ue=="?"||ue=="#"||ue=="\\"&&ne(L)){if(Ue&&Ae=="")return _;Le-=T(Ae).length+1,Ae="",de=Ce}else Ae+=ue;break;case Ce:case Ie:if(se&&L.scheme=="file"){de=et;continue}else if(ue==":"&&!qe){if(Ae=="")return K;if(It=C(L,Ae),It)return It;if(Ae="",de=Re,se==Ie)return}else if(ue==w||ue=="/"||ue=="?"||ue=="#"||ue=="\\"&&ne(L)){if(ne(L)&&Ae=="")return K;if(se&&Ae==""&&(ie(L)||L.port!==null))return;if(It=C(L,Ae),It)return It;if(Ae="",de=dt,se)return;continue}else ue=="["?qe=!0:ue=="]"&&(qe=!1),Ae+=ue;break;case Re:if(me.test(ue))Ae+=ue;else if(ue==w||ue=="/"||ue=="?"||ue=="#"||ue=="\\"&&ne(L)||se){if(Ae!=""){var Zt=parseInt(Ae,10);if(Zt>65535)return q;L.port=ne(L)&&Zt===Q[L.scheme]?null:Zt,Ae=""}if(se)return;de=dt;continue}else return q;break;case je:if(L.scheme="file",ue=="/"||ue=="\\")de=Ke;else if(ce&&ce.scheme=="file")if(ue==w)L.host=ce.host,L.path=ce.path.slice(),L.query=ce.query;else if(ue=="?")L.host=ce.host,L.path=ce.path.slice(),L.query="",de=Ut;else if(ue=="#")L.host=ce.host,L.path=ce.path.slice(),L.query=ce.query,L.fragment="",de=lt;else{De(Et.slice(Le).join(""))||(L.host=ce.host,L.path=ce.path.slice(),Ge(L)),de=ft;continue}else{de=ft;continue}break;case Ke:if(ue=="/"||ue=="\\"){de=et;break}ce&&ce.scheme=="file"&&!De(Et.slice(Le).join(""))&&(we(ce.path[0],!0)?L.path.push(ce.path[0]):L.host=ce.host),de=ft;continue;case et:if(ue==w||ue=="/"||ue=="\\"||ue=="?"||ue=="#"){if(!se&&we(Ae))de=ft;else if(Ae==""){if(L.host="",se)return;de=dt}else{if(It=C(L,Ae),It)return It;if(L.host=="localhost"&&(L.host=""),se)return;Ae="",de=dt}continue}else Ae+=ue;break;case dt:if(ne(L)){if(de=ft,ue!="/"&&ue!="\\")continue}else if(!se&&ue=="?")L.query="",de=Ut;else if(!se&&ue=="#")L.fragment="",de=lt;else if(ue!=w&&(de=ft,ue!="/"))continue;break;case ft:if(ue==w||ue=="/"||ue=="\\"&&ne(L)||!se&&(ue=="?"||ue=="#")){if(Be(Ae)?(Ge(L),ue!="/"&&!(ue=="\\"&&ne(L))&&L.path.push("")):_e(Ae)?ue!="/"&&!(ue=="\\"&&ne(L))&&L.path.push(""):(L.scheme=="file"&&!L.path.length&&we(Ae)&&(L.host&&(L.host=""),Ae=Ae.charAt(0)+":"),L.path.push(Ae)),Ae="",L.scheme=="file"&&(ue==w||ue=="?"||ue=="#"))for(;L.path.length>1&&L.path[0]==="";)L.path.shift();ue=="?"?(L.query="",de=Ut):ue=="#"&&(L.fragment="",de=lt)}else Ae+=Y(ue,W);break;case Rt:ue=="?"?(L.query="",de=Ut):ue=="#"?(L.fragment="",de=lt):ue!=w&&(L.path[0]+=Y(ue,U));break;case Ut:!se&&ue=="#"?(L.fragment="",de=lt):ue!=w&&(ue=="'"&&ne(L)?L.query+="%27":ue=="#"?L.query+="%23":L.query+=Y(ue,U));break;case lt:ue!=w&&(L.fragment+=Y(ue,j));break}Le++}},Yt=function(ae){var se=y(this,Yt,"URL"),ce=arguments.length>1?arguments[1]:void 0,de=String(ae),Le=E(se,{type:"URL"}),Ae,Ue;if(ce!==void 0){if(ce instanceof Yt)Ae=P(ce);else if(Ue=kt(Ae={},String(ce)),Ue)throw TypeError(Ue)}if(Ue=kt(Le,de,null,Ae),Ue)throw TypeError(Ue);var qe=Le.searchParams=new re,Qe=G(qe);Qe.updateSearchParams(Le.query),Qe.updateURL=function(){Le.query=String(qe)||null},d||(se.href=gn.call(se),se.origin=Cn.call(se),se.protocol=it.call(se),se.username=mr.call(se),se.password=gr.call(se),se.host=yr.call(se),se.hostname=vr.call(se),se.port=br.call(se),se.pathname=ct.call(se),se.search=xr.call(se),se.searchParams=Er.call(se),se.hash=wr.call(se))},Gn=Yt.prototype,gn=function(){var L=P(this),ae=L.scheme,se=L.username,ce=L.password,de=L.host,Le=L.port,Ae=L.path,Ue=L.query,qe=L.fragment,Qe=ae+":";return de!==null?(Qe+="//",ie(L)&&(Qe+=se+(ce?":"+ce:"")+"@"),Qe+=B(de),Le!==null&&(Qe+=":"+Le)):ae=="file"&&(Qe+="//"),Qe+=L.cannotBeABaseURL?Ae[0]:Ae.length?"/"+Ae.join("/"):"",Ue!==null&&(Qe+="?"+Ue),qe!==null&&(Qe+="#"+qe),Qe},Cn=function(){var L=P(this),ae=L.scheme,se=L.port;if(ae=="blob")try{return new URL(ae.path[0]).origin}catch{return"null"}return ae=="file"||!ne(L)?"null":ae+"://"+B(L.host)+(se!==null?":"+se:"")},it=function(){return P(this).scheme+":"},mr=function(){return P(this).username},gr=function(){return P(this).password},yr=function(){var L=P(this),ae=L.host,se=L.port;return ae===null?"":se===null?B(ae):B(ae)+":"+se},vr=function(){var L=P(this).host;return L===null?"":B(L)},br=function(){var L=P(this).port;return L===null?"":String(L)},ct=function(){var L=P(this),ae=L.path;return L.cannotBeABaseURL?ae[0]:ae.length?"/"+ae.join("/"):""},xr=function(){var L=P(this).query;return L?"?"+L:""},Er=function(){return P(this).searchParams},wr=function(){var L=P(this).fragment;return L?"#"+L:""},xt=function(L,ae){return{get:L,set:ae,configurable:!0,enumerable:!0}};if(d&&m(Gn,{href:xt(gn,function(L){var ae=P(this),se=String(L),ce=kt(ae,se);if(ce)throw TypeError(ce);G(ae.searchParams).updateSearchParams(ae.query)}),origin:xt(Cn),protocol:xt(it,function(L){var ae=P(this);kt(ae,String(L)+":",Ve)}),username:xt(mr,function(L){var ae=P(this),se=T(String(L));if(!fe(ae)){ae.username="";for(var ce=0;ce<se.length;ce++)ae.username+=Y(se[ce],Z)}}),password:xt(gr,function(L){var ae=P(this),se=T(String(L));if(!fe(ae)){ae.password="";for(var ce=0;ce<se.length;ce++)ae.password+=Y(se[ce],Z)}}),host:xt(yr,function(L){var ae=P(this);ae.cannotBeABaseURL||kt(ae,String(L),Ce)}),hostname:xt(vr,function(L){var ae=P(this);ae.cannotBeABaseURL||kt(ae,String(L),Ie)}),port:xt(br,function(L){var ae=P(this);fe(ae)||(L=String(L),L==""?ae.port=null:kt(ae,L,Re))}),pathname:xt(ct,function(L){var ae=P(this);ae.cannotBeABaseURL||(ae.path=[],kt(ae,L+"",dt))}),search:xt(xr,function(L){var ae=P(this);L=String(L),L==""?ae.query=null:(L.charAt(0)=="?"&&(L=L.slice(1)),ae.query="",kt(ae,L,Ut)),G(ae.searchParams).updateSearchParams(ae.query)}),searchParams:xt(Er),hash:xt(wr,function(L){var ae=P(this);if(L=String(L),L==""){ae.fragment=null;return}L.charAt(0)=="#"&&(L=L.slice(1)),ae.fragment="",kt(ae,L,lt)})}),p(Gn,"toJSON",function(){return gn.call(this)},{enumerable:!0}),p(Gn,"toString",function(){return gn.call(this)},{enumerable:!0}),H){var Ar=H.createObjectURL,pt=H.revokeObjectURL;Ar&&p(Yt,"createObjectURL",function(ae){return Ar.apply(H,arguments)}),pt&&p(Yt,"revokeObjectURL",function(ae){return pt.apply(H,arguments)})}M(Yt,"URL"),u({global:!0,forced:!h,sham:!d},{URL:Yt})}},r={};function s(a){if(r[a])return r[a].exports;var c=r[a]={exports:{}};return t[a](c,c.exports,s),c.exports}(function(){s.d=function(a,c){for(var o in c)s.o(c,o)&&!s.o(a,o)&&Object.defineProperty(a,o,{enumerable:!0,get:c[o]})}})(),function(){s.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}()}(),function(){s.o=function(a,c){return Object.prototype.hasOwnProperty.call(a,c)}}(),function(){s.r=function(a){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})}}();var l={};return function(){s.r(l),s.d(l,{Dropzone:function(){return q},default:function(){return ve}}),s(2222),s(7327),s(2772),s(6992),s(1249),s(7042),s(561),s(8264),s(8309),s(489),s(1539),s(4916),s(9714),s(8783),s(4723),s(5306),s(3123),s(3210),s(2472),s(2990),s(8927),s(3105),s(5035),s(4345),s(7174),s(2846),s(4731),s(7209),s(6319),s(8867),s(7789),s(3739),s(9368),s(4483),s(2056),s(3462),s(678),s(7462),s(3824),s(5021),s(2974),s(5016),s(4747),s(3948),s(285);function a(N,R){var w;if(typeof Symbol>"u"||N[Symbol.iterator]==null){if(Array.isArray(N)||(w=c(N))||N&&typeof N.length=="number"){w&&(N=w);var C=0,v=function(){};return{s:v,n:function(){return C>=N.length?{done:!0}:{done:!1,value:N[C++]}},e:function(j){throw j},f:v}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
5
+ `):" "+Ta(l[0]):"as no adapter specified";throw new Me("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:vo};function bo(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new Qn(null,n)}function ka(n){return bo(n),n.headers=Nt.from(n.headers),n.data=go.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),Na.getAdapter(n.adapter||Lr.adapter)(n).then(function(r){return bo(n),r.data=go.call(n,n.transformResponse,r),r.headers=Nt.from(r.headers),r},function(r){return pa(r)||(bo(n),r&&r.response&&(r.response.data=go.call(n,n.transformResponse,r.response),r.response.headers=Nt.from(r.response.headers))),Promise.reject(r)})}const Ca="1.9.0",vs={};["object","boolean","number","function","string","symbol"].forEach((n,e)=>{vs[n]=function(r){return typeof r===n||"a"+(e<1?"n ":" ")+n}});const Oa={};vs.transitional=function(e,t,r){function s(l,a){return"[Axios v"+Ca+"] Transitional option '"+l+"'"+a+(r?". "+r:"")}return(l,a,c)=>{if(e===!1)throw new Me(s(a," has been removed"+(t?" in "+t:"")),Me.ERR_DEPRECATED);return t&&!Oa[a]&&(Oa[a]=!0,console.warn(s(a," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(l,a,c):!0}},vs.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function eh(n,e,t){if(typeof n!="object")throw new Me("options must be an object",Me.ERR_BAD_OPTION_VALUE);const r=Object.keys(n);let s=r.length;for(;s-- >0;){const l=r[s],a=e[l];if(a){const c=n[l],o=c===void 0||a(c,l,n);if(o!==!0)throw new Me("option "+l+" must be "+o,Me.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new Me("Unknown option "+l,Me.ERR_BAD_OPTION)}}const bs={assertOptions:eh,validators:vs},Qt=bs.validators;let Fn=class{constructor(e){this.defaults=e||{},this.interceptors={request:new ua,response:new ua}}async request(e,t){try{return await this._request(e,t)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const l=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?l&&!String(r.stack).endsWith(l.replace(/^.+\n.+\n/,""))&&(r.stack+=`
6
+ `+l):r.stack=l}catch{}}throw r}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=Pn(this.defaults,t);const{transitional:r,paramsSerializer:s,headers:l}=t;r!==void 0&&bs.assertOptions(r,{silentJSONParsing:Qt.transitional(Qt.boolean),forcedJSONParsing:Qt.transitional(Qt.boolean),clarifyTimeoutError:Qt.transitional(Qt.boolean)},!1),s!=null&&(ee.isFunction(s)?t.paramsSerializer={serialize:s}:bs.assertOptions(s,{encode:Qt.function,serialize:Qt.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),bs.assertOptions(t,{baseUrl:Qt.spelling("baseURL"),withXsrfToken:Qt.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=l&&ee.merge(l.common,l[t.method]);l&&ee.forEach(["delete","get","head","post","put","patch","common"],p=>{delete l[p]}),t.headers=Nt.concat(a,l);const c=[];let o=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(t)===!1||(o=o&&y.synchronous,c.unshift(y.fulfilled,y.rejected))});const u=[];this.interceptors.response.forEach(function(y){u.push(y.fulfilled,y.rejected)});let d,h=0,f;if(!o){const p=[ka.bind(this),void 0];for(p.unshift.apply(p,c),p.push.apply(p,u),f=p.length,d=Promise.resolve(t);h<f;)d=d.then(p[h++],p[h++]);return d}f=c.length;let m=t;for(h=0;h<f;){const p=c[h++],y=c[h++];try{m=p(m)}catch(b){y.call(this,b);break}}try{d=ka.call(this,m)}catch(p){return Promise.reject(p)}for(h=0,f=u.length;h<f;)d=d.then(u[h++],u[h++]);return d}getUri(e){e=Pn(this.defaults,e);const t=va(e.baseURL,e.url,e.allowAbsoluteUrls);return ca(t,e.params,e.paramsSerializer)}};ee.forEach(["delete","get","head","options"],function(e){Fn.prototype[e]=function(t,r){return this.request(Pn(r||{},{method:e,url:t,data:(r||{}).data}))}}),ee.forEach(["post","put","patch"],function(e){function t(r){return function(l,a,c){return this.request(Pn(c||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:l,data:a}))}}Fn.prototype[e]=t(),Fn.prototype[e+"Form"]=t(!0)});let th=class tu{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(l){t=l});const r=this;this.promise.then(s=>{if(!r._listeners)return;let l=r._listeners.length;for(;l-- >0;)r._listeners[l](s);r._listeners=null}),this.promise.then=s=>{let l;const a=new Promise(c=>{r.subscribe(c),l=c}).then(s);return a.cancel=function(){r.unsubscribe(l)},a},e(function(l,a,c){r.reason||(r.reason=new Qn(l,a,c),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=r=>{e.abort(r)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new tu(function(s){e=s}),cancel:e}}};function nh(n){return function(t){return n.apply(null,t)}}function rh(n){return ee.isObject(n)&&n.isAxiosError===!0}const xo={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(xo).forEach(([n,e])=>{xo[e]=n});function Ra(n){const e=new Fn(n),t=Ki(Fn.prototype.request,e);return ee.extend(t,Fn.prototype,e,{allOwnKeys:!0}),ee.extend(t,e,null,{allOwnKeys:!0}),t.create=function(s){return Ra(Pn(n,s))},t}const tt=Ra(Lr);tt.Axios=Fn,tt.CanceledError=Qn,tt.CancelToken=th,tt.isCancel=pa,tt.VERSION=Ca,tt.toFormData=hs,tt.AxiosError=Me,tt.Cancel=tt.CanceledError,tt.all=function(e){return Promise.all(e)},tt.spread=nh,tt.isAxiosError=rh,tt.mergeConfig=Pn,tt.AxiosHeaders=Nt,tt.formToJSON=n=>fa(ee.isHTMLForm(n)?new FormData(n):n),tt.getAdapter=Na.getAdapter,tt.HttpStatusCode=xo,tt.default=tt;const{Axios:yE,AxiosError:vE,CanceledError:bE,isCancel:xE,CancelToken:EE,VERSION:wE,all:AE,Cancel:SE,isAxiosError:TE,spread:NE,toFormData:kE,AxiosHeaders:CE,HttpStatusCode:OE,formToJSON:RE,getAdapter:IE,mergeConfig:LE}=tt;var En=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Eo(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var wo={exports:{}},Ia;function sh(){return Ia||(Ia=1,function(n,e){(function(r,s){n.exports=s()})(self,function(){return function(){var t={3099:function(a){a.exports=function(c){if(typeof c!="function")throw TypeError(String(c)+" is not a function");return c}},6077:function(a,c,o){var u=o(111);a.exports=function(d){if(!u(d)&&d!==null)throw TypeError("Can't set "+String(d)+" as a prototype");return d}},1223:function(a,c,o){var u=o(5112),d=o(30),h=o(3070),f=u("unscopables"),m=Array.prototype;m[f]==null&&h.f(m,f,{configurable:!0,value:d(null)}),a.exports=function(p){m[f][p]=!0}},1530:function(a,c,o){var u=o(8710).charAt;a.exports=function(d,h,f){return h+(f?u(d,h).length:1)}},5787:function(a){a.exports=function(c,o,u){if(!(c instanceof o))throw TypeError("Incorrect "+(u?u+" ":"")+"invocation");return c}},9670:function(a,c,o){var u=o(111);a.exports=function(d){if(!u(d))throw TypeError(String(d)+" is not an object");return d}},4019:function(a){a.exports=typeof ArrayBuffer<"u"&&typeof DataView<"u"},260:function(a,c,o){var u=o(4019),d=o(9781),h=o(7854),f=o(111),m=o(6656),p=o(648),y=o(8880),b=o(1320),A=o(3070).f,T=o(9518),O=o(7674),F=o(5112),M=o(9711),z=h.Int8Array,X=z&&z.prototype,H=h.Uint8ClampedArray,re=H&&H.prototype,G=z&&T(z),E=X&&T(X),P=Object.prototype,k=P.isPrototypeOf,$=F("toStringTag"),_=M("TYPED_ARRAY_TAG"),V=u&&!!O&&p(h.opera)!=="Opera",K=!1,q,Q={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},te={BigInt64Array:8,BigUint64Array:8},me=function(N){if(!f(N))return!1;var R=p(N);return R==="DataView"||m(Q,R)||m(te,R)},ge=function(ve){if(!f(ve))return!1;var N=p(ve);return m(Q,N)||m(te,N)},ye=function(ve){if(ge(ve))return ve;throw TypeError("Target is not a typed array")},xe=function(ve){if(O){if(k.call(G,ve))return ve}else for(var N in Q)if(m(Q,q)){var R=h[N];if(R&&(ve===R||k.call(R,ve)))return ve}throw TypeError("Target is not a typed array constructor")},he=function(ve,N,R){if(d){if(R)for(var w in Q){var C=h[w];C&&m(C.prototype,ve)&&delete C.prototype[ve]}(!E[ve]||R)&&b(E,ve,R?N:V&&X[ve]||N)}},ke=function(ve,N,R){var w,C;if(d){if(O){if(R)for(w in Q)C=h[w],C&&m(C,ve)&&delete C[ve];if(!G[ve]||R)try{return b(G,ve,R?N:V&&z[ve]||N)}catch{}else return}for(w in Q)C=h[w],C&&(!C[ve]||R)&&b(C,ve,N)}};for(q in Q)h[q]||(V=!1);if((!V||typeof G!="function"||G===Function.prototype)&&(G=function(){throw TypeError("Incorrect invocation")},V))for(q in Q)h[q]&&O(h[q],G);if((!V||!E||E===P)&&(E=G.prototype,V))for(q in Q)h[q]&&O(h[q].prototype,E);if(V&&T(re)!==E&&O(re,E),d&&!m(E,$)){K=!0,A(E,$,{get:function(){return f(this)?this[_]:void 0}});for(q in Q)h[q]&&y(h[q],_,q)}a.exports={NATIVE_ARRAY_BUFFER_VIEWS:V,TYPED_ARRAY_TAG:K&&_,aTypedArray:ye,aTypedArrayConstructor:xe,exportTypedArrayMethod:he,exportTypedArrayStaticMethod:ke,isView:me,isTypedArray:ge,TypedArray:G,TypedArrayPrototype:E}},3331:function(a,c,o){var u=o(7854),d=o(9781),h=o(4019),f=o(8880),m=o(2248),p=o(7293),y=o(5787),b=o(9958),A=o(7466),T=o(7067),O=o(1179),F=o(9518),M=o(7674),z=o(8006).f,X=o(3070).f,H=o(1285),re=o(8003),G=o(9909),E=G.get,P=G.set,k="ArrayBuffer",$="DataView",_="prototype",V="Wrong length",K="Wrong index",q=u[k],Q=q,te=u[$],me=te&&te[_],ge=Object.prototype,ye=u.RangeError,xe=O.pack,he=O.unpack,ke=function(J){return[J&255]},ve=function(J){return[J&255,J>>8&255]},N=function(J){return[J&255,J>>8&255,J>>16&255,J>>24&255]},R=function(J){return J[3]<<24|J[2]<<16|J[1]<<8|J[0]},w=function(J){return xe(J,23,4)},C=function(J){return xe(J,52,8)},v=function(J,ne){X(J[_],ne,{get:function(){return E(this)[ne]}})},x=function(J,ne,ie,fe){var we=T(ie),De=E(J);if(we+ne>De.byteLength)throw ye(K);var Ge=E(De.buffer).bytes,_e=we+De.byteOffset,Be=Ge.slice(_e,_e+ne);return fe?Be:Be.reverse()},I=function(J,ne,ie,fe,we,De){var Ge=T(ie),_e=E(J);if(Ge+ne>_e.byteLength)throw ye(K);for(var Be=E(_e.buffer).bytes,Ve=Ge+_e.byteOffset,rt=fe(+we),ot=0;ot<ne;ot++)Be[Ve+ot]=rt[De?ot:ne-ot-1]};if(!h)Q=function(ne){y(this,Q,k);var ie=T(ne);P(this,{bytes:H.call(new Array(ie),0),byteLength:ie}),d||(this.byteLength=ie)},te=function(ne,ie,fe){y(this,te,$),y(ne,Q,$);var we=E(ne).byteLength,De=b(ie);if(De<0||De>we)throw ye("Wrong offset");if(fe=fe===void 0?we-De:A(fe),De+fe>we)throw ye(V);P(this,{buffer:ne,byteLength:fe,byteOffset:De}),d||(this.buffer=ne,this.byteLength=fe,this.byteOffset=De)},d&&(v(Q,"byteLength"),v(te,"buffer"),v(te,"byteLength"),v(te,"byteOffset")),m(te[_],{getInt8:function(ne){return x(this,1,ne)[0]<<24>>24},getUint8:function(ne){return x(this,1,ne)[0]},getInt16:function(ne){var ie=x(this,2,ne,arguments.length>1?arguments[1]:void 0);return(ie[1]<<8|ie[0])<<16>>16},getUint16:function(ne){var ie=x(this,2,ne,arguments.length>1?arguments[1]:void 0);return ie[1]<<8|ie[0]},getInt32:function(ne){return R(x(this,4,ne,arguments.length>1?arguments[1]:void 0))},getUint32:function(ne){return R(x(this,4,ne,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(ne){return he(x(this,4,ne,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(ne){return he(x(this,8,ne,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(ne,ie){I(this,1,ne,ke,ie)},setUint8:function(ne,ie){I(this,1,ne,ke,ie)},setInt16:function(ne,ie){I(this,2,ne,ve,ie,arguments.length>2?arguments[2]:void 0)},setUint16:function(ne,ie){I(this,2,ne,ve,ie,arguments.length>2?arguments[2]:void 0)},setInt32:function(ne,ie){I(this,4,ne,N,ie,arguments.length>2?arguments[2]:void 0)},setUint32:function(ne,ie){I(this,4,ne,N,ie,arguments.length>2?arguments[2]:void 0)},setFloat32:function(ne,ie){I(this,4,ne,w,ie,arguments.length>2?arguments[2]:void 0)},setFloat64:function(ne,ie){I(this,8,ne,C,ie,arguments.length>2?arguments[2]:void 0)}});else{if(!p(function(){q(1)})||!p(function(){new q(-1)})||p(function(){return new q,new q(1.5),new q(NaN),q.name!=k})){Q=function(ne){return y(this,Q),new q(T(ne))};for(var B=Q[_]=q[_],U=z(q),j=0,W;U.length>j;)(W=U[j++])in Q||f(Q,W,q[W]);B.constructor=Q}M&&F(me)!==ge&&M(me,ge);var Z=new te(new Q(2)),Y=me.setInt8;Z.setInt8(0,2147483648),Z.setInt8(1,2147483649),(Z.getInt8(0)||!Z.getInt8(1))&&m(me,{setInt8:function(ne,ie){Y.call(this,ne,ie<<24>>24)},setUint8:function(ne,ie){Y.call(this,ne,ie<<24>>24)}},{unsafe:!0})}re(Q,k),re(te,$),a.exports={ArrayBuffer:Q,DataView:te}},1048:function(a,c,o){var u=o(7908),d=o(1400),h=o(7466),f=Math.min;a.exports=[].copyWithin||function(p,y){var b=u(this),A=h(b.length),T=d(p,A),O=d(y,A),F=arguments.length>2?arguments[2]:void 0,M=f((F===void 0?A:d(F,A))-O,A-T),z=1;for(O<T&&T<O+M&&(z=-1,O+=M-1,T+=M-1);M-- >0;)O in b?b[T]=b[O]:delete b[T],T+=z,O+=z;return b}},1285:function(a,c,o){var u=o(7908),d=o(1400),h=o(7466);a.exports=function(m){for(var p=u(this),y=h(p.length),b=arguments.length,A=d(b>1?arguments[1]:void 0,y),T=b>2?arguments[2]:void 0,O=T===void 0?y:d(T,y);O>A;)p[A++]=m;return p}},8533:function(a,c,o){var u=o(2092).forEach,d=o(9341),h=d("forEach");a.exports=h?[].forEach:function(m){return u(this,m,arguments.length>1?arguments[1]:void 0)}},8457:function(a,c,o){var u=o(9974),d=o(7908),h=o(3411),f=o(7659),m=o(7466),p=o(6135),y=o(1246);a.exports=function(A){var T=d(A),O=typeof this=="function"?this:Array,F=arguments.length,M=F>1?arguments[1]:void 0,z=M!==void 0,X=y(T),H=0,re,G,E,P,k,$;if(z&&(M=u(M,F>2?arguments[2]:void 0,2)),X!=null&&!(O==Array&&f(X)))for(P=X.call(T),k=P.next,G=new O;!(E=k.call(P)).done;H++)$=z?h(P,M,[E.value,H],!0):E.value,p(G,H,$);else for(re=m(T.length),G=new O(re);re>H;H++)$=z?M(T[H],H):T[H],p(G,H,$);return G.length=H,G}},1318:function(a,c,o){var u=o(5656),d=o(7466),h=o(1400),f=function(m){return function(p,y,b){var A=u(p),T=d(A.length),O=h(b,T),F;if(m&&y!=y){for(;T>O;)if(F=A[O++],F!=F)return!0}else for(;T>O;O++)if((m||O in A)&&A[O]===y)return m||O||0;return!m&&-1}};a.exports={includes:f(!0),indexOf:f(!1)}},2092:function(a,c,o){var u=o(9974),d=o(8361),h=o(7908),f=o(7466),m=o(5417),p=[].push,y=function(b){var A=b==1,T=b==2,O=b==3,F=b==4,M=b==6,z=b==7,X=b==5||M;return function(H,re,G,E){for(var P=h(H),k=d(P),$=u(re,G,3),_=f(k.length),V=0,K=E||m,q=A?K(H,_):T||z?K(H,0):void 0,Q,te;_>V;V++)if((X||V in k)&&(Q=k[V],te=$(Q,V,P),b))if(A)q[V]=te;else if(te)switch(b){case 3:return!0;case 5:return Q;case 6:return V;case 2:p.call(q,Q)}else switch(b){case 4:return!1;case 7:p.call(q,Q)}return M?-1:O||F?F:q}};a.exports={forEach:y(0),map:y(1),filter:y(2),some:y(3),every:y(4),find:y(5),findIndex:y(6),filterOut:y(7)}},6583:function(a,c,o){var u=o(5656),d=o(9958),h=o(7466),f=o(9341),m=Math.min,p=[].lastIndexOf,y=!!p&&1/[1].lastIndexOf(1,-0)<0,b=f("lastIndexOf"),A=y||!b;a.exports=A?function(O){if(y)return p.apply(this,arguments)||0;var F=u(this),M=h(F.length),z=M-1;for(arguments.length>1&&(z=m(z,d(arguments[1]))),z<0&&(z=M+z);z>=0;z--)if(z in F&&F[z]===O)return z||0;return-1}:p},1194:function(a,c,o){var u=o(7293),d=o(5112),h=o(7392),f=d("species");a.exports=function(m){return h>=51||!u(function(){var p=[],y=p.constructor={};return y[f]=function(){return{foo:1}},p[m](Boolean).foo!==1})}},9341:function(a,c,o){var u=o(7293);a.exports=function(d,h){var f=[][d];return!!f&&u(function(){f.call(null,h||function(){throw 1},1)})}},3671:function(a,c,o){var u=o(3099),d=o(7908),h=o(8361),f=o(7466),m=function(p){return function(y,b,A,T){u(b);var O=d(y),F=h(O),M=f(O.length),z=p?M-1:0,X=p?-1:1;if(A<2)for(;;){if(z in F){T=F[z],z+=X;break}if(z+=X,p?z<0:M<=z)throw TypeError("Reduce of empty array with no initial value")}for(;p?z>=0:M>z;z+=X)z in F&&(T=b(T,F[z],z,O));return T}};a.exports={left:m(!1),right:m(!0)}},5417:function(a,c,o){var u=o(111),d=o(3157),h=o(5112),f=h("species");a.exports=function(m,p){var y;return d(m)&&(y=m.constructor,typeof y=="function"&&(y===Array||d(y.prototype))?y=void 0:u(y)&&(y=y[f],y===null&&(y=void 0))),new(y===void 0?Array:y)(p===0?0:p)}},3411:function(a,c,o){var u=o(9670),d=o(9212);a.exports=function(h,f,m,p){try{return p?f(u(m)[0],m[1]):f(m)}catch(y){throw d(h),y}}},7072:function(a,c,o){var u=o(5112),d=u("iterator"),h=!1;try{var f=0,m={next:function(){return{done:!!f++}},return:function(){h=!0}};m[d]=function(){return this},Array.from(m,function(){throw 2})}catch{}a.exports=function(p,y){if(!y&&!h)return!1;var b=!1;try{var A={};A[d]=function(){return{next:function(){return{done:b=!0}}}},p(A)}catch{}return b}},4326:function(a){var c={}.toString;a.exports=function(o){return c.call(o).slice(8,-1)}},648:function(a,c,o){var u=o(1694),d=o(4326),h=o(5112),f=h("toStringTag"),m=d(function(){return arguments}())=="Arguments",p=function(y,b){try{return y[b]}catch{}};a.exports=u?d:function(y){var b,A,T;return y===void 0?"Undefined":y===null?"Null":typeof(A=p(b=Object(y),f))=="string"?A:m?d(b):(T=d(b))=="Object"&&typeof b.callee=="function"?"Arguments":T}},9920:function(a,c,o){var u=o(6656),d=o(3887),h=o(1236),f=o(3070);a.exports=function(m,p){for(var y=d(p),b=f.f,A=h.f,T=0;T<y.length;T++){var O=y[T];u(m,O)||b(m,O,A(p,O))}}},8544:function(a,c,o){var u=o(7293);a.exports=!u(function(){function d(){}return d.prototype.constructor=null,Object.getPrototypeOf(new d)!==d.prototype})},4994:function(a,c,o){var u=o(3383).IteratorPrototype,d=o(30),h=o(9114),f=o(8003),m=o(7497),p=function(){return this};a.exports=function(y,b,A){var T=b+" Iterator";return y.prototype=d(u,{next:h(1,A)}),f(y,T,!1,!0),m[T]=p,y}},8880:function(a,c,o){var u=o(9781),d=o(3070),h=o(9114);a.exports=u?function(f,m,p){return d.f(f,m,h(1,p))}:function(f,m,p){return f[m]=p,f}},9114:function(a){a.exports=function(c,o){return{enumerable:!(c&1),configurable:!(c&2),writable:!(c&4),value:o}}},6135:function(a,c,o){var u=o(7593),d=o(3070),h=o(9114);a.exports=function(f,m,p){var y=u(m);y in f?d.f(f,y,h(0,p)):f[y]=p}},654:function(a,c,o){var u=o(2109),d=o(4994),h=o(9518),f=o(7674),m=o(8003),p=o(8880),y=o(1320),b=o(5112),A=o(1913),T=o(7497),O=o(3383),F=O.IteratorPrototype,M=O.BUGGY_SAFARI_ITERATORS,z=b("iterator"),X="keys",H="values",re="entries",G=function(){return this};a.exports=function(E,P,k,$,_,V,K){d(k,P,$);var q=function(N){if(N===_&&ye)return ye;if(!M&&N in me)return me[N];switch(N){case X:return function(){return new k(this,N)};case H:return function(){return new k(this,N)};case re:return function(){return new k(this,N)}}return function(){return new k(this)}},Q=P+" Iterator",te=!1,me=E.prototype,ge=me[z]||me["@@iterator"]||_&&me[_],ye=!M&&ge||q(_),xe=P=="Array"&&me.entries||ge,he,ke,ve;if(xe&&(he=h(xe.call(new E)),F!==Object.prototype&&he.next&&(!A&&h(he)!==F&&(f?f(he,F):typeof he[z]!="function"&&p(he,z,G)),m(he,Q,!0,!0),A&&(T[Q]=G))),_==H&&ge&&ge.name!==H&&(te=!0,ye=function(){return ge.call(this)}),(!A||K)&&me[z]!==ye&&p(me,z,ye),T[P]=ye,_)if(ke={values:q(H),keys:V?ye:q(X),entries:q(re)},K)for(ve in ke)(M||te||!(ve in me))&&y(me,ve,ke[ve]);else u({target:P,proto:!0,forced:M||te},ke);return ke}},9781:function(a,c,o){var u=o(7293);a.exports=!u(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},317:function(a,c,o){var u=o(7854),d=o(111),h=u.document,f=d(h)&&d(h.createElement);a.exports=function(m){return f?h.createElement(m):{}}},8324:function(a){a.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},8113:function(a,c,o){var u=o(5005);a.exports=u("navigator","userAgent")||""},7392:function(a,c,o){var u=o(7854),d=o(8113),h=u.process,f=h&&h.versions,m=f&&f.v8,p,y;m?(p=m.split("."),y=p[0]+p[1]):d&&(p=d.match(/Edge\/(\d+)/),(!p||p[1]>=74)&&(p=d.match(/Chrome\/(\d+)/),p&&(y=p[1]))),a.exports=y&&+y},748:function(a){a.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(a,c,o){var u=o(7854),d=o(1236).f,h=o(8880),f=o(1320),m=o(3505),p=o(9920),y=o(4705);a.exports=function(b,A){var T=b.target,O=b.global,F=b.stat,M,z,X,H,re,G;if(O?z=u:F?z=u[T]||m(T,{}):z=(u[T]||{}).prototype,z)for(X in A){if(re=A[X],b.noTargetGet?(G=d(z,X),H=G&&G.value):H=z[X],M=y(O?X:T+(F?".":"#")+X,b.forced),!M&&H!==void 0){if(typeof re==typeof H)continue;p(re,H)}(b.sham||H&&H.sham)&&h(re,"sham",!0),f(z,X,re,b)}}},7293:function(a){a.exports=function(c){try{return!!c()}catch{return!0}}},7007:function(a,c,o){o(4916);var u=o(1320),d=o(7293),h=o(5112),f=o(2261),m=o(8880),p=h("species"),y=!d(function(){var F=/./;return F.exec=function(){var M=[];return M.groups={a:"7"},M},"".replace(F,"$<a>")!=="7"}),b=function(){return"a".replace(/./,"$0")==="$0"}(),A=h("replace"),T=function(){return/./[A]?/./[A]("a","$0")==="":!1}(),O=!d(function(){var F=/(?:)/,M=F.exec;F.exec=function(){return M.apply(this,arguments)};var z="ab".split(F);return z.length!==2||z[0]!=="a"||z[1]!=="b"});a.exports=function(F,M,z,X){var H=h(F),re=!d(function(){var _={};return _[H]=function(){return 7},""[F](_)!=7}),G=re&&!d(function(){var _=!1,V=/a/;return F==="split"&&(V={},V.constructor={},V.constructor[p]=function(){return V},V.flags="",V[H]=/./[H]),V.exec=function(){return _=!0,null},V[H](""),!_});if(!re||!G||F==="replace"&&!(y&&b&&!T)||F==="split"&&!O){var E=/./[H],P=z(H,""[F],function(_,V,K,q,Q){return V.exec===f?re&&!Q?{done:!0,value:E.call(V,K,q)}:{done:!0,value:_.call(K,V,q)}:{done:!1}},{REPLACE_KEEPS_$0:b,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:T}),k=P[0],$=P[1];u(String.prototype,F,k),u(RegExp.prototype,H,M==2?function(_,V){return $.call(_,this,V)}:function(_){return $.call(_,this)})}X&&m(RegExp.prototype[H],"sham",!0)}},9974:function(a,c,o){var u=o(3099);a.exports=function(d,h,f){if(u(d),h===void 0)return d;switch(f){case 0:return function(){return d.call(h)};case 1:return function(m){return d.call(h,m)};case 2:return function(m,p){return d.call(h,m,p)};case 3:return function(m,p,y){return d.call(h,m,p,y)}}return function(){return d.apply(h,arguments)}}},5005:function(a,c,o){var u=o(857),d=o(7854),h=function(f){return typeof f=="function"?f:void 0};a.exports=function(f,m){return arguments.length<2?h(u[f])||h(d[f]):u[f]&&u[f][m]||d[f]&&d[f][m]}},1246:function(a,c,o){var u=o(648),d=o(7497),h=o(5112),f=h("iterator");a.exports=function(m){if(m!=null)return m[f]||m["@@iterator"]||d[u(m)]}},8554:function(a,c,o){var u=o(9670),d=o(1246);a.exports=function(h){var f=d(h);if(typeof f!="function")throw TypeError(String(h)+" is not iterable");return u(f.call(h))}},647:function(a,c,o){var u=o(7908),d=Math.floor,h="".replace,f=/\$([$&'`]|\d\d?|<[^>]*>)/g,m=/\$([$&'`]|\d\d?)/g;a.exports=function(p,y,b,A,T,O){var F=b+p.length,M=A.length,z=m;return T!==void 0&&(T=u(T),z=f),h.call(O,z,function(X,H){var re;switch(H.charAt(0)){case"$":return"$";case"&":return p;case"`":return y.slice(0,b);case"'":return y.slice(F);case"<":re=T[H.slice(1,-1)];break;default:var G=+H;if(G===0)return X;if(G>M){var E=d(G/10);return E===0?X:E<=M?A[E-1]===void 0?H.charAt(1):A[E-1]+H.charAt(1):X}re=A[G-1]}return re===void 0?"":re})}},7854:function(a,c,o){var u=function(d){return d&&d.Math==Math&&d};a.exports=u(typeof globalThis=="object"&&globalThis)||u(typeof window=="object"&&window)||u(typeof self=="object"&&self)||u(typeof o.g=="object"&&o.g)||function(){return this}()||Function("return this")()},6656:function(a){var c={}.hasOwnProperty;a.exports=function(o,u){return c.call(o,u)}},3501:function(a){a.exports={}},490:function(a,c,o){var u=o(5005);a.exports=u("document","documentElement")},4664:function(a,c,o){var u=o(9781),d=o(7293),h=o(317);a.exports=!u&&!d(function(){return Object.defineProperty(h("div"),"a",{get:function(){return 7}}).a!=7})},1179:function(a){var c=Math.abs,o=Math.pow,u=Math.floor,d=Math.log,h=Math.LN2,f=function(p,y,b){var A=new Array(b),T=b*8-y-1,O=(1<<T)-1,F=O>>1,M=y===23?o(2,-24)-o(2,-77):0,z=p<0||p===0&&1/p<0?1:0,X=0,H,re,G;for(p=c(p),p!=p||p===1/0?(re=p!=p?1:0,H=O):(H=u(d(p)/h),p*(G=o(2,-H))<1&&(H--,G*=2),H+F>=1?p+=M/G:p+=M*o(2,1-F),p*G>=2&&(H++,G/=2),H+F>=O?(re=0,H=O):H+F>=1?(re=(p*G-1)*o(2,y),H=H+F):(re=p*o(2,F-1)*o(2,y),H=0));y>=8;A[X++]=re&255,re/=256,y-=8);for(H=H<<y|re,T+=y;T>0;A[X++]=H&255,H/=256,T-=8);return A[--X]|=z*128,A},m=function(p,y){var b=p.length,A=b*8-y-1,T=(1<<A)-1,O=T>>1,F=A-7,M=b-1,z=p[M--],X=z&127,H;for(z>>=7;F>0;X=X*256+p[M],M--,F-=8);for(H=X&(1<<-F)-1,X>>=-F,F+=y;F>0;H=H*256+p[M],M--,F-=8);if(X===0)X=1-O;else{if(X===T)return H?NaN:z?-1/0:1/0;H=H+o(2,y),X=X-O}return(z?-1:1)*H*o(2,X-y)};a.exports={pack:f,unpack:m}},8361:function(a,c,o){var u=o(7293),d=o(4326),h="".split;a.exports=u(function(){return!Object("z").propertyIsEnumerable(0)})?function(f){return d(f)=="String"?h.call(f,""):Object(f)}:Object},9587:function(a,c,o){var u=o(111),d=o(7674);a.exports=function(h,f,m){var p,y;return d&&typeof(p=f.constructor)=="function"&&p!==m&&u(y=p.prototype)&&y!==m.prototype&&d(h,y),h}},2788:function(a,c,o){var u=o(5465),d=Function.toString;typeof u.inspectSource!="function"&&(u.inspectSource=function(h){return d.call(h)}),a.exports=u.inspectSource},9909:function(a,c,o){var u=o(8536),d=o(7854),h=o(111),f=o(8880),m=o(6656),p=o(5465),y=o(6200),b=o(3501),A=d.WeakMap,T,O,F,M=function(P){return F(P)?O(P):T(P,{})},z=function(P){return function(k){var $;if(!h(k)||($=O(k)).type!==P)throw TypeError("Incompatible receiver, "+P+" required");return $}};if(u){var X=p.state||(p.state=new A),H=X.get,re=X.has,G=X.set;T=function(P,k){return k.facade=P,G.call(X,P,k),k},O=function(P){return H.call(X,P)||{}},F=function(P){return re.call(X,P)}}else{var E=y("state");b[E]=!0,T=function(P,k){return k.facade=P,f(P,E,k),k},O=function(P){return m(P,E)?P[E]:{}},F=function(P){return m(P,E)}}a.exports={set:T,get:O,has:F,enforce:M,getterFor:z}},7659:function(a,c,o){var u=o(5112),d=o(7497),h=u("iterator"),f=Array.prototype;a.exports=function(m){return m!==void 0&&(d.Array===m||f[h]===m)}},3157:function(a,c,o){var u=o(4326);a.exports=Array.isArray||function(h){return u(h)=="Array"}},4705:function(a,c,o){var u=o(7293),d=/#|\.prototype\./,h=function(b,A){var T=m[f(b)];return T==y?!0:T==p?!1:typeof A=="function"?u(A):!!A},f=h.normalize=function(b){return String(b).replace(d,".").toLowerCase()},m=h.data={},p=h.NATIVE="N",y=h.POLYFILL="P";a.exports=h},111:function(a){a.exports=function(c){return typeof c=="object"?c!==null:typeof c=="function"}},1913:function(a){a.exports=!1},7850:function(a,c,o){var u=o(111),d=o(4326),h=o(5112),f=h("match");a.exports=function(m){var p;return u(m)&&((p=m[f])!==void 0?!!p:d(m)=="RegExp")}},9212:function(a,c,o){var u=o(9670);a.exports=function(d){var h=d.return;if(h!==void 0)return u(h.call(d)).value}},3383:function(a,c,o){var u=o(7293),d=o(9518),h=o(8880),f=o(6656),m=o(5112),p=o(1913),y=m("iterator"),b=!1,A=function(){return this},T,O,F;[].keys&&(F=[].keys(),"next"in F?(O=d(d(F)),O!==Object.prototype&&(T=O)):b=!0);var M=T==null||u(function(){var z={};return T[y].call(z)!==z});M&&(T={}),(!p||M)&&!f(T,y)&&h(T,y,A),a.exports={IteratorPrototype:T,BUGGY_SAFARI_ITERATORS:b}},7497:function(a){a.exports={}},133:function(a,c,o){var u=o(7293);a.exports=!!Object.getOwnPropertySymbols&&!u(function(){return!String(Symbol())})},590:function(a,c,o){var u=o(7293),d=o(5112),h=o(1913),f=d("iterator");a.exports=!u(function(){var m=new URL("b?a=1&b=2&c=3","http://a"),p=m.searchParams,y="";return m.pathname="c%20d",p.forEach(function(b,A){p.delete("b"),y+=A+b}),h&&!m.toJSON||!p.sort||m.href!=="http://a/c%20d?a=1&c=3"||p.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!p[f]||new URL("https://a@b").username!=="a"||new URLSearchParams(new URLSearchParams("a=b")).get("a")!=="b"||new URL("http://тест").host!=="xn--e1aybc"||new URL("http://a#б").hash!=="#%D0%B1"||y!=="a1c3"||new URL("http://x",void 0).host!=="x"})},8536:function(a,c,o){var u=o(7854),d=o(2788),h=u.WeakMap;a.exports=typeof h=="function"&&/native code/.test(d(h))},1574:function(a,c,o){var u=o(9781),d=o(7293),h=o(1956),f=o(5181),m=o(5296),p=o(7908),y=o(8361),b=Object.assign,A=Object.defineProperty;a.exports=!b||d(function(){if(u&&b({b:1},b(A({},"a",{enumerable:!0,get:function(){A(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var T={},O={},F=Symbol(),M="abcdefghijklmnopqrst";return T[F]=7,M.split("").forEach(function(z){O[z]=z}),b({},T)[F]!=7||h(b({},O)).join("")!=M})?function(O,F){for(var M=p(O),z=arguments.length,X=1,H=f.f,re=m.f;z>X;)for(var G=y(arguments[X++]),E=H?h(G).concat(H(G)):h(G),P=E.length,k=0,$;P>k;)$=E[k++],(!u||re.call(G,$))&&(M[$]=G[$]);return M}:b},30:function(a,c,o){var u=o(9670),d=o(6048),h=o(748),f=o(3501),m=o(490),p=o(317),y=o(6200),b=">",A="<",T="prototype",O="script",F=y("IE_PROTO"),M=function(){},z=function(E){return A+O+b+E+A+"/"+O+b},X=function(E){E.write(z("")),E.close();var P=E.parentWindow.Object;return E=null,P},H=function(){var E=p("iframe"),P="java"+O+":",k;return E.style.display="none",m.appendChild(E),E.src=String(P),k=E.contentWindow.document,k.open(),k.write(z("document.F=Object")),k.close(),k.F},re,G=function(){try{re=document.domain&&new ActiveXObject("htmlfile")}catch{}G=re?X(re):H();for(var E=h.length;E--;)delete G[T][h[E]];return G()};f[F]=!0,a.exports=Object.create||function(P,k){var $;return P!==null?(M[T]=u(P),$=new M,M[T]=null,$[F]=P):$=G(),k===void 0?$:d($,k)}},6048:function(a,c,o){var u=o(9781),d=o(3070),h=o(9670),f=o(1956);a.exports=u?Object.defineProperties:function(p,y){h(p);for(var b=f(y),A=b.length,T=0,O;A>T;)d.f(p,O=b[T++],y[O]);return p}},3070:function(a,c,o){var u=o(9781),d=o(4664),h=o(9670),f=o(7593),m=Object.defineProperty;c.f=u?m:function(y,b,A){if(h(y),b=f(b,!0),h(A),d)try{return m(y,b,A)}catch{}if("get"in A||"set"in A)throw TypeError("Accessors not supported");return"value"in A&&(y[b]=A.value),y}},1236:function(a,c,o){var u=o(9781),d=o(5296),h=o(9114),f=o(5656),m=o(7593),p=o(6656),y=o(4664),b=Object.getOwnPropertyDescriptor;c.f=u?b:function(T,O){if(T=f(T),O=m(O,!0),y)try{return b(T,O)}catch{}if(p(T,O))return h(!d.f.call(T,O),T[O])}},8006:function(a,c,o){var u=o(6324),d=o(748),h=d.concat("length","prototype");c.f=Object.getOwnPropertyNames||function(m){return u(m,h)}},5181:function(a,c){c.f=Object.getOwnPropertySymbols},9518:function(a,c,o){var u=o(6656),d=o(7908),h=o(6200),f=o(8544),m=h("IE_PROTO"),p=Object.prototype;a.exports=f?Object.getPrototypeOf:function(y){return y=d(y),u(y,m)?y[m]:typeof y.constructor=="function"&&y instanceof y.constructor?y.constructor.prototype:y instanceof Object?p:null}},6324:function(a,c,o){var u=o(6656),d=o(5656),h=o(1318).indexOf,f=o(3501);a.exports=function(m,p){var y=d(m),b=0,A=[],T;for(T in y)!u(f,T)&&u(y,T)&&A.push(T);for(;p.length>b;)u(y,T=p[b++])&&(~h(A,T)||A.push(T));return A}},1956:function(a,c,o){var u=o(6324),d=o(748);a.exports=Object.keys||function(f){return u(f,d)}},5296:function(a,c){var o={}.propertyIsEnumerable,u=Object.getOwnPropertyDescriptor,d=u&&!o.call({1:2},1);c.f=d?function(f){var m=u(this,f);return!!m&&m.enumerable}:o},7674:function(a,c,o){var u=o(9670),d=o(6077);a.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var h=!1,f={},m;try{m=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,m.call(f,[]),h=f instanceof Array}catch{}return function(y,b){return u(y),d(b),h?m.call(y,b):y.__proto__=b,y}}():void 0)},288:function(a,c,o){var u=o(1694),d=o(648);a.exports=u?{}.toString:function(){return"[object "+d(this)+"]"}},3887:function(a,c,o){var u=o(5005),d=o(8006),h=o(5181),f=o(9670);a.exports=u("Reflect","ownKeys")||function(p){var y=d.f(f(p)),b=h.f;return b?y.concat(b(p)):y}},857:function(a,c,o){var u=o(7854);a.exports=u},2248:function(a,c,o){var u=o(1320);a.exports=function(d,h,f){for(var m in h)u(d,m,h[m],f);return d}},1320:function(a,c,o){var u=o(7854),d=o(8880),h=o(6656),f=o(3505),m=o(2788),p=o(9909),y=p.get,b=p.enforce,A=String(String).split("String");(a.exports=function(T,O,F,M){var z=M?!!M.unsafe:!1,X=M?!!M.enumerable:!1,H=M?!!M.noTargetGet:!1,re;if(typeof F=="function"&&(typeof O=="string"&&!h(F,"name")&&d(F,"name",O),re=b(F),re.source||(re.source=A.join(typeof O=="string"?O:""))),T===u){X?T[O]=F:f(O,F);return}else z?!H&&T[O]&&(X=!0):delete T[O];X?T[O]=F:d(T,O,F)})(Function.prototype,"toString",function(){return typeof this=="function"&&y(this).source||m(this)})},7651:function(a,c,o){var u=o(4326),d=o(2261);a.exports=function(h,f){var m=h.exec;if(typeof m=="function"){var p=m.call(h,f);if(typeof p!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return p}if(u(h)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return d.call(h,f)}},2261:function(a,c,o){var u=o(7066),d=o(2999),h=RegExp.prototype.exec,f=String.prototype.replace,m=h,p=function(){var T=/a/,O=/b*/g;return h.call(T,"a"),h.call(O,"a"),T.lastIndex!==0||O.lastIndex!==0}(),y=d.UNSUPPORTED_Y||d.BROKEN_CARET,b=/()??/.exec("")[1]!==void 0,A=p||b||y;A&&(m=function(O){var F=this,M,z,X,H,re=y&&F.sticky,G=u.call(F),E=F.source,P=0,k=O;return re&&(G=G.replace("y",""),G.indexOf("g")===-1&&(G+="g"),k=String(O).slice(F.lastIndex),F.lastIndex>0&&(!F.multiline||F.multiline&&O[F.lastIndex-1]!==`
7
+ `)&&(E="(?: "+E+")",k=" "+k,P++),z=new RegExp("^(?:"+E+")",G)),b&&(z=new RegExp("^"+E+"$(?!\\s)",G)),p&&(M=F.lastIndex),X=h.call(re?z:F,k),re?X?(X.input=X.input.slice(P),X[0]=X[0].slice(P),X.index=F.lastIndex,F.lastIndex+=X[0].length):F.lastIndex=0:p&&X&&(F.lastIndex=F.global?X.index+X[0].length:M),b&&X&&X.length>1&&f.call(X[0],z,function(){for(H=1;H<arguments.length-2;H++)arguments[H]===void 0&&(X[H]=void 0)}),X}),a.exports=m},7066:function(a,c,o){var u=o(9670);a.exports=function(){var d=u(this),h="";return d.global&&(h+="g"),d.ignoreCase&&(h+="i"),d.multiline&&(h+="m"),d.dotAll&&(h+="s"),d.unicode&&(h+="u"),d.sticky&&(h+="y"),h}},2999:function(a,c,o){var u=o(7293);function d(h,f){return RegExp(h,f)}c.UNSUPPORTED_Y=u(function(){var h=d("a","y");return h.lastIndex=2,h.exec("abcd")!=null}),c.BROKEN_CARET=u(function(){var h=d("^r","gy");return h.lastIndex=2,h.exec("str")!=null})},4488:function(a){a.exports=function(c){if(c==null)throw TypeError("Can't call method on "+c);return c}},3505:function(a,c,o){var u=o(7854),d=o(8880);a.exports=function(h,f){try{d(u,h,f)}catch{u[h]=f}return f}},6340:function(a,c,o){var u=o(5005),d=o(3070),h=o(5112),f=o(9781),m=h("species");a.exports=function(p){var y=u(p),b=d.f;f&&y&&!y[m]&&b(y,m,{configurable:!0,get:function(){return this}})}},8003:function(a,c,o){var u=o(3070).f,d=o(6656),h=o(5112),f=h("toStringTag");a.exports=function(m,p,y){m&&!d(m=y?m:m.prototype,f)&&u(m,f,{configurable:!0,value:p})}},6200:function(a,c,o){var u=o(2309),d=o(9711),h=u("keys");a.exports=function(f){return h[f]||(h[f]=d(f))}},5465:function(a,c,o){var u=o(7854),d=o(3505),h="__core-js_shared__",f=u[h]||d(h,{});a.exports=f},2309:function(a,c,o){var u=o(1913),d=o(5465);(a.exports=function(h,f){return d[h]||(d[h]=f!==void 0?f:{})})("versions",[]).push({version:"3.9.0",mode:u?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},6707:function(a,c,o){var u=o(9670),d=o(3099),h=o(5112),f=h("species");a.exports=function(m,p){var y=u(m).constructor,b;return y===void 0||(b=u(y)[f])==null?p:d(b)}},8710:function(a,c,o){var u=o(9958),d=o(4488),h=function(f){return function(m,p){var y=String(d(m)),b=u(p),A=y.length,T,O;return b<0||b>=A?f?"":void 0:(T=y.charCodeAt(b),T<55296||T>56319||b+1===A||(O=y.charCodeAt(b+1))<56320||O>57343?f?y.charAt(b):T:f?y.slice(b,b+2):(T-55296<<10)+(O-56320)+65536)}};a.exports={codeAt:h(!1),charAt:h(!0)}},3197:function(a){var c=2147483647,o=36,u=1,d=26,h=38,f=700,m=72,p=128,y="-",b=/[^\0-\u007E]/,A=/[.\u3002\uFF0E\uFF61]/g,T="Overflow: input needs wider integers to process",O=o-u,F=Math.floor,M=String.fromCharCode,z=function(G){for(var E=[],P=0,k=G.length;P<k;){var $=G.charCodeAt(P++);if($>=55296&&$<=56319&&P<k){var _=G.charCodeAt(P++);(_&64512)==56320?E.push((($&1023)<<10)+(_&1023)+65536):(E.push($),P--)}else E.push($)}return E},X=function(G){return G+22+75*(G<26)},H=function(G,E,P){var k=0;for(G=P?F(G/f):G>>1,G+=F(G/E);G>O*d>>1;k+=o)G=F(G/O);return F(k+(O+1)*G/(G+h))},re=function(G){var E=[];G=z(G);var P=G.length,k=p,$=0,_=m,V,K;for(V=0;V<G.length;V++)K=G[V],K<128&&E.push(M(K));var q=E.length,Q=q;for(q&&E.push(y);Q<P;){var te=c;for(V=0;V<G.length;V++)K=G[V],K>=k&&K<te&&(te=K);var me=Q+1;if(te-k>F((c-$)/me))throw RangeError(T);for($+=(te-k)*me,k=te,V=0;V<G.length;V++){if(K=G[V],K<k&&++$>c)throw RangeError(T);if(K==k){for(var ge=$,ye=o;;ye+=o){var xe=ye<=_?u:ye>=_+d?d:ye-_;if(ge<xe)break;var he=ge-xe,ke=o-xe;E.push(M(X(xe+he%ke))),ge=F(he/ke)}E.push(M(X(ge))),_=H($,me,Q==q),$=0,++Q}}++$,++k}return E.join("")};a.exports=function(G){var E=[],P=G.toLowerCase().replace(A,".").split("."),k,$;for(k=0;k<P.length;k++)$=P[k],E.push(b.test($)?"xn--"+re($):$);return E.join(".")}},6091:function(a,c,o){var u=o(7293),d=o(1361),h="​…᠎";a.exports=function(f){return u(function(){return!!d[f]()||h[f]()!=h||d[f].name!==f})}},3111:function(a,c,o){var u=o(4488),d=o(1361),h="["+d+"]",f=RegExp("^"+h+h+"*"),m=RegExp(h+h+"*$"),p=function(y){return function(b){var A=String(u(b));return y&1&&(A=A.replace(f,"")),y&2&&(A=A.replace(m,"")),A}};a.exports={start:p(1),end:p(2),trim:p(3)}},1400:function(a,c,o){var u=o(9958),d=Math.max,h=Math.min;a.exports=function(f,m){var p=u(f);return p<0?d(p+m,0):h(p,m)}},7067:function(a,c,o){var u=o(9958),d=o(7466);a.exports=function(h){if(h===void 0)return 0;var f=u(h),m=d(f);if(f!==m)throw RangeError("Wrong length or index");return m}},5656:function(a,c,o){var u=o(8361),d=o(4488);a.exports=function(h){return u(d(h))}},9958:function(a){var c=Math.ceil,o=Math.floor;a.exports=function(u){return isNaN(u=+u)?0:(u>0?o:c)(u)}},7466:function(a,c,o){var u=o(9958),d=Math.min;a.exports=function(h){return h>0?d(u(h),9007199254740991):0}},7908:function(a,c,o){var u=o(4488);a.exports=function(d){return Object(u(d))}},4590:function(a,c,o){var u=o(3002);a.exports=function(d,h){var f=u(d);if(f%h)throw RangeError("Wrong offset");return f}},3002:function(a,c,o){var u=o(9958);a.exports=function(d){var h=u(d);if(h<0)throw RangeError("The argument can't be less than 0");return h}},7593:function(a,c,o){var u=o(111);a.exports=function(d,h){if(!u(d))return d;var f,m;if(h&&typeof(f=d.toString)=="function"&&!u(m=f.call(d))||typeof(f=d.valueOf)=="function"&&!u(m=f.call(d))||!h&&typeof(f=d.toString)=="function"&&!u(m=f.call(d)))return m;throw TypeError("Can't convert object to primitive value")}},1694:function(a,c,o){var u=o(5112),d=u("toStringTag"),h={};h[d]="z",a.exports=String(h)==="[object z]"},9843:function(a,c,o){var u=o(2109),d=o(7854),h=o(9781),f=o(3832),m=o(260),p=o(3331),y=o(5787),b=o(9114),A=o(8880),T=o(7466),O=o(7067),F=o(4590),M=o(7593),z=o(6656),X=o(648),H=o(111),re=o(30),G=o(7674),E=o(8006).f,P=o(7321),k=o(2092).forEach,$=o(6340),_=o(3070),V=o(1236),K=o(9909),q=o(9587),Q=K.get,te=K.set,me=_.f,ge=V.f,ye=Math.round,xe=d.RangeError,he=p.ArrayBuffer,ke=p.DataView,ve=m.NATIVE_ARRAY_BUFFER_VIEWS,N=m.TYPED_ARRAY_TAG,R=m.TypedArray,w=m.TypedArrayPrototype,C=m.aTypedArrayConstructor,v=m.isTypedArray,x="BYTES_PER_ELEMENT",I="Wrong length",B=function(J,ne){for(var ie=0,fe=ne.length,we=new(C(J))(fe);fe>ie;)we[ie]=ne[ie++];return we},U=function(J,ne){me(J,ne,{get:function(){return Q(this)[ne]}})},j=function(J){var ne;return J instanceof he||(ne=X(J))=="ArrayBuffer"||ne=="SharedArrayBuffer"},W=function(J,ne){return v(J)&&typeof ne!="symbol"&&ne in J&&String(+ne)==String(ne)},Z=function(ne,ie){return W(ne,ie=M(ie,!0))?b(2,ne[ie]):ge(ne,ie)},Y=function(ne,ie,fe){return W(ne,ie=M(ie,!0))&&H(fe)&&z(fe,"value")&&!z(fe,"get")&&!z(fe,"set")&&!fe.configurable&&(!z(fe,"writable")||fe.writable)&&(!z(fe,"enumerable")||fe.enumerable)?(ne[ie]=fe.value,ne):me(ne,ie,fe)};h?(ve||(V.f=Z,_.f=Y,U(w,"buffer"),U(w,"byteOffset"),U(w,"byteLength"),U(w,"length")),u({target:"Object",stat:!0,forced:!ve},{getOwnPropertyDescriptor:Z,defineProperty:Y}),a.exports=function(J,ne,ie){var fe=J.match(/\d+$/)[0]/8,we=J+(ie?"Clamped":"")+"Array",De="get"+J,Ge="set"+J,_e=d[we],Be=_e,Ve=Be&&Be.prototype,rt={},ot=function($e,Pe){var We=Q($e);return We.view[De](Pe*fe+We.byteOffset,!0)},Dt=function($e,Pe,We){var pe=Q($e);ie&&(We=(We=ye(We))<0?0:We>255?255:We&255),pe.view[Ge](Pe*fe+pe.byteOffset,We,!0)},bt=function($e,Pe){me($e,Pe,{get:function(){return ot(this,Pe)},set:function(We){return Dt(this,Pe,We)},enumerable:!0})};ve?f&&(Be=ne(function($e,Pe,We,pe){return y($e,Be,we),q(function(){return H(Pe)?j(Pe)?pe!==void 0?new _e(Pe,F(We,fe),pe):We!==void 0?new _e(Pe,F(We,fe)):new _e(Pe):v(Pe)?B(Be,Pe):P.call(Be,Pe):new _e(O(Pe))}(),$e,Be)}),G&&G(Be,R),k(E(_e),function($e){$e in Be||A(Be,$e,_e[$e])}),Be.prototype=Ve):(Be=ne(function($e,Pe,We,pe){y($e,Be,we);var be=0,Ce=0,Ie,Re,je;if(!H(Pe))je=O(Pe),Re=je*fe,Ie=new he(Re);else if(j(Pe)){Ie=Pe,Ce=F(We,fe);var Ke=Pe.byteLength;if(pe===void 0){if(Ke%fe||(Re=Ke-Ce,Re<0))throw xe(I)}else if(Re=T(pe)*fe,Re+Ce>Ke)throw xe(I);je=Re/fe}else return v(Pe)?B(Be,Pe):P.call(Be,Pe);for(te($e,{buffer:Ie,byteOffset:Ce,byteLength:Re,length:je,view:new ke(Ie)});be<je;)bt($e,be++)}),G&&G(Be,R),Ve=Be.prototype=re(w)),Ve.constructor!==Be&&A(Ve,"constructor",Be),N&&A(Ve,N,we),rt[we]=Be,u({global:!0,forced:Be!=_e,sham:!ve},rt),x in Be||A(Be,x,fe),x in Ve||A(Ve,x,fe),$(we)}):a.exports=function(){}},3832:function(a,c,o){var u=o(7854),d=o(7293),h=o(7072),f=o(260).NATIVE_ARRAY_BUFFER_VIEWS,m=u.ArrayBuffer,p=u.Int8Array;a.exports=!f||!d(function(){p(1)})||!d(function(){new p(-1)})||!h(function(y){new p,new p(null),new p(1.5),new p(y)},!0)||d(function(){return new p(new m(2),1,void 0).length!==1})},3074:function(a,c,o){var u=o(260).aTypedArrayConstructor,d=o(6707);a.exports=function(h,f){for(var m=d(h,h.constructor),p=0,y=f.length,b=new(u(m))(y);y>p;)b[p]=f[p++];return b}},7321:function(a,c,o){var u=o(7908),d=o(7466),h=o(1246),f=o(7659),m=o(9974),p=o(260).aTypedArrayConstructor;a.exports=function(b){var A=u(b),T=arguments.length,O=T>1?arguments[1]:void 0,F=O!==void 0,M=h(A),z,X,H,re,G,E;if(M!=null&&!f(M))for(G=M.call(A),E=G.next,A=[];!(re=E.call(G)).done;)A.push(re.value);for(F&&T>2&&(O=m(O,arguments[2],2)),X=d(A.length),H=new(p(this))(X),z=0;X>z;z++)H[z]=F?O(A[z],z):A[z];return H}},9711:function(a){var c=0,o=Math.random();a.exports=function(u){return"Symbol("+String(u===void 0?"":u)+")_"+(++c+o).toString(36)}},3307:function(a,c,o){var u=o(133);a.exports=u&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},5112:function(a,c,o){var u=o(7854),d=o(2309),h=o(6656),f=o(9711),m=o(133),p=o(3307),y=d("wks"),b=u.Symbol,A=p?b:b&&b.withoutSetter||f;a.exports=function(T){return h(y,T)||(m&&h(b,T)?y[T]=b[T]:y[T]=A("Symbol."+T)),y[T]}},1361:function(a){a.exports=`
8
+ \v\f\r                 \u2028\u2029\uFEFF`},8264:function(a,c,o){var u=o(2109),d=o(7854),h=o(3331),f=o(6340),m="ArrayBuffer",p=h[m],y=d[m];u({global:!0,forced:y!==p},{ArrayBuffer:p}),f(m)},2222:function(a,c,o){var u=o(2109),d=o(7293),h=o(3157),f=o(111),m=o(7908),p=o(7466),y=o(6135),b=o(5417),A=o(1194),T=o(5112),O=o(7392),F=T("isConcatSpreadable"),M=9007199254740991,z="Maximum allowed index exceeded",X=O>=51||!d(function(){var E=[];return E[F]=!1,E.concat()[0]!==E}),H=A("concat"),re=function(E){if(!f(E))return!1;var P=E[F];return P!==void 0?!!P:h(E)},G=!X||!H;u({target:"Array",proto:!0,forced:G},{concat:function(P){var k=m(this),$=b(k,0),_=0,V,K,q,Q,te;for(V=-1,q=arguments.length;V<q;V++)if(te=V===-1?k:arguments[V],re(te)){if(Q=p(te.length),_+Q>M)throw TypeError(z);for(K=0;K<Q;K++,_++)K in te&&y($,_,te[K])}else{if(_>=M)throw TypeError(z);y($,_++,te)}return $.length=_,$}})},7327:function(a,c,o){var u=o(2109),d=o(2092).filter,h=o(1194),f=h("filter");u({target:"Array",proto:!0,forced:!f},{filter:function(p){return d(this,p,arguments.length>1?arguments[1]:void 0)}})},2772:function(a,c,o){var u=o(2109),d=o(1318).indexOf,h=o(9341),f=[].indexOf,m=!!f&&1/[1].indexOf(1,-0)<0,p=h("indexOf");u({target:"Array",proto:!0,forced:m||!p},{indexOf:function(b){return m?f.apply(this,arguments)||0:d(this,b,arguments.length>1?arguments[1]:void 0)}})},6992:function(a,c,o){var u=o(5656),d=o(1223),h=o(7497),f=o(9909),m=o(654),p="Array Iterator",y=f.set,b=f.getterFor(p);a.exports=m(Array,"Array",function(A,T){y(this,{type:p,target:u(A),index:0,kind:T})},function(){var A=b(this),T=A.target,O=A.kind,F=A.index++;return!T||F>=T.length?(A.target=void 0,{value:void 0,done:!0}):O=="keys"?{value:F,done:!1}:O=="values"?{value:T[F],done:!1}:{value:[F,T[F]],done:!1}},"values"),h.Arguments=h.Array,d("keys"),d("values"),d("entries")},1249:function(a,c,o){var u=o(2109),d=o(2092).map,h=o(1194),f=h("map");u({target:"Array",proto:!0,forced:!f},{map:function(p){return d(this,p,arguments.length>1?arguments[1]:void 0)}})},7042:function(a,c,o){var u=o(2109),d=o(111),h=o(3157),f=o(1400),m=o(7466),p=o(5656),y=o(6135),b=o(5112),A=o(1194),T=A("slice"),O=b("species"),F=[].slice,M=Math.max;u({target:"Array",proto:!0,forced:!T},{slice:function(X,H){var re=p(this),G=m(re.length),E=f(X,G),P=f(H===void 0?G:H,G),k,$,_;if(h(re)&&(k=re.constructor,typeof k=="function"&&(k===Array||h(k.prototype))?k=void 0:d(k)&&(k=k[O],k===null&&(k=void 0)),k===Array||k===void 0))return F.call(re,E,P);for($=new(k===void 0?Array:k)(M(P-E,0)),_=0;E<P;E++,_++)E in re&&y($,_,re[E]);return $.length=_,$}})},561:function(a,c,o){var u=o(2109),d=o(1400),h=o(9958),f=o(7466),m=o(7908),p=o(5417),y=o(6135),b=o(1194),A=b("splice"),T=Math.max,O=Math.min,F=9007199254740991,M="Maximum allowed length exceeded";u({target:"Array",proto:!0,forced:!A},{splice:function(X,H){var re=m(this),G=f(re.length),E=d(X,G),P=arguments.length,k,$,_,V,K,q;if(P===0?k=$=0:P===1?(k=0,$=G-E):(k=P-2,$=O(T(h(H),0),G-E)),G+k-$>F)throw TypeError(M);for(_=p(re,$),V=0;V<$;V++)K=E+V,K in re&&y(_,V,re[K]);if(_.length=$,k<$){for(V=E;V<G-$;V++)K=V+$,q=V+k,K in re?re[q]=re[K]:delete re[q];for(V=G;V>G-$+k;V--)delete re[V-1]}else if(k>$)for(V=G-$;V>E;V--)K=V+$-1,q=V+k-1,K in re?re[q]=re[K]:delete re[q];for(V=0;V<k;V++)re[V+E]=arguments[V+2];return re.length=G-$+k,_}})},8309:function(a,c,o){var u=o(9781),d=o(3070).f,h=Function.prototype,f=h.toString,m=/^\s*function ([^ (]*)/,p="name";u&&!(p in h)&&d(h,p,{configurable:!0,get:function(){try{return f.call(this).match(m)[1]}catch{return""}}})},489:function(a,c,o){var u=o(2109),d=o(7293),h=o(7908),f=o(9518),m=o(8544),p=d(function(){f(1)});u({target:"Object",stat:!0,forced:p,sham:!m},{getPrototypeOf:function(b){return f(h(b))}})},1539:function(a,c,o){var u=o(1694),d=o(1320),h=o(288);u||d(Object.prototype,"toString",h,{unsafe:!0})},4916:function(a,c,o){var u=o(2109),d=o(2261);u({target:"RegExp",proto:!0,forced:/./.exec!==d},{exec:d})},9714:function(a,c,o){var u=o(1320),d=o(9670),h=o(7293),f=o(7066),m="toString",p=RegExp.prototype,y=p[m],b=h(function(){return y.call({source:"a",flags:"b"})!="/a/b"}),A=y.name!=m;(b||A)&&u(RegExp.prototype,m,function(){var O=d(this),F=String(O.source),M=O.flags,z=String(M===void 0&&O instanceof RegExp&&!("flags"in p)?f.call(O):M);return"/"+F+"/"+z},{unsafe:!0})},8783:function(a,c,o){var u=o(8710).charAt,d=o(9909),h=o(654),f="String Iterator",m=d.set,p=d.getterFor(f);h(String,"String",function(y){m(this,{type:f,string:String(y),index:0})},function(){var b=p(this),A=b.string,T=b.index,O;return T>=A.length?{value:void 0,done:!0}:(O=u(A,T),b.index+=O.length,{value:O,done:!1})})},4723:function(a,c,o){var u=o(7007),d=o(9670),h=o(7466),f=o(4488),m=o(1530),p=o(7651);u("match",1,function(y,b,A){return[function(O){var F=f(this),M=O==null?void 0:O[y];return M!==void 0?M.call(O,F):new RegExp(O)[y](String(F))},function(T){var O=A(b,T,this);if(O.done)return O.value;var F=d(T),M=String(this);if(!F.global)return p(F,M);var z=F.unicode;F.lastIndex=0;for(var X=[],H=0,re;(re=p(F,M))!==null;){var G=String(re[0]);X[H]=G,G===""&&(F.lastIndex=m(M,h(F.lastIndex),z)),H++}return H===0?null:X}]})},5306:function(a,c,o){var u=o(7007),d=o(9670),h=o(7466),f=o(9958),m=o(4488),p=o(1530),y=o(647),b=o(7651),A=Math.max,T=Math.min,O=function(F){return F===void 0?F:String(F)};u("replace",2,function(F,M,z,X){var H=X.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,re=X.REPLACE_KEEPS_$0,G=H?"$":"$0";return[function(P,k){var $=m(this),_=P==null?void 0:P[F];return _!==void 0?_.call(P,$,k):M.call(String($),P,k)},function(E,P){if(!H&&re||typeof P=="string"&&P.indexOf(G)===-1){var k=z(M,E,this,P);if(k.done)return k.value}var $=d(E),_=String(this),V=typeof P=="function";V||(P=String(P));var K=$.global;if(K){var q=$.unicode;$.lastIndex=0}for(var Q=[];;){var te=b($,_);if(te===null||(Q.push(te),!K))break;var me=String(te[0]);me===""&&($.lastIndex=p(_,h($.lastIndex),q))}for(var ge="",ye=0,xe=0;xe<Q.length;xe++){te=Q[xe];for(var he=String(te[0]),ke=A(T(f(te.index),_.length),0),ve=[],N=1;N<te.length;N++)ve.push(O(te[N]));var R=te.groups;if(V){var w=[he].concat(ve,ke,_);R!==void 0&&w.push(R);var C=String(P.apply(void 0,w))}else C=y(he,_,ke,ve,R,P);ke>=ye&&(ge+=_.slice(ye,ke)+C,ye=ke+he.length)}return ge+_.slice(ye)}]})},3123:function(a,c,o){var u=o(7007),d=o(7850),h=o(9670),f=o(4488),m=o(6707),p=o(1530),y=o(7466),b=o(7651),A=o(2261),T=o(7293),O=[].push,F=Math.min,M=4294967295,z=!T(function(){return!RegExp(M,"y")});u("split",2,function(X,H,re){var G;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?G=function(E,P){var k=String(f(this)),$=P===void 0?M:P>>>0;if($===0)return[];if(E===void 0)return[k];if(!d(E))return H.call(k,E,$);for(var _=[],V=(E.ignoreCase?"i":"")+(E.multiline?"m":"")+(E.unicode?"u":"")+(E.sticky?"y":""),K=0,q=new RegExp(E.source,V+"g"),Q,te,me;(Q=A.call(q,k))&&(te=q.lastIndex,!(te>K&&(_.push(k.slice(K,Q.index)),Q.length>1&&Q.index<k.length&&O.apply(_,Q.slice(1)),me=Q[0].length,K=te,_.length>=$)));)q.lastIndex===Q.index&&q.lastIndex++;return K===k.length?(me||!q.test(""))&&_.push(""):_.push(k.slice(K)),_.length>$?_.slice(0,$):_}:"0".split(void 0,0).length?G=function(E,P){return E===void 0&&P===0?[]:H.call(this,E,P)}:G=H,[function(P,k){var $=f(this),_=P==null?void 0:P[X];return _!==void 0?_.call(P,$,k):G.call(String($),P,k)},function(E,P){var k=re(G,E,this,P,G!==H);if(k.done)return k.value;var $=h(E),_=String(this),V=m($,RegExp),K=$.unicode,q=($.ignoreCase?"i":"")+($.multiline?"m":"")+($.unicode?"u":"")+(z?"y":"g"),Q=new V(z?$:"^(?:"+$.source+")",q),te=P===void 0?M:P>>>0;if(te===0)return[];if(_.length===0)return b(Q,_)===null?[_]:[];for(var me=0,ge=0,ye=[];ge<_.length;){Q.lastIndex=z?ge:0;var xe=b(Q,z?_:_.slice(ge)),he;if(xe===null||(he=F(y(Q.lastIndex+(z?0:ge)),_.length))===me)ge=p(_,ge,K);else{if(ye.push(_.slice(me,ge)),ye.length===te)return ye;for(var ke=1;ke<=xe.length-1;ke++)if(ye.push(xe[ke]),ye.length===te)return ye;ge=me=he}}return ye.push(_.slice(me)),ye}]},!z)},3210:function(a,c,o){var u=o(2109),d=o(3111).trim,h=o(6091);u({target:"String",proto:!0,forced:h("trim")},{trim:function(){return d(this)}})},2990:function(a,c,o){var u=o(260),d=o(1048),h=u.aTypedArray,f=u.exportTypedArrayMethod;f("copyWithin",function(p,y){return d.call(h(this),p,y,arguments.length>2?arguments[2]:void 0)})},8927:function(a,c,o){var u=o(260),d=o(2092).every,h=u.aTypedArray,f=u.exportTypedArrayMethod;f("every",function(p){return d(h(this),p,arguments.length>1?arguments[1]:void 0)})},3105:function(a,c,o){var u=o(260),d=o(1285),h=u.aTypedArray,f=u.exportTypedArrayMethod;f("fill",function(p){return d.apply(h(this),arguments)})},5035:function(a,c,o){var u=o(260),d=o(2092).filter,h=o(3074),f=u.aTypedArray,m=u.exportTypedArrayMethod;m("filter",function(y){var b=d(f(this),y,arguments.length>1?arguments[1]:void 0);return h(this,b)})},7174:function(a,c,o){var u=o(260),d=o(2092).findIndex,h=u.aTypedArray,f=u.exportTypedArrayMethod;f("findIndex",function(p){return d(h(this),p,arguments.length>1?arguments[1]:void 0)})},4345:function(a,c,o){var u=o(260),d=o(2092).find,h=u.aTypedArray,f=u.exportTypedArrayMethod;f("find",function(p){return d(h(this),p,arguments.length>1?arguments[1]:void 0)})},2846:function(a,c,o){var u=o(260),d=o(2092).forEach,h=u.aTypedArray,f=u.exportTypedArrayMethod;f("forEach",function(p){d(h(this),p,arguments.length>1?arguments[1]:void 0)})},4731:function(a,c,o){var u=o(260),d=o(1318).includes,h=u.aTypedArray,f=u.exportTypedArrayMethod;f("includes",function(p){return d(h(this),p,arguments.length>1?arguments[1]:void 0)})},7209:function(a,c,o){var u=o(260),d=o(1318).indexOf,h=u.aTypedArray,f=u.exportTypedArrayMethod;f("indexOf",function(p){return d(h(this),p,arguments.length>1?arguments[1]:void 0)})},6319:function(a,c,o){var u=o(7854),d=o(260),h=o(6992),f=o(5112),m=f("iterator"),p=u.Uint8Array,y=h.values,b=h.keys,A=h.entries,T=d.aTypedArray,O=d.exportTypedArrayMethod,F=p&&p.prototype[m],M=!!F&&(F.name=="values"||F.name==null),z=function(){return y.call(T(this))};O("entries",function(){return A.call(T(this))}),O("keys",function(){return b.call(T(this))}),O("values",z,!M),O(m,z,!M)},8867:function(a,c,o){var u=o(260),d=u.aTypedArray,h=u.exportTypedArrayMethod,f=[].join;h("join",function(p){return f.apply(d(this),arguments)})},7789:function(a,c,o){var u=o(260),d=o(6583),h=u.aTypedArray,f=u.exportTypedArrayMethod;f("lastIndexOf",function(p){return d.apply(h(this),arguments)})},3739:function(a,c,o){var u=o(260),d=o(2092).map,h=o(6707),f=u.aTypedArray,m=u.aTypedArrayConstructor,p=u.exportTypedArrayMethod;p("map",function(b){return d(f(this),b,arguments.length>1?arguments[1]:void 0,function(A,T){return new(m(h(A,A.constructor)))(T)})})},4483:function(a,c,o){var u=o(260),d=o(3671).right,h=u.aTypedArray,f=u.exportTypedArrayMethod;f("reduceRight",function(p){return d(h(this),p,arguments.length,arguments.length>1?arguments[1]:void 0)})},9368:function(a,c,o){var u=o(260),d=o(3671).left,h=u.aTypedArray,f=u.exportTypedArrayMethod;f("reduce",function(p){return d(h(this),p,arguments.length,arguments.length>1?arguments[1]:void 0)})},2056:function(a,c,o){var u=o(260),d=u.aTypedArray,h=u.exportTypedArrayMethod,f=Math.floor;h("reverse",function(){for(var p=this,y=d(p).length,b=f(y/2),A=0,T;A<b;)T=p[A],p[A++]=p[--y],p[y]=T;return p})},3462:function(a,c,o){var u=o(260),d=o(7466),h=o(4590),f=o(7908),m=o(7293),p=u.aTypedArray,y=u.exportTypedArrayMethod,b=m(function(){new Int8Array(1).set({})});y("set",function(T){p(this);var O=h(arguments.length>1?arguments[1]:void 0,1),F=this.length,M=f(T),z=d(M.length),X=0;if(z+O>F)throw RangeError("Wrong length");for(;X<z;)this[O+X]=M[X++]},b)},678:function(a,c,o){var u=o(260),d=o(6707),h=o(7293),f=u.aTypedArray,m=u.aTypedArrayConstructor,p=u.exportTypedArrayMethod,y=[].slice,b=h(function(){new Int8Array(1).slice()});p("slice",function(T,O){for(var F=y.call(f(this),T,O),M=d(this,this.constructor),z=0,X=F.length,H=new(m(M))(X);X>z;)H[z]=F[z++];return H},b)},7462:function(a,c,o){var u=o(260),d=o(2092).some,h=u.aTypedArray,f=u.exportTypedArrayMethod;f("some",function(p){return d(h(this),p,arguments.length>1?arguments[1]:void 0)})},3824:function(a,c,o){var u=o(260),d=u.aTypedArray,h=u.exportTypedArrayMethod,f=[].sort;h("sort",function(p){return f.call(d(this),p)})},5021:function(a,c,o){var u=o(260),d=o(7466),h=o(1400),f=o(6707),m=u.aTypedArray,p=u.exportTypedArrayMethod;p("subarray",function(b,A){var T=m(this),O=T.length,F=h(b,O);return new(f(T,T.constructor))(T.buffer,T.byteOffset+F*T.BYTES_PER_ELEMENT,d((A===void 0?O:h(A,O))-F))})},2974:function(a,c,o){var u=o(7854),d=o(260),h=o(7293),f=u.Int8Array,m=d.aTypedArray,p=d.exportTypedArrayMethod,y=[].toLocaleString,b=[].slice,A=!!f&&h(function(){y.call(new f(1))}),T=h(function(){return[1,2].toLocaleString()!=new f([1,2]).toLocaleString()})||!h(function(){f.prototype.toLocaleString.call([1,2])});p("toLocaleString",function(){return y.apply(A?b.call(m(this)):m(this),arguments)},T)},5016:function(a,c,o){var u=o(260).exportTypedArrayMethod,d=o(7293),h=o(7854),f=h.Uint8Array,m=f&&f.prototype||{},p=[].toString,y=[].join;d(function(){p.call({})})&&(p=function(){return y.call(this)});var b=m.toString!=p;u("toString",p,b)},2472:function(a,c,o){var u=o(9843);u("Uint8",function(d){return function(f,m,p){return d(this,f,m,p)}})},4747:function(a,c,o){var u=o(7854),d=o(8324),h=o(8533),f=o(8880);for(var m in d){var p=u[m],y=p&&p.prototype;if(y&&y.forEach!==h)try{f(y,"forEach",h)}catch{y.forEach=h}}},3948:function(a,c,o){var u=o(7854),d=o(8324),h=o(6992),f=o(8880),m=o(5112),p=m("iterator"),y=m("toStringTag"),b=h.values;for(var A in d){var T=u[A],O=T&&T.prototype;if(O){if(O[p]!==b)try{f(O,p,b)}catch{O[p]=b}if(O[y]||f(O,y,A),d[A]){for(var F in h)if(O[F]!==h[F])try{f(O,F,h[F])}catch{O[F]=h[F]}}}}},1637:function(a,c,o){o(6992);var u=o(2109),d=o(5005),h=o(590),f=o(1320),m=o(2248),p=o(8003),y=o(4994),b=o(9909),A=o(5787),T=o(6656),O=o(9974),F=o(648),M=o(9670),z=o(111),X=o(30),H=o(9114),re=o(8554),G=o(1246),E=o(5112),P=d("fetch"),k=d("Headers"),$=E("iterator"),_="URLSearchParams",V=_+"Iterator",K=b.set,q=b.getterFor(_),Q=b.getterFor(V),te=/\+/g,me=Array(4),ge=function(B){return me[B-1]||(me[B-1]=RegExp("((?:%[\\da-f]{2}){"+B+"})","gi"))},ye=function(B){try{return decodeURIComponent(B)}catch{return B}},xe=function(B){var U=B.replace(te," "),j=4;try{return decodeURIComponent(U)}catch{for(;j;)U=U.replace(ge(j--),ye);return U}},he=/[!'()~]|%20/g,ke={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ve=function(B){return ke[B]},N=function(B){return encodeURIComponent(B).replace(he,ve)},R=function(B,U){if(U)for(var j=U.split("&"),W=0,Z,Y;W<j.length;)Z=j[W++],Z.length&&(Y=Z.split("="),B.push({key:xe(Y.shift()),value:xe(Y.join("="))}))},w=function(B){this.entries.length=0,R(this.entries,B)},C=function(B,U){if(B<U)throw TypeError("Not enough arguments")},v=y(function(U,j){K(this,{type:V,iterator:re(q(U).entries),kind:j})},"Iterator",function(){var U=Q(this),j=U.kind,W=U.iterator.next(),Z=W.value;return W.done||(W.value=j==="keys"?Z.key:j==="values"?Z.value:[Z.key,Z.value]),W}),x=function(){A(this,x,_);var U=arguments.length>0?arguments[0]:void 0,j=this,W=[],Z,Y,J,ne,ie,fe,we,De,Ge;if(K(j,{type:_,entries:W,updateURL:function(){},updateSearchParams:w}),U!==void 0)if(z(U))if(Z=G(U),typeof Z=="function")for(Y=Z.call(U),J=Y.next;!(ne=J.call(Y)).done;){if(ie=re(M(ne.value)),fe=ie.next,(we=fe.call(ie)).done||(De=fe.call(ie)).done||!fe.call(ie).done)throw TypeError("Expected sequence with length 2");W.push({key:we.value+"",value:De.value+""})}else for(Ge in U)T(U,Ge)&&W.push({key:Ge,value:U[Ge]+""});else R(W,typeof U=="string"?U.charAt(0)==="?"?U.slice(1):U:U+"")},I=x.prototype;m(I,{append:function(U,j){C(arguments.length,2);var W=q(this);W.entries.push({key:U+"",value:j+""}),W.updateURL()},delete:function(B){C(arguments.length,1);for(var U=q(this),j=U.entries,W=B+"",Z=0;Z<j.length;)j[Z].key===W?j.splice(Z,1):Z++;U.updateURL()},get:function(U){C(arguments.length,1);for(var j=q(this).entries,W=U+"",Z=0;Z<j.length;Z++)if(j[Z].key===W)return j[Z].value;return null},getAll:function(U){C(arguments.length,1);for(var j=q(this).entries,W=U+"",Z=[],Y=0;Y<j.length;Y++)j[Y].key===W&&Z.push(j[Y].value);return Z},has:function(U){C(arguments.length,1);for(var j=q(this).entries,W=U+"",Z=0;Z<j.length;)if(j[Z++].key===W)return!0;return!1},set:function(U,j){C(arguments.length,1);for(var W=q(this),Z=W.entries,Y=!1,J=U+"",ne=j+"",ie=0,fe;ie<Z.length;ie++)fe=Z[ie],fe.key===J&&(Y?Z.splice(ie--,1):(Y=!0,fe.value=ne));Y||Z.push({key:J,value:ne}),W.updateURL()},sort:function(){var U=q(this),j=U.entries,W=j.slice(),Z,Y,J;for(j.length=0,J=0;J<W.length;J++){for(Z=W[J],Y=0;Y<J;Y++)if(j[Y].key>Z.key){j.splice(Y,0,Z);break}Y===J&&j.push(Z)}U.updateURL()},forEach:function(U){for(var j=q(this).entries,W=O(U,arguments.length>1?arguments[1]:void 0,3),Z=0,Y;Z<j.length;)Y=j[Z++],W(Y.value,Y.key,this)},keys:function(){return new v(this,"keys")},values:function(){return new v(this,"values")},entries:function(){return new v(this,"entries")}},{enumerable:!0}),f(I,$,I.entries),f(I,"toString",function(){for(var U=q(this).entries,j=[],W=0,Z;W<U.length;)Z=U[W++],j.push(N(Z.key)+"="+N(Z.value));return j.join("&")},{enumerable:!0}),p(x,_),u({global:!0,forced:!h},{URLSearchParams:x}),!h&&typeof P=="function"&&typeof k=="function"&&u({global:!0,enumerable:!0,forced:!0},{fetch:function(U){var j=[U],W,Z,Y;return arguments.length>1&&(W=arguments[1],z(W)&&(Z=W.body,F(Z)===_&&(Y=W.headers?new k(W.headers):new k,Y.has("content-type")||Y.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),W=X(W,{body:H(0,String(Z)),headers:H(0,Y)}))),j.push(W)),P.apply(this,j)}}),a.exports={URLSearchParams:x,getState:q}},285:function(a,c,o){o(8783);var u=o(2109),d=o(9781),h=o(590),f=o(7854),m=o(6048),p=o(1320),y=o(5787),b=o(6656),A=o(1574),T=o(8457),O=o(8710).codeAt,F=o(3197),M=o(8003),z=o(1637),X=o(9909),H=f.URL,re=z.URLSearchParams,G=z.getState,E=X.set,P=X.getterFor("URL"),k=Math.floor,$=Math.pow,_="Invalid authority",V="Invalid scheme",K="Invalid host",q="Invalid port",Q=/[A-Za-z]/,te=/[\d+-.A-Za-z]/,me=/\d/,ge=/^(0x|0X)/,ye=/^[0-7]+$/,xe=/^\d+$/,he=/^[\dA-Fa-f]+$/,ke=/[\u0000\t\u000A\u000D #%/:?@[\\]]/,ve=/[\u0000\t\u000A\u000D #/:?@[\\]]/,N=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,R=/[\t\u000A\u000D]/g,w,C=function(L,ae){var se,ce,de;if(ae.charAt(0)=="["){if(ae.charAt(ae.length-1)!="]"||(se=x(ae.slice(1,-1)),!se))return K;L.host=se}else if(ne(L)){if(ae=F(ae),ke.test(ae)||(se=v(ae),se===null))return K;L.host=se}else{if(ve.test(ae))return K;for(se="",ce=T(ae),de=0;de<ce.length;de++)se+=Y(ce[de],U);L.host=se}},v=function(L){var ae=L.split("."),se,ce,de,Le,Ae,Ue,qe;if(ae.length&&ae[ae.length-1]==""&&ae.pop(),se=ae.length,se>4)return L;for(ce=[],de=0;de<se;de++){if(Le=ae[de],Le=="")return L;if(Ae=10,Le.length>1&&Le.charAt(0)=="0"&&(Ae=ge.test(Le)?16:8,Le=Le.slice(Ae==8?1:2)),Le==="")Ue=0;else{if(!(Ae==10?xe:Ae==8?ye:he).test(Le))return L;Ue=parseInt(Le,Ae)}ce.push(Ue)}for(de=0;de<se;de++)if(Ue=ce[de],de==se-1){if(Ue>=$(256,5-se))return null}else if(Ue>255)return null;for(qe=ce.pop(),de=0;de<ce.length;de++)qe+=ce[de]*$(256,3-de);return qe},x=function(L){var ae=[0,0,0,0,0,0,0,0],se=0,ce=null,de=0,Le,Ae,Ue,qe,Je,Et,ue,st=function(){return L.charAt(de)};if(st()==":"){if(L.charAt(1)!=":")return;de+=2,se++,ce=se}for(;st();){if(se==8)return;if(st()==":"){if(ce!==null)return;de++,se++,ce=se;continue}for(Le=Ae=0;Ae<4&&he.test(st());)Le=Le*16+parseInt(st(),16),de++,Ae++;if(st()=="."){if(Ae==0||(de-=Ae,se>6))return;for(Ue=0;st();){if(qe=null,Ue>0)if(st()=="."&&Ue<4)de++;else return;if(!me.test(st()))return;for(;me.test(st());){if(Je=parseInt(st(),10),qe===null)qe=Je;else{if(qe==0)return;qe=qe*10+Je}if(qe>255)return;de++}ae[se]=ae[se]*256+qe,Ue++,(Ue==2||Ue==4)&&se++}if(Ue!=4)return;break}else if(st()==":"){if(de++,!st())return}else if(st())return;ae[se++]=Le}if(ce!==null)for(Et=se-ce,se=7;se!=0&&Et>0;)ue=ae[se],ae[se--]=ae[ce+Et-1],ae[ce+--Et]=ue;else if(se!=8)return;return ae},I=function(L){for(var ae=null,se=1,ce=null,de=0,Le=0;Le<8;Le++)L[Le]!==0?(de>se&&(ae=ce,se=de),ce=null,de=0):(ce===null&&(ce=Le),++de);return de>se&&(ae=ce,se=de),ae},B=function(L){var ae,se,ce,de;if(typeof L=="number"){for(ae=[],se=0;se<4;se++)ae.unshift(L%256),L=k(L/256);return ae.join(".")}else if(typeof L=="object"){for(ae="",ce=I(L),se=0;se<8;se++)de&&L[se]===0||(de&&(de=!1),ce===se?(ae+=se?":":"::",de=!0):(ae+=L[se].toString(16),se<7&&(ae+=":")));return"["+ae+"]"}return L},U={},j=A({},U,{" ":1,'"':1,"<":1,">":1,"`":1}),W=A({},j,{"#":1,"?":1,"{":1,"}":1}),Z=A({},W,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Y=function(L,ae){var se=O(L,0);return se>32&&se<127&&!b(ae,L)?L:encodeURIComponent(L)},J={ftp:21,file:null,http:80,https:443,ws:80,wss:443},ne=function(L){return b(J,L.scheme)},ie=function(L){return L.username!=""||L.password!=""},fe=function(L){return!L.host||L.cannotBeABaseURL||L.scheme=="file"},we=function(L,ae){var se;return L.length==2&&Q.test(L.charAt(0))&&((se=L.charAt(1))==":"||!ae&&se=="|")},De=function(L){var ae;return L.length>1&&we(L.slice(0,2))&&(L.length==2||(ae=L.charAt(2))==="/"||ae==="\\"||ae==="?"||ae==="#")},Ge=function(L){var ae=L.path,se=ae.length;se&&(L.scheme!="file"||se!=1||!we(ae[0],!0))&&ae.pop()},_e=function(L){return L==="."||L.toLowerCase()==="%2e"},Be=function(L){return L=L.toLowerCase(),L===".."||L==="%2e."||L===".%2e"||L==="%2e%2e"},Ve={},rt={},ot={},Dt={},bt={},$e={},Pe={},We={},pe={},be={},Ce={},Ie={},Re={},je={},Ke={},et={},dt={},ft={},Rt={},Ut={},lt={},kt=function(L,ae,se,ce){var de=se||Ve,Le=0,Ae="",Ue=!1,qe=!1,Je=!1,Et,ue,st,It;for(se||(L.scheme="",L.username="",L.password="",L.host=null,L.port=null,L.path=[],L.query=null,L.fragment=null,L.cannotBeABaseURL=!1,ae=ae.replace(N,"")),ae=ae.replace(R,""),Et=T(ae);Le<=Et.length;){switch(ue=Et[Le],de){case Ve:if(ue&&Q.test(ue))Ae+=ue.toLowerCase(),de=rt;else{if(se)return V;de=ot;continue}break;case rt:if(ue&&(te.test(ue)||ue=="+"||ue=="-"||ue=="."))Ae+=ue.toLowerCase();else if(ue==":"){if(se&&(ne(L)!=b(J,Ae)||Ae=="file"&&(ie(L)||L.port!==null)||L.scheme=="file"&&!L.host))return;if(L.scheme=Ae,se){ne(L)&&J[L.scheme]==L.port&&(L.port=null);return}Ae="",L.scheme=="file"?de=je:ne(L)&&ce&&ce.scheme==L.scheme?de=Dt:ne(L)?de=We:Et[Le+1]=="/"?(de=bt,Le++):(L.cannotBeABaseURL=!0,L.path.push(""),de=Rt)}else{if(se)return V;Ae="",de=ot,Le=0;continue}break;case ot:if(!ce||ce.cannotBeABaseURL&&ue!="#")return V;if(ce.cannotBeABaseURL&&ue=="#"){L.scheme=ce.scheme,L.path=ce.path.slice(),L.query=ce.query,L.fragment="",L.cannotBeABaseURL=!0,de=lt;break}de=ce.scheme=="file"?je:$e;continue;case Dt:if(ue=="/"&&Et[Le+1]=="/")de=pe,Le++;else{de=$e;continue}break;case bt:if(ue=="/"){de=be;break}else{de=ft;continue}case $e:if(L.scheme=ce.scheme,ue==w)L.username=ce.username,L.password=ce.password,L.host=ce.host,L.port=ce.port,L.path=ce.path.slice(),L.query=ce.query;else if(ue=="/"||ue=="\\"&&ne(L))de=Pe;else if(ue=="?")L.username=ce.username,L.password=ce.password,L.host=ce.host,L.port=ce.port,L.path=ce.path.slice(),L.query="",de=Ut;else if(ue=="#")L.username=ce.username,L.password=ce.password,L.host=ce.host,L.port=ce.port,L.path=ce.path.slice(),L.query=ce.query,L.fragment="",de=lt;else{L.username=ce.username,L.password=ce.password,L.host=ce.host,L.port=ce.port,L.path=ce.path.slice(),L.path.pop(),de=ft;continue}break;case Pe:if(ne(L)&&(ue=="/"||ue=="\\"))de=pe;else if(ue=="/")de=be;else{L.username=ce.username,L.password=ce.password,L.host=ce.host,L.port=ce.port,de=ft;continue}break;case We:if(de=pe,ue!="/"||Ae.charAt(Le+1)!="/")continue;Le++;break;case pe:if(ue!="/"&&ue!="\\"){de=be;continue}break;case be:if(ue=="@"){Ue&&(Ae="%40"+Ae),Ue=!0,st=T(Ae);for(var Wn=0;Wn<st.length;Wn++){var yn=st[Wn];if(yn==":"&&!Je){Je=!0;continue}var On=Y(yn,Z);Je?L.password+=On:L.username+=On}Ae=""}else if(ue==w||ue=="/"||ue=="?"||ue=="#"||ue=="\\"&&ne(L)){if(Ue&&Ae=="")return _;Le-=T(Ae).length+1,Ae="",de=Ce}else Ae+=ue;break;case Ce:case Ie:if(se&&L.scheme=="file"){de=et;continue}else if(ue==":"&&!qe){if(Ae=="")return K;if(It=C(L,Ae),It)return It;if(Ae="",de=Re,se==Ie)return}else if(ue==w||ue=="/"||ue=="?"||ue=="#"||ue=="\\"&&ne(L)){if(ne(L)&&Ae=="")return K;if(se&&Ae==""&&(ie(L)||L.port!==null))return;if(It=C(L,Ae),It)return It;if(Ae="",de=dt,se)return;continue}else ue=="["?qe=!0:ue=="]"&&(qe=!1),Ae+=ue;break;case Re:if(me.test(ue))Ae+=ue;else if(ue==w||ue=="/"||ue=="?"||ue=="#"||ue=="\\"&&ne(L)||se){if(Ae!=""){var Zt=parseInt(Ae,10);if(Zt>65535)return q;L.port=ne(L)&&Zt===J[L.scheme]?null:Zt,Ae=""}if(se)return;de=dt;continue}else return q;break;case je:if(L.scheme="file",ue=="/"||ue=="\\")de=Ke;else if(ce&&ce.scheme=="file")if(ue==w)L.host=ce.host,L.path=ce.path.slice(),L.query=ce.query;else if(ue=="?")L.host=ce.host,L.path=ce.path.slice(),L.query="",de=Ut;else if(ue=="#")L.host=ce.host,L.path=ce.path.slice(),L.query=ce.query,L.fragment="",de=lt;else{De(Et.slice(Le).join(""))||(L.host=ce.host,L.path=ce.path.slice(),Ge(L)),de=ft;continue}else{de=ft;continue}break;case Ke:if(ue=="/"||ue=="\\"){de=et;break}ce&&ce.scheme=="file"&&!De(Et.slice(Le).join(""))&&(we(ce.path[0],!0)?L.path.push(ce.path[0]):L.host=ce.host),de=ft;continue;case et:if(ue==w||ue=="/"||ue=="\\"||ue=="?"||ue=="#"){if(!se&&we(Ae))de=ft;else if(Ae==""){if(L.host="",se)return;de=dt}else{if(It=C(L,Ae),It)return It;if(L.host=="localhost"&&(L.host=""),se)return;Ae="",de=dt}continue}else Ae+=ue;break;case dt:if(ne(L)){if(de=ft,ue!="/"&&ue!="\\")continue}else if(!se&&ue=="?")L.query="",de=Ut;else if(!se&&ue=="#")L.fragment="",de=lt;else if(ue!=w&&(de=ft,ue!="/"))continue;break;case ft:if(ue==w||ue=="/"||ue=="\\"&&ne(L)||!se&&(ue=="?"||ue=="#")){if(Be(Ae)?(Ge(L),ue!="/"&&!(ue=="\\"&&ne(L))&&L.path.push("")):_e(Ae)?ue!="/"&&!(ue=="\\"&&ne(L))&&L.path.push(""):(L.scheme=="file"&&!L.path.length&&we(Ae)&&(L.host&&(L.host=""),Ae=Ae.charAt(0)+":"),L.path.push(Ae)),Ae="",L.scheme=="file"&&(ue==w||ue=="?"||ue=="#"))for(;L.path.length>1&&L.path[0]==="";)L.path.shift();ue=="?"?(L.query="",de=Ut):ue=="#"&&(L.fragment="",de=lt)}else Ae+=Y(ue,W);break;case Rt:ue=="?"?(L.query="",de=Ut):ue=="#"?(L.fragment="",de=lt):ue!=w&&(L.path[0]+=Y(ue,U));break;case Ut:!se&&ue=="#"?(L.fragment="",de=lt):ue!=w&&(ue=="'"&&ne(L)?L.query+="%27":ue=="#"?L.query+="%23":L.query+=Y(ue,U));break;case lt:ue!=w&&(L.fragment+=Y(ue,j));break}Le++}},Yt=function(ae){var se=y(this,Yt,"URL"),ce=arguments.length>1?arguments[1]:void 0,de=String(ae),Le=E(se,{type:"URL"}),Ae,Ue;if(ce!==void 0){if(ce instanceof Yt)Ae=P(ce);else if(Ue=kt(Ae={},String(ce)),Ue)throw TypeError(Ue)}if(Ue=kt(Le,de,null,Ae),Ue)throw TypeError(Ue);var qe=Le.searchParams=new re,Je=G(qe);Je.updateSearchParams(Le.query),Je.updateURL=function(){Le.query=String(qe)||null},d||(se.href=gn.call(se),se.origin=Cn.call(se),se.protocol=it.call(se),se.username=mr.call(se),se.password=gr.call(se),se.host=yr.call(se),se.hostname=vr.call(se),se.port=br.call(se),se.pathname=ct.call(se),se.search=xr.call(se),se.searchParams=Er.call(se),se.hash=wr.call(se))},Gn=Yt.prototype,gn=function(){var L=P(this),ae=L.scheme,se=L.username,ce=L.password,de=L.host,Le=L.port,Ae=L.path,Ue=L.query,qe=L.fragment,Je=ae+":";return de!==null?(Je+="//",ie(L)&&(Je+=se+(ce?":"+ce:"")+"@"),Je+=B(de),Le!==null&&(Je+=":"+Le)):ae=="file"&&(Je+="//"),Je+=L.cannotBeABaseURL?Ae[0]:Ae.length?"/"+Ae.join("/"):"",Ue!==null&&(Je+="?"+Ue),qe!==null&&(Je+="#"+qe),Je},Cn=function(){var L=P(this),ae=L.scheme,se=L.port;if(ae=="blob")try{return new URL(ae.path[0]).origin}catch{return"null"}return ae=="file"||!ne(L)?"null":ae+"://"+B(L.host)+(se!==null?":"+se:"")},it=function(){return P(this).scheme+":"},mr=function(){return P(this).username},gr=function(){return P(this).password},yr=function(){var L=P(this),ae=L.host,se=L.port;return ae===null?"":se===null?B(ae):B(ae)+":"+se},vr=function(){var L=P(this).host;return L===null?"":B(L)},br=function(){var L=P(this).port;return L===null?"":String(L)},ct=function(){var L=P(this),ae=L.path;return L.cannotBeABaseURL?ae[0]:ae.length?"/"+ae.join("/"):""},xr=function(){var L=P(this).query;return L?"?"+L:""},Er=function(){return P(this).searchParams},wr=function(){var L=P(this).fragment;return L?"#"+L:""},xt=function(L,ae){return{get:L,set:ae,configurable:!0,enumerable:!0}};if(d&&m(Gn,{href:xt(gn,function(L){var ae=P(this),se=String(L),ce=kt(ae,se);if(ce)throw TypeError(ce);G(ae.searchParams).updateSearchParams(ae.query)}),origin:xt(Cn),protocol:xt(it,function(L){var ae=P(this);kt(ae,String(L)+":",Ve)}),username:xt(mr,function(L){var ae=P(this),se=T(String(L));if(!fe(ae)){ae.username="";for(var ce=0;ce<se.length;ce++)ae.username+=Y(se[ce],Z)}}),password:xt(gr,function(L){var ae=P(this),se=T(String(L));if(!fe(ae)){ae.password="";for(var ce=0;ce<se.length;ce++)ae.password+=Y(se[ce],Z)}}),host:xt(yr,function(L){var ae=P(this);ae.cannotBeABaseURL||kt(ae,String(L),Ce)}),hostname:xt(vr,function(L){var ae=P(this);ae.cannotBeABaseURL||kt(ae,String(L),Ie)}),port:xt(br,function(L){var ae=P(this);fe(ae)||(L=String(L),L==""?ae.port=null:kt(ae,L,Re))}),pathname:xt(ct,function(L){var ae=P(this);ae.cannotBeABaseURL||(ae.path=[],kt(ae,L+"",dt))}),search:xt(xr,function(L){var ae=P(this);L=String(L),L==""?ae.query=null:(L.charAt(0)=="?"&&(L=L.slice(1)),ae.query="",kt(ae,L,Ut)),G(ae.searchParams).updateSearchParams(ae.query)}),searchParams:xt(Er),hash:xt(wr,function(L){var ae=P(this);if(L=String(L),L==""){ae.fragment=null;return}L.charAt(0)=="#"&&(L=L.slice(1)),ae.fragment="",kt(ae,L,lt)})}),p(Gn,"toJSON",function(){return gn.call(this)},{enumerable:!0}),p(Gn,"toString",function(){return gn.call(this)},{enumerable:!0}),H){var Ar=H.createObjectURL,pt=H.revokeObjectURL;Ar&&p(Yt,"createObjectURL",function(ae){return Ar.apply(H,arguments)}),pt&&p(Yt,"revokeObjectURL",function(ae){return pt.apply(H,arguments)})}M(Yt,"URL"),u({global:!0,forced:!h,sham:!d},{URL:Yt})}},r={};function s(a){if(r[a])return r[a].exports;var c=r[a]={exports:{}};return t[a](c,c.exports,s),c.exports}(function(){s.d=function(a,c){for(var o in c)s.o(c,o)&&!s.o(a,o)&&Object.defineProperty(a,o,{enumerable:!0,get:c[o]})}})(),function(){s.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}()}(),function(){s.o=function(a,c){return Object.prototype.hasOwnProperty.call(a,c)}}(),function(){s.r=function(a){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})}}();var l={};return function(){s.r(l),s.d(l,{Dropzone:function(){return q},default:function(){return ve}}),s(2222),s(7327),s(2772),s(6992),s(1249),s(7042),s(561),s(8264),s(8309),s(489),s(1539),s(4916),s(9714),s(8783),s(4723),s(5306),s(3123),s(3210),s(2472),s(2990),s(8927),s(3105),s(5035),s(4345),s(7174),s(2846),s(4731),s(7209),s(6319),s(8867),s(7789),s(3739),s(9368),s(4483),s(2056),s(3462),s(678),s(7462),s(3824),s(5021),s(2974),s(5016),s(4747),s(3948),s(285);function a(N,R){var w;if(typeof Symbol>"u"||N[Symbol.iterator]==null){if(Array.isArray(N)||(w=c(N))||N&&typeof N.length=="number"){w&&(N=w);var C=0,v=function(){};return{s:v,n:function(){return C>=N.length?{done:!0}:{done:!1,value:N[C++]}},e:function(j){throw j},f:v}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
9
9
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var x=!0,I=!1,B;return{s:function(){w=N[Symbol.iterator]()},n:function(){var j=w.next();return x=j.done,j},e:function(j){I=!0,B=j},f:function(){try{!x&&w.return!=null&&w.return()}finally{if(I)throw B}}}}function c(N,R){if(N){if(typeof N=="string")return o(N,R);var w=Object.prototype.toString.call(N).slice(8,-1);if(w==="Object"&&N.constructor&&(w=N.constructor.name),w==="Map"||w==="Set")return Array.from(N);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return o(N,R)}}function o(N,R){(R==null||R>N.length)&&(R=N.length);for(var w=0,C=new Array(R);w<R;w++)C[w]=N[w];return C}function u(N,R){if(!(N instanceof R))throw new TypeError("Cannot call a class as a function")}function d(N,R){for(var w=0;w<R.length;w++){var C=R[w];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(N,C.key,C)}}function h(N,R,w){return R&&d(N.prototype,R),N}var f=function(){function N(){u(this,N)}return h(N,[{key:"on",value:function(w,C){return this._callbacks=this._callbacks||{},this._callbacks[w]||(this._callbacks[w]=[]),this._callbacks[w].push(C),this}},{key:"emit",value:function(w){this._callbacks=this._callbacks||{};for(var C=this._callbacks[w],v=arguments.length,x=new Array(v>1?v-1:0),I=1;I<v;I++)x[I-1]=arguments[I];if(C){var B=a(C),U;try{for(B.s();!(U=B.n()).done;){var j=U.value;j.apply(this,x)}}catch(W){B.e(W)}finally{B.f()}}return this.element&&this.element.dispatchEvent(this.makeEvent("dropzone:"+w,{args:x})),this}},{key:"makeEvent",value:function(w,C){var v={bubbles:!0,cancelable:!0,detail:C};if(typeof window.CustomEvent=="function")return new CustomEvent(w,v);var x=document.createEvent("CustomEvent");return x.initCustomEvent(w,v.bubbles,v.cancelable,v.detail),x}},{key:"off",value:function(w,C){if(!this._callbacks||arguments.length===0)return this._callbacks={},this;var v=this._callbacks[w];if(!v)return this;if(arguments.length===1)return delete this._callbacks[w],this;for(var x=0;x<v.length;x++){var I=v[x];if(I===C){v.splice(x,1);break}}return this}}]),N}(),m='<div class="dz-preview dz-file-preview"> <div class="dz-image"><img data-dz-thumbnail/></div> <div class="dz-details"> <div class="dz-size"><span data-dz-size></span></div> <div class="dz-filename"><span data-dz-name></span></div> </div> <div class="dz-progress"> <span class="dz-upload" data-dz-uploadprogress></span> </div> <div class="dz-error-message"><span data-dz-errormessage></span></div> <div class="dz-success-mark"> <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>Check</title> <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> <path d="M23.5,31.8431458 L17.5852419,25.9283877 C16.0248253,24.3679711 13.4910294,24.366835 11.9289322,25.9289322 C10.3700136,27.4878508 10.3665912,30.0234455 11.9283877,31.5852419 L20.4147581,40.0716123 C20.5133999,40.1702541 20.6159315,40.2626649 20.7218615,40.3488435 C22.2835669,41.8725651 24.794234,41.8626202 26.3461564,40.3106978 L43.3106978,23.3461564 C44.8771021,21.7797521 44.8758057,19.2483887 43.3137085,17.6862915 C41.7547899,16.1273729 39.2176035,16.1255422 37.6538436,17.6893022 L23.5,31.8431458 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z" stroke-opacity="0.198794158" stroke="#747474" fill-opacity="0.816519475" fill="#FFFFFF"></path> </g> </svg> </div> <div class="dz-error-mark"> <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>Error</title> <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> <g stroke="#747474" stroke-opacity="0.198794158" fill="#FFFFFF" fill-opacity="0.816519475"> <path d="M32.6568542,29 L38.3106978,23.3461564 C39.8771021,21.7797521 39.8758057,19.2483887 38.3137085,17.6862915 C36.7547899,16.1273729 34.2176035,16.1255422 32.6538436,17.6893022 L27,23.3431458 L21.3461564,17.6893022 C19.7823965,16.1255422 17.2452101,16.1273729 15.6862915,17.6862915 C14.1241943,19.2483887 14.1228979,21.7797521 15.6893022,23.3461564 L21.3431458,29 L15.6893022,34.6538436 C14.1228979,36.2202479 14.1241943,38.7516113 15.6862915,40.3137085 C17.2452101,41.8726271 19.7823965,41.8744578 21.3461564,40.3106978 L27,34.6568542 L32.6538436,40.3106978 C34.2176035,41.8744578 36.7547899,41.8726271 38.3137085,40.3137085 C39.8758057,38.7516113 39.8771021,36.2202479 38.3106978,34.6538436 L32.6568542,29 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z"></path> </g> </g> </svg> </div> </div> ',p=m;function y(N,R){var w;if(typeof Symbol>"u"||N[Symbol.iterator]==null){if(Array.isArray(N)||(w=b(N))||N&&typeof N.length=="number"){w&&(N=w);var C=0,v=function(){};return{s:v,n:function(){return C>=N.length?{done:!0}:{done:!1,value:N[C++]}},e:function(j){throw j},f:v}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
10
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var x=!0,I=!1,B;return{s:function(){w=N[Symbol.iterator]()},n:function(){var j=w.next();return x=j.done,j},e:function(j){I=!0,B=j},f:function(){try{!x&&w.return!=null&&w.return()}finally{if(I)throw B}}}}function b(N,R){if(N){if(typeof N=="string")return A(N,R);var w=Object.prototype.toString.call(N).slice(8,-1);if(w==="Object"&&N.constructor&&(w=N.constructor.name),w==="Map"||w==="Set")return Array.from(N);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return A(N,R)}}function A(N,R){(R==null||R>N.length)&&(R=N.length);for(var w=0,C=new Array(R);w<R;w++)C[w]=N[w];return C}var T={url:null,method:"post",withCredentials:!1,timeout:null,parallelUploads:2,uploadMultiple:!1,chunking:!1,forceChunking:!1,chunkSize:2e6,parallelChunkUploads:!1,retryChunks:!1,retryChunksLimit:3,maxFilesize:256,paramName:"file",createImageThumbnails:!0,maxThumbnailFilesize:10,thumbnailWidth:120,thumbnailHeight:120,thumbnailMethod:"crop",resizeWidth:null,resizeHeight:null,resizeMimeType:null,resizeQuality:.8,resizeMethod:"contain",filesizeBase:1e3,maxFiles:null,headers:null,clickable:!0,ignoreHiddenFiles:!0,acceptedFiles:null,acceptedMimeTypes:null,autoProcessQueue:!0,autoQueue:!0,addRemoveLinks:!1,previewsContainer:null,disablePreviews:!1,hiddenInputContainer:"body",capture:null,renameFilename:null,renameFile:null,forceFallback:!1,dictDefaultMessage:"Drop files here to upload",dictFallbackMessage:"Your browser does not support drag'n'drop file uploads.",dictFallbackText:"Please use the fallback form below to upload your files like in the olden days.",dictFileTooBig:"File is too big ({{filesize}}MiB). Max filesize: {{maxFilesize}}MiB.",dictInvalidFileType:"You can't upload files of this type.",dictResponseError:"Server responded with {{statusCode}} code.",dictCancelUpload:"Cancel upload",dictUploadCanceled:"Upload canceled.",dictCancelUploadConfirmation:"Are you sure you want to cancel this upload?",dictRemoveFile:"Remove file",dictRemoveFileConfirmation:null,dictMaxFilesExceeded:"You can not upload any more files.",dictFileSizeUnits:{tb:"TB",gb:"GB",mb:"MB",kb:"KB",b:"b"},init:function(){},params:function(R,w,C){if(C)return{dzuuid:C.file.upload.uuid,dzchunkindex:C.index,dztotalfilesize:C.file.size,dzchunksize:this.options.chunkSize,dztotalchunkcount:C.file.upload.totalChunkCount,dzchunkbyteoffset:C.index*this.options.chunkSize}},accept:function(R,w){return w()},chunksUploaded:function(R,w){w()},fallback:function(){var R;this.element.className="".concat(this.element.className," dz-browser-not-supported");var w=y(this.element.getElementsByTagName("div")),C;try{for(w.s();!(C=w.n()).done;){var v=C.value;if(/(^| )dz-message($| )/.test(v.className)){R=v,v.className="dz-message";break}}}catch(I){w.e(I)}finally{w.f()}R||(R=q.createElement('<div class="dz-message"><span></span></div>'),this.element.appendChild(R));var x=R.getElementsByTagName("span")[0];return x&&(x.textContent!=null?x.textContent=this.options.dictFallbackMessage:x.innerText!=null&&(x.innerText=this.options.dictFallbackMessage)),this.element.appendChild(this.getFallbackForm())},resize:function(R,w,C,v){var x={srcX:0,srcY:0,srcWidth:R.width,srcHeight:R.height},I=R.width/R.height;w==null&&C==null?(w=x.srcWidth,C=x.srcHeight):w==null?w=C*I:C==null&&(C=w/I),w=Math.min(w,x.srcWidth),C=Math.min(C,x.srcHeight);var B=w/C;if(x.srcWidth>w||x.srcHeight>C)if(v==="crop")I>B?(x.srcHeight=R.height,x.srcWidth=x.srcHeight*B):(x.srcWidth=R.width,x.srcHeight=x.srcWidth/B);else if(v==="contain")I>B?C=w/I:w=C*I;else throw new Error("Unknown resizeMethod '".concat(v,"'"));return x.srcX=(R.width-x.srcWidth)/2,x.srcY=(R.height-x.srcHeight)/2,x.trgWidth=w,x.trgHeight=C,x},transformFile:function(R,w){return(this.options.resizeWidth||this.options.resizeHeight)&&R.type.match(/image.*/)?this.resizeImage(R,this.options.resizeWidth,this.options.resizeHeight,this.options.resizeMethod,w):w(R)},previewTemplate:p,drop:function(R){return this.element.classList.remove("dz-drag-hover")},dragstart:function(R){},dragend:function(R){return this.element.classList.remove("dz-drag-hover")},dragenter:function(R){return this.element.classList.add("dz-drag-hover")},dragover:function(R){return this.element.classList.add("dz-drag-hover")},dragleave:function(R){return this.element.classList.remove("dz-drag-hover")},paste:function(R){},reset:function(){return this.element.classList.remove("dz-started")},addedfile:function(R){var w=this;if(this.element===this.previewsContainer&&this.element.classList.add("dz-started"),this.previewsContainer&&!this.options.disablePreviews){R.previewElement=q.createElement(this.options.previewTemplate.trim()),R.previewTemplate=R.previewElement,this.previewsContainer.appendChild(R.previewElement);var C=y(R.previewElement.querySelectorAll("[data-dz-name]")),v;try{for(C.s();!(v=C.n()).done;){var x=v.value;x.textContent=R.name}}catch(Y){C.e(Y)}finally{C.f()}var I=y(R.previewElement.querySelectorAll("[data-dz-size]")),B;try{for(I.s();!(B=I.n()).done;)x=B.value,x.innerHTML=this.filesize(R.size)}catch(Y){I.e(Y)}finally{I.f()}this.options.addRemoveLinks&&(R._removeLink=q.createElement('<a class="dz-remove" href="javascript:undefined;" data-dz-remove>'.concat(this.options.dictRemoveFile,"</a>")),R.previewElement.appendChild(R._removeLink));var U=function(Q){return Q.preventDefault(),Q.stopPropagation(),R.status===q.UPLOADING?q.confirm(w.options.dictCancelUploadConfirmation,function(){return w.removeFile(R)}):w.options.dictRemoveFileConfirmation?q.confirm(w.options.dictRemoveFileConfirmation,function(){return w.removeFile(R)}):w.removeFile(R)},j=y(R.previewElement.querySelectorAll("[data-dz-remove]")),W;try{for(j.s();!(W=j.n()).done;){var Z=W.value;Z.addEventListener("click",U)}}catch(Y){j.e(Y)}finally{j.f()}}},removedfile:function(R){return R.previewElement!=null&&R.previewElement.parentNode!=null&&R.previewElement.parentNode.removeChild(R.previewElement),this._updateMaxFilesReachedClass()},thumbnail:function(R,w){if(R.previewElement){R.previewElement.classList.remove("dz-file-preview");var C=y(R.previewElement.querySelectorAll("[data-dz-thumbnail]")),v;try{for(C.s();!(v=C.n()).done;){var x=v.value;x.alt=R.name,x.src=w}}catch(I){C.e(I)}finally{C.f()}return setTimeout(function(){return R.previewElement.classList.add("dz-image-preview")},1)}},error:function(R,w){if(R.previewElement){R.previewElement.classList.add("dz-error"),typeof w!="string"&&w.error&&(w=w.error);var C=y(R.previewElement.querySelectorAll("[data-dz-errormessage]")),v;try{for(C.s();!(v=C.n()).done;){var x=v.value;x.textContent=w}}catch(I){C.e(I)}finally{C.f()}}},errormultiple:function(){},processing:function(R){if(R.previewElement&&(R.previewElement.classList.add("dz-processing"),R._removeLink))return R._removeLink.innerHTML=this.options.dictCancelUpload},processingmultiple:function(){},uploadprogress:function(R,w,C){if(R.previewElement){var v=y(R.previewElement.querySelectorAll("[data-dz-uploadprogress]")),x;try{for(v.s();!(x=v.n()).done;){var I=x.value;I.nodeName==="PROGRESS"?I.value=w:I.style.width="".concat(w,"%")}}catch(B){v.e(B)}finally{v.f()}}},totaluploadprogress:function(){},sending:function(){},sendingmultiple:function(){},success:function(R){if(R.previewElement)return R.previewElement.classList.add("dz-success")},successmultiple:function(){},canceled:function(R){return this.emit("error",R,this.options.dictUploadCanceled)},canceledmultiple:function(){},complete:function(R){if(R._removeLink&&(R._removeLink.innerHTML=this.options.dictRemoveFile),R.previewElement)return R.previewElement.classList.add("dz-complete")},completemultiple:function(){},maxfilesexceeded:function(){},maxfilesreached:function(){},queuecomplete:function(){},addedfiles:function(){}},O=T;function F(N){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?F=function(w){return typeof w}:F=function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w},F(N)}function M(N,R){var w;if(typeof Symbol>"u"||N[Symbol.iterator]==null){if(Array.isArray(N)||(w=z(N))||N&&typeof N.length=="number"){w&&(N=w);var C=0,v=function(){};return{s:v,n:function(){return C>=N.length?{done:!0}:{done:!1,value:N[C++]}},e:function(j){throw j},f:v}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
11
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var x=!0,I=!1,B;return{s:function(){w=N[Symbol.iterator]()},n:function(){var j=w.next();return x=j.done,j},e:function(j){I=!0,B=j},f:function(){try{!x&&w.return!=null&&w.return()}finally{if(I)throw B}}}}function z(N,R){if(N){if(typeof N=="string")return X(N,R);var w=Object.prototype.toString.call(N).slice(8,-1);if(w==="Object"&&N.constructor&&(w=N.constructor.name),w==="Map"||w==="Set")return Array.from(N);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return X(N,R)}}function X(N,R){(R==null||R>N.length)&&(R=N.length);for(var w=0,C=new Array(R);w<R;w++)C[w]=N[w];return C}function H(N,R){if(!(N instanceof R))throw new TypeError("Cannot call a class as a function")}function re(N,R){for(var w=0;w<R.length;w++){var C=R[w];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(N,C.key,C)}}function G(N,R,w){return R&&re(N.prototype,R),w&&re(N,w),N}function E(N,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function");N.prototype=Object.create(R&&R.prototype,{constructor:{value:N,writable:!0,configurable:!0}}),R&&P(N,R)}function P(N,R){return P=Object.setPrototypeOf||function(C,v){return C.__proto__=v,C},P(N,R)}function k(N){var R=V();return function(){var C=K(N),v;if(R){var x=K(this).constructor;v=Reflect.construct(C,arguments,x)}else v=C.apply(this,arguments);return $(this,v)}}function $(N,R){return R&&(F(R)==="object"||typeof R=="function")?R:_(N)}function _(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}function V(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function K(N){return K=Object.setPrototypeOf?Object.getPrototypeOf:function(w){return w.__proto__||Object.getPrototypeOf(w)},K(N)}var q=function(N){E(w,N);var R=k(w);function w(C,v){var x;H(this,w),x=R.call(this);var I,B;if(x.element=C,x.version=w.version,x.clickableElements=[],x.listeners=[],x.files=[],typeof x.element=="string"&&(x.element=document.querySelector(x.element)),!x.element||x.element.nodeType==null)throw new Error("Invalid dropzone element.");if(x.element.dropzone)throw new Error("Dropzone already attached.");w.instances.push(_(x)),x.element.dropzone=_(x);var U=(B=w.optionsForElement(x.element))!=null?B:{};if(x.options=w.extend({},O,U,v??{}),x.options.previewTemplate=x.options.previewTemplate.replace(/\n*/g,""),x.options.forceFallback||!w.isBrowserSupported())return $(x,x.options.fallback.call(_(x)));if(x.options.url==null&&(x.options.url=x.element.getAttribute("action")),!x.options.url)throw new Error("No URL provided.");if(x.options.acceptedFiles&&x.options.acceptedMimeTypes)throw new Error("You can't provide both 'acceptedFiles' and 'acceptedMimeTypes'. 'acceptedMimeTypes' is deprecated.");if(x.options.uploadMultiple&&x.options.chunking)throw new Error("You cannot set both: uploadMultiple and chunking.");return x.options.acceptedMimeTypes&&(x.options.acceptedFiles=x.options.acceptedMimeTypes,delete x.options.acceptedMimeTypes),x.options.renameFilename!=null&&(x.options.renameFile=function(j){return x.options.renameFilename.call(_(x),j.name,j)}),typeof x.options.method=="string"&&(x.options.method=x.options.method.toUpperCase()),(I=x.getExistingFallback())&&I.parentNode&&I.parentNode.removeChild(I),x.options.previewsContainer!==!1&&(x.options.previewsContainer?x.previewsContainer=w.getElement(x.options.previewsContainer,"previewsContainer"):x.previewsContainer=x.element),x.options.clickable&&(x.options.clickable===!0?x.clickableElements=[x.element]:x.clickableElements=w.getElements(x.options.clickable,"clickable")),x.init(),x}return G(w,[{key:"getAcceptedFiles",value:function(){return this.files.filter(function(v){return v.accepted}).map(function(v){return v})}},{key:"getRejectedFiles",value:function(){return this.files.filter(function(v){return!v.accepted}).map(function(v){return v})}},{key:"getFilesWithStatus",value:function(v){return this.files.filter(function(x){return x.status===v}).map(function(x){return x})}},{key:"getQueuedFiles",value:function(){return this.getFilesWithStatus(w.QUEUED)}},{key:"getUploadingFiles",value:function(){return this.getFilesWithStatus(w.UPLOADING)}},{key:"getAddedFiles",value:function(){return this.getFilesWithStatus(w.ADDED)}},{key:"getActiveFiles",value:function(){return this.files.filter(function(v){return v.status===w.UPLOADING||v.status===w.QUEUED}).map(function(v){return v})}},{key:"init",value:function(){var v=this;if(this.element.tagName==="form"&&this.element.setAttribute("enctype","multipart/form-data"),this.element.classList.contains("dropzone")&&!this.element.querySelector(".dz-message")&&this.element.appendChild(w.createElement('<div class="dz-default dz-message"><button class="dz-button" type="button">'.concat(this.options.dictDefaultMessage,"</button></div>"))),this.clickableElements.length){var x=function Z(){v.hiddenFileInput&&v.hiddenFileInput.parentNode.removeChild(v.hiddenFileInput),v.hiddenFileInput=document.createElement("input"),v.hiddenFileInput.setAttribute("type","file"),(v.options.maxFiles===null||v.options.maxFiles>1)&&v.hiddenFileInput.setAttribute("multiple","multiple"),v.hiddenFileInput.className="dz-hidden-input",v.options.acceptedFiles!==null&&v.hiddenFileInput.setAttribute("accept",v.options.acceptedFiles),v.options.capture!==null&&v.hiddenFileInput.setAttribute("capture",v.options.capture),v.hiddenFileInput.setAttribute("tabindex","-1"),v.hiddenFileInput.style.visibility="hidden",v.hiddenFileInput.style.position="absolute",v.hiddenFileInput.style.top="0",v.hiddenFileInput.style.left="0",v.hiddenFileInput.style.height="0",v.hiddenFileInput.style.width="0",w.getElement(v.options.hiddenInputContainer,"hiddenInputContainer").appendChild(v.hiddenFileInput),v.hiddenFileInput.addEventListener("change",function(){var Y=v.hiddenFileInput.files;if(Y.length){var Q=M(Y),ne;try{for(Q.s();!(ne=Q.n()).done;){var ie=ne.value;v.addFile(ie)}}catch(fe){Q.e(fe)}finally{Q.f()}}v.emit("addedfiles",Y),Z()})};x()}this.URL=window.URL!==null?window.URL:window.webkitURL;var I=M(this.events),B;try{for(I.s();!(B=I.n()).done;){var U=B.value;this.on(U,this.options[U])}}catch(Z){I.e(Z)}finally{I.f()}this.on("uploadprogress",function(){return v.updateTotalUploadProgress()}),this.on("removedfile",function(){return v.updateTotalUploadProgress()}),this.on("canceled",function(Z){return v.emit("complete",Z)}),this.on("complete",function(Z){if(v.getAddedFiles().length===0&&v.getUploadingFiles().length===0&&v.getQueuedFiles().length===0)return setTimeout(function(){return v.emit("queuecomplete")},0)});var j=function(Y){if(Y.dataTransfer.types){for(var Q=0;Q<Y.dataTransfer.types.length;Q++)if(Y.dataTransfer.types[Q]==="Files")return!0}return!1},W=function(Y){if(j(Y))return Y.stopPropagation(),Y.preventDefault?Y.preventDefault():Y.returnValue=!1};return this.listeners=[{element:this.element,events:{dragstart:function(Y){return v.emit("dragstart",Y)},dragenter:function(Y){return W(Y),v.emit("dragenter",Y)},dragover:function(Y){var Q;try{Q=Y.dataTransfer.effectAllowed}catch{}return Y.dataTransfer.dropEffect=Q==="move"||Q==="linkMove"?"move":"copy",W(Y),v.emit("dragover",Y)},dragleave:function(Y){return v.emit("dragleave",Y)},drop:function(Y){return W(Y),v.drop(Y)},dragend:function(Y){return v.emit("dragend",Y)}}}],this.clickableElements.forEach(function(Z){return v.listeners.push({element:Z,events:{click:function(Q){return(Z!==v.element||Q.target===v.element||w.elementInside(Q.target,v.element.querySelector(".dz-message")))&&v.hiddenFileInput.click(),!0}}})}),this.enable(),this.options.init.call(this)}},{key:"destroy",value:function(){return this.disable(),this.removeAllFiles(!0),this.hiddenFileInput!=null&&this.hiddenFileInput.parentNode&&(this.hiddenFileInput.parentNode.removeChild(this.hiddenFileInput),this.hiddenFileInput=null),delete this.element.dropzone,w.instances.splice(w.instances.indexOf(this),1)}},{key:"updateTotalUploadProgress",value:function(){var v,x=0,I=0,B=this.getActiveFiles();if(B.length){var U=M(this.getActiveFiles()),j;try{for(U.s();!(j=U.n()).done;){var W=j.value;x+=W.upload.bytesSent,I+=W.upload.total}}catch(Z){U.e(Z)}finally{U.f()}v=100*x/I}else v=100;return this.emit("totaluploadprogress",v,I,x)}},{key:"_getParamName",value:function(v){return typeof this.options.paramName=="function"?this.options.paramName(v):"".concat(this.options.paramName).concat(this.options.uploadMultiple?"[".concat(v,"]"):"")}},{key:"_renameFile",value:function(v){return typeof this.options.renameFile!="function"?v.name:this.options.renameFile(v)}},{key:"getFallbackForm",value:function(){var v,x;if(v=this.getExistingFallback())return v;var I='<div class="dz-fallback">';this.options.dictFallbackText&&(I+="<p>".concat(this.options.dictFallbackText,"</p>")),I+='<input type="file" name="'.concat(this._getParamName(0),'" ').concat(this.options.uploadMultiple?'multiple="multiple"':void 0,' /><input type="submit" value="Upload!"></div>');var B=w.createElement(I);return this.element.tagName!=="FORM"?(x=w.createElement('<form action="'.concat(this.options.url,'" enctype="multipart/form-data" method="').concat(this.options.method,'"></form>')),x.appendChild(B)):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),x??B}},{key:"getExistingFallback",value:function(){for(var v=function(W){var Z=M(W),Y;try{for(Z.s();!(Y=Z.n()).done;){var Q=Y.value;if(/(^| )fallback($| )/.test(Q.className))return Q}}catch(ne){Z.e(ne)}finally{Z.f()}},x=0,I=["div","form"];x<I.length;x++){var B=I[x],U;if(U=v(this.element.getElementsByTagName(B)))return U}}},{key:"setupEventListeners",value:function(){return this.listeners.map(function(v){return function(){var x=[];for(var I in v.events){var B=v.events[I];x.push(v.element.addEventListener(I,B,!1))}return x}()})}},{key:"removeEventListeners",value:function(){return this.listeners.map(function(v){return function(){var x=[];for(var I in v.events){var B=v.events[I];x.push(v.element.removeEventListener(I,B,!1))}return x}()})}},{key:"disable",value:function(){var v=this;return this.clickableElements.forEach(function(x){return x.classList.remove("dz-clickable")}),this.removeEventListeners(),this.disabled=!0,this.files.map(function(x){return v.cancelUpload(x)})}},{key:"enable",value:function(){return delete this.disabled,this.clickableElements.forEach(function(v){return v.classList.add("dz-clickable")}),this.setupEventListeners()}},{key:"filesize",value:function(v){var x=0,I="b";if(v>0){for(var B=["tb","gb","mb","kb","b"],U=0;U<B.length;U++){var j=B[U],W=Math.pow(this.options.filesizeBase,4-U)/10;if(v>=W){x=v/Math.pow(this.options.filesizeBase,4-U),I=j;break}}x=Math.round(10*x)/10}return"<strong>".concat(x,"</strong> ").concat(this.options.dictFileSizeUnits[I])}},{key:"_updateMaxFilesReachedClass",value:function(){return this.options.maxFiles!=null&&this.getAcceptedFiles().length>=this.options.maxFiles?(this.getAcceptedFiles().length===this.options.maxFiles&&this.emit("maxfilesreached",this.files),this.element.classList.add("dz-max-files-reached")):this.element.classList.remove("dz-max-files-reached")}},{key:"drop",value:function(v){if(v.dataTransfer){this.emit("drop",v);for(var x=[],I=0;I<v.dataTransfer.files.length;I++)x[I]=v.dataTransfer.files[I];if(x.length){var B=v.dataTransfer.items;B&&B.length&&B[0].webkitGetAsEntry!=null?this._addFilesFromItems(B):this.handleFiles(x)}this.emit("addedfiles",x)}}},{key:"paste",value:function(v){if(he(v!=null?v.clipboardData:void 0,function(I){return I.items})!=null){this.emit("paste",v);var x=v.clipboardData.items;if(x.length)return this._addFilesFromItems(x)}}},{key:"handleFiles",value:function(v){var x=M(v),I;try{for(x.s();!(I=x.n()).done;){var B=I.value;this.addFile(B)}}catch(U){x.e(U)}finally{x.f()}}},{key:"_addFilesFromItems",value:function(v){var x=this;return function(){var I=[],B=M(v),U;try{for(B.s();!(U=B.n()).done;){var j=U.value,W;j.webkitGetAsEntry!=null&&(W=j.webkitGetAsEntry())?W.isFile?I.push(x.addFile(j.getAsFile())):W.isDirectory?I.push(x._addFilesFromDirectory(W,W.name)):I.push(void 0):j.getAsFile!=null&&(j.kind==null||j.kind==="file")?I.push(x.addFile(j.getAsFile())):I.push(void 0)}}catch(Z){B.e(Z)}finally{B.f()}return I}()}},{key:"_addFilesFromDirectory",value:function(v,x){var I=this,B=v.createReader(),U=function(Z){return ke(console,"log",function(Y){return Y.log(Z)})},j=function W(){return B.readEntries(function(Z){if(Z.length>0){var Y=M(Z),Q;try{for(Y.s();!(Q=Y.n()).done;){var ne=Q.value;ne.isFile?ne.file(function(ie){if(!(I.options.ignoreHiddenFiles&&ie.name.substring(0,1)==="."))return ie.fullPath="".concat(x,"/").concat(ie.name),I.addFile(ie)}):ne.isDirectory&&I._addFilesFromDirectory(ne,"".concat(x,"/").concat(ne.name))}}catch(ie){Y.e(ie)}finally{Y.f()}W()}return null},U)};return j()}},{key:"accept",value:function(v,x){this.options.maxFilesize&&v.size>this.options.maxFilesize*1024*1024?x(this.options.dictFileTooBig.replace("{{filesize}}",Math.round(v.size/1024/10.24)/100).replace("{{maxFilesize}}",this.options.maxFilesize)):w.isValidFile(v,this.options.acceptedFiles)?this.options.maxFiles!=null&&this.getAcceptedFiles().length>=this.options.maxFiles?(x(this.options.dictMaxFilesExceeded.replace("{{maxFiles}}",this.options.maxFiles)),this.emit("maxfilesexceeded",v)):this.options.accept.call(this,v,x):x(this.options.dictInvalidFileType)}},{key:"addFile",value:function(v){var x=this;v.upload={uuid:w.uuidv4(),progress:0,total:v.size,bytesSent:0,filename:this._renameFile(v)},this.files.push(v),v.status=w.ADDED,this.emit("addedfile",v),this._enqueueThumbnail(v),this.accept(v,function(I){I?(v.accepted=!1,x._errorProcessing([v],I)):(v.accepted=!0,x.options.autoQueue&&x.enqueueFile(v)),x._updateMaxFilesReachedClass()})}},{key:"enqueueFiles",value:function(v){var x=M(v),I;try{for(x.s();!(I=x.n()).done;){var B=I.value;this.enqueueFile(B)}}catch(U){x.e(U)}finally{x.f()}return null}},{key:"enqueueFile",value:function(v){var x=this;if(v.status===w.ADDED&&v.accepted===!0){if(v.status=w.QUEUED,this.options.autoProcessQueue)return setTimeout(function(){return x.processQueue()},0)}else throw new Error("This file can't be queued because it has already been processed or was rejected.")}},{key:"_enqueueThumbnail",value:function(v){var x=this;if(this.options.createImageThumbnails&&v.type.match(/image.*/)&&v.size<=this.options.maxThumbnailFilesize*1024*1024)return this._thumbnailQueue.push(v),setTimeout(function(){return x._processThumbnailQueue()},0)}},{key:"_processThumbnailQueue",value:function(){var v=this;if(!(this._processingThumbnail||this._thumbnailQueue.length===0)){this._processingThumbnail=!0;var x=this._thumbnailQueue.shift();return this.createThumbnail(x,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,!0,function(I){return v.emit("thumbnail",x,I),v._processingThumbnail=!1,v._processThumbnailQueue()})}}},{key:"removeFile",value:function(v){if(v.status===w.UPLOADING&&this.cancelUpload(v),this.files=J(this.files,v),this.emit("removedfile",v),this.files.length===0)return this.emit("reset")}},{key:"removeAllFiles",value:function(v){v==null&&(v=!1);var x=M(this.files.slice()),I;try{for(x.s();!(I=x.n()).done;){var B=I.value;(B.status!==w.UPLOADING||v)&&this.removeFile(B)}}catch(U){x.e(U)}finally{x.f()}return null}},{key:"resizeImage",value:function(v,x,I,B,U){var j=this;return this.createThumbnail(v,x,I,B,!0,function(W,Z){if(Z==null)return U(v);var Y=j.options.resizeMimeType;Y==null&&(Y=v.type);var Q=Z.toDataURL(Y,j.options.resizeQuality);return(Y==="image/jpeg"||Y==="image/jpg")&&(Q=ye.restore(v.dataURL,Q)),U(w.dataURItoBlob(Q))})}},{key:"createThumbnail",value:function(v,x,I,B,U,j){var W=this,Z=new FileReader;Z.onload=function(){if(v.dataURL=Z.result,v.type==="image/svg+xml"){j!=null&&j(Z.result);return}W.createThumbnailFromUrl(v,x,I,B,U,j)},Z.readAsDataURL(v)}},{key:"displayExistingFile",value:function(v,x,I,B){var U=this,j=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0;if(this.emit("addedfile",v),this.emit("complete",v),!j)this.emit("thumbnail",v,x),I&&I();else{var W=function(Y){U.emit("thumbnail",v,Y),I&&I()};v.dataURL=x,this.createThumbnailFromUrl(v,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,this.options.fixOrientation,W,B)}}},{key:"createThumbnailFromUrl",value:function(v,x,I,B,U,j,W){var Z=this,Y=document.createElement("img");return W&&(Y.crossOrigin=W),U=getComputedStyle(document.body).imageOrientation=="from-image"?!1:U,Y.onload=function(){var Q=function(ie){return ie(1)};return typeof EXIF<"u"&&EXIF!==null&&U&&(Q=function(ie){return EXIF.getData(Y,function(){return ie(EXIF.getTag(this,"Orientation"))})}),Q(function(ne){v.width=Y.width,v.height=Y.height;var ie=Z.options.resize.call(Z,v,x,I,B),fe=document.createElement("canvas"),we=fe.getContext("2d");switch(fe.width=ie.trgWidth,fe.height=ie.trgHeight,ne>4&&(fe.width=ie.trgHeight,fe.height=ie.trgWidth),ne){case 2:we.translate(fe.width,0),we.scale(-1,1);break;case 3:we.translate(fe.width,fe.height),we.rotate(Math.PI);break;case 4:we.translate(0,fe.height),we.scale(1,-1);break;case 5:we.rotate(.5*Math.PI),we.scale(1,-1);break;case 6:we.rotate(.5*Math.PI),we.translate(0,-fe.width);break;case 7:we.rotate(.5*Math.PI),we.translate(fe.height,-fe.width),we.scale(-1,1);break;case 8:we.rotate(-.5*Math.PI),we.translate(-fe.height,0);break}ge(we,Y,ie.srcX!=null?ie.srcX:0,ie.srcY!=null?ie.srcY:0,ie.srcWidth,ie.srcHeight,ie.trgX!=null?ie.trgX:0,ie.trgY!=null?ie.trgY:0,ie.trgWidth,ie.trgHeight);var De=fe.toDataURL("image/png");if(j!=null)return j(De,fe)})},j!=null&&(Y.onerror=j),Y.src=v.dataURL}},{key:"processQueue",value:function(){var v=this.options.parallelUploads,x=this.getUploadingFiles().length,I=x;if(!(x>=v)){var B=this.getQueuedFiles();if(B.length>0){if(this.options.uploadMultiple)return this.processFiles(B.slice(0,v-x));for(;I<v;){if(!B.length)return;this.processFile(B.shift()),I++}}}}},{key:"processFile",value:function(v){return this.processFiles([v])}},{key:"processFiles",value:function(v){var x=M(v),I;try{for(x.s();!(I=x.n()).done;){var B=I.value;B.processing=!0,B.status=w.UPLOADING,this.emit("processing",B)}}catch(U){x.e(U)}finally{x.f()}return this.options.uploadMultiple&&this.emit("processingmultiple",v),this.uploadFiles(v)}},{key:"_getFilesWithXhr",value:function(v){return this.files.filter(function(x){return x.xhr===v}).map(function(x){return x})}},{key:"cancelUpload",value:function(v){if(v.status===w.UPLOADING){var x=this._getFilesWithXhr(v.xhr),I=M(x),B;try{for(I.s();!(B=I.n()).done;){var U=B.value;U.status=w.CANCELED}}catch(Y){I.e(Y)}finally{I.f()}typeof v.xhr<"u"&&v.xhr.abort();var j=M(x),W;try{for(j.s();!(W=j.n()).done;){var Z=W.value;this.emit("canceled",Z)}}catch(Y){j.e(Y)}finally{j.f()}this.options.uploadMultiple&&this.emit("canceledmultiple",x)}else(v.status===w.ADDED||v.status===w.QUEUED)&&(v.status=w.CANCELED,this.emit("canceled",v),this.options.uploadMultiple&&this.emit("canceledmultiple",[v]));if(this.options.autoProcessQueue)return this.processQueue()}},{key:"resolveOption",value:function(v){if(typeof v=="function"){for(var x=arguments.length,I=new Array(x>1?x-1:0),B=1;B<x;B++)I[B-1]=arguments[B];return v.apply(this,I)}return v}},{key:"uploadFile",value:function(v){return this.uploadFiles([v])}},{key:"uploadFiles",value:function(v){var x=this;this._transformFiles(v,function(I){if(x.options.chunking){var B=I[0];v[0].upload.chunked=x.options.chunking&&(x.options.forceChunking||B.size>x.options.chunkSize),v[0].upload.totalChunkCount=Math.ceil(B.size/x.options.chunkSize)}if(v[0].upload.chunked){var U=v[0],j=I[0];U.upload.chunks=[];var W=function(){for(var ie=0;U.upload.chunks[ie]!==void 0;)ie++;if(!(ie>=U.upload.totalChunkCount)){var fe=ie*x.options.chunkSize,we=Math.min(fe+x.options.chunkSize,j.size),De={name:x._getParamName(0),data:j.webkitSlice?j.webkitSlice(fe,we):j.slice(fe,we),filename:U.upload.filename,chunkIndex:ie};U.upload.chunks[ie]={file:U,index:ie,dataBlock:De,status:w.UPLOADING,progress:0,retries:0},x._uploadData(v,[De])}};if(U.upload.finishedChunkUpload=function(ne,ie){var fe=!0;ne.status=w.SUCCESS,ne.dataBlock=null,ne.xhr=null;for(var we=0;we<U.upload.totalChunkCount;we++){if(U.upload.chunks[we]===void 0)return W();U.upload.chunks[we].status!==w.SUCCESS&&(fe=!1)}fe&&x.options.chunksUploaded(U,function(){x._finished(v,ie,null)})},x.options.parallelChunkUploads)for(var Z=0;Z<U.upload.totalChunkCount;Z++)W();else W()}else{for(var Y=[],Q=0;Q<v.length;Q++)Y[Q]={name:x._getParamName(Q),data:I[Q],filename:v[Q].upload.filename};x._uploadData(v,Y)}})}},{key:"_getChunk",value:function(v,x){for(var I=0;I<v.upload.totalChunkCount;I++)if(v.upload.chunks[I]!==void 0&&v.upload.chunks[I].xhr===x)return v.upload.chunks[I]}},{key:"_uploadData",value:function(v,x){var I=this,B=new XMLHttpRequest,U=M(v),j;try{for(U.s();!(j=U.n()).done;){var W=j.value;W.xhr=B}}catch(Pe){U.e(Pe)}finally{U.f()}v[0].upload.chunked&&(v[0].upload.chunks[x[0].chunkIndex].xhr=B);var Z=this.resolveOption(this.options.method,v),Y=this.resolveOption(this.options.url,v);B.open(Z,Y,!0);var Q=this.resolveOption(this.options.timeout,v);Q&&(B.timeout=this.resolveOption(this.options.timeout,v)),B.withCredentials=!!this.options.withCredentials,B.onload=function(Pe){I._finishedUploading(v,B,Pe)},B.ontimeout=function(){I._handleUploadError(v,B,"Request timedout after ".concat(I.options.timeout/1e3," seconds"))},B.onerror=function(){I._handleUploadError(v,B)};var ne=B.upload!=null?B.upload:B;ne.onprogress=function(Pe){return I._updateFilesUploadProgress(v,B,Pe)};var ie={Accept:"application/json","Cache-Control":"no-cache","X-Requested-With":"XMLHttpRequest"};this.options.headers&&w.extend(ie,this.options.headers);for(var fe in ie){var we=ie[fe];we&&B.setRequestHeader(fe,we)}var De=new FormData;if(this.options.params){var Ge=this.options.params;typeof Ge=="function"&&(Ge=Ge.call(this,v,B,v[0].upload.chunked?this._getChunk(v[0],B):null));for(var _e in Ge){var Be=Ge[_e];if(Array.isArray(Be))for(var Ve=0;Ve<Be.length;Ve++)De.append(_e,Be[Ve]);else De.append(_e,Be)}}var rt=M(v),ot;try{for(rt.s();!(ot=rt.n()).done;){var Dt=ot.value;this.emit("sending",Dt,B,De)}}catch(Pe){rt.e(Pe)}finally{rt.f()}this.options.uploadMultiple&&this.emit("sendingmultiple",v,B,De),this._addFormElementData(De);for(var bt=0;bt<x.length;bt++){var $e=x[bt];De.append($e.name,$e.data,$e.filename)}this.submitRequest(B,De,v)}},{key:"_transformFiles",value:function(v,x){for(var I=this,B=[],U=0,j=function(Y){I.options.transformFile.call(I,v[Y],function(Q){B[Y]=Q,++U===v.length&&x(B)})},W=0;W<v.length;W++)j(W)}},{key:"_addFormElementData",value:function(v){if(this.element.tagName==="FORM"){var x=M(this.element.querySelectorAll("input, textarea, select, button")),I;try{for(x.s();!(I=x.n()).done;){var B=I.value,U=B.getAttribute("name"),j=B.getAttribute("type");if(j&&(j=j.toLowerCase()),!(typeof U>"u"||U===null))if(B.tagName==="SELECT"&&B.hasAttribute("multiple")){var W=M(B.options,!0),Z;try{for(W.s();!(Z=W.n()).done;){var Y=Z.value;Y.selected&&v.append(U,Y.value)}}catch(Q){W.e(Q)}finally{W.f()}}else(!j||j!=="checkbox"&&j!=="radio"||B.checked)&&v.append(U,B.value)}}catch(Q){x.e(Q)}finally{x.f()}}}},{key:"_updateFilesUploadProgress",value:function(v,x,I){if(v[0].upload.chunked){var W=v[0],Z=this._getChunk(W,x);I?(Z.progress=100*I.loaded/I.total,Z.total=I.total,Z.bytesSent=I.loaded):(Z.progress=100,Z.bytesSent=Z.total),W.upload.progress=0,W.upload.total=0,W.upload.bytesSent=0;for(var Y=0;Y<W.upload.totalChunkCount;Y++)W.upload.chunks[Y]&&typeof W.upload.chunks[Y].progress<"u"&&(W.upload.progress+=W.upload.chunks[Y].progress,W.upload.total+=W.upload.chunks[Y].total,W.upload.bytesSent+=W.upload.chunks[Y].bytesSent);W.upload.progress=W.upload.progress/W.upload.totalChunkCount,this.emit("uploadprogress",W,W.upload.progress,W.upload.bytesSent)}else{var B=M(v),U;try{for(B.s();!(U=B.n()).done;){var j=U.value;j.upload.total&&j.upload.bytesSent&&j.upload.bytesSent==j.upload.total||(I?(j.upload.progress=100*I.loaded/I.total,j.upload.total=I.total,j.upload.bytesSent=I.loaded):(j.upload.progress=100,j.upload.bytesSent=j.upload.total),this.emit("uploadprogress",j,j.upload.progress,j.upload.bytesSent))}}catch(Q){B.e(Q)}finally{B.f()}}}},{key:"_finishedUploading",value:function(v,x,I){var B;if(v[0].status!==w.CANCELED&&x.readyState===4){if(x.responseType!=="arraybuffer"&&x.responseType!=="blob"&&(B=x.responseText,x.getResponseHeader("content-type")&&~x.getResponseHeader("content-type").indexOf("application/json")))try{B=JSON.parse(B)}catch(U){I=U,B="Invalid JSON response from server."}this._updateFilesUploadProgress(v,x),200<=x.status&&x.status<300?v[0].upload.chunked?v[0].upload.finishedChunkUpload(this._getChunk(v[0],x),B):this._finished(v,B,I):this._handleUploadError(v,x,B)}}},{key:"_handleUploadError",value:function(v,x,I){if(v[0].status!==w.CANCELED){if(v[0].upload.chunked&&this.options.retryChunks){var B=this._getChunk(v[0],x);if(B.retries++<this.options.retryChunksLimit){this._uploadData(v,[B.dataBlock]);return}else console.warn("Retried this chunk too often. Giving up.")}this._errorProcessing(v,I||this.options.dictResponseError.replace("{{statusCode}}",x.status),x)}}},{key:"submitRequest",value:function(v,x,I){if(v.readyState!=1){console.warn("Cannot send this request because the XMLHttpRequest.readyState is not OPENED.");return}v.send(x)}},{key:"_finished",value:function(v,x,I){var B=M(v),U;try{for(B.s();!(U=B.n()).done;){var j=U.value;j.status=w.SUCCESS,this.emit("success",j,x,I),this.emit("complete",j)}}catch(W){B.e(W)}finally{B.f()}if(this.options.uploadMultiple&&(this.emit("successmultiple",v,x,I),this.emit("completemultiple",v)),this.options.autoProcessQueue)return this.processQueue()}},{key:"_errorProcessing",value:function(v,x,I){var B=M(v),U;try{for(B.s();!(U=B.n()).done;){var j=U.value;j.status=w.ERROR,this.emit("error",j,x,I),this.emit("complete",j)}}catch(W){B.e(W)}finally{B.f()}if(this.options.uploadMultiple&&(this.emit("errormultiple",v,x,I),this.emit("completemultiple",v)),this.options.autoProcessQueue)return this.processQueue()}}],[{key:"initClass",value:function(){this.prototype.Emitter=f,this.prototype.events=["drop","dragstart","dragend","dragenter","dragover","dragleave","addedfile","addedfiles","removedfile","thumbnail","error","errormultiple","processing","processingmultiple","uploadprogress","totaluploadprogress","sending","sendingmultiple","success","successmultiple","canceled","canceledmultiple","complete","completemultiple","reset","maxfilesexceeded","maxfilesreached","queuecomplete"],this.prototype._thumbnailQueue=[],this.prototype._processingThumbnail=!1}},{key:"extend",value:function(v){for(var x=arguments.length,I=new Array(x>1?x-1:0),B=1;B<x;B++)I[B-1]=arguments[B];for(var U=0,j=I;U<j.length;U++){var W=j[U];for(var Z in W){var Y=W[Z];v[Z]=Y}}return v}},{key:"uuidv4",value:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(v){var x=Math.random()*16|0,I=v==="x"?x:x&3|8;return I.toString(16)})}}]),w}(f);q.initClass(),q.version="5.9.3",q.options={},q.optionsForElement=function(N){if(N.getAttribute("id"))return q.options[te(N.getAttribute("id"))]},q.instances=[],q.forElement=function(N){if(typeof N=="string"&&(N=document.querySelector(N)),(N!=null?N.dropzone:void 0)==null)throw new Error("No Dropzone found for given element. This is probably because you're trying to access it before Dropzone had the time to initialize. Use the `init` option to setup any additional observers on your Dropzone.");return N.dropzone},q.autoDiscover=!0,q.discover=function(){var N;if(document.querySelectorAll)N=document.querySelectorAll(".dropzone");else{N=[];var R=function(C){return function(){var v=[],x=M(C),I;try{for(x.s();!(I=x.n()).done;){var B=I.value;/(^| )dropzone($| )/.test(B.className)?v.push(N.push(B)):v.push(void 0)}}catch(U){x.e(U)}finally{x.f()}return v}()};R(document.getElementsByTagName("div")),R(document.getElementsByTagName("form"))}return function(){var w=[],C=M(N),v;try{for(C.s();!(v=C.n()).done;){var x=v.value;q.optionsForElement(x)!==!1?w.push(new q(x)):w.push(void 0)}}catch(I){C.e(I)}finally{C.f()}return w}()},q.blockedBrowsers=[/opera.*(Macintosh|Windows Phone).*version\/12/i],q.isBrowserSupported=function(){var N=!0;if(window.File&&window.FileReader&&window.FileList&&window.Blob&&window.FormData&&document.querySelector)if(!("classList"in document.createElement("a")))N=!1;else{q.blacklistedBrowsers!==void 0&&(q.blockedBrowsers=q.blacklistedBrowsers);var R=M(q.blockedBrowsers),w;try{for(R.s();!(w=R.n()).done;){var C=w.value;if(C.test(navigator.userAgent)){N=!1;continue}}}catch(v){R.e(v)}finally{R.f()}}else N=!1;return N},q.dataURItoBlob=function(N){for(var R=atob(N.split(",")[1]),w=N.split(",")[0].split(":")[1].split(";")[0],C=new ArrayBuffer(R.length),v=new Uint8Array(C),x=0,I=R.length,B=0<=I;B?x<=I:x>=I;B?x++:x--)v[x]=R.charCodeAt(x);return new Blob([C],{type:w})};var J=function(R,w){return R.filter(function(C){return C!==w}).map(function(C){return C})},te=function(R){return R.replace(/[\-_](\w)/g,function(w){return w.charAt(1).toUpperCase()})};q.createElement=function(N){var R=document.createElement("div");return R.innerHTML=N,R.childNodes[0]},q.elementInside=function(N,R){if(N===R)return!0;for(;N=N.parentNode;)if(N===R)return!0;return!1},q.getElement=function(N,R){var w;if(typeof N=="string"?w=document.querySelector(N):N.nodeType!=null&&(w=N),w==null)throw new Error("Invalid `".concat(R,"` option provided. Please provide a CSS selector or a plain HTML element."));return w},q.getElements=function(N,R){var w,C;if(N instanceof Array){C=[];try{var v=M(N,!0),x;try{for(v.s();!(x=v.n()).done;)w=x.value,C.push(this.getElement(w,R))}catch(U){v.e(U)}finally{v.f()}}catch{C=null}}else if(typeof N=="string"){C=[];var I=M(document.querySelectorAll(N)),B;try{for(I.s();!(B=I.n()).done;)w=B.value,C.push(w)}catch(U){I.e(U)}finally{I.f()}}else N.nodeType!=null&&(C=[N]);if(C==null||!C.length)throw new Error("Invalid `".concat(R,"` option provided. Please provide a CSS selector, a plain HTML element or a list of those."));return C},q.confirm=function(N,R,w){if(window.confirm(N))return R();if(w!=null)return w()},q.isValidFile=function(N,R){if(!R)return!0;R=R.split(",");var w=N.type,C=w.replace(/\/.*$/,""),v=M(R),x;try{for(v.s();!(x=v.n()).done;){var I=x.value;if(I=I.trim(),I.charAt(0)==="."){if(N.name.toLowerCase().indexOf(I.toLowerCase(),N.name.length-I.length)!==-1)return!0}else if(/\/\*$/.test(I)){if(C===I.replace(/\/.*$/,""))return!0}else if(w===I)return!0}}catch(B){v.e(B)}finally{v.f()}return!1},typeof jQuery<"u"&&jQuery!==null&&(jQuery.fn.dropzone=function(N){return this.each(function(){return new q(this,N)})}),q.ADDED="added",q.QUEUED="queued",q.ACCEPTED=q.QUEUED,q.UPLOADING="uploading",q.PROCESSING=q.UPLOADING,q.CANCELED="canceled",q.ERROR="error",q.SUCCESS="success";var me=function(R){R.naturalWidth;var w=R.naturalHeight,C=document.createElement("canvas");C.width=1,C.height=w;var v=C.getContext("2d");v.drawImage(R,0,0);for(var x=v.getImageData(1,0,1,w),I=x.data,B=0,U=w,j=w;j>B;){var W=I[(j-1)*4+3];W===0?U=j:B=j,j=U+B>>1}var Z=j/w;return Z===0?1:Z},ge=function(R,w,C,v,x,I,B,U,j,W){var Z=me(w);return R.drawImage(w,C,v,x,I,B,U,j,W/Z)},ye=function(){function N(){H(this,N)}return G(N,null,[{key:"initClass",value:function(){this.KEY_STR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}},{key:"encode64",value:function(w){for(var C="",v=void 0,x=void 0,I="",B=void 0,U=void 0,j=void 0,W="",Z=0;v=w[Z++],x=w[Z++],I=w[Z++],B=v>>2,U=(v&3)<<4|x>>4,j=(x&15)<<2|I>>6,W=I&63,isNaN(x)?j=W=64:isNaN(I)&&(W=64),C=C+this.KEY_STR.charAt(B)+this.KEY_STR.charAt(U)+this.KEY_STR.charAt(j)+this.KEY_STR.charAt(W),v=x=I="",B=U=j=W="",Z<w.length;);return C}},{key:"restore",value:function(w,C){if(!w.match("data:image/jpeg;base64,"))return C;var v=this.decode64(w.replace("data:image/jpeg;base64,","")),x=this.slice2Segments(v),I=this.exifManipulation(C,x);return"data:image/jpeg;base64,".concat(this.encode64(I))}},{key:"exifManipulation",value:function(w,C){var v=this.getExifArray(C),x=this.insertExif(w,v),I=new Uint8Array(x);return I}},{key:"getExifArray",value:function(w){for(var C=void 0,v=0;v<w.length;){if(C=w[v],C[0]===255&C[1]===225)return C;v++}return[]}},{key:"insertExif",value:function(w,C){var v=w.replace("data:image/jpeg;base64,",""),x=this.decode64(v),I=x.indexOf(255,3),B=x.slice(0,I),U=x.slice(I),j=B;return j=j.concat(C),j=j.concat(U),j}},{key:"slice2Segments",value:function(w){for(var C=0,v=[];;){var x;if(w[C]===255&w[C+1]===218)break;if(w[C]===255&w[C+1]===216)C+=2;else{x=w[C+2]*256+w[C+3];var I=C+x+2,B=w.slice(C,I);v.push(B),C=I}if(C>w.length)break}return v}},{key:"decode64",value:function(w){var C=void 0,v=void 0,x="",I=void 0,B=void 0,U=void 0,j="",W=0,Z=[],Y=/[^A-Za-z0-9\+\/\=]/g;for(Y.exec(w)&&console.warn(`There were invalid base64 characters in the input text.
10
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var x=!0,I=!1,B;return{s:function(){w=N[Symbol.iterator]()},n:function(){var j=w.next();return x=j.done,j},e:function(j){I=!0,B=j},f:function(){try{!x&&w.return!=null&&w.return()}finally{if(I)throw B}}}}function b(N,R){if(N){if(typeof N=="string")return A(N,R);var w=Object.prototype.toString.call(N).slice(8,-1);if(w==="Object"&&N.constructor&&(w=N.constructor.name),w==="Map"||w==="Set")return Array.from(N);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return A(N,R)}}function A(N,R){(R==null||R>N.length)&&(R=N.length);for(var w=0,C=new Array(R);w<R;w++)C[w]=N[w];return C}var T={url:null,method:"post",withCredentials:!1,timeout:null,parallelUploads:2,uploadMultiple:!1,chunking:!1,forceChunking:!1,chunkSize:2e6,parallelChunkUploads:!1,retryChunks:!1,retryChunksLimit:3,maxFilesize:256,paramName:"file",createImageThumbnails:!0,maxThumbnailFilesize:10,thumbnailWidth:120,thumbnailHeight:120,thumbnailMethod:"crop",resizeWidth:null,resizeHeight:null,resizeMimeType:null,resizeQuality:.8,resizeMethod:"contain",filesizeBase:1e3,maxFiles:null,headers:null,clickable:!0,ignoreHiddenFiles:!0,acceptedFiles:null,acceptedMimeTypes:null,autoProcessQueue:!0,autoQueue:!0,addRemoveLinks:!1,previewsContainer:null,disablePreviews:!1,hiddenInputContainer:"body",capture:null,renameFilename:null,renameFile:null,forceFallback:!1,dictDefaultMessage:"Drop files here to upload",dictFallbackMessage:"Your browser does not support drag'n'drop file uploads.",dictFallbackText:"Please use the fallback form below to upload your files like in the olden days.",dictFileTooBig:"File is too big ({{filesize}}MiB). Max filesize: {{maxFilesize}}MiB.",dictInvalidFileType:"You can't upload files of this type.",dictResponseError:"Server responded with {{statusCode}} code.",dictCancelUpload:"Cancel upload",dictUploadCanceled:"Upload canceled.",dictCancelUploadConfirmation:"Are you sure you want to cancel this upload?",dictRemoveFile:"Remove file",dictRemoveFileConfirmation:null,dictMaxFilesExceeded:"You can not upload any more files.",dictFileSizeUnits:{tb:"TB",gb:"GB",mb:"MB",kb:"KB",b:"b"},init:function(){},params:function(R,w,C){if(C)return{dzuuid:C.file.upload.uuid,dzchunkindex:C.index,dztotalfilesize:C.file.size,dzchunksize:this.options.chunkSize,dztotalchunkcount:C.file.upload.totalChunkCount,dzchunkbyteoffset:C.index*this.options.chunkSize}},accept:function(R,w){return w()},chunksUploaded:function(R,w){w()},fallback:function(){var R;this.element.className="".concat(this.element.className," dz-browser-not-supported");var w=y(this.element.getElementsByTagName("div")),C;try{for(w.s();!(C=w.n()).done;){var v=C.value;if(/(^| )dz-message($| )/.test(v.className)){R=v,v.className="dz-message";break}}}catch(I){w.e(I)}finally{w.f()}R||(R=q.createElement('<div class="dz-message"><span></span></div>'),this.element.appendChild(R));var x=R.getElementsByTagName("span")[0];return x&&(x.textContent!=null?x.textContent=this.options.dictFallbackMessage:x.innerText!=null&&(x.innerText=this.options.dictFallbackMessage)),this.element.appendChild(this.getFallbackForm())},resize:function(R,w,C,v){var x={srcX:0,srcY:0,srcWidth:R.width,srcHeight:R.height},I=R.width/R.height;w==null&&C==null?(w=x.srcWidth,C=x.srcHeight):w==null?w=C*I:C==null&&(C=w/I),w=Math.min(w,x.srcWidth),C=Math.min(C,x.srcHeight);var B=w/C;if(x.srcWidth>w||x.srcHeight>C)if(v==="crop")I>B?(x.srcHeight=R.height,x.srcWidth=x.srcHeight*B):(x.srcWidth=R.width,x.srcHeight=x.srcWidth/B);else if(v==="contain")I>B?C=w/I:w=C*I;else throw new Error("Unknown resizeMethod '".concat(v,"'"));return x.srcX=(R.width-x.srcWidth)/2,x.srcY=(R.height-x.srcHeight)/2,x.trgWidth=w,x.trgHeight=C,x},transformFile:function(R,w){return(this.options.resizeWidth||this.options.resizeHeight)&&R.type.match(/image.*/)?this.resizeImage(R,this.options.resizeWidth,this.options.resizeHeight,this.options.resizeMethod,w):w(R)},previewTemplate:p,drop:function(R){return this.element.classList.remove("dz-drag-hover")},dragstart:function(R){},dragend:function(R){return this.element.classList.remove("dz-drag-hover")},dragenter:function(R){return this.element.classList.add("dz-drag-hover")},dragover:function(R){return this.element.classList.add("dz-drag-hover")},dragleave:function(R){return this.element.classList.remove("dz-drag-hover")},paste:function(R){},reset:function(){return this.element.classList.remove("dz-started")},addedfile:function(R){var w=this;if(this.element===this.previewsContainer&&this.element.classList.add("dz-started"),this.previewsContainer&&!this.options.disablePreviews){R.previewElement=q.createElement(this.options.previewTemplate.trim()),R.previewTemplate=R.previewElement,this.previewsContainer.appendChild(R.previewElement);var C=y(R.previewElement.querySelectorAll("[data-dz-name]")),v;try{for(C.s();!(v=C.n()).done;){var x=v.value;x.textContent=R.name}}catch(Y){C.e(Y)}finally{C.f()}var I=y(R.previewElement.querySelectorAll("[data-dz-size]")),B;try{for(I.s();!(B=I.n()).done;)x=B.value,x.innerHTML=this.filesize(R.size)}catch(Y){I.e(Y)}finally{I.f()}this.options.addRemoveLinks&&(R._removeLink=q.createElement('<a class="dz-remove" href="javascript:undefined;" data-dz-remove>'.concat(this.options.dictRemoveFile,"</a>")),R.previewElement.appendChild(R._removeLink));var U=function(J){return J.preventDefault(),J.stopPropagation(),R.status===q.UPLOADING?q.confirm(w.options.dictCancelUploadConfirmation,function(){return w.removeFile(R)}):w.options.dictRemoveFileConfirmation?q.confirm(w.options.dictRemoveFileConfirmation,function(){return w.removeFile(R)}):w.removeFile(R)},j=y(R.previewElement.querySelectorAll("[data-dz-remove]")),W;try{for(j.s();!(W=j.n()).done;){var Z=W.value;Z.addEventListener("click",U)}}catch(Y){j.e(Y)}finally{j.f()}}},removedfile:function(R){return R.previewElement!=null&&R.previewElement.parentNode!=null&&R.previewElement.parentNode.removeChild(R.previewElement),this._updateMaxFilesReachedClass()},thumbnail:function(R,w){if(R.previewElement){R.previewElement.classList.remove("dz-file-preview");var C=y(R.previewElement.querySelectorAll("[data-dz-thumbnail]")),v;try{for(C.s();!(v=C.n()).done;){var x=v.value;x.alt=R.name,x.src=w}}catch(I){C.e(I)}finally{C.f()}return setTimeout(function(){return R.previewElement.classList.add("dz-image-preview")},1)}},error:function(R,w){if(R.previewElement){R.previewElement.classList.add("dz-error"),typeof w!="string"&&w.error&&(w=w.error);var C=y(R.previewElement.querySelectorAll("[data-dz-errormessage]")),v;try{for(C.s();!(v=C.n()).done;){var x=v.value;x.textContent=w}}catch(I){C.e(I)}finally{C.f()}}},errormultiple:function(){},processing:function(R){if(R.previewElement&&(R.previewElement.classList.add("dz-processing"),R._removeLink))return R._removeLink.innerHTML=this.options.dictCancelUpload},processingmultiple:function(){},uploadprogress:function(R,w,C){if(R.previewElement){var v=y(R.previewElement.querySelectorAll("[data-dz-uploadprogress]")),x;try{for(v.s();!(x=v.n()).done;){var I=x.value;I.nodeName==="PROGRESS"?I.value=w:I.style.width="".concat(w,"%")}}catch(B){v.e(B)}finally{v.f()}}},totaluploadprogress:function(){},sending:function(){},sendingmultiple:function(){},success:function(R){if(R.previewElement)return R.previewElement.classList.add("dz-success")},successmultiple:function(){},canceled:function(R){return this.emit("error",R,this.options.dictUploadCanceled)},canceledmultiple:function(){},complete:function(R){if(R._removeLink&&(R._removeLink.innerHTML=this.options.dictRemoveFile),R.previewElement)return R.previewElement.classList.add("dz-complete")},completemultiple:function(){},maxfilesexceeded:function(){},maxfilesreached:function(){},queuecomplete:function(){},addedfiles:function(){}},O=T;function F(N){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?F=function(w){return typeof w}:F=function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w},F(N)}function M(N,R){var w;if(typeof Symbol>"u"||N[Symbol.iterator]==null){if(Array.isArray(N)||(w=z(N))||N&&typeof N.length=="number"){w&&(N=w);var C=0,v=function(){};return{s:v,n:function(){return C>=N.length?{done:!0}:{done:!1,value:N[C++]}},e:function(j){throw j},f:v}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
11
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var x=!0,I=!1,B;return{s:function(){w=N[Symbol.iterator]()},n:function(){var j=w.next();return x=j.done,j},e:function(j){I=!0,B=j},f:function(){try{!x&&w.return!=null&&w.return()}finally{if(I)throw B}}}}function z(N,R){if(N){if(typeof N=="string")return X(N,R);var w=Object.prototype.toString.call(N).slice(8,-1);if(w==="Object"&&N.constructor&&(w=N.constructor.name),w==="Map"||w==="Set")return Array.from(N);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return X(N,R)}}function X(N,R){(R==null||R>N.length)&&(R=N.length);for(var w=0,C=new Array(R);w<R;w++)C[w]=N[w];return C}function H(N,R){if(!(N instanceof R))throw new TypeError("Cannot call a class as a function")}function re(N,R){for(var w=0;w<R.length;w++){var C=R[w];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(N,C.key,C)}}function G(N,R,w){return R&&re(N.prototype,R),w&&re(N,w),N}function E(N,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function");N.prototype=Object.create(R&&R.prototype,{constructor:{value:N,writable:!0,configurable:!0}}),R&&P(N,R)}function P(N,R){return P=Object.setPrototypeOf||function(C,v){return C.__proto__=v,C},P(N,R)}function k(N){var R=V();return function(){var C=K(N),v;if(R){var x=K(this).constructor;v=Reflect.construct(C,arguments,x)}else v=C.apply(this,arguments);return $(this,v)}}function $(N,R){return R&&(F(R)==="object"||typeof R=="function")?R:_(N)}function _(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}function V(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function K(N){return K=Object.setPrototypeOf?Object.getPrototypeOf:function(w){return w.__proto__||Object.getPrototypeOf(w)},K(N)}var q=function(N){E(w,N);var R=k(w);function w(C,v){var x;H(this,w),x=R.call(this);var I,B;if(x.element=C,x.version=w.version,x.clickableElements=[],x.listeners=[],x.files=[],typeof x.element=="string"&&(x.element=document.querySelector(x.element)),!x.element||x.element.nodeType==null)throw new Error("Invalid dropzone element.");if(x.element.dropzone)throw new Error("Dropzone already attached.");w.instances.push(_(x)),x.element.dropzone=_(x);var U=(B=w.optionsForElement(x.element))!=null?B:{};if(x.options=w.extend({},O,U,v??{}),x.options.previewTemplate=x.options.previewTemplate.replace(/\n*/g,""),x.options.forceFallback||!w.isBrowserSupported())return $(x,x.options.fallback.call(_(x)));if(x.options.url==null&&(x.options.url=x.element.getAttribute("action")),!x.options.url)throw new Error("No URL provided.");if(x.options.acceptedFiles&&x.options.acceptedMimeTypes)throw new Error("You can't provide both 'acceptedFiles' and 'acceptedMimeTypes'. 'acceptedMimeTypes' is deprecated.");if(x.options.uploadMultiple&&x.options.chunking)throw new Error("You cannot set both: uploadMultiple and chunking.");return x.options.acceptedMimeTypes&&(x.options.acceptedFiles=x.options.acceptedMimeTypes,delete x.options.acceptedMimeTypes),x.options.renameFilename!=null&&(x.options.renameFile=function(j){return x.options.renameFilename.call(_(x),j.name,j)}),typeof x.options.method=="string"&&(x.options.method=x.options.method.toUpperCase()),(I=x.getExistingFallback())&&I.parentNode&&I.parentNode.removeChild(I),x.options.previewsContainer!==!1&&(x.options.previewsContainer?x.previewsContainer=w.getElement(x.options.previewsContainer,"previewsContainer"):x.previewsContainer=x.element),x.options.clickable&&(x.options.clickable===!0?x.clickableElements=[x.element]:x.clickableElements=w.getElements(x.options.clickable,"clickable")),x.init(),x}return G(w,[{key:"getAcceptedFiles",value:function(){return this.files.filter(function(v){return v.accepted}).map(function(v){return v})}},{key:"getRejectedFiles",value:function(){return this.files.filter(function(v){return!v.accepted}).map(function(v){return v})}},{key:"getFilesWithStatus",value:function(v){return this.files.filter(function(x){return x.status===v}).map(function(x){return x})}},{key:"getQueuedFiles",value:function(){return this.getFilesWithStatus(w.QUEUED)}},{key:"getUploadingFiles",value:function(){return this.getFilesWithStatus(w.UPLOADING)}},{key:"getAddedFiles",value:function(){return this.getFilesWithStatus(w.ADDED)}},{key:"getActiveFiles",value:function(){return this.files.filter(function(v){return v.status===w.UPLOADING||v.status===w.QUEUED}).map(function(v){return v})}},{key:"init",value:function(){var v=this;if(this.element.tagName==="form"&&this.element.setAttribute("enctype","multipart/form-data"),this.element.classList.contains("dropzone")&&!this.element.querySelector(".dz-message")&&this.element.appendChild(w.createElement('<div class="dz-default dz-message"><button class="dz-button" type="button">'.concat(this.options.dictDefaultMessage,"</button></div>"))),this.clickableElements.length){var x=function Z(){v.hiddenFileInput&&v.hiddenFileInput.parentNode.removeChild(v.hiddenFileInput),v.hiddenFileInput=document.createElement("input"),v.hiddenFileInput.setAttribute("type","file"),(v.options.maxFiles===null||v.options.maxFiles>1)&&v.hiddenFileInput.setAttribute("multiple","multiple"),v.hiddenFileInput.className="dz-hidden-input",v.options.acceptedFiles!==null&&v.hiddenFileInput.setAttribute("accept",v.options.acceptedFiles),v.options.capture!==null&&v.hiddenFileInput.setAttribute("capture",v.options.capture),v.hiddenFileInput.setAttribute("tabindex","-1"),v.hiddenFileInput.style.visibility="hidden",v.hiddenFileInput.style.position="absolute",v.hiddenFileInput.style.top="0",v.hiddenFileInput.style.left="0",v.hiddenFileInput.style.height="0",v.hiddenFileInput.style.width="0",w.getElement(v.options.hiddenInputContainer,"hiddenInputContainer").appendChild(v.hiddenFileInput),v.hiddenFileInput.addEventListener("change",function(){var Y=v.hiddenFileInput.files;if(Y.length){var J=M(Y),ne;try{for(J.s();!(ne=J.n()).done;){var ie=ne.value;v.addFile(ie)}}catch(fe){J.e(fe)}finally{J.f()}}v.emit("addedfiles",Y),Z()})};x()}this.URL=window.URL!==null?window.URL:window.webkitURL;var I=M(this.events),B;try{for(I.s();!(B=I.n()).done;){var U=B.value;this.on(U,this.options[U])}}catch(Z){I.e(Z)}finally{I.f()}this.on("uploadprogress",function(){return v.updateTotalUploadProgress()}),this.on("removedfile",function(){return v.updateTotalUploadProgress()}),this.on("canceled",function(Z){return v.emit("complete",Z)}),this.on("complete",function(Z){if(v.getAddedFiles().length===0&&v.getUploadingFiles().length===0&&v.getQueuedFiles().length===0)return setTimeout(function(){return v.emit("queuecomplete")},0)});var j=function(Y){if(Y.dataTransfer.types){for(var J=0;J<Y.dataTransfer.types.length;J++)if(Y.dataTransfer.types[J]==="Files")return!0}return!1},W=function(Y){if(j(Y))return Y.stopPropagation(),Y.preventDefault?Y.preventDefault():Y.returnValue=!1};return this.listeners=[{element:this.element,events:{dragstart:function(Y){return v.emit("dragstart",Y)},dragenter:function(Y){return W(Y),v.emit("dragenter",Y)},dragover:function(Y){var J;try{J=Y.dataTransfer.effectAllowed}catch{}return Y.dataTransfer.dropEffect=J==="move"||J==="linkMove"?"move":"copy",W(Y),v.emit("dragover",Y)},dragleave:function(Y){return v.emit("dragleave",Y)},drop:function(Y){return W(Y),v.drop(Y)},dragend:function(Y){return v.emit("dragend",Y)}}}],this.clickableElements.forEach(function(Z){return v.listeners.push({element:Z,events:{click:function(J){return(Z!==v.element||J.target===v.element||w.elementInside(J.target,v.element.querySelector(".dz-message")))&&v.hiddenFileInput.click(),!0}}})}),this.enable(),this.options.init.call(this)}},{key:"destroy",value:function(){return this.disable(),this.removeAllFiles(!0),this.hiddenFileInput!=null&&this.hiddenFileInput.parentNode&&(this.hiddenFileInput.parentNode.removeChild(this.hiddenFileInput),this.hiddenFileInput=null),delete this.element.dropzone,w.instances.splice(w.instances.indexOf(this),1)}},{key:"updateTotalUploadProgress",value:function(){var v,x=0,I=0,B=this.getActiveFiles();if(B.length){var U=M(this.getActiveFiles()),j;try{for(U.s();!(j=U.n()).done;){var W=j.value;x+=W.upload.bytesSent,I+=W.upload.total}}catch(Z){U.e(Z)}finally{U.f()}v=100*x/I}else v=100;return this.emit("totaluploadprogress",v,I,x)}},{key:"_getParamName",value:function(v){return typeof this.options.paramName=="function"?this.options.paramName(v):"".concat(this.options.paramName).concat(this.options.uploadMultiple?"[".concat(v,"]"):"")}},{key:"_renameFile",value:function(v){return typeof this.options.renameFile!="function"?v.name:this.options.renameFile(v)}},{key:"getFallbackForm",value:function(){var v,x;if(v=this.getExistingFallback())return v;var I='<div class="dz-fallback">';this.options.dictFallbackText&&(I+="<p>".concat(this.options.dictFallbackText,"</p>")),I+='<input type="file" name="'.concat(this._getParamName(0),'" ').concat(this.options.uploadMultiple?'multiple="multiple"':void 0,' /><input type="submit" value="Upload!"></div>');var B=w.createElement(I);return this.element.tagName!=="FORM"?(x=w.createElement('<form action="'.concat(this.options.url,'" enctype="multipart/form-data" method="').concat(this.options.method,'"></form>')),x.appendChild(B)):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),x??B}},{key:"getExistingFallback",value:function(){for(var v=function(W){var Z=M(W),Y;try{for(Z.s();!(Y=Z.n()).done;){var J=Y.value;if(/(^| )fallback($| )/.test(J.className))return J}}catch(ne){Z.e(ne)}finally{Z.f()}},x=0,I=["div","form"];x<I.length;x++){var B=I[x],U;if(U=v(this.element.getElementsByTagName(B)))return U}}},{key:"setupEventListeners",value:function(){return this.listeners.map(function(v){return function(){var x=[];for(var I in v.events){var B=v.events[I];x.push(v.element.addEventListener(I,B,!1))}return x}()})}},{key:"removeEventListeners",value:function(){return this.listeners.map(function(v){return function(){var x=[];for(var I in v.events){var B=v.events[I];x.push(v.element.removeEventListener(I,B,!1))}return x}()})}},{key:"disable",value:function(){var v=this;return this.clickableElements.forEach(function(x){return x.classList.remove("dz-clickable")}),this.removeEventListeners(),this.disabled=!0,this.files.map(function(x){return v.cancelUpload(x)})}},{key:"enable",value:function(){return delete this.disabled,this.clickableElements.forEach(function(v){return v.classList.add("dz-clickable")}),this.setupEventListeners()}},{key:"filesize",value:function(v){var x=0,I="b";if(v>0){for(var B=["tb","gb","mb","kb","b"],U=0;U<B.length;U++){var j=B[U],W=Math.pow(this.options.filesizeBase,4-U)/10;if(v>=W){x=v/Math.pow(this.options.filesizeBase,4-U),I=j;break}}x=Math.round(10*x)/10}return"<strong>".concat(x,"</strong> ").concat(this.options.dictFileSizeUnits[I])}},{key:"_updateMaxFilesReachedClass",value:function(){return this.options.maxFiles!=null&&this.getAcceptedFiles().length>=this.options.maxFiles?(this.getAcceptedFiles().length===this.options.maxFiles&&this.emit("maxfilesreached",this.files),this.element.classList.add("dz-max-files-reached")):this.element.classList.remove("dz-max-files-reached")}},{key:"drop",value:function(v){if(v.dataTransfer){this.emit("drop",v);for(var x=[],I=0;I<v.dataTransfer.files.length;I++)x[I]=v.dataTransfer.files[I];if(x.length){var B=v.dataTransfer.items;B&&B.length&&B[0].webkitGetAsEntry!=null?this._addFilesFromItems(B):this.handleFiles(x)}this.emit("addedfiles",x)}}},{key:"paste",value:function(v){if(he(v!=null?v.clipboardData:void 0,function(I){return I.items})!=null){this.emit("paste",v);var x=v.clipboardData.items;if(x.length)return this._addFilesFromItems(x)}}},{key:"handleFiles",value:function(v){var x=M(v),I;try{for(x.s();!(I=x.n()).done;){var B=I.value;this.addFile(B)}}catch(U){x.e(U)}finally{x.f()}}},{key:"_addFilesFromItems",value:function(v){var x=this;return function(){var I=[],B=M(v),U;try{for(B.s();!(U=B.n()).done;){var j=U.value,W;j.webkitGetAsEntry!=null&&(W=j.webkitGetAsEntry())?W.isFile?I.push(x.addFile(j.getAsFile())):W.isDirectory?I.push(x._addFilesFromDirectory(W,W.name)):I.push(void 0):j.getAsFile!=null&&(j.kind==null||j.kind==="file")?I.push(x.addFile(j.getAsFile())):I.push(void 0)}}catch(Z){B.e(Z)}finally{B.f()}return I}()}},{key:"_addFilesFromDirectory",value:function(v,x){var I=this,B=v.createReader(),U=function(Z){return ke(console,"log",function(Y){return Y.log(Z)})},j=function W(){return B.readEntries(function(Z){if(Z.length>0){var Y=M(Z),J;try{for(Y.s();!(J=Y.n()).done;){var ne=J.value;ne.isFile?ne.file(function(ie){if(!(I.options.ignoreHiddenFiles&&ie.name.substring(0,1)==="."))return ie.fullPath="".concat(x,"/").concat(ie.name),I.addFile(ie)}):ne.isDirectory&&I._addFilesFromDirectory(ne,"".concat(x,"/").concat(ne.name))}}catch(ie){Y.e(ie)}finally{Y.f()}W()}return null},U)};return j()}},{key:"accept",value:function(v,x){this.options.maxFilesize&&v.size>this.options.maxFilesize*1024*1024?x(this.options.dictFileTooBig.replace("{{filesize}}",Math.round(v.size/1024/10.24)/100).replace("{{maxFilesize}}",this.options.maxFilesize)):w.isValidFile(v,this.options.acceptedFiles)?this.options.maxFiles!=null&&this.getAcceptedFiles().length>=this.options.maxFiles?(x(this.options.dictMaxFilesExceeded.replace("{{maxFiles}}",this.options.maxFiles)),this.emit("maxfilesexceeded",v)):this.options.accept.call(this,v,x):x(this.options.dictInvalidFileType)}},{key:"addFile",value:function(v){var x=this;v.upload={uuid:w.uuidv4(),progress:0,total:v.size,bytesSent:0,filename:this._renameFile(v)},this.files.push(v),v.status=w.ADDED,this.emit("addedfile",v),this._enqueueThumbnail(v),this.accept(v,function(I){I?(v.accepted=!1,x._errorProcessing([v],I)):(v.accepted=!0,x.options.autoQueue&&x.enqueueFile(v)),x._updateMaxFilesReachedClass()})}},{key:"enqueueFiles",value:function(v){var x=M(v),I;try{for(x.s();!(I=x.n()).done;){var B=I.value;this.enqueueFile(B)}}catch(U){x.e(U)}finally{x.f()}return null}},{key:"enqueueFile",value:function(v){var x=this;if(v.status===w.ADDED&&v.accepted===!0){if(v.status=w.QUEUED,this.options.autoProcessQueue)return setTimeout(function(){return x.processQueue()},0)}else throw new Error("This file can't be queued because it has already been processed or was rejected.")}},{key:"_enqueueThumbnail",value:function(v){var x=this;if(this.options.createImageThumbnails&&v.type.match(/image.*/)&&v.size<=this.options.maxThumbnailFilesize*1024*1024)return this._thumbnailQueue.push(v),setTimeout(function(){return x._processThumbnailQueue()},0)}},{key:"_processThumbnailQueue",value:function(){var v=this;if(!(this._processingThumbnail||this._thumbnailQueue.length===0)){this._processingThumbnail=!0;var x=this._thumbnailQueue.shift();return this.createThumbnail(x,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,!0,function(I){return v.emit("thumbnail",x,I),v._processingThumbnail=!1,v._processThumbnailQueue()})}}},{key:"removeFile",value:function(v){if(v.status===w.UPLOADING&&this.cancelUpload(v),this.files=Q(this.files,v),this.emit("removedfile",v),this.files.length===0)return this.emit("reset")}},{key:"removeAllFiles",value:function(v){v==null&&(v=!1);var x=M(this.files.slice()),I;try{for(x.s();!(I=x.n()).done;){var B=I.value;(B.status!==w.UPLOADING||v)&&this.removeFile(B)}}catch(U){x.e(U)}finally{x.f()}return null}},{key:"resizeImage",value:function(v,x,I,B,U){var j=this;return this.createThumbnail(v,x,I,B,!0,function(W,Z){if(Z==null)return U(v);var Y=j.options.resizeMimeType;Y==null&&(Y=v.type);var J=Z.toDataURL(Y,j.options.resizeQuality);return(Y==="image/jpeg"||Y==="image/jpg")&&(J=ye.restore(v.dataURL,J)),U(w.dataURItoBlob(J))})}},{key:"createThumbnail",value:function(v,x,I,B,U,j){var W=this,Z=new FileReader;Z.onload=function(){if(v.dataURL=Z.result,v.type==="image/svg+xml"){j!=null&&j(Z.result);return}W.createThumbnailFromUrl(v,x,I,B,U,j)},Z.readAsDataURL(v)}},{key:"displayExistingFile",value:function(v,x,I,B){var U=this,j=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0;if(this.emit("addedfile",v),this.emit("complete",v),!j)this.emit("thumbnail",v,x),I&&I();else{var W=function(Y){U.emit("thumbnail",v,Y),I&&I()};v.dataURL=x,this.createThumbnailFromUrl(v,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,this.options.fixOrientation,W,B)}}},{key:"createThumbnailFromUrl",value:function(v,x,I,B,U,j,W){var Z=this,Y=document.createElement("img");return W&&(Y.crossOrigin=W),U=getComputedStyle(document.body).imageOrientation=="from-image"?!1:U,Y.onload=function(){var J=function(ie){return ie(1)};return typeof EXIF<"u"&&EXIF!==null&&U&&(J=function(ie){return EXIF.getData(Y,function(){return ie(EXIF.getTag(this,"Orientation"))})}),J(function(ne){v.width=Y.width,v.height=Y.height;var ie=Z.options.resize.call(Z,v,x,I,B),fe=document.createElement("canvas"),we=fe.getContext("2d");switch(fe.width=ie.trgWidth,fe.height=ie.trgHeight,ne>4&&(fe.width=ie.trgHeight,fe.height=ie.trgWidth),ne){case 2:we.translate(fe.width,0),we.scale(-1,1);break;case 3:we.translate(fe.width,fe.height),we.rotate(Math.PI);break;case 4:we.translate(0,fe.height),we.scale(1,-1);break;case 5:we.rotate(.5*Math.PI),we.scale(1,-1);break;case 6:we.rotate(.5*Math.PI),we.translate(0,-fe.width);break;case 7:we.rotate(.5*Math.PI),we.translate(fe.height,-fe.width),we.scale(-1,1);break;case 8:we.rotate(-.5*Math.PI),we.translate(-fe.height,0);break}ge(we,Y,ie.srcX!=null?ie.srcX:0,ie.srcY!=null?ie.srcY:0,ie.srcWidth,ie.srcHeight,ie.trgX!=null?ie.trgX:0,ie.trgY!=null?ie.trgY:0,ie.trgWidth,ie.trgHeight);var De=fe.toDataURL("image/png");if(j!=null)return j(De,fe)})},j!=null&&(Y.onerror=j),Y.src=v.dataURL}},{key:"processQueue",value:function(){var v=this.options.parallelUploads,x=this.getUploadingFiles().length,I=x;if(!(x>=v)){var B=this.getQueuedFiles();if(B.length>0){if(this.options.uploadMultiple)return this.processFiles(B.slice(0,v-x));for(;I<v;){if(!B.length)return;this.processFile(B.shift()),I++}}}}},{key:"processFile",value:function(v){return this.processFiles([v])}},{key:"processFiles",value:function(v){var x=M(v),I;try{for(x.s();!(I=x.n()).done;){var B=I.value;B.processing=!0,B.status=w.UPLOADING,this.emit("processing",B)}}catch(U){x.e(U)}finally{x.f()}return this.options.uploadMultiple&&this.emit("processingmultiple",v),this.uploadFiles(v)}},{key:"_getFilesWithXhr",value:function(v){return this.files.filter(function(x){return x.xhr===v}).map(function(x){return x})}},{key:"cancelUpload",value:function(v){if(v.status===w.UPLOADING){var x=this._getFilesWithXhr(v.xhr),I=M(x),B;try{for(I.s();!(B=I.n()).done;){var U=B.value;U.status=w.CANCELED}}catch(Y){I.e(Y)}finally{I.f()}typeof v.xhr<"u"&&v.xhr.abort();var j=M(x),W;try{for(j.s();!(W=j.n()).done;){var Z=W.value;this.emit("canceled",Z)}}catch(Y){j.e(Y)}finally{j.f()}this.options.uploadMultiple&&this.emit("canceledmultiple",x)}else(v.status===w.ADDED||v.status===w.QUEUED)&&(v.status=w.CANCELED,this.emit("canceled",v),this.options.uploadMultiple&&this.emit("canceledmultiple",[v]));if(this.options.autoProcessQueue)return this.processQueue()}},{key:"resolveOption",value:function(v){if(typeof v=="function"){for(var x=arguments.length,I=new Array(x>1?x-1:0),B=1;B<x;B++)I[B-1]=arguments[B];return v.apply(this,I)}return v}},{key:"uploadFile",value:function(v){return this.uploadFiles([v])}},{key:"uploadFiles",value:function(v){var x=this;this._transformFiles(v,function(I){if(x.options.chunking){var B=I[0];v[0].upload.chunked=x.options.chunking&&(x.options.forceChunking||B.size>x.options.chunkSize),v[0].upload.totalChunkCount=Math.ceil(B.size/x.options.chunkSize)}if(v[0].upload.chunked){var U=v[0],j=I[0];U.upload.chunks=[];var W=function(){for(var ie=0;U.upload.chunks[ie]!==void 0;)ie++;if(!(ie>=U.upload.totalChunkCount)){var fe=ie*x.options.chunkSize,we=Math.min(fe+x.options.chunkSize,j.size),De={name:x._getParamName(0),data:j.webkitSlice?j.webkitSlice(fe,we):j.slice(fe,we),filename:U.upload.filename,chunkIndex:ie};U.upload.chunks[ie]={file:U,index:ie,dataBlock:De,status:w.UPLOADING,progress:0,retries:0},x._uploadData(v,[De])}};if(U.upload.finishedChunkUpload=function(ne,ie){var fe=!0;ne.status=w.SUCCESS,ne.dataBlock=null,ne.xhr=null;for(var we=0;we<U.upload.totalChunkCount;we++){if(U.upload.chunks[we]===void 0)return W();U.upload.chunks[we].status!==w.SUCCESS&&(fe=!1)}fe&&x.options.chunksUploaded(U,function(){x._finished(v,ie,null)})},x.options.parallelChunkUploads)for(var Z=0;Z<U.upload.totalChunkCount;Z++)W();else W()}else{for(var Y=[],J=0;J<v.length;J++)Y[J]={name:x._getParamName(J),data:I[J],filename:v[J].upload.filename};x._uploadData(v,Y)}})}},{key:"_getChunk",value:function(v,x){for(var I=0;I<v.upload.totalChunkCount;I++)if(v.upload.chunks[I]!==void 0&&v.upload.chunks[I].xhr===x)return v.upload.chunks[I]}},{key:"_uploadData",value:function(v,x){var I=this,B=new XMLHttpRequest,U=M(v),j;try{for(U.s();!(j=U.n()).done;){var W=j.value;W.xhr=B}}catch(Pe){U.e(Pe)}finally{U.f()}v[0].upload.chunked&&(v[0].upload.chunks[x[0].chunkIndex].xhr=B);var Z=this.resolveOption(this.options.method,v),Y=this.resolveOption(this.options.url,v);B.open(Z,Y,!0);var J=this.resolveOption(this.options.timeout,v);J&&(B.timeout=this.resolveOption(this.options.timeout,v)),B.withCredentials=!!this.options.withCredentials,B.onload=function(Pe){I._finishedUploading(v,B,Pe)},B.ontimeout=function(){I._handleUploadError(v,B,"Request timedout after ".concat(I.options.timeout/1e3," seconds"))},B.onerror=function(){I._handleUploadError(v,B)};var ne=B.upload!=null?B.upload:B;ne.onprogress=function(Pe){return I._updateFilesUploadProgress(v,B,Pe)};var ie={Accept:"application/json","Cache-Control":"no-cache","X-Requested-With":"XMLHttpRequest"};this.options.headers&&w.extend(ie,this.options.headers);for(var fe in ie){var we=ie[fe];we&&B.setRequestHeader(fe,we)}var De=new FormData;if(this.options.params){var Ge=this.options.params;typeof Ge=="function"&&(Ge=Ge.call(this,v,B,v[0].upload.chunked?this._getChunk(v[0],B):null));for(var _e in Ge){var Be=Ge[_e];if(Array.isArray(Be))for(var Ve=0;Ve<Be.length;Ve++)De.append(_e,Be[Ve]);else De.append(_e,Be)}}var rt=M(v),ot;try{for(rt.s();!(ot=rt.n()).done;){var Dt=ot.value;this.emit("sending",Dt,B,De)}}catch(Pe){rt.e(Pe)}finally{rt.f()}this.options.uploadMultiple&&this.emit("sendingmultiple",v,B,De),this._addFormElementData(De);for(var bt=0;bt<x.length;bt++){var $e=x[bt];De.append($e.name,$e.data,$e.filename)}this.submitRequest(B,De,v)}},{key:"_transformFiles",value:function(v,x){for(var I=this,B=[],U=0,j=function(Y){I.options.transformFile.call(I,v[Y],function(J){B[Y]=J,++U===v.length&&x(B)})},W=0;W<v.length;W++)j(W)}},{key:"_addFormElementData",value:function(v){if(this.element.tagName==="FORM"){var x=M(this.element.querySelectorAll("input, textarea, select, button")),I;try{for(x.s();!(I=x.n()).done;){var B=I.value,U=B.getAttribute("name"),j=B.getAttribute("type");if(j&&(j=j.toLowerCase()),!(typeof U>"u"||U===null))if(B.tagName==="SELECT"&&B.hasAttribute("multiple")){var W=M(B.options,!0),Z;try{for(W.s();!(Z=W.n()).done;){var Y=Z.value;Y.selected&&v.append(U,Y.value)}}catch(J){W.e(J)}finally{W.f()}}else(!j||j!=="checkbox"&&j!=="radio"||B.checked)&&v.append(U,B.value)}}catch(J){x.e(J)}finally{x.f()}}}},{key:"_updateFilesUploadProgress",value:function(v,x,I){if(v[0].upload.chunked){var W=v[0],Z=this._getChunk(W,x);I?(Z.progress=100*I.loaded/I.total,Z.total=I.total,Z.bytesSent=I.loaded):(Z.progress=100,Z.bytesSent=Z.total),W.upload.progress=0,W.upload.total=0,W.upload.bytesSent=0;for(var Y=0;Y<W.upload.totalChunkCount;Y++)W.upload.chunks[Y]&&typeof W.upload.chunks[Y].progress<"u"&&(W.upload.progress+=W.upload.chunks[Y].progress,W.upload.total+=W.upload.chunks[Y].total,W.upload.bytesSent+=W.upload.chunks[Y].bytesSent);W.upload.progress=W.upload.progress/W.upload.totalChunkCount,this.emit("uploadprogress",W,W.upload.progress,W.upload.bytesSent)}else{var B=M(v),U;try{for(B.s();!(U=B.n()).done;){var j=U.value;j.upload.total&&j.upload.bytesSent&&j.upload.bytesSent==j.upload.total||(I?(j.upload.progress=100*I.loaded/I.total,j.upload.total=I.total,j.upload.bytesSent=I.loaded):(j.upload.progress=100,j.upload.bytesSent=j.upload.total),this.emit("uploadprogress",j,j.upload.progress,j.upload.bytesSent))}}catch(J){B.e(J)}finally{B.f()}}}},{key:"_finishedUploading",value:function(v,x,I){var B;if(v[0].status!==w.CANCELED&&x.readyState===4){if(x.responseType!=="arraybuffer"&&x.responseType!=="blob"&&(B=x.responseText,x.getResponseHeader("content-type")&&~x.getResponseHeader("content-type").indexOf("application/json")))try{B=JSON.parse(B)}catch(U){I=U,B="Invalid JSON response from server."}this._updateFilesUploadProgress(v,x),200<=x.status&&x.status<300?v[0].upload.chunked?v[0].upload.finishedChunkUpload(this._getChunk(v[0],x),B):this._finished(v,B,I):this._handleUploadError(v,x,B)}}},{key:"_handleUploadError",value:function(v,x,I){if(v[0].status!==w.CANCELED){if(v[0].upload.chunked&&this.options.retryChunks){var B=this._getChunk(v[0],x);if(B.retries++<this.options.retryChunksLimit){this._uploadData(v,[B.dataBlock]);return}else console.warn("Retried this chunk too often. Giving up.")}this._errorProcessing(v,I||this.options.dictResponseError.replace("{{statusCode}}",x.status),x)}}},{key:"submitRequest",value:function(v,x,I){if(v.readyState!=1){console.warn("Cannot send this request because the XMLHttpRequest.readyState is not OPENED.");return}v.send(x)}},{key:"_finished",value:function(v,x,I){var B=M(v),U;try{for(B.s();!(U=B.n()).done;){var j=U.value;j.status=w.SUCCESS,this.emit("success",j,x,I),this.emit("complete",j)}}catch(W){B.e(W)}finally{B.f()}if(this.options.uploadMultiple&&(this.emit("successmultiple",v,x,I),this.emit("completemultiple",v)),this.options.autoProcessQueue)return this.processQueue()}},{key:"_errorProcessing",value:function(v,x,I){var B=M(v),U;try{for(B.s();!(U=B.n()).done;){var j=U.value;j.status=w.ERROR,this.emit("error",j,x,I),this.emit("complete",j)}}catch(W){B.e(W)}finally{B.f()}if(this.options.uploadMultiple&&(this.emit("errormultiple",v,x,I),this.emit("completemultiple",v)),this.options.autoProcessQueue)return this.processQueue()}}],[{key:"initClass",value:function(){this.prototype.Emitter=f,this.prototype.events=["drop","dragstart","dragend","dragenter","dragover","dragleave","addedfile","addedfiles","removedfile","thumbnail","error","errormultiple","processing","processingmultiple","uploadprogress","totaluploadprogress","sending","sendingmultiple","success","successmultiple","canceled","canceledmultiple","complete","completemultiple","reset","maxfilesexceeded","maxfilesreached","queuecomplete"],this.prototype._thumbnailQueue=[],this.prototype._processingThumbnail=!1}},{key:"extend",value:function(v){for(var x=arguments.length,I=new Array(x>1?x-1:0),B=1;B<x;B++)I[B-1]=arguments[B];for(var U=0,j=I;U<j.length;U++){var W=j[U];for(var Z in W){var Y=W[Z];v[Z]=Y}}return v}},{key:"uuidv4",value:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(v){var x=Math.random()*16|0,I=v==="x"?x:x&3|8;return I.toString(16)})}}]),w}(f);q.initClass(),q.version="5.9.3",q.options={},q.optionsForElement=function(N){if(N.getAttribute("id"))return q.options[te(N.getAttribute("id"))]},q.instances=[],q.forElement=function(N){if(typeof N=="string"&&(N=document.querySelector(N)),(N!=null?N.dropzone:void 0)==null)throw new Error("No Dropzone found for given element. This is probably because you're trying to access it before Dropzone had the time to initialize. Use the `init` option to setup any additional observers on your Dropzone.");return N.dropzone},q.autoDiscover=!0,q.discover=function(){var N;if(document.querySelectorAll)N=document.querySelectorAll(".dropzone");else{N=[];var R=function(C){return function(){var v=[],x=M(C),I;try{for(x.s();!(I=x.n()).done;){var B=I.value;/(^| )dropzone($| )/.test(B.className)?v.push(N.push(B)):v.push(void 0)}}catch(U){x.e(U)}finally{x.f()}return v}()};R(document.getElementsByTagName("div")),R(document.getElementsByTagName("form"))}return function(){var w=[],C=M(N),v;try{for(C.s();!(v=C.n()).done;){var x=v.value;q.optionsForElement(x)!==!1?w.push(new q(x)):w.push(void 0)}}catch(I){C.e(I)}finally{C.f()}return w}()},q.blockedBrowsers=[/opera.*(Macintosh|Windows Phone).*version\/12/i],q.isBrowserSupported=function(){var N=!0;if(window.File&&window.FileReader&&window.FileList&&window.Blob&&window.FormData&&document.querySelector)if(!("classList"in document.createElement("a")))N=!1;else{q.blacklistedBrowsers!==void 0&&(q.blockedBrowsers=q.blacklistedBrowsers);var R=M(q.blockedBrowsers),w;try{for(R.s();!(w=R.n()).done;){var C=w.value;if(C.test(navigator.userAgent)){N=!1;continue}}}catch(v){R.e(v)}finally{R.f()}}else N=!1;return N},q.dataURItoBlob=function(N){for(var R=atob(N.split(",")[1]),w=N.split(",")[0].split(":")[1].split(";")[0],C=new ArrayBuffer(R.length),v=new Uint8Array(C),x=0,I=R.length,B=0<=I;B?x<=I:x>=I;B?x++:x--)v[x]=R.charCodeAt(x);return new Blob([C],{type:w})};var Q=function(R,w){return R.filter(function(C){return C!==w}).map(function(C){return C})},te=function(R){return R.replace(/[\-_](\w)/g,function(w){return w.charAt(1).toUpperCase()})};q.createElement=function(N){var R=document.createElement("div");return R.innerHTML=N,R.childNodes[0]},q.elementInside=function(N,R){if(N===R)return!0;for(;N=N.parentNode;)if(N===R)return!0;return!1},q.getElement=function(N,R){var w;if(typeof N=="string"?w=document.querySelector(N):N.nodeType!=null&&(w=N),w==null)throw new Error("Invalid `".concat(R,"` option provided. Please provide a CSS selector or a plain HTML element."));return w},q.getElements=function(N,R){var w,C;if(N instanceof Array){C=[];try{var v=M(N,!0),x;try{for(v.s();!(x=v.n()).done;)w=x.value,C.push(this.getElement(w,R))}catch(U){v.e(U)}finally{v.f()}}catch{C=null}}else if(typeof N=="string"){C=[];var I=M(document.querySelectorAll(N)),B;try{for(I.s();!(B=I.n()).done;)w=B.value,C.push(w)}catch(U){I.e(U)}finally{I.f()}}else N.nodeType!=null&&(C=[N]);if(C==null||!C.length)throw new Error("Invalid `".concat(R,"` option provided. Please provide a CSS selector, a plain HTML element or a list of those."));return C},q.confirm=function(N,R,w){if(window.confirm(N))return R();if(w!=null)return w()},q.isValidFile=function(N,R){if(!R)return!0;R=R.split(",");var w=N.type,C=w.replace(/\/.*$/,""),v=M(R),x;try{for(v.s();!(x=v.n()).done;){var I=x.value;if(I=I.trim(),I.charAt(0)==="."){if(N.name.toLowerCase().indexOf(I.toLowerCase(),N.name.length-I.length)!==-1)return!0}else if(/\/\*$/.test(I)){if(C===I.replace(/\/.*$/,""))return!0}else if(w===I)return!0}}catch(B){v.e(B)}finally{v.f()}return!1},typeof jQuery<"u"&&jQuery!==null&&(jQuery.fn.dropzone=function(N){return this.each(function(){return new q(this,N)})}),q.ADDED="added",q.QUEUED="queued",q.ACCEPTED=q.QUEUED,q.UPLOADING="uploading",q.PROCESSING=q.UPLOADING,q.CANCELED="canceled",q.ERROR="error",q.SUCCESS="success";var me=function(R){R.naturalWidth;var w=R.naturalHeight,C=document.createElement("canvas");C.width=1,C.height=w;var v=C.getContext("2d");v.drawImage(R,0,0);for(var x=v.getImageData(1,0,1,w),I=x.data,B=0,U=w,j=w;j>B;){var W=I[(j-1)*4+3];W===0?U=j:B=j,j=U+B>>1}var Z=j/w;return Z===0?1:Z},ge=function(R,w,C,v,x,I,B,U,j,W){var Z=me(w);return R.drawImage(w,C,v,x,I,B,U,j,W/Z)},ye=function(){function N(){H(this,N)}return G(N,null,[{key:"initClass",value:function(){this.KEY_STR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}},{key:"encode64",value:function(w){for(var C="",v=void 0,x=void 0,I="",B=void 0,U=void 0,j=void 0,W="",Z=0;v=w[Z++],x=w[Z++],I=w[Z++],B=v>>2,U=(v&3)<<4|x>>4,j=(x&15)<<2|I>>6,W=I&63,isNaN(x)?j=W=64:isNaN(I)&&(W=64),C=C+this.KEY_STR.charAt(B)+this.KEY_STR.charAt(U)+this.KEY_STR.charAt(j)+this.KEY_STR.charAt(W),v=x=I="",B=U=j=W="",Z<w.length;);return C}},{key:"restore",value:function(w,C){if(!w.match("data:image/jpeg;base64,"))return C;var v=this.decode64(w.replace("data:image/jpeg;base64,","")),x=this.slice2Segments(v),I=this.exifManipulation(C,x);return"data:image/jpeg;base64,".concat(this.encode64(I))}},{key:"exifManipulation",value:function(w,C){var v=this.getExifArray(C),x=this.insertExif(w,v),I=new Uint8Array(x);return I}},{key:"getExifArray",value:function(w){for(var C=void 0,v=0;v<w.length;){if(C=w[v],C[0]===255&C[1]===225)return C;v++}return[]}},{key:"insertExif",value:function(w,C){var v=w.replace("data:image/jpeg;base64,",""),x=this.decode64(v),I=x.indexOf(255,3),B=x.slice(0,I),U=x.slice(I),j=B;return j=j.concat(C),j=j.concat(U),j}},{key:"slice2Segments",value:function(w){for(var C=0,v=[];;){var x;if(w[C]===255&w[C+1]===218)break;if(w[C]===255&w[C+1]===216)C+=2;else{x=w[C+2]*256+w[C+3];var I=C+x+2,B=w.slice(C,I);v.push(B),C=I}if(C>w.length)break}return v}},{key:"decode64",value:function(w){var C=void 0,v=void 0,x="",I=void 0,B=void 0,U=void 0,j="",W=0,Z=[],Y=/[^A-Za-z0-9\+\/\=]/g;for(Y.exec(w)&&console.warn(`There were invalid base64 characters in the input text.
12
12
  Valid base64 characters are A-Z, a-z, 0-9, '+', '/',and '='
13
- Expect errors in decoding.`),w=w.replace(/[^A-Za-z0-9\+\/\=]/g,"");I=this.KEY_STR.indexOf(w.charAt(W++)),B=this.KEY_STR.indexOf(w.charAt(W++)),U=this.KEY_STR.indexOf(w.charAt(W++)),j=this.KEY_STR.indexOf(w.charAt(W++)),C=I<<2|B>>4,v=(B&15)<<4|U>>2,x=(U&3)<<6|j,Z.push(C),U!==64&&Z.push(v),j!==64&&Z.push(x),C=v=x="",I=B=U=j="",W<w.length;);return Z}}]),N}();ye.initClass();var xe=function(R,w){var C=!1,v=!0,x=R.document,I=x.documentElement,B=x.addEventListener?"addEventListener":"attachEvent",U=x.addEventListener?"removeEventListener":"detachEvent",j=x.addEventListener?"":"on",W=function Y(Q){if(!(Q.type==="readystatechange"&&x.readyState!=="complete")&&((Q.type==="load"?R:x)[U](j+Q.type,Y,!1),!C&&(C=!0)))return w.call(R,Q.type||Q)},Z=function Y(){try{I.doScroll("left")}catch{setTimeout(Y,50);return}return W("poll")};if(x.readyState!=="complete"){if(x.createEventObject&&I.doScroll){try{v=!R.frameElement}catch{}v&&Z()}return x[B](j+"DOMContentLoaded",W,!1),x[B](j+"readystatechange",W,!1),R[B](j+"load",W,!1)}};q._autoDiscoverFunction=function(){if(q.autoDiscover)return q.discover()},xe(window,q._autoDiscoverFunction);function he(N,R){return typeof N<"u"&&N!==null?R(N):void 0}function ke(N,R,w){if(typeof N<"u"&&N!==null&&typeof N[R]=="function")return w(N,R)}window.Dropzone=q;var ve=q}(),l}()})}(wo)),wo.exports}var oh=sh();const Ao=Eo(oh),ih={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function ah(n,e){return i.openBlock(),i.createElementBlock("svg",ih,e[0]||(e[0]=[i.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m8 16 4-4m0 0 4 4m-4-4v9m8-4.257A5.5 5.5 0 0 0 16.5 7a.62.62 0 0 1-.534-.302 7.5 7.5 0 1 0-11.78 9.096"},null,-1)]))}const lh={render:ah},ch={class:"file-upload"},uh=["name","value"],dh={key:0,class:"preview"},fh={class:"file-upload-preview"},hh=["src"],ph={key:1,class:"preview"},mh={class:"file-upload-preview"},gh=["src","title"],yh=["href"],vh={class:"file-upload-title"},bh={class:"file-upload-file-remove"},xh={class:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 p-4 rounded-lg flex flex-col justify-center items-center w-full"},So={__name:"FileUpload",props:{name:{type:String,required:!1},modelValue:{type:[String,Object],default:null},submitEndpoint:{type:String,required:!1},deleteEndpoint:{type:String,required:!1},formData:{type:Object,default:null},csrf:{type:String,required:!1},background:{type:String,default:""}},emits:["update:modelValue"],setup(n,{emit:e}){Ao.autoDiscover=!1;const t=n,r=i.ref([]),s=i.ref(Ao),l=i.ref(null),a=i.computed(()=>JSON.stringify(r)),c=u=>["image/gif","image/jpeg","image/png","image/tiff"].includes(u),o=u=>{tt.delete(t.deleteEndpoint+"?"+u.id).then(()=>{r.value=null}).catch(console.error)};return i.onMounted(()=>{var d;l.value=t.formData;const u=t.csrf;s.value=new Ao(s.value,{url:(t==null?void 0:t.submitEndpoint)+"?"+((d=l.value)==null?void 0:d.id),addRemoveLinks:!0,maxFiles:1,sending:(h,f,m)=>{m.append("_token",u),m.append("field",t.name)},success:(h,f)=>{h.value=f},complete:h=>{var f;(f=s.value)==null||f.removeFile(h)}}),r.value=t.modelValue}),(u,d)=>(i.openBlock(),i.createElementBlock("div",ch,[i.createElementVNode("input",{type:"hidden",name:n.name,value:a.value},null,8,uh),n.modelValue?(i.openBlock(),i.createElementBlock("div",dh,[d[1]||(d[1]=i.createTextVNode(" @todo handle upload here ")),i.createElementVNode("span",fh,[i.createElementVNode("img",{class:"img rounded-lg h-[200px] object-contain",src:n.modelValue,title:"Image"},null,8,hh)])])):r.value&&r.value.length?(i.openBlock(),i.createElementBlock("div",ph,[i.createElementVNode("span",mh,[c(r.value.mime_type)?(i.openBlock(),i.createElementBlock("img",{key:0,class:"img",src:r.value.url,title:r.value.file_name},null,8,gh)):i.createCommentVNode("",!0)]),i.createElementVNode("a",{href:r.value.url,target:"_blank",class:"link"},[i.createElementVNode("div",vh,i.toDisplayString(r.value.file_name),1)],8,yh),i.createElementVNode("a",bh,[i.createElementVNode("i",{class:"fal fa-times",onClick:d[0]||(d[0]=h=>o(r.value))})])])):i.createCommentVNode("",!0),i.withDirectives(i.createElementVNode("div",{class:i.normalizeClass("relative rounded-lg "+n.background)},[i.createElementVNode("div",{class:"dropzone border border-dashed rounded-lg z-10 h-[200px] w-full cursor-pointer relative",ref_key:"dropzone",ref:s},null,512),i.createElementVNode("div",xh,[i.createElementVNode("div",null,[i.createVNode(i.unref(lh),{class:"w-6 h-6"})]),d[2]||(d[2]=i.createElementVNode("div",{class:"text-sm text-center"},[i.createElementVNode("p",null,[i.createElementVNode("span",{class:"text-brand-900"},"Click to upload"),i.createElementVNode("span",null," or drag and drop")]),i.createElementVNode("span",null,"(max. 20MB)")],-1))])],2),[[i.vShow,!n.modelValue]])]))}},Eh={class:"flex justify-between pb-2"},wh={class:"flex justify-between w-full py-1"},Ah={class:"text-lg font-semibold text-gray-900"},Sh={class:"text-sm text-gray-600 mt-1"},Th={class:"flex flex-col gap-3"},Nh={class:"flex items-center justify-between"},kh={class:"text-lg font-semibold text-gray-900"},Ch={class:"relative flex items-end"},Oh={class:"flex flex-col gap-6"},Rh={class:"flex flex-col gap-1.5"},Ih=["onUpdate:modelValue"],Lh={__name:"VLogos",props:{...Ln},emits:["update"],setup(n,{emit:e}){const t=i.inject("VFileUpload",So),r=e,s=n,l=i.ref(s.data.component),a=i.ref(null),c=i.ref(null),o=i.ref(null);function u(){var f,m;l.value.hasOwnProperty("data")||(l.value.data=[]),!(((f=l.value.data)==null?void 0:f.length)>=l.value.max_items)&&((m=l.value.data)==null||m.push({url:null,logo:null}),i.nextTick(()=>{c.value&&c.value.scrollIntoView({behavior:"smooth"})}),r("update",!1))}const d=f=>{var m;o.value=f,(m=a==null?void 0:a.value)==null||m.open(f)},h=f=>{var m;(m=l.value.data)==null||m.splice(f,1),r("update",!1)};return(f,m)=>{var p;return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",Eh,[i.createElementVNode("div",wh,[i.createElementVNode("div",null,[i.createElementVNode("p",Ah,i.toDisplayString(l.value.name),1),i.createElementVNode("p",Sh," This section can contain up to "+i.toDisplayString(l.value.max_items)+" logos ",1)]),i.createElementVNode("div",null,[i.createElementVNode("a",{onClick:u,class:i.normalizeClass(["text-sm cursor-pointer flex items-center justify-center gap-1 rounded-[99px] border border-brand-600 bg-brand-500 px-3.5 py-2 font-semibold text-white hover:bg-brand-600",{"border-gray-100 bg-gray-100 !text-gray-400 hover:bg-gray-100":((p=l.value.data)==null?void 0:p.length)>=l.value.max_items}])},[i.createVNode(i.unref(kr),{class:"h-5 w-5"}),m[0]||(m[0]=i.createElementVNode("span",null,"Add",-1))],2)])])]),i.createElementVNode("div",Th,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(l.value.data,(y,b)=>(i.openBlock(),i.createElementBlock("div",{class:"flex flex-col gap-4 rounded-xl px-6 py-4 bg-gray-200",key:b,ref_for:!0,ref:b===l.value.data.length-1?A=>c.value=A:null},[i.createElementVNode("div",Nh,[i.createElementVNode("div",kh," Logo #"+i.toDisplayString(b+1),1),i.createElementVNode("div",Ch,[i.createVNode(is,{onRemoveItem:A=>d(b)},null,8,["onRemoveItem"])])]),i.createElementVNode("div",Oh,[i.createElementVNode("div",Rh,[i.createVNode(i.unref(t),{name:"image",background:"bg-white",modelValue:y.logo,"onUpdate:modelValue":A=>y.logo=A},null,8,["modelValue","onUpdate:modelValue"]),i.createVNode(_t,{"is-vertical":"",field:"url","label-text":"Url *",class:"w-full my-4",value:y.url},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":A=>y.url=A,name:"url",type:"text",placeholder:"Enter your url",class:"border-1 border-solid border-gray-300 rounded-lg bg-white w-full"},null,8,Ih),[[i.vModelText,y.url]])]),_:2},1032,["value"])])])]))),128))]),i.createVNode(as,{ref_key:"modalRef",ref:a,entity:"logo",callback:h},null,512)],64)}}},Bh={class:"flex flex-col"},Ph={class:"flex flex-col gap-4 mb-4 border-b border-gray-200 pb-4"},Fh={class:"flex flex-col gap-6"},Mh={class:"flex flex-col gap-1.5"},Dh={key:0,class:"text-base text-gray-900 font-semibold"},Uh={key:1,class:"text-gray-600 text-base font-normal mt-2"},_h={__name:"VCollectionCarousel",props:{...Ln},emits:["update"],setup(n,{emit:e}){const t=n,r=i.ref(t.data.component);return(s,l)=>{var a,c,o;return i.openBlock(),i.createElementBlock("div",Bh,[i.createElementVNode("div",Ph,[l[4]||(l[4]=i.createElementVNode("p",{class:"text-lg font-semibold text-gray-900 border-b border-gray-200 pb-4"}," Carousel ",-1)),i.createElementVNode("div",Fh,[i.createElementVNode("div",Mh,[r.value.button?(i.openBlock(),i.createBlock(_t,{key:0,"is-vertical":"",field:"title","label-text":"Button label *",class:"w-full mb-4",value:r.value.button.title,limit:51},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":l[0]||(l[0]=u=>r.value.button.title=u),name:"title",type:"text",placeholder:"Title",maxlength:51,class:"border-1 border-solid border-gray-300 rounded-lg bg-white w-full"},null,512),[[i.vModelText,r.value.button.title]])]),_:1},8,["value"])):i.createCommentVNode("",!0),(a=r.value)!=null&&a.button?(i.openBlock(),i.createBlock(Or,{key:1,label:"Link to",name:"button",type:r.value.button.type,"onUpdate:type":l[1]||(l[1]=u=>r.value.button.type=u),url:r.value.button.url,"onUpdate:url":l[2]||(l[2]=u=>r.value.button.url=u),openInNewTab:r.value.button.open_in_new_tab,"onUpdate:openInNewTab":l[3]||(l[3]=u=>r.value.button.open_in_new_tab=u),sites:s.sites},null,8,["type","url","openInNewTab","sites"])):i.createCommentVNode("",!0)])])]),i.createElementVNode("div",null,[(c=r.value.content)!=null&&c.label?(i.openBlock(),i.createElementBlock("h3",Dh,i.toDisplayString(r.value.content.label),1)):i.createCommentVNode("",!0),(o=r.value.content)!=null&&o.supportive_text?(i.openBlock(),i.createElementBlock("p",Uh,i.toDisplayString(r.value.content.supportive_text),1)):i.createCommentVNode("",!0)])])}}},Vh={class:"flex flex-col"},jh={class:"flex flex-col gap-4 mb-4 border-b border-gray-200 pb-4"},$h={key:0,class:"text-base text-gray-900 font-semibold"},qh={key:1,class:"text-gray-600 text-base font-normal mt-2"},zh={__name:"VNewsGrid",props:{...Ln},emits:["update"],setup(n,{emit:e}){const t=n,r=i.ref(t.data.component);return(s,l)=>{var a,c,o;return i.openBlock(),i.createElementBlock("div",Vh,[i.createElementVNode("div",jh,[l[5]||(l[5]=i.createElementVNode("p",{class:"text-lg font-semibold text-gray-900 border-b border-gray-200 pb-4"}," Grid ",-1)),i.createVNode(Cr,{name:"show",modelValue:r.value.button.show,"onUpdate:modelValue":l[0]||(l[0]=u=>r.value.button.show=u),title:"Show Button"},null,8,["modelValue"]),i.createVNode(_t,{"is-vertical":"",field:"title","label-text":"Title *",class:"w-full mb-4",value:r.value.button.title,limit:20},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":l[1]||(l[1]=u=>r.value.button.title=u),name:"title",type:"text",placeholder:"Title",maxlength:20,class:"border-1 border-solid border-gray-300 rounded-lg bg-white w-full"},null,512),[[i.vModelText,r.value.button.title]])]),_:1},8,["value"]),(a=r.value)!=null&&a.button?(i.openBlock(),i.createBlock(Or,{key:0,label:"Link to",name:"button",type:r.value.button.type,"onUpdate:type":l[2]||(l[2]=u=>r.value.button.type=u),url:r.value.button.url,"onUpdate:url":l[3]||(l[3]=u=>r.value.button.url=u),openInNewTab:r.value.button.open_in_new_tab,"onUpdate:openInNewTab":l[4]||(l[4]=u=>r.value.button.open_in_new_tab=u),sites:s.sites},null,8,["type","url","openInNewTab","sites"])):i.createCommentVNode("",!0)]),i.createElementVNode("div",null,[(c=r.value.content)!=null&&c.label?(i.openBlock(),i.createElementBlock("h3",$h,i.toDisplayString(r.value.content.label),1)):i.createCommentVNode("",!0),(o=r.value.content)!=null&&o.supportive_text?(i.openBlock(),i.createElementBlock("p",qh,i.toDisplayString(r.value.content.supportive_text),1)):i.createCommentVNode("",!0)])])}}},Hh={class:"flex justify-between pb-2"},Gh={class:"flex justify-between w-full py-1"},Wh={class:"text-lg font-semibold text-gray-900"},Kh={class:"text-sm text-gray-600 mt-1"},Xh={class:"flex flex-col gap-3"},Yh={class:"flex items-center justify-between"},Zh={class:"text-lg font-semibold text-gray-900"},Qh={class:"relative flex items-end"},Jh={class:"flex flex-col gap-6"},ep={class:"flex flex-col gap-1.5"},tp={__name:"VVideoGrid",props:{...Ln},emits:["update"],setup(n,{emit:e}){const t=i.inject("VFileUpload",So),r=e,s=n,l=i.ref(s.data.component),a=i.ref(null),c=i.ref(null),o=i.ref(null);function u(){var f,m;l.value.hasOwnProperty("data")||(l.value.data=[]),!(((f=l.value.data)==null?void 0:f.length)>=l.value.max_items)&&((m=l.value.data)==null||m.push({video:null}),r("update",!1))}const d=f=>{var m;o.value=f,(m=a==null?void 0:a.value)==null||m.open(f)},h=f=>{var m;(m=l.value.data)==null||m.splice(f,1),r("update",!1)};return(f,m)=>{var p;return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",Hh,[i.createElementVNode("div",Gh,[i.createElementVNode("div",null,[i.createElementVNode("p",Wh,i.toDisplayString(l.value.name),1),i.createElementVNode("p",Kh," This section can contain up to "+i.toDisplayString(l.value.max_items)+" videos ",1)]),i.createElementVNode("div",null,[i.createElementVNode("a",{onClick:u,class:i.normalizeClass(["text-sm cursor-pointer flex items-center justify-center gap-1 rounded-[99px] border border-brand-600 bg-brand-500 px-3.5 py-2 font-semibold text-white hover:bg-brand-600",{"border-gray-100 bg-gray-100 !text-gray-400 hover:bg-gray-100":((p=l.value.data)==null?void 0:p.length)>=l.value.max_items}])},[i.createVNode(i.unref(kr),{class:"h-5 w-5"}),m[0]||(m[0]=i.createElementVNode("span",null,"Add",-1))],2)])])]),i.createElementVNode("div",Xh,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(l.value.data,(y,b)=>(i.openBlock(),i.createElementBlock("div",{class:"flex flex-col gap-4 rounded-xl px-6 py-4 bg-gray-200",key:b,ref_for:!0,ref:b===l.value.data.length-1?A=>c.value=A:null},[i.createElementVNode("div",Yh,[i.createElementVNode("div",Zh," Video #"+i.toDisplayString(b+1),1),i.createElementVNode("div",Qh,[i.createVNode(is,{onRemoveItem:A=>d(b)},null,8,["onRemoveItem"])])]),i.createElementVNode("div",Jh,[i.createElementVNode("div",ep,[i.createVNode(i.unref(t),{name:"image",type:"video",height:"h-[250px]",modelValue:y.video,"onUpdate:modelValue":A=>y.video=A},null,8,["modelValue","onUpdate:modelValue"])])])]))),128))]),i.createVNode(as,{ref_key:"modalRef",ref:a,entity:"logo",callback:h},null,512)],64)}}},np={class:"page-builder overflow-auto"},rp={class:"flex gap-4 px-6 overflow-auto"},sp={class:"flex w-[356px] flex-col gap-2 pb-10"},op={class:"border-b border-gray-200 pb-2"},ip=["onClick"],ap={class:"text-lg font-semibold text-brand-800"},lp={class:"relative flex items-center gap-3"},cp={class:"cursor-pointer"},up={key:0,class:"flex flex-col gap-2"},dp=["onClick"],fp={class:"flex flex-col"},hp={class:"text-sm font-medium text-gray-900"},pp={class:"flex items-center justify-between gap-3 px-[10px]"},mp={class:"flex h-full flex-1 flex-col rounded-xl bg-gray-50 px-6 py-5 mb-20"},gp={class:"flex justify-between space-x-xsSpace pt-xsSpace gap-4 sticky bottom-0 w-full bg-gray-200 py-2 px-6"},yp={__name:"PageBuilder",props:{modelValue:{required:!0,type:Object},sites:{type:Array,default:()=>[]}},emits:["save","close"],setup(n,{emit:e}){var f;const t=e,r=n,s=i.ref(JSON.parse(window.localStorage.getItem("pageBuilderOpenStates"))),l=i.ref(((f=r.modelValue)==null?void 0:f.sections)??[]);let a=i.ref(null);const c=i.ref({sliders:i.markRaw(Gi),vertical_tabs:i.markRaw(Gi),links:i.markRaw(Wi),header:i.markRaw(Bd),link_grid:i.markRaw(Wi),logos:i.markRaw(Lh),carousel:i.markRaw(_h),news_grid:i.markRaw(zh),video_grid:i.markRaw(tp)});s.value||(s.value={},l.value.forEach((m,p)=>{s.value[p]=!0}),window.localStorage.setItem("pageBuilderOpenStates",JSON.stringify(s.value)));const o=(m,p,y)=>{a.value={page:r.modelValue,component:p,componentIndex:y,sectionIndex:m}},u=()=>{t("close",r.modelValue)},d=(m=!0)=>{t("save",{page:r.modelValue,redirect:m})},h=i.computed(()=>{var m,p,y,b;return(p=(m=a.value)==null?void 0:m.component)!=null&&p.type?c.value[(b=(y=a.value)==null?void 0:y.component)==null?void 0:b.type]:""});return(m,p)=>{var y,b;return i.openBlock(),i.createElementBlock("div",np,[i.createElementVNode("div",rp,[i.createElementVNode("div",sp,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.modelValue.sections,(A,T)=>(i.openBlock(),i.createElementBlock("div",op,[i.createElementVNode("div",{onClick:O=>s.value[T]=!s.value[T],class:"flex cursor-pointer items-center justify-between px-2 py-4"},[i.createElementVNode("span",ap,i.toDisplayString(A.title),1),i.createElementVNode("div",lp,[i.createElementVNode("div",cp,[s.value[T]?(i.openBlock(),i.createBlock(i.unref(iu),{key:1,class:"h-5 w-5"})):(i.openBlock(),i.createBlock(i.unref(oo),{key:0,class:"h-5 w-5"}))])])],8,ip),s.value[T]?(i.openBlock(),i.createElementBlock("div",up,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(A.components,(O,F)=>{var M,z;return i.openBlock(),i.createElementBlock("div",{onClick:X=>o(T,O,F),class:i.normalizeClass(["flex cursor-pointer items-center justify-between rounded-lg py-1.5 pl-6 pr-2 hover:bg-gray-100",{"bg-gray-200 hover:bg-gray-200":((M=i.unref(a))==null?void 0:M.sectionIndex)===T&&((z=i.unref(a))==null?void 0:z.componentIndex)===F}])},[i.createElementVNode("div",fp,[p[0]||(p[0]=i.createElementVNode("div",{class:"text-xs text-gray-600"},"Sub-module",-1)),i.createElementVNode("div",hp,i.toDisplayString(O.name),1)]),i.createElementVNode("div",pp,[i.createVNode(i.unref(oo),{class:"h-5 w-5"})])],10,dp)}),256))])):i.createCommentVNode("",!0)]))),256))]),i.createElementVNode("div",mp,[i.unref(a)?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(cu,{key:0})),(i.openBlock(),i.createBlock(i.resolveDynamicComponent(h.value),{class:"min-h-[90vh]",key:((y=i.unref(a))==null?void 0:y.sectionIndex)+((b=i.unref(a))==null?void 0:b.componentIndex),data:i.unref(a),sites:n.sites,onUpdate:d},null,40,["data","sites"]))])]),i.renderSlot(m.$slots,"default",{},()=>[i.createElementVNode("div",gp,[i.createElementVNode("a",{onClick:u,class:"w-[200px] py-[9px] bg-white rounded-full border border-gray-300 shadow-xs text-md font-semibold hover:bg-gray-100 text-gray-700 text-center cursor-pointer"}," Cancel "),i.createElementVNode("a",{onClick:i.withModifiers(d,["prevent"]),class:"w-full py-[9px] rounded-full shadow-xs text-md font-semibold text-white bg-brand-600 hover:bg-brand-700 border border-brand-600 text-center cursor-pointer"},"Save changes")])])])}}},To="data:image/jpeg;base64,AAAAHGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZgAAAOptZXRhAAAAAAAAACFoZGxyAAAAAAAAAABwaWN0AAAAAAAAAAAAAAAAAAAAAA5waXRtAAAAAAABAAAAImlsb2MAAAAAREAAAQABAAAAAAEOAAEAAAAAAAARtAAAACNpaW5mAAAAAAABAAAAFWluZmUCAAAAAAEAAGF2MDEAAAAAamlwcnAAAABLaXBjbwAAABNjb2xybmNseAABAA0ABoAAAAAMYXYxQ4EMDAAAAAAUaXNwZQAAAAAAAAZBAAAGQQAAABBwaXhpAAAAAAMICAgAAAAXaXBtYQAAAAAAAAABAAEEAYIDBAAAEbxtZGF0EgAKChsqsgZA4ICGg0IyoyMRQAEEEEFA9LrNypVG96LMWWcCoG7e3fR+Ni4S+KmSHgWobWA8OtL9vwZBTQcXX7wPCOaSqjXsz7F6l4FRLlK0rP8o5OlSIUR601ydI43hGj9Zmp+aRpVBIDeJVv2kawzorrWwnkCzlZFEN6kIWzNhDWD17lK5jFHp5nVzBnO7b5xDqgQ41jePfiYsmcXTc+mBRKMYDdHKDnPl/8IBX52Y26kxwh/9P6mo2zGVNs0ONs6XQWBAZF4FLOrQA20MzyF4txDPqWsBcwcki9kP0ye4x2YvaF310Dkfqua5RxdagnQIp81oTTmcVFxZXrNgz/NbDxWQbz/z1D+FoX3neKlSbFhq3ucDHwXJEktw8cZ2XEwmctcaK9W4pdEpJcNmr6e+P5AdDI1gEFOIRzxrfwX7huahRibmG/eDl0/UOLLG7W2K9GM9oA4EfGC0bPjq+Jf334oN7xreU0X+TYQJz/0xj9pPHguWOxMDm9si/e6goowSH/lorQ9UvkgeziFfzDstH4yzAIuV68sxclnujfPQhdXX99gMzUcL0sIhl4Rjw1/oYxWSImpbfTD/sCvela/JWOTP0QMQXX+pC/5stV+H1qJFXPiRG8OhXE0d0PS7I4eD8sVdEfCyszn+lGwa+JXDMgdVcufTugRLQj0TkBzxy6//k6wSt25hJlTRACEGLFtkmZDg92hcP1XELKV7GGk0MY2407yrVkFnFhFdo7MORa4zOTSoG4srhkzTnpKmrgu/2wPYleLn8jEHAuKyO9utn9Z3wI2k7zdKIUzGnUjvk4VRAerEWwLsdvapS6+R77tjD8ReIJU1+ffObq2U3/7ddqdkHDrXsX5TtC9hupIhjj7yd2yDXOnU4ptZKlZlz7V96Z3bk4Dzr0DidAz2u1GIVgymuhj3LNiUVabDehwgCN4odwcZiodNOtwfG5DveLcAAthj19sWP7zblztGw/pps07vA0mdKmk2Jg10RZyPSnLZsMaK4/GcfKexJZxnfD5InLXuOrwBCKy2XxH4sdItujUvy/JlAyhwZ9d30WPbav9ZoSXD/xD8xnBoZgT+EsnCyQBrxjgPoW+U8U8hOVPFY7bHXJ9yYfRdBG9g/aWr/e893U07phoIxJeXejmsLobU3qGnN5br4lcKQF0vxxNB5XSaRX26X//78Rq059n0mh8mR9p8CivLohVCCYlVNvYk+M9gPHr0720q1ofNETgYLaly6c4kSsS+f/dn1/5VqNrMfBZ9iCZsmU2jWDgE5JETYjxU/3SNryPwESpkO2TgM+l6/Fv3GR6+58EiLI0WiWvJGxhgi8cQKdcp8kmu563nVw95R1H5EgZ6iT4i7KuHysoFFC8t/sEpmwvbRkZaa5/D5AFIpG5fo5SguTfyjPGIpugqjUmikhv8u2BkUaoZX/zGRzGj8A3iugRk9WoH2zNDcg9PWxAv73+huXdua93kztViDB9dBkW2RZT4v8FOzAMvBozOD6aGxHVqIVVzwsoQBYTtILtoMBPtCkxi6SsTWLLXb0Up6ymtmFFOdGxUTnxMnZkCuVsrEsuErrLEGRPqVFRVtN4ysgq5/a9pwC5kLpF9wyXP699hHNHp4S4+GZCK9w79aUh/OsAlMFeWOxnz0+iG01cCM8Ps7eOaTsYGXnRMZqA5FzklKkttUjQ8M6l7PkUqs/5C5tDrCIYiWDlhSdypaxs2TbUlVBduh/J9kFTpvj948AVLBKOs3gakAHQ5X6c3SxDXdFqB0a41HG+HOERNYquTykXNTqH75tz/RoNXkejf/RUNUZvljVlfEs8eTmpai9sFCHIyFXUaeuzklBpsc9IaL7DakbvgKO8WPcNfcsx4FQh/iMOBqahytkLpGLoElIVtZkjOWxURscH5KvLqd2sWkqk5SiWY/L/Jr9JNUN+NixqcIsEzZIcROG5V/c6FHVsP3voC0DUUofgYCk7bi8GTUN3eJTTh8M0zFG4eWpxIrcjo4fKpeARX/lGqS7HdBij52bWiWSulAfSjz4tJaYSRupL0k28hjjCXLEwEWfHn05iyy9ZTPHF0KlXvlfUrziuV4w16PdJGhNpGs/JYrclGZ90V7HBJkbUh3ZAsXButMqqhasVQdLCMnX2AbuBM3ok7oz84HETQRCdkir7kfo4192LwjzTRMhGK64+GRZ97MVwtF8nN4ngKljikDBOZiWpLLS7lK0t4/tdw3xNVio1ejBNJqhzF7KFJnyHN8jWQWHSujMbgxmrSMNhOp+cNeCG/CJm9zT8lRmYl1vgDSmaAx6CFR6avfdD9p43Etip9rIypLW1nYCZ3T8HE28vnWvOOWKJoUm4Sb6QdTen6WJqaXICS0/uCotX6Ond1LO0WRmelsJb0lm2BabdixgWPgwg/5FA6pmVVMDr67a/n+NWSpwq/IOXs+tmfZowmgwDkistatDsLwKuqSNtpnOYnTBBI8xq7i+pgDtcfzo+GnBy67aUKI4C0HqAdpwZkaSCb7kVhEW6oG1cN7/pwrhy7QA72tqAg88rzt15B3PjwBOUMxIkjmfQ40GA3NwJLPkPqwmjRNLN3lf3zL3H1YClhYrUk9M8HJ2W+rElAcVkEURUrxxbyEoZegA/hXmlU3cmH59DpPKuaLXOEp9gpsV0IB/QAqtjEbToeOT96LOLtYzD+bp2tkxYbnS2IYXQUhFK+M3ETdydEb0bodINuCbglIwkbu1gjylsf3jM8bPelYuBJ8roiI1zwqDKf7xw752r5dnPn+dQ7nMebZBBxsQlgEOLj41vbfm9dlA1a0pKKle+9octPYEWu7y1cJxc7oKHXTC0MkPAH81B/TuiKwOrfkRtocCOLlLzmgeCDurXtp0aWWHunI6S0rO2ea+M4YPb0T3r9OyZ55Xah5/Hi8JYR5IJ8PTEMbuu0GRpwzAd8v+DJP+Z4w2X52Qgm50O8gDNmhu7UsdhKCa2XgwfV3Wz4pJFl4H0y5UuD4ncKETycAKELlLKvW20K62WZFFwAyf/3hrq5uhp5NVc8F1YiECNJXd5oSVL1K6QjOOAmJyBsMyXPn3+QwTrffNqo8FjM5HPP/acHOsXa7yA7MKHBouxu7GG+Ws8kK/+JgsHyicmrqKRxOtBkiLj4qN6A98JUWe9ceFeE3SBSd9pdv/oSHVOxePXpOnWS6/6HULby3QlWngDmexi6sWOHkn1CV/MKOn+NOnvhhbRF35NlPDbPE12l6c5Fs0li9GyNsc5g0sjkdpJ3Zn4f4RS0PItBRualUCgWzE1yABv1Q+GUgh/A/3wyr5WtGiibYJuF8qctNEqCD7wPPxwF3gcepur//pUPmaUQcDBnQGcexUD0yIwVx27+Mm3GFSqQXdU9yQu+jU114Kvh4OsVRQ9jxlhc8TWF1m/rxZc9HPG1mmQs+xpVmKLD6ayR0o/H6wL/3SwpmlltR4TOqwO969YFHdbjDlqRVJmW06nGxHxbgiaXyiMW2tboIaihOQpaM0ljuqNo+uKQxpjU45nf9RJmjxfJzwCXzGiunvtOeE1hHWRLcCD9Q54t5bKohypXgOYwWSFe2I0BPOUQJ8FSJVvZbK+bavXEk8/FwAxsrMe97EmbmrLt2QiWonGGqhViZE2CYVnbCfiunw/sS+YoBjM5N2h9G/KIzPlpKJTt7Awh2bulvNmf4dLZSsIqC0/fnPTtTxRT9HEaXqjlRLp18FnZB0YCkEOmzj5qjl93D6+hHcA7u8lU3Mmd9pnebwmFNyoBkRybmkHntmmyof3dtCREO9ZmPUKcqGkZ5GiYysPJ72Dq8wiHDh5wFdCjpgFdEf7YeAOGHe1TnX5xP3mk3vpeBa/Y3sMfn500UY9AH8X92hzK7SCV1r+zzYRczz/RMHL9s1QwiOFs0YjoTc9bW/gVCDHTLOYfwVcx0jihdMbk2vuoAxsAX0lizu+lSpgVxFEpDZpWj7jpkxmLHf5id6a59EnID/oJp/1pY139OP9S24VoDpD+Qf/NVztiOOLl201VMVmegtirJPNx/A+E81Raod83V4+TpJgr0VFOZ47Rh8qKcpE7ek+Am+TSjG2y5f1akQFofwawgribkgTVLBSKwEffODKdnrbE7z0gSoAbUMOp+6VN8APZRMTQ4gCirN2UxcE7WLAIgBttO7CfhohfhdPvkrIdJHSviQDEGvfXvuAljmwO99qxKgwKB7RWE5k3vzX/qWmmb5Lwfjudvy2x7fEptqcXSq3arrJtGSjGAps/GVMsBma6yJ2qtfcrrCs+CygW3OxYh0CxqFqOjmlD7k8jReF7iUU1SHYPcNPS53m4dCRXW0c2yTqHLmCHQosr1A/K8a1wLQLbRUD22FunagzRyD6VhyjYAMQl6S3T8gtrGVt8qCQWi7aTgs4yBBM4JSJh3/ixTWfJX0MIUDifqKq8enuSmqFx/mCZYo5P5FbYbQf0M4xAOBXOPLCzYJ9/dAyILWH7zbvH+OOs63gYhFNmkZvDqsoDl2ZaN5+d6XGopWfbIgIdekUgnkwGXMzpWvzGzt28sZdikZJ+R2YDS8VyerRdzRHSuPkjl27ffZvfTAdcc2LpeJEXnu+lNPVagGCH6kL0/gV/Cbk32GdFJRxjwDfn3EK9vYLWXuPqb2fwhV2j7RWSd3UhT3hHcVC33zsNc2ADCGzKIj757/PX+bAMOWKLqsE5VhL598Zm3aiZc72FZb/bGmPDNqFk9qowm6lnn2SSGpsI0YnM3+grwfxFFBTYbaLMbvl45nqKzZYxbMi8Bj4w1VtK1tfHFIyp/G15pR1V6qo0MmzMNXaHCtqHq7LJbRNWvZKUaxyX6+IKEWepgloQuXogNqe/FX07tjVXmQTRcCNQMunYQEDjXGfVZMNzo5ANpOrmOZBJSWAXTbb6YVi5O14p/c9otJPzD4MFELg1mxMGi1P2BHitTT5AJEdYpLrOWKNfyuTKWSJRdhl1wgAkS01HUBZ8U0fX/ObZCDARNVyGUzjTG8ADGbHRVFLAufzah3fZWcEuy/WSaPEG51LEugrZbDAclC2+ma9TFjb/bX9/Qup/nZSFqF5XGmBv6rBpIC0FukNKpy6PXI2PcUaWbEChrYaMODNcz/WP7ePJfeezVEekcl7kV2fNgrz+FJ3SOWtPnLNXcp1deGzgwMW/FtLO8PADkxRtS7p3NwuqxgcsK8v6Qwtv5uWs5POKYuXuIb2cBMXEfhlqWyZLldk3e0hMThlmzpkvJLkDH5JsK2Ls8xQkVO3Xhcm2boZd2fKwYc+2p5x752JjOirMNAL3NlfrdkQq1//VMIjWbKxV2RAijFSjNJTBTxVPpuZNPmmKhH367BwMftROfOOdP3KYIeequ6nShktuYSOZJVRp7NeiPnGwO7rax5U9r3lnie+84sFK66fRpguuAz8Kg1PnJYUsC5W39cHnQbkZ7KUQLHCDpVI64kOdhxmrYu5OGAkIJkRHQbb/QtM+iUtvfPgAl/8WL+pZ4Hanm07MeTXcjie8Jq6o6G6lF/VXyzZFQGwonffQzb+WHgXdlHlYtPglo5CS7fzAQP7EYPM8PShZnmkysxTrA2fS/UVwlLhqNr1CaMFHaRXO/NJhuiufe83tot7jhyl9vXa9n0047EfylrX8305tvshCwyjRdow1w/1ddWI+dh4W6UpYz0jIVaNbotWQcgZG7gM2+6oTtDhDAQwlsBg0xijwuUTFFuQFSa1+uUPDWnIybAuvuHkE1wOIEWXO2gI7j2A8JbQq4hd+jt03ztXEGlyqJpQ4S5m8BD+oghq0GJKcuyMjJVfGow63d7CAs4DU99U37hHlQ1bI1YPidy6vGLmoYi4TZUYPq9t9vNyO1NtSYwVPO18sLbhsv2TJzQQ1Sw0dAu5llcisY2G1YCIVQO54Klh4D13C1miwtBQuHViO45hfwzPL4i6j9Iiw/Tm52I1U1IYm9w846xdKgNj9ao2+aw1AJfcajS3gej36pd+1YHYtyTHs3Q57X1kj8Hjnq5dLASg4CZ/oTb12TJsfFPzmidqg0O0iAohcFTz6mJ/Gqrdt1UA=",vp={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function bp(n,e){return i.openBlock(),i.createElementBlock("svg",vp,e[0]||(e[0]=[i.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M7 17 17 7m0 0H7m10 0v10"},null,-1)]))}const er={render:bp};/**
13
+ Expect errors in decoding.`),w=w.replace(/[^A-Za-z0-9\+\/\=]/g,"");I=this.KEY_STR.indexOf(w.charAt(W++)),B=this.KEY_STR.indexOf(w.charAt(W++)),U=this.KEY_STR.indexOf(w.charAt(W++)),j=this.KEY_STR.indexOf(w.charAt(W++)),C=I<<2|B>>4,v=(B&15)<<4|U>>2,x=(U&3)<<6|j,Z.push(C),U!==64&&Z.push(v),j!==64&&Z.push(x),C=v=x="",I=B=U=j="",W<w.length;);return Z}}]),N}();ye.initClass();var xe=function(R,w){var C=!1,v=!0,x=R.document,I=x.documentElement,B=x.addEventListener?"addEventListener":"attachEvent",U=x.addEventListener?"removeEventListener":"detachEvent",j=x.addEventListener?"":"on",W=function Y(J){if(!(J.type==="readystatechange"&&x.readyState!=="complete")&&((J.type==="load"?R:x)[U](j+J.type,Y,!1),!C&&(C=!0)))return w.call(R,J.type||J)},Z=function Y(){try{I.doScroll("left")}catch{setTimeout(Y,50);return}return W("poll")};if(x.readyState!=="complete"){if(x.createEventObject&&I.doScroll){try{v=!R.frameElement}catch{}v&&Z()}return x[B](j+"DOMContentLoaded",W,!1),x[B](j+"readystatechange",W,!1),R[B](j+"load",W,!1)}};q._autoDiscoverFunction=function(){if(q.autoDiscover)return q.discover()},xe(window,q._autoDiscoverFunction);function he(N,R){return typeof N<"u"&&N!==null?R(N):void 0}function ke(N,R,w){if(typeof N<"u"&&N!==null&&typeof N[R]=="function")return w(N,R)}window.Dropzone=q;var ve=q}(),l}()})}(wo)),wo.exports}var oh=sh();const Ao=Eo(oh),ih={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function ah(n,e){return i.openBlock(),i.createElementBlock("svg",ih,e[0]||(e[0]=[i.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m8 16 4-4m0 0 4 4m-4-4v9m8-4.257A5.5 5.5 0 0 0 16.5 7a.62.62 0 0 1-.534-.302 7.5 7.5 0 1 0-11.78 9.096"},null,-1)]))}const lh={render:ah},ch={class:"file-upload"},uh=["name","value"],dh={key:0,class:"preview"},fh={class:"file-upload-preview"},hh=["src"],ph={key:1,class:"preview"},mh={class:"file-upload-preview"},gh=["src","title"],yh=["href"],vh={class:"file-upload-title"},bh={class:"file-upload-file-remove"},xh={class:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 p-4 rounded-lg flex flex-col justify-center items-center w-full"},So={__name:"FileUpload",props:{name:{type:String,required:!1},modelValue:{type:[String,Object],default:null},submitEndpoint:{type:String,required:!1},deleteEndpoint:{type:String,required:!1},formData:{type:Object,default:null},csrf:{type:String,required:!1},background:{type:String,default:""}},emits:["update:modelValue"],setup(n,{emit:e}){Ao.autoDiscover=!1;const t=n,r=i.ref([]),s=i.ref(Ao),l=i.ref(null),a=i.computed(()=>JSON.stringify(r)),c=u=>["image/gif","image/jpeg","image/png","image/tiff"].includes(u),o=u=>{tt.delete(t.deleteEndpoint+"?"+u.id).then(()=>{r.value=null}).catch(console.error)};return i.onMounted(()=>{var d;l.value=t.formData;const u=t.csrf;s.value=new Ao(s.value,{url:(t==null?void 0:t.submitEndpoint)+"?"+((d=l.value)==null?void 0:d.id),addRemoveLinks:!0,maxFiles:1,sending:(h,f,m)=>{m.append("_token",u),m.append("field",t.name)},success:(h,f)=>{h.value=f},complete:h=>{var f;(f=s.value)==null||f.removeFile(h)}}),r.value=t.modelValue}),(u,d)=>(i.openBlock(),i.createElementBlock("div",ch,[i.createElementVNode("input",{type:"hidden",name:n.name,value:a.value},null,8,uh),n.modelValue?(i.openBlock(),i.createElementBlock("div",dh,[d[1]||(d[1]=i.createTextVNode(" @todo handle upload here ")),i.createElementVNode("span",fh,[i.createElementVNode("img",{class:"img rounded-lg h-[200px] object-contain",src:n.modelValue,title:"Image"},null,8,hh)])])):r.value&&r.value.length?(i.openBlock(),i.createElementBlock("div",ph,[i.createElementVNode("span",mh,[c(r.value.mime_type)?(i.openBlock(),i.createElementBlock("img",{key:0,class:"img",src:r.value.url,title:r.value.file_name},null,8,gh)):i.createCommentVNode("",!0)]),i.createElementVNode("a",{href:r.value.url,target:"_blank",class:"link"},[i.createElementVNode("div",vh,i.toDisplayString(r.value.file_name),1)],8,yh),i.createElementVNode("a",bh,[i.createElementVNode("i",{class:"fal fa-times",onClick:d[0]||(d[0]=h=>o(r.value))})])])):i.createCommentVNode("",!0),i.withDirectives(i.createElementVNode("div",{class:i.normalizeClass("relative rounded-lg "+n.background)},[i.createElementVNode("div",{class:"dropzone border border-dashed rounded-lg z-10 h-[200px] w-full cursor-pointer relative",ref_key:"dropzone",ref:s},null,512),i.createElementVNode("div",xh,[i.createElementVNode("div",null,[i.createVNode(i.unref(lh),{class:"w-6 h-6"})]),d[2]||(d[2]=i.createElementVNode("div",{class:"text-sm text-center"},[i.createElementVNode("p",null,[i.createElementVNode("span",{class:"text-brand-900"},"Click to upload"),i.createElementVNode("span",null," or drag and drop")]),i.createElementVNode("span",null,"(max. 20MB)")],-1))])],2),[[i.vShow,!n.modelValue]])]))}},Eh={class:"flex justify-between pb-2"},wh={class:"flex justify-between w-full py-1"},Ah={class:"text-lg font-semibold text-gray-900"},Sh={class:"text-sm text-gray-600 mt-1"},Th={class:"flex flex-col gap-3"},Nh={class:"flex items-center justify-between"},kh={class:"text-lg font-semibold text-gray-900"},Ch={class:"relative flex items-end"},Oh={class:"flex flex-col gap-6"},Rh={class:"flex flex-col gap-1.5"},Ih=["onUpdate:modelValue"],Lh={__name:"VLogos",props:{...Ln},emits:["update"],setup(n,{emit:e}){const t=i.inject("VFileUpload",So),r=e,s=n,l=i.ref(s.data.component),a=i.ref(null),c=i.ref(null),o=i.ref(null);function u(){var f,m;l.value.hasOwnProperty("data")||(l.value.data=[]),!(((f=l.value.data)==null?void 0:f.length)>=l.value.max_items)&&((m=l.value.data)==null||m.push({url:null,logo:null}),i.nextTick(()=>{c.value&&c.value.scrollIntoView({behavior:"smooth"})}),r("update",!1))}const d=f=>{var m;o.value=f,(m=a==null?void 0:a.value)==null||m.open(f)},h=f=>{var m;(m=l.value.data)==null||m.splice(f,1),r("update",!1)};return(f,m)=>{var p;return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",Eh,[i.createElementVNode("div",wh,[i.createElementVNode("div",null,[i.createElementVNode("p",Ah,i.toDisplayString(l.value.name),1),i.createElementVNode("p",Sh," This section can contain up to "+i.toDisplayString(l.value.max_items)+" logos ",1)]),i.createElementVNode("div",null,[i.createElementVNode("a",{onClick:u,class:i.normalizeClass(["text-sm cursor-pointer flex items-center justify-center gap-1 rounded-[99px] border border-brand-600 bg-brand-500 px-3.5 py-2 font-semibold text-white hover:bg-brand-600",{"border-gray-100 bg-gray-100 !text-gray-400 hover:bg-gray-100":((p=l.value.data)==null?void 0:p.length)>=l.value.max_items}])},[i.createVNode(i.unref(kr),{class:"h-5 w-5"}),m[0]||(m[0]=i.createElementVNode("span",null,"Add",-1))],2)])])]),i.createElementVNode("div",Th,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(l.value.data,(y,b)=>(i.openBlock(),i.createElementBlock("div",{class:"flex flex-col gap-4 rounded-xl px-6 py-4 bg-gray-200",key:b,ref_for:!0,ref:b===l.value.data.length-1?A=>c.value=A:null},[i.createElementVNode("div",Nh,[i.createElementVNode("div",kh," Logo #"+i.toDisplayString(b+1),1),i.createElementVNode("div",Ch,[i.createVNode(is,{onRemoveItem:A=>d(b)},null,8,["onRemoveItem"])])]),i.createElementVNode("div",Oh,[i.createElementVNode("div",Rh,[i.createVNode(i.unref(t),{name:"image",modelValue:y.logo,"onUpdate:modelValue":A=>y.logo=A},null,8,["modelValue","onUpdate:modelValue"]),i.createVNode(_t,{"is-vertical":"",field:"url","label-text":"Url *",class:"w-full my-4",value:y.url},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":A=>y.url=A,name:"url",type:"text",placeholder:"Enter your url",class:"border-1 border-solid border-gray-300 rounded-lg bg-white w-full"},null,8,Ih),[[i.vModelText,y.url]])]),_:2},1032,["value"])])])]))),128))]),i.createVNode(as,{ref_key:"modalRef",ref:a,entity:"logo",callback:h},null,512)],64)}}},Bh={class:"flex flex-col"},Ph={class:"flex flex-col gap-4 mb-4 border-b border-gray-200 pb-4"},Fh={class:"flex flex-col gap-6"},Mh={class:"flex flex-col gap-1.5"},Dh={key:0,class:"text-base text-gray-900 font-semibold"},Uh={key:1,class:"text-gray-600 text-base font-normal mt-2"},_h={__name:"VCollectionCarousel",props:{...Ln},emits:["update"],setup(n,{emit:e}){const t=n,r=i.ref(t.data.component);return(s,l)=>{var a,c,o;return i.openBlock(),i.createElementBlock("div",Bh,[i.createElementVNode("div",Ph,[l[4]||(l[4]=i.createElementVNode("p",{class:"text-lg font-semibold text-gray-900 border-b border-gray-200 pb-4"}," Carousel ",-1)),i.createElementVNode("div",Fh,[i.createElementVNode("div",Mh,[r.value.button?(i.openBlock(),i.createBlock(_t,{key:0,"is-vertical":"",field:"title","label-text":"Button label *",class:"w-full mb-4",value:r.value.button.title,limit:51},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":l[0]||(l[0]=u=>r.value.button.title=u),name:"title",type:"text",placeholder:"Title",maxlength:51,class:"border-1 border-solid border-gray-300 rounded-lg bg-white w-full"},null,512),[[i.vModelText,r.value.button.title]])]),_:1},8,["value"])):i.createCommentVNode("",!0),(a=r.value)!=null&&a.button?(i.openBlock(),i.createBlock(Or,{key:1,label:"Link to",name:"button",type:r.value.button.type,"onUpdate:type":l[1]||(l[1]=u=>r.value.button.type=u),url:r.value.button.url,"onUpdate:url":l[2]||(l[2]=u=>r.value.button.url=u),openInNewTab:r.value.button.open_in_new_tab,"onUpdate:openInNewTab":l[3]||(l[3]=u=>r.value.button.open_in_new_tab=u),sites:s.sites},null,8,["type","url","openInNewTab","sites"])):i.createCommentVNode("",!0)])])]),i.createElementVNode("div",null,[(c=r.value.content)!=null&&c.label?(i.openBlock(),i.createElementBlock("h3",Dh,i.toDisplayString(r.value.content.label),1)):i.createCommentVNode("",!0),(o=r.value.content)!=null&&o.supportive_text?(i.openBlock(),i.createElementBlock("p",Uh,i.toDisplayString(r.value.content.supportive_text),1)):i.createCommentVNode("",!0)])])}}},Vh={class:"flex flex-col"},jh={class:"flex flex-col gap-4 mb-4 border-b border-gray-200 pb-4"},$h={key:0,class:"text-base text-gray-900 font-semibold"},qh={key:1,class:"text-gray-600 text-base font-normal mt-2"},zh={__name:"VNewsGrid",props:{...Ln},emits:["update"],setup(n,{emit:e}){const t=n,r=i.ref(t.data.component);return(s,l)=>{var a,c,o;return i.openBlock(),i.createElementBlock("div",Vh,[i.createElementVNode("div",jh,[l[5]||(l[5]=i.createElementVNode("p",{class:"text-lg font-semibold text-gray-900 border-b border-gray-200 pb-4"}," Grid ",-1)),i.createVNode(Cr,{name:"show",modelValue:r.value.button.show,"onUpdate:modelValue":l[0]||(l[0]=u=>r.value.button.show=u),title:"Show Button"},null,8,["modelValue"]),i.createVNode(_t,{"is-vertical":"",field:"title","label-text":"Title *",class:"w-full mb-4",value:r.value.button.title,limit:20},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":l[1]||(l[1]=u=>r.value.button.title=u),name:"title",type:"text",placeholder:"Title",maxlength:20,class:"border-1 border-solid border-gray-300 rounded-lg bg-white w-full"},null,512),[[i.vModelText,r.value.button.title]])]),_:1},8,["value"]),(a=r.value)!=null&&a.button?(i.openBlock(),i.createBlock(Or,{key:0,label:"Link to",name:"button",type:r.value.button.type,"onUpdate:type":l[2]||(l[2]=u=>r.value.button.type=u),url:r.value.button.url,"onUpdate:url":l[3]||(l[3]=u=>r.value.button.url=u),openInNewTab:r.value.button.open_in_new_tab,"onUpdate:openInNewTab":l[4]||(l[4]=u=>r.value.button.open_in_new_tab=u),sites:s.sites},null,8,["type","url","openInNewTab","sites"])):i.createCommentVNode("",!0)]),i.createElementVNode("div",null,[(c=r.value.content)!=null&&c.label?(i.openBlock(),i.createElementBlock("h3",$h,i.toDisplayString(r.value.content.label),1)):i.createCommentVNode("",!0),(o=r.value.content)!=null&&o.supportive_text?(i.openBlock(),i.createElementBlock("p",qh,i.toDisplayString(r.value.content.supportive_text),1)):i.createCommentVNode("",!0)])])}}},Hh={class:"flex justify-between pb-2"},Gh={class:"flex justify-between w-full py-1"},Wh={class:"text-lg font-semibold text-gray-900"},Kh={class:"text-sm text-gray-600 mt-1"},Xh={class:"flex flex-col gap-3"},Yh={class:"flex items-center justify-between"},Zh={class:"text-lg font-semibold text-gray-900"},Jh={class:"relative flex items-end"},Qh={class:"flex flex-col gap-6"},ep={class:"flex flex-col gap-1.5"},tp={__name:"VVideoGrid",props:{...Ln},emits:["update"],setup(n,{emit:e}){const t=i.inject("VFileUpload",So),r=e,s=n,l=i.ref(s.data.component),a=i.ref(null),c=i.ref(null),o=i.ref(null);function u(){var f,m;l.value.hasOwnProperty("data")||(l.value.data=[]),!(((f=l.value.data)==null?void 0:f.length)>=l.value.max_items)&&((m=l.value.data)==null||m.push({video:null}),r("update",!1))}const d=f=>{var m;o.value=f,(m=a==null?void 0:a.value)==null||m.open(f)},h=f=>{var m;(m=l.value.data)==null||m.splice(f,1),r("update",!1)};return(f,m)=>{var p;return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",Hh,[i.createElementVNode("div",Gh,[i.createElementVNode("div",null,[i.createElementVNode("p",Wh,i.toDisplayString(l.value.name),1),i.createElementVNode("p",Kh," This section can contain up to "+i.toDisplayString(l.value.max_items)+" videos ",1)]),i.createElementVNode("div",null,[i.createElementVNode("a",{onClick:u,class:i.normalizeClass(["text-sm cursor-pointer flex items-center justify-center gap-1 rounded-[99px] border border-brand-600 bg-brand-500 px-3.5 py-2 font-semibold text-white hover:bg-brand-600",{"border-gray-100 bg-gray-100 !text-gray-400 hover:bg-gray-100":((p=l.value.data)==null?void 0:p.length)>=l.value.max_items}])},[i.createVNode(i.unref(kr),{class:"h-5 w-5"}),m[0]||(m[0]=i.createElementVNode("span",null,"Add",-1))],2)])])]),i.createElementVNode("div",Xh,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(l.value.data,(y,b)=>(i.openBlock(),i.createElementBlock("div",{class:"flex flex-col gap-4 rounded-xl px-6 py-4 bg-gray-200",key:b,ref_for:!0,ref:b===l.value.data.length-1?A=>c.value=A:null},[i.createElementVNode("div",Yh,[i.createElementVNode("div",Zh," Video #"+i.toDisplayString(b+1),1),i.createElementVNode("div",Jh,[i.createVNode(is,{onRemoveItem:A=>d(b)},null,8,["onRemoveItem"])])]),i.createElementVNode("div",Qh,[i.createElementVNode("div",ep,[i.createVNode(i.unref(t),{name:"image",type:"video",height:"h-[250px]",modelValue:y.video,"onUpdate:modelValue":A=>y.video=A},null,8,["modelValue","onUpdate:modelValue"])])])]))),128))]),i.createVNode(as,{ref_key:"modalRef",ref:a,entity:"logo",callback:h},null,512)],64)}}},np={class:"page-builder overflow-auto"},rp={class:"flex gap-4 px-6 overflow-auto"},sp={class:"flex w-[356px] flex-col gap-2 pb-10"},op={class:"border-b border-gray-200 pb-2"},ip=["onClick"],ap={class:"text-lg font-semibold text-brand-800"},lp={class:"relative flex items-center gap-3"},cp={class:"cursor-pointer"},up={key:0,class:"flex flex-col gap-2"},dp=["onClick"],fp={class:"flex flex-col"},hp={class:"text-sm font-medium text-gray-900"},pp={class:"flex items-center justify-between gap-3 px-[10px]"},mp={class:"flex h-full flex-1 flex-col rounded-xl bg-gray-50 px-6 py-5 mb-20"},gp={class:"flex justify-between space-x-xsSpace pt-xsSpace gap-4 sticky bottom-0 w-full bg-gray-200 py-2 px-6"},yp={__name:"PageBuilder",props:{modelValue:{required:!0,type:Object},sites:{type:Array,default:()=>[]}},emits:["save","close"],setup(n,{emit:e}){var f;const t=e,r=n,s=i.ref(JSON.parse(window.localStorage.getItem("pageBuilderOpenStates"))),l=i.ref(((f=r.modelValue)==null?void 0:f.sections)??[]);let a=i.ref(null);const c=i.ref({sliders:i.markRaw(Gi),vertical_tabs:i.markRaw(Gi),links:i.markRaw(Wi),header:i.markRaw(Bd),link_grid:i.markRaw(Wi),logos:i.markRaw(Lh),carousel:i.markRaw(_h),news_grid:i.markRaw(zh),video_grid:i.markRaw(tp)});s.value||(s.value={},l.value.forEach((m,p)=>{s.value[p]=!0}),window.localStorage.setItem("pageBuilderOpenStates",JSON.stringify(s.value)));const o=(m,p,y)=>{a.value={page:r.modelValue,component:p,componentIndex:y,sectionIndex:m}},u=()=>{t("close",r.modelValue)},d=(m=!0)=>{t("save",{page:r.modelValue,redirect:m})},h=i.computed(()=>{var m,p,y,b;return(p=(m=a.value)==null?void 0:m.component)!=null&&p.type?c.value[(b=(y=a.value)==null?void 0:y.component)==null?void 0:b.type]:""});return(m,p)=>{var y,b;return i.openBlock(),i.createElementBlock("div",np,[i.createElementVNode("div",rp,[i.createElementVNode("div",sp,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.modelValue.sections,(A,T)=>(i.openBlock(),i.createElementBlock("div",op,[i.createElementVNode("div",{onClick:O=>s.value[T]=!s.value[T],class:"flex cursor-pointer items-center justify-between px-2 py-4"},[i.createElementVNode("span",ap,i.toDisplayString(A.title),1),i.createElementVNode("div",lp,[i.createElementVNode("div",cp,[s.value[T]?(i.openBlock(),i.createBlock(i.unref(iu),{key:1,class:"h-5 w-5"})):(i.openBlock(),i.createBlock(i.unref(oo),{key:0,class:"h-5 w-5"}))])])],8,ip),s.value[T]?(i.openBlock(),i.createElementBlock("div",up,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(A.components,(O,F)=>{var M,z;return i.openBlock(),i.createElementBlock("div",{onClick:X=>o(T,O,F),class:i.normalizeClass(["flex cursor-pointer items-center justify-between rounded-lg py-1.5 pl-6 pr-2 hover:bg-gray-100",{"bg-gray-200 hover:bg-gray-200":((M=i.unref(a))==null?void 0:M.sectionIndex)===T&&((z=i.unref(a))==null?void 0:z.componentIndex)===F}])},[i.createElementVNode("div",fp,[p[0]||(p[0]=i.createElementVNode("div",{class:"text-xs text-gray-600"},"Sub-module",-1)),i.createElementVNode("div",hp,i.toDisplayString(O.name),1)]),i.createElementVNode("div",pp,[i.createVNode(i.unref(oo),{class:"h-5 w-5"})])],10,dp)}),256))])):i.createCommentVNode("",!0)]))),256))]),i.createElementVNode("div",mp,[i.unref(a)?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(cu,{key:0})),(i.openBlock(),i.createBlock(i.resolveDynamicComponent(h.value),{class:"min-h-[90vh]",key:((y=i.unref(a))==null?void 0:y.sectionIndex)+((b=i.unref(a))==null?void 0:b.componentIndex),data:i.unref(a),sites:n.sites,onUpdate:d},null,40,["data","sites"]))])]),i.renderSlot(m.$slots,"default",{},()=>[i.createElementVNode("div",gp,[i.createElementVNode("a",{onClick:u,class:"w-[200px] py-[9px] bg-white rounded-full border border-gray-300 shadow-xs text-md font-semibold hover:bg-gray-100 text-gray-700 text-center cursor-pointer"}," Cancel "),i.createElementVNode("a",{onClick:i.withModifiers(d,["prevent"]),class:"w-full py-[9px] rounded-full shadow-xs text-md font-semibold text-white bg-brand-600 hover:bg-brand-700 border border-brand-600 text-center cursor-pointer"},"Save changes")])])])}}},To="data:image/jpeg;base64,AAAAHGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZgAAAOptZXRhAAAAAAAAACFoZGxyAAAAAAAAAABwaWN0AAAAAAAAAAAAAAAAAAAAAA5waXRtAAAAAAABAAAAImlsb2MAAAAAREAAAQABAAAAAAEOAAEAAAAAAAARtAAAACNpaW5mAAAAAAABAAAAFWluZmUCAAAAAAEAAGF2MDEAAAAAamlwcnAAAABLaXBjbwAAABNjb2xybmNseAABAA0ABoAAAAAMYXYxQ4EMDAAAAAAUaXNwZQAAAAAAAAZBAAAGQQAAABBwaXhpAAAAAAMICAgAAAAXaXBtYQAAAAAAAAABAAEEAYIDBAAAEbxtZGF0EgAKChsqsgZA4ICGg0IyoyMRQAEEEEFA9LrNypVG96LMWWcCoG7e3fR+Ni4S+KmSHgWobWA8OtL9vwZBTQcXX7wPCOaSqjXsz7F6l4FRLlK0rP8o5OlSIUR601ydI43hGj9Zmp+aRpVBIDeJVv2kawzorrWwnkCzlZFEN6kIWzNhDWD17lK5jFHp5nVzBnO7b5xDqgQ41jePfiYsmcXTc+mBRKMYDdHKDnPl/8IBX52Y26kxwh/9P6mo2zGVNs0ONs6XQWBAZF4FLOrQA20MzyF4txDPqWsBcwcki9kP0ye4x2YvaF310Dkfqua5RxdagnQIp81oTTmcVFxZXrNgz/NbDxWQbz/z1D+FoX3neKlSbFhq3ucDHwXJEktw8cZ2XEwmctcaK9W4pdEpJcNmr6e+P5AdDI1gEFOIRzxrfwX7huahRibmG/eDl0/UOLLG7W2K9GM9oA4EfGC0bPjq+Jf334oN7xreU0X+TYQJz/0xj9pPHguWOxMDm9si/e6goowSH/lorQ9UvkgeziFfzDstH4yzAIuV68sxclnujfPQhdXX99gMzUcL0sIhl4Rjw1/oYxWSImpbfTD/sCvela/JWOTP0QMQXX+pC/5stV+H1qJFXPiRG8OhXE0d0PS7I4eD8sVdEfCyszn+lGwa+JXDMgdVcufTugRLQj0TkBzxy6//k6wSt25hJlTRACEGLFtkmZDg92hcP1XELKV7GGk0MY2407yrVkFnFhFdo7MORa4zOTSoG4srhkzTnpKmrgu/2wPYleLn8jEHAuKyO9utn9Z3wI2k7zdKIUzGnUjvk4VRAerEWwLsdvapS6+R77tjD8ReIJU1+ffObq2U3/7ddqdkHDrXsX5TtC9hupIhjj7yd2yDXOnU4ptZKlZlz7V96Z3bk4Dzr0DidAz2u1GIVgymuhj3LNiUVabDehwgCN4odwcZiodNOtwfG5DveLcAAthj19sWP7zblztGw/pps07vA0mdKmk2Jg10RZyPSnLZsMaK4/GcfKexJZxnfD5InLXuOrwBCKy2XxH4sdItujUvy/JlAyhwZ9d30WPbav9ZoSXD/xD8xnBoZgT+EsnCyQBrxjgPoW+U8U8hOVPFY7bHXJ9yYfRdBG9g/aWr/e893U07phoIxJeXejmsLobU3qGnN5br4lcKQF0vxxNB5XSaRX26X//78Rq059n0mh8mR9p8CivLohVCCYlVNvYk+M9gPHr0720q1ofNETgYLaly6c4kSsS+f/dn1/5VqNrMfBZ9iCZsmU2jWDgE5JETYjxU/3SNryPwESpkO2TgM+l6/Fv3GR6+58EiLI0WiWvJGxhgi8cQKdcp8kmu563nVw95R1H5EgZ6iT4i7KuHysoFFC8t/sEpmwvbRkZaa5/D5AFIpG5fo5SguTfyjPGIpugqjUmikhv8u2BkUaoZX/zGRzGj8A3iugRk9WoH2zNDcg9PWxAv73+huXdua93kztViDB9dBkW2RZT4v8FOzAMvBozOD6aGxHVqIVVzwsoQBYTtILtoMBPtCkxi6SsTWLLXb0Up6ymtmFFOdGxUTnxMnZkCuVsrEsuErrLEGRPqVFRVtN4ysgq5/a9pwC5kLpF9wyXP699hHNHp4S4+GZCK9w79aUh/OsAlMFeWOxnz0+iG01cCM8Ps7eOaTsYGXnRMZqA5FzklKkttUjQ8M6l7PkUqs/5C5tDrCIYiWDlhSdypaxs2TbUlVBduh/J9kFTpvj948AVLBKOs3gakAHQ5X6c3SxDXdFqB0a41HG+HOERNYquTykXNTqH75tz/RoNXkejf/RUNUZvljVlfEs8eTmpai9sFCHIyFXUaeuzklBpsc9IaL7DakbvgKO8WPcNfcsx4FQh/iMOBqahytkLpGLoElIVtZkjOWxURscH5KvLqd2sWkqk5SiWY/L/Jr9JNUN+NixqcIsEzZIcROG5V/c6FHVsP3voC0DUUofgYCk7bi8GTUN3eJTTh8M0zFG4eWpxIrcjo4fKpeARX/lGqS7HdBij52bWiWSulAfSjz4tJaYSRupL0k28hjjCXLEwEWfHn05iyy9ZTPHF0KlXvlfUrziuV4w16PdJGhNpGs/JYrclGZ90V7HBJkbUh3ZAsXButMqqhasVQdLCMnX2AbuBM3ok7oz84HETQRCdkir7kfo4192LwjzTRMhGK64+GRZ97MVwtF8nN4ngKljikDBOZiWpLLS7lK0t4/tdw3xNVio1ejBNJqhzF7KFJnyHN8jWQWHSujMbgxmrSMNhOp+cNeCG/CJm9zT8lRmYl1vgDSmaAx6CFR6avfdD9p43Etip9rIypLW1nYCZ3T8HE28vnWvOOWKJoUm4Sb6QdTen6WJqaXICS0/uCotX6Ond1LO0WRmelsJb0lm2BabdixgWPgwg/5FA6pmVVMDr67a/n+NWSpwq/IOXs+tmfZowmgwDkistatDsLwKuqSNtpnOYnTBBI8xq7i+pgDtcfzo+GnBy67aUKI4C0HqAdpwZkaSCb7kVhEW6oG1cN7/pwrhy7QA72tqAg88rzt15B3PjwBOUMxIkjmfQ40GA3NwJLPkPqwmjRNLN3lf3zL3H1YClhYrUk9M8HJ2W+rElAcVkEURUrxxbyEoZegA/hXmlU3cmH59DpPKuaLXOEp9gpsV0IB/QAqtjEbToeOT96LOLtYzD+bp2tkxYbnS2IYXQUhFK+M3ETdydEb0bodINuCbglIwkbu1gjylsf3jM8bPelYuBJ8roiI1zwqDKf7xw752r5dnPn+dQ7nMebZBBxsQlgEOLj41vbfm9dlA1a0pKKle+9octPYEWu7y1cJxc7oKHXTC0MkPAH81B/TuiKwOrfkRtocCOLlLzmgeCDurXtp0aWWHunI6S0rO2ea+M4YPb0T3r9OyZ55Xah5/Hi8JYR5IJ8PTEMbuu0GRpwzAd8v+DJP+Z4w2X52Qgm50O8gDNmhu7UsdhKCa2XgwfV3Wz4pJFl4H0y5UuD4ncKETycAKELlLKvW20K62WZFFwAyf/3hrq5uhp5NVc8F1YiECNJXd5oSVL1K6QjOOAmJyBsMyXPn3+QwTrffNqo8FjM5HPP/acHOsXa7yA7MKHBouxu7GG+Ws8kK/+JgsHyicmrqKRxOtBkiLj4qN6A98JUWe9ceFeE3SBSd9pdv/oSHVOxePXpOnWS6/6HULby3QlWngDmexi6sWOHkn1CV/MKOn+NOnvhhbRF35NlPDbPE12l6c5Fs0li9GyNsc5g0sjkdpJ3Zn4f4RS0PItBRualUCgWzE1yABv1Q+GUgh/A/3wyr5WtGiibYJuF8qctNEqCD7wPPxwF3gcepur//pUPmaUQcDBnQGcexUD0yIwVx27+Mm3GFSqQXdU9yQu+jU114Kvh4OsVRQ9jxlhc8TWF1m/rxZc9HPG1mmQs+xpVmKLD6ayR0o/H6wL/3SwpmlltR4TOqwO969YFHdbjDlqRVJmW06nGxHxbgiaXyiMW2tboIaihOQpaM0ljuqNo+uKQxpjU45nf9RJmjxfJzwCXzGiunvtOeE1hHWRLcCD9Q54t5bKohypXgOYwWSFe2I0BPOUQJ8FSJVvZbK+bavXEk8/FwAxsrMe97EmbmrLt2QiWonGGqhViZE2CYVnbCfiunw/sS+YoBjM5N2h9G/KIzPlpKJTt7Awh2bulvNmf4dLZSsIqC0/fnPTtTxRT9HEaXqjlRLp18FnZB0YCkEOmzj5qjl93D6+hHcA7u8lU3Mmd9pnebwmFNyoBkRybmkHntmmyof3dtCREO9ZmPUKcqGkZ5GiYysPJ72Dq8wiHDh5wFdCjpgFdEf7YeAOGHe1TnX5xP3mk3vpeBa/Y3sMfn500UY9AH8X92hzK7SCV1r+zzYRczz/RMHL9s1QwiOFs0YjoTc9bW/gVCDHTLOYfwVcx0jihdMbk2vuoAxsAX0lizu+lSpgVxFEpDZpWj7jpkxmLHf5id6a59EnID/oJp/1pY139OP9S24VoDpD+Qf/NVztiOOLl201VMVmegtirJPNx/A+E81Raod83V4+TpJgr0VFOZ47Rh8qKcpE7ek+Am+TSjG2y5f1akQFofwawgribkgTVLBSKwEffODKdnrbE7z0gSoAbUMOp+6VN8APZRMTQ4gCirN2UxcE7WLAIgBttO7CfhohfhdPvkrIdJHSviQDEGvfXvuAljmwO99qxKgwKB7RWE5k3vzX/qWmmb5Lwfjudvy2x7fEptqcXSq3arrJtGSjGAps/GVMsBma6yJ2qtfcrrCs+CygW3OxYh0CxqFqOjmlD7k8jReF7iUU1SHYPcNPS53m4dCRXW0c2yTqHLmCHQosr1A/K8a1wLQLbRUD22FunagzRyD6VhyjYAMQl6S3T8gtrGVt8qCQWi7aTgs4yBBM4JSJh3/ixTWfJX0MIUDifqKq8enuSmqFx/mCZYo5P5FbYbQf0M4xAOBXOPLCzYJ9/dAyILWH7zbvH+OOs63gYhFNmkZvDqsoDl2ZaN5+d6XGopWfbIgIdekUgnkwGXMzpWvzGzt28sZdikZJ+R2YDS8VyerRdzRHSuPkjl27ffZvfTAdcc2LpeJEXnu+lNPVagGCH6kL0/gV/Cbk32GdFJRxjwDfn3EK9vYLWXuPqb2fwhV2j7RWSd3UhT3hHcVC33zsNc2ADCGzKIj757/PX+bAMOWKLqsE5VhL598Zm3aiZc72FZb/bGmPDNqFk9qowm6lnn2SSGpsI0YnM3+grwfxFFBTYbaLMbvl45nqKzZYxbMi8Bj4w1VtK1tfHFIyp/G15pR1V6qo0MmzMNXaHCtqHq7LJbRNWvZKUaxyX6+IKEWepgloQuXogNqe/FX07tjVXmQTRcCNQMunYQEDjXGfVZMNzo5ANpOrmOZBJSWAXTbb6YVi5O14p/c9otJPzD4MFELg1mxMGi1P2BHitTT5AJEdYpLrOWKNfyuTKWSJRdhl1wgAkS01HUBZ8U0fX/ObZCDARNVyGUzjTG8ADGbHRVFLAufzah3fZWcEuy/WSaPEG51LEugrZbDAclC2+ma9TFjb/bX9/Qup/nZSFqF5XGmBv6rBpIC0FukNKpy6PXI2PcUaWbEChrYaMODNcz/WP7ePJfeezVEekcl7kV2fNgrz+FJ3SOWtPnLNXcp1deGzgwMW/FtLO8PADkxRtS7p3NwuqxgcsK8v6Qwtv5uWs5POKYuXuIb2cBMXEfhlqWyZLldk3e0hMThlmzpkvJLkDH5JsK2Ls8xQkVO3Xhcm2boZd2fKwYc+2p5x752JjOirMNAL3NlfrdkQq1//VMIjWbKxV2RAijFSjNJTBTxVPpuZNPmmKhH367BwMftROfOOdP3KYIeequ6nShktuYSOZJVRp7NeiPnGwO7rax5U9r3lnie+84sFK66fRpguuAz8Kg1PnJYUsC5W39cHnQbkZ7KUQLHCDpVI64kOdhxmrYu5OGAkIJkRHQbb/QtM+iUtvfPgAl/8WL+pZ4Hanm07MeTXcjie8Jq6o6G6lF/VXyzZFQGwonffQzb+WHgXdlHlYtPglo5CS7fzAQP7EYPM8PShZnmkysxTrA2fS/UVwlLhqNr1CaMFHaRXO/NJhuiufe83tot7jhyl9vXa9n0047EfylrX8305tvshCwyjRdow1w/1ddWI+dh4W6UpYz0jIVaNbotWQcgZG7gM2+6oTtDhDAQwlsBg0xijwuUTFFuQFSa1+uUPDWnIybAuvuHkE1wOIEWXO2gI7j2A8JbQq4hd+jt03ztXEGlyqJpQ4S5m8BD+oghq0GJKcuyMjJVfGow63d7CAs4DU99U37hHlQ1bI1YPidy6vGLmoYi4TZUYPq9t9vNyO1NtSYwVPO18sLbhsv2TJzQQ1Sw0dAu5llcisY2G1YCIVQO54Klh4D13C1miwtBQuHViO45hfwzPL4i6j9Iiw/Tm52I1U1IYm9w846xdKgNj9ao2+aw1AJfcajS3gej36pd+1YHYtyTHs3Q57X1kj8Hjnq5dLASg4CZ/oTb12TJsfFPzmidqg0O0iAohcFTz6mJ/Gqrdt1UA=",vp={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function bp(n,e){return i.openBlock(),i.createElementBlock("svg",vp,e[0]||(e[0]=[i.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M7 17 17 7m0 0H7m10 0v10"},null,-1)]))}const er={render:bp};/**
14
14
  * Vue 3 Carousel 0.15.1
15
15
  * (c) 2025
16
16
  * @license MIT
17
- */const La=["viewport","carousel"],xs={"bottom-to-top":"btt","left-to-right":"ltr","right-to-left":"rtl","top-to-bottom":"ttb"},Ba=["ltr","left-to-right","rtl","right-to-left","ttb","top-to-bottom","btt","bottom-to-top"],xp={ariaGallery:"Gallery",ariaNavigateToPage:"Navigate to page {slideNumber}",ariaNavigateToSlide:"Navigate to slide {slideNumber}",ariaNextSlide:"Navigate to next slide",ariaPreviousSlide:"Navigate to previous slide",iconArrowDown:"Arrow pointing downwards",iconArrowLeft:"Arrow pointing to the left",iconArrowRight:"Arrow pointing to the right",iconArrowUp:"Arrow pointing upwards",itemXofY:"Item {currentSlide} of {slidesCount}"},Pa=["slide","fade"],Fa=["center","start","end","center-even","center-odd"],Ma=10,Es=.3,nt={autoplay:0,breakpointMode:La[0],breakpoints:void 0,dir:Ba[0],enabled:!0,gap:0,height:"auto",i18n:xp,ignoreAnimations:!1,itemsToScroll:1,itemsToShow:1,modelValue:0,mouseDrag:!0,mouseWheel:!1,pauseAutoplayOnHover:!1,preventExcessiveDragging:!1,slideEffect:Pa[0],snapAlign:Fa[0],touchDrag:!0,transition:300,wrapAround:!1},Mn=Symbol("carousel"),Ep=n=>{const e=i.shallowReactive([]),t=r=>{r!==void 0?e.slice(r).forEach((s,l)=>{var a;(a=s.exposed)===null||a===void 0||a.setIndex(r+l)}):e.forEach((s,l)=>{var a;(a=s.exposed)===null||a===void 0||a.setIndex(l)})};return{cleanup:()=>{e.splice(0,e.length)},getSlides:()=>e,registerSlide:(r,s)=>{if(!r||r.props.isClone)return;const l=s??e.length;e.splice(l,0,r),t(l),n("slide-registered",{slide:r,index:l})},unregisterSlide:r=>{const s=e.indexOf(r);s!==-1&&(n("slide-unregistered",{slide:r,index:s}),e.splice(s,1),t(s))}}};function wp(n){return n.length===0?0:n.reduce((t,r)=>t+r,0)/n.length}function Da({slides:n,position:e,toShow:t}){const r=[],s=e==="before",l=s?-t:0,a=s?0:t;if(n.length<=0)return r;for(let c=l;c<a;c++){const u={index:s?c:c+n.length,isClone:!0,id:void 0,key:`clone-${e}-${c}`},d=n[(c%n.length+n.length)%n.length].vnode,h=i.cloneVNode(d,u);h.el=null,r.push(h)}return r}const Ap='a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])';function Ua(n){if(!n.el||!(n.el instanceof Element))return;const e=n.el.querySelectorAll(Ap);for(const t of e)t instanceof HTMLElement&&!t.hasAttribute("disabled")&&t.getAttribute("aria-hidden")!=="true"&&t.setAttribute("tabindex","-1")}function Sp(n,e){return Object.keys(n).filter(t=>!e.includes(t)).reduce((t,r)=>(t[r]=n[r],t),{})}function Tp(n){const{isVertical:e,isReversed:t,dragged:r,effectiveSlideSize:s,threshold:l}=n,a=e?r.y:r.x;if(a===0)return 0;const c=a/s,o=Math.abs(c);if(o<l)return 0;const u=o<1?Math.sign(c):Math.round(c);return t?u:-u}function cn({val:n,max:e,min:t}){return e<t?n:Math.min(Math.max(n,isNaN(t)?n:t),isNaN(e)?n:e)}function Np(n){const{transform:e}=window.getComputedStyle(n);return e.split(/[(,)]/).slice(1,-1).map(t=>parseFloat(t))}function kp(n){let e=1,t=1;return n.forEach(r=>{const s=Np(r);s.length===6&&(e/=s[0],t/=s[3])}),{widthMultiplier:e,heightMultiplier:t}}function Cp(n,e){switch(n){case"start":return 0;case"center":case"center-odd":return(e-1)/2;case"center-even":return(e-2)/2;case"end":return e-1;default:return 0}}function Op(n,e,t){switch(n){case"start":return 0;case"center":case"center-odd":return(t-e)/2;case"center-even":return t/2-e;case"end":return t-e;default:return 0}}function No({slideSize:n,viewportSize:e,align:t,itemsToShow:r}){return r!==void 0?Cp(t,r):n!==void 0&&e!==void 0?Op(t,n,e):0}function _a(n="",e={}){return Object.entries(e).reduce((t,[r,s])=>t.replace(`{${r}}`,String(s)),n)}function Va({val:n,max:e,min:t=0}){const r=e-t+1;return((n-t)%r+r)%r+t}function ko(n,e=0){let t=!1,r=0,s=null;function l(...a){if(t)return;t=!0;const c=()=>{s=requestAnimationFrame(o=>{o-r>e?(r=o,n(...a),t=!1):c()})};c()}return l.cancel=()=>{s&&(cancelAnimationFrame(s),s=null,t=!1)},l}function ws(n,e="px"){if(!(n==null||n===""))return typeof n=="number"||parseFloat(n).toString()===n?`${n}${e}`:n}const Rp=i.defineComponent({name:"CarouselAria",setup(){const n=i.inject(Mn);return n?()=>i.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},_a(n.config.i18n.itemXofY,{currentSlide:n.currentSlide+1,slidesCount:n.slidesCount})):()=>""}});function Ip(n){let e=!1;const t={x:0,y:0},r=i.reactive({x:0,y:0}),s=i.ref(!1),{isSliding:l}=n,a=i.computed(()=>typeof l=="boolean"?l:l.value),c=d=>{var h;const f=d.target.tagName;if(["INPUT","TEXTAREA","SELECT"].includes(f)||a.value||(e=d.type==="touchstart",e&&d.touches.length>1))return;if(!e&&(d.preventDefault(),d.button!==0))return;t.x=e?d.touches[0].clientX:d.clientX,t.y=e?d.touches[0].clientY:d.clientY;const m=e?"touchmove":"mousemove",p=e?"touchend":"mouseup";document.addEventListener(m,o,{passive:!1}),document.addEventListener(p,u,{passive:!0}),(h=n.onDragStart)===null||h===void 0||h.call(n)},o=ko(d=>{var h;if(e&&d.touches.length>1)return;s.value=!0;const f=e?d.touches[0].clientX:d.clientX,m=e?d.touches[0].clientY:d.clientY;r.x=f-t.x,r.y=m-t.y,(h=n.onDrag)===null||h===void 0||h.call(n,{deltaX:r.x,deltaY:r.y,isTouch:e})}),u=()=>{var d;o.cancel();const h=Math.abs(r.x)+Math.abs(r.y);!e&&h>10&&window.addEventListener("click",p=>{p.preventDefault(),p.stopPropagation()},{once:!0,capture:!0}),(d=n.onDragEnd)===null||d===void 0||d.call(n),r.x=0,r.y=0,s.value=!1;const f=e?"touchmove":"mousemove",m=e?"touchend":"mouseup";document.removeEventListener(f,o),document.removeEventListener(m,u)};return{dragged:r,isDragging:s,handleDragStart:c}}function Lp(){const n=i.ref(!1);return{isHover:n,handleMouseEnter:()=>{n.value=!0},handleMouseLeave:()=>{n.value=!1}}}function Bp(n){const{isVertical:e,isSliding:t,config:r}=n,s=i.computed(()=>typeof e=="boolean"?e:e.value),l=i.computed(()=>typeof t=="boolean"?t:t.value);return{handleScroll:c=>{var o,u;if(c.preventDefault(),!r.mouseWheel||l.value)return;const d=typeof r.mouseWheel=="object"&&(o=r.mouseWheel.threshold)!==null&&o!==void 0?o:Ma,h=Math.abs(c.deltaY)>d?c.deltaY:0,f=Math.abs(c.deltaX)>d?c.deltaX:0;if(h===0&&f===0)return;const m=s.value?h:f,y=(m!==0?m:s.value?f:h)>0;(u=n.onWheel)===null||u===void 0||u.call(n,{deltaX:f,deltaY:h,isScrollingForward:y})}}}const Pp={autoplay:{default:nt.autoplay,type:Number},breakpoints:{default:nt.breakpoints,type:Object},breakpointMode:{default:nt.breakpointMode,validator(n){return La.includes(n)}},clamp:{type:Boolean},dir:{type:String,default:nt.dir,validator(n,e){if(!Ba.includes(n))return!1;const t=n in xs?xs[n]:n;return["ttb","btt"].includes(t)&&(!e.height||e.height==="auto")&&console.warn(`[vue3-carousel]: The dir "${n}" is not supported with height "auto".`),!0}},enabled:{default:nt.enabled,type:Boolean},gap:{default:nt.gap,type:Number},height:{default:nt.height,type:[Number,String]},i18n:{default:nt.i18n,type:Object},ignoreAnimations:{default:!1,type:[Array,Boolean,String]},itemsToScroll:{default:nt.itemsToScroll,type:Number},itemsToShow:{default:nt.itemsToShow,type:[Number,String]},modelValue:{default:void 0,type:Number},mouseDrag:{default:nt.mouseDrag,type:[Boolean,Object]},mouseWheel:{default:nt.mouseWheel,type:[Boolean,Object]},mouseScrollThreshold:{default:nt.mouseScrollThreshold,type:Number},pauseAutoplayOnHover:{default:nt.pauseAutoplayOnHover,type:Boolean},preventExcessiveDragging:{default:!1,type:Boolean,validator(n,e){return n&&e.wrapAround&&console.warn('[vue3-carousel]: "preventExcessiveDragging" cannot be used with wrapAround. The setting will be ignored.'),!0}},slideEffect:{type:String,default:nt.slideEffect,validator(n){return Pa.includes(n)}},snapAlign:{default:nt.snapAlign,validator(n){return Fa.includes(n)}},touchDrag:{default:nt.touchDrag,type:[Boolean,Object]},transition:{default:nt.transition,type:Number},wrapAround:{default:nt.wrapAround,type:Boolean}},Fp=i.defineComponent({name:"VueCarousel",props:Pp,emits:["before-init","drag","init","loop","slide-end","slide-registered","slide-start","slide-unregistered","update:modelValue","wheel"],setup(n,{slots:e,emit:t,expose:r}){var s;const l=Ep(t),a=l.getSlides(),c=i.computed(()=>a.length),o=i.ref(null),u=i.ref(null),d=i.ref(0),h=i.computed(()=>Object.assign(Object.assign(Object.assign({},nt),Sp(n,["breakpoints","modelValue"])),{i18n:Object.assign(Object.assign({},nt.i18n),n.i18n)})),f=i.shallowReactive(Object.assign({},h.value)),m=i.ref((s=n.modelValue)!==null&&s!==void 0?s:0),p=i.ref(m.value);i.watch(m,pe=>p.value=pe);const y=i.ref(0),b=i.computed(()=>Math.ceil((c.value-1)/2)),A=i.computed(()=>c.value-1),T=i.computed(()=>0);let O=null,F=null,M=null;const z=i.computed(()=>d.value+f.gap),X=i.computed(()=>{const pe=f.dir||"ltr";return pe in xs?xs[pe]:pe}),H=i.computed(()=>["rtl","btt"].includes(X.value)),re=i.computed(()=>["ttb","btt"].includes(X.value)),G=i.computed(()=>f.itemsToShow==="auto"),E=i.computed(()=>re.value?"height":"width");function P(){var pe;if(!he.value)return;const be=(h.value.breakpointMode==="carousel"?(pe=o.value)===null||pe===void 0?void 0:pe.getBoundingClientRect().width:typeof window<"u"?window.innerWidth:0)||0,Ce=Object.keys(n.breakpoints||{}).map(Re=>Number(Re)).sort((Re,je)=>+je-+Re),Ie={};Ce.some(Re=>be>=Re?(Object.assign(Ie,n.breakpoints[Re]),Ie.i18n&&Object.assign(Ie.i18n,h.value.i18n,n.breakpoints[Re].i18n),!0):!1),Object.assign(f,h.value,Ie),G.value||(f.itemsToShow=cn({val:Number(f.itemsToShow),max:n.clamp?c.value:1/0,min:1}))}const k=ko(()=>{P(),te(),J()}),$=i.shallowReactive(new Set),_=i.ref([]);function V({widthMultiplier:pe,heightMultiplier:be}){_.value=a.map(Ce=>{var Ie;const Re=(Ie=Ce.exposed)===null||Ie===void 0?void 0:Ie.getBoundingRect();return{width:Re.width*pe,height:Re.height*be}})}const K=i.ref({width:0,height:0});function q({widthMultiplier:pe,heightMultiplier:be}){var Ce;const Ie=((Ce=u.value)===null||Ce===void 0?void 0:Ce.getBoundingClientRect())||{width:0,height:0};K.value={width:Ie.width*pe,height:Ie.height*be}}function J(){if(!u.value)return;const pe=kp($);if(q(pe),V(pe),G.value)d.value=wp(_.value.map(be=>be[E.value]));else{const be=Number(f.itemsToShow),Ce=(be-1)*f.gap;d.value=(K.value[E.value]-Ce)/be}}function te(){!f.wrapAround&&c.value>0&&(m.value=cn({val:m.value,max:A.value,min:T.value}))}const me=i.computed(()=>typeof n.ignoreAnimations=="string"?n.ignoreAnimations.split(","):Array.isArray(n.ignoreAnimations)?n.ignoreAnimations:n.ignoreAnimations?!1:[]);i.watchEffect(()=>te()),i.watchEffect(()=>{J()});let ge;const ye=pe=>{const be=pe.target;if(!(!(be!=null&&be.contains(o.value))||Array.isArray(me.value)&&me.value.includes(pe.animationName))&&($.add(be),!ge)){const Ce=()=>{ge=requestAnimationFrame(()=>{J(),Ce()})};Ce()}},xe=pe=>{const be=pe.target;be&&$.delete(be),ge&&$.size===0&&(cancelAnimationFrame(ge),J())},he=i.ref(!1);typeof document<"u"&&i.watchEffect(()=>{he.value&&me.value!==!1?(document.addEventListener("animationstart",ye),document.addEventListener("animationend",xe)):(document.removeEventListener("animationstart",ye),document.removeEventListener("animationend",xe))}),i.onMounted(()=>{he.value=!0,P(),v(),o.value&&(M=new ResizeObserver(k),M.observe(o.value)),t("init")}),i.onBeforeUnmount(()=>{he.value=!1,l.cleanup(),F&&clearTimeout(F),ge&&cancelAnimationFrame(ge),O&&clearInterval(O),M&&(M.disconnect(),M=null),typeof document<"u"&&w(),o.value&&(o.value.removeEventListener("transitionend",J),o.value.removeEventListener("animationiteration",J))});const{isHover:ke,handleMouseEnter:ve,handleMouseLeave:N}=Lp(),R=ko(pe=>{if(!pe.ctrlKey)switch(pe.key){case"ArrowLeft":case"ArrowUp":re.value===pe.key.endsWith("Up")&&(H.value?ie(!0):fe(!0));break;case"ArrowRight":case"ArrowDown":re.value===pe.key.endsWith("Down")&&(H.value?fe(!0):ie(!0));break}},200),w=()=>{document.removeEventListener("keydown",R)},C=()=>{document.addEventListener("keydown",R)};function v(){!f.autoplay||f.autoplay<=0||(O=setInterval(()=>{f.pauseAutoplayOnHover&&ke.value||ie()},f.autoplay))}function x(){I(),v()}function I(){O&&(clearInterval(O),O=null)}const B=i.ref(!1),U=({deltaX:pe,deltaY:be,isTouch:Ce})=>{var Ie,Re,je,Ke;t("drag",{deltaX:pe,deltaY:be});const et=Ce?typeof f.touchDrag=="object"&&(Re=(Ie=f.touchDrag)===null||Ie===void 0?void 0:Ie.threshold)!==null&&Re!==void 0?Re:Es:typeof f.mouseDrag=="object"&&(Ke=(je=f.mouseDrag)===null||je===void 0?void 0:je.threshold)!==null&&Ke!==void 0?Ke:Es,dt=Tp({isVertical:re.value,isReversed:H.value,dragged:{x:pe,y:be},effectiveSlideSize:z.value,threshold:et});dt!==0&&(p.value=f.wrapAround?m.value+dt:cn({val:m.value+dt,max:A.value,min:T.value}))},j=()=>we(p.value),{dragged:W,isDragging:Z,handleDragStart:Y}=Ip({isSliding:B,onDrag:U,onDragEnd:j}),Q=({deltaX:pe,deltaY:be,isScrollingForward:Ce})=>{t("wheel",{deltaX:pe,deltaY:be}),Ce?H.value?fe():ie():H.value?ie():fe()},{handleScroll:ne}=Bp({isVertical:re,isSliding:B,config:f,onWheel:Q});function ie(pe=!1){we(m.value+f.itemsToScroll,pe)}function fe(pe=!1){we(m.value-f.itemsToScroll,pe)}function we(pe,be=!1){if(!be&&B.value)return;let Ce=pe,Ie=pe;y.value=m.value,f.wrapAround?Ie=Va({val:Ce,max:A.value,min:T.value}):Ce=cn({val:Ce,max:A.value,min:T.value}),t("slide-start",{slidingToIndex:pe,currentSlideIndex:m.value,prevSlideIndex:y.value,slidesCount:c.value}),I(),B.value=!0,m.value=Ce,Ie!==Ce&&Ge.pause(),t("update:modelValue",Ie),F=setTimeout(()=>{f.wrapAround&&Ie!==Ce&&(Ge.resume(),m.value=Ie,t("loop",{currentSlideIndex:m.value,slidingToIndex:pe})),t("slide-end",{currentSlideIndex:m.value,prevSlideIndex:y.value,slidesCount:c.value}),B.value=!1,x()},f.transition)}function De(){P(),te(),J(),x()}i.watch(()=>[h.value,n.breakpoints],()=>P(),{deep:!0}),i.watch(()=>n.autoplay,()=>x());const Ge=i.watch(()=>n.modelValue,pe=>{pe!==m.value&&we(Number(pe),!0)});t("before-init");const _e=i.computed(()=>{if(!f.wrapAround)return{before:0,after:0};if(G.value)return{before:a.length,after:a.length};const pe=Number(f.itemsToShow),be=Math.ceil(pe+(f.itemsToScroll-1)),Ce=be-p.value,Ie=be-(c.value-(p.value+1));return{before:Math.max(0,Ce),after:Math.max(0,Ie)}}),Be=i.computed(()=>_e.value.before?G.value?_.value.slice(-1*_e.value.before).reduce((pe,be)=>pe+be[E.value]+f.gap,0)*-1:_e.value.before*z.value*-1:0),Ve=i.computed(()=>{var pe;if(G.value){const be=(m.value%a.length+a.length)%a.length;return No({slideSize:(pe=_.value[be])===null||pe===void 0?void 0:pe[E.value],viewportSize:K.value[E.value],align:f.snapAlign})}return No({align:f.snapAlign,itemsToShow:+f.itemsToShow})}),rt=i.computed(()=>{let pe=0;if(G.value){if(m.value<0?pe=_.value.slice(m.value).reduce((be,Ce)=>be+Ce[E.value]+f.gap,0)*-1:pe=_.value.slice(0,m.value).reduce((be,Ce)=>be+Ce[E.value]+f.gap,0),pe-=Ve.value,!f.wrapAround){const be=_.value.reduce((Ce,Ie)=>Ce+Ie[E.value]+f.gap,0)-K.value[E.value]-f.gap;pe=cn({val:pe,max:be,min:0})}}else{let be=m.value-Ve.value;f.wrapAround||(be=cn({val:be,max:c.value-+f.itemsToShow,min:0})),pe=be*z.value}return pe*(H.value?1:-1)}),ot=i.computed(()=>{var pe,be;if(!G.value){const Re=m.value-Ve.value;return f.wrapAround?{min:Math.floor(Re),max:Math.ceil(Re+Number(f.itemsToShow)-1)}:{min:Math.floor(cn({val:Re,max:c.value-Number(f.itemsToShow),min:0})),max:Math.ceil(cn({val:Re+Number(f.itemsToShow)-1,max:c.value-1,min:0}))}}let Ce=0;{let Re=0,je=0-_e.value.before;const Ke=Math.abs(rt.value+Be.value);for(;Re<=Ke;){const et=(je%a.length+a.length)%a.length;Re+=((pe=_.value[et])===null||pe===void 0?void 0:pe[E.value])+f.gap,je++}Ce=je-1}let Ie=0;{let Re=Ce,je=0;for(Re<0?je=_.value.slice(0,Re).reduce((Ke,et)=>Ke+et[E.value]+f.gap,0)-Math.abs(rt.value+Be.value):je=_.value.slice(0,Re).reduce((Ke,et)=>Ke+et[E.value]+f.gap,0)-Math.abs(rt.value);je<K.value[E.value];){const Ke=(Re%a.length+a.length)%a.length;je+=((be=_.value[Ke])===null||be===void 0?void 0:be[E.value])+f.gap,Re++}Ie=Re-1}return{min:Math.floor(Ce),max:Math.ceil(Ie)}}),Dt=i.computed(()=>{if(f.slideEffect==="fade")return;const pe=re.value?"Y":"X",be=re.value?W.y:W.x;let Ce=rt.value+be;if(!f.wrapAround&&f.preventExcessiveDragging){let Ie=0;G.value?Ie=_.value.reduce((Ke,et)=>Ke+et[E.value],0):Ie=(c.value-Number(f.itemsToShow))*z.value;const Re=H.value?0:-1*Ie,je=H.value?Ie:0;Ce=cn({val:Ce,min:Re,max:je})}return`translate${pe}(${Ce}px)`}),bt=i.computed(()=>({"--vc-carousel-height":ws(f.height),"--vc-cloned-offset":ws(Be.value),"--vc-slide-gap":ws(f.gap),"--vc-transition-duration":B.value?ws(f.transition,"ms"):void 0})),$e={slideTo:we,next:ie,prev:fe},Pe=i.reactive({activeSlide:p,config:f,currentSlide:m,isSliding:B,isVertical:re,maxSlide:A,minSlide:T,nav:$e,normalizedDir:X,slideRegistry:l,slideSize:d,slides:a,slidesCount:c,viewport:u,visibleRange:ot});i.provide(Mn,Pe);const We=i.reactive({config:f,currentSlide:m,maxSlide:A,middleSlide:b,minSlide:T,slideSize:d,slidesCount:c});return r(i.reactive(Object.assign({data:We,next:ie,prev:fe,restartCarousel:De,slideTo:we,updateBreakpointsConfig:P,updateSlideSize:J,updateSlidesData:te},i.toRefs(Pe)))),()=>{var pe;const be=e.default||e.slides,Ce=(be==null?void 0:be(We))||[],{before:Ie,after:Re}=_e.value,je=Da({slides:a,position:"before",toShow:Ie}),Ke=Da({slides:a,position:"after",toShow:Re}),et=[...je,...Ce,...Ke];if(!f.enabled||!et.length)return i.h("section",{ref:o,class:["carousel","is-disabled"]},et);const dt=((pe=e.addons)===null||pe===void 0?void 0:pe.call(e,We))||[],ft=i.h("ol",{class:"carousel__track",onMousedownCapture:f.mouseDrag?Y:null,onTouchstartPassiveCapture:f.touchDrag?Y:null,onWheel:f.mouseWheel?ne:null,style:{transform:Dt.value}},et),Rt=i.h("div",{class:"carousel__viewport",ref:u},ft);return i.h("section",{ref:o,class:["carousel",`is-${X.value}`,`is-effect-${f.slideEffect}`,{"is-dragging":Z.value,"is-hover":ke.value,"is-sliding":B.value,"is-vertical":re.value}],dir:X.value,style:bt.value,"aria-label":f.i18n.ariaGallery,tabindex:"0",onBlur:w,onFocus:C,onMouseenter:ve,onMouseleave:N},[Rt,dt,i.h(Rp)])}}});var Co;(function(n){n.arrowDown="arrowDown",n.arrowLeft="arrowLeft",n.arrowRight="arrowRight",n.arrowUp="arrowUp"})(Co||(Co={}));const ja=n=>`icon${n.charAt(0).toUpperCase()+n.slice(1)}`,Mp={arrowDown:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z",arrowLeft:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z",arrowRight:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z",arrowUp:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"};function Dp(n){return n in Co}const $a=n=>n&&Dp(n),qa=i.defineComponent({props:{name:{type:String,required:!0,validator:$a},title:{type:String,default:n=>n.name?nt.i18n[ja(n.name)]:""}},setup(n){const e=i.inject(Mn,null);return()=>{const t=n.name;if(!t||!$a(t))return;const r=Mp[t],s=i.h("path",{d:r}),l=(e==null?void 0:e.config.i18n[ja(t)])||n.title,a=i.h("title",l);return i.h("svg",{class:"carousel__icon",viewBox:"0 0 24 24",role:"img","aria-label":l},[a,s])}}});i.defineComponent({name:"CarouselNavigation",inheritAttrs:!1,props:{carousel:{type:Object}},setup(n,{slots:e,attrs:t}){let r=i.inject(Mn,null);const{next:s,prev:l}=e,a=()=>({btt:"arrowDown",ltr:"arrowLeft",rtl:"arrowRight",ttb:"arrowUp"})[r.normalizedDir],c=()=>({btt:"arrowUp",ltr:"arrowRight",rtl:"arrowLeft",ttb:"arrowDown"})[r.normalizedDir],o=i.computed(()=>!r.config.wrapAround&&r.currentSlide<=r.minSlide),u=i.computed(()=>!r.config.wrapAround&&r.currentSlide>=r.maxSlide);return()=>{if(n.carousel&&(r=n.carousel),!r)return console.warn("[vue3-carousel]: A carousel component must be provided for the navigation component to display"),"";const{i18n:d}=r.config,h=i.h("button",Object.assign(Object.assign({type:"button",disabled:o.value,"aria-label":d.ariaPreviousSlide,title:d.ariaPreviousSlide,onClick:r.nav.prev},t),{class:["carousel__prev",{"carousel__prev--disabled":o.value},t.class]}),(l==null?void 0:l())||i.h(qa,{name:a()})),f=i.h("button",Object.assign(Object.assign({type:"button",disabled:u.value,"aria-label":d.ariaNextSlide,title:d.ariaNextSlide,onClick:r.nav.next},t),{class:["carousel__next",{"carousel__next--disabled":u.value},t.class]}),(s==null?void 0:s())||i.h(qa,{name:c()}));return[h,f]}}}),i.defineComponent({name:"CarouselPagination",props:{disableOnClick:{type:Boolean},paginateByItemsToShow:{type:Boolean},carousel:{type:Object}},setup(n){let e=i.inject(Mn,null);const t=i.computed(()=>e.config.itemsToShow),r=i.computed(()=>No({align:e.config.snapAlign,itemsToShow:t.value})),s=i.computed(()=>n.paginateByItemsToShow&&t.value>1),l=i.computed(()=>Math.ceil((e.activeSlide-r.value)/t.value)),a=i.computed(()=>Math.ceil(e.slidesCount/t.value)),c=o=>Va(s.value?{val:l.value,max:a.value-1,min:0}:{val:e.activeSlide,max:e.maxSlide,min:e.minSlide})===o;return()=>{var o,u;if(n.carousel&&(e=n.carousel),!e)return console.warn("[vue3-carousel]: A carousel component must be provided for the pagination component to display"),"";const d=[];for(let h=s.value?0:e.minSlide;h<=(s.value?a.value-1:e.maxSlide);h++){const f=_a(e.config.i18n[s.value?"ariaNavigateToPage":"ariaNavigateToSlide"],{slideNumber:h+1}),m=c(h),p=i.h("button",{type:"button",class:{"carousel__pagination-button":!0,"carousel__pagination-button--active":m},"aria-label":f,"aria-pressed":m,"aria-controls":(u=(o=e.slides[h])===null||o===void 0?void 0:o.exposed)===null||u===void 0?void 0:u.id,title:f,disabled:n.disableOnClick,onClick:()=>e.nav.slideTo(s.value?Math.floor(h*+e.config.itemsToShow+r.value):h)}),y=i.h("li",{class:"carousel__pagination-item",key:h},p);d.push(y)}return i.h("ol",{class:"carousel__pagination"},d)}}});const Up=i.defineComponent({name:"CarouselSlide",props:{id:{type:String,default:n=>n.isClone?void 0:i.useId()},index:{type:Number,default:void 0},isClone:{type:Boolean,default:!1}},setup(n,{attrs:e,slots:t,expose:r}){const s=i.inject(Mn);if(i.provide(Mn,void 0),!s)return()=>"";const l=i.ref(n.index),a=p=>{l.value=p},c=i.getCurrentInstance(),o=()=>{const p=c.vnode.el;return p?p.getBoundingClientRect():{width:0,height:0}};r({id:n.id,setIndex:a,getBoundingRect:o});const u=i.computed(()=>l.value===s.activeSlide),d=i.computed(()=>l.value===s.activeSlide-1),h=i.computed(()=>l.value===s.activeSlide+1),f=i.computed(()=>l.value>=s.visibleRange.min&&l.value<=s.visibleRange.max),m=i.computed(()=>{if(s.config.itemsToShow==="auto")return;const p=s.config.itemsToShow,y=s.config.gap>0&&p>1?`calc(${100/p}% - ${s.config.gap*(p-1)/p}px)`:`${100/p}%`;return s.isVertical?{height:y}:{width:y}});return s.slideRegistry.registerSlide(c,n.index),i.onUnmounted(()=>{s.slideRegistry.unregisterSlide(c)}),n.isClone&&(i.onMounted(()=>{Ua(c.vnode)}),i.onUpdated(()=>{Ua(c.vnode)})),()=>{var p,y;return s.config.enabled?i.h("li",{style:[e.style,Object.assign({},m.value)],class:{carousel__slide:!0,"carousel__slide--clone":n.isClone,"carousel__slide--visible":f.value,"carousel__slide--active":u.value,"carousel__slide--prev":d.value,"carousel__slide--next":h.value,"carousel__slide--sliding":s.isSliding},onFocusin:()=>{s.viewport&&(s.viewport.scrollLeft=0),s.nav.slideTo(l.value)},id:n.isClone?void 0:n.id,"aria-hidden":n.isClone||void 0},(y=t.default)===null||y===void 0?void 0:y.call(t,{currentIndex:l.value,isActive:u.value,isClone:n.isClone,isPrev:d.value,isNext:h.value,isSliding:s.isSliding,isVisible:f.value})):(p=t.default)===null||p===void 0?void 0:p.call(t)}}}),_p={class:"flex h-[872px] w-full bg-navy-800 relative rounded-[48px] z-10"},Vp={class:"lg:p-8 p-4 flex relative w-full"},jp={class:"lg:w-1/2 lg:pl-8 lg:pr-16 pl-4 pr-8 flex flex-col lg:mt-[218px] mt-[100px] absolute top-0 left-5 lg:relative"},$p={class:"gap-2 flex z-10 mb-4"},qp=["onClick"],zp={class:"lg:text-[48px] text-[40px] font-semibold text-white mb-3 lg:leading-normal leading-[48px]"},Hp=["innerHTML"],Gp={class:"flex gap-3 mt-8 flex-col lg:flex-row"},Wp=["href","target"],Kp=["href","target"],Xp=["src"],Yp={key:1,class:"rounded-[40px] h-[674px] max-w-[882px] lg:w-1/2 w-full object-cover",src:To},Zp=Zn({__name:"VSliderPresenter",props:{component:{required:!0,type:Object}},setup(n){const e=n,t=i.ref(0),s=i.ref(e.component).value.data.filter(a=>a.public),l=a=>a.startsWith("http")?a:`//${a}`;return(a,c)=>(i.openBlock(),i.createElementBlock("div",_p,[i.createVNode(i.unref(Fp),{"items-to-show":1,modelValue:t.value,"onUpdate:modelValue":c[0]||(c[0]=o=>t.value=o),autoplay:5e3,class:"carousel w-full","wrap-around":!0},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(s),(o,u)=>(i.openBlock(),i.createBlock(i.unref(Up),{key:u},{default:i.withCtx(()=>[i.createElementVNode("div",Vp,[i.createElementVNode("div",jp,[i.createElementVNode("div",$p,[i.unref(s).length>1?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:0},i.renderList(i.unref(s),(d,h)=>(i.openBlock(),i.createElementBlock("a",{onClick:f=>t.value=h,class:i.normalizeClass(["w-4 h-1 bg-navy-400 rounded-full cursor-pointer",{"!w-12 !bg-white":t.value===h}])},null,10,qp))),256)):i.createCommentVNode("",!0)]),i.createElementVNode("h3",zp,i.toDisplayString(o==null?void 0:o.title),1),i.createElementVNode("p",{class:"text-lg font-normal text-navy-50",innerHTML:o==null?void 0:o.description},null,8,Hp),i.createElementVNode("div",Gp,[o.secondary_button.show?(i.openBlock(),i.createElementBlock("a",{key:0,class:"text-white text-base font-semibold border border-white px-6 py-2 rounded-full hover:bg-navy-800 hover:opacity-60",href:l(o.secondary_button.url),target:o.secondary_button.open_in_new_tab?"_blank":""},[i.createElementVNode("span",null,i.toDisplayString(o.secondary_button.label),1)],8,Wp)):i.createCommentVNode("",!0),o.primary_button.show?(i.openBlock(),i.createElementBlock("a",{key:1,class:"flex items-center gap-2 text-navy-800 bg-white text-base font-semibold border border-white px-6 py-2 rounded-full hover:bg-navy-50",href:l(o.primary_button.url),target:o.primary_button.open_in_new_tab?"_blank":""},[i.createTextVNode(i.toDisplayString(o.primary_button.label)+" ",1),i.createVNode(i.unref(er),{class:"w-5 h-5"})],8,Kp)):i.createCommentVNode("",!0)])]),o.featured_image?(i.openBlock(),i.createElementBlock("img",{key:0,src:o.featured_image,alt:"Slide Image",class:"rounded-[40px] h-[674px] max-w-[882px] lg:w-1/2 w-full object-cover"},null,8,Xp)):(i.openBlock(),i.createElementBlock("img",Yp))])]),_:2},1024))),128))]),_:1},8,["modelValue"])]))}},[["__scopeId","data-v-960591f8"]]),Qp=["target","href"],za={__name:"VLinkPresenter",props:{component:{required:!0,type:Object}},setup(n){const e=n,t=i.ref(e.component),r=t.value.type==="link_grid";return(s,l)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["flex justify-center h-[136px] w-full relative rounded-b-[48px] bg-navy-600 -mt-12 gap-[60px]",{"bg-transparent !justify-start flex-wrap mt-8 !h-auto !gap-4":r}])},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.value.data,a=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["flex justify-center",{"!block":r}])},[i.createElementVNode("a",{target:a.open_in_new_tab?"_blank":"",href:a.url.startsWith("http")?a.url:`//${a.url}`,class:i.normalizeClass(["text-white flex gap-1.5 items-center cursor-pointer mt-12 text-sm font-semibold hover:text-gray-300",{"bg-white border border-gray-300 rounded-full !text-gray-700 px-4 h-[44px] w-max !mt-0 !text-base hover:bg-gray-100":r}])},[i.createElementVNode("span",null,i.toDisplayString(a.title),1),i.createVNode(i.unref(er),{class:"w-5 h-5"})],10,Qp)],2))),256))],2))}},Jp={class:"rounded-[48px] max-w-[1392px] 1xl:max-w-[1824px] mx-auto w-full"},em={class:"md:px-[90px]"},tm={__name:"HeroHeader",props:{section:{required:!0,type:Object}},setup(n){const e=n,t=i.ref(e.section),r=i.ref({sliders:i.markRaw(Zp),links:i.markRaw(za)}),s=l=>l!=null&&l.type?r.value[l==null?void 0:l.type]:"";return(l,a)=>(i.openBlock(),i.createElementBlock("div",Jp,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.value.components,(c,o)=>(i.openBlock(),i.createElementBlock("div",em,[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(s(c)),{key:o,component:c},null,8,["component"]))]))),256))]))}},As={__name:"VHeaderPresenter",props:{component:{required:!0,type:Object}},setup(n){const e=n,t=i.ref(e.component);return(r,s)=>{var l,a,c,o,u,d,h;return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["flex flex-col sm:px-0 px-4",{"items-center":(l=t.value)==null?void 0:l.center}])},[(a=t.value)!=null&&a.title?(i.openBlock(),i.createElementBlock("p",{key:0,class:i.normalizeClass(["pb-4 text-4xl font-semibold text-white",{"!text-gray-900":(c=t.value)==null?void 0:c.dark}])},i.toDisplayString((o=t.value)==null?void 0:o.title),3)):i.createCommentVNode("",!0),(u=t.value)!=null&&u.supporting_text?(i.openBlock(),i.createElementBlock("p",{key:1,class:i.normalizeClass(["text-navy-25 text-xl font-normal leading-[30px]",{"!text-gray-600":(d=t.value)==null?void 0:d.dark}])},i.toDisplayString((h=t.value)==null?void 0:h.supporting_text),3)):i.createCommentVNode("",!0)],2)}}},nm={xmlns:"http://www.w3.org/2000/svg",width:"341",height:"336",fill:"none"};function rm(n,e){return i.openBlock(),i.createElementBlock("svg",nm,e[0]||(e[0]=[i.createElementVNode("path",{fill:"#78BDB5","fill-rule":"evenodd",d:"M198.752-176.557c89.734-37.714 189.985-82.087 275.305-35.237 89.35 49.062 132.236 156.992 132.061 258.925-.154 90.488-63.843 162.678-132.881 221.174-60.961 51.652-136.137 83.393-215.483 73.993-79.145-9.376-146.313-56.631-191.593-122.217C17.667 149.839-17.165 64.238 9.896-16.715c27.51-82.293 108.864-126.223 188.856-159.842","clip-rule":"evenodd"},null,-1)]))}const sm={render:rm},om={class:"w-full bg-navy-800 py-10 relative lg:h-[336px]"},im={class:"max-w-[1400px] mx-auto w-full"},am={class:"max-md:mx-[30px] max-1xl:mx-[120px] 1xl:mx-0 relative z-10"},lm={class:"w-full md:w-3/4"},cm={__name:"QuickLinks",props:{section:{required:!0,type:Object}},setup(n){const e=n,t=i.ref(e.section),r=i.ref({header:i.markRaw(As),link_grid:i.markRaw(za)}),s=l=>l!=null&&l.type?r.value[l==null?void 0:l.type]:"";return(l,a)=>(i.openBlock(),i.createElementBlock("div",om,[i.createElementVNode("div",im,[i.createElementVNode("div",am,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.value.components,(c,o)=>(i.openBlock(),i.createElementBlock("div",lm,[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(s(c)),{key:o,component:c},null,8,["component"]))]))),256))])]),i.createVNode(i.unref(sm),{class:"absolute right-0 top-0"})]))}},um={class:"flex flex-col md:flex-row justify-center gap-4 items-stretch mt-6"},dm={class:"flex-1 w-full md:w-1/2 flex flex-col"},fm=["onClick"],hm={class:"py-4 pl-4 md:pl-6"},pm=["innerHTML"],mm={class:"flex-1 w-full md:w-1/2 bg-transparent flex flex-col items-center"},gm=["src"],ym={key:1,class:"rounded-[20px] md:rounded-[40px] object-contain max-h-[200px] md:max-h-[387px] w-full",src:To,alt:"No Image Available"},vm=["target","href"],bm=Zn({__name:"VVerticalTabPresenter",props:{component:{required:!0,type:Object}},setup(n){const e=n,t=i.ref(e.component),r=i.ref(null),s=i.ref(t.value.data.filter(a=>a.public)),l=a=>{r.value=a};return i.onMounted(()=>{s.value.length>0&&l(s.value[0])}),(a,c)=>(i.openBlock(),i.createElementBlock("div",um,[i.createElementVNode("div",dm,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value,o=>(i.openBlock(),i.createElementBlock("div",{key:o.title},[i.createElementVNode("div",{class:i.normalizeClass(["flex-col flex gap-1.5 cursor-pointer mb-4 group",{"border-l-4 border-brand-600":r.value===o,"border-l-4 border-gray-100":r.value!==o}]),onClick:i.withModifiers(u=>l(o),["prevent"])},[i.createElementVNode("div",hm,[i.createElementVNode("p",{class:i.normalizeClass([{"text-gray-900":r.value===o,"text-gray-600":r.value!==o},"text-lg md:text-xl font-semibold mb-2 group-hover:text-gray-900"])},i.toDisplayString(o.title),3),i.createElementVNode("p",{class:i.normalizeClass([{"text-gray-700":r.value===o,"text-gray-400":r.value!==o},"text-sm md:text-md font-normal group-hover:text-gray-700"]),innerHTML:o.description},null,10,pm)])],10,fm)]))),128))]),i.createElementVNode("div",mm,[i.createVNode(i.Transition,{name:"fade",mode:"out-in"},{default:i.withCtx(()=>{var o,u,d,h,f,m,p,y,b,A;return[(i.openBlock(),i.createElementBlock("div",{class:"flex flex-col items-center",key:(o=r.value)==null?void 0:o.title},[(u=r.value)!=null&&u.featured_image?(i.openBlock(),i.createElementBlock("img",{key:0,src:r.value.featured_image,alt:"Selected Item Image",class:"rounded-[20px] md:rounded-[40px] object-contain max-h-[200px] md:max-h-[387px] w-full"},null,8,gm)):(i.openBlock(),i.createElementBlock("img",ym)),(h=(d=r.value)==null?void 0:d.primary_button)!=null&&h.show?(i.openBlock(),i.createElementBlock("a",{key:2,class:"text-sm md:text-md font-semibold text-brand-600 flex items-center gap-2 mt-4",target:(m=(f=r.value)==null?void 0:f.primary_button)!=null&&m.is_new_tab?"_blank":"",href:(y=(p=r.value)==null?void 0:p.primary_button)!=null&&y.url.startsWith("http")?r.value.primary_button.url:`//${r.value.primary_button.url}`},[i.createTextVNode(i.toDisplayString(((A=(b=r.value)==null?void 0:b.primary_button)==null?void 0:A.label)??"N/A")+" ",1),i.createVNode(i.unref(er),{class:"w-4 h-4 md:w-5 md:h-5"})],8,vm)):i.createCommentVNode("",!0)]))]}),_:1})])]))}},[["__scopeId","data-v-e5b200c8"]]),xm={class:"max-w-[1400px] mx-auto w-full"},Em={class:"max-md:mx-[30px] max-1xl:mx-[120px] 1xl:mx-0 bg-navy-25 rounded-[48px] p-16"},wm={__name:"VTabs",props:{section:{required:!0,type:Object}},setup(n){const e=n,t=i.ref(e.section),r=i.ref({header:i.markRaw(As),vertical_tabs:i.markRaw(bm)}),s=l=>l!=null&&l.type?r.value[l==null?void 0:l.type]:"";return(l,a)=>(i.openBlock(),i.createElementBlock("div",xm,[i.createElementVNode("div",Em,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.value.components,(c,o)=>(i.openBlock(),i.createElementBlock("div",null,[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(s(c)),{key:o,component:c},null,8,["component"]))]))),256))])]))}},Am=["href"],Sm=["src"],Tm={key:1,class:"text-sm"},Nm={__name:"LogoCloud",props:{section:{required:!0,type:Object}},setup(n){const e=n,t=i.ref(e.section),r=t.value.display==="horizontal",s=l=>l==="small"?"h-[32px]":l==="medium"?"h-[40px]":"h-[32px]";return(l,a)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["w-full relative",{"bg-gray-50":!r}])},[i.createElementVNode("div",{class:i.normalizeClass(["1xl:max-w-[1824px] mx-auto relative flex justify-center items-center",{"py-8":r,"flex-col py-6":!r}])},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.value.components,(c,o)=>(i.openBlock(),i.createElementBlock("div",null,[(c==null?void 0:c.type)==="header"&&(c!=null&&c.supporting_text)?(i.openBlock(),i.createElementBlock("p",{key:0,class:i.normalizeClass(["mr-[48px] text-base text-gray-600 font-medium",{"mb-6":!r}])},i.toDisplayString(c==null?void 0:c.supporting_text),3)):i.createCommentVNode("",!0),(c==null?void 0:c.type)==="logos"?(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass(["flex flex-wrap justify-center",{"gap-6":r,"gap-12":!r}])},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(c.data,u=>(i.openBlock(),i.createElementBlock("a",{href:u==null?void 0:u.url,title:"Brand"},[u!=null&&u.logo?(i.openBlock(),i.createElementBlock("img",{key:0,src:u==null?void 0:u.logo,class:i.normalizeClass(s(c==null?void 0:c.height)),alt:"Brand Logo"},null,10,Sm)):(i.openBlock(),i.createElementBlock("span",Tm,"No photo"))],8,Am))),256))],2)):i.createCommentVNode("",!0)]))),256))],2)],2))}},km={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function Cm(n,e){return i.openBlock(),i.createElementBlock("svg",km,e[0]||(e[0]=[i.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 6v6l4 2m6-2c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10"},null,-1)]))}const Om={render:Cm},Rm={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function Im(n,e){return i.openBlock(),i.createElementBlock("svg",Rm,e[0]||(e[0]=[i.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M2 2h1.306c.246 0 .37 0 .468.045a.5.5 0 0 1 .213.185c.059.092.076.213.111.457L4.571 6m0 0 1.052 7.731c.134.982.2 1.472.435 1.841a2 2 0 0 0 .853.745c.398.183.893.183 1.883.183h8.558c.942 0 1.414 0 1.799-.17a2 2 0 0 0 .841-.696c.239-.346.327-.81.503-1.735l1.324-6.95c.062-.325.093-.488.048-.615a.5.5 0 0 0-.22-.266C21.532 6 21.366 6 21.034 6zM10 21a1 1 0 1 1-2 0 1 1 0 0 1 2 0m8 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0"},null,-1)]))}const Lm={render:Im},Bm={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function Pm(n,e){return i.openBlock(),i.createElementBlock("svg",Bm,e[0]||(e[0]=[i.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m15 18-6-6 6-6"},null,-1)]))}const Fm={render:Pm},Mm={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function Dm(n,e){return i.openBlock(),i.createElementBlock("svg",Mm,e[0]||(e[0]=[i.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 8V7m0 5.5v-1M8 17v-1m-1.2 4h10.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C22 17.72 22 16.88 22 15.2V8.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C19.72 4 18.88 4 17.2 4H6.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C2 6.28 2 7.12 2 8.8v6.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C4.28 20 5.12 20 6.8 20"},null,-1)]))}const Um={render:Dm},_m={class:"relative"},Vm={class:"mb-4"},jm=["src"],$m={key:0,class:"flex gap-2"},qm={class:"text-[24px] font-semibold text-gray-900 mb-3 leading-[32px] mt-3"},zm=["innerHTML"],Hm={key:1,class:"flex gap-2 text-gray-600 mt-6 font-semibold"},Gm=["innerHTML"],Wm={key:2,class:"flex gap-2 text-gray-600 mt-2 font-semibold"},Km=["innerHTML"],Xm={class:"border-t border-gray-200 mt-4 pt-[17px] flex justify-between items-center"},Ym=["href"],Zm=["href"],Qm={class:"absolute top-[-65px] right-4 flex gap-4"},Jm={key:0,class:"flex justify-center mb-[40px]"},eg=["href","target"],tg=4,ng={__name:"VCarouselPresenter",props:{component:{required:!0,type:Object},hasBackground:{type:Boolean,default:!0}},setup(n){var c;const e=n,t=i.ref(0),r=[...((c=e.component.content)==null?void 0:c.items)||[]],s=o=>o.startsWith("http")?o:`//${o}`,l=()=>{t.value<=r.length-tg&&t.value++},a=()=>{t.value>0&&t.value--};return(o,u)=>{var d;return i.openBlock(),i.createElementBlock("div",_m,[i.createElementVNode("div",{class:"slider-wrapper flex transition-transform duration-500 gap-0 mb-6",style:i.normalizeStyle({transform:`translateX(-${t.value*504}px)`})},[(i.openBlock(),i.createElementBlock(i.Fragment,null,i.renderList(r,(h,f)=>{var m,p,y;return i.createElementVNode("div",{key:f,class:i.normalizeClass(["slider-item flex-shrink-0 flex-1 mr-6 min-w-[480px]",{"h-[309px]":!n.hasBackground,"h-full":n.hasBackground}])},[i.createElementVNode("div",{class:i.normalizeClass(["w-full p-4 rounded-[16px]",{"bg-gray-50 h-full flex flex-col justify-between":!n.hasBackground,"bg-white":n.hasBackground}])},[i.createElementVNode("div",null,[i.createElementVNode("div",Vm,[h.image?(i.openBlock(),i.createElementBlock("img",{key:0,src:h.image,alt:"Slide Image",class:"rounded-[8px] h-[220px] w-full object-cover"},null,8,jm)):i.createCommentVNode("",!0)]),h.tags&&h.tags.length?(i.openBlock(),i.createElementBlock("div",$m,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(h.tags,b=>(i.openBlock(),i.createElementBlock("span",{key:b,class:"bg-navy-50 border border-navy-200 text-navy-700 px-2 py-0.5 rounded-[6px] text-sm"},i.toDisplayString(b),1))),128))])):i.createCommentVNode("",!0),i.createElementVNode("h3",qm,i.toDisplayString(h==null?void 0:h.title),1),i.createElementVNode("p",{class:"text-base font-normal text-gray-600 leading-[24px] multiline-ellipsis",innerHTML:h==null?void 0:h.description},null,8,zm),(h==null?void 0:h.type)==="event"?(i.openBlock(),i.createElementBlock("div",Hm,[i.createVNode(i.unref(Om),{class:"w-4 h-4 mt-[3px]"}),i.createElementVNode("div",{class:"text-sm",innerHTML:h==null?void 0:h.line_1},null,8,Gm)])):i.createCommentVNode("",!0),h.type==="event"?(i.openBlock(),i.createElementBlock("div",Wm,[i.createVNode(i.unref(Um),{class:"w-4 h-4 mt-[3px]"}),i.createElementVNode("div",{class:"text-sm",innerHTML:h==null?void 0:h.line_2},null,8,Km)])):i.createCommentVNode("",!0)]),i.createElementVNode("div",Xm,[(m=h.primary_button)!=null&&m.url?(i.openBlock(),i.createElementBlock("a",{key:0,href:s(h.primary_button.url),target:"_blank",class:"hover:bg-brand-600 bg-brand-500 text-white h-[40px] rounded-full px-[14px] py-[10px] inline-flex gap-1.5 items-center shadow-xs text-sm"},[((p=h.primary_button)==null?void 0:p.icon)==="plus"?(i.openBlock(),i.createBlock(i.unref(kr),{key:0,class:"w-4 h-4"})):i.createCommentVNode("",!0),((y=h.primary_button)==null?void 0:y.icon)==="shopping-cart-01"?(i.openBlock(),i.createBlock(i.unref(Lm),{key:1,class:"w-4 h-4"})):i.createCommentVNode("",!0),i.createTextVNode(" "+i.toDisplayString(h.primary_button.title),1)],8,Ym)):i.createCommentVNode("",!0),h.secondary_button?(i.openBlock(),i.createElementBlock("a",{key:1,target:"_blank",href:s(h.secondary_button.url),class:"text-sm text-gray-600 hover:text-gray-800"},i.toDisplayString(h.secondary_button.title??"Learn more"),9,Zm)):i.createCommentVNode("",!0)])],2)],2)}),64))],4),i.createElementVNode("div",Qm,[i.createElementVNode("button",{onClick:a,class:"p-2.5 bg-white text-navy-800 rounded-full hover:opacity-100 opacity-50"},[i.createVNode(i.unref(Fm),{class:"w-6 h-6"})]),i.createElementVNode("button",{onClick:l,class:"p-2.5 bg-white text-navy-800 rounded-full hover:opacity-100 opacity-50"},[i.createVNode(i.unref(oo),{class:"w-6 h-6"})])]),(d=n.component)!=null&&d.button?(i.openBlock(),i.createElementBlock("div",Jm,[i.createElementVNode("a",{class:"border-brand-300 hover:border-brand-700 border text-brand-700 h-[44px] rounded-full px-[14px] py-[10px] inline-flex gap-1.5 items-center font-semibold text-base",href:n.component.button.url,target:n.component.button.is_new_tab?"_blank":""},[i.createTextVNode(i.toDisplayString(n.component.button.title)+" ",1),i.createVNode(i.unref(er),{class:"w-5 h-5"})],8,eg)])):i.createCommentVNode("",!0)])}}},rg={class:"max-w-[1400px] mx-auto w-full"},sg={class:"max-md:mx-[30px] max-1xl:mx-[120px] 1xl:mx-0 rounded-[48px] pt-[40px]"},og={__name:"CollectionCarousel",props:{section:{required:!0,type:Object}},setup(n){const e=n,t=i.ref(e.section),r=i.computed(()=>t.value.components.find(l=>l.type==="header")),s=i.computed(()=>t.value.components.find(l=>l.type==="carousel"));return(l,a)=>{var c,o,u,d;return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["overflow-hidden",{"rounded-br-[48px] rounded-tl-[48px] bg-aqua-100":(c=t.value)==null?void 0:c.has_background}])},[i.createElementVNode("div",rg,[i.createElementVNode("div",sg,[i.createVNode(As,{component:r.value},null,8,["component"])])]),i.createElementVNode("div",{class:i.normalizeClass(["max-w-[1400px] mx-auto w-full",{"mt-0":!((o=t.value)!=null&&o.has_background),"mt-6":(u=t.value)==null?void 0:u.has_background}])},[i.createVNode(ng,{component:s.value,"has-background":(d=t.value)==null?void 0:d.has_background},null,8,["component","has-background"])],2)],2)}}},ig={xmlns:"http://www.w3.org/2000/svg",width:"56",height:"56",fill:"none"};function ag(n,e){return i.openBlock(),i.createElementBlock("svg",ig,e[0]||(e[0]=[i.createElementVNode("path",{fill:"#fff","fill-rule":"evenodd",d:"M28 56c15.464 0 28-12.536 28-28S43.464 0 28 0 0 12.536 0 28s12.536 28 28 28m-4.375-17.73 15.75-8.803a1.668 1.668 0 0 0 0-2.934l-15.75-8.803c-1.167-.653-2.625.162-2.625 1.467v17.606c0 1.305 1.458 2.12 2.625 1.468","clip-rule":"evenodd"},null,-1)]))}const lg={render:ag},cg={class:"flex flex-col items-center gap-6 pb-[40px] pt-[24px]"},ug={class:"grid grid-cols-1 md:grid-cols-3 gap-6 w-full"},dg={key:0,class:"relative group"},fg=["onClick"],hg=["src"],pg=["src"],mg={key:3,class:"w-full h-[281px] object-cover rounded-[16px] mb-4",src:To},gg={class:"flex flex-col gap-2 items-start text-left w-full"},yg={key:0,class:"flex gap-2"},vg=["href"],bg={class:"flex justify-between"},xg=["innerHTML"],Eg={class:"text-gray-500 text-sm mb-4"},wg={key:0,class:"flex justify-center"},Ag=["href","target"],Ha=Zn({__name:"VCollectionGridPresenter",props:{component:{required:!0,type:Object}},setup(n){var o,u;const e=n;let t=[];e.component.type==="news_grid"?t=[...((o=e.component.content)==null?void 0:o.items)||[]]:t=[...((u=e.component)==null?void 0:u.data)||[]];const r=e.component.button||{},s=i.ref(t.map(()=>!1)),l=i.ref(t.map(()=>null)),a=d=>{const h=l.value[d];h&&(h.paused?(h.play(),s.value[d]=!0):(h.pause(),s.value[d]=!1))},c=(d,h)=>{d&&(l.value[h]=d)};return(d,h)=>{var f;return i.openBlock(),i.createElementBlock("div",cg,[i.createElementVNode("div",ug,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(t),(m,p)=>(i.openBlock(),i.createElementBlock("div",{key:p,class:"card bg-white sm:p-0 px-4"},[n.component.type==="video_grid"?(i.openBlock(),i.createElementBlock("div",dg,[i.createElementVNode("video",{onClick:y=>a(p),ref_for:!0,ref:y=>c(y,p),class:"w-full h-[281px] object-cover rounded-[16px]",width:"640",height:"360",preload:"metadata"},[i.createElementVNode("source",{src:`${m.video}#t=2`},null,8,hg)],8,fg),s.value[p]?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(i.unref(lg),{key:0,class:"cursor-pointer absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 group-hover:opacity-100 transition-opacity",onClick:y=>a(p)},null,8,["onClick"]))])):m.image?(i.openBlock(),i.createElementBlock("img",{key:1,src:m.image,alt:"Card Image",class:"w-full h-[281px] object-cover rounded-[16px] mb-4"},null,8,pg)):(i.openBlock(),i.createElementBlock("img",mg)),i.createElementVNode("div",gg,[m.categories&&m.categories.length?(i.openBlock(),i.createElementBlock("div",yg,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(m.categories,y=>(i.openBlock(),i.createElementBlock("span",{key:y,class:i.normalizeClass(["border px-2 py-0.5 rounded-[6px] text-sm",{"bg-navy-50 border-navy-200 text-navy-700":y.style==="navy","bg-brand-50 border-brand-200 text-brand-700":y.style==="brand","bg-orange-50 border-orange-200 text-orange-700":y.style==="orange"}])},i.toDisplayString(y.name),3))),128))])):i.createCommentVNode("",!0),m!=null&&m.link?(i.openBlock(),i.createElementBlock("a",{key:1,href:m.link,class:"text-gray-900 text-lg font-semibold hover:underline block mb-2 w-full",target:"_blank",rel:"noopener noreferrer"},[i.createElementVNode("div",bg,[i.createElementVNode("span",{class:"w-5/6 leading-[28px]",innerHTML:m.title},null,8,xg),i.createVNode(i.unref(er),{class:"w-5 h-5 mt-1"})])],8,vg)):i.createCommentVNode("",!0),i.createElementVNode("p",Eg,i.toDisplayString(m.dateTime),1)])]))),128))]),Object.keys(i.unref(r)).length&&((f=i.unref(r))!=null&&f.show)?(i.openBlock(),i.createElementBlock("div",wg,[i.createElementVNode("a",{class:"border-brand-300 hover:border-brand-700 border text-brand-700 h-[44px] rounded-full px-[14px] py-[10px] inline-flex gap-1.5 items-center font-semibold text-base",href:i.unref(r).url,target:i.unref(r).is_new_tab?"_blank":""},[i.createTextVNode(i.toDisplayString(i.unref(r).title)+" ",1),i.createVNode(i.unref(er),{class:"w-5 h-5"})],8,Ag)])):i.createCommentVNode("",!0)])}}},[["__scopeId","data-v-a889da45"]]),Sg={class:"overflow-hidden"},Tg={class:"max-w-[1400px] mx-auto w-full pt-[40px]"},Ng={__name:"CollectionGrid",props:{section:{required:!0,type:Object}},setup(n){const e=n,t=i.ref(e.section),r=i.ref({header:i.markRaw(As),news_grid:i.markRaw(Ha),video_grid:i.markRaw(Ha)}),s=l=>l!=null&&l.type?r.value[l==null?void 0:l.type]:"";return(l,a)=>(i.openBlock(),i.createElementBlock("div",Sg,[i.createElementVNode("div",Tg,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.value.components,(c,o)=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent(s(c)),{key:o,component:c},null,8,["component"]))),128))])]))}},kg={class:"page-render"},Cg={__name:"PageRender",props:{page:{required:!0,type:Object}},setup(n){const e=i.ref({header:i.markRaw(tm),quick_links:i.markRaw(cm),tabs:i.markRaw(wm),logo:i.markRaw(Nm),collection_carousel:i.markRaw(og),collection_grid:i.markRaw(Ng)}),t=r=>r!=null&&r.type?e.value[r==null?void 0:r.type]:"";return(r,s)=>(i.openBlock(),i.createElementBlock("div",kg,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.page.sections,(l,a)=>(i.openBlock(),i.createElementBlock("div",null,[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(t(l)),{key:a,section:l},null,8,["section"]))]))),256))]))}};var Ga=typeof global=="object"&&global&&global.Object===Object&&global,Og=typeof self=="object"&&self&&self.Object===Object&&self,en=Ga||Og||Function("return this")(),wn=en.Symbol,Wa=Object.prototype,Rg=Wa.hasOwnProperty,Ig=Wa.toString,Pr=wn?wn.toStringTag:void 0;function Lg(n){var e=Rg.call(n,Pr),t=n[Pr];try{n[Pr]=void 0;var r=!0}catch{}var s=Ig.call(n);return r&&(e?n[Pr]=t:delete n[Pr]),s}var Bg=Object.prototype,Pg=Bg.toString;function Fg(n){return Pg.call(n)}var Mg="[object Null]",Dg="[object Undefined]",Ka=wn?wn.toStringTag:void 0;function tr(n){return n==null?n===void 0?Dg:Mg:Ka&&Ka in Object(n)?Lg(n):Fg(n)}function un(n){return n!=null&&typeof n=="object"}var Dn=Array.isArray;function An(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}function Xa(n){return n}var Ug="[object AsyncFunction]",_g="[object Function]",Vg="[object GeneratorFunction]",jg="[object Proxy]";function Oo(n){if(!An(n))return!1;var e=tr(n);return e==_g||e==Vg||e==Ug||e==jg}var Ro=en["__core-js_shared__"],Ya=function(){var n=/[^.]+$/.exec(Ro&&Ro.keys&&Ro.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function $g(n){return!!Ya&&Ya in n}var qg=Function.prototype,zg=qg.toString;function Un(n){if(n!=null){try{return zg.call(n)}catch{}try{return n+""}catch{}}return""}var Hg=/[\\^$.*+?()[\]{}|]/g,Gg=/^\[object .+?Constructor\]$/,Wg=Function.prototype,Kg=Object.prototype,Xg=Wg.toString,Yg=Kg.hasOwnProperty,Zg=RegExp("^"+Xg.call(Yg).replace(Hg,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Qg(n){if(!An(n)||$g(n))return!1;var e=Oo(n)?Zg:Gg;return e.test(Un(n))}function Jg(n,e){return n==null?void 0:n[e]}function _n(n,e){var t=Jg(n,e);return Qg(t)?t:void 0}var Io=_n(en,"WeakMap"),Za=Object.create,e0=function(){function n(){}return function(e){if(!An(e))return{};if(Za)return Za(e);n.prototype=e;var t=new n;return n.prototype=void 0,t}}();function t0(n,e,t){switch(t.length){case 0:return n.call(e);case 1:return n.call(e,t[0]);case 2:return n.call(e,t[0],t[1]);case 3:return n.call(e,t[0],t[1],t[2])}return n.apply(e,t)}function n0(n,e){var t=-1,r=n.length;for(e||(e=Array(r));++t<r;)e[t]=n[t];return e}var r0=800,s0=16,o0=Date.now;function i0(n){var e=0,t=0;return function(){var r=o0(),s=s0-(r-t);if(t=r,s>0){if(++e>=r0)return arguments[0]}else e=0;return n.apply(void 0,arguments)}}function a0(n){return function(){return n}}var Ss=function(){try{var n=_n(Object,"defineProperty");return n({},"",{}),n}catch{}}(),l0=Ss?function(n,e){return Ss(n,"toString",{configurable:!0,enumerable:!1,value:a0(e),writable:!0})}:Xa,c0=i0(l0);function u0(n,e){for(var t=-1,r=n==null?0:n.length;++t<r&&e(n[t],t,n)!==!1;);return n}var d0=9007199254740991,f0=/^(?:0|[1-9]\d*)$/;function Qa(n,e){var t=typeof n;return e=e??d0,!!e&&(t=="number"||t!="symbol"&&f0.test(n))&&n>-1&&n%1==0&&n<e}function Lo(n,e,t){e=="__proto__"&&Ss?Ss(n,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):n[e]=t}function Fr(n,e){return n===e||n!==n&&e!==e}var h0=Object.prototype,p0=h0.hasOwnProperty;function Ja(n,e,t){var r=n[e];(!(p0.call(n,e)&&Fr(r,t))||t===void 0&&!(e in n))&&Lo(n,e,t)}function m0(n,e,t,r){var s=!t;t||(t={});for(var l=-1,a=e.length;++l<a;){var c=e[l],o=void 0;o===void 0&&(o=n[c]),s?Lo(t,c,o):Ja(t,c,o)}return t}var el=Math.max;function g0(n,e,t){return e=el(e===void 0?n.length-1:e,0),function(){for(var r=arguments,s=-1,l=el(r.length-e,0),a=Array(l);++s<l;)a[s]=r[e+s];s=-1;for(var c=Array(e+1);++s<e;)c[s]=r[s];return c[e]=t(a),t0(n,this,c)}}function y0(n,e){return c0(g0(n,e,Xa),n+"")}var v0=9007199254740991;function tl(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=v0}function Ts(n){return n!=null&&tl(n.length)&&!Oo(n)}function b0(n,e,t){if(!An(t))return!1;var r=typeof e;return(r=="number"?Ts(t)&&Qa(e,t.length):r=="string"&&e in t)?Fr(t[e],n):!1}function x0(n){return y0(function(e,t){var r=-1,s=t.length,l=s>1?t[s-1]:void 0,a=s>2?t[2]:void 0;for(l=n.length>3&&typeof l=="function"?(s--,l):void 0,a&&b0(t[0],t[1],a)&&(l=s<3?void 0:l,s=1),e=Object(e);++r<s;){var c=t[r];c&&n(e,c,r,l)}return e})}var E0=Object.prototype;function Bo(n){var e=n&&n.constructor,t=typeof e=="function"&&e.prototype||E0;return n===t}function w0(n,e){for(var t=-1,r=Array(n);++t<n;)r[t]=e(t);return r}var A0="[object Arguments]";function nl(n){return un(n)&&tr(n)==A0}var rl=Object.prototype,S0=rl.hasOwnProperty,T0=rl.propertyIsEnumerable,Po=nl(function(){return arguments}())?nl:function(n){return un(n)&&S0.call(n,"callee")&&!T0.call(n,"callee")};function N0(){return!1}var sl=typeof Ye=="object"&&Ye&&!Ye.nodeType&&Ye,ol=sl&&typeof module=="object"&&module&&!module.nodeType&&module,k0=ol&&ol.exports===sl,il=k0?en.Buffer:void 0,C0=il?il.isBuffer:void 0,Mr=C0||N0,O0="[object Arguments]",R0="[object Array]",I0="[object Boolean]",L0="[object Date]",B0="[object Error]",P0="[object Function]",F0="[object Map]",M0="[object Number]",D0="[object Object]",U0="[object RegExp]",_0="[object Set]",V0="[object String]",j0="[object WeakMap]",$0="[object ArrayBuffer]",q0="[object DataView]",z0="[object Float32Array]",H0="[object Float64Array]",G0="[object Int8Array]",W0="[object Int16Array]",K0="[object Int32Array]",X0="[object Uint8Array]",Y0="[object Uint8ClampedArray]",Z0="[object Uint16Array]",Q0="[object Uint32Array]",Je={};Je[z0]=Je[H0]=Je[G0]=Je[W0]=Je[K0]=Je[X0]=Je[Y0]=Je[Z0]=Je[Q0]=!0,Je[O0]=Je[R0]=Je[$0]=Je[I0]=Je[q0]=Je[L0]=Je[B0]=Je[P0]=Je[F0]=Je[M0]=Je[D0]=Je[U0]=Je[_0]=Je[V0]=Je[j0]=!1;function J0(n){return un(n)&&tl(n.length)&&!!Je[tr(n)]}function Fo(n){return function(e){return n(e)}}var al=typeof Ye=="object"&&Ye&&!Ye.nodeType&&Ye,Dr=al&&typeof module=="object"&&module&&!module.nodeType&&module,e1=Dr&&Dr.exports===al,Mo=e1&&Ga.process,nr=function(){try{var n=Dr&&Dr.require&&Dr.require("util").types;return n||Mo&&Mo.binding&&Mo.binding("util")}catch{}}(),ll=nr&&nr.isTypedArray,Do=ll?Fo(ll):J0,t1=Object.prototype,n1=t1.hasOwnProperty;function cl(n,e){var t=Dn(n),r=!t&&Po(n),s=!t&&!r&&Mr(n),l=!t&&!r&&!s&&Do(n),a=t||r||s||l,c=a?w0(n.length,String):[],o=c.length;for(var u in n)(e||n1.call(n,u))&&!(a&&(u=="length"||s&&(u=="offset"||u=="parent")||l&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Qa(u,o)))&&c.push(u);return c}function ul(n,e){return function(t){return n(e(t))}}var r1=ul(Object.keys,Object),s1=Object.prototype,o1=s1.hasOwnProperty;function i1(n){if(!Bo(n))return r1(n);var e=[];for(var t in Object(n))o1.call(n,t)&&t!="constructor"&&e.push(t);return e}function a1(n){return Ts(n)?cl(n):i1(n)}function l1(n){var e=[];if(n!=null)for(var t in Object(n))e.push(t);return e}var c1=Object.prototype,u1=c1.hasOwnProperty;function d1(n){if(!An(n))return l1(n);var e=Bo(n),t=[];for(var r in n)r=="constructor"&&(e||!u1.call(n,r))||t.push(r);return t}function dl(n){return Ts(n)?cl(n,!0):d1(n)}var Ur=_n(Object,"create");function f1(){this.__data__=Ur?Ur(null):{},this.size=0}function h1(n){var e=this.has(n)&&delete this.__data__[n];return this.size-=e?1:0,e}var p1="__lodash_hash_undefined__",m1=Object.prototype,g1=m1.hasOwnProperty;function y1(n){var e=this.__data__;if(Ur){var t=e[n];return t===p1?void 0:t}return g1.call(e,n)?e[n]:void 0}var v1=Object.prototype,b1=v1.hasOwnProperty;function x1(n){var e=this.__data__;return Ur?e[n]!==void 0:b1.call(e,n)}var E1="__lodash_hash_undefined__";function w1(n,e){var t=this.__data__;return this.size+=this.has(n)?0:1,t[n]=Ur&&e===void 0?E1:e,this}function Vn(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var r=n[e];this.set(r[0],r[1])}}Vn.prototype.clear=f1,Vn.prototype.delete=h1,Vn.prototype.get=y1,Vn.prototype.has=x1,Vn.prototype.set=w1;function A1(){this.__data__=[],this.size=0}function Ns(n,e){for(var t=n.length;t--;)if(Fr(n[t][0],e))return t;return-1}var S1=Array.prototype,T1=S1.splice;function N1(n){var e=this.__data__,t=Ns(e,n);if(t<0)return!1;var r=e.length-1;return t==r?e.pop():T1.call(e,t,1),--this.size,!0}function k1(n){var e=this.__data__,t=Ns(e,n);return t<0?void 0:e[t][1]}function C1(n){return Ns(this.__data__,n)>-1}function O1(n,e){var t=this.__data__,r=Ns(t,n);return r<0?(++this.size,t.push([n,e])):t[r][1]=e,this}function dn(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var r=n[e];this.set(r[0],r[1])}}dn.prototype.clear=A1,dn.prototype.delete=N1,dn.prototype.get=k1,dn.prototype.has=C1,dn.prototype.set=O1;var _r=_n(en,"Map");function R1(){this.size=0,this.__data__={hash:new Vn,map:new(_r||dn),string:new Vn}}function I1(n){var e=typeof n;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?n!=="__proto__":n===null}function ks(n,e){var t=n.__data__;return I1(e)?t[typeof e=="string"?"string":"hash"]:t.map}function L1(n){var e=ks(this,n).delete(n);return this.size-=e?1:0,e}function B1(n){return ks(this,n).get(n)}function P1(n){return ks(this,n).has(n)}function F1(n,e){var t=ks(this,n),r=t.size;return t.set(n,e),this.size+=t.size==r?0:1,this}function jn(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var r=n[e];this.set(r[0],r[1])}}jn.prototype.clear=R1,jn.prototype.delete=L1,jn.prototype.get=B1,jn.prototype.has=P1,jn.prototype.set=F1;function M1(n,e){for(var t=-1,r=e.length,s=n.length;++t<r;)n[s+t]=e[t];return n}var fl=ul(Object.getPrototypeOf,Object),D1="[object Object]",U1=Function.prototype,_1=Object.prototype,hl=U1.toString,V1=_1.hasOwnProperty,j1=hl.call(Object);function $1(n){if(!un(n)||tr(n)!=D1)return!1;var e=fl(n);if(e===null)return!0;var t=V1.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&hl.call(t)==j1}function q1(){this.__data__=new dn,this.size=0}function z1(n){var e=this.__data__,t=e.delete(n);return this.size=e.size,t}function H1(n){return this.__data__.get(n)}function G1(n){return this.__data__.has(n)}var W1=200;function K1(n,e){var t=this.__data__;if(t instanceof dn){var r=t.__data__;if(!_r||r.length<W1-1)return r.push([n,e]),this.size=++t.size,this;t=this.__data__=new jn(r)}return t.set(n,e),this.size=t.size,this}function tn(n){var e=this.__data__=new dn(n);this.size=e.size}tn.prototype.clear=q1,tn.prototype.delete=z1,tn.prototype.get=H1,tn.prototype.has=G1,tn.prototype.set=K1;var pl=typeof Ye=="object"&&Ye&&!Ye.nodeType&&Ye,ml=pl&&typeof module=="object"&&module&&!module.nodeType&&module,X1=ml&&ml.exports===pl,gl=X1?en.Buffer:void 0,yl=gl?gl.allocUnsafe:void 0;function vl(n,e){if(e)return n.slice();var t=n.length,r=yl?yl(t):new n.constructor(t);return n.copy(r),r}function Y1(n,e){for(var t=-1,r=n==null?0:n.length,s=0,l=[];++t<r;){var a=n[t];e(a,t,n)&&(l[s++]=a)}return l}function Z1(){return[]}var Q1=Object.prototype,J1=Q1.propertyIsEnumerable,bl=Object.getOwnPropertySymbols,ey=bl?function(n){return n==null?[]:(n=Object(n),Y1(bl(n),function(e){return J1.call(n,e)}))}:Z1;function ty(n,e,t){var r=e(n);return Dn(n)?r:M1(r,t(n))}function Uo(n){return ty(n,a1,ey)}var _o=_n(en,"DataView"),Vo=_n(en,"Promise"),jo=_n(en,"Set"),xl="[object Map]",ny="[object Object]",El="[object Promise]",wl="[object Set]",Al="[object WeakMap]",Sl="[object DataView]",ry=Un(_o),sy=Un(_r),oy=Un(Vo),iy=Un(jo),ay=Un(Io),jt=tr;(_o&&jt(new _o(new ArrayBuffer(1)))!=Sl||_r&&jt(new _r)!=xl||Vo&&jt(Vo.resolve())!=El||jo&&jt(new jo)!=wl||Io&&jt(new Io)!=Al)&&(jt=function(n){var e=tr(n),t=e==ny?n.constructor:void 0,r=t?Un(t):"";if(r)switch(r){case ry:return Sl;case sy:return xl;case oy:return El;case iy:return wl;case ay:return Al}return e});var ly=Object.prototype,cy=ly.hasOwnProperty;function uy(n){var e=n.length,t=new n.constructor(e);return e&&typeof n[0]=="string"&&cy.call(n,"index")&&(t.index=n.index,t.input=n.input),t}var Cs=en.Uint8Array;function $o(n){var e=new n.constructor(n.byteLength);return new Cs(e).set(new Cs(n)),e}function dy(n,e){var t=$o(n.buffer);return new n.constructor(t,n.byteOffset,n.byteLength)}var fy=/\w*$/;function hy(n){var e=new n.constructor(n.source,fy.exec(n));return e.lastIndex=n.lastIndex,e}var Tl=wn?wn.prototype:void 0,Nl=Tl?Tl.valueOf:void 0;function py(n){return Nl?Object(Nl.call(n)):{}}function kl(n,e){var t=e?$o(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.length)}var my="[object Boolean]",gy="[object Date]",yy="[object Map]",vy="[object Number]",by="[object RegExp]",xy="[object Set]",Ey="[object String]",wy="[object Symbol]",Ay="[object ArrayBuffer]",Sy="[object DataView]",Ty="[object Float32Array]",Ny="[object Float64Array]",ky="[object Int8Array]",Cy="[object Int16Array]",Oy="[object Int32Array]",Ry="[object Uint8Array]",Iy="[object Uint8ClampedArray]",Ly="[object Uint16Array]",By="[object Uint32Array]";function Py(n,e,t){var r=n.constructor;switch(e){case Ay:return $o(n);case my:case gy:return new r(+n);case Sy:return dy(n);case Ty:case Ny:case ky:case Cy:case Oy:case Ry:case Iy:case Ly:case By:return kl(n,t);case yy:return new r;case vy:case Ey:return new r(n);case by:return hy(n);case xy:return new r;case wy:return py(n)}}function Cl(n){return typeof n.constructor=="function"&&!Bo(n)?e0(fl(n)):{}}var Fy="[object Map]";function My(n){return un(n)&&jt(n)==Fy}var Ol=nr&&nr.isMap,Dy=Ol?Fo(Ol):My,Uy="[object Set]";function _y(n){return un(n)&&jt(n)==Uy}var Rl=nr&&nr.isSet,Vy=Rl?Fo(Rl):_y,jy=1,Il="[object Arguments]",$y="[object Array]",qy="[object Boolean]",zy="[object Date]",Hy="[object Error]",Ll="[object Function]",Gy="[object GeneratorFunction]",Wy="[object Map]",Ky="[object Number]",Bl="[object Object]",Xy="[object RegExp]",Yy="[object Set]",Zy="[object String]",Qy="[object Symbol]",Jy="[object WeakMap]",ev="[object ArrayBuffer]",tv="[object DataView]",nv="[object Float32Array]",rv="[object Float64Array]",sv="[object Int8Array]",ov="[object Int16Array]",iv="[object Int32Array]",av="[object Uint8Array]",lv="[object Uint8ClampedArray]",cv="[object Uint16Array]",uv="[object Uint32Array]",Ze={};Ze[Il]=Ze[$y]=Ze[ev]=Ze[tv]=Ze[qy]=Ze[zy]=Ze[nv]=Ze[rv]=Ze[sv]=Ze[ov]=Ze[iv]=Ze[Wy]=Ze[Ky]=Ze[Bl]=Ze[Xy]=Ze[Yy]=Ze[Zy]=Ze[Qy]=Ze[av]=Ze[lv]=Ze[cv]=Ze[uv]=!0,Ze[Hy]=Ze[Ll]=Ze[Jy]=!1;function Os(n,e,t,r,s,l){var a,c=e&jy;if(a!==void 0)return a;if(!An(n))return n;var o=Dn(n);if(o)a=uy(n);else{var u=jt(n),d=u==Ll||u==Gy;if(Mr(n))return vl(n,c);if(u==Bl||u==Il||d&&!s)a=d?{}:Cl(n);else{if(!Ze[u])return s?n:{};a=Py(n,u,c)}}l||(l=new tn);var h=l.get(n);if(h)return h;l.set(n,a),Vy(n)?n.forEach(function(p){a.add(Os(p,e,t,p,n,l))}):Dy(n)&&n.forEach(function(p,y){a.set(y,Os(p,e,t,y,n,l))});var f=Uo,m=o?void 0:f(n);return u0(m||n,function(p,y){m&&(y=p,p=n[y]),Ja(a,y,Os(p,e,t,y,n,l))}),a}var dv=1,fv=4;function rr(n){return Os(n,dv|fv)}var hv="__lodash_hash_undefined__";function pv(n){return this.__data__.set(n,hv),this}function mv(n){return this.__data__.has(n)}function Rs(n){var e=-1,t=n==null?0:n.length;for(this.__data__=new jn;++e<t;)this.add(n[e])}Rs.prototype.add=Rs.prototype.push=pv,Rs.prototype.has=mv;function gv(n,e){for(var t=-1,r=n==null?0:n.length;++t<r;)if(e(n[t],t,n))return!0;return!1}function yv(n,e){return n.has(e)}var vv=1,bv=2;function Pl(n,e,t,r,s,l){var a=t&vv,c=n.length,o=e.length;if(c!=o&&!(a&&o>c))return!1;var u=l.get(n),d=l.get(e);if(u&&d)return u==e&&d==n;var h=-1,f=!0,m=t&bv?new Rs:void 0;for(l.set(n,e),l.set(e,n);++h<c;){var p=n[h],y=e[h];if(r)var b=a?r(y,p,h,e,n,l):r(p,y,h,n,e,l);if(b!==void 0){if(b)continue;f=!1;break}if(m){if(!gv(e,function(A,T){if(!yv(m,T)&&(p===A||s(p,A,t,r,l)))return m.push(T)})){f=!1;break}}else if(!(p===y||s(p,y,t,r,l))){f=!1;break}}return l.delete(n),l.delete(e),f}function xv(n){var e=-1,t=Array(n.size);return n.forEach(function(r,s){t[++e]=[s,r]}),t}function Ev(n){var e=-1,t=Array(n.size);return n.forEach(function(r){t[++e]=r}),t}var wv=1,Av=2,Sv="[object Boolean]",Tv="[object Date]",Nv="[object Error]",kv="[object Map]",Cv="[object Number]",Ov="[object RegExp]",Rv="[object Set]",Iv="[object String]",Lv="[object Symbol]",Bv="[object ArrayBuffer]",Pv="[object DataView]",Fl=wn?wn.prototype:void 0,qo=Fl?Fl.valueOf:void 0;function Fv(n,e,t,r,s,l,a){switch(t){case Pv:if(n.byteLength!=e.byteLength||n.byteOffset!=e.byteOffset)return!1;n=n.buffer,e=e.buffer;case Bv:return!(n.byteLength!=e.byteLength||!l(new Cs(n),new Cs(e)));case Sv:case Tv:case Cv:return Fr(+n,+e);case Nv:return n.name==e.name&&n.message==e.message;case Ov:case Iv:return n==e+"";case kv:var c=xv;case Rv:var o=r&wv;if(c||(c=Ev),n.size!=e.size&&!o)return!1;var u=a.get(n);if(u)return u==e;r|=Av,a.set(n,e);var d=Pl(c(n),c(e),r,s,l,a);return a.delete(n),d;case Lv:if(qo)return qo.call(n)==qo.call(e)}return!1}var Mv=1,Dv=Object.prototype,Uv=Dv.hasOwnProperty;function _v(n,e,t,r,s,l){var a=t&Mv,c=Uo(n),o=c.length,u=Uo(e),d=u.length;if(o!=d&&!a)return!1;for(var h=o;h--;){var f=c[h];if(!(a?f in e:Uv.call(e,f)))return!1}var m=l.get(n),p=l.get(e);if(m&&p)return m==e&&p==n;var y=!0;l.set(n,e),l.set(e,n);for(var b=a;++h<o;){f=c[h];var A=n[f],T=e[f];if(r)var O=a?r(T,A,f,e,n,l):r(A,T,f,n,e,l);if(!(O===void 0?A===T||s(A,T,t,r,l):O)){y=!1;break}b||(b=f=="constructor")}if(y&&!b){var F=n.constructor,M=e.constructor;F!=M&&"constructor"in n&&"constructor"in e&&!(typeof F=="function"&&F instanceof F&&typeof M=="function"&&M instanceof M)&&(y=!1)}return l.delete(n),l.delete(e),y}var Vv=1,Ml="[object Arguments]",Dl="[object Array]",Is="[object Object]",jv=Object.prototype,Ul=jv.hasOwnProperty;function $v(n,e,t,r,s,l){var a=Dn(n),c=Dn(e),o=a?Dl:jt(n),u=c?Dl:jt(e);o=o==Ml?Is:o,u=u==Ml?Is:u;var d=o==Is,h=u==Is,f=o==u;if(f&&Mr(n)){if(!Mr(e))return!1;a=!0,d=!1}if(f&&!d)return l||(l=new tn),a||Do(n)?Pl(n,e,t,r,s,l):Fv(n,e,o,t,r,s,l);if(!(t&Vv)){var m=d&&Ul.call(n,"__wrapped__"),p=h&&Ul.call(e,"__wrapped__");if(m||p){var y=m?n.value():n,b=p?e.value():e;return l||(l=new tn),s(y,b,t,r,l)}}return f?(l||(l=new tn),_v(n,e,t,r,s,l)):!1}function _l(n,e,t,r,s){return n===e?!0:n==null||e==null||!un(n)&&!un(e)?n!==n&&e!==e:$v(n,e,t,r,_l,s)}function qv(n){return function(e,t,r){for(var s=-1,l=Object(e),a=r(e),c=a.length;c--;){var o=a[++s];if(t(l[o],o,l)===!1)break}return e}}var zv=qv();function zo(n,e,t){(t!==void 0&&!Fr(n[e],t)||t===void 0&&!(e in n))&&Lo(n,e,t)}function Hv(n){return un(n)&&Ts(n)}function Ho(n,e){if(!(e==="constructor"&&typeof n[e]=="function")&&e!="__proto__")return n[e]}function Gv(n){return m0(n,dl(n))}function Wv(n,e,t,r,s,l,a){var c=Ho(n,t),o=Ho(e,t),u=a.get(o);if(u){zo(n,t,u);return}var d=l?l(c,o,t+"",n,e,a):void 0,h=d===void 0;if(h){var f=Dn(o),m=!f&&Mr(o),p=!f&&!m&&Do(o);d=o,f||m||p?Dn(c)?d=c:Hv(c)?d=n0(c):m?(h=!1,d=vl(o,!0)):p?(h=!1,d=kl(o,!0)):d=[]:$1(o)||Po(o)?(d=c,Po(c)?d=Gv(c):(!An(c)||Oo(c))&&(d=Cl(o))):h=!1}h&&(a.set(o,d),s(d,o,r,l,a),a.delete(o)),zo(n,t,d)}function Vl(n,e,t,r,s){n!==e&&zv(e,function(l,a){if(s||(s=new tn),An(l))Wv(n,e,a,t,Vl,r,s);else{var c=r?r(Ho(n,a),l,a+"",n,e,s):void 0;c===void 0&&(c=l),zo(n,a,c)}},dl)}function Go(n,e){return _l(n,e)}var Sn=x0(function(n,e,t){Vl(n,e,t)}),Ne=(n=>(n[n.TYPE=3]="TYPE",n[n.LEVEL=12]="LEVEL",n[n.ATTRIBUTE=13]="ATTRIBUTE",n[n.BLOT=14]="BLOT",n[n.INLINE=7]="INLINE",n[n.BLOCK=11]="BLOCK",n[n.BLOCK_BLOT=10]="BLOCK_BLOT",n[n.INLINE_BLOT=6]="INLINE_BLOT",n[n.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",n[n.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",n[n.ANY=15]="ANY",n))(Ne||{});class nn{constructor(e,t,r={}){this.attrName=e,this.keyName=t;const s=Ne.TYPE&Ne.ATTRIBUTE;this.scope=r.scope!=null?r.scope&Ne.LEVEL|s:Ne.ATTRIBUTE,r.whitelist!=null&&(this.whitelist=r.whitelist)}static keys(e){return Array.from(e.attributes).map(t=>t.name)}add(e,t){return this.canAdd(e,t)?(e.setAttribute(this.keyName,t),!0):!1}canAdd(e,t){return this.whitelist==null?!0:typeof t=="string"?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1}remove(e){e.removeAttribute(this.keyName)}value(e){const t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""}}class sr extends Error{constructor(e){e="[Parchment] "+e,super(e),this.message=e,this.name=this.constructor.name}}const jl=class qi{constructor(){this.attributes={},this.classes={},this.tags={},this.types={}}static find(e,t=!1){if(e==null)return null;if(this.blots.has(e))return this.blots.get(e)||null;if(t){let r=null;try{r=e.parentNode}catch{return null}return this.find(r,t)}return null}create(e,t,r){const s=this.query(t);if(s==null)throw new sr(`Unable to create ${t} blot`);const l=s,a=t instanceof Node||t.nodeType===Node.TEXT_NODE?t:l.create(r),c=new l(e,a,r);return qi.blots.set(c.domNode,c),c}find(e,t=!1){return qi.find(e,t)}query(e,t=Ne.ANY){let r;return typeof e=="string"?r=this.types[e]||this.attributes[e]:e instanceof Text||e.nodeType===Node.TEXT_NODE?r=this.types.text:typeof e=="number"?e&Ne.LEVEL&Ne.BLOCK?r=this.types.block:e&Ne.LEVEL&Ne.INLINE&&(r=this.types.inline):e instanceof Element&&((e.getAttribute("class")||"").split(/\s+/).some(s=>(r=this.classes[s],!!r)),r=r||this.tags[e.tagName]),r==null?null:"scope"in r&&t&Ne.LEVEL&r.scope&&t&Ne.TYPE&r.scope?r:null}register(...e){return e.map(t=>{const r="blotName"in t,s="attrName"in t;if(!r&&!s)throw new sr("Invalid definition");if(r&&t.blotName==="abstract")throw new sr("Cannot register abstract class");const l=r?t.blotName:s?t.attrName:void 0;return this.types[l]=t,s?typeof t.keyName=="string"&&(this.attributes[t.keyName]=t):r&&(t.className&&(this.classes[t.className]=t),t.tagName&&(Array.isArray(t.tagName)?t.tagName=t.tagName.map(a=>a.toUpperCase()):t.tagName=t.tagName.toUpperCase(),(Array.isArray(t.tagName)?t.tagName:[t.tagName]).forEach(a=>{(this.tags[a]==null||t.className==null)&&(this.tags[a]=t)}))),t})}};jl.blots=new WeakMap;let or=jl;function $l(n,e){return(n.getAttribute("class")||"").split(/\s+/).filter(t=>t.indexOf(`${e}-`)===0)}class Kv extends nn{static keys(e){return(e.getAttribute("class")||"").split(/\s+/).map(t=>t.split("-").slice(0,-1).join("-"))}add(e,t){return this.canAdd(e,t)?(this.remove(e),e.classList.add(`${this.keyName}-${t}`),!0):!1}remove(e){$l(e,this.keyName).forEach(t=>{e.classList.remove(t)}),e.classList.length===0&&e.removeAttribute("class")}value(e){const t=($l(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""}}const $t=Kv;function Wo(n){const e=n.split("-"),t=e.slice(1).map(r=>r[0].toUpperCase()+r.slice(1)).join("");return e[0]+t}class Xv extends nn{static keys(e){return(e.getAttribute("style")||"").split(";").map(t=>t.split(":")[0].trim())}add(e,t){return this.canAdd(e,t)?(e.style[Wo(this.keyName)]=t,!0):!1}remove(e){e.style[Wo(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")}value(e){const t=e.style[Wo(this.keyName)];return this.canAdd(e,t)?t:""}}const Tn=Xv;class Yv{constructor(e){this.attributes={},this.domNode=e,this.build()}attribute(e,t){t?e.add(this.domNode,t)&&(e.value(this.domNode)!=null?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])}build(){this.attributes={};const e=or.find(this.domNode);if(e==null)return;const t=nn.keys(this.domNode),r=$t.keys(this.domNode),s=Tn.keys(this.domNode);t.concat(r).concat(s).forEach(l=>{const a=e.scroll.query(l,Ne.ATTRIBUTE);a instanceof nn&&(this.attributes[a.attrName]=a)})}copy(e){Object.keys(this.attributes).forEach(t=>{const r=this.attributes[t].value(this.domNode);e.format(t,r)})}move(e){this.copy(e),Object.keys(this.attributes).forEach(t=>{this.attributes[t].remove(this.domNode)}),this.attributes={}}values(){return Object.keys(this.attributes).reduce((e,t)=>(e[t]=this.attributes[t].value(this.domNode),e),{})}}const Ls=Yv,ql=class{constructor(e,t){this.scroll=e,this.domNode=t,or.blots.set(t,this),this.prev=null,this.next=null}static create(e){if(this.tagName==null)throw new sr("Blot definition missing tagName");let t,r;return Array.isArray(this.tagName)?(typeof e=="string"?(r=e.toUpperCase(),parseInt(r,10).toString()===r&&(r=parseInt(r,10))):typeof e=="number"&&(r=e),typeof r=="number"?t=document.createElement(this.tagName[r-1]):r&&this.tagName.indexOf(r)>-1?t=document.createElement(r):t=document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t}get statics(){return this.constructor}attach(){}clone(){const e=this.domNode.cloneNode(!1);return this.scroll.create(e)}detach(){this.parent!=null&&this.parent.removeChild(this),or.blots.delete(this.domNode)}deleteAt(e,t){this.isolate(e,t).remove()}formatAt(e,t,r,s){const l=this.isolate(e,t);if(this.scroll.query(r,Ne.BLOT)!=null&&s)l.wrap(r,s);else if(this.scroll.query(r,Ne.ATTRIBUTE)!=null){const a=this.scroll.create(this.statics.scope);l.wrap(a),a.format(r,s)}}insertAt(e,t,r){const s=r==null?this.scroll.create("text",t):this.scroll.create(t,r),l=this.split(e);this.parent.insertBefore(s,l||void 0)}isolate(e,t){const r=this.split(e);if(r==null)throw new Error("Attempt to isolate at end");return r.split(t),r}length(){return 1}offset(e=this.parent){return this.parent==null||this===e?0:this.parent.children.offset(this)+this.parent.offset(e)}optimize(e){this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)&&this.wrap(this.statics.requiredContainer.blotName)}remove(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()}replaceWith(e,t){const r=typeof e=="string"?this.scroll.create(e,t):e;return this.parent!=null&&(this.parent.insertBefore(r,this.next||void 0),this.remove()),r}split(e,t){return e===0?this:this.next}update(e,t){}wrap(e,t){const r=typeof e=="string"?this.scroll.create(e,t):e;if(this.parent!=null&&this.parent.insertBefore(r,this.next||void 0),typeof r.appendChild!="function")throw new sr(`Cannot wrap ${e}`);return r.appendChild(this),r}};ql.blotName="abstract";let zl=ql;const Hl=class extends zl{static value(e){return!0}index(e,t){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1}position(e,t){let r=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return e>0&&(r+=1),[this.parent.domNode,r]}value(){return{[this.statics.blotName]:this.statics.value(this.domNode)||!0}}};Hl.scope=Ne.INLINE_BLOT;const yt=Hl;class Zv{constructor(){this.head=null,this.tail=null,this.length=0}append(...e){if(this.insertBefore(e[0],null),e.length>1){const t=e.slice(1);this.append(...t)}}at(e){const t=this.iterator();let r=t();for(;r&&e>0;)e-=1,r=t();return r}contains(e){const t=this.iterator();let r=t();for(;r;){if(r===e)return!0;r=t()}return!1}indexOf(e){const t=this.iterator();let r=t(),s=0;for(;r;){if(r===e)return s;s+=1,r=t()}return-1}insertBefore(e,t){e!=null&&(this.remove(e),e.next=t,t!=null?(e.prev=t.prev,t.prev!=null&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):this.tail!=null?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)}offset(e){let t=0,r=this.head;for(;r!=null;){if(r===e)return t;t+=r.length(),r=r.next}return-1}remove(e){this.contains(e)&&(e.prev!=null&&(e.prev.next=e.next),e.next!=null&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)}iterator(e=this.head){return()=>{const t=e;return e!=null&&(e=e.next),t}}find(e,t=!1){const r=this.iterator();let s=r();for(;s;){const l=s.length();if(e<l||t&&e===l&&(s.next==null||s.next.length()!==0))return[s,e];e-=l,s=r()}return[null,0]}forEach(e){const t=this.iterator();let r=t();for(;r;)e(r),r=t()}forEachAt(e,t,r){if(t<=0)return;const[s,l]=this.find(e);let a=e-l;const c=this.iterator(s);let o=c();for(;o&&a<e+t;){const u=o.length();e>a?r(o,e-a,Math.min(t,a+u-e)):r(o,0,Math.min(u,e+t-a)),a+=u,o=c()}}map(e){return this.reduce((t,r)=>(t.push(e(r)),t),[])}reduce(e,t){const r=this.iterator();let s=r();for(;s;)t=e(t,s),s=r();return t}}function Gl(n,e){const t=e.find(n);if(t)return t;try{return e.create(n)}catch{const r=e.create(Ne.INLINE);return Array.from(n.childNodes).forEach(s=>{r.domNode.appendChild(s)}),n.parentNode&&n.parentNode.replaceChild(r.domNode,n),r.attach(),r}}const Wl=class In extends zl{constructor(e,t){super(e,t),this.uiNode=null,this.build()}appendChild(e){this.insertBefore(e)}attach(){super.attach(),this.children.forEach(e=>{e.attach()})}attachUI(e){this.uiNode!=null&&this.uiNode.remove(),this.uiNode=e,In.uiClass&&this.uiNode.classList.add(In.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new Zv,Array.from(this.domNode.childNodes).filter(e=>e!==this.uiNode).reverse().forEach(e=>{try{const t=Gl(e,this.scroll);this.insertBefore(t,this.children.head||void 0)}catch(t){if(t instanceof sr)return;throw t}})}deleteAt(e,t){if(e===0&&t===this.length())return this.remove();this.children.forEachAt(e,t,(r,s,l)=>{r.deleteAt(s,l)})}descendant(e,t=0){const[r,s]=this.children.find(t);return e.blotName==null&&e(r)||e.blotName!=null&&r instanceof e?[r,s]:r instanceof In?r.descendant(e,s):[null,-1]}descendants(e,t=0,r=Number.MAX_VALUE){let s=[],l=r;return this.children.forEachAt(t,r,(a,c,o)=>{(e.blotName==null&&e(a)||e.blotName!=null&&a instanceof e)&&s.push(a),a instanceof In&&(s=s.concat(a.descendants(e,c,l))),l-=o}),s}detach(){this.children.forEach(e=>{e.detach()}),super.detach()}enforceAllowedChildren(){let e=!1;this.children.forEach(t=>{e||this.statics.allowedChildren.some(r=>t instanceof r)||(t.statics.scope===Ne.BLOCK_BLOT?(t.next!=null&&this.splitAfter(t),t.prev!=null&&this.splitAfter(t.prev),t.parent.unwrap(),e=!0):t instanceof In?t.unwrap():t.remove())})}formatAt(e,t,r,s){this.children.forEachAt(e,t,(l,a,c)=>{l.formatAt(a,c,r,s)})}insertAt(e,t,r){const[s,l]=this.children.find(e);if(s)s.insertAt(l,t,r);else{const a=r==null?this.scroll.create("text",t):this.scroll.create(t,r);this.appendChild(a)}}insertBefore(e,t){e.parent!=null&&e.parent.children.remove(e);let r=null;this.children.insertBefore(e,t||null),e.parent=this,t!=null&&(r=t.domNode),(this.domNode.parentNode!==e.domNode||this.domNode.nextSibling!==r)&&this.domNode.insertBefore(e.domNode,r),e.attach()}length(){return this.children.reduce((e,t)=>e+t.length(),0)}moveChildren(e,t){this.children.forEach(r=>{e.insertBefore(r,t)})}optimize(e){if(super.optimize(e),this.enforceAllowedChildren(),this.uiNode!=null&&this.uiNode!==this.domNode.firstChild&&this.domNode.insertBefore(this.uiNode,this.domNode.firstChild),this.children.length===0)if(this.statics.defaultChild!=null){const t=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(t)}else this.remove()}path(e,t=!1){const[r,s]=this.children.find(e,t),l=[[this,e]];return r instanceof In?l.concat(r.path(s,t)):(r!=null&&l.push([r,s]),l)}removeChild(e){this.children.remove(e)}replaceWith(e,t){const r=typeof e=="string"?this.scroll.create(e,t):e;return r instanceof In&&this.moveChildren(r),super.replaceWith(r)}split(e,t=!1){if(!t){if(e===0)return this;if(e===this.length())return this.next}const r=this.clone();return this.parent&&this.parent.insertBefore(r,this.next||void 0),this.children.forEachAt(e,this.length(),(s,l,a)=>{const c=s.split(l,t);c!=null&&r.appendChild(c)}),r}splitAfter(e){const t=this.clone();for(;e.next!=null;)t.appendChild(e.next);return this.parent&&this.parent.insertBefore(t,this.next||void 0),t}unwrap(){this.parent&&this.moveChildren(this.parent,this.next||void 0),this.remove()}update(e,t){const r=[],s=[];e.forEach(l=>{l.target===this.domNode&&l.type==="childList"&&(r.push(...l.addedNodes),s.push(...l.removedNodes))}),s.forEach(l=>{if(l.parentNode!=null&&l.tagName!=="IFRAME"&&document.body.compareDocumentPosition(l)&Node.DOCUMENT_POSITION_CONTAINED_BY)return;const a=this.scroll.find(l);a!=null&&(a.domNode.parentNode==null||a.domNode.parentNode===this.domNode)&&a.detach()}),r.filter(l=>l.parentNode===this.domNode&&l!==this.uiNode).sort((l,a)=>l===a?0:l.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1).forEach(l=>{let a=null;l.nextSibling!=null&&(a=this.scroll.find(l.nextSibling));const c=Gl(l,this.scroll);(c.next!==a||c.next==null)&&(c.parent!=null&&c.parent.removeChild(this),this.insertBefore(c,a||void 0))}),this.enforceAllowedChildren()}};Wl.uiClass="";const qt=Wl;function Qv(n,e){if(Object.keys(n).length!==Object.keys(e).length)return!1;for(const t in n)if(n[t]!==e[t])return!1;return!0}const ir=class Nr extends qt{static create(e){return super.create(e)}static formats(e,t){const r=t.query(Nr.blotName);if(!(r!=null&&e.tagName===r.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()}}constructor(e,t){super(e,t),this.attributes=new Ls(this.domNode)}format(e,t){if(e===this.statics.blotName&&!t)this.children.forEach(r=>{r instanceof Nr||(r=r.wrap(Nr.blotName,!0)),this.attributes.copy(r)}),this.unwrap();else{const r=this.scroll.query(e,Ne.INLINE);if(r==null)return;r instanceof nn?this.attributes.attribute(r,t):t&&(e!==this.statics.blotName||this.formats()[e]!==t)&&this.replaceWith(e,t)}}formats(){const e=this.attributes.values(),t=this.statics.formats(this.domNode,this.scroll);return t!=null&&(e[this.statics.blotName]=t),e}formatAt(e,t,r,s){this.formats()[r]!=null||this.scroll.query(r,Ne.ATTRIBUTE)?this.isolate(e,t).format(r,s):super.formatAt(e,t,r,s)}optimize(e){super.optimize(e);const t=this.formats();if(Object.keys(t).length===0)return this.unwrap();const r=this.next;r instanceof Nr&&r.prev===this&&Qv(t,r.formats())&&(r.moveChildren(this),r.remove())}replaceWith(e,t){const r=super.replaceWith(e,t);return this.attributes.copy(r),r}update(e,t){super.update(e,t),e.some(r=>r.target===this.domNode&&r.type==="attributes")&&this.attributes.build()}wrap(e,t){const r=super.wrap(e,t);return r instanceof Nr&&this.attributes.move(r),r}};ir.allowedChildren=[ir,yt],ir.blotName="inline",ir.scope=Ne.INLINE_BLOT,ir.tagName="SPAN";const Ko=ir,ar=class zi extends qt{static create(e){return super.create(e)}static formats(e,t){const r=t.query(zi.blotName);if(!(r!=null&&e.tagName===r.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()}}constructor(e,t){super(e,t),this.attributes=new Ls(this.domNode)}format(e,t){const r=this.scroll.query(e,Ne.BLOCK);r!=null&&(r instanceof nn?this.attributes.attribute(r,t):e===this.statics.blotName&&!t?this.replaceWith(zi.blotName):t&&(e!==this.statics.blotName||this.formats()[e]!==t)&&this.replaceWith(e,t))}formats(){const e=this.attributes.values(),t=this.statics.formats(this.domNode,this.scroll);return t!=null&&(e[this.statics.blotName]=t),e}formatAt(e,t,r,s){this.scroll.query(r,Ne.BLOCK)!=null?this.format(r,s):super.formatAt(e,t,r,s)}insertAt(e,t,r){if(r==null||this.scroll.query(t,Ne.INLINE)!=null)super.insertAt(e,t,r);else{const s=this.split(e);if(s!=null){const l=this.scroll.create(t,r);s.parent.insertBefore(l,s)}else throw new Error("Attempt to insertAt after block boundaries")}}replaceWith(e,t){const r=super.replaceWith(e,t);return this.attributes.copy(r),r}update(e,t){super.update(e,t),e.some(r=>r.target===this.domNode&&r.type==="attributes")&&this.attributes.build()}};ar.blotName="block",ar.scope=Ne.BLOCK_BLOT,ar.tagName="P",ar.allowedChildren=[Ko,ar,yt];const Vr=ar,Xo=class extends qt{checkMerge(){return this.next!==null&&this.next.statics.blotName===this.statics.blotName}deleteAt(e,t){super.deleteAt(e,t),this.enforceAllowedChildren()}formatAt(e,t,r,s){super.formatAt(e,t,r,s),this.enforceAllowedChildren()}insertAt(e,t,r){super.insertAt(e,t,r),this.enforceAllowedChildren()}optimize(e){super.optimize(e),this.children.length>0&&this.next!=null&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}};Xo.blotName="container",Xo.scope=Ne.BLOCK_BLOT;const Bs=Xo;class Jv extends yt{static formats(e,t){}format(e,t){super.formatAt(0,this.length(),e,t)}formatAt(e,t,r,s){e===0&&t===this.length()?this.format(r,s):super.formatAt(e,t,r,s)}formats(){return this.statics.formats(this.domNode,this.scroll)}}const Ot=Jv,eb={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},tb=100,lr=class extends qt{constructor(e,t){super(null,t),this.registry=e,this.scroll=this,this.build(),this.observer=new MutationObserver(r=>{this.update(r)}),this.observer.observe(this.domNode,eb),this.attach()}create(e,t){return this.registry.create(this,e,t)}find(e,t=!1){const r=this.registry.find(e,t);return r?r.scroll===this?r:t?this.find(r.scroll.domNode.parentNode,!0):null:null}query(e,t=Ne.ANY){return this.registry.query(e,t)}register(...e){return this.registry.register(...e)}build(){this.scroll!=null&&super.build()}detach(){super.detach(),this.observer.disconnect()}deleteAt(e,t){this.update(),e===0&&t===this.length()?this.children.forEach(r=>{r.remove()}):super.deleteAt(e,t)}formatAt(e,t,r,s){this.update(),super.formatAt(e,t,r,s)}insertAt(e,t,r){this.update(),super.insertAt(e,t,r)}optimize(e=[],t={}){super.optimize(t);const r=t.mutationsMap||new WeakMap;let s=Array.from(this.observer.takeRecords());for(;s.length>0;)e.push(s.pop());const l=(o,u=!0)=>{o==null||o===this||o.domNode.parentNode!=null&&(r.has(o.domNode)||r.set(o.domNode,[]),u&&l(o.parent))},a=o=>{r.has(o.domNode)&&(o instanceof qt&&o.children.forEach(a),r.delete(o.domNode),o.optimize(t))};let c=e;for(let o=0;c.length>0;o+=1){if(o>=tb)throw new Error("[Parchment] Maximum optimize iterations reached");for(c.forEach(u=>{const d=this.find(u.target,!0);d!=null&&(d.domNode===u.target&&(u.type==="childList"?(l(this.find(u.previousSibling,!1)),Array.from(u.addedNodes).forEach(h=>{const f=this.find(h,!1);l(f,!1),f instanceof qt&&f.children.forEach(m=>{l(m,!1)})})):u.type==="attributes"&&l(d.prev)),l(d))}),this.children.forEach(a),c=Array.from(this.observer.takeRecords()),s=c.slice();s.length>0;)e.push(s.pop())}}update(e,t={}){e=e||this.observer.takeRecords();const r=new WeakMap;e.map(s=>{const l=this.find(s.target,!0);return l==null?null:r.has(l.domNode)?(r.get(l.domNode).push(s),null):(r.set(l.domNode,[s]),l)}).forEach(s=>{s!=null&&s!==this&&r.has(s.domNode)&&s.update(r.get(s.domNode)||[],t)}),t.mutationsMap=r,r.has(this.domNode)&&super.update(r.get(this.domNode),t),this.optimize(e,t)}};lr.blotName="scroll",lr.defaultChild=Vr,lr.allowedChildren=[Vr,Bs],lr.scope=Ne.BLOCK_BLOT,lr.tagName="DIV";const Yo=lr,Zo=class nu extends yt{static create(e){return document.createTextNode(e)}static value(e){return e.data}constructor(e,t){super(e,t),this.text=this.statics.value(this.domNode)}deleteAt(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)}index(e,t){return this.domNode===e?t:-1}insertAt(e,t,r){r==null?(this.text=this.text.slice(0,e)+t+this.text.slice(e),this.domNode.data=this.text):super.insertAt(e,t,r)}length(){return this.text.length}optimize(e){super.optimize(e),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof nu&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())}position(e,t=!1){return[this.domNode,e]}split(e,t=!1){if(!t){if(e===0)return this;if(e===this.length())return this.next}const r=this.scroll.create(this.domNode.splitText(e));return this.parent.insertBefore(r,this.next||void 0),this.text=this.statics.value(this.domNode),r}update(e,t){e.some(r=>r.type==="characterData"&&r.target===this.domNode)&&(this.text=this.statics.value(this.domNode))}value(){return this.text}};Zo.blotName="text",Zo.scope=Ne.INLINE_BLOT;const Ps=Zo,nb=Object.freeze(Object.defineProperty({__proto__:null,Attributor:nn,AttributorStore:Ls,BlockBlot:Vr,ClassAttributor:$t,ContainerBlot:Bs,EmbedBlot:Ot,InlineBlot:Ko,LeafBlot:yt,ParentBlot:qt,Registry:or,Scope:Ne,ScrollBlot:Yo,StyleAttributor:Tn,TextBlot:Ps},Symbol.toStringTag,{value:"Module"}));var Fs={exports:{}},Qo,Kl;function rb(){if(Kl)return Qo;Kl=1;var n=-1,e=1,t=0;function r(E,P,k,$,_){if(E===P)return E?[[t,E]]:[];if(k!=null){var V=re(E,P,k);if(V)return V}var K=c(E,P),q=E.substring(0,K);E=E.substring(K),P=P.substring(K),K=u(E,P);var J=E.substring(E.length-K);E=E.substring(0,E.length-K),P=P.substring(0,P.length-K);var te=s(E,P);return q&&te.unshift([t,q]),J&&te.push([t,J]),T(te,_),$&&h(te),te}function s(E,P){var k;if(!E)return[[e,P]];if(!P)return[[n,E]];var $=E.length>P.length?E:P,_=E.length>P.length?P:E,V=$.indexOf(_);if(V!==-1)return k=[[e,$.substring(0,V)],[t,_],[e,$.substring(V+_.length)]],E.length>P.length&&(k[0][0]=k[2][0]=n),k;if(_.length===1)return[[n,E],[e,P]];var K=d(E,P);if(K){var q=K[0],J=K[1],te=K[2],me=K[3],ge=K[4],ye=r(q,te),xe=r(J,me);return ye.concat([[t,ge]],xe)}return l(E,P)}function l(E,P){for(var k=E.length,$=P.length,_=Math.ceil((k+$)/2),V=_,K=2*_,q=new Array(K),J=new Array(K),te=0;te<K;te++)q[te]=-1,J[te]=-1;q[V+1]=0,J[V+1]=0;for(var me=k-$,ge=me%2!==0,ye=0,xe=0,he=0,ke=0,ve=0;ve<_;ve++){for(var N=-ve+ye;N<=ve-xe;N+=2){var R=V+N,w;N===-ve||N!==ve&&q[R-1]<q[R+1]?w=q[R+1]:w=q[R-1]+1;for(var C=w-N;w<k&&C<$&&E.charAt(w)===P.charAt(C);)w++,C++;if(q[R]=w,w>k)xe+=2;else if(C>$)ye+=2;else if(ge){var v=V+me-N;if(v>=0&&v<K&&J[v]!==-1){var x=k-J[v];if(w>=x)return a(E,P,w,C)}}}for(var I=-ve+he;I<=ve-ke;I+=2){var v=V+I,x;I===-ve||I!==ve&&J[v-1]<J[v+1]?x=J[v+1]:x=J[v-1]+1;for(var B=x-I;x<k&&B<$&&E.charAt(k-x-1)===P.charAt($-B-1);)x++,B++;if(J[v]=x,x>k)ke+=2;else if(B>$)he+=2;else if(!ge){var R=V+me-I;if(R>=0&&R<K&&q[R]!==-1){var w=q[R],C=V+w-R;if(x=k-x,w>=x)return a(E,P,w,C)}}}}return[[n,E],[e,P]]}function a(E,P,k,$){var _=E.substring(0,k),V=P.substring(0,$),K=E.substring(k),q=P.substring($),J=r(_,V),te=r(K,q);return J.concat(te)}function c(E,P){if(!E||!P||E.charAt(0)!==P.charAt(0))return 0;for(var k=0,$=Math.min(E.length,P.length),_=$,V=0;k<_;)E.substring(V,_)==P.substring(V,_)?(k=_,V=k):$=_,_=Math.floor(($-k)/2+k);return O(E.charCodeAt(_-1))&&_--,_}function o(E,P){var k=E.length,$=P.length;if(k==0||$==0)return 0;k>$?E=E.substring(k-$):k<$&&(P=P.substring(0,k));var _=Math.min(k,$);if(E==P)return _;for(var V=0,K=1;;){var q=E.substring(_-K),J=P.indexOf(q);if(J==-1)return V;K+=J,(J==0||E.substring(_-K)==P.substring(0,K))&&(V=K,K++)}}function u(E,P){if(!E||!P||E.slice(-1)!==P.slice(-1))return 0;for(var k=0,$=Math.min(E.length,P.length),_=$,V=0;k<_;)E.substring(E.length-_,E.length-V)==P.substring(P.length-_,P.length-V)?(k=_,V=k):$=_,_=Math.floor(($-k)/2+k);return F(E.charCodeAt(E.length-_))&&_--,_}function d(E,P){var k=E.length>P.length?E:P,$=E.length>P.length?P:E;if(k.length<4||$.length*2<k.length)return null;function _(xe,he,ke){for(var ve=xe.substring(ke,ke+Math.floor(xe.length/4)),N=-1,R="",w,C,v,x;(N=he.indexOf(ve,N+1))!==-1;){var I=c(xe.substring(ke),he.substring(N)),B=u(xe.substring(0,ke),he.substring(0,N));R.length<B+I&&(R=he.substring(N-B,N)+he.substring(N,N+I),w=xe.substring(0,ke-B),C=xe.substring(ke+I),v=he.substring(0,N-B),x=he.substring(N+I))}return R.length*2>=xe.length?[w,C,v,x,R]:null}var V=_(k,$,Math.ceil(k.length/4)),K=_(k,$,Math.ceil(k.length/2)),q;if(!V&&!K)return null;K?V?q=V[4].length>K[4].length?V:K:q=K:q=V;var J,te,me,ge;E.length>P.length?(J=q[0],te=q[1],me=q[2],ge=q[3]):(me=q[0],ge=q[1],J=q[2],te=q[3]);var ye=q[4];return[J,te,me,ge,ye]}function h(E){for(var P=!1,k=[],$=0,_=null,V=0,K=0,q=0,J=0,te=0;V<E.length;)E[V][0]==t?(k[$++]=V,K=J,q=te,J=0,te=0,_=E[V][1]):(E[V][0]==e?J+=E[V][1].length:te+=E[V][1].length,_&&_.length<=Math.max(K,q)&&_.length<=Math.max(J,te)&&(E.splice(k[$-1],0,[n,_]),E[k[$-1]+1][0]=e,$--,$--,V=$>0?k[$-1]:-1,K=0,q=0,J=0,te=0,_=null,P=!0)),V++;for(P&&T(E),A(E),V=1;V<E.length;){if(E[V-1][0]==n&&E[V][0]==e){var me=E[V-1][1],ge=E[V][1],ye=o(me,ge),xe=o(ge,me);ye>=xe?(ye>=me.length/2||ye>=ge.length/2)&&(E.splice(V,0,[t,ge.substring(0,ye)]),E[V-1][1]=me.substring(0,me.length-ye),E[V+1][1]=ge.substring(ye),V++):(xe>=me.length/2||xe>=ge.length/2)&&(E.splice(V,0,[t,me.substring(0,xe)]),E[V-1][0]=e,E[V-1][1]=ge.substring(0,ge.length-xe),E[V+1][0]=n,E[V+1][1]=me.substring(xe),V++),V++}V++}}var f=/[^a-zA-Z0-9]/,m=/\s/,p=/[\r\n]/,y=/\n\r?\n$/,b=/^\r?\n\r?\n/;function A(E){function P(xe,he){if(!xe||!he)return 6;var ke=xe.charAt(xe.length-1),ve=he.charAt(0),N=ke.match(f),R=ve.match(f),w=N&&ke.match(m),C=R&&ve.match(m),v=w&&ke.match(p),x=C&&ve.match(p),I=v&&xe.match(y),B=x&&he.match(b);return I||B?5:v||x?4:N&&!w&&C?3:w||C?2:N||R?1:0}for(var k=1;k<E.length-1;){if(E[k-1][0]==t&&E[k+1][0]==t){var $=E[k-1][1],_=E[k][1],V=E[k+1][1],K=u($,_);if(K){var q=_.substring(_.length-K);$=$.substring(0,$.length-K),_=q+_.substring(0,_.length-K),V=q+V}for(var J=$,te=_,me=V,ge=P($,_)+P(_,V);_.charAt(0)===V.charAt(0);){$+=_.charAt(0),_=_.substring(1)+V.charAt(0),V=V.substring(1);var ye=P($,_)+P(_,V);ye>=ge&&(ge=ye,J=$,te=_,me=V)}E[k-1][1]!=J&&(J?E[k-1][1]=J:(E.splice(k-1,1),k--),E[k][1]=te,me?E[k+1][1]=me:(E.splice(k+1,1),k--))}k++}}function T(E,P){E.push([t,""]);for(var k=0,$=0,_=0,V="",K="",q;k<E.length;){if(k<E.length-1&&!E[k][1]){E.splice(k,1);continue}switch(E[k][0]){case e:_++,K+=E[k][1],k++;break;case n:$++,V+=E[k][1],k++;break;case t:var J=k-_-$-1;if(P){if(J>=0&&z(E[J][1])){var te=E[J][1].slice(-1);if(E[J][1]=E[J][1].slice(0,-1),V=te+V,K=te+K,!E[J][1]){E.splice(J,1),k--;var me=J-1;E[me]&&E[me][0]===e&&(_++,K=E[me][1]+K,me--),E[me]&&E[me][0]===n&&($++,V=E[me][1]+V,me--),J=me}}if(M(E[k][1])){var te=E[k][1].charAt(0);E[k][1]=E[k][1].slice(1),V+=te,K+=te}}if(k<E.length-1&&!E[k][1]){E.splice(k,1);break}if(V.length>0||K.length>0){V.length>0&&K.length>0&&(q=c(K,V),q!==0&&(J>=0?E[J][1]+=K.substring(0,q):(E.splice(0,0,[t,K.substring(0,q)]),k++),K=K.substring(q),V=V.substring(q)),q=u(K,V),q!==0&&(E[k][1]=K.substring(K.length-q)+E[k][1],K=K.substring(0,K.length-q),V=V.substring(0,V.length-q)));var ge=_+$;V.length===0&&K.length===0?(E.splice(k-ge,ge),k=k-ge):V.length===0?(E.splice(k-ge,ge,[e,K]),k=k-ge+1):K.length===0?(E.splice(k-ge,ge,[n,V]),k=k-ge+1):(E.splice(k-ge,ge,[n,V],[e,K]),k=k-ge+2)}k!==0&&E[k-1][0]===t?(E[k-1][1]+=E[k][1],E.splice(k,1)):k++,_=0,$=0,V="",K="";break}}E[E.length-1][1]===""&&E.pop();var ye=!1;for(k=1;k<E.length-1;)E[k-1][0]===t&&E[k+1][0]===t&&(E[k][1].substring(E[k][1].length-E[k-1][1].length)===E[k-1][1]?(E[k][1]=E[k-1][1]+E[k][1].substring(0,E[k][1].length-E[k-1][1].length),E[k+1][1]=E[k-1][1]+E[k+1][1],E.splice(k-1,1),ye=!0):E[k][1].substring(0,E[k+1][1].length)==E[k+1][1]&&(E[k-1][1]+=E[k+1][1],E[k][1]=E[k][1].substring(E[k+1][1].length)+E[k+1][1],E.splice(k+1,1),ye=!0)),k++;ye&&T(E,P)}function O(E){return E>=55296&&E<=56319}function F(E){return E>=56320&&E<=57343}function M(E){return F(E.charCodeAt(0))}function z(E){return O(E.charCodeAt(E.length-1))}function X(E){for(var P=[],k=0;k<E.length;k++)E[k][1].length>0&&P.push(E[k]);return P}function H(E,P,k,$){return z(E)||M($)?null:X([[t,E],[n,P],[e,k],[t,$]])}function re(E,P,k){var $=typeof k=="number"?{index:k,length:0}:k.oldRange,_=typeof k=="number"?null:k.newRange,V=E.length,K=P.length;if($.length===0&&(_===null||_.length===0)){var q=$.index,J=E.slice(0,q),te=E.slice(q),me=_?_.index:null;e:{var ge=q+K-V;if(me!==null&&me!==ge||ge<0||ge>K)break e;var ye=P.slice(0,ge),xe=P.slice(ge);if(xe!==te)break e;var he=Math.min(q,ge),ke=J.slice(0,he),ve=ye.slice(0,he);if(ke!==ve)break e;var N=J.slice(he),R=ye.slice(he);return H(ke,N,R,te)}e:{if(me!==null&&me!==q)break e;var w=q,ye=P.slice(0,w),xe=P.slice(w);if(ye!==J)break e;var C=Math.min(V-w,K-w),v=te.slice(te.length-C),x=xe.slice(xe.length-C);if(v!==x)break e;var N=te.slice(0,te.length-C),R=xe.slice(0,xe.length-C);return H(J,N,R,v)}}if($.length>0&&_&&_.length===0)e:{var ke=E.slice(0,$.index),v=E.slice($.index+$.length),he=ke.length,C=v.length;if(K<he+C)break e;var ve=P.slice(0,he),x=P.slice(K-C);if(ke!==ve||v!==x)break e;var N=E.slice(he,V-C),R=P.slice(he,K-C);return H(ke,N,R,v)}return null}function G(E,P,k,$){return r(E,P,k,$,!0)}return G.INSERT=e,G.DELETE=n,G.EQUAL=t,Qo=G,Qo}var jr={exports:{}};jr.exports;var Xl;function Yl(){return Xl||(Xl=1,function(n,e){var t=200,r="__lodash_hash_undefined__",s=9007199254740991,l="[object Arguments]",a="[object Array]",c="[object Boolean]",o="[object Date]",u="[object Error]",d="[object Function]",h="[object GeneratorFunction]",f="[object Map]",m="[object Number]",p="[object Object]",y="[object Promise]",b="[object RegExp]",A="[object Set]",T="[object String]",O="[object Symbol]",F="[object WeakMap]",M="[object ArrayBuffer]",z="[object DataView]",X="[object Float32Array]",H="[object Float64Array]",re="[object Int8Array]",G="[object Int16Array]",E="[object Int32Array]",P="[object Uint8Array]",k="[object Uint8ClampedArray]",$="[object Uint16Array]",_="[object Uint32Array]",V=/[\\^$.*+?()[\]{}|]/g,K=/\w*$/,q=/^\[object .+?Constructor\]$/,J=/^(?:0|[1-9]\d*)$/,te={};te[l]=te[a]=te[M]=te[z]=te[c]=te[o]=te[X]=te[H]=te[re]=te[G]=te[E]=te[f]=te[m]=te[p]=te[b]=te[A]=te[T]=te[O]=te[P]=te[k]=te[$]=te[_]=!0,te[u]=te[d]=te[F]=!1;var me=typeof En=="object"&&En&&En.Object===Object&&En,ge=typeof self=="object"&&self&&self.Object===Object&&self,ye=me||ge||Function("return this")(),xe=e&&!e.nodeType&&e,he=xe&&!0&&n&&!n.nodeType&&n,ke=he&&he.exports===xe;function ve(g,S){return g.set(S[0],S[1]),g}function N(g,S){return g.add(S),g}function R(g,S){for(var D=-1,oe=g?g.length:0;++D<oe&&S(g[D],D,g)!==!1;);return g}function w(g,S){for(var D=-1,oe=S.length,Fe=g.length;++D<oe;)g[Fe+D]=S[D];return g}function C(g,S,D,oe){for(var Fe=-1,Oe=g?g.length:0;++Fe<Oe;)D=S(D,g[Fe],Fe,g);return D}function v(g,S){for(var D=-1,oe=Array(g);++D<g;)oe[D]=S(D);return oe}function x(g,S){return g==null?void 0:g[S]}function I(g){var S=!1;if(g!=null&&typeof g.toString!="function")try{S=!!(g+"")}catch{}return S}function B(g){var S=-1,D=Array(g.size);return g.forEach(function(oe,Fe){D[++S]=[Fe,oe]}),D}function U(g,S){return function(D){return g(S(D))}}function j(g){var S=-1,D=Array(g.size);return g.forEach(function(oe){D[++S]=oe}),D}var W=Array.prototype,Z=Function.prototype,Y=Object.prototype,Q=ye["__core-js_shared__"],ne=function(){var g=/[^.]+$/.exec(Q&&Q.keys&&Q.keys.IE_PROTO||"");return g?"Symbol(src)_1."+g:""}(),ie=Z.toString,fe=Y.hasOwnProperty,we=Y.toString,De=RegExp("^"+ie.call(fe).replace(V,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ge=ke?ye.Buffer:void 0,_e=ye.Symbol,Be=ye.Uint8Array,Ve=U(Object.getPrototypeOf,Object),rt=Object.create,ot=Y.propertyIsEnumerable,Dt=W.splice,bt=Object.getOwnPropertySymbols,$e=Ge?Ge.isBuffer:void 0,Pe=U(Object.keys,Object),We=Qt(ye,"DataView"),pe=Qt(ye,"Map"),be=Qt(ye,"Promise"),Ce=Qt(ye,"Set"),Ie=Qt(ye,"WeakMap"),Re=Qt(Object,"create"),je=St(We),Ke=St(pe),et=St(be),dt=St(Ce),ft=St(Ie),Rt=_e?_e.prototype:void 0,Ut=Rt?Rt.valueOf:void 0;function lt(g){var S=-1,D=g?g.length:0;for(this.clear();++S<D;){var oe=g[S];this.set(oe[0],oe[1])}}function kt(){this.__data__=Re?Re(null):{}}function Yt(g){return this.has(g)&&delete this.__data__[g]}function Gn(g){var S=this.__data__;if(Re){var D=S[g];return D===r?void 0:D}return fe.call(S,g)?S[g]:void 0}function gn(g){var S=this.__data__;return Re?S[g]!==void 0:fe.call(S,g)}function Cn(g,S){var D=this.__data__;return D[g]=Re&&S===void 0?r:S,this}lt.prototype.clear=kt,lt.prototype.delete=Yt,lt.prototype.get=Gn,lt.prototype.has=gn,lt.prototype.set=Cn;function it(g){var S=-1,D=g?g.length:0;for(this.clear();++S<D;){var oe=g[S];this.set(oe[0],oe[1])}}function mr(){this.__data__=[]}function gr(g){var S=this.__data__,D=Ue(S,g);if(D<0)return!1;var oe=S.length-1;return D==oe?S.pop():Dt.call(S,D,1),!0}function yr(g){var S=this.__data__,D=Ue(S,g);return D<0?void 0:S[D][1]}function vr(g){return Ue(this.__data__,g)>-1}function br(g,S){var D=this.__data__,oe=Ue(D,g);return oe<0?D.push([g,S]):D[oe][1]=S,this}it.prototype.clear=mr,it.prototype.delete=gr,it.prototype.get=yr,it.prototype.has=vr,it.prototype.set=br;function ct(g){var S=-1,D=g?g.length:0;for(this.clear();++S<D;){var oe=g[S];this.set(oe[0],oe[1])}}function xr(){this.__data__={hash:new lt,map:new(pe||it),string:new lt}}function Er(g){return Kn(this,g).delete(g)}function wr(g){return Kn(this,g).get(g)}function xt(g){return Kn(this,g).has(g)}function Ar(g,S){return Kn(this,g).set(g,S),this}ct.prototype.clear=xr,ct.prototype.delete=Er,ct.prototype.get=wr,ct.prototype.has=xt,ct.prototype.set=Ar;function pt(g){this.__data__=new it(g)}function L(){this.__data__=new it}function ae(g){return this.__data__.delete(g)}function se(g){return this.__data__.get(g)}function ce(g){return this.__data__.has(g)}function de(g,S){var D=this.__data__;if(D instanceof it){var oe=D.__data__;if(!pe||oe.length<t-1)return oe.push([g,S]),this;D=this.__data__=new ct(oe)}return D.set(g,S),this}pt.prototype.clear=L,pt.prototype.delete=ae,pt.prototype.get=se,pt.prototype.has=ce,pt.prototype.set=de;function Le(g,S){var D=rs(g)||Sr(g)?v(g.length,String):[],oe=D.length,Fe=!!oe;for(var Oe in g)fe.call(g,Oe)&&!(Fe&&(Oe=="length"||Di(Oe,oe)))&&D.push(Oe);return D}function Ae(g,S,D){var oe=g[S];(!(fe.call(g,S)&&Js(oe,D))||D===void 0&&!(S in g))&&(g[S]=D)}function Ue(g,S){for(var D=g.length;D--;)if(Js(g[D][0],S))return D;return-1}function qe(g,S){return g&&ns(S,os(S),g)}function Qe(g,S,D,oe,Fe,Oe,He){var ze;if(oe&&(ze=Oe?oe(g,Fe,Oe,He):oe(g)),ze!==void 0)return ze;if(!ln(g))return g;var at=rs(g);if(at){if(ze=Fi(g),!S)return Li(g,ze)}else{var Xe=bn(g),wt=Xe==d||Xe==h;if(eo(g))return yn(g,S);if(Xe==p||Xe==l||wt&&!Oe){if(I(g))return Oe?g:{};if(ze=an(wt?{}:g),!S)return Bi(g,qe(ze,g))}else{if(!te[Xe])return Oe?g:{};ze=Mi(g,Xe,Qe,S)}}He||(He=new pt);var Ct=He.get(g);if(Ct)return Ct;if(He.set(g,ze),!at)var ut=D?Pi(g):os(g);return R(ut||g,function(At,mt){ut&&(mt=At,At=g[mt]),Ae(ze,mt,Qe(At,S,D,oe,mt,g,He))}),ze}function Et(g){return ln(g)?rt(g):{}}function ue(g,S,D){var oe=S(g);return rs(g)?oe:w(oe,D(g))}function st(g){return we.call(g)}function It(g){if(!ln(g)||_i(g))return!1;var S=ss(g)||I(g)?De:q;return S.test(St(g))}function Wn(g){if(!Zs(g))return Pe(g);var S=[];for(var D in Object(g))fe.call(g,D)&&D!="constructor"&&S.push(D);return S}function yn(g,S){if(S)return g.slice();var D=new g.constructor(g.length);return g.copy(D),D}function On(g){var S=new g.constructor(g.byteLength);return new Be(S).set(new Be(g)),S}function Zt(g,S){var D=S?On(g.buffer):g.buffer;return new g.constructor(D,g.byteOffset,g.byteLength)}function Xs(g,S,D){var oe=S?D(B(g),!0):B(g);return C(oe,ve,new g.constructor)}function Ys(g){var S=new g.constructor(g.source,K.exec(g));return S.lastIndex=g.lastIndex,S}function Oi(g,S,D){var oe=S?D(j(g),!0):j(g);return C(oe,N,new g.constructor)}function Ri(g){return Ut?Object(Ut.call(g)):{}}function Ii(g,S){var D=S?On(g.buffer):g.buffer;return new g.constructor(D,g.byteOffset,g.length)}function Li(g,S){var D=-1,oe=g.length;for(S||(S=Array(oe));++D<oe;)S[D]=g[D];return S}function ns(g,S,D,oe){D||(D={});for(var Fe=-1,Oe=S.length;++Fe<Oe;){var He=S[Fe],ze=void 0;Ae(D,He,ze===void 0?g[He]:ze)}return D}function Bi(g,S){return ns(g,vn(g),S)}function Pi(g){return ue(g,os,vn)}function Kn(g,S){var D=g.__data__;return Ui(S)?D[typeof S=="string"?"string":"hash"]:D.map}function Qt(g,S){var D=x(g,S);return It(D)?D:void 0}var vn=bt?U(bt,Object):ji,bn=st;(We&&bn(new We(new ArrayBuffer(1)))!=z||pe&&bn(new pe)!=f||be&&bn(be.resolve())!=y||Ce&&bn(new Ce)!=A||Ie&&bn(new Ie)!=F)&&(bn=function(g){var S=we.call(g),D=S==p?g.constructor:void 0,oe=D?St(D):void 0;if(oe)switch(oe){case je:return z;case Ke:return f;case et:return y;case dt:return A;case ft:return F}return S});function Fi(g){var S=g.length,D=g.constructor(S);return S&&typeof g[0]=="string"&&fe.call(g,"index")&&(D.index=g.index,D.input=g.input),D}function an(g){return typeof g.constructor=="function"&&!Zs(g)?Et(Ve(g)):{}}function Mi(g,S,D,oe){var Fe=g.constructor;switch(S){case M:return On(g);case c:case o:return new Fe(+g);case z:return Zt(g,oe);case X:case H:case re:case G:case E:case P:case k:case $:case _:return Ii(g,oe);case f:return Xs(g,oe,D);case m:case T:return new Fe(g);case b:return Ys(g);case A:return Oi(g,oe,D);case O:return Ri(g)}}function Di(g,S){return S=S??s,!!S&&(typeof g=="number"||J.test(g))&&g>-1&&g%1==0&&g<S}function Ui(g){var S=typeof g;return S=="string"||S=="number"||S=="symbol"||S=="boolean"?g!=="__proto__":g===null}function _i(g){return!!ne&&ne in g}function Zs(g){var S=g&&g.constructor,D=typeof S=="function"&&S.prototype||Y;return g===D}function St(g){if(g!=null){try{return ie.call(g)}catch{}try{return g+""}catch{}}return""}function Qs(g){return Qe(g,!0,!0)}function Js(g,S){return g===S||g!==g&&S!==S}function Sr(g){return Vi(g)&&fe.call(g,"callee")&&(!ot.call(g,"callee")||we.call(g)==l)}var rs=Array.isArray;function Tr(g){return g!=null&&to(g.length)&&!ss(g)}function Vi(g){return no(g)&&Tr(g)}var eo=$e||$i;function ss(g){var S=ln(g)?we.call(g):"";return S==d||S==h}function to(g){return typeof g=="number"&&g>-1&&g%1==0&&g<=s}function ln(g){var S=typeof g;return!!g&&(S=="object"||S=="function")}function no(g){return!!g&&typeof g=="object"}function os(g){return Tr(g)?Le(g):Wn(g)}function ji(){return[]}function $i(){return!1}n.exports=Qs}(jr,jr.exports)),jr.exports}var $r={exports:{}};$r.exports;var Zl;function Ql(){return Zl||(Zl=1,function(n,e){var t=200,r="__lodash_hash_undefined__",s=1,l=2,a=9007199254740991,c="[object Arguments]",o="[object Array]",u="[object AsyncFunction]",d="[object Boolean]",h="[object Date]",f="[object Error]",m="[object Function]",p="[object GeneratorFunction]",y="[object Map]",b="[object Number]",A="[object Null]",T="[object Object]",O="[object Promise]",F="[object Proxy]",M="[object RegExp]",z="[object Set]",X="[object String]",H="[object Symbol]",re="[object Undefined]",G="[object WeakMap]",E="[object ArrayBuffer]",P="[object DataView]",k="[object Float32Array]",$="[object Float64Array]",_="[object Int8Array]",V="[object Int16Array]",K="[object Int32Array]",q="[object Uint8Array]",J="[object Uint8ClampedArray]",te="[object Uint16Array]",me="[object Uint32Array]",ge=/[\\^$.*+?()[\]{}|]/g,ye=/^\[object .+?Constructor\]$/,xe=/^(?:0|[1-9]\d*)$/,he={};he[k]=he[$]=he[_]=he[V]=he[K]=he[q]=he[J]=he[te]=he[me]=!0,he[c]=he[o]=he[E]=he[d]=he[P]=he[h]=he[f]=he[m]=he[y]=he[b]=he[T]=he[M]=he[z]=he[X]=he[G]=!1;var ke=typeof En=="object"&&En&&En.Object===Object&&En,ve=typeof self=="object"&&self&&self.Object===Object&&self,N=ke||ve||Function("return this")(),R=e&&!e.nodeType&&e,w=R&&!0&&n&&!n.nodeType&&n,C=w&&w.exports===R,v=C&&ke.process,x=function(){try{return v&&v.binding&&v.binding("util")}catch{}}(),I=x&&x.isTypedArray;function B(g,S){for(var D=-1,oe=g==null?0:g.length,Fe=0,Oe=[];++D<oe;){var He=g[D];S(He,D,g)&&(Oe[Fe++]=He)}return Oe}function U(g,S){for(var D=-1,oe=S.length,Fe=g.length;++D<oe;)g[Fe+D]=S[D];return g}function j(g,S){for(var D=-1,oe=g==null?0:g.length;++D<oe;)if(S(g[D],D,g))return!0;return!1}function W(g,S){for(var D=-1,oe=Array(g);++D<g;)oe[D]=S(D);return oe}function Z(g){return function(S){return g(S)}}function Y(g,S){return g.has(S)}function Q(g,S){return g==null?void 0:g[S]}function ne(g){var S=-1,D=Array(g.size);return g.forEach(function(oe,Fe){D[++S]=[Fe,oe]}),D}function ie(g,S){return function(D){return g(S(D))}}function fe(g){var S=-1,D=Array(g.size);return g.forEach(function(oe){D[++S]=oe}),D}var we=Array.prototype,De=Function.prototype,Ge=Object.prototype,_e=N["__core-js_shared__"],Be=De.toString,Ve=Ge.hasOwnProperty,rt=function(){var g=/[^.]+$/.exec(_e&&_e.keys&&_e.keys.IE_PROTO||"");return g?"Symbol(src)_1."+g:""}(),ot=Ge.toString,Dt=RegExp("^"+Be.call(Ve).replace(ge,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),bt=C?N.Buffer:void 0,$e=N.Symbol,Pe=N.Uint8Array,We=Ge.propertyIsEnumerable,pe=we.splice,be=$e?$e.toStringTag:void 0,Ce=Object.getOwnPropertySymbols,Ie=bt?bt.isBuffer:void 0,Re=ie(Object.keys,Object),je=vn(N,"DataView"),Ke=vn(N,"Map"),et=vn(N,"Promise"),dt=vn(N,"Set"),ft=vn(N,"WeakMap"),Rt=vn(Object,"create"),Ut=St(je),lt=St(Ke),kt=St(et),Yt=St(dt),Gn=St(ft),gn=$e?$e.prototype:void 0,Cn=gn?gn.valueOf:void 0;function it(g){var S=-1,D=g==null?0:g.length;for(this.clear();++S<D;){var oe=g[S];this.set(oe[0],oe[1])}}function mr(){this.__data__=Rt?Rt(null):{},this.size=0}function gr(g){var S=this.has(g)&&delete this.__data__[g];return this.size-=S?1:0,S}function yr(g){var S=this.__data__;if(Rt){var D=S[g];return D===r?void 0:D}return Ve.call(S,g)?S[g]:void 0}function vr(g){var S=this.__data__;return Rt?S[g]!==void 0:Ve.call(S,g)}function br(g,S){var D=this.__data__;return this.size+=this.has(g)?0:1,D[g]=Rt&&S===void 0?r:S,this}it.prototype.clear=mr,it.prototype.delete=gr,it.prototype.get=yr,it.prototype.has=vr,it.prototype.set=br;function ct(g){var S=-1,D=g==null?0:g.length;for(this.clear();++S<D;){var oe=g[S];this.set(oe[0],oe[1])}}function xr(){this.__data__=[],this.size=0}function Er(g){var S=this.__data__,D=yn(S,g);if(D<0)return!1;var oe=S.length-1;return D==oe?S.pop():pe.call(S,D,1),--this.size,!0}function wr(g){var S=this.__data__,D=yn(S,g);return D<0?void 0:S[D][1]}function xt(g){return yn(this.__data__,g)>-1}function Ar(g,S){var D=this.__data__,oe=yn(D,g);return oe<0?(++this.size,D.push([g,S])):D[oe][1]=S,this}ct.prototype.clear=xr,ct.prototype.delete=Er,ct.prototype.get=wr,ct.prototype.has=xt,ct.prototype.set=Ar;function pt(g){var S=-1,D=g==null?0:g.length;for(this.clear();++S<D;){var oe=g[S];this.set(oe[0],oe[1])}}function L(){this.size=0,this.__data__={hash:new it,map:new(Ke||ct),string:new it}}function ae(g){var S=Qt(this,g).delete(g);return this.size-=S?1:0,S}function se(g){return Qt(this,g).get(g)}function ce(g){return Qt(this,g).has(g)}function de(g,S){var D=Qt(this,g),oe=D.size;return D.set(g,S),this.size+=D.size==oe?0:1,this}pt.prototype.clear=L,pt.prototype.delete=ae,pt.prototype.get=se,pt.prototype.has=ce,pt.prototype.set=de;function Le(g){var S=-1,D=g==null?0:g.length;for(this.__data__=new pt;++S<D;)this.add(g[S])}function Ae(g){return this.__data__.set(g,r),this}function Ue(g){return this.__data__.has(g)}Le.prototype.add=Le.prototype.push=Ae,Le.prototype.has=Ue;function qe(g){var S=this.__data__=new ct(g);this.size=S.size}function Qe(){this.__data__=new ct,this.size=0}function Et(g){var S=this.__data__,D=S.delete(g);return this.size=S.size,D}function ue(g){return this.__data__.get(g)}function st(g){return this.__data__.has(g)}function It(g,S){var D=this.__data__;if(D instanceof ct){var oe=D.__data__;if(!Ke||oe.length<t-1)return oe.push([g,S]),this.size=++D.size,this;D=this.__data__=new pt(oe)}return D.set(g,S),this.size=D.size,this}qe.prototype.clear=Qe,qe.prototype.delete=Et,qe.prototype.get=ue,qe.prototype.has=st,qe.prototype.set=It;function Wn(g,S){var D=Sr(g),oe=!D&&Js(g),Fe=!D&&!oe&&Tr(g),Oe=!D&&!oe&&!Fe&&no(g),He=D||oe||Fe||Oe,ze=He?W(g.length,String):[],at=ze.length;for(var Xe in g)Ve.call(g,Xe)&&!(He&&(Xe=="length"||Fe&&(Xe=="offset"||Xe=="parent")||Oe&&(Xe=="buffer"||Xe=="byteLength"||Xe=="byteOffset")||Mi(Xe,at)))&&ze.push(Xe);return ze}function yn(g,S){for(var D=g.length;D--;)if(Qs(g[D][0],S))return D;return-1}function On(g,S,D){var oe=S(g);return Sr(g)?oe:U(oe,D(g))}function Zt(g){return g==null?g===void 0?re:A:be&&be in Object(g)?bn(g):Zs(g)}function Xs(g){return ln(g)&&Zt(g)==c}function Ys(g,S,D,oe,Fe){return g===S?!0:g==null||S==null||!ln(g)&&!ln(S)?g!==g&&S!==S:Oi(g,S,D,oe,Ys,Fe)}function Oi(g,S,D,oe,Fe,Oe){var He=Sr(g),ze=Sr(S),at=He?o:an(g),Xe=ze?o:an(S);at=at==c?T:at,Xe=Xe==c?T:Xe;var wt=at==T,Ct=Xe==T,ut=at==Xe;if(ut&&Tr(g)){if(!Tr(S))return!1;He=!0,wt=!1}if(ut&&!wt)return Oe||(Oe=new qe),He||no(g)?ns(g,S,D,oe,Fe,Oe):Bi(g,S,at,D,oe,Fe,Oe);if(!(D&s)){var At=wt&&Ve.call(g,"__wrapped__"),mt=Ct&&Ve.call(S,"__wrapped__");if(At||mt){var Rn=At?g.value():g,xn=mt?S.value():S;return Oe||(Oe=new qe),Fe(Rn,xn,D,oe,Oe)}}return ut?(Oe||(Oe=new qe),Pi(g,S,D,oe,Fe,Oe)):!1}function Ri(g){if(!to(g)||Ui(g))return!1;var S=eo(g)?Dt:ye;return S.test(St(g))}function Ii(g){return ln(g)&&ss(g.length)&&!!he[Zt(g)]}function Li(g){if(!_i(g))return Re(g);var S=[];for(var D in Object(g))Ve.call(g,D)&&D!="constructor"&&S.push(D);return S}function ns(g,S,D,oe,Fe,Oe){var He=D&s,ze=g.length,at=S.length;if(ze!=at&&!(He&&at>ze))return!1;var Xe=Oe.get(g);if(Xe&&Oe.get(S))return Xe==S;var wt=-1,Ct=!0,ut=D&l?new Le:void 0;for(Oe.set(g,S),Oe.set(S,g);++wt<ze;){var At=g[wt],mt=S[wt];if(oe)var Rn=He?oe(mt,At,wt,S,g,Oe):oe(At,mt,wt,g,S,Oe);if(Rn!==void 0){if(Rn)continue;Ct=!1;break}if(ut){if(!j(S,function(xn,Xn){if(!Y(ut,Xn)&&(At===xn||Fe(At,xn,D,oe,Oe)))return ut.push(Xn)})){Ct=!1;break}}else if(!(At===mt||Fe(At,mt,D,oe,Oe))){Ct=!1;break}}return Oe.delete(g),Oe.delete(S),Ct}function Bi(g,S,D,oe,Fe,Oe,He){switch(D){case P:if(g.byteLength!=S.byteLength||g.byteOffset!=S.byteOffset)return!1;g=g.buffer,S=S.buffer;case E:return!(g.byteLength!=S.byteLength||!Oe(new Pe(g),new Pe(S)));case d:case h:case b:return Qs(+g,+S);case f:return g.name==S.name&&g.message==S.message;case M:case X:return g==S+"";case y:var ze=ne;case z:var at=oe&s;if(ze||(ze=fe),g.size!=S.size&&!at)return!1;var Xe=He.get(g);if(Xe)return Xe==S;oe|=l,He.set(g,S);var wt=ns(ze(g),ze(S),oe,Fe,Oe,He);return He.delete(g),wt;case H:if(Cn)return Cn.call(g)==Cn.call(S)}return!1}function Pi(g,S,D,oe,Fe,Oe){var He=D&s,ze=Kn(g),at=ze.length,Xe=Kn(S),wt=Xe.length;if(at!=wt&&!He)return!1;for(var Ct=at;Ct--;){var ut=ze[Ct];if(!(He?ut in S:Ve.call(S,ut)))return!1}var At=Oe.get(g);if(At&&Oe.get(S))return At==S;var mt=!0;Oe.set(g,S),Oe.set(S,g);for(var Rn=He;++Ct<at;){ut=ze[Ct];var xn=g[ut],Xn=S[ut];if(oe)var eu=He?oe(Xn,xn,ut,S,g,Oe):oe(xn,Xn,ut,g,S,Oe);if(!(eu===void 0?xn===Xn||Fe(xn,Xn,D,oe,Oe):eu)){mt=!1;break}Rn||(Rn=ut=="constructor")}if(mt&&!Rn){var ro=g.constructor,so=S.constructor;ro!=so&&"constructor"in g&&"constructor"in S&&!(typeof ro=="function"&&ro instanceof ro&&typeof so=="function"&&so instanceof so)&&(mt=!1)}return Oe.delete(g),Oe.delete(S),mt}function Kn(g){return On(g,os,Fi)}function Qt(g,S){var D=g.__data__;return Di(S)?D[typeof S=="string"?"string":"hash"]:D.map}function vn(g,S){var D=Q(g,S);return Ri(D)?D:void 0}function bn(g){var S=Ve.call(g,be),D=g[be];try{g[be]=void 0;var oe=!0}catch{}var Fe=ot.call(g);return oe&&(S?g[be]=D:delete g[be]),Fe}var Fi=Ce?function(g){return g==null?[]:(g=Object(g),B(Ce(g),function(S){return We.call(g,S)}))}:ji,an=Zt;(je&&an(new je(new ArrayBuffer(1)))!=P||Ke&&an(new Ke)!=y||et&&an(et.resolve())!=O||dt&&an(new dt)!=z||ft&&an(new ft)!=G)&&(an=function(g){var S=Zt(g),D=S==T?g.constructor:void 0,oe=D?St(D):"";if(oe)switch(oe){case Ut:return P;case lt:return y;case kt:return O;case Yt:return z;case Gn:return G}return S});function Mi(g,S){return S=S??a,!!S&&(typeof g=="number"||xe.test(g))&&g>-1&&g%1==0&&g<S}function Di(g){var S=typeof g;return S=="string"||S=="number"||S=="symbol"||S=="boolean"?g!=="__proto__":g===null}function Ui(g){return!!rt&&rt in g}function _i(g){var S=g&&g.constructor,D=typeof S=="function"&&S.prototype||Ge;return g===D}function Zs(g){return ot.call(g)}function St(g){if(g!=null){try{return Be.call(g)}catch{}try{return g+""}catch{}}return""}function Qs(g,S){return g===S||g!==g&&S!==S}var Js=Xs(function(){return arguments}())?Xs:function(g){return ln(g)&&Ve.call(g,"callee")&&!We.call(g,"callee")},Sr=Array.isArray;function rs(g){return g!=null&&ss(g.length)&&!eo(g)}var Tr=Ie||$i;function Vi(g,S){return Ys(g,S)}function eo(g){if(!to(g))return!1;var S=Zt(g);return S==m||S==p||S==u||S==F}function ss(g){return typeof g=="number"&&g>-1&&g%1==0&&g<=a}function to(g){var S=typeof g;return g!=null&&(S=="object"||S=="function")}function ln(g){return g!=null&&typeof g=="object"}var no=I?Z(I):Ii;function os(g){return rs(g)?Wn(g):Li(g)}function ji(){return[]}function $i(){return!1}n.exports=Vi}($r,$r.exports)),$r.exports}var Ms={},Jl;function sb(){if(Jl)return Ms;Jl=1,Object.defineProperty(Ms,"__esModule",{value:!0});const n=Yl(),e=Ql();var t;return function(r){function s(o={},u={},d=!1){typeof o!="object"&&(o={}),typeof u!="object"&&(u={});let h=n(u);d||(h=Object.keys(h).reduce((f,m)=>(h[m]!=null&&(f[m]=h[m]),f),{}));for(const f in o)o[f]!==void 0&&u[f]===void 0&&(h[f]=o[f]);return Object.keys(h).length>0?h:void 0}r.compose=s;function l(o={},u={}){typeof o!="object"&&(o={}),typeof u!="object"&&(u={});const d=Object.keys(o).concat(Object.keys(u)).reduce((h,f)=>(e(o[f],u[f])||(h[f]=u[f]===void 0?null:u[f]),h),{});return Object.keys(d).length>0?d:void 0}r.diff=l;function a(o={},u={}){o=o||{};const d=Object.keys(u).reduce((h,f)=>(u[f]!==o[f]&&o[f]!==void 0&&(h[f]=u[f]),h),{});return Object.keys(o).reduce((h,f)=>(o[f]!==u[f]&&u[f]===void 0&&(h[f]=null),h),d)}r.invert=a;function c(o,u,d=!1){if(typeof o!="object")return u;if(typeof u!="object")return;if(!d)return u;const h=Object.keys(u).reduce((f,m)=>(o[m]===void 0&&(f[m]=u[m]),f),{});return Object.keys(h).length>0?h:void 0}r.transform=c}(t||(t={})),Ms.default=t,Ms}var Ds={},ec;function tc(){if(ec)return Ds;ec=1,Object.defineProperty(Ds,"__esModule",{value:!0});var n;return function(e){function t(r){return typeof r.delete=="number"?r.delete:typeof r.retain=="number"?r.retain:typeof r.retain=="object"&&r.retain!==null?1:typeof r.insert=="string"?r.insert.length:1}e.length=t}(n||(n={})),Ds.default=n,Ds}var Us={},nc;function ob(){if(nc)return Us;nc=1,Object.defineProperty(Us,"__esModule",{value:!0});const n=tc();class e{constructor(r){this.ops=r,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(r){r||(r=1/0);const s=this.ops[this.index];if(s){const l=this.offset,a=n.default.length(s);if(r>=a-l?(r=a-l,this.index+=1,this.offset=0):this.offset+=r,typeof s.delete=="number")return{delete:r};{const c={};return s.attributes&&(c.attributes=s.attributes),typeof s.retain=="number"?c.retain=r:typeof s.retain=="object"&&s.retain!==null?c.retain=s.retain:typeof s.insert=="string"?c.insert=s.insert.substr(l,r):c.insert=s.insert,c}}else return{retain:1/0}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?n.default.length(this.ops[this.index])-this.offset:1/0}peekType(){const r=this.ops[this.index];return r?typeof r.delete=="number"?"delete":typeof r.retain=="number"||typeof r.retain=="object"&&r.retain!==null?"retain":"insert":"retain"}rest(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);{const r=this.offset,s=this.index,l=this.next(),a=this.ops.slice(this.index);return this.offset=r,this.index=s,[l].concat(a)}}else return[]}}return Us.default=e,Us}var rc;function ib(){return rc||(rc=1,function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.AttributeMap=e.OpIterator=e.Op=void 0;const t=rb(),r=Yl(),s=Ql(),l=sb();e.AttributeMap=l.default;const a=tc();e.Op=a.default;const c=ob();e.OpIterator=c.default;const o="\0",u=(h,f)=>{if(typeof h!="object"||h===null)throw new Error(`cannot retain a ${typeof h}`);if(typeof f!="object"||f===null)throw new Error(`cannot retain a ${typeof f}`);const m=Object.keys(h)[0];if(!m||m!==Object.keys(f)[0])throw new Error(`embed types not matched: ${m} != ${Object.keys(f)[0]}`);return[m,h[m],f[m]]};class d{constructor(f){Array.isArray(f)?this.ops=f:f!=null&&Array.isArray(f.ops)?this.ops=f.ops:this.ops=[]}static registerEmbed(f,m){this.handlers[f]=m}static unregisterEmbed(f){delete this.handlers[f]}static getHandler(f){const m=this.handlers[f];if(!m)throw new Error(`no handlers for embed type "${f}"`);return m}insert(f,m){const p={};return typeof f=="string"&&f.length===0?this:(p.insert=f,m!=null&&typeof m=="object"&&Object.keys(m).length>0&&(p.attributes=m),this.push(p))}delete(f){return f<=0?this:this.push({delete:f})}retain(f,m){if(typeof f=="number"&&f<=0)return this;const p={retain:f};return m!=null&&typeof m=="object"&&Object.keys(m).length>0&&(p.attributes=m),this.push(p)}push(f){let m=this.ops.length,p=this.ops[m-1];if(f=r(f),typeof p=="object"){if(typeof f.delete=="number"&&typeof p.delete=="number")return this.ops[m-1]={delete:p.delete+f.delete},this;if(typeof p.delete=="number"&&f.insert!=null&&(m-=1,p=this.ops[m-1],typeof p!="object"))return this.ops.unshift(f),this;if(s(f.attributes,p.attributes)){if(typeof f.insert=="string"&&typeof p.insert=="string")return this.ops[m-1]={insert:p.insert+f.insert},typeof f.attributes=="object"&&(this.ops[m-1].attributes=f.attributes),this;if(typeof f.retain=="number"&&typeof p.retain=="number")return this.ops[m-1]={retain:p.retain+f.retain},typeof f.attributes=="object"&&(this.ops[m-1].attributes=f.attributes),this}}return m===this.ops.length?this.ops.push(f):this.ops.splice(m,0,f),this}chop(){const f=this.ops[this.ops.length-1];return f&&typeof f.retain=="number"&&!f.attributes&&this.ops.pop(),this}filter(f){return this.ops.filter(f)}forEach(f){this.ops.forEach(f)}map(f){return this.ops.map(f)}partition(f){const m=[],p=[];return this.forEach(y=>{(f(y)?m:p).push(y)}),[m,p]}reduce(f,m){return this.ops.reduce(f,m)}changeLength(){return this.reduce((f,m)=>m.insert?f+a.default.length(m):m.delete?f-m.delete:f,0)}length(){return this.reduce((f,m)=>f+a.default.length(m),0)}slice(f=0,m=1/0){const p=[],y=new c.default(this.ops);let b=0;for(;b<m&&y.hasNext();){let A;b<f?A=y.next(f-b):(A=y.next(m-b),p.push(A)),b+=a.default.length(A)}return new d(p)}compose(f){const m=new c.default(this.ops),p=new c.default(f.ops),y=[],b=p.peek();if(b!=null&&typeof b.retain=="number"&&b.attributes==null){let T=b.retain;for(;m.peekType()==="insert"&&m.peekLength()<=T;)T-=m.peekLength(),y.push(m.next());b.retain-T>0&&p.next(b.retain-T)}const A=new d(y);for(;m.hasNext()||p.hasNext();)if(p.peekType()==="insert")A.push(p.next());else if(m.peekType()==="delete")A.push(m.next());else{const T=Math.min(m.peekLength(),p.peekLength()),O=m.next(T),F=p.next(T);if(F.retain){const M={};if(typeof O.retain=="number")M.retain=typeof F.retain=="number"?T:F.retain;else if(typeof F.retain=="number")O.retain==null?M.insert=O.insert:M.retain=O.retain;else{const X=O.retain==null?"insert":"retain",[H,re,G]=u(O[X],F.retain),E=d.getHandler(H);M[X]={[H]:E.compose(re,G,X==="retain")}}const z=l.default.compose(O.attributes,F.attributes,typeof O.retain=="number");if(z&&(M.attributes=z),A.push(M),!p.hasNext()&&s(A.ops[A.ops.length-1],M)){const X=new d(m.rest());return A.concat(X).chop()}}else typeof F.delete=="number"&&(typeof O.retain=="number"||typeof O.retain=="object"&&O.retain!==null)&&A.push(F)}return A.chop()}concat(f){const m=new d(this.ops.slice());return f.ops.length>0&&(m.push(f.ops[0]),m.ops=m.ops.concat(f.ops.slice(1))),m}diff(f,m){if(this.ops===f.ops)return new d;const p=[this,f].map(O=>O.map(F=>{if(F.insert!=null)return typeof F.insert=="string"?F.insert:o;const M=O===f?"on":"with";throw new Error("diff() called "+M+" non-document")}).join("")),y=new d,b=t(p[0],p[1],m,!0),A=new c.default(this.ops),T=new c.default(f.ops);return b.forEach(O=>{let F=O[1].length;for(;F>0;){let M=0;switch(O[0]){case t.INSERT:M=Math.min(T.peekLength(),F),y.push(T.next(M));break;case t.DELETE:M=Math.min(F,A.peekLength()),A.next(M),y.delete(M);break;case t.EQUAL:M=Math.min(A.peekLength(),T.peekLength(),F);const z=A.next(M),X=T.next(M);s(z.insert,X.insert)?y.retain(M,l.default.diff(z.attributes,X.attributes)):y.push(X).delete(M);break}F-=M}}),y.chop()}eachLine(f,m=`
18
- `){const p=new c.default(this.ops);let y=new d,b=0;for(;p.hasNext();){if(p.peekType()!=="insert")return;const A=p.peek(),T=a.default.length(A)-p.peekLength(),O=typeof A.insert=="string"?A.insert.indexOf(m,T)-T:-1;if(O<0)y.push(p.next());else if(O>0)y.push(p.next(O));else{if(f(y,p.next(1).attributes||{},b)===!1)return;b+=1,y=new d}}y.length()>0&&f(y,{},b)}invert(f){const m=new d;return this.reduce((p,y)=>{if(y.insert)m.delete(a.default.length(y));else{if(typeof y.retain=="number"&&y.attributes==null)return m.retain(y.retain),p+y.retain;if(y.delete||typeof y.retain=="number"){const b=y.delete||y.retain;return f.slice(p,p+b).forEach(T=>{y.delete?m.push(T):y.retain&&y.attributes&&m.retain(a.default.length(T),l.default.invert(y.attributes,T.attributes))}),p+b}else if(typeof y.retain=="object"&&y.retain!==null){const b=f.slice(p,p+1),A=new c.default(b.ops).next(),[T,O,F]=u(y.retain,A.insert),M=d.getHandler(T);return m.retain({[T]:M.invert(O,F)},l.default.invert(y.attributes,A.attributes)),p+1}}return p},0),m.chop()}transform(f,m=!1){if(m=!!m,typeof f=="number")return this.transformPosition(f,m);const p=f,y=new c.default(this.ops),b=new c.default(p.ops),A=new d;for(;y.hasNext()||b.hasNext();)if(y.peekType()==="insert"&&(m||b.peekType()!=="insert"))A.retain(a.default.length(y.next()));else if(b.peekType()==="insert")A.push(b.next());else{const T=Math.min(y.peekLength(),b.peekLength()),O=y.next(T),F=b.next(T);if(O.delete)continue;if(F.delete)A.push(F);else{const M=O.retain,z=F.retain;let X=typeof z=="object"&&z!==null?z:T;if(typeof M=="object"&&M!==null&&typeof z=="object"&&z!==null){const H=Object.keys(M)[0];if(H===Object.keys(z)[0]){const re=d.getHandler(H);re&&(X={[H]:re.transform(M[H],z[H],m)})}}A.retain(X,l.default.transform(O.attributes,F.attributes,m))}}return A.chop()}transformPosition(f,m=!1){m=!!m;const p=new c.default(this.ops);let y=0;for(;p.hasNext()&&y<=f;){const b=p.peekLength(),A=p.peekType();if(p.next(),A==="delete"){f-=Math.min(b,f-y);continue}else A==="insert"&&(y<f||!m)&&(f+=b);y+=b}return f}}d.Op=a.default,d.OpIterator=c.default,d.AttributeMap=l.default,d.handlers={},e.default=d,n.exports=d,n.exports.default=d}(Fs,Fs.exports)),Fs.exports}var Lt=ib();const Te=Eo(Lt);class zt extends Ot{static value(){}optimize(){(this.prev||this.next)&&this.remove()}length(){return 0}value(){return""}}zt.blotName="break",zt.tagName="BR";let Ht=class extends Ps{};const ab={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function _s(n){return n.replace(/[&<>"']/g,e=>ab[e])}const on=class on extends Ko{static compare(e,t){const r=on.order.indexOf(e),s=on.order.indexOf(t);return r>=0||s>=0?r-s:e===t?0:e<t?-1:1}formatAt(e,t,r,s){if(on.compare(this.statics.blotName,r)<0&&this.scroll.query(r,Ne.BLOT)){const l=this.isolate(e,t);s&&l.wrap(r,s)}else super.formatAt(e,t,r,s)}optimize(e){if(super.optimize(e),this.parent instanceof on&&on.compare(this.statics.blotName,this.parent.statics.blotName)>0){const t=this.parent.isolate(this.offset(),this.length());this.moveChildren(t),t.wrap(this)}}};Ee(on,"allowedChildren",[on,zt,Ot,Ht]),Ee(on,"order",["cursor","inline","link","underline","strike","italic","bold","script","code"]);let rn=on;const sc=1;class ht extends Vr{constructor(){super(...arguments);Ee(this,"cache",{})}delta(){return this.cache.delta==null&&(this.cache.delta=oc(this)),this.cache.delta}deleteAt(t,r){super.deleteAt(t,r),this.cache={}}formatAt(t,r,s,l){r<=0||(this.scroll.query(s,Ne.BLOCK)?t+r===this.length()&&this.format(s,l):super.formatAt(t,Math.min(r,this.length()-t-1),s,l),this.cache={})}insertAt(t,r,s){if(s!=null){super.insertAt(t,r,s),this.cache={};return}if(r.length===0)return;const l=r.split(`
17
+ */const La=["viewport","carousel"],xs={"bottom-to-top":"btt","left-to-right":"ltr","right-to-left":"rtl","top-to-bottom":"ttb"},Ba=["ltr","left-to-right","rtl","right-to-left","ttb","top-to-bottom","btt","bottom-to-top"],xp={ariaGallery:"Gallery",ariaNavigateToPage:"Navigate to page {slideNumber}",ariaNavigateToSlide:"Navigate to slide {slideNumber}",ariaNextSlide:"Navigate to next slide",ariaPreviousSlide:"Navigate to previous slide",iconArrowDown:"Arrow pointing downwards",iconArrowLeft:"Arrow pointing to the left",iconArrowRight:"Arrow pointing to the right",iconArrowUp:"Arrow pointing upwards",itemXofY:"Item {currentSlide} of {slidesCount}"},Pa=["slide","fade"],Fa=["center","start","end","center-even","center-odd"],Ma=10,Es=.3,nt={autoplay:0,breakpointMode:La[0],breakpoints:void 0,dir:Ba[0],enabled:!0,gap:0,height:"auto",i18n:xp,ignoreAnimations:!1,itemsToScroll:1,itemsToShow:1,modelValue:0,mouseDrag:!0,mouseWheel:!1,pauseAutoplayOnHover:!1,preventExcessiveDragging:!1,slideEffect:Pa[0],snapAlign:Fa[0],touchDrag:!0,transition:300,wrapAround:!1},Mn=Symbol("carousel"),Ep=n=>{const e=i.shallowReactive([]),t=r=>{r!==void 0?e.slice(r).forEach((s,l)=>{var a;(a=s.exposed)===null||a===void 0||a.setIndex(r+l)}):e.forEach((s,l)=>{var a;(a=s.exposed)===null||a===void 0||a.setIndex(l)})};return{cleanup:()=>{e.splice(0,e.length)},getSlides:()=>e,registerSlide:(r,s)=>{if(!r||r.props.isClone)return;const l=s??e.length;e.splice(l,0,r),t(l),n("slide-registered",{slide:r,index:l})},unregisterSlide:r=>{const s=e.indexOf(r);s!==-1&&(n("slide-unregistered",{slide:r,index:s}),e.splice(s,1),t(s))}}};function wp(n){return n.length===0?0:n.reduce((t,r)=>t+r,0)/n.length}function Da({slides:n,position:e,toShow:t}){const r=[],s=e==="before",l=s?-t:0,a=s?0:t;if(n.length<=0)return r;for(let c=l;c<a;c++){const u={index:s?c:c+n.length,isClone:!0,id:void 0,key:`clone-${e}-${c}`},d=n[(c%n.length+n.length)%n.length].vnode,h=i.cloneVNode(d,u);h.el=null,r.push(h)}return r}const Ap='a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])';function Ua(n){if(!n.el||!(n.el instanceof Element))return;const e=n.el.querySelectorAll(Ap);for(const t of e)t instanceof HTMLElement&&!t.hasAttribute("disabled")&&t.getAttribute("aria-hidden")!=="true"&&t.setAttribute("tabindex","-1")}function Sp(n,e){return Object.keys(n).filter(t=>!e.includes(t)).reduce((t,r)=>(t[r]=n[r],t),{})}function Tp(n){const{isVertical:e,isReversed:t,dragged:r,effectiveSlideSize:s,threshold:l}=n,a=e?r.y:r.x;if(a===0)return 0;const c=a/s,o=Math.abs(c);if(o<l)return 0;const u=o<1?Math.sign(c):Math.round(c);return t?u:-u}function cn({val:n,max:e,min:t}){return e<t?n:Math.min(Math.max(n,isNaN(t)?n:t),isNaN(e)?n:e)}function Np(n){const{transform:e}=window.getComputedStyle(n);return e.split(/[(,)]/).slice(1,-1).map(t=>parseFloat(t))}function kp(n){let e=1,t=1;return n.forEach(r=>{const s=Np(r);s.length===6&&(e/=s[0],t/=s[3])}),{widthMultiplier:e,heightMultiplier:t}}function Cp(n,e){switch(n){case"start":return 0;case"center":case"center-odd":return(e-1)/2;case"center-even":return(e-2)/2;case"end":return e-1;default:return 0}}function Op(n,e,t){switch(n){case"start":return 0;case"center":case"center-odd":return(t-e)/2;case"center-even":return t/2-e;case"end":return t-e;default:return 0}}function No({slideSize:n,viewportSize:e,align:t,itemsToShow:r}){return r!==void 0?Cp(t,r):n!==void 0&&e!==void 0?Op(t,n,e):0}function _a(n="",e={}){return Object.entries(e).reduce((t,[r,s])=>t.replace(`{${r}}`,String(s)),n)}function Va({val:n,max:e,min:t=0}){const r=e-t+1;return((n-t)%r+r)%r+t}function ko(n,e=0){let t=!1,r=0,s=null;function l(...a){if(t)return;t=!0;const c=()=>{s=requestAnimationFrame(o=>{o-r>e?(r=o,n(...a),t=!1):c()})};c()}return l.cancel=()=>{s&&(cancelAnimationFrame(s),s=null,t=!1)},l}function ws(n,e="px"){if(!(n==null||n===""))return typeof n=="number"||parseFloat(n).toString()===n?`${n}${e}`:n}const Rp=i.defineComponent({name:"CarouselAria",setup(){const n=i.inject(Mn);return n?()=>i.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},_a(n.config.i18n.itemXofY,{currentSlide:n.currentSlide+1,slidesCount:n.slidesCount})):()=>""}});function Ip(n){let e=!1;const t={x:0,y:0},r=i.reactive({x:0,y:0}),s=i.ref(!1),{isSliding:l}=n,a=i.computed(()=>typeof l=="boolean"?l:l.value),c=d=>{var h;const f=d.target.tagName;if(["INPUT","TEXTAREA","SELECT"].includes(f)||a.value||(e=d.type==="touchstart",e&&d.touches.length>1))return;if(!e&&(d.preventDefault(),d.button!==0))return;t.x=e?d.touches[0].clientX:d.clientX,t.y=e?d.touches[0].clientY:d.clientY;const m=e?"touchmove":"mousemove",p=e?"touchend":"mouseup";document.addEventListener(m,o,{passive:!1}),document.addEventListener(p,u,{passive:!0}),(h=n.onDragStart)===null||h===void 0||h.call(n)},o=ko(d=>{var h;if(e&&d.touches.length>1)return;s.value=!0;const f=e?d.touches[0].clientX:d.clientX,m=e?d.touches[0].clientY:d.clientY;r.x=f-t.x,r.y=m-t.y,(h=n.onDrag)===null||h===void 0||h.call(n,{deltaX:r.x,deltaY:r.y,isTouch:e})}),u=()=>{var d;o.cancel();const h=Math.abs(r.x)+Math.abs(r.y);!e&&h>10&&window.addEventListener("click",p=>{p.preventDefault(),p.stopPropagation()},{once:!0,capture:!0}),(d=n.onDragEnd)===null||d===void 0||d.call(n),r.x=0,r.y=0,s.value=!1;const f=e?"touchmove":"mousemove",m=e?"touchend":"mouseup";document.removeEventListener(f,o),document.removeEventListener(m,u)};return{dragged:r,isDragging:s,handleDragStart:c}}function Lp(){const n=i.ref(!1);return{isHover:n,handleMouseEnter:()=>{n.value=!0},handleMouseLeave:()=>{n.value=!1}}}function Bp(n){const{isVertical:e,isSliding:t,config:r}=n,s=i.computed(()=>typeof e=="boolean"?e:e.value),l=i.computed(()=>typeof t=="boolean"?t:t.value);return{handleScroll:c=>{var o,u;if(c.preventDefault(),!r.mouseWheel||l.value)return;const d=typeof r.mouseWheel=="object"&&(o=r.mouseWheel.threshold)!==null&&o!==void 0?o:Ma,h=Math.abs(c.deltaY)>d?c.deltaY:0,f=Math.abs(c.deltaX)>d?c.deltaX:0;if(h===0&&f===0)return;const m=s.value?h:f,y=(m!==0?m:s.value?f:h)>0;(u=n.onWheel)===null||u===void 0||u.call(n,{deltaX:f,deltaY:h,isScrollingForward:y})}}}const Pp={autoplay:{default:nt.autoplay,type:Number},breakpoints:{default:nt.breakpoints,type:Object},breakpointMode:{default:nt.breakpointMode,validator(n){return La.includes(n)}},clamp:{type:Boolean},dir:{type:String,default:nt.dir,validator(n,e){if(!Ba.includes(n))return!1;const t=n in xs?xs[n]:n;return["ttb","btt"].includes(t)&&(!e.height||e.height==="auto")&&console.warn(`[vue3-carousel]: The dir "${n}" is not supported with height "auto".`),!0}},enabled:{default:nt.enabled,type:Boolean},gap:{default:nt.gap,type:Number},height:{default:nt.height,type:[Number,String]},i18n:{default:nt.i18n,type:Object},ignoreAnimations:{default:!1,type:[Array,Boolean,String]},itemsToScroll:{default:nt.itemsToScroll,type:Number},itemsToShow:{default:nt.itemsToShow,type:[Number,String]},modelValue:{default:void 0,type:Number},mouseDrag:{default:nt.mouseDrag,type:[Boolean,Object]},mouseWheel:{default:nt.mouseWheel,type:[Boolean,Object]},mouseScrollThreshold:{default:nt.mouseScrollThreshold,type:Number},pauseAutoplayOnHover:{default:nt.pauseAutoplayOnHover,type:Boolean},preventExcessiveDragging:{default:!1,type:Boolean,validator(n,e){return n&&e.wrapAround&&console.warn('[vue3-carousel]: "preventExcessiveDragging" cannot be used with wrapAround. The setting will be ignored.'),!0}},slideEffect:{type:String,default:nt.slideEffect,validator(n){return Pa.includes(n)}},snapAlign:{default:nt.snapAlign,validator(n){return Fa.includes(n)}},touchDrag:{default:nt.touchDrag,type:[Boolean,Object]},transition:{default:nt.transition,type:Number},wrapAround:{default:nt.wrapAround,type:Boolean}},Fp=i.defineComponent({name:"VueCarousel",props:Pp,emits:["before-init","drag","init","loop","slide-end","slide-registered","slide-start","slide-unregistered","update:modelValue","wheel"],setup(n,{slots:e,emit:t,expose:r}){var s;const l=Ep(t),a=l.getSlides(),c=i.computed(()=>a.length),o=i.ref(null),u=i.ref(null),d=i.ref(0),h=i.computed(()=>Object.assign(Object.assign(Object.assign({},nt),Sp(n,["breakpoints","modelValue"])),{i18n:Object.assign(Object.assign({},nt.i18n),n.i18n)})),f=i.shallowReactive(Object.assign({},h.value)),m=i.ref((s=n.modelValue)!==null&&s!==void 0?s:0),p=i.ref(m.value);i.watch(m,pe=>p.value=pe);const y=i.ref(0),b=i.computed(()=>Math.ceil((c.value-1)/2)),A=i.computed(()=>c.value-1),T=i.computed(()=>0);let O=null,F=null,M=null;const z=i.computed(()=>d.value+f.gap),X=i.computed(()=>{const pe=f.dir||"ltr";return pe in xs?xs[pe]:pe}),H=i.computed(()=>["rtl","btt"].includes(X.value)),re=i.computed(()=>["ttb","btt"].includes(X.value)),G=i.computed(()=>f.itemsToShow==="auto"),E=i.computed(()=>re.value?"height":"width");function P(){var pe;if(!he.value)return;const be=(h.value.breakpointMode==="carousel"?(pe=o.value)===null||pe===void 0?void 0:pe.getBoundingClientRect().width:typeof window<"u"?window.innerWidth:0)||0,Ce=Object.keys(n.breakpoints||{}).map(Re=>Number(Re)).sort((Re,je)=>+je-+Re),Ie={};Ce.some(Re=>be>=Re?(Object.assign(Ie,n.breakpoints[Re]),Ie.i18n&&Object.assign(Ie.i18n,h.value.i18n,n.breakpoints[Re].i18n),!0):!1),Object.assign(f,h.value,Ie),G.value||(f.itemsToShow=cn({val:Number(f.itemsToShow),max:n.clamp?c.value:1/0,min:1}))}const k=ko(()=>{P(),te(),Q()}),$=i.shallowReactive(new Set),_=i.ref([]);function V({widthMultiplier:pe,heightMultiplier:be}){_.value=a.map(Ce=>{var Ie;const Re=(Ie=Ce.exposed)===null||Ie===void 0?void 0:Ie.getBoundingRect();return{width:Re.width*pe,height:Re.height*be}})}const K=i.ref({width:0,height:0});function q({widthMultiplier:pe,heightMultiplier:be}){var Ce;const Ie=((Ce=u.value)===null||Ce===void 0?void 0:Ce.getBoundingClientRect())||{width:0,height:0};K.value={width:Ie.width*pe,height:Ie.height*be}}function Q(){if(!u.value)return;const pe=kp($);if(q(pe),V(pe),G.value)d.value=wp(_.value.map(be=>be[E.value]));else{const be=Number(f.itemsToShow),Ce=(be-1)*f.gap;d.value=(K.value[E.value]-Ce)/be}}function te(){!f.wrapAround&&c.value>0&&(m.value=cn({val:m.value,max:A.value,min:T.value}))}const me=i.computed(()=>typeof n.ignoreAnimations=="string"?n.ignoreAnimations.split(","):Array.isArray(n.ignoreAnimations)?n.ignoreAnimations:n.ignoreAnimations?!1:[]);i.watchEffect(()=>te()),i.watchEffect(()=>{Q()});let ge;const ye=pe=>{const be=pe.target;if(!(!(be!=null&&be.contains(o.value))||Array.isArray(me.value)&&me.value.includes(pe.animationName))&&($.add(be),!ge)){const Ce=()=>{ge=requestAnimationFrame(()=>{Q(),Ce()})};Ce()}},xe=pe=>{const be=pe.target;be&&$.delete(be),ge&&$.size===0&&(cancelAnimationFrame(ge),Q())},he=i.ref(!1);typeof document<"u"&&i.watchEffect(()=>{he.value&&me.value!==!1?(document.addEventListener("animationstart",ye),document.addEventListener("animationend",xe)):(document.removeEventListener("animationstart",ye),document.removeEventListener("animationend",xe))}),i.onMounted(()=>{he.value=!0,P(),v(),o.value&&(M=new ResizeObserver(k),M.observe(o.value)),t("init")}),i.onBeforeUnmount(()=>{he.value=!1,l.cleanup(),F&&clearTimeout(F),ge&&cancelAnimationFrame(ge),O&&clearInterval(O),M&&(M.disconnect(),M=null),typeof document<"u"&&w(),o.value&&(o.value.removeEventListener("transitionend",Q),o.value.removeEventListener("animationiteration",Q))});const{isHover:ke,handleMouseEnter:ve,handleMouseLeave:N}=Lp(),R=ko(pe=>{if(!pe.ctrlKey)switch(pe.key){case"ArrowLeft":case"ArrowUp":re.value===pe.key.endsWith("Up")&&(H.value?ie(!0):fe(!0));break;case"ArrowRight":case"ArrowDown":re.value===pe.key.endsWith("Down")&&(H.value?fe(!0):ie(!0));break}},200),w=()=>{document.removeEventListener("keydown",R)},C=()=>{document.addEventListener("keydown",R)};function v(){!f.autoplay||f.autoplay<=0||(O=setInterval(()=>{f.pauseAutoplayOnHover&&ke.value||ie()},f.autoplay))}function x(){I(),v()}function I(){O&&(clearInterval(O),O=null)}const B=i.ref(!1),U=({deltaX:pe,deltaY:be,isTouch:Ce})=>{var Ie,Re,je,Ke;t("drag",{deltaX:pe,deltaY:be});const et=Ce?typeof f.touchDrag=="object"&&(Re=(Ie=f.touchDrag)===null||Ie===void 0?void 0:Ie.threshold)!==null&&Re!==void 0?Re:Es:typeof f.mouseDrag=="object"&&(Ke=(je=f.mouseDrag)===null||je===void 0?void 0:je.threshold)!==null&&Ke!==void 0?Ke:Es,dt=Tp({isVertical:re.value,isReversed:H.value,dragged:{x:pe,y:be},effectiveSlideSize:z.value,threshold:et});dt!==0&&(p.value=f.wrapAround?m.value+dt:cn({val:m.value+dt,max:A.value,min:T.value}))},j=()=>we(p.value),{dragged:W,isDragging:Z,handleDragStart:Y}=Ip({isSliding:B,onDrag:U,onDragEnd:j}),J=({deltaX:pe,deltaY:be,isScrollingForward:Ce})=>{t("wheel",{deltaX:pe,deltaY:be}),Ce?H.value?fe():ie():H.value?ie():fe()},{handleScroll:ne}=Bp({isVertical:re,isSliding:B,config:f,onWheel:J});function ie(pe=!1){we(m.value+f.itemsToScroll,pe)}function fe(pe=!1){we(m.value-f.itemsToScroll,pe)}function we(pe,be=!1){if(!be&&B.value)return;let Ce=pe,Ie=pe;y.value=m.value,f.wrapAround?Ie=Va({val:Ce,max:A.value,min:T.value}):Ce=cn({val:Ce,max:A.value,min:T.value}),t("slide-start",{slidingToIndex:pe,currentSlideIndex:m.value,prevSlideIndex:y.value,slidesCount:c.value}),I(),B.value=!0,m.value=Ce,Ie!==Ce&&Ge.pause(),t("update:modelValue",Ie),F=setTimeout(()=>{f.wrapAround&&Ie!==Ce&&(Ge.resume(),m.value=Ie,t("loop",{currentSlideIndex:m.value,slidingToIndex:pe})),t("slide-end",{currentSlideIndex:m.value,prevSlideIndex:y.value,slidesCount:c.value}),B.value=!1,x()},f.transition)}function De(){P(),te(),Q(),x()}i.watch(()=>[h.value,n.breakpoints],()=>P(),{deep:!0}),i.watch(()=>n.autoplay,()=>x());const Ge=i.watch(()=>n.modelValue,pe=>{pe!==m.value&&we(Number(pe),!0)});t("before-init");const _e=i.computed(()=>{if(!f.wrapAround)return{before:0,after:0};if(G.value)return{before:a.length,after:a.length};const pe=Number(f.itemsToShow),be=Math.ceil(pe+(f.itemsToScroll-1)),Ce=be-p.value,Ie=be-(c.value-(p.value+1));return{before:Math.max(0,Ce),after:Math.max(0,Ie)}}),Be=i.computed(()=>_e.value.before?G.value?_.value.slice(-1*_e.value.before).reduce((pe,be)=>pe+be[E.value]+f.gap,0)*-1:_e.value.before*z.value*-1:0),Ve=i.computed(()=>{var pe;if(G.value){const be=(m.value%a.length+a.length)%a.length;return No({slideSize:(pe=_.value[be])===null||pe===void 0?void 0:pe[E.value],viewportSize:K.value[E.value],align:f.snapAlign})}return No({align:f.snapAlign,itemsToShow:+f.itemsToShow})}),rt=i.computed(()=>{let pe=0;if(G.value){if(m.value<0?pe=_.value.slice(m.value).reduce((be,Ce)=>be+Ce[E.value]+f.gap,0)*-1:pe=_.value.slice(0,m.value).reduce((be,Ce)=>be+Ce[E.value]+f.gap,0),pe-=Ve.value,!f.wrapAround){const be=_.value.reduce((Ce,Ie)=>Ce+Ie[E.value]+f.gap,0)-K.value[E.value]-f.gap;pe=cn({val:pe,max:be,min:0})}}else{let be=m.value-Ve.value;f.wrapAround||(be=cn({val:be,max:c.value-+f.itemsToShow,min:0})),pe=be*z.value}return pe*(H.value?1:-1)}),ot=i.computed(()=>{var pe,be;if(!G.value){const Re=m.value-Ve.value;return f.wrapAround?{min:Math.floor(Re),max:Math.ceil(Re+Number(f.itemsToShow)-1)}:{min:Math.floor(cn({val:Re,max:c.value-Number(f.itemsToShow),min:0})),max:Math.ceil(cn({val:Re+Number(f.itemsToShow)-1,max:c.value-1,min:0}))}}let Ce=0;{let Re=0,je=0-_e.value.before;const Ke=Math.abs(rt.value+Be.value);for(;Re<=Ke;){const et=(je%a.length+a.length)%a.length;Re+=((pe=_.value[et])===null||pe===void 0?void 0:pe[E.value])+f.gap,je++}Ce=je-1}let Ie=0;{let Re=Ce,je=0;for(Re<0?je=_.value.slice(0,Re).reduce((Ke,et)=>Ke+et[E.value]+f.gap,0)-Math.abs(rt.value+Be.value):je=_.value.slice(0,Re).reduce((Ke,et)=>Ke+et[E.value]+f.gap,0)-Math.abs(rt.value);je<K.value[E.value];){const Ke=(Re%a.length+a.length)%a.length;je+=((be=_.value[Ke])===null||be===void 0?void 0:be[E.value])+f.gap,Re++}Ie=Re-1}return{min:Math.floor(Ce),max:Math.ceil(Ie)}}),Dt=i.computed(()=>{if(f.slideEffect==="fade")return;const pe=re.value?"Y":"X",be=re.value?W.y:W.x;let Ce=rt.value+be;if(!f.wrapAround&&f.preventExcessiveDragging){let Ie=0;G.value?Ie=_.value.reduce((Ke,et)=>Ke+et[E.value],0):Ie=(c.value-Number(f.itemsToShow))*z.value;const Re=H.value?0:-1*Ie,je=H.value?Ie:0;Ce=cn({val:Ce,min:Re,max:je})}return`translate${pe}(${Ce}px)`}),bt=i.computed(()=>({"--vc-carousel-height":ws(f.height),"--vc-cloned-offset":ws(Be.value),"--vc-slide-gap":ws(f.gap),"--vc-transition-duration":B.value?ws(f.transition,"ms"):void 0})),$e={slideTo:we,next:ie,prev:fe},Pe=i.reactive({activeSlide:p,config:f,currentSlide:m,isSliding:B,isVertical:re,maxSlide:A,minSlide:T,nav:$e,normalizedDir:X,slideRegistry:l,slideSize:d,slides:a,slidesCount:c,viewport:u,visibleRange:ot});i.provide(Mn,Pe);const We=i.reactive({config:f,currentSlide:m,maxSlide:A,middleSlide:b,minSlide:T,slideSize:d,slidesCount:c});return r(i.reactive(Object.assign({data:We,next:ie,prev:fe,restartCarousel:De,slideTo:we,updateBreakpointsConfig:P,updateSlideSize:Q,updateSlidesData:te},i.toRefs(Pe)))),()=>{var pe;const be=e.default||e.slides,Ce=(be==null?void 0:be(We))||[],{before:Ie,after:Re}=_e.value,je=Da({slides:a,position:"before",toShow:Ie}),Ke=Da({slides:a,position:"after",toShow:Re}),et=[...je,...Ce,...Ke];if(!f.enabled||!et.length)return i.h("section",{ref:o,class:["carousel","is-disabled"]},et);const dt=((pe=e.addons)===null||pe===void 0?void 0:pe.call(e,We))||[],ft=i.h("ol",{class:"carousel__track",onMousedownCapture:f.mouseDrag?Y:null,onTouchstartPassiveCapture:f.touchDrag?Y:null,onWheel:f.mouseWheel?ne:null,style:{transform:Dt.value}},et),Rt=i.h("div",{class:"carousel__viewport",ref:u},ft);return i.h("section",{ref:o,class:["carousel",`is-${X.value}`,`is-effect-${f.slideEffect}`,{"is-dragging":Z.value,"is-hover":ke.value,"is-sliding":B.value,"is-vertical":re.value}],dir:X.value,style:bt.value,"aria-label":f.i18n.ariaGallery,tabindex:"0",onBlur:w,onFocus:C,onMouseenter:ve,onMouseleave:N},[Rt,dt,i.h(Rp)])}}});var Co;(function(n){n.arrowDown="arrowDown",n.arrowLeft="arrowLeft",n.arrowRight="arrowRight",n.arrowUp="arrowUp"})(Co||(Co={}));const ja=n=>`icon${n.charAt(0).toUpperCase()+n.slice(1)}`,Mp={arrowDown:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z",arrowLeft:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z",arrowRight:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z",arrowUp:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"};function Dp(n){return n in Co}const $a=n=>n&&Dp(n),qa=i.defineComponent({props:{name:{type:String,required:!0,validator:$a},title:{type:String,default:n=>n.name?nt.i18n[ja(n.name)]:""}},setup(n){const e=i.inject(Mn,null);return()=>{const t=n.name;if(!t||!$a(t))return;const r=Mp[t],s=i.h("path",{d:r}),l=(e==null?void 0:e.config.i18n[ja(t)])||n.title,a=i.h("title",l);return i.h("svg",{class:"carousel__icon",viewBox:"0 0 24 24",role:"img","aria-label":l},[a,s])}}});i.defineComponent({name:"CarouselNavigation",inheritAttrs:!1,props:{carousel:{type:Object}},setup(n,{slots:e,attrs:t}){let r=i.inject(Mn,null);const{next:s,prev:l}=e,a=()=>({btt:"arrowDown",ltr:"arrowLeft",rtl:"arrowRight",ttb:"arrowUp"})[r.normalizedDir],c=()=>({btt:"arrowUp",ltr:"arrowRight",rtl:"arrowLeft",ttb:"arrowDown"})[r.normalizedDir],o=i.computed(()=>!r.config.wrapAround&&r.currentSlide<=r.minSlide),u=i.computed(()=>!r.config.wrapAround&&r.currentSlide>=r.maxSlide);return()=>{if(n.carousel&&(r=n.carousel),!r)return console.warn("[vue3-carousel]: A carousel component must be provided for the navigation component to display"),"";const{i18n:d}=r.config,h=i.h("button",Object.assign(Object.assign({type:"button",disabled:o.value,"aria-label":d.ariaPreviousSlide,title:d.ariaPreviousSlide,onClick:r.nav.prev},t),{class:["carousel__prev",{"carousel__prev--disabled":o.value},t.class]}),(l==null?void 0:l())||i.h(qa,{name:a()})),f=i.h("button",Object.assign(Object.assign({type:"button",disabled:u.value,"aria-label":d.ariaNextSlide,title:d.ariaNextSlide,onClick:r.nav.next},t),{class:["carousel__next",{"carousel__next--disabled":u.value},t.class]}),(s==null?void 0:s())||i.h(qa,{name:c()}));return[h,f]}}}),i.defineComponent({name:"CarouselPagination",props:{disableOnClick:{type:Boolean},paginateByItemsToShow:{type:Boolean},carousel:{type:Object}},setup(n){let e=i.inject(Mn,null);const t=i.computed(()=>e.config.itemsToShow),r=i.computed(()=>No({align:e.config.snapAlign,itemsToShow:t.value})),s=i.computed(()=>n.paginateByItemsToShow&&t.value>1),l=i.computed(()=>Math.ceil((e.activeSlide-r.value)/t.value)),a=i.computed(()=>Math.ceil(e.slidesCount/t.value)),c=o=>Va(s.value?{val:l.value,max:a.value-1,min:0}:{val:e.activeSlide,max:e.maxSlide,min:e.minSlide})===o;return()=>{var o,u;if(n.carousel&&(e=n.carousel),!e)return console.warn("[vue3-carousel]: A carousel component must be provided for the pagination component to display"),"";const d=[];for(let h=s.value?0:e.minSlide;h<=(s.value?a.value-1:e.maxSlide);h++){const f=_a(e.config.i18n[s.value?"ariaNavigateToPage":"ariaNavigateToSlide"],{slideNumber:h+1}),m=c(h),p=i.h("button",{type:"button",class:{"carousel__pagination-button":!0,"carousel__pagination-button--active":m},"aria-label":f,"aria-pressed":m,"aria-controls":(u=(o=e.slides[h])===null||o===void 0?void 0:o.exposed)===null||u===void 0?void 0:u.id,title:f,disabled:n.disableOnClick,onClick:()=>e.nav.slideTo(s.value?Math.floor(h*+e.config.itemsToShow+r.value):h)}),y=i.h("li",{class:"carousel__pagination-item",key:h},p);d.push(y)}return i.h("ol",{class:"carousel__pagination"},d)}}});const Up=i.defineComponent({name:"CarouselSlide",props:{id:{type:String,default:n=>n.isClone?void 0:i.useId()},index:{type:Number,default:void 0},isClone:{type:Boolean,default:!1}},setup(n,{attrs:e,slots:t,expose:r}){const s=i.inject(Mn);if(i.provide(Mn,void 0),!s)return()=>"";const l=i.ref(n.index),a=p=>{l.value=p},c=i.getCurrentInstance(),o=()=>{const p=c.vnode.el;return p?p.getBoundingClientRect():{width:0,height:0}};r({id:n.id,setIndex:a,getBoundingRect:o});const u=i.computed(()=>l.value===s.activeSlide),d=i.computed(()=>l.value===s.activeSlide-1),h=i.computed(()=>l.value===s.activeSlide+1),f=i.computed(()=>l.value>=s.visibleRange.min&&l.value<=s.visibleRange.max),m=i.computed(()=>{if(s.config.itemsToShow==="auto")return;const p=s.config.itemsToShow,y=s.config.gap>0&&p>1?`calc(${100/p}% - ${s.config.gap*(p-1)/p}px)`:`${100/p}%`;return s.isVertical?{height:y}:{width:y}});return s.slideRegistry.registerSlide(c,n.index),i.onUnmounted(()=>{s.slideRegistry.unregisterSlide(c)}),n.isClone&&(i.onMounted(()=>{Ua(c.vnode)}),i.onUpdated(()=>{Ua(c.vnode)})),()=>{var p,y;return s.config.enabled?i.h("li",{style:[e.style,Object.assign({},m.value)],class:{carousel__slide:!0,"carousel__slide--clone":n.isClone,"carousel__slide--visible":f.value,"carousel__slide--active":u.value,"carousel__slide--prev":d.value,"carousel__slide--next":h.value,"carousel__slide--sliding":s.isSliding},onFocusin:()=>{s.viewport&&(s.viewport.scrollLeft=0),s.nav.slideTo(l.value)},id:n.isClone?void 0:n.id,"aria-hidden":n.isClone||void 0},(y=t.default)===null||y===void 0?void 0:y.call(t,{currentIndex:l.value,isActive:u.value,isClone:n.isClone,isPrev:d.value,isNext:h.value,isSliding:s.isSliding,isVisible:f.value})):(p=t.default)===null||p===void 0?void 0:p.call(t)}}}),_p={class:"flex h-[872px] w-full bg-navy-800 relative rounded-[48px] z-10"},Vp={class:"lg:p-8 p-4 flex relative w-full"},jp={class:"lg:w-1/2 lg:pl-8 lg:pr-16 pl-4 pr-8 flex flex-col lg:mt-[218px] mt-[100px] absolute top-0 left-5 lg:relative"},$p={class:"gap-2 flex z-10 mb-4"},qp=["onClick"],zp={class:"lg:text-[48px] text-[40px] font-semibold text-white mb-3 lg:leading-normal leading-[48px]"},Hp=["innerHTML"],Gp={class:"flex gap-3 mt-8 flex-col lg:flex-row"},Wp=["href","target"],Kp=["href","target"],Xp=["src"],Yp={key:1,class:"rounded-[40px] h-[674px] max-w-[882px] lg:w-1/2 w-full object-cover",src:To},Zp=Zn({__name:"VSliderPresenter",props:{component:{required:!0,type:Object}},setup(n){const e=n,t=i.ref(0),s=i.ref(e.component).value.data.filter(a=>a.public),l=a=>a.startsWith("http")?a:`//${a}`;return(a,c)=>(i.openBlock(),i.createElementBlock("div",_p,[i.createVNode(i.unref(Fp),{"items-to-show":1,modelValue:t.value,"onUpdate:modelValue":c[0]||(c[0]=o=>t.value=o),autoplay:5e3,class:"carousel w-full","wrap-around":!0},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(s),(o,u)=>(i.openBlock(),i.createBlock(i.unref(Up),{key:u},{default:i.withCtx(()=>[i.createElementVNode("div",Vp,[i.createElementVNode("div",jp,[i.createElementVNode("div",$p,[i.unref(s).length>1?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:0},i.renderList(i.unref(s),(d,h)=>(i.openBlock(),i.createElementBlock("a",{onClick:f=>t.value=h,class:i.normalizeClass(["w-4 h-1 bg-navy-400 rounded-full cursor-pointer",{"!w-12 !bg-white":t.value===h}])},null,10,qp))),256)):i.createCommentVNode("",!0)]),i.createElementVNode("h3",zp,i.toDisplayString(o==null?void 0:o.title),1),i.createElementVNode("p",{class:"text-lg font-normal text-navy-50",innerHTML:o==null?void 0:o.description},null,8,Hp),i.createElementVNode("div",Gp,[o.secondary_button.show?(i.openBlock(),i.createElementBlock("a",{key:0,class:"text-white text-base font-semibold border border-white px-6 py-2 rounded-full hover:bg-navy-800 hover:opacity-60",href:l(o.secondary_button.url),target:o.secondary_button.open_in_new_tab?"_blank":""},[i.createElementVNode("span",null,i.toDisplayString(o.secondary_button.label),1)],8,Wp)):i.createCommentVNode("",!0),o.primary_button.show?(i.openBlock(),i.createElementBlock("a",{key:1,class:"flex items-center gap-2 text-navy-800 bg-white text-base font-semibold border border-white px-6 py-2 rounded-full hover:bg-navy-50",href:l(o.primary_button.url),target:o.primary_button.open_in_new_tab?"_blank":""},[i.createTextVNode(i.toDisplayString(o.primary_button.label)+" ",1),i.createVNode(i.unref(er),{class:"w-5 h-5"})],8,Kp)):i.createCommentVNode("",!0)])]),o.featured_image?(i.openBlock(),i.createElementBlock("img",{key:0,src:o.featured_image,alt:"Slide Image",class:"rounded-[40px] h-[674px] max-w-[882px] lg:w-1/2 w-full object-cover"},null,8,Xp)):(i.openBlock(),i.createElementBlock("img",Yp))])]),_:2},1024))),128))]),_:1},8,["modelValue"])]))}},[["__scopeId","data-v-960591f8"]]),Jp=["target","href"],za={__name:"VLinkPresenter",props:{component:{required:!0,type:Object}},setup(n){const e=n,t=i.ref(e.component),r=t.value.type==="link_grid";return(s,l)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["flex justify-center h-[136px] w-full relative rounded-b-[48px] bg-navy-600 -mt-12 gap-[60px]",{"bg-transparent !justify-start flex-wrap mt-8 !h-auto !gap-4":r}])},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.value.data,a=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["flex justify-center",{"!block":r}])},[i.createElementVNode("a",{target:a.open_in_new_tab?"_blank":"",href:a.url.startsWith("http")?a.url:`//${a.url}`,class:i.normalizeClass(["text-white flex gap-1.5 items-center cursor-pointer mt-12 text-sm font-semibold hover:text-gray-300",{"bg-white border border-gray-300 rounded-full !text-gray-700 px-4 h-[44px] w-max !mt-0 !text-base hover:bg-gray-100":r}])},[i.createElementVNode("span",null,i.toDisplayString(a.title),1),i.createVNode(i.unref(er),{class:"w-5 h-5"})],10,Jp)],2))),256))],2))}},Qp={class:"rounded-[48px] 1xl:max-w-[1824px] mx-auto w-full"},em={class:"md:px-[90px]"},tm={__name:"HeroHeader",props:{section:{required:!0,type:Object}},setup(n){const e=n,t=i.ref(e.section),r=i.ref({sliders:i.markRaw(Zp),links:i.markRaw(za)}),s=l=>l!=null&&l.type?r.value[l==null?void 0:l.type]:"";return(l,a)=>(i.openBlock(),i.createElementBlock("div",Qp,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.value.components,(c,o)=>(i.openBlock(),i.createElementBlock("div",em,[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(s(c)),{key:o,component:c},null,8,["component"]))]))),256))]))}},As={__name:"VHeaderPresenter",props:{component:{required:!0,type:Object}},setup(n){const e=n,t=i.ref(e.component);return(r,s)=>{var l,a,c,o,u,d,h;return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["flex flex-col sm:px-0 px-4",{"items-center":(l=t.value)==null?void 0:l.center}])},[(a=t.value)!=null&&a.title?(i.openBlock(),i.createElementBlock("p",{key:0,class:i.normalizeClass(["pb-4 text-4xl font-semibold text-white",{"!text-gray-900":(c=t.value)==null?void 0:c.dark}])},i.toDisplayString((o=t.value)==null?void 0:o.title),3)):i.createCommentVNode("",!0),(u=t.value)!=null&&u.supporting_text?(i.openBlock(),i.createElementBlock("p",{key:1,class:i.normalizeClass(["text-navy-25 text-xl font-normal leading-[30px]",{"!text-gray-600":(d=t.value)==null?void 0:d.dark}])},i.toDisplayString((h=t.value)==null?void 0:h.supporting_text),3)):i.createCommentVNode("",!0)],2)}}},nm={xmlns:"http://www.w3.org/2000/svg",width:"341",height:"336",fill:"none"};function rm(n,e){return i.openBlock(),i.createElementBlock("svg",nm,e[0]||(e[0]=[i.createElementVNode("path",{fill:"#78BDB5","fill-rule":"evenodd",d:"M198.752-176.557c89.734-37.714 189.985-82.087 275.305-35.237 89.35 49.062 132.236 156.992 132.061 258.925-.154 90.488-63.843 162.678-132.881 221.174-60.961 51.652-136.137 83.393-215.483 73.993-79.145-9.376-146.313-56.631-191.593-122.217C17.667 149.839-17.165 64.238 9.896-16.715c27.51-82.293 108.864-126.223 188.856-159.842","clip-rule":"evenodd"},null,-1)]))}const sm={render:rm},om={class:"w-full bg-navy-800 py-10 relative lg:h-[336px]"},im={class:"max-w-[1400px] mx-auto w-full"},am={class:"max-md:mx-[30px] max-1xl:mx-[120px] 1xl:mx-0 relative z-10"},lm={class:"w-full md:w-3/4"},cm={__name:"QuickLinks",props:{section:{required:!0,type:Object}},setup(n){const e=n,t=i.ref(e.section),r=i.ref({header:i.markRaw(As),link_grid:i.markRaw(za)}),s=l=>l!=null&&l.type?r.value[l==null?void 0:l.type]:"";return(l,a)=>(i.openBlock(),i.createElementBlock("div",om,[i.createElementVNode("div",im,[i.createElementVNode("div",am,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.value.components,(c,o)=>(i.openBlock(),i.createElementBlock("div",lm,[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(s(c)),{key:o,component:c},null,8,["component"]))]))),256))])]),i.createVNode(i.unref(sm),{class:"absolute right-0 top-0"})]))}},um={class:"flex flex-col md:flex-row justify-center gap-4 items-stretch mt-6"},dm={class:"flex-1 w-full md:w-1/2 flex flex-col"},fm=["onClick"],hm={class:"py-4 pl-4 md:pl-6"},pm=["innerHTML"],mm={class:"flex-1 w-full md:w-1/2 bg-transparent flex flex-col items-center"},gm=["src"],ym={key:1,class:"rounded-[20px] md:rounded-[40px] object-contain max-h-[200px] md:max-h-[387px] w-full",src:To,alt:"No Image Available"},vm=["target","href"],bm=Zn({__name:"VVerticalTabPresenter",props:{component:{required:!0,type:Object}},setup(n){const e=n,t=i.ref(e.component),r=i.ref(null),s=i.ref(t.value.data.filter(a=>a.public)),l=a=>{r.value=a};return i.onMounted(()=>{s.value.length>0&&l(s.value[0])}),(a,c)=>(i.openBlock(),i.createElementBlock("div",um,[i.createElementVNode("div",dm,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value,o=>(i.openBlock(),i.createElementBlock("div",{key:o.title},[i.createElementVNode("div",{class:i.normalizeClass(["flex-col flex gap-1.5 cursor-pointer mb-4 group",{"border-l-4 border-brand-600":r.value===o,"border-l-4 border-gray-100":r.value!==o}]),onClick:i.withModifiers(u=>l(o),["prevent"])},[i.createElementVNode("div",hm,[i.createElementVNode("p",{class:i.normalizeClass([{"text-gray-900":r.value===o,"text-gray-600":r.value!==o},"text-lg md:text-xl font-semibold mb-2 group-hover:text-gray-900"])},i.toDisplayString(o.title),3),i.createElementVNode("p",{class:i.normalizeClass([{"text-gray-700":r.value===o,"text-gray-400":r.value!==o},"text-sm md:text-md font-normal group-hover:text-gray-700"]),innerHTML:o.description},null,10,pm)])],10,fm)]))),128))]),i.createElementVNode("div",mm,[i.createVNode(i.Transition,{name:"fade",mode:"out-in"},{default:i.withCtx(()=>{var o,u,d,h,f,m,p,y,b,A;return[(i.openBlock(),i.createElementBlock("div",{class:"flex flex-col items-center",key:(o=r.value)==null?void 0:o.title},[(u=r.value)!=null&&u.featured_image?(i.openBlock(),i.createElementBlock("img",{key:0,src:r.value.featured_image,alt:"Selected Item Image",class:"rounded-[20px] md:rounded-[40px] object-contain max-h-[200px] md:max-h-[387px] w-full"},null,8,gm)):(i.openBlock(),i.createElementBlock("img",ym)),(h=(d=r.value)==null?void 0:d.primary_button)!=null&&h.show?(i.openBlock(),i.createElementBlock("a",{key:2,class:"text-sm md:text-md font-semibold text-brand-600 flex items-center gap-2 mt-4",target:(m=(f=r.value)==null?void 0:f.primary_button)!=null&&m.is_new_tab?"_blank":"",href:(y=(p=r.value)==null?void 0:p.primary_button)!=null&&y.url.startsWith("http")?r.value.primary_button.url:`//${r.value.primary_button.url}`},[i.createTextVNode(i.toDisplayString(((A=(b=r.value)==null?void 0:b.primary_button)==null?void 0:A.label)??"N/A")+" ",1),i.createVNode(i.unref(er),{class:"w-4 h-4 md:w-5 md:h-5"})],8,vm)):i.createCommentVNode("",!0)]))]}),_:1})])]))}},[["__scopeId","data-v-e5b200c8"]]),xm={class:"max-w-[1400px] mx-auto w-full"},Em={class:"max-md:mx-[30px] max-1xl:mx-[120px] 1xl:mx-0 bg-navy-25 rounded-[48px] p-16"},wm={__name:"VTabs",props:{section:{required:!0,type:Object}},setup(n){const e=n,t=i.ref(e.section),r=i.ref({header:i.markRaw(As),vertical_tabs:i.markRaw(bm)}),s=l=>l!=null&&l.type?r.value[l==null?void 0:l.type]:"";return(l,a)=>(i.openBlock(),i.createElementBlock("div",xm,[i.createElementVNode("div",Em,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.value.components,(c,o)=>(i.openBlock(),i.createElementBlock("div",null,[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(s(c)),{key:o,component:c},null,8,["component"]))]))),256))])]))}},Am={class:"w-full relative"},Sm=["href"],Tm=["src"],Nm={key:1,class:"text-sm"},km={__name:"LogoCloud",props:{section:{required:!0,type:Object}},setup(n){const e=n,t=i.ref(e.section),r=t.value.display==="horizontal",s=l=>l==="small"?"h-[32px]":l==="medium"?"h-[40px]":"h-[32px]";return(l,a)=>(i.openBlock(),i.createElementBlock("div",Am,[i.createElementVNode("div",{class:i.normalizeClass(["1xl:max-w-[1824px] mx-auto relative flex justify-center items-center",{"py-8":r,"flex-col py-6":!r}])},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.value.components,(c,o)=>(i.openBlock(),i.createElementBlock("div",null,[(c==null?void 0:c.type)==="header"&&(c!=null&&c.supporting_text)?(i.openBlock(),i.createElementBlock("p",{key:0,class:i.normalizeClass(["mr-[48px] text-base text-gray-600 font-medium",{"mb-6":!r}])},i.toDisplayString(c==null?void 0:c.supporting_text),3)):i.createCommentVNode("",!0),(c==null?void 0:c.type)==="logos"?(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass(["flex flex-wrap justify-center",{"gap-6":r,"gap-12":!r}])},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(c.data,u=>(i.openBlock(),i.createElementBlock("a",{href:u==null?void 0:u.url,title:"Brand"},[u!=null&&u.logo?(i.openBlock(),i.createElementBlock("img",{key:0,src:u==null?void 0:u.logo,class:i.normalizeClass(s(c==null?void 0:c.height)),alt:"Brand Logo"},null,10,Tm)):(i.openBlock(),i.createElementBlock("span",Nm,"No photo"))],8,Sm))),256))],2)):i.createCommentVNode("",!0)]))),256))],2)]))}},Cm={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function Om(n,e){return i.openBlock(),i.createElementBlock("svg",Cm,e[0]||(e[0]=[i.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 6v6l4 2m6-2c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10"},null,-1)]))}const Rm={render:Om},Im={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function Lm(n,e){return i.openBlock(),i.createElementBlock("svg",Im,e[0]||(e[0]=[i.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m15 18-6-6 6-6"},null,-1)]))}const Bm={render:Lm},Pm={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function Fm(n,e){return i.openBlock(),i.createElementBlock("svg",Pm,e[0]||(e[0]=[i.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 8V7m0 5.5v-1M8 17v-1m-1.2 4h10.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C22 17.72 22 16.88 22 15.2V8.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C19.72 4 18.88 4 17.2 4H6.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C2 6.28 2 7.12 2 8.8v6.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C4.28 20 5.12 20 6.8 20"},null,-1)]))}const Mm={render:Fm},Dm={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function Um(n,e){return i.openBlock(),i.createElementBlock("svg",Dm,e[0]||(e[0]=[i.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M2 2h1.306c.246 0 .37 0 .468.045a.5.5 0 0 1 .213.185c.059.092.076.213.111.457L4.571 6m0 0 1.052 7.731c.134.982.2 1.472.435 1.841a2 2 0 0 0 .853.745c.398.183.893.183 1.883.183h8.558c.942 0 1.414 0 1.799-.17a2 2 0 0 0 .841-.696c.239-.346.327-.81.503-1.735l1.324-6.95c.062-.325.093-.488.048-.615a.5.5 0 0 0-.22-.266C21.532 6 21.366 6 21.034 6zM10 21a1 1 0 1 1-2 0 1 1 0 0 1 2 0m8 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0"},null,-1)]))}const _m={render:Um},Vm=["href"],jm={__name:"VCarouselPrimaryButton",props:{button:{type:Object,required:!0}},setup(n){const e=t=>t.startsWith("http")?t:`//${t}`;return(t,r)=>{var s,l,a;return(s=n.button)!=null&&s.url?(i.openBlock(),i.createElementBlock("a",{key:0,href:e(n.button.url),target:"_blank",class:"hover:bg-brand-600 bg-brand-500 text-white h-[40px] rounded-full px-[14px] py-[10px] inline-flex gap-1.5 items-center shadow-xs text-sm"},[((l=n.button)==null?void 0:l.icon)==="plus"?(i.openBlock(),i.createBlock(i.unref(kr),{key:0,class:"w-4 h-4"})):i.createCommentVNode("",!0),((a=n.button)==null?void 0:a.icon)==="shopping-cart-01"?(i.openBlock(),i.createBlock(i.unref(_m),{key:1,class:"w-4 h-4"})):i.createCommentVNode("",!0),i.createTextVNode(" "+i.toDisplayString(n.button.title),1)],8,Vm)):i.createCommentVNode("",!0)}}},$m={class:"relative"},qm={class:"mb-4"},zm=["src"],Hm={key:0,class:"flex gap-2"},Gm={class:"my-3"},Wm=["href"],Km=["innerHTML"],Xm={key:1,class:"flex gap-2 text-gray-600 mt-6 font-semibold"},Ym=["innerHTML"],Zm={key:2,class:"flex gap-2 text-gray-600 mt-2 font-semibold"},Jm=["innerHTML"],Qm={class:"border-t border-gray-200 mt-4 pt-[17px] flex justify-between items-center"},eg=["href"],tg={class:"absolute top-[-65px] right-4 flex gap-4"},ng={key:0,class:"flex justify-center mb-[40px]"},rg=["href","target"],sg=4,og={__name:"VCarouselPresenter",props:{component:{required:!0,type:Object},hasBackground:{type:Boolean,default:!0}},setup(n){var o;const e=i.inject("VCarouselPrimaryButton",jm),t=n,r=i.ref(0),s=[...((o=t.component.content)==null?void 0:o.items)||[]],l=u=>u.startsWith("http")?u:`//${u}`,a=()=>{r.value<=s.length-sg&&r.value++},c=()=>{r.value>0&&r.value--};return(u,d)=>{var h;return i.openBlock(),i.createElementBlock("div",$m,[i.createElementVNode("div",{class:"slider-wrapper flex transition-transform duration-500 gap-0 mb-6",style:i.normalizeStyle({transform:`translateX(-${r.value*504}px)`})},[(i.openBlock(),i.createElementBlock(i.Fragment,null,i.renderList(s,(f,m)=>i.createElementVNode("div",{key:m,class:i.normalizeClass(["slider-item flex-shrink-0 flex-1 mr-6 min-w-[480px]",{"h-[309px]":!n.hasBackground,"h-full":n.hasBackground}])},[i.createElementVNode("div",{class:i.normalizeClass(["w-full p-4 rounded-[16px]",{"bg-gray-50 h-full flex flex-col justify-between":!n.hasBackground,"bg-white":n.hasBackground}])},[i.createElementVNode("div",null,[i.createElementVNode("div",qm,[f.image?(i.openBlock(),i.createElementBlock("img",{key:0,src:f.image,alt:"Slide Image",class:"rounded-[8px] h-[220px] w-full object-cover"},null,8,zm)):i.createCommentVNode("",!0)]),f.tags&&f.tags.length?(i.openBlock(),i.createElementBlock("div",Hm,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(f.tags,p=>(i.openBlock(),i.createElementBlock("span",{key:p,class:"bg-navy-50 border border-navy-200 text-navy-700 px-2 py-0.5 rounded-[6px] text-sm"},i.toDisplayString(p),1))),128))])):i.createCommentVNode("",!0),i.createElementVNode("h3",Gm,[i.createElementVNode("a",{class:"text-[24px] font-semibold text-gray-900 leading-[32px] hover:underline",href:f.url,target:"_blank"},i.toDisplayString(f==null?void 0:f.title),9,Wm)]),i.createElementVNode("p",{class:"text-base font-normal text-gray-600 leading-[24px] multiline-ellipsis",innerHTML:f==null?void 0:f.description},null,8,Km),(f==null?void 0:f.type)==="event"?(i.openBlock(),i.createElementBlock("div",Xm,[i.createVNode(i.unref(Rm),{class:"w-4 h-4 mt-[3px]"}),i.createElementVNode("div",{class:"text-sm",innerHTML:f==null?void 0:f.line_1},null,8,Ym)])):i.createCommentVNode("",!0),f.type==="event"?(i.openBlock(),i.createElementBlock("div",Zm,[i.createVNode(i.unref(Mm),{class:"w-4 h-4 mt-[3px]"}),i.createElementVNode("div",{class:"text-sm",innerHTML:f==null?void 0:f.line_2},null,8,Jm)])):i.createCommentVNode("",!0)]),i.createElementVNode("div",Qm,[i.createVNode(i.unref(e),{button:f.primary_button},null,8,["button"]),f.secondary_button?(i.openBlock(),i.createElementBlock("a",{key:0,target:"_blank",href:l(f.secondary_button.url),class:"text-sm text-gray-600 hover:text-gray-800"},i.toDisplayString(f.secondary_button.title??"Learn more"),9,eg)):i.createCommentVNode("",!0)])],2)],2)),64))],4),i.createElementVNode("div",tg,[i.createElementVNode("button",{onClick:c,class:"p-2.5 bg-white text-navy-800 rounded-full hover:opacity-100 opacity-50"},[i.createVNode(i.unref(Bm),{class:"w-6 h-6"})]),i.createElementVNode("button",{onClick:a,class:"p-2.5 bg-white text-navy-800 rounded-full hover:opacity-100 opacity-50"},[i.createVNode(i.unref(oo),{class:"w-6 h-6"})])]),(h=n.component)!=null&&h.button?(i.openBlock(),i.createElementBlock("div",ng,[i.createElementVNode("a",{class:"border-brand-300 hover:border-brand-700 border text-brand-700 h-[44px] rounded-full px-[14px] py-[10px] inline-flex gap-1.5 items-center font-semibold text-base",href:n.component.button.url,target:n.component.button.is_new_tab?"_blank":""},[i.createTextVNode(i.toDisplayString(n.component.button.title)+" ",1),i.createVNode(i.unref(er),{class:"w-5 h-5"})],8,rg)])):i.createCommentVNode("",!0)])}}},ig={class:"max-w-[1400px] mx-auto w-full"},ag={class:"max-md:mx-[30px] max-1xl:mx-[120px] 1xl:mx-0 rounded-[48px] pt-[40px]"},lg={__name:"CollectionCarousel",props:{section:{required:!0,type:Object}},setup(n){const e=n,t=i.ref(e.section),r=i.computed(()=>t.value.components.find(l=>l.type==="header")),s=i.computed(()=>t.value.components.find(l=>l.type==="carousel"));return(l,a)=>{var c,o,u,d;return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["overflow-hidden",{"rounded-br-[48px] rounded-tl-[48px] bg-aqua-100":(c=t.value)==null?void 0:c.has_background}])},[i.createElementVNode("div",ig,[i.createElementVNode("div",ag,[i.createVNode(As,{component:r.value},null,8,["component"])])]),i.createElementVNode("div",{class:i.normalizeClass(["max-w-[1400px] mx-auto w-full",{"mt-0":!((o=t.value)!=null&&o.has_background),"mt-6":(u=t.value)==null?void 0:u.has_background}])},[i.createVNode(og,{component:s.value,"has-background":(d=t.value)==null?void 0:d.has_background},null,8,["component","has-background"])],2)],2)}}},cg={xmlns:"http://www.w3.org/2000/svg",width:"56",height:"56",fill:"none"};function ug(n,e){return i.openBlock(),i.createElementBlock("svg",cg,e[0]||(e[0]=[i.createElementVNode("path",{fill:"#fff","fill-rule":"evenodd",d:"M28 56c15.464 0 28-12.536 28-28S43.464 0 28 0 0 12.536 0 28s12.536 28 28 28m-4.375-17.73 15.75-8.803a1.668 1.668 0 0 0 0-2.934l-15.75-8.803c-1.167-.653-2.625.162-2.625 1.467v17.606c0 1.305 1.458 2.12 2.625 1.468","clip-rule":"evenodd"},null,-1)]))}const dg={render:ug},fg={class:"flex flex-col items-center gap-6 pb-[40px] pt-[24px]"},hg={class:"grid grid-cols-1 md:grid-cols-3 gap-6 w-full"},pg={key:0,class:"relative group"},mg=["onClick"],gg=["src"],yg=["src"],vg={key:3,class:"w-full h-[281px] object-cover rounded-[16px] mb-4",src:To},bg={class:"flex flex-col gap-2 items-start text-left w-full"},xg={key:0,class:"flex gap-2"},Eg=["href"],wg={class:"flex justify-between"},Ag=["innerHTML"],Sg={class:"text-gray-500 text-sm mb-4"},Tg={key:0,class:"flex justify-center"},Ng=["href","target"],Ha=Zn({__name:"VCollectionGridPresenter",props:{component:{required:!0,type:Object}},setup(n){var o,u;const e=n;let t=[];e.component.type==="news_grid"?t=[...((o=e.component.content)==null?void 0:o.items)||[]]:t=[...((u=e.component)==null?void 0:u.data)||[]];const r=e.component.button||{},s=i.ref(t.map(()=>!1)),l=i.ref(t.map(()=>null)),a=d=>{const h=l.value[d];h&&(h.paused?(h.play(),s.value[d]=!0):(h.pause(),s.value[d]=!1))},c=(d,h)=>{d&&(l.value[h]=d)};return(d,h)=>{var f;return i.openBlock(),i.createElementBlock("div",fg,[i.createElementVNode("div",hg,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(t),(m,p)=>(i.openBlock(),i.createElementBlock("div",{key:p,class:"card bg-white sm:p-0 px-4"},[n.component.type==="video_grid"?(i.openBlock(),i.createElementBlock("div",pg,[i.createElementVNode("video",{onClick:y=>a(p),ref_for:!0,ref:y=>c(y,p),class:"w-full h-[281px] object-cover rounded-[16px]",width:"640",height:"360",preload:"metadata"},[i.createElementVNode("source",{src:`${m.video}#t=2`},null,8,gg)],8,mg),s.value[p]?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(i.unref(dg),{key:0,class:"cursor-pointer absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 group-hover:opacity-100 transition-opacity",onClick:y=>a(p)},null,8,["onClick"]))])):m.image?(i.openBlock(),i.createElementBlock("img",{key:1,src:m.image,alt:"Card Image",class:"w-full h-[281px] object-cover rounded-[16px] mb-4"},null,8,yg)):(i.openBlock(),i.createElementBlock("img",vg)),i.createElementVNode("div",bg,[m.categories&&m.categories.length?(i.openBlock(),i.createElementBlock("div",xg,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(m.categories,y=>(i.openBlock(),i.createElementBlock("span",{key:y,class:i.normalizeClass(["border px-2 py-0.5 rounded-[6px] text-sm",{"bg-navy-50 border-navy-200 text-navy-700":y.style==="navy","bg-brand-50 border-brand-200 text-brand-700":y.style==="brand","bg-orange-50 border-orange-200 text-orange-700":y.style==="orange"}])},i.toDisplayString(y.name),3))),128))])):i.createCommentVNode("",!0),m!=null&&m.link?(i.openBlock(),i.createElementBlock("a",{key:1,href:m.link,class:"text-gray-900 text-lg font-semibold hover:underline block mb-2 w-full",target:"_blank",rel:"noopener noreferrer"},[i.createElementVNode("div",wg,[i.createElementVNode("span",{class:"w-5/6 leading-[28px]",innerHTML:m.title},null,8,Ag),i.createVNode(i.unref(er),{class:"w-5 h-5 mt-1"})])],8,Eg)):i.createCommentVNode("",!0),i.createElementVNode("p",Sg,i.toDisplayString(m.dateTime),1)])]))),128))]),Object.keys(i.unref(r)).length&&((f=i.unref(r))!=null&&f.show)?(i.openBlock(),i.createElementBlock("div",Tg,[i.createElementVNode("a",{class:"border-brand-300 hover:border-brand-700 border text-brand-700 h-[44px] rounded-full px-[14px] py-[10px] inline-flex gap-1.5 items-center font-semibold text-base",href:i.unref(r).url,target:i.unref(r).is_new_tab?"_blank":""},[i.createTextVNode(i.toDisplayString(i.unref(r).title)+" ",1),i.createVNode(i.unref(er),{class:"w-5 h-5"})],8,Ng)])):i.createCommentVNode("",!0)])}}},[["__scopeId","data-v-a889da45"]]),kg={class:"overflow-hidden"},Cg={class:"max-w-[1400px] mx-auto w-full pt-[40px]"},Og={__name:"CollectionGrid",props:{section:{required:!0,type:Object}},setup(n){const e=n,t=i.ref(e.section),r=i.ref({header:i.markRaw(As),news_grid:i.markRaw(Ha),video_grid:i.markRaw(Ha)}),s=l=>l!=null&&l.type?r.value[l==null?void 0:l.type]:"";return(l,a)=>(i.openBlock(),i.createElementBlock("div",kg,[i.createElementVNode("div",Cg,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.value.components,(c,o)=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent(s(c)),{key:o,component:c},null,8,["component"]))),128))])]))}},Rg={class:"page-render"},Ig={__name:"PageRender",props:{page:{required:!0,type:Object}},setup(n){const e=i.ref({header:i.markRaw(tm),quick_links:i.markRaw(cm),tabs:i.markRaw(wm),logo:i.markRaw(km),collection_carousel:i.markRaw(lg),collection_grid:i.markRaw(Og)}),t=r=>r!=null&&r.type?e.value[r==null?void 0:r.type]:"";return(r,s)=>(i.openBlock(),i.createElementBlock("div",Rg,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.page.sections,(l,a)=>(i.openBlock(),i.createElementBlock("div",null,[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(t(l)),{key:a,section:l},null,8,["section"]))]))),256))]))}};var Ga=typeof global=="object"&&global&&global.Object===Object&&global,Lg=typeof self=="object"&&self&&self.Object===Object&&self,en=Ga||Lg||Function("return this")(),wn=en.Symbol,Wa=Object.prototype,Bg=Wa.hasOwnProperty,Pg=Wa.toString,Pr=wn?wn.toStringTag:void 0;function Fg(n){var e=Bg.call(n,Pr),t=n[Pr];try{n[Pr]=void 0;var r=!0}catch{}var s=Pg.call(n);return r&&(e?n[Pr]=t:delete n[Pr]),s}var Mg=Object.prototype,Dg=Mg.toString;function Ug(n){return Dg.call(n)}var _g="[object Null]",Vg="[object Undefined]",Ka=wn?wn.toStringTag:void 0;function tr(n){return n==null?n===void 0?Vg:_g:Ka&&Ka in Object(n)?Fg(n):Ug(n)}function un(n){return n!=null&&typeof n=="object"}var Dn=Array.isArray;function An(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}function Xa(n){return n}var jg="[object AsyncFunction]",$g="[object Function]",qg="[object GeneratorFunction]",zg="[object Proxy]";function Oo(n){if(!An(n))return!1;var e=tr(n);return e==$g||e==qg||e==jg||e==zg}var Ro=en["__core-js_shared__"],Ya=function(){var n=/[^.]+$/.exec(Ro&&Ro.keys&&Ro.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function Hg(n){return!!Ya&&Ya in n}var Gg=Function.prototype,Wg=Gg.toString;function Un(n){if(n!=null){try{return Wg.call(n)}catch{}try{return n+""}catch{}}return""}var Kg=/[\\^$.*+?()[\]{}|]/g,Xg=/^\[object .+?Constructor\]$/,Yg=Function.prototype,Zg=Object.prototype,Jg=Yg.toString,Qg=Zg.hasOwnProperty,e0=RegExp("^"+Jg.call(Qg).replace(Kg,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function t0(n){if(!An(n)||Hg(n))return!1;var e=Oo(n)?e0:Xg;return e.test(Un(n))}function n0(n,e){return n==null?void 0:n[e]}function _n(n,e){var t=n0(n,e);return t0(t)?t:void 0}var Io=_n(en,"WeakMap"),Za=Object.create,r0=function(){function n(){}return function(e){if(!An(e))return{};if(Za)return Za(e);n.prototype=e;var t=new n;return n.prototype=void 0,t}}();function s0(n,e,t){switch(t.length){case 0:return n.call(e);case 1:return n.call(e,t[0]);case 2:return n.call(e,t[0],t[1]);case 3:return n.call(e,t[0],t[1],t[2])}return n.apply(e,t)}function o0(n,e){var t=-1,r=n.length;for(e||(e=Array(r));++t<r;)e[t]=n[t];return e}var i0=800,a0=16,l0=Date.now;function c0(n){var e=0,t=0;return function(){var r=l0(),s=a0-(r-t);if(t=r,s>0){if(++e>=i0)return arguments[0]}else e=0;return n.apply(void 0,arguments)}}function u0(n){return function(){return n}}var Ss=function(){try{var n=_n(Object,"defineProperty");return n({},"",{}),n}catch{}}(),d0=Ss?function(n,e){return Ss(n,"toString",{configurable:!0,enumerable:!1,value:u0(e),writable:!0})}:Xa,f0=c0(d0);function h0(n,e){for(var t=-1,r=n==null?0:n.length;++t<r&&e(n[t],t,n)!==!1;);return n}var p0=9007199254740991,m0=/^(?:0|[1-9]\d*)$/;function Ja(n,e){var t=typeof n;return e=e??p0,!!e&&(t=="number"||t!="symbol"&&m0.test(n))&&n>-1&&n%1==0&&n<e}function Lo(n,e,t){e=="__proto__"&&Ss?Ss(n,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):n[e]=t}function Fr(n,e){return n===e||n!==n&&e!==e}var g0=Object.prototype,y0=g0.hasOwnProperty;function Qa(n,e,t){var r=n[e];(!(y0.call(n,e)&&Fr(r,t))||t===void 0&&!(e in n))&&Lo(n,e,t)}function v0(n,e,t,r){var s=!t;t||(t={});for(var l=-1,a=e.length;++l<a;){var c=e[l],o=void 0;o===void 0&&(o=n[c]),s?Lo(t,c,o):Qa(t,c,o)}return t}var el=Math.max;function b0(n,e,t){return e=el(e===void 0?n.length-1:e,0),function(){for(var r=arguments,s=-1,l=el(r.length-e,0),a=Array(l);++s<l;)a[s]=r[e+s];s=-1;for(var c=Array(e+1);++s<e;)c[s]=r[s];return c[e]=t(a),s0(n,this,c)}}function x0(n,e){return f0(b0(n,e,Xa),n+"")}var E0=9007199254740991;function tl(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=E0}function Ts(n){return n!=null&&tl(n.length)&&!Oo(n)}function w0(n,e,t){if(!An(t))return!1;var r=typeof e;return(r=="number"?Ts(t)&&Ja(e,t.length):r=="string"&&e in t)?Fr(t[e],n):!1}function A0(n){return x0(function(e,t){var r=-1,s=t.length,l=s>1?t[s-1]:void 0,a=s>2?t[2]:void 0;for(l=n.length>3&&typeof l=="function"?(s--,l):void 0,a&&w0(t[0],t[1],a)&&(l=s<3?void 0:l,s=1),e=Object(e);++r<s;){var c=t[r];c&&n(e,c,r,l)}return e})}var S0=Object.prototype;function Bo(n){var e=n&&n.constructor,t=typeof e=="function"&&e.prototype||S0;return n===t}function T0(n,e){for(var t=-1,r=Array(n);++t<n;)r[t]=e(t);return r}var N0="[object Arguments]";function nl(n){return un(n)&&tr(n)==N0}var rl=Object.prototype,k0=rl.hasOwnProperty,C0=rl.propertyIsEnumerable,Po=nl(function(){return arguments}())?nl:function(n){return un(n)&&k0.call(n,"callee")&&!C0.call(n,"callee")};function O0(){return!1}var sl=typeof Ye=="object"&&Ye&&!Ye.nodeType&&Ye,ol=sl&&typeof module=="object"&&module&&!module.nodeType&&module,R0=ol&&ol.exports===sl,il=R0?en.Buffer:void 0,I0=il?il.isBuffer:void 0,Mr=I0||O0,L0="[object Arguments]",B0="[object Array]",P0="[object Boolean]",F0="[object Date]",M0="[object Error]",D0="[object Function]",U0="[object Map]",_0="[object Number]",V0="[object Object]",j0="[object RegExp]",$0="[object Set]",q0="[object String]",z0="[object WeakMap]",H0="[object ArrayBuffer]",G0="[object DataView]",W0="[object Float32Array]",K0="[object Float64Array]",X0="[object Int8Array]",Y0="[object Int16Array]",Z0="[object Int32Array]",J0="[object Uint8Array]",Q0="[object Uint8ClampedArray]",e1="[object Uint16Array]",t1="[object Uint32Array]",Qe={};Qe[W0]=Qe[K0]=Qe[X0]=Qe[Y0]=Qe[Z0]=Qe[J0]=Qe[Q0]=Qe[e1]=Qe[t1]=!0,Qe[L0]=Qe[B0]=Qe[H0]=Qe[P0]=Qe[G0]=Qe[F0]=Qe[M0]=Qe[D0]=Qe[U0]=Qe[_0]=Qe[V0]=Qe[j0]=Qe[$0]=Qe[q0]=Qe[z0]=!1;function n1(n){return un(n)&&tl(n.length)&&!!Qe[tr(n)]}function Fo(n){return function(e){return n(e)}}var al=typeof Ye=="object"&&Ye&&!Ye.nodeType&&Ye,Dr=al&&typeof module=="object"&&module&&!module.nodeType&&module,r1=Dr&&Dr.exports===al,Mo=r1&&Ga.process,nr=function(){try{var n=Dr&&Dr.require&&Dr.require("util").types;return n||Mo&&Mo.binding&&Mo.binding("util")}catch{}}(),ll=nr&&nr.isTypedArray,Do=ll?Fo(ll):n1,s1=Object.prototype,o1=s1.hasOwnProperty;function cl(n,e){var t=Dn(n),r=!t&&Po(n),s=!t&&!r&&Mr(n),l=!t&&!r&&!s&&Do(n),a=t||r||s||l,c=a?T0(n.length,String):[],o=c.length;for(var u in n)(e||o1.call(n,u))&&!(a&&(u=="length"||s&&(u=="offset"||u=="parent")||l&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Ja(u,o)))&&c.push(u);return c}function ul(n,e){return function(t){return n(e(t))}}var i1=ul(Object.keys,Object),a1=Object.prototype,l1=a1.hasOwnProperty;function c1(n){if(!Bo(n))return i1(n);var e=[];for(var t in Object(n))l1.call(n,t)&&t!="constructor"&&e.push(t);return e}function u1(n){return Ts(n)?cl(n):c1(n)}function d1(n){var e=[];if(n!=null)for(var t in Object(n))e.push(t);return e}var f1=Object.prototype,h1=f1.hasOwnProperty;function p1(n){if(!An(n))return d1(n);var e=Bo(n),t=[];for(var r in n)r=="constructor"&&(e||!h1.call(n,r))||t.push(r);return t}function dl(n){return Ts(n)?cl(n,!0):p1(n)}var Ur=_n(Object,"create");function m1(){this.__data__=Ur?Ur(null):{},this.size=0}function g1(n){var e=this.has(n)&&delete this.__data__[n];return this.size-=e?1:0,e}var y1="__lodash_hash_undefined__",v1=Object.prototype,b1=v1.hasOwnProperty;function x1(n){var e=this.__data__;if(Ur){var t=e[n];return t===y1?void 0:t}return b1.call(e,n)?e[n]:void 0}var E1=Object.prototype,w1=E1.hasOwnProperty;function A1(n){var e=this.__data__;return Ur?e[n]!==void 0:w1.call(e,n)}var S1="__lodash_hash_undefined__";function T1(n,e){var t=this.__data__;return this.size+=this.has(n)?0:1,t[n]=Ur&&e===void 0?S1:e,this}function Vn(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var r=n[e];this.set(r[0],r[1])}}Vn.prototype.clear=m1,Vn.prototype.delete=g1,Vn.prototype.get=x1,Vn.prototype.has=A1,Vn.prototype.set=T1;function N1(){this.__data__=[],this.size=0}function Ns(n,e){for(var t=n.length;t--;)if(Fr(n[t][0],e))return t;return-1}var k1=Array.prototype,C1=k1.splice;function O1(n){var e=this.__data__,t=Ns(e,n);if(t<0)return!1;var r=e.length-1;return t==r?e.pop():C1.call(e,t,1),--this.size,!0}function R1(n){var e=this.__data__,t=Ns(e,n);return t<0?void 0:e[t][1]}function I1(n){return Ns(this.__data__,n)>-1}function L1(n,e){var t=this.__data__,r=Ns(t,n);return r<0?(++this.size,t.push([n,e])):t[r][1]=e,this}function dn(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var r=n[e];this.set(r[0],r[1])}}dn.prototype.clear=N1,dn.prototype.delete=O1,dn.prototype.get=R1,dn.prototype.has=I1,dn.prototype.set=L1;var _r=_n(en,"Map");function B1(){this.size=0,this.__data__={hash:new Vn,map:new(_r||dn),string:new Vn}}function P1(n){var e=typeof n;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?n!=="__proto__":n===null}function ks(n,e){var t=n.__data__;return P1(e)?t[typeof e=="string"?"string":"hash"]:t.map}function F1(n){var e=ks(this,n).delete(n);return this.size-=e?1:0,e}function M1(n){return ks(this,n).get(n)}function D1(n){return ks(this,n).has(n)}function U1(n,e){var t=ks(this,n),r=t.size;return t.set(n,e),this.size+=t.size==r?0:1,this}function jn(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var r=n[e];this.set(r[0],r[1])}}jn.prototype.clear=B1,jn.prototype.delete=F1,jn.prototype.get=M1,jn.prototype.has=D1,jn.prototype.set=U1;function _1(n,e){for(var t=-1,r=e.length,s=n.length;++t<r;)n[s+t]=e[t];return n}var fl=ul(Object.getPrototypeOf,Object),V1="[object Object]",j1=Function.prototype,$1=Object.prototype,hl=j1.toString,q1=$1.hasOwnProperty,z1=hl.call(Object);function H1(n){if(!un(n)||tr(n)!=V1)return!1;var e=fl(n);if(e===null)return!0;var t=q1.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&hl.call(t)==z1}function G1(){this.__data__=new dn,this.size=0}function W1(n){var e=this.__data__,t=e.delete(n);return this.size=e.size,t}function K1(n){return this.__data__.get(n)}function X1(n){return this.__data__.has(n)}var Y1=200;function Z1(n,e){var t=this.__data__;if(t instanceof dn){var r=t.__data__;if(!_r||r.length<Y1-1)return r.push([n,e]),this.size=++t.size,this;t=this.__data__=new jn(r)}return t.set(n,e),this.size=t.size,this}function tn(n){var e=this.__data__=new dn(n);this.size=e.size}tn.prototype.clear=G1,tn.prototype.delete=W1,tn.prototype.get=K1,tn.prototype.has=X1,tn.prototype.set=Z1;var pl=typeof Ye=="object"&&Ye&&!Ye.nodeType&&Ye,ml=pl&&typeof module=="object"&&module&&!module.nodeType&&module,J1=ml&&ml.exports===pl,gl=J1?en.Buffer:void 0,yl=gl?gl.allocUnsafe:void 0;function vl(n,e){if(e)return n.slice();var t=n.length,r=yl?yl(t):new n.constructor(t);return n.copy(r),r}function Q1(n,e){for(var t=-1,r=n==null?0:n.length,s=0,l=[];++t<r;){var a=n[t];e(a,t,n)&&(l[s++]=a)}return l}function ey(){return[]}var ty=Object.prototype,ny=ty.propertyIsEnumerable,bl=Object.getOwnPropertySymbols,ry=bl?function(n){return n==null?[]:(n=Object(n),Q1(bl(n),function(e){return ny.call(n,e)}))}:ey;function sy(n,e,t){var r=e(n);return Dn(n)?r:_1(r,t(n))}function Uo(n){return sy(n,u1,ry)}var _o=_n(en,"DataView"),Vo=_n(en,"Promise"),jo=_n(en,"Set"),xl="[object Map]",oy="[object Object]",El="[object Promise]",wl="[object Set]",Al="[object WeakMap]",Sl="[object DataView]",iy=Un(_o),ay=Un(_r),ly=Un(Vo),cy=Un(jo),uy=Un(Io),jt=tr;(_o&&jt(new _o(new ArrayBuffer(1)))!=Sl||_r&&jt(new _r)!=xl||Vo&&jt(Vo.resolve())!=El||jo&&jt(new jo)!=wl||Io&&jt(new Io)!=Al)&&(jt=function(n){var e=tr(n),t=e==oy?n.constructor:void 0,r=t?Un(t):"";if(r)switch(r){case iy:return Sl;case ay:return xl;case ly:return El;case cy:return wl;case uy:return Al}return e});var dy=Object.prototype,fy=dy.hasOwnProperty;function hy(n){var e=n.length,t=new n.constructor(e);return e&&typeof n[0]=="string"&&fy.call(n,"index")&&(t.index=n.index,t.input=n.input),t}var Cs=en.Uint8Array;function $o(n){var e=new n.constructor(n.byteLength);return new Cs(e).set(new Cs(n)),e}function py(n,e){var t=$o(n.buffer);return new n.constructor(t,n.byteOffset,n.byteLength)}var my=/\w*$/;function gy(n){var e=new n.constructor(n.source,my.exec(n));return e.lastIndex=n.lastIndex,e}var Tl=wn?wn.prototype:void 0,Nl=Tl?Tl.valueOf:void 0;function yy(n){return Nl?Object(Nl.call(n)):{}}function kl(n,e){var t=e?$o(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.length)}var vy="[object Boolean]",by="[object Date]",xy="[object Map]",Ey="[object Number]",wy="[object RegExp]",Ay="[object Set]",Sy="[object String]",Ty="[object Symbol]",Ny="[object ArrayBuffer]",ky="[object DataView]",Cy="[object Float32Array]",Oy="[object Float64Array]",Ry="[object Int8Array]",Iy="[object Int16Array]",Ly="[object Int32Array]",By="[object Uint8Array]",Py="[object Uint8ClampedArray]",Fy="[object Uint16Array]",My="[object Uint32Array]";function Dy(n,e,t){var r=n.constructor;switch(e){case Ny:return $o(n);case vy:case by:return new r(+n);case ky:return py(n);case Cy:case Oy:case Ry:case Iy:case Ly:case By:case Py:case Fy:case My:return kl(n,t);case xy:return new r;case Ey:case Sy:return new r(n);case wy:return gy(n);case Ay:return new r;case Ty:return yy(n)}}function Cl(n){return typeof n.constructor=="function"&&!Bo(n)?r0(fl(n)):{}}var Uy="[object Map]";function _y(n){return un(n)&&jt(n)==Uy}var Ol=nr&&nr.isMap,Vy=Ol?Fo(Ol):_y,jy="[object Set]";function $y(n){return un(n)&&jt(n)==jy}var Rl=nr&&nr.isSet,qy=Rl?Fo(Rl):$y,zy=1,Il="[object Arguments]",Hy="[object Array]",Gy="[object Boolean]",Wy="[object Date]",Ky="[object Error]",Ll="[object Function]",Xy="[object GeneratorFunction]",Yy="[object Map]",Zy="[object Number]",Bl="[object Object]",Jy="[object RegExp]",Qy="[object Set]",ev="[object String]",tv="[object Symbol]",nv="[object WeakMap]",rv="[object ArrayBuffer]",sv="[object DataView]",ov="[object Float32Array]",iv="[object Float64Array]",av="[object Int8Array]",lv="[object Int16Array]",cv="[object Int32Array]",uv="[object Uint8Array]",dv="[object Uint8ClampedArray]",fv="[object Uint16Array]",hv="[object Uint32Array]",Ze={};Ze[Il]=Ze[Hy]=Ze[rv]=Ze[sv]=Ze[Gy]=Ze[Wy]=Ze[ov]=Ze[iv]=Ze[av]=Ze[lv]=Ze[cv]=Ze[Yy]=Ze[Zy]=Ze[Bl]=Ze[Jy]=Ze[Qy]=Ze[ev]=Ze[tv]=Ze[uv]=Ze[dv]=Ze[fv]=Ze[hv]=!0,Ze[Ky]=Ze[Ll]=Ze[nv]=!1;function Os(n,e,t,r,s,l){var a,c=e&zy;if(a!==void 0)return a;if(!An(n))return n;var o=Dn(n);if(o)a=hy(n);else{var u=jt(n),d=u==Ll||u==Xy;if(Mr(n))return vl(n,c);if(u==Bl||u==Il||d&&!s)a=d?{}:Cl(n);else{if(!Ze[u])return s?n:{};a=Dy(n,u,c)}}l||(l=new tn);var h=l.get(n);if(h)return h;l.set(n,a),qy(n)?n.forEach(function(p){a.add(Os(p,e,t,p,n,l))}):Vy(n)&&n.forEach(function(p,y){a.set(y,Os(p,e,t,y,n,l))});var f=Uo,m=o?void 0:f(n);return h0(m||n,function(p,y){m&&(y=p,p=n[y]),Qa(a,y,Os(p,e,t,y,n,l))}),a}var pv=1,mv=4;function rr(n){return Os(n,pv|mv)}var gv="__lodash_hash_undefined__";function yv(n){return this.__data__.set(n,gv),this}function vv(n){return this.__data__.has(n)}function Rs(n){var e=-1,t=n==null?0:n.length;for(this.__data__=new jn;++e<t;)this.add(n[e])}Rs.prototype.add=Rs.prototype.push=yv,Rs.prototype.has=vv;function bv(n,e){for(var t=-1,r=n==null?0:n.length;++t<r;)if(e(n[t],t,n))return!0;return!1}function xv(n,e){return n.has(e)}var Ev=1,wv=2;function Pl(n,e,t,r,s,l){var a=t&Ev,c=n.length,o=e.length;if(c!=o&&!(a&&o>c))return!1;var u=l.get(n),d=l.get(e);if(u&&d)return u==e&&d==n;var h=-1,f=!0,m=t&wv?new Rs:void 0;for(l.set(n,e),l.set(e,n);++h<c;){var p=n[h],y=e[h];if(r)var b=a?r(y,p,h,e,n,l):r(p,y,h,n,e,l);if(b!==void 0){if(b)continue;f=!1;break}if(m){if(!bv(e,function(A,T){if(!xv(m,T)&&(p===A||s(p,A,t,r,l)))return m.push(T)})){f=!1;break}}else if(!(p===y||s(p,y,t,r,l))){f=!1;break}}return l.delete(n),l.delete(e),f}function Av(n){var e=-1,t=Array(n.size);return n.forEach(function(r,s){t[++e]=[s,r]}),t}function Sv(n){var e=-1,t=Array(n.size);return n.forEach(function(r){t[++e]=r}),t}var Tv=1,Nv=2,kv="[object Boolean]",Cv="[object Date]",Ov="[object Error]",Rv="[object Map]",Iv="[object Number]",Lv="[object RegExp]",Bv="[object Set]",Pv="[object String]",Fv="[object Symbol]",Mv="[object ArrayBuffer]",Dv="[object DataView]",Fl=wn?wn.prototype:void 0,qo=Fl?Fl.valueOf:void 0;function Uv(n,e,t,r,s,l,a){switch(t){case Dv:if(n.byteLength!=e.byteLength||n.byteOffset!=e.byteOffset)return!1;n=n.buffer,e=e.buffer;case Mv:return!(n.byteLength!=e.byteLength||!l(new Cs(n),new Cs(e)));case kv:case Cv:case Iv:return Fr(+n,+e);case Ov:return n.name==e.name&&n.message==e.message;case Lv:case Pv:return n==e+"";case Rv:var c=Av;case Bv:var o=r&Tv;if(c||(c=Sv),n.size!=e.size&&!o)return!1;var u=a.get(n);if(u)return u==e;r|=Nv,a.set(n,e);var d=Pl(c(n),c(e),r,s,l,a);return a.delete(n),d;case Fv:if(qo)return qo.call(n)==qo.call(e)}return!1}var _v=1,Vv=Object.prototype,jv=Vv.hasOwnProperty;function $v(n,e,t,r,s,l){var a=t&_v,c=Uo(n),o=c.length,u=Uo(e),d=u.length;if(o!=d&&!a)return!1;for(var h=o;h--;){var f=c[h];if(!(a?f in e:jv.call(e,f)))return!1}var m=l.get(n),p=l.get(e);if(m&&p)return m==e&&p==n;var y=!0;l.set(n,e),l.set(e,n);for(var b=a;++h<o;){f=c[h];var A=n[f],T=e[f];if(r)var O=a?r(T,A,f,e,n,l):r(A,T,f,n,e,l);if(!(O===void 0?A===T||s(A,T,t,r,l):O)){y=!1;break}b||(b=f=="constructor")}if(y&&!b){var F=n.constructor,M=e.constructor;F!=M&&"constructor"in n&&"constructor"in e&&!(typeof F=="function"&&F instanceof F&&typeof M=="function"&&M instanceof M)&&(y=!1)}return l.delete(n),l.delete(e),y}var qv=1,Ml="[object Arguments]",Dl="[object Array]",Is="[object Object]",zv=Object.prototype,Ul=zv.hasOwnProperty;function Hv(n,e,t,r,s,l){var a=Dn(n),c=Dn(e),o=a?Dl:jt(n),u=c?Dl:jt(e);o=o==Ml?Is:o,u=u==Ml?Is:u;var d=o==Is,h=u==Is,f=o==u;if(f&&Mr(n)){if(!Mr(e))return!1;a=!0,d=!1}if(f&&!d)return l||(l=new tn),a||Do(n)?Pl(n,e,t,r,s,l):Uv(n,e,o,t,r,s,l);if(!(t&qv)){var m=d&&Ul.call(n,"__wrapped__"),p=h&&Ul.call(e,"__wrapped__");if(m||p){var y=m?n.value():n,b=p?e.value():e;return l||(l=new tn),s(y,b,t,r,l)}}return f?(l||(l=new tn),$v(n,e,t,r,s,l)):!1}function _l(n,e,t,r,s){return n===e?!0:n==null||e==null||!un(n)&&!un(e)?n!==n&&e!==e:Hv(n,e,t,r,_l,s)}function Gv(n){return function(e,t,r){for(var s=-1,l=Object(e),a=r(e),c=a.length;c--;){var o=a[++s];if(t(l[o],o,l)===!1)break}return e}}var Wv=Gv();function zo(n,e,t){(t!==void 0&&!Fr(n[e],t)||t===void 0&&!(e in n))&&Lo(n,e,t)}function Kv(n){return un(n)&&Ts(n)}function Ho(n,e){if(!(e==="constructor"&&typeof n[e]=="function")&&e!="__proto__")return n[e]}function Xv(n){return v0(n,dl(n))}function Yv(n,e,t,r,s,l,a){var c=Ho(n,t),o=Ho(e,t),u=a.get(o);if(u){zo(n,t,u);return}var d=l?l(c,o,t+"",n,e,a):void 0,h=d===void 0;if(h){var f=Dn(o),m=!f&&Mr(o),p=!f&&!m&&Do(o);d=o,f||m||p?Dn(c)?d=c:Kv(c)?d=o0(c):m?(h=!1,d=vl(o,!0)):p?(h=!1,d=kl(o,!0)):d=[]:H1(o)||Po(o)?(d=c,Po(c)?d=Xv(c):(!An(c)||Oo(c))&&(d=Cl(o))):h=!1}h&&(a.set(o,d),s(d,o,r,l,a),a.delete(o)),zo(n,t,d)}function Vl(n,e,t,r,s){n!==e&&Wv(e,function(l,a){if(s||(s=new tn),An(l))Yv(n,e,a,t,Vl,r,s);else{var c=r?r(Ho(n,a),l,a+"",n,e,s):void 0;c===void 0&&(c=l),zo(n,a,c)}},dl)}function Go(n,e){return _l(n,e)}var Sn=A0(function(n,e,t){Vl(n,e,t)}),Ne=(n=>(n[n.TYPE=3]="TYPE",n[n.LEVEL=12]="LEVEL",n[n.ATTRIBUTE=13]="ATTRIBUTE",n[n.BLOT=14]="BLOT",n[n.INLINE=7]="INLINE",n[n.BLOCK=11]="BLOCK",n[n.BLOCK_BLOT=10]="BLOCK_BLOT",n[n.INLINE_BLOT=6]="INLINE_BLOT",n[n.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",n[n.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",n[n.ANY=15]="ANY",n))(Ne||{});class nn{constructor(e,t,r={}){this.attrName=e,this.keyName=t;const s=Ne.TYPE&Ne.ATTRIBUTE;this.scope=r.scope!=null?r.scope&Ne.LEVEL|s:Ne.ATTRIBUTE,r.whitelist!=null&&(this.whitelist=r.whitelist)}static keys(e){return Array.from(e.attributes).map(t=>t.name)}add(e,t){return this.canAdd(e,t)?(e.setAttribute(this.keyName,t),!0):!1}canAdd(e,t){return this.whitelist==null?!0:typeof t=="string"?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1}remove(e){e.removeAttribute(this.keyName)}value(e){const t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""}}class sr extends Error{constructor(e){e="[Parchment] "+e,super(e),this.message=e,this.name=this.constructor.name}}const jl=class qi{constructor(){this.attributes={},this.classes={},this.tags={},this.types={}}static find(e,t=!1){if(e==null)return null;if(this.blots.has(e))return this.blots.get(e)||null;if(t){let r=null;try{r=e.parentNode}catch{return null}return this.find(r,t)}return null}create(e,t,r){const s=this.query(t);if(s==null)throw new sr(`Unable to create ${t} blot`);const l=s,a=t instanceof Node||t.nodeType===Node.TEXT_NODE?t:l.create(r),c=new l(e,a,r);return qi.blots.set(c.domNode,c),c}find(e,t=!1){return qi.find(e,t)}query(e,t=Ne.ANY){let r;return typeof e=="string"?r=this.types[e]||this.attributes[e]:e instanceof Text||e.nodeType===Node.TEXT_NODE?r=this.types.text:typeof e=="number"?e&Ne.LEVEL&Ne.BLOCK?r=this.types.block:e&Ne.LEVEL&Ne.INLINE&&(r=this.types.inline):e instanceof Element&&((e.getAttribute("class")||"").split(/\s+/).some(s=>(r=this.classes[s],!!r)),r=r||this.tags[e.tagName]),r==null?null:"scope"in r&&t&Ne.LEVEL&r.scope&&t&Ne.TYPE&r.scope?r:null}register(...e){return e.map(t=>{const r="blotName"in t,s="attrName"in t;if(!r&&!s)throw new sr("Invalid definition");if(r&&t.blotName==="abstract")throw new sr("Cannot register abstract class");const l=r?t.blotName:s?t.attrName:void 0;return this.types[l]=t,s?typeof t.keyName=="string"&&(this.attributes[t.keyName]=t):r&&(t.className&&(this.classes[t.className]=t),t.tagName&&(Array.isArray(t.tagName)?t.tagName=t.tagName.map(a=>a.toUpperCase()):t.tagName=t.tagName.toUpperCase(),(Array.isArray(t.tagName)?t.tagName:[t.tagName]).forEach(a=>{(this.tags[a]==null||t.className==null)&&(this.tags[a]=t)}))),t})}};jl.blots=new WeakMap;let or=jl;function $l(n,e){return(n.getAttribute("class")||"").split(/\s+/).filter(t=>t.indexOf(`${e}-`)===0)}class Zv extends nn{static keys(e){return(e.getAttribute("class")||"").split(/\s+/).map(t=>t.split("-").slice(0,-1).join("-"))}add(e,t){return this.canAdd(e,t)?(this.remove(e),e.classList.add(`${this.keyName}-${t}`),!0):!1}remove(e){$l(e,this.keyName).forEach(t=>{e.classList.remove(t)}),e.classList.length===0&&e.removeAttribute("class")}value(e){const t=($l(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""}}const $t=Zv;function Wo(n){const e=n.split("-"),t=e.slice(1).map(r=>r[0].toUpperCase()+r.slice(1)).join("");return e[0]+t}class Jv extends nn{static keys(e){return(e.getAttribute("style")||"").split(";").map(t=>t.split(":")[0].trim())}add(e,t){return this.canAdd(e,t)?(e.style[Wo(this.keyName)]=t,!0):!1}remove(e){e.style[Wo(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")}value(e){const t=e.style[Wo(this.keyName)];return this.canAdd(e,t)?t:""}}const Tn=Jv;class Qv{constructor(e){this.attributes={},this.domNode=e,this.build()}attribute(e,t){t?e.add(this.domNode,t)&&(e.value(this.domNode)!=null?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])}build(){this.attributes={};const e=or.find(this.domNode);if(e==null)return;const t=nn.keys(this.domNode),r=$t.keys(this.domNode),s=Tn.keys(this.domNode);t.concat(r).concat(s).forEach(l=>{const a=e.scroll.query(l,Ne.ATTRIBUTE);a instanceof nn&&(this.attributes[a.attrName]=a)})}copy(e){Object.keys(this.attributes).forEach(t=>{const r=this.attributes[t].value(this.domNode);e.format(t,r)})}move(e){this.copy(e),Object.keys(this.attributes).forEach(t=>{this.attributes[t].remove(this.domNode)}),this.attributes={}}values(){return Object.keys(this.attributes).reduce((e,t)=>(e[t]=this.attributes[t].value(this.domNode),e),{})}}const Ls=Qv,ql=class{constructor(e,t){this.scroll=e,this.domNode=t,or.blots.set(t,this),this.prev=null,this.next=null}static create(e){if(this.tagName==null)throw new sr("Blot definition missing tagName");let t,r;return Array.isArray(this.tagName)?(typeof e=="string"?(r=e.toUpperCase(),parseInt(r,10).toString()===r&&(r=parseInt(r,10))):typeof e=="number"&&(r=e),typeof r=="number"?t=document.createElement(this.tagName[r-1]):r&&this.tagName.indexOf(r)>-1?t=document.createElement(r):t=document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t}get statics(){return this.constructor}attach(){}clone(){const e=this.domNode.cloneNode(!1);return this.scroll.create(e)}detach(){this.parent!=null&&this.parent.removeChild(this),or.blots.delete(this.domNode)}deleteAt(e,t){this.isolate(e,t).remove()}formatAt(e,t,r,s){const l=this.isolate(e,t);if(this.scroll.query(r,Ne.BLOT)!=null&&s)l.wrap(r,s);else if(this.scroll.query(r,Ne.ATTRIBUTE)!=null){const a=this.scroll.create(this.statics.scope);l.wrap(a),a.format(r,s)}}insertAt(e,t,r){const s=r==null?this.scroll.create("text",t):this.scroll.create(t,r),l=this.split(e);this.parent.insertBefore(s,l||void 0)}isolate(e,t){const r=this.split(e);if(r==null)throw new Error("Attempt to isolate at end");return r.split(t),r}length(){return 1}offset(e=this.parent){return this.parent==null||this===e?0:this.parent.children.offset(this)+this.parent.offset(e)}optimize(e){this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)&&this.wrap(this.statics.requiredContainer.blotName)}remove(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()}replaceWith(e,t){const r=typeof e=="string"?this.scroll.create(e,t):e;return this.parent!=null&&(this.parent.insertBefore(r,this.next||void 0),this.remove()),r}split(e,t){return e===0?this:this.next}update(e,t){}wrap(e,t){const r=typeof e=="string"?this.scroll.create(e,t):e;if(this.parent!=null&&this.parent.insertBefore(r,this.next||void 0),typeof r.appendChild!="function")throw new sr(`Cannot wrap ${e}`);return r.appendChild(this),r}};ql.blotName="abstract";let zl=ql;const Hl=class extends zl{static value(e){return!0}index(e,t){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1}position(e,t){let r=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return e>0&&(r+=1),[this.parent.domNode,r]}value(){return{[this.statics.blotName]:this.statics.value(this.domNode)||!0}}};Hl.scope=Ne.INLINE_BLOT;const yt=Hl;class eb{constructor(){this.head=null,this.tail=null,this.length=0}append(...e){if(this.insertBefore(e[0],null),e.length>1){const t=e.slice(1);this.append(...t)}}at(e){const t=this.iterator();let r=t();for(;r&&e>0;)e-=1,r=t();return r}contains(e){const t=this.iterator();let r=t();for(;r;){if(r===e)return!0;r=t()}return!1}indexOf(e){const t=this.iterator();let r=t(),s=0;for(;r;){if(r===e)return s;s+=1,r=t()}return-1}insertBefore(e,t){e!=null&&(this.remove(e),e.next=t,t!=null?(e.prev=t.prev,t.prev!=null&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):this.tail!=null?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)}offset(e){let t=0,r=this.head;for(;r!=null;){if(r===e)return t;t+=r.length(),r=r.next}return-1}remove(e){this.contains(e)&&(e.prev!=null&&(e.prev.next=e.next),e.next!=null&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)}iterator(e=this.head){return()=>{const t=e;return e!=null&&(e=e.next),t}}find(e,t=!1){const r=this.iterator();let s=r();for(;s;){const l=s.length();if(e<l||t&&e===l&&(s.next==null||s.next.length()!==0))return[s,e];e-=l,s=r()}return[null,0]}forEach(e){const t=this.iterator();let r=t();for(;r;)e(r),r=t()}forEachAt(e,t,r){if(t<=0)return;const[s,l]=this.find(e);let a=e-l;const c=this.iterator(s);let o=c();for(;o&&a<e+t;){const u=o.length();e>a?r(o,e-a,Math.min(t,a+u-e)):r(o,0,Math.min(u,e+t-a)),a+=u,o=c()}}map(e){return this.reduce((t,r)=>(t.push(e(r)),t),[])}reduce(e,t){const r=this.iterator();let s=r();for(;s;)t=e(t,s),s=r();return t}}function Gl(n,e){const t=e.find(n);if(t)return t;try{return e.create(n)}catch{const r=e.create(Ne.INLINE);return Array.from(n.childNodes).forEach(s=>{r.domNode.appendChild(s)}),n.parentNode&&n.parentNode.replaceChild(r.domNode,n),r.attach(),r}}const Wl=class In extends zl{constructor(e,t){super(e,t),this.uiNode=null,this.build()}appendChild(e){this.insertBefore(e)}attach(){super.attach(),this.children.forEach(e=>{e.attach()})}attachUI(e){this.uiNode!=null&&this.uiNode.remove(),this.uiNode=e,In.uiClass&&this.uiNode.classList.add(In.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new eb,Array.from(this.domNode.childNodes).filter(e=>e!==this.uiNode).reverse().forEach(e=>{try{const t=Gl(e,this.scroll);this.insertBefore(t,this.children.head||void 0)}catch(t){if(t instanceof sr)return;throw t}})}deleteAt(e,t){if(e===0&&t===this.length())return this.remove();this.children.forEachAt(e,t,(r,s,l)=>{r.deleteAt(s,l)})}descendant(e,t=0){const[r,s]=this.children.find(t);return e.blotName==null&&e(r)||e.blotName!=null&&r instanceof e?[r,s]:r instanceof In?r.descendant(e,s):[null,-1]}descendants(e,t=0,r=Number.MAX_VALUE){let s=[],l=r;return this.children.forEachAt(t,r,(a,c,o)=>{(e.blotName==null&&e(a)||e.blotName!=null&&a instanceof e)&&s.push(a),a instanceof In&&(s=s.concat(a.descendants(e,c,l))),l-=o}),s}detach(){this.children.forEach(e=>{e.detach()}),super.detach()}enforceAllowedChildren(){let e=!1;this.children.forEach(t=>{e||this.statics.allowedChildren.some(r=>t instanceof r)||(t.statics.scope===Ne.BLOCK_BLOT?(t.next!=null&&this.splitAfter(t),t.prev!=null&&this.splitAfter(t.prev),t.parent.unwrap(),e=!0):t instanceof In?t.unwrap():t.remove())})}formatAt(e,t,r,s){this.children.forEachAt(e,t,(l,a,c)=>{l.formatAt(a,c,r,s)})}insertAt(e,t,r){const[s,l]=this.children.find(e);if(s)s.insertAt(l,t,r);else{const a=r==null?this.scroll.create("text",t):this.scroll.create(t,r);this.appendChild(a)}}insertBefore(e,t){e.parent!=null&&e.parent.children.remove(e);let r=null;this.children.insertBefore(e,t||null),e.parent=this,t!=null&&(r=t.domNode),(this.domNode.parentNode!==e.domNode||this.domNode.nextSibling!==r)&&this.domNode.insertBefore(e.domNode,r),e.attach()}length(){return this.children.reduce((e,t)=>e+t.length(),0)}moveChildren(e,t){this.children.forEach(r=>{e.insertBefore(r,t)})}optimize(e){if(super.optimize(e),this.enforceAllowedChildren(),this.uiNode!=null&&this.uiNode!==this.domNode.firstChild&&this.domNode.insertBefore(this.uiNode,this.domNode.firstChild),this.children.length===0)if(this.statics.defaultChild!=null){const t=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(t)}else this.remove()}path(e,t=!1){const[r,s]=this.children.find(e,t),l=[[this,e]];return r instanceof In?l.concat(r.path(s,t)):(r!=null&&l.push([r,s]),l)}removeChild(e){this.children.remove(e)}replaceWith(e,t){const r=typeof e=="string"?this.scroll.create(e,t):e;return r instanceof In&&this.moveChildren(r),super.replaceWith(r)}split(e,t=!1){if(!t){if(e===0)return this;if(e===this.length())return this.next}const r=this.clone();return this.parent&&this.parent.insertBefore(r,this.next||void 0),this.children.forEachAt(e,this.length(),(s,l,a)=>{const c=s.split(l,t);c!=null&&r.appendChild(c)}),r}splitAfter(e){const t=this.clone();for(;e.next!=null;)t.appendChild(e.next);return this.parent&&this.parent.insertBefore(t,this.next||void 0),t}unwrap(){this.parent&&this.moveChildren(this.parent,this.next||void 0),this.remove()}update(e,t){const r=[],s=[];e.forEach(l=>{l.target===this.domNode&&l.type==="childList"&&(r.push(...l.addedNodes),s.push(...l.removedNodes))}),s.forEach(l=>{if(l.parentNode!=null&&l.tagName!=="IFRAME"&&document.body.compareDocumentPosition(l)&Node.DOCUMENT_POSITION_CONTAINED_BY)return;const a=this.scroll.find(l);a!=null&&(a.domNode.parentNode==null||a.domNode.parentNode===this.domNode)&&a.detach()}),r.filter(l=>l.parentNode===this.domNode&&l!==this.uiNode).sort((l,a)=>l===a?0:l.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1).forEach(l=>{let a=null;l.nextSibling!=null&&(a=this.scroll.find(l.nextSibling));const c=Gl(l,this.scroll);(c.next!==a||c.next==null)&&(c.parent!=null&&c.parent.removeChild(this),this.insertBefore(c,a||void 0))}),this.enforceAllowedChildren()}};Wl.uiClass="";const qt=Wl;function tb(n,e){if(Object.keys(n).length!==Object.keys(e).length)return!1;for(const t in n)if(n[t]!==e[t])return!1;return!0}const ir=class Nr extends qt{static create(e){return super.create(e)}static formats(e,t){const r=t.query(Nr.blotName);if(!(r!=null&&e.tagName===r.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()}}constructor(e,t){super(e,t),this.attributes=new Ls(this.domNode)}format(e,t){if(e===this.statics.blotName&&!t)this.children.forEach(r=>{r instanceof Nr||(r=r.wrap(Nr.blotName,!0)),this.attributes.copy(r)}),this.unwrap();else{const r=this.scroll.query(e,Ne.INLINE);if(r==null)return;r instanceof nn?this.attributes.attribute(r,t):t&&(e!==this.statics.blotName||this.formats()[e]!==t)&&this.replaceWith(e,t)}}formats(){const e=this.attributes.values(),t=this.statics.formats(this.domNode,this.scroll);return t!=null&&(e[this.statics.blotName]=t),e}formatAt(e,t,r,s){this.formats()[r]!=null||this.scroll.query(r,Ne.ATTRIBUTE)?this.isolate(e,t).format(r,s):super.formatAt(e,t,r,s)}optimize(e){super.optimize(e);const t=this.formats();if(Object.keys(t).length===0)return this.unwrap();const r=this.next;r instanceof Nr&&r.prev===this&&tb(t,r.formats())&&(r.moveChildren(this),r.remove())}replaceWith(e,t){const r=super.replaceWith(e,t);return this.attributes.copy(r),r}update(e,t){super.update(e,t),e.some(r=>r.target===this.domNode&&r.type==="attributes")&&this.attributes.build()}wrap(e,t){const r=super.wrap(e,t);return r instanceof Nr&&this.attributes.move(r),r}};ir.allowedChildren=[ir,yt],ir.blotName="inline",ir.scope=Ne.INLINE_BLOT,ir.tagName="SPAN";const Ko=ir,ar=class zi extends qt{static create(e){return super.create(e)}static formats(e,t){const r=t.query(zi.blotName);if(!(r!=null&&e.tagName===r.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()}}constructor(e,t){super(e,t),this.attributes=new Ls(this.domNode)}format(e,t){const r=this.scroll.query(e,Ne.BLOCK);r!=null&&(r instanceof nn?this.attributes.attribute(r,t):e===this.statics.blotName&&!t?this.replaceWith(zi.blotName):t&&(e!==this.statics.blotName||this.formats()[e]!==t)&&this.replaceWith(e,t))}formats(){const e=this.attributes.values(),t=this.statics.formats(this.domNode,this.scroll);return t!=null&&(e[this.statics.blotName]=t),e}formatAt(e,t,r,s){this.scroll.query(r,Ne.BLOCK)!=null?this.format(r,s):super.formatAt(e,t,r,s)}insertAt(e,t,r){if(r==null||this.scroll.query(t,Ne.INLINE)!=null)super.insertAt(e,t,r);else{const s=this.split(e);if(s!=null){const l=this.scroll.create(t,r);s.parent.insertBefore(l,s)}else throw new Error("Attempt to insertAt after block boundaries")}}replaceWith(e,t){const r=super.replaceWith(e,t);return this.attributes.copy(r),r}update(e,t){super.update(e,t),e.some(r=>r.target===this.domNode&&r.type==="attributes")&&this.attributes.build()}};ar.blotName="block",ar.scope=Ne.BLOCK_BLOT,ar.tagName="P",ar.allowedChildren=[Ko,ar,yt];const Vr=ar,Xo=class extends qt{checkMerge(){return this.next!==null&&this.next.statics.blotName===this.statics.blotName}deleteAt(e,t){super.deleteAt(e,t),this.enforceAllowedChildren()}formatAt(e,t,r,s){super.formatAt(e,t,r,s),this.enforceAllowedChildren()}insertAt(e,t,r){super.insertAt(e,t,r),this.enforceAllowedChildren()}optimize(e){super.optimize(e),this.children.length>0&&this.next!=null&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}};Xo.blotName="container",Xo.scope=Ne.BLOCK_BLOT;const Bs=Xo;class nb extends yt{static formats(e,t){}format(e,t){super.formatAt(0,this.length(),e,t)}formatAt(e,t,r,s){e===0&&t===this.length()?this.format(r,s):super.formatAt(e,t,r,s)}formats(){return this.statics.formats(this.domNode,this.scroll)}}const Ot=nb,rb={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},sb=100,lr=class extends qt{constructor(e,t){super(null,t),this.registry=e,this.scroll=this,this.build(),this.observer=new MutationObserver(r=>{this.update(r)}),this.observer.observe(this.domNode,rb),this.attach()}create(e,t){return this.registry.create(this,e,t)}find(e,t=!1){const r=this.registry.find(e,t);return r?r.scroll===this?r:t?this.find(r.scroll.domNode.parentNode,!0):null:null}query(e,t=Ne.ANY){return this.registry.query(e,t)}register(...e){return this.registry.register(...e)}build(){this.scroll!=null&&super.build()}detach(){super.detach(),this.observer.disconnect()}deleteAt(e,t){this.update(),e===0&&t===this.length()?this.children.forEach(r=>{r.remove()}):super.deleteAt(e,t)}formatAt(e,t,r,s){this.update(),super.formatAt(e,t,r,s)}insertAt(e,t,r){this.update(),super.insertAt(e,t,r)}optimize(e=[],t={}){super.optimize(t);const r=t.mutationsMap||new WeakMap;let s=Array.from(this.observer.takeRecords());for(;s.length>0;)e.push(s.pop());const l=(o,u=!0)=>{o==null||o===this||o.domNode.parentNode!=null&&(r.has(o.domNode)||r.set(o.domNode,[]),u&&l(o.parent))},a=o=>{r.has(o.domNode)&&(o instanceof qt&&o.children.forEach(a),r.delete(o.domNode),o.optimize(t))};let c=e;for(let o=0;c.length>0;o+=1){if(o>=sb)throw new Error("[Parchment] Maximum optimize iterations reached");for(c.forEach(u=>{const d=this.find(u.target,!0);d!=null&&(d.domNode===u.target&&(u.type==="childList"?(l(this.find(u.previousSibling,!1)),Array.from(u.addedNodes).forEach(h=>{const f=this.find(h,!1);l(f,!1),f instanceof qt&&f.children.forEach(m=>{l(m,!1)})})):u.type==="attributes"&&l(d.prev)),l(d))}),this.children.forEach(a),c=Array.from(this.observer.takeRecords()),s=c.slice();s.length>0;)e.push(s.pop())}}update(e,t={}){e=e||this.observer.takeRecords();const r=new WeakMap;e.map(s=>{const l=this.find(s.target,!0);return l==null?null:r.has(l.domNode)?(r.get(l.domNode).push(s),null):(r.set(l.domNode,[s]),l)}).forEach(s=>{s!=null&&s!==this&&r.has(s.domNode)&&s.update(r.get(s.domNode)||[],t)}),t.mutationsMap=r,r.has(this.domNode)&&super.update(r.get(this.domNode),t),this.optimize(e,t)}};lr.blotName="scroll",lr.defaultChild=Vr,lr.allowedChildren=[Vr,Bs],lr.scope=Ne.BLOCK_BLOT,lr.tagName="DIV";const Yo=lr,Zo=class nu extends yt{static create(e){return document.createTextNode(e)}static value(e){return e.data}constructor(e,t){super(e,t),this.text=this.statics.value(this.domNode)}deleteAt(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)}index(e,t){return this.domNode===e?t:-1}insertAt(e,t,r){r==null?(this.text=this.text.slice(0,e)+t+this.text.slice(e),this.domNode.data=this.text):super.insertAt(e,t,r)}length(){return this.text.length}optimize(e){super.optimize(e),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof nu&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())}position(e,t=!1){return[this.domNode,e]}split(e,t=!1){if(!t){if(e===0)return this;if(e===this.length())return this.next}const r=this.scroll.create(this.domNode.splitText(e));return this.parent.insertBefore(r,this.next||void 0),this.text=this.statics.value(this.domNode),r}update(e,t){e.some(r=>r.type==="characterData"&&r.target===this.domNode)&&(this.text=this.statics.value(this.domNode))}value(){return this.text}};Zo.blotName="text",Zo.scope=Ne.INLINE_BLOT;const Ps=Zo,ob=Object.freeze(Object.defineProperty({__proto__:null,Attributor:nn,AttributorStore:Ls,BlockBlot:Vr,ClassAttributor:$t,ContainerBlot:Bs,EmbedBlot:Ot,InlineBlot:Ko,LeafBlot:yt,ParentBlot:qt,Registry:or,Scope:Ne,ScrollBlot:Yo,StyleAttributor:Tn,TextBlot:Ps},Symbol.toStringTag,{value:"Module"}));var Fs={exports:{}},Jo,Kl;function ib(){if(Kl)return Jo;Kl=1;var n=-1,e=1,t=0;function r(E,P,k,$,_){if(E===P)return E?[[t,E]]:[];if(k!=null){var V=re(E,P,k);if(V)return V}var K=c(E,P),q=E.substring(0,K);E=E.substring(K),P=P.substring(K),K=u(E,P);var Q=E.substring(E.length-K);E=E.substring(0,E.length-K),P=P.substring(0,P.length-K);var te=s(E,P);return q&&te.unshift([t,q]),Q&&te.push([t,Q]),T(te,_),$&&h(te),te}function s(E,P){var k;if(!E)return[[e,P]];if(!P)return[[n,E]];var $=E.length>P.length?E:P,_=E.length>P.length?P:E,V=$.indexOf(_);if(V!==-1)return k=[[e,$.substring(0,V)],[t,_],[e,$.substring(V+_.length)]],E.length>P.length&&(k[0][0]=k[2][0]=n),k;if(_.length===1)return[[n,E],[e,P]];var K=d(E,P);if(K){var q=K[0],Q=K[1],te=K[2],me=K[3],ge=K[4],ye=r(q,te),xe=r(Q,me);return ye.concat([[t,ge]],xe)}return l(E,P)}function l(E,P){for(var k=E.length,$=P.length,_=Math.ceil((k+$)/2),V=_,K=2*_,q=new Array(K),Q=new Array(K),te=0;te<K;te++)q[te]=-1,Q[te]=-1;q[V+1]=0,Q[V+1]=0;for(var me=k-$,ge=me%2!==0,ye=0,xe=0,he=0,ke=0,ve=0;ve<_;ve++){for(var N=-ve+ye;N<=ve-xe;N+=2){var R=V+N,w;N===-ve||N!==ve&&q[R-1]<q[R+1]?w=q[R+1]:w=q[R-1]+1;for(var C=w-N;w<k&&C<$&&E.charAt(w)===P.charAt(C);)w++,C++;if(q[R]=w,w>k)xe+=2;else if(C>$)ye+=2;else if(ge){var v=V+me-N;if(v>=0&&v<K&&Q[v]!==-1){var x=k-Q[v];if(w>=x)return a(E,P,w,C)}}}for(var I=-ve+he;I<=ve-ke;I+=2){var v=V+I,x;I===-ve||I!==ve&&Q[v-1]<Q[v+1]?x=Q[v+1]:x=Q[v-1]+1;for(var B=x-I;x<k&&B<$&&E.charAt(k-x-1)===P.charAt($-B-1);)x++,B++;if(Q[v]=x,x>k)ke+=2;else if(B>$)he+=2;else if(!ge){var R=V+me-I;if(R>=0&&R<K&&q[R]!==-1){var w=q[R],C=V+w-R;if(x=k-x,w>=x)return a(E,P,w,C)}}}}return[[n,E],[e,P]]}function a(E,P,k,$){var _=E.substring(0,k),V=P.substring(0,$),K=E.substring(k),q=P.substring($),Q=r(_,V),te=r(K,q);return Q.concat(te)}function c(E,P){if(!E||!P||E.charAt(0)!==P.charAt(0))return 0;for(var k=0,$=Math.min(E.length,P.length),_=$,V=0;k<_;)E.substring(V,_)==P.substring(V,_)?(k=_,V=k):$=_,_=Math.floor(($-k)/2+k);return O(E.charCodeAt(_-1))&&_--,_}function o(E,P){var k=E.length,$=P.length;if(k==0||$==0)return 0;k>$?E=E.substring(k-$):k<$&&(P=P.substring(0,k));var _=Math.min(k,$);if(E==P)return _;for(var V=0,K=1;;){var q=E.substring(_-K),Q=P.indexOf(q);if(Q==-1)return V;K+=Q,(Q==0||E.substring(_-K)==P.substring(0,K))&&(V=K,K++)}}function u(E,P){if(!E||!P||E.slice(-1)!==P.slice(-1))return 0;for(var k=0,$=Math.min(E.length,P.length),_=$,V=0;k<_;)E.substring(E.length-_,E.length-V)==P.substring(P.length-_,P.length-V)?(k=_,V=k):$=_,_=Math.floor(($-k)/2+k);return F(E.charCodeAt(E.length-_))&&_--,_}function d(E,P){var k=E.length>P.length?E:P,$=E.length>P.length?P:E;if(k.length<4||$.length*2<k.length)return null;function _(xe,he,ke){for(var ve=xe.substring(ke,ke+Math.floor(xe.length/4)),N=-1,R="",w,C,v,x;(N=he.indexOf(ve,N+1))!==-1;){var I=c(xe.substring(ke),he.substring(N)),B=u(xe.substring(0,ke),he.substring(0,N));R.length<B+I&&(R=he.substring(N-B,N)+he.substring(N,N+I),w=xe.substring(0,ke-B),C=xe.substring(ke+I),v=he.substring(0,N-B),x=he.substring(N+I))}return R.length*2>=xe.length?[w,C,v,x,R]:null}var V=_(k,$,Math.ceil(k.length/4)),K=_(k,$,Math.ceil(k.length/2)),q;if(!V&&!K)return null;K?V?q=V[4].length>K[4].length?V:K:q=K:q=V;var Q,te,me,ge;E.length>P.length?(Q=q[0],te=q[1],me=q[2],ge=q[3]):(me=q[0],ge=q[1],Q=q[2],te=q[3]);var ye=q[4];return[Q,te,me,ge,ye]}function h(E){for(var P=!1,k=[],$=0,_=null,V=0,K=0,q=0,Q=0,te=0;V<E.length;)E[V][0]==t?(k[$++]=V,K=Q,q=te,Q=0,te=0,_=E[V][1]):(E[V][0]==e?Q+=E[V][1].length:te+=E[V][1].length,_&&_.length<=Math.max(K,q)&&_.length<=Math.max(Q,te)&&(E.splice(k[$-1],0,[n,_]),E[k[$-1]+1][0]=e,$--,$--,V=$>0?k[$-1]:-1,K=0,q=0,Q=0,te=0,_=null,P=!0)),V++;for(P&&T(E),A(E),V=1;V<E.length;){if(E[V-1][0]==n&&E[V][0]==e){var me=E[V-1][1],ge=E[V][1],ye=o(me,ge),xe=o(ge,me);ye>=xe?(ye>=me.length/2||ye>=ge.length/2)&&(E.splice(V,0,[t,ge.substring(0,ye)]),E[V-1][1]=me.substring(0,me.length-ye),E[V+1][1]=ge.substring(ye),V++):(xe>=me.length/2||xe>=ge.length/2)&&(E.splice(V,0,[t,me.substring(0,xe)]),E[V-1][0]=e,E[V-1][1]=ge.substring(0,ge.length-xe),E[V+1][0]=n,E[V+1][1]=me.substring(xe),V++),V++}V++}}var f=/[^a-zA-Z0-9]/,m=/\s/,p=/[\r\n]/,y=/\n\r?\n$/,b=/^\r?\n\r?\n/;function A(E){function P(xe,he){if(!xe||!he)return 6;var ke=xe.charAt(xe.length-1),ve=he.charAt(0),N=ke.match(f),R=ve.match(f),w=N&&ke.match(m),C=R&&ve.match(m),v=w&&ke.match(p),x=C&&ve.match(p),I=v&&xe.match(y),B=x&&he.match(b);return I||B?5:v||x?4:N&&!w&&C?3:w||C?2:N||R?1:0}for(var k=1;k<E.length-1;){if(E[k-1][0]==t&&E[k+1][0]==t){var $=E[k-1][1],_=E[k][1],V=E[k+1][1],K=u($,_);if(K){var q=_.substring(_.length-K);$=$.substring(0,$.length-K),_=q+_.substring(0,_.length-K),V=q+V}for(var Q=$,te=_,me=V,ge=P($,_)+P(_,V);_.charAt(0)===V.charAt(0);){$+=_.charAt(0),_=_.substring(1)+V.charAt(0),V=V.substring(1);var ye=P($,_)+P(_,V);ye>=ge&&(ge=ye,Q=$,te=_,me=V)}E[k-1][1]!=Q&&(Q?E[k-1][1]=Q:(E.splice(k-1,1),k--),E[k][1]=te,me?E[k+1][1]=me:(E.splice(k+1,1),k--))}k++}}function T(E,P){E.push([t,""]);for(var k=0,$=0,_=0,V="",K="",q;k<E.length;){if(k<E.length-1&&!E[k][1]){E.splice(k,1);continue}switch(E[k][0]){case e:_++,K+=E[k][1],k++;break;case n:$++,V+=E[k][1],k++;break;case t:var Q=k-_-$-1;if(P){if(Q>=0&&z(E[Q][1])){var te=E[Q][1].slice(-1);if(E[Q][1]=E[Q][1].slice(0,-1),V=te+V,K=te+K,!E[Q][1]){E.splice(Q,1),k--;var me=Q-1;E[me]&&E[me][0]===e&&(_++,K=E[me][1]+K,me--),E[me]&&E[me][0]===n&&($++,V=E[me][1]+V,me--),Q=me}}if(M(E[k][1])){var te=E[k][1].charAt(0);E[k][1]=E[k][1].slice(1),V+=te,K+=te}}if(k<E.length-1&&!E[k][1]){E.splice(k,1);break}if(V.length>0||K.length>0){V.length>0&&K.length>0&&(q=c(K,V),q!==0&&(Q>=0?E[Q][1]+=K.substring(0,q):(E.splice(0,0,[t,K.substring(0,q)]),k++),K=K.substring(q),V=V.substring(q)),q=u(K,V),q!==0&&(E[k][1]=K.substring(K.length-q)+E[k][1],K=K.substring(0,K.length-q),V=V.substring(0,V.length-q)));var ge=_+$;V.length===0&&K.length===0?(E.splice(k-ge,ge),k=k-ge):V.length===0?(E.splice(k-ge,ge,[e,K]),k=k-ge+1):K.length===0?(E.splice(k-ge,ge,[n,V]),k=k-ge+1):(E.splice(k-ge,ge,[n,V],[e,K]),k=k-ge+2)}k!==0&&E[k-1][0]===t?(E[k-1][1]+=E[k][1],E.splice(k,1)):k++,_=0,$=0,V="",K="";break}}E[E.length-1][1]===""&&E.pop();var ye=!1;for(k=1;k<E.length-1;)E[k-1][0]===t&&E[k+1][0]===t&&(E[k][1].substring(E[k][1].length-E[k-1][1].length)===E[k-1][1]?(E[k][1]=E[k-1][1]+E[k][1].substring(0,E[k][1].length-E[k-1][1].length),E[k+1][1]=E[k-1][1]+E[k+1][1],E.splice(k-1,1),ye=!0):E[k][1].substring(0,E[k+1][1].length)==E[k+1][1]&&(E[k-1][1]+=E[k+1][1],E[k][1]=E[k][1].substring(E[k+1][1].length)+E[k+1][1],E.splice(k+1,1),ye=!0)),k++;ye&&T(E,P)}function O(E){return E>=55296&&E<=56319}function F(E){return E>=56320&&E<=57343}function M(E){return F(E.charCodeAt(0))}function z(E){return O(E.charCodeAt(E.length-1))}function X(E){for(var P=[],k=0;k<E.length;k++)E[k][1].length>0&&P.push(E[k]);return P}function H(E,P,k,$){return z(E)||M($)?null:X([[t,E],[n,P],[e,k],[t,$]])}function re(E,P,k){var $=typeof k=="number"?{index:k,length:0}:k.oldRange,_=typeof k=="number"?null:k.newRange,V=E.length,K=P.length;if($.length===0&&(_===null||_.length===0)){var q=$.index,Q=E.slice(0,q),te=E.slice(q),me=_?_.index:null;e:{var ge=q+K-V;if(me!==null&&me!==ge||ge<0||ge>K)break e;var ye=P.slice(0,ge),xe=P.slice(ge);if(xe!==te)break e;var he=Math.min(q,ge),ke=Q.slice(0,he),ve=ye.slice(0,he);if(ke!==ve)break e;var N=Q.slice(he),R=ye.slice(he);return H(ke,N,R,te)}e:{if(me!==null&&me!==q)break e;var w=q,ye=P.slice(0,w),xe=P.slice(w);if(ye!==Q)break e;var C=Math.min(V-w,K-w),v=te.slice(te.length-C),x=xe.slice(xe.length-C);if(v!==x)break e;var N=te.slice(0,te.length-C),R=xe.slice(0,xe.length-C);return H(Q,N,R,v)}}if($.length>0&&_&&_.length===0)e:{var ke=E.slice(0,$.index),v=E.slice($.index+$.length),he=ke.length,C=v.length;if(K<he+C)break e;var ve=P.slice(0,he),x=P.slice(K-C);if(ke!==ve||v!==x)break e;var N=E.slice(he,V-C),R=P.slice(he,K-C);return H(ke,N,R,v)}return null}function G(E,P,k,$){return r(E,P,k,$,!0)}return G.INSERT=e,G.DELETE=n,G.EQUAL=t,Jo=G,Jo}var jr={exports:{}};jr.exports;var Xl;function Yl(){return Xl||(Xl=1,function(n,e){var t=200,r="__lodash_hash_undefined__",s=9007199254740991,l="[object Arguments]",a="[object Array]",c="[object Boolean]",o="[object Date]",u="[object Error]",d="[object Function]",h="[object GeneratorFunction]",f="[object Map]",m="[object Number]",p="[object Object]",y="[object Promise]",b="[object RegExp]",A="[object Set]",T="[object String]",O="[object Symbol]",F="[object WeakMap]",M="[object ArrayBuffer]",z="[object DataView]",X="[object Float32Array]",H="[object Float64Array]",re="[object Int8Array]",G="[object Int16Array]",E="[object Int32Array]",P="[object Uint8Array]",k="[object Uint8ClampedArray]",$="[object Uint16Array]",_="[object Uint32Array]",V=/[\\^$.*+?()[\]{}|]/g,K=/\w*$/,q=/^\[object .+?Constructor\]$/,Q=/^(?:0|[1-9]\d*)$/,te={};te[l]=te[a]=te[M]=te[z]=te[c]=te[o]=te[X]=te[H]=te[re]=te[G]=te[E]=te[f]=te[m]=te[p]=te[b]=te[A]=te[T]=te[O]=te[P]=te[k]=te[$]=te[_]=!0,te[u]=te[d]=te[F]=!1;var me=typeof En=="object"&&En&&En.Object===Object&&En,ge=typeof self=="object"&&self&&self.Object===Object&&self,ye=me||ge||Function("return this")(),xe=e&&!e.nodeType&&e,he=xe&&!0&&n&&!n.nodeType&&n,ke=he&&he.exports===xe;function ve(g,S){return g.set(S[0],S[1]),g}function N(g,S){return g.add(S),g}function R(g,S){for(var D=-1,oe=g?g.length:0;++D<oe&&S(g[D],D,g)!==!1;);return g}function w(g,S){for(var D=-1,oe=S.length,Fe=g.length;++D<oe;)g[Fe+D]=S[D];return g}function C(g,S,D,oe){for(var Fe=-1,Oe=g?g.length:0;++Fe<Oe;)D=S(D,g[Fe],Fe,g);return D}function v(g,S){for(var D=-1,oe=Array(g);++D<g;)oe[D]=S(D);return oe}function x(g,S){return g==null?void 0:g[S]}function I(g){var S=!1;if(g!=null&&typeof g.toString!="function")try{S=!!(g+"")}catch{}return S}function B(g){var S=-1,D=Array(g.size);return g.forEach(function(oe,Fe){D[++S]=[Fe,oe]}),D}function U(g,S){return function(D){return g(S(D))}}function j(g){var S=-1,D=Array(g.size);return g.forEach(function(oe){D[++S]=oe}),D}var W=Array.prototype,Z=Function.prototype,Y=Object.prototype,J=ye["__core-js_shared__"],ne=function(){var g=/[^.]+$/.exec(J&&J.keys&&J.keys.IE_PROTO||"");return g?"Symbol(src)_1."+g:""}(),ie=Z.toString,fe=Y.hasOwnProperty,we=Y.toString,De=RegExp("^"+ie.call(fe).replace(V,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ge=ke?ye.Buffer:void 0,_e=ye.Symbol,Be=ye.Uint8Array,Ve=U(Object.getPrototypeOf,Object),rt=Object.create,ot=Y.propertyIsEnumerable,Dt=W.splice,bt=Object.getOwnPropertySymbols,$e=Ge?Ge.isBuffer:void 0,Pe=U(Object.keys,Object),We=Jt(ye,"DataView"),pe=Jt(ye,"Map"),be=Jt(ye,"Promise"),Ce=Jt(ye,"Set"),Ie=Jt(ye,"WeakMap"),Re=Jt(Object,"create"),je=St(We),Ke=St(pe),et=St(be),dt=St(Ce),ft=St(Ie),Rt=_e?_e.prototype:void 0,Ut=Rt?Rt.valueOf:void 0;function lt(g){var S=-1,D=g?g.length:0;for(this.clear();++S<D;){var oe=g[S];this.set(oe[0],oe[1])}}function kt(){this.__data__=Re?Re(null):{}}function Yt(g){return this.has(g)&&delete this.__data__[g]}function Gn(g){var S=this.__data__;if(Re){var D=S[g];return D===r?void 0:D}return fe.call(S,g)?S[g]:void 0}function gn(g){var S=this.__data__;return Re?S[g]!==void 0:fe.call(S,g)}function Cn(g,S){var D=this.__data__;return D[g]=Re&&S===void 0?r:S,this}lt.prototype.clear=kt,lt.prototype.delete=Yt,lt.prototype.get=Gn,lt.prototype.has=gn,lt.prototype.set=Cn;function it(g){var S=-1,D=g?g.length:0;for(this.clear();++S<D;){var oe=g[S];this.set(oe[0],oe[1])}}function mr(){this.__data__=[]}function gr(g){var S=this.__data__,D=Ue(S,g);if(D<0)return!1;var oe=S.length-1;return D==oe?S.pop():Dt.call(S,D,1),!0}function yr(g){var S=this.__data__,D=Ue(S,g);return D<0?void 0:S[D][1]}function vr(g){return Ue(this.__data__,g)>-1}function br(g,S){var D=this.__data__,oe=Ue(D,g);return oe<0?D.push([g,S]):D[oe][1]=S,this}it.prototype.clear=mr,it.prototype.delete=gr,it.prototype.get=yr,it.prototype.has=vr,it.prototype.set=br;function ct(g){var S=-1,D=g?g.length:0;for(this.clear();++S<D;){var oe=g[S];this.set(oe[0],oe[1])}}function xr(){this.__data__={hash:new lt,map:new(pe||it),string:new lt}}function Er(g){return Kn(this,g).delete(g)}function wr(g){return Kn(this,g).get(g)}function xt(g){return Kn(this,g).has(g)}function Ar(g,S){return Kn(this,g).set(g,S),this}ct.prototype.clear=xr,ct.prototype.delete=Er,ct.prototype.get=wr,ct.prototype.has=xt,ct.prototype.set=Ar;function pt(g){this.__data__=new it(g)}function L(){this.__data__=new it}function ae(g){return this.__data__.delete(g)}function se(g){return this.__data__.get(g)}function ce(g){return this.__data__.has(g)}function de(g,S){var D=this.__data__;if(D instanceof it){var oe=D.__data__;if(!pe||oe.length<t-1)return oe.push([g,S]),this;D=this.__data__=new ct(oe)}return D.set(g,S),this}pt.prototype.clear=L,pt.prototype.delete=ae,pt.prototype.get=se,pt.prototype.has=ce,pt.prototype.set=de;function Le(g,S){var D=rs(g)||Sr(g)?v(g.length,String):[],oe=D.length,Fe=!!oe;for(var Oe in g)fe.call(g,Oe)&&!(Fe&&(Oe=="length"||Di(Oe,oe)))&&D.push(Oe);return D}function Ae(g,S,D){var oe=g[S];(!(fe.call(g,S)&&Qs(oe,D))||D===void 0&&!(S in g))&&(g[S]=D)}function Ue(g,S){for(var D=g.length;D--;)if(Qs(g[D][0],S))return D;return-1}function qe(g,S){return g&&ns(S,os(S),g)}function Je(g,S,D,oe,Fe,Oe,He){var ze;if(oe&&(ze=Oe?oe(g,Fe,Oe,He):oe(g)),ze!==void 0)return ze;if(!ln(g))return g;var at=rs(g);if(at){if(ze=Fi(g),!S)return Li(g,ze)}else{var Xe=bn(g),wt=Xe==d||Xe==h;if(eo(g))return yn(g,S);if(Xe==p||Xe==l||wt&&!Oe){if(I(g))return Oe?g:{};if(ze=an(wt?{}:g),!S)return Bi(g,qe(ze,g))}else{if(!te[Xe])return Oe?g:{};ze=Mi(g,Xe,Je,S)}}He||(He=new pt);var Ct=He.get(g);if(Ct)return Ct;if(He.set(g,ze),!at)var ut=D?Pi(g):os(g);return R(ut||g,function(At,mt){ut&&(mt=At,At=g[mt]),Ae(ze,mt,Je(At,S,D,oe,mt,g,He))}),ze}function Et(g){return ln(g)?rt(g):{}}function ue(g,S,D){var oe=S(g);return rs(g)?oe:w(oe,D(g))}function st(g){return we.call(g)}function It(g){if(!ln(g)||_i(g))return!1;var S=ss(g)||I(g)?De:q;return S.test(St(g))}function Wn(g){if(!Zs(g))return Pe(g);var S=[];for(var D in Object(g))fe.call(g,D)&&D!="constructor"&&S.push(D);return S}function yn(g,S){if(S)return g.slice();var D=new g.constructor(g.length);return g.copy(D),D}function On(g){var S=new g.constructor(g.byteLength);return new Be(S).set(new Be(g)),S}function Zt(g,S){var D=S?On(g.buffer):g.buffer;return new g.constructor(D,g.byteOffset,g.byteLength)}function Xs(g,S,D){var oe=S?D(B(g),!0):B(g);return C(oe,ve,new g.constructor)}function Ys(g){var S=new g.constructor(g.source,K.exec(g));return S.lastIndex=g.lastIndex,S}function Oi(g,S,D){var oe=S?D(j(g),!0):j(g);return C(oe,N,new g.constructor)}function Ri(g){return Ut?Object(Ut.call(g)):{}}function Ii(g,S){var D=S?On(g.buffer):g.buffer;return new g.constructor(D,g.byteOffset,g.length)}function Li(g,S){var D=-1,oe=g.length;for(S||(S=Array(oe));++D<oe;)S[D]=g[D];return S}function ns(g,S,D,oe){D||(D={});for(var Fe=-1,Oe=S.length;++Fe<Oe;){var He=S[Fe],ze=void 0;Ae(D,He,ze===void 0?g[He]:ze)}return D}function Bi(g,S){return ns(g,vn(g),S)}function Pi(g){return ue(g,os,vn)}function Kn(g,S){var D=g.__data__;return Ui(S)?D[typeof S=="string"?"string":"hash"]:D.map}function Jt(g,S){var D=x(g,S);return It(D)?D:void 0}var vn=bt?U(bt,Object):ji,bn=st;(We&&bn(new We(new ArrayBuffer(1)))!=z||pe&&bn(new pe)!=f||be&&bn(be.resolve())!=y||Ce&&bn(new Ce)!=A||Ie&&bn(new Ie)!=F)&&(bn=function(g){var S=we.call(g),D=S==p?g.constructor:void 0,oe=D?St(D):void 0;if(oe)switch(oe){case je:return z;case Ke:return f;case et:return y;case dt:return A;case ft:return F}return S});function Fi(g){var S=g.length,D=g.constructor(S);return S&&typeof g[0]=="string"&&fe.call(g,"index")&&(D.index=g.index,D.input=g.input),D}function an(g){return typeof g.constructor=="function"&&!Zs(g)?Et(Ve(g)):{}}function Mi(g,S,D,oe){var Fe=g.constructor;switch(S){case M:return On(g);case c:case o:return new Fe(+g);case z:return Zt(g,oe);case X:case H:case re:case G:case E:case P:case k:case $:case _:return Ii(g,oe);case f:return Xs(g,oe,D);case m:case T:return new Fe(g);case b:return Ys(g);case A:return Oi(g,oe,D);case O:return Ri(g)}}function Di(g,S){return S=S??s,!!S&&(typeof g=="number"||Q.test(g))&&g>-1&&g%1==0&&g<S}function Ui(g){var S=typeof g;return S=="string"||S=="number"||S=="symbol"||S=="boolean"?g!=="__proto__":g===null}function _i(g){return!!ne&&ne in g}function Zs(g){var S=g&&g.constructor,D=typeof S=="function"&&S.prototype||Y;return g===D}function St(g){if(g!=null){try{return ie.call(g)}catch{}try{return g+""}catch{}}return""}function Js(g){return Je(g,!0,!0)}function Qs(g,S){return g===S||g!==g&&S!==S}function Sr(g){return Vi(g)&&fe.call(g,"callee")&&(!ot.call(g,"callee")||we.call(g)==l)}var rs=Array.isArray;function Tr(g){return g!=null&&to(g.length)&&!ss(g)}function Vi(g){return no(g)&&Tr(g)}var eo=$e||$i;function ss(g){var S=ln(g)?we.call(g):"";return S==d||S==h}function to(g){return typeof g=="number"&&g>-1&&g%1==0&&g<=s}function ln(g){var S=typeof g;return!!g&&(S=="object"||S=="function")}function no(g){return!!g&&typeof g=="object"}function os(g){return Tr(g)?Le(g):Wn(g)}function ji(){return[]}function $i(){return!1}n.exports=Js}(jr,jr.exports)),jr.exports}var $r={exports:{}};$r.exports;var Zl;function Jl(){return Zl||(Zl=1,function(n,e){var t=200,r="__lodash_hash_undefined__",s=1,l=2,a=9007199254740991,c="[object Arguments]",o="[object Array]",u="[object AsyncFunction]",d="[object Boolean]",h="[object Date]",f="[object Error]",m="[object Function]",p="[object GeneratorFunction]",y="[object Map]",b="[object Number]",A="[object Null]",T="[object Object]",O="[object Promise]",F="[object Proxy]",M="[object RegExp]",z="[object Set]",X="[object String]",H="[object Symbol]",re="[object Undefined]",G="[object WeakMap]",E="[object ArrayBuffer]",P="[object DataView]",k="[object Float32Array]",$="[object Float64Array]",_="[object Int8Array]",V="[object Int16Array]",K="[object Int32Array]",q="[object Uint8Array]",Q="[object Uint8ClampedArray]",te="[object Uint16Array]",me="[object Uint32Array]",ge=/[\\^$.*+?()[\]{}|]/g,ye=/^\[object .+?Constructor\]$/,xe=/^(?:0|[1-9]\d*)$/,he={};he[k]=he[$]=he[_]=he[V]=he[K]=he[q]=he[Q]=he[te]=he[me]=!0,he[c]=he[o]=he[E]=he[d]=he[P]=he[h]=he[f]=he[m]=he[y]=he[b]=he[T]=he[M]=he[z]=he[X]=he[G]=!1;var ke=typeof En=="object"&&En&&En.Object===Object&&En,ve=typeof self=="object"&&self&&self.Object===Object&&self,N=ke||ve||Function("return this")(),R=e&&!e.nodeType&&e,w=R&&!0&&n&&!n.nodeType&&n,C=w&&w.exports===R,v=C&&ke.process,x=function(){try{return v&&v.binding&&v.binding("util")}catch{}}(),I=x&&x.isTypedArray;function B(g,S){for(var D=-1,oe=g==null?0:g.length,Fe=0,Oe=[];++D<oe;){var He=g[D];S(He,D,g)&&(Oe[Fe++]=He)}return Oe}function U(g,S){for(var D=-1,oe=S.length,Fe=g.length;++D<oe;)g[Fe+D]=S[D];return g}function j(g,S){for(var D=-1,oe=g==null?0:g.length;++D<oe;)if(S(g[D],D,g))return!0;return!1}function W(g,S){for(var D=-1,oe=Array(g);++D<g;)oe[D]=S(D);return oe}function Z(g){return function(S){return g(S)}}function Y(g,S){return g.has(S)}function J(g,S){return g==null?void 0:g[S]}function ne(g){var S=-1,D=Array(g.size);return g.forEach(function(oe,Fe){D[++S]=[Fe,oe]}),D}function ie(g,S){return function(D){return g(S(D))}}function fe(g){var S=-1,D=Array(g.size);return g.forEach(function(oe){D[++S]=oe}),D}var we=Array.prototype,De=Function.prototype,Ge=Object.prototype,_e=N["__core-js_shared__"],Be=De.toString,Ve=Ge.hasOwnProperty,rt=function(){var g=/[^.]+$/.exec(_e&&_e.keys&&_e.keys.IE_PROTO||"");return g?"Symbol(src)_1."+g:""}(),ot=Ge.toString,Dt=RegExp("^"+Be.call(Ve).replace(ge,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),bt=C?N.Buffer:void 0,$e=N.Symbol,Pe=N.Uint8Array,We=Ge.propertyIsEnumerable,pe=we.splice,be=$e?$e.toStringTag:void 0,Ce=Object.getOwnPropertySymbols,Ie=bt?bt.isBuffer:void 0,Re=ie(Object.keys,Object),je=vn(N,"DataView"),Ke=vn(N,"Map"),et=vn(N,"Promise"),dt=vn(N,"Set"),ft=vn(N,"WeakMap"),Rt=vn(Object,"create"),Ut=St(je),lt=St(Ke),kt=St(et),Yt=St(dt),Gn=St(ft),gn=$e?$e.prototype:void 0,Cn=gn?gn.valueOf:void 0;function it(g){var S=-1,D=g==null?0:g.length;for(this.clear();++S<D;){var oe=g[S];this.set(oe[0],oe[1])}}function mr(){this.__data__=Rt?Rt(null):{},this.size=0}function gr(g){var S=this.has(g)&&delete this.__data__[g];return this.size-=S?1:0,S}function yr(g){var S=this.__data__;if(Rt){var D=S[g];return D===r?void 0:D}return Ve.call(S,g)?S[g]:void 0}function vr(g){var S=this.__data__;return Rt?S[g]!==void 0:Ve.call(S,g)}function br(g,S){var D=this.__data__;return this.size+=this.has(g)?0:1,D[g]=Rt&&S===void 0?r:S,this}it.prototype.clear=mr,it.prototype.delete=gr,it.prototype.get=yr,it.prototype.has=vr,it.prototype.set=br;function ct(g){var S=-1,D=g==null?0:g.length;for(this.clear();++S<D;){var oe=g[S];this.set(oe[0],oe[1])}}function xr(){this.__data__=[],this.size=0}function Er(g){var S=this.__data__,D=yn(S,g);if(D<0)return!1;var oe=S.length-1;return D==oe?S.pop():pe.call(S,D,1),--this.size,!0}function wr(g){var S=this.__data__,D=yn(S,g);return D<0?void 0:S[D][1]}function xt(g){return yn(this.__data__,g)>-1}function Ar(g,S){var D=this.__data__,oe=yn(D,g);return oe<0?(++this.size,D.push([g,S])):D[oe][1]=S,this}ct.prototype.clear=xr,ct.prototype.delete=Er,ct.prototype.get=wr,ct.prototype.has=xt,ct.prototype.set=Ar;function pt(g){var S=-1,D=g==null?0:g.length;for(this.clear();++S<D;){var oe=g[S];this.set(oe[0],oe[1])}}function L(){this.size=0,this.__data__={hash:new it,map:new(Ke||ct),string:new it}}function ae(g){var S=Jt(this,g).delete(g);return this.size-=S?1:0,S}function se(g){return Jt(this,g).get(g)}function ce(g){return Jt(this,g).has(g)}function de(g,S){var D=Jt(this,g),oe=D.size;return D.set(g,S),this.size+=D.size==oe?0:1,this}pt.prototype.clear=L,pt.prototype.delete=ae,pt.prototype.get=se,pt.prototype.has=ce,pt.prototype.set=de;function Le(g){var S=-1,D=g==null?0:g.length;for(this.__data__=new pt;++S<D;)this.add(g[S])}function Ae(g){return this.__data__.set(g,r),this}function Ue(g){return this.__data__.has(g)}Le.prototype.add=Le.prototype.push=Ae,Le.prototype.has=Ue;function qe(g){var S=this.__data__=new ct(g);this.size=S.size}function Je(){this.__data__=new ct,this.size=0}function Et(g){var S=this.__data__,D=S.delete(g);return this.size=S.size,D}function ue(g){return this.__data__.get(g)}function st(g){return this.__data__.has(g)}function It(g,S){var D=this.__data__;if(D instanceof ct){var oe=D.__data__;if(!Ke||oe.length<t-1)return oe.push([g,S]),this.size=++D.size,this;D=this.__data__=new pt(oe)}return D.set(g,S),this.size=D.size,this}qe.prototype.clear=Je,qe.prototype.delete=Et,qe.prototype.get=ue,qe.prototype.has=st,qe.prototype.set=It;function Wn(g,S){var D=Sr(g),oe=!D&&Qs(g),Fe=!D&&!oe&&Tr(g),Oe=!D&&!oe&&!Fe&&no(g),He=D||oe||Fe||Oe,ze=He?W(g.length,String):[],at=ze.length;for(var Xe in g)Ve.call(g,Xe)&&!(He&&(Xe=="length"||Fe&&(Xe=="offset"||Xe=="parent")||Oe&&(Xe=="buffer"||Xe=="byteLength"||Xe=="byteOffset")||Mi(Xe,at)))&&ze.push(Xe);return ze}function yn(g,S){for(var D=g.length;D--;)if(Js(g[D][0],S))return D;return-1}function On(g,S,D){var oe=S(g);return Sr(g)?oe:U(oe,D(g))}function Zt(g){return g==null?g===void 0?re:A:be&&be in Object(g)?bn(g):Zs(g)}function Xs(g){return ln(g)&&Zt(g)==c}function Ys(g,S,D,oe,Fe){return g===S?!0:g==null||S==null||!ln(g)&&!ln(S)?g!==g&&S!==S:Oi(g,S,D,oe,Ys,Fe)}function Oi(g,S,D,oe,Fe,Oe){var He=Sr(g),ze=Sr(S),at=He?o:an(g),Xe=ze?o:an(S);at=at==c?T:at,Xe=Xe==c?T:Xe;var wt=at==T,Ct=Xe==T,ut=at==Xe;if(ut&&Tr(g)){if(!Tr(S))return!1;He=!0,wt=!1}if(ut&&!wt)return Oe||(Oe=new qe),He||no(g)?ns(g,S,D,oe,Fe,Oe):Bi(g,S,at,D,oe,Fe,Oe);if(!(D&s)){var At=wt&&Ve.call(g,"__wrapped__"),mt=Ct&&Ve.call(S,"__wrapped__");if(At||mt){var Rn=At?g.value():g,xn=mt?S.value():S;return Oe||(Oe=new qe),Fe(Rn,xn,D,oe,Oe)}}return ut?(Oe||(Oe=new qe),Pi(g,S,D,oe,Fe,Oe)):!1}function Ri(g){if(!to(g)||Ui(g))return!1;var S=eo(g)?Dt:ye;return S.test(St(g))}function Ii(g){return ln(g)&&ss(g.length)&&!!he[Zt(g)]}function Li(g){if(!_i(g))return Re(g);var S=[];for(var D in Object(g))Ve.call(g,D)&&D!="constructor"&&S.push(D);return S}function ns(g,S,D,oe,Fe,Oe){var He=D&s,ze=g.length,at=S.length;if(ze!=at&&!(He&&at>ze))return!1;var Xe=Oe.get(g);if(Xe&&Oe.get(S))return Xe==S;var wt=-1,Ct=!0,ut=D&l?new Le:void 0;for(Oe.set(g,S),Oe.set(S,g);++wt<ze;){var At=g[wt],mt=S[wt];if(oe)var Rn=He?oe(mt,At,wt,S,g,Oe):oe(At,mt,wt,g,S,Oe);if(Rn!==void 0){if(Rn)continue;Ct=!1;break}if(ut){if(!j(S,function(xn,Xn){if(!Y(ut,Xn)&&(At===xn||Fe(At,xn,D,oe,Oe)))return ut.push(Xn)})){Ct=!1;break}}else if(!(At===mt||Fe(At,mt,D,oe,Oe))){Ct=!1;break}}return Oe.delete(g),Oe.delete(S),Ct}function Bi(g,S,D,oe,Fe,Oe,He){switch(D){case P:if(g.byteLength!=S.byteLength||g.byteOffset!=S.byteOffset)return!1;g=g.buffer,S=S.buffer;case E:return!(g.byteLength!=S.byteLength||!Oe(new Pe(g),new Pe(S)));case d:case h:case b:return Js(+g,+S);case f:return g.name==S.name&&g.message==S.message;case M:case X:return g==S+"";case y:var ze=ne;case z:var at=oe&s;if(ze||(ze=fe),g.size!=S.size&&!at)return!1;var Xe=He.get(g);if(Xe)return Xe==S;oe|=l,He.set(g,S);var wt=ns(ze(g),ze(S),oe,Fe,Oe,He);return He.delete(g),wt;case H:if(Cn)return Cn.call(g)==Cn.call(S)}return!1}function Pi(g,S,D,oe,Fe,Oe){var He=D&s,ze=Kn(g),at=ze.length,Xe=Kn(S),wt=Xe.length;if(at!=wt&&!He)return!1;for(var Ct=at;Ct--;){var ut=ze[Ct];if(!(He?ut in S:Ve.call(S,ut)))return!1}var At=Oe.get(g);if(At&&Oe.get(S))return At==S;var mt=!0;Oe.set(g,S),Oe.set(S,g);for(var Rn=He;++Ct<at;){ut=ze[Ct];var xn=g[ut],Xn=S[ut];if(oe)var eu=He?oe(Xn,xn,ut,S,g,Oe):oe(xn,Xn,ut,g,S,Oe);if(!(eu===void 0?xn===Xn||Fe(xn,Xn,D,oe,Oe):eu)){mt=!1;break}Rn||(Rn=ut=="constructor")}if(mt&&!Rn){var ro=g.constructor,so=S.constructor;ro!=so&&"constructor"in g&&"constructor"in S&&!(typeof ro=="function"&&ro instanceof ro&&typeof so=="function"&&so instanceof so)&&(mt=!1)}return Oe.delete(g),Oe.delete(S),mt}function Kn(g){return On(g,os,Fi)}function Jt(g,S){var D=g.__data__;return Di(S)?D[typeof S=="string"?"string":"hash"]:D.map}function vn(g,S){var D=J(g,S);return Ri(D)?D:void 0}function bn(g){var S=Ve.call(g,be),D=g[be];try{g[be]=void 0;var oe=!0}catch{}var Fe=ot.call(g);return oe&&(S?g[be]=D:delete g[be]),Fe}var Fi=Ce?function(g){return g==null?[]:(g=Object(g),B(Ce(g),function(S){return We.call(g,S)}))}:ji,an=Zt;(je&&an(new je(new ArrayBuffer(1)))!=P||Ke&&an(new Ke)!=y||et&&an(et.resolve())!=O||dt&&an(new dt)!=z||ft&&an(new ft)!=G)&&(an=function(g){var S=Zt(g),D=S==T?g.constructor:void 0,oe=D?St(D):"";if(oe)switch(oe){case Ut:return P;case lt:return y;case kt:return O;case Yt:return z;case Gn:return G}return S});function Mi(g,S){return S=S??a,!!S&&(typeof g=="number"||xe.test(g))&&g>-1&&g%1==0&&g<S}function Di(g){var S=typeof g;return S=="string"||S=="number"||S=="symbol"||S=="boolean"?g!=="__proto__":g===null}function Ui(g){return!!rt&&rt in g}function _i(g){var S=g&&g.constructor,D=typeof S=="function"&&S.prototype||Ge;return g===D}function Zs(g){return ot.call(g)}function St(g){if(g!=null){try{return Be.call(g)}catch{}try{return g+""}catch{}}return""}function Js(g,S){return g===S||g!==g&&S!==S}var Qs=Xs(function(){return arguments}())?Xs:function(g){return ln(g)&&Ve.call(g,"callee")&&!We.call(g,"callee")},Sr=Array.isArray;function rs(g){return g!=null&&ss(g.length)&&!eo(g)}var Tr=Ie||$i;function Vi(g,S){return Ys(g,S)}function eo(g){if(!to(g))return!1;var S=Zt(g);return S==m||S==p||S==u||S==F}function ss(g){return typeof g=="number"&&g>-1&&g%1==0&&g<=a}function to(g){var S=typeof g;return g!=null&&(S=="object"||S=="function")}function ln(g){return g!=null&&typeof g=="object"}var no=I?Z(I):Ii;function os(g){return rs(g)?Wn(g):Li(g)}function ji(){return[]}function $i(){return!1}n.exports=Vi}($r,$r.exports)),$r.exports}var Ms={},Ql;function ab(){if(Ql)return Ms;Ql=1,Object.defineProperty(Ms,"__esModule",{value:!0});const n=Yl(),e=Jl();var t;return function(r){function s(o={},u={},d=!1){typeof o!="object"&&(o={}),typeof u!="object"&&(u={});let h=n(u);d||(h=Object.keys(h).reduce((f,m)=>(h[m]!=null&&(f[m]=h[m]),f),{}));for(const f in o)o[f]!==void 0&&u[f]===void 0&&(h[f]=o[f]);return Object.keys(h).length>0?h:void 0}r.compose=s;function l(o={},u={}){typeof o!="object"&&(o={}),typeof u!="object"&&(u={});const d=Object.keys(o).concat(Object.keys(u)).reduce((h,f)=>(e(o[f],u[f])||(h[f]=u[f]===void 0?null:u[f]),h),{});return Object.keys(d).length>0?d:void 0}r.diff=l;function a(o={},u={}){o=o||{};const d=Object.keys(u).reduce((h,f)=>(u[f]!==o[f]&&o[f]!==void 0&&(h[f]=u[f]),h),{});return Object.keys(o).reduce((h,f)=>(o[f]!==u[f]&&u[f]===void 0&&(h[f]=null),h),d)}r.invert=a;function c(o,u,d=!1){if(typeof o!="object")return u;if(typeof u!="object")return;if(!d)return u;const h=Object.keys(u).reduce((f,m)=>(o[m]===void 0&&(f[m]=u[m]),f),{});return Object.keys(h).length>0?h:void 0}r.transform=c}(t||(t={})),Ms.default=t,Ms}var Ds={},ec;function tc(){if(ec)return Ds;ec=1,Object.defineProperty(Ds,"__esModule",{value:!0});var n;return function(e){function t(r){return typeof r.delete=="number"?r.delete:typeof r.retain=="number"?r.retain:typeof r.retain=="object"&&r.retain!==null?1:typeof r.insert=="string"?r.insert.length:1}e.length=t}(n||(n={})),Ds.default=n,Ds}var Us={},nc;function lb(){if(nc)return Us;nc=1,Object.defineProperty(Us,"__esModule",{value:!0});const n=tc();class e{constructor(r){this.ops=r,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(r){r||(r=1/0);const s=this.ops[this.index];if(s){const l=this.offset,a=n.default.length(s);if(r>=a-l?(r=a-l,this.index+=1,this.offset=0):this.offset+=r,typeof s.delete=="number")return{delete:r};{const c={};return s.attributes&&(c.attributes=s.attributes),typeof s.retain=="number"?c.retain=r:typeof s.retain=="object"&&s.retain!==null?c.retain=s.retain:typeof s.insert=="string"?c.insert=s.insert.substr(l,r):c.insert=s.insert,c}}else return{retain:1/0}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?n.default.length(this.ops[this.index])-this.offset:1/0}peekType(){const r=this.ops[this.index];return r?typeof r.delete=="number"?"delete":typeof r.retain=="number"||typeof r.retain=="object"&&r.retain!==null?"retain":"insert":"retain"}rest(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);{const r=this.offset,s=this.index,l=this.next(),a=this.ops.slice(this.index);return this.offset=r,this.index=s,[l].concat(a)}}else return[]}}return Us.default=e,Us}var rc;function cb(){return rc||(rc=1,function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.AttributeMap=e.OpIterator=e.Op=void 0;const t=ib(),r=Yl(),s=Jl(),l=ab();e.AttributeMap=l.default;const a=tc();e.Op=a.default;const c=lb();e.OpIterator=c.default;const o="\0",u=(h,f)=>{if(typeof h!="object"||h===null)throw new Error(`cannot retain a ${typeof h}`);if(typeof f!="object"||f===null)throw new Error(`cannot retain a ${typeof f}`);const m=Object.keys(h)[0];if(!m||m!==Object.keys(f)[0])throw new Error(`embed types not matched: ${m} != ${Object.keys(f)[0]}`);return[m,h[m],f[m]]};class d{constructor(f){Array.isArray(f)?this.ops=f:f!=null&&Array.isArray(f.ops)?this.ops=f.ops:this.ops=[]}static registerEmbed(f,m){this.handlers[f]=m}static unregisterEmbed(f){delete this.handlers[f]}static getHandler(f){const m=this.handlers[f];if(!m)throw new Error(`no handlers for embed type "${f}"`);return m}insert(f,m){const p={};return typeof f=="string"&&f.length===0?this:(p.insert=f,m!=null&&typeof m=="object"&&Object.keys(m).length>0&&(p.attributes=m),this.push(p))}delete(f){return f<=0?this:this.push({delete:f})}retain(f,m){if(typeof f=="number"&&f<=0)return this;const p={retain:f};return m!=null&&typeof m=="object"&&Object.keys(m).length>0&&(p.attributes=m),this.push(p)}push(f){let m=this.ops.length,p=this.ops[m-1];if(f=r(f),typeof p=="object"){if(typeof f.delete=="number"&&typeof p.delete=="number")return this.ops[m-1]={delete:p.delete+f.delete},this;if(typeof p.delete=="number"&&f.insert!=null&&(m-=1,p=this.ops[m-1],typeof p!="object"))return this.ops.unshift(f),this;if(s(f.attributes,p.attributes)){if(typeof f.insert=="string"&&typeof p.insert=="string")return this.ops[m-1]={insert:p.insert+f.insert},typeof f.attributes=="object"&&(this.ops[m-1].attributes=f.attributes),this;if(typeof f.retain=="number"&&typeof p.retain=="number")return this.ops[m-1]={retain:p.retain+f.retain},typeof f.attributes=="object"&&(this.ops[m-1].attributes=f.attributes),this}}return m===this.ops.length?this.ops.push(f):this.ops.splice(m,0,f),this}chop(){const f=this.ops[this.ops.length-1];return f&&typeof f.retain=="number"&&!f.attributes&&this.ops.pop(),this}filter(f){return this.ops.filter(f)}forEach(f){this.ops.forEach(f)}map(f){return this.ops.map(f)}partition(f){const m=[],p=[];return this.forEach(y=>{(f(y)?m:p).push(y)}),[m,p]}reduce(f,m){return this.ops.reduce(f,m)}changeLength(){return this.reduce((f,m)=>m.insert?f+a.default.length(m):m.delete?f-m.delete:f,0)}length(){return this.reduce((f,m)=>f+a.default.length(m),0)}slice(f=0,m=1/0){const p=[],y=new c.default(this.ops);let b=0;for(;b<m&&y.hasNext();){let A;b<f?A=y.next(f-b):(A=y.next(m-b),p.push(A)),b+=a.default.length(A)}return new d(p)}compose(f){const m=new c.default(this.ops),p=new c.default(f.ops),y=[],b=p.peek();if(b!=null&&typeof b.retain=="number"&&b.attributes==null){let T=b.retain;for(;m.peekType()==="insert"&&m.peekLength()<=T;)T-=m.peekLength(),y.push(m.next());b.retain-T>0&&p.next(b.retain-T)}const A=new d(y);for(;m.hasNext()||p.hasNext();)if(p.peekType()==="insert")A.push(p.next());else if(m.peekType()==="delete")A.push(m.next());else{const T=Math.min(m.peekLength(),p.peekLength()),O=m.next(T),F=p.next(T);if(F.retain){const M={};if(typeof O.retain=="number")M.retain=typeof F.retain=="number"?T:F.retain;else if(typeof F.retain=="number")O.retain==null?M.insert=O.insert:M.retain=O.retain;else{const X=O.retain==null?"insert":"retain",[H,re,G]=u(O[X],F.retain),E=d.getHandler(H);M[X]={[H]:E.compose(re,G,X==="retain")}}const z=l.default.compose(O.attributes,F.attributes,typeof O.retain=="number");if(z&&(M.attributes=z),A.push(M),!p.hasNext()&&s(A.ops[A.ops.length-1],M)){const X=new d(m.rest());return A.concat(X).chop()}}else typeof F.delete=="number"&&(typeof O.retain=="number"||typeof O.retain=="object"&&O.retain!==null)&&A.push(F)}return A.chop()}concat(f){const m=new d(this.ops.slice());return f.ops.length>0&&(m.push(f.ops[0]),m.ops=m.ops.concat(f.ops.slice(1))),m}diff(f,m){if(this.ops===f.ops)return new d;const p=[this,f].map(O=>O.map(F=>{if(F.insert!=null)return typeof F.insert=="string"?F.insert:o;const M=O===f?"on":"with";throw new Error("diff() called "+M+" non-document")}).join("")),y=new d,b=t(p[0],p[1],m,!0),A=new c.default(this.ops),T=new c.default(f.ops);return b.forEach(O=>{let F=O[1].length;for(;F>0;){let M=0;switch(O[0]){case t.INSERT:M=Math.min(T.peekLength(),F),y.push(T.next(M));break;case t.DELETE:M=Math.min(F,A.peekLength()),A.next(M),y.delete(M);break;case t.EQUAL:M=Math.min(A.peekLength(),T.peekLength(),F);const z=A.next(M),X=T.next(M);s(z.insert,X.insert)?y.retain(M,l.default.diff(z.attributes,X.attributes)):y.push(X).delete(M);break}F-=M}}),y.chop()}eachLine(f,m=`
18
+ `){const p=new c.default(this.ops);let y=new d,b=0;for(;p.hasNext();){if(p.peekType()!=="insert")return;const A=p.peek(),T=a.default.length(A)-p.peekLength(),O=typeof A.insert=="string"?A.insert.indexOf(m,T)-T:-1;if(O<0)y.push(p.next());else if(O>0)y.push(p.next(O));else{if(f(y,p.next(1).attributes||{},b)===!1)return;b+=1,y=new d}}y.length()>0&&f(y,{},b)}invert(f){const m=new d;return this.reduce((p,y)=>{if(y.insert)m.delete(a.default.length(y));else{if(typeof y.retain=="number"&&y.attributes==null)return m.retain(y.retain),p+y.retain;if(y.delete||typeof y.retain=="number"){const b=y.delete||y.retain;return f.slice(p,p+b).forEach(T=>{y.delete?m.push(T):y.retain&&y.attributes&&m.retain(a.default.length(T),l.default.invert(y.attributes,T.attributes))}),p+b}else if(typeof y.retain=="object"&&y.retain!==null){const b=f.slice(p,p+1),A=new c.default(b.ops).next(),[T,O,F]=u(y.retain,A.insert),M=d.getHandler(T);return m.retain({[T]:M.invert(O,F)},l.default.invert(y.attributes,A.attributes)),p+1}}return p},0),m.chop()}transform(f,m=!1){if(m=!!m,typeof f=="number")return this.transformPosition(f,m);const p=f,y=new c.default(this.ops),b=new c.default(p.ops),A=new d;for(;y.hasNext()||b.hasNext();)if(y.peekType()==="insert"&&(m||b.peekType()!=="insert"))A.retain(a.default.length(y.next()));else if(b.peekType()==="insert")A.push(b.next());else{const T=Math.min(y.peekLength(),b.peekLength()),O=y.next(T),F=b.next(T);if(O.delete)continue;if(F.delete)A.push(F);else{const M=O.retain,z=F.retain;let X=typeof z=="object"&&z!==null?z:T;if(typeof M=="object"&&M!==null&&typeof z=="object"&&z!==null){const H=Object.keys(M)[0];if(H===Object.keys(z)[0]){const re=d.getHandler(H);re&&(X={[H]:re.transform(M[H],z[H],m)})}}A.retain(X,l.default.transform(O.attributes,F.attributes,m))}}return A.chop()}transformPosition(f,m=!1){m=!!m;const p=new c.default(this.ops);let y=0;for(;p.hasNext()&&y<=f;){const b=p.peekLength(),A=p.peekType();if(p.next(),A==="delete"){f-=Math.min(b,f-y);continue}else A==="insert"&&(y<f||!m)&&(f+=b);y+=b}return f}}d.Op=a.default,d.OpIterator=c.default,d.AttributeMap=l.default,d.handlers={},e.default=d,n.exports=d,n.exports.default=d}(Fs,Fs.exports)),Fs.exports}var Lt=cb();const Te=Eo(Lt);class zt extends Ot{static value(){}optimize(){(this.prev||this.next)&&this.remove()}length(){return 0}value(){return""}}zt.blotName="break",zt.tagName="BR";let Ht=class extends Ps{};const ub={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function _s(n){return n.replace(/[&<>"']/g,e=>ub[e])}const on=class on extends Ko{static compare(e,t){const r=on.order.indexOf(e),s=on.order.indexOf(t);return r>=0||s>=0?r-s:e===t?0:e<t?-1:1}formatAt(e,t,r,s){if(on.compare(this.statics.blotName,r)<0&&this.scroll.query(r,Ne.BLOT)){const l=this.isolate(e,t);s&&l.wrap(r,s)}else super.formatAt(e,t,r,s)}optimize(e){if(super.optimize(e),this.parent instanceof on&&on.compare(this.statics.blotName,this.parent.statics.blotName)>0){const t=this.parent.isolate(this.offset(),this.length());this.moveChildren(t),t.wrap(this)}}};Ee(on,"allowedChildren",[on,zt,Ot,Ht]),Ee(on,"order",["cursor","inline","link","underline","strike","italic","bold","script","code"]);let rn=on;const sc=1;class ht extends Vr{constructor(){super(...arguments);Ee(this,"cache",{})}delta(){return this.cache.delta==null&&(this.cache.delta=oc(this)),this.cache.delta}deleteAt(t,r){super.deleteAt(t,r),this.cache={}}formatAt(t,r,s,l){r<=0||(this.scroll.query(s,Ne.BLOCK)?t+r===this.length()&&this.format(s,l):super.formatAt(t,Math.min(r,this.length()-t-1),s,l),this.cache={})}insertAt(t,r,s){if(s!=null){super.insertAt(t,r,s),this.cache={};return}if(r.length===0)return;const l=r.split(`
19
19
  `),a=l.shift();a.length>0&&(t<this.length()-1||this.children.tail==null?super.insertAt(Math.min(t,this.length()-1),a):this.children.tail.insertAt(this.children.tail.length(),a),this.cache={});let c=this;l.reduce((o,u)=>(c=c.split(o,!0),c.insertAt(0,u),u.length),t+a.length)}insertBefore(t,r){const{head:s}=this.children;super.insertBefore(t,r),s instanceof zt&&s.remove(),this.cache={}}length(){return this.cache.length==null&&(this.cache.length=super.length()+sc),this.cache.length}moveChildren(t,r){super.moveChildren(t,r),this.cache={}}optimize(t){super.optimize(t),this.cache={}}path(t){return super.path(t,!0)}removeChild(t){super.removeChild(t),this.cache={}}split(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(r&&(t===0||t>=this.length()-sc)){const l=this.clone();return t===0?(this.parent.insertBefore(l,this),this):(this.parent.insertBefore(l,this.next),l)}const s=super.split(t,r);return this.cache={},s}}ht.blotName="block",ht.tagName="P",ht.defaultChild=zt,ht.allowedChildren=[zt,rn,Ot,Ht];class Bt extends Ot{attach(){super.attach(),this.attributes=new Ls(this.domNode)}delta(){return new Te().insert(this.value(),{...this.formats(),...this.attributes.values()})}format(e,t){const r=this.scroll.query(e,Ne.BLOCK_ATTRIBUTE);r!=null&&this.attributes.attribute(r,t)}formatAt(e,t,r,s){this.format(r,s)}insertAt(e,t,r){if(r!=null){super.insertAt(e,t,r);return}const s=t.split(`
20
20
  `),l=s.pop(),a=s.map(o=>{const u=this.scroll.create(ht.blotName);return u.insertAt(0,o),u}),c=this.split(e);a.forEach(o=>{this.parent.insertBefore(o,c)}),l&&this.parent.insertBefore(this.scroll.create("text",l),c)}}Bt.scope=Ne.BLOCK_BLOT;function oc(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return n.descendants(yt).reduce((t,r)=>r.length()===0?t:t.insert(r.value(),Pt(r,{},e)),new Te).insert(`
21
- `,Pt(n))}function Pt(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return n==null||("formats"in n&&typeof n.formats=="function"&&(e={...e,...n.formats()},t&&delete e["code-token"]),n.parent==null||n.parent.statics.blotName==="scroll"||n.parent.statics.scope!==n.statics.scope)?e:Pt(n.parent,e,t)}const Mt=class Mt extends Ot{static value(){}constructor(e,t,r){super(e,t),this.selection=r,this.textNode=document.createTextNode(Mt.CONTENTS),this.domNode.appendChild(this.textNode),this.savedLength=0}detach(){this.parent!=null&&this.parent.removeChild(this)}format(e,t){if(this.savedLength!==0){super.format(e,t);return}let r=this,s=0;for(;r!=null&&r.statics.scope!==Ne.BLOCK_BLOT;)s+=r.offset(r.parent),r=r.parent;r!=null&&(this.savedLength=Mt.CONTENTS.length,r.optimize(),r.formatAt(s,Mt.CONTENTS.length,e,t),this.savedLength=0)}index(e,t){return e===this.textNode?0:super.index(e,t)}length(){return this.savedLength}position(){return[this.textNode,this.textNode.data.length]}remove(){super.remove(),this.parent=null}restore(){if(this.selection.composing||this.parent==null)return null;const e=this.selection.getNativeRange();for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);const t=this.prev instanceof Ht?this.prev:null,r=t?t.length():0,s=this.next instanceof Ht?this.next:null,l=s?s.text:"",{textNode:a}=this,c=a.data.split(Mt.CONTENTS).join("");a.data=Mt.CONTENTS;let o;if(t)o=t,(c||s)&&(t.insertAt(t.length(),c+l),s&&s.remove());else if(s)o=s,s.insertAt(0,c);else{const u=document.createTextNode(c);o=this.scroll.create(u),this.parent.insertBefore(o,this)}if(this.remove(),e){const u=(f,m)=>t&&f===t.domNode?m:f===a?r+m-1:s&&f===s.domNode?r+c.length+m:null,d=u(e.start.node,e.start.offset),h=u(e.end.node,e.end.offset);if(d!==null&&h!==null)return{startNode:o.domNode,startOffset:d,endNode:o.domNode,endOffset:h}}return null}update(e,t){if(e.some(r=>r.type==="characterData"&&r.target===this.textNode)){const r=this.restore();r&&(t.range=r)}}optimize(e){super.optimize(e);let{parent:t}=this;for(;t;){if(t.domNode.tagName==="A"){this.savedLength=Mt.CONTENTS.length,t.isolate(this.offset(t),this.length()).unwrap(),this.savedLength=0;break}t=t.parent}}value(){return""}};Ee(Mt,"blotName","cursor"),Ee(Mt,"className","ql-cursor"),Ee(Mt,"tagName","span"),Ee(Mt,"CONTENTS","\uFEFF");let cr=Mt;var Jo={exports:{}},ic;function lb(){return ic||(ic=1,function(n){var e=Object.prototype.hasOwnProperty,t="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(t=!1));function s(o,u,d){this.fn=o,this.context=u,this.once=d||!1}function l(o,u,d,h,f){if(typeof d!="function")throw new TypeError("The listener must be a function");var m=new s(d,h||o,f),p=t?t+u:u;return o._events[p]?o._events[p].fn?o._events[p]=[o._events[p],m]:o._events[p].push(m):(o._events[p]=m,o._eventsCount++),o}function a(o,u){--o._eventsCount===0?o._events=new r:delete o._events[u]}function c(){this._events=new r,this._eventsCount=0}c.prototype.eventNames=function(){var u=[],d,h;if(this._eventsCount===0)return u;for(h in d=this._events)e.call(d,h)&&u.push(t?h.slice(1):h);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(d)):u},c.prototype.listeners=function(u){var d=t?t+u:u,h=this._events[d];if(!h)return[];if(h.fn)return[h.fn];for(var f=0,m=h.length,p=new Array(m);f<m;f++)p[f]=h[f].fn;return p},c.prototype.listenerCount=function(u){var d=t?t+u:u,h=this._events[d];return h?h.fn?1:h.length:0},c.prototype.emit=function(u,d,h,f,m,p){var y=t?t+u:u;if(!this._events[y])return!1;var b=this._events[y],A=arguments.length,T,O;if(b.fn){switch(b.once&&this.removeListener(u,b.fn,void 0,!0),A){case 1:return b.fn.call(b.context),!0;case 2:return b.fn.call(b.context,d),!0;case 3:return b.fn.call(b.context,d,h),!0;case 4:return b.fn.call(b.context,d,h,f),!0;case 5:return b.fn.call(b.context,d,h,f,m),!0;case 6:return b.fn.call(b.context,d,h,f,m,p),!0}for(O=1,T=new Array(A-1);O<A;O++)T[O-1]=arguments[O];b.fn.apply(b.context,T)}else{var F=b.length,M;for(O=0;O<F;O++)switch(b[O].once&&this.removeListener(u,b[O].fn,void 0,!0),A){case 1:b[O].fn.call(b[O].context);break;case 2:b[O].fn.call(b[O].context,d);break;case 3:b[O].fn.call(b[O].context,d,h);break;case 4:b[O].fn.call(b[O].context,d,h,f);break;default:if(!T)for(M=1,T=new Array(A-1);M<A;M++)T[M-1]=arguments[M];b[O].fn.apply(b[O].context,T)}}return!0},c.prototype.on=function(u,d,h){return l(this,u,d,h,!1)},c.prototype.once=function(u,d,h){return l(this,u,d,h,!0)},c.prototype.removeListener=function(u,d,h,f){var m=t?t+u:u;if(!this._events[m])return this;if(!d)return a(this,m),this;var p=this._events[m];if(p.fn)p.fn===d&&(!f||p.once)&&(!h||p.context===h)&&a(this,m);else{for(var y=0,b=[],A=p.length;y<A;y++)(p[y].fn!==d||f&&!p[y].once||h&&p[y].context!==h)&&b.push(p[y]);b.length?this._events[m]=b.length===1?b[0]:b:a(this,m)}return this},c.prototype.removeAllListeners=function(u){var d;return u?(d=t?t+u:u,this._events[d]&&a(this,d)):(this._events=new r,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=t,c.EventEmitter=c,n.exports=c}(Jo)),Jo.exports}var cb=lb();const ub=Eo(cb),ei=new WeakMap,ti=["error","warn","log","info"];let ni="warn";function ac(n){if(ni&&ti.indexOf(n)<=ti.indexOf(ni)){for(var e=arguments.length,t=new Array(e>1?e-1:0),r=1;r<e;r++)t[r-1]=arguments[r];console[n](...t)}}function fn(n){return ti.reduce((e,t)=>(e[t]=ac.bind(console,t,n),e),{})}fn.level=n=>{ni=n},ac.level=fn.level;const ri=fn("quill:events");["selectionchange","mousedown","mouseup","click"].forEach(n=>{document.addEventListener(n,function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];Array.from(document.querySelectorAll(".ql-container")).forEach(s=>{const l=ei.get(s);l&&l.emitter&&l.emitter.handleDOM(...t)})})});class Se extends ub{constructor(){super(),this.domListeners={},this.on("error",ri.error)}emit(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return ri.log.call(ri,...t),super.emit(...t)}handleDOM(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),s=1;s<t;s++)r[s-1]=arguments[s];(this.domListeners[e.type]||[]).forEach(l=>{let{node:a,handler:c}=l;(e.target===a||a.contains(e.target))&&c(e,...r)})}listenDOM(e,t,r){this.domListeners[e]||(this.domListeners[e]=[]),this.domListeners[e].push({node:t,handler:r})}}Ee(Se,"events",{EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_BLOT_MOUNT:"scroll-blot-mount",SCROLL_BLOT_UNMOUNT:"scroll-blot-unmount",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SCROLL_EMBED_UPDATE:"scroll-embed-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change",COMPOSITION_BEFORE_START:"composition-before-start",COMPOSITION_START:"composition-start",COMPOSITION_BEFORE_END:"composition-before-end",COMPOSITION_END:"composition-end"}),Ee(Se,"sources",{API:"api",SILENT:"silent",USER:"user"});const si=fn("quill:selection");class $n{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.index=e,this.length=t}}class db{constructor(e,t){this.emitter=t,this.scroll=e,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=this.scroll.create("cursor",this),this.savedRange=new $n(0,0),this.lastRange=this.savedRange,this.lastNative=null,this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,()=>{!this.mouseDown&&!this.composing&&setTimeout(this.update.bind(this,Se.sources.USER),1)}),this.emitter.on(Se.events.SCROLL_BEFORE_UPDATE,()=>{if(!this.hasFocus())return;const r=this.getNativeRange();r!=null&&r.start.node!==this.cursor.textNode&&this.emitter.once(Se.events.SCROLL_UPDATE,(s,l)=>{try{this.root.contains(r.start.node)&&this.root.contains(r.end.node)&&this.setNativeRange(r.start.node,r.start.offset,r.end.node,r.end.offset);const a=l.some(c=>c.type==="characterData"||c.type==="childList"||c.type==="attributes"&&c.target===this.root);this.update(a?Se.sources.SILENT:s)}catch{}})}),this.emitter.on(Se.events.SCROLL_OPTIMIZE,(r,s)=>{if(s.range){const{startNode:l,startOffset:a,endNode:c,endOffset:o}=s.range;this.setNativeRange(l,a,c,o),this.update(Se.sources.SILENT)}}),this.update(Se.sources.SILENT)}handleComposition(){this.emitter.on(Se.events.COMPOSITION_BEFORE_START,()=>{this.composing=!0}),this.emitter.on(Se.events.COMPOSITION_END,()=>{if(this.composing=!1,this.cursor.parent){const e=this.cursor.restore();if(!e)return;setTimeout(()=>{this.setNativeRange(e.startNode,e.startOffset,e.endNode,e.endOffset)},1)}})}handleDragging(){this.emitter.listenDOM("mousedown",document.body,()=>{this.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,()=>{this.mouseDown=!1,this.update(Se.sources.USER)})}focus(){this.hasFocus()||(this.root.focus({preventScroll:!0}),this.setRange(this.savedRange))}format(e,t){this.scroll.update();const r=this.getNativeRange();if(!(r==null||!r.native.collapsed||this.scroll.query(e,Ne.BLOCK))){if(r.start.node!==this.cursor.textNode){const s=this.scroll.find(r.start.node,!1);if(s==null)return;if(s instanceof yt){const l=s.split(r.start.offset);s.parent.insertBefore(this.cursor,l)}else s.insertBefore(this.cursor,r.start.node);this.cursor.attach()}this.cursor.format(e,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}getBounds(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const r=this.scroll.length();e=Math.min(e,r-1),t=Math.min(e+t,r-1)-e;let s,[l,a]=this.scroll.leaf(e);if(l==null)return null;if(t>0&&a===l.length()){const[d]=this.scroll.leaf(e+1);if(d){const[h]=this.scroll.line(e),[f]=this.scroll.line(e+1);h===f&&(l=d,a=0)}}[s,a]=l.position(a,!0);const c=document.createRange();if(t>0)return c.setStart(s,a),[l,a]=this.scroll.leaf(e+t),l==null?null:([s,a]=l.position(a,!0),c.setEnd(s,a),c.getBoundingClientRect());let o="left",u;if(s instanceof Text){if(!s.data.length)return null;a<s.data.length?(c.setStart(s,a),c.setEnd(s,a+1)):(c.setStart(s,a-1),c.setEnd(s,a),o="right"),u=c.getBoundingClientRect()}else{if(!(l.domNode instanceof Element))return null;u=l.domNode.getBoundingClientRect(),a>0&&(o="right")}return{bottom:u.top+u.height,height:u.height,left:u[o],right:u[o],top:u.top,width:0}}getNativeRange(){const e=document.getSelection();if(e==null||e.rangeCount<=0)return null;const t=e.getRangeAt(0);if(t==null)return null;const r=this.normalizeNative(t);return si.info("getNativeRange",r),r}getRange(){const e=this.scroll.domNode;if("isConnected"in e&&!e.isConnected)return[null,null];const t=this.getNativeRange();return t==null?[null,null]:[this.normalizedToRange(t),t]}hasFocus(){return document.activeElement===this.root||document.activeElement!=null&&oi(this.root,document.activeElement)}normalizedToRange(e){const t=[[e.start.node,e.start.offset]];e.native.collapsed||t.push([e.end.node,e.end.offset]);const r=t.map(a=>{const[c,o]=a,u=this.scroll.find(c,!0),d=u.offset(this.scroll);return o===0?d:u instanceof yt?d+u.index(c,o):d+u.length()}),s=Math.min(Math.max(...r),this.scroll.length()-1),l=Math.min(s,...r);return new $n(l,s-l)}normalizeNative(e){if(!oi(this.root,e.startContainer)||!e.collapsed&&!oi(this.root,e.endContainer))return null;const t={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};return[t.start,t.end].forEach(r=>{let{node:s,offset:l}=r;for(;!(s instanceof Text)&&s.childNodes.length>0;)if(s.childNodes.length>l)s=s.childNodes[l],l=0;else if(s.childNodes.length===l)s=s.lastChild,s instanceof Text?l=s.data.length:s.childNodes.length>0?l=s.childNodes.length:l=s.childNodes.length+1;else break;r.node=s,r.offset=l}),t}rangeToNative(e){const t=this.scroll.length(),r=(s,l)=>{s=Math.min(t-1,s);const[a,c]=this.scroll.leaf(s);return a?a.position(c,l):[null,-1]};return[...r(e.index,!1),...r(e.index+e.length,!0)]}setNativeRange(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:t,l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(si.info("setNativeRange",e,t,r,s),e!=null&&(this.root.parentNode==null||e.parentNode==null||r.parentNode==null))return;const a=document.getSelection();if(a!=null)if(e!=null){this.hasFocus()||this.root.focus({preventScroll:!0});const{native:c}=this.getNativeRange()||{};if(c==null||l||e!==c.startContainer||t!==c.startOffset||r!==c.endContainer||s!==c.endOffset){e instanceof Element&&e.tagName==="BR"&&(t=Array.from(e.parentNode.childNodes).indexOf(e),e=e.parentNode),r instanceof Element&&r.tagName==="BR"&&(s=Array.from(r.parentNode.childNodes).indexOf(r),r=r.parentNode);const o=document.createRange();o.setStart(e,t),o.setEnd(r,s),a.removeAllRanges(),a.addRange(o)}}else a.removeAllRanges(),this.root.blur()}setRange(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Se.sources.API;if(typeof t=="string"&&(r=t,t=!1),si.info("setRange",e),e!=null){const s=this.rangeToNative(e);this.setNativeRange(...s,t)}else this.setNativeRange(null);this.update(r)}update(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Se.sources.USER;const t=this.lastRange,[r,s]=this.getRange();if(this.lastRange=r,this.lastNative=s,this.lastRange!=null&&(this.savedRange=this.lastRange),!Go(t,this.lastRange)){if(!this.composing&&s!=null&&s.native.collapsed&&s.start.node!==this.cursor.textNode){const a=this.cursor.restore();a&&this.setNativeRange(a.startNode,a.startOffset,a.endNode,a.endOffset)}const l=[Se.events.SELECTION_CHANGE,rr(this.lastRange),rr(t),e];this.emitter.emit(Se.events.EDITOR_CHANGE,...l),e!==Se.sources.SILENT&&this.emitter.emit(...l)}}}function oi(n,e){try{e.parentNode}catch{return!1}return n.contains(e)}const fb=/^[ -~]*$/;class hb{constructor(e){this.scroll=e,this.delta=this.getDelta()}applyDelta(e){this.scroll.update();let t=this.scroll.length();this.scroll.batchStart();const r=lc(e),s=new Te;return mb(r.ops.slice()).reduce((a,c)=>{const o=Lt.Op.length(c);let u=c.attributes||{},d=!1,h=!1;if(c.insert!=null){if(s.retain(o),typeof c.insert=="string"){const p=c.insert;h=!p.endsWith(`
21
+ `,Pt(n))}function Pt(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return n==null||("formats"in n&&typeof n.formats=="function"&&(e={...e,...n.formats()},t&&delete e["code-token"]),n.parent==null||n.parent.statics.blotName==="scroll"||n.parent.statics.scope!==n.statics.scope)?e:Pt(n.parent,e,t)}const Mt=class Mt extends Ot{static value(){}constructor(e,t,r){super(e,t),this.selection=r,this.textNode=document.createTextNode(Mt.CONTENTS),this.domNode.appendChild(this.textNode),this.savedLength=0}detach(){this.parent!=null&&this.parent.removeChild(this)}format(e,t){if(this.savedLength!==0){super.format(e,t);return}let r=this,s=0;for(;r!=null&&r.statics.scope!==Ne.BLOCK_BLOT;)s+=r.offset(r.parent),r=r.parent;r!=null&&(this.savedLength=Mt.CONTENTS.length,r.optimize(),r.formatAt(s,Mt.CONTENTS.length,e,t),this.savedLength=0)}index(e,t){return e===this.textNode?0:super.index(e,t)}length(){return this.savedLength}position(){return[this.textNode,this.textNode.data.length]}remove(){super.remove(),this.parent=null}restore(){if(this.selection.composing||this.parent==null)return null;const e=this.selection.getNativeRange();for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);const t=this.prev instanceof Ht?this.prev:null,r=t?t.length():0,s=this.next instanceof Ht?this.next:null,l=s?s.text:"",{textNode:a}=this,c=a.data.split(Mt.CONTENTS).join("");a.data=Mt.CONTENTS;let o;if(t)o=t,(c||s)&&(t.insertAt(t.length(),c+l),s&&s.remove());else if(s)o=s,s.insertAt(0,c);else{const u=document.createTextNode(c);o=this.scroll.create(u),this.parent.insertBefore(o,this)}if(this.remove(),e){const u=(f,m)=>t&&f===t.domNode?m:f===a?r+m-1:s&&f===s.domNode?r+c.length+m:null,d=u(e.start.node,e.start.offset),h=u(e.end.node,e.end.offset);if(d!==null&&h!==null)return{startNode:o.domNode,startOffset:d,endNode:o.domNode,endOffset:h}}return null}update(e,t){if(e.some(r=>r.type==="characterData"&&r.target===this.textNode)){const r=this.restore();r&&(t.range=r)}}optimize(e){super.optimize(e);let{parent:t}=this;for(;t;){if(t.domNode.tagName==="A"){this.savedLength=Mt.CONTENTS.length,t.isolate(this.offset(t),this.length()).unwrap(),this.savedLength=0;break}t=t.parent}}value(){return""}};Ee(Mt,"blotName","cursor"),Ee(Mt,"className","ql-cursor"),Ee(Mt,"tagName","span"),Ee(Mt,"CONTENTS","\uFEFF");let cr=Mt;var Qo={exports:{}},ic;function db(){return ic||(ic=1,function(n){var e=Object.prototype.hasOwnProperty,t="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(t=!1));function s(o,u,d){this.fn=o,this.context=u,this.once=d||!1}function l(o,u,d,h,f){if(typeof d!="function")throw new TypeError("The listener must be a function");var m=new s(d,h||o,f),p=t?t+u:u;return o._events[p]?o._events[p].fn?o._events[p]=[o._events[p],m]:o._events[p].push(m):(o._events[p]=m,o._eventsCount++),o}function a(o,u){--o._eventsCount===0?o._events=new r:delete o._events[u]}function c(){this._events=new r,this._eventsCount=0}c.prototype.eventNames=function(){var u=[],d,h;if(this._eventsCount===0)return u;for(h in d=this._events)e.call(d,h)&&u.push(t?h.slice(1):h);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(d)):u},c.prototype.listeners=function(u){var d=t?t+u:u,h=this._events[d];if(!h)return[];if(h.fn)return[h.fn];for(var f=0,m=h.length,p=new Array(m);f<m;f++)p[f]=h[f].fn;return p},c.prototype.listenerCount=function(u){var d=t?t+u:u,h=this._events[d];return h?h.fn?1:h.length:0},c.prototype.emit=function(u,d,h,f,m,p){var y=t?t+u:u;if(!this._events[y])return!1;var b=this._events[y],A=arguments.length,T,O;if(b.fn){switch(b.once&&this.removeListener(u,b.fn,void 0,!0),A){case 1:return b.fn.call(b.context),!0;case 2:return b.fn.call(b.context,d),!0;case 3:return b.fn.call(b.context,d,h),!0;case 4:return b.fn.call(b.context,d,h,f),!0;case 5:return b.fn.call(b.context,d,h,f,m),!0;case 6:return b.fn.call(b.context,d,h,f,m,p),!0}for(O=1,T=new Array(A-1);O<A;O++)T[O-1]=arguments[O];b.fn.apply(b.context,T)}else{var F=b.length,M;for(O=0;O<F;O++)switch(b[O].once&&this.removeListener(u,b[O].fn,void 0,!0),A){case 1:b[O].fn.call(b[O].context);break;case 2:b[O].fn.call(b[O].context,d);break;case 3:b[O].fn.call(b[O].context,d,h);break;case 4:b[O].fn.call(b[O].context,d,h,f);break;default:if(!T)for(M=1,T=new Array(A-1);M<A;M++)T[M-1]=arguments[M];b[O].fn.apply(b[O].context,T)}}return!0},c.prototype.on=function(u,d,h){return l(this,u,d,h,!1)},c.prototype.once=function(u,d,h){return l(this,u,d,h,!0)},c.prototype.removeListener=function(u,d,h,f){var m=t?t+u:u;if(!this._events[m])return this;if(!d)return a(this,m),this;var p=this._events[m];if(p.fn)p.fn===d&&(!f||p.once)&&(!h||p.context===h)&&a(this,m);else{for(var y=0,b=[],A=p.length;y<A;y++)(p[y].fn!==d||f&&!p[y].once||h&&p[y].context!==h)&&b.push(p[y]);b.length?this._events[m]=b.length===1?b[0]:b:a(this,m)}return this},c.prototype.removeAllListeners=function(u){var d;return u?(d=t?t+u:u,this._events[d]&&a(this,d)):(this._events=new r,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=t,c.EventEmitter=c,n.exports=c}(Qo)),Qo.exports}var fb=db();const hb=Eo(fb),ei=new WeakMap,ti=["error","warn","log","info"];let ni="warn";function ac(n){if(ni&&ti.indexOf(n)<=ti.indexOf(ni)){for(var e=arguments.length,t=new Array(e>1?e-1:0),r=1;r<e;r++)t[r-1]=arguments[r];console[n](...t)}}function fn(n){return ti.reduce((e,t)=>(e[t]=ac.bind(console,t,n),e),{})}fn.level=n=>{ni=n},ac.level=fn.level;const ri=fn("quill:events");["selectionchange","mousedown","mouseup","click"].forEach(n=>{document.addEventListener(n,function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];Array.from(document.querySelectorAll(".ql-container")).forEach(s=>{const l=ei.get(s);l&&l.emitter&&l.emitter.handleDOM(...t)})})});class Se extends hb{constructor(){super(),this.domListeners={},this.on("error",ri.error)}emit(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return ri.log.call(ri,...t),super.emit(...t)}handleDOM(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),s=1;s<t;s++)r[s-1]=arguments[s];(this.domListeners[e.type]||[]).forEach(l=>{let{node:a,handler:c}=l;(e.target===a||a.contains(e.target))&&c(e,...r)})}listenDOM(e,t,r){this.domListeners[e]||(this.domListeners[e]=[]),this.domListeners[e].push({node:t,handler:r})}}Ee(Se,"events",{EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_BLOT_MOUNT:"scroll-blot-mount",SCROLL_BLOT_UNMOUNT:"scroll-blot-unmount",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SCROLL_EMBED_UPDATE:"scroll-embed-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change",COMPOSITION_BEFORE_START:"composition-before-start",COMPOSITION_START:"composition-start",COMPOSITION_BEFORE_END:"composition-before-end",COMPOSITION_END:"composition-end"}),Ee(Se,"sources",{API:"api",SILENT:"silent",USER:"user"});const si=fn("quill:selection");class $n{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.index=e,this.length=t}}class pb{constructor(e,t){this.emitter=t,this.scroll=e,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=this.scroll.create("cursor",this),this.savedRange=new $n(0,0),this.lastRange=this.savedRange,this.lastNative=null,this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,()=>{!this.mouseDown&&!this.composing&&setTimeout(this.update.bind(this,Se.sources.USER),1)}),this.emitter.on(Se.events.SCROLL_BEFORE_UPDATE,()=>{if(!this.hasFocus())return;const r=this.getNativeRange();r!=null&&r.start.node!==this.cursor.textNode&&this.emitter.once(Se.events.SCROLL_UPDATE,(s,l)=>{try{this.root.contains(r.start.node)&&this.root.contains(r.end.node)&&this.setNativeRange(r.start.node,r.start.offset,r.end.node,r.end.offset);const a=l.some(c=>c.type==="characterData"||c.type==="childList"||c.type==="attributes"&&c.target===this.root);this.update(a?Se.sources.SILENT:s)}catch{}})}),this.emitter.on(Se.events.SCROLL_OPTIMIZE,(r,s)=>{if(s.range){const{startNode:l,startOffset:a,endNode:c,endOffset:o}=s.range;this.setNativeRange(l,a,c,o),this.update(Se.sources.SILENT)}}),this.update(Se.sources.SILENT)}handleComposition(){this.emitter.on(Se.events.COMPOSITION_BEFORE_START,()=>{this.composing=!0}),this.emitter.on(Se.events.COMPOSITION_END,()=>{if(this.composing=!1,this.cursor.parent){const e=this.cursor.restore();if(!e)return;setTimeout(()=>{this.setNativeRange(e.startNode,e.startOffset,e.endNode,e.endOffset)},1)}})}handleDragging(){this.emitter.listenDOM("mousedown",document.body,()=>{this.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,()=>{this.mouseDown=!1,this.update(Se.sources.USER)})}focus(){this.hasFocus()||(this.root.focus({preventScroll:!0}),this.setRange(this.savedRange))}format(e,t){this.scroll.update();const r=this.getNativeRange();if(!(r==null||!r.native.collapsed||this.scroll.query(e,Ne.BLOCK))){if(r.start.node!==this.cursor.textNode){const s=this.scroll.find(r.start.node,!1);if(s==null)return;if(s instanceof yt){const l=s.split(r.start.offset);s.parent.insertBefore(this.cursor,l)}else s.insertBefore(this.cursor,r.start.node);this.cursor.attach()}this.cursor.format(e,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}getBounds(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const r=this.scroll.length();e=Math.min(e,r-1),t=Math.min(e+t,r-1)-e;let s,[l,a]=this.scroll.leaf(e);if(l==null)return null;if(t>0&&a===l.length()){const[d]=this.scroll.leaf(e+1);if(d){const[h]=this.scroll.line(e),[f]=this.scroll.line(e+1);h===f&&(l=d,a=0)}}[s,a]=l.position(a,!0);const c=document.createRange();if(t>0)return c.setStart(s,a),[l,a]=this.scroll.leaf(e+t),l==null?null:([s,a]=l.position(a,!0),c.setEnd(s,a),c.getBoundingClientRect());let o="left",u;if(s instanceof Text){if(!s.data.length)return null;a<s.data.length?(c.setStart(s,a),c.setEnd(s,a+1)):(c.setStart(s,a-1),c.setEnd(s,a),o="right"),u=c.getBoundingClientRect()}else{if(!(l.domNode instanceof Element))return null;u=l.domNode.getBoundingClientRect(),a>0&&(o="right")}return{bottom:u.top+u.height,height:u.height,left:u[o],right:u[o],top:u.top,width:0}}getNativeRange(){const e=document.getSelection();if(e==null||e.rangeCount<=0)return null;const t=e.getRangeAt(0);if(t==null)return null;const r=this.normalizeNative(t);return si.info("getNativeRange",r),r}getRange(){const e=this.scroll.domNode;if("isConnected"in e&&!e.isConnected)return[null,null];const t=this.getNativeRange();return t==null?[null,null]:[this.normalizedToRange(t),t]}hasFocus(){return document.activeElement===this.root||document.activeElement!=null&&oi(this.root,document.activeElement)}normalizedToRange(e){const t=[[e.start.node,e.start.offset]];e.native.collapsed||t.push([e.end.node,e.end.offset]);const r=t.map(a=>{const[c,o]=a,u=this.scroll.find(c,!0),d=u.offset(this.scroll);return o===0?d:u instanceof yt?d+u.index(c,o):d+u.length()}),s=Math.min(Math.max(...r),this.scroll.length()-1),l=Math.min(s,...r);return new $n(l,s-l)}normalizeNative(e){if(!oi(this.root,e.startContainer)||!e.collapsed&&!oi(this.root,e.endContainer))return null;const t={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};return[t.start,t.end].forEach(r=>{let{node:s,offset:l}=r;for(;!(s instanceof Text)&&s.childNodes.length>0;)if(s.childNodes.length>l)s=s.childNodes[l],l=0;else if(s.childNodes.length===l)s=s.lastChild,s instanceof Text?l=s.data.length:s.childNodes.length>0?l=s.childNodes.length:l=s.childNodes.length+1;else break;r.node=s,r.offset=l}),t}rangeToNative(e){const t=this.scroll.length(),r=(s,l)=>{s=Math.min(t-1,s);const[a,c]=this.scroll.leaf(s);return a?a.position(c,l):[null,-1]};return[...r(e.index,!1),...r(e.index+e.length,!0)]}setNativeRange(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:t,l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(si.info("setNativeRange",e,t,r,s),e!=null&&(this.root.parentNode==null||e.parentNode==null||r.parentNode==null))return;const a=document.getSelection();if(a!=null)if(e!=null){this.hasFocus()||this.root.focus({preventScroll:!0});const{native:c}=this.getNativeRange()||{};if(c==null||l||e!==c.startContainer||t!==c.startOffset||r!==c.endContainer||s!==c.endOffset){e instanceof Element&&e.tagName==="BR"&&(t=Array.from(e.parentNode.childNodes).indexOf(e),e=e.parentNode),r instanceof Element&&r.tagName==="BR"&&(s=Array.from(r.parentNode.childNodes).indexOf(r),r=r.parentNode);const o=document.createRange();o.setStart(e,t),o.setEnd(r,s),a.removeAllRanges(),a.addRange(o)}}else a.removeAllRanges(),this.root.blur()}setRange(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Se.sources.API;if(typeof t=="string"&&(r=t,t=!1),si.info("setRange",e),e!=null){const s=this.rangeToNative(e);this.setNativeRange(...s,t)}else this.setNativeRange(null);this.update(r)}update(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Se.sources.USER;const t=this.lastRange,[r,s]=this.getRange();if(this.lastRange=r,this.lastNative=s,this.lastRange!=null&&(this.savedRange=this.lastRange),!Go(t,this.lastRange)){if(!this.composing&&s!=null&&s.native.collapsed&&s.start.node!==this.cursor.textNode){const a=this.cursor.restore();a&&this.setNativeRange(a.startNode,a.startOffset,a.endNode,a.endOffset)}const l=[Se.events.SELECTION_CHANGE,rr(this.lastRange),rr(t),e];this.emitter.emit(Se.events.EDITOR_CHANGE,...l),e!==Se.sources.SILENT&&this.emitter.emit(...l)}}}function oi(n,e){try{e.parentNode}catch{return!1}return n.contains(e)}const mb=/^[ -~]*$/;class gb{constructor(e){this.scroll=e,this.delta=this.getDelta()}applyDelta(e){this.scroll.update();let t=this.scroll.length();this.scroll.batchStart();const r=lc(e),s=new Te;return vb(r.ops.slice()).reduce((a,c)=>{const o=Lt.Op.length(c);let u=c.attributes||{},d=!1,h=!1;if(c.insert!=null){if(s.retain(o),typeof c.insert=="string"){const p=c.insert;h=!p.endsWith(`
22
22
  `)&&(t<=a||!!this.scroll.descendant(Bt,a)[0]),this.scroll.insertAt(a,p);const[y,b]=this.scroll.line(a);let A=Sn({},Pt(y));if(y instanceof ht){const[T]=y.descendant(yt,b);T&&(A=Sn(A,Pt(T)))}u=Lt.AttributeMap.diff(A,u)||{}}else if(typeof c.insert=="object"){const p=Object.keys(c.insert)[0];if(p==null)return a;const y=this.scroll.query(p,Ne.INLINE)!=null;if(y)(t<=a||this.scroll.descendant(Bt,a)[0])&&(h=!0);else if(a>0){const[b,A]=this.scroll.descendant(yt,a-1);b instanceof Ht?b.value()[A]!==`
23
- `&&(d=!0):b instanceof Ot&&b.statics.scope===Ne.INLINE_BLOT&&(d=!0)}if(this.scroll.insertAt(a,p,c.insert[p]),y){const[b]=this.scroll.descendant(yt,a);if(b){const A=Sn({},Pt(b));u=Lt.AttributeMap.diff(A,u)||{}}}}t+=o}else if(s.push(c),c.retain!==null&&typeof c.retain=="object"){const p=Object.keys(c.retain)[0];if(p==null)return a;this.scroll.updateEmbedAt(a,p,c.retain[p])}Object.keys(u).forEach(p=>{this.scroll.formatAt(a,o,p,u[p])});const f=d?1:0,m=h?1:0;return t+=f+m,s.retain(f),s.delete(m),a+o+f+m},0),s.reduce((a,c)=>typeof c.delete=="number"?(this.scroll.deleteAt(a,c.delete),a):a+Lt.Op.length(c),0),this.scroll.batchEnd(),this.scroll.optimize(),this.update(r)}deleteText(e,t){return this.scroll.deleteAt(e,t),this.update(new Te().retain(e).delete(t))}formatLine(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.scroll.update(),Object.keys(r).forEach(l=>{this.scroll.lines(e,Math.max(t,1)).forEach(a=>{a.format(l,r[l])})}),this.scroll.optimize();const s=new Te().retain(e).retain(t,rr(r));return this.update(s)}formatText(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.keys(r).forEach(l=>{this.scroll.formatAt(e,t,l,r[l])});const s=new Te().retain(e).retain(t,rr(r));return this.update(s)}getContents(e,t){return this.delta.slice(e,e+t)}getDelta(){return this.scroll.lines().reduce((e,t)=>e.concat(t.delta()),new Te)}getFormat(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=[],s=[];t===0?this.scroll.path(e).forEach(c=>{const[o]=c;o instanceof ht?r.push(o):o instanceof yt&&s.push(o)}):(r=this.scroll.lines(e,t),s=this.scroll.descendants(yt,e,t));const[l,a]=[r,s].map(c=>{const o=c.shift();if(o==null)return{};let u=Pt(o);for(;Object.keys(u).length>0;){const d=c.shift();if(d==null)return u;u=pb(Pt(d),u)}return u});return{...l,...a}}getHTML(e,t){const[r,s]=this.scroll.line(e);if(r){const l=r.length();return r.length()>=s+t&&!(s===0&&t===l)?qr(r,s,t,!0):qr(this.scroll,e,t,!0)}return""}getText(e,t){return this.getContents(e,t).filter(r=>typeof r.insert=="string").map(r=>r.insert).join("")}insertContents(e,t){const r=lc(t),s=new Te().retain(e).concat(r);return this.scroll.insertContents(e,r),this.update(s)}insertEmbed(e,t,r){return this.scroll.insertAt(e,t,r),this.update(new Te().retain(e).insert({[t]:r}))}insertText(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return t=t.replace(/\r\n/g,`
23
+ `&&(d=!0):b instanceof Ot&&b.statics.scope===Ne.INLINE_BLOT&&(d=!0)}if(this.scroll.insertAt(a,p,c.insert[p]),y){const[b]=this.scroll.descendant(yt,a);if(b){const A=Sn({},Pt(b));u=Lt.AttributeMap.diff(A,u)||{}}}}t+=o}else if(s.push(c),c.retain!==null&&typeof c.retain=="object"){const p=Object.keys(c.retain)[0];if(p==null)return a;this.scroll.updateEmbedAt(a,p,c.retain[p])}Object.keys(u).forEach(p=>{this.scroll.formatAt(a,o,p,u[p])});const f=d?1:0,m=h?1:0;return t+=f+m,s.retain(f),s.delete(m),a+o+f+m},0),s.reduce((a,c)=>typeof c.delete=="number"?(this.scroll.deleteAt(a,c.delete),a):a+Lt.Op.length(c),0),this.scroll.batchEnd(),this.scroll.optimize(),this.update(r)}deleteText(e,t){return this.scroll.deleteAt(e,t),this.update(new Te().retain(e).delete(t))}formatLine(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.scroll.update(),Object.keys(r).forEach(l=>{this.scroll.lines(e,Math.max(t,1)).forEach(a=>{a.format(l,r[l])})}),this.scroll.optimize();const s=new Te().retain(e).retain(t,rr(r));return this.update(s)}formatText(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.keys(r).forEach(l=>{this.scroll.formatAt(e,t,l,r[l])});const s=new Te().retain(e).retain(t,rr(r));return this.update(s)}getContents(e,t){return this.delta.slice(e,e+t)}getDelta(){return this.scroll.lines().reduce((e,t)=>e.concat(t.delta()),new Te)}getFormat(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=[],s=[];t===0?this.scroll.path(e).forEach(c=>{const[o]=c;o instanceof ht?r.push(o):o instanceof yt&&s.push(o)}):(r=this.scroll.lines(e,t),s=this.scroll.descendants(yt,e,t));const[l,a]=[r,s].map(c=>{const o=c.shift();if(o==null)return{};let u=Pt(o);for(;Object.keys(u).length>0;){const d=c.shift();if(d==null)return u;u=yb(Pt(d),u)}return u});return{...l,...a}}getHTML(e,t){const[r,s]=this.scroll.line(e);if(r){const l=r.length();return r.length()>=s+t&&!(s===0&&t===l)?qr(r,s,t,!0):qr(this.scroll,e,t,!0)}return""}getText(e,t){return this.getContents(e,t).filter(r=>typeof r.insert=="string").map(r=>r.insert).join("")}insertContents(e,t){const r=lc(t),s=new Te().retain(e).concat(r);return this.scroll.insertContents(e,r),this.update(s)}insertEmbed(e,t,r){return this.scroll.insertAt(e,t,r),this.update(new Te().retain(e).insert({[t]:r}))}insertText(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return t=t.replace(/\r\n/g,`
24
24
  `).replace(/\r/g,`
25
25
  `),this.scroll.insertAt(e,t),Object.keys(r).forEach(s=>{this.scroll.formatAt(e,t.length,s,r[s])}),this.update(new Te().retain(e).insert(t,rr(r)))}isBlank(){if(this.scroll.children.length===0)return!0;if(this.scroll.children.length>1)return!1;const e=this.scroll.children.head;if((e==null?void 0:e.statics.blotName)!==ht.blotName)return!1;const t=e;return t.children.length>1?!1:t.children.head instanceof zt}removeFormat(e,t){const r=this.getText(e,t),[s,l]=this.scroll.line(e+t);let a=0,c=new Te;s!=null&&(a=s.length()-l,c=s.delta().slice(l,l+a-1).insert(`
26
- `));const u=this.getContents(e,t+a).diff(new Te().insert(r).concat(c)),d=new Te().retain(e).concat(u);return this.applyDelta(d)}update(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;const s=this.delta;if(t.length===1&&t[0].type==="characterData"&&t[0].target.data.match(fb)&&this.scroll.find(t[0].target)){const l=this.scroll.find(t[0].target),a=Pt(l),c=l.offset(this.scroll),o=t[0].oldValue.replace(cr.CONTENTS,""),u=new Te().insert(o),d=new Te().insert(l.value()),h=r&&{oldRange:cc(r.oldRange,-c),newRange:cc(r.newRange,-c)};e=new Te().retain(c).concat(u.diff(d,h)).reduce((m,p)=>p.insert?m.insert(p.insert,a):m.push(p),new Te),this.delta=s.compose(e)}else this.delta=this.getDelta(),(!e||!Go(s.compose(e),this.delta))&&(e=s.diff(this.delta,r));return e}}function ur(n,e,t){if(n.length===0){const[m]=ii(t.pop());return e<=0?`</li></${m}>`:`</li></${m}>${ur([],e-1,t)}`}const[{child:r,offset:s,length:l,indent:a,type:c},...o]=n,[u,d]=ii(c);if(a>e)return t.push(c),a===e+1?`<${u}><li${d}>${qr(r,s,l)}${ur(o,a,t)}`:`<${u}><li>${ur(n,e+1,t)}`;const h=t[t.length-1];if(a===e&&c===h)return`</li><li${d}>${qr(r,s,l)}${ur(o,a,t)}`;const[f]=ii(t.pop());return`</li></${f}>${ur(n,e-1,t)}`}function qr(n,e,t){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if("html"in n&&typeof n.html=="function")return n.html(e,t);if(n instanceof Ht)return _s(n.value().slice(e,e+t)).replaceAll(" ","&nbsp;");if(n instanceof qt){if(n.statics.blotName==="list-container"){const u=[];return n.children.forEachAt(e,t,(d,h,f)=>{const m="formats"in d&&typeof d.formats=="function"?d.formats():{};u.push({child:d,offset:h,length:f,indent:m.indent||0,type:m.list})}),ur(u,-1,[])}const s=[];if(n.children.forEachAt(e,t,(u,d,h)=>{s.push(qr(u,d,h))}),r||n.statics.blotName==="list")return s.join("");const{outerHTML:l,innerHTML:a}=n.domNode,[c,o]=l.split(`>${a}<`);return c==="<table"?`<table style="border: 1px solid #000;">${s.join("")}<${o}`:`${c}>${s.join("")}<${o}`}return n.domNode instanceof Element?n.domNode.outerHTML:""}function pb(n,e){return Object.keys(e).reduce((t,r)=>{if(n[r]==null)return t;const s=e[r];return s===n[r]?t[r]=s:Array.isArray(s)?s.indexOf(n[r])<0?t[r]=s.concat([n[r]]):t[r]=s:t[r]=[s,n[r]],t},{})}function ii(n){const e=n==="ordered"?"ol":"ul";switch(n){case"checked":return[e,' data-list="checked"'];case"unchecked":return[e,' data-list="unchecked"'];default:return[e,""]}}function lc(n){return n.reduce((e,t)=>{if(typeof t.insert=="string"){const r=t.insert.replace(/\r\n/g,`
26
+ `));const u=this.getContents(e,t+a).diff(new Te().insert(r).concat(c)),d=new Te().retain(e).concat(u);return this.applyDelta(d)}update(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;const s=this.delta;if(t.length===1&&t[0].type==="characterData"&&t[0].target.data.match(mb)&&this.scroll.find(t[0].target)){const l=this.scroll.find(t[0].target),a=Pt(l),c=l.offset(this.scroll),o=t[0].oldValue.replace(cr.CONTENTS,""),u=new Te().insert(o),d=new Te().insert(l.value()),h=r&&{oldRange:cc(r.oldRange,-c),newRange:cc(r.newRange,-c)};e=new Te().retain(c).concat(u.diff(d,h)).reduce((m,p)=>p.insert?m.insert(p.insert,a):m.push(p),new Te),this.delta=s.compose(e)}else this.delta=this.getDelta(),(!e||!Go(s.compose(e),this.delta))&&(e=s.diff(this.delta,r));return e}}function ur(n,e,t){if(n.length===0){const[m]=ii(t.pop());return e<=0?`</li></${m}>`:`</li></${m}>${ur([],e-1,t)}`}const[{child:r,offset:s,length:l,indent:a,type:c},...o]=n,[u,d]=ii(c);if(a>e)return t.push(c),a===e+1?`<${u}><li${d}>${qr(r,s,l)}${ur(o,a,t)}`:`<${u}><li>${ur(n,e+1,t)}`;const h=t[t.length-1];if(a===e&&c===h)return`</li><li${d}>${qr(r,s,l)}${ur(o,a,t)}`;const[f]=ii(t.pop());return`</li></${f}>${ur(n,e-1,t)}`}function qr(n,e,t){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if("html"in n&&typeof n.html=="function")return n.html(e,t);if(n instanceof Ht)return _s(n.value().slice(e,e+t)).replaceAll(" ","&nbsp;");if(n instanceof qt){if(n.statics.blotName==="list-container"){const u=[];return n.children.forEachAt(e,t,(d,h,f)=>{const m="formats"in d&&typeof d.formats=="function"?d.formats():{};u.push({child:d,offset:h,length:f,indent:m.indent||0,type:m.list})}),ur(u,-1,[])}const s=[];if(n.children.forEachAt(e,t,(u,d,h)=>{s.push(qr(u,d,h))}),r||n.statics.blotName==="list")return s.join("");const{outerHTML:l,innerHTML:a}=n.domNode,[c,o]=l.split(`>${a}<`);return c==="<table"?`<table style="border: 1px solid #000;">${s.join("")}<${o}`:`${c}>${s.join("")}<${o}`}return n.domNode instanceof Element?n.domNode.outerHTML:""}function yb(n,e){return Object.keys(e).reduce((t,r)=>{if(n[r]==null)return t;const s=e[r];return s===n[r]?t[r]=s:Array.isArray(s)?s.indexOf(n[r])<0?t[r]=s.concat([n[r]]):t[r]=s:t[r]=[s,n[r]],t},{})}function ii(n){const e=n==="ordered"?"ol":"ul";switch(n){case"checked":return[e,' data-list="checked"'];case"unchecked":return[e,' data-list="unchecked"'];default:return[e,""]}}function lc(n){return n.reduce((e,t)=>{if(typeof t.insert=="string"){const r=t.insert.replace(/\r\n/g,`
27
27
  `).replace(/\r/g,`
28
- `);return e.insert(r,t.attributes)}return e.push(t)},new Te)}function cc(n,e){let{index:t,length:r}=n;return new $n(t+e,r)}function mb(n){const e=[];return n.forEach(t=>{typeof t.insert=="string"?t.insert.split(`
28
+ `);return e.insert(r,t.attributes)}return e.push(t)},new Te)}function cc(n,e){let{index:t,length:r}=n;return new $n(t+e,r)}function vb(n){const e=[];return n.forEach(t=>{typeof t.insert=="string"?t.insert.split(`
29
29
  `).forEach((s,l)=>{l&&e.push({insert:`
30
- `,attributes:t.attributes}),s&&e.push({insert:s,attributes:t.attributes})}):e.push(t)}),e}class Gt{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.quill=e,this.options=t}}Ee(Gt,"DEFAULTS",{});const Vs="\uFEFF";class ai extends Ot{constructor(e,t){super(e,t),this.contentNode=document.createElement("span"),this.contentNode.setAttribute("contenteditable","false"),Array.from(this.domNode.childNodes).forEach(r=>{this.contentNode.appendChild(r)}),this.leftGuard=document.createTextNode(Vs),this.rightGuard=document.createTextNode(Vs),this.domNode.appendChild(this.leftGuard),this.domNode.appendChild(this.contentNode),this.domNode.appendChild(this.rightGuard)}index(e,t){return e===this.leftGuard?0:e===this.rightGuard?1:super.index(e,t)}restore(e){let t=null,r;const s=e.data.split(Vs).join("");if(e===this.leftGuard)if(this.prev instanceof Ht){const l=this.prev.length();this.prev.insertAt(l,s),t={startNode:this.prev.domNode,startOffset:l+s.length}}else r=document.createTextNode(s),this.parent.insertBefore(this.scroll.create(r),this),t={startNode:r,startOffset:s.length};else e===this.rightGuard&&(this.next instanceof Ht?(this.next.insertAt(0,s),t={startNode:this.next.domNode,startOffset:s.length}):(r=document.createTextNode(s),this.parent.insertBefore(this.scroll.create(r),this.next),t={startNode:r,startOffset:s.length}));return e.data=Vs,t}update(e,t){e.forEach(r=>{if(r.type==="characterData"&&(r.target===this.leftGuard||r.target===this.rightGuard)){const s=this.restore(r.target);s&&(t.range=s)}})}}class gb{constructor(e,t){Ee(this,"isComposing",!1);this.scroll=e,this.emitter=t,this.setupListeners()}setupListeners(){this.scroll.domNode.addEventListener("compositionstart",e=>{this.isComposing||this.handleCompositionStart(e)}),this.scroll.domNode.addEventListener("compositionend",e=>{this.isComposing&&queueMicrotask(()=>{this.handleCompositionEnd(e)})})}handleCompositionStart(e){const t=e.target instanceof Node?this.scroll.find(e.target,!0):null;t&&!(t instanceof ai)&&(this.emitter.emit(Se.events.COMPOSITION_BEFORE_START,e),this.scroll.batchStart(),this.emitter.emit(Se.events.COMPOSITION_START,e),this.isComposing=!0)}handleCompositionEnd(e){this.emitter.emit(Se.events.COMPOSITION_BEFORE_END,e),this.scroll.batchEnd(),this.emitter.emit(Se.events.COMPOSITION_END,e),this.isComposing=!1}}const es=class es{constructor(e,t){Ee(this,"modules",{});this.quill=e,this.options=t}init(){Object.keys(this.options.modules).forEach(e=>{this.modules[e]==null&&this.addModule(e)})}addModule(e){const t=this.quill.constructor.import(`modules/${e}`);return this.modules[e]=new t(this.quill,this.options.modules[e]||{}),this.modules[e]}};Ee(es,"DEFAULTS",{modules:{}}),Ee(es,"themes",{default:es});let dr=es;const yb=n=>n.parentElement||n.getRootNode().host||null,vb=n=>{const e=n.getBoundingClientRect(),t="offsetWidth"in n&&Math.abs(e.width)/n.offsetWidth||1,r="offsetHeight"in n&&Math.abs(e.height)/n.offsetHeight||1;return{top:e.top,right:e.left+n.clientWidth*t,bottom:e.top+n.clientHeight*r,left:e.left}},js=n=>{const e=parseInt(n,10);return Number.isNaN(e)?0:e},uc=(n,e,t,r,s,l)=>n<t&&e>r?0:n<t?-(t-n+s):e>r?e-n>r-t?n+s-t:e-r+l:0,bb=(n,e)=>{var l,a,c;const t=n.ownerDocument;let r=e,s=n;for(;s;){const o=s===t.body,u=o?{top:0,right:((l=window.visualViewport)==null?void 0:l.width)??t.documentElement.clientWidth,bottom:((a=window.visualViewport)==null?void 0:a.height)??t.documentElement.clientHeight,left:0}:vb(s),d=getComputedStyle(s),h=uc(r.left,r.right,u.left,u.right,js(d.scrollPaddingLeft),js(d.scrollPaddingRight)),f=uc(r.top,r.bottom,u.top,u.bottom,js(d.scrollPaddingTop),js(d.scrollPaddingBottom));if(h||f)if(o)(c=t.defaultView)==null||c.scrollBy(h,f);else{const{scrollLeft:m,scrollTop:p}=s;f&&(s.scrollTop+=f),h&&(s.scrollLeft+=h);const y=s.scrollLeft-m,b=s.scrollTop-p;r={left:r.left-y,top:r.top-b,right:r.right-y,bottom:r.bottom-b}}s=o||d.position==="fixed"?null:yb(s)}},xb=100,Eb=["block","break","cursor","inline","scroll","text"],wb=(n,e,t)=>{const r=new or;return Eb.forEach(s=>{const l=e.query(s);l&&r.register(l)}),n.forEach(s=>{let l=e.query(s);l||t.error(`Cannot register "${s}" specified in "formats" config. Are you sure it was registered?`);let a=0;for(;l;)if(r.register(l),l="blotName"in l?l.requiredContainer??null:null,a+=1,a>xb){t.error(`Cycle detected in registering blot requiredContainer: "${s}"`);break}}),r},fr=fn("quill"),$s=new or;qt.uiClass="ql-ui";const Xt=class Xt{static debug(e){e===!0&&(e="log"),fn.level(e)}static find(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return ei.get(e)||$s.find(e,t)}static import(e){return this.imports[e]==null&&fr.error(`Cannot import ${e}. Are you sure it was registered?`),this.imports[e]}static register(){if(typeof(arguments.length<=0?void 0:arguments[0])!="string"){const e=arguments.length<=0?void 0:arguments[0],t=!!(!(arguments.length<=1)&&arguments[1]),r="attrName"in e?e.attrName:e.blotName;typeof r=="string"?this.register(`formats/${r}`,e,t):Object.keys(e).forEach(s=>{this.register(s,e[s],t)})}else{const e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],r=!!(!(arguments.length<=2)&&arguments[2]);this.imports[e]!=null&&!r&&fr.warn(`Overwriting ${e} with`,t),this.imports[e]=t,(e.startsWith("blots/")||e.startsWith("formats/"))&&t&&typeof t!="boolean"&&t.blotName!=="abstract"&&$s.register(t),typeof t.register=="function"&&t.register($s)}}constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.options=Ab(e,t),this.container=this.options.container,this.container==null){fr.error("Invalid Quill container",e);return}this.options.debug&&Xt.debug(this.options.debug);const r=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",ei.set(this.container,this),this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.emitter=new Se;const s=Yo.blotName,l=this.options.registry.query(s);if(!l||!("blotName"in l))throw new Error(`Cannot initialize Quill without "${s}" blot`);if(this.scroll=new l(this.options.registry,this.root,{emitter:this.emitter}),this.editor=new hb(this.scroll),this.selection=new db(this.scroll,this.emitter),this.composition=new gb(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.uploader=this.theme.addModule("uploader"),this.theme.addModule("input"),this.theme.addModule("uiNode"),this.theme.init(),this.emitter.on(Se.events.EDITOR_CHANGE,a=>{a===Se.events.TEXT_CHANGE&&this.root.classList.toggle("ql-blank",this.editor.isBlank())}),this.emitter.on(Se.events.SCROLL_UPDATE,(a,c)=>{const o=this.selection.lastRange,[u]=this.selection.getRange(),d=o&&u?{oldRange:o,newRange:u}:void 0;Wt.call(this,()=>this.editor.update(null,c,d),a)}),this.emitter.on(Se.events.SCROLL_EMBED_UPDATE,(a,c)=>{const o=this.selection.lastRange,[u]=this.selection.getRange(),d=o&&u?{oldRange:o,newRange:u}:void 0;Wt.call(this,()=>{const h=new Te().retain(a.offset(this)).retain({[a.statics.blotName]:c});return this.editor.update(h,[],d)},Xt.sources.USER)}),r){const a=this.clipboard.convert({html:`${r}<p><br></p>`,text:`
31
- `});this.setContents(a)}this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable(),this.allowReadOnlyEdits=!1}addContainer(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof e=="string"){const r=e;e=document.createElement("div"),e.classList.add(r)}return this.container.insertBefore(e,t),e}blur(){this.selection.setRange(null)}deleteText(e,t,r){return[e,t,,r]=hn(e,t,r),Wt.call(this,()=>this.editor.deleteText(e,t),r,e,-1*t)}disable(){this.enable(!1)}editReadOnly(e){this.allowReadOnlyEdits=!0;const t=e();return this.allowReadOnlyEdits=!1,t}enable(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(e),this.container.classList.toggle("ql-disabled",!e)}focus(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.selection.focus(),e.preventScroll||this.scrollSelectionIntoView()}format(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Se.sources.API;return Wt.call(this,()=>{const s=this.getSelection(!0);let l=new Te;if(s==null)return l;if(this.scroll.query(e,Ne.BLOCK))l=this.editor.formatLine(s.index,s.length,{[e]:t});else{if(s.length===0)return this.selection.format(e,t),l;l=this.editor.formatText(s.index,s.length,{[e]:t})}return this.setSelection(s,Se.sources.SILENT),l},r)}formatLine(e,t,r,s,l){let a;return[e,t,a,l]=hn(e,t,r,s,l),Wt.call(this,()=>this.editor.formatLine(e,t,a),l,e,0)}formatText(e,t,r,s,l){let a;return[e,t,a,l]=hn(e,t,r,s,l),Wt.call(this,()=>this.editor.formatText(e,t,a),l,e,0)}getBounds(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=null;if(typeof e=="number"?r=this.selection.getBounds(e,t):r=this.selection.getBounds(e.index,e.length),!r)return null;const s=this.container.getBoundingClientRect();return{bottom:r.bottom-s.top,height:r.height,left:r.left-s.left,right:r.right-s.left,top:r.top-s.top,width:r.width}}getContents(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-e;return[e,t]=hn(e,t),this.editor.getContents(e,t)}getFormat(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof e=="number"?this.editor.getFormat(e,t):this.editor.getFormat(e.index,e.length)}getIndex(e){return e.offset(this.scroll)}getLength(){return this.scroll.length()}getLeaf(e){return this.scroll.leaf(e)}getLine(e){return this.scroll.line(e)}getLines(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof e!="number"?this.scroll.lines(e.index,e.length):this.scroll.lines(e,t)}getModule(e){return this.theme.modules[e]}getSelection(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)&&this.focus(),this.update(),this.selection.getRange()[0]}getSemanticHTML(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;return typeof e=="number"&&(t=t??this.getLength()-e),[e,t]=hn(e,t),this.editor.getHTML(e,t)}getText(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;return typeof e=="number"&&(t=t??this.getLength()-e),[e,t]=hn(e,t),this.editor.getText(e,t)}hasFocus(){return this.selection.hasFocus()}insertEmbed(e,t,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Xt.sources.API;return Wt.call(this,()=>this.editor.insertEmbed(e,t,r),s,e)}insertText(e,t,r,s,l){let a;return[e,,a,l]=hn(e,0,r,s,l),Wt.call(this,()=>this.editor.insertText(e,t,a),l,e,t.length)}isEnabled(){return this.scroll.isEnabled()}off(){return this.emitter.off(...arguments)}on(){return this.emitter.on(...arguments)}once(){return this.emitter.once(...arguments)}removeFormat(e,t,r){return[e,t,,r]=hn(e,t,r),Wt.call(this,()=>this.editor.removeFormat(e,t),r,e)}scrollRectIntoView(e){bb(this.root,e)}scrollIntoView(){console.warn("Quill#scrollIntoView() has been deprecated and will be removed in the near future. Please use Quill#scrollSelectionIntoView() instead."),this.scrollSelectionIntoView()}scrollSelectionIntoView(){const e=this.selection.lastRange,t=e&&this.selection.getBounds(e.index,e.length);t&&this.scrollRectIntoView(t)}setContents(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Se.sources.API;return Wt.call(this,()=>{e=new Te(e);const r=this.getLength(),s=this.editor.deleteText(0,r),l=this.editor.insertContents(0,e),a=this.editor.deleteText(this.getLength()-1,1);return s.compose(l).compose(a)},t)}setSelection(e,t,r){e==null?this.selection.setRange(null,t||Xt.sources.API):([e,t,,r]=hn(e,t,r),this.selection.setRange(new $n(Math.max(0,e),t),r),r!==Se.sources.SILENT&&this.scrollSelectionIntoView())}setText(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Se.sources.API;const r=new Te().insert(e);return this.setContents(r,t)}update(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Se.sources.USER;const t=this.scroll.update(e);return this.selection.update(e),t}updateContents(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Se.sources.API;return Wt.call(this,()=>(e=new Te(e),this.editor.applyDelta(e)),t,!0)}};Ee(Xt,"DEFAULTS",{bounds:null,modules:{clipboard:!0,keyboard:!0,history:!0,uploader:!0},placeholder:"",readOnly:!1,registry:$s,theme:"default"}),Ee(Xt,"events",Se.events),Ee(Xt,"sources",Se.sources),Ee(Xt,"version","2.0.3"),Ee(Xt,"imports",{delta:Te,parchment:nb,"core/module":Gt,"core/theme":dr});let le=Xt;function dc(n){return typeof n=="string"?document.querySelector(n):n}function li(n){return Object.entries(n??{}).reduce((e,t)=>{let[r,s]=t;return{...e,[r]:s===!0?{}:s}},{})}function fc(n){return Object.fromEntries(Object.entries(n).filter(e=>e[1]!==void 0))}function Ab(n,e){const t=dc(n);if(!t)throw new Error("Invalid Quill container");const s=!e.theme||e.theme===le.DEFAULTS.theme?dr:le.import(`themes/${e.theme}`);if(!s)throw new Error(`Invalid theme ${e.theme}. Did you register it?`);const{modules:l,...a}=le.DEFAULTS,{modules:c,...o}=s.DEFAULTS;let u=li(e.modules);u!=null&&u.toolbar&&u.toolbar.constructor!==Object&&(u={...u,toolbar:{container:u.toolbar}});const d=Sn({},li(l),li(c),u),h={...a,...fc(o),...fc(e)};let f=e.registry;return f?e.formats&&fr.warn('Ignoring "formats" option because "registry" is specified'):f=e.formats?wb(e.formats,h.registry,fr):h.registry,{...h,registry:f,container:t,theme:s,modules:Object.entries(d).reduce((m,p)=>{let[y,b]=p;if(!b)return m;const A=le.import(`modules/${y}`);return A==null?(fr.error(`Cannot load ${y} module. Are you sure you registered it?`),m):{...m,[y]:Sn({},A.DEFAULTS||{},b)}},{}),bounds:dc(h.bounds)}}function Wt(n,e,t,r){if(!this.isEnabled()&&e===Se.sources.USER&&!this.allowReadOnlyEdits)return new Te;let s=t==null?null:this.getSelection();const l=this.editor.delta,a=n();if(s!=null&&(t===!0&&(t=s.index),r==null?s=hc(s,a,e):r!==0&&(s=hc(s,t,r,e)),this.setSelection(s,Se.sources.SILENT)),a.length()>0){const c=[Se.events.TEXT_CHANGE,a,l,e];this.emitter.emit(Se.events.EDITOR_CHANGE,...c),e!==Se.sources.SILENT&&this.emitter.emit(...c)}return a}function hn(n,e,t,r,s){let l={};return typeof n.index=="number"&&typeof n.length=="number"?typeof e!="number"?(s=r,r=t,t=e,e=n.length,n=n.index):(e=n.length,n=n.index):typeof e!="number"&&(s=r,r=t,t=e,e=0),typeof t=="object"?(l=t,s=r):typeof t=="string"&&(r!=null?l[t]=r:s=t),s=s||Se.sources.API,[n,e,l,s]}function hc(n,e,t,r){const s=typeof t=="number"?t:0;if(n==null)return null;let l,a;return e&&typeof e.transformPosition=="function"?[l,a]=[n.index,n.index+n.length].map(c=>e.transformPosition(c,r!==Se.sources.USER)):[l,a]=[n.index,n.index+n.length].map(c=>c<e||c===e&&r===Se.sources.USER?c:s>=0?c+s:Math.max(e,c+s)),new $n(l,a-l)}class qn extends Bs{}function pc(n){return n instanceof ht||n instanceof Bt}function mc(n){return typeof n.updateContent=="function"}class hr extends Yo{constructor(e,t,r){let{emitter:s}=r;super(e,t),this.emitter=s,this.batch=!1,this.optimize(),this.enable(),this.domNode.addEventListener("dragstart",l=>this.handleDragStart(l))}batchStart(){Array.isArray(this.batch)||(this.batch=[])}batchEnd(){if(!this.batch)return;const e=this.batch;this.batch=!1,this.update(e)}emitMount(e){this.emitter.emit(Se.events.SCROLL_BLOT_MOUNT,e)}emitUnmount(e){this.emitter.emit(Se.events.SCROLL_BLOT_UNMOUNT,e)}emitEmbedUpdate(e,t){this.emitter.emit(Se.events.SCROLL_EMBED_UPDATE,e,t)}deleteAt(e,t){const[r,s]=this.line(e),[l]=this.line(e+t);if(super.deleteAt(e,t),l!=null&&r!==l&&s>0){if(r instanceof Bt||l instanceof Bt){this.optimize();return}const a=l.children.head instanceof zt?null:l.children.head;r.moveChildren(l,a),r.remove()}this.optimize()}enable(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",e?"true":"false")}formatAt(e,t,r,s){super.formatAt(e,t,r,s),this.optimize()}insertAt(e,t,r){if(e>=this.length())if(r==null||this.scroll.query(t,Ne.BLOCK)==null){const s=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(s),r==null&&t.endsWith(`
30
+ `,attributes:t.attributes}),s&&e.push({insert:s,attributes:t.attributes})}):e.push(t)}),e}class Gt{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.quill=e,this.options=t}}Ee(Gt,"DEFAULTS",{});const Vs="\uFEFF";class ai extends Ot{constructor(e,t){super(e,t),this.contentNode=document.createElement("span"),this.contentNode.setAttribute("contenteditable","false"),Array.from(this.domNode.childNodes).forEach(r=>{this.contentNode.appendChild(r)}),this.leftGuard=document.createTextNode(Vs),this.rightGuard=document.createTextNode(Vs),this.domNode.appendChild(this.leftGuard),this.domNode.appendChild(this.contentNode),this.domNode.appendChild(this.rightGuard)}index(e,t){return e===this.leftGuard?0:e===this.rightGuard?1:super.index(e,t)}restore(e){let t=null,r;const s=e.data.split(Vs).join("");if(e===this.leftGuard)if(this.prev instanceof Ht){const l=this.prev.length();this.prev.insertAt(l,s),t={startNode:this.prev.domNode,startOffset:l+s.length}}else r=document.createTextNode(s),this.parent.insertBefore(this.scroll.create(r),this),t={startNode:r,startOffset:s.length};else e===this.rightGuard&&(this.next instanceof Ht?(this.next.insertAt(0,s),t={startNode:this.next.domNode,startOffset:s.length}):(r=document.createTextNode(s),this.parent.insertBefore(this.scroll.create(r),this.next),t={startNode:r,startOffset:s.length}));return e.data=Vs,t}update(e,t){e.forEach(r=>{if(r.type==="characterData"&&(r.target===this.leftGuard||r.target===this.rightGuard)){const s=this.restore(r.target);s&&(t.range=s)}})}}class bb{constructor(e,t){Ee(this,"isComposing",!1);this.scroll=e,this.emitter=t,this.setupListeners()}setupListeners(){this.scroll.domNode.addEventListener("compositionstart",e=>{this.isComposing||this.handleCompositionStart(e)}),this.scroll.domNode.addEventListener("compositionend",e=>{this.isComposing&&queueMicrotask(()=>{this.handleCompositionEnd(e)})})}handleCompositionStart(e){const t=e.target instanceof Node?this.scroll.find(e.target,!0):null;t&&!(t instanceof ai)&&(this.emitter.emit(Se.events.COMPOSITION_BEFORE_START,e),this.scroll.batchStart(),this.emitter.emit(Se.events.COMPOSITION_START,e),this.isComposing=!0)}handleCompositionEnd(e){this.emitter.emit(Se.events.COMPOSITION_BEFORE_END,e),this.scroll.batchEnd(),this.emitter.emit(Se.events.COMPOSITION_END,e),this.isComposing=!1}}const es=class es{constructor(e,t){Ee(this,"modules",{});this.quill=e,this.options=t}init(){Object.keys(this.options.modules).forEach(e=>{this.modules[e]==null&&this.addModule(e)})}addModule(e){const t=this.quill.constructor.import(`modules/${e}`);return this.modules[e]=new t(this.quill,this.options.modules[e]||{}),this.modules[e]}};Ee(es,"DEFAULTS",{modules:{}}),Ee(es,"themes",{default:es});let dr=es;const xb=n=>n.parentElement||n.getRootNode().host||null,Eb=n=>{const e=n.getBoundingClientRect(),t="offsetWidth"in n&&Math.abs(e.width)/n.offsetWidth||1,r="offsetHeight"in n&&Math.abs(e.height)/n.offsetHeight||1;return{top:e.top,right:e.left+n.clientWidth*t,bottom:e.top+n.clientHeight*r,left:e.left}},js=n=>{const e=parseInt(n,10);return Number.isNaN(e)?0:e},uc=(n,e,t,r,s,l)=>n<t&&e>r?0:n<t?-(t-n+s):e>r?e-n>r-t?n+s-t:e-r+l:0,wb=(n,e)=>{var l,a,c;const t=n.ownerDocument;let r=e,s=n;for(;s;){const o=s===t.body,u=o?{top:0,right:((l=window.visualViewport)==null?void 0:l.width)??t.documentElement.clientWidth,bottom:((a=window.visualViewport)==null?void 0:a.height)??t.documentElement.clientHeight,left:0}:Eb(s),d=getComputedStyle(s),h=uc(r.left,r.right,u.left,u.right,js(d.scrollPaddingLeft),js(d.scrollPaddingRight)),f=uc(r.top,r.bottom,u.top,u.bottom,js(d.scrollPaddingTop),js(d.scrollPaddingBottom));if(h||f)if(o)(c=t.defaultView)==null||c.scrollBy(h,f);else{const{scrollLeft:m,scrollTop:p}=s;f&&(s.scrollTop+=f),h&&(s.scrollLeft+=h);const y=s.scrollLeft-m,b=s.scrollTop-p;r={left:r.left-y,top:r.top-b,right:r.right-y,bottom:r.bottom-b}}s=o||d.position==="fixed"?null:xb(s)}},Ab=100,Sb=["block","break","cursor","inline","scroll","text"],Tb=(n,e,t)=>{const r=new or;return Sb.forEach(s=>{const l=e.query(s);l&&r.register(l)}),n.forEach(s=>{let l=e.query(s);l||t.error(`Cannot register "${s}" specified in "formats" config. Are you sure it was registered?`);let a=0;for(;l;)if(r.register(l),l="blotName"in l?l.requiredContainer??null:null,a+=1,a>Ab){t.error(`Cycle detected in registering blot requiredContainer: "${s}"`);break}}),r},fr=fn("quill"),$s=new or;qt.uiClass="ql-ui";const Xt=class Xt{static debug(e){e===!0&&(e="log"),fn.level(e)}static find(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return ei.get(e)||$s.find(e,t)}static import(e){return this.imports[e]==null&&fr.error(`Cannot import ${e}. Are you sure it was registered?`),this.imports[e]}static register(){if(typeof(arguments.length<=0?void 0:arguments[0])!="string"){const e=arguments.length<=0?void 0:arguments[0],t=!!(!(arguments.length<=1)&&arguments[1]),r="attrName"in e?e.attrName:e.blotName;typeof r=="string"?this.register(`formats/${r}`,e,t):Object.keys(e).forEach(s=>{this.register(s,e[s],t)})}else{const e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],r=!!(!(arguments.length<=2)&&arguments[2]);this.imports[e]!=null&&!r&&fr.warn(`Overwriting ${e} with`,t),this.imports[e]=t,(e.startsWith("blots/")||e.startsWith("formats/"))&&t&&typeof t!="boolean"&&t.blotName!=="abstract"&&$s.register(t),typeof t.register=="function"&&t.register($s)}}constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.options=Nb(e,t),this.container=this.options.container,this.container==null){fr.error("Invalid Quill container",e);return}this.options.debug&&Xt.debug(this.options.debug);const r=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",ei.set(this.container,this),this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.emitter=new Se;const s=Yo.blotName,l=this.options.registry.query(s);if(!l||!("blotName"in l))throw new Error(`Cannot initialize Quill without "${s}" blot`);if(this.scroll=new l(this.options.registry,this.root,{emitter:this.emitter}),this.editor=new gb(this.scroll),this.selection=new pb(this.scroll,this.emitter),this.composition=new bb(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.uploader=this.theme.addModule("uploader"),this.theme.addModule("input"),this.theme.addModule("uiNode"),this.theme.init(),this.emitter.on(Se.events.EDITOR_CHANGE,a=>{a===Se.events.TEXT_CHANGE&&this.root.classList.toggle("ql-blank",this.editor.isBlank())}),this.emitter.on(Se.events.SCROLL_UPDATE,(a,c)=>{const o=this.selection.lastRange,[u]=this.selection.getRange(),d=o&&u?{oldRange:o,newRange:u}:void 0;Wt.call(this,()=>this.editor.update(null,c,d),a)}),this.emitter.on(Se.events.SCROLL_EMBED_UPDATE,(a,c)=>{const o=this.selection.lastRange,[u]=this.selection.getRange(),d=o&&u?{oldRange:o,newRange:u}:void 0;Wt.call(this,()=>{const h=new Te().retain(a.offset(this)).retain({[a.statics.blotName]:c});return this.editor.update(h,[],d)},Xt.sources.USER)}),r){const a=this.clipboard.convert({html:`${r}<p><br></p>`,text:`
31
+ `});this.setContents(a)}this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable(),this.allowReadOnlyEdits=!1}addContainer(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof e=="string"){const r=e;e=document.createElement("div"),e.classList.add(r)}return this.container.insertBefore(e,t),e}blur(){this.selection.setRange(null)}deleteText(e,t,r){return[e,t,,r]=hn(e,t,r),Wt.call(this,()=>this.editor.deleteText(e,t),r,e,-1*t)}disable(){this.enable(!1)}editReadOnly(e){this.allowReadOnlyEdits=!0;const t=e();return this.allowReadOnlyEdits=!1,t}enable(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(e),this.container.classList.toggle("ql-disabled",!e)}focus(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.selection.focus(),e.preventScroll||this.scrollSelectionIntoView()}format(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Se.sources.API;return Wt.call(this,()=>{const s=this.getSelection(!0);let l=new Te;if(s==null)return l;if(this.scroll.query(e,Ne.BLOCK))l=this.editor.formatLine(s.index,s.length,{[e]:t});else{if(s.length===0)return this.selection.format(e,t),l;l=this.editor.formatText(s.index,s.length,{[e]:t})}return this.setSelection(s,Se.sources.SILENT),l},r)}formatLine(e,t,r,s,l){let a;return[e,t,a,l]=hn(e,t,r,s,l),Wt.call(this,()=>this.editor.formatLine(e,t,a),l,e,0)}formatText(e,t,r,s,l){let a;return[e,t,a,l]=hn(e,t,r,s,l),Wt.call(this,()=>this.editor.formatText(e,t,a),l,e,0)}getBounds(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=null;if(typeof e=="number"?r=this.selection.getBounds(e,t):r=this.selection.getBounds(e.index,e.length),!r)return null;const s=this.container.getBoundingClientRect();return{bottom:r.bottom-s.top,height:r.height,left:r.left-s.left,right:r.right-s.left,top:r.top-s.top,width:r.width}}getContents(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-e;return[e,t]=hn(e,t),this.editor.getContents(e,t)}getFormat(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof e=="number"?this.editor.getFormat(e,t):this.editor.getFormat(e.index,e.length)}getIndex(e){return e.offset(this.scroll)}getLength(){return this.scroll.length()}getLeaf(e){return this.scroll.leaf(e)}getLine(e){return this.scroll.line(e)}getLines(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof e!="number"?this.scroll.lines(e.index,e.length):this.scroll.lines(e,t)}getModule(e){return this.theme.modules[e]}getSelection(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)&&this.focus(),this.update(),this.selection.getRange()[0]}getSemanticHTML(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;return typeof e=="number"&&(t=t??this.getLength()-e),[e,t]=hn(e,t),this.editor.getHTML(e,t)}getText(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;return typeof e=="number"&&(t=t??this.getLength()-e),[e,t]=hn(e,t),this.editor.getText(e,t)}hasFocus(){return this.selection.hasFocus()}insertEmbed(e,t,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Xt.sources.API;return Wt.call(this,()=>this.editor.insertEmbed(e,t,r),s,e)}insertText(e,t,r,s,l){let a;return[e,,a,l]=hn(e,0,r,s,l),Wt.call(this,()=>this.editor.insertText(e,t,a),l,e,t.length)}isEnabled(){return this.scroll.isEnabled()}off(){return this.emitter.off(...arguments)}on(){return this.emitter.on(...arguments)}once(){return this.emitter.once(...arguments)}removeFormat(e,t,r){return[e,t,,r]=hn(e,t,r),Wt.call(this,()=>this.editor.removeFormat(e,t),r,e)}scrollRectIntoView(e){wb(this.root,e)}scrollIntoView(){console.warn("Quill#scrollIntoView() has been deprecated and will be removed in the near future. Please use Quill#scrollSelectionIntoView() instead."),this.scrollSelectionIntoView()}scrollSelectionIntoView(){const e=this.selection.lastRange,t=e&&this.selection.getBounds(e.index,e.length);t&&this.scrollRectIntoView(t)}setContents(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Se.sources.API;return Wt.call(this,()=>{e=new Te(e);const r=this.getLength(),s=this.editor.deleteText(0,r),l=this.editor.insertContents(0,e),a=this.editor.deleteText(this.getLength()-1,1);return s.compose(l).compose(a)},t)}setSelection(e,t,r){e==null?this.selection.setRange(null,t||Xt.sources.API):([e,t,,r]=hn(e,t,r),this.selection.setRange(new $n(Math.max(0,e),t),r),r!==Se.sources.SILENT&&this.scrollSelectionIntoView())}setText(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Se.sources.API;const r=new Te().insert(e);return this.setContents(r,t)}update(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Se.sources.USER;const t=this.scroll.update(e);return this.selection.update(e),t}updateContents(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Se.sources.API;return Wt.call(this,()=>(e=new Te(e),this.editor.applyDelta(e)),t,!0)}};Ee(Xt,"DEFAULTS",{bounds:null,modules:{clipboard:!0,keyboard:!0,history:!0,uploader:!0},placeholder:"",readOnly:!1,registry:$s,theme:"default"}),Ee(Xt,"events",Se.events),Ee(Xt,"sources",Se.sources),Ee(Xt,"version","2.0.3"),Ee(Xt,"imports",{delta:Te,parchment:ob,"core/module":Gt,"core/theme":dr});let le=Xt;function dc(n){return typeof n=="string"?document.querySelector(n):n}function li(n){return Object.entries(n??{}).reduce((e,t)=>{let[r,s]=t;return{...e,[r]:s===!0?{}:s}},{})}function fc(n){return Object.fromEntries(Object.entries(n).filter(e=>e[1]!==void 0))}function Nb(n,e){const t=dc(n);if(!t)throw new Error("Invalid Quill container");const s=!e.theme||e.theme===le.DEFAULTS.theme?dr:le.import(`themes/${e.theme}`);if(!s)throw new Error(`Invalid theme ${e.theme}. Did you register it?`);const{modules:l,...a}=le.DEFAULTS,{modules:c,...o}=s.DEFAULTS;let u=li(e.modules);u!=null&&u.toolbar&&u.toolbar.constructor!==Object&&(u={...u,toolbar:{container:u.toolbar}});const d=Sn({},li(l),li(c),u),h={...a,...fc(o),...fc(e)};let f=e.registry;return f?e.formats&&fr.warn('Ignoring "formats" option because "registry" is specified'):f=e.formats?Tb(e.formats,h.registry,fr):h.registry,{...h,registry:f,container:t,theme:s,modules:Object.entries(d).reduce((m,p)=>{let[y,b]=p;if(!b)return m;const A=le.import(`modules/${y}`);return A==null?(fr.error(`Cannot load ${y} module. Are you sure you registered it?`),m):{...m,[y]:Sn({},A.DEFAULTS||{},b)}},{}),bounds:dc(h.bounds)}}function Wt(n,e,t,r){if(!this.isEnabled()&&e===Se.sources.USER&&!this.allowReadOnlyEdits)return new Te;let s=t==null?null:this.getSelection();const l=this.editor.delta,a=n();if(s!=null&&(t===!0&&(t=s.index),r==null?s=hc(s,a,e):r!==0&&(s=hc(s,t,r,e)),this.setSelection(s,Se.sources.SILENT)),a.length()>0){const c=[Se.events.TEXT_CHANGE,a,l,e];this.emitter.emit(Se.events.EDITOR_CHANGE,...c),e!==Se.sources.SILENT&&this.emitter.emit(...c)}return a}function hn(n,e,t,r,s){let l={};return typeof n.index=="number"&&typeof n.length=="number"?typeof e!="number"?(s=r,r=t,t=e,e=n.length,n=n.index):(e=n.length,n=n.index):typeof e!="number"&&(s=r,r=t,t=e,e=0),typeof t=="object"?(l=t,s=r):typeof t=="string"&&(r!=null?l[t]=r:s=t),s=s||Se.sources.API,[n,e,l,s]}function hc(n,e,t,r){const s=typeof t=="number"?t:0;if(n==null)return null;let l,a;return e&&typeof e.transformPosition=="function"?[l,a]=[n.index,n.index+n.length].map(c=>e.transformPosition(c,r!==Se.sources.USER)):[l,a]=[n.index,n.index+n.length].map(c=>c<e||c===e&&r===Se.sources.USER?c:s>=0?c+s:Math.max(e,c+s)),new $n(l,a-l)}class qn extends Bs{}function pc(n){return n instanceof ht||n instanceof Bt}function mc(n){return typeof n.updateContent=="function"}class hr extends Yo{constructor(e,t,r){let{emitter:s}=r;super(e,t),this.emitter=s,this.batch=!1,this.optimize(),this.enable(),this.domNode.addEventListener("dragstart",l=>this.handleDragStart(l))}batchStart(){Array.isArray(this.batch)||(this.batch=[])}batchEnd(){if(!this.batch)return;const e=this.batch;this.batch=!1,this.update(e)}emitMount(e){this.emitter.emit(Se.events.SCROLL_BLOT_MOUNT,e)}emitUnmount(e){this.emitter.emit(Se.events.SCROLL_BLOT_UNMOUNT,e)}emitEmbedUpdate(e,t){this.emitter.emit(Se.events.SCROLL_EMBED_UPDATE,e,t)}deleteAt(e,t){const[r,s]=this.line(e),[l]=this.line(e+t);if(super.deleteAt(e,t),l!=null&&r!==l&&s>0){if(r instanceof Bt||l instanceof Bt){this.optimize();return}const a=l.children.head instanceof zt?null:l.children.head;r.moveChildren(l,a),r.remove()}this.optimize()}enable(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",e?"true":"false")}formatAt(e,t,r,s){super.formatAt(e,t,r,s),this.optimize()}insertAt(e,t,r){if(e>=this.length())if(r==null||this.scroll.query(t,Ne.BLOCK)==null){const s=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(s),r==null&&t.endsWith(`
32
32
  `)?s.insertAt(0,t.slice(0,-1),r):s.insertAt(0,t,r)}else{const s=this.scroll.create(t,r);this.appendChild(s)}else super.insertAt(e,t,r);this.optimize()}insertBefore(e,t){if(e.statics.scope===Ne.INLINE_BLOT){const r=this.scroll.create(this.statics.defaultChild.blotName);r.appendChild(e),super.insertBefore(r,t)}else super.insertBefore(e,t)}insertContents(e,t){const r=this.deltaToRenderBlocks(t.concat(new Te().insert(`
33
33
  `))),s=r.pop();if(s==null)return;this.batchStart();const l=r.shift();if(l){const o=l.type==="block"&&(l.delta.length()===0||!this.descendant(Bt,e)[0]&&e<this.length()),u=l.type==="block"?l.delta:new Te().insert({[l.key]:l.value});ci(this,e,u);const d=l.type==="block"?1:0,h=e+u.length()+d;o&&this.insertAt(h-1,`
34
34
  `);const f=Pt(this.line(e)[0]),m=Lt.AttributeMap.diff(f,l.attributes)||{};Object.keys(m).forEach(p=>{this.formatAt(h-1,1,p,m[p])}),e=h}let[a,c]=this.children.find(e);if(r.length&&(a&&(a=a.split(c),c=0),r.forEach(o=>{if(o.type==="block"){const u=this.createBlock(o.attributes,a||void 0);ci(u,0,o.delta)}else{const u=this.create(o.key,o.value);this.insertBefore(u,a||void 0),Object.keys(o.attributes).forEach(d=>{u.format(d,o.attributes[d])})}})),s.type==="block"&&s.delta.length()){const o=a?a.offset(a.scroll)+c:this.length();ci(this,o,s.delta)}this.batchEnd(),this.optimize()}isEnabled(){return this.domNode.getAttribute("contenteditable")==="true"}leaf(e){const t=this.path(e).pop();if(!t)return[null,-1];const[r,s]=t;return r instanceof yt?[r,s]:[null,-1]}line(e){return e===this.length()?this.line(e-1):this.descendant(pc,e)}lines(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;const r=(s,l,a)=>{let c=[],o=a;return s.children.forEachAt(l,a,(u,d,h)=>{pc(u)?c.push(u):u instanceof Bs&&(c=c.concat(r(u,d,o))),o-=h}),c};return r(this,e,t)}optimize(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch||(super.optimize(e,t),e.length>0&&this.emitter.emit(Se.events.SCROLL_OPTIMIZE,e,t))}path(e){return super.path(e).slice(1)}remove(){}update(e){if(this.batch){Array.isArray(e)&&(this.batch=this.batch.concat(e));return}let t=Se.sources.USER;typeof e=="string"&&(t=e),Array.isArray(e)||(e=this.observer.takeRecords()),e=e.filter(r=>{let{target:s}=r;const l=this.find(s,!0);return l&&!mc(l)}),e.length>0&&this.emitter.emit(Se.events.SCROLL_BEFORE_UPDATE,t,e),super.update(e.concat([])),e.length>0&&this.emitter.emit(Se.events.SCROLL_UPDATE,t,e)}updateEmbedAt(e,t,r){const[s]=this.descendant(l=>l instanceof Bt,e);s&&s.statics.blotName===t&&mc(s)&&s.updateContent(r)}handleDragStart(e){e.preventDefault()}deltaToRenderBlocks(e){const t=[];let r=new Te;return e.forEach(s=>{const l=s==null?void 0:s.insert;if(l)if(typeof l=="string"){const a=l.split(`
35
- `);a.slice(0,-1).forEach(o=>{r.insert(o,s.attributes),t.push({type:"block",delta:r,attributes:s.attributes??{}}),r=new Te});const c=a[a.length-1];c&&r.insert(c,s.attributes)}else{const a=Object.keys(l)[0];if(!a)return;this.query(a,Ne.INLINE)?r.push(s):(r.length()&&t.push({type:"block",delta:r,attributes:{}}),r=new Te,t.push({type:"blockEmbed",key:a,value:l[a],attributes:s.attributes??{}}))}}),r.length()&&t.push({type:"block",delta:r,attributes:{}}),t}createBlock(e,t){let r;const s={};Object.entries(e).forEach(c=>{let[o,u]=c;this.query(o,Ne.BLOCK&Ne.BLOT)!=null?r=o:s[o]=u});const l=this.create(r||this.statics.defaultChild.blotName,r?e[r]:void 0);this.insertBefore(l,t||void 0);const a=l.length();return Object.entries(s).forEach(c=>{let[o,u]=c;l.formatAt(0,a,o,u)}),l}}Ee(hr,"blotName","scroll"),Ee(hr,"className","ql-editor"),Ee(hr,"tagName","DIV"),Ee(hr,"defaultChild",ht),Ee(hr,"allowedChildren",[ht,Bt,qn]);function ci(n,e,t){t.reduce((r,s)=>{const l=Lt.Op.length(s);let a=s.attributes||{};if(s.insert!=null){if(typeof s.insert=="string"){const c=s.insert;n.insertAt(r,c);const[o]=n.descendant(yt,r),u=Pt(o);a=Lt.AttributeMap.diff(u,a)||{}}else if(typeof s.insert=="object"){const c=Object.keys(s.insert)[0];if(c==null)return r;if(n.insertAt(r,c,s.insert[c]),n.scroll.query(c,Ne.INLINE)!=null){const[u]=n.descendant(yt,r),d=Pt(u);a=Lt.AttributeMap.diff(d,a)||{}}}}return Object.keys(a).forEach(c=>{n.formatAt(r,l,c,a[c])}),r+l},e)}const ui={scope:Ne.BLOCK,whitelist:["right","center","justify"]},Sb=new nn("align","align",ui),gc=new $t("align","ql-align",ui),yc=new Tn("align","text-align",ui);class vc extends Tn{value(e){let t=super.value(e);return t.startsWith("rgb(")?(t=t.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),`#${t.split(",").map(s=>`00${parseInt(s,10).toString(16)}`.slice(-2)).join("")}`):t}}const Tb=new $t("color","ql-color",{scope:Ne.INLINE}),di=new vc("color","color",{scope:Ne.INLINE}),Nb=new $t("background","ql-bg",{scope:Ne.INLINE}),fi=new vc("background","background-color",{scope:Ne.INLINE});class zn extends qn{static create(e){const t=super.create(e);return t.setAttribute("spellcheck","false"),t}code(e,t){return this.children.map(r=>r.length()<=1?"":r.domNode.innerText).join(`
35
+ `);a.slice(0,-1).forEach(o=>{r.insert(o,s.attributes),t.push({type:"block",delta:r,attributes:s.attributes??{}}),r=new Te});const c=a[a.length-1];c&&r.insert(c,s.attributes)}else{const a=Object.keys(l)[0];if(!a)return;this.query(a,Ne.INLINE)?r.push(s):(r.length()&&t.push({type:"block",delta:r,attributes:{}}),r=new Te,t.push({type:"blockEmbed",key:a,value:l[a],attributes:s.attributes??{}}))}}),r.length()&&t.push({type:"block",delta:r,attributes:{}}),t}createBlock(e,t){let r;const s={};Object.entries(e).forEach(c=>{let[o,u]=c;this.query(o,Ne.BLOCK&Ne.BLOT)!=null?r=o:s[o]=u});const l=this.create(r||this.statics.defaultChild.blotName,r?e[r]:void 0);this.insertBefore(l,t||void 0);const a=l.length();return Object.entries(s).forEach(c=>{let[o,u]=c;l.formatAt(0,a,o,u)}),l}}Ee(hr,"blotName","scroll"),Ee(hr,"className","ql-editor"),Ee(hr,"tagName","DIV"),Ee(hr,"defaultChild",ht),Ee(hr,"allowedChildren",[ht,Bt,qn]);function ci(n,e,t){t.reduce((r,s)=>{const l=Lt.Op.length(s);let a=s.attributes||{};if(s.insert!=null){if(typeof s.insert=="string"){const c=s.insert;n.insertAt(r,c);const[o]=n.descendant(yt,r),u=Pt(o);a=Lt.AttributeMap.diff(u,a)||{}}else if(typeof s.insert=="object"){const c=Object.keys(s.insert)[0];if(c==null)return r;if(n.insertAt(r,c,s.insert[c]),n.scroll.query(c,Ne.INLINE)!=null){const[u]=n.descendant(yt,r),d=Pt(u);a=Lt.AttributeMap.diff(d,a)||{}}}}return Object.keys(a).forEach(c=>{n.formatAt(r,l,c,a[c])}),r+l},e)}const ui={scope:Ne.BLOCK,whitelist:["right","center","justify"]},kb=new nn("align","align",ui),gc=new $t("align","ql-align",ui),yc=new Tn("align","text-align",ui);class vc extends Tn{value(e){let t=super.value(e);return t.startsWith("rgb(")?(t=t.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),`#${t.split(",").map(s=>`00${parseInt(s,10).toString(16)}`.slice(-2)).join("")}`):t}}const Cb=new $t("color","ql-color",{scope:Ne.INLINE}),di=new vc("color","color",{scope:Ne.INLINE}),Ob=new $t("background","ql-bg",{scope:Ne.INLINE}),fi=new vc("background","background-color",{scope:Ne.INLINE});class zn extends qn{static create(e){const t=super.create(e);return t.setAttribute("spellcheck","false"),t}code(e,t){return this.children.map(r=>r.length()<=1?"":r.domNode.innerText).join(`
36
36
  `).slice(e,e+t)}html(e,t){return`<pre>
37
37
  ${_s(this.code(e,t))}
38
- </pre>`}}class vt extends ht{static register(){le.register(zn)}}Ee(vt,"TAB"," ");class hi extends rn{}hi.blotName="code",hi.tagName="CODE",vt.blotName="code-block",vt.className="ql-code-block",vt.tagName="DIV",zn.blotName="code-block-container",zn.className="ql-code-block-container",zn.tagName="DIV",zn.allowedChildren=[vt],vt.allowedChildren=[Ht,zt,cr],vt.requiredContainer=zn;const pi={scope:Ne.BLOCK,whitelist:["rtl"]},bc=new nn("direction","dir",pi),xc=new $t("direction","ql-direction",pi),Ec=new Tn("direction","direction",pi),wc={scope:Ne.INLINE,whitelist:["serif","monospace"]},Ac=new $t("font","ql-font",wc);class kb extends Tn{value(e){return super.value(e).replace(/["']/g,"")}}const Sc=new kb("font","font-family",wc),Tc=new $t("size","ql-size",{scope:Ne.INLINE,whitelist:["small","large","huge"]}),Nc=new Tn("size","font-size",{scope:Ne.INLINE,whitelist:["10px","18px","32px"]}),Cb=fn("quill:keyboard"),Ob=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey";class qs extends Gt{static match(e,t){return["altKey","ctrlKey","metaKey","shiftKey"].some(r=>!!t[r]!==e[r]&&t[r]!==null)?!1:t.key===e.key||t.key===e.which}constructor(e,t){super(e,t),this.bindings={},Object.keys(this.options.bindings).forEach(r=>{this.options.bindings[r]&&this.addBinding(this.options.bindings[r])}),this.addBinding({key:"Enter",shiftKey:null},this.handleEnter),this.addBinding({key:"Enter",metaKey:null,ctrlKey:null,altKey:null},()=>{}),/Firefox/i.test(navigator.userAgent)?(this.addBinding({key:"Backspace"},{collapsed:!0},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0},this.handleDelete)):(this.addBinding({key:"Backspace"},{collapsed:!0,prefix:/^.?$/},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0,suffix:/^.?$/},this.handleDelete)),this.addBinding({key:"Backspace"},{collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Delete"},{collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Backspace",altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},this.handleBackspace),this.listen()}addBinding(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const s=Ib(e);if(s==null){Cb.warn("Attempted to add invalid keyboard binding",s);return}typeof t=="function"&&(t={handler:t}),typeof r=="function"&&(r={handler:r}),(Array.isArray(s.key)?s.key:[s.key]).forEach(a=>{const c={...s,key:a,...t,...r};this.bindings[c.key]=this.bindings[c.key]||[],this.bindings[c.key].push(c)})}listen(){this.quill.root.addEventListener("keydown",e=>{if(e.defaultPrevented||e.isComposing||e.keyCode===229&&(e.key==="Enter"||e.key==="Backspace"))return;const s=(this.bindings[e.key]||[]).concat(this.bindings[e.which]||[]).filter(A=>qs.match(e,A));if(s.length===0)return;const l=le.find(e.target,!0);if(l&&l.scroll!==this.quill.scroll)return;const a=this.quill.getSelection();if(a==null||!this.quill.hasFocus())return;const[c,o]=this.quill.getLine(a.index),[u,d]=this.quill.getLeaf(a.index),[h,f]=a.length===0?[u,d]:this.quill.getLeaf(a.index+a.length),m=u instanceof Ps?u.value().slice(0,d):"",p=h instanceof Ps?h.value().slice(f):"",y={collapsed:a.length===0,empty:a.length===0&&c.length()<=1,format:this.quill.getFormat(a),line:c,offset:o,prefix:m,suffix:p,event:e};s.some(A=>{if(A.collapsed!=null&&A.collapsed!==y.collapsed||A.empty!=null&&A.empty!==y.empty||A.offset!=null&&A.offset!==y.offset)return!1;if(Array.isArray(A.format)){if(A.format.every(T=>y.format[T]==null))return!1}else if(typeof A.format=="object"&&!Object.keys(A.format).every(T=>A.format[T]===!0?y.format[T]!=null:A.format[T]===!1?y.format[T]==null:Go(A.format[T],y.format[T])))return!1;return A.prefix!=null&&!A.prefix.test(y.prefix)||A.suffix!=null&&!A.suffix.test(y.suffix)?!1:A.handler.call(this,a,y,A)!==!0})&&e.preventDefault()})}handleBackspace(e,t){const r=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;if(e.index===0||this.quill.getLength()<=1)return;let s={};const[l]=this.quill.getLine(e.index);let a=new Te().retain(e.index-r).delete(r);if(t.offset===0){const[c]=this.quill.getLine(e.index-1);if(c&&!(c.statics.blotName==="block"&&c.length()<=1)){const u=l.formats(),d=this.quill.getFormat(e.index-1,1);if(s=Lt.AttributeMap.diff(u,d)||{},Object.keys(s).length>0){const h=new Te().retain(e.index+l.length()-2).retain(1,s);a=a.compose(h)}}}this.quill.updateContents(a,le.sources.USER),this.quill.focus()}handleDelete(e,t){const r=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(e.index>=this.quill.getLength()-r)return;let s={};const[l]=this.quill.getLine(e.index);let a=new Te().retain(e.index).delete(r);if(t.offset>=l.length()-1){const[c]=this.quill.getLine(e.index+1);if(c){const o=l.formats(),u=this.quill.getFormat(e.index,1);s=Lt.AttributeMap.diff(o,u)||{},Object.keys(s).length>0&&(a=a.retain(c.length()-1).retain(1,s))}}this.quill.updateContents(a,le.sources.USER),this.quill.focus()}handleDeleteRange(e){gi({range:e,quill:this.quill}),this.quill.focus()}handleEnter(e,t){const r=Object.keys(t.format).reduce((l,a)=>(this.quill.scroll.query(a,Ne.BLOCK)&&!Array.isArray(t.format[a])&&(l[a]=t.format[a]),l),{}),s=new Te().retain(e.index).delete(e.length).insert(`
39
- `,r);this.quill.updateContents(s,le.sources.USER),this.quill.setSelection(e.index+1,le.sources.SILENT),this.quill.focus()}}const Rb={bindings:{bold:mi("bold"),italic:mi("italic"),underline:mi("underline"),indent:{key:"Tab",format:["blockquote","indent","list"],handler(n,e){return e.collapsed&&e.offset!==0?!0:(this.quill.format("indent","+1",le.sources.USER),!1)}},outdent:{key:"Tab",shiftKey:!0,format:["blockquote","indent","list"],handler(n,e){return e.collapsed&&e.offset!==0?!0:(this.quill.format("indent","-1",le.sources.USER),!1)}},"outdent backspace":{key:"Backspace",collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler(n,e){e.format.indent!=null?this.quill.format("indent","-1",le.sources.USER):e.format.list!=null&&this.quill.format("list",!1,le.sources.USER)}},"indent code-block":kc(!0),"outdent code-block":kc(!1),"remove tab":{key:"Tab",shiftKey:!0,collapsed:!0,prefix:/\t$/,handler(n){this.quill.deleteText(n.index-1,1,le.sources.USER)}},tab:{key:"Tab",handler(n,e){if(e.format.table)return!0;this.quill.history.cutoff();const t=new Te().retain(n.index).delete(n.length).insert(" ");return this.quill.updateContents(t,le.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(n.index+1,le.sources.SILENT),!1}},"blockquote empty enter":{key:"Enter",collapsed:!0,format:["blockquote"],empty:!0,handler(){this.quill.format("blockquote",!1,le.sources.USER)}},"list empty enter":{key:"Enter",collapsed:!0,format:["list"],empty:!0,handler(n,e){const t={list:!1};e.format.indent&&(t.indent=!1),this.quill.formatLine(n.index,n.length,t,le.sources.USER)}},"checklist enter":{key:"Enter",collapsed:!0,format:{list:"checked"},handler(n){const[e,t]=this.quill.getLine(n.index),r={...e.formats(),list:"checked"},s=new Te().retain(n.index).insert(`
38
+ </pre>`}}class vt extends ht{static register(){le.register(zn)}}Ee(vt,"TAB"," ");class hi extends rn{}hi.blotName="code",hi.tagName="CODE",vt.blotName="code-block",vt.className="ql-code-block",vt.tagName="DIV",zn.blotName="code-block-container",zn.className="ql-code-block-container",zn.tagName="DIV",zn.allowedChildren=[vt],vt.allowedChildren=[Ht,zt,cr],vt.requiredContainer=zn;const pi={scope:Ne.BLOCK,whitelist:["rtl"]},bc=new nn("direction","dir",pi),xc=new $t("direction","ql-direction",pi),Ec=new Tn("direction","direction",pi),wc={scope:Ne.INLINE,whitelist:["serif","monospace"]},Ac=new $t("font","ql-font",wc);class Rb extends Tn{value(e){return super.value(e).replace(/["']/g,"")}}const Sc=new Rb("font","font-family",wc),Tc=new $t("size","ql-size",{scope:Ne.INLINE,whitelist:["small","large","huge"]}),Nc=new Tn("size","font-size",{scope:Ne.INLINE,whitelist:["10px","18px","32px"]}),Ib=fn("quill:keyboard"),Lb=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey";class qs extends Gt{static match(e,t){return["altKey","ctrlKey","metaKey","shiftKey"].some(r=>!!t[r]!==e[r]&&t[r]!==null)?!1:t.key===e.key||t.key===e.which}constructor(e,t){super(e,t),this.bindings={},Object.keys(this.options.bindings).forEach(r=>{this.options.bindings[r]&&this.addBinding(this.options.bindings[r])}),this.addBinding({key:"Enter",shiftKey:null},this.handleEnter),this.addBinding({key:"Enter",metaKey:null,ctrlKey:null,altKey:null},()=>{}),/Firefox/i.test(navigator.userAgent)?(this.addBinding({key:"Backspace"},{collapsed:!0},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0},this.handleDelete)):(this.addBinding({key:"Backspace"},{collapsed:!0,prefix:/^.?$/},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0,suffix:/^.?$/},this.handleDelete)),this.addBinding({key:"Backspace"},{collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Delete"},{collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Backspace",altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},this.handleBackspace),this.listen()}addBinding(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const s=Pb(e);if(s==null){Ib.warn("Attempted to add invalid keyboard binding",s);return}typeof t=="function"&&(t={handler:t}),typeof r=="function"&&(r={handler:r}),(Array.isArray(s.key)?s.key:[s.key]).forEach(a=>{const c={...s,key:a,...t,...r};this.bindings[c.key]=this.bindings[c.key]||[],this.bindings[c.key].push(c)})}listen(){this.quill.root.addEventListener("keydown",e=>{if(e.defaultPrevented||e.isComposing||e.keyCode===229&&(e.key==="Enter"||e.key==="Backspace"))return;const s=(this.bindings[e.key]||[]).concat(this.bindings[e.which]||[]).filter(A=>qs.match(e,A));if(s.length===0)return;const l=le.find(e.target,!0);if(l&&l.scroll!==this.quill.scroll)return;const a=this.quill.getSelection();if(a==null||!this.quill.hasFocus())return;const[c,o]=this.quill.getLine(a.index),[u,d]=this.quill.getLeaf(a.index),[h,f]=a.length===0?[u,d]:this.quill.getLeaf(a.index+a.length),m=u instanceof Ps?u.value().slice(0,d):"",p=h instanceof Ps?h.value().slice(f):"",y={collapsed:a.length===0,empty:a.length===0&&c.length()<=1,format:this.quill.getFormat(a),line:c,offset:o,prefix:m,suffix:p,event:e};s.some(A=>{if(A.collapsed!=null&&A.collapsed!==y.collapsed||A.empty!=null&&A.empty!==y.empty||A.offset!=null&&A.offset!==y.offset)return!1;if(Array.isArray(A.format)){if(A.format.every(T=>y.format[T]==null))return!1}else if(typeof A.format=="object"&&!Object.keys(A.format).every(T=>A.format[T]===!0?y.format[T]!=null:A.format[T]===!1?y.format[T]==null:Go(A.format[T],y.format[T])))return!1;return A.prefix!=null&&!A.prefix.test(y.prefix)||A.suffix!=null&&!A.suffix.test(y.suffix)?!1:A.handler.call(this,a,y,A)!==!0})&&e.preventDefault()})}handleBackspace(e,t){const r=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;if(e.index===0||this.quill.getLength()<=1)return;let s={};const[l]=this.quill.getLine(e.index);let a=new Te().retain(e.index-r).delete(r);if(t.offset===0){const[c]=this.quill.getLine(e.index-1);if(c&&!(c.statics.blotName==="block"&&c.length()<=1)){const u=l.formats(),d=this.quill.getFormat(e.index-1,1);if(s=Lt.AttributeMap.diff(u,d)||{},Object.keys(s).length>0){const h=new Te().retain(e.index+l.length()-2).retain(1,s);a=a.compose(h)}}}this.quill.updateContents(a,le.sources.USER),this.quill.focus()}handleDelete(e,t){const r=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(e.index>=this.quill.getLength()-r)return;let s={};const[l]=this.quill.getLine(e.index);let a=new Te().retain(e.index).delete(r);if(t.offset>=l.length()-1){const[c]=this.quill.getLine(e.index+1);if(c){const o=l.formats(),u=this.quill.getFormat(e.index,1);s=Lt.AttributeMap.diff(o,u)||{},Object.keys(s).length>0&&(a=a.retain(c.length()-1).retain(1,s))}}this.quill.updateContents(a,le.sources.USER),this.quill.focus()}handleDeleteRange(e){gi({range:e,quill:this.quill}),this.quill.focus()}handleEnter(e,t){const r=Object.keys(t.format).reduce((l,a)=>(this.quill.scroll.query(a,Ne.BLOCK)&&!Array.isArray(t.format[a])&&(l[a]=t.format[a]),l),{}),s=new Te().retain(e.index).delete(e.length).insert(`
39
+ `,r);this.quill.updateContents(s,le.sources.USER),this.quill.setSelection(e.index+1,le.sources.SILENT),this.quill.focus()}}const Bb={bindings:{bold:mi("bold"),italic:mi("italic"),underline:mi("underline"),indent:{key:"Tab",format:["blockquote","indent","list"],handler(n,e){return e.collapsed&&e.offset!==0?!0:(this.quill.format("indent","+1",le.sources.USER),!1)}},outdent:{key:"Tab",shiftKey:!0,format:["blockquote","indent","list"],handler(n,e){return e.collapsed&&e.offset!==0?!0:(this.quill.format("indent","-1",le.sources.USER),!1)}},"outdent backspace":{key:"Backspace",collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler(n,e){e.format.indent!=null?this.quill.format("indent","-1",le.sources.USER):e.format.list!=null&&this.quill.format("list",!1,le.sources.USER)}},"indent code-block":kc(!0),"outdent code-block":kc(!1),"remove tab":{key:"Tab",shiftKey:!0,collapsed:!0,prefix:/\t$/,handler(n){this.quill.deleteText(n.index-1,1,le.sources.USER)}},tab:{key:"Tab",handler(n,e){if(e.format.table)return!0;this.quill.history.cutoff();const t=new Te().retain(n.index).delete(n.length).insert(" ");return this.quill.updateContents(t,le.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(n.index+1,le.sources.SILENT),!1}},"blockquote empty enter":{key:"Enter",collapsed:!0,format:["blockquote"],empty:!0,handler(){this.quill.format("blockquote",!1,le.sources.USER)}},"list empty enter":{key:"Enter",collapsed:!0,format:["list"],empty:!0,handler(n,e){const t={list:!1};e.format.indent&&(t.indent=!1),this.quill.formatLine(n.index,n.length,t,le.sources.USER)}},"checklist enter":{key:"Enter",collapsed:!0,format:{list:"checked"},handler(n){const[e,t]=this.quill.getLine(n.index),r={...e.formats(),list:"checked"},s=new Te().retain(n.index).insert(`
40
40
  `,r).retain(e.length()-t-1).retain(1,{list:"unchecked"});this.quill.updateContents(s,le.sources.USER),this.quill.setSelection(n.index+1,le.sources.SILENT),this.quill.scrollSelectionIntoView()}},"header enter":{key:"Enter",collapsed:!0,format:["header"],suffix:/^$/,handler(n,e){const[t,r]=this.quill.getLine(n.index),s=new Te().retain(n.index).insert(`
41
- `,e.format).retain(t.length()-r-1).retain(1,{header:null});this.quill.updateContents(s,le.sources.USER),this.quill.setSelection(n.index+1,le.sources.SILENT),this.quill.scrollSelectionIntoView()}},"table backspace":{key:"Backspace",format:["table"],collapsed:!0,offset:0,handler(){}},"table delete":{key:"Delete",format:["table"],collapsed:!0,suffix:/^$/,handler(){}},"table enter":{key:"Enter",shiftKey:null,format:["table"],handler(n){const e=this.quill.getModule("table");if(e){const[t,r,s,l]=e.getTable(n),a=Lb(t,r,s,l);if(a==null)return;let c=t.offset();if(a<0){const o=new Te().retain(c).insert(`
41
+ `,e.format).retain(t.length()-r-1).retain(1,{header:null});this.quill.updateContents(s,le.sources.USER),this.quill.setSelection(n.index+1,le.sources.SILENT),this.quill.scrollSelectionIntoView()}},"table backspace":{key:"Backspace",format:["table"],collapsed:!0,offset:0,handler(){}},"table delete":{key:"Delete",format:["table"],collapsed:!0,suffix:/^$/,handler(){}},"table enter":{key:"Enter",shiftKey:null,format:["table"],handler(n){const e=this.quill.getModule("table");if(e){const[t,r,s,l]=e.getTable(n),a=Fb(t,r,s,l);if(a==null)return;let c=t.offset();if(a<0){const o=new Te().retain(c).insert(`
42
42
  `);this.quill.updateContents(o,le.sources.USER),this.quill.setSelection(n.index+1,n.length,le.sources.SILENT)}else if(a>0){c+=t.length();const o=new Te().retain(c).insert(`
43
- `);this.quill.updateContents(o,le.sources.USER),this.quill.setSelection(c,le.sources.USER)}}}},"table tab":{key:"Tab",shiftKey:null,format:["table"],handler(n,e){const{event:t,line:r}=e,s=r.offset(this.quill.scroll);t.shiftKey?this.quill.setSelection(s-1,le.sources.USER):this.quill.setSelection(s+r.length(),le.sources.USER)}},"list autofill":{key:" ",shiftKey:null,collapsed:!0,format:{"code-block":!1,blockquote:!1,table:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler(n,e){if(this.quill.scroll.query("list")==null)return!0;const{length:t}=e.prefix,[r,s]=this.quill.getLine(n.index);if(s>t)return!0;let l;switch(e.prefix.trim()){case"[]":case"[ ]":l="unchecked";break;case"[x]":l="checked";break;case"-":case"*":l="bullet";break;default:l="ordered"}this.quill.insertText(n.index," ",le.sources.USER),this.quill.history.cutoff();const a=new Te().retain(n.index-s).delete(t+1).retain(r.length()-2-s).retain(1,{list:l});return this.quill.updateContents(a,le.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(n.index-t,le.sources.SILENT),!1}},"code exit":{key:"Enter",collapsed:!0,format:["code-block"],prefix:/^$/,suffix:/^\s*$/,handler(n){const[e,t]=this.quill.getLine(n.index);let r=2,s=e;for(;s!=null&&s.length()<=1&&s.formats()["code-block"];)if(s=s.prev,r-=1,r<=0){const l=new Te().retain(n.index+e.length()-t-2).retain(1,{"code-block":null}).delete(1);return this.quill.updateContents(l,le.sources.USER),this.quill.setSelection(n.index-1,le.sources.SILENT),!1}return!0}},"embed left":zs("ArrowLeft",!1),"embed left shift":zs("ArrowLeft",!0),"embed right":zs("ArrowRight",!1),"embed right shift":zs("ArrowRight",!0),"table down":Cc(!1),"table up":Cc(!0)}};qs.DEFAULTS=Rb;function kc(n){return{key:"Tab",shiftKey:!n,format:{"code-block":!0},handler(e,t){let{event:r}=t;const s=this.quill.scroll.query("code-block"),{TAB:l}=s;if(e.length===0&&!r.shiftKey){this.quill.insertText(e.index,l,le.sources.USER),this.quill.setSelection(e.index+l.length,le.sources.SILENT);return}const a=e.length===0?this.quill.getLines(e.index,1):this.quill.getLines(e);let{index:c,length:o}=e;a.forEach((u,d)=>{n?(u.insertAt(0,l),d===0?c+=l.length:o+=l.length):u.domNode.textContent.startsWith(l)&&(u.deleteAt(0,l.length),d===0?c-=l.length:o-=l.length)}),this.quill.update(le.sources.USER),this.quill.setSelection(c,o,le.sources.SILENT)}}}function zs(n,e){return{key:n,shiftKey:e,altKey:null,[n==="ArrowLeft"?"prefix":"suffix"]:/^$/,handler(r){let{index:s}=r;n==="ArrowRight"&&(s+=r.length+1);const[l]=this.quill.getLeaf(s);return l instanceof Ot?(n==="ArrowLeft"?e?this.quill.setSelection(r.index-1,r.length+1,le.sources.USER):this.quill.setSelection(r.index-1,le.sources.USER):e?this.quill.setSelection(r.index,r.length+1,le.sources.USER):this.quill.setSelection(r.index+r.length+1,le.sources.USER),!1):!0}}}function mi(n){return{key:n[0],shortKey:!0,handler(e,t){this.quill.format(n,!t.format[n],le.sources.USER)}}}function Cc(n){return{key:n?"ArrowUp":"ArrowDown",collapsed:!0,format:["table"],handler(e,t){const r=n?"prev":"next",s=t.line,l=s.parent[r];if(l!=null){if(l.statics.blotName==="table-row"){let a=l.children.head,c=s;for(;c.prev!=null;)c=c.prev,a=a.next;const o=a.offset(this.quill.scroll)+Math.min(t.offset,a.length()-1);this.quill.setSelection(o,0,le.sources.USER)}}else{const a=s.table()[r];a!=null&&(n?this.quill.setSelection(a.offset(this.quill.scroll)+a.length()-1,0,le.sources.USER):this.quill.setSelection(a.offset(this.quill.scroll),0,le.sources.USER))}return!1}}}function Ib(n){if(typeof n=="string"||typeof n=="number")n={key:n};else if(typeof n=="object")n=rr(n);else return null;return n.shortKey&&(n[Ob]=n.shortKey,delete n.shortKey),n}function gi(n){let{quill:e,range:t}=n;const r=e.getLines(t);let s={};if(r.length>1){const l=r[0].formats(),a=r[r.length-1].formats();s=Lt.AttributeMap.diff(a,l)||{}}e.deleteText(t,le.sources.USER),Object.keys(s).length>0&&e.formatLine(t.index,1,s,le.sources.USER),e.setSelection(t.index,le.sources.SILENT)}function Lb(n,e,t,r){return e.prev==null&&e.next==null?t.prev==null&&t.next==null?r===0?-1:1:t.prev==null?-1:1:e.prev==null?-1:e.next==null?1:null}const Bb=/font-weight:\s*normal/,Pb=["P","OL","UL"],Oc=n=>n&&Pb.includes(n.tagName),Fb=n=>{Array.from(n.querySelectorAll("br")).filter(e=>Oc(e.previousElementSibling)&&Oc(e.nextElementSibling)).forEach(e=>{var t;(t=e.parentNode)==null||t.removeChild(e)})},Mb=n=>{Array.from(n.querySelectorAll('b[style*="font-weight"]')).filter(e=>{var t;return(t=e.getAttribute("style"))==null?void 0:t.match(Bb)}).forEach(e=>{var r;const t=n.createDocumentFragment();t.append(...e.childNodes),(r=e.parentNode)==null||r.replaceChild(t,e)})};function Db(n){n.querySelector('[id^="docs-internal-guid-"]')&&(Mb(n),Fb(n))}const Ub=/\bmso-list:[^;]*ignore/i,_b=/\bmso-list:[^;]*\bl(\d+)/i,Vb=/\bmso-list:[^;]*\blevel(\d+)/i,jb=(n,e)=>{const t=n.getAttribute("style"),r=t==null?void 0:t.match(_b);if(!r)return null;const s=Number(r[1]),l=t==null?void 0:t.match(Vb),a=l?Number(l[1]):1,c=new RegExp(`@list l${s}:level${a}\\s*\\{[^\\}]*mso-level-number-format:\\s*([\\w-]+)`,"i"),o=e.match(c),u=o&&o[1]==="bullet"?"bullet":"ordered";return{id:s,indent:a,type:u,element:n}},$b=n=>{var a,c;const e=Array.from(n.querySelectorAll("[style*=mso-list]")),t=[],r=[];e.forEach(o=>{(o.getAttribute("style")||"").match(Ub)?t.push(o):r.push(o)}),t.forEach(o=>{var u;return(u=o.parentNode)==null?void 0:u.removeChild(o)});const s=n.documentElement.innerHTML,l=r.map(o=>jb(o,s)).filter(o=>o);for(;l.length;){const o=[];let u=l.shift();for(;u;)o.push(u),u=l.length&&((a=l[0])==null?void 0:a.element)===u.element.nextElementSibling&&l[0].id===u.id?l.shift():null;const d=document.createElement("ul");o.forEach(m=>{const p=document.createElement("li");p.setAttribute("data-list",m.type),m.indent>1&&p.setAttribute("class",`ql-indent-${m.indent-1}`),p.innerHTML=m.element.innerHTML,d.appendChild(p)});const h=(c=o[0])==null?void 0:c.element,{parentNode:f}=h??{};h&&(f==null||f.replaceChild(d,h)),o.slice(1).forEach(m=>{let{element:p}=m;f==null||f.removeChild(p)})}};function qb(n){n.documentElement.getAttribute("xmlns:w")==="urn:schemas-microsoft-com:office:word"&&$b(n)}const zb=[qb,Db],Hb=n=>{n.documentElement&&zb.forEach(e=>{e(n)})},Gb=fn("quill:clipboard"),Wb=[[Node.TEXT_NODE,ox],[Node.TEXT_NODE,Bc],["br",Qb],[Node.ELEMENT_NODE,Bc],[Node.ELEMENT_NODE,Zb],[Node.ELEMENT_NODE,Yb],[Node.ELEMENT_NODE,rx],["li",tx],["ol, ul",nx],["pre",Jb],["tr",sx],["b",vi("bold")],["i",vi("italic")],["strike",vi("strike")],["style",ex]],Kb=[Sb,bc].reduce((n,e)=>(n[e.keyName]=e,n),{}),Rc=[yc,fi,di,Ec,Sc,Nc].reduce((n,e)=>(n[e.keyName]=e,n),{});class Ic extends Gt{constructor(e,t){super(e,t),this.quill.root.addEventListener("copy",r=>this.onCaptureCopy(r,!1)),this.quill.root.addEventListener("cut",r=>this.onCaptureCopy(r,!0)),this.quill.root.addEventListener("paste",this.onCapturePaste.bind(this)),this.matchers=[],Wb.concat(this.options.matchers??[]).forEach(r=>{let[s,l]=r;this.addMatcher(s,l)})}addMatcher(e,t){this.matchers.push([e,t])}convert(e){let{html:t,text:r}=e,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(s[vt.blotName])return new Te().insert(r||"",{[vt.blotName]:s[vt.blotName]});if(!t)return new Te().insert(r||"",s);const l=this.convertHTML(t);return zr(l,`
44
- `)&&(l.ops[l.ops.length-1].attributes==null||s.table)?l.compose(new Te().retain(l.length()-1).delete(1)):l}normalizeHTML(e){Hb(e)}convertHTML(e){const t=new DOMParser().parseFromString(e,"text/html");this.normalizeHTML(t);const r=t.body,s=new WeakMap,[l,a]=this.prepareMatching(r,s);return yi(this.quill.scroll,r,l,a,s)}dangerouslyPasteHTML(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:le.sources.API;if(typeof e=="string"){const s=this.convert({html:e,text:""});this.quill.setContents(s,t),this.quill.setSelection(0,le.sources.SILENT)}else{const s=this.convert({html:t,text:""});this.quill.updateContents(new Te().retain(e).concat(s),r),this.quill.setSelection(e+s.length(),le.sources.SILENT)}}onCaptureCopy(e){var a,c;let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(e.defaultPrevented)return;e.preventDefault();const[r]=this.quill.selection.getRange();if(r==null)return;const{html:s,text:l}=this.onCopy(r,t);(a=e.clipboardData)==null||a.setData("text/plain",l),(c=e.clipboardData)==null||c.setData("text/html",s),t&&gi({range:r,quill:this.quill})}normalizeURIList(e){return e.split(/\r?\n/).filter(t=>t[0]!=="#").join(`
45
- `)}onCapturePaste(e){var a,c,o,u,d;if(e.defaultPrevented||!this.quill.isEnabled())return;e.preventDefault();const t=this.quill.getSelection(!0);if(t==null)return;const r=(a=e.clipboardData)==null?void 0:a.getData("text/html");let s=(c=e.clipboardData)==null?void 0:c.getData("text/plain");if(!r&&!s){const h=(o=e.clipboardData)==null?void 0:o.getData("text/uri-list");h&&(s=this.normalizeURIList(h))}const l=Array.from(((u=e.clipboardData)==null?void 0:u.files)||[]);if(!r&&l.length>0){this.quill.uploader.upload(t,l);return}if(r&&l.length>0){const h=new DOMParser().parseFromString(r,"text/html");if(h.body.childElementCount===1&&((d=h.body.firstElementChild)==null?void 0:d.tagName)==="IMG"){this.quill.uploader.upload(t,l);return}}this.onPaste(t,{html:r,text:s})}onCopy(e){const t=this.quill.getText(e);return{html:this.quill.getSemanticHTML(e),text:t}}onPaste(e,t){let{text:r,html:s}=t;const l=this.quill.getFormat(e.index),a=this.convert({text:r,html:s},l);Gb.log("onPaste",a,{text:r,html:s});const c=new Te().retain(e.index).delete(e.length).concat(a);this.quill.updateContents(c,le.sources.USER),this.quill.setSelection(c.length()-e.length,le.sources.SILENT),this.quill.scrollSelectionIntoView()}prepareMatching(e,t){const r=[],s=[];return this.matchers.forEach(l=>{const[a,c]=l;switch(a){case Node.TEXT_NODE:s.push(c);break;case Node.ELEMENT_NODE:r.push(c);break;default:Array.from(e.querySelectorAll(a)).forEach(o=>{if(t.has(o)){const u=t.get(o);u==null||u.push(c)}else t.set(o,[c])});break}}),[r,s]}}Ee(Ic,"DEFAULTS",{matchers:[]});function Hn(n,e,t,r){return r.query(e)?n.reduce((s,l)=>{if(!l.insert)return s;if(l.attributes&&l.attributes[e])return s.push(l);const a=t?{[e]:t}:{};return s.insert(l.insert,{...a,...l.attributes})},new Te):n}function zr(n,e){let t="";for(let r=n.ops.length-1;r>=0&&t.length<e.length;--r){const s=n.ops[r];if(typeof s.insert!="string")break;t=s.insert+t}return t.slice(-1*e.length)===e}function Nn(n,e){if(!(n instanceof Element))return!1;const t=e.query(n);return t&&t.prototype instanceof Ot?!1:["address","article","blockquote","canvas","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","iframe","li","main","nav","ol","output","p","pre","section","table","td","tr","ul","video"].includes(n.tagName.toLowerCase())}function Xb(n,e){return n.previousElementSibling&&n.nextElementSibling&&!Nn(n.previousElementSibling,e)&&!Nn(n.nextElementSibling,e)}const Hs=new WeakMap;function Lc(n){return n==null?!1:(Hs.has(n)||(n.tagName==="PRE"?Hs.set(n,!0):Hs.set(n,Lc(n.parentNode))),Hs.get(n))}function yi(n,e,t,r,s){return e.nodeType===e.TEXT_NODE?r.reduce((l,a)=>a(e,l,n),new Te):e.nodeType===e.ELEMENT_NODE?Array.from(e.childNodes||[]).reduce((l,a)=>{let c=yi(n,a,t,r,s);return a.nodeType===e.ELEMENT_NODE&&(c=t.reduce((o,u)=>u(a,o,n),c),c=(s.get(a)||[]).reduce((o,u)=>u(a,o,n),c)),l.concat(c)},new Te):new Te}function vi(n){return(e,t,r)=>Hn(t,n,!0,r)}function Yb(n,e,t){const r=nn.keys(n),s=$t.keys(n),l=Tn.keys(n),a={};return r.concat(s).concat(l).forEach(c=>{let o=t.query(c,Ne.ATTRIBUTE);o!=null&&(a[o.attrName]=o.value(n),a[o.attrName])||(o=Kb[c],o!=null&&(o.attrName===c||o.keyName===c)&&(a[o.attrName]=o.value(n)||void 0),o=Rc[c],o!=null&&(o.attrName===c||o.keyName===c)&&(o=Rc[c],a[o.attrName]=o.value(n)||void 0))}),Object.entries(a).reduce((c,o)=>{let[u,d]=o;return Hn(c,u,d,t)},e)}function Zb(n,e,t){const r=t.query(n);if(r==null)return e;if(r.prototype instanceof Ot){const s={},l=r.value(n);if(l!=null)return s[r.blotName]=l,new Te().insert(s,r.formats(n,t))}else if(r.prototype instanceof Vr&&!zr(e,`
43
+ `);this.quill.updateContents(o,le.sources.USER),this.quill.setSelection(c,le.sources.USER)}}}},"table tab":{key:"Tab",shiftKey:null,format:["table"],handler(n,e){const{event:t,line:r}=e,s=r.offset(this.quill.scroll);t.shiftKey?this.quill.setSelection(s-1,le.sources.USER):this.quill.setSelection(s+r.length(),le.sources.USER)}},"list autofill":{key:" ",shiftKey:null,collapsed:!0,format:{"code-block":!1,blockquote:!1,table:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler(n,e){if(this.quill.scroll.query("list")==null)return!0;const{length:t}=e.prefix,[r,s]=this.quill.getLine(n.index);if(s>t)return!0;let l;switch(e.prefix.trim()){case"[]":case"[ ]":l="unchecked";break;case"[x]":l="checked";break;case"-":case"*":l="bullet";break;default:l="ordered"}this.quill.insertText(n.index," ",le.sources.USER),this.quill.history.cutoff();const a=new Te().retain(n.index-s).delete(t+1).retain(r.length()-2-s).retain(1,{list:l});return this.quill.updateContents(a,le.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(n.index-t,le.sources.SILENT),!1}},"code exit":{key:"Enter",collapsed:!0,format:["code-block"],prefix:/^$/,suffix:/^\s*$/,handler(n){const[e,t]=this.quill.getLine(n.index);let r=2,s=e;for(;s!=null&&s.length()<=1&&s.formats()["code-block"];)if(s=s.prev,r-=1,r<=0){const l=new Te().retain(n.index+e.length()-t-2).retain(1,{"code-block":null}).delete(1);return this.quill.updateContents(l,le.sources.USER),this.quill.setSelection(n.index-1,le.sources.SILENT),!1}return!0}},"embed left":zs("ArrowLeft",!1),"embed left shift":zs("ArrowLeft",!0),"embed right":zs("ArrowRight",!1),"embed right shift":zs("ArrowRight",!0),"table down":Cc(!1),"table up":Cc(!0)}};qs.DEFAULTS=Bb;function kc(n){return{key:"Tab",shiftKey:!n,format:{"code-block":!0},handler(e,t){let{event:r}=t;const s=this.quill.scroll.query("code-block"),{TAB:l}=s;if(e.length===0&&!r.shiftKey){this.quill.insertText(e.index,l,le.sources.USER),this.quill.setSelection(e.index+l.length,le.sources.SILENT);return}const a=e.length===0?this.quill.getLines(e.index,1):this.quill.getLines(e);let{index:c,length:o}=e;a.forEach((u,d)=>{n?(u.insertAt(0,l),d===0?c+=l.length:o+=l.length):u.domNode.textContent.startsWith(l)&&(u.deleteAt(0,l.length),d===0?c-=l.length:o-=l.length)}),this.quill.update(le.sources.USER),this.quill.setSelection(c,o,le.sources.SILENT)}}}function zs(n,e){return{key:n,shiftKey:e,altKey:null,[n==="ArrowLeft"?"prefix":"suffix"]:/^$/,handler(r){let{index:s}=r;n==="ArrowRight"&&(s+=r.length+1);const[l]=this.quill.getLeaf(s);return l instanceof Ot?(n==="ArrowLeft"?e?this.quill.setSelection(r.index-1,r.length+1,le.sources.USER):this.quill.setSelection(r.index-1,le.sources.USER):e?this.quill.setSelection(r.index,r.length+1,le.sources.USER):this.quill.setSelection(r.index+r.length+1,le.sources.USER),!1):!0}}}function mi(n){return{key:n[0],shortKey:!0,handler(e,t){this.quill.format(n,!t.format[n],le.sources.USER)}}}function Cc(n){return{key:n?"ArrowUp":"ArrowDown",collapsed:!0,format:["table"],handler(e,t){const r=n?"prev":"next",s=t.line,l=s.parent[r];if(l!=null){if(l.statics.blotName==="table-row"){let a=l.children.head,c=s;for(;c.prev!=null;)c=c.prev,a=a.next;const o=a.offset(this.quill.scroll)+Math.min(t.offset,a.length()-1);this.quill.setSelection(o,0,le.sources.USER)}}else{const a=s.table()[r];a!=null&&(n?this.quill.setSelection(a.offset(this.quill.scroll)+a.length()-1,0,le.sources.USER):this.quill.setSelection(a.offset(this.quill.scroll),0,le.sources.USER))}return!1}}}function Pb(n){if(typeof n=="string"||typeof n=="number")n={key:n};else if(typeof n=="object")n=rr(n);else return null;return n.shortKey&&(n[Lb]=n.shortKey,delete n.shortKey),n}function gi(n){let{quill:e,range:t}=n;const r=e.getLines(t);let s={};if(r.length>1){const l=r[0].formats(),a=r[r.length-1].formats();s=Lt.AttributeMap.diff(a,l)||{}}e.deleteText(t,le.sources.USER),Object.keys(s).length>0&&e.formatLine(t.index,1,s,le.sources.USER),e.setSelection(t.index,le.sources.SILENT)}function Fb(n,e,t,r){return e.prev==null&&e.next==null?t.prev==null&&t.next==null?r===0?-1:1:t.prev==null?-1:1:e.prev==null?-1:e.next==null?1:null}const Mb=/font-weight:\s*normal/,Db=["P","OL","UL"],Oc=n=>n&&Db.includes(n.tagName),Ub=n=>{Array.from(n.querySelectorAll("br")).filter(e=>Oc(e.previousElementSibling)&&Oc(e.nextElementSibling)).forEach(e=>{var t;(t=e.parentNode)==null||t.removeChild(e)})},_b=n=>{Array.from(n.querySelectorAll('b[style*="font-weight"]')).filter(e=>{var t;return(t=e.getAttribute("style"))==null?void 0:t.match(Mb)}).forEach(e=>{var r;const t=n.createDocumentFragment();t.append(...e.childNodes),(r=e.parentNode)==null||r.replaceChild(t,e)})};function Vb(n){n.querySelector('[id^="docs-internal-guid-"]')&&(_b(n),Ub(n))}const jb=/\bmso-list:[^;]*ignore/i,$b=/\bmso-list:[^;]*\bl(\d+)/i,qb=/\bmso-list:[^;]*\blevel(\d+)/i,zb=(n,e)=>{const t=n.getAttribute("style"),r=t==null?void 0:t.match($b);if(!r)return null;const s=Number(r[1]),l=t==null?void 0:t.match(qb),a=l?Number(l[1]):1,c=new RegExp(`@list l${s}:level${a}\\s*\\{[^\\}]*mso-level-number-format:\\s*([\\w-]+)`,"i"),o=e.match(c),u=o&&o[1]==="bullet"?"bullet":"ordered";return{id:s,indent:a,type:u,element:n}},Hb=n=>{var a,c;const e=Array.from(n.querySelectorAll("[style*=mso-list]")),t=[],r=[];e.forEach(o=>{(o.getAttribute("style")||"").match(jb)?t.push(o):r.push(o)}),t.forEach(o=>{var u;return(u=o.parentNode)==null?void 0:u.removeChild(o)});const s=n.documentElement.innerHTML,l=r.map(o=>zb(o,s)).filter(o=>o);for(;l.length;){const o=[];let u=l.shift();for(;u;)o.push(u),u=l.length&&((a=l[0])==null?void 0:a.element)===u.element.nextElementSibling&&l[0].id===u.id?l.shift():null;const d=document.createElement("ul");o.forEach(m=>{const p=document.createElement("li");p.setAttribute("data-list",m.type),m.indent>1&&p.setAttribute("class",`ql-indent-${m.indent-1}`),p.innerHTML=m.element.innerHTML,d.appendChild(p)});const h=(c=o[0])==null?void 0:c.element,{parentNode:f}=h??{};h&&(f==null||f.replaceChild(d,h)),o.slice(1).forEach(m=>{let{element:p}=m;f==null||f.removeChild(p)})}};function Gb(n){n.documentElement.getAttribute("xmlns:w")==="urn:schemas-microsoft-com:office:word"&&Hb(n)}const Wb=[Gb,Vb],Kb=n=>{n.documentElement&&Wb.forEach(e=>{e(n)})},Xb=fn("quill:clipboard"),Yb=[[Node.TEXT_NODE,lx],[Node.TEXT_NODE,Bc],["br",tx],[Node.ELEMENT_NODE,Bc],[Node.ELEMENT_NODE,ex],[Node.ELEMENT_NODE,Qb],[Node.ELEMENT_NODE,ix],["li",sx],["ol, ul",ox],["pre",nx],["tr",ax],["b",vi("bold")],["i",vi("italic")],["strike",vi("strike")],["style",rx]],Zb=[kb,bc].reduce((n,e)=>(n[e.keyName]=e,n),{}),Rc=[yc,fi,di,Ec,Sc,Nc].reduce((n,e)=>(n[e.keyName]=e,n),{});class Ic extends Gt{constructor(e,t){super(e,t),this.quill.root.addEventListener("copy",r=>this.onCaptureCopy(r,!1)),this.quill.root.addEventListener("cut",r=>this.onCaptureCopy(r,!0)),this.quill.root.addEventListener("paste",this.onCapturePaste.bind(this)),this.matchers=[],Yb.concat(this.options.matchers??[]).forEach(r=>{let[s,l]=r;this.addMatcher(s,l)})}addMatcher(e,t){this.matchers.push([e,t])}convert(e){let{html:t,text:r}=e,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(s[vt.blotName])return new Te().insert(r||"",{[vt.blotName]:s[vt.blotName]});if(!t)return new Te().insert(r||"",s);const l=this.convertHTML(t);return zr(l,`
44
+ `)&&(l.ops[l.ops.length-1].attributes==null||s.table)?l.compose(new Te().retain(l.length()-1).delete(1)):l}normalizeHTML(e){Kb(e)}convertHTML(e){const t=new DOMParser().parseFromString(e,"text/html");this.normalizeHTML(t);const r=t.body,s=new WeakMap,[l,a]=this.prepareMatching(r,s);return yi(this.quill.scroll,r,l,a,s)}dangerouslyPasteHTML(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:le.sources.API;if(typeof e=="string"){const s=this.convert({html:e,text:""});this.quill.setContents(s,t),this.quill.setSelection(0,le.sources.SILENT)}else{const s=this.convert({html:t,text:""});this.quill.updateContents(new Te().retain(e).concat(s),r),this.quill.setSelection(e+s.length(),le.sources.SILENT)}}onCaptureCopy(e){var a,c;let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(e.defaultPrevented)return;e.preventDefault();const[r]=this.quill.selection.getRange();if(r==null)return;const{html:s,text:l}=this.onCopy(r,t);(a=e.clipboardData)==null||a.setData("text/plain",l),(c=e.clipboardData)==null||c.setData("text/html",s),t&&gi({range:r,quill:this.quill})}normalizeURIList(e){return e.split(/\r?\n/).filter(t=>t[0]!=="#").join(`
45
+ `)}onCapturePaste(e){var a,c,o,u,d;if(e.defaultPrevented||!this.quill.isEnabled())return;e.preventDefault();const t=this.quill.getSelection(!0);if(t==null)return;const r=(a=e.clipboardData)==null?void 0:a.getData("text/html");let s=(c=e.clipboardData)==null?void 0:c.getData("text/plain");if(!r&&!s){const h=(o=e.clipboardData)==null?void 0:o.getData("text/uri-list");h&&(s=this.normalizeURIList(h))}const l=Array.from(((u=e.clipboardData)==null?void 0:u.files)||[]);if(!r&&l.length>0){this.quill.uploader.upload(t,l);return}if(r&&l.length>0){const h=new DOMParser().parseFromString(r,"text/html");if(h.body.childElementCount===1&&((d=h.body.firstElementChild)==null?void 0:d.tagName)==="IMG"){this.quill.uploader.upload(t,l);return}}this.onPaste(t,{html:r,text:s})}onCopy(e){const t=this.quill.getText(e);return{html:this.quill.getSemanticHTML(e),text:t}}onPaste(e,t){let{text:r,html:s}=t;const l=this.quill.getFormat(e.index),a=this.convert({text:r,html:s},l);Xb.log("onPaste",a,{text:r,html:s});const c=new Te().retain(e.index).delete(e.length).concat(a);this.quill.updateContents(c,le.sources.USER),this.quill.setSelection(c.length()-e.length,le.sources.SILENT),this.quill.scrollSelectionIntoView()}prepareMatching(e,t){const r=[],s=[];return this.matchers.forEach(l=>{const[a,c]=l;switch(a){case Node.TEXT_NODE:s.push(c);break;case Node.ELEMENT_NODE:r.push(c);break;default:Array.from(e.querySelectorAll(a)).forEach(o=>{if(t.has(o)){const u=t.get(o);u==null||u.push(c)}else t.set(o,[c])});break}}),[r,s]}}Ee(Ic,"DEFAULTS",{matchers:[]});function Hn(n,e,t,r){return r.query(e)?n.reduce((s,l)=>{if(!l.insert)return s;if(l.attributes&&l.attributes[e])return s.push(l);const a=t?{[e]:t}:{};return s.insert(l.insert,{...a,...l.attributes})},new Te):n}function zr(n,e){let t="";for(let r=n.ops.length-1;r>=0&&t.length<e.length;--r){const s=n.ops[r];if(typeof s.insert!="string")break;t=s.insert+t}return t.slice(-1*e.length)===e}function Nn(n,e){if(!(n instanceof Element))return!1;const t=e.query(n);return t&&t.prototype instanceof Ot?!1:["address","article","blockquote","canvas","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","iframe","li","main","nav","ol","output","p","pre","section","table","td","tr","ul","video"].includes(n.tagName.toLowerCase())}function Jb(n,e){return n.previousElementSibling&&n.nextElementSibling&&!Nn(n.previousElementSibling,e)&&!Nn(n.nextElementSibling,e)}const Hs=new WeakMap;function Lc(n){return n==null?!1:(Hs.has(n)||(n.tagName==="PRE"?Hs.set(n,!0):Hs.set(n,Lc(n.parentNode))),Hs.get(n))}function yi(n,e,t,r,s){return e.nodeType===e.TEXT_NODE?r.reduce((l,a)=>a(e,l,n),new Te):e.nodeType===e.ELEMENT_NODE?Array.from(e.childNodes||[]).reduce((l,a)=>{let c=yi(n,a,t,r,s);return a.nodeType===e.ELEMENT_NODE&&(c=t.reduce((o,u)=>u(a,o,n),c),c=(s.get(a)||[]).reduce((o,u)=>u(a,o,n),c)),l.concat(c)},new Te):new Te}function vi(n){return(e,t,r)=>Hn(t,n,!0,r)}function Qb(n,e,t){const r=nn.keys(n),s=$t.keys(n),l=Tn.keys(n),a={};return r.concat(s).concat(l).forEach(c=>{let o=t.query(c,Ne.ATTRIBUTE);o!=null&&(a[o.attrName]=o.value(n),a[o.attrName])||(o=Zb[c],o!=null&&(o.attrName===c||o.keyName===c)&&(a[o.attrName]=o.value(n)||void 0),o=Rc[c],o!=null&&(o.attrName===c||o.keyName===c)&&(o=Rc[c],a[o.attrName]=o.value(n)||void 0))}),Object.entries(a).reduce((c,o)=>{let[u,d]=o;return Hn(c,u,d,t)},e)}function ex(n,e,t){const r=t.query(n);if(r==null)return e;if(r.prototype instanceof Ot){const s={},l=r.value(n);if(l!=null)return s[r.blotName]=l,new Te().insert(s,r.formats(n,t))}else if(r.prototype instanceof Vr&&!zr(e,`
46
46
  `)&&e.insert(`
47
- `),"blotName"in r&&"formats"in r&&typeof r.formats=="function")return Hn(e,r.blotName,r.formats(n,t),t);return e}function Qb(n,e){return zr(e,`
47
+ `),"blotName"in r&&"formats"in r&&typeof r.formats=="function")return Hn(e,r.blotName,r.formats(n,t),t);return e}function tx(n,e){return zr(e,`
48
48
  `)||e.insert(`
49
- `),e}function Jb(n,e,t){const r=t.query("code-block"),s=r&&"formats"in r&&typeof r.formats=="function"?r.formats(n,t):!0;return Hn(e,"code-block",s,t)}function ex(){return new Te}function tx(n,e,t){const r=t.query(n);if(r==null||r.blotName!=="list"||!zr(e,`
50
- `))return e;let s=-1,l=n.parentNode;for(;l!=null;)["OL","UL"].includes(l.tagName)&&(s+=1),l=l.parentNode;return s<=0?e:e.reduce((a,c)=>c.insert?c.attributes&&typeof c.attributes.indent=="number"?a.push(c):a.insert(c.insert,{indent:s,...c.attributes||{}}):a,new Te)}function nx(n,e,t){const r=n;let s=r.tagName==="OL"?"ordered":"bullet";const l=r.getAttribute("data-checked");return l&&(s=l==="true"?"checked":"unchecked"),Hn(e,"list",s,t)}function Bc(n,e,t){if(!zr(e,`
49
+ `),e}function nx(n,e,t){const r=t.query("code-block"),s=r&&"formats"in r&&typeof r.formats=="function"?r.formats(n,t):!0;return Hn(e,"code-block",s,t)}function rx(){return new Te}function sx(n,e,t){const r=t.query(n);if(r==null||r.blotName!=="list"||!zr(e,`
50
+ `))return e;let s=-1,l=n.parentNode;for(;l!=null;)["OL","UL"].includes(l.tagName)&&(s+=1),l=l.parentNode;return s<=0?e:e.reduce((a,c)=>c.insert?c.attributes&&typeof c.attributes.indent=="number"?a.push(c):a.insert(c.insert,{indent:s,...c.attributes||{}}):a,new Te)}function ox(n,e,t){const r=n;let s=r.tagName==="OL"?"ordered":"bullet";const l=r.getAttribute("data-checked");return l&&(s=l==="true"?"checked":"unchecked"),Hn(e,"list",s,t)}function Bc(n,e,t){if(!zr(e,`
51
51
  `)){if(Nn(n,t)&&(n.childNodes.length>0||n instanceof HTMLParagraphElement))return e.insert(`
52
52
  `);if(e.length()>0&&n.nextSibling){let r=n.nextSibling;for(;r!=null;){if(Nn(r,t))return e.insert(`
53
53
  `);const s=t.query(r);if(s&&s.prototype instanceof Bt)return e.insert(`
54
- `);r=r.firstChild}}}return e}function rx(n,e,t){var l;const r={},s=n.style||{};return s.fontStyle==="italic"&&(r.italic=!0),s.textDecoration==="underline"&&(r.underline=!0),s.textDecoration==="line-through"&&(r.strike=!0),((l=s.fontWeight)!=null&&l.startsWith("bold")||parseInt(s.fontWeight,10)>=700)&&(r.bold=!0),e=Object.entries(r).reduce((a,c)=>{let[o,u]=c;return Hn(a,o,u,t)},e),parseFloat(s.textIndent||0)>0?new Te().insert(" ").concat(e):e}function sx(n,e,t){var s,l;const r=((s=n.parentElement)==null?void 0:s.tagName)==="TABLE"?n.parentElement:(l=n.parentElement)==null?void 0:l.parentElement;if(r!=null){const c=Array.from(r.querySelectorAll("tr")).indexOf(n)+1;return Hn(e,"table",c,t)}return e}function ox(n,e,t){var s;let r=n.data;if(((s=n.parentElement)==null?void 0:s.tagName)==="O:P")return e.insert(r.trim());if(!Lc(n)){if(r.trim().length===0&&r.includes(`
55
- `)&&!Xb(n,t))return e;r=r.replace(/[^\S\u00a0]/g," "),r=r.replace(/ {2,}/g," "),(n.previousSibling==null&&n.parentElement!=null&&Nn(n.parentElement,t)||n.previousSibling instanceof Element&&Nn(n.previousSibling,t))&&(r=r.replace(/^ /,"")),(n.nextSibling==null&&n.parentElement!=null&&Nn(n.parentElement,t)||n.nextSibling instanceof Element&&Nn(n.nextSibling,t))&&(r=r.replace(/ $/,"")),r=r.replaceAll(" "," ")}return e.insert(r)}class Pc extends Gt{constructor(t,r){super(t,r);Ee(this,"lastRecorded",0);Ee(this,"ignoreChange",!1);Ee(this,"stack",{undo:[],redo:[]});Ee(this,"currentRange",null);this.quill.on(le.events.EDITOR_CHANGE,(s,l,a,c)=>{s===le.events.SELECTION_CHANGE?l&&c!==le.sources.SILENT&&(this.currentRange=l):s===le.events.TEXT_CHANGE&&(this.ignoreChange||(!this.options.userOnly||c===le.sources.USER?this.record(l,a):this.transform(l)),this.currentRange=bi(this.currentRange,l))}),this.quill.keyboard.addBinding({key:"z",shortKey:!0},this.undo.bind(this)),this.quill.keyboard.addBinding({key:["z","Z"],shortKey:!0,shiftKey:!0},this.redo.bind(this)),/Win/i.test(navigator.platform)&&this.quill.keyboard.addBinding({key:"y",shortKey:!0},this.redo.bind(this)),this.quill.root.addEventListener("beforeinput",s=>{s.inputType==="historyUndo"?(this.undo(),s.preventDefault()):s.inputType==="historyRedo"&&(this.redo(),s.preventDefault())})}change(t,r){if(this.stack[t].length===0)return;const s=this.stack[t].pop();if(!s)return;const l=this.quill.getContents(),a=s.delta.invert(l);this.stack[r].push({delta:a,range:bi(s.range,a)}),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(s.delta,le.sources.USER),this.ignoreChange=!1,this.restoreSelection(s)}clear(){this.stack={undo:[],redo:[]}}cutoff(){this.lastRecorded=0}record(t,r){if(t.ops.length===0)return;this.stack.redo=[];let s=t.invert(r),l=this.currentRange;const a=Date.now();if(this.lastRecorded+this.options.delay>a&&this.stack.undo.length>0){const c=this.stack.undo.pop();c&&(s=s.compose(c.delta),l=c.range)}else this.lastRecorded=a;s.length()!==0&&(this.stack.undo.push({delta:s,range:l}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift())}redo(){this.change("redo","undo")}transform(t){Fc(this.stack.undo,t),Fc(this.stack.redo,t)}undo(){this.change("undo","redo")}restoreSelection(t){if(t.range)this.quill.setSelection(t.range,le.sources.USER);else{const r=ax(this.quill.scroll,t.delta);this.quill.setSelection(r,le.sources.USER)}}}Ee(Pc,"DEFAULTS",{delay:1e3,maxStack:100,userOnly:!1});function Fc(n,e){let t=e;for(let r=n.length-1;r>=0;r-=1){const s=n[r];n[r]={delta:t.transform(s.delta,!0),range:s.range&&bi(s.range,t)},t=s.delta.transform(t),n[r].delta.length()===0&&n.splice(r,1)}}function ix(n,e){const t=e.ops[e.ops.length-1];return t==null?!1:t.insert!=null?typeof t.insert=="string"&&t.insert.endsWith(`
56
- `):t.attributes!=null?Object.keys(t.attributes).some(r=>n.query(r,Ne.BLOCK)!=null):!1}function ax(n,e){const t=e.reduce((s,l)=>s+(l.delete||0),0);let r=e.length()-t;return ix(n,e)&&(r-=1),r}function bi(n,e){if(!n)return n;const t=e.transformPosition(n.index),r=e.transformPosition(n.index+n.length);return{index:t,length:r-t}}class Mc extends Gt{constructor(e,t){super(e,t),e.root.addEventListener("drop",r=>{var a;r.preventDefault();let s=null;if(document.caretRangeFromPoint)s=document.caretRangeFromPoint(r.clientX,r.clientY);else if(document.caretPositionFromPoint){const c=document.caretPositionFromPoint(r.clientX,r.clientY);s=document.createRange(),s.setStart(c.offsetNode,c.offset),s.setEnd(c.offsetNode,c.offset)}const l=s&&e.selection.normalizeNative(s);if(l){const c=e.selection.normalizedToRange(l);(a=r.dataTransfer)!=null&&a.files&&this.upload(c,r.dataTransfer.files)}})}upload(e,t){const r=[];Array.from(t).forEach(s=>{var l;s&&((l=this.options.mimetypes)!=null&&l.includes(s.type))&&r.push(s)}),r.length>0&&this.options.handler.call(this,e,r)}}Mc.DEFAULTS={mimetypes:["image/png","image/jpeg"],handler(n,e){if(!this.quill.scroll.query("image"))return;const t=e.map(r=>new Promise(s=>{const l=new FileReader;l.onload=()=>{s(l.result)},l.readAsDataURL(r)}));Promise.all(t).then(r=>{const s=r.reduce((l,a)=>l.insert({image:a}),new Te().retain(n.index).delete(n.length));this.quill.updateContents(s,Se.sources.USER),this.quill.setSelection(n.index+r.length,Se.sources.SILENT)})}};const lx=["insertText","insertReplacementText"];class cx extends Gt{constructor(e,t){super(e,t),e.root.addEventListener("beforeinput",r=>{this.handleBeforeInput(r)}),/Android/i.test(navigator.userAgent)||e.on(le.events.COMPOSITION_BEFORE_START,()=>{this.handleCompositionStart()})}deleteRange(e){gi({range:e,quill:this.quill})}replaceText(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";if(e.length===0)return!1;if(t){const r=this.quill.getFormat(e.index,1);this.deleteRange(e),this.quill.updateContents(new Te().retain(e.index).insert(t,r),le.sources.USER)}else this.deleteRange(e);return this.quill.setSelection(e.index+t.length,0,le.sources.SILENT),!0}handleBeforeInput(e){if(this.quill.composition.isComposing||e.defaultPrevented||!lx.includes(e.inputType))return;const t=e.getTargetRanges?e.getTargetRanges()[0]:null;if(!t||t.collapsed===!0)return;const r=ux(e);if(r==null)return;const s=this.quill.selection.normalizeNative(t),l=s?this.quill.selection.normalizedToRange(s):null;l&&this.replaceText(l,r)&&e.preventDefault()}handleCompositionStart(){const e=this.quill.getSelection();e&&this.replaceText(e)}}function ux(n){var e;return typeof n.data=="string"?n.data:(e=n.dataTransfer)!=null&&e.types.includes("text/plain")?n.dataTransfer.getData("text/plain"):null}const dx=/Mac/i.test(navigator.platform),fx=100,hx=n=>!!(n.key==="ArrowLeft"||n.key==="ArrowRight"||n.key==="ArrowUp"||n.key==="ArrowDown"||n.key==="Home"||dx&&n.key==="a"&&n.ctrlKey===!0);class px extends Gt{constructor(t,r){super(t,r);Ee(this,"isListening",!1);Ee(this,"selectionChangeDeadline",0);this.handleArrowKeys(),this.handleNavigationShortcuts()}handleArrowKeys(){this.quill.keyboard.addBinding({key:["ArrowLeft","ArrowRight"],offset:0,shiftKey:null,handler(t,r){let{line:s,event:l}=r;if(!(s instanceof qt)||!s.uiNode)return!0;const a=getComputedStyle(s.domNode).direction==="rtl";return a&&l.key!=="ArrowRight"||!a&&l.key!=="ArrowLeft"?!0:(this.quill.setSelection(t.index-1,t.length+(l.shiftKey?1:0),le.sources.USER),!1)}})}handleNavigationShortcuts(){this.quill.root.addEventListener("keydown",t=>{!t.defaultPrevented&&hx(t)&&this.ensureListeningToSelectionChange()})}ensureListeningToSelectionChange(){if(this.selectionChangeDeadline=Date.now()+fx,this.isListening)return;this.isListening=!0;const t=()=>{this.isListening=!1,Date.now()<=this.selectionChangeDeadline&&this.handleSelectionChange()};document.addEventListener("selectionchange",t,{once:!0})}handleSelectionChange(){const t=document.getSelection();if(!t)return;const r=t.getRangeAt(0);if(r.collapsed!==!0||r.startOffset!==0)return;const s=this.quill.scroll.find(r.startContainer);if(!(s instanceof qt)||!s.uiNode)return;const l=document.createRange();l.setStartAfter(s.uiNode),l.setEndAfter(s.uiNode),t.removeAllRanges(),t.addRange(l)}}le.register({"blots/block":ht,"blots/block/embed":Bt,"blots/break":zt,"blots/container":qn,"blots/cursor":cr,"blots/embed":ai,"blots/inline":rn,"blots/scroll":hr,"blots/text":Ht,"modules/clipboard":Ic,"modules/history":Pc,"modules/keyboard":qs,"modules/uploader":Mc,"modules/input":cx,"modules/uiNode":px});class mx extends $t{add(e,t){let r=0;if(t==="+1"||t==="-1"){const s=this.value(e)||0;r=t==="+1"?s+1:s-1}else typeof t=="number"&&(r=t);return r===0?(this.remove(e),!0):super.add(e,r.toString())}canAdd(e,t){return super.canAdd(e,t)||super.canAdd(e,parseInt(t,10))}value(e){return parseInt(super.value(e),10)||void 0}}const gx=new mx("indent","ql-indent",{scope:Ne.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});class xi extends ht{}Ee(xi,"blotName","blockquote"),Ee(xi,"tagName","blockquote");class Ei extends ht{static formats(e){return this.tagName.indexOf(e.tagName)+1}}Ee(Ei,"blotName","header"),Ee(Ei,"tagName",["H1","H2","H3","H4","H5","H6"]);class Hr extends qn{}Hr.blotName="list-container",Hr.tagName="OL";class Gr extends ht{static create(e){const t=super.create();return t.setAttribute("data-list",e),t}static formats(e){return e.getAttribute("data-list")||void 0}static register(){le.register(Hr)}constructor(e,t){super(e,t);const r=t.ownerDocument.createElement("span"),s=l=>{if(!e.isEnabled())return;const a=this.statics.formats(t,e);a==="checked"?(this.format("list","unchecked"),l.preventDefault()):a==="unchecked"&&(this.format("list","checked"),l.preventDefault())};r.addEventListener("mousedown",s),r.addEventListener("touchstart",s),this.attachUI(r)}format(e,t){e===this.statics.blotName&&t?this.domNode.setAttribute("data-list",t):super.format(e,t)}}Gr.blotName="list",Gr.tagName="LI",Hr.allowedChildren=[Gr],Gr.requiredContainer=Hr;class Wr extends rn{static create(){return super.create()}static formats(){return!0}optimize(e){super.optimize(e),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}Ee(Wr,"blotName","bold"),Ee(Wr,"tagName",["STRONG","B"]);class wi extends Wr{}Ee(wi,"blotName","italic"),Ee(wi,"tagName",["EM","I"]);class kn extends rn{static create(e){const t=super.create(e);return t.setAttribute("href",this.sanitize(e)),t.setAttribute("rel","noopener noreferrer"),t.setAttribute("target","_blank"),t}static formats(e){return e.getAttribute("href")}static sanitize(e){return Dc(e,this.PROTOCOL_WHITELIST)?e:this.SANITIZED_URL}format(e,t){e!==this.statics.blotName||!t?super.format(e,t):this.domNode.setAttribute("href",this.constructor.sanitize(t))}}Ee(kn,"blotName","link"),Ee(kn,"tagName","A"),Ee(kn,"SANITIZED_URL","about:blank"),Ee(kn,"PROTOCOL_WHITELIST",["http","https","mailto","tel","sms"]);function Dc(n,e){const t=document.createElement("a");t.href=n;const r=t.href.slice(0,t.href.indexOf(":"));return e.indexOf(r)>-1}class Ai extends rn{static create(e){return e==="super"?document.createElement("sup"):e==="sub"?document.createElement("sub"):super.create(e)}static formats(e){if(e.tagName==="SUB")return"sub";if(e.tagName==="SUP")return"super"}}Ee(Ai,"blotName","script"),Ee(Ai,"tagName",["SUB","SUP"]);class Si extends Wr{}Ee(Si,"blotName","strike"),Ee(Si,"tagName",["S","STRIKE"]);class Ti extends rn{}Ee(Ti,"blotName","underline"),Ee(Ti,"tagName","U");class Gs extends ai{static create(e){if(window.katex==null)throw new Error("Formula module requires KaTeX.");const t=super.create(e);return typeof e=="string"&&(window.katex.render(e,t,{throwOnError:!1,errorColor:"#f00"}),t.setAttribute("data-value",e)),t}static value(e){return e.getAttribute("data-value")}html(){const{formula:e}=this.value();return`<span>${e}</span>`}}Ee(Gs,"blotName","formula"),Ee(Gs,"className","ql-formula"),Ee(Gs,"tagName","SPAN");const Uc=["alt","height","width"];class Ni extends Ot{static create(e){const t=super.create(e);return typeof e=="string"&&t.setAttribute("src",this.sanitize(e)),t}static formats(e){return Uc.reduce((t,r)=>(e.hasAttribute(r)&&(t[r]=e.getAttribute(r)),t),{})}static match(e){return/\.(jpe?g|gif|png)$/.test(e)||/^data:image\/.+;base64/.test(e)}static sanitize(e){return Dc(e,["http","https","data"])?e:"//:0"}static value(e){return e.getAttribute("src")}format(e,t){Uc.indexOf(e)>-1?t?this.domNode.setAttribute(e,t):this.domNode.removeAttribute(e):super.format(e,t)}}Ee(Ni,"blotName","image"),Ee(Ni,"tagName","IMG");const _c=["height","width"];class Ws extends Bt{static create(e){const t=super.create(e);return t.setAttribute("frameborder","0"),t.setAttribute("allowfullscreen","true"),t.setAttribute("src",this.sanitize(e)),t}static formats(e){return _c.reduce((t,r)=>(e.hasAttribute(r)&&(t[r]=e.getAttribute(r)),t),{})}static sanitize(e){return kn.sanitize(e)}static value(e){return e.getAttribute("src")}format(e,t){_c.indexOf(e)>-1?t?this.domNode.setAttribute(e,t):this.domNode.removeAttribute(e):super.format(e,t)}html(){const{video:e}=this.value();return`<a href="${e}">${e}</a>`}}Ee(Ws,"blotName","video"),Ee(Ws,"className","ql-video"),Ee(Ws,"tagName","IFRAME");const Kr=new $t("code-token","hljs",{scope:Ne.INLINE});class pn extends rn{static formats(e,t){for(;e!=null&&e!==t.domNode;){if(e.classList&&e.classList.contains(vt.className))return super.formats(e,t);e=e.parentNode}}constructor(e,t,r){super(e,t,r),Kr.add(this.domNode,r)}format(e,t){e!==pn.blotName?super.format(e,t):t?Kr.add(this.domNode,t):(Kr.remove(this.domNode),this.domNode.classList.remove(this.statics.className))}optimize(){super.optimize(...arguments),Kr.value(this.domNode)||this.unwrap()}}pn.blotName="code-token",pn.className="ql-token";class Ft extends vt{static create(e){const t=super.create(e);return typeof e=="string"&&t.setAttribute("data-language",e),t}static formats(e){return e.getAttribute("data-language")||"plain"}static register(){}format(e,t){e===this.statics.blotName&&t?this.domNode.setAttribute("data-language",t):super.format(e,t)}replaceWith(e,t){return this.formatAt(0,this.length(),pn.blotName,!1),super.replaceWith(e,t)}}class Xr extends zn{attach(){super.attach(),this.forceNext=!1,this.scroll.emitMount(this)}format(e,t){e===Ft.blotName&&(this.forceNext=!0,this.children.forEach(r=>{r.format(e,t)}))}formatAt(e,t,r,s){r===Ft.blotName&&(this.forceNext=!0),super.formatAt(e,t,r,s)}highlight(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(this.children.head==null)return;const s=`${Array.from(this.domNode.childNodes).filter(a=>a!==this.uiNode).map(a=>a.textContent).join(`
54
+ `);r=r.firstChild}}}return e}function ix(n,e,t){var l;const r={},s=n.style||{};return s.fontStyle==="italic"&&(r.italic=!0),s.textDecoration==="underline"&&(r.underline=!0),s.textDecoration==="line-through"&&(r.strike=!0),((l=s.fontWeight)!=null&&l.startsWith("bold")||parseInt(s.fontWeight,10)>=700)&&(r.bold=!0),e=Object.entries(r).reduce((a,c)=>{let[o,u]=c;return Hn(a,o,u,t)},e),parseFloat(s.textIndent||0)>0?new Te().insert(" ").concat(e):e}function ax(n,e,t){var s,l;const r=((s=n.parentElement)==null?void 0:s.tagName)==="TABLE"?n.parentElement:(l=n.parentElement)==null?void 0:l.parentElement;if(r!=null){const c=Array.from(r.querySelectorAll("tr")).indexOf(n)+1;return Hn(e,"table",c,t)}return e}function lx(n,e,t){var s;let r=n.data;if(((s=n.parentElement)==null?void 0:s.tagName)==="O:P")return e.insert(r.trim());if(!Lc(n)){if(r.trim().length===0&&r.includes(`
55
+ `)&&!Jb(n,t))return e;r=r.replace(/[^\S\u00a0]/g," "),r=r.replace(/ {2,}/g," "),(n.previousSibling==null&&n.parentElement!=null&&Nn(n.parentElement,t)||n.previousSibling instanceof Element&&Nn(n.previousSibling,t))&&(r=r.replace(/^ /,"")),(n.nextSibling==null&&n.parentElement!=null&&Nn(n.parentElement,t)||n.nextSibling instanceof Element&&Nn(n.nextSibling,t))&&(r=r.replace(/ $/,"")),r=r.replaceAll(" "," ")}return e.insert(r)}class Pc extends Gt{constructor(t,r){super(t,r);Ee(this,"lastRecorded",0);Ee(this,"ignoreChange",!1);Ee(this,"stack",{undo:[],redo:[]});Ee(this,"currentRange",null);this.quill.on(le.events.EDITOR_CHANGE,(s,l,a,c)=>{s===le.events.SELECTION_CHANGE?l&&c!==le.sources.SILENT&&(this.currentRange=l):s===le.events.TEXT_CHANGE&&(this.ignoreChange||(!this.options.userOnly||c===le.sources.USER?this.record(l,a):this.transform(l)),this.currentRange=bi(this.currentRange,l))}),this.quill.keyboard.addBinding({key:"z",shortKey:!0},this.undo.bind(this)),this.quill.keyboard.addBinding({key:["z","Z"],shortKey:!0,shiftKey:!0},this.redo.bind(this)),/Win/i.test(navigator.platform)&&this.quill.keyboard.addBinding({key:"y",shortKey:!0},this.redo.bind(this)),this.quill.root.addEventListener("beforeinput",s=>{s.inputType==="historyUndo"?(this.undo(),s.preventDefault()):s.inputType==="historyRedo"&&(this.redo(),s.preventDefault())})}change(t,r){if(this.stack[t].length===0)return;const s=this.stack[t].pop();if(!s)return;const l=this.quill.getContents(),a=s.delta.invert(l);this.stack[r].push({delta:a,range:bi(s.range,a)}),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(s.delta,le.sources.USER),this.ignoreChange=!1,this.restoreSelection(s)}clear(){this.stack={undo:[],redo:[]}}cutoff(){this.lastRecorded=0}record(t,r){if(t.ops.length===0)return;this.stack.redo=[];let s=t.invert(r),l=this.currentRange;const a=Date.now();if(this.lastRecorded+this.options.delay>a&&this.stack.undo.length>0){const c=this.stack.undo.pop();c&&(s=s.compose(c.delta),l=c.range)}else this.lastRecorded=a;s.length()!==0&&(this.stack.undo.push({delta:s,range:l}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift())}redo(){this.change("redo","undo")}transform(t){Fc(this.stack.undo,t),Fc(this.stack.redo,t)}undo(){this.change("undo","redo")}restoreSelection(t){if(t.range)this.quill.setSelection(t.range,le.sources.USER);else{const r=ux(this.quill.scroll,t.delta);this.quill.setSelection(r,le.sources.USER)}}}Ee(Pc,"DEFAULTS",{delay:1e3,maxStack:100,userOnly:!1});function Fc(n,e){let t=e;for(let r=n.length-1;r>=0;r-=1){const s=n[r];n[r]={delta:t.transform(s.delta,!0),range:s.range&&bi(s.range,t)},t=s.delta.transform(t),n[r].delta.length()===0&&n.splice(r,1)}}function cx(n,e){const t=e.ops[e.ops.length-1];return t==null?!1:t.insert!=null?typeof t.insert=="string"&&t.insert.endsWith(`
56
+ `):t.attributes!=null?Object.keys(t.attributes).some(r=>n.query(r,Ne.BLOCK)!=null):!1}function ux(n,e){const t=e.reduce((s,l)=>s+(l.delete||0),0);let r=e.length()-t;return cx(n,e)&&(r-=1),r}function bi(n,e){if(!n)return n;const t=e.transformPosition(n.index),r=e.transformPosition(n.index+n.length);return{index:t,length:r-t}}class Mc extends Gt{constructor(e,t){super(e,t),e.root.addEventListener("drop",r=>{var a;r.preventDefault();let s=null;if(document.caretRangeFromPoint)s=document.caretRangeFromPoint(r.clientX,r.clientY);else if(document.caretPositionFromPoint){const c=document.caretPositionFromPoint(r.clientX,r.clientY);s=document.createRange(),s.setStart(c.offsetNode,c.offset),s.setEnd(c.offsetNode,c.offset)}const l=s&&e.selection.normalizeNative(s);if(l){const c=e.selection.normalizedToRange(l);(a=r.dataTransfer)!=null&&a.files&&this.upload(c,r.dataTransfer.files)}})}upload(e,t){const r=[];Array.from(t).forEach(s=>{var l;s&&((l=this.options.mimetypes)!=null&&l.includes(s.type))&&r.push(s)}),r.length>0&&this.options.handler.call(this,e,r)}}Mc.DEFAULTS={mimetypes:["image/png","image/jpeg"],handler(n,e){if(!this.quill.scroll.query("image"))return;const t=e.map(r=>new Promise(s=>{const l=new FileReader;l.onload=()=>{s(l.result)},l.readAsDataURL(r)}));Promise.all(t).then(r=>{const s=r.reduce((l,a)=>l.insert({image:a}),new Te().retain(n.index).delete(n.length));this.quill.updateContents(s,Se.sources.USER),this.quill.setSelection(n.index+r.length,Se.sources.SILENT)})}};const dx=["insertText","insertReplacementText"];class fx extends Gt{constructor(e,t){super(e,t),e.root.addEventListener("beforeinput",r=>{this.handleBeforeInput(r)}),/Android/i.test(navigator.userAgent)||e.on(le.events.COMPOSITION_BEFORE_START,()=>{this.handleCompositionStart()})}deleteRange(e){gi({range:e,quill:this.quill})}replaceText(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";if(e.length===0)return!1;if(t){const r=this.quill.getFormat(e.index,1);this.deleteRange(e),this.quill.updateContents(new Te().retain(e.index).insert(t,r),le.sources.USER)}else this.deleteRange(e);return this.quill.setSelection(e.index+t.length,0,le.sources.SILENT),!0}handleBeforeInput(e){if(this.quill.composition.isComposing||e.defaultPrevented||!dx.includes(e.inputType))return;const t=e.getTargetRanges?e.getTargetRanges()[0]:null;if(!t||t.collapsed===!0)return;const r=hx(e);if(r==null)return;const s=this.quill.selection.normalizeNative(t),l=s?this.quill.selection.normalizedToRange(s):null;l&&this.replaceText(l,r)&&e.preventDefault()}handleCompositionStart(){const e=this.quill.getSelection();e&&this.replaceText(e)}}function hx(n){var e;return typeof n.data=="string"?n.data:(e=n.dataTransfer)!=null&&e.types.includes("text/plain")?n.dataTransfer.getData("text/plain"):null}const px=/Mac/i.test(navigator.platform),mx=100,gx=n=>!!(n.key==="ArrowLeft"||n.key==="ArrowRight"||n.key==="ArrowUp"||n.key==="ArrowDown"||n.key==="Home"||px&&n.key==="a"&&n.ctrlKey===!0);class yx extends Gt{constructor(t,r){super(t,r);Ee(this,"isListening",!1);Ee(this,"selectionChangeDeadline",0);this.handleArrowKeys(),this.handleNavigationShortcuts()}handleArrowKeys(){this.quill.keyboard.addBinding({key:["ArrowLeft","ArrowRight"],offset:0,shiftKey:null,handler(t,r){let{line:s,event:l}=r;if(!(s instanceof qt)||!s.uiNode)return!0;const a=getComputedStyle(s.domNode).direction==="rtl";return a&&l.key!=="ArrowRight"||!a&&l.key!=="ArrowLeft"?!0:(this.quill.setSelection(t.index-1,t.length+(l.shiftKey?1:0),le.sources.USER),!1)}})}handleNavigationShortcuts(){this.quill.root.addEventListener("keydown",t=>{!t.defaultPrevented&&gx(t)&&this.ensureListeningToSelectionChange()})}ensureListeningToSelectionChange(){if(this.selectionChangeDeadline=Date.now()+mx,this.isListening)return;this.isListening=!0;const t=()=>{this.isListening=!1,Date.now()<=this.selectionChangeDeadline&&this.handleSelectionChange()};document.addEventListener("selectionchange",t,{once:!0})}handleSelectionChange(){const t=document.getSelection();if(!t)return;const r=t.getRangeAt(0);if(r.collapsed!==!0||r.startOffset!==0)return;const s=this.quill.scroll.find(r.startContainer);if(!(s instanceof qt)||!s.uiNode)return;const l=document.createRange();l.setStartAfter(s.uiNode),l.setEndAfter(s.uiNode),t.removeAllRanges(),t.addRange(l)}}le.register({"blots/block":ht,"blots/block/embed":Bt,"blots/break":zt,"blots/container":qn,"blots/cursor":cr,"blots/embed":ai,"blots/inline":rn,"blots/scroll":hr,"blots/text":Ht,"modules/clipboard":Ic,"modules/history":Pc,"modules/keyboard":qs,"modules/uploader":Mc,"modules/input":fx,"modules/uiNode":yx});class vx extends $t{add(e,t){let r=0;if(t==="+1"||t==="-1"){const s=this.value(e)||0;r=t==="+1"?s+1:s-1}else typeof t=="number"&&(r=t);return r===0?(this.remove(e),!0):super.add(e,r.toString())}canAdd(e,t){return super.canAdd(e,t)||super.canAdd(e,parseInt(t,10))}value(e){return parseInt(super.value(e),10)||void 0}}const bx=new vx("indent","ql-indent",{scope:Ne.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});class xi extends ht{}Ee(xi,"blotName","blockquote"),Ee(xi,"tagName","blockquote");class Ei extends ht{static formats(e){return this.tagName.indexOf(e.tagName)+1}}Ee(Ei,"blotName","header"),Ee(Ei,"tagName",["H1","H2","H3","H4","H5","H6"]);class Hr extends qn{}Hr.blotName="list-container",Hr.tagName="OL";class Gr extends ht{static create(e){const t=super.create();return t.setAttribute("data-list",e),t}static formats(e){return e.getAttribute("data-list")||void 0}static register(){le.register(Hr)}constructor(e,t){super(e,t);const r=t.ownerDocument.createElement("span"),s=l=>{if(!e.isEnabled())return;const a=this.statics.formats(t,e);a==="checked"?(this.format("list","unchecked"),l.preventDefault()):a==="unchecked"&&(this.format("list","checked"),l.preventDefault())};r.addEventListener("mousedown",s),r.addEventListener("touchstart",s),this.attachUI(r)}format(e,t){e===this.statics.blotName&&t?this.domNode.setAttribute("data-list",t):super.format(e,t)}}Gr.blotName="list",Gr.tagName="LI",Hr.allowedChildren=[Gr],Gr.requiredContainer=Hr;class Wr extends rn{static create(){return super.create()}static formats(){return!0}optimize(e){super.optimize(e),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}Ee(Wr,"blotName","bold"),Ee(Wr,"tagName",["STRONG","B"]);class wi extends Wr{}Ee(wi,"blotName","italic"),Ee(wi,"tagName",["EM","I"]);class kn extends rn{static create(e){const t=super.create(e);return t.setAttribute("href",this.sanitize(e)),t.setAttribute("rel","noopener noreferrer"),t.setAttribute("target","_blank"),t}static formats(e){return e.getAttribute("href")}static sanitize(e){return Dc(e,this.PROTOCOL_WHITELIST)?e:this.SANITIZED_URL}format(e,t){e!==this.statics.blotName||!t?super.format(e,t):this.domNode.setAttribute("href",this.constructor.sanitize(t))}}Ee(kn,"blotName","link"),Ee(kn,"tagName","A"),Ee(kn,"SANITIZED_URL","about:blank"),Ee(kn,"PROTOCOL_WHITELIST",["http","https","mailto","tel","sms"]);function Dc(n,e){const t=document.createElement("a");t.href=n;const r=t.href.slice(0,t.href.indexOf(":"));return e.indexOf(r)>-1}class Ai extends rn{static create(e){return e==="super"?document.createElement("sup"):e==="sub"?document.createElement("sub"):super.create(e)}static formats(e){if(e.tagName==="SUB")return"sub";if(e.tagName==="SUP")return"super"}}Ee(Ai,"blotName","script"),Ee(Ai,"tagName",["SUB","SUP"]);class Si extends Wr{}Ee(Si,"blotName","strike"),Ee(Si,"tagName",["S","STRIKE"]);class Ti extends rn{}Ee(Ti,"blotName","underline"),Ee(Ti,"tagName","U");class Gs extends ai{static create(e){if(window.katex==null)throw new Error("Formula module requires KaTeX.");const t=super.create(e);return typeof e=="string"&&(window.katex.render(e,t,{throwOnError:!1,errorColor:"#f00"}),t.setAttribute("data-value",e)),t}static value(e){return e.getAttribute("data-value")}html(){const{formula:e}=this.value();return`<span>${e}</span>`}}Ee(Gs,"blotName","formula"),Ee(Gs,"className","ql-formula"),Ee(Gs,"tagName","SPAN");const Uc=["alt","height","width"];class Ni extends Ot{static create(e){const t=super.create(e);return typeof e=="string"&&t.setAttribute("src",this.sanitize(e)),t}static formats(e){return Uc.reduce((t,r)=>(e.hasAttribute(r)&&(t[r]=e.getAttribute(r)),t),{})}static match(e){return/\.(jpe?g|gif|png)$/.test(e)||/^data:image\/.+;base64/.test(e)}static sanitize(e){return Dc(e,["http","https","data"])?e:"//:0"}static value(e){return e.getAttribute("src")}format(e,t){Uc.indexOf(e)>-1?t?this.domNode.setAttribute(e,t):this.domNode.removeAttribute(e):super.format(e,t)}}Ee(Ni,"blotName","image"),Ee(Ni,"tagName","IMG");const _c=["height","width"];class Ws extends Bt{static create(e){const t=super.create(e);return t.setAttribute("frameborder","0"),t.setAttribute("allowfullscreen","true"),t.setAttribute("src",this.sanitize(e)),t}static formats(e){return _c.reduce((t,r)=>(e.hasAttribute(r)&&(t[r]=e.getAttribute(r)),t),{})}static sanitize(e){return kn.sanitize(e)}static value(e){return e.getAttribute("src")}format(e,t){_c.indexOf(e)>-1?t?this.domNode.setAttribute(e,t):this.domNode.removeAttribute(e):super.format(e,t)}html(){const{video:e}=this.value();return`<a href="${e}">${e}</a>`}}Ee(Ws,"blotName","video"),Ee(Ws,"className","ql-video"),Ee(Ws,"tagName","IFRAME");const Kr=new $t("code-token","hljs",{scope:Ne.INLINE});class pn extends rn{static formats(e,t){for(;e!=null&&e!==t.domNode;){if(e.classList&&e.classList.contains(vt.className))return super.formats(e,t);e=e.parentNode}}constructor(e,t,r){super(e,t,r),Kr.add(this.domNode,r)}format(e,t){e!==pn.blotName?super.format(e,t):t?Kr.add(this.domNode,t):(Kr.remove(this.domNode),this.domNode.classList.remove(this.statics.className))}optimize(){super.optimize(...arguments),Kr.value(this.domNode)||this.unwrap()}}pn.blotName="code-token",pn.className="ql-token";class Ft extends vt{static create(e){const t=super.create(e);return typeof e=="string"&&t.setAttribute("data-language",e),t}static formats(e){return e.getAttribute("data-language")||"plain"}static register(){}format(e,t){e===this.statics.blotName&&t?this.domNode.setAttribute("data-language",t):super.format(e,t)}replaceWith(e,t){return this.formatAt(0,this.length(),pn.blotName,!1),super.replaceWith(e,t)}}class Xr extends zn{attach(){super.attach(),this.forceNext=!1,this.scroll.emitMount(this)}format(e,t){e===Ft.blotName&&(this.forceNext=!0,this.children.forEach(r=>{r.format(e,t)}))}formatAt(e,t,r,s){r===Ft.blotName&&(this.forceNext=!0),super.formatAt(e,t,r,s)}highlight(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(this.children.head==null)return;const s=`${Array.from(this.domNode.childNodes).filter(a=>a!==this.uiNode).map(a=>a.textContent).join(`
57
57
  `)}
58
58
  `,l=Ft.formats(this.children.head.domNode);if(t||this.forceNext||this.cachedText!==s){if(s.trim().length>0||this.cachedText==null){const a=this.children.reduce((o,u)=>o.concat(oc(u,!1)),new Te),c=e(s,l);a.diff(c).reduce((o,u)=>{let{retain:d,attributes:h}=u;return d?(h&&Object.keys(h).forEach(f=>{[Ft.blotName,pn.blotName].includes(f)&&this.formatAt(o,d,f,h[f])}),o+d):o},0)}this.cachedText=s,this.forceNext=!1}}html(e,t){const[r]=this.children.find(e);return`<pre data-language="${r?Ft.formats(r.domNode):"plain"}">
59
59
  ${_s(this.code(e,t))}
60
- </pre>`}optimize(e){if(super.optimize(e),this.parent!=null&&this.children.head!=null&&this.uiNode!=null){const t=Ft.formats(this.children.head.domNode);t!==this.uiNode.value&&(this.uiNode.value=t)}}}Xr.allowedChildren=[Ft],Ft.requiredContainer=Xr,Ft.allowedChildren=[pn,cr,Ht,zt];const yx=(n,e,t)=>{if(typeof n.versionString=="string"){const r=n.versionString.split(".")[0];if(parseInt(r,10)>=11)return n.highlight(t,{language:e}).value}return n.highlight(e,t).value};class Vc extends Gt{static register(){le.register(pn,!0),le.register(Ft,!0),le.register(Xr,!0)}constructor(e,t){if(super(e,t),this.options.hljs==null)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");this.languages=this.options.languages.reduce((r,s)=>{let{key:l}=s;return r[l]=!0,r},{}),this.highlightBlot=this.highlightBlot.bind(this),this.initListener(),this.initTimer()}initListener(){this.quill.on(le.events.SCROLL_BLOT_MOUNT,e=>{if(!(e instanceof Xr))return;const t=this.quill.root.ownerDocument.createElement("select");this.options.languages.forEach(r=>{let{key:s,label:l}=r;const a=t.ownerDocument.createElement("option");a.textContent=l,a.setAttribute("value",s),t.appendChild(a)}),t.addEventListener("change",()=>{e.format(Ft.blotName,t.value),this.quill.root.focus(),this.highlight(e,!0)}),e.uiNode==null&&(e.attachUI(t),e.children.head&&(t.value=Ft.formats(e.children.head.domNode)))})}initTimer(){let e=null;this.quill.on(le.events.SCROLL_OPTIMIZE,()=>{e&&clearTimeout(e),e=setTimeout(()=>{this.highlight(),e=null},this.options.interval)})}highlight(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(this.quill.selection.composing)return;this.quill.update(le.sources.USER);const r=this.quill.getSelection();(e==null?this.quill.scroll.descendants(Xr):[e]).forEach(l=>{l.highlight(this.highlightBlot,t)}),this.quill.update(le.sources.SILENT),r!=null&&this.quill.setSelection(r,le.sources.SILENT)}highlightBlot(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"plain";if(t=this.languages[t]?t:"plain",t==="plain")return _s(e).split(`
60
+ </pre>`}optimize(e){if(super.optimize(e),this.parent!=null&&this.children.head!=null&&this.uiNode!=null){const t=Ft.formats(this.children.head.domNode);t!==this.uiNode.value&&(this.uiNode.value=t)}}}Xr.allowedChildren=[Ft],Ft.requiredContainer=Xr,Ft.allowedChildren=[pn,cr,Ht,zt];const xx=(n,e,t)=>{if(typeof n.versionString=="string"){const r=n.versionString.split(".")[0];if(parseInt(r,10)>=11)return n.highlight(t,{language:e}).value}return n.highlight(e,t).value};class Vc extends Gt{static register(){le.register(pn,!0),le.register(Ft,!0),le.register(Xr,!0)}constructor(e,t){if(super(e,t),this.options.hljs==null)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");this.languages=this.options.languages.reduce((r,s)=>{let{key:l}=s;return r[l]=!0,r},{}),this.highlightBlot=this.highlightBlot.bind(this),this.initListener(),this.initTimer()}initListener(){this.quill.on(le.events.SCROLL_BLOT_MOUNT,e=>{if(!(e instanceof Xr))return;const t=this.quill.root.ownerDocument.createElement("select");this.options.languages.forEach(r=>{let{key:s,label:l}=r;const a=t.ownerDocument.createElement("option");a.textContent=l,a.setAttribute("value",s),t.appendChild(a)}),t.addEventListener("change",()=>{e.format(Ft.blotName,t.value),this.quill.root.focus(),this.highlight(e,!0)}),e.uiNode==null&&(e.attachUI(t),e.children.head&&(t.value=Ft.formats(e.children.head.domNode)))})}initTimer(){let e=null;this.quill.on(le.events.SCROLL_OPTIMIZE,()=>{e&&clearTimeout(e),e=setTimeout(()=>{this.highlight(),e=null},this.options.interval)})}highlight(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(this.quill.selection.composing)return;this.quill.update(le.sources.USER);const r=this.quill.getSelection();(e==null?this.quill.scroll.descendants(Xr):[e]).forEach(l=>{l.highlight(this.highlightBlot,t)}),this.quill.update(le.sources.SILENT),r!=null&&this.quill.setSelection(r,le.sources.SILENT)}highlightBlot(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"plain";if(t=this.languages[t]?t:"plain",t==="plain")return _s(e).split(`
61
61
  `).reduce((s,l,a)=>(a!==0&&s.insert(`
62
- `,{[vt.blotName]:t}),s.insert(l)),new Te);const r=this.quill.root.ownerDocument.createElement("div");return r.classList.add(vt.className),r.innerHTML=yx(this.options.hljs,t,e),yi(this.quill.scroll,r,[(s,l)=>{const a=Kr.value(s);return a?l.compose(new Te().retain(l.length(),{[pn.blotName]:a})):l}],[(s,l)=>s.data.split(`
62
+ `,{[vt.blotName]:t}),s.insert(l)),new Te);const r=this.quill.root.ownerDocument.createElement("div");return r.classList.add(vt.className),r.innerHTML=xx(this.options.hljs,t,e),yi(this.quill.scroll,r,[(s,l)=>{const a=Kr.value(s);return a?l.compose(new Te().retain(l.length(),{[pn.blotName]:a})):l}],[(s,l)=>s.data.split(`
63
63
  `).reduce((a,c,o)=>(o!==0&&a.insert(`
64
- `,{[vt.blotName]:t}),a.insert(c)),l)],new WeakMap)}}Vc.DEFAULTS={hljs:window.hljs,interval:1e3,languages:[{key:"plain",label:"Plain"},{key:"bash",label:"Bash"},{key:"cpp",label:"C++"},{key:"cs",label:"C#"},{key:"css",label:"CSS"},{key:"diff",label:"Diff"},{key:"xml",label:"HTML/XML"},{key:"java",label:"Java"},{key:"javascript",label:"JavaScript"},{key:"markdown",label:"Markdown"},{key:"php",label:"PHP"},{key:"python",label:"Python"},{key:"ruby",label:"Ruby"},{key:"sql",label:"SQL"}]};const ts=class ts extends ht{static create(e){const t=super.create();return e?t.setAttribute("data-row",e):t.setAttribute("data-row",ki()),t}static formats(e){if(e.hasAttribute("data-row"))return e.getAttribute("data-row")}cellOffset(){return this.parent?this.parent.children.indexOf(this):-1}format(e,t){e===ts.blotName&&t?this.domNode.setAttribute("data-row",t):super.format(e,t)}row(){return this.parent}rowOffset(){return this.row()?this.row().rowOffset():-1}table(){return this.row()&&this.row().table()}};Ee(ts,"blotName","table"),Ee(ts,"tagName","TD");let Kt=ts;class mn extends qn{checkMerge(){if(super.checkMerge()&&this.next.children.head!=null){const e=this.children.head.formats(),t=this.children.tail.formats(),r=this.next.children.head.formats(),s=this.next.children.tail.formats();return e.table===t.table&&e.table===r.table&&e.table===s.table}return!1}optimize(e){super.optimize(e),this.children.forEach(t=>{if(t.next==null)return;const r=t.formats(),s=t.next.formats();if(r.table!==s.table){const l=this.splitAfter(t);l&&l.optimize(),this.prev&&this.prev.optimize()}})}rowOffset(){return this.parent?this.parent.children.indexOf(this):-1}table(){return this.parent&&this.parent.parent}}Ee(mn,"blotName","table-row"),Ee(mn,"tagName","TR");class sn extends qn{}Ee(sn,"blotName","table-body"),Ee(sn,"tagName","TBODY");class pr extends qn{balanceCells(){const e=this.descendants(mn),t=e.reduce((r,s)=>Math.max(s.children.length,r),0);e.forEach(r=>{new Array(t-r.children.length).fill(0).forEach(()=>{let s;r.children.head!=null&&(s=Kt.formats(r.children.head.domNode));const l=this.scroll.create(Kt.blotName,s);r.appendChild(l),l.optimize()})})}cells(e){return this.rows().map(t=>t.children.at(e))}deleteColumn(e){const[t]=this.descendant(sn);t==null||t.children.head==null||t.children.forEach(r=>{const s=r.children.at(e);s!=null&&s.remove()})}insertColumn(e){const[t]=this.descendant(sn);t==null||t.children.head==null||t.children.forEach(r=>{const s=r.children.at(e),l=Kt.formats(r.children.head.domNode),a=this.scroll.create(Kt.blotName,l);r.insertBefore(a,s)})}insertRow(e){const[t]=this.descendant(sn);if(t==null||t.children.head==null)return;const r=ki(),s=this.scroll.create(mn.blotName);t.children.head.children.forEach(()=>{const a=this.scroll.create(Kt.blotName,r);s.appendChild(a)});const l=t.children.at(e);t.insertBefore(s,l)}rows(){const e=this.children.head;return e==null?[]:e.children.map(t=>t)}}Ee(pr,"blotName","table-container"),Ee(pr,"tagName","TABLE"),pr.allowedChildren=[sn],sn.requiredContainer=pr,sn.allowedChildren=[mn],mn.requiredContainer=sn,mn.allowedChildren=[Kt],Kt.requiredContainer=mn;function ki(){return`row-${Math.random().toString(36).slice(2,6)}`}class vx extends Gt{static register(){le.register(Kt),le.register(mn),le.register(sn),le.register(pr)}constructor(){super(...arguments),this.listenBalanceCells()}balanceTables(){this.quill.scroll.descendants(pr).forEach(e=>{e.balanceCells()})}deleteColumn(){const[e,,t]=this.getTable();t!=null&&(e.deleteColumn(t.cellOffset()),this.quill.update(le.sources.USER))}deleteRow(){const[,e]=this.getTable();e!=null&&(e.remove(),this.quill.update(le.sources.USER))}deleteTable(){const[e]=this.getTable();if(e==null)return;const t=e.offset();e.remove(),this.quill.update(le.sources.USER),this.quill.setSelection(t,le.sources.SILENT)}getTable(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.quill.getSelection();if(e==null)return[null,null,null,-1];const[t,r]=this.quill.getLine(e.index);if(t==null||t.statics.blotName!==Kt.blotName)return[null,null,null,-1];const s=t.parent;return[s.parent.parent,s,t,r]}insertColumn(e){const t=this.quill.getSelection();if(!t)return;const[r,s,l]=this.getTable(t);if(l==null)return;const a=l.cellOffset();r.insertColumn(a+e),this.quill.update(le.sources.USER);let c=s.rowOffset();e===0&&(c+=1),this.quill.setSelection(t.index+c,t.length,le.sources.SILENT)}insertColumnLeft(){this.insertColumn(0)}insertColumnRight(){this.insertColumn(1)}insertRow(e){const t=this.quill.getSelection();if(!t)return;const[r,s,l]=this.getTable(t);if(l==null)return;const a=s.rowOffset();r.insertRow(a+e),this.quill.update(le.sources.USER),e>0?this.quill.setSelection(t,le.sources.SILENT):this.quill.setSelection(t.index+s.children.length,t.length,le.sources.SILENT)}insertRowAbove(){this.insertRow(0)}insertRowBelow(){this.insertRow(1)}insertTable(e,t){const r=this.quill.getSelection();if(r==null)return;const s=new Array(e).fill(0).reduce(l=>{const a=new Array(t).fill(`
65
- `).join("");return l.insert(a,{table:ki()})},new Te().retain(r.index));this.quill.updateContents(s,le.sources.USER),this.quill.setSelection(r.index,le.sources.SILENT),this.balanceTables()}listenBalanceCells(){this.quill.on(le.events.SCROLL_OPTIMIZE,e=>{e.some(t=>["TD","TR","TBODY","TABLE"].includes(t.target.tagName)?(this.quill.once(le.events.TEXT_CHANGE,(r,s,l)=>{l===le.sources.USER&&this.balanceTables()}),!0):!1)})}}const jc=fn("quill:toolbar");class Ci extends Gt{constructor(e,t){var r,s;if(super(e,t),Array.isArray(this.options.container)){const l=document.createElement("div");l.setAttribute("role","toolbar"),bx(l,this.options.container),(s=(r=e.container)==null?void 0:r.parentNode)==null||s.insertBefore(l,e.container),this.container=l}else typeof this.options.container=="string"?this.container=document.querySelector(this.options.container):this.container=this.options.container;if(!(this.container instanceof HTMLElement)){jc.error("Container required for toolbar",this.options);return}this.container.classList.add("ql-toolbar"),this.controls=[],this.handlers={},this.options.handlers&&Object.keys(this.options.handlers).forEach(l=>{var c;const a=(c=this.options.handlers)==null?void 0:c[l];a&&this.addHandler(l,a)}),Array.from(this.container.querySelectorAll("button, select")).forEach(l=>{this.attach(l)}),this.quill.on(le.events.EDITOR_CHANGE,()=>{const[l]=this.quill.selection.getRange();this.update(l)})}addHandler(e,t){this.handlers[e]=t}attach(e){let t=Array.from(e.classList).find(s=>s.indexOf("ql-")===0);if(!t)return;if(t=t.slice(3),e.tagName==="BUTTON"&&e.setAttribute("type","button"),this.handlers[t]==null&&this.quill.scroll.query(t)==null){jc.warn("ignoring attaching to nonexistent format",t,e);return}const r=e.tagName==="SELECT"?"change":"click";e.addEventListener(r,s=>{let l;if(e.tagName==="SELECT"){if(e.selectedIndex<0)return;const c=e.options[e.selectedIndex];c.hasAttribute("selected")?l=!1:l=c.value||!1}else e.classList.contains("ql-active")?l=!1:l=e.value||!e.hasAttribute("value"),s.preventDefault();this.quill.focus();const[a]=this.quill.selection.getRange();if(this.handlers[t]!=null)this.handlers[t].call(this,l);else if(this.quill.scroll.query(t).prototype instanceof Ot){if(l=prompt(`Enter ${t}`),!l)return;this.quill.updateContents(new Te().retain(a.index).delete(a.length).insert({[t]:l}),le.sources.USER)}else this.quill.format(t,l,le.sources.USER);this.update(a)}),this.controls.push([t,e])}update(e){const t=e==null?{}:this.quill.getFormat(e);this.controls.forEach(r=>{const[s,l]=r;if(l.tagName==="SELECT"){let a=null;if(e==null)a=null;else if(t[s]==null)a=l.querySelector("option[selected]");else if(!Array.isArray(t[s])){let c=t[s];typeof c=="string"&&(c=c.replace(/"/g,'\\"')),a=l.querySelector(`option[value="${c}"]`)}a==null?(l.value="",l.selectedIndex=-1):a.selected=!0}else if(e==null)l.classList.remove("ql-active"),l.setAttribute("aria-pressed","false");else if(l.hasAttribute("value")){const a=t[s],c=a===l.getAttribute("value")||a!=null&&a.toString()===l.getAttribute("value")||a==null&&!l.getAttribute("value");l.classList.toggle("ql-active",c),l.setAttribute("aria-pressed",c.toString())}else{const a=t[s]!=null;l.classList.toggle("ql-active",a),l.setAttribute("aria-pressed",a.toString())}})}}Ci.DEFAULTS={};function $c(n,e,t){const r=document.createElement("button");r.setAttribute("type","button"),r.classList.add(`ql-${e}`),r.setAttribute("aria-pressed","false"),t!=null?(r.value=t,r.setAttribute("aria-label",`${e}: ${t}`)):r.setAttribute("aria-label",e),n.appendChild(r)}function bx(n,e){Array.isArray(e[0])||(e=[e]),e.forEach(t=>{const r=document.createElement("span");r.classList.add("ql-formats"),t.forEach(s=>{if(typeof s=="string")$c(r,s);else{const l=Object.keys(s)[0],a=s[l];Array.isArray(a)?xx(r,l,a):$c(r,l,a)}}),n.appendChild(r)})}function xx(n,e,t){const r=document.createElement("select");r.classList.add(`ql-${e}`),t.forEach(s=>{const l=document.createElement("option");s!==!1?l.setAttribute("value",String(s)):l.setAttribute("selected","selected"),r.appendChild(l)}),n.appendChild(r)}Ci.DEFAULTS={container:null,handlers:{clean(){const n=this.quill.getSelection();if(n!=null)if(n.length===0){const e=this.quill.getFormat();Object.keys(e).forEach(t=>{this.quill.scroll.query(t,Ne.INLINE)!=null&&this.quill.format(t,!1,le.sources.USER)})}else this.quill.removeFormat(n.index,n.length,le.sources.USER)},direction(n){const{align:e}=this.quill.getFormat();n==="rtl"&&e==null?this.quill.format("align","right",le.sources.USER):!n&&e==="right"&&this.quill.format("align",!1,le.sources.USER),this.quill.format("direction",n,le.sources.USER)},indent(n){const e=this.quill.getSelection(),t=this.quill.getFormat(e),r=parseInt(t.indent||0,10);if(n==="+1"||n==="-1"){let s=n==="+1"?1:-1;t.direction==="rtl"&&(s*=-1),this.quill.format("indent",r+s,le.sources.USER)}},link(n){n===!0&&(n=prompt("Enter link URL:")),this.quill.format("link",n,le.sources.USER)},list(n){const e=this.quill.getSelection(),t=this.quill.getFormat(e);n==="check"?t.list==="checked"||t.list==="unchecked"?this.quill.format("list",!1,le.sources.USER):this.quill.format("list","unchecked",le.sources.USER):this.quill.format("list",n,le.sources.USER)}}};const Ex='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="13" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="9" y1="4" y2="4"/></svg>',wx='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="14" x2="4" y1="14" y2="14"/><line class="ql-stroke" x1="12" x2="6" y1="4" y2="4"/></svg>',Ax='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="5" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="9" y1="4" y2="4"/></svg>',Sx='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="3" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="3" y1="4" y2="4"/></svg>',Tx='<svg viewbox="0 0 18 18"><g class="ql-fill ql-color-label"><polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"/><rect height="1" width="1" x="4" y="4"/><polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"/><rect height="1" width="1" x="2" y="6"/><rect height="1" width="1" x="3" y="5"/><rect height="1" width="1" x="4" y="7"/><polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"/><rect height="1" width="1" x="2" y="12"/><rect height="1" width="1" x="2" y="9"/><rect height="1" width="1" x="2" y="15"/><polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"/><rect height="1" width="1" x="3" y="8"/><path d="M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z"/><path d="M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z"/><path d="M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z"/><rect height="1" width="1" x="12" y="2"/><rect height="1" width="1" x="11" y="3"/><path d="M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z"/><rect height="1" width="1" x="2" y="3"/><rect height="1" width="1" x="6" y="2"/><rect height="1" width="1" x="3" y="2"/><rect height="1" width="1" x="5" y="3"/><rect height="1" width="1" x="9" y="2"/><rect height="1" width="1" x="15" y="14"/><polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"/><rect height="1" width="1" x="13" y="7"/><rect height="1" width="1" x="15" y="5"/><rect height="1" width="1" x="14" y="6"/><rect height="1" width="1" x="15" y="8"/><rect height="1" width="1" x="14" y="9"/><path d="M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z"/><rect height="1" width="1" x="14" y="3"/><polygon points="12 6.868 12 6 11.62 6 12 6.868"/><rect height="1" width="1" x="15" y="2"/><rect height="1" width="1" x="12" y="5"/><rect height="1" width="1" x="13" y="4"/><polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"/><rect height="1" width="1" x="9" y="14"/><rect height="1" width="1" x="8" y="15"/><path d="M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z"/><rect height="1" width="1" x="5" y="15"/><path d="M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z"/><rect height="1" width="1" x="11" y="15"/><path d="M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z"/><rect height="1" width="1" x="14" y="15"/><rect height="1" width="1" x="15" y="11"/></g><polyline class="ql-stroke" points="5.5 13 9 5 12.5 13"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="11" y2="11"/></svg>',Nx='<svg viewbox="0 0 18 18"><rect class="ql-fill ql-stroke" height="3" width="3" x="4" y="5"/><rect class="ql-fill ql-stroke" height="3" width="3" x="11" y="5"/><path class="ql-even ql-fill ql-stroke" d="M7,8c0,4.031-3,5-3,5"/><path class="ql-even ql-fill ql-stroke" d="M14,8c0,4.031-3,5-3,5"/></svg>',kx='<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z"/><path class="ql-stroke" d="M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z"/></svg>',Cx='<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="5" x2="13" y1="3" y2="3"/><line class="ql-stroke" x1="6" x2="9.35" y1="12" y2="3"/><line class="ql-stroke" x1="11" x2="15" y1="11" y2="15"/><line class="ql-stroke" x1="15" x2="11" y1="11" y2="15"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="7" x="2" y="14"/></svg>',qc='<svg viewbox="0 0 18 18"><polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"/><polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"/><line class="ql-stroke" x1="10" x2="8" y1="5" y2="13"/></svg>',Yr={align:{"":Ex,center:wx,right:Ax,justify:Sx},background:Tx,blockquote:Nx,bold:kx,clean:Cx,code:qc,"code-block":qc,color:'<svg viewbox="0 0 18 18"><line class="ql-color-label ql-stroke ql-transparent" x1="3" x2="15" y1="15" y2="15"/><polyline class="ql-stroke" points="5.5 11 9 3 12.5 11"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="9" y2="9"/></svg>',direction:{"":'<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"/><line class="ql-stroke ql-fill" x1="15" x2="11" y1="4" y2="4"/><path class="ql-fill" d="M11,3a3,3,0,0,0,0,6h1V3H11Z"/><rect class="ql-fill" height="11" width="1" x="11" y="4"/><rect class="ql-fill" height="11" width="1" x="13" y="4"/></svg>',rtl:'<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"/><line class="ql-stroke ql-fill" x1="9" x2="5" y1="4" y2="4"/><path class="ql-fill" d="M5,3A3,3,0,0,0,5,9H6V3H5Z"/><rect class="ql-fill" height="11" width="1" x="5" y="4"/><rect class="ql-fill" height="11" width="1" x="7" y="4"/></svg>'},formula:'<svg viewbox="0 0 18 18"><path class="ql-fill" d="M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z"/><rect class="ql-fill" height="1.6" rx="0.8" ry="0.8" width="5" x="5.15" y="6.2"/><path class="ql-fill" d="M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z"/></svg>',header:{1:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z"/></svg>',2:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',3:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.65186,12.30664a2.6742,2.6742,0,0,1-2.915,2.68457,3.96592,3.96592,0,0,1-2.25537-.6709.56007.56007,0,0,1-.13232-.83594L11.64648,13c.209-.34082.48389-.36328.82471-.1543a2.32654,2.32654,0,0,0,1.12256.33008c.71484,0,1.12207-.35156,1.12207-.78125,0-.61523-.61621-.86816-1.46338-.86816H13.2085a.65159.65159,0,0,1-.68213-.41895l-.05518-.10937a.67114.67114,0,0,1,.14307-.78125l.71533-.86914a8.55289,8.55289,0,0,1,.68213-.7373V8.58887a3.93913,3.93913,0,0,1-.748.05469H11.9873a.54085.54085,0,0,1-.605-.60547V7.59863a.54085.54085,0,0,1,.605-.60547h3.75146a.53773.53773,0,0,1,.60547.59375v.17676a1.03723,1.03723,0,0,1-.27539.748L14.74854,10.0293A2.31132,2.31132,0,0,1,16.65186,12.30664ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',4:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm7.05371,7.96582v.38477c0,.39648-.165.60547-.46191.60547h-.47314v1.29785a.54085.54085,0,0,1-.605.60547h-.69336a.54085.54085,0,0,1-.605-.60547V12.95605H11.333a.5412.5412,0,0,1-.60547-.60547v-.15332a1.199,1.199,0,0,1,.22021-.748l2.56348-4.05957a.7819.7819,0,0,1,.72607-.39648h1.27637a.54085.54085,0,0,1,.605.60547v3.7627h.33008A.54055.54055,0,0,1,17.05371,11.96582ZM14.28125,8.7207h-.022a4.18969,4.18969,0,0,1-.38525.81348l-1.188,1.80469v.02246h1.5293V9.60059A7.04058,7.04058,0,0,1,14.28125,8.7207Z"/></svg>',5:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.74023,12.18555a2.75131,2.75131,0,0,1-2.91553,2.80566,3.908,3.908,0,0,1-2.25537-.68164.54809.54809,0,0,1-.13184-.8252L11.73438,13c.209-.34082.48389-.36328.8252-.1543a2.23757,2.23757,0,0,0,1.1001.33008,1.01827,1.01827,0,0,0,1.1001-.96777c0-.61621-.53906-.97949-1.25439-.97949a2.15554,2.15554,0,0,0-.64893.09961,1.15209,1.15209,0,0,1-.814.01074l-.12109-.04395a.64116.64116,0,0,1-.45117-.71484l.231-3.00391a.56666.56666,0,0,1,.62744-.583H15.541a.54085.54085,0,0,1,.605.60547v.43945a.54085.54085,0,0,1-.605.60547H13.41748l-.04395.72559a1.29306,1.29306,0,0,1-.04395.30859h.022a2.39776,2.39776,0,0,1,.57227-.07715A2.53266,2.53266,0,0,1,16.74023,12.18555ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',6:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M14.51758,9.64453a1.85627,1.85627,0,0,0-1.24316.38477H13.252a1.73532,1.73532,0,0,1,1.72754-1.4082,2.66491,2.66491,0,0,1,.5498.06641c.35254.05469.57227.01074.70508-.40723l.16406-.5166a.53393.53393,0,0,0-.373-.75977,4.83723,4.83723,0,0,0-1.17773-.14258c-2.43164,0-3.7627,2.17773-3.7627,4.43359,0,2.47559,1.60645,3.69629,3.19043,3.69629A2.70585,2.70585,0,0,0,16.96,12.19727,2.43861,2.43861,0,0,0,14.51758,9.64453Zm-.23047,3.58691c-.67187,0-1.22168-.81445-1.22168-1.45215,0-.47363.30762-.583.72559-.583.96875,0,1.27734.59375,1.27734,1.12207A.82182.82182,0,0,1,14.28711,13.23145ZM10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Z"/></svg>'},italic:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="13" y1="4" y2="4"/><line class="ql-stroke" x1="5" x2="11" y1="14" y2="14"/><line class="ql-stroke" x1="8" x2="10" y1="14" y2="4"/></svg>',image:'<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="10" width="12" x="3" y="4"/><circle class="ql-fill" cx="6" cy="7" r="1"/><polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"/></svg>',indent:{"+1":'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"/></svg>',"-1":'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="5 7 5 11 3 9 5 7"/></svg>'},link:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="11" y1="7" y2="11"/><path class="ql-even ql-stroke" d="M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z"/><path class="ql-even ql-stroke" d="M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z"/></svg>',list:{bullet:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="6" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="6" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="6" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="3" y1="4" y2="4"/><line class="ql-stroke" x1="3" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="3" y1="14" y2="14"/></svg>',check:'<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="9" x2="15" y1="4" y2="4"/><polyline class="ql-stroke" points="3 4 4 5 6 3"/><line class="ql-stroke" x1="9" x2="15" y1="14" y2="14"/><polyline class="ql-stroke" points="3 14 4 15 6 13"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="3 9 4 10 6 8"/></svg>',ordered:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="7" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="7" x2="15" y1="14" y2="14"/><line class="ql-stroke ql-thin" x1="2.5" x2="4.5" y1="5.5" y2="5.5"/><path class="ql-fill" d="M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z"/><path class="ql-stroke ql-thin" d="M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156"/><path class="ql-stroke ql-thin" d="M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109"/></svg>'},script:{sub:'<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z"/><path class="ql-fill" d="M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z"/></svg>',super:'<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z"/><path class="ql-fill" d="M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z"/></svg>'},strike:'<svg viewbox="0 0 18 18"><line class="ql-stroke ql-thin" x1="15.5" x2="2.5" y1="8.5" y2="9.5"/><path class="ql-fill" d="M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z"/><path class="ql-fill" d="M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z"/></svg>',table:'<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="2" width="3" x="5" y="5"/><rect class="ql-fill" height="2" width="4" x="9" y="5"/><g class="ql-fill ql-transparent"><rect height="2" width="3" x="5" y="8"/><rect height="2" width="4" x="9" y="8"/><rect height="2" width="3" x="5" y="11"/><rect height="2" width="4" x="9" y="11"/></g></svg>',underline:'<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="12" x="3" y="15"/></svg>',video:'<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="12" width="1" x="5" y="3"/><rect class="ql-fill" height="12" width="1" x="12" y="3"/><rect class="ql-fill" height="2" width="8" x="5" y="8"/><rect class="ql-fill" height="1" width="3" x="3" y="5"/><rect class="ql-fill" height="1" width="3" x="3" y="7"/><rect class="ql-fill" height="1" width="3" x="3" y="10"/><rect class="ql-fill" height="1" width="3" x="3" y="12"/><rect class="ql-fill" height="1" width="3" x="12" y="5"/><rect class="ql-fill" height="1" width="3" x="12" y="7"/><rect class="ql-fill" height="1" width="3" x="12" y="10"/><rect class="ql-fill" height="1" width="3" x="12" y="12"/></svg>'},Ox='<svg viewbox="0 0 18 18"><polygon class="ql-stroke" points="7 11 9 13 11 11 7 11"/><polygon class="ql-stroke" points="7 7 9 5 11 7 7 7"/></svg>';let zc=0;function Hc(n,e){n.setAttribute(e,`${n.getAttribute(e)!=="true"}`)}class Ks{constructor(e){this.select=e,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",()=>{this.togglePicker()}),this.label.addEventListener("keydown",t=>{switch(t.key){case"Enter":this.togglePicker();break;case"Escape":this.escape(),t.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}togglePicker(){this.container.classList.toggle("ql-expanded"),Hc(this.label,"aria-expanded"),Hc(this.options,"aria-hidden")}buildItem(e){const t=document.createElement("span");t.tabIndex="0",t.setAttribute("role","button"),t.classList.add("ql-picker-item");const r=e.getAttribute("value");return r&&t.setAttribute("data-value",r),e.textContent&&t.setAttribute("data-label",e.textContent),t.addEventListener("click",()=>{this.selectItem(t,!0)}),t.addEventListener("keydown",s=>{switch(s.key){case"Enter":this.selectItem(t,!0),s.preventDefault();break;case"Escape":this.escape(),s.preventDefault();break}}),t}buildLabel(){const e=document.createElement("span");return e.classList.add("ql-picker-label"),e.innerHTML=Ox,e.tabIndex="0",e.setAttribute("role","button"),e.setAttribute("aria-expanded","false"),this.container.appendChild(e),e}buildOptions(){const e=document.createElement("span");e.classList.add("ql-picker-options"),e.setAttribute("aria-hidden","true"),e.tabIndex="-1",e.id=`ql-picker-options-${zc}`,zc+=1,this.label.setAttribute("aria-controls",e.id),this.options=e,Array.from(this.select.options).forEach(t=>{const r=this.buildItem(t);e.appendChild(r),t.selected===!0&&this.selectItem(r)}),this.container.appendChild(e)}buildPicker(){Array.from(this.select.attributes).forEach(e=>{this.container.setAttribute(e.name,e.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}escape(){this.close(),setTimeout(()=>this.label.focus(),1)}close(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}selectItem(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const r=this.container.querySelector(".ql-selected");e!==r&&(r!=null&&r.classList.remove("ql-selected"),e!=null&&(e.classList.add("ql-selected"),this.select.selectedIndex=Array.from(e.parentNode.children).indexOf(e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),t&&(this.select.dispatchEvent(new Event("change")),this.close())))}update(){let e;if(this.select.selectedIndex>-1){const r=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(r)}else this.selectItem(null);const t=e!=null&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",t)}}class Gc extends Ks{constructor(e,t){super(e),this.label.innerHTML=t,this.container.classList.add("ql-color-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).slice(0,7).forEach(r=>{r.classList.add("ql-primary")})}buildItem(e){const t=super.buildItem(e);return t.style.backgroundColor=e.getAttribute("value")||"",t}selectItem(e,t){super.selectItem(e,t);const r=this.label.querySelector(".ql-color-label"),s=e&&e.getAttribute("data-value")||"";r&&(r.tagName==="line"?r.style.stroke=s:r.style.fill=s)}}class Wc extends Ks{constructor(e,t){super(e),this.container.classList.add("ql-icon-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).forEach(r=>{r.innerHTML=t[r.getAttribute("data-value")||""]}),this.defaultItem=this.container.querySelector(".ql-selected"),this.selectItem(this.defaultItem)}selectItem(e,t){super.selectItem(e,t);const r=e||this.defaultItem;if(r!=null){if(this.label.innerHTML===r.innerHTML)return;this.label.innerHTML=r.innerHTML}}}const Rx=n=>{const{overflowY:e}=getComputedStyle(n,null);return e!=="visible"&&e!=="clip"};class Kc{constructor(e,t){this.quill=e,this.boundsContainer=t||document.body,this.root=e.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,Rx(this.quill.root)&&this.quill.root.addEventListener("scroll",()=>{this.root.style.marginTop=`${-1*this.quill.root.scrollTop}px`}),this.hide()}hide(){this.root.classList.add("ql-hidden")}position(e){const t=e.left+e.width/2-this.root.offsetWidth/2,r=e.bottom+this.quill.root.scrollTop;this.root.style.left=`${t}px`,this.root.style.top=`${r}px`,this.root.classList.remove("ql-flip");const s=this.boundsContainer.getBoundingClientRect(),l=this.root.getBoundingClientRect();let a=0;if(l.right>s.right&&(a=s.right-l.right,this.root.style.left=`${t+a}px`),l.left<s.left&&(a=s.left-l.left,this.root.style.left=`${t+a}px`),l.bottom>s.bottom){const c=l.bottom-l.top,o=e.bottom-e.top+c;this.root.style.top=`${r-o}px`,this.root.classList.add("ql-flip")}return a}show(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}const Ix=[!1,"center","right","justify"],Lx=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],Bx=[!1,"serif","monospace"],Px=["1","2","3",!1],Fx=["small",!1,"large","huge"];class Zr extends dr{constructor(e,t){super(e,t);const r=s=>{if(!document.body.contains(e.root)){document.body.removeEventListener("click",r);return}this.tooltip!=null&&!this.tooltip.root.contains(s.target)&&document.activeElement!==this.tooltip.textbox&&!this.quill.hasFocus()&&this.tooltip.hide(),this.pickers!=null&&this.pickers.forEach(l=>{l.container.contains(s.target)||l.close()})};e.emitter.listenDOM("click",document.body,r)}addModule(e){const t=super.addModule(e);return e==="toolbar"&&this.extendToolbar(t),t}buildButtons(e,t){Array.from(e).forEach(r=>{(r.getAttribute("class")||"").split(/\s+/).forEach(l=>{if(l.startsWith("ql-")&&(l=l.slice(3),t[l]!=null))if(l==="direction")r.innerHTML=t[l][""]+t[l].rtl;else if(typeof t[l]=="string")r.innerHTML=t[l];else{const a=r.value||"";a!=null&&t[l][a]&&(r.innerHTML=t[l][a])}})})}buildPickers(e,t){this.pickers=Array.from(e).map(s=>{if(s.classList.contains("ql-align")&&(s.querySelector("option")==null&&Qr(s,Ix),typeof t.align=="object"))return new Wc(s,t.align);if(s.classList.contains("ql-background")||s.classList.contains("ql-color")){const l=s.classList.contains("ql-background")?"background":"color";return s.querySelector("option")==null&&Qr(s,Lx,l==="background"?"#ffffff":"#000000"),new Gc(s,t[l])}return s.querySelector("option")==null&&(s.classList.contains("ql-font")?Qr(s,Bx):s.classList.contains("ql-header")?Qr(s,Px):s.classList.contains("ql-size")&&Qr(s,Fx)),new Ks(s)});const r=()=>{this.pickers.forEach(s=>{s.update()})};this.quill.on(Se.events.EDITOR_CHANGE,r)}}Zr.DEFAULTS=Sn({},dr.DEFAULTS,{modules:{toolbar:{handlers:{formula(){this.quill.theme.tooltip.edit("formula")},image(){let n=this.container.querySelector("input.ql-image[type=file]");n==null&&(n=document.createElement("input"),n.setAttribute("type","file"),n.setAttribute("accept",this.quill.uploader.options.mimetypes.join(", ")),n.classList.add("ql-image"),n.addEventListener("change",()=>{const e=this.quill.getSelection(!0);this.quill.uploader.upload(e,n.files),n.value=""}),this.container.appendChild(n)),n.click()},video(){this.quill.theme.tooltip.edit("video")}}}}});class Xc extends Kc{constructor(e,t){super(e,t),this.textbox=this.root.querySelector('input[type="text"]'),this.listen()}listen(){this.textbox.addEventListener("keydown",e=>{e.key==="Enter"?(this.save(),e.preventDefault()):e.key==="Escape"&&(this.cancel(),e.preventDefault())})}cancel(){this.hide(),this.restoreFocus()}edit(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),this.textbox==null)return;t!=null?this.textbox.value=t:e!==this.root.getAttribute("data-mode")&&(this.textbox.value="");const r=this.quill.getBounds(this.quill.selection.savedRange);r!=null&&this.position(r),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute(`data-${e}`)||""),this.root.setAttribute("data-mode",e)}restoreFocus(){this.quill.focus({preventScroll:!0})}save(){let{value:e}=this.textbox;switch(this.root.getAttribute("data-mode")){case"link":{const{scrollTop:t}=this.quill.root;this.linkRange?(this.quill.formatText(this.linkRange,"link",e,Se.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",e,Se.sources.USER)),this.quill.root.scrollTop=t;break}case"video":e=Mx(e);case"formula":{if(!e)break;const t=this.quill.getSelection(!0);if(t!=null){const r=t.index+t.length;this.quill.insertEmbed(r,this.root.getAttribute("data-mode"),e,Se.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(r+1," ",Se.sources.USER),this.quill.setSelection(r+2,Se.sources.USER)}break}}this.textbox.value="",this.hide()}}function Mx(n){let e=n.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||n.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return e?`${e[1]||"https"}://www.youtube.com/embed/${e[2]}?showinfo=0`:(e=n.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?`${e[1]||"https"}://player.vimeo.com/video/${e[2]}/`:n}function Qr(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;e.forEach(r=>{const s=document.createElement("option");r===t?s.setAttribute("selected","selected"):s.setAttribute("value",String(r)),n.appendChild(s)})}const Dx=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]];class Yc extends Xc{constructor(e,t){super(e,t),this.quill.on(Se.events.EDITOR_CHANGE,(r,s,l,a)=>{if(r===Se.events.SELECTION_CHANGE)if(s!=null&&s.length>0&&a===Se.sources.USER){this.show(),this.root.style.left="0px",this.root.style.width="",this.root.style.width=`${this.root.offsetWidth}px`;const c=this.quill.getLines(s.index,s.length);if(c.length===1){const o=this.quill.getBounds(s);o!=null&&this.position(o)}else{const o=c[c.length-1],u=this.quill.getIndex(o),d=Math.min(o.length()-1,s.index+s.length-u),h=this.quill.getBounds(new $n(u,d));h!=null&&this.position(h)}}else document.activeElement!==this.textbox&&this.quill.hasFocus()&&this.hide()})}listen(){super.listen(),this.root.querySelector(".ql-close").addEventListener("click",()=>{this.root.classList.remove("ql-editing")}),this.quill.on(Se.events.SCROLL_OPTIMIZE,()=>{setTimeout(()=>{if(this.root.classList.contains("ql-hidden"))return;const e=this.quill.getSelection();if(e!=null){const t=this.quill.getBounds(e);t!=null&&this.position(t)}},1)})}cancel(){this.show()}position(e){const t=super.position(e),r=this.root.querySelector(".ql-tooltip-arrow");return r.style.marginLeft="",t!==0&&(r.style.marginLeft=`${-1*t-r.offsetWidth/2}px`),t}}Ee(Yc,"TEMPLATE",['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""));class Zc extends Zr{constructor(e,t){t.modules.toolbar!=null&&t.modules.toolbar.container==null&&(t.modules.toolbar.container=Dx),super(e,t),this.quill.container.classList.add("ql-bubble")}extendToolbar(e){this.tooltip=new Yc(this.quill,this.options.bounds),e.container!=null&&(this.tooltip.root.appendChild(e.container),this.buildButtons(e.container.querySelectorAll("button"),Yr),this.buildPickers(e.container.querySelectorAll("select"),Yr))}}Zc.DEFAULTS=Sn({},Zr.DEFAULTS,{modules:{toolbar:{handlers:{link(n){n?this.quill.theme.tooltip.edit():this.quill.format("link",!1,le.sources.USER)}}}}});const Ux=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];class Qc extends Xc{constructor(){super(...arguments);Ee(this,"preview",this.root.querySelector("a.ql-preview"))}listen(){super.listen(),this.root.querySelector("a.ql-action").addEventListener("click",t=>{this.root.classList.contains("ql-editing")?this.save():this.edit("link",this.preview.textContent),t.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",t=>{if(this.linkRange!=null){const r=this.linkRange;this.restoreFocus(),this.quill.formatText(r,"link",!1,Se.sources.USER),delete this.linkRange}t.preventDefault(),this.hide()}),this.quill.on(Se.events.SELECTION_CHANGE,(t,r,s)=>{if(t!=null){if(t.length===0&&s===Se.sources.USER){const[l,a]=this.quill.scroll.descendant(kn,t.index);if(l!=null){this.linkRange=new $n(t.index-a,l.length());const c=kn.formats(l.domNode);this.preview.textContent=c,this.preview.setAttribute("href",c),this.show();const o=this.quill.getBounds(this.linkRange);o!=null&&this.position(o);return}}else delete this.linkRange;this.hide()}})}show(){super.show(),this.root.removeAttribute("data-mode")}}Ee(Qc,"TEMPLATE",['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""));class Jc extends Zr{constructor(e,t){t.modules.toolbar!=null&&t.modules.toolbar.container==null&&(t.modules.toolbar.container=Ux),super(e,t),this.quill.container.classList.add("ql-snow")}extendToolbar(e){e.container!=null&&(e.container.classList.add("ql-snow"),this.buildButtons(e.container.querySelectorAll("button"),Yr),this.buildPickers(e.container.querySelectorAll("select"),Yr),this.tooltip=new Qc(this.quill,this.options.bounds),e.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"k",shortKey:!0},(t,r)=>{e.handlers.link.call(e,!r.format.link)}))}}Jc.DEFAULTS=Sn({},Zr.DEFAULTS,{modules:{toolbar:{handlers:{link(n){if(n){const e=this.quill.getSelection();if(e==null||e.length===0)return;let t=this.quill.getText(e);/^\S+@\S+\.\S+$/.test(t)&&t.indexOf("mailto:")!==0&&(t=`mailto:${t}`);const{tooltip:r}=this.quill.theme;r.edit("link",t)}else this.quill.format("link",!1,le.sources.USER)}}}}}),le.register({"attributors/attribute/direction":bc,"attributors/class/align":gc,"attributors/class/background":Nb,"attributors/class/color":Tb,"attributors/class/direction":xc,"attributors/class/font":Ac,"attributors/class/size":Tc,"attributors/style/align":yc,"attributors/style/background":fi,"attributors/style/color":di,"attributors/style/direction":Ec,"attributors/style/font":Sc,"attributors/style/size":Nc},!0),le.register({"formats/align":gc,"formats/direction":xc,"formats/indent":gx,"formats/background":fi,"formats/color":di,"formats/font":Ac,"formats/size":Tc,"formats/blockquote":xi,"formats/code-block":vt,"formats/header":Ei,"formats/list":Gr,"formats/bold":Wr,"formats/code":hi,"formats/italic":wi,"formats/link":kn,"formats/script":Ai,"formats/strike":Si,"formats/underline":Ti,"formats/formula":Gs,"formats/image":Ni,"formats/video":Ws,"modules/syntax":Vc,"modules/table":vx,"modules/toolbar":Ci,"themes/bubble":Zc,"themes/snow":Jc,"ui/icons":Yr,"ui/picker":Ks,"ui/icon-picker":Wc,"ui/color-picker":Gc,"ui/tooltip":Kc},!0);const _x={name:"QuillEditor",props:{modelValue:{type:String,default:""},options:{type:Object,default:()=>({theme:"snow",placeholder:"Start typing...",modules:{toolbar:[[{font:[]},{size:[]}],["bold","italic","underline","strike"],[{color:[]},{background:[]}],[{script:"sub"},{script:"super"}],[{header:1},{header:2},"blockquote","code-block"],[{list:"ordered"},{list:"bullet"},{indent:"-1"},{indent:"+1"}],[{direction:"rtl"},{align:[]}],["link","image","video","formula"],["clean"]]}})}},emits:["update:modelValue"],setup(n,{emit:e}){const t=i.ref(null);let r=null;return i.onMounted(()=>{r=new le(t.value,n.options),r.root.innerHTML=n.modelValue,r.on("text-change",()=>{e("update:modelValue",r.root.innerHTML)})}),i.watch(()=>n.modelValue,s=>{r&&r.root.innerHTML!==s&&(r.root.innerHTML=s)}),i.onBeforeUnmount(()=>{r=null}),{editorContainer:t}}},Vx={class:"q-editor"},jx={ref:"editorContainer"};function $x(n,e,t,r,s,l){return i.openBlock(),i.createElementBlock("div",Vx,[i.createElementVNode("div",jx,null,512)])}const qx=Zn(_x,[["render",$x]]),zx={class:"rounded-xl bg-gray-50 px-6 py-5"},Hx={key:0,class:"pb-5"},Gx={class:"text-lg font-semibold text-gray-900"},Wx={key:0,class:"text-sm text-gray-600"},Jr={__name:"Card",props:{title:{type:String,default:""},supporting_text:{type:String,default:""}},setup(n){return(e,t)=>(i.openBlock(),i.createElementBlock("div",zx,[n.title?(i.openBlock(),i.createElementBlock("div",Hx,[i.createElementVNode("div",Gx,i.toDisplayString(n.title),1),n.supporting_text?(i.openBlock(),i.createElementBlock("div",Wx,i.toDisplayString(n.supporting_text),1)):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),i.renderSlot(e.$slots,"default")]))}},Kx={class:"item-edit"},Xx={class:"flex items-start gap-4 px-6 pt-4 h-full min-h-[90vh]"},Yx={class:"flex flex-1 flex-col gap-4"},Zx={class:"flex flex-col gap-8"},Qx={class:"flex flex-col gap-8"},Jx={class:"flex flex-col gap-4"},eE={class:"flex w-full max-w-[356px] flex-col gap-4"},tE={class:"flex justify-between space-x-xsSpace pt-xsSpace gap-4 sticky bottom-0 w-full bg-gray-200 py-2 px-6"},nE={__name:"ItemEdit",props:{item:{type:Object,required:!0},saveEndpoint:{type:String,required:!1},cancelEndpoint:{type:String,required:!1},sites:{type:Object,required:!0}},emits:["update"],setup(n,{emit:e}){const t=i.inject("VFileUpload",So),r=e,s=n,l=i.ref({public:s.item.public,title:s.item.title,description:s.item.description,featured_image:s.item.featured_image});s.item.hasOwnProperty("primary_button")&&(l.value.primary_button=s.item.primary_button),s.item.hasOwnProperty("secondary_button")&&(l.value.secondary_button=s.item.secondary_button);const a=()=>{r("update",l.value),s.saveEndpoint&&tt.post(s.saveEndpoint,l.value).then(()=>{s.cancelEndpoint&&(window.location.href=s.cancelEndpoint)})},c=()=>{r("close",l.value),s.cancelEndpoint&&(window.location.href=s.cancelEndpoint)},o=i.computed(()=>{var h;return((h=l.value.description)==null?void 0:h.replace(/<[^>]*>/g," ").trim()).split(/\s+/).filter(f=>f.length>0).length});return(u,d)=>{var h,f,m,p;return i.openBlock(),i.createElementBlock("div",Kx,[i.createElementVNode("div",Xx,[i.createElementVNode("div",Yx,[i.createVNode(Jr,{title:"Description"},{default:i.withCtx(()=>[i.createElementVNode("div",Zx,[i.createVNode(_t,{"is-vertical":"",field:"title","label-text":"Title *",class:"w-full",value:l.value.title,limit:51},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":d[0]||(d[0]=y=>l.value.title=y),name:"title",type:"text",placeholder:"Title",maxlength:51,class:"border-1 border-solid border-gray-300 rounded-lg bg-white w-full"},null,512),[[i.vModelText,l.value.title]])]),_:1},8,["value"]),i.createVNode(_t,{"is-vertical":"",field:"description","label-text":"Description *",class:"w-full mb-4",value:o.value,"show-count":!0},{default:i.withCtx(()=>[i.createVNode(qx,{modelValue:l.value.description,"onUpdate:modelValue":d[1]||(d[1]=y=>l.value.description=y)},null,8,["modelValue"])]),_:1},8,["value"])])]),_:1}),l.value.hasOwnProperty("primary_button")?(i.openBlock(),i.createBlock(Jr,{key:0,title:((f=(h=l.value)==null?void 0:h.primary_button)==null?void 0:f.name)??"Primary button"},{default:i.withCtx(()=>[i.createElementVNode("div",Qx,[i.createVNode(Cr,{name:"show",modelValue:l.value.primary_button.show,"onUpdate:modelValue":d[2]||(d[2]=y=>l.value.primary_button.show=y),title:"Show Button"},null,8,["modelValue"]),i.createVNode(_t,{"is-vertical":"",field:"primary_button.label","label-text":"Button Label *",class:"w-full mb-4",value:l.value.primary_button.label,limit:20},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":d[3]||(d[3]=y=>l.value.primary_button.label=y),name:"primary_button.label",type:"text",placeholder:"Label",maxlength:20,class:"border-1 border-solid border-gray-300 rounded-lg bg-white w-full"},null,512),[[i.vModelText,l.value.primary_button.label]])]),_:1},8,["value"]),i.createVNode(Or,{name:"primary",type:l.value.primary_button.type,"onUpdate:type":d[4]||(d[4]=y=>l.value.primary_button.type=y),url:l.value.primary_button.url,"onUpdate:url":d[5]||(d[5]=y=>l.value.primary_button.url=y),openInNewTab:l.value.primary_button.open_in_new_tab,"onUpdate:openInNewTab":d[6]||(d[6]=y=>l.value.primary_button.open_in_new_tab=y),sites:n.sites},null,8,["type","url","openInNewTab","sites"])])]),_:1},8,["title"])):i.createCommentVNode("",!0),l.value.hasOwnProperty("secondary_button")?(i.openBlock(),i.createBlock(Jr,{key:1,title:((p=(m=l.value)==null?void 0:m.secondary_button)==null?void 0:p.name)??"Secondary button"},{default:i.withCtx(()=>[i.createElementVNode("div",Jx,[i.createVNode(Cr,{name:"show",modelValue:l.value.secondary_button.show,"onUpdate:modelValue":d[7]||(d[7]=y=>l.value.secondary_button.show=y),title:"Show Button"},null,8,["modelValue"]),i.createVNode(_t,{"is-vertical":"",field:"secondary_button.label","label-text":"Button Label *",class:"w-full mb-4",value:l.value.secondary_button.label,limit:20},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":d[8]||(d[8]=y=>l.value.secondary_button.label=y),name:"secondary_button.label",type:"text",placeholder:"Label",maxlength:20,class:"border-1 border-solid border-gray-300 rounded-lg bg-white w-full"},null,512),[[i.vModelText,l.value.secondary_button.label]])]),_:1},8,["value"]),i.createVNode(Or,{name:"secondary",type:l.value.secondary_button.type,"onUpdate:type":d[9]||(d[9]=y=>l.value.secondary_button.type=y),url:l.value.secondary_button.url,"onUpdate:url":d[10]||(d[10]=y=>l.value.secondary_button.url=y),openInNewTab:l.value.secondary_button.open_in_new_tab,"onUpdate:openInNewTab":d[11]||(d[11]=y=>l.value.secondary_button.open_in_new_tab=y),sites:n.sites},null,8,["type","url","openInNewTab","sites"])])]),_:1},8,["title"])):i.createCommentVNode("",!0)]),i.createElementVNode("div",eE,[i.createVNode(Jr,{title:"Visibility",supporting_text:"Toggle off if you'd like to hide this item"},{default:i.withCtx(()=>[i.createVNode(Cr,{modelValue:l.value.public,"onUpdate:modelValue":d[12]||(d[12]=y=>l.value.public=y),name:"public",label:"Public"},null,8,["modelValue"])]),_:1}),i.createVNode(Jr,{title:"Featured Image",supporting_text:"Recommended dimension: 1200*1060px"},{default:i.withCtx(()=>[i.createVNode(i.unref(t),{name:"image",height:"h-[200px]",modelValue:l.value.featured_image,"onUpdate:modelValue":d[13]||(d[13]=y=>l.value.featured_image=y)},null,8,["modelValue"])]),_:1})])]),i.renderSlot(u.$slots,"default",{},()=>[i.createElementVNode("div",tE,[i.createElementVNode("a",{onClick:c,class:"w-[200px] py-[9px] bg-white rounded-full border border-gray-300 shadow-xs text-md font-semibold hover:bg-gray-100 text-gray-700 text-center cursor-pointer"}," Cancel "),i.createElementVNode("a",{onClick:i.withModifiers(a,["prevent"]),class:"w-full py-[9px] rounded-full shadow-xs text-md font-semibold text-white bg-brand-600 hover:bg-brand-700 border border-brand-600 text-center cursor-pointer"},"Save changes")])])])}}};Ye.ItemEdit=nE,Ye.PageBuilder=yp,Ye.PageRender=Cg,Object.defineProperty(Ye,Symbol.toStringTag,{value:"Module"})});
64
+ `,{[vt.blotName]:t}),a.insert(c)),l)],new WeakMap)}}Vc.DEFAULTS={hljs:window.hljs,interval:1e3,languages:[{key:"plain",label:"Plain"},{key:"bash",label:"Bash"},{key:"cpp",label:"C++"},{key:"cs",label:"C#"},{key:"css",label:"CSS"},{key:"diff",label:"Diff"},{key:"xml",label:"HTML/XML"},{key:"java",label:"Java"},{key:"javascript",label:"JavaScript"},{key:"markdown",label:"Markdown"},{key:"php",label:"PHP"},{key:"python",label:"Python"},{key:"ruby",label:"Ruby"},{key:"sql",label:"SQL"}]};const ts=class ts extends ht{static create(e){const t=super.create();return e?t.setAttribute("data-row",e):t.setAttribute("data-row",ki()),t}static formats(e){if(e.hasAttribute("data-row"))return e.getAttribute("data-row")}cellOffset(){return this.parent?this.parent.children.indexOf(this):-1}format(e,t){e===ts.blotName&&t?this.domNode.setAttribute("data-row",t):super.format(e,t)}row(){return this.parent}rowOffset(){return this.row()?this.row().rowOffset():-1}table(){return this.row()&&this.row().table()}};Ee(ts,"blotName","table"),Ee(ts,"tagName","TD");let Kt=ts;class mn extends qn{checkMerge(){if(super.checkMerge()&&this.next.children.head!=null){const e=this.children.head.formats(),t=this.children.tail.formats(),r=this.next.children.head.formats(),s=this.next.children.tail.formats();return e.table===t.table&&e.table===r.table&&e.table===s.table}return!1}optimize(e){super.optimize(e),this.children.forEach(t=>{if(t.next==null)return;const r=t.formats(),s=t.next.formats();if(r.table!==s.table){const l=this.splitAfter(t);l&&l.optimize(),this.prev&&this.prev.optimize()}})}rowOffset(){return this.parent?this.parent.children.indexOf(this):-1}table(){return this.parent&&this.parent.parent}}Ee(mn,"blotName","table-row"),Ee(mn,"tagName","TR");class sn extends qn{}Ee(sn,"blotName","table-body"),Ee(sn,"tagName","TBODY");class pr extends qn{balanceCells(){const e=this.descendants(mn),t=e.reduce((r,s)=>Math.max(s.children.length,r),0);e.forEach(r=>{new Array(t-r.children.length).fill(0).forEach(()=>{let s;r.children.head!=null&&(s=Kt.formats(r.children.head.domNode));const l=this.scroll.create(Kt.blotName,s);r.appendChild(l),l.optimize()})})}cells(e){return this.rows().map(t=>t.children.at(e))}deleteColumn(e){const[t]=this.descendant(sn);t==null||t.children.head==null||t.children.forEach(r=>{const s=r.children.at(e);s!=null&&s.remove()})}insertColumn(e){const[t]=this.descendant(sn);t==null||t.children.head==null||t.children.forEach(r=>{const s=r.children.at(e),l=Kt.formats(r.children.head.domNode),a=this.scroll.create(Kt.blotName,l);r.insertBefore(a,s)})}insertRow(e){const[t]=this.descendant(sn);if(t==null||t.children.head==null)return;const r=ki(),s=this.scroll.create(mn.blotName);t.children.head.children.forEach(()=>{const a=this.scroll.create(Kt.blotName,r);s.appendChild(a)});const l=t.children.at(e);t.insertBefore(s,l)}rows(){const e=this.children.head;return e==null?[]:e.children.map(t=>t)}}Ee(pr,"blotName","table-container"),Ee(pr,"tagName","TABLE"),pr.allowedChildren=[sn],sn.requiredContainer=pr,sn.allowedChildren=[mn],mn.requiredContainer=sn,mn.allowedChildren=[Kt],Kt.requiredContainer=mn;function ki(){return`row-${Math.random().toString(36).slice(2,6)}`}class Ex extends Gt{static register(){le.register(Kt),le.register(mn),le.register(sn),le.register(pr)}constructor(){super(...arguments),this.listenBalanceCells()}balanceTables(){this.quill.scroll.descendants(pr).forEach(e=>{e.balanceCells()})}deleteColumn(){const[e,,t]=this.getTable();t!=null&&(e.deleteColumn(t.cellOffset()),this.quill.update(le.sources.USER))}deleteRow(){const[,e]=this.getTable();e!=null&&(e.remove(),this.quill.update(le.sources.USER))}deleteTable(){const[e]=this.getTable();if(e==null)return;const t=e.offset();e.remove(),this.quill.update(le.sources.USER),this.quill.setSelection(t,le.sources.SILENT)}getTable(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.quill.getSelection();if(e==null)return[null,null,null,-1];const[t,r]=this.quill.getLine(e.index);if(t==null||t.statics.blotName!==Kt.blotName)return[null,null,null,-1];const s=t.parent;return[s.parent.parent,s,t,r]}insertColumn(e){const t=this.quill.getSelection();if(!t)return;const[r,s,l]=this.getTable(t);if(l==null)return;const a=l.cellOffset();r.insertColumn(a+e),this.quill.update(le.sources.USER);let c=s.rowOffset();e===0&&(c+=1),this.quill.setSelection(t.index+c,t.length,le.sources.SILENT)}insertColumnLeft(){this.insertColumn(0)}insertColumnRight(){this.insertColumn(1)}insertRow(e){const t=this.quill.getSelection();if(!t)return;const[r,s,l]=this.getTable(t);if(l==null)return;const a=s.rowOffset();r.insertRow(a+e),this.quill.update(le.sources.USER),e>0?this.quill.setSelection(t,le.sources.SILENT):this.quill.setSelection(t.index+s.children.length,t.length,le.sources.SILENT)}insertRowAbove(){this.insertRow(0)}insertRowBelow(){this.insertRow(1)}insertTable(e,t){const r=this.quill.getSelection();if(r==null)return;const s=new Array(e).fill(0).reduce(l=>{const a=new Array(t).fill(`
65
+ `).join("");return l.insert(a,{table:ki()})},new Te().retain(r.index));this.quill.updateContents(s,le.sources.USER),this.quill.setSelection(r.index,le.sources.SILENT),this.balanceTables()}listenBalanceCells(){this.quill.on(le.events.SCROLL_OPTIMIZE,e=>{e.some(t=>["TD","TR","TBODY","TABLE"].includes(t.target.tagName)?(this.quill.once(le.events.TEXT_CHANGE,(r,s,l)=>{l===le.sources.USER&&this.balanceTables()}),!0):!1)})}}const jc=fn("quill:toolbar");class Ci extends Gt{constructor(e,t){var r,s;if(super(e,t),Array.isArray(this.options.container)){const l=document.createElement("div");l.setAttribute("role","toolbar"),wx(l,this.options.container),(s=(r=e.container)==null?void 0:r.parentNode)==null||s.insertBefore(l,e.container),this.container=l}else typeof this.options.container=="string"?this.container=document.querySelector(this.options.container):this.container=this.options.container;if(!(this.container instanceof HTMLElement)){jc.error("Container required for toolbar",this.options);return}this.container.classList.add("ql-toolbar"),this.controls=[],this.handlers={},this.options.handlers&&Object.keys(this.options.handlers).forEach(l=>{var c;const a=(c=this.options.handlers)==null?void 0:c[l];a&&this.addHandler(l,a)}),Array.from(this.container.querySelectorAll("button, select")).forEach(l=>{this.attach(l)}),this.quill.on(le.events.EDITOR_CHANGE,()=>{const[l]=this.quill.selection.getRange();this.update(l)})}addHandler(e,t){this.handlers[e]=t}attach(e){let t=Array.from(e.classList).find(s=>s.indexOf("ql-")===0);if(!t)return;if(t=t.slice(3),e.tagName==="BUTTON"&&e.setAttribute("type","button"),this.handlers[t]==null&&this.quill.scroll.query(t)==null){jc.warn("ignoring attaching to nonexistent format",t,e);return}const r=e.tagName==="SELECT"?"change":"click";e.addEventListener(r,s=>{let l;if(e.tagName==="SELECT"){if(e.selectedIndex<0)return;const c=e.options[e.selectedIndex];c.hasAttribute("selected")?l=!1:l=c.value||!1}else e.classList.contains("ql-active")?l=!1:l=e.value||!e.hasAttribute("value"),s.preventDefault();this.quill.focus();const[a]=this.quill.selection.getRange();if(this.handlers[t]!=null)this.handlers[t].call(this,l);else if(this.quill.scroll.query(t).prototype instanceof Ot){if(l=prompt(`Enter ${t}`),!l)return;this.quill.updateContents(new Te().retain(a.index).delete(a.length).insert({[t]:l}),le.sources.USER)}else this.quill.format(t,l,le.sources.USER);this.update(a)}),this.controls.push([t,e])}update(e){const t=e==null?{}:this.quill.getFormat(e);this.controls.forEach(r=>{const[s,l]=r;if(l.tagName==="SELECT"){let a=null;if(e==null)a=null;else if(t[s]==null)a=l.querySelector("option[selected]");else if(!Array.isArray(t[s])){let c=t[s];typeof c=="string"&&(c=c.replace(/"/g,'\\"')),a=l.querySelector(`option[value="${c}"]`)}a==null?(l.value="",l.selectedIndex=-1):a.selected=!0}else if(e==null)l.classList.remove("ql-active"),l.setAttribute("aria-pressed","false");else if(l.hasAttribute("value")){const a=t[s],c=a===l.getAttribute("value")||a!=null&&a.toString()===l.getAttribute("value")||a==null&&!l.getAttribute("value");l.classList.toggle("ql-active",c),l.setAttribute("aria-pressed",c.toString())}else{const a=t[s]!=null;l.classList.toggle("ql-active",a),l.setAttribute("aria-pressed",a.toString())}})}}Ci.DEFAULTS={};function $c(n,e,t){const r=document.createElement("button");r.setAttribute("type","button"),r.classList.add(`ql-${e}`),r.setAttribute("aria-pressed","false"),t!=null?(r.value=t,r.setAttribute("aria-label",`${e}: ${t}`)):r.setAttribute("aria-label",e),n.appendChild(r)}function wx(n,e){Array.isArray(e[0])||(e=[e]),e.forEach(t=>{const r=document.createElement("span");r.classList.add("ql-formats"),t.forEach(s=>{if(typeof s=="string")$c(r,s);else{const l=Object.keys(s)[0],a=s[l];Array.isArray(a)?Ax(r,l,a):$c(r,l,a)}}),n.appendChild(r)})}function Ax(n,e,t){const r=document.createElement("select");r.classList.add(`ql-${e}`),t.forEach(s=>{const l=document.createElement("option");s!==!1?l.setAttribute("value",String(s)):l.setAttribute("selected","selected"),r.appendChild(l)}),n.appendChild(r)}Ci.DEFAULTS={container:null,handlers:{clean(){const n=this.quill.getSelection();if(n!=null)if(n.length===0){const e=this.quill.getFormat();Object.keys(e).forEach(t=>{this.quill.scroll.query(t,Ne.INLINE)!=null&&this.quill.format(t,!1,le.sources.USER)})}else this.quill.removeFormat(n.index,n.length,le.sources.USER)},direction(n){const{align:e}=this.quill.getFormat();n==="rtl"&&e==null?this.quill.format("align","right",le.sources.USER):!n&&e==="right"&&this.quill.format("align",!1,le.sources.USER),this.quill.format("direction",n,le.sources.USER)},indent(n){const e=this.quill.getSelection(),t=this.quill.getFormat(e),r=parseInt(t.indent||0,10);if(n==="+1"||n==="-1"){let s=n==="+1"?1:-1;t.direction==="rtl"&&(s*=-1),this.quill.format("indent",r+s,le.sources.USER)}},link(n){n===!0&&(n=prompt("Enter link URL:")),this.quill.format("link",n,le.sources.USER)},list(n){const e=this.quill.getSelection(),t=this.quill.getFormat(e);n==="check"?t.list==="checked"||t.list==="unchecked"?this.quill.format("list",!1,le.sources.USER):this.quill.format("list","unchecked",le.sources.USER):this.quill.format("list",n,le.sources.USER)}}};const Sx='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="13" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="9" y1="4" y2="4"/></svg>',Tx='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="14" x2="4" y1="14" y2="14"/><line class="ql-stroke" x1="12" x2="6" y1="4" y2="4"/></svg>',Nx='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="5" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="9" y1="4" y2="4"/></svg>',kx='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="3" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="3" y1="4" y2="4"/></svg>',Cx='<svg viewbox="0 0 18 18"><g class="ql-fill ql-color-label"><polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"/><rect height="1" width="1" x="4" y="4"/><polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"/><rect height="1" width="1" x="2" y="6"/><rect height="1" width="1" x="3" y="5"/><rect height="1" width="1" x="4" y="7"/><polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"/><rect height="1" width="1" x="2" y="12"/><rect height="1" width="1" x="2" y="9"/><rect height="1" width="1" x="2" y="15"/><polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"/><rect height="1" width="1" x="3" y="8"/><path d="M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z"/><path d="M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z"/><path d="M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z"/><rect height="1" width="1" x="12" y="2"/><rect height="1" width="1" x="11" y="3"/><path d="M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z"/><rect height="1" width="1" x="2" y="3"/><rect height="1" width="1" x="6" y="2"/><rect height="1" width="1" x="3" y="2"/><rect height="1" width="1" x="5" y="3"/><rect height="1" width="1" x="9" y="2"/><rect height="1" width="1" x="15" y="14"/><polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"/><rect height="1" width="1" x="13" y="7"/><rect height="1" width="1" x="15" y="5"/><rect height="1" width="1" x="14" y="6"/><rect height="1" width="1" x="15" y="8"/><rect height="1" width="1" x="14" y="9"/><path d="M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z"/><rect height="1" width="1" x="14" y="3"/><polygon points="12 6.868 12 6 11.62 6 12 6.868"/><rect height="1" width="1" x="15" y="2"/><rect height="1" width="1" x="12" y="5"/><rect height="1" width="1" x="13" y="4"/><polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"/><rect height="1" width="1" x="9" y="14"/><rect height="1" width="1" x="8" y="15"/><path d="M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z"/><rect height="1" width="1" x="5" y="15"/><path d="M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z"/><rect height="1" width="1" x="11" y="15"/><path d="M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z"/><rect height="1" width="1" x="14" y="15"/><rect height="1" width="1" x="15" y="11"/></g><polyline class="ql-stroke" points="5.5 13 9 5 12.5 13"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="11" y2="11"/></svg>',Ox='<svg viewbox="0 0 18 18"><rect class="ql-fill ql-stroke" height="3" width="3" x="4" y="5"/><rect class="ql-fill ql-stroke" height="3" width="3" x="11" y="5"/><path class="ql-even ql-fill ql-stroke" d="M7,8c0,4.031-3,5-3,5"/><path class="ql-even ql-fill ql-stroke" d="M14,8c0,4.031-3,5-3,5"/></svg>',Rx='<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z"/><path class="ql-stroke" d="M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z"/></svg>',Ix='<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="5" x2="13" y1="3" y2="3"/><line class="ql-stroke" x1="6" x2="9.35" y1="12" y2="3"/><line class="ql-stroke" x1="11" x2="15" y1="11" y2="15"/><line class="ql-stroke" x1="15" x2="11" y1="11" y2="15"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="7" x="2" y="14"/></svg>',qc='<svg viewbox="0 0 18 18"><polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"/><polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"/><line class="ql-stroke" x1="10" x2="8" y1="5" y2="13"/></svg>',Yr={align:{"":Sx,center:Tx,right:Nx,justify:kx},background:Cx,blockquote:Ox,bold:Rx,clean:Ix,code:qc,"code-block":qc,color:'<svg viewbox="0 0 18 18"><line class="ql-color-label ql-stroke ql-transparent" x1="3" x2="15" y1="15" y2="15"/><polyline class="ql-stroke" points="5.5 11 9 3 12.5 11"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="9" y2="9"/></svg>',direction:{"":'<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"/><line class="ql-stroke ql-fill" x1="15" x2="11" y1="4" y2="4"/><path class="ql-fill" d="M11,3a3,3,0,0,0,0,6h1V3H11Z"/><rect class="ql-fill" height="11" width="1" x="11" y="4"/><rect class="ql-fill" height="11" width="1" x="13" y="4"/></svg>',rtl:'<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"/><line class="ql-stroke ql-fill" x1="9" x2="5" y1="4" y2="4"/><path class="ql-fill" d="M5,3A3,3,0,0,0,5,9H6V3H5Z"/><rect class="ql-fill" height="11" width="1" x="5" y="4"/><rect class="ql-fill" height="11" width="1" x="7" y="4"/></svg>'},formula:'<svg viewbox="0 0 18 18"><path class="ql-fill" d="M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z"/><rect class="ql-fill" height="1.6" rx="0.8" ry="0.8" width="5" x="5.15" y="6.2"/><path class="ql-fill" d="M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z"/></svg>',header:{1:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z"/></svg>',2:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',3:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.65186,12.30664a2.6742,2.6742,0,0,1-2.915,2.68457,3.96592,3.96592,0,0,1-2.25537-.6709.56007.56007,0,0,1-.13232-.83594L11.64648,13c.209-.34082.48389-.36328.82471-.1543a2.32654,2.32654,0,0,0,1.12256.33008c.71484,0,1.12207-.35156,1.12207-.78125,0-.61523-.61621-.86816-1.46338-.86816H13.2085a.65159.65159,0,0,1-.68213-.41895l-.05518-.10937a.67114.67114,0,0,1,.14307-.78125l.71533-.86914a8.55289,8.55289,0,0,1,.68213-.7373V8.58887a3.93913,3.93913,0,0,1-.748.05469H11.9873a.54085.54085,0,0,1-.605-.60547V7.59863a.54085.54085,0,0,1,.605-.60547h3.75146a.53773.53773,0,0,1,.60547.59375v.17676a1.03723,1.03723,0,0,1-.27539.748L14.74854,10.0293A2.31132,2.31132,0,0,1,16.65186,12.30664ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',4:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm7.05371,7.96582v.38477c0,.39648-.165.60547-.46191.60547h-.47314v1.29785a.54085.54085,0,0,1-.605.60547h-.69336a.54085.54085,0,0,1-.605-.60547V12.95605H11.333a.5412.5412,0,0,1-.60547-.60547v-.15332a1.199,1.199,0,0,1,.22021-.748l2.56348-4.05957a.7819.7819,0,0,1,.72607-.39648h1.27637a.54085.54085,0,0,1,.605.60547v3.7627h.33008A.54055.54055,0,0,1,17.05371,11.96582ZM14.28125,8.7207h-.022a4.18969,4.18969,0,0,1-.38525.81348l-1.188,1.80469v.02246h1.5293V9.60059A7.04058,7.04058,0,0,1,14.28125,8.7207Z"/></svg>',5:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.74023,12.18555a2.75131,2.75131,0,0,1-2.91553,2.80566,3.908,3.908,0,0,1-2.25537-.68164.54809.54809,0,0,1-.13184-.8252L11.73438,13c.209-.34082.48389-.36328.8252-.1543a2.23757,2.23757,0,0,0,1.1001.33008,1.01827,1.01827,0,0,0,1.1001-.96777c0-.61621-.53906-.97949-1.25439-.97949a2.15554,2.15554,0,0,0-.64893.09961,1.15209,1.15209,0,0,1-.814.01074l-.12109-.04395a.64116.64116,0,0,1-.45117-.71484l.231-3.00391a.56666.56666,0,0,1,.62744-.583H15.541a.54085.54085,0,0,1,.605.60547v.43945a.54085.54085,0,0,1-.605.60547H13.41748l-.04395.72559a1.29306,1.29306,0,0,1-.04395.30859h.022a2.39776,2.39776,0,0,1,.57227-.07715A2.53266,2.53266,0,0,1,16.74023,12.18555ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',6:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M14.51758,9.64453a1.85627,1.85627,0,0,0-1.24316.38477H13.252a1.73532,1.73532,0,0,1,1.72754-1.4082,2.66491,2.66491,0,0,1,.5498.06641c.35254.05469.57227.01074.70508-.40723l.16406-.5166a.53393.53393,0,0,0-.373-.75977,4.83723,4.83723,0,0,0-1.17773-.14258c-2.43164,0-3.7627,2.17773-3.7627,4.43359,0,2.47559,1.60645,3.69629,3.19043,3.69629A2.70585,2.70585,0,0,0,16.96,12.19727,2.43861,2.43861,0,0,0,14.51758,9.64453Zm-.23047,3.58691c-.67187,0-1.22168-.81445-1.22168-1.45215,0-.47363.30762-.583.72559-.583.96875,0,1.27734.59375,1.27734,1.12207A.82182.82182,0,0,1,14.28711,13.23145ZM10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Z"/></svg>'},italic:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="13" y1="4" y2="4"/><line class="ql-stroke" x1="5" x2="11" y1="14" y2="14"/><line class="ql-stroke" x1="8" x2="10" y1="14" y2="4"/></svg>',image:'<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="10" width="12" x="3" y="4"/><circle class="ql-fill" cx="6" cy="7" r="1"/><polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"/></svg>',indent:{"+1":'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"/></svg>',"-1":'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="5 7 5 11 3 9 5 7"/></svg>'},link:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="11" y1="7" y2="11"/><path class="ql-even ql-stroke" d="M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z"/><path class="ql-even ql-stroke" d="M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z"/></svg>',list:{bullet:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="6" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="6" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="6" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="3" y1="4" y2="4"/><line class="ql-stroke" x1="3" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="3" y1="14" y2="14"/></svg>',check:'<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="9" x2="15" y1="4" y2="4"/><polyline class="ql-stroke" points="3 4 4 5 6 3"/><line class="ql-stroke" x1="9" x2="15" y1="14" y2="14"/><polyline class="ql-stroke" points="3 14 4 15 6 13"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="3 9 4 10 6 8"/></svg>',ordered:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="7" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="7" x2="15" y1="14" y2="14"/><line class="ql-stroke ql-thin" x1="2.5" x2="4.5" y1="5.5" y2="5.5"/><path class="ql-fill" d="M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z"/><path class="ql-stroke ql-thin" d="M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156"/><path class="ql-stroke ql-thin" d="M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109"/></svg>'},script:{sub:'<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z"/><path class="ql-fill" d="M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z"/></svg>',super:'<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z"/><path class="ql-fill" d="M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z"/></svg>'},strike:'<svg viewbox="0 0 18 18"><line class="ql-stroke ql-thin" x1="15.5" x2="2.5" y1="8.5" y2="9.5"/><path class="ql-fill" d="M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z"/><path class="ql-fill" d="M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z"/></svg>',table:'<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="2" width="3" x="5" y="5"/><rect class="ql-fill" height="2" width="4" x="9" y="5"/><g class="ql-fill ql-transparent"><rect height="2" width="3" x="5" y="8"/><rect height="2" width="4" x="9" y="8"/><rect height="2" width="3" x="5" y="11"/><rect height="2" width="4" x="9" y="11"/></g></svg>',underline:'<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="12" x="3" y="15"/></svg>',video:'<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="12" width="1" x="5" y="3"/><rect class="ql-fill" height="12" width="1" x="12" y="3"/><rect class="ql-fill" height="2" width="8" x="5" y="8"/><rect class="ql-fill" height="1" width="3" x="3" y="5"/><rect class="ql-fill" height="1" width="3" x="3" y="7"/><rect class="ql-fill" height="1" width="3" x="3" y="10"/><rect class="ql-fill" height="1" width="3" x="3" y="12"/><rect class="ql-fill" height="1" width="3" x="12" y="5"/><rect class="ql-fill" height="1" width="3" x="12" y="7"/><rect class="ql-fill" height="1" width="3" x="12" y="10"/><rect class="ql-fill" height="1" width="3" x="12" y="12"/></svg>'},Lx='<svg viewbox="0 0 18 18"><polygon class="ql-stroke" points="7 11 9 13 11 11 7 11"/><polygon class="ql-stroke" points="7 7 9 5 11 7 7 7"/></svg>';let zc=0;function Hc(n,e){n.setAttribute(e,`${n.getAttribute(e)!=="true"}`)}class Ks{constructor(e){this.select=e,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",()=>{this.togglePicker()}),this.label.addEventListener("keydown",t=>{switch(t.key){case"Enter":this.togglePicker();break;case"Escape":this.escape(),t.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}togglePicker(){this.container.classList.toggle("ql-expanded"),Hc(this.label,"aria-expanded"),Hc(this.options,"aria-hidden")}buildItem(e){const t=document.createElement("span");t.tabIndex="0",t.setAttribute("role","button"),t.classList.add("ql-picker-item");const r=e.getAttribute("value");return r&&t.setAttribute("data-value",r),e.textContent&&t.setAttribute("data-label",e.textContent),t.addEventListener("click",()=>{this.selectItem(t,!0)}),t.addEventListener("keydown",s=>{switch(s.key){case"Enter":this.selectItem(t,!0),s.preventDefault();break;case"Escape":this.escape(),s.preventDefault();break}}),t}buildLabel(){const e=document.createElement("span");return e.classList.add("ql-picker-label"),e.innerHTML=Lx,e.tabIndex="0",e.setAttribute("role","button"),e.setAttribute("aria-expanded","false"),this.container.appendChild(e),e}buildOptions(){const e=document.createElement("span");e.classList.add("ql-picker-options"),e.setAttribute("aria-hidden","true"),e.tabIndex="-1",e.id=`ql-picker-options-${zc}`,zc+=1,this.label.setAttribute("aria-controls",e.id),this.options=e,Array.from(this.select.options).forEach(t=>{const r=this.buildItem(t);e.appendChild(r),t.selected===!0&&this.selectItem(r)}),this.container.appendChild(e)}buildPicker(){Array.from(this.select.attributes).forEach(e=>{this.container.setAttribute(e.name,e.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}escape(){this.close(),setTimeout(()=>this.label.focus(),1)}close(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}selectItem(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const r=this.container.querySelector(".ql-selected");e!==r&&(r!=null&&r.classList.remove("ql-selected"),e!=null&&(e.classList.add("ql-selected"),this.select.selectedIndex=Array.from(e.parentNode.children).indexOf(e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),t&&(this.select.dispatchEvent(new Event("change")),this.close())))}update(){let e;if(this.select.selectedIndex>-1){const r=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(r)}else this.selectItem(null);const t=e!=null&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",t)}}class Gc extends Ks{constructor(e,t){super(e),this.label.innerHTML=t,this.container.classList.add("ql-color-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).slice(0,7).forEach(r=>{r.classList.add("ql-primary")})}buildItem(e){const t=super.buildItem(e);return t.style.backgroundColor=e.getAttribute("value")||"",t}selectItem(e,t){super.selectItem(e,t);const r=this.label.querySelector(".ql-color-label"),s=e&&e.getAttribute("data-value")||"";r&&(r.tagName==="line"?r.style.stroke=s:r.style.fill=s)}}class Wc extends Ks{constructor(e,t){super(e),this.container.classList.add("ql-icon-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).forEach(r=>{r.innerHTML=t[r.getAttribute("data-value")||""]}),this.defaultItem=this.container.querySelector(".ql-selected"),this.selectItem(this.defaultItem)}selectItem(e,t){super.selectItem(e,t);const r=e||this.defaultItem;if(r!=null){if(this.label.innerHTML===r.innerHTML)return;this.label.innerHTML=r.innerHTML}}}const Bx=n=>{const{overflowY:e}=getComputedStyle(n,null);return e!=="visible"&&e!=="clip"};class Kc{constructor(e,t){this.quill=e,this.boundsContainer=t||document.body,this.root=e.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,Bx(this.quill.root)&&this.quill.root.addEventListener("scroll",()=>{this.root.style.marginTop=`${-1*this.quill.root.scrollTop}px`}),this.hide()}hide(){this.root.classList.add("ql-hidden")}position(e){const t=e.left+e.width/2-this.root.offsetWidth/2,r=e.bottom+this.quill.root.scrollTop;this.root.style.left=`${t}px`,this.root.style.top=`${r}px`,this.root.classList.remove("ql-flip");const s=this.boundsContainer.getBoundingClientRect(),l=this.root.getBoundingClientRect();let a=0;if(l.right>s.right&&(a=s.right-l.right,this.root.style.left=`${t+a}px`),l.left<s.left&&(a=s.left-l.left,this.root.style.left=`${t+a}px`),l.bottom>s.bottom){const c=l.bottom-l.top,o=e.bottom-e.top+c;this.root.style.top=`${r-o}px`,this.root.classList.add("ql-flip")}return a}show(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}const Px=[!1,"center","right","justify"],Fx=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],Mx=[!1,"serif","monospace"],Dx=["1","2","3",!1],Ux=["small",!1,"large","huge"];class Zr extends dr{constructor(e,t){super(e,t);const r=s=>{if(!document.body.contains(e.root)){document.body.removeEventListener("click",r);return}this.tooltip!=null&&!this.tooltip.root.contains(s.target)&&document.activeElement!==this.tooltip.textbox&&!this.quill.hasFocus()&&this.tooltip.hide(),this.pickers!=null&&this.pickers.forEach(l=>{l.container.contains(s.target)||l.close()})};e.emitter.listenDOM("click",document.body,r)}addModule(e){const t=super.addModule(e);return e==="toolbar"&&this.extendToolbar(t),t}buildButtons(e,t){Array.from(e).forEach(r=>{(r.getAttribute("class")||"").split(/\s+/).forEach(l=>{if(l.startsWith("ql-")&&(l=l.slice(3),t[l]!=null))if(l==="direction")r.innerHTML=t[l][""]+t[l].rtl;else if(typeof t[l]=="string")r.innerHTML=t[l];else{const a=r.value||"";a!=null&&t[l][a]&&(r.innerHTML=t[l][a])}})})}buildPickers(e,t){this.pickers=Array.from(e).map(s=>{if(s.classList.contains("ql-align")&&(s.querySelector("option")==null&&Jr(s,Px),typeof t.align=="object"))return new Wc(s,t.align);if(s.classList.contains("ql-background")||s.classList.contains("ql-color")){const l=s.classList.contains("ql-background")?"background":"color";return s.querySelector("option")==null&&Jr(s,Fx,l==="background"?"#ffffff":"#000000"),new Gc(s,t[l])}return s.querySelector("option")==null&&(s.classList.contains("ql-font")?Jr(s,Mx):s.classList.contains("ql-header")?Jr(s,Dx):s.classList.contains("ql-size")&&Jr(s,Ux)),new Ks(s)});const r=()=>{this.pickers.forEach(s=>{s.update()})};this.quill.on(Se.events.EDITOR_CHANGE,r)}}Zr.DEFAULTS=Sn({},dr.DEFAULTS,{modules:{toolbar:{handlers:{formula(){this.quill.theme.tooltip.edit("formula")},image(){let n=this.container.querySelector("input.ql-image[type=file]");n==null&&(n=document.createElement("input"),n.setAttribute("type","file"),n.setAttribute("accept",this.quill.uploader.options.mimetypes.join(", ")),n.classList.add("ql-image"),n.addEventListener("change",()=>{const e=this.quill.getSelection(!0);this.quill.uploader.upload(e,n.files),n.value=""}),this.container.appendChild(n)),n.click()},video(){this.quill.theme.tooltip.edit("video")}}}}});class Xc extends Kc{constructor(e,t){super(e,t),this.textbox=this.root.querySelector('input[type="text"]'),this.listen()}listen(){this.textbox.addEventListener("keydown",e=>{e.key==="Enter"?(this.save(),e.preventDefault()):e.key==="Escape"&&(this.cancel(),e.preventDefault())})}cancel(){this.hide(),this.restoreFocus()}edit(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),this.textbox==null)return;t!=null?this.textbox.value=t:e!==this.root.getAttribute("data-mode")&&(this.textbox.value="");const r=this.quill.getBounds(this.quill.selection.savedRange);r!=null&&this.position(r),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute(`data-${e}`)||""),this.root.setAttribute("data-mode",e)}restoreFocus(){this.quill.focus({preventScroll:!0})}save(){let{value:e}=this.textbox;switch(this.root.getAttribute("data-mode")){case"link":{const{scrollTop:t}=this.quill.root;this.linkRange?(this.quill.formatText(this.linkRange,"link",e,Se.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",e,Se.sources.USER)),this.quill.root.scrollTop=t;break}case"video":e=_x(e);case"formula":{if(!e)break;const t=this.quill.getSelection(!0);if(t!=null){const r=t.index+t.length;this.quill.insertEmbed(r,this.root.getAttribute("data-mode"),e,Se.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(r+1," ",Se.sources.USER),this.quill.setSelection(r+2,Se.sources.USER)}break}}this.textbox.value="",this.hide()}}function _x(n){let e=n.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||n.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return e?`${e[1]||"https"}://www.youtube.com/embed/${e[2]}?showinfo=0`:(e=n.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?`${e[1]||"https"}://player.vimeo.com/video/${e[2]}/`:n}function Jr(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;e.forEach(r=>{const s=document.createElement("option");r===t?s.setAttribute("selected","selected"):s.setAttribute("value",String(r)),n.appendChild(s)})}const Vx=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]];class Yc extends Xc{constructor(e,t){super(e,t),this.quill.on(Se.events.EDITOR_CHANGE,(r,s,l,a)=>{if(r===Se.events.SELECTION_CHANGE)if(s!=null&&s.length>0&&a===Se.sources.USER){this.show(),this.root.style.left="0px",this.root.style.width="",this.root.style.width=`${this.root.offsetWidth}px`;const c=this.quill.getLines(s.index,s.length);if(c.length===1){const o=this.quill.getBounds(s);o!=null&&this.position(o)}else{const o=c[c.length-1],u=this.quill.getIndex(o),d=Math.min(o.length()-1,s.index+s.length-u),h=this.quill.getBounds(new $n(u,d));h!=null&&this.position(h)}}else document.activeElement!==this.textbox&&this.quill.hasFocus()&&this.hide()})}listen(){super.listen(),this.root.querySelector(".ql-close").addEventListener("click",()=>{this.root.classList.remove("ql-editing")}),this.quill.on(Se.events.SCROLL_OPTIMIZE,()=>{setTimeout(()=>{if(this.root.classList.contains("ql-hidden"))return;const e=this.quill.getSelection();if(e!=null){const t=this.quill.getBounds(e);t!=null&&this.position(t)}},1)})}cancel(){this.show()}position(e){const t=super.position(e),r=this.root.querySelector(".ql-tooltip-arrow");return r.style.marginLeft="",t!==0&&(r.style.marginLeft=`${-1*t-r.offsetWidth/2}px`),t}}Ee(Yc,"TEMPLATE",['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""));class Zc extends Zr{constructor(e,t){t.modules.toolbar!=null&&t.modules.toolbar.container==null&&(t.modules.toolbar.container=Vx),super(e,t),this.quill.container.classList.add("ql-bubble")}extendToolbar(e){this.tooltip=new Yc(this.quill,this.options.bounds),e.container!=null&&(this.tooltip.root.appendChild(e.container),this.buildButtons(e.container.querySelectorAll("button"),Yr),this.buildPickers(e.container.querySelectorAll("select"),Yr))}}Zc.DEFAULTS=Sn({},Zr.DEFAULTS,{modules:{toolbar:{handlers:{link(n){n?this.quill.theme.tooltip.edit():this.quill.format("link",!1,le.sources.USER)}}}}});const jx=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];class Jc extends Xc{constructor(){super(...arguments);Ee(this,"preview",this.root.querySelector("a.ql-preview"))}listen(){super.listen(),this.root.querySelector("a.ql-action").addEventListener("click",t=>{this.root.classList.contains("ql-editing")?this.save():this.edit("link",this.preview.textContent),t.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",t=>{if(this.linkRange!=null){const r=this.linkRange;this.restoreFocus(),this.quill.formatText(r,"link",!1,Se.sources.USER),delete this.linkRange}t.preventDefault(),this.hide()}),this.quill.on(Se.events.SELECTION_CHANGE,(t,r,s)=>{if(t!=null){if(t.length===0&&s===Se.sources.USER){const[l,a]=this.quill.scroll.descendant(kn,t.index);if(l!=null){this.linkRange=new $n(t.index-a,l.length());const c=kn.formats(l.domNode);this.preview.textContent=c,this.preview.setAttribute("href",c),this.show();const o=this.quill.getBounds(this.linkRange);o!=null&&this.position(o);return}}else delete this.linkRange;this.hide()}})}show(){super.show(),this.root.removeAttribute("data-mode")}}Ee(Jc,"TEMPLATE",['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""));class Qc extends Zr{constructor(e,t){t.modules.toolbar!=null&&t.modules.toolbar.container==null&&(t.modules.toolbar.container=jx),super(e,t),this.quill.container.classList.add("ql-snow")}extendToolbar(e){e.container!=null&&(e.container.classList.add("ql-snow"),this.buildButtons(e.container.querySelectorAll("button"),Yr),this.buildPickers(e.container.querySelectorAll("select"),Yr),this.tooltip=new Jc(this.quill,this.options.bounds),e.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"k",shortKey:!0},(t,r)=>{e.handlers.link.call(e,!r.format.link)}))}}Qc.DEFAULTS=Sn({},Zr.DEFAULTS,{modules:{toolbar:{handlers:{link(n){if(n){const e=this.quill.getSelection();if(e==null||e.length===0)return;let t=this.quill.getText(e);/^\S+@\S+\.\S+$/.test(t)&&t.indexOf("mailto:")!==0&&(t=`mailto:${t}`);const{tooltip:r}=this.quill.theme;r.edit("link",t)}else this.quill.format("link",!1,le.sources.USER)}}}}}),le.register({"attributors/attribute/direction":bc,"attributors/class/align":gc,"attributors/class/background":Ob,"attributors/class/color":Cb,"attributors/class/direction":xc,"attributors/class/font":Ac,"attributors/class/size":Tc,"attributors/style/align":yc,"attributors/style/background":fi,"attributors/style/color":di,"attributors/style/direction":Ec,"attributors/style/font":Sc,"attributors/style/size":Nc},!0),le.register({"formats/align":gc,"formats/direction":xc,"formats/indent":bx,"formats/background":fi,"formats/color":di,"formats/font":Ac,"formats/size":Tc,"formats/blockquote":xi,"formats/code-block":vt,"formats/header":Ei,"formats/list":Gr,"formats/bold":Wr,"formats/code":hi,"formats/italic":wi,"formats/link":kn,"formats/script":Ai,"formats/strike":Si,"formats/underline":Ti,"formats/formula":Gs,"formats/image":Ni,"formats/video":Ws,"modules/syntax":Vc,"modules/table":Ex,"modules/toolbar":Ci,"themes/bubble":Zc,"themes/snow":Qc,"ui/icons":Yr,"ui/picker":Ks,"ui/icon-picker":Wc,"ui/color-picker":Gc,"ui/tooltip":Kc},!0);const $x={name:"QuillEditor",props:{modelValue:{type:String,default:""},options:{type:Object,default:()=>({theme:"snow",placeholder:"Start typing...",modules:{toolbar:[[{font:[]},{size:[]}],["bold","italic","underline","strike"],[{color:[]},{background:[]}],[{script:"sub"},{script:"super"}],[{header:1},{header:2},"blockquote","code-block"],[{list:"ordered"},{list:"bullet"},{indent:"-1"},{indent:"+1"}],[{direction:"rtl"},{align:[]}],["link","image","video","formula"],["clean"]]}})}},emits:["update:modelValue"],setup(n,{emit:e}){const t=i.ref(null);let r=null;return i.onMounted(()=>{r=new le(t.value,n.options),r.root.innerHTML=n.modelValue,r.on("text-change",()=>{e("update:modelValue",r.root.innerHTML)})}),i.watch(()=>n.modelValue,s=>{r&&r.root.innerHTML!==s&&(r.root.innerHTML=s)}),i.onBeforeUnmount(()=>{r=null}),{editorContainer:t}}},qx={class:"q-editor"},zx={ref:"editorContainer"};function Hx(n,e,t,r,s,l){return i.openBlock(),i.createElementBlock("div",qx,[i.createElementVNode("div",zx,null,512)])}const Gx=Zn($x,[["render",Hx]]),Wx={class:"rounded-xl bg-gray-50 px-6 py-5"},Kx={key:0,class:"pb-5"},Xx={class:"text-lg font-semibold text-gray-900"},Yx={key:0,class:"text-sm text-gray-600"},Qr={__name:"Card",props:{title:{type:String,default:""},supporting_text:{type:String,default:""}},setup(n){return(e,t)=>(i.openBlock(),i.createElementBlock("div",Wx,[n.title?(i.openBlock(),i.createElementBlock("div",Kx,[i.createElementVNode("div",Xx,i.toDisplayString(n.title),1),n.supporting_text?(i.openBlock(),i.createElementBlock("div",Yx,i.toDisplayString(n.supporting_text),1)):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),i.renderSlot(e.$slots,"default")]))}},Zx={class:"item-edit"},Jx={class:"flex items-start gap-4 px-6 pt-4 h-full min-h-[90vh]"},Qx={class:"flex flex-1 flex-col gap-4"},eE={class:"flex flex-col gap-8"},tE={class:"flex flex-col gap-8"},nE={class:"flex flex-col gap-4"},rE={class:"flex w-full max-w-[356px] flex-col gap-4"},sE={class:"flex justify-between space-x-xsSpace pt-xsSpace gap-4 sticky bottom-0 w-full bg-gray-200 py-2 px-6"},oE={__name:"ItemEdit",props:{item:{type:Object,required:!0},saveEndpoint:{type:String,required:!1},cancelEndpoint:{type:String,required:!1},sites:{type:Object,required:!0}},emits:["update"],setup(n,{emit:e}){const t=i.inject("VFileUpload",So),r=e,s=n,l=i.ref({public:s.item.public,title:s.item.title,description:s.item.description,featured_image:s.item.featured_image});s.item.hasOwnProperty("primary_button")&&(l.value.primary_button=s.item.primary_button),s.item.hasOwnProperty("secondary_button")&&(l.value.secondary_button=s.item.secondary_button);const a=()=>{r("update",l.value),s.saveEndpoint&&tt.post(s.saveEndpoint,l.value).then(()=>{s.cancelEndpoint&&(window.location.href=s.cancelEndpoint)})},c=()=>{r("close",l.value),s.cancelEndpoint&&(window.location.href=s.cancelEndpoint)},o=i.computed(()=>{var h;return((h=l.value.description)==null?void 0:h.replace(/<[^>]*>/g," ").trim()).split(/\s+/).filter(f=>f.length>0).length});return(u,d)=>{var h,f,m,p;return i.openBlock(),i.createElementBlock("div",Zx,[i.createElementVNode("div",Jx,[i.createElementVNode("div",Qx,[i.createVNode(Qr,{title:"Description"},{default:i.withCtx(()=>[i.createElementVNode("div",eE,[i.createVNode(_t,{"is-vertical":"",field:"title","label-text":"Title *",class:"w-full",value:l.value.title,limit:51},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":d[0]||(d[0]=y=>l.value.title=y),name:"title",type:"text",placeholder:"Title",maxlength:51,class:"border-1 border-solid border-gray-300 rounded-lg bg-white w-full"},null,512),[[i.vModelText,l.value.title]])]),_:1},8,["value"]),i.createVNode(_t,{"is-vertical":"",field:"description","label-text":"Description *",class:"w-full mb-4",value:o.value,"show-count":!0},{default:i.withCtx(()=>[i.createVNode(Gx,{modelValue:l.value.description,"onUpdate:modelValue":d[1]||(d[1]=y=>l.value.description=y)},null,8,["modelValue"])]),_:1},8,["value"])])]),_:1}),l.value.hasOwnProperty("primary_button")?(i.openBlock(),i.createBlock(Qr,{key:0,title:((f=(h=l.value)==null?void 0:h.primary_button)==null?void 0:f.name)??"Primary button"},{default:i.withCtx(()=>[i.createElementVNode("div",tE,[i.createVNode(Cr,{name:"show",modelValue:l.value.primary_button.show,"onUpdate:modelValue":d[2]||(d[2]=y=>l.value.primary_button.show=y),title:"Show Button"},null,8,["modelValue"]),i.createVNode(_t,{"is-vertical":"",field:"primary_button.label","label-text":"Button Label *",class:"w-full mb-4",value:l.value.primary_button.label,limit:20},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":d[3]||(d[3]=y=>l.value.primary_button.label=y),name:"primary_button.label",type:"text",placeholder:"Label",maxlength:20,class:"border-1 border-solid border-gray-300 rounded-lg bg-white w-full"},null,512),[[i.vModelText,l.value.primary_button.label]])]),_:1},8,["value"]),i.createVNode(Or,{name:"primary",type:l.value.primary_button.type,"onUpdate:type":d[4]||(d[4]=y=>l.value.primary_button.type=y),url:l.value.primary_button.url,"onUpdate:url":d[5]||(d[5]=y=>l.value.primary_button.url=y),openInNewTab:l.value.primary_button.open_in_new_tab,"onUpdate:openInNewTab":d[6]||(d[6]=y=>l.value.primary_button.open_in_new_tab=y),sites:n.sites},null,8,["type","url","openInNewTab","sites"])])]),_:1},8,["title"])):i.createCommentVNode("",!0),l.value.hasOwnProperty("secondary_button")?(i.openBlock(),i.createBlock(Qr,{key:1,title:((p=(m=l.value)==null?void 0:m.secondary_button)==null?void 0:p.name)??"Secondary button"},{default:i.withCtx(()=>[i.createElementVNode("div",nE,[i.createVNode(Cr,{name:"show",modelValue:l.value.secondary_button.show,"onUpdate:modelValue":d[7]||(d[7]=y=>l.value.secondary_button.show=y),title:"Show Button"},null,8,["modelValue"]),i.createVNode(_t,{"is-vertical":"",field:"secondary_button.label","label-text":"Button Label *",class:"w-full mb-4",value:l.value.secondary_button.label,limit:20},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":d[8]||(d[8]=y=>l.value.secondary_button.label=y),name:"secondary_button.label",type:"text",placeholder:"Label",maxlength:20,class:"border-1 border-solid border-gray-300 rounded-lg bg-white w-full"},null,512),[[i.vModelText,l.value.secondary_button.label]])]),_:1},8,["value"]),i.createVNode(Or,{name:"secondary",type:l.value.secondary_button.type,"onUpdate:type":d[9]||(d[9]=y=>l.value.secondary_button.type=y),url:l.value.secondary_button.url,"onUpdate:url":d[10]||(d[10]=y=>l.value.secondary_button.url=y),openInNewTab:l.value.secondary_button.open_in_new_tab,"onUpdate:openInNewTab":d[11]||(d[11]=y=>l.value.secondary_button.open_in_new_tab=y),sites:n.sites},null,8,["type","url","openInNewTab","sites"])])]),_:1},8,["title"])):i.createCommentVNode("",!0)]),i.createElementVNode("div",rE,[i.createVNode(Qr,{title:"Visibility",supporting_text:"Toggle off if you'd like to hide this item"},{default:i.withCtx(()=>[i.createVNode(Cr,{modelValue:l.value.public,"onUpdate:modelValue":d[12]||(d[12]=y=>l.value.public=y),name:"public",label:"Public"},null,8,["modelValue"])]),_:1}),i.createVNode(Qr,{title:"Featured Image",supporting_text:"Recommended dimension: 1200*1060px"},{default:i.withCtx(()=>[i.createVNode(i.unref(t),{name:"image",height:"h-[200px]",modelValue:l.value.featured_image,"onUpdate:modelValue":d[13]||(d[13]=y=>l.value.featured_image=y)},null,8,["modelValue"])]),_:1})])]),i.renderSlot(u.$slots,"default",{},()=>[i.createElementVNode("div",sE,[i.createElementVNode("a",{onClick:c,class:"w-[200px] py-[9px] bg-white rounded-full border border-gray-300 shadow-xs text-md font-semibold hover:bg-gray-100 text-gray-700 text-center cursor-pointer"}," Cancel "),i.createElementVNode("a",{onClick:i.withModifiers(a,["prevent"]),class:"w-full py-[9px] rounded-full shadow-xs text-md font-semibold text-white bg-brand-600 hover:bg-brand-700 border border-brand-600 text-center cursor-pointer"},"Save changes")])])])}}};Ye.ItemEdit=oE,Ye.PageBuilder=yp,Ye.PageRender=Ig,Object.defineProperty(Ye,Symbol.toStringTag,{value:"Module"})});