@dcodegroup-au/page-builder 0.1.2 → 0.1.5

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,u){typeof exports=="object"&&typeof module<"u"?u(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],u):(Ye=typeof globalThis<"u"?globalThis:Ye||self,u(Ye.PageBuilder={},Ye.Vue))})(this,function(Ye,u){"use strict";var mb=Object.defineProperty;var gb=(Ye,u,Xn)=>u in Ye?mb(Ye,u,{enumerable:!0,configurable:!0,writable:!0,value:Xn}):Ye[u]=Xn;var Ee=(Ye,u,Xn)=>gb(Ye,typeof u!="symbol"?u+"":u,Xn);const Xn={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function tu(n,e){return u.openBlock(),u.createElementBlock("svg",Xn,e[0]||(e[0]=[u.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m9 18 6-6-6-6"},null,-1)]))}const Uo={render:tu},nu={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function ru(n,e){return u.openBlock(),u.createElementBlock("svg",nu,e[0]||(e[0]=[u.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m6 9 6 6 6-6"},null,-1)]))}const su={render:ru},es=(n,e)=>{const t=n.__vccOpts||n;for(const[r,s]of e)t[r]=s;return t},iu={};function ou(n,e){return e[0]||(e[0]=u.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 au=es(iu,[["render",ou]]),lu={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function cu(n,e){return u.openBlock(),u.createElementBlock("svg",lu,e[0]||(e[0]=[u.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 5v14m-7-7h14"},null,-1)]))}const jo={render:cu},Qs={data:{required:!0,type:Object},sites:{required:!0,type:Array}};function uu(n){return n.charAt(0).toUpperCase()+n.slice(1)}function Js(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 ei(n,e=!0){if(!n)return"";const t=n.split("_").pop();return e?uu(t):t}function du(n={}){return{title:"New slide",description:"New description",public:!1,featured_image:"",primary_button:{show:!1,label:"",type:"site-content",url:"",is_new_tab:!1,...n.primary_button||{}},secondary_button:{show:!1,label:"",type:"site-content",url:"",is_new_tab:!1,...n.secondary_button||{}},...n}}function fu(n={}){return{title:"New link",url:"",open_in_new_tab:!0,type:"site-content",...n||{}}}const hu={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function pu(n,e){return u.openBlock(),u.createElementBlock("svg",hu,e[0]||(e[0]=[u.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 mu={render:pu},gu={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function vu(n,e){return u.openBlock(),u.createElementBlock("svg",gu,e[0]||(e[0]=[u.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 $o={render:vu},yu={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function bu(n,e){return u.openBlock(),u.createElementBlock("svg",yu,e[0]||(e[0]=[u.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 xu={render:bu},Eu={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)}},Au={class:"relative z-50"},wu={key:0,class:"absolute -left-60 top-6 w-[240px] rounded-lg border border-gray-200 bg-white text-sm"},Vo=Object.assign({directives:{clickOutside:Eu}},{__name:"ActionMenu",props:{enableEdit:{type:Boolean,default:!1}},emits:["removeItem"],setup(n,{emit:e}){const t=u.ref(!1),r=e,s=()=>{t.value&&(t.value=!1)},a=()=>{r("removeItem"),t.value=!1},o=()=>{r("editItem"),t.value=!1};return(l,i)=>{const c=u.resolveDirective("click-outside");return u.withDirectives((u.openBlock(),u.createElementBlock("div",Au,[u.createElementVNode("div",{class:"cursor-pointer text-gray-600 rounded-full hover:bg-gray-50 p-2.5 block",onClick:i[0]||(i[0]=d=>t.value=!t.value)},[u.createVNode(u.unref(mu),{class:"w-5"})]),t.value?(u.openBlock(),u.createElementBlock("div",wu,[n.enableEdit?(u.openBlock(),u.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:o},[u.createVNode(u.unref(xu),{class:"w-4 text-gray-500"}),i[1]||(i[1]=u.createElementVNode("span",{class:"font-medium"}," Edit ",-1))])):u.createCommentVNode("",!0),u.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:a},[u.createVNode(u.unref($o),{class:"w-4 text-gray-500"}),i[2]||(i[2]=u.createElementVNode("span",{class:"font-medium"}," Delete ",-1))])])):u.createCommentVNode("",!0)])),[[c,s]])}}}),Su={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function Tu(n,e){return u.openBlock(),u.createElementBlock("svg",Su,e[0]||(e[0]=[u.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M18 6 6 18M6 6l12 12"},null,-1)]))}const Nu={render:Tu},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"},Cu={class:"p-6 flex justify-between flex-col"},Ru={class:"flex justify-between"},Iu={class:"p-2 rounded-full border-8 border-error-50 bg-error-100 text-error-600"},Lu={class:"text-lg font-semibold text-gray-900 pb-2 pt-4"},ku={class:"text-sm text-gray-600 pb-4"},Bu={class:"flex justify-between space-x-xsSpace pt-xsSpace gap-4"},Pu=["textContent"],Fu=["textContent"],_o=es(u.defineComponent({__name:"VModal",props:{entity:{type:String,required:!0},callback:{type:Function,required:!1,default:()=>{}}},setup(n,{expose:e}){const t=n,r=u.ref(!1),s=u.reactive({cancelTitle:null,confirmTitle:null,scrollable:!0,data:null}),a=u.computed(()=>s.cancelTitle?s.cancelTitle:"Cancel"),o=u.computed(()=>s.confirmTitle?s.confirmTitle:"Delete"),l=d=>{r.value=!0,s.data=d},i=()=>{r.value=!1},c=async()=>{t.callback(s.data),r.value=!1};return e({open:l,close:i}),(d,h)=>(u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass([{"-open":r.value},"v-modal"])},[u.createVNode(u.Transition,{name:"fade"},{default:u.withCtx(()=>[r.value?(u.openBlock(),u.createElementBlock("div",Ou,[u.renderSlot(d.$slots,"default",{},()=>[u.createElementVNode("div",{class:u.normalizeClass(["relative min-h-[260px] overflow-y-auto flex",{"overflow-y-visible":!d.scrollable}])},[u.createElementVNode("div",Cu,[u.createElementVNode("div",null,[u.createElementVNode("div",Ru,[u.createElementVNode("span",Iu,[u.createVNode(u.unref($o),{class:"w-6 h-6"})]),u.createVNode(u.unref(Nu),{class:"w-6 h-6 text-gray-400 hover:bg-gray-100 rounded-md cursor-pointer",onClick:i})]),u.createElementVNode("h4",Lu,"Delete this "+u.toDisplayString(n.entity)+"?",1),u.createElementVNode("p",ku,"Do you want to delete this "+u.toDisplayString(n.entity)+"? This action cannot be undone.",1)]),u.createElementVNode("div",Bu,[u.createElementVNode("a",{onClick:i,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:u.toDisplayString(a.value)},null,8,Pu),u.createElementVNode("a",{onClick:u.withModifiers(c,["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:u.toDisplayString(o.value)},null,8,Fu)])])],2)],!0)])):u.createCommentVNode("",!0)]),_:3})],2))}}),[["__scopeId","data-v-0ca1257f"]]),Mu={class:"flex justify-between pb-2"},Du={class:"text-lg font-semibold text-gray-900"},Uu={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"},Vu={class:"flex justify-between"},_u={class:"flex flex-col gap-1"},qu={class:"font-semibold text-gray-900"},zu={class:"text-sm text-gray-600"},Hu=["disabled"],Gu={class:"flex flex-col gap-3"},Wu=["onClick"],Ku=["onClick"],Xu={class:"text-xs text-gray-600"},Yu={class:"text-sm font-medium text-gray-900"},qo={__name:"VItems",props:{...Qs},emits:["update"],setup(n,{emit:e}){const t=e,r=n,s=u.ref(r.data.component),a=s.value.type,o=u.ref(null),l=u.ref(JSON.parse(window.localStorage.getItem("openSlideStates")));l.value||(l.value={},s.value.data.forEach((g,p)=>{l.value[p]=!1}),window.localStorage.setItem("openSlideStates",JSON.stringify(l.value)));const i=g=>{Object.keys(l.value).forEach(p=>{l.value[p]=!1}),l.value[g]=!l.value[g],window.localStorage.setItem("openSlideStates",JSON.stringify(l.value))},c=()=>{s.value.data.push(du()),t("update",!1)},d=g=>{var p;(p=o==null?void 0:o.value)==null||p.open(g)},h=g=>{s.value.data.splice(g,1),t("update",!1)},f=(g,p)=>{var v,x,T,S;g.hasOwnProperty("edit_url")&&(window.location.href=g.edit_url),window.location.href=`/admin/pages/${(x=(v=r==null?void 0:r.data)==null?void 0:v.page)==null?void 0:x.id}/sections/${(T=r==null?void 0:r.data)==null?void 0:T.sectionIndex}/components/${(S=r==null?void 0:r.data)==null?void 0:S.componentIndex}/slides/${p}`};return(g,p)=>(u.openBlock(),u.createElementBlock(u.Fragment,null,[u.createElementVNode("div",Mu,[u.createElementVNode("p",Du,u.toDisplayString(s.value.name),1)]),u.createElementVNode("div",Uu,[u.createElementVNode("div",ju,u.toDisplayString(s.value.supportive_text),1),u.createElementVNode("div",$u,[u.createElementVNode("div",Vu,[u.createElementVNode("div",_u,[u.createElementVNode("div",qu,u.toDisplayString(u.unref(ei)(u.unref(a))),1),u.createElementVNode("div",zu,"This "+u.toDisplayString(u.unref(Js)(u.unref(a)))+" can contain up to "+u.toDisplayString(s.value.max_items)+" "+u.toDisplayString(u.unref(ei)(u.unref(a),!1)),1)]),u.createElementVNode("div",null,[u.createElementVNode("button",{disabled:s.value.data.length>=s.value.max_items,onClick:c,type:"button",class:u.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}])},[u.createVNode(u.unref(jo),{class:"h-5 w-5"}),p[0]||(p[0]=u.createElementVNode("span",null,"Add",-1))],10,Hu)])]),u.createElementVNode("div",Gu,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(s.value.data,(v,x)=>(u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(["flex items-center gap-4 px-2 py-1 hover:bg-gray-100 rounded-lg",{"bg-gray-200 hover:bg-gray-200":l.value[x]}])},[u.createElementVNode("div",{class:"flex flex-1 items-center justify-between relative",onClick:T=>{i(x)}},[u.createElementVNode("div",{class:"flex flex-1 flex-col cursor-pointer",onClick:T=>f(v,x)},[u.createElementVNode("div",Xu,u.toDisplayString(u.unref(Js)(u.unref(ei)(u.unref(a))))+" #"+u.toDisplayString(x+1),1),u.createElementVNode("div",Yu,u.toDisplayString(v.title),1)],8,Ku),u.createVNode(Vo,{onRemoveItem:T=>d(x),"enable-edit":!0,onEditItem:T=>f(v,x)},null,8,["onRemoveItem","onEditItem"])],8,Wu)],2))),256))])])]),u.createVNode(_o,{ref_key:"modalRef",ref:o,entity:u.unref(Js)(u.unref(a)),callback:h},null,8,["entity"])],64))}},Zu=["for"],Qu={key:0,class:"v-field-label inline-block mb-2"},Ju={key:0},ed={key:1,class:"absolute right-0 -bottom-6 text-sm text-gray-600 font-normal"},td={key:2,class:"absolute left-0 -bottom-6 text-sm text-gray-600 font-normal"},xn={__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 u.openBlock(),u.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?(u.openBlock(),u.createElementBlock("span",Qu,[e.$slots.label?u.renderSlot(e.$slots,"label",{key:0}):(u.openBlock(),u.createElementBlock(u.Fragment,{key:1},[u.createTextVNode(u.toDisplayString(n.labelText)+" ",1),n.isRequired?(u.openBlock(),u.createElementBlock("span",Ju," *")):u.createCommentVNode("",!0)],64))])):u.createCommentVNode("",!0),u.renderSlot(e.$slots,"default"),n.limit?(u.openBlock(),u.createElementBlock("span",ed,u.toDisplayString((r=n.value)==null?void 0:r.length)+"/"+u.toDisplayString(n.limit)+" characters ",1)):u.createCommentVNode("",!0),n.showCount?(u.openBlock(),u.createElementBlock("span",td," Word count: "+u.toDisplayString(n.value),1)):u.createCommentVNode("",!0)],8,Zu)}}},nd={class:"flex items-center gap-2"},rd=["aria-checked"],sd={key:0,class:"text-sm text-gray-700 font-medium"},ts={__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=u.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})),a=()=>{t.isDisabled||r("update:modelValue",!t.modelValue)};return(o,l)=>(u.openBlock(),u.createElementBlock("div",nd,[u.createElementVNode("button",{type:"button",class:u.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:a},[u.createElementVNode("span",{"aria-hidden":"true",class:u.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,rd),n.title?(u.openBlock(),u.createElementBlock("span",sd,u.toDisplayString(n.title),1)):u.createCommentVNode("",!0)]))}},id={class:"flex flex-col gap-2"},od=["value"],ad={__name:"SiteContent",props:u.mergeModels({sites:{type:Object,required:!0},errors:{type:Object,required:!1,default:()=>({})}},{url:{},urlModifiers:{}}),emits:["update:url"],setup(n){const e=u.useModel(n,"url");return(t,r)=>(u.openBlock(),u.createElementBlock("div",id,[r[1]||(r[1]=u.createElementVNode("label",{class:"text-sm font-medium text-gray-700"},"Select a page from the site*",-1)),u.withDirectives(u.createElementVNode("select",{"onUpdate:modelValue":r[0]||(r[0]=s=>e.value=s),name:"url"},[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(n.sites,s=>(u.openBlock(),u.createElementBlock("option",{value:s.href},u.toDisplayString(s.name),9,od))),256))],512),[[u.vModelSelect,e.value]])]))}},ld={__name:"ExternalPage",props:{url:{},urlModifiers:{}},emits:["update:url"],setup(n){const e=u.useModel(n,"url");return(t,r)=>(u.openBlock(),u.createBlock(xn,{"is-vertical":"",field:"title","label-text":"URL *",class:"w-full"},{default:u.withCtx(()=>[u.withDirectives(u.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),[[u.vModelText,e.value]])]),_:1}))}},cd={class:"flex flex-col gap-5"},ud={key:0,class:"text-sm text-gray-700 font-medium py-2"},dd={class:"text-sm flex items-center gap-6 font-medium text-gray-700"},fd={class:"flex items-center gap-2 cursor-pointer"},hd=["name","value","disabled"],pd={class:"flex flex-col gap-2"},md=["value"],gd={class:"flex items-center gap-2"},ti={__name:"LinkedTo",props:u.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=u.useModel(n,"type"),t=u.useModel(n,"url"),r=u.useModel(n,"openInNewTab"),s=o=>o.split("-").map(l=>l.charAt(0).toUpperCase()+l.slice(1)).join(" "),a=o=>({"site-content":ad,"external-page":ld})[o]||null;return(o,l)=>(u.openBlock(),u.createElementBlock("div",cd,[u.createElementVNode("div",null,[n.label?(u.openBlock(),u.createElementBlock("p",ud,u.toDisplayString(n.label),1)):u.createCommentVNode("",!0),u.createElementVNode("div",dd,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(n.options,i=>(u.openBlock(),u.createElementBlock("label",fd,[u.withDirectives(u.createElementVNode("input",{name:n.name,type:"radio",value:i,"onUpdate:modelValue":l[0]||(l[0]=c=>e.value=c),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:i==="form"},null,8,hd),[[u.vModelRadio,e.value]]),u.createElementVNode("span",null,u.toDisplayString(s(i)),1)]))),256))])]),u.createElementVNode("div",pd,[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(a(e.value)),{url:t.value,"onUpdate:url":l[1]||(l[1]=i=>t.value=i),sites:n.sites},null,40,["url","sites"])),u.createElementVNode("input",{type:"hidden",name:"url",value:t.value},null,8,md)]),u.createElementVNode("div",gd,[u.createVNode(ts,{class:"mb-1",name:"open_in_new_tab",modelValue:r.value,"onUpdate:modelValue":l[2]||(l[2]=i=>r.value=i),title:"Open in a new tab"},null,8,["modelValue"])])]))}},vd={class:"flex justify-between pb-2"},yd={class:"flex justify-between w-full py-1"},bd={class:"text-lg font-semibold text-gray-900"},xd={class:"text-sm text-gray-600 mt-1"},Ed={class:"flex flex-col gap-3"},Ad={class:"flex items-center justify-between"},wd={class:"text-lg font-semibold text-gray-900"},Sd={class:"relative flex items-end"},Td={class:"flex flex-col gap-6"},Nd={class:"flex flex-col gap-1.5"},Od=["onUpdate:modelValue"],zo={__name:"VLinks",props:{...Qs},emits:["update"],setup(n,{emit:e}){const t=e,r=n,s=u.ref(r.data.component),a=u.ref(null),o=u.ref(null),l=u.ref(null);function i(){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(fu()),u.nextTick(()=>{o.value&&o.value.scrollIntoView({behavior:"smooth"})}),t("update",!1))}const c=h=>{var f;l.value=h,(f=a==null?void 0:a.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 g;return u.openBlock(),u.createElementBlock(u.Fragment,null,[u.createElementVNode("div",vd,[u.createElementVNode("div",yd,[u.createElementVNode("div",null,[u.createElementVNode("p",bd,u.toDisplayString(s.value.name),1),u.createElementVNode("p",xd,u.toDisplayString(s.value.supportive_text),1)]),u.createElementVNode("div",null,[u.createElementVNode("a",{onClick:i,class:u.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":((g=s.value.data)==null?void 0:g.length)>=s.value.max_items}])},[u.createVNode(u.unref(jo),{class:"h-5 w-5"}),f[0]||(f[0]=u.createElementVNode("span",null,"Add",-1))],2)])])]),u.createElementVNode("div",Ed,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(s.value.data,(p,v)=>(u.openBlock(),u.createElementBlock("div",{class:"flex flex-col gap-4 rounded-xl px-6 py-4 bg-gray-200",key:v,ref_for:!0,ref:v===s.value.data.length-1?x=>o.value=x:null},[u.createElementVNode("div",Ad,[u.createElementVNode("div",wd," Link #"+u.toDisplayString(v+1),1),u.createElementVNode("div",Sd,[u.createVNode(Vo,{onRemoveItem:x=>c(v)},null,8,["onRemoveItem"])])]),u.createElementVNode("div",Td,[u.createElementVNode("div",Nd,[u.createVNode(xn,{"is-vertical":"",field:"title","label-text":"Title *",class:"w-full mb-4",value:p.title,limit:20},{default:u.withCtx(()=>[u.withDirectives(u.createElementVNode("input",{"onUpdate:modelValue":x=>p.title=x,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),[[u.vModelText,p.title]])]),_:2},1032,["value"]),u.createVNode(ti,{label:"Linked to",name:`link_${v+1}`,type:p.type,"onUpdate:type":x=>p.type=x,url:p.url,"onUpdate:url":x=>p.url=x,openInNewTab:p.open_in_new_tab,"onUpdate:openInNewTab":x=>p.open_in_new_tab=x,sites:h.sites},null,8,["name","type","onUpdate:type","url","onUpdate:url","openInNewTab","onUpdate:openInNewTab","sites"])])])]))),128))]),u.createVNode(_o,{ref_key:"modalRef",ref:a,entity:"link",callback:d},null,512)],64)}}},Cd={class:"flex flex-col gap-4"},Rd={class:"text-lg font-semibold text-gray-900 border-b border-gray-200 pb-4"},Id={__name:"VHeader",props:{...Qs},emits:["update"],setup(n,{emit:e}){const t=n,r=u.ref(t.data.component);return(s,a)=>(u.openBlock(),u.createElementBlock("div",Cd,[u.createElementVNode("p",Rd,u.toDisplayString(r.value.name),1),u.createVNode(xn,{"is-vertical":"",field:"title","label-text":"Title *",class:"w-full mb-4",value:r.value.title,limit:51},{default:u.withCtx(()=>[u.withDirectives(u.createElementVNode("input",{"onUpdate:modelValue":a[0]||(a[0]=o=>r.value.title=o),name:"title",type:"text",placeholder:"Title",maxlength:51,class:"border-1 border-solid border-gray-300 rounded-lg bg-white w-full"},null,512),[[u.vModelText,r.value.title]])]),_:1},8,["value"]),u.createVNode(xn,{"is-vertical":"",field:"supporting_text","label-text":"Supporting Text *",class:"w-full mb-4",value:r.value.supporting_text,limit:100},{default:u.withCtx(()=>[u.withDirectives(u.createElementVNode("input",{"onUpdate:modelValue":a[1]||(a[1]=o=>r.value.supporting_text=o),name:"supporting_text",type:"text",placeholder:"Supporting Text",maxlength:100,class:"border-1 border-solid border-gray-300 rounded-lg bg-white w-full"},null,512),[[u.vModelText,r.value.supporting_text]])]),_:1},8,["value"])]))}},Ld={class:"page-builder"},kd={class:"flex gap-4 px-6 overflow-auto"},Bd={class:"flex w-[356px] flex-col gap-2 pb-10"},Pd={class:"border-b border-gray-200 pb-2"},Fd=["onClick"],Md={class:"text-lg font-semibold text-brand-800"},Dd={class:"relative flex items-center gap-3"},Ud={class:"cursor-pointer"},jd={key:0,class:"flex flex-col gap-2"},$d=["onClick"],Vd={class:"flex flex-col"},_d={class:"text-sm font-medium text-gray-900"},qd={class:"flex items-center justify-between gap-3 px-[10px]"},zd={class:"flex h-full flex-1 flex-col rounded-xl bg-gray-50 px-6 py-5 mb-20"},Hd={class:"flex justify-between space-x-xsSpace pt-xsSpace gap-4 fixed bottom-0 w-full bg-gray-200 py-2 px-6"},Gd={__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=u.ref(JSON.parse(window.localStorage.getItem("pageBuilderOpenStates"))),a=u.ref(((f=r.modelValue)==null?void 0:f.sections)??[]);let o=u.ref(null);const l=u.ref({sliders:u.markRaw(qo),vertical_tabs:u.markRaw(qo),links:u.markRaw(zo),header:u.markRaw(Id),link_grid:u.markRaw(zo)});s.value||(s.value={},a.value.forEach((g,p)=>{s.value[p]=!0}),window.localStorage.setItem("pageBuilderOpenStates",JSON.stringify(s.value)));const i=(g,p,v)=>{o.value={page:r.modelValue,component:p,componentIndex:v,sectionIndex:g}},c=()=>{t("close",r.modelValue)},d=(g=!0)=>{t("save",{page:r.modelValue,redirect:g})},h=u.computed(()=>{var g,p,v,x;return(p=(g=o.value)==null?void 0:g.component)!=null&&p.type?l.value[(x=(v=o.value)==null?void 0:v.component)==null?void 0:x.type]:""});return(g,p)=>{var v,x;return u.openBlock(),u.createElementBlock("div",Ld,[u.createElementVNode("div",kd,[u.createElementVNode("div",Bd,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(n.modelValue.sections,(T,S)=>(u.openBlock(),u.createElementBlock("div",Pd,[u.createElementVNode("div",{onClick:I=>s.value[S]=!s.value[S],class:"flex cursor-pointer items-center justify-between px-2 py-4"},[u.createElementVNode("span",Md,u.toDisplayString(T.title),1),u.createElementVNode("div",Dd,[u.createElementVNode("div",Ud,[s.value[S]?(u.openBlock(),u.createBlock(u.unref(su),{key:1,class:"h-5 w-5"})):(u.openBlock(),u.createBlock(u.unref(Uo),{key:0,class:"h-5 w-5"}))])])],8,Fd),s.value[S]?(u.openBlock(),u.createElementBlock("div",jd,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(T.components,(I,F)=>{var M,z;return u.openBlock(),u.createElementBlock("div",{onClick:X=>i(S,I,F),class:u.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=u.unref(o))==null?void 0:M.sectionIndex)===S&&((z=u.unref(o))==null?void 0:z.componentIndex)===F}])},[u.createElementVNode("div",Vd,[p[0]||(p[0]=u.createElementVNode("div",{class:"text-xs text-gray-600"},"Sub-module",-1)),u.createElementVNode("div",_d,u.toDisplayString(I.name),1)]),u.createElementVNode("div",qd,[u.createVNode(u.unref(Uo),{class:"h-5 w-5"})])],10,$d)}),256))])):u.createCommentVNode("",!0)]))),256))]),u.createElementVNode("div",zd,[u.unref(o)?u.createCommentVNode("",!0):(u.openBlock(),u.createBlock(au,{key:0})),(u.openBlock(),u.createBlock(u.resolveDynamicComponent(h.value),{key:((v=u.unref(o))==null?void 0:v.sectionIndex)+((x=u.unref(o))==null?void 0:x.componentIndex),data:u.unref(o),sites:n.sites,onUpdate:d},null,40,["data","sites"]))])]),u.renderSlot(g.$slots,"default",{},()=>[u.createElementVNode("div",Hd,[u.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 "),u.createElementVNode("a",{onClick:u.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")])])])}}},Ho="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=",Wd={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function Kd(n,e){return u.openBlock(),u.createElementBlock("svg",Wd,e[0]||(e[0]=[u.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M7 17 17 7m0 0H7m10 0v10"},null,-1)]))}const ni={render:Kd};/**
1
+ (function(Ye,u){typeof exports=="object"&&typeof module<"u"?u(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],u):(Ye=typeof globalThis<"u"?globalThis:Ye||self,u(Ye.PageBuilder={},Ye.Vue))})(this,function(Ye,u){"use strict";var mb=Object.defineProperty;var gb=(Ye,u,Xn)=>u in Ye?mb(Ye,u,{enumerable:!0,configurable:!0,writable:!0,value:Xn}):Ye[u]=Xn;var Ee=(Ye,u,Xn)=>gb(Ye,typeof u!="symbol"?u+"":u,Xn);const Xn={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function tu(n,e){return u.openBlock(),u.createElementBlock("svg",Xn,e[0]||(e[0]=[u.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m9 18 6-6-6-6"},null,-1)]))}const Uo={render:tu},nu={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function ru(n,e){return u.openBlock(),u.createElementBlock("svg",nu,e[0]||(e[0]=[u.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m6 9 6 6 6-6"},null,-1)]))}const su={render:ru},Sr=(n,e)=>{const t=n.__vccOpts||n;for(const[r,s]of e)t[r]=s;return t},iu={};function ou(n,e){return e[0]||(e[0]=u.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 au=Sr(iu,[["render",ou]]),lu={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function cu(n,e){return u.openBlock(),u.createElementBlock("svg",lu,e[0]||(e[0]=[u.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 5v14m-7-7h14"},null,-1)]))}const jo={render:cu},Qs={data:{required:!0,type:Object},sites:{required:!0,type:Array}};function uu(n){return n.charAt(0).toUpperCase()+n.slice(1)}function Js(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 ei(n,e=!0){if(!n)return"";const t=n.split("_").pop();return e?uu(t):t}function du(n={}){return{title:"New slide",description:"New description",public:!1,featured_image:"",primary_button:{show:!1,label:"",type:"site-content",url:"",is_new_tab:!1,...n.primary_button||{}},secondary_button:{show:!1,label:"",type:"site-content",url:"",is_new_tab:!1,...n.secondary_button||{}},...n}}function fu(n={}){return{title:"New link",url:"",open_in_new_tab:!0,type:"site-content",...n||{}}}const hu={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function pu(n,e){return u.openBlock(),u.createElementBlock("svg",hu,e[0]||(e[0]=[u.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 mu={render:pu},gu={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function vu(n,e){return u.openBlock(),u.createElementBlock("svg",gu,e[0]||(e[0]=[u.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 $o={render:vu},yu={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function bu(n,e){return u.openBlock(),u.createElementBlock("svg",yu,e[0]||(e[0]=[u.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 xu={render:bu},Eu={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)}},Au={class:"relative z-50"},wu={key:0,class:"absolute -left-60 top-6 w-[240px] rounded-lg border border-gray-200 bg-white text-sm"},Vo=Object.assign({directives:{clickOutside:Eu}},{__name:"ActionMenu",props:{enableEdit:{type:Boolean,default:!1}},emits:["removeItem"],setup(n,{emit:e}){const t=u.ref(!1),r=e,s=()=>{t.value&&(t.value=!1)},a=()=>{r("removeItem"),t.value=!1},o=()=>{r("editItem"),t.value=!1};return(c,i)=>{const l=u.resolveDirective("click-outside");return u.withDirectives((u.openBlock(),u.createElementBlock("div",Au,[u.createElementVNode("div",{class:"cursor-pointer text-gray-600 rounded-full hover:bg-gray-50 p-2.5 block",onClick:i[0]||(i[0]=d=>t.value=!t.value)},[u.createVNode(u.unref(mu),{class:"w-5"})]),t.value?(u.openBlock(),u.createElementBlock("div",wu,[n.enableEdit?(u.openBlock(),u.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:o},[u.createVNode(u.unref(xu),{class:"w-4 text-gray-500"}),i[1]||(i[1]=u.createElementVNode("span",{class:"font-medium"}," Edit ",-1))])):u.createCommentVNode("",!0),u.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:a},[u.createVNode(u.unref($o),{class:"w-4 text-gray-500"}),i[2]||(i[2]=u.createElementVNode("span",{class:"font-medium"}," Delete ",-1))])])):u.createCommentVNode("",!0)])),[[l,s]])}}}),Su={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function Tu(n,e){return u.openBlock(),u.createElementBlock("svg",Su,e[0]||(e[0]=[u.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M18 6 6 18M6 6l12 12"},null,-1)]))}const Nu={render:Tu},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"},Cu={class:"p-6 flex justify-between flex-col"},Ru={class:"flex justify-between"},Iu={class:"p-2 rounded-full border-8 border-error-50 bg-error-100 text-error-600"},Lu={class:"text-lg font-semibold text-gray-900 pb-2 pt-4"},ku={class:"text-sm text-gray-600 pb-4"},Bu={class:"flex justify-between space-x-xsSpace pt-xsSpace gap-4"},Pu=["textContent"],Fu=["textContent"],_o=Sr(u.defineComponent({__name:"VModal",props:{entity:{type:String,required:!0},callback:{type:Function,required:!1,default:()=>{}}},setup(n,{expose:e}){const t=n,r=u.ref(!1),s=u.reactive({cancelTitle:null,confirmTitle:null,scrollable:!0,data:null}),a=u.computed(()=>s.cancelTitle?s.cancelTitle:"Cancel"),o=u.computed(()=>s.confirmTitle?s.confirmTitle:"Delete"),c=d=>{r.value=!0,s.data=d},i=()=>{r.value=!1},l=async()=>{t.callback(s.data),r.value=!1};return e({open:c,close:i}),(d,h)=>(u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass([{"-open":r.value},"v-modal"])},[u.createVNode(u.Transition,{name:"fade"},{default:u.withCtx(()=>[r.value?(u.openBlock(),u.createElementBlock("div",Ou,[u.renderSlot(d.$slots,"default",{},()=>[u.createElementVNode("div",{class:u.normalizeClass(["relative min-h-[260px] overflow-y-auto flex",{"overflow-y-visible":!d.scrollable}])},[u.createElementVNode("div",Cu,[u.createElementVNode("div",null,[u.createElementVNode("div",Ru,[u.createElementVNode("span",Iu,[u.createVNode(u.unref($o),{class:"w-6 h-6"})]),u.createVNode(u.unref(Nu),{class:"w-6 h-6 text-gray-400 hover:bg-gray-100 rounded-md cursor-pointer",onClick:i})]),u.createElementVNode("h4",Lu,"Delete this "+u.toDisplayString(n.entity)+"?",1),u.createElementVNode("p",ku,"Do you want to delete this "+u.toDisplayString(n.entity)+"? This action cannot be undone.",1)]),u.createElementVNode("div",Bu,[u.createElementVNode("a",{onClick:i,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:u.toDisplayString(a.value)},null,8,Pu),u.createElementVNode("a",{onClick:u.withModifiers(l,["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:u.toDisplayString(o.value)},null,8,Fu)])])],2)],!0)])):u.createCommentVNode("",!0)]),_:3})],2))}}),[["__scopeId","data-v-0ca1257f"]]),Mu={class:"flex justify-between pb-2"},Du={class:"text-lg font-semibold text-gray-900"},Uu={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"},Vu={class:"flex justify-between"},_u={class:"flex flex-col gap-1"},qu={class:"font-semibold text-gray-900"},zu={class:"text-sm text-gray-600"},Hu=["disabled"],Gu={class:"flex flex-col gap-3"},Wu=["onClick"],Ku=["onClick"],Xu={class:"text-xs text-gray-600"},Yu={class:"text-sm font-medium text-gray-900"},qo={__name:"VItems",props:{...Qs},emits:["update"],setup(n,{emit:e}){const t=e,r=n,s=u.ref(r.data.component),a=s.value.type,o=u.ref(null),c=u.ref(JSON.parse(window.localStorage.getItem("openSlideStates")));c.value||(c.value={},s.value.data.forEach((g,p)=>{c.value[p]=!1}),window.localStorage.setItem("openSlideStates",JSON.stringify(c.value)));const i=g=>{Object.keys(c.value).forEach(p=>{c.value[p]=!1}),c.value[g]=!c.value[g],window.localStorage.setItem("openSlideStates",JSON.stringify(c.value))},l=()=>{s.value.data.push(du()),t("update",!1)},d=g=>{var p;(p=o==null?void 0:o.value)==null||p.open(g)},h=g=>{s.value.data.splice(g,1),t("update",!1)},f=(g,p)=>{var v,x,T,S;g.hasOwnProperty("edit_url")&&(window.location.href=g.edit_url),window.location.href=`/admin/pages/${(x=(v=r==null?void 0:r.data)==null?void 0:v.page)==null?void 0:x.id}/sections/${(T=r==null?void 0:r.data)==null?void 0:T.sectionIndex}/components/${(S=r==null?void 0:r.data)==null?void 0:S.componentIndex}/slides/${p}`};return(g,p)=>(u.openBlock(),u.createElementBlock(u.Fragment,null,[u.createElementVNode("div",Mu,[u.createElementVNode("p",Du,u.toDisplayString(s.value.name),1)]),u.createElementVNode("div",Uu,[u.createElementVNode("div",ju,u.toDisplayString(s.value.supportive_text),1),u.createElementVNode("div",$u,[u.createElementVNode("div",Vu,[u.createElementVNode("div",_u,[u.createElementVNode("div",qu,u.toDisplayString(u.unref(ei)(u.unref(a))),1),u.createElementVNode("div",zu,"This "+u.toDisplayString(u.unref(Js)(u.unref(a)))+" can contain up to "+u.toDisplayString(s.value.max_items)+" "+u.toDisplayString(u.unref(ei)(u.unref(a),!1)),1)]),u.createElementVNode("div",null,[u.createElementVNode("button",{disabled:s.value.data.length>=s.value.max_items,onClick:l,type:"button",class:u.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}])},[u.createVNode(u.unref(jo),{class:"h-5 w-5"}),p[0]||(p[0]=u.createElementVNode("span",null,"Add",-1))],10,Hu)])]),u.createElementVNode("div",Gu,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(s.value.data,(v,x)=>(u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(["flex items-center gap-4 px-2 py-1 hover:bg-gray-100 rounded-lg",{"bg-gray-200 hover:bg-gray-200":c.value[x]}])},[u.createElementVNode("div",{class:"flex flex-1 items-center justify-between relative",onClick:T=>{i(x)}},[u.createElementVNode("div",{class:"flex flex-1 flex-col cursor-pointer",onClick:T=>f(v,x)},[u.createElementVNode("div",Xu,u.toDisplayString(u.unref(Js)(u.unref(ei)(u.unref(a))))+" #"+u.toDisplayString(x+1),1),u.createElementVNode("div",Yu,u.toDisplayString(v.title),1)],8,Ku),u.createVNode(Vo,{onRemoveItem:T=>d(x),"enable-edit":!0,onEditItem:T=>f(v,x)},null,8,["onRemoveItem","onEditItem"])],8,Wu)],2))),256))])])]),u.createVNode(_o,{ref_key:"modalRef",ref:o,entity:u.unref(Js)(u.unref(a)),callback:h},null,8,["entity"])],64))}},Zu=["for"],Qu={key:0,class:"v-field-label inline-block mb-2"},Ju={key:0},ed={key:1,class:"absolute right-0 -bottom-6 text-sm text-gray-600 font-normal"},td={key:2,class:"absolute left-0 -bottom-6 text-sm text-gray-600 font-normal"},xn={__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 u.openBlock(),u.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?(u.openBlock(),u.createElementBlock("span",Qu,[e.$slots.label?u.renderSlot(e.$slots,"label",{key:0}):(u.openBlock(),u.createElementBlock(u.Fragment,{key:1},[u.createTextVNode(u.toDisplayString(n.labelText)+" ",1),n.isRequired?(u.openBlock(),u.createElementBlock("span",Ju," *")):u.createCommentVNode("",!0)],64))])):u.createCommentVNode("",!0),u.renderSlot(e.$slots,"default"),n.limit?(u.openBlock(),u.createElementBlock("span",ed,u.toDisplayString((r=n.value)==null?void 0:r.length)+"/"+u.toDisplayString(n.limit)+" characters ",1)):u.createCommentVNode("",!0),n.showCount?(u.openBlock(),u.createElementBlock("span",td," Word count: "+u.toDisplayString(n.value),1)):u.createCommentVNode("",!0)],8,Zu)}}},nd={class:"flex items-center gap-2"},rd=["aria-checked"],sd={key:0,class:"text-sm text-gray-700 font-medium"},ts={__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=u.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})),a=()=>{t.isDisabled||r("update:modelValue",!t.modelValue)};return(o,c)=>(u.openBlock(),u.createElementBlock("div",nd,[u.createElementVNode("button",{type:"button",class:u.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:a},[u.createElementVNode("span",{"aria-hidden":"true",class:u.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,rd),n.title?(u.openBlock(),u.createElementBlock("span",sd,u.toDisplayString(n.title),1)):u.createCommentVNode("",!0)]))}},id={class:"flex flex-col gap-2"},od=["value"],ad={__name:"SiteContent",props:u.mergeModels({sites:{type:Object,required:!0},errors:{type:Object,required:!1,default:()=>({})}},{url:{},urlModifiers:{}}),emits:["update:url"],setup(n){const e=u.useModel(n,"url");return(t,r)=>(u.openBlock(),u.createElementBlock("div",id,[r[1]||(r[1]=u.createElementVNode("label",{class:"text-sm font-medium text-gray-700"},"Select a page from the site*",-1)),u.withDirectives(u.createElementVNode("select",{"onUpdate:modelValue":r[0]||(r[0]=s=>e.value=s),name:"url"},[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(n.sites,s=>(u.openBlock(),u.createElementBlock("option",{value:s.href},u.toDisplayString(s.name),9,od))),256))],512),[[u.vModelSelect,e.value]])]))}},ld={__name:"ExternalPage",props:{url:{},urlModifiers:{}},emits:["update:url"],setup(n){const e=u.useModel(n,"url");return(t,r)=>(u.openBlock(),u.createBlock(xn,{"is-vertical":"",field:"title","label-text":"URL *",class:"w-full"},{default:u.withCtx(()=>[u.withDirectives(u.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),[[u.vModelText,e.value]])]),_:1}))}},cd={class:"flex flex-col gap-5"},ud={key:0,class:"text-sm text-gray-700 font-medium py-2"},dd={class:"text-sm flex items-center gap-6 font-medium text-gray-700"},fd={class:"flex items-center gap-2 cursor-pointer"},hd=["name","value","disabled"],pd={class:"flex flex-col gap-2"},md=["value"],gd={class:"flex items-center gap-2"},ti={__name:"LinkedTo",props:u.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=u.useModel(n,"type"),t=u.useModel(n,"url"),r=u.useModel(n,"openInNewTab"),s=o=>o.split("-").map(c=>c.charAt(0).toUpperCase()+c.slice(1)).join(" "),a=o=>({"site-content":ad,"external-page":ld})[o]||null;return(o,c)=>(u.openBlock(),u.createElementBlock("div",cd,[u.createElementVNode("div",null,[n.label?(u.openBlock(),u.createElementBlock("p",ud,u.toDisplayString(n.label),1)):u.createCommentVNode("",!0),u.createElementVNode("div",dd,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(n.options,i=>(u.openBlock(),u.createElementBlock("label",fd,[u.withDirectives(u.createElementVNode("input",{name:n.name,type:"radio",value:i,"onUpdate:modelValue":c[0]||(c[0]=l=>e.value=l),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:i==="form"},null,8,hd),[[u.vModelRadio,e.value]]),u.createElementVNode("span",null,u.toDisplayString(s(i)),1)]))),256))])]),u.createElementVNode("div",pd,[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(a(e.value)),{url:t.value,"onUpdate:url":c[1]||(c[1]=i=>t.value=i),sites:n.sites},null,40,["url","sites"])),u.createElementVNode("input",{type:"hidden",name:"url",value:t.value},null,8,md)]),u.createElementVNode("div",gd,[u.createVNode(ts,{class:"mb-1",name:"open_in_new_tab",modelValue:r.value,"onUpdate:modelValue":c[2]||(c[2]=i=>r.value=i),title:"Open in a new tab"},null,8,["modelValue"])])]))}},vd={class:"flex justify-between pb-2"},yd={class:"flex justify-between w-full py-1"},bd={class:"text-lg font-semibold text-gray-900"},xd={class:"text-sm text-gray-600 mt-1"},Ed={class:"flex flex-col gap-3"},Ad={class:"flex items-center justify-between"},wd={class:"text-lg font-semibold text-gray-900"},Sd={class:"relative flex items-end"},Td={class:"flex flex-col gap-6"},Nd={class:"flex flex-col gap-1.5"},Od=["onUpdate:modelValue"],zo={__name:"VLinks",props:{...Qs},emits:["update"],setup(n,{emit:e}){const t=e,r=n,s=u.ref(r.data.component),a=u.ref(null),o=u.ref(null),c=u.ref(null);function i(){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(fu()),u.nextTick(()=>{o.value&&o.value.scrollIntoView({behavior:"smooth"})}),t("update",!1))}const l=h=>{var f;c.value=h,(f=a==null?void 0:a.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 g;return u.openBlock(),u.createElementBlock(u.Fragment,null,[u.createElementVNode("div",vd,[u.createElementVNode("div",yd,[u.createElementVNode("div",null,[u.createElementVNode("p",bd,u.toDisplayString(s.value.name),1),u.createElementVNode("p",xd,u.toDisplayString(s.value.supportive_text),1)]),u.createElementVNode("div",null,[u.createElementVNode("a",{onClick:i,class:u.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":((g=s.value.data)==null?void 0:g.length)>=s.value.max_items}])},[u.createVNode(u.unref(jo),{class:"h-5 w-5"}),f[0]||(f[0]=u.createElementVNode("span",null,"Add",-1))],2)])])]),u.createElementVNode("div",Ed,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(s.value.data,(p,v)=>(u.openBlock(),u.createElementBlock("div",{class:"flex flex-col gap-4 rounded-xl px-6 py-4 bg-gray-200",key:v,ref_for:!0,ref:v===s.value.data.length-1?x=>o.value=x:null},[u.createElementVNode("div",Ad,[u.createElementVNode("div",wd," Link #"+u.toDisplayString(v+1),1),u.createElementVNode("div",Sd,[u.createVNode(Vo,{onRemoveItem:x=>l(v)},null,8,["onRemoveItem"])])]),u.createElementVNode("div",Td,[u.createElementVNode("div",Nd,[u.createVNode(xn,{"is-vertical":"",field:"title","label-text":"Title *",class:"w-full mb-4",value:p.title,limit:20},{default:u.withCtx(()=>[u.withDirectives(u.createElementVNode("input",{"onUpdate:modelValue":x=>p.title=x,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),[[u.vModelText,p.title]])]),_:2},1032,["value"]),u.createVNode(ti,{label:"Linked to",name:`link_${v+1}`,type:p.type,"onUpdate:type":x=>p.type=x,url:p.url,"onUpdate:url":x=>p.url=x,openInNewTab:p.open_in_new_tab,"onUpdate:openInNewTab":x=>p.open_in_new_tab=x,sites:h.sites},null,8,["name","type","onUpdate:type","url","onUpdate:url","openInNewTab","onUpdate:openInNewTab","sites"])])])]))),128))]),u.createVNode(_o,{ref_key:"modalRef",ref:a,entity:"link",callback:d},null,512)],64)}}},Cd={class:"flex flex-col gap-4"},Rd={class:"text-lg font-semibold text-gray-900 border-b border-gray-200 pb-4"},Id={__name:"VHeader",props:{...Qs},emits:["update"],setup(n,{emit:e}){const t=n,r=u.ref(t.data.component);return(s,a)=>(u.openBlock(),u.createElementBlock("div",Cd,[u.createElementVNode("p",Rd,u.toDisplayString(r.value.name),1),u.createVNode(xn,{"is-vertical":"",field:"title","label-text":"Title *",class:"w-full mb-4",value:r.value.title,limit:51},{default:u.withCtx(()=>[u.withDirectives(u.createElementVNode("input",{"onUpdate:modelValue":a[0]||(a[0]=o=>r.value.title=o),name:"title",type:"text",placeholder:"Title",maxlength:51,class:"border-1 border-solid border-gray-300 rounded-lg bg-white w-full"},null,512),[[u.vModelText,r.value.title]])]),_:1},8,["value"]),u.createVNode(xn,{"is-vertical":"",field:"supporting_text","label-text":"Supporting Text *",class:"w-full mb-4",value:r.value.supporting_text,limit:100},{default:u.withCtx(()=>[u.withDirectives(u.createElementVNode("input",{"onUpdate:modelValue":a[1]||(a[1]=o=>r.value.supporting_text=o),name:"supporting_text",type:"text",placeholder:"Supporting Text",maxlength:100,class:"border-1 border-solid border-gray-300 rounded-lg bg-white w-full"},null,512),[[u.vModelText,r.value.supporting_text]])]),_:1},8,["value"])]))}},Ld={class:"page-builder"},kd={class:"flex gap-4 px-6 overflow-auto"},Bd={class:"flex w-[356px] flex-col gap-2 pb-10"},Pd={class:"border-b border-gray-200 pb-2"},Fd=["onClick"],Md={class:"text-lg font-semibold text-brand-800"},Dd={class:"relative flex items-center gap-3"},Ud={class:"cursor-pointer"},jd={key:0,class:"flex flex-col gap-2"},$d=["onClick"],Vd={class:"flex flex-col"},_d={class:"text-sm font-medium text-gray-900"},qd={class:"flex items-center justify-between gap-3 px-[10px]"},zd={class:"flex h-full flex-1 flex-col rounded-xl bg-gray-50 px-6 py-5 mb-20"},Hd={class:"flex justify-between space-x-xsSpace pt-xsSpace gap-4 fixed bottom-0 w-full bg-gray-200 py-2 px-6"},Gd={__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=u.ref(JSON.parse(window.localStorage.getItem("pageBuilderOpenStates"))),a=u.ref(((f=r.modelValue)==null?void 0:f.sections)??[]);let o=u.ref(null);const c=u.ref({sliders:u.markRaw(qo),vertical_tabs:u.markRaw(qo),links:u.markRaw(zo),header:u.markRaw(Id),link_grid:u.markRaw(zo)});s.value||(s.value={},a.value.forEach((g,p)=>{s.value[p]=!0}),window.localStorage.setItem("pageBuilderOpenStates",JSON.stringify(s.value)));const i=(g,p,v)=>{o.value={page:r.modelValue,component:p,componentIndex:v,sectionIndex:g}},l=()=>{t("close",r.modelValue)},d=(g=!0)=>{t("save",{page:r.modelValue,redirect:g})},h=u.computed(()=>{var g,p,v,x;return(p=(g=o.value)==null?void 0:g.component)!=null&&p.type?c.value[(x=(v=o.value)==null?void 0:v.component)==null?void 0:x.type]:""});return(g,p)=>{var v,x;return u.openBlock(),u.createElementBlock("div",Ld,[u.createElementVNode("div",kd,[u.createElementVNode("div",Bd,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(n.modelValue.sections,(T,S)=>(u.openBlock(),u.createElementBlock("div",Pd,[u.createElementVNode("div",{onClick:I=>s.value[S]=!s.value[S],class:"flex cursor-pointer items-center justify-between px-2 py-4"},[u.createElementVNode("span",Md,u.toDisplayString(T.title),1),u.createElementVNode("div",Dd,[u.createElementVNode("div",Ud,[s.value[S]?(u.openBlock(),u.createBlock(u.unref(su),{key:1,class:"h-5 w-5"})):(u.openBlock(),u.createBlock(u.unref(Uo),{key:0,class:"h-5 w-5"}))])])],8,Fd),s.value[S]?(u.openBlock(),u.createElementBlock("div",jd,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(T.components,(I,F)=>{var M,z;return u.openBlock(),u.createElementBlock("div",{onClick:X=>i(S,I,F),class:u.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=u.unref(o))==null?void 0:M.sectionIndex)===S&&((z=u.unref(o))==null?void 0:z.componentIndex)===F}])},[u.createElementVNode("div",Vd,[p[0]||(p[0]=u.createElementVNode("div",{class:"text-xs text-gray-600"},"Sub-module",-1)),u.createElementVNode("div",_d,u.toDisplayString(I.name),1)]),u.createElementVNode("div",qd,[u.createVNode(u.unref(Uo),{class:"h-5 w-5"})])],10,$d)}),256))])):u.createCommentVNode("",!0)]))),256))]),u.createElementVNode("div",zd,[u.unref(o)?u.createCommentVNode("",!0):(u.openBlock(),u.createBlock(au,{key:0})),(u.openBlock(),u.createBlock(u.resolveDynamicComponent(h.value),{key:((v=u.unref(o))==null?void 0:v.sectionIndex)+((x=u.unref(o))==null?void 0:x.componentIndex),data:u.unref(o),sites:n.sites,onUpdate:d},null,40,["data","sites"]))])]),u.renderSlot(g.$slots,"default",{},()=>[u.createElementVNode("div",Hd,[u.createElementVNode("a",{onClick:l,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 "),u.createElementVNode("a",{onClick:u.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")])])])}}},Ho="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=",Wd={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function Kd(n,e){return u.openBlock(),u.createElementBlock("svg",Wd,e[0]||(e[0]=[u.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M7 17 17 7m0 0H7m10 0v10"},null,-1)]))}const ni={render:Kd};/**
2
2
  * Vue 3 Carousel 0.15.1
3
3
  * (c) 2025
4
4
  * @license MIT
5
- */const Go=["viewport","carousel"],ns={"bottom-to-top":"btt","left-to-right":"ltr","right-to-left":"rtl","top-to-bottom":"ttb"},Wo=["ltr","left-to-right","rtl","right-to-left","ttb","top-to-bottom","btt","bottom-to-top"],Xd={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}"},Ko=["slide","fade"],Xo=["center","start","end","center-even","center-odd"],Yo=10,rs=.3,tt={autoplay:0,breakpointMode:Go[0],breakpoints:void 0,dir:Wo[0],enabled:!0,gap:0,height:"auto",i18n:Xd,ignoreAnimations:!1,itemsToScroll:1,itemsToShow:1,modelValue:0,mouseDrag:!0,mouseWheel:!1,pauseAutoplayOnHover:!1,preventExcessiveDragging:!1,slideEffect:Ko[0],snapAlign:Xo[0],touchDrag:!0,transition:300,wrapAround:!1},kn=Symbol("carousel"),Yd=n=>{const e=u.shallowReactive([]),t=r=>{r!==void 0?e.slice(r).forEach((s,a)=>{var o;(o=s.exposed)===null||o===void 0||o.setIndex(r+a)}):e.forEach((s,a)=>{var o;(o=s.exposed)===null||o===void 0||o.setIndex(a)})};return{cleanup:()=>{e.splice(0,e.length)},getSlides:()=>e,registerSlide:(r,s)=>{if(!r||r.props.isClone)return;const a=s??e.length;e.splice(a,0,r),t(a),n("slide-registered",{slide:r,index:a})},unregisterSlide:r=>{const s=e.indexOf(r);s!==-1&&(n("slide-unregistered",{slide:r,index:s}),e.splice(s,1),t(s))}}};function Zd(n){return n.length===0?0:n.reduce((t,r)=>t+r,0)/n.length}function Zo({slides:n,position:e,toShow:t}){const r=[],s=e==="before",a=s?-t:0,o=s?0:t;if(n.length<=0)return r;for(let l=a;l<o;l++){const c={index:s?l:l+n.length,isClone:!0,id:void 0,key:`clone-${e}-${l}`},d=n[(l%n.length+n.length)%n.length].vnode,h=u.cloneVNode(d,c);h.el=null,r.push(h)}return r}const Qd='a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])';function Qo(n){if(!n.el||!(n.el instanceof Element))return;const e=n.el.querySelectorAll(Qd);for(const t of e)t instanceof HTMLElement&&!t.hasAttribute("disabled")&&t.getAttribute("aria-hidden")!=="true"&&t.setAttribute("tabindex","-1")}function Jd(n,e){return Object.keys(n).filter(t=>!e.includes(t)).reduce((t,r)=>(t[r]=n[r],t),{})}function ef(n){const{isVertical:e,isReversed:t,dragged:r,effectiveSlideSize:s,threshold:a}=n,o=e?r.y:r.x;if(o===0)return 0;const l=o/s,i=Math.abs(l);if(i<a)return 0;const c=i<1?Math.sign(l):Math.round(l);return t?c:-c}function ln({val:n,max:e,min:t}){return e<t?n:Math.min(Math.max(n,isNaN(t)?n:t),isNaN(e)?n:e)}function tf(n){const{transform:e}=window.getComputedStyle(n);return e.split(/[(,)]/).slice(1,-1).map(t=>parseFloat(t))}function nf(n){let e=1,t=1;return n.forEach(r=>{const s=tf(r);s.length===6&&(e/=s[0],t/=s[3])}),{widthMultiplier:e,heightMultiplier:t}}function rf(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 sf(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 ri({slideSize:n,viewportSize:e,align:t,itemsToShow:r}){return r!==void 0?rf(t,r):n!==void 0&&e!==void 0?sf(t,n,e):0}function Jo(n="",e={}){return Object.entries(e).reduce((t,[r,s])=>t.replace(`{${r}}`,String(s)),n)}function ea({val:n,max:e,min:t=0}){const r=e-t+1;return((n-t)%r+r)%r+t}function si(n,e=0){let t=!1,r=0,s=null;function a(...o){if(t)return;t=!0;const l=()=>{s=requestAnimationFrame(i=>{i-r>e?(r=i,n(...o),t=!1):l()})};l()}return a.cancel=()=>{s&&(cancelAnimationFrame(s),s=null,t=!1)},a}function ss(n,e="px"){if(!(n==null||n===""))return typeof n=="number"||parseFloat(n).toString()===n?`${n}${e}`:n}const of=u.defineComponent({name:"CarouselAria",setup(){const n=u.inject(kn);return n?()=>u.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},Jo(n.config.i18n.itemXofY,{currentSlide:n.currentSlide+1,slidesCount:n.slidesCount})):()=>""}});function af(n){let e=!1;const t={x:0,y:0},r=u.reactive({x:0,y:0}),s=u.ref(!1),{isSliding:a}=n,o=u.computed(()=>typeof a=="boolean"?a:a.value),l=d=>{var h;const f=d.target.tagName;if(["INPUT","TEXTAREA","SELECT"].includes(f)||o.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 g=e?"touchmove":"mousemove",p=e?"touchend":"mouseup";document.addEventListener(g,i,{passive:!1}),document.addEventListener(p,c,{passive:!0}),(h=n.onDragStart)===null||h===void 0||h.call(n)},i=si(d=>{var h;if(e&&d.touches.length>1)return;s.value=!0;const f=e?d.touches[0].clientX:d.clientX,g=e?d.touches[0].clientY:d.clientY;r.x=f-t.x,r.y=g-t.y,(h=n.onDrag)===null||h===void 0||h.call(n,{deltaX:r.x,deltaY:r.y,isTouch:e})}),c=()=>{var d;i.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",g=e?"touchend":"mouseup";document.removeEventListener(f,i),document.removeEventListener(g,c)};return{dragged:r,isDragging:s,handleDragStart:l}}function lf(){const n=u.ref(!1);return{isHover:n,handleMouseEnter:()=>{n.value=!0},handleMouseLeave:()=>{n.value=!1}}}function cf(n){const{isVertical:e,isSliding:t,config:r}=n,s=u.computed(()=>typeof e=="boolean"?e:e.value),a=u.computed(()=>typeof t=="boolean"?t:t.value);return{handleScroll:l=>{var i,c;if(l.preventDefault(),!r.mouseWheel||a.value)return;const d=typeof r.mouseWheel=="object"&&(i=r.mouseWheel.threshold)!==null&&i!==void 0?i:Yo,h=Math.abs(l.deltaY)>d?l.deltaY:0,f=Math.abs(l.deltaX)>d?l.deltaX:0;if(h===0&&f===0)return;const g=s.value?h:f,v=(g!==0?g:s.value?f:h)>0;(c=n.onWheel)===null||c===void 0||c.call(n,{deltaX:f,deltaY:h,isScrollingForward:v})}}}const uf={autoplay:{default:tt.autoplay,type:Number},breakpoints:{default:tt.breakpoints,type:Object},breakpointMode:{default:tt.breakpointMode,validator(n){return Go.includes(n)}},clamp:{type:Boolean},dir:{type:String,default:tt.dir,validator(n,e){if(!Wo.includes(n))return!1;const t=n in ns?ns[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:tt.enabled,type:Boolean},gap:{default:tt.gap,type:Number},height:{default:tt.height,type:[Number,String]},i18n:{default:tt.i18n,type:Object},ignoreAnimations:{default:!1,type:[Array,Boolean,String]},itemsToScroll:{default:tt.itemsToScroll,type:Number},itemsToShow:{default:tt.itemsToShow,type:[Number,String]},modelValue:{default:void 0,type:Number},mouseDrag:{default:tt.mouseDrag,type:[Boolean,Object]},mouseWheel:{default:tt.mouseWheel,type:[Boolean,Object]},mouseScrollThreshold:{default:tt.mouseScrollThreshold,type:Number},pauseAutoplayOnHover:{default:tt.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:tt.slideEffect,validator(n){return Ko.includes(n)}},snapAlign:{default:tt.snapAlign,validator(n){return Xo.includes(n)}},touchDrag:{default:tt.touchDrag,type:[Boolean,Object]},transition:{default:tt.transition,type:Number},wrapAround:{default:tt.wrapAround,type:Boolean}},df=u.defineComponent({name:"VueCarousel",props:uf,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 a=Yd(t),o=a.getSlides(),l=u.computed(()=>o.length),i=u.ref(null),c=u.ref(null),d=u.ref(0),h=u.computed(()=>Object.assign(Object.assign(Object.assign({},tt),Jd(n,["breakpoints","modelValue"])),{i18n:Object.assign(Object.assign({},tt.i18n),n.i18n)})),f=u.shallowReactive(Object.assign({},h.value)),g=u.ref((s=n.modelValue)!==null&&s!==void 0?s:0),p=u.ref(g.value);u.watch(g,pe=>p.value=pe);const v=u.ref(0),x=u.computed(()=>Math.ceil((l.value-1)/2)),T=u.computed(()=>l.value-1),S=u.computed(()=>0);let I=null,F=null,M=null;const z=u.computed(()=>d.value+f.gap),X=u.computed(()=>{const pe=f.dir||"ltr";return pe in ns?ns[pe]:pe}),H=u.computed(()=>["rtl","btt"].includes(X.value)),re=u.computed(()=>["ttb","btt"].includes(X.value)),G=u.computed(()=>f.itemsToShow==="auto"),E=u.computed(()=>re.value?"height":"width");function P(){var pe;if(!he.value)return;const be=(h.value.breakpointMode==="carousel"?(pe=i.value)===null||pe===void 0?void 0:pe.getBoundingClientRect().width:typeof window<"u"?window.innerWidth:0)||0,Ce=Object.keys(n.breakpoints||{}).map(Ie=>Number(Ie)).sort((Ie,Ve)=>+Ve-+Ie),Le={};Ce.some(Ie=>be>=Ie?(Object.assign(Le,n.breakpoints[Ie]),Le.i18n&&Object.assign(Le.i18n,h.value.i18n,n.breakpoints[Ie].i18n),!0):!1),Object.assign(f,h.value,Le),G.value||(f.itemsToShow=ln({val:Number(f.itemsToShow),max:n.clamp?l.value:1/0,min:1}))}const O=si(()=>{P(),te(),J()}),_=u.shallowReactive(new Set),j=u.ref([]);function $({widthMultiplier:pe,heightMultiplier:be}){j.value=o.map(Ce=>{var Le;const Ie=(Le=Ce.exposed)===null||Le===void 0?void 0:Le.getBoundingRect();return{width:Ie.width*pe,height:Ie.height*be}})}const K=u.ref({width:0,height:0});function q({widthMultiplier:pe,heightMultiplier:be}){var Ce;const Le=((Ce=c.value)===null||Ce===void 0?void 0:Ce.getBoundingClientRect())||{width:0,height:0};K.value={width:Le.width*pe,height:Le.height*be}}function J(){if(!c.value)return;const pe=nf(_);if(q(pe),$(pe),G.value)d.value=Zd(j.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&&l.value>0&&(g.value=ln({val:g.value,max:T.value,min:S.value}))}const me=u.computed(()=>typeof n.ignoreAnimations=="string"?n.ignoreAnimations.split(","):Array.isArray(n.ignoreAnimations)?n.ignoreAnimations:n.ignoreAnimations?!1:[]);u.watchEffect(()=>te()),u.watchEffect(()=>{J()});let ge;const ve=pe=>{const be=pe.target;if(!(!(be!=null&&be.contains(i.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=u.ref(!1);typeof document<"u"&&u.watchEffect(()=>{he.value&&me.value!==!1?(document.addEventListener("animationstart",ve),document.addEventListener("animationend",xe)):(document.removeEventListener("animationstart",ve),document.removeEventListener("animationend",xe))}),u.onMounted(()=>{he.value=!0,P(),y(),i.value&&(M=new ResizeObserver(O),M.observe(i.value)),t("init")}),u.onBeforeUnmount(()=>{he.value=!1,a.cleanup(),F&&clearTimeout(F),ge&&cancelAnimationFrame(ge),I&&clearInterval(I),M&&(M.disconnect(),M=null),typeof document<"u"&&A(),i.value&&(i.value.removeEventListener("transitionend",J),i.value.removeEventListener("animationiteration",J))});const{isHover:Oe,handleMouseEnter:ye,handleMouseLeave:N}=lf(),R=si(pe=>{if(!pe.ctrlKey)switch(pe.key){case"ArrowLeft":case"ArrowUp":re.value===pe.key.endsWith("Up")&&(H.value?oe(!0):fe(!0));break;case"ArrowRight":case"ArrowDown":re.value===pe.key.endsWith("Down")&&(H.value?fe(!0):oe(!0));break}},200),A=()=>{document.removeEventListener("keydown",R)},C=()=>{document.addEventListener("keydown",R)};function y(){!f.autoplay||f.autoplay<=0||(I=setInterval(()=>{f.pauseAutoplayOnHover&&Oe.value||oe()},f.autoplay))}function b(){L(),y()}function L(){I&&(clearInterval(I),I=null)}const B=u.ref(!1),U=({deltaX:pe,deltaY:be,isTouch:Ce})=>{var Le,Ie,Ve,Ke;t("drag",{deltaX:pe,deltaY:be});const et=Ce?typeof f.touchDrag=="object"&&(Ie=(Le=f.touchDrag)===null||Le===void 0?void 0:Le.threshold)!==null&&Ie!==void 0?Ie:rs:typeof f.mouseDrag=="object"&&(Ke=(Ve=f.mouseDrag)===null||Ve===void 0?void 0:Ve.threshold)!==null&&Ke!==void 0?Ke:rs,dt=ef({isVertical:re.value,isReversed:H.value,dragged:{x:pe,y:be},effectiveSlideSize:z.value,threshold:et});dt!==0&&(p.value=f.wrapAround?g.value+dt:ln({val:g.value+dt,max:T.value,min:S.value}))},V=()=>Ae(p.value),{dragged:W,isDragging:Z,handleDragStart:Y}=af({isSliding:B,onDrag:U,onDragEnd:V}),Q=({deltaX:pe,deltaY:be,isScrollingForward:Ce})=>{t("wheel",{deltaX:pe,deltaY:be}),Ce?H.value?fe():oe():H.value?oe():fe()},{handleScroll:ne}=cf({isVertical:re,isSliding:B,config:f,onWheel:Q});function oe(pe=!1){Ae(g.value+f.itemsToScroll,pe)}function fe(pe=!1){Ae(g.value-f.itemsToScroll,pe)}function Ae(pe,be=!1){if(!be&&B.value)return;let Ce=pe,Le=pe;v.value=g.value,f.wrapAround?Le=ea({val:Ce,max:T.value,min:S.value}):Ce=ln({val:Ce,max:T.value,min:S.value}),t("slide-start",{slidingToIndex:pe,currentSlideIndex:g.value,prevSlideIndex:v.value,slidesCount:l.value}),L(),B.value=!0,g.value=Ce,Le!==Ce&&Ge.pause(),t("update:modelValue",Le),F=setTimeout(()=>{f.wrapAround&&Le!==Ce&&(Ge.resume(),g.value=Le,t("loop",{currentSlideIndex:g.value,slidingToIndex:pe})),t("slide-end",{currentSlideIndex:g.value,prevSlideIndex:v.value,slidesCount:l.value}),B.value=!1,b()},f.transition)}function De(){P(),te(),J(),b()}u.watch(()=>[h.value,n.breakpoints],()=>P(),{deep:!0}),u.watch(()=>n.autoplay,()=>b());const Ge=u.watch(()=>n.modelValue,pe=>{pe!==g.value&&Ae(Number(pe),!0)});t("before-init");const je=u.computed(()=>{if(!f.wrapAround)return{before:0,after:0};if(G.value)return{before:o.length,after:o.length};const pe=Number(f.itemsToShow),be=Math.ceil(pe+(f.itemsToScroll-1)),Ce=be-p.value,Le=be-(l.value-(p.value+1));return{before:Math.max(0,Ce),after:Math.max(0,Le)}}),Be=u.computed(()=>je.value.before?G.value?j.value.slice(-1*je.value.before).reduce((pe,be)=>pe+be[E.value]+f.gap,0)*-1:je.value.before*z.value*-1:0),$e=u.computed(()=>{var pe;if(G.value){const be=(g.value%o.length+o.length)%o.length;return ri({slideSize:(pe=j.value[be])===null||pe===void 0?void 0:pe[E.value],viewportSize:K.value[E.value],align:f.snapAlign})}return ri({align:f.snapAlign,itemsToShow:+f.itemsToShow})}),rt=u.computed(()=>{let pe=0;if(G.value){if(g.value<0?pe=j.value.slice(g.value).reduce((be,Ce)=>be+Ce[E.value]+f.gap,0)*-1:pe=j.value.slice(0,g.value).reduce((be,Ce)=>be+Ce[E.value]+f.gap,0),pe-=$e.value,!f.wrapAround){const be=j.value.reduce((Ce,Le)=>Ce+Le[E.value]+f.gap,0)-K.value[E.value]-f.gap;pe=ln({val:pe,max:be,min:0})}}else{let be=g.value-$e.value;f.wrapAround||(be=ln({val:be,max:l.value-+f.itemsToShow,min:0})),pe=be*z.value}return pe*(H.value?1:-1)}),it=u.computed(()=>{var pe,be;if(!G.value){const Ie=g.value-$e.value;return f.wrapAround?{min:Math.floor(Ie),max:Math.ceil(Ie+Number(f.itemsToShow)-1)}:{min:Math.floor(ln({val:Ie,max:l.value-Number(f.itemsToShow),min:0})),max:Math.ceil(ln({val:Ie+Number(f.itemsToShow)-1,max:l.value-1,min:0}))}}let Ce=0;{let Ie=0,Ve=0-je.value.before;const Ke=Math.abs(rt.value+Be.value);for(;Ie<=Ke;){const et=(Ve%o.length+o.length)%o.length;Ie+=((pe=j.value[et])===null||pe===void 0?void 0:pe[E.value])+f.gap,Ve++}Ce=Ve-1}let Le=0;{let Ie=Ce,Ve=0;for(Ie<0?Ve=j.value.slice(0,Ie).reduce((Ke,et)=>Ke+et[E.value]+f.gap,0)-Math.abs(rt.value+Be.value):Ve=j.value.slice(0,Ie).reduce((Ke,et)=>Ke+et[E.value]+f.gap,0)-Math.abs(rt.value);Ve<K.value[E.value];){const Ke=(Ie%o.length+o.length)%o.length;Ve+=((be=j.value[Ke])===null||be===void 0?void 0:be[E.value])+f.gap,Ie++}Le=Ie-1}return{min:Math.floor(Ce),max:Math.ceil(Le)}}),Dt=u.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 Le=0;G.value?Le=j.value.reduce((Ke,et)=>Ke+et[E.value],0):Le=(l.value-Number(f.itemsToShow))*z.value;const Ie=H.value?0:-1*Le,Ve=H.value?Le:0;Ce=ln({val:Ce,min:Ie,max:Ve})}return`translate${pe}(${Ce}px)`}),bt=u.computed(()=>({"--vc-carousel-height":ss(f.height),"--vc-cloned-offset":ss(Be.value),"--vc-slide-gap":ss(f.gap),"--vc-transition-duration":B.value?ss(f.transition,"ms"):void 0})),_e={slideTo:Ae,next:oe,prev:fe},Pe=u.reactive({activeSlide:p,config:f,currentSlide:g,isSliding:B,isVertical:re,maxSlide:T,minSlide:S,nav:_e,normalizedDir:X,slideRegistry:a,slideSize:d,slides:o,slidesCount:l,viewport:c,visibleRange:it});u.provide(kn,Pe);const We=u.reactive({config:f,currentSlide:g,maxSlide:T,middleSlide:x,minSlide:S,slideSize:d,slidesCount:l});return r(u.reactive(Object.assign({data:We,next:oe,prev:fe,restartCarousel:De,slideTo:Ae,updateBreakpointsConfig:P,updateSlideSize:J,updateSlidesData:te},u.toRefs(Pe)))),()=>{var pe;const be=e.default||e.slides,Ce=(be==null?void 0:be(We))||[],{before:Le,after:Ie}=je.value,Ve=Zo({slides:o,position:"before",toShow:Le}),Ke=Zo({slides:o,position:"after",toShow:Ie}),et=[...Ve,...Ce,...Ke];if(!f.enabled||!et.length)return u.h("section",{ref:i,class:["carousel","is-disabled"]},et);const dt=((pe=e.addons)===null||pe===void 0?void 0:pe.call(e,We))||[],ft=u.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),It=u.h("div",{class:"carousel__viewport",ref:c},ft);return u.h("section",{ref:i,class:["carousel",`is-${X.value}`,`is-effect-${f.slideEffect}`,{"is-dragging":Z.value,"is-hover":Oe.value,"is-sliding":B.value,"is-vertical":re.value}],dir:X.value,style:bt.value,"aria-label":f.i18n.ariaGallery,tabindex:"0",onBlur:A,onFocus:C,onMouseenter:ye,onMouseleave:N},[It,dt,u.h(of)])}}});var ii;(function(n){n.arrowDown="arrowDown",n.arrowLeft="arrowLeft",n.arrowRight="arrowRight",n.arrowUp="arrowUp"})(ii||(ii={}));const ta=n=>`icon${n.charAt(0).toUpperCase()+n.slice(1)}`,ff={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 hf(n){return n in ii}const na=n=>n&&hf(n),ra=u.defineComponent({props:{name:{type:String,required:!0,validator:na},title:{type:String,default:n=>n.name?tt.i18n[ta(n.name)]:""}},setup(n){const e=u.inject(kn,null);return()=>{const t=n.name;if(!t||!na(t))return;const r=ff[t],s=u.h("path",{d:r}),a=(e==null?void 0:e.config.i18n[ta(t)])||n.title,o=u.h("title",a);return u.h("svg",{class:"carousel__icon",viewBox:"0 0 24 24",role:"img","aria-label":a},[o,s])}}});u.defineComponent({name:"CarouselNavigation",inheritAttrs:!1,props:{carousel:{type:Object}},setup(n,{slots:e,attrs:t}){let r=u.inject(kn,null);const{next:s,prev:a}=e,o=()=>({btt:"arrowDown",ltr:"arrowLeft",rtl:"arrowRight",ttb:"arrowUp"})[r.normalizedDir],l=()=>({btt:"arrowUp",ltr:"arrowRight",rtl:"arrowLeft",ttb:"arrowDown"})[r.normalizedDir],i=u.computed(()=>!r.config.wrapAround&&r.currentSlide<=r.minSlide),c=u.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=u.h("button",Object.assign(Object.assign({type:"button",disabled:i.value,"aria-label":d.ariaPreviousSlide,title:d.ariaPreviousSlide,onClick:r.nav.prev},t),{class:["carousel__prev",{"carousel__prev--disabled":i.value},t.class]}),(a==null?void 0:a())||u.h(ra,{name:o()})),f=u.h("button",Object.assign(Object.assign({type:"button",disabled:c.value,"aria-label":d.ariaNextSlide,title:d.ariaNextSlide,onClick:r.nav.next},t),{class:["carousel__next",{"carousel__next--disabled":c.value},t.class]}),(s==null?void 0:s())||u.h(ra,{name:l()}));return[h,f]}}}),u.defineComponent({name:"CarouselPagination",props:{disableOnClick:{type:Boolean},paginateByItemsToShow:{type:Boolean},carousel:{type:Object}},setup(n){let e=u.inject(kn,null);const t=u.computed(()=>e.config.itemsToShow),r=u.computed(()=>ri({align:e.config.snapAlign,itemsToShow:t.value})),s=u.computed(()=>n.paginateByItemsToShow&&t.value>1),a=u.computed(()=>Math.ceil((e.activeSlide-r.value)/t.value)),o=u.computed(()=>Math.ceil(e.slidesCount/t.value)),l=i=>ea(s.value?{val:a.value,max:o.value-1,min:0}:{val:e.activeSlide,max:e.maxSlide,min:e.minSlide})===i;return()=>{var i,c;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?o.value-1:e.maxSlide);h++){const f=Jo(e.config.i18n[s.value?"ariaNavigateToPage":"ariaNavigateToSlide"],{slideNumber:h+1}),g=l(h),p=u.h("button",{type:"button",class:{"carousel__pagination-button":!0,"carousel__pagination-button--active":g},"aria-label":f,"aria-pressed":g,"aria-controls":(c=(i=e.slides[h])===null||i===void 0?void 0:i.exposed)===null||c===void 0?void 0:c.id,title:f,disabled:n.disableOnClick,onClick:()=>e.nav.slideTo(s.value?Math.floor(h*+e.config.itemsToShow+r.value):h)}),v=u.h("li",{class:"carousel__pagination-item",key:h},p);d.push(v)}return u.h("ol",{class:"carousel__pagination"},d)}}});const pf=u.defineComponent({name:"CarouselSlide",props:{id:{type:String,default:n=>n.isClone?void 0:u.useId()},index:{type:Number,default:void 0},isClone:{type:Boolean,default:!1}},setup(n,{attrs:e,slots:t,expose:r}){const s=u.inject(kn);if(u.provide(kn,void 0),!s)return()=>"";const a=u.ref(n.index),o=p=>{a.value=p},l=u.getCurrentInstance(),i=()=>{const p=l.vnode.el;return p?p.getBoundingClientRect():{width:0,height:0}};r({id:n.id,setIndex:o,getBoundingRect:i});const c=u.computed(()=>a.value===s.activeSlide),d=u.computed(()=>a.value===s.activeSlide-1),h=u.computed(()=>a.value===s.activeSlide+1),f=u.computed(()=>a.value>=s.visibleRange.min&&a.value<=s.visibleRange.max),g=u.computed(()=>{if(s.config.itemsToShow==="auto")return;const p=s.config.itemsToShow,v=s.config.gap>0&&p>1?`calc(${100/p}% - ${s.config.gap*(p-1)/p}px)`:`${100/p}%`;return s.isVertical?{height:v}:{width:v}});return s.slideRegistry.registerSlide(l,n.index),u.onUnmounted(()=>{s.slideRegistry.unregisterSlide(l)}),n.isClone&&(u.onMounted(()=>{Qo(l.vnode)}),u.onUpdated(()=>{Qo(l.vnode)})),()=>{var p,v;return s.config.enabled?u.h("li",{style:[e.style,Object.assign({},g.value)],class:{carousel__slide:!0,"carousel__slide--clone":n.isClone,"carousel__slide--visible":f.value,"carousel__slide--active":c.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(a.value)},id:n.isClone?void 0:n.id,"aria-hidden":n.isClone||void 0},(v=t.default)===null||v===void 0?void 0:v.call(t,{currentIndex:a.value,isActive:c.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)}}}),mf={class:"flex h-[872px] w-full bg-navy-800 relative rounded-[48px] z-10"},gf={class:"lg:p-8 p-4 flex relative w-full"},vf={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"},yf={class:"gap-2 flex z-10 mb-4"},bf=["onClick"],xf={class:"lg:text-[48px] text-[40px] font-semibold text-white mb-3 lg:leading-normal leading-[48px]"},Ef=["innerHTML"],Af={class:"flex gap-3 mt-8 flex-col lg:flex-row"},wf=["href","target"],Sf=["href","target"],Tf=["src"],Nf={key:1,class:"rounded-[40px] h-[674px] max-w-[882px] lg:w-1/2 w-full object-cover",src:Ho},Of=es({__name:"VSliderPresenter",props:{component:{required:!0,type:Object}},setup(n){const e=n,t=u.ref(0),s=u.ref(e.component).value.data.filter(a=>a.public);return(a,o)=>(u.openBlock(),u.createElementBlock("div",mf,[u.createVNode(u.unref(df),{"items-to-show":1,modelValue:t.value,"onUpdate:modelValue":o[0]||(o[0]=l=>t.value=l),autoplay:5e3,class:"carousel w-full","wrap-around":!0},{default:u.withCtx(()=>[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(u.unref(s),(l,i)=>(u.openBlock(),u.createBlock(u.unref(pf),{key:i},{default:u.withCtx(()=>[u.createElementVNode("div",gf,[u.createElementVNode("div",vf,[u.createElementVNode("div",yf,[u.unref(s).length>1?(u.openBlock(!0),u.createElementBlock(u.Fragment,{key:0},u.renderList(u.unref(s),(c,d)=>(u.openBlock(),u.createElementBlock("a",{onClick:h=>t.value=d,class:u.normalizeClass(["w-4 h-1 bg-navy-400 rounded-full cursor-pointer",{"!w-12 !bg-white":t.value===d}])},null,10,bf))),256)):u.createCommentVNode("",!0)]),u.createElementVNode("h3",xf,u.toDisplayString(l==null?void 0:l.title),1),u.createElementVNode("p",{class:"text-lg font-normal text-navy-50",innerHTML:l==null?void 0:l.description},null,8,Ef),u.createElementVNode("div",Af,[l.secondary_button.show?(u.openBlock(),u.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.secondary_button.url,target:l.secondary_button.open_in_new_tab?"_blank":""},[u.createElementVNode("span",null,u.toDisplayString(l.secondary_button.label),1)],8,wf)):u.createCommentVNode("",!0),l.primary_button.show?(u.openBlock(),u.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.primary_button.url,target:l.primary_button.open_in_new_tab?"_blank":""},[u.createTextVNode(u.toDisplayString(l.primary_button.label)+" ",1),u.createVNode(u.unref(ni),{class:"w-5 h-5"})],8,Sf)):u.createCommentVNode("",!0)])]),l.featured_image?(u.openBlock(),u.createElementBlock("img",{key:0,src:l.featured_image,alt:"Slide Image",class:"rounded-[40px] h-[674px] max-w-[882px] lg:w-1/2 w-full object-cover"},null,8,Tf)):(u.openBlock(),u.createElementBlock("img",Nf))])]),_:2},1024))),128))]),_:1},8,["modelValue"])]))}},[["__scopeId","data-v-a9c28202"]]),Cf=["target","href"],sa={__name:"VLinkPresenter",props:{component:{required:!0,type:Object}},setup(n){const e=n,t=u.ref(e.component),r=t.value.type==="link_grid";return(s,a)=>(u.openBlock(),u.createElementBlock("div",{class:u.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}])},[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(t.value.data,o=>(u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(["flex justify-center",{"!block":r}])},[u.createElementVNode("a",{target:o.open_in_new_tab?"_blank":"",href:`/${o.url}`,class:u.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}])},[u.createElementVNode("span",null,u.toDisplayString(o.title),1),u.createVNode(u.unref(ni),{class:"w-5 h-5"})],10,Cf)],2))),256))],2))}},Rf={class:"rounded-[48px] max-w-[1392px] 1xl:max-w-[1824px] mx-auto w-full"},If={class:"md:px-[90px]"},Lf={__name:"HeroHeader",props:{section:{required:!0,type:Object}},setup(n){const e=n,t=u.ref(e.section),r=u.ref({sliders:u.markRaw(Of),links:u.markRaw(sa)}),s=a=>a!=null&&a.type?r.value[a==null?void 0:a.type]:"";return(a,o)=>(u.openBlock(),u.createElementBlock("div",Rf,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(t.value.components,(l,i)=>(u.openBlock(),u.createElementBlock("div",If,[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(s(l)),{key:i,component:l},null,8,["component"]))]))),256))]))}},ia={__name:"VHeaderPresenter",props:{component:{required:!0,type:Object}},setup(n){const e=n,t=u.ref(e.component);return(r,s)=>{var a,o,l,i,c,d,h;return u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(["flex flex-col",{"items-center":(a=t.value)==null?void 0:a.center}])},[(o=t.value)!=null&&o.title?(u.openBlock(),u.createElementBlock("p",{key:0,class:u.normalizeClass(["pb-4 text-4xl font-semibold text-white",{"!text-gray-900":(l=t.value)==null?void 0:l.dark}])},u.toDisplayString((i=t.value)==null?void 0:i.title),3)):u.createCommentVNode("",!0),(c=t.value)!=null&&c.supporting_text?(u.openBlock(),u.createElementBlock("p",{key:1,class:u.normalizeClass(["text-navy-25 text-xl font-normal leading-[30px]",{"!text-navy-900":(d=t.value)==null?void 0:d.dark}])},u.toDisplayString((h=t.value)==null?void 0:h.supporting_text),3)):u.createCommentVNode("",!0)],2)}}},kf={xmlns:"http://www.w3.org/2000/svg",width:"341",height:"336",fill:"none"};function Bf(n,e){return u.openBlock(),u.createElementBlock("svg",kf,e[0]||(e[0]=[u.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 Pf={render:Bf},Ff={class:"w-full bg-navy-800 py-10 relative lg:h-[336px]"},Mf={class:"1xl:max-w-[1824px] mx-auto lg:pl-[120px] pl-4 relative z-10"},Df={class:"w-1/2"},Uf={__name:"QuickLinks",props:{section:{required:!0,type:Object}},setup(n){const e=n,t=u.ref(e.section),r=u.ref({header:u.markRaw(ia),link_grid:u.markRaw(sa)}),s=a=>a!=null&&a.type?r.value[a==null?void 0:a.type]:"";return(a,o)=>(u.openBlock(),u.createElementBlock("div",Ff,[u.createElementVNode("div",Mf,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(t.value.components,(l,i)=>(u.openBlock(),u.createElementBlock("div",Df,[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(s(l)),{key:i,component:l},null,8,["component"]))]))),256))]),u.createVNode(u.unref(Pf),{class:"absolute right-0 top-0"})]))}},jf={class:"flex flex-col md:flex-row justify-center gap-4 items-stretch mt-6"},$f={class:"flex-1 w-full md:w-1/2 flex flex-col"},Vf=["onClick"],_f={class:"py-4 pl-4 md:pl-6"},qf={class:"flex-1 w-full md:w-1/2 bg-transparent flex flex-col items-center"},zf=["src"],Hf={key:1,class:"rounded-[20px] md:rounded-[40px] object-contain max-h-[200px] md:max-h-[387px] w-full",src:Ho,alt:"No Image Available"},Gf=["target","href"],Wf={__name:"VVerticalTabPresenter",props:{component:{required:!0,type:Object}},setup(n){const e=n,t=u.ref(e.component),r=u.ref(null),s=u.ref(t.value.data.filter(o=>o.public)),a=o=>{r.value=o};return u.onMounted(()=>{s.value.length>0&&a(s.value[0])}),(o,l)=>(u.openBlock(),u.createElementBlock("div",jf,[u.createElementVNode("div",$f,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(s.value,i=>(u.openBlock(),u.createElementBlock("div",{key:i.title},[u.createElementVNode("div",{class:u.normalizeClass(["flex-col flex gap-1.5 cursor-pointer hover:bg-navy-50 mb-4 group",{"border-l-4 border-brand-600":r.value===i}]),onClick:u.withModifiers(c=>a(i),["prevent"])},[u.createElementVNode("div",_f,[u.createElementVNode("p",{class:u.normalizeClass([{"text-gray-900":r.value===i,"text-gray-600":r.value!==i},"text-lg md:text-xl font-semibold mb-2 group-hover:text-gray-900"])},u.toDisplayString(i.title),3),u.createElementVNode("p",{class:u.normalizeClass([{"text-gray-700":r.value===i,"text-gray-400":r.value!==i},"text-sm md:text-md font-normal group-hover:text-gray-700"])},u.toDisplayString(i.description),3)])],10,Vf)]))),128))]),u.createElementVNode("div",qf,[u.createVNode(u.Transition,{name:"fade",mode:"out-in"},{default:u.withCtx(()=>{var i,c,d,h,f,g,p,v,x,T;return[(u.openBlock(),u.createElementBlock("div",{class:"flex flex-col items-center",key:(i=r.value)==null?void 0:i.title},[(c=r.value)!=null&&c.featured_image?(u.openBlock(),u.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,zf)):(u.openBlock(),u.createElementBlock("img",Hf)),(h=(d=r.value)==null?void 0:d.primary_button)!=null&&h.show?(u.openBlock(),u.createElementBlock("a",{key:2,class:"text-sm md:text-md font-semibold text-brand-600 flex items-center gap-2 mt-4",target:(g=(f=r.value)==null?void 0:f.primary_button)!=null&&g.is_new_tab?"_blank":"",href:(v=(p=r.value)==null?void 0:p.primary_button)==null?void 0:v.url},[u.createTextVNode(u.toDisplayString(((T=(x=r.value)==null?void 0:x.primary_button)==null?void 0:T.label)??"N/A")+" ",1),u.createVNode(u.unref(ni),{class:"w-4 h-4 md:w-5 md:h-5"})],8,Gf)):u.createCommentVNode("",!0)]))]}),_:1})])]))}},Kf={class:"max-w-[1392px] 1xl:max-w-[1824px] mx-auto w-full"},Xf={class:"md:mx-[90px] bg-navy-25 rounded-[48px] p-16"},Yf={__name:"VTabs",props:{section:{required:!0,type:Object}},setup(n){const e=n,t=u.ref(e.section),r=u.ref({header:u.markRaw(ia),vertical_tabs:u.markRaw(Wf)}),s=a=>a!=null&&a.type?r.value[a==null?void 0:a.type]:"";return(a,o)=>(u.openBlock(),u.createElementBlock("div",Kf,[u.createElementVNode("div",Xf,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(t.value.components,(l,i)=>(u.openBlock(),u.createElementBlock("div",null,[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(s(l)),{key:i,component:l},null,8,["component"]))]))),256))])]))}},Zf={class:"page-render"},Qf={__name:"PageRender",props:{page:{required:!0,type:Object}},setup(n){const e=u.ref({header:u.markRaw(Lf),quick_links:u.markRaw(Uf),tabs:u.markRaw(Yf)}),t=r=>r!=null&&r.type?e.value[r==null?void 0:r.type]:"";return(r,s)=>(u.openBlock(),u.createElementBlock("div",Zf,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(n.page.sections,(a,o)=>(u.openBlock(),u.createElementBlock("div",null,[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(t(a)),{key:o,section:a},null,8,["section"]))]))),256))]))}};var oa=typeof global=="object"&&global&&global.Object===Object&&global,Jf=typeof self=="object"&&self&&self.Object===Object&&self,Qt=oa||Jf||Function("return this")(),En=Qt.Symbol,aa=Object.prototype,eh=aa.hasOwnProperty,th=aa.toString,Sr=En?En.toStringTag:void 0;function nh(n){var e=eh.call(n,Sr),t=n[Sr];try{n[Sr]=void 0;var r=!0}catch{}var s=th.call(n);return r&&(e?n[Sr]=t:delete n[Sr]),s}var rh=Object.prototype,sh=rh.toString;function ih(n){return sh.call(n)}var oh="[object Null]",ah="[object Undefined]",la=En?En.toStringTag:void 0;function Yn(n){return n==null?n===void 0?ah:oh:la&&la in Object(n)?nh(n):ih(n)}function cn(n){return n!=null&&typeof n=="object"}var Bn=Array.isArray;function An(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}function ca(n){return n}var lh="[object AsyncFunction]",ch="[object Function]",uh="[object GeneratorFunction]",dh="[object Proxy]";function oi(n){if(!An(n))return!1;var e=Yn(n);return e==ch||e==uh||e==lh||e==dh}var ai=Qt["__core-js_shared__"],ua=function(){var n=/[^.]+$/.exec(ai&&ai.keys&&ai.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function fh(n){return!!ua&&ua in n}var hh=Function.prototype,ph=hh.toString;function Pn(n){if(n!=null){try{return ph.call(n)}catch{}try{return n+""}catch{}}return""}var mh=/[\\^$.*+?()[\]{}|]/g,gh=/^\[object .+?Constructor\]$/,vh=Function.prototype,yh=Object.prototype,bh=vh.toString,xh=yh.hasOwnProperty,Eh=RegExp("^"+bh.call(xh).replace(mh,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ah(n){if(!An(n)||fh(n))return!1;var e=oi(n)?Eh:gh;return e.test(Pn(n))}function wh(n,e){return n==null?void 0:n[e]}function Fn(n,e){var t=wh(n,e);return Ah(t)?t:void 0}var li=Fn(Qt,"WeakMap"),da=Object.create,Sh=function(){function n(){}return function(e){if(!An(e))return{};if(da)return da(e);n.prototype=e;var t=new n;return n.prototype=void 0,t}}();function Th(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 Nh(n,e){var t=-1,r=n.length;for(e||(e=Array(r));++t<r;)e[t]=n[t];return e}var Oh=800,Ch=16,Rh=Date.now;function Ih(n){var e=0,t=0;return function(){var r=Rh(),s=Ch-(r-t);if(t=r,s>0){if(++e>=Oh)return arguments[0]}else e=0;return n.apply(void 0,arguments)}}function Lh(n){return function(){return n}}var is=function(){try{var n=Fn(Object,"defineProperty");return n({},"",{}),n}catch{}}(),kh=is?function(n,e){return is(n,"toString",{configurable:!0,enumerable:!1,value:Lh(e),writable:!0})}:ca,Bh=Ih(kh);function Ph(n,e){for(var t=-1,r=n==null?0:n.length;++t<r&&e(n[t],t,n)!==!1;);return n}var Fh=9007199254740991,Mh=/^(?:0|[1-9]\d*)$/;function fa(n,e){var t=typeof n;return e=e??Fh,!!e&&(t=="number"||t!="symbol"&&Mh.test(n))&&n>-1&&n%1==0&&n<e}function ci(n,e,t){e=="__proto__"&&is?is(n,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):n[e]=t}function Tr(n,e){return n===e||n!==n&&e!==e}var Dh=Object.prototype,Uh=Dh.hasOwnProperty;function ha(n,e,t){var r=n[e];(!(Uh.call(n,e)&&Tr(r,t))||t===void 0&&!(e in n))&&ci(n,e,t)}function jh(n,e,t,r){var s=!t;t||(t={});for(var a=-1,o=e.length;++a<o;){var l=e[a],i=void 0;i===void 0&&(i=n[l]),s?ci(t,l,i):ha(t,l,i)}return t}var pa=Math.max;function $h(n,e,t){return e=pa(e===void 0?n.length-1:e,0),function(){for(var r=arguments,s=-1,a=pa(r.length-e,0),o=Array(a);++s<a;)o[s]=r[e+s];s=-1;for(var l=Array(e+1);++s<e;)l[s]=r[s];return l[e]=t(o),Th(n,this,l)}}function Vh(n,e){return Bh($h(n,e,ca),n+"")}var _h=9007199254740991;function ma(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=_h}function os(n){return n!=null&&ma(n.length)&&!oi(n)}function qh(n,e,t){if(!An(t))return!1;var r=typeof e;return(r=="number"?os(t)&&fa(e,t.length):r=="string"&&e in t)?Tr(t[e],n):!1}function zh(n){return Vh(function(e,t){var r=-1,s=t.length,a=s>1?t[s-1]:void 0,o=s>2?t[2]:void 0;for(a=n.length>3&&typeof a=="function"?(s--,a):void 0,o&&qh(t[0],t[1],o)&&(a=s<3?void 0:a,s=1),e=Object(e);++r<s;){var l=t[r];l&&n(e,l,r,a)}return e})}var Hh=Object.prototype;function ui(n){var e=n&&n.constructor,t=typeof e=="function"&&e.prototype||Hh;return n===t}function Gh(n,e){for(var t=-1,r=Array(n);++t<n;)r[t]=e(t);return r}var Wh="[object Arguments]";function ga(n){return cn(n)&&Yn(n)==Wh}var va=Object.prototype,Kh=va.hasOwnProperty,Xh=va.propertyIsEnumerable,di=ga(function(){return arguments}())?ga:function(n){return cn(n)&&Kh.call(n,"callee")&&!Xh.call(n,"callee")};function Yh(){return!1}var ya=typeof Ye=="object"&&Ye&&!Ye.nodeType&&Ye,ba=ya&&typeof module=="object"&&module&&!module.nodeType&&module,Zh=ba&&ba.exports===ya,xa=Zh?Qt.Buffer:void 0,Qh=xa?xa.isBuffer:void 0,Nr=Qh||Yh,Jh="[object Arguments]",ep="[object Array]",tp="[object Boolean]",np="[object Date]",rp="[object Error]",sp="[object Function]",ip="[object Map]",op="[object Number]",ap="[object Object]",lp="[object RegExp]",cp="[object Set]",up="[object String]",dp="[object WeakMap]",fp="[object ArrayBuffer]",hp="[object DataView]",pp="[object Float32Array]",mp="[object Float64Array]",gp="[object Int8Array]",vp="[object Int16Array]",yp="[object Int32Array]",bp="[object Uint8Array]",xp="[object Uint8ClampedArray]",Ep="[object Uint16Array]",Ap="[object Uint32Array]",Je={};Je[pp]=Je[mp]=Je[gp]=Je[vp]=Je[yp]=Je[bp]=Je[xp]=Je[Ep]=Je[Ap]=!0,Je[Jh]=Je[ep]=Je[fp]=Je[tp]=Je[hp]=Je[np]=Je[rp]=Je[sp]=Je[ip]=Je[op]=Je[ap]=Je[lp]=Je[cp]=Je[up]=Je[dp]=!1;function wp(n){return cn(n)&&ma(n.length)&&!!Je[Yn(n)]}function fi(n){return function(e){return n(e)}}var Ea=typeof Ye=="object"&&Ye&&!Ye.nodeType&&Ye,Or=Ea&&typeof module=="object"&&module&&!module.nodeType&&module,Sp=Or&&Or.exports===Ea,hi=Sp&&oa.process,Zn=function(){try{var n=Or&&Or.require&&Or.require("util").types;return n||hi&&hi.binding&&hi.binding("util")}catch{}}(),Aa=Zn&&Zn.isTypedArray,pi=Aa?fi(Aa):wp,Tp=Object.prototype,Np=Tp.hasOwnProperty;function wa(n,e){var t=Bn(n),r=!t&&di(n),s=!t&&!r&&Nr(n),a=!t&&!r&&!s&&pi(n),o=t||r||s||a,l=o?Gh(n.length,String):[],i=l.length;for(var c in n)(e||Np.call(n,c))&&!(o&&(c=="length"||s&&(c=="offset"||c=="parent")||a&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||fa(c,i)))&&l.push(c);return l}function Sa(n,e){return function(t){return n(e(t))}}var Op=Sa(Object.keys,Object),Cp=Object.prototype,Rp=Cp.hasOwnProperty;function Ip(n){if(!ui(n))return Op(n);var e=[];for(var t in Object(n))Rp.call(n,t)&&t!="constructor"&&e.push(t);return e}function Lp(n){return os(n)?wa(n):Ip(n)}function kp(n){var e=[];if(n!=null)for(var t in Object(n))e.push(t);return e}var Bp=Object.prototype,Pp=Bp.hasOwnProperty;function Fp(n){if(!An(n))return kp(n);var e=ui(n),t=[];for(var r in n)r=="constructor"&&(e||!Pp.call(n,r))||t.push(r);return t}function Ta(n){return os(n)?wa(n,!0):Fp(n)}var Cr=Fn(Object,"create");function Mp(){this.__data__=Cr?Cr(null):{},this.size=0}function Dp(n){var e=this.has(n)&&delete this.__data__[n];return this.size-=e?1:0,e}var Up="__lodash_hash_undefined__",jp=Object.prototype,$p=jp.hasOwnProperty;function Vp(n){var e=this.__data__;if(Cr){var t=e[n];return t===Up?void 0:t}return $p.call(e,n)?e[n]:void 0}var _p=Object.prototype,qp=_p.hasOwnProperty;function zp(n){var e=this.__data__;return Cr?e[n]!==void 0:qp.call(e,n)}var Hp="__lodash_hash_undefined__";function Gp(n,e){var t=this.__data__;return this.size+=this.has(n)?0:1,t[n]=Cr&&e===void 0?Hp:e,this}function Mn(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])}}Mn.prototype.clear=Mp,Mn.prototype.delete=Dp,Mn.prototype.get=Vp,Mn.prototype.has=zp,Mn.prototype.set=Gp;function Wp(){this.__data__=[],this.size=0}function as(n,e){for(var t=n.length;t--;)if(Tr(n[t][0],e))return t;return-1}var Kp=Array.prototype,Xp=Kp.splice;function Yp(n){var e=this.__data__,t=as(e,n);if(t<0)return!1;var r=e.length-1;return t==r?e.pop():Xp.call(e,t,1),--this.size,!0}function Zp(n){var e=this.__data__,t=as(e,n);return t<0?void 0:e[t][1]}function Qp(n){return as(this.__data__,n)>-1}function Jp(n,e){var t=this.__data__,r=as(t,n);return r<0?(++this.size,t.push([n,e])):t[r][1]=e,this}function un(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])}}un.prototype.clear=Wp,un.prototype.delete=Yp,un.prototype.get=Zp,un.prototype.has=Qp,un.prototype.set=Jp;var Rr=Fn(Qt,"Map");function em(){this.size=0,this.__data__={hash:new Mn,map:new(Rr||un),string:new Mn}}function tm(n){var e=typeof n;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?n!=="__proto__":n===null}function ls(n,e){var t=n.__data__;return tm(e)?t[typeof e=="string"?"string":"hash"]:t.map}function nm(n){var e=ls(this,n).delete(n);return this.size-=e?1:0,e}function rm(n){return ls(this,n).get(n)}function sm(n){return ls(this,n).has(n)}function im(n,e){var t=ls(this,n),r=t.size;return t.set(n,e),this.size+=t.size==r?0:1,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=em,Dn.prototype.delete=nm,Dn.prototype.get=rm,Dn.prototype.has=sm,Dn.prototype.set=im;function om(n,e){for(var t=-1,r=e.length,s=n.length;++t<r;)n[s+t]=e[t];return n}var Na=Sa(Object.getPrototypeOf,Object),am="[object Object]",lm=Function.prototype,cm=Object.prototype,Oa=lm.toString,um=cm.hasOwnProperty,dm=Oa.call(Object);function fm(n){if(!cn(n)||Yn(n)!=am)return!1;var e=Na(n);if(e===null)return!0;var t=um.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&Oa.call(t)==dm}function hm(){this.__data__=new un,this.size=0}function pm(n){var e=this.__data__,t=e.delete(n);return this.size=e.size,t}function mm(n){return this.__data__.get(n)}function gm(n){return this.__data__.has(n)}var vm=200;function ym(n,e){var t=this.__data__;if(t instanceof un){var r=t.__data__;if(!Rr||r.length<vm-1)return r.push([n,e]),this.size=++t.size,this;t=this.__data__=new Dn(r)}return t.set(n,e),this.size=t.size,this}function Jt(n){var e=this.__data__=new un(n);this.size=e.size}Jt.prototype.clear=hm,Jt.prototype.delete=pm,Jt.prototype.get=mm,Jt.prototype.has=gm,Jt.prototype.set=ym;var Ca=typeof Ye=="object"&&Ye&&!Ye.nodeType&&Ye,Ra=Ca&&typeof module=="object"&&module&&!module.nodeType&&module,bm=Ra&&Ra.exports===Ca,Ia=bm?Qt.Buffer:void 0,La=Ia?Ia.allocUnsafe:void 0;function ka(n,e){if(e)return n.slice();var t=n.length,r=La?La(t):new n.constructor(t);return n.copy(r),r}function xm(n,e){for(var t=-1,r=n==null?0:n.length,s=0,a=[];++t<r;){var o=n[t];e(o,t,n)&&(a[s++]=o)}return a}function Em(){return[]}var Am=Object.prototype,wm=Am.propertyIsEnumerable,Ba=Object.getOwnPropertySymbols,Sm=Ba?function(n){return n==null?[]:(n=Object(n),xm(Ba(n),function(e){return wm.call(n,e)}))}:Em;function Tm(n,e,t){var r=e(n);return Bn(n)?r:om(r,t(n))}function mi(n){return Tm(n,Lp,Sm)}var gi=Fn(Qt,"DataView"),vi=Fn(Qt,"Promise"),yi=Fn(Qt,"Set"),Pa="[object Map]",Nm="[object Object]",Fa="[object Promise]",Ma="[object Set]",Da="[object WeakMap]",Ua="[object DataView]",Om=Pn(gi),Cm=Pn(Rr),Rm=Pn(vi),Im=Pn(yi),Lm=Pn(li),jt=Yn;(gi&&jt(new gi(new ArrayBuffer(1)))!=Ua||Rr&&jt(new Rr)!=Pa||vi&&jt(vi.resolve())!=Fa||yi&&jt(new yi)!=Ma||li&&jt(new li)!=Da)&&(jt=function(n){var e=Yn(n),t=e==Nm?n.constructor:void 0,r=t?Pn(t):"";if(r)switch(r){case Om:return Ua;case Cm:return Pa;case Rm:return Fa;case Im:return Ma;case Lm:return Da}return e});var km=Object.prototype,Bm=km.hasOwnProperty;function Pm(n){var e=n.length,t=new n.constructor(e);return e&&typeof n[0]=="string"&&Bm.call(n,"index")&&(t.index=n.index,t.input=n.input),t}var cs=Qt.Uint8Array;function bi(n){var e=new n.constructor(n.byteLength);return new cs(e).set(new cs(n)),e}function Fm(n,e){var t=bi(n.buffer);return new n.constructor(t,n.byteOffset,n.byteLength)}var Mm=/\w*$/;function Dm(n){var e=new n.constructor(n.source,Mm.exec(n));return e.lastIndex=n.lastIndex,e}var ja=En?En.prototype:void 0,$a=ja?ja.valueOf:void 0;function Um(n){return $a?Object($a.call(n)):{}}function Va(n,e){var t=e?bi(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.length)}var jm="[object Boolean]",$m="[object Date]",Vm="[object Map]",_m="[object Number]",qm="[object RegExp]",zm="[object Set]",Hm="[object String]",Gm="[object Symbol]",Wm="[object ArrayBuffer]",Km="[object DataView]",Xm="[object Float32Array]",Ym="[object Float64Array]",Zm="[object Int8Array]",Qm="[object Int16Array]",Jm="[object Int32Array]",eg="[object Uint8Array]",tg="[object Uint8ClampedArray]",ng="[object Uint16Array]",rg="[object Uint32Array]";function sg(n,e,t){var r=n.constructor;switch(e){case Wm:return bi(n);case jm:case $m:return new r(+n);case Km:return Fm(n);case Xm:case Ym:case Zm:case Qm:case Jm:case eg:case tg:case ng:case rg:return Va(n,t);case Vm:return new r;case _m:case Hm:return new r(n);case qm:return Dm(n);case zm:return new r;case Gm:return Um(n)}}function _a(n){return typeof n.constructor=="function"&&!ui(n)?Sh(Na(n)):{}}var ig="[object Map]";function og(n){return cn(n)&&jt(n)==ig}var qa=Zn&&Zn.isMap,ag=qa?fi(qa):og,lg="[object Set]";function cg(n){return cn(n)&&jt(n)==lg}var za=Zn&&Zn.isSet,ug=za?fi(za):cg,dg=1,Ha="[object Arguments]",fg="[object Array]",hg="[object Boolean]",pg="[object Date]",mg="[object Error]",Ga="[object Function]",gg="[object GeneratorFunction]",vg="[object Map]",yg="[object Number]",Wa="[object Object]",bg="[object RegExp]",xg="[object Set]",Eg="[object String]",Ag="[object Symbol]",wg="[object WeakMap]",Sg="[object ArrayBuffer]",Tg="[object DataView]",Ng="[object Float32Array]",Og="[object Float64Array]",Cg="[object Int8Array]",Rg="[object Int16Array]",Ig="[object Int32Array]",Lg="[object Uint8Array]",kg="[object Uint8ClampedArray]",Bg="[object Uint16Array]",Pg="[object Uint32Array]",Ze={};Ze[Ha]=Ze[fg]=Ze[Sg]=Ze[Tg]=Ze[hg]=Ze[pg]=Ze[Ng]=Ze[Og]=Ze[Cg]=Ze[Rg]=Ze[Ig]=Ze[vg]=Ze[yg]=Ze[Wa]=Ze[bg]=Ze[xg]=Ze[Eg]=Ze[Ag]=Ze[Lg]=Ze[kg]=Ze[Bg]=Ze[Pg]=!0,Ze[mg]=Ze[Ga]=Ze[wg]=!1;function us(n,e,t,r,s,a){var o,l=e&dg;if(o!==void 0)return o;if(!An(n))return n;var i=Bn(n);if(i)o=Pm(n);else{var c=jt(n),d=c==Ga||c==gg;if(Nr(n))return ka(n,l);if(c==Wa||c==Ha||d&&!s)o=d?{}:_a(n);else{if(!Ze[c])return s?n:{};o=sg(n,c,l)}}a||(a=new Jt);var h=a.get(n);if(h)return h;a.set(n,o),ug(n)?n.forEach(function(p){o.add(us(p,e,t,p,n,a))}):ag(n)&&n.forEach(function(p,v){o.set(v,us(p,e,t,v,n,a))});var f=mi,g=i?void 0:f(n);return Ph(g||n,function(p,v){g&&(v=p,p=n[v]),ha(o,v,us(p,e,t,v,n,a))}),o}var Fg=1,Mg=4;function Qn(n){return us(n,Fg|Mg)}var Dg="__lodash_hash_undefined__";function Ug(n){return this.__data__.set(n,Dg),this}function jg(n){return this.__data__.has(n)}function ds(n){var e=-1,t=n==null?0:n.length;for(this.__data__=new Dn;++e<t;)this.add(n[e])}ds.prototype.add=ds.prototype.push=Ug,ds.prototype.has=jg;function $g(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 Vg(n,e){return n.has(e)}var _g=1,qg=2;function Ka(n,e,t,r,s,a){var o=t&_g,l=n.length,i=e.length;if(l!=i&&!(o&&i>l))return!1;var c=a.get(n),d=a.get(e);if(c&&d)return c==e&&d==n;var h=-1,f=!0,g=t&qg?new ds:void 0;for(a.set(n,e),a.set(e,n);++h<l;){var p=n[h],v=e[h];if(r)var x=o?r(v,p,h,e,n,a):r(p,v,h,n,e,a);if(x!==void 0){if(x)continue;f=!1;break}if(g){if(!$g(e,function(T,S){if(!Vg(g,S)&&(p===T||s(p,T,t,r,a)))return g.push(S)})){f=!1;break}}else if(!(p===v||s(p,v,t,r,a))){f=!1;break}}return a.delete(n),a.delete(e),f}function zg(n){var e=-1,t=Array(n.size);return n.forEach(function(r,s){t[++e]=[s,r]}),t}function Hg(n){var e=-1,t=Array(n.size);return n.forEach(function(r){t[++e]=r}),t}var Gg=1,Wg=2,Kg="[object Boolean]",Xg="[object Date]",Yg="[object Error]",Zg="[object Map]",Qg="[object Number]",Jg="[object RegExp]",e0="[object Set]",t0="[object String]",n0="[object Symbol]",r0="[object ArrayBuffer]",s0="[object DataView]",Xa=En?En.prototype:void 0,xi=Xa?Xa.valueOf:void 0;function i0(n,e,t,r,s,a,o){switch(t){case s0:if(n.byteLength!=e.byteLength||n.byteOffset!=e.byteOffset)return!1;n=n.buffer,e=e.buffer;case r0:return!(n.byteLength!=e.byteLength||!a(new cs(n),new cs(e)));case Kg:case Xg:case Qg:return Tr(+n,+e);case Yg:return n.name==e.name&&n.message==e.message;case Jg:case t0:return n==e+"";case Zg:var l=zg;case e0:var i=r&Gg;if(l||(l=Hg),n.size!=e.size&&!i)return!1;var c=o.get(n);if(c)return c==e;r|=Wg,o.set(n,e);var d=Ka(l(n),l(e),r,s,a,o);return o.delete(n),d;case n0:if(xi)return xi.call(n)==xi.call(e)}return!1}var o0=1,a0=Object.prototype,l0=a0.hasOwnProperty;function c0(n,e,t,r,s,a){var o=t&o0,l=mi(n),i=l.length,c=mi(e),d=c.length;if(i!=d&&!o)return!1;for(var h=i;h--;){var f=l[h];if(!(o?f in e:l0.call(e,f)))return!1}var g=a.get(n),p=a.get(e);if(g&&p)return g==e&&p==n;var v=!0;a.set(n,e),a.set(e,n);for(var x=o;++h<i;){f=l[h];var T=n[f],S=e[f];if(r)var I=o?r(S,T,f,e,n,a):r(T,S,f,n,e,a);if(!(I===void 0?T===S||s(T,S,t,r,a):I)){v=!1;break}x||(x=f=="constructor")}if(v&&!x){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)&&(v=!1)}return a.delete(n),a.delete(e),v}var u0=1,Ya="[object Arguments]",Za="[object Array]",fs="[object Object]",d0=Object.prototype,Qa=d0.hasOwnProperty;function f0(n,e,t,r,s,a){var o=Bn(n),l=Bn(e),i=o?Za:jt(n),c=l?Za:jt(e);i=i==Ya?fs:i,c=c==Ya?fs:c;var d=i==fs,h=c==fs,f=i==c;if(f&&Nr(n)){if(!Nr(e))return!1;o=!0,d=!1}if(f&&!d)return a||(a=new Jt),o||pi(n)?Ka(n,e,t,r,s,a):i0(n,e,i,t,r,s,a);if(!(t&u0)){var g=d&&Qa.call(n,"__wrapped__"),p=h&&Qa.call(e,"__wrapped__");if(g||p){var v=g?n.value():n,x=p?e.value():e;return a||(a=new Jt),s(v,x,t,r,a)}}return f?(a||(a=new Jt),c0(n,e,t,r,s,a)):!1}function Ja(n,e,t,r,s){return n===e?!0:n==null||e==null||!cn(n)&&!cn(e)?n!==n&&e!==e:f0(n,e,t,r,Ja,s)}function h0(n){return function(e,t,r){for(var s=-1,a=Object(e),o=r(e),l=o.length;l--;){var i=o[++s];if(t(a[i],i,a)===!1)break}return e}}var p0=h0();function Ei(n,e,t){(t!==void 0&&!Tr(n[e],t)||t===void 0&&!(e in n))&&ci(n,e,t)}function m0(n){return cn(n)&&os(n)}function Ai(n,e){if(!(e==="constructor"&&typeof n[e]=="function")&&e!="__proto__")return n[e]}function g0(n){return jh(n,Ta(n))}function v0(n,e,t,r,s,a,o){var l=Ai(n,t),i=Ai(e,t),c=o.get(i);if(c){Ei(n,t,c);return}var d=a?a(l,i,t+"",n,e,o):void 0,h=d===void 0;if(h){var f=Bn(i),g=!f&&Nr(i),p=!f&&!g&&pi(i);d=i,f||g||p?Bn(l)?d=l:m0(l)?d=Nh(l):g?(h=!1,d=ka(i,!0)):p?(h=!1,d=Va(i,!0)):d=[]:fm(i)||di(i)?(d=l,di(l)?d=g0(l):(!An(l)||oi(l))&&(d=_a(i))):h=!1}h&&(o.set(i,d),s(d,i,r,a,o),o.delete(i)),Ei(n,t,d)}function el(n,e,t,r,s){n!==e&&p0(e,function(a,o){if(s||(s=new Jt),An(a))v0(n,e,o,t,el,r,s);else{var l=r?r(Ai(n,o),a,o+"",n,e,s):void 0;l===void 0&&(l=a),Ei(n,o,l)}},Ta)}function wi(n,e){return Ja(n,e)}var wn=zh(function(n,e,t){el(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 en{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 Jn extends Error{constructor(e){e="[Parchment] "+e,super(e),this.message=e,this.name=this.constructor.name}}const tl=class Mo{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 Jn(`Unable to create ${t} blot`);const a=s,o=t instanceof Node||t.nodeType===Node.TEXT_NODE?t:a.create(r),l=new a(e,o,r);return Mo.blots.set(l.domNode,l),l}find(e,t=!1){return Mo.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 Jn("Invalid definition");if(r&&t.blotName==="abstract")throw new Jn("Cannot register abstract class");const a=r?t.blotName:s?t.attrName:void 0;return this.types[a]=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(o=>o.toUpperCase()):t.tagName=t.tagName.toUpperCase(),(Array.isArray(t.tagName)?t.tagName:[t.tagName]).forEach(o=>{(this.tags[o]==null||t.className==null)&&(this.tags[o]=t)}))),t})}};tl.blots=new WeakMap;let er=tl;function nl(n,e){return(n.getAttribute("class")||"").split(/\s+/).filter(t=>t.indexOf(`${e}-`)===0)}class y0 extends en{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){nl(e,this.keyName).forEach(t=>{e.classList.remove(t)}),e.classList.length===0&&e.removeAttribute("class")}value(e){const t=(nl(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""}}const $t=y0;function Si(n){const e=n.split("-"),t=e.slice(1).map(r=>r[0].toUpperCase()+r.slice(1)).join("");return e[0]+t}class b0 extends en{static keys(e){return(e.getAttribute("style")||"").split(";").map(t=>t.split(":")[0].trim())}add(e,t){return this.canAdd(e,t)?(e.style[Si(this.keyName)]=t,!0):!1}remove(e){e.style[Si(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")}value(e){const t=e.style[Si(this.keyName)];return this.canAdd(e,t)?t:""}}const Sn=b0;class x0{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=er.find(this.domNode);if(e==null)return;const t=en.keys(this.domNode),r=$t.keys(this.domNode),s=Sn.keys(this.domNode);t.concat(r).concat(s).forEach(a=>{const o=e.scroll.query(a,Ne.ATTRIBUTE);o instanceof en&&(this.attributes[o.attrName]=o)})}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 hs=x0,rl=class{constructor(e,t){this.scroll=e,this.domNode=t,er.blots.set(t,this),this.prev=null,this.next=null}static create(e){if(this.tagName==null)throw new Jn("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),er.blots.delete(this.domNode)}deleteAt(e,t){this.isolate(e,t).remove()}formatAt(e,t,r,s){const a=this.isolate(e,t);if(this.scroll.query(r,Ne.BLOT)!=null&&s)a.wrap(r,s);else if(this.scroll.query(r,Ne.ATTRIBUTE)!=null){const o=this.scroll.create(this.statics.scope);a.wrap(o),o.format(r,s)}}insertAt(e,t,r){const s=r==null?this.scroll.create("text",t):this.scroll.create(t,r),a=this.split(e);this.parent.insertBefore(s,a||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 Jn(`Cannot wrap ${e}`);return r.appendChild(this),r}};rl.blotName="abstract";let sl=rl;const il=class extends sl{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}}};il.scope=Ne.INLINE_BLOT;const gt=il;class E0{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 a=s.length();if(e<a||t&&e===a&&(s.next==null||s.next.length()!==0))return[s,e];e-=a,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,a]=this.find(e);let o=e-a;const l=this.iterator(s);let i=l();for(;i&&o<e+t;){const c=i.length();e>o?r(i,e-o,Math.min(t,o+c-e)):r(i,0,Math.min(c,e+t-o)),o+=c,i=l()}}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 ol(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 al=class Ln extends sl{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,Ln.uiClass&&this.uiNode.classList.add(Ln.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new E0,Array.from(this.domNode.childNodes).filter(e=>e!==this.uiNode).reverse().forEach(e=>{try{const t=ol(e,this.scroll);this.insertBefore(t,this.children.head||void 0)}catch(t){if(t instanceof Jn)return;throw t}})}deleteAt(e,t){if(e===0&&t===this.length())return this.remove();this.children.forEachAt(e,t,(r,s,a)=>{r.deleteAt(s,a)})}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 Ln?r.descendant(e,s):[null,-1]}descendants(e,t=0,r=Number.MAX_VALUE){let s=[],a=r;return this.children.forEachAt(t,r,(o,l,i)=>{(e.blotName==null&&e(o)||e.blotName!=null&&o instanceof e)&&s.push(o),o instanceof Ln&&(s=s.concat(o.descendants(e,l,a))),a-=i}),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 Ln?t.unwrap():t.remove())})}formatAt(e,t,r,s){this.children.forEachAt(e,t,(a,o,l)=>{a.formatAt(o,l,r,s)})}insertAt(e,t,r){const[s,a]=this.children.find(e);if(s)s.insertAt(a,t,r);else{const o=r==null?this.scroll.create("text",t):this.scroll.create(t,r);this.appendChild(o)}}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),a=[[this,e]];return r instanceof Ln?a.concat(r.path(s,t)):(r!=null&&a.push([r,s]),a)}removeChild(e){this.children.remove(e)}replaceWith(e,t){const r=typeof e=="string"?this.scroll.create(e,t):e;return r instanceof Ln&&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,a,o)=>{const l=s.split(a,t);l!=null&&r.appendChild(l)}),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(a=>{a.target===this.domNode&&a.type==="childList"&&(r.push(...a.addedNodes),s.push(...a.removedNodes))}),s.forEach(a=>{if(a.parentNode!=null&&a.tagName!=="IFRAME"&&document.body.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_CONTAINED_BY)return;const o=this.scroll.find(a);o!=null&&(o.domNode.parentNode==null||o.domNode.parentNode===this.domNode)&&o.detach()}),r.filter(a=>a.parentNode===this.domNode&&a!==this.uiNode).sort((a,o)=>a===o?0:a.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1).forEach(a=>{let o=null;a.nextSibling!=null&&(o=this.scroll.find(a.nextSibling));const l=ol(a,this.scroll);(l.next!==o||l.next==null)&&(l.parent!=null&&l.parent.removeChild(this),this.insertBefore(l,o||void 0))}),this.enforceAllowedChildren()}};al.uiClass="";const Vt=al;function A0(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 tr=class wr extends Vt{static create(e){return super.create(e)}static formats(e,t){const r=t.query(wr.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 hs(this.domNode)}format(e,t){if(e===this.statics.blotName&&!t)this.children.forEach(r=>{r instanceof wr||(r=r.wrap(wr.blotName,!0)),this.attributes.copy(r)}),this.unwrap();else{const r=this.scroll.query(e,Ne.INLINE);if(r==null)return;r instanceof en?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 wr&&r.prev===this&&A0(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 wr&&this.attributes.move(r),r}};tr.allowedChildren=[tr,gt],tr.blotName="inline",tr.scope=Ne.INLINE_BLOT,tr.tagName="SPAN";const Ti=tr,nr=class Do extends Vt{static create(e){return super.create(e)}static formats(e,t){const r=t.query(Do.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 hs(this.domNode)}format(e,t){const r=this.scroll.query(e,Ne.BLOCK);r!=null&&(r instanceof en?this.attributes.attribute(r,t):e===this.statics.blotName&&!t?this.replaceWith(Do.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 a=this.scroll.create(t,r);s.parent.insertBefore(a,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()}};nr.blotName="block",nr.scope=Ne.BLOCK_BLOT,nr.tagName="P",nr.allowedChildren=[Ti,nr,gt];const Ir=nr,Ni=class extends Vt{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())}};Ni.blotName="container",Ni.scope=Ne.BLOCK_BLOT;const ps=Ni;class w0 extends gt{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 Rt=w0,S0={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},T0=100,rr=class extends Vt{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,S0),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 a=(i,c=!0)=>{i==null||i===this||i.domNode.parentNode!=null&&(r.has(i.domNode)||r.set(i.domNode,[]),c&&a(i.parent))},o=i=>{r.has(i.domNode)&&(i instanceof Vt&&i.children.forEach(o),r.delete(i.domNode),i.optimize(t))};let l=e;for(let i=0;l.length>0;i+=1){if(i>=T0)throw new Error("[Parchment] Maximum optimize iterations reached");for(l.forEach(c=>{const d=this.find(c.target,!0);d!=null&&(d.domNode===c.target&&(c.type==="childList"?(a(this.find(c.previousSibling,!1)),Array.from(c.addedNodes).forEach(h=>{const f=this.find(h,!1);a(f,!1),f instanceof Vt&&f.children.forEach(g=>{a(g,!1)})})):c.type==="attributes"&&a(d.prev)),a(d))}),this.children.forEach(o),l=Array.from(this.observer.takeRecords()),s=l.slice();s.length>0;)e.push(s.pop())}}update(e,t={}){e=e||this.observer.takeRecords();const r=new WeakMap;e.map(s=>{const a=this.find(s.target,!0);return a==null?null:r.has(a.domNode)?(r.get(a.domNode).push(s),null):(r.set(a.domNode,[s]),a)}).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)}};rr.blotName="scroll",rr.defaultChild=Ir,rr.allowedChildren=[Ir,ps],rr.scope=Ne.BLOCK_BLOT,rr.tagName="DIV";const Oi=rr,Ci=class Jc extends gt{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 Jc&&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}};Ci.blotName="text",Ci.scope=Ne.INLINE_BLOT;const ms=Ci,N0=Object.freeze(Object.defineProperty({__proto__:null,Attributor:en,AttributorStore:hs,BlockBlot:Ir,ClassAttributor:$t,ContainerBlot:ps,EmbedBlot:Rt,InlineBlot:Ti,LeafBlot:gt,ParentBlot:Vt,Registry:er,Scope:Ne,ScrollBlot:Oi,StyleAttributor:Sn,TextBlot:ms},Symbol.toStringTag,{value:"Module"}));var Tn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ri(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var gs={exports:{}},Ii,ll;function O0(){if(ll)return Ii;ll=1;var n=-1,e=1,t=0;function r(E,P,O,_,j){if(E===P)return E?[[t,E]]:[];if(O!=null){var $=re(E,P,O);if($)return $}var K=l(E,P),q=E.substring(0,K);E=E.substring(K),P=P.substring(K),K=c(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]),S(te,j),_&&h(te),te}function s(E,P){var O;if(!E)return[[e,P]];if(!P)return[[n,E]];var _=E.length>P.length?E:P,j=E.length>P.length?P:E,$=_.indexOf(j);if($!==-1)return O=[[e,_.substring(0,$)],[t,j],[e,_.substring($+j.length)]],E.length>P.length&&(O[0][0]=O[2][0]=n),O;if(j.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],ve=r(q,te),xe=r(J,me);return ve.concat([[t,ge]],xe)}return a(E,P)}function a(E,P){for(var O=E.length,_=P.length,j=Math.ceil((O+_)/2),$=j,K=2*j,q=new Array(K),J=new Array(K),te=0;te<K;te++)q[te]=-1,J[te]=-1;q[$+1]=0,J[$+1]=0;for(var me=O-_,ge=me%2!==0,ve=0,xe=0,he=0,Oe=0,ye=0;ye<j;ye++){for(var N=-ye+ve;N<=ye-xe;N+=2){var R=$+N,A;N===-ye||N!==ye&&q[R-1]<q[R+1]?A=q[R+1]:A=q[R-1]+1;for(var C=A-N;A<O&&C<_&&E.charAt(A)===P.charAt(C);)A++,C++;if(q[R]=A,A>O)xe+=2;else if(C>_)ve+=2;else if(ge){var y=$+me-N;if(y>=0&&y<K&&J[y]!==-1){var b=O-J[y];if(A>=b)return o(E,P,A,C)}}}for(var L=-ye+he;L<=ye-Oe;L+=2){var y=$+L,b;L===-ye||L!==ye&&J[y-1]<J[y+1]?b=J[y+1]:b=J[y-1]+1;for(var B=b-L;b<O&&B<_&&E.charAt(O-b-1)===P.charAt(_-B-1);)b++,B++;if(J[y]=b,b>O)Oe+=2;else if(B>_)he+=2;else if(!ge){var R=$+me-L;if(R>=0&&R<K&&q[R]!==-1){var A=q[R],C=$+A-R;if(b=O-b,A>=b)return o(E,P,A,C)}}}}return[[n,E],[e,P]]}function o(E,P,O,_){var j=E.substring(0,O),$=P.substring(0,_),K=E.substring(O),q=P.substring(_),J=r(j,$),te=r(K,q);return J.concat(te)}function l(E,P){if(!E||!P||E.charAt(0)!==P.charAt(0))return 0;for(var O=0,_=Math.min(E.length,P.length),j=_,$=0;O<j;)E.substring($,j)==P.substring($,j)?(O=j,$=O):_=j,j=Math.floor((_-O)/2+O);return I(E.charCodeAt(j-1))&&j--,j}function i(E,P){var O=E.length,_=P.length;if(O==0||_==0)return 0;O>_?E=E.substring(O-_):O<_&&(P=P.substring(0,O));var j=Math.min(O,_);if(E==P)return j;for(var $=0,K=1;;){var q=E.substring(j-K),J=P.indexOf(q);if(J==-1)return $;K+=J,(J==0||E.substring(j-K)==P.substring(0,K))&&($=K,K++)}}function c(E,P){if(!E||!P||E.slice(-1)!==P.slice(-1))return 0;for(var O=0,_=Math.min(E.length,P.length),j=_,$=0;O<j;)E.substring(E.length-j,E.length-$)==P.substring(P.length-j,P.length-$)?(O=j,$=O):_=j,j=Math.floor((_-O)/2+O);return F(E.charCodeAt(E.length-j))&&j--,j}function d(E,P){var O=E.length>P.length?E:P,_=E.length>P.length?P:E;if(O.length<4||_.length*2<O.length)return null;function j(xe,he,Oe){for(var ye=xe.substring(Oe,Oe+Math.floor(xe.length/4)),N=-1,R="",A,C,y,b;(N=he.indexOf(ye,N+1))!==-1;){var L=l(xe.substring(Oe),he.substring(N)),B=c(xe.substring(0,Oe),he.substring(0,N));R.length<B+L&&(R=he.substring(N-B,N)+he.substring(N,N+L),A=xe.substring(0,Oe-B),C=xe.substring(Oe+L),y=he.substring(0,N-B),b=he.substring(N+L))}return R.length*2>=xe.length?[A,C,y,b,R]:null}var $=j(O,_,Math.ceil(O.length/4)),K=j(O,_,Math.ceil(O.length/2)),q;if(!$&&!K)return null;K?$?q=$[4].length>K[4].length?$:K:q=K:q=$;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 ve=q[4];return[J,te,me,ge,ve]}function h(E){for(var P=!1,O=[],_=0,j=null,$=0,K=0,q=0,J=0,te=0;$<E.length;)E[$][0]==t?(O[_++]=$,K=J,q=te,J=0,te=0,j=E[$][1]):(E[$][0]==e?J+=E[$][1].length:te+=E[$][1].length,j&&j.length<=Math.max(K,q)&&j.length<=Math.max(J,te)&&(E.splice(O[_-1],0,[n,j]),E[O[_-1]+1][0]=e,_--,_--,$=_>0?O[_-1]:-1,K=0,q=0,J=0,te=0,j=null,P=!0)),$++;for(P&&S(E),T(E),$=1;$<E.length;){if(E[$-1][0]==n&&E[$][0]==e){var me=E[$-1][1],ge=E[$][1],ve=i(me,ge),xe=i(ge,me);ve>=xe?(ve>=me.length/2||ve>=ge.length/2)&&(E.splice($,0,[t,ge.substring(0,ve)]),E[$-1][1]=me.substring(0,me.length-ve),E[$+1][1]=ge.substring(ve),$++):(xe>=me.length/2||xe>=ge.length/2)&&(E.splice($,0,[t,me.substring(0,xe)]),E[$-1][0]=e,E[$-1][1]=ge.substring(0,ge.length-xe),E[$+1][0]=n,E[$+1][1]=me.substring(xe),$++),$++}$++}}var f=/[^a-zA-Z0-9]/,g=/\s/,p=/[\r\n]/,v=/\n\r?\n$/,x=/^\r?\n\r?\n/;function T(E){function P(xe,he){if(!xe||!he)return 6;var Oe=xe.charAt(xe.length-1),ye=he.charAt(0),N=Oe.match(f),R=ye.match(f),A=N&&Oe.match(g),C=R&&ye.match(g),y=A&&Oe.match(p),b=C&&ye.match(p),L=y&&xe.match(v),B=b&&he.match(x);return L||B?5:y||b?4:N&&!A&&C?3:A||C?2:N||R?1:0}for(var O=1;O<E.length-1;){if(E[O-1][0]==t&&E[O+1][0]==t){var _=E[O-1][1],j=E[O][1],$=E[O+1][1],K=c(_,j);if(K){var q=j.substring(j.length-K);_=_.substring(0,_.length-K),j=q+j.substring(0,j.length-K),$=q+$}for(var J=_,te=j,me=$,ge=P(_,j)+P(j,$);j.charAt(0)===$.charAt(0);){_+=j.charAt(0),j=j.substring(1)+$.charAt(0),$=$.substring(1);var ve=P(_,j)+P(j,$);ve>=ge&&(ge=ve,J=_,te=j,me=$)}E[O-1][1]!=J&&(J?E[O-1][1]=J:(E.splice(O-1,1),O--),E[O][1]=te,me?E[O+1][1]=me:(E.splice(O+1,1),O--))}O++}}function S(E,P){E.push([t,""]);for(var O=0,_=0,j=0,$="",K="",q;O<E.length;){if(O<E.length-1&&!E[O][1]){E.splice(O,1);continue}switch(E[O][0]){case e:j++,K+=E[O][1],O++;break;case n:_++,$+=E[O][1],O++;break;case t:var J=O-j-_-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),$=te+$,K=te+K,!E[J][1]){E.splice(J,1),O--;var me=J-1;E[me]&&E[me][0]===e&&(j++,K=E[me][1]+K,me--),E[me]&&E[me][0]===n&&(_++,$=E[me][1]+$,me--),J=me}}if(M(E[O][1])){var te=E[O][1].charAt(0);E[O][1]=E[O][1].slice(1),$+=te,K+=te}}if(O<E.length-1&&!E[O][1]){E.splice(O,1);break}if($.length>0||K.length>0){$.length>0&&K.length>0&&(q=l(K,$),q!==0&&(J>=0?E[J][1]+=K.substring(0,q):(E.splice(0,0,[t,K.substring(0,q)]),O++),K=K.substring(q),$=$.substring(q)),q=c(K,$),q!==0&&(E[O][1]=K.substring(K.length-q)+E[O][1],K=K.substring(0,K.length-q),$=$.substring(0,$.length-q)));var ge=j+_;$.length===0&&K.length===0?(E.splice(O-ge,ge),O=O-ge):$.length===0?(E.splice(O-ge,ge,[e,K]),O=O-ge+1):K.length===0?(E.splice(O-ge,ge,[n,$]),O=O-ge+1):(E.splice(O-ge,ge,[n,$],[e,K]),O=O-ge+2)}O!==0&&E[O-1][0]===t?(E[O-1][1]+=E[O][1],E.splice(O,1)):O++,j=0,_=0,$="",K="";break}}E[E.length-1][1]===""&&E.pop();var ve=!1;for(O=1;O<E.length-1;)E[O-1][0]===t&&E[O+1][0]===t&&(E[O][1].substring(E[O][1].length-E[O-1][1].length)===E[O-1][1]?(E[O][1]=E[O-1][1]+E[O][1].substring(0,E[O][1].length-E[O-1][1].length),E[O+1][1]=E[O-1][1]+E[O+1][1],E.splice(O-1,1),ve=!0):E[O][1].substring(0,E[O+1][1].length)==E[O+1][1]&&(E[O-1][1]+=E[O+1][1],E[O][1]=E[O][1].substring(E[O+1][1].length)+E[O+1][1],E.splice(O+1,1),ve=!0)),O++;ve&&S(E,P)}function I(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 I(E.charCodeAt(E.length-1))}function X(E){for(var P=[],O=0;O<E.length;O++)E[O][1].length>0&&P.push(E[O]);return P}function H(E,P,O,_){return z(E)||M(_)?null:X([[t,E],[n,P],[e,O],[t,_]])}function re(E,P,O){var _=typeof O=="number"?{index:O,length:0}:O.oldRange,j=typeof O=="number"?null:O.newRange,$=E.length,K=P.length;if(_.length===0&&(j===null||j.length===0)){var q=_.index,J=E.slice(0,q),te=E.slice(q),me=j?j.index:null;e:{var ge=q+K-$;if(me!==null&&me!==ge||ge<0||ge>K)break e;var ve=P.slice(0,ge),xe=P.slice(ge);if(xe!==te)break e;var he=Math.min(q,ge),Oe=J.slice(0,he),ye=ve.slice(0,he);if(Oe!==ye)break e;var N=J.slice(he),R=ve.slice(he);return H(Oe,N,R,te)}e:{if(me!==null&&me!==q)break e;var A=q,ve=P.slice(0,A),xe=P.slice(A);if(ve!==J)break e;var C=Math.min($-A,K-A),y=te.slice(te.length-C),b=xe.slice(xe.length-C);if(y!==b)break e;var N=te.slice(0,te.length-C),R=xe.slice(0,xe.length-C);return H(J,N,R,y)}}if(_.length>0&&j&&j.length===0)e:{var Oe=E.slice(0,_.index),y=E.slice(_.index+_.length),he=Oe.length,C=y.length;if(K<he+C)break e;var ye=P.slice(0,he),b=P.slice(K-C);if(Oe!==ye||y!==b)break e;var N=E.slice(he,$-C),R=P.slice(he,K-C);return H(Oe,N,R,y)}return null}function G(E,P,O,_){return r(E,P,O,_,!0)}return G.INSERT=e,G.DELETE=n,G.EQUAL=t,Ii=G,Ii}var Lr={exports:{}};Lr.exports;var cl;function ul(){return cl||(cl=1,function(n,e){var t=200,r="__lodash_hash_undefined__",s=9007199254740991,a="[object Arguments]",o="[object Array]",l="[object Boolean]",i="[object Date]",c="[object Error]",d="[object Function]",h="[object GeneratorFunction]",f="[object Map]",g="[object Number]",p="[object Object]",v="[object Promise]",x="[object RegExp]",T="[object Set]",S="[object String]",I="[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]",O="[object Uint8ClampedArray]",_="[object Uint16Array]",j="[object Uint32Array]",$=/[\\^$.*+?()[\]{}|]/g,K=/\w*$/,q=/^\[object .+?Constructor\]$/,J=/^(?:0|[1-9]\d*)$/,te={};te[a]=te[o]=te[M]=te[z]=te[l]=te[i]=te[X]=te[H]=te[re]=te[G]=te[E]=te[f]=te[g]=te[p]=te[x]=te[T]=te[S]=te[I]=te[P]=te[O]=te[_]=te[j]=!0,te[c]=te[d]=te[F]=!1;var me=typeof Tn=="object"&&Tn&&Tn.Object===Object&&Tn,ge=typeof self=="object"&&self&&self.Object===Object&&self,ve=me||ge||Function("return this")(),xe=e&&!e.nodeType&&e,he=xe&&!0&&n&&!n.nodeType&&n,Oe=he&&he.exports===xe;function ye(m,w){return m.set(w[0],w[1]),m}function N(m,w){return m.add(w),m}function R(m,w){for(var D=-1,ie=m?m.length:0;++D<ie&&w(m[D],D,m)!==!1;);return m}function A(m,w){for(var D=-1,ie=w.length,Fe=m.length;++D<ie;)m[Fe+D]=w[D];return m}function C(m,w,D,ie){for(var Fe=-1,Re=m?m.length:0;++Fe<Re;)D=w(D,m[Fe],Fe,m);return D}function y(m,w){for(var D=-1,ie=Array(m);++D<m;)ie[D]=w(D);return ie}function b(m,w){return m==null?void 0:m[w]}function L(m){var w=!1;if(m!=null&&typeof m.toString!="function")try{w=!!(m+"")}catch{}return w}function B(m){var w=-1,D=Array(m.size);return m.forEach(function(ie,Fe){D[++w]=[Fe,ie]}),D}function U(m,w){return function(D){return m(w(D))}}function V(m){var w=-1,D=Array(m.size);return m.forEach(function(ie){D[++w]=ie}),D}var W=Array.prototype,Z=Function.prototype,Y=Object.prototype,Q=ve["__core-js_shared__"],ne=function(){var m=/[^.]+$/.exec(Q&&Q.keys&&Q.keys.IE_PROTO||"");return m?"Symbol(src)_1."+m:""}(),oe=Z.toString,fe=Y.hasOwnProperty,Ae=Y.toString,De=RegExp("^"+oe.call(fe).replace($,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ge=Oe?ve.Buffer:void 0,je=ve.Symbol,Be=ve.Uint8Array,$e=U(Object.getPrototypeOf,Object),rt=Object.create,it=Y.propertyIsEnumerable,Dt=W.splice,bt=Object.getOwnPropertySymbols,_e=Ge?Ge.isBuffer:void 0,Pe=U(Object.keys,Object),We=Zt(ve,"DataView"),pe=Zt(ve,"Map"),be=Zt(ve,"Promise"),Ce=Zt(ve,"Set"),Le=Zt(ve,"WeakMap"),Ie=Zt(Object,"create"),Ve=St(We),Ke=St(pe),et=St(be),dt=St(Ce),ft=St(Le),It=je?je.prototype:void 0,Ut=It?It.valueOf:void 0;function lt(m){var w=-1,D=m?m.length:0;for(this.clear();++w<D;){var ie=m[w];this.set(ie[0],ie[1])}}function Ot(){this.__data__=Ie?Ie(null):{}}function Xt(m){return this.has(m)&&delete this.__data__[m]}function Hn(m){var w=this.__data__;if(Ie){var D=w[m];return D===r?void 0:D}return fe.call(w,m)?w[m]:void 0}function mn(m){var w=this.__data__;return Ie?w[m]!==void 0:fe.call(w,m)}function Cn(m,w){var D=this.__data__;return D[m]=Ie&&w===void 0?r:w,this}lt.prototype.clear=Ot,lt.prototype.delete=Xt,lt.prototype.get=Hn,lt.prototype.has=mn,lt.prototype.set=Cn;function ot(m){var w=-1,D=m?m.length:0;for(this.clear();++w<D;){var ie=m[w];this.set(ie[0],ie[1])}}function fr(){this.__data__=[]}function hr(m){var w=this.__data__,D=Ue(w,m);if(D<0)return!1;var ie=w.length-1;return D==ie?w.pop():Dt.call(w,D,1),!0}function pr(m){var w=this.__data__,D=Ue(w,m);return D<0?void 0:w[D][1]}function mr(m){return Ue(this.__data__,m)>-1}function gr(m,w){var D=this.__data__,ie=Ue(D,m);return ie<0?D.push([m,w]):D[ie][1]=w,this}ot.prototype.clear=fr,ot.prototype.delete=hr,ot.prototype.get=pr,ot.prototype.has=mr,ot.prototype.set=gr;function ct(m){var w=-1,D=m?m.length:0;for(this.clear();++w<D;){var ie=m[w];this.set(ie[0],ie[1])}}function vr(){this.__data__={hash:new lt,map:new(pe||ot),string:new lt}}function yr(m){return Wn(this,m).delete(m)}function br(m){return Wn(this,m).get(m)}function xt(m){return Wn(this,m).has(m)}function xr(m,w){return Wn(this,m).set(m,w),this}ct.prototype.clear=vr,ct.prototype.delete=yr,ct.prototype.get=br,ct.prototype.has=xt,ct.prototype.set=xr;function pt(m){this.__data__=new ot(m)}function k(){this.__data__=new ot}function ae(m){return this.__data__.delete(m)}function se(m){return this.__data__.get(m)}function ce(m){return this.__data__.has(m)}function de(m,w){var D=this.__data__;if(D instanceof ot){var ie=D.__data__;if(!pe||ie.length<t-1)return ie.push([m,w]),this;D=this.__data__=new ct(ie)}return D.set(m,w),this}pt.prototype.clear=k,pt.prototype.delete=ae,pt.prototype.get=se,pt.prototype.has=ce,pt.prototype.set=de;function ke(m,w){var D=Zr(m)||Er(m)?y(m.length,String):[],ie=D.length,Fe=!!ie;for(var Re in m)fe.call(m,Re)&&!(Fe&&(Re=="length"||Io(Re,ie)))&&D.push(Re);return D}function we(m,w,D){var ie=m[w];(!(fe.call(m,w)&&Gs(ie,D))||D===void 0&&!(w in m))&&(m[w]=D)}function Ue(m,w){for(var D=m.length;D--;)if(Gs(m[D][0],w))return D;return-1}function qe(m,w){return m&&Yr(w,Jr(w),m)}function Qe(m,w,D,ie,Fe,Re,He){var ze;if(ie&&(ze=Re?ie(m,Fe,Re,He):ie(m)),ze!==void 0)return ze;if(!an(m))return m;var at=Zr(m);if(at){if(ze=Co(m),!w)return To(m,ze)}else{var Xe=yn(m),At=Xe==d||Xe==h;if(Ws(m))return gn(m,w);if(Xe==p||Xe==a||At&&!Re){if(L(m))return Re?m:{};if(ze=on(At?{}:m),!w)return No(m,qe(ze,m))}else{if(!te[Xe])return Re?m:{};ze=Ro(m,Xe,Qe,w)}}He||(He=new pt);var Ct=He.get(m);if(Ct)return Ct;if(He.set(m,ze),!at)var ut=D?Oo(m):Jr(m);return R(ut||m,function(wt,mt){ut&&(mt=wt,wt=m[mt]),we(ze,mt,Qe(wt,w,D,ie,mt,m,He))}),ze}function Et(m){return an(m)?rt(m):{}}function ue(m,w,D){var ie=w(m);return Zr(m)?ie:A(ie,D(m))}function st(m){return Ae.call(m)}function Lt(m){if(!an(m)||ko(m))return!1;var w=Qr(m)||L(m)?De:q;return w.test(St(m))}function Gn(m){if(!zs(m))return Pe(m);var w=[];for(var D in Object(m))fe.call(m,D)&&D!="constructor"&&w.push(D);return w}function gn(m,w){if(w)return m.slice();var D=new m.constructor(m.length);return m.copy(D),D}function Rn(m){var w=new m.constructor(m.byteLength);return new Be(w).set(new Be(m)),w}function Yt(m,w){var D=w?Rn(m.buffer):m.buffer;return new m.constructor(D,m.byteOffset,m.byteLength)}function _s(m,w,D){var ie=w?D(B(m),!0):B(m);return C(ie,ye,new m.constructor)}function qs(m){var w=new m.constructor(m.source,K.exec(m));return w.lastIndex=m.lastIndex,w}function Ao(m,w,D){var ie=w?D(V(m),!0):V(m);return C(ie,N,new m.constructor)}function wo(m){return Ut?Object(Ut.call(m)):{}}function So(m,w){var D=w?Rn(m.buffer):m.buffer;return new m.constructor(D,m.byteOffset,m.length)}function To(m,w){var D=-1,ie=m.length;for(w||(w=Array(ie));++D<ie;)w[D]=m[D];return w}function Yr(m,w,D,ie){D||(D={});for(var Fe=-1,Re=w.length;++Fe<Re;){var He=w[Fe],ze=void 0;we(D,He,ze===void 0?m[He]:ze)}return D}function No(m,w){return Yr(m,vn(m),w)}function Oo(m){return ue(m,Jr,vn)}function Wn(m,w){var D=m.__data__;return Lo(w)?D[typeof w=="string"?"string":"hash"]:D.map}function Zt(m,w){var D=b(m,w);return Lt(D)?D:void 0}var vn=bt?U(bt,Object):Po,yn=st;(We&&yn(new We(new ArrayBuffer(1)))!=z||pe&&yn(new pe)!=f||be&&yn(be.resolve())!=v||Ce&&yn(new Ce)!=T||Le&&yn(new Le)!=F)&&(yn=function(m){var w=Ae.call(m),D=w==p?m.constructor:void 0,ie=D?St(D):void 0;if(ie)switch(ie){case Ve:return z;case Ke:return f;case et:return v;case dt:return T;case ft:return F}return w});function Co(m){var w=m.length,D=m.constructor(w);return w&&typeof m[0]=="string"&&fe.call(m,"index")&&(D.index=m.index,D.input=m.input),D}function on(m){return typeof m.constructor=="function"&&!zs(m)?Et($e(m)):{}}function Ro(m,w,D,ie){var Fe=m.constructor;switch(w){case M:return Rn(m);case l:case i:return new Fe(+m);case z:return Yt(m,ie);case X:case H:case re:case G:case E:case P:case O:case _:case j:return So(m,ie);case f:return _s(m,ie,D);case g:case S:return new Fe(m);case x:return qs(m);case T:return Ao(m,ie,D);case I:return wo(m)}}function Io(m,w){return w=w??s,!!w&&(typeof m=="number"||J.test(m))&&m>-1&&m%1==0&&m<w}function Lo(m){var w=typeof m;return w=="string"||w=="number"||w=="symbol"||w=="boolean"?m!=="__proto__":m===null}function ko(m){return!!ne&&ne in m}function zs(m){var w=m&&m.constructor,D=typeof w=="function"&&w.prototype||Y;return m===D}function St(m){if(m!=null){try{return oe.call(m)}catch{}try{return m+""}catch{}}return""}function Hs(m){return Qe(m,!0,!0)}function Gs(m,w){return m===w||m!==m&&w!==w}function Er(m){return Bo(m)&&fe.call(m,"callee")&&(!it.call(m,"callee")||Ae.call(m)==a)}var Zr=Array.isArray;function Ar(m){return m!=null&&Ks(m.length)&&!Qr(m)}function Bo(m){return Xs(m)&&Ar(m)}var Ws=_e||Fo;function Qr(m){var w=an(m)?Ae.call(m):"";return w==d||w==h}function Ks(m){return typeof m=="number"&&m>-1&&m%1==0&&m<=s}function an(m){var w=typeof m;return!!m&&(w=="object"||w=="function")}function Xs(m){return!!m&&typeof m=="object"}function Jr(m){return Ar(m)?ke(m):Gn(m)}function Po(){return[]}function Fo(){return!1}n.exports=Hs}(Lr,Lr.exports)),Lr.exports}var kr={exports:{}};kr.exports;var dl;function fl(){return dl||(dl=1,function(n,e){var t=200,r="__lodash_hash_undefined__",s=1,a=2,o=9007199254740991,l="[object Arguments]",i="[object Array]",c="[object AsyncFunction]",d="[object Boolean]",h="[object Date]",f="[object Error]",g="[object Function]",p="[object GeneratorFunction]",v="[object Map]",x="[object Number]",T="[object Null]",S="[object Object]",I="[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]",O="[object Float32Array]",_="[object Float64Array]",j="[object Int8Array]",$="[object Int16Array]",K="[object Int32Array]",q="[object Uint8Array]",J="[object Uint8ClampedArray]",te="[object Uint16Array]",me="[object Uint32Array]",ge=/[\\^$.*+?()[\]{}|]/g,ve=/^\[object .+?Constructor\]$/,xe=/^(?:0|[1-9]\d*)$/,he={};he[O]=he[_]=he[j]=he[$]=he[K]=he[q]=he[J]=he[te]=he[me]=!0,he[l]=he[i]=he[E]=he[d]=he[P]=he[h]=he[f]=he[g]=he[v]=he[x]=he[S]=he[M]=he[z]=he[X]=he[G]=!1;var Oe=typeof Tn=="object"&&Tn&&Tn.Object===Object&&Tn,ye=typeof self=="object"&&self&&self.Object===Object&&self,N=Oe||ye||Function("return this")(),R=e&&!e.nodeType&&e,A=R&&!0&&n&&!n.nodeType&&n,C=A&&A.exports===R,y=C&&Oe.process,b=function(){try{return y&&y.binding&&y.binding("util")}catch{}}(),L=b&&b.isTypedArray;function B(m,w){for(var D=-1,ie=m==null?0:m.length,Fe=0,Re=[];++D<ie;){var He=m[D];w(He,D,m)&&(Re[Fe++]=He)}return Re}function U(m,w){for(var D=-1,ie=w.length,Fe=m.length;++D<ie;)m[Fe+D]=w[D];return m}function V(m,w){for(var D=-1,ie=m==null?0:m.length;++D<ie;)if(w(m[D],D,m))return!0;return!1}function W(m,w){for(var D=-1,ie=Array(m);++D<m;)ie[D]=w(D);return ie}function Z(m){return function(w){return m(w)}}function Y(m,w){return m.has(w)}function Q(m,w){return m==null?void 0:m[w]}function ne(m){var w=-1,D=Array(m.size);return m.forEach(function(ie,Fe){D[++w]=[Fe,ie]}),D}function oe(m,w){return function(D){return m(w(D))}}function fe(m){var w=-1,D=Array(m.size);return m.forEach(function(ie){D[++w]=ie}),D}var Ae=Array.prototype,De=Function.prototype,Ge=Object.prototype,je=N["__core-js_shared__"],Be=De.toString,$e=Ge.hasOwnProperty,rt=function(){var m=/[^.]+$/.exec(je&&je.keys&&je.keys.IE_PROTO||"");return m?"Symbol(src)_1."+m:""}(),it=Ge.toString,Dt=RegExp("^"+Be.call($e).replace(ge,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),bt=C?N.Buffer:void 0,_e=N.Symbol,Pe=N.Uint8Array,We=Ge.propertyIsEnumerable,pe=Ae.splice,be=_e?_e.toStringTag:void 0,Ce=Object.getOwnPropertySymbols,Le=bt?bt.isBuffer:void 0,Ie=oe(Object.keys,Object),Ve=vn(N,"DataView"),Ke=vn(N,"Map"),et=vn(N,"Promise"),dt=vn(N,"Set"),ft=vn(N,"WeakMap"),It=vn(Object,"create"),Ut=St(Ve),lt=St(Ke),Ot=St(et),Xt=St(dt),Hn=St(ft),mn=_e?_e.prototype:void 0,Cn=mn?mn.valueOf:void 0;function ot(m){var w=-1,D=m==null?0:m.length;for(this.clear();++w<D;){var ie=m[w];this.set(ie[0],ie[1])}}function fr(){this.__data__=It?It(null):{},this.size=0}function hr(m){var w=this.has(m)&&delete this.__data__[m];return this.size-=w?1:0,w}function pr(m){var w=this.__data__;if(It){var D=w[m];return D===r?void 0:D}return $e.call(w,m)?w[m]:void 0}function mr(m){var w=this.__data__;return It?w[m]!==void 0:$e.call(w,m)}function gr(m,w){var D=this.__data__;return this.size+=this.has(m)?0:1,D[m]=It&&w===void 0?r:w,this}ot.prototype.clear=fr,ot.prototype.delete=hr,ot.prototype.get=pr,ot.prototype.has=mr,ot.prototype.set=gr;function ct(m){var w=-1,D=m==null?0:m.length;for(this.clear();++w<D;){var ie=m[w];this.set(ie[0],ie[1])}}function vr(){this.__data__=[],this.size=0}function yr(m){var w=this.__data__,D=gn(w,m);if(D<0)return!1;var ie=w.length-1;return D==ie?w.pop():pe.call(w,D,1),--this.size,!0}function br(m){var w=this.__data__,D=gn(w,m);return D<0?void 0:w[D][1]}function xt(m){return gn(this.__data__,m)>-1}function xr(m,w){var D=this.__data__,ie=gn(D,m);return ie<0?(++this.size,D.push([m,w])):D[ie][1]=w,this}ct.prototype.clear=vr,ct.prototype.delete=yr,ct.prototype.get=br,ct.prototype.has=xt,ct.prototype.set=xr;function pt(m){var w=-1,D=m==null?0:m.length;for(this.clear();++w<D;){var ie=m[w];this.set(ie[0],ie[1])}}function k(){this.size=0,this.__data__={hash:new ot,map:new(Ke||ct),string:new ot}}function ae(m){var w=Zt(this,m).delete(m);return this.size-=w?1:0,w}function se(m){return Zt(this,m).get(m)}function ce(m){return Zt(this,m).has(m)}function de(m,w){var D=Zt(this,m),ie=D.size;return D.set(m,w),this.size+=D.size==ie?0:1,this}pt.prototype.clear=k,pt.prototype.delete=ae,pt.prototype.get=se,pt.prototype.has=ce,pt.prototype.set=de;function ke(m){var w=-1,D=m==null?0:m.length;for(this.__data__=new pt;++w<D;)this.add(m[w])}function we(m){return this.__data__.set(m,r),this}function Ue(m){return this.__data__.has(m)}ke.prototype.add=ke.prototype.push=we,ke.prototype.has=Ue;function qe(m){var w=this.__data__=new ct(m);this.size=w.size}function Qe(){this.__data__=new ct,this.size=0}function Et(m){var w=this.__data__,D=w.delete(m);return this.size=w.size,D}function ue(m){return this.__data__.get(m)}function st(m){return this.__data__.has(m)}function Lt(m,w){var D=this.__data__;if(D instanceof ct){var ie=D.__data__;if(!Ke||ie.length<t-1)return ie.push([m,w]),this.size=++D.size,this;D=this.__data__=new pt(ie)}return D.set(m,w),this.size=D.size,this}qe.prototype.clear=Qe,qe.prototype.delete=Et,qe.prototype.get=ue,qe.prototype.has=st,qe.prototype.set=Lt;function Gn(m,w){var D=Er(m),ie=!D&&Gs(m),Fe=!D&&!ie&&Ar(m),Re=!D&&!ie&&!Fe&&Xs(m),He=D||ie||Fe||Re,ze=He?W(m.length,String):[],at=ze.length;for(var Xe in m)$e.call(m,Xe)&&!(He&&(Xe=="length"||Fe&&(Xe=="offset"||Xe=="parent")||Re&&(Xe=="buffer"||Xe=="byteLength"||Xe=="byteOffset")||Ro(Xe,at)))&&ze.push(Xe);return ze}function gn(m,w){for(var D=m.length;D--;)if(Hs(m[D][0],w))return D;return-1}function Rn(m,w,D){var ie=w(m);return Er(m)?ie:U(ie,D(m))}function Yt(m){return m==null?m===void 0?re:T:be&&be in Object(m)?yn(m):zs(m)}function _s(m){return an(m)&&Yt(m)==l}function qs(m,w,D,ie,Fe){return m===w?!0:m==null||w==null||!an(m)&&!an(w)?m!==m&&w!==w:Ao(m,w,D,ie,qs,Fe)}function Ao(m,w,D,ie,Fe,Re){var He=Er(m),ze=Er(w),at=He?i:on(m),Xe=ze?i:on(w);at=at==l?S:at,Xe=Xe==l?S:Xe;var At=at==S,Ct=Xe==S,ut=at==Xe;if(ut&&Ar(m)){if(!Ar(w))return!1;He=!0,At=!1}if(ut&&!At)return Re||(Re=new qe),He||Xs(m)?Yr(m,w,D,ie,Fe,Re):No(m,w,at,D,ie,Fe,Re);if(!(D&s)){var wt=At&&$e.call(m,"__wrapped__"),mt=Ct&&$e.call(w,"__wrapped__");if(wt||mt){var In=wt?m.value():m,bn=mt?w.value():w;return Re||(Re=new qe),Fe(In,bn,D,ie,Re)}}return ut?(Re||(Re=new qe),Oo(m,w,D,ie,Fe,Re)):!1}function wo(m){if(!Ks(m)||Lo(m))return!1;var w=Ws(m)?Dt:ve;return w.test(St(m))}function So(m){return an(m)&&Qr(m.length)&&!!he[Yt(m)]}function To(m){if(!ko(m))return Ie(m);var w=[];for(var D in Object(m))$e.call(m,D)&&D!="constructor"&&w.push(D);return w}function Yr(m,w,D,ie,Fe,Re){var He=D&s,ze=m.length,at=w.length;if(ze!=at&&!(He&&at>ze))return!1;var Xe=Re.get(m);if(Xe&&Re.get(w))return Xe==w;var At=-1,Ct=!0,ut=D&a?new ke:void 0;for(Re.set(m,w),Re.set(w,m);++At<ze;){var wt=m[At],mt=w[At];if(ie)var In=He?ie(mt,wt,At,w,m,Re):ie(wt,mt,At,m,w,Re);if(In!==void 0){if(In)continue;Ct=!1;break}if(ut){if(!V(w,function(bn,Kn){if(!Y(ut,Kn)&&(wt===bn||Fe(wt,bn,D,ie,Re)))return ut.push(Kn)})){Ct=!1;break}}else if(!(wt===mt||Fe(wt,mt,D,ie,Re))){Ct=!1;break}}return Re.delete(m),Re.delete(w),Ct}function No(m,w,D,ie,Fe,Re,He){switch(D){case P:if(m.byteLength!=w.byteLength||m.byteOffset!=w.byteOffset)return!1;m=m.buffer,w=w.buffer;case E:return!(m.byteLength!=w.byteLength||!Re(new Pe(m),new Pe(w)));case d:case h:case x:return Hs(+m,+w);case f:return m.name==w.name&&m.message==w.message;case M:case X:return m==w+"";case v:var ze=ne;case z:var at=ie&s;if(ze||(ze=fe),m.size!=w.size&&!at)return!1;var Xe=He.get(m);if(Xe)return Xe==w;ie|=a,He.set(m,w);var At=Yr(ze(m),ze(w),ie,Fe,Re,He);return He.delete(m),At;case H:if(Cn)return Cn.call(m)==Cn.call(w)}return!1}function Oo(m,w,D,ie,Fe,Re){var He=D&s,ze=Wn(m),at=ze.length,Xe=Wn(w),At=Xe.length;if(at!=At&&!He)return!1;for(var Ct=at;Ct--;){var ut=ze[Ct];if(!(He?ut in w:$e.call(w,ut)))return!1}var wt=Re.get(m);if(wt&&Re.get(w))return wt==w;var mt=!0;Re.set(m,w),Re.set(w,m);for(var In=He;++Ct<at;){ut=ze[Ct];var bn=m[ut],Kn=w[ut];if(ie)var Qc=He?ie(Kn,bn,ut,w,m,Re):ie(bn,Kn,ut,m,w,Re);if(!(Qc===void 0?bn===Kn||Fe(bn,Kn,D,ie,Re):Qc)){mt=!1;break}In||(In=ut=="constructor")}if(mt&&!In){var Ys=m.constructor,Zs=w.constructor;Ys!=Zs&&"constructor"in m&&"constructor"in w&&!(typeof Ys=="function"&&Ys instanceof Ys&&typeof Zs=="function"&&Zs instanceof Zs)&&(mt=!1)}return Re.delete(m),Re.delete(w),mt}function Wn(m){return Rn(m,Jr,Co)}function Zt(m,w){var D=m.__data__;return Io(w)?D[typeof w=="string"?"string":"hash"]:D.map}function vn(m,w){var D=Q(m,w);return wo(D)?D:void 0}function yn(m){var w=$e.call(m,be),D=m[be];try{m[be]=void 0;var ie=!0}catch{}var Fe=it.call(m);return ie&&(w?m[be]=D:delete m[be]),Fe}var Co=Ce?function(m){return m==null?[]:(m=Object(m),B(Ce(m),function(w){return We.call(m,w)}))}:Po,on=Yt;(Ve&&on(new Ve(new ArrayBuffer(1)))!=P||Ke&&on(new Ke)!=v||et&&on(et.resolve())!=I||dt&&on(new dt)!=z||ft&&on(new ft)!=G)&&(on=function(m){var w=Yt(m),D=w==S?m.constructor:void 0,ie=D?St(D):"";if(ie)switch(ie){case Ut:return P;case lt:return v;case Ot:return I;case Xt:return z;case Hn:return G}return w});function Ro(m,w){return w=w??o,!!w&&(typeof m=="number"||xe.test(m))&&m>-1&&m%1==0&&m<w}function Io(m){var w=typeof m;return w=="string"||w=="number"||w=="symbol"||w=="boolean"?m!=="__proto__":m===null}function Lo(m){return!!rt&&rt in m}function ko(m){var w=m&&m.constructor,D=typeof w=="function"&&w.prototype||Ge;return m===D}function zs(m){return it.call(m)}function St(m){if(m!=null){try{return Be.call(m)}catch{}try{return m+""}catch{}}return""}function Hs(m,w){return m===w||m!==m&&w!==w}var Gs=_s(function(){return arguments}())?_s:function(m){return an(m)&&$e.call(m,"callee")&&!We.call(m,"callee")},Er=Array.isArray;function Zr(m){return m!=null&&Qr(m.length)&&!Ws(m)}var Ar=Le||Fo;function Bo(m,w){return qs(m,w)}function Ws(m){if(!Ks(m))return!1;var w=Yt(m);return w==g||w==p||w==c||w==F}function Qr(m){return typeof m=="number"&&m>-1&&m%1==0&&m<=o}function Ks(m){var w=typeof m;return m!=null&&(w=="object"||w=="function")}function an(m){return m!=null&&typeof m=="object"}var Xs=L?Z(L):So;function Jr(m){return Zr(m)?Gn(m):To(m)}function Po(){return[]}function Fo(){return!1}n.exports=Bo}(kr,kr.exports)),kr.exports}var vs={},hl;function C0(){if(hl)return vs;hl=1,Object.defineProperty(vs,"__esModule",{value:!0});const n=ul(),e=fl();var t;return function(r){function s(i={},c={},d=!1){typeof i!="object"&&(i={}),typeof c!="object"&&(c={});let h=n(c);d||(h=Object.keys(h).reduce((f,g)=>(h[g]!=null&&(f[g]=h[g]),f),{}));for(const f in i)i[f]!==void 0&&c[f]===void 0&&(h[f]=i[f]);return Object.keys(h).length>0?h:void 0}r.compose=s;function a(i={},c={}){typeof i!="object"&&(i={}),typeof c!="object"&&(c={});const d=Object.keys(i).concat(Object.keys(c)).reduce((h,f)=>(e(i[f],c[f])||(h[f]=c[f]===void 0?null:c[f]),h),{});return Object.keys(d).length>0?d:void 0}r.diff=a;function o(i={},c={}){i=i||{};const d=Object.keys(c).reduce((h,f)=>(c[f]!==i[f]&&i[f]!==void 0&&(h[f]=c[f]),h),{});return Object.keys(i).reduce((h,f)=>(i[f]!==c[f]&&c[f]===void 0&&(h[f]=null),h),d)}r.invert=o;function l(i,c,d=!1){if(typeof i!="object")return c;if(typeof c!="object")return;if(!d)return c;const h=Object.keys(c).reduce((f,g)=>(i[g]===void 0&&(f[g]=c[g]),f),{});return Object.keys(h).length>0?h:void 0}r.transform=l}(t||(t={})),vs.default=t,vs}var ys={},pl;function ml(){if(pl)return ys;pl=1,Object.defineProperty(ys,"__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={})),ys.default=n,ys}var bs={},gl;function R0(){if(gl)return bs;gl=1,Object.defineProperty(bs,"__esModule",{value:!0});const n=ml();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 a=this.offset,o=n.default.length(s);if(r>=o-a?(r=o-a,this.index+=1,this.offset=0):this.offset+=r,typeof s.delete=="number")return{delete:r};{const l={};return s.attributes&&(l.attributes=s.attributes),typeof s.retain=="number"?l.retain=r:typeof s.retain=="object"&&s.retain!==null?l.retain=s.retain:typeof s.insert=="string"?l.insert=s.insert.substr(a,r):l.insert=s.insert,l}}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,a=this.next(),o=this.ops.slice(this.index);return this.offset=r,this.index=s,[a].concat(o)}}else return[]}}return bs.default=e,bs}var vl;function I0(){return vl||(vl=1,function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.AttributeMap=e.OpIterator=e.Op=void 0;const t=O0(),r=ul(),s=fl(),a=C0();e.AttributeMap=a.default;const o=ml();e.Op=o.default;const l=R0();e.OpIterator=l.default;const i="\0",c=(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 g=Object.keys(h)[0];if(!g||g!==Object.keys(f)[0])throw new Error(`embed types not matched: ${g} != ${Object.keys(f)[0]}`);return[g,h[g],f[g]]};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,g){this.handlers[f]=g}static unregisterEmbed(f){delete this.handlers[f]}static getHandler(f){const g=this.handlers[f];if(!g)throw new Error(`no handlers for embed type "${f}"`);return g}insert(f,g){const p={};return typeof f=="string"&&f.length===0?this:(p.insert=f,g!=null&&typeof g=="object"&&Object.keys(g).length>0&&(p.attributes=g),this.push(p))}delete(f){return f<=0?this:this.push({delete:f})}retain(f,g){if(typeof f=="number"&&f<=0)return this;const p={retain:f};return g!=null&&typeof g=="object"&&Object.keys(g).length>0&&(p.attributes=g),this.push(p)}push(f){let g=this.ops.length,p=this.ops[g-1];if(f=r(f),typeof p=="object"){if(typeof f.delete=="number"&&typeof p.delete=="number")return this.ops[g-1]={delete:p.delete+f.delete},this;if(typeof p.delete=="number"&&f.insert!=null&&(g-=1,p=this.ops[g-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[g-1]={insert:p.insert+f.insert},typeof f.attributes=="object"&&(this.ops[g-1].attributes=f.attributes),this;if(typeof f.retain=="number"&&typeof p.retain=="number")return this.ops[g-1]={retain:p.retain+f.retain},typeof f.attributes=="object"&&(this.ops[g-1].attributes=f.attributes),this}}return g===this.ops.length?this.ops.push(f):this.ops.splice(g,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 g=[],p=[];return this.forEach(v=>{(f(v)?g:p).push(v)}),[g,p]}reduce(f,g){return this.ops.reduce(f,g)}changeLength(){return this.reduce((f,g)=>g.insert?f+o.default.length(g):g.delete?f-g.delete:f,0)}length(){return this.reduce((f,g)=>f+o.default.length(g),0)}slice(f=0,g=1/0){const p=[],v=new l.default(this.ops);let x=0;for(;x<g&&v.hasNext();){let T;x<f?T=v.next(f-x):(T=v.next(g-x),p.push(T)),x+=o.default.length(T)}return new d(p)}compose(f){const g=new l.default(this.ops),p=new l.default(f.ops),v=[],x=p.peek();if(x!=null&&typeof x.retain=="number"&&x.attributes==null){let S=x.retain;for(;g.peekType()==="insert"&&g.peekLength()<=S;)S-=g.peekLength(),v.push(g.next());x.retain-S>0&&p.next(x.retain-S)}const T=new d(v);for(;g.hasNext()||p.hasNext();)if(p.peekType()==="insert")T.push(p.next());else if(g.peekType()==="delete")T.push(g.next());else{const S=Math.min(g.peekLength(),p.peekLength()),I=g.next(S),F=p.next(S);if(F.retain){const M={};if(typeof I.retain=="number")M.retain=typeof F.retain=="number"?S:F.retain;else if(typeof F.retain=="number")I.retain==null?M.insert=I.insert:M.retain=I.retain;else{const X=I.retain==null?"insert":"retain",[H,re,G]=c(I[X],F.retain),E=d.getHandler(H);M[X]={[H]:E.compose(re,G,X==="retain")}}const z=a.default.compose(I.attributes,F.attributes,typeof I.retain=="number");if(z&&(M.attributes=z),T.push(M),!p.hasNext()&&s(T.ops[T.ops.length-1],M)){const X=new d(g.rest());return T.concat(X).chop()}}else typeof F.delete=="number"&&(typeof I.retain=="number"||typeof I.retain=="object"&&I.retain!==null)&&T.push(F)}return T.chop()}concat(f){const g=new d(this.ops.slice());return f.ops.length>0&&(g.push(f.ops[0]),g.ops=g.ops.concat(f.ops.slice(1))),g}diff(f,g){if(this.ops===f.ops)return new d;const p=[this,f].map(I=>I.map(F=>{if(F.insert!=null)return typeof F.insert=="string"?F.insert:i;const M=I===f?"on":"with";throw new Error("diff() called "+M+" non-document")}).join("")),v=new d,x=t(p[0],p[1],g,!0),T=new l.default(this.ops),S=new l.default(f.ops);return x.forEach(I=>{let F=I[1].length;for(;F>0;){let M=0;switch(I[0]){case t.INSERT:M=Math.min(S.peekLength(),F),v.push(S.next(M));break;case t.DELETE:M=Math.min(F,T.peekLength()),T.next(M),v.delete(M);break;case t.EQUAL:M=Math.min(T.peekLength(),S.peekLength(),F);const z=T.next(M),X=S.next(M);s(z.insert,X.insert)?v.retain(M,a.default.diff(z.attributes,X.attributes)):v.push(X).delete(M);break}F-=M}}),v.chop()}eachLine(f,g=`
6
- `){const p=new l.default(this.ops);let v=new d,x=0;for(;p.hasNext();){if(p.peekType()!=="insert")return;const T=p.peek(),S=o.default.length(T)-p.peekLength(),I=typeof T.insert=="string"?T.insert.indexOf(g,S)-S:-1;if(I<0)v.push(p.next());else if(I>0)v.push(p.next(I));else{if(f(v,p.next(1).attributes||{},x)===!1)return;x+=1,v=new d}}v.length()>0&&f(v,{},x)}invert(f){const g=new d;return this.reduce((p,v)=>{if(v.insert)g.delete(o.default.length(v));else{if(typeof v.retain=="number"&&v.attributes==null)return g.retain(v.retain),p+v.retain;if(v.delete||typeof v.retain=="number"){const x=v.delete||v.retain;return f.slice(p,p+x).forEach(S=>{v.delete?g.push(S):v.retain&&v.attributes&&g.retain(o.default.length(S),a.default.invert(v.attributes,S.attributes))}),p+x}else if(typeof v.retain=="object"&&v.retain!==null){const x=f.slice(p,p+1),T=new l.default(x.ops).next(),[S,I,F]=c(v.retain,T.insert),M=d.getHandler(S);return g.retain({[S]:M.invert(I,F)},a.default.invert(v.attributes,T.attributes)),p+1}}return p},0),g.chop()}transform(f,g=!1){if(g=!!g,typeof f=="number")return this.transformPosition(f,g);const p=f,v=new l.default(this.ops),x=new l.default(p.ops),T=new d;for(;v.hasNext()||x.hasNext();)if(v.peekType()==="insert"&&(g||x.peekType()!=="insert"))T.retain(o.default.length(v.next()));else if(x.peekType()==="insert")T.push(x.next());else{const S=Math.min(v.peekLength(),x.peekLength()),I=v.next(S),F=x.next(S);if(I.delete)continue;if(F.delete)T.push(F);else{const M=I.retain,z=F.retain;let X=typeof z=="object"&&z!==null?z:S;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],g)})}}T.retain(X,a.default.transform(I.attributes,F.attributes,g))}}return T.chop()}transformPosition(f,g=!1){g=!!g;const p=new l.default(this.ops);let v=0;for(;p.hasNext()&&v<=f;){const x=p.peekLength(),T=p.peekType();if(p.next(),T==="delete"){f-=Math.min(x,f-v);continue}else T==="insert"&&(v<f||!g)&&(f+=x);v+=x}return f}}d.Op=o.default,d.OpIterator=l.default,d.AttributeMap=a.default,d.handlers={},e.default=d,n.exports=d,n.exports.default=d}(gs,gs.exports)),gs.exports}var kt=I0();const Te=Ri(kt);class _t extends Rt{static value(){}optimize(){(this.prev||this.next)&&this.remove()}length(){return 0}value(){return""}}_t.blotName="break",_t.tagName="BR";let qt=class extends ms{};const L0={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function xs(n){return n.replace(/[&<>"']/g,e=>L0[e])}const sn=class sn extends Ti{static compare(e,t){const r=sn.order.indexOf(e),s=sn.order.indexOf(t);return r>=0||s>=0?r-s:e===t?0:e<t?-1:1}formatAt(e,t,r,s){if(sn.compare(this.statics.blotName,r)<0&&this.scroll.query(r,Ne.BLOT)){const a=this.isolate(e,t);s&&a.wrap(r,s)}else super.formatAt(e,t,r,s)}optimize(e){if(super.optimize(e),this.parent instanceof sn&&sn.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(sn,"allowedChildren",[sn,_t,Rt,qt]),Ee(sn,"order",["cursor","inline","link","underline","strike","italic","bold","script","code"]);let tn=sn;const yl=1;class ht extends Ir{constructor(){super(...arguments);Ee(this,"cache",{})}delta(){return this.cache.delta==null&&(this.cache.delta=bl(this)),this.cache.delta}deleteAt(t,r){super.deleteAt(t,r),this.cache={}}formatAt(t,r,s,a){r<=0||(this.scroll.query(s,Ne.BLOCK)?t+r===this.length()&&this.format(s,a):super.formatAt(t,Math.min(r,this.length()-t-1),s,a),this.cache={})}insertAt(t,r,s){if(s!=null){super.insertAt(t,r,s),this.cache={};return}if(r.length===0)return;const a=r.split(`
7
- `),o=a.shift();o.length>0&&(t<this.length()-1||this.children.tail==null?super.insertAt(Math.min(t,this.length()-1),o):this.children.tail.insertAt(this.children.tail.length(),o),this.cache={});let l=this;a.reduce((i,c)=>(l=l.split(i,!0),l.insertAt(0,c),c.length),t+o.length)}insertBefore(t,r){const{head:s}=this.children;super.insertBefore(t,r),s instanceof _t&&s.remove(),this.cache={}}length(){return this.cache.length==null&&(this.cache.length=super.length()+yl),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()-yl)){const a=this.clone();return t===0?(this.parent.insertBefore(a,this),this):(this.parent.insertBefore(a,this.next),a)}const s=super.split(t,r);return this.cache={},s}}ht.blotName="block",ht.tagName="P",ht.defaultChild=_t,ht.allowedChildren=[_t,tn,Rt,qt];class Bt extends Rt{attach(){super.attach(),this.attributes=new hs(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(`
8
- `),a=s.pop(),o=s.map(i=>{const c=this.scroll.create(ht.blotName);return c.insertAt(0,i),c}),l=this.split(e);o.forEach(i=>{this.parent.insertBefore(i,l)}),a&&this.parent.insertBefore(this.scroll.create("text",a),l)}}Bt.scope=Ne.BLOCK_BLOT;function bl(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return n.descendants(gt).reduce((t,r)=>r.length()===0?t:t.insert(r.value(),Pt(r,{},e)),new Te).insert(`
9
- `,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 Rt{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 qt?this.prev:null,r=t?t.length():0,s=this.next instanceof qt?this.next:null,a=s?s.text:"",{textNode:o}=this,l=o.data.split(Mt.CONTENTS).join("");o.data=Mt.CONTENTS;let i;if(t)i=t,(l||s)&&(t.insertAt(t.length(),l+a),s&&s.remove());else if(s)i=s,s.insertAt(0,l);else{const c=document.createTextNode(l);i=this.scroll.create(c),this.parent.insertBefore(i,this)}if(this.remove(),e){const c=(f,g)=>t&&f===t.domNode?g:f===o?r+g-1:s&&f===s.domNode?r+l.length+g:null,d=c(e.start.node,e.start.offset),h=c(e.end.node,e.end.offset);if(d!==null&&h!==null)return{startNode:i.domNode,startOffset:d,endNode:i.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 sr=Mt;var Li={exports:{}},xl;function k0(){return xl||(xl=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(i,c,d){this.fn=i,this.context=c,this.once=d||!1}function a(i,c,d,h,f){if(typeof d!="function")throw new TypeError("The listener must be a function");var g=new s(d,h||i,f),p=t?t+c:c;return i._events[p]?i._events[p].fn?i._events[p]=[i._events[p],g]:i._events[p].push(g):(i._events[p]=g,i._eventsCount++),i}function o(i,c){--i._eventsCount===0?i._events=new r:delete i._events[c]}function l(){this._events=new r,this._eventsCount=0}l.prototype.eventNames=function(){var c=[],d,h;if(this._eventsCount===0)return c;for(h in d=this._events)e.call(d,h)&&c.push(t?h.slice(1):h);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(d)):c},l.prototype.listeners=function(c){var d=t?t+c:c,h=this._events[d];if(!h)return[];if(h.fn)return[h.fn];for(var f=0,g=h.length,p=new Array(g);f<g;f++)p[f]=h[f].fn;return p},l.prototype.listenerCount=function(c){var d=t?t+c:c,h=this._events[d];return h?h.fn?1:h.length:0},l.prototype.emit=function(c,d,h,f,g,p){var v=t?t+c:c;if(!this._events[v])return!1;var x=this._events[v],T=arguments.length,S,I;if(x.fn){switch(x.once&&this.removeListener(c,x.fn,void 0,!0),T){case 1:return x.fn.call(x.context),!0;case 2:return x.fn.call(x.context,d),!0;case 3:return x.fn.call(x.context,d,h),!0;case 4:return x.fn.call(x.context,d,h,f),!0;case 5:return x.fn.call(x.context,d,h,f,g),!0;case 6:return x.fn.call(x.context,d,h,f,g,p),!0}for(I=1,S=new Array(T-1);I<T;I++)S[I-1]=arguments[I];x.fn.apply(x.context,S)}else{var F=x.length,M;for(I=0;I<F;I++)switch(x[I].once&&this.removeListener(c,x[I].fn,void 0,!0),T){case 1:x[I].fn.call(x[I].context);break;case 2:x[I].fn.call(x[I].context,d);break;case 3:x[I].fn.call(x[I].context,d,h);break;case 4:x[I].fn.call(x[I].context,d,h,f);break;default:if(!S)for(M=1,S=new Array(T-1);M<T;M++)S[M-1]=arguments[M];x[I].fn.apply(x[I].context,S)}}return!0},l.prototype.on=function(c,d,h){return a(this,c,d,h,!1)},l.prototype.once=function(c,d,h){return a(this,c,d,h,!0)},l.prototype.removeListener=function(c,d,h,f){var g=t?t+c:c;if(!this._events[g])return this;if(!d)return o(this,g),this;var p=this._events[g];if(p.fn)p.fn===d&&(!f||p.once)&&(!h||p.context===h)&&o(this,g);else{for(var v=0,x=[],T=p.length;v<T;v++)(p[v].fn!==d||f&&!p[v].once||h&&p[v].context!==h)&&x.push(p[v]);x.length?this._events[g]=x.length===1?x[0]:x:o(this,g)}return this},l.prototype.removeAllListeners=function(c){var d;return c?(d=t?t+c:c,this._events[d]&&o(this,d)):(this._events=new r,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=t,l.EventEmitter=l,n.exports=l}(Li)),Li.exports}var B0=k0();const P0=Ri(B0),ki=new WeakMap,Bi=["error","warn","log","info"];let Pi="warn";function El(n){if(Pi&&Bi.indexOf(n)<=Bi.indexOf(Pi)){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 dn(n){return Bi.reduce((e,t)=>(e[t]=El.bind(console,t,n),e),{})}dn.level=n=>{Pi=n},El.level=dn.level;const Fi=dn("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 a=ki.get(s);a&&a.emitter&&a.emitter.handleDOM(...t)})})});class Se extends P0{constructor(){super(),this.domListeners={},this.on("error",Fi.error)}emit(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Fi.log.call(Fi,...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(a=>{let{node:o,handler:l}=a;(e.target===o||o.contains(e.target))&&l(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 Mi=dn("quill:selection");class Un{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.index=e,this.length=t}}class F0{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 Un(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,a)=>{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 o=a.some(l=>l.type==="characterData"||l.type==="childList"||l.type==="attributes"&&l.target===this.root);this.update(o?Se.sources.SILENT:s)}catch{}})}),this.emitter.on(Se.events.SCROLL_OPTIMIZE,(r,s)=>{if(s.range){const{startNode:a,startOffset:o,endNode:l,endOffset:i}=s.range;this.setNativeRange(a,o,l,i),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 gt){const a=s.split(r.start.offset);s.parent.insertBefore(this.cursor,a)}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,[a,o]=this.scroll.leaf(e);if(a==null)return null;if(t>0&&o===a.length()){const[d]=this.scroll.leaf(e+1);if(d){const[h]=this.scroll.line(e),[f]=this.scroll.line(e+1);h===f&&(a=d,o=0)}}[s,o]=a.position(o,!0);const l=document.createRange();if(t>0)return l.setStart(s,o),[a,o]=this.scroll.leaf(e+t),a==null?null:([s,o]=a.position(o,!0),l.setEnd(s,o),l.getBoundingClientRect());let i="left",c;if(s instanceof Text){if(!s.data.length)return null;o<s.data.length?(l.setStart(s,o),l.setEnd(s,o+1)):(l.setStart(s,o-1),l.setEnd(s,o),i="right"),c=l.getBoundingClientRect()}else{if(!(a.domNode instanceof Element))return null;c=a.domNode.getBoundingClientRect(),o>0&&(i="right")}return{bottom:c.top+c.height,height:c.height,left:c[i],right:c[i],top:c.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 Mi.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&&Di(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(o=>{const[l,i]=o,c=this.scroll.find(l,!0),d=c.offset(this.scroll);return i===0?d:c instanceof gt?d+c.index(l,i):d+c.length()}),s=Math.min(Math.max(...r),this.scroll.length()-1),a=Math.min(s,...r);return new Un(a,s-a)}normalizeNative(e){if(!Di(this.root,e.startContainer)||!e.collapsed&&!Di(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:a}=r;for(;!(s instanceof Text)&&s.childNodes.length>0;)if(s.childNodes.length>a)s=s.childNodes[a],a=0;else if(s.childNodes.length===a)s=s.lastChild,s instanceof Text?a=s.data.length:s.childNodes.length>0?a=s.childNodes.length:a=s.childNodes.length+1;else break;r.node=s,r.offset=a}),t}rangeToNative(e){const t=this.scroll.length(),r=(s,a)=>{s=Math.min(t-1,s);const[o,l]=this.scroll.leaf(s);return o?o.position(l,a):[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,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(Mi.info("setNativeRange",e,t,r,s),e!=null&&(this.root.parentNode==null||e.parentNode==null||r.parentNode==null))return;const o=document.getSelection();if(o!=null)if(e!=null){this.hasFocus()||this.root.focus({preventScroll:!0});const{native:l}=this.getNativeRange()||{};if(l==null||a||e!==l.startContainer||t!==l.startOffset||r!==l.endContainer||s!==l.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 i=document.createRange();i.setStart(e,t),i.setEnd(r,s),o.removeAllRanges(),o.addRange(i)}}else o.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),Mi.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),!wi(t,this.lastRange)){if(!this.composing&&s!=null&&s.native.collapsed&&s.start.node!==this.cursor.textNode){const o=this.cursor.restore();o&&this.setNativeRange(o.startNode,o.startOffset,o.endNode,o.endOffset)}const a=[Se.events.SELECTION_CHANGE,Qn(this.lastRange),Qn(t),e];this.emitter.emit(Se.events.EDITOR_CHANGE,...a),e!==Se.sources.SILENT&&this.emitter.emit(...a)}}}function Di(n,e){try{e.parentNode}catch{return!1}return n.contains(e)}const M0=/^[ -~]*$/;class D0{constructor(e){this.scroll=e,this.delta=this.getDelta()}applyDelta(e){this.scroll.update();let t=this.scroll.length();this.scroll.batchStart();const r=Al(e),s=new Te;return j0(r.ops.slice()).reduce((o,l)=>{const i=kt.Op.length(l);let c=l.attributes||{},d=!1,h=!1;if(l.insert!=null){if(s.retain(i),typeof l.insert=="string"){const p=l.insert;h=!p.endsWith(`
10
- `)&&(t<=o||!!this.scroll.descendant(Bt,o)[0]),this.scroll.insertAt(o,p);const[v,x]=this.scroll.line(o);let T=wn({},Pt(v));if(v instanceof ht){const[S]=v.descendant(gt,x);S&&(T=wn(T,Pt(S)))}c=kt.AttributeMap.diff(T,c)||{}}else if(typeof l.insert=="object"){const p=Object.keys(l.insert)[0];if(p==null)return o;const v=this.scroll.query(p,Ne.INLINE)!=null;if(v)(t<=o||this.scroll.descendant(Bt,o)[0])&&(h=!0);else if(o>0){const[x,T]=this.scroll.descendant(gt,o-1);x instanceof qt?x.value()[T]!==`
11
- `&&(d=!0):x instanceof Rt&&x.statics.scope===Ne.INLINE_BLOT&&(d=!0)}if(this.scroll.insertAt(o,p,l.insert[p]),v){const[x]=this.scroll.descendant(gt,o);if(x){const T=wn({},Pt(x));c=kt.AttributeMap.diff(T,c)||{}}}}t+=i}else if(s.push(l),l.retain!==null&&typeof l.retain=="object"){const p=Object.keys(l.retain)[0];if(p==null)return o;this.scroll.updateEmbedAt(o,p,l.retain[p])}Object.keys(c).forEach(p=>{this.scroll.formatAt(o,i,p,c[p])});const f=d?1:0,g=h?1:0;return t+=f+g,s.retain(f),s.delete(g),o+i+f+g},0),s.reduce((o,l)=>typeof l.delete=="number"?(this.scroll.deleteAt(o,l.delete),o):o+kt.Op.length(l),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(a=>{this.scroll.lines(e,Math.max(t,1)).forEach(o=>{o.format(a,r[a])})}),this.scroll.optimize();const s=new Te().retain(e).retain(t,Qn(r));return this.update(s)}formatText(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.keys(r).forEach(a=>{this.scroll.formatAt(e,t,a,r[a])});const s=new Te().retain(e).retain(t,Qn(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(l=>{const[i]=l;i instanceof ht?r.push(i):i instanceof gt&&s.push(i)}):(r=this.scroll.lines(e,t),s=this.scroll.descendants(gt,e,t));const[a,o]=[r,s].map(l=>{const i=l.shift();if(i==null)return{};let c=Pt(i);for(;Object.keys(c).length>0;){const d=l.shift();if(d==null)return c;c=U0(Pt(d),c)}return c});return{...a,...o}}getHTML(e,t){const[r,s]=this.scroll.line(e);if(r){const a=r.length();return r.length()>=s+t&&!(s===0&&t===a)?Br(r,s,t,!0):Br(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=Al(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,`
5
+ */const Go=["viewport","carousel"],ns={"bottom-to-top":"btt","left-to-right":"ltr","right-to-left":"rtl","top-to-bottom":"ttb"},Wo=["ltr","left-to-right","rtl","right-to-left","ttb","top-to-bottom","btt","bottom-to-top"],Xd={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}"},Ko=["slide","fade"],Xo=["center","start","end","center-even","center-odd"],Yo=10,rs=.3,tt={autoplay:0,breakpointMode:Go[0],breakpoints:void 0,dir:Wo[0],enabled:!0,gap:0,height:"auto",i18n:Xd,ignoreAnimations:!1,itemsToScroll:1,itemsToShow:1,modelValue:0,mouseDrag:!0,mouseWheel:!1,pauseAutoplayOnHover:!1,preventExcessiveDragging:!1,slideEffect:Ko[0],snapAlign:Xo[0],touchDrag:!0,transition:300,wrapAround:!1},kn=Symbol("carousel"),Yd=n=>{const e=u.shallowReactive([]),t=r=>{r!==void 0?e.slice(r).forEach((s,a)=>{var o;(o=s.exposed)===null||o===void 0||o.setIndex(r+a)}):e.forEach((s,a)=>{var o;(o=s.exposed)===null||o===void 0||o.setIndex(a)})};return{cleanup:()=>{e.splice(0,e.length)},getSlides:()=>e,registerSlide:(r,s)=>{if(!r||r.props.isClone)return;const a=s??e.length;e.splice(a,0,r),t(a),n("slide-registered",{slide:r,index:a})},unregisterSlide:r=>{const s=e.indexOf(r);s!==-1&&(n("slide-unregistered",{slide:r,index:s}),e.splice(s,1),t(s))}}};function Zd(n){return n.length===0?0:n.reduce((t,r)=>t+r,0)/n.length}function Zo({slides:n,position:e,toShow:t}){const r=[],s=e==="before",a=s?-t:0,o=s?0:t;if(n.length<=0)return r;for(let c=a;c<o;c++){const l={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=u.cloneVNode(d,l);h.el=null,r.push(h)}return r}const Qd='a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])';function Qo(n){if(!n.el||!(n.el instanceof Element))return;const e=n.el.querySelectorAll(Qd);for(const t of e)t instanceof HTMLElement&&!t.hasAttribute("disabled")&&t.getAttribute("aria-hidden")!=="true"&&t.setAttribute("tabindex","-1")}function Jd(n,e){return Object.keys(n).filter(t=>!e.includes(t)).reduce((t,r)=>(t[r]=n[r],t),{})}function ef(n){const{isVertical:e,isReversed:t,dragged:r,effectiveSlideSize:s,threshold:a}=n,o=e?r.y:r.x;if(o===0)return 0;const c=o/s,i=Math.abs(c);if(i<a)return 0;const l=i<1?Math.sign(c):Math.round(c);return t?l:-l}function ln({val:n,max:e,min:t}){return e<t?n:Math.min(Math.max(n,isNaN(t)?n:t),isNaN(e)?n:e)}function tf(n){const{transform:e}=window.getComputedStyle(n);return e.split(/[(,)]/).slice(1,-1).map(t=>parseFloat(t))}function nf(n){let e=1,t=1;return n.forEach(r=>{const s=tf(r);s.length===6&&(e/=s[0],t/=s[3])}),{widthMultiplier:e,heightMultiplier:t}}function rf(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 sf(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 ri({slideSize:n,viewportSize:e,align:t,itemsToShow:r}){return r!==void 0?rf(t,r):n!==void 0&&e!==void 0?sf(t,n,e):0}function Jo(n="",e={}){return Object.entries(e).reduce((t,[r,s])=>t.replace(`{${r}}`,String(s)),n)}function ea({val:n,max:e,min:t=0}){const r=e-t+1;return((n-t)%r+r)%r+t}function si(n,e=0){let t=!1,r=0,s=null;function a(...o){if(t)return;t=!0;const c=()=>{s=requestAnimationFrame(i=>{i-r>e?(r=i,n(...o),t=!1):c()})};c()}return a.cancel=()=>{s&&(cancelAnimationFrame(s),s=null,t=!1)},a}function ss(n,e="px"){if(!(n==null||n===""))return typeof n=="number"||parseFloat(n).toString()===n?`${n}${e}`:n}const of=u.defineComponent({name:"CarouselAria",setup(){const n=u.inject(kn);return n?()=>u.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},Jo(n.config.i18n.itemXofY,{currentSlide:n.currentSlide+1,slidesCount:n.slidesCount})):()=>""}});function af(n){let e=!1;const t={x:0,y:0},r=u.reactive({x:0,y:0}),s=u.ref(!1),{isSliding:a}=n,o=u.computed(()=>typeof a=="boolean"?a:a.value),c=d=>{var h;const f=d.target.tagName;if(["INPUT","TEXTAREA","SELECT"].includes(f)||o.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 g=e?"touchmove":"mousemove",p=e?"touchend":"mouseup";document.addEventListener(g,i,{passive:!1}),document.addEventListener(p,l,{passive:!0}),(h=n.onDragStart)===null||h===void 0||h.call(n)},i=si(d=>{var h;if(e&&d.touches.length>1)return;s.value=!0;const f=e?d.touches[0].clientX:d.clientX,g=e?d.touches[0].clientY:d.clientY;r.x=f-t.x,r.y=g-t.y,(h=n.onDrag)===null||h===void 0||h.call(n,{deltaX:r.x,deltaY:r.y,isTouch:e})}),l=()=>{var d;i.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",g=e?"touchend":"mouseup";document.removeEventListener(f,i),document.removeEventListener(g,l)};return{dragged:r,isDragging:s,handleDragStart:c}}function lf(){const n=u.ref(!1);return{isHover:n,handleMouseEnter:()=>{n.value=!0},handleMouseLeave:()=>{n.value=!1}}}function cf(n){const{isVertical:e,isSliding:t,config:r}=n,s=u.computed(()=>typeof e=="boolean"?e:e.value),a=u.computed(()=>typeof t=="boolean"?t:t.value);return{handleScroll:c=>{var i,l;if(c.preventDefault(),!r.mouseWheel||a.value)return;const d=typeof r.mouseWheel=="object"&&(i=r.mouseWheel.threshold)!==null&&i!==void 0?i:Yo,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 g=s.value?h:f,v=(g!==0?g:s.value?f:h)>0;(l=n.onWheel)===null||l===void 0||l.call(n,{deltaX:f,deltaY:h,isScrollingForward:v})}}}const uf={autoplay:{default:tt.autoplay,type:Number},breakpoints:{default:tt.breakpoints,type:Object},breakpointMode:{default:tt.breakpointMode,validator(n){return Go.includes(n)}},clamp:{type:Boolean},dir:{type:String,default:tt.dir,validator(n,e){if(!Wo.includes(n))return!1;const t=n in ns?ns[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:tt.enabled,type:Boolean},gap:{default:tt.gap,type:Number},height:{default:tt.height,type:[Number,String]},i18n:{default:tt.i18n,type:Object},ignoreAnimations:{default:!1,type:[Array,Boolean,String]},itemsToScroll:{default:tt.itemsToScroll,type:Number},itemsToShow:{default:tt.itemsToShow,type:[Number,String]},modelValue:{default:void 0,type:Number},mouseDrag:{default:tt.mouseDrag,type:[Boolean,Object]},mouseWheel:{default:tt.mouseWheel,type:[Boolean,Object]},mouseScrollThreshold:{default:tt.mouseScrollThreshold,type:Number},pauseAutoplayOnHover:{default:tt.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:tt.slideEffect,validator(n){return Ko.includes(n)}},snapAlign:{default:tt.snapAlign,validator(n){return Xo.includes(n)}},touchDrag:{default:tt.touchDrag,type:[Boolean,Object]},transition:{default:tt.transition,type:Number},wrapAround:{default:tt.wrapAround,type:Boolean}},df=u.defineComponent({name:"VueCarousel",props:uf,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 a=Yd(t),o=a.getSlides(),c=u.computed(()=>o.length),i=u.ref(null),l=u.ref(null),d=u.ref(0),h=u.computed(()=>Object.assign(Object.assign(Object.assign({},tt),Jd(n,["breakpoints","modelValue"])),{i18n:Object.assign(Object.assign({},tt.i18n),n.i18n)})),f=u.shallowReactive(Object.assign({},h.value)),g=u.ref((s=n.modelValue)!==null&&s!==void 0?s:0),p=u.ref(g.value);u.watch(g,pe=>p.value=pe);const v=u.ref(0),x=u.computed(()=>Math.ceil((c.value-1)/2)),T=u.computed(()=>c.value-1),S=u.computed(()=>0);let I=null,F=null,M=null;const z=u.computed(()=>d.value+f.gap),X=u.computed(()=>{const pe=f.dir||"ltr";return pe in ns?ns[pe]:pe}),H=u.computed(()=>["rtl","btt"].includes(X.value)),re=u.computed(()=>["ttb","btt"].includes(X.value)),G=u.computed(()=>f.itemsToShow==="auto"),E=u.computed(()=>re.value?"height":"width");function P(){var pe;if(!he.value)return;const be=(h.value.breakpointMode==="carousel"?(pe=i.value)===null||pe===void 0?void 0:pe.getBoundingClientRect().width:typeof window<"u"?window.innerWidth:0)||0,Ce=Object.keys(n.breakpoints||{}).map(Ie=>Number(Ie)).sort((Ie,Ve)=>+Ve-+Ie),Le={};Ce.some(Ie=>be>=Ie?(Object.assign(Le,n.breakpoints[Ie]),Le.i18n&&Object.assign(Le.i18n,h.value.i18n,n.breakpoints[Ie].i18n),!0):!1),Object.assign(f,h.value,Le),G.value||(f.itemsToShow=ln({val:Number(f.itemsToShow),max:n.clamp?c.value:1/0,min:1}))}const O=si(()=>{P(),te(),J()}),_=u.shallowReactive(new Set),j=u.ref([]);function $({widthMultiplier:pe,heightMultiplier:be}){j.value=o.map(Ce=>{var Le;const Ie=(Le=Ce.exposed)===null||Le===void 0?void 0:Le.getBoundingRect();return{width:Ie.width*pe,height:Ie.height*be}})}const K=u.ref({width:0,height:0});function q({widthMultiplier:pe,heightMultiplier:be}){var Ce;const Le=((Ce=l.value)===null||Ce===void 0?void 0:Ce.getBoundingClientRect())||{width:0,height:0};K.value={width:Le.width*pe,height:Le.height*be}}function J(){if(!l.value)return;const pe=nf(_);if(q(pe),$(pe),G.value)d.value=Zd(j.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&&(g.value=ln({val:g.value,max:T.value,min:S.value}))}const me=u.computed(()=>typeof n.ignoreAnimations=="string"?n.ignoreAnimations.split(","):Array.isArray(n.ignoreAnimations)?n.ignoreAnimations:n.ignoreAnimations?!1:[]);u.watchEffect(()=>te()),u.watchEffect(()=>{J()});let ge;const ve=pe=>{const be=pe.target;if(!(!(be!=null&&be.contains(i.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=u.ref(!1);typeof document<"u"&&u.watchEffect(()=>{he.value&&me.value!==!1?(document.addEventListener("animationstart",ve),document.addEventListener("animationend",xe)):(document.removeEventListener("animationstart",ve),document.removeEventListener("animationend",xe))}),u.onMounted(()=>{he.value=!0,P(),y(),i.value&&(M=new ResizeObserver(O),M.observe(i.value)),t("init")}),u.onBeforeUnmount(()=>{he.value=!1,a.cleanup(),F&&clearTimeout(F),ge&&cancelAnimationFrame(ge),I&&clearInterval(I),M&&(M.disconnect(),M=null),typeof document<"u"&&A(),i.value&&(i.value.removeEventListener("transitionend",J),i.value.removeEventListener("animationiteration",J))});const{isHover:Oe,handleMouseEnter:ye,handleMouseLeave:N}=lf(),R=si(pe=>{if(!pe.ctrlKey)switch(pe.key){case"ArrowLeft":case"ArrowUp":re.value===pe.key.endsWith("Up")&&(H.value?oe(!0):fe(!0));break;case"ArrowRight":case"ArrowDown":re.value===pe.key.endsWith("Down")&&(H.value?fe(!0):oe(!0));break}},200),A=()=>{document.removeEventListener("keydown",R)},C=()=>{document.addEventListener("keydown",R)};function y(){!f.autoplay||f.autoplay<=0||(I=setInterval(()=>{f.pauseAutoplayOnHover&&Oe.value||oe()},f.autoplay))}function b(){L(),y()}function L(){I&&(clearInterval(I),I=null)}const B=u.ref(!1),U=({deltaX:pe,deltaY:be,isTouch:Ce})=>{var Le,Ie,Ve,Ke;t("drag",{deltaX:pe,deltaY:be});const et=Ce?typeof f.touchDrag=="object"&&(Ie=(Le=f.touchDrag)===null||Le===void 0?void 0:Le.threshold)!==null&&Ie!==void 0?Ie:rs:typeof f.mouseDrag=="object"&&(Ke=(Ve=f.mouseDrag)===null||Ve===void 0?void 0:Ve.threshold)!==null&&Ke!==void 0?Ke:rs,dt=ef({isVertical:re.value,isReversed:H.value,dragged:{x:pe,y:be},effectiveSlideSize:z.value,threshold:et});dt!==0&&(p.value=f.wrapAround?g.value+dt:ln({val:g.value+dt,max:T.value,min:S.value}))},V=()=>Ae(p.value),{dragged:W,isDragging:Z,handleDragStart:Y}=af({isSliding:B,onDrag:U,onDragEnd:V}),Q=({deltaX:pe,deltaY:be,isScrollingForward:Ce})=>{t("wheel",{deltaX:pe,deltaY:be}),Ce?H.value?fe():oe():H.value?oe():fe()},{handleScroll:ne}=cf({isVertical:re,isSliding:B,config:f,onWheel:Q});function oe(pe=!1){Ae(g.value+f.itemsToScroll,pe)}function fe(pe=!1){Ae(g.value-f.itemsToScroll,pe)}function Ae(pe,be=!1){if(!be&&B.value)return;let Ce=pe,Le=pe;v.value=g.value,f.wrapAround?Le=ea({val:Ce,max:T.value,min:S.value}):Ce=ln({val:Ce,max:T.value,min:S.value}),t("slide-start",{slidingToIndex:pe,currentSlideIndex:g.value,prevSlideIndex:v.value,slidesCount:c.value}),L(),B.value=!0,g.value=Ce,Le!==Ce&&Ge.pause(),t("update:modelValue",Le),F=setTimeout(()=>{f.wrapAround&&Le!==Ce&&(Ge.resume(),g.value=Le,t("loop",{currentSlideIndex:g.value,slidingToIndex:pe})),t("slide-end",{currentSlideIndex:g.value,prevSlideIndex:v.value,slidesCount:c.value}),B.value=!1,b()},f.transition)}function De(){P(),te(),J(),b()}u.watch(()=>[h.value,n.breakpoints],()=>P(),{deep:!0}),u.watch(()=>n.autoplay,()=>b());const Ge=u.watch(()=>n.modelValue,pe=>{pe!==g.value&&Ae(Number(pe),!0)});t("before-init");const je=u.computed(()=>{if(!f.wrapAround)return{before:0,after:0};if(G.value)return{before:o.length,after:o.length};const pe=Number(f.itemsToShow),be=Math.ceil(pe+(f.itemsToScroll-1)),Ce=be-p.value,Le=be-(c.value-(p.value+1));return{before:Math.max(0,Ce),after:Math.max(0,Le)}}),Be=u.computed(()=>je.value.before?G.value?j.value.slice(-1*je.value.before).reduce((pe,be)=>pe+be[E.value]+f.gap,0)*-1:je.value.before*z.value*-1:0),$e=u.computed(()=>{var pe;if(G.value){const be=(g.value%o.length+o.length)%o.length;return ri({slideSize:(pe=j.value[be])===null||pe===void 0?void 0:pe[E.value],viewportSize:K.value[E.value],align:f.snapAlign})}return ri({align:f.snapAlign,itemsToShow:+f.itemsToShow})}),rt=u.computed(()=>{let pe=0;if(G.value){if(g.value<0?pe=j.value.slice(g.value).reduce((be,Ce)=>be+Ce[E.value]+f.gap,0)*-1:pe=j.value.slice(0,g.value).reduce((be,Ce)=>be+Ce[E.value]+f.gap,0),pe-=$e.value,!f.wrapAround){const be=j.value.reduce((Ce,Le)=>Ce+Le[E.value]+f.gap,0)-K.value[E.value]-f.gap;pe=ln({val:pe,max:be,min:0})}}else{let be=g.value-$e.value;f.wrapAround||(be=ln({val:be,max:c.value-+f.itemsToShow,min:0})),pe=be*z.value}return pe*(H.value?1:-1)}),it=u.computed(()=>{var pe,be;if(!G.value){const Ie=g.value-$e.value;return f.wrapAround?{min:Math.floor(Ie),max:Math.ceil(Ie+Number(f.itemsToShow)-1)}:{min:Math.floor(ln({val:Ie,max:c.value-Number(f.itemsToShow),min:0})),max:Math.ceil(ln({val:Ie+Number(f.itemsToShow)-1,max:c.value-1,min:0}))}}let Ce=0;{let Ie=0,Ve=0-je.value.before;const Ke=Math.abs(rt.value+Be.value);for(;Ie<=Ke;){const et=(Ve%o.length+o.length)%o.length;Ie+=((pe=j.value[et])===null||pe===void 0?void 0:pe[E.value])+f.gap,Ve++}Ce=Ve-1}let Le=0;{let Ie=Ce,Ve=0;for(Ie<0?Ve=j.value.slice(0,Ie).reduce((Ke,et)=>Ke+et[E.value]+f.gap,0)-Math.abs(rt.value+Be.value):Ve=j.value.slice(0,Ie).reduce((Ke,et)=>Ke+et[E.value]+f.gap,0)-Math.abs(rt.value);Ve<K.value[E.value];){const Ke=(Ie%o.length+o.length)%o.length;Ve+=((be=j.value[Ke])===null||be===void 0?void 0:be[E.value])+f.gap,Ie++}Le=Ie-1}return{min:Math.floor(Ce),max:Math.ceil(Le)}}),Dt=u.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 Le=0;G.value?Le=j.value.reduce((Ke,et)=>Ke+et[E.value],0):Le=(c.value-Number(f.itemsToShow))*z.value;const Ie=H.value?0:-1*Le,Ve=H.value?Le:0;Ce=ln({val:Ce,min:Ie,max:Ve})}return`translate${pe}(${Ce}px)`}),bt=u.computed(()=>({"--vc-carousel-height":ss(f.height),"--vc-cloned-offset":ss(Be.value),"--vc-slide-gap":ss(f.gap),"--vc-transition-duration":B.value?ss(f.transition,"ms"):void 0})),_e={slideTo:Ae,next:oe,prev:fe},Pe=u.reactive({activeSlide:p,config:f,currentSlide:g,isSliding:B,isVertical:re,maxSlide:T,minSlide:S,nav:_e,normalizedDir:X,slideRegistry:a,slideSize:d,slides:o,slidesCount:c,viewport:l,visibleRange:it});u.provide(kn,Pe);const We=u.reactive({config:f,currentSlide:g,maxSlide:T,middleSlide:x,minSlide:S,slideSize:d,slidesCount:c});return r(u.reactive(Object.assign({data:We,next:oe,prev:fe,restartCarousel:De,slideTo:Ae,updateBreakpointsConfig:P,updateSlideSize:J,updateSlidesData:te},u.toRefs(Pe)))),()=>{var pe;const be=e.default||e.slides,Ce=(be==null?void 0:be(We))||[],{before:Le,after:Ie}=je.value,Ve=Zo({slides:o,position:"before",toShow:Le}),Ke=Zo({slides:o,position:"after",toShow:Ie}),et=[...Ve,...Ce,...Ke];if(!f.enabled||!et.length)return u.h("section",{ref:i,class:["carousel","is-disabled"]},et);const dt=((pe=e.addons)===null||pe===void 0?void 0:pe.call(e,We))||[],ft=u.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),It=u.h("div",{class:"carousel__viewport",ref:l},ft);return u.h("section",{ref:i,class:["carousel",`is-${X.value}`,`is-effect-${f.slideEffect}`,{"is-dragging":Z.value,"is-hover":Oe.value,"is-sliding":B.value,"is-vertical":re.value}],dir:X.value,style:bt.value,"aria-label":f.i18n.ariaGallery,tabindex:"0",onBlur:A,onFocus:C,onMouseenter:ye,onMouseleave:N},[It,dt,u.h(of)])}}});var ii;(function(n){n.arrowDown="arrowDown",n.arrowLeft="arrowLeft",n.arrowRight="arrowRight",n.arrowUp="arrowUp"})(ii||(ii={}));const ta=n=>`icon${n.charAt(0).toUpperCase()+n.slice(1)}`,ff={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 hf(n){return n in ii}const na=n=>n&&hf(n),ra=u.defineComponent({props:{name:{type:String,required:!0,validator:na},title:{type:String,default:n=>n.name?tt.i18n[ta(n.name)]:""}},setup(n){const e=u.inject(kn,null);return()=>{const t=n.name;if(!t||!na(t))return;const r=ff[t],s=u.h("path",{d:r}),a=(e==null?void 0:e.config.i18n[ta(t)])||n.title,o=u.h("title",a);return u.h("svg",{class:"carousel__icon",viewBox:"0 0 24 24",role:"img","aria-label":a},[o,s])}}});u.defineComponent({name:"CarouselNavigation",inheritAttrs:!1,props:{carousel:{type:Object}},setup(n,{slots:e,attrs:t}){let r=u.inject(kn,null);const{next:s,prev:a}=e,o=()=>({btt:"arrowDown",ltr:"arrowLeft",rtl:"arrowRight",ttb:"arrowUp"})[r.normalizedDir],c=()=>({btt:"arrowUp",ltr:"arrowRight",rtl:"arrowLeft",ttb:"arrowDown"})[r.normalizedDir],i=u.computed(()=>!r.config.wrapAround&&r.currentSlide<=r.minSlide),l=u.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=u.h("button",Object.assign(Object.assign({type:"button",disabled:i.value,"aria-label":d.ariaPreviousSlide,title:d.ariaPreviousSlide,onClick:r.nav.prev},t),{class:["carousel__prev",{"carousel__prev--disabled":i.value},t.class]}),(a==null?void 0:a())||u.h(ra,{name:o()})),f=u.h("button",Object.assign(Object.assign({type:"button",disabled:l.value,"aria-label":d.ariaNextSlide,title:d.ariaNextSlide,onClick:r.nav.next},t),{class:["carousel__next",{"carousel__next--disabled":l.value},t.class]}),(s==null?void 0:s())||u.h(ra,{name:c()}));return[h,f]}}}),u.defineComponent({name:"CarouselPagination",props:{disableOnClick:{type:Boolean},paginateByItemsToShow:{type:Boolean},carousel:{type:Object}},setup(n){let e=u.inject(kn,null);const t=u.computed(()=>e.config.itemsToShow),r=u.computed(()=>ri({align:e.config.snapAlign,itemsToShow:t.value})),s=u.computed(()=>n.paginateByItemsToShow&&t.value>1),a=u.computed(()=>Math.ceil((e.activeSlide-r.value)/t.value)),o=u.computed(()=>Math.ceil(e.slidesCount/t.value)),c=i=>ea(s.value?{val:a.value,max:o.value-1,min:0}:{val:e.activeSlide,max:e.maxSlide,min:e.minSlide})===i;return()=>{var i,l;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?o.value-1:e.maxSlide);h++){const f=Jo(e.config.i18n[s.value?"ariaNavigateToPage":"ariaNavigateToSlide"],{slideNumber:h+1}),g=c(h),p=u.h("button",{type:"button",class:{"carousel__pagination-button":!0,"carousel__pagination-button--active":g},"aria-label":f,"aria-pressed":g,"aria-controls":(l=(i=e.slides[h])===null||i===void 0?void 0:i.exposed)===null||l===void 0?void 0:l.id,title:f,disabled:n.disableOnClick,onClick:()=>e.nav.slideTo(s.value?Math.floor(h*+e.config.itemsToShow+r.value):h)}),v=u.h("li",{class:"carousel__pagination-item",key:h},p);d.push(v)}return u.h("ol",{class:"carousel__pagination"},d)}}});const pf=u.defineComponent({name:"CarouselSlide",props:{id:{type:String,default:n=>n.isClone?void 0:u.useId()},index:{type:Number,default:void 0},isClone:{type:Boolean,default:!1}},setup(n,{attrs:e,slots:t,expose:r}){const s=u.inject(kn);if(u.provide(kn,void 0),!s)return()=>"";const a=u.ref(n.index),o=p=>{a.value=p},c=u.getCurrentInstance(),i=()=>{const p=c.vnode.el;return p?p.getBoundingClientRect():{width:0,height:0}};r({id:n.id,setIndex:o,getBoundingRect:i});const l=u.computed(()=>a.value===s.activeSlide),d=u.computed(()=>a.value===s.activeSlide-1),h=u.computed(()=>a.value===s.activeSlide+1),f=u.computed(()=>a.value>=s.visibleRange.min&&a.value<=s.visibleRange.max),g=u.computed(()=>{if(s.config.itemsToShow==="auto")return;const p=s.config.itemsToShow,v=s.config.gap>0&&p>1?`calc(${100/p}% - ${s.config.gap*(p-1)/p}px)`:`${100/p}%`;return s.isVertical?{height:v}:{width:v}});return s.slideRegistry.registerSlide(c,n.index),u.onUnmounted(()=>{s.slideRegistry.unregisterSlide(c)}),n.isClone&&(u.onMounted(()=>{Qo(c.vnode)}),u.onUpdated(()=>{Qo(c.vnode)})),()=>{var p,v;return s.config.enabled?u.h("li",{style:[e.style,Object.assign({},g.value)],class:{carousel__slide:!0,"carousel__slide--clone":n.isClone,"carousel__slide--visible":f.value,"carousel__slide--active":l.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(a.value)},id:n.isClone?void 0:n.id,"aria-hidden":n.isClone||void 0},(v=t.default)===null||v===void 0?void 0:v.call(t,{currentIndex:a.value,isActive:l.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)}}}),mf={class:"flex h-[872px] w-full bg-navy-800 relative rounded-[48px] z-10"},gf={class:"lg:p-8 p-4 flex relative w-full"},vf={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"},yf={class:"gap-2 flex z-10 mb-4"},bf=["onClick"],xf={class:"lg:text-[48px] text-[40px] font-semibold text-white mb-3 lg:leading-normal leading-[48px]"},Ef=["innerHTML"],Af={class:"flex gap-3 mt-8 flex-col lg:flex-row"},wf=["href","target"],Sf=["href","target"],Tf=["src"],Nf={key:1,class:"rounded-[40px] h-[674px] max-w-[882px] lg:w-1/2 w-full object-cover",src:Ho},Of=Sr({__name:"VSliderPresenter",props:{component:{required:!0,type:Object}},setup(n){const e=n,t=u.ref(0),s=u.ref(e.component).value.data.filter(o=>o.public),a=o=>o.startsWith("http")?o:`//${o}`;return(o,c)=>(u.openBlock(),u.createElementBlock("div",mf,[u.createVNode(u.unref(df),{"items-to-show":1,modelValue:t.value,"onUpdate:modelValue":c[0]||(c[0]=i=>t.value=i),autoplay:5e3,class:"carousel w-full","wrap-around":!0},{default:u.withCtx(()=>[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(u.unref(s),(i,l)=>(u.openBlock(),u.createBlock(u.unref(pf),{key:l},{default:u.withCtx(()=>[u.createElementVNode("div",gf,[u.createElementVNode("div",vf,[u.createElementVNode("div",yf,[u.unref(s).length>1?(u.openBlock(!0),u.createElementBlock(u.Fragment,{key:0},u.renderList(u.unref(s),(d,h)=>(u.openBlock(),u.createElementBlock("a",{onClick:f=>t.value=h,class:u.normalizeClass(["w-4 h-1 bg-navy-400 rounded-full cursor-pointer",{"!w-12 !bg-white":t.value===h}])},null,10,bf))),256)):u.createCommentVNode("",!0)]),u.createElementVNode("h3",xf,u.toDisplayString(i==null?void 0:i.title),1),u.createElementVNode("p",{class:"text-lg font-normal text-navy-50",innerHTML:i==null?void 0:i.description},null,8,Ef),u.createElementVNode("div",Af,[i.secondary_button.show?(u.openBlock(),u.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:a(i.secondary_button.url),target:i.secondary_button.open_in_new_tab?"_blank":""},[u.createElementVNode("span",null,u.toDisplayString(i.secondary_button.label),1)],8,wf)):u.createCommentVNode("",!0),i.primary_button.show?(u.openBlock(),u.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:a(i.primary_button.url),target:i.primary_button.open_in_new_tab?"_blank":""},[u.createTextVNode(u.toDisplayString(i.primary_button.label)+" ",1),u.createVNode(u.unref(ni),{class:"w-5 h-5"})],8,Sf)):u.createCommentVNode("",!0)])]),i.featured_image?(u.openBlock(),u.createElementBlock("img",{key:0,src:i.featured_image,alt:"Slide Image",class:"rounded-[40px] h-[674px] max-w-[882px] lg:w-1/2 w-full object-cover"},null,8,Tf)):(u.openBlock(),u.createElementBlock("img",Nf))])]),_:2},1024))),128))]),_:1},8,["modelValue"])]))}},[["__scopeId","data-v-960591f8"]]),Cf=["target","href"],sa={__name:"VLinkPresenter",props:{component:{required:!0,type:Object}},setup(n){const e=n,t=u.ref(e.component),r=t.value.type==="link_grid";return(s,a)=>(u.openBlock(),u.createElementBlock("div",{class:u.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}])},[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(t.value.data,o=>(u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(["flex justify-center",{"!block":r}])},[u.createElementVNode("a",{target:o.open_in_new_tab?"_blank":"",href:o.url.startsWith("http")?o.url:`//${o.url}`,class:u.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}])},[u.createElementVNode("span",null,u.toDisplayString(o.title),1),u.createVNode(u.unref(ni),{class:"w-5 h-5"})],10,Cf)],2))),256))],2))}},Rf={class:"rounded-[48px] max-w-[1392px] 1xl:max-w-[1824px] mx-auto w-full"},If={class:"md:px-[90px]"},Lf={__name:"HeroHeader",props:{section:{required:!0,type:Object}},setup(n){const e=n,t=u.ref(e.section),r=u.ref({sliders:u.markRaw(Of),links:u.markRaw(sa)}),s=a=>a!=null&&a.type?r.value[a==null?void 0:a.type]:"";return(a,o)=>(u.openBlock(),u.createElementBlock("div",Rf,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(t.value.components,(c,i)=>(u.openBlock(),u.createElementBlock("div",If,[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(s(c)),{key:i,component:c},null,8,["component"]))]))),256))]))}},ia={__name:"VHeaderPresenter",props:{component:{required:!0,type:Object}},setup(n){const e=n,t=u.ref(e.component);return(r,s)=>{var a,o,c,i,l,d,h;return u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(["flex flex-col",{"items-center":(a=t.value)==null?void 0:a.center}])},[(o=t.value)!=null&&o.title?(u.openBlock(),u.createElementBlock("p",{key:0,class:u.normalizeClass(["pb-4 text-4xl font-semibold text-white",{"!text-gray-900":(c=t.value)==null?void 0:c.dark}])},u.toDisplayString((i=t.value)==null?void 0:i.title),3)):u.createCommentVNode("",!0),(l=t.value)!=null&&l.supporting_text?(u.openBlock(),u.createElementBlock("p",{key:1,class:u.normalizeClass(["text-navy-25 text-xl font-normal leading-[30px]",{"!text-navy-900":(d=t.value)==null?void 0:d.dark}])},u.toDisplayString((h=t.value)==null?void 0:h.supporting_text),3)):u.createCommentVNode("",!0)],2)}}},kf={xmlns:"http://www.w3.org/2000/svg",width:"341",height:"336",fill:"none"};function Bf(n,e){return u.openBlock(),u.createElementBlock("svg",kf,e[0]||(e[0]=[u.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 Pf={render:Bf},Ff={class:"w-full bg-navy-800 py-10 relative lg:h-[336px]"},Mf={class:"1xl:max-w-[1824px] mx-auto lg:pl-[120px] pl-4 relative z-10"},Df={class:"w-1/2"},Uf={__name:"QuickLinks",props:{section:{required:!0,type:Object}},setup(n){const e=n,t=u.ref(e.section),r=u.ref({header:u.markRaw(ia),link_grid:u.markRaw(sa)}),s=a=>a!=null&&a.type?r.value[a==null?void 0:a.type]:"";return(a,o)=>(u.openBlock(),u.createElementBlock("div",Ff,[u.createElementVNode("div",Mf,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(t.value.components,(c,i)=>(u.openBlock(),u.createElementBlock("div",Df,[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(s(c)),{key:i,component:c},null,8,["component"]))]))),256))]),u.createVNode(u.unref(Pf),{class:"absolute right-0 top-0"})]))}},jf={class:"flex flex-col md:flex-row justify-center gap-4 items-stretch mt-6"},$f={class:"flex-1 w-full md:w-1/2 flex flex-col"},Vf=["onClick"],_f={class:"py-4 pl-4 md:pl-6"},qf={class:"flex-1 w-full md:w-1/2 bg-transparent flex flex-col items-center"},zf=["src"],Hf={key:1,class:"rounded-[20px] md:rounded-[40px] object-contain max-h-[200px] md:max-h-[387px] w-full",src:Ho,alt:"No Image Available"},Gf=["target","href"],Wf=Sr({__name:"VVerticalTabPresenter",props:{component:{required:!0,type:Object}},setup(n){const e=n,t=u.ref(e.component),r=u.ref(null),s=u.ref(t.value.data.filter(o=>o.public)),a=o=>{r.value=o};return u.onMounted(()=>{s.value.length>0&&a(s.value[0])}),(o,c)=>(u.openBlock(),u.createElementBlock("div",jf,[u.createElementVNode("div",$f,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(s.value,i=>(u.openBlock(),u.createElementBlock("div",{key:i.title},[u.createElementVNode("div",{class:u.normalizeClass(["flex-col flex gap-1.5 cursor-pointer hover:bg-navy-50 mb-4 group",{"border-l-4 border-brand-600":r.value===i}]),onClick:u.withModifiers(l=>a(i),["prevent"])},[u.createElementVNode("div",_f,[u.createElementVNode("p",{class:u.normalizeClass([{"text-gray-900":r.value===i,"text-gray-600":r.value!==i},"text-lg md:text-xl font-semibold mb-2 group-hover:text-gray-900"])},u.toDisplayString(i.title),3),u.createElementVNode("p",{class:u.normalizeClass([{"text-gray-700":r.value===i,"text-gray-400":r.value!==i},"text-sm md:text-md font-normal group-hover:text-gray-700"])},u.toDisplayString(i.description),3)])],10,Vf)]))),128))]),u.createElementVNode("div",qf,[u.createVNode(u.Transition,{name:"fade",mode:"out-in"},{default:u.withCtx(()=>{var i,l,d,h,f,g,p,v,x,T;return[(u.openBlock(),u.createElementBlock("div",{class:"flex flex-col items-center",key:(i=r.value)==null?void 0:i.title},[(l=r.value)!=null&&l.featured_image?(u.openBlock(),u.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,zf)):(u.openBlock(),u.createElementBlock("img",Hf)),(h=(d=r.value)==null?void 0:d.primary_button)!=null&&h.show?(u.openBlock(),u.createElementBlock("a",{key:2,class:"text-sm md:text-md font-semibold text-brand-600 flex items-center gap-2 mt-4",target:(g=(f=r.value)==null?void 0:f.primary_button)!=null&&g.is_new_tab?"_blank":"",href:(v=(p=r.value)==null?void 0:p.primary_button)!=null&&v.url.startsWith("http")?r.value.primary_button.url:`//${r.value.primary_button.url}`},[u.createTextVNode(u.toDisplayString(((T=(x=r.value)==null?void 0:x.primary_button)==null?void 0:T.label)??"N/A")+" ",1),u.createVNode(u.unref(ni),{class:"w-4 h-4 md:w-5 md:h-5"})],8,Gf)):u.createCommentVNode("",!0)]))]}),_:1})])]))}},[["__scopeId","data-v-31ffea01"]]),Kf={class:"max-w-[1392px] 1xl:max-w-[1824px] mx-auto w-full"},Xf={class:"md:mx-[90px] bg-navy-25 rounded-[48px] p-16"},Yf={__name:"VTabs",props:{section:{required:!0,type:Object}},setup(n){const e=n,t=u.ref(e.section),r=u.ref({header:u.markRaw(ia),vertical_tabs:u.markRaw(Wf)}),s=a=>a!=null&&a.type?r.value[a==null?void 0:a.type]:"";return(a,o)=>(u.openBlock(),u.createElementBlock("div",Kf,[u.createElementVNode("div",Xf,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(t.value.components,(c,i)=>(u.openBlock(),u.createElementBlock("div",null,[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(s(c)),{key:i,component:c},null,8,["component"]))]))),256))])]))}},Zf={class:"page-render"},Qf={__name:"PageRender",props:{page:{required:!0,type:Object}},setup(n){const e=u.ref({header:u.markRaw(Lf),quick_links:u.markRaw(Uf),tabs:u.markRaw(Yf)}),t=r=>r!=null&&r.type?e.value[r==null?void 0:r.type]:"";return(r,s)=>(u.openBlock(),u.createElementBlock("div",Zf,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(n.page.sections,(a,o)=>(u.openBlock(),u.createElementBlock("div",null,[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(t(a)),{key:o,section:a},null,8,["section"]))]))),256))]))}};var oa=typeof global=="object"&&global&&global.Object===Object&&global,Jf=typeof self=="object"&&self&&self.Object===Object&&self,Qt=oa||Jf||Function("return this")(),En=Qt.Symbol,aa=Object.prototype,eh=aa.hasOwnProperty,th=aa.toString,Tr=En?En.toStringTag:void 0;function nh(n){var e=eh.call(n,Tr),t=n[Tr];try{n[Tr]=void 0;var r=!0}catch{}var s=th.call(n);return r&&(e?n[Tr]=t:delete n[Tr]),s}var rh=Object.prototype,sh=rh.toString;function ih(n){return sh.call(n)}var oh="[object Null]",ah="[object Undefined]",la=En?En.toStringTag:void 0;function Yn(n){return n==null?n===void 0?ah:oh:la&&la in Object(n)?nh(n):ih(n)}function cn(n){return n!=null&&typeof n=="object"}var Bn=Array.isArray;function An(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}function ca(n){return n}var lh="[object AsyncFunction]",ch="[object Function]",uh="[object GeneratorFunction]",dh="[object Proxy]";function oi(n){if(!An(n))return!1;var e=Yn(n);return e==ch||e==uh||e==lh||e==dh}var ai=Qt["__core-js_shared__"],ua=function(){var n=/[^.]+$/.exec(ai&&ai.keys&&ai.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function fh(n){return!!ua&&ua in n}var hh=Function.prototype,ph=hh.toString;function Pn(n){if(n!=null){try{return ph.call(n)}catch{}try{return n+""}catch{}}return""}var mh=/[\\^$.*+?()[\]{}|]/g,gh=/^\[object .+?Constructor\]$/,vh=Function.prototype,yh=Object.prototype,bh=vh.toString,xh=yh.hasOwnProperty,Eh=RegExp("^"+bh.call(xh).replace(mh,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ah(n){if(!An(n)||fh(n))return!1;var e=oi(n)?Eh:gh;return e.test(Pn(n))}function wh(n,e){return n==null?void 0:n[e]}function Fn(n,e){var t=wh(n,e);return Ah(t)?t:void 0}var li=Fn(Qt,"WeakMap"),da=Object.create,Sh=function(){function n(){}return function(e){if(!An(e))return{};if(da)return da(e);n.prototype=e;var t=new n;return n.prototype=void 0,t}}();function Th(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 Nh(n,e){var t=-1,r=n.length;for(e||(e=Array(r));++t<r;)e[t]=n[t];return e}var Oh=800,Ch=16,Rh=Date.now;function Ih(n){var e=0,t=0;return function(){var r=Rh(),s=Ch-(r-t);if(t=r,s>0){if(++e>=Oh)return arguments[0]}else e=0;return n.apply(void 0,arguments)}}function Lh(n){return function(){return n}}var is=function(){try{var n=Fn(Object,"defineProperty");return n({},"",{}),n}catch{}}(),kh=is?function(n,e){return is(n,"toString",{configurable:!0,enumerable:!1,value:Lh(e),writable:!0})}:ca,Bh=Ih(kh);function Ph(n,e){for(var t=-1,r=n==null?0:n.length;++t<r&&e(n[t],t,n)!==!1;);return n}var Fh=9007199254740991,Mh=/^(?:0|[1-9]\d*)$/;function fa(n,e){var t=typeof n;return e=e??Fh,!!e&&(t=="number"||t!="symbol"&&Mh.test(n))&&n>-1&&n%1==0&&n<e}function ci(n,e,t){e=="__proto__"&&is?is(n,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):n[e]=t}function Nr(n,e){return n===e||n!==n&&e!==e}var Dh=Object.prototype,Uh=Dh.hasOwnProperty;function ha(n,e,t){var r=n[e];(!(Uh.call(n,e)&&Nr(r,t))||t===void 0&&!(e in n))&&ci(n,e,t)}function jh(n,e,t,r){var s=!t;t||(t={});for(var a=-1,o=e.length;++a<o;){var c=e[a],i=void 0;i===void 0&&(i=n[c]),s?ci(t,c,i):ha(t,c,i)}return t}var pa=Math.max;function $h(n,e,t){return e=pa(e===void 0?n.length-1:e,0),function(){for(var r=arguments,s=-1,a=pa(r.length-e,0),o=Array(a);++s<a;)o[s]=r[e+s];s=-1;for(var c=Array(e+1);++s<e;)c[s]=r[s];return c[e]=t(o),Th(n,this,c)}}function Vh(n,e){return Bh($h(n,e,ca),n+"")}var _h=9007199254740991;function ma(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=_h}function os(n){return n!=null&&ma(n.length)&&!oi(n)}function qh(n,e,t){if(!An(t))return!1;var r=typeof e;return(r=="number"?os(t)&&fa(e,t.length):r=="string"&&e in t)?Nr(t[e],n):!1}function zh(n){return Vh(function(e,t){var r=-1,s=t.length,a=s>1?t[s-1]:void 0,o=s>2?t[2]:void 0;for(a=n.length>3&&typeof a=="function"?(s--,a):void 0,o&&qh(t[0],t[1],o)&&(a=s<3?void 0:a,s=1),e=Object(e);++r<s;){var c=t[r];c&&n(e,c,r,a)}return e})}var Hh=Object.prototype;function ui(n){var e=n&&n.constructor,t=typeof e=="function"&&e.prototype||Hh;return n===t}function Gh(n,e){for(var t=-1,r=Array(n);++t<n;)r[t]=e(t);return r}var Wh="[object Arguments]";function ga(n){return cn(n)&&Yn(n)==Wh}var va=Object.prototype,Kh=va.hasOwnProperty,Xh=va.propertyIsEnumerable,di=ga(function(){return arguments}())?ga:function(n){return cn(n)&&Kh.call(n,"callee")&&!Xh.call(n,"callee")};function Yh(){return!1}var ya=typeof Ye=="object"&&Ye&&!Ye.nodeType&&Ye,ba=ya&&typeof module=="object"&&module&&!module.nodeType&&module,Zh=ba&&ba.exports===ya,xa=Zh?Qt.Buffer:void 0,Qh=xa?xa.isBuffer:void 0,Or=Qh||Yh,Jh="[object Arguments]",ep="[object Array]",tp="[object Boolean]",np="[object Date]",rp="[object Error]",sp="[object Function]",ip="[object Map]",op="[object Number]",ap="[object Object]",lp="[object RegExp]",cp="[object Set]",up="[object String]",dp="[object WeakMap]",fp="[object ArrayBuffer]",hp="[object DataView]",pp="[object Float32Array]",mp="[object Float64Array]",gp="[object Int8Array]",vp="[object Int16Array]",yp="[object Int32Array]",bp="[object Uint8Array]",xp="[object Uint8ClampedArray]",Ep="[object Uint16Array]",Ap="[object Uint32Array]",Je={};Je[pp]=Je[mp]=Je[gp]=Je[vp]=Je[yp]=Je[bp]=Je[xp]=Je[Ep]=Je[Ap]=!0,Je[Jh]=Je[ep]=Je[fp]=Je[tp]=Je[hp]=Je[np]=Je[rp]=Je[sp]=Je[ip]=Je[op]=Je[ap]=Je[lp]=Je[cp]=Je[up]=Je[dp]=!1;function wp(n){return cn(n)&&ma(n.length)&&!!Je[Yn(n)]}function fi(n){return function(e){return n(e)}}var Ea=typeof Ye=="object"&&Ye&&!Ye.nodeType&&Ye,Cr=Ea&&typeof module=="object"&&module&&!module.nodeType&&module,Sp=Cr&&Cr.exports===Ea,hi=Sp&&oa.process,Zn=function(){try{var n=Cr&&Cr.require&&Cr.require("util").types;return n||hi&&hi.binding&&hi.binding("util")}catch{}}(),Aa=Zn&&Zn.isTypedArray,pi=Aa?fi(Aa):wp,Tp=Object.prototype,Np=Tp.hasOwnProperty;function wa(n,e){var t=Bn(n),r=!t&&di(n),s=!t&&!r&&Or(n),a=!t&&!r&&!s&&pi(n),o=t||r||s||a,c=o?Gh(n.length,String):[],i=c.length;for(var l in n)(e||Np.call(n,l))&&!(o&&(l=="length"||s&&(l=="offset"||l=="parent")||a&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||fa(l,i)))&&c.push(l);return c}function Sa(n,e){return function(t){return n(e(t))}}var Op=Sa(Object.keys,Object),Cp=Object.prototype,Rp=Cp.hasOwnProperty;function Ip(n){if(!ui(n))return Op(n);var e=[];for(var t in Object(n))Rp.call(n,t)&&t!="constructor"&&e.push(t);return e}function Lp(n){return os(n)?wa(n):Ip(n)}function kp(n){var e=[];if(n!=null)for(var t in Object(n))e.push(t);return e}var Bp=Object.prototype,Pp=Bp.hasOwnProperty;function Fp(n){if(!An(n))return kp(n);var e=ui(n),t=[];for(var r in n)r=="constructor"&&(e||!Pp.call(n,r))||t.push(r);return t}function Ta(n){return os(n)?wa(n,!0):Fp(n)}var Rr=Fn(Object,"create");function Mp(){this.__data__=Rr?Rr(null):{},this.size=0}function Dp(n){var e=this.has(n)&&delete this.__data__[n];return this.size-=e?1:0,e}var Up="__lodash_hash_undefined__",jp=Object.prototype,$p=jp.hasOwnProperty;function Vp(n){var e=this.__data__;if(Rr){var t=e[n];return t===Up?void 0:t}return $p.call(e,n)?e[n]:void 0}var _p=Object.prototype,qp=_p.hasOwnProperty;function zp(n){var e=this.__data__;return Rr?e[n]!==void 0:qp.call(e,n)}var Hp="__lodash_hash_undefined__";function Gp(n,e){var t=this.__data__;return this.size+=this.has(n)?0:1,t[n]=Rr&&e===void 0?Hp:e,this}function Mn(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])}}Mn.prototype.clear=Mp,Mn.prototype.delete=Dp,Mn.prototype.get=Vp,Mn.prototype.has=zp,Mn.prototype.set=Gp;function Wp(){this.__data__=[],this.size=0}function as(n,e){for(var t=n.length;t--;)if(Nr(n[t][0],e))return t;return-1}var Kp=Array.prototype,Xp=Kp.splice;function Yp(n){var e=this.__data__,t=as(e,n);if(t<0)return!1;var r=e.length-1;return t==r?e.pop():Xp.call(e,t,1),--this.size,!0}function Zp(n){var e=this.__data__,t=as(e,n);return t<0?void 0:e[t][1]}function Qp(n){return as(this.__data__,n)>-1}function Jp(n,e){var t=this.__data__,r=as(t,n);return r<0?(++this.size,t.push([n,e])):t[r][1]=e,this}function un(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])}}un.prototype.clear=Wp,un.prototype.delete=Yp,un.prototype.get=Zp,un.prototype.has=Qp,un.prototype.set=Jp;var Ir=Fn(Qt,"Map");function em(){this.size=0,this.__data__={hash:new Mn,map:new(Ir||un),string:new Mn}}function tm(n){var e=typeof n;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?n!=="__proto__":n===null}function ls(n,e){var t=n.__data__;return tm(e)?t[typeof e=="string"?"string":"hash"]:t.map}function nm(n){var e=ls(this,n).delete(n);return this.size-=e?1:0,e}function rm(n){return ls(this,n).get(n)}function sm(n){return ls(this,n).has(n)}function im(n,e){var t=ls(this,n),r=t.size;return t.set(n,e),this.size+=t.size==r?0:1,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=em,Dn.prototype.delete=nm,Dn.prototype.get=rm,Dn.prototype.has=sm,Dn.prototype.set=im;function om(n,e){for(var t=-1,r=e.length,s=n.length;++t<r;)n[s+t]=e[t];return n}var Na=Sa(Object.getPrototypeOf,Object),am="[object Object]",lm=Function.prototype,cm=Object.prototype,Oa=lm.toString,um=cm.hasOwnProperty,dm=Oa.call(Object);function fm(n){if(!cn(n)||Yn(n)!=am)return!1;var e=Na(n);if(e===null)return!0;var t=um.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&Oa.call(t)==dm}function hm(){this.__data__=new un,this.size=0}function pm(n){var e=this.__data__,t=e.delete(n);return this.size=e.size,t}function mm(n){return this.__data__.get(n)}function gm(n){return this.__data__.has(n)}var vm=200;function ym(n,e){var t=this.__data__;if(t instanceof un){var r=t.__data__;if(!Ir||r.length<vm-1)return r.push([n,e]),this.size=++t.size,this;t=this.__data__=new Dn(r)}return t.set(n,e),this.size=t.size,this}function Jt(n){var e=this.__data__=new un(n);this.size=e.size}Jt.prototype.clear=hm,Jt.prototype.delete=pm,Jt.prototype.get=mm,Jt.prototype.has=gm,Jt.prototype.set=ym;var Ca=typeof Ye=="object"&&Ye&&!Ye.nodeType&&Ye,Ra=Ca&&typeof module=="object"&&module&&!module.nodeType&&module,bm=Ra&&Ra.exports===Ca,Ia=bm?Qt.Buffer:void 0,La=Ia?Ia.allocUnsafe:void 0;function ka(n,e){if(e)return n.slice();var t=n.length,r=La?La(t):new n.constructor(t);return n.copy(r),r}function xm(n,e){for(var t=-1,r=n==null?0:n.length,s=0,a=[];++t<r;){var o=n[t];e(o,t,n)&&(a[s++]=o)}return a}function Em(){return[]}var Am=Object.prototype,wm=Am.propertyIsEnumerable,Ba=Object.getOwnPropertySymbols,Sm=Ba?function(n){return n==null?[]:(n=Object(n),xm(Ba(n),function(e){return wm.call(n,e)}))}:Em;function Tm(n,e,t){var r=e(n);return Bn(n)?r:om(r,t(n))}function mi(n){return Tm(n,Lp,Sm)}var gi=Fn(Qt,"DataView"),vi=Fn(Qt,"Promise"),yi=Fn(Qt,"Set"),Pa="[object Map]",Nm="[object Object]",Fa="[object Promise]",Ma="[object Set]",Da="[object WeakMap]",Ua="[object DataView]",Om=Pn(gi),Cm=Pn(Ir),Rm=Pn(vi),Im=Pn(yi),Lm=Pn(li),jt=Yn;(gi&&jt(new gi(new ArrayBuffer(1)))!=Ua||Ir&&jt(new Ir)!=Pa||vi&&jt(vi.resolve())!=Fa||yi&&jt(new yi)!=Ma||li&&jt(new li)!=Da)&&(jt=function(n){var e=Yn(n),t=e==Nm?n.constructor:void 0,r=t?Pn(t):"";if(r)switch(r){case Om:return Ua;case Cm:return Pa;case Rm:return Fa;case Im:return Ma;case Lm:return Da}return e});var km=Object.prototype,Bm=km.hasOwnProperty;function Pm(n){var e=n.length,t=new n.constructor(e);return e&&typeof n[0]=="string"&&Bm.call(n,"index")&&(t.index=n.index,t.input=n.input),t}var cs=Qt.Uint8Array;function bi(n){var e=new n.constructor(n.byteLength);return new cs(e).set(new cs(n)),e}function Fm(n,e){var t=bi(n.buffer);return new n.constructor(t,n.byteOffset,n.byteLength)}var Mm=/\w*$/;function Dm(n){var e=new n.constructor(n.source,Mm.exec(n));return e.lastIndex=n.lastIndex,e}var ja=En?En.prototype:void 0,$a=ja?ja.valueOf:void 0;function Um(n){return $a?Object($a.call(n)):{}}function Va(n,e){var t=e?bi(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.length)}var jm="[object Boolean]",$m="[object Date]",Vm="[object Map]",_m="[object Number]",qm="[object RegExp]",zm="[object Set]",Hm="[object String]",Gm="[object Symbol]",Wm="[object ArrayBuffer]",Km="[object DataView]",Xm="[object Float32Array]",Ym="[object Float64Array]",Zm="[object Int8Array]",Qm="[object Int16Array]",Jm="[object Int32Array]",eg="[object Uint8Array]",tg="[object Uint8ClampedArray]",ng="[object Uint16Array]",rg="[object Uint32Array]";function sg(n,e,t){var r=n.constructor;switch(e){case Wm:return bi(n);case jm:case $m:return new r(+n);case Km:return Fm(n);case Xm:case Ym:case Zm:case Qm:case Jm:case eg:case tg:case ng:case rg:return Va(n,t);case Vm:return new r;case _m:case Hm:return new r(n);case qm:return Dm(n);case zm:return new r;case Gm:return Um(n)}}function _a(n){return typeof n.constructor=="function"&&!ui(n)?Sh(Na(n)):{}}var ig="[object Map]";function og(n){return cn(n)&&jt(n)==ig}var qa=Zn&&Zn.isMap,ag=qa?fi(qa):og,lg="[object Set]";function cg(n){return cn(n)&&jt(n)==lg}var za=Zn&&Zn.isSet,ug=za?fi(za):cg,dg=1,Ha="[object Arguments]",fg="[object Array]",hg="[object Boolean]",pg="[object Date]",mg="[object Error]",Ga="[object Function]",gg="[object GeneratorFunction]",vg="[object Map]",yg="[object Number]",Wa="[object Object]",bg="[object RegExp]",xg="[object Set]",Eg="[object String]",Ag="[object Symbol]",wg="[object WeakMap]",Sg="[object ArrayBuffer]",Tg="[object DataView]",Ng="[object Float32Array]",Og="[object Float64Array]",Cg="[object Int8Array]",Rg="[object Int16Array]",Ig="[object Int32Array]",Lg="[object Uint8Array]",kg="[object Uint8ClampedArray]",Bg="[object Uint16Array]",Pg="[object Uint32Array]",Ze={};Ze[Ha]=Ze[fg]=Ze[Sg]=Ze[Tg]=Ze[hg]=Ze[pg]=Ze[Ng]=Ze[Og]=Ze[Cg]=Ze[Rg]=Ze[Ig]=Ze[vg]=Ze[yg]=Ze[Wa]=Ze[bg]=Ze[xg]=Ze[Eg]=Ze[Ag]=Ze[Lg]=Ze[kg]=Ze[Bg]=Ze[Pg]=!0,Ze[mg]=Ze[Ga]=Ze[wg]=!1;function us(n,e,t,r,s,a){var o,c=e&dg;if(o!==void 0)return o;if(!An(n))return n;var i=Bn(n);if(i)o=Pm(n);else{var l=jt(n),d=l==Ga||l==gg;if(Or(n))return ka(n,c);if(l==Wa||l==Ha||d&&!s)o=d?{}:_a(n);else{if(!Ze[l])return s?n:{};o=sg(n,l,c)}}a||(a=new Jt);var h=a.get(n);if(h)return h;a.set(n,o),ug(n)?n.forEach(function(p){o.add(us(p,e,t,p,n,a))}):ag(n)&&n.forEach(function(p,v){o.set(v,us(p,e,t,v,n,a))});var f=mi,g=i?void 0:f(n);return Ph(g||n,function(p,v){g&&(v=p,p=n[v]),ha(o,v,us(p,e,t,v,n,a))}),o}var Fg=1,Mg=4;function Qn(n){return us(n,Fg|Mg)}var Dg="__lodash_hash_undefined__";function Ug(n){return this.__data__.set(n,Dg),this}function jg(n){return this.__data__.has(n)}function ds(n){var e=-1,t=n==null?0:n.length;for(this.__data__=new Dn;++e<t;)this.add(n[e])}ds.prototype.add=ds.prototype.push=Ug,ds.prototype.has=jg;function $g(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 Vg(n,e){return n.has(e)}var _g=1,qg=2;function Ka(n,e,t,r,s,a){var o=t&_g,c=n.length,i=e.length;if(c!=i&&!(o&&i>c))return!1;var l=a.get(n),d=a.get(e);if(l&&d)return l==e&&d==n;var h=-1,f=!0,g=t&qg?new ds:void 0;for(a.set(n,e),a.set(e,n);++h<c;){var p=n[h],v=e[h];if(r)var x=o?r(v,p,h,e,n,a):r(p,v,h,n,e,a);if(x!==void 0){if(x)continue;f=!1;break}if(g){if(!$g(e,function(T,S){if(!Vg(g,S)&&(p===T||s(p,T,t,r,a)))return g.push(S)})){f=!1;break}}else if(!(p===v||s(p,v,t,r,a))){f=!1;break}}return a.delete(n),a.delete(e),f}function zg(n){var e=-1,t=Array(n.size);return n.forEach(function(r,s){t[++e]=[s,r]}),t}function Hg(n){var e=-1,t=Array(n.size);return n.forEach(function(r){t[++e]=r}),t}var Gg=1,Wg=2,Kg="[object Boolean]",Xg="[object Date]",Yg="[object Error]",Zg="[object Map]",Qg="[object Number]",Jg="[object RegExp]",e0="[object Set]",t0="[object String]",n0="[object Symbol]",r0="[object ArrayBuffer]",s0="[object DataView]",Xa=En?En.prototype:void 0,xi=Xa?Xa.valueOf:void 0;function i0(n,e,t,r,s,a,o){switch(t){case s0:if(n.byteLength!=e.byteLength||n.byteOffset!=e.byteOffset)return!1;n=n.buffer,e=e.buffer;case r0:return!(n.byteLength!=e.byteLength||!a(new cs(n),new cs(e)));case Kg:case Xg:case Qg:return Nr(+n,+e);case Yg:return n.name==e.name&&n.message==e.message;case Jg:case t0:return n==e+"";case Zg:var c=zg;case e0:var i=r&Gg;if(c||(c=Hg),n.size!=e.size&&!i)return!1;var l=o.get(n);if(l)return l==e;r|=Wg,o.set(n,e);var d=Ka(c(n),c(e),r,s,a,o);return o.delete(n),d;case n0:if(xi)return xi.call(n)==xi.call(e)}return!1}var o0=1,a0=Object.prototype,l0=a0.hasOwnProperty;function c0(n,e,t,r,s,a){var o=t&o0,c=mi(n),i=c.length,l=mi(e),d=l.length;if(i!=d&&!o)return!1;for(var h=i;h--;){var f=c[h];if(!(o?f in e:l0.call(e,f)))return!1}var g=a.get(n),p=a.get(e);if(g&&p)return g==e&&p==n;var v=!0;a.set(n,e),a.set(e,n);for(var x=o;++h<i;){f=c[h];var T=n[f],S=e[f];if(r)var I=o?r(S,T,f,e,n,a):r(T,S,f,n,e,a);if(!(I===void 0?T===S||s(T,S,t,r,a):I)){v=!1;break}x||(x=f=="constructor")}if(v&&!x){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)&&(v=!1)}return a.delete(n),a.delete(e),v}var u0=1,Ya="[object Arguments]",Za="[object Array]",fs="[object Object]",d0=Object.prototype,Qa=d0.hasOwnProperty;function f0(n,e,t,r,s,a){var o=Bn(n),c=Bn(e),i=o?Za:jt(n),l=c?Za:jt(e);i=i==Ya?fs:i,l=l==Ya?fs:l;var d=i==fs,h=l==fs,f=i==l;if(f&&Or(n)){if(!Or(e))return!1;o=!0,d=!1}if(f&&!d)return a||(a=new Jt),o||pi(n)?Ka(n,e,t,r,s,a):i0(n,e,i,t,r,s,a);if(!(t&u0)){var g=d&&Qa.call(n,"__wrapped__"),p=h&&Qa.call(e,"__wrapped__");if(g||p){var v=g?n.value():n,x=p?e.value():e;return a||(a=new Jt),s(v,x,t,r,a)}}return f?(a||(a=new Jt),c0(n,e,t,r,s,a)):!1}function Ja(n,e,t,r,s){return n===e?!0:n==null||e==null||!cn(n)&&!cn(e)?n!==n&&e!==e:f0(n,e,t,r,Ja,s)}function h0(n){return function(e,t,r){for(var s=-1,a=Object(e),o=r(e),c=o.length;c--;){var i=o[++s];if(t(a[i],i,a)===!1)break}return e}}var p0=h0();function Ei(n,e,t){(t!==void 0&&!Nr(n[e],t)||t===void 0&&!(e in n))&&ci(n,e,t)}function m0(n){return cn(n)&&os(n)}function Ai(n,e){if(!(e==="constructor"&&typeof n[e]=="function")&&e!="__proto__")return n[e]}function g0(n){return jh(n,Ta(n))}function v0(n,e,t,r,s,a,o){var c=Ai(n,t),i=Ai(e,t),l=o.get(i);if(l){Ei(n,t,l);return}var d=a?a(c,i,t+"",n,e,o):void 0,h=d===void 0;if(h){var f=Bn(i),g=!f&&Or(i),p=!f&&!g&&pi(i);d=i,f||g||p?Bn(c)?d=c:m0(c)?d=Nh(c):g?(h=!1,d=ka(i,!0)):p?(h=!1,d=Va(i,!0)):d=[]:fm(i)||di(i)?(d=c,di(c)?d=g0(c):(!An(c)||oi(c))&&(d=_a(i))):h=!1}h&&(o.set(i,d),s(d,i,r,a,o),o.delete(i)),Ei(n,t,d)}function el(n,e,t,r,s){n!==e&&p0(e,function(a,o){if(s||(s=new Jt),An(a))v0(n,e,o,t,el,r,s);else{var c=r?r(Ai(n,o),a,o+"",n,e,s):void 0;c===void 0&&(c=a),Ei(n,o,c)}},Ta)}function wi(n,e){return Ja(n,e)}var wn=zh(function(n,e,t){el(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 en{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 Jn extends Error{constructor(e){e="[Parchment] "+e,super(e),this.message=e,this.name=this.constructor.name}}const tl=class Mo{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 Jn(`Unable to create ${t} blot`);const a=s,o=t instanceof Node||t.nodeType===Node.TEXT_NODE?t:a.create(r),c=new a(e,o,r);return Mo.blots.set(c.domNode,c),c}find(e,t=!1){return Mo.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 Jn("Invalid definition");if(r&&t.blotName==="abstract")throw new Jn("Cannot register abstract class");const a=r?t.blotName:s?t.attrName:void 0;return this.types[a]=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(o=>o.toUpperCase()):t.tagName=t.tagName.toUpperCase(),(Array.isArray(t.tagName)?t.tagName:[t.tagName]).forEach(o=>{(this.tags[o]==null||t.className==null)&&(this.tags[o]=t)}))),t})}};tl.blots=new WeakMap;let er=tl;function nl(n,e){return(n.getAttribute("class")||"").split(/\s+/).filter(t=>t.indexOf(`${e}-`)===0)}class y0 extends en{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){nl(e,this.keyName).forEach(t=>{e.classList.remove(t)}),e.classList.length===0&&e.removeAttribute("class")}value(e){const t=(nl(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""}}const $t=y0;function Si(n){const e=n.split("-"),t=e.slice(1).map(r=>r[0].toUpperCase()+r.slice(1)).join("");return e[0]+t}class b0 extends en{static keys(e){return(e.getAttribute("style")||"").split(";").map(t=>t.split(":")[0].trim())}add(e,t){return this.canAdd(e,t)?(e.style[Si(this.keyName)]=t,!0):!1}remove(e){e.style[Si(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")}value(e){const t=e.style[Si(this.keyName)];return this.canAdd(e,t)?t:""}}const Sn=b0;class x0{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=er.find(this.domNode);if(e==null)return;const t=en.keys(this.domNode),r=$t.keys(this.domNode),s=Sn.keys(this.domNode);t.concat(r).concat(s).forEach(a=>{const o=e.scroll.query(a,Ne.ATTRIBUTE);o instanceof en&&(this.attributes[o.attrName]=o)})}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 hs=x0,rl=class{constructor(e,t){this.scroll=e,this.domNode=t,er.blots.set(t,this),this.prev=null,this.next=null}static create(e){if(this.tagName==null)throw new Jn("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),er.blots.delete(this.domNode)}deleteAt(e,t){this.isolate(e,t).remove()}formatAt(e,t,r,s){const a=this.isolate(e,t);if(this.scroll.query(r,Ne.BLOT)!=null&&s)a.wrap(r,s);else if(this.scroll.query(r,Ne.ATTRIBUTE)!=null){const o=this.scroll.create(this.statics.scope);a.wrap(o),o.format(r,s)}}insertAt(e,t,r){const s=r==null?this.scroll.create("text",t):this.scroll.create(t,r),a=this.split(e);this.parent.insertBefore(s,a||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 Jn(`Cannot wrap ${e}`);return r.appendChild(this),r}};rl.blotName="abstract";let sl=rl;const il=class extends sl{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}}};il.scope=Ne.INLINE_BLOT;const gt=il;class E0{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 a=s.length();if(e<a||t&&e===a&&(s.next==null||s.next.length()!==0))return[s,e];e-=a,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,a]=this.find(e);let o=e-a;const c=this.iterator(s);let i=c();for(;i&&o<e+t;){const l=i.length();e>o?r(i,e-o,Math.min(t,o+l-e)):r(i,0,Math.min(l,e+t-o)),o+=l,i=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 ol(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 al=class Ln extends sl{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,Ln.uiClass&&this.uiNode.classList.add(Ln.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new E0,Array.from(this.domNode.childNodes).filter(e=>e!==this.uiNode).reverse().forEach(e=>{try{const t=ol(e,this.scroll);this.insertBefore(t,this.children.head||void 0)}catch(t){if(t instanceof Jn)return;throw t}})}deleteAt(e,t){if(e===0&&t===this.length())return this.remove();this.children.forEachAt(e,t,(r,s,a)=>{r.deleteAt(s,a)})}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 Ln?r.descendant(e,s):[null,-1]}descendants(e,t=0,r=Number.MAX_VALUE){let s=[],a=r;return this.children.forEachAt(t,r,(o,c,i)=>{(e.blotName==null&&e(o)||e.blotName!=null&&o instanceof e)&&s.push(o),o instanceof Ln&&(s=s.concat(o.descendants(e,c,a))),a-=i}),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 Ln?t.unwrap():t.remove())})}formatAt(e,t,r,s){this.children.forEachAt(e,t,(a,o,c)=>{a.formatAt(o,c,r,s)})}insertAt(e,t,r){const[s,a]=this.children.find(e);if(s)s.insertAt(a,t,r);else{const o=r==null?this.scroll.create("text",t):this.scroll.create(t,r);this.appendChild(o)}}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),a=[[this,e]];return r instanceof Ln?a.concat(r.path(s,t)):(r!=null&&a.push([r,s]),a)}removeChild(e){this.children.remove(e)}replaceWith(e,t){const r=typeof e=="string"?this.scroll.create(e,t):e;return r instanceof Ln&&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,a,o)=>{const c=s.split(a,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(a=>{a.target===this.domNode&&a.type==="childList"&&(r.push(...a.addedNodes),s.push(...a.removedNodes))}),s.forEach(a=>{if(a.parentNode!=null&&a.tagName!=="IFRAME"&&document.body.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_CONTAINED_BY)return;const o=this.scroll.find(a);o!=null&&(o.domNode.parentNode==null||o.domNode.parentNode===this.domNode)&&o.detach()}),r.filter(a=>a.parentNode===this.domNode&&a!==this.uiNode).sort((a,o)=>a===o?0:a.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1).forEach(a=>{let o=null;a.nextSibling!=null&&(o=this.scroll.find(a.nextSibling));const c=ol(a,this.scroll);(c.next!==o||c.next==null)&&(c.parent!=null&&c.parent.removeChild(this),this.insertBefore(c,o||void 0))}),this.enforceAllowedChildren()}};al.uiClass="";const Vt=al;function A0(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 tr=class wr extends Vt{static create(e){return super.create(e)}static formats(e,t){const r=t.query(wr.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 hs(this.domNode)}format(e,t){if(e===this.statics.blotName&&!t)this.children.forEach(r=>{r instanceof wr||(r=r.wrap(wr.blotName,!0)),this.attributes.copy(r)}),this.unwrap();else{const r=this.scroll.query(e,Ne.INLINE);if(r==null)return;r instanceof en?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 wr&&r.prev===this&&A0(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 wr&&this.attributes.move(r),r}};tr.allowedChildren=[tr,gt],tr.blotName="inline",tr.scope=Ne.INLINE_BLOT,tr.tagName="SPAN";const Ti=tr,nr=class Do extends Vt{static create(e){return super.create(e)}static formats(e,t){const r=t.query(Do.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 hs(this.domNode)}format(e,t){const r=this.scroll.query(e,Ne.BLOCK);r!=null&&(r instanceof en?this.attributes.attribute(r,t):e===this.statics.blotName&&!t?this.replaceWith(Do.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 a=this.scroll.create(t,r);s.parent.insertBefore(a,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()}};nr.blotName="block",nr.scope=Ne.BLOCK_BLOT,nr.tagName="P",nr.allowedChildren=[Ti,nr,gt];const Lr=nr,Ni=class extends Vt{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())}};Ni.blotName="container",Ni.scope=Ne.BLOCK_BLOT;const ps=Ni;class w0 extends gt{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 Rt=w0,S0={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},T0=100,rr=class extends Vt{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,S0),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 a=(i,l=!0)=>{i==null||i===this||i.domNode.parentNode!=null&&(r.has(i.domNode)||r.set(i.domNode,[]),l&&a(i.parent))},o=i=>{r.has(i.domNode)&&(i instanceof Vt&&i.children.forEach(o),r.delete(i.domNode),i.optimize(t))};let c=e;for(let i=0;c.length>0;i+=1){if(i>=T0)throw new Error("[Parchment] Maximum optimize iterations reached");for(c.forEach(l=>{const d=this.find(l.target,!0);d!=null&&(d.domNode===l.target&&(l.type==="childList"?(a(this.find(l.previousSibling,!1)),Array.from(l.addedNodes).forEach(h=>{const f=this.find(h,!1);a(f,!1),f instanceof Vt&&f.children.forEach(g=>{a(g,!1)})})):l.type==="attributes"&&a(d.prev)),a(d))}),this.children.forEach(o),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 a=this.find(s.target,!0);return a==null?null:r.has(a.domNode)?(r.get(a.domNode).push(s),null):(r.set(a.domNode,[s]),a)}).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)}};rr.blotName="scroll",rr.defaultChild=Lr,rr.allowedChildren=[Lr,ps],rr.scope=Ne.BLOCK_BLOT,rr.tagName="DIV";const Oi=rr,Ci=class Jc extends gt{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 Jc&&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}};Ci.blotName="text",Ci.scope=Ne.INLINE_BLOT;const ms=Ci,N0=Object.freeze(Object.defineProperty({__proto__:null,Attributor:en,AttributorStore:hs,BlockBlot:Lr,ClassAttributor:$t,ContainerBlot:ps,EmbedBlot:Rt,InlineBlot:Ti,LeafBlot:gt,ParentBlot:Vt,Registry:er,Scope:Ne,ScrollBlot:Oi,StyleAttributor:Sn,TextBlot:ms},Symbol.toStringTag,{value:"Module"}));var Tn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ri(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var gs={exports:{}},Ii,ll;function O0(){if(ll)return Ii;ll=1;var n=-1,e=1,t=0;function r(E,P,O,_,j){if(E===P)return E?[[t,E]]:[];if(O!=null){var $=re(E,P,O);if($)return $}var K=c(E,P),q=E.substring(0,K);E=E.substring(K),P=P.substring(K),K=l(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]),S(te,j),_&&h(te),te}function s(E,P){var O;if(!E)return[[e,P]];if(!P)return[[n,E]];var _=E.length>P.length?E:P,j=E.length>P.length?P:E,$=_.indexOf(j);if($!==-1)return O=[[e,_.substring(0,$)],[t,j],[e,_.substring($+j.length)]],E.length>P.length&&(O[0][0]=O[2][0]=n),O;if(j.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],ve=r(q,te),xe=r(J,me);return ve.concat([[t,ge]],xe)}return a(E,P)}function a(E,P){for(var O=E.length,_=P.length,j=Math.ceil((O+_)/2),$=j,K=2*j,q=new Array(K),J=new Array(K),te=0;te<K;te++)q[te]=-1,J[te]=-1;q[$+1]=0,J[$+1]=0;for(var me=O-_,ge=me%2!==0,ve=0,xe=0,he=0,Oe=0,ye=0;ye<j;ye++){for(var N=-ye+ve;N<=ye-xe;N+=2){var R=$+N,A;N===-ye||N!==ye&&q[R-1]<q[R+1]?A=q[R+1]:A=q[R-1]+1;for(var C=A-N;A<O&&C<_&&E.charAt(A)===P.charAt(C);)A++,C++;if(q[R]=A,A>O)xe+=2;else if(C>_)ve+=2;else if(ge){var y=$+me-N;if(y>=0&&y<K&&J[y]!==-1){var b=O-J[y];if(A>=b)return o(E,P,A,C)}}}for(var L=-ye+he;L<=ye-Oe;L+=2){var y=$+L,b;L===-ye||L!==ye&&J[y-1]<J[y+1]?b=J[y+1]:b=J[y-1]+1;for(var B=b-L;b<O&&B<_&&E.charAt(O-b-1)===P.charAt(_-B-1);)b++,B++;if(J[y]=b,b>O)Oe+=2;else if(B>_)he+=2;else if(!ge){var R=$+me-L;if(R>=0&&R<K&&q[R]!==-1){var A=q[R],C=$+A-R;if(b=O-b,A>=b)return o(E,P,A,C)}}}}return[[n,E],[e,P]]}function o(E,P,O,_){var j=E.substring(0,O),$=P.substring(0,_),K=E.substring(O),q=P.substring(_),J=r(j,$),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 O=0,_=Math.min(E.length,P.length),j=_,$=0;O<j;)E.substring($,j)==P.substring($,j)?(O=j,$=O):_=j,j=Math.floor((_-O)/2+O);return I(E.charCodeAt(j-1))&&j--,j}function i(E,P){var O=E.length,_=P.length;if(O==0||_==0)return 0;O>_?E=E.substring(O-_):O<_&&(P=P.substring(0,O));var j=Math.min(O,_);if(E==P)return j;for(var $=0,K=1;;){var q=E.substring(j-K),J=P.indexOf(q);if(J==-1)return $;K+=J,(J==0||E.substring(j-K)==P.substring(0,K))&&($=K,K++)}}function l(E,P){if(!E||!P||E.slice(-1)!==P.slice(-1))return 0;for(var O=0,_=Math.min(E.length,P.length),j=_,$=0;O<j;)E.substring(E.length-j,E.length-$)==P.substring(P.length-j,P.length-$)?(O=j,$=O):_=j,j=Math.floor((_-O)/2+O);return F(E.charCodeAt(E.length-j))&&j--,j}function d(E,P){var O=E.length>P.length?E:P,_=E.length>P.length?P:E;if(O.length<4||_.length*2<O.length)return null;function j(xe,he,Oe){for(var ye=xe.substring(Oe,Oe+Math.floor(xe.length/4)),N=-1,R="",A,C,y,b;(N=he.indexOf(ye,N+1))!==-1;){var L=c(xe.substring(Oe),he.substring(N)),B=l(xe.substring(0,Oe),he.substring(0,N));R.length<B+L&&(R=he.substring(N-B,N)+he.substring(N,N+L),A=xe.substring(0,Oe-B),C=xe.substring(Oe+L),y=he.substring(0,N-B),b=he.substring(N+L))}return R.length*2>=xe.length?[A,C,y,b,R]:null}var $=j(O,_,Math.ceil(O.length/4)),K=j(O,_,Math.ceil(O.length/2)),q;if(!$&&!K)return null;K?$?q=$[4].length>K[4].length?$:K:q=K:q=$;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 ve=q[4];return[J,te,me,ge,ve]}function h(E){for(var P=!1,O=[],_=0,j=null,$=0,K=0,q=0,J=0,te=0;$<E.length;)E[$][0]==t?(O[_++]=$,K=J,q=te,J=0,te=0,j=E[$][1]):(E[$][0]==e?J+=E[$][1].length:te+=E[$][1].length,j&&j.length<=Math.max(K,q)&&j.length<=Math.max(J,te)&&(E.splice(O[_-1],0,[n,j]),E[O[_-1]+1][0]=e,_--,_--,$=_>0?O[_-1]:-1,K=0,q=0,J=0,te=0,j=null,P=!0)),$++;for(P&&S(E),T(E),$=1;$<E.length;){if(E[$-1][0]==n&&E[$][0]==e){var me=E[$-1][1],ge=E[$][1],ve=i(me,ge),xe=i(ge,me);ve>=xe?(ve>=me.length/2||ve>=ge.length/2)&&(E.splice($,0,[t,ge.substring(0,ve)]),E[$-1][1]=me.substring(0,me.length-ve),E[$+1][1]=ge.substring(ve),$++):(xe>=me.length/2||xe>=ge.length/2)&&(E.splice($,0,[t,me.substring(0,xe)]),E[$-1][0]=e,E[$-1][1]=ge.substring(0,ge.length-xe),E[$+1][0]=n,E[$+1][1]=me.substring(xe),$++),$++}$++}}var f=/[^a-zA-Z0-9]/,g=/\s/,p=/[\r\n]/,v=/\n\r?\n$/,x=/^\r?\n\r?\n/;function T(E){function P(xe,he){if(!xe||!he)return 6;var Oe=xe.charAt(xe.length-1),ye=he.charAt(0),N=Oe.match(f),R=ye.match(f),A=N&&Oe.match(g),C=R&&ye.match(g),y=A&&Oe.match(p),b=C&&ye.match(p),L=y&&xe.match(v),B=b&&he.match(x);return L||B?5:y||b?4:N&&!A&&C?3:A||C?2:N||R?1:0}for(var O=1;O<E.length-1;){if(E[O-1][0]==t&&E[O+1][0]==t){var _=E[O-1][1],j=E[O][1],$=E[O+1][1],K=l(_,j);if(K){var q=j.substring(j.length-K);_=_.substring(0,_.length-K),j=q+j.substring(0,j.length-K),$=q+$}for(var J=_,te=j,me=$,ge=P(_,j)+P(j,$);j.charAt(0)===$.charAt(0);){_+=j.charAt(0),j=j.substring(1)+$.charAt(0),$=$.substring(1);var ve=P(_,j)+P(j,$);ve>=ge&&(ge=ve,J=_,te=j,me=$)}E[O-1][1]!=J&&(J?E[O-1][1]=J:(E.splice(O-1,1),O--),E[O][1]=te,me?E[O+1][1]=me:(E.splice(O+1,1),O--))}O++}}function S(E,P){E.push([t,""]);for(var O=0,_=0,j=0,$="",K="",q;O<E.length;){if(O<E.length-1&&!E[O][1]){E.splice(O,1);continue}switch(E[O][0]){case e:j++,K+=E[O][1],O++;break;case n:_++,$+=E[O][1],O++;break;case t:var J=O-j-_-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),$=te+$,K=te+K,!E[J][1]){E.splice(J,1),O--;var me=J-1;E[me]&&E[me][0]===e&&(j++,K=E[me][1]+K,me--),E[me]&&E[me][0]===n&&(_++,$=E[me][1]+$,me--),J=me}}if(M(E[O][1])){var te=E[O][1].charAt(0);E[O][1]=E[O][1].slice(1),$+=te,K+=te}}if(O<E.length-1&&!E[O][1]){E.splice(O,1);break}if($.length>0||K.length>0){$.length>0&&K.length>0&&(q=c(K,$),q!==0&&(J>=0?E[J][1]+=K.substring(0,q):(E.splice(0,0,[t,K.substring(0,q)]),O++),K=K.substring(q),$=$.substring(q)),q=l(K,$),q!==0&&(E[O][1]=K.substring(K.length-q)+E[O][1],K=K.substring(0,K.length-q),$=$.substring(0,$.length-q)));var ge=j+_;$.length===0&&K.length===0?(E.splice(O-ge,ge),O=O-ge):$.length===0?(E.splice(O-ge,ge,[e,K]),O=O-ge+1):K.length===0?(E.splice(O-ge,ge,[n,$]),O=O-ge+1):(E.splice(O-ge,ge,[n,$],[e,K]),O=O-ge+2)}O!==0&&E[O-1][0]===t?(E[O-1][1]+=E[O][1],E.splice(O,1)):O++,j=0,_=0,$="",K="";break}}E[E.length-1][1]===""&&E.pop();var ve=!1;for(O=1;O<E.length-1;)E[O-1][0]===t&&E[O+1][0]===t&&(E[O][1].substring(E[O][1].length-E[O-1][1].length)===E[O-1][1]?(E[O][1]=E[O-1][1]+E[O][1].substring(0,E[O][1].length-E[O-1][1].length),E[O+1][1]=E[O-1][1]+E[O+1][1],E.splice(O-1,1),ve=!0):E[O][1].substring(0,E[O+1][1].length)==E[O+1][1]&&(E[O-1][1]+=E[O+1][1],E[O][1]=E[O][1].substring(E[O+1][1].length)+E[O+1][1],E.splice(O+1,1),ve=!0)),O++;ve&&S(E,P)}function I(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 I(E.charCodeAt(E.length-1))}function X(E){for(var P=[],O=0;O<E.length;O++)E[O][1].length>0&&P.push(E[O]);return P}function H(E,P,O,_){return z(E)||M(_)?null:X([[t,E],[n,P],[e,O],[t,_]])}function re(E,P,O){var _=typeof O=="number"?{index:O,length:0}:O.oldRange,j=typeof O=="number"?null:O.newRange,$=E.length,K=P.length;if(_.length===0&&(j===null||j.length===0)){var q=_.index,J=E.slice(0,q),te=E.slice(q),me=j?j.index:null;e:{var ge=q+K-$;if(me!==null&&me!==ge||ge<0||ge>K)break e;var ve=P.slice(0,ge),xe=P.slice(ge);if(xe!==te)break e;var he=Math.min(q,ge),Oe=J.slice(0,he),ye=ve.slice(0,he);if(Oe!==ye)break e;var N=J.slice(he),R=ve.slice(he);return H(Oe,N,R,te)}e:{if(me!==null&&me!==q)break e;var A=q,ve=P.slice(0,A),xe=P.slice(A);if(ve!==J)break e;var C=Math.min($-A,K-A),y=te.slice(te.length-C),b=xe.slice(xe.length-C);if(y!==b)break e;var N=te.slice(0,te.length-C),R=xe.slice(0,xe.length-C);return H(J,N,R,y)}}if(_.length>0&&j&&j.length===0)e:{var Oe=E.slice(0,_.index),y=E.slice(_.index+_.length),he=Oe.length,C=y.length;if(K<he+C)break e;var ye=P.slice(0,he),b=P.slice(K-C);if(Oe!==ye||y!==b)break e;var N=E.slice(he,$-C),R=P.slice(he,K-C);return H(Oe,N,R,y)}return null}function G(E,P,O,_){return r(E,P,O,_,!0)}return G.INSERT=e,G.DELETE=n,G.EQUAL=t,Ii=G,Ii}var kr={exports:{}};kr.exports;var cl;function ul(){return cl||(cl=1,function(n,e){var t=200,r="__lodash_hash_undefined__",s=9007199254740991,a="[object Arguments]",o="[object Array]",c="[object Boolean]",i="[object Date]",l="[object Error]",d="[object Function]",h="[object GeneratorFunction]",f="[object Map]",g="[object Number]",p="[object Object]",v="[object Promise]",x="[object RegExp]",T="[object Set]",S="[object String]",I="[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]",O="[object Uint8ClampedArray]",_="[object Uint16Array]",j="[object Uint32Array]",$=/[\\^$.*+?()[\]{}|]/g,K=/\w*$/,q=/^\[object .+?Constructor\]$/,J=/^(?:0|[1-9]\d*)$/,te={};te[a]=te[o]=te[M]=te[z]=te[c]=te[i]=te[X]=te[H]=te[re]=te[G]=te[E]=te[f]=te[g]=te[p]=te[x]=te[T]=te[S]=te[I]=te[P]=te[O]=te[_]=te[j]=!0,te[l]=te[d]=te[F]=!1;var me=typeof Tn=="object"&&Tn&&Tn.Object===Object&&Tn,ge=typeof self=="object"&&self&&self.Object===Object&&self,ve=me||ge||Function("return this")(),xe=e&&!e.nodeType&&e,he=xe&&!0&&n&&!n.nodeType&&n,Oe=he&&he.exports===xe;function ye(m,w){return m.set(w[0],w[1]),m}function N(m,w){return m.add(w),m}function R(m,w){for(var D=-1,ie=m?m.length:0;++D<ie&&w(m[D],D,m)!==!1;);return m}function A(m,w){for(var D=-1,ie=w.length,Fe=m.length;++D<ie;)m[Fe+D]=w[D];return m}function C(m,w,D,ie){for(var Fe=-1,Re=m?m.length:0;++Fe<Re;)D=w(D,m[Fe],Fe,m);return D}function y(m,w){for(var D=-1,ie=Array(m);++D<m;)ie[D]=w(D);return ie}function b(m,w){return m==null?void 0:m[w]}function L(m){var w=!1;if(m!=null&&typeof m.toString!="function")try{w=!!(m+"")}catch{}return w}function B(m){var w=-1,D=Array(m.size);return m.forEach(function(ie,Fe){D[++w]=[Fe,ie]}),D}function U(m,w){return function(D){return m(w(D))}}function V(m){var w=-1,D=Array(m.size);return m.forEach(function(ie){D[++w]=ie}),D}var W=Array.prototype,Z=Function.prototype,Y=Object.prototype,Q=ve["__core-js_shared__"],ne=function(){var m=/[^.]+$/.exec(Q&&Q.keys&&Q.keys.IE_PROTO||"");return m?"Symbol(src)_1."+m:""}(),oe=Z.toString,fe=Y.hasOwnProperty,Ae=Y.toString,De=RegExp("^"+oe.call(fe).replace($,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ge=Oe?ve.Buffer:void 0,je=ve.Symbol,Be=ve.Uint8Array,$e=U(Object.getPrototypeOf,Object),rt=Object.create,it=Y.propertyIsEnumerable,Dt=W.splice,bt=Object.getOwnPropertySymbols,_e=Ge?Ge.isBuffer:void 0,Pe=U(Object.keys,Object),We=Zt(ve,"DataView"),pe=Zt(ve,"Map"),be=Zt(ve,"Promise"),Ce=Zt(ve,"Set"),Le=Zt(ve,"WeakMap"),Ie=Zt(Object,"create"),Ve=St(We),Ke=St(pe),et=St(be),dt=St(Ce),ft=St(Le),It=je?je.prototype:void 0,Ut=It?It.valueOf:void 0;function lt(m){var w=-1,D=m?m.length:0;for(this.clear();++w<D;){var ie=m[w];this.set(ie[0],ie[1])}}function Ot(){this.__data__=Ie?Ie(null):{}}function Xt(m){return this.has(m)&&delete this.__data__[m]}function Hn(m){var w=this.__data__;if(Ie){var D=w[m];return D===r?void 0:D}return fe.call(w,m)?w[m]:void 0}function mn(m){var w=this.__data__;return Ie?w[m]!==void 0:fe.call(w,m)}function Cn(m,w){var D=this.__data__;return D[m]=Ie&&w===void 0?r:w,this}lt.prototype.clear=Ot,lt.prototype.delete=Xt,lt.prototype.get=Hn,lt.prototype.has=mn,lt.prototype.set=Cn;function ot(m){var w=-1,D=m?m.length:0;for(this.clear();++w<D;){var ie=m[w];this.set(ie[0],ie[1])}}function fr(){this.__data__=[]}function hr(m){var w=this.__data__,D=Ue(w,m);if(D<0)return!1;var ie=w.length-1;return D==ie?w.pop():Dt.call(w,D,1),!0}function pr(m){var w=this.__data__,D=Ue(w,m);return D<0?void 0:w[D][1]}function mr(m){return Ue(this.__data__,m)>-1}function gr(m,w){var D=this.__data__,ie=Ue(D,m);return ie<0?D.push([m,w]):D[ie][1]=w,this}ot.prototype.clear=fr,ot.prototype.delete=hr,ot.prototype.get=pr,ot.prototype.has=mr,ot.prototype.set=gr;function ct(m){var w=-1,D=m?m.length:0;for(this.clear();++w<D;){var ie=m[w];this.set(ie[0],ie[1])}}function vr(){this.__data__={hash:new lt,map:new(pe||ot),string:new lt}}function yr(m){return Wn(this,m).delete(m)}function br(m){return Wn(this,m).get(m)}function xt(m){return Wn(this,m).has(m)}function xr(m,w){return Wn(this,m).set(m,w),this}ct.prototype.clear=vr,ct.prototype.delete=yr,ct.prototype.get=br,ct.prototype.has=xt,ct.prototype.set=xr;function pt(m){this.__data__=new ot(m)}function k(){this.__data__=new ot}function ae(m){return this.__data__.delete(m)}function se(m){return this.__data__.get(m)}function ce(m){return this.__data__.has(m)}function de(m,w){var D=this.__data__;if(D instanceof ot){var ie=D.__data__;if(!pe||ie.length<t-1)return ie.push([m,w]),this;D=this.__data__=new ct(ie)}return D.set(m,w),this}pt.prototype.clear=k,pt.prototype.delete=ae,pt.prototype.get=se,pt.prototype.has=ce,pt.prototype.set=de;function ke(m,w){var D=Qr(m)||Er(m)?y(m.length,String):[],ie=D.length,Fe=!!ie;for(var Re in m)fe.call(m,Re)&&!(Fe&&(Re=="length"||Io(Re,ie)))&&D.push(Re);return D}function we(m,w,D){var ie=m[w];(!(fe.call(m,w)&&Gs(ie,D))||D===void 0&&!(w in m))&&(m[w]=D)}function Ue(m,w){for(var D=m.length;D--;)if(Gs(m[D][0],w))return D;return-1}function qe(m,w){return m&&Zr(w,es(w),m)}function Qe(m,w,D,ie,Fe,Re,He){var ze;if(ie&&(ze=Re?ie(m,Fe,Re,He):ie(m)),ze!==void 0)return ze;if(!an(m))return m;var at=Qr(m);if(at){if(ze=Co(m),!w)return To(m,ze)}else{var Xe=yn(m),At=Xe==d||Xe==h;if(Ws(m))return gn(m,w);if(Xe==p||Xe==a||At&&!Re){if(L(m))return Re?m:{};if(ze=on(At?{}:m),!w)return No(m,qe(ze,m))}else{if(!te[Xe])return Re?m:{};ze=Ro(m,Xe,Qe,w)}}He||(He=new pt);var Ct=He.get(m);if(Ct)return Ct;if(He.set(m,ze),!at)var ut=D?Oo(m):es(m);return R(ut||m,function(wt,mt){ut&&(mt=wt,wt=m[mt]),we(ze,mt,Qe(wt,w,D,ie,mt,m,He))}),ze}function Et(m){return an(m)?rt(m):{}}function ue(m,w,D){var ie=w(m);return Qr(m)?ie:A(ie,D(m))}function st(m){return Ae.call(m)}function Lt(m){if(!an(m)||ko(m))return!1;var w=Jr(m)||L(m)?De:q;return w.test(St(m))}function Gn(m){if(!zs(m))return Pe(m);var w=[];for(var D in Object(m))fe.call(m,D)&&D!="constructor"&&w.push(D);return w}function gn(m,w){if(w)return m.slice();var D=new m.constructor(m.length);return m.copy(D),D}function Rn(m){var w=new m.constructor(m.byteLength);return new Be(w).set(new Be(m)),w}function Yt(m,w){var D=w?Rn(m.buffer):m.buffer;return new m.constructor(D,m.byteOffset,m.byteLength)}function _s(m,w,D){var ie=w?D(B(m),!0):B(m);return C(ie,ye,new m.constructor)}function qs(m){var w=new m.constructor(m.source,K.exec(m));return w.lastIndex=m.lastIndex,w}function Ao(m,w,D){var ie=w?D(V(m),!0):V(m);return C(ie,N,new m.constructor)}function wo(m){return Ut?Object(Ut.call(m)):{}}function So(m,w){var D=w?Rn(m.buffer):m.buffer;return new m.constructor(D,m.byteOffset,m.length)}function To(m,w){var D=-1,ie=m.length;for(w||(w=Array(ie));++D<ie;)w[D]=m[D];return w}function Zr(m,w,D,ie){D||(D={});for(var Fe=-1,Re=w.length;++Fe<Re;){var He=w[Fe],ze=void 0;we(D,He,ze===void 0?m[He]:ze)}return D}function No(m,w){return Zr(m,vn(m),w)}function Oo(m){return ue(m,es,vn)}function Wn(m,w){var D=m.__data__;return Lo(w)?D[typeof w=="string"?"string":"hash"]:D.map}function Zt(m,w){var D=b(m,w);return Lt(D)?D:void 0}var vn=bt?U(bt,Object):Po,yn=st;(We&&yn(new We(new ArrayBuffer(1)))!=z||pe&&yn(new pe)!=f||be&&yn(be.resolve())!=v||Ce&&yn(new Ce)!=T||Le&&yn(new Le)!=F)&&(yn=function(m){var w=Ae.call(m),D=w==p?m.constructor:void 0,ie=D?St(D):void 0;if(ie)switch(ie){case Ve:return z;case Ke:return f;case et:return v;case dt:return T;case ft:return F}return w});function Co(m){var w=m.length,D=m.constructor(w);return w&&typeof m[0]=="string"&&fe.call(m,"index")&&(D.index=m.index,D.input=m.input),D}function on(m){return typeof m.constructor=="function"&&!zs(m)?Et($e(m)):{}}function Ro(m,w,D,ie){var Fe=m.constructor;switch(w){case M:return Rn(m);case c:case i:return new Fe(+m);case z:return Yt(m,ie);case X:case H:case re:case G:case E:case P:case O:case _:case j:return So(m,ie);case f:return _s(m,ie,D);case g:case S:return new Fe(m);case x:return qs(m);case T:return Ao(m,ie,D);case I:return wo(m)}}function Io(m,w){return w=w??s,!!w&&(typeof m=="number"||J.test(m))&&m>-1&&m%1==0&&m<w}function Lo(m){var w=typeof m;return w=="string"||w=="number"||w=="symbol"||w=="boolean"?m!=="__proto__":m===null}function ko(m){return!!ne&&ne in m}function zs(m){var w=m&&m.constructor,D=typeof w=="function"&&w.prototype||Y;return m===D}function St(m){if(m!=null){try{return oe.call(m)}catch{}try{return m+""}catch{}}return""}function Hs(m){return Qe(m,!0,!0)}function Gs(m,w){return m===w||m!==m&&w!==w}function Er(m){return Bo(m)&&fe.call(m,"callee")&&(!it.call(m,"callee")||Ae.call(m)==a)}var Qr=Array.isArray;function Ar(m){return m!=null&&Ks(m.length)&&!Jr(m)}function Bo(m){return Xs(m)&&Ar(m)}var Ws=_e||Fo;function Jr(m){var w=an(m)?Ae.call(m):"";return w==d||w==h}function Ks(m){return typeof m=="number"&&m>-1&&m%1==0&&m<=s}function an(m){var w=typeof m;return!!m&&(w=="object"||w=="function")}function Xs(m){return!!m&&typeof m=="object"}function es(m){return Ar(m)?ke(m):Gn(m)}function Po(){return[]}function Fo(){return!1}n.exports=Hs}(kr,kr.exports)),kr.exports}var Br={exports:{}};Br.exports;var dl;function fl(){return dl||(dl=1,function(n,e){var t=200,r="__lodash_hash_undefined__",s=1,a=2,o=9007199254740991,c="[object Arguments]",i="[object Array]",l="[object AsyncFunction]",d="[object Boolean]",h="[object Date]",f="[object Error]",g="[object Function]",p="[object GeneratorFunction]",v="[object Map]",x="[object Number]",T="[object Null]",S="[object Object]",I="[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]",O="[object Float32Array]",_="[object Float64Array]",j="[object Int8Array]",$="[object Int16Array]",K="[object Int32Array]",q="[object Uint8Array]",J="[object Uint8ClampedArray]",te="[object Uint16Array]",me="[object Uint32Array]",ge=/[\\^$.*+?()[\]{}|]/g,ve=/^\[object .+?Constructor\]$/,xe=/^(?:0|[1-9]\d*)$/,he={};he[O]=he[_]=he[j]=he[$]=he[K]=he[q]=he[J]=he[te]=he[me]=!0,he[c]=he[i]=he[E]=he[d]=he[P]=he[h]=he[f]=he[g]=he[v]=he[x]=he[S]=he[M]=he[z]=he[X]=he[G]=!1;var Oe=typeof Tn=="object"&&Tn&&Tn.Object===Object&&Tn,ye=typeof self=="object"&&self&&self.Object===Object&&self,N=Oe||ye||Function("return this")(),R=e&&!e.nodeType&&e,A=R&&!0&&n&&!n.nodeType&&n,C=A&&A.exports===R,y=C&&Oe.process,b=function(){try{return y&&y.binding&&y.binding("util")}catch{}}(),L=b&&b.isTypedArray;function B(m,w){for(var D=-1,ie=m==null?0:m.length,Fe=0,Re=[];++D<ie;){var He=m[D];w(He,D,m)&&(Re[Fe++]=He)}return Re}function U(m,w){for(var D=-1,ie=w.length,Fe=m.length;++D<ie;)m[Fe+D]=w[D];return m}function V(m,w){for(var D=-1,ie=m==null?0:m.length;++D<ie;)if(w(m[D],D,m))return!0;return!1}function W(m,w){for(var D=-1,ie=Array(m);++D<m;)ie[D]=w(D);return ie}function Z(m){return function(w){return m(w)}}function Y(m,w){return m.has(w)}function Q(m,w){return m==null?void 0:m[w]}function ne(m){var w=-1,D=Array(m.size);return m.forEach(function(ie,Fe){D[++w]=[Fe,ie]}),D}function oe(m,w){return function(D){return m(w(D))}}function fe(m){var w=-1,D=Array(m.size);return m.forEach(function(ie){D[++w]=ie}),D}var Ae=Array.prototype,De=Function.prototype,Ge=Object.prototype,je=N["__core-js_shared__"],Be=De.toString,$e=Ge.hasOwnProperty,rt=function(){var m=/[^.]+$/.exec(je&&je.keys&&je.keys.IE_PROTO||"");return m?"Symbol(src)_1."+m:""}(),it=Ge.toString,Dt=RegExp("^"+Be.call($e).replace(ge,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),bt=C?N.Buffer:void 0,_e=N.Symbol,Pe=N.Uint8Array,We=Ge.propertyIsEnumerable,pe=Ae.splice,be=_e?_e.toStringTag:void 0,Ce=Object.getOwnPropertySymbols,Le=bt?bt.isBuffer:void 0,Ie=oe(Object.keys,Object),Ve=vn(N,"DataView"),Ke=vn(N,"Map"),et=vn(N,"Promise"),dt=vn(N,"Set"),ft=vn(N,"WeakMap"),It=vn(Object,"create"),Ut=St(Ve),lt=St(Ke),Ot=St(et),Xt=St(dt),Hn=St(ft),mn=_e?_e.prototype:void 0,Cn=mn?mn.valueOf:void 0;function ot(m){var w=-1,D=m==null?0:m.length;for(this.clear();++w<D;){var ie=m[w];this.set(ie[0],ie[1])}}function fr(){this.__data__=It?It(null):{},this.size=0}function hr(m){var w=this.has(m)&&delete this.__data__[m];return this.size-=w?1:0,w}function pr(m){var w=this.__data__;if(It){var D=w[m];return D===r?void 0:D}return $e.call(w,m)?w[m]:void 0}function mr(m){var w=this.__data__;return It?w[m]!==void 0:$e.call(w,m)}function gr(m,w){var D=this.__data__;return this.size+=this.has(m)?0:1,D[m]=It&&w===void 0?r:w,this}ot.prototype.clear=fr,ot.prototype.delete=hr,ot.prototype.get=pr,ot.prototype.has=mr,ot.prototype.set=gr;function ct(m){var w=-1,D=m==null?0:m.length;for(this.clear();++w<D;){var ie=m[w];this.set(ie[0],ie[1])}}function vr(){this.__data__=[],this.size=0}function yr(m){var w=this.__data__,D=gn(w,m);if(D<0)return!1;var ie=w.length-1;return D==ie?w.pop():pe.call(w,D,1),--this.size,!0}function br(m){var w=this.__data__,D=gn(w,m);return D<0?void 0:w[D][1]}function xt(m){return gn(this.__data__,m)>-1}function xr(m,w){var D=this.__data__,ie=gn(D,m);return ie<0?(++this.size,D.push([m,w])):D[ie][1]=w,this}ct.prototype.clear=vr,ct.prototype.delete=yr,ct.prototype.get=br,ct.prototype.has=xt,ct.prototype.set=xr;function pt(m){var w=-1,D=m==null?0:m.length;for(this.clear();++w<D;){var ie=m[w];this.set(ie[0],ie[1])}}function k(){this.size=0,this.__data__={hash:new ot,map:new(Ke||ct),string:new ot}}function ae(m){var w=Zt(this,m).delete(m);return this.size-=w?1:0,w}function se(m){return Zt(this,m).get(m)}function ce(m){return Zt(this,m).has(m)}function de(m,w){var D=Zt(this,m),ie=D.size;return D.set(m,w),this.size+=D.size==ie?0:1,this}pt.prototype.clear=k,pt.prototype.delete=ae,pt.prototype.get=se,pt.prototype.has=ce,pt.prototype.set=de;function ke(m){var w=-1,D=m==null?0:m.length;for(this.__data__=new pt;++w<D;)this.add(m[w])}function we(m){return this.__data__.set(m,r),this}function Ue(m){return this.__data__.has(m)}ke.prototype.add=ke.prototype.push=we,ke.prototype.has=Ue;function qe(m){var w=this.__data__=new ct(m);this.size=w.size}function Qe(){this.__data__=new ct,this.size=0}function Et(m){var w=this.__data__,D=w.delete(m);return this.size=w.size,D}function ue(m){return this.__data__.get(m)}function st(m){return this.__data__.has(m)}function Lt(m,w){var D=this.__data__;if(D instanceof ct){var ie=D.__data__;if(!Ke||ie.length<t-1)return ie.push([m,w]),this.size=++D.size,this;D=this.__data__=new pt(ie)}return D.set(m,w),this.size=D.size,this}qe.prototype.clear=Qe,qe.prototype.delete=Et,qe.prototype.get=ue,qe.prototype.has=st,qe.prototype.set=Lt;function Gn(m,w){var D=Er(m),ie=!D&&Gs(m),Fe=!D&&!ie&&Ar(m),Re=!D&&!ie&&!Fe&&Xs(m),He=D||ie||Fe||Re,ze=He?W(m.length,String):[],at=ze.length;for(var Xe in m)$e.call(m,Xe)&&!(He&&(Xe=="length"||Fe&&(Xe=="offset"||Xe=="parent")||Re&&(Xe=="buffer"||Xe=="byteLength"||Xe=="byteOffset")||Ro(Xe,at)))&&ze.push(Xe);return ze}function gn(m,w){for(var D=m.length;D--;)if(Hs(m[D][0],w))return D;return-1}function Rn(m,w,D){var ie=w(m);return Er(m)?ie:U(ie,D(m))}function Yt(m){return m==null?m===void 0?re:T:be&&be in Object(m)?yn(m):zs(m)}function _s(m){return an(m)&&Yt(m)==c}function qs(m,w,D,ie,Fe){return m===w?!0:m==null||w==null||!an(m)&&!an(w)?m!==m&&w!==w:Ao(m,w,D,ie,qs,Fe)}function Ao(m,w,D,ie,Fe,Re){var He=Er(m),ze=Er(w),at=He?i:on(m),Xe=ze?i:on(w);at=at==c?S:at,Xe=Xe==c?S:Xe;var At=at==S,Ct=Xe==S,ut=at==Xe;if(ut&&Ar(m)){if(!Ar(w))return!1;He=!0,At=!1}if(ut&&!At)return Re||(Re=new qe),He||Xs(m)?Zr(m,w,D,ie,Fe,Re):No(m,w,at,D,ie,Fe,Re);if(!(D&s)){var wt=At&&$e.call(m,"__wrapped__"),mt=Ct&&$e.call(w,"__wrapped__");if(wt||mt){var In=wt?m.value():m,bn=mt?w.value():w;return Re||(Re=new qe),Fe(In,bn,D,ie,Re)}}return ut?(Re||(Re=new qe),Oo(m,w,D,ie,Fe,Re)):!1}function wo(m){if(!Ks(m)||Lo(m))return!1;var w=Ws(m)?Dt:ve;return w.test(St(m))}function So(m){return an(m)&&Jr(m.length)&&!!he[Yt(m)]}function To(m){if(!ko(m))return Ie(m);var w=[];for(var D in Object(m))$e.call(m,D)&&D!="constructor"&&w.push(D);return w}function Zr(m,w,D,ie,Fe,Re){var He=D&s,ze=m.length,at=w.length;if(ze!=at&&!(He&&at>ze))return!1;var Xe=Re.get(m);if(Xe&&Re.get(w))return Xe==w;var At=-1,Ct=!0,ut=D&a?new ke:void 0;for(Re.set(m,w),Re.set(w,m);++At<ze;){var wt=m[At],mt=w[At];if(ie)var In=He?ie(mt,wt,At,w,m,Re):ie(wt,mt,At,m,w,Re);if(In!==void 0){if(In)continue;Ct=!1;break}if(ut){if(!V(w,function(bn,Kn){if(!Y(ut,Kn)&&(wt===bn||Fe(wt,bn,D,ie,Re)))return ut.push(Kn)})){Ct=!1;break}}else if(!(wt===mt||Fe(wt,mt,D,ie,Re))){Ct=!1;break}}return Re.delete(m),Re.delete(w),Ct}function No(m,w,D,ie,Fe,Re,He){switch(D){case P:if(m.byteLength!=w.byteLength||m.byteOffset!=w.byteOffset)return!1;m=m.buffer,w=w.buffer;case E:return!(m.byteLength!=w.byteLength||!Re(new Pe(m),new Pe(w)));case d:case h:case x:return Hs(+m,+w);case f:return m.name==w.name&&m.message==w.message;case M:case X:return m==w+"";case v:var ze=ne;case z:var at=ie&s;if(ze||(ze=fe),m.size!=w.size&&!at)return!1;var Xe=He.get(m);if(Xe)return Xe==w;ie|=a,He.set(m,w);var At=Zr(ze(m),ze(w),ie,Fe,Re,He);return He.delete(m),At;case H:if(Cn)return Cn.call(m)==Cn.call(w)}return!1}function Oo(m,w,D,ie,Fe,Re){var He=D&s,ze=Wn(m),at=ze.length,Xe=Wn(w),At=Xe.length;if(at!=At&&!He)return!1;for(var Ct=at;Ct--;){var ut=ze[Ct];if(!(He?ut in w:$e.call(w,ut)))return!1}var wt=Re.get(m);if(wt&&Re.get(w))return wt==w;var mt=!0;Re.set(m,w),Re.set(w,m);for(var In=He;++Ct<at;){ut=ze[Ct];var bn=m[ut],Kn=w[ut];if(ie)var Qc=He?ie(Kn,bn,ut,w,m,Re):ie(bn,Kn,ut,m,w,Re);if(!(Qc===void 0?bn===Kn||Fe(bn,Kn,D,ie,Re):Qc)){mt=!1;break}In||(In=ut=="constructor")}if(mt&&!In){var Ys=m.constructor,Zs=w.constructor;Ys!=Zs&&"constructor"in m&&"constructor"in w&&!(typeof Ys=="function"&&Ys instanceof Ys&&typeof Zs=="function"&&Zs instanceof Zs)&&(mt=!1)}return Re.delete(m),Re.delete(w),mt}function Wn(m){return Rn(m,es,Co)}function Zt(m,w){var D=m.__data__;return Io(w)?D[typeof w=="string"?"string":"hash"]:D.map}function vn(m,w){var D=Q(m,w);return wo(D)?D:void 0}function yn(m){var w=$e.call(m,be),D=m[be];try{m[be]=void 0;var ie=!0}catch{}var Fe=it.call(m);return ie&&(w?m[be]=D:delete m[be]),Fe}var Co=Ce?function(m){return m==null?[]:(m=Object(m),B(Ce(m),function(w){return We.call(m,w)}))}:Po,on=Yt;(Ve&&on(new Ve(new ArrayBuffer(1)))!=P||Ke&&on(new Ke)!=v||et&&on(et.resolve())!=I||dt&&on(new dt)!=z||ft&&on(new ft)!=G)&&(on=function(m){var w=Yt(m),D=w==S?m.constructor:void 0,ie=D?St(D):"";if(ie)switch(ie){case Ut:return P;case lt:return v;case Ot:return I;case Xt:return z;case Hn:return G}return w});function Ro(m,w){return w=w??o,!!w&&(typeof m=="number"||xe.test(m))&&m>-1&&m%1==0&&m<w}function Io(m){var w=typeof m;return w=="string"||w=="number"||w=="symbol"||w=="boolean"?m!=="__proto__":m===null}function Lo(m){return!!rt&&rt in m}function ko(m){var w=m&&m.constructor,D=typeof w=="function"&&w.prototype||Ge;return m===D}function zs(m){return it.call(m)}function St(m){if(m!=null){try{return Be.call(m)}catch{}try{return m+""}catch{}}return""}function Hs(m,w){return m===w||m!==m&&w!==w}var Gs=_s(function(){return arguments}())?_s:function(m){return an(m)&&$e.call(m,"callee")&&!We.call(m,"callee")},Er=Array.isArray;function Qr(m){return m!=null&&Jr(m.length)&&!Ws(m)}var Ar=Le||Fo;function Bo(m,w){return qs(m,w)}function Ws(m){if(!Ks(m))return!1;var w=Yt(m);return w==g||w==p||w==l||w==F}function Jr(m){return typeof m=="number"&&m>-1&&m%1==0&&m<=o}function Ks(m){var w=typeof m;return m!=null&&(w=="object"||w=="function")}function an(m){return m!=null&&typeof m=="object"}var Xs=L?Z(L):So;function es(m){return Qr(m)?Gn(m):To(m)}function Po(){return[]}function Fo(){return!1}n.exports=Bo}(Br,Br.exports)),Br.exports}var vs={},hl;function C0(){if(hl)return vs;hl=1,Object.defineProperty(vs,"__esModule",{value:!0});const n=ul(),e=fl();var t;return function(r){function s(i={},l={},d=!1){typeof i!="object"&&(i={}),typeof l!="object"&&(l={});let h=n(l);d||(h=Object.keys(h).reduce((f,g)=>(h[g]!=null&&(f[g]=h[g]),f),{}));for(const f in i)i[f]!==void 0&&l[f]===void 0&&(h[f]=i[f]);return Object.keys(h).length>0?h:void 0}r.compose=s;function a(i={},l={}){typeof i!="object"&&(i={}),typeof l!="object"&&(l={});const d=Object.keys(i).concat(Object.keys(l)).reduce((h,f)=>(e(i[f],l[f])||(h[f]=l[f]===void 0?null:l[f]),h),{});return Object.keys(d).length>0?d:void 0}r.diff=a;function o(i={},l={}){i=i||{};const d=Object.keys(l).reduce((h,f)=>(l[f]!==i[f]&&i[f]!==void 0&&(h[f]=l[f]),h),{});return Object.keys(i).reduce((h,f)=>(i[f]!==l[f]&&l[f]===void 0&&(h[f]=null),h),d)}r.invert=o;function c(i,l,d=!1){if(typeof i!="object")return l;if(typeof l!="object")return;if(!d)return l;const h=Object.keys(l).reduce((f,g)=>(i[g]===void 0&&(f[g]=l[g]),f),{});return Object.keys(h).length>0?h:void 0}r.transform=c}(t||(t={})),vs.default=t,vs}var ys={},pl;function ml(){if(pl)return ys;pl=1,Object.defineProperty(ys,"__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={})),ys.default=n,ys}var bs={},gl;function R0(){if(gl)return bs;gl=1,Object.defineProperty(bs,"__esModule",{value:!0});const n=ml();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 a=this.offset,o=n.default.length(s);if(r>=o-a?(r=o-a,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(a,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,a=this.next(),o=this.ops.slice(this.index);return this.offset=r,this.index=s,[a].concat(o)}}else return[]}}return bs.default=e,bs}var vl;function I0(){return vl||(vl=1,function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.AttributeMap=e.OpIterator=e.Op=void 0;const t=O0(),r=ul(),s=fl(),a=C0();e.AttributeMap=a.default;const o=ml();e.Op=o.default;const c=R0();e.OpIterator=c.default;const i="\0",l=(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 g=Object.keys(h)[0];if(!g||g!==Object.keys(f)[0])throw new Error(`embed types not matched: ${g} != ${Object.keys(f)[0]}`);return[g,h[g],f[g]]};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,g){this.handlers[f]=g}static unregisterEmbed(f){delete this.handlers[f]}static getHandler(f){const g=this.handlers[f];if(!g)throw new Error(`no handlers for embed type "${f}"`);return g}insert(f,g){const p={};return typeof f=="string"&&f.length===0?this:(p.insert=f,g!=null&&typeof g=="object"&&Object.keys(g).length>0&&(p.attributes=g),this.push(p))}delete(f){return f<=0?this:this.push({delete:f})}retain(f,g){if(typeof f=="number"&&f<=0)return this;const p={retain:f};return g!=null&&typeof g=="object"&&Object.keys(g).length>0&&(p.attributes=g),this.push(p)}push(f){let g=this.ops.length,p=this.ops[g-1];if(f=r(f),typeof p=="object"){if(typeof f.delete=="number"&&typeof p.delete=="number")return this.ops[g-1]={delete:p.delete+f.delete},this;if(typeof p.delete=="number"&&f.insert!=null&&(g-=1,p=this.ops[g-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[g-1]={insert:p.insert+f.insert},typeof f.attributes=="object"&&(this.ops[g-1].attributes=f.attributes),this;if(typeof f.retain=="number"&&typeof p.retain=="number")return this.ops[g-1]={retain:p.retain+f.retain},typeof f.attributes=="object"&&(this.ops[g-1].attributes=f.attributes),this}}return g===this.ops.length?this.ops.push(f):this.ops.splice(g,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 g=[],p=[];return this.forEach(v=>{(f(v)?g:p).push(v)}),[g,p]}reduce(f,g){return this.ops.reduce(f,g)}changeLength(){return this.reduce((f,g)=>g.insert?f+o.default.length(g):g.delete?f-g.delete:f,0)}length(){return this.reduce((f,g)=>f+o.default.length(g),0)}slice(f=0,g=1/0){const p=[],v=new c.default(this.ops);let x=0;for(;x<g&&v.hasNext();){let T;x<f?T=v.next(f-x):(T=v.next(g-x),p.push(T)),x+=o.default.length(T)}return new d(p)}compose(f){const g=new c.default(this.ops),p=new c.default(f.ops),v=[],x=p.peek();if(x!=null&&typeof x.retain=="number"&&x.attributes==null){let S=x.retain;for(;g.peekType()==="insert"&&g.peekLength()<=S;)S-=g.peekLength(),v.push(g.next());x.retain-S>0&&p.next(x.retain-S)}const T=new d(v);for(;g.hasNext()||p.hasNext();)if(p.peekType()==="insert")T.push(p.next());else if(g.peekType()==="delete")T.push(g.next());else{const S=Math.min(g.peekLength(),p.peekLength()),I=g.next(S),F=p.next(S);if(F.retain){const M={};if(typeof I.retain=="number")M.retain=typeof F.retain=="number"?S:F.retain;else if(typeof F.retain=="number")I.retain==null?M.insert=I.insert:M.retain=I.retain;else{const X=I.retain==null?"insert":"retain",[H,re,G]=l(I[X],F.retain),E=d.getHandler(H);M[X]={[H]:E.compose(re,G,X==="retain")}}const z=a.default.compose(I.attributes,F.attributes,typeof I.retain=="number");if(z&&(M.attributes=z),T.push(M),!p.hasNext()&&s(T.ops[T.ops.length-1],M)){const X=new d(g.rest());return T.concat(X).chop()}}else typeof F.delete=="number"&&(typeof I.retain=="number"||typeof I.retain=="object"&&I.retain!==null)&&T.push(F)}return T.chop()}concat(f){const g=new d(this.ops.slice());return f.ops.length>0&&(g.push(f.ops[0]),g.ops=g.ops.concat(f.ops.slice(1))),g}diff(f,g){if(this.ops===f.ops)return new d;const p=[this,f].map(I=>I.map(F=>{if(F.insert!=null)return typeof F.insert=="string"?F.insert:i;const M=I===f?"on":"with";throw new Error("diff() called "+M+" non-document")}).join("")),v=new d,x=t(p[0],p[1],g,!0),T=new c.default(this.ops),S=new c.default(f.ops);return x.forEach(I=>{let F=I[1].length;for(;F>0;){let M=0;switch(I[0]){case t.INSERT:M=Math.min(S.peekLength(),F),v.push(S.next(M));break;case t.DELETE:M=Math.min(F,T.peekLength()),T.next(M),v.delete(M);break;case t.EQUAL:M=Math.min(T.peekLength(),S.peekLength(),F);const z=T.next(M),X=S.next(M);s(z.insert,X.insert)?v.retain(M,a.default.diff(z.attributes,X.attributes)):v.push(X).delete(M);break}F-=M}}),v.chop()}eachLine(f,g=`
6
+ `){const p=new c.default(this.ops);let v=new d,x=0;for(;p.hasNext();){if(p.peekType()!=="insert")return;const T=p.peek(),S=o.default.length(T)-p.peekLength(),I=typeof T.insert=="string"?T.insert.indexOf(g,S)-S:-1;if(I<0)v.push(p.next());else if(I>0)v.push(p.next(I));else{if(f(v,p.next(1).attributes||{},x)===!1)return;x+=1,v=new d}}v.length()>0&&f(v,{},x)}invert(f){const g=new d;return this.reduce((p,v)=>{if(v.insert)g.delete(o.default.length(v));else{if(typeof v.retain=="number"&&v.attributes==null)return g.retain(v.retain),p+v.retain;if(v.delete||typeof v.retain=="number"){const x=v.delete||v.retain;return f.slice(p,p+x).forEach(S=>{v.delete?g.push(S):v.retain&&v.attributes&&g.retain(o.default.length(S),a.default.invert(v.attributes,S.attributes))}),p+x}else if(typeof v.retain=="object"&&v.retain!==null){const x=f.slice(p,p+1),T=new c.default(x.ops).next(),[S,I,F]=l(v.retain,T.insert),M=d.getHandler(S);return g.retain({[S]:M.invert(I,F)},a.default.invert(v.attributes,T.attributes)),p+1}}return p},0),g.chop()}transform(f,g=!1){if(g=!!g,typeof f=="number")return this.transformPosition(f,g);const p=f,v=new c.default(this.ops),x=new c.default(p.ops),T=new d;for(;v.hasNext()||x.hasNext();)if(v.peekType()==="insert"&&(g||x.peekType()!=="insert"))T.retain(o.default.length(v.next()));else if(x.peekType()==="insert")T.push(x.next());else{const S=Math.min(v.peekLength(),x.peekLength()),I=v.next(S),F=x.next(S);if(I.delete)continue;if(F.delete)T.push(F);else{const M=I.retain,z=F.retain;let X=typeof z=="object"&&z!==null?z:S;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],g)})}}T.retain(X,a.default.transform(I.attributes,F.attributes,g))}}return T.chop()}transformPosition(f,g=!1){g=!!g;const p=new c.default(this.ops);let v=0;for(;p.hasNext()&&v<=f;){const x=p.peekLength(),T=p.peekType();if(p.next(),T==="delete"){f-=Math.min(x,f-v);continue}else T==="insert"&&(v<f||!g)&&(f+=x);v+=x}return f}}d.Op=o.default,d.OpIterator=c.default,d.AttributeMap=a.default,d.handlers={},e.default=d,n.exports=d,n.exports.default=d}(gs,gs.exports)),gs.exports}var kt=I0();const Te=Ri(kt);class _t extends Rt{static value(){}optimize(){(this.prev||this.next)&&this.remove()}length(){return 0}value(){return""}}_t.blotName="break",_t.tagName="BR";let qt=class extends ms{};const L0={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function xs(n){return n.replace(/[&<>"']/g,e=>L0[e])}const sn=class sn extends Ti{static compare(e,t){const r=sn.order.indexOf(e),s=sn.order.indexOf(t);return r>=0||s>=0?r-s:e===t?0:e<t?-1:1}formatAt(e,t,r,s){if(sn.compare(this.statics.blotName,r)<0&&this.scroll.query(r,Ne.BLOT)){const a=this.isolate(e,t);s&&a.wrap(r,s)}else super.formatAt(e,t,r,s)}optimize(e){if(super.optimize(e),this.parent instanceof sn&&sn.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(sn,"allowedChildren",[sn,_t,Rt,qt]),Ee(sn,"order",["cursor","inline","link","underline","strike","italic","bold","script","code"]);let tn=sn;const yl=1;class ht extends Lr{constructor(){super(...arguments);Ee(this,"cache",{})}delta(){return this.cache.delta==null&&(this.cache.delta=bl(this)),this.cache.delta}deleteAt(t,r){super.deleteAt(t,r),this.cache={}}formatAt(t,r,s,a){r<=0||(this.scroll.query(s,Ne.BLOCK)?t+r===this.length()&&this.format(s,a):super.formatAt(t,Math.min(r,this.length()-t-1),s,a),this.cache={})}insertAt(t,r,s){if(s!=null){super.insertAt(t,r,s),this.cache={};return}if(r.length===0)return;const a=r.split(`
7
+ `),o=a.shift();o.length>0&&(t<this.length()-1||this.children.tail==null?super.insertAt(Math.min(t,this.length()-1),o):this.children.tail.insertAt(this.children.tail.length(),o),this.cache={});let c=this;a.reduce((i,l)=>(c=c.split(i,!0),c.insertAt(0,l),l.length),t+o.length)}insertBefore(t,r){const{head:s}=this.children;super.insertBefore(t,r),s instanceof _t&&s.remove(),this.cache={}}length(){return this.cache.length==null&&(this.cache.length=super.length()+yl),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()-yl)){const a=this.clone();return t===0?(this.parent.insertBefore(a,this),this):(this.parent.insertBefore(a,this.next),a)}const s=super.split(t,r);return this.cache={},s}}ht.blotName="block",ht.tagName="P",ht.defaultChild=_t,ht.allowedChildren=[_t,tn,Rt,qt];class Bt extends Rt{attach(){super.attach(),this.attributes=new hs(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(`
8
+ `),a=s.pop(),o=s.map(i=>{const l=this.scroll.create(ht.blotName);return l.insertAt(0,i),l}),c=this.split(e);o.forEach(i=>{this.parent.insertBefore(i,c)}),a&&this.parent.insertBefore(this.scroll.create("text",a),c)}}Bt.scope=Ne.BLOCK_BLOT;function bl(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return n.descendants(gt).reduce((t,r)=>r.length()===0?t:t.insert(r.value(),Pt(r,{},e)),new Te).insert(`
9
+ `,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 Rt{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 qt?this.prev:null,r=t?t.length():0,s=this.next instanceof qt?this.next:null,a=s?s.text:"",{textNode:o}=this,c=o.data.split(Mt.CONTENTS).join("");o.data=Mt.CONTENTS;let i;if(t)i=t,(c||s)&&(t.insertAt(t.length(),c+a),s&&s.remove());else if(s)i=s,s.insertAt(0,c);else{const l=document.createTextNode(c);i=this.scroll.create(l),this.parent.insertBefore(i,this)}if(this.remove(),e){const l=(f,g)=>t&&f===t.domNode?g:f===o?r+g-1:s&&f===s.domNode?r+c.length+g:null,d=l(e.start.node,e.start.offset),h=l(e.end.node,e.end.offset);if(d!==null&&h!==null)return{startNode:i.domNode,startOffset:d,endNode:i.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 sr=Mt;var Li={exports:{}},xl;function k0(){return xl||(xl=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(i,l,d){this.fn=i,this.context=l,this.once=d||!1}function a(i,l,d,h,f){if(typeof d!="function")throw new TypeError("The listener must be a function");var g=new s(d,h||i,f),p=t?t+l:l;return i._events[p]?i._events[p].fn?i._events[p]=[i._events[p],g]:i._events[p].push(g):(i._events[p]=g,i._eventsCount++),i}function o(i,l){--i._eventsCount===0?i._events=new r:delete i._events[l]}function c(){this._events=new r,this._eventsCount=0}c.prototype.eventNames=function(){var l=[],d,h;if(this._eventsCount===0)return l;for(h in d=this._events)e.call(d,h)&&l.push(t?h.slice(1):h);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(d)):l},c.prototype.listeners=function(l){var d=t?t+l:l,h=this._events[d];if(!h)return[];if(h.fn)return[h.fn];for(var f=0,g=h.length,p=new Array(g);f<g;f++)p[f]=h[f].fn;return p},c.prototype.listenerCount=function(l){var d=t?t+l:l,h=this._events[d];return h?h.fn?1:h.length:0},c.prototype.emit=function(l,d,h,f,g,p){var v=t?t+l:l;if(!this._events[v])return!1;var x=this._events[v],T=arguments.length,S,I;if(x.fn){switch(x.once&&this.removeListener(l,x.fn,void 0,!0),T){case 1:return x.fn.call(x.context),!0;case 2:return x.fn.call(x.context,d),!0;case 3:return x.fn.call(x.context,d,h),!0;case 4:return x.fn.call(x.context,d,h,f),!0;case 5:return x.fn.call(x.context,d,h,f,g),!0;case 6:return x.fn.call(x.context,d,h,f,g,p),!0}for(I=1,S=new Array(T-1);I<T;I++)S[I-1]=arguments[I];x.fn.apply(x.context,S)}else{var F=x.length,M;for(I=0;I<F;I++)switch(x[I].once&&this.removeListener(l,x[I].fn,void 0,!0),T){case 1:x[I].fn.call(x[I].context);break;case 2:x[I].fn.call(x[I].context,d);break;case 3:x[I].fn.call(x[I].context,d,h);break;case 4:x[I].fn.call(x[I].context,d,h,f);break;default:if(!S)for(M=1,S=new Array(T-1);M<T;M++)S[M-1]=arguments[M];x[I].fn.apply(x[I].context,S)}}return!0},c.prototype.on=function(l,d,h){return a(this,l,d,h,!1)},c.prototype.once=function(l,d,h){return a(this,l,d,h,!0)},c.prototype.removeListener=function(l,d,h,f){var g=t?t+l:l;if(!this._events[g])return this;if(!d)return o(this,g),this;var p=this._events[g];if(p.fn)p.fn===d&&(!f||p.once)&&(!h||p.context===h)&&o(this,g);else{for(var v=0,x=[],T=p.length;v<T;v++)(p[v].fn!==d||f&&!p[v].once||h&&p[v].context!==h)&&x.push(p[v]);x.length?this._events[g]=x.length===1?x[0]:x:o(this,g)}return this},c.prototype.removeAllListeners=function(l){var d;return l?(d=t?t+l:l,this._events[d]&&o(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}(Li)),Li.exports}var B0=k0();const P0=Ri(B0),ki=new WeakMap,Bi=["error","warn","log","info"];let Pi="warn";function El(n){if(Pi&&Bi.indexOf(n)<=Bi.indexOf(Pi)){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 dn(n){return Bi.reduce((e,t)=>(e[t]=El.bind(console,t,n),e),{})}dn.level=n=>{Pi=n},El.level=dn.level;const Fi=dn("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 a=ki.get(s);a&&a.emitter&&a.emitter.handleDOM(...t)})})});class Se extends P0{constructor(){super(),this.domListeners={},this.on("error",Fi.error)}emit(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Fi.log.call(Fi,...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(a=>{let{node:o,handler:c}=a;(e.target===o||o.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 Mi=dn("quill:selection");class Un{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.index=e,this.length=t}}class F0{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 Un(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,a)=>{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 o=a.some(c=>c.type==="characterData"||c.type==="childList"||c.type==="attributes"&&c.target===this.root);this.update(o?Se.sources.SILENT:s)}catch{}})}),this.emitter.on(Se.events.SCROLL_OPTIMIZE,(r,s)=>{if(s.range){const{startNode:a,startOffset:o,endNode:c,endOffset:i}=s.range;this.setNativeRange(a,o,c,i),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 gt){const a=s.split(r.start.offset);s.parent.insertBefore(this.cursor,a)}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,[a,o]=this.scroll.leaf(e);if(a==null)return null;if(t>0&&o===a.length()){const[d]=this.scroll.leaf(e+1);if(d){const[h]=this.scroll.line(e),[f]=this.scroll.line(e+1);h===f&&(a=d,o=0)}}[s,o]=a.position(o,!0);const c=document.createRange();if(t>0)return c.setStart(s,o),[a,o]=this.scroll.leaf(e+t),a==null?null:([s,o]=a.position(o,!0),c.setEnd(s,o),c.getBoundingClientRect());let i="left",l;if(s instanceof Text){if(!s.data.length)return null;o<s.data.length?(c.setStart(s,o),c.setEnd(s,o+1)):(c.setStart(s,o-1),c.setEnd(s,o),i="right"),l=c.getBoundingClientRect()}else{if(!(a.domNode instanceof Element))return null;l=a.domNode.getBoundingClientRect(),o>0&&(i="right")}return{bottom:l.top+l.height,height:l.height,left:l[i],right:l[i],top:l.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 Mi.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&&Di(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(o=>{const[c,i]=o,l=this.scroll.find(c,!0),d=l.offset(this.scroll);return i===0?d:l instanceof gt?d+l.index(c,i):d+l.length()}),s=Math.min(Math.max(...r),this.scroll.length()-1),a=Math.min(s,...r);return new Un(a,s-a)}normalizeNative(e){if(!Di(this.root,e.startContainer)||!e.collapsed&&!Di(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:a}=r;for(;!(s instanceof Text)&&s.childNodes.length>0;)if(s.childNodes.length>a)s=s.childNodes[a],a=0;else if(s.childNodes.length===a)s=s.lastChild,s instanceof Text?a=s.data.length:s.childNodes.length>0?a=s.childNodes.length:a=s.childNodes.length+1;else break;r.node=s,r.offset=a}),t}rangeToNative(e){const t=this.scroll.length(),r=(s,a)=>{s=Math.min(t-1,s);const[o,c]=this.scroll.leaf(s);return o?o.position(c,a):[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,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(Mi.info("setNativeRange",e,t,r,s),e!=null&&(this.root.parentNode==null||e.parentNode==null||r.parentNode==null))return;const o=document.getSelection();if(o!=null)if(e!=null){this.hasFocus()||this.root.focus({preventScroll:!0});const{native:c}=this.getNativeRange()||{};if(c==null||a||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 i=document.createRange();i.setStart(e,t),i.setEnd(r,s),o.removeAllRanges(),o.addRange(i)}}else o.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),Mi.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),!wi(t,this.lastRange)){if(!this.composing&&s!=null&&s.native.collapsed&&s.start.node!==this.cursor.textNode){const o=this.cursor.restore();o&&this.setNativeRange(o.startNode,o.startOffset,o.endNode,o.endOffset)}const a=[Se.events.SELECTION_CHANGE,Qn(this.lastRange),Qn(t),e];this.emitter.emit(Se.events.EDITOR_CHANGE,...a),e!==Se.sources.SILENT&&this.emitter.emit(...a)}}}function Di(n,e){try{e.parentNode}catch{return!1}return n.contains(e)}const M0=/^[ -~]*$/;class D0{constructor(e){this.scroll=e,this.delta=this.getDelta()}applyDelta(e){this.scroll.update();let t=this.scroll.length();this.scroll.batchStart();const r=Al(e),s=new Te;return j0(r.ops.slice()).reduce((o,c)=>{const i=kt.Op.length(c);let l=c.attributes||{},d=!1,h=!1;if(c.insert!=null){if(s.retain(i),typeof c.insert=="string"){const p=c.insert;h=!p.endsWith(`
10
+ `)&&(t<=o||!!this.scroll.descendant(Bt,o)[0]),this.scroll.insertAt(o,p);const[v,x]=this.scroll.line(o);let T=wn({},Pt(v));if(v instanceof ht){const[S]=v.descendant(gt,x);S&&(T=wn(T,Pt(S)))}l=kt.AttributeMap.diff(T,l)||{}}else if(typeof c.insert=="object"){const p=Object.keys(c.insert)[0];if(p==null)return o;const v=this.scroll.query(p,Ne.INLINE)!=null;if(v)(t<=o||this.scroll.descendant(Bt,o)[0])&&(h=!0);else if(o>0){const[x,T]=this.scroll.descendant(gt,o-1);x instanceof qt?x.value()[T]!==`
11
+ `&&(d=!0):x instanceof Rt&&x.statics.scope===Ne.INLINE_BLOT&&(d=!0)}if(this.scroll.insertAt(o,p,c.insert[p]),v){const[x]=this.scroll.descendant(gt,o);if(x){const T=wn({},Pt(x));l=kt.AttributeMap.diff(T,l)||{}}}}t+=i}else if(s.push(c),c.retain!==null&&typeof c.retain=="object"){const p=Object.keys(c.retain)[0];if(p==null)return o;this.scroll.updateEmbedAt(o,p,c.retain[p])}Object.keys(l).forEach(p=>{this.scroll.formatAt(o,i,p,l[p])});const f=d?1:0,g=h?1:0;return t+=f+g,s.retain(f),s.delete(g),o+i+f+g},0),s.reduce((o,c)=>typeof c.delete=="number"?(this.scroll.deleteAt(o,c.delete),o):o+kt.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(a=>{this.scroll.lines(e,Math.max(t,1)).forEach(o=>{o.format(a,r[a])})}),this.scroll.optimize();const s=new Te().retain(e).retain(t,Qn(r));return this.update(s)}formatText(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.keys(r).forEach(a=>{this.scroll.formatAt(e,t,a,r[a])});const s=new Te().retain(e).retain(t,Qn(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[i]=c;i instanceof ht?r.push(i):i instanceof gt&&s.push(i)}):(r=this.scroll.lines(e,t),s=this.scroll.descendants(gt,e,t));const[a,o]=[r,s].map(c=>{const i=c.shift();if(i==null)return{};let l=Pt(i);for(;Object.keys(l).length>0;){const d=c.shift();if(d==null)return l;l=U0(Pt(d),l)}return l});return{...a,...o}}getHTML(e,t){const[r,s]=this.scroll.line(e);if(r){const a=r.length();return r.length()>=s+t&&!(s===0&&t===a)?Pr(r,s,t,!0):Pr(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=Al(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,`
12
12
  `).replace(/\r/g,`
13
- `),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,Qn(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 _t}removeFormat(e,t){const r=this.getText(e,t),[s,a]=this.scroll.line(e+t);let o=0,l=new Te;s!=null&&(o=s.length()-a,l=s.delta().slice(a,a+o-1).insert(`
14
- `));const c=this.getContents(e,t+o).diff(new Te().insert(r).concat(l)),d=new Te().retain(e).concat(c);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(M0)&&this.scroll.find(t[0].target)){const a=this.scroll.find(t[0].target),o=Pt(a),l=a.offset(this.scroll),i=t[0].oldValue.replace(sr.CONTENTS,""),c=new Te().insert(i),d=new Te().insert(a.value()),h=r&&{oldRange:wl(r.oldRange,-l),newRange:wl(r.newRange,-l)};e=new Te().retain(l).concat(c.diff(d,h)).reduce((g,p)=>p.insert?g.insert(p.insert,o):g.push(p),new Te),this.delta=s.compose(e)}else this.delta=this.getDelta(),(!e||!wi(s.compose(e),this.delta))&&(e=s.diff(this.delta,r));return e}}function ir(n,e,t){if(n.length===0){const[g]=Ui(t.pop());return e<=0?`</li></${g}>`:`</li></${g}>${ir([],e-1,t)}`}const[{child:r,offset:s,length:a,indent:o,type:l},...i]=n,[c,d]=Ui(l);if(o>e)return t.push(l),o===e+1?`<${c}><li${d}>${Br(r,s,a)}${ir(i,o,t)}`:`<${c}><li>${ir(n,e+1,t)}`;const h=t[t.length-1];if(o===e&&l===h)return`</li><li${d}>${Br(r,s,a)}${ir(i,o,t)}`;const[f]=Ui(t.pop());return`</li></${f}>${ir(n,e-1,t)}`}function Br(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 qt)return xs(n.value().slice(e,e+t)).replaceAll(" ","&nbsp;");if(n instanceof Vt){if(n.statics.blotName==="list-container"){const c=[];return n.children.forEachAt(e,t,(d,h,f)=>{const g="formats"in d&&typeof d.formats=="function"?d.formats():{};c.push({child:d,offset:h,length:f,indent:g.indent||0,type:g.list})}),ir(c,-1,[])}const s=[];if(n.children.forEachAt(e,t,(c,d,h)=>{s.push(Br(c,d,h))}),r||n.statics.blotName==="list")return s.join("");const{outerHTML:a,innerHTML:o}=n.domNode,[l,i]=a.split(`>${o}<`);return l==="<table"?`<table style="border: 1px solid #000;">${s.join("")}<${i}`:`${l}>${s.join("")}<${i}`}return n.domNode instanceof Element?n.domNode.outerHTML:""}function U0(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 Ui(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 Al(n){return n.reduce((e,t)=>{if(typeof t.insert=="string"){const r=t.insert.replace(/\r\n/g,`
13
+ `),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,Qn(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 _t}removeFormat(e,t){const r=this.getText(e,t),[s,a]=this.scroll.line(e+t);let o=0,c=new Te;s!=null&&(o=s.length()-a,c=s.delta().slice(a,a+o-1).insert(`
14
+ `));const l=this.getContents(e,t+o).diff(new Te().insert(r).concat(c)),d=new Te().retain(e).concat(l);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(M0)&&this.scroll.find(t[0].target)){const a=this.scroll.find(t[0].target),o=Pt(a),c=a.offset(this.scroll),i=t[0].oldValue.replace(sr.CONTENTS,""),l=new Te().insert(i),d=new Te().insert(a.value()),h=r&&{oldRange:wl(r.oldRange,-c),newRange:wl(r.newRange,-c)};e=new Te().retain(c).concat(l.diff(d,h)).reduce((g,p)=>p.insert?g.insert(p.insert,o):g.push(p),new Te),this.delta=s.compose(e)}else this.delta=this.getDelta(),(!e||!wi(s.compose(e),this.delta))&&(e=s.diff(this.delta,r));return e}}function ir(n,e,t){if(n.length===0){const[g]=Ui(t.pop());return e<=0?`</li></${g}>`:`</li></${g}>${ir([],e-1,t)}`}const[{child:r,offset:s,length:a,indent:o,type:c},...i]=n,[l,d]=Ui(c);if(o>e)return t.push(c),o===e+1?`<${l}><li${d}>${Pr(r,s,a)}${ir(i,o,t)}`:`<${l}><li>${ir(n,e+1,t)}`;const h=t[t.length-1];if(o===e&&c===h)return`</li><li${d}>${Pr(r,s,a)}${ir(i,o,t)}`;const[f]=Ui(t.pop());return`</li></${f}>${ir(n,e-1,t)}`}function Pr(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 qt)return xs(n.value().slice(e,e+t)).replaceAll(" ","&nbsp;");if(n instanceof Vt){if(n.statics.blotName==="list-container"){const l=[];return n.children.forEachAt(e,t,(d,h,f)=>{const g="formats"in d&&typeof d.formats=="function"?d.formats():{};l.push({child:d,offset:h,length:f,indent:g.indent||0,type:g.list})}),ir(l,-1,[])}const s=[];if(n.children.forEachAt(e,t,(l,d,h)=>{s.push(Pr(l,d,h))}),r||n.statics.blotName==="list")return s.join("");const{outerHTML:a,innerHTML:o}=n.domNode,[c,i]=a.split(`>${o}<`);return c==="<table"?`<table style="border: 1px solid #000;">${s.join("")}<${i}`:`${c}>${s.join("")}<${i}`}return n.domNode instanceof Element?n.domNode.outerHTML:""}function U0(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 Ui(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 Al(n){return n.reduce((e,t)=>{if(typeof t.insert=="string"){const r=t.insert.replace(/\r\n/g,`
15
15
  `).replace(/\r/g,`
16
16
  `);return e.insert(r,t.attributes)}return e.push(t)},new Te)}function wl(n,e){let{index:t,length:r}=n;return new Un(t+e,r)}function j0(n){const e=[];return n.forEach(t=>{typeof t.insert=="string"?t.insert.split(`
17
17
  `).forEach((s,a)=>{a&&e.push({insert:`
18
- `,attributes:t.attributes}),s&&e.push({insert:s,attributes:t.attributes})}):e.push(t)}),e}class zt{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.quill=e,this.options=t}}Ee(zt,"DEFAULTS",{});const Es="\uFEFF";class ji extends Rt{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(Es),this.rightGuard=document.createTextNode(Es),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(Es).join("");if(e===this.leftGuard)if(this.prev instanceof qt){const a=this.prev.length();this.prev.insertAt(a,s),t={startNode:this.prev.domNode,startOffset:a+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 qt?(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=Es,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 $0{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 ji)&&(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 Kr=class Kr{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(Kr,"DEFAULTS",{modules:{}}),Ee(Kr,"themes",{default:Kr});let or=Kr;const V0=n=>n.parentElement||n.getRootNode().host||null,_0=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}},As=n=>{const e=parseInt(n,10);return Number.isNaN(e)?0:e},Sl=(n,e,t,r,s,a)=>n<t&&e>r?0:n<t?-(t-n+s):e>r?e-n>r-t?n+s-t:e-r+a:0,q0=(n,e)=>{var a,o,l;const t=n.ownerDocument;let r=e,s=n;for(;s;){const i=s===t.body,c=i?{top:0,right:((a=window.visualViewport)==null?void 0:a.width)??t.documentElement.clientWidth,bottom:((o=window.visualViewport)==null?void 0:o.height)??t.documentElement.clientHeight,left:0}:_0(s),d=getComputedStyle(s),h=Sl(r.left,r.right,c.left,c.right,As(d.scrollPaddingLeft),As(d.scrollPaddingRight)),f=Sl(r.top,r.bottom,c.top,c.bottom,As(d.scrollPaddingTop),As(d.scrollPaddingBottom));if(h||f)if(i)(l=t.defaultView)==null||l.scrollBy(h,f);else{const{scrollLeft:g,scrollTop:p}=s;f&&(s.scrollTop+=f),h&&(s.scrollLeft+=h);const v=s.scrollLeft-g,x=s.scrollTop-p;r={left:r.left-v,top:r.top-x,right:r.right-v,bottom:r.bottom-x}}s=i||d.position==="fixed"?null:V0(s)}},z0=100,H0=["block","break","cursor","inline","scroll","text"],G0=(n,e,t)=>{const r=new er;return H0.forEach(s=>{const a=e.query(s);a&&r.register(a)}),n.forEach(s=>{let a=e.query(s);a||t.error(`Cannot register "${s}" specified in "formats" config. Are you sure it was registered?`);let o=0;for(;a;)if(r.register(a),a="blotName"in a?a.requiredContainer??null:null,o+=1,o>z0){t.error(`Cycle detected in registering blot requiredContainer: "${s}"`);break}}),r},ar=dn("quill"),ws=new er;Vt.uiClass="ql-ui";const Kt=class Kt{static debug(e){e===!0&&(e="log"),dn.level(e)}static find(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return ki.get(e)||ws.find(e,t)}static import(e){return this.imports[e]==null&&ar.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&&ar.warn(`Overwriting ${e} with`,t),this.imports[e]=t,(e.startsWith("blots/")||e.startsWith("formats/"))&&t&&typeof t!="boolean"&&t.blotName!=="abstract"&&ws.register(t),typeof t.register=="function"&&t.register(ws)}}constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.options=W0(e,t),this.container=this.options.container,this.container==null){ar.error("Invalid Quill container",e);return}this.options.debug&&Kt.debug(this.options.debug);const r=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",ki.set(this.container,this),this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.emitter=new Se;const s=Oi.blotName,a=this.options.registry.query(s);if(!a||!("blotName"in a))throw new Error(`Cannot initialize Quill without "${s}" blot`);if(this.scroll=new a(this.options.registry,this.root,{emitter:this.emitter}),this.editor=new D0(this.scroll),this.selection=new F0(this.scroll,this.emitter),this.composition=new $0(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,o=>{o===Se.events.TEXT_CHANGE&&this.root.classList.toggle("ql-blank",this.editor.isBlank())}),this.emitter.on(Se.events.SCROLL_UPDATE,(o,l)=>{const i=this.selection.lastRange,[c]=this.selection.getRange(),d=i&&c?{oldRange:i,newRange:c}:void 0;Ht.call(this,()=>this.editor.update(null,l,d),o)}),this.emitter.on(Se.events.SCROLL_EMBED_UPDATE,(o,l)=>{const i=this.selection.lastRange,[c]=this.selection.getRange(),d=i&&c?{oldRange:i,newRange:c}:void 0;Ht.call(this,()=>{const h=new Te().retain(o.offset(this)).retain({[o.statics.blotName]:l});return this.editor.update(h,[],d)},Kt.sources.USER)}),r){const o=this.clipboard.convert({html:`${r}<p><br></p>`,text:`
19
- `});this.setContents(o)}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]=fn(e,t,r),Ht.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 Ht.call(this,()=>{const s=this.getSelection(!0);let a=new Te;if(s==null)return a;if(this.scroll.query(e,Ne.BLOCK))a=this.editor.formatLine(s.index,s.length,{[e]:t});else{if(s.length===0)return this.selection.format(e,t),a;a=this.editor.formatText(s.index,s.length,{[e]:t})}return this.setSelection(s,Se.sources.SILENT),a},r)}formatLine(e,t,r,s,a){let o;return[e,t,o,a]=fn(e,t,r,s,a),Ht.call(this,()=>this.editor.formatLine(e,t,o),a,e,0)}formatText(e,t,r,s,a){let o;return[e,t,o,a]=fn(e,t,r,s,a),Ht.call(this,()=>this.editor.formatText(e,t,o),a,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]=fn(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]=fn(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]=fn(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]:Kt.sources.API;return Ht.call(this,()=>this.editor.insertEmbed(e,t,r),s,e)}insertText(e,t,r,s,a){let o;return[e,,o,a]=fn(e,0,r,s,a),Ht.call(this,()=>this.editor.insertText(e,t,o),a,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]=fn(e,t,r),Ht.call(this,()=>this.editor.removeFormat(e,t),r,e)}scrollRectIntoView(e){q0(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 Ht.call(this,()=>{e=new Te(e);const r=this.getLength(),s=this.editor.deleteText(0,r),a=this.editor.insertContents(0,e),o=this.editor.deleteText(this.getLength()-1,1);return s.compose(a).compose(o)},t)}setSelection(e,t,r){e==null?this.selection.setRange(null,t||Kt.sources.API):([e,t,,r]=fn(e,t,r),this.selection.setRange(new Un(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 Ht.call(this,()=>(e=new Te(e),this.editor.applyDelta(e)),t,!0)}};Ee(Kt,"DEFAULTS",{bounds:null,modules:{clipboard:!0,keyboard:!0,history:!0,uploader:!0},placeholder:"",readOnly:!1,registry:ws,theme:"default"}),Ee(Kt,"events",Se.events),Ee(Kt,"sources",Se.sources),Ee(Kt,"version","2.0.3"),Ee(Kt,"imports",{delta:Te,parchment:N0,"core/module":zt,"core/theme":or});let le=Kt;function Tl(n){return typeof n=="string"?document.querySelector(n):n}function $i(n){return Object.entries(n??{}).reduce((e,t)=>{let[r,s]=t;return{...e,[r]:s===!0?{}:s}},{})}function Nl(n){return Object.fromEntries(Object.entries(n).filter(e=>e[1]!==void 0))}function W0(n,e){const t=Tl(n);if(!t)throw new Error("Invalid Quill container");const s=!e.theme||e.theme===le.DEFAULTS.theme?or:le.import(`themes/${e.theme}`);if(!s)throw new Error(`Invalid theme ${e.theme}. Did you register it?`);const{modules:a,...o}=le.DEFAULTS,{modules:l,...i}=s.DEFAULTS;let c=$i(e.modules);c!=null&&c.toolbar&&c.toolbar.constructor!==Object&&(c={...c,toolbar:{container:c.toolbar}});const d=wn({},$i(a),$i(l),c),h={...o,...Nl(i),...Nl(e)};let f=e.registry;return f?e.formats&&ar.warn('Ignoring "formats" option because "registry" is specified'):f=e.formats?G0(e.formats,h.registry,ar):h.registry,{...h,registry:f,container:t,theme:s,modules:Object.entries(d).reduce((g,p)=>{let[v,x]=p;if(!x)return g;const T=le.import(`modules/${v}`);return T==null?(ar.error(`Cannot load ${v} module. Are you sure you registered it?`),g):{...g,[v]:wn({},T.DEFAULTS||{},x)}},{}),bounds:Tl(h.bounds)}}function Ht(n,e,t,r){if(!this.isEnabled()&&e===Se.sources.USER&&!this.allowReadOnlyEdits)return new Te;let s=t==null?null:this.getSelection();const a=this.editor.delta,o=n();if(s!=null&&(t===!0&&(t=s.index),r==null?s=Ol(s,o,e):r!==0&&(s=Ol(s,t,r,e)),this.setSelection(s,Se.sources.SILENT)),o.length()>0){const l=[Se.events.TEXT_CHANGE,o,a,e];this.emitter.emit(Se.events.EDITOR_CHANGE,...l),e!==Se.sources.SILENT&&this.emitter.emit(...l)}return o}function fn(n,e,t,r,s){let a={};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"?(a=t,s=r):typeof t=="string"&&(r!=null?a[t]=r:s=t),s=s||Se.sources.API,[n,e,a,s]}function Ol(n,e,t,r){const s=typeof t=="number"?t:0;if(n==null)return null;let a,o;return e&&typeof e.transformPosition=="function"?[a,o]=[n.index,n.index+n.length].map(l=>e.transformPosition(l,r!==Se.sources.USER)):[a,o]=[n.index,n.index+n.length].map(l=>l<e||l===e&&r===Se.sources.USER?l:s>=0?l+s:Math.max(e,l+s)),new Un(a,o-a)}class jn extends ps{}function Cl(n){return n instanceof ht||n instanceof Bt}function Rl(n){return typeof n.updateContent=="function"}class lr extends Oi{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",a=>this.handleDragStart(a))}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),[a]=this.line(e+t);if(super.deleteAt(e,t),a!=null&&r!==a&&s>0){if(r instanceof Bt||a instanceof Bt){this.optimize();return}const o=a.children.head instanceof _t?null:a.children.head;r.moveChildren(a,o),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(`
18
+ `,attributes:t.attributes}),s&&e.push({insert:s,attributes:t.attributes})}):e.push(t)}),e}class zt{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.quill=e,this.options=t}}Ee(zt,"DEFAULTS",{});const Es="\uFEFF";class ji extends Rt{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(Es),this.rightGuard=document.createTextNode(Es),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(Es).join("");if(e===this.leftGuard)if(this.prev instanceof qt){const a=this.prev.length();this.prev.insertAt(a,s),t={startNode:this.prev.domNode,startOffset:a+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 qt?(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=Es,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 $0{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 ji)&&(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 Xr=class Xr{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(Xr,"DEFAULTS",{modules:{}}),Ee(Xr,"themes",{default:Xr});let or=Xr;const V0=n=>n.parentElement||n.getRootNode().host||null,_0=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}},As=n=>{const e=parseInt(n,10);return Number.isNaN(e)?0:e},Sl=(n,e,t,r,s,a)=>n<t&&e>r?0:n<t?-(t-n+s):e>r?e-n>r-t?n+s-t:e-r+a:0,q0=(n,e)=>{var a,o,c;const t=n.ownerDocument;let r=e,s=n;for(;s;){const i=s===t.body,l=i?{top:0,right:((a=window.visualViewport)==null?void 0:a.width)??t.documentElement.clientWidth,bottom:((o=window.visualViewport)==null?void 0:o.height)??t.documentElement.clientHeight,left:0}:_0(s),d=getComputedStyle(s),h=Sl(r.left,r.right,l.left,l.right,As(d.scrollPaddingLeft),As(d.scrollPaddingRight)),f=Sl(r.top,r.bottom,l.top,l.bottom,As(d.scrollPaddingTop),As(d.scrollPaddingBottom));if(h||f)if(i)(c=t.defaultView)==null||c.scrollBy(h,f);else{const{scrollLeft:g,scrollTop:p}=s;f&&(s.scrollTop+=f),h&&(s.scrollLeft+=h);const v=s.scrollLeft-g,x=s.scrollTop-p;r={left:r.left-v,top:r.top-x,right:r.right-v,bottom:r.bottom-x}}s=i||d.position==="fixed"?null:V0(s)}},z0=100,H0=["block","break","cursor","inline","scroll","text"],G0=(n,e,t)=>{const r=new er;return H0.forEach(s=>{const a=e.query(s);a&&r.register(a)}),n.forEach(s=>{let a=e.query(s);a||t.error(`Cannot register "${s}" specified in "formats" config. Are you sure it was registered?`);let o=0;for(;a;)if(r.register(a),a="blotName"in a?a.requiredContainer??null:null,o+=1,o>z0){t.error(`Cycle detected in registering blot requiredContainer: "${s}"`);break}}),r},ar=dn("quill"),ws=new er;Vt.uiClass="ql-ui";const Kt=class Kt{static debug(e){e===!0&&(e="log"),dn.level(e)}static find(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return ki.get(e)||ws.find(e,t)}static import(e){return this.imports[e]==null&&ar.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&&ar.warn(`Overwriting ${e} with`,t),this.imports[e]=t,(e.startsWith("blots/")||e.startsWith("formats/"))&&t&&typeof t!="boolean"&&t.blotName!=="abstract"&&ws.register(t),typeof t.register=="function"&&t.register(ws)}}constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.options=W0(e,t),this.container=this.options.container,this.container==null){ar.error("Invalid Quill container",e);return}this.options.debug&&Kt.debug(this.options.debug);const r=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",ki.set(this.container,this),this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.emitter=new Se;const s=Oi.blotName,a=this.options.registry.query(s);if(!a||!("blotName"in a))throw new Error(`Cannot initialize Quill without "${s}" blot`);if(this.scroll=new a(this.options.registry,this.root,{emitter:this.emitter}),this.editor=new D0(this.scroll),this.selection=new F0(this.scroll,this.emitter),this.composition=new $0(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,o=>{o===Se.events.TEXT_CHANGE&&this.root.classList.toggle("ql-blank",this.editor.isBlank())}),this.emitter.on(Se.events.SCROLL_UPDATE,(o,c)=>{const i=this.selection.lastRange,[l]=this.selection.getRange(),d=i&&l?{oldRange:i,newRange:l}:void 0;Ht.call(this,()=>this.editor.update(null,c,d),o)}),this.emitter.on(Se.events.SCROLL_EMBED_UPDATE,(o,c)=>{const i=this.selection.lastRange,[l]=this.selection.getRange(),d=i&&l?{oldRange:i,newRange:l}:void 0;Ht.call(this,()=>{const h=new Te().retain(o.offset(this)).retain({[o.statics.blotName]:c});return this.editor.update(h,[],d)},Kt.sources.USER)}),r){const o=this.clipboard.convert({html:`${r}<p><br></p>`,text:`
19
+ `});this.setContents(o)}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]=fn(e,t,r),Ht.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 Ht.call(this,()=>{const s=this.getSelection(!0);let a=new Te;if(s==null)return a;if(this.scroll.query(e,Ne.BLOCK))a=this.editor.formatLine(s.index,s.length,{[e]:t});else{if(s.length===0)return this.selection.format(e,t),a;a=this.editor.formatText(s.index,s.length,{[e]:t})}return this.setSelection(s,Se.sources.SILENT),a},r)}formatLine(e,t,r,s,a){let o;return[e,t,o,a]=fn(e,t,r,s,a),Ht.call(this,()=>this.editor.formatLine(e,t,o),a,e,0)}formatText(e,t,r,s,a){let o;return[e,t,o,a]=fn(e,t,r,s,a),Ht.call(this,()=>this.editor.formatText(e,t,o),a,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]=fn(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]=fn(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]=fn(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]:Kt.sources.API;return Ht.call(this,()=>this.editor.insertEmbed(e,t,r),s,e)}insertText(e,t,r,s,a){let o;return[e,,o,a]=fn(e,0,r,s,a),Ht.call(this,()=>this.editor.insertText(e,t,o),a,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]=fn(e,t,r),Ht.call(this,()=>this.editor.removeFormat(e,t),r,e)}scrollRectIntoView(e){q0(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 Ht.call(this,()=>{e=new Te(e);const r=this.getLength(),s=this.editor.deleteText(0,r),a=this.editor.insertContents(0,e),o=this.editor.deleteText(this.getLength()-1,1);return s.compose(a).compose(o)},t)}setSelection(e,t,r){e==null?this.selection.setRange(null,t||Kt.sources.API):([e,t,,r]=fn(e,t,r),this.selection.setRange(new Un(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 Ht.call(this,()=>(e=new Te(e),this.editor.applyDelta(e)),t,!0)}};Ee(Kt,"DEFAULTS",{bounds:null,modules:{clipboard:!0,keyboard:!0,history:!0,uploader:!0},placeholder:"",readOnly:!1,registry:ws,theme:"default"}),Ee(Kt,"events",Se.events),Ee(Kt,"sources",Se.sources),Ee(Kt,"version","2.0.3"),Ee(Kt,"imports",{delta:Te,parchment:N0,"core/module":zt,"core/theme":or});let le=Kt;function Tl(n){return typeof n=="string"?document.querySelector(n):n}function $i(n){return Object.entries(n??{}).reduce((e,t)=>{let[r,s]=t;return{...e,[r]:s===!0?{}:s}},{})}function Nl(n){return Object.fromEntries(Object.entries(n).filter(e=>e[1]!==void 0))}function W0(n,e){const t=Tl(n);if(!t)throw new Error("Invalid Quill container");const s=!e.theme||e.theme===le.DEFAULTS.theme?or:le.import(`themes/${e.theme}`);if(!s)throw new Error(`Invalid theme ${e.theme}. Did you register it?`);const{modules:a,...o}=le.DEFAULTS,{modules:c,...i}=s.DEFAULTS;let l=$i(e.modules);l!=null&&l.toolbar&&l.toolbar.constructor!==Object&&(l={...l,toolbar:{container:l.toolbar}});const d=wn({},$i(a),$i(c),l),h={...o,...Nl(i),...Nl(e)};let f=e.registry;return f?e.formats&&ar.warn('Ignoring "formats" option because "registry" is specified'):f=e.formats?G0(e.formats,h.registry,ar):h.registry,{...h,registry:f,container:t,theme:s,modules:Object.entries(d).reduce((g,p)=>{let[v,x]=p;if(!x)return g;const T=le.import(`modules/${v}`);return T==null?(ar.error(`Cannot load ${v} module. Are you sure you registered it?`),g):{...g,[v]:wn({},T.DEFAULTS||{},x)}},{}),bounds:Tl(h.bounds)}}function Ht(n,e,t,r){if(!this.isEnabled()&&e===Se.sources.USER&&!this.allowReadOnlyEdits)return new Te;let s=t==null?null:this.getSelection();const a=this.editor.delta,o=n();if(s!=null&&(t===!0&&(t=s.index),r==null?s=Ol(s,o,e):r!==0&&(s=Ol(s,t,r,e)),this.setSelection(s,Se.sources.SILENT)),o.length()>0){const c=[Se.events.TEXT_CHANGE,o,a,e];this.emitter.emit(Se.events.EDITOR_CHANGE,...c),e!==Se.sources.SILENT&&this.emitter.emit(...c)}return o}function fn(n,e,t,r,s){let a={};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"?(a=t,s=r):typeof t=="string"&&(r!=null?a[t]=r:s=t),s=s||Se.sources.API,[n,e,a,s]}function Ol(n,e,t,r){const s=typeof t=="number"?t:0;if(n==null)return null;let a,o;return e&&typeof e.transformPosition=="function"?[a,o]=[n.index,n.index+n.length].map(c=>e.transformPosition(c,r!==Se.sources.USER)):[a,o]=[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 Un(a,o-a)}class jn extends ps{}function Cl(n){return n instanceof ht||n instanceof Bt}function Rl(n){return typeof n.updateContent=="function"}class lr extends Oi{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",a=>this.handleDragStart(a))}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),[a]=this.line(e+t);if(super.deleteAt(e,t),a!=null&&r!==a&&s>0){if(r instanceof Bt||a instanceof Bt){this.optimize();return}const o=a.children.head instanceof _t?null:a.children.head;r.moveChildren(a,o),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(`
20
20
  `)?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(`
21
- `))),s=r.pop();if(s==null)return;this.batchStart();const a=r.shift();if(a){const i=a.type==="block"&&(a.delta.length()===0||!this.descendant(Bt,e)[0]&&e<this.length()),c=a.type==="block"?a.delta:new Te().insert({[a.key]:a.value});Vi(this,e,c);const d=a.type==="block"?1:0,h=e+c.length()+d;i&&this.insertAt(h-1,`
22
- `);const f=Pt(this.line(e)[0]),g=kt.AttributeMap.diff(f,a.attributes)||{};Object.keys(g).forEach(p=>{this.formatAt(h-1,1,p,g[p])}),e=h}let[o,l]=this.children.find(e);if(r.length&&(o&&(o=o.split(l),l=0),r.forEach(i=>{if(i.type==="block"){const c=this.createBlock(i.attributes,o||void 0);Vi(c,0,i.delta)}else{const c=this.create(i.key,i.value);this.insertBefore(c,o||void 0),Object.keys(i.attributes).forEach(d=>{c.format(d,i.attributes[d])})}})),s.type==="block"&&s.delta.length()){const i=o?o.offset(o.scroll)+l:this.length();Vi(this,i,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 gt?[r,s]:[null,-1]}line(e){return e===this.length()?this.line(e-1):this.descendant(Cl,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,a,o)=>{let l=[],i=o;return s.children.forEachAt(a,o,(c,d,h)=>{Cl(c)?l.push(c):c instanceof ps&&(l=l.concat(r(c,d,i))),i-=h}),l};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 a=this.find(s,!0);return a&&!Rl(a)}),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(a=>a instanceof Bt,e);s&&s.statics.blotName===t&&Rl(s)&&s.updateContent(r)}handleDragStart(e){e.preventDefault()}deltaToRenderBlocks(e){const t=[];let r=new Te;return e.forEach(s=>{const a=s==null?void 0:s.insert;if(a)if(typeof a=="string"){const o=a.split(`
23
- `);o.slice(0,-1).forEach(i=>{r.insert(i,s.attributes),t.push({type:"block",delta:r,attributes:s.attributes??{}}),r=new Te});const l=o[o.length-1];l&&r.insert(l,s.attributes)}else{const o=Object.keys(a)[0];if(!o)return;this.query(o,Ne.INLINE)?r.push(s):(r.length()&&t.push({type:"block",delta:r,attributes:{}}),r=new Te,t.push({type:"blockEmbed",key:o,value:a[o],attributes:s.attributes??{}}))}}),r.length()&&t.push({type:"block",delta:r,attributes:{}}),t}createBlock(e,t){let r;const s={};Object.entries(e).forEach(l=>{let[i,c]=l;this.query(i,Ne.BLOCK&Ne.BLOT)!=null?r=i:s[i]=c});const a=this.create(r||this.statics.defaultChild.blotName,r?e[r]:void 0);this.insertBefore(a,t||void 0);const o=a.length();return Object.entries(s).forEach(l=>{let[i,c]=l;a.formatAt(0,o,i,c)}),a}}Ee(lr,"blotName","scroll"),Ee(lr,"className","ql-editor"),Ee(lr,"tagName","DIV"),Ee(lr,"defaultChild",ht),Ee(lr,"allowedChildren",[ht,Bt,jn]);function Vi(n,e,t){t.reduce((r,s)=>{const a=kt.Op.length(s);let o=s.attributes||{};if(s.insert!=null){if(typeof s.insert=="string"){const l=s.insert;n.insertAt(r,l);const[i]=n.descendant(gt,r),c=Pt(i);o=kt.AttributeMap.diff(c,o)||{}}else if(typeof s.insert=="object"){const l=Object.keys(s.insert)[0];if(l==null)return r;if(n.insertAt(r,l,s.insert[l]),n.scroll.query(l,Ne.INLINE)!=null){const[c]=n.descendant(gt,r),d=Pt(c);o=kt.AttributeMap.diff(d,o)||{}}}}return Object.keys(o).forEach(l=>{n.formatAt(r,a,l,o[l])}),r+a},e)}const _i={scope:Ne.BLOCK,whitelist:["right","center","justify"]},K0=new en("align","align",_i),Il=new $t("align","ql-align",_i),Ll=new Sn("align","text-align",_i);class kl extends Sn{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 X0=new $t("color","ql-color",{scope:Ne.INLINE}),qi=new kl("color","color",{scope:Ne.INLINE}),Y0=new $t("background","ql-bg",{scope:Ne.INLINE}),zi=new kl("background","background-color",{scope:Ne.INLINE});class $n extends jn{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(`
21
+ `))),s=r.pop();if(s==null)return;this.batchStart();const a=r.shift();if(a){const i=a.type==="block"&&(a.delta.length()===0||!this.descendant(Bt,e)[0]&&e<this.length()),l=a.type==="block"?a.delta:new Te().insert({[a.key]:a.value});Vi(this,e,l);const d=a.type==="block"?1:0,h=e+l.length()+d;i&&this.insertAt(h-1,`
22
+ `);const f=Pt(this.line(e)[0]),g=kt.AttributeMap.diff(f,a.attributes)||{};Object.keys(g).forEach(p=>{this.formatAt(h-1,1,p,g[p])}),e=h}let[o,c]=this.children.find(e);if(r.length&&(o&&(o=o.split(c),c=0),r.forEach(i=>{if(i.type==="block"){const l=this.createBlock(i.attributes,o||void 0);Vi(l,0,i.delta)}else{const l=this.create(i.key,i.value);this.insertBefore(l,o||void 0),Object.keys(i.attributes).forEach(d=>{l.format(d,i.attributes[d])})}})),s.type==="block"&&s.delta.length()){const i=o?o.offset(o.scroll)+c:this.length();Vi(this,i,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 gt?[r,s]:[null,-1]}line(e){return e===this.length()?this.line(e-1):this.descendant(Cl,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,a,o)=>{let c=[],i=o;return s.children.forEachAt(a,o,(l,d,h)=>{Cl(l)?c.push(l):l instanceof ps&&(c=c.concat(r(l,d,i))),i-=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 a=this.find(s,!0);return a&&!Rl(a)}),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(a=>a instanceof Bt,e);s&&s.statics.blotName===t&&Rl(s)&&s.updateContent(r)}handleDragStart(e){e.preventDefault()}deltaToRenderBlocks(e){const t=[];let r=new Te;return e.forEach(s=>{const a=s==null?void 0:s.insert;if(a)if(typeof a=="string"){const o=a.split(`
23
+ `);o.slice(0,-1).forEach(i=>{r.insert(i,s.attributes),t.push({type:"block",delta:r,attributes:s.attributes??{}}),r=new Te});const c=o[o.length-1];c&&r.insert(c,s.attributes)}else{const o=Object.keys(a)[0];if(!o)return;this.query(o,Ne.INLINE)?r.push(s):(r.length()&&t.push({type:"block",delta:r,attributes:{}}),r=new Te,t.push({type:"blockEmbed",key:o,value:a[o],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[i,l]=c;this.query(i,Ne.BLOCK&Ne.BLOT)!=null?r=i:s[i]=l});const a=this.create(r||this.statics.defaultChild.blotName,r?e[r]:void 0);this.insertBefore(a,t||void 0);const o=a.length();return Object.entries(s).forEach(c=>{let[i,l]=c;a.formatAt(0,o,i,l)}),a}}Ee(lr,"blotName","scroll"),Ee(lr,"className","ql-editor"),Ee(lr,"tagName","DIV"),Ee(lr,"defaultChild",ht),Ee(lr,"allowedChildren",[ht,Bt,jn]);function Vi(n,e,t){t.reduce((r,s)=>{const a=kt.Op.length(s);let o=s.attributes||{};if(s.insert!=null){if(typeof s.insert=="string"){const c=s.insert;n.insertAt(r,c);const[i]=n.descendant(gt,r),l=Pt(i);o=kt.AttributeMap.diff(l,o)||{}}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[l]=n.descendant(gt,r),d=Pt(l);o=kt.AttributeMap.diff(d,o)||{}}}}return Object.keys(o).forEach(c=>{n.formatAt(r,a,c,o[c])}),r+a},e)}const _i={scope:Ne.BLOCK,whitelist:["right","center","justify"]},K0=new en("align","align",_i),Il=new $t("align","ql-align",_i),Ll=new Sn("align","text-align",_i);class kl extends Sn{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 X0=new $t("color","ql-color",{scope:Ne.INLINE}),qi=new kl("color","color",{scope:Ne.INLINE}),Y0=new $t("background","ql-bg",{scope:Ne.INLINE}),zi=new kl("background","background-color",{scope:Ne.INLINE});class $n extends jn{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(`
24
24
  `).slice(e,e+t)}html(e,t){return`<pre>
25
25
  ${xs(this.code(e,t))}
26
- </pre>`}}class vt extends ht{static register(){le.register($n)}}Ee(vt,"TAB"," ");class Hi extends tn{}Hi.blotName="code",Hi.tagName="CODE",vt.blotName="code-block",vt.className="ql-code-block",vt.tagName="DIV",$n.blotName="code-block-container",$n.className="ql-code-block-container",$n.tagName="DIV",$n.allowedChildren=[vt],vt.allowedChildren=[qt,_t,sr],vt.requiredContainer=$n;const Gi={scope:Ne.BLOCK,whitelist:["rtl"]},Bl=new en("direction","dir",Gi),Pl=new $t("direction","ql-direction",Gi),Fl=new Sn("direction","direction",Gi),Ml={scope:Ne.INLINE,whitelist:["serif","monospace"]},Dl=new $t("font","ql-font",Ml);class Z0 extends Sn{value(e){return super.value(e).replace(/["']/g,"")}}const Ul=new Z0("font","font-family",Ml),jl=new $t("size","ql-size",{scope:Ne.INLINE,whitelist:["small","large","huge"]}),$l=new Sn("size","font-size",{scope:Ne.INLINE,whitelist:["10px","18px","32px"]}),Q0=dn("quill:keyboard"),J0=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey";class Ss extends zt{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=t1(e);if(s==null){Q0.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(o=>{const l={...s,key:o,...t,...r};this.bindings[l.key]=this.bindings[l.key]||[],this.bindings[l.key].push(l)})}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(T=>Ss.match(e,T));if(s.length===0)return;const a=le.find(e.target,!0);if(a&&a.scroll!==this.quill.scroll)return;const o=this.quill.getSelection();if(o==null||!this.quill.hasFocus())return;const[l,i]=this.quill.getLine(o.index),[c,d]=this.quill.getLeaf(o.index),[h,f]=o.length===0?[c,d]:this.quill.getLeaf(o.index+o.length),g=c instanceof ms?c.value().slice(0,d):"",p=h instanceof ms?h.value().slice(f):"",v={collapsed:o.length===0,empty:o.length===0&&l.length()<=1,format:this.quill.getFormat(o),line:l,offset:i,prefix:g,suffix:p,event:e};s.some(T=>{if(T.collapsed!=null&&T.collapsed!==v.collapsed||T.empty!=null&&T.empty!==v.empty||T.offset!=null&&T.offset!==v.offset)return!1;if(Array.isArray(T.format)){if(T.format.every(S=>v.format[S]==null))return!1}else if(typeof T.format=="object"&&!Object.keys(T.format).every(S=>T.format[S]===!0?v.format[S]!=null:T.format[S]===!1?v.format[S]==null:wi(T.format[S],v.format[S])))return!1;return T.prefix!=null&&!T.prefix.test(v.prefix)||T.suffix!=null&&!T.suffix.test(v.suffix)?!1:T.handler.call(this,o,v,T)!==!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[a]=this.quill.getLine(e.index);let o=new Te().retain(e.index-r).delete(r);if(t.offset===0){const[l]=this.quill.getLine(e.index-1);if(l&&!(l.statics.blotName==="block"&&l.length()<=1)){const c=a.formats(),d=this.quill.getFormat(e.index-1,1);if(s=kt.AttributeMap.diff(c,d)||{},Object.keys(s).length>0){const h=new Te().retain(e.index+a.length()-2).retain(1,s);o=o.compose(h)}}}this.quill.updateContents(o,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[a]=this.quill.getLine(e.index);let o=new Te().retain(e.index).delete(r);if(t.offset>=a.length()-1){const[l]=this.quill.getLine(e.index+1);if(l){const i=a.formats(),c=this.quill.getFormat(e.index,1);s=kt.AttributeMap.diff(i,c)||{},Object.keys(s).length>0&&(o=o.retain(l.length()-1).retain(1,s))}}this.quill.updateContents(o,le.sources.USER),this.quill.focus()}handleDeleteRange(e){Ki({range:e,quill:this.quill}),this.quill.focus()}handleEnter(e,t){const r=Object.keys(t.format).reduce((a,o)=>(this.quill.scroll.query(o,Ne.BLOCK)&&!Array.isArray(t.format[o])&&(a[o]=t.format[o]),a),{}),s=new Te().retain(e.index).delete(e.length).insert(`
26
+ </pre>`}}class vt extends ht{static register(){le.register($n)}}Ee(vt,"TAB"," ");class Hi extends tn{}Hi.blotName="code",Hi.tagName="CODE",vt.blotName="code-block",vt.className="ql-code-block",vt.tagName="DIV",$n.blotName="code-block-container",$n.className="ql-code-block-container",$n.tagName="DIV",$n.allowedChildren=[vt],vt.allowedChildren=[qt,_t,sr],vt.requiredContainer=$n;const Gi={scope:Ne.BLOCK,whitelist:["rtl"]},Bl=new en("direction","dir",Gi),Pl=new $t("direction","ql-direction",Gi),Fl=new Sn("direction","direction",Gi),Ml={scope:Ne.INLINE,whitelist:["serif","monospace"]},Dl=new $t("font","ql-font",Ml);class Z0 extends Sn{value(e){return super.value(e).replace(/["']/g,"")}}const Ul=new Z0("font","font-family",Ml),jl=new $t("size","ql-size",{scope:Ne.INLINE,whitelist:["small","large","huge"]}),$l=new Sn("size","font-size",{scope:Ne.INLINE,whitelist:["10px","18px","32px"]}),Q0=dn("quill:keyboard"),J0=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey";class Ss extends zt{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=t1(e);if(s==null){Q0.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(o=>{const c={...s,key:o,...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(T=>Ss.match(e,T));if(s.length===0)return;const a=le.find(e.target,!0);if(a&&a.scroll!==this.quill.scroll)return;const o=this.quill.getSelection();if(o==null||!this.quill.hasFocus())return;const[c,i]=this.quill.getLine(o.index),[l,d]=this.quill.getLeaf(o.index),[h,f]=o.length===0?[l,d]:this.quill.getLeaf(o.index+o.length),g=l instanceof ms?l.value().slice(0,d):"",p=h instanceof ms?h.value().slice(f):"",v={collapsed:o.length===0,empty:o.length===0&&c.length()<=1,format:this.quill.getFormat(o),line:c,offset:i,prefix:g,suffix:p,event:e};s.some(T=>{if(T.collapsed!=null&&T.collapsed!==v.collapsed||T.empty!=null&&T.empty!==v.empty||T.offset!=null&&T.offset!==v.offset)return!1;if(Array.isArray(T.format)){if(T.format.every(S=>v.format[S]==null))return!1}else if(typeof T.format=="object"&&!Object.keys(T.format).every(S=>T.format[S]===!0?v.format[S]!=null:T.format[S]===!1?v.format[S]==null:wi(T.format[S],v.format[S])))return!1;return T.prefix!=null&&!T.prefix.test(v.prefix)||T.suffix!=null&&!T.suffix.test(v.suffix)?!1:T.handler.call(this,o,v,T)!==!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[a]=this.quill.getLine(e.index);let o=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 l=a.formats(),d=this.quill.getFormat(e.index-1,1);if(s=kt.AttributeMap.diff(l,d)||{},Object.keys(s).length>0){const h=new Te().retain(e.index+a.length()-2).retain(1,s);o=o.compose(h)}}}this.quill.updateContents(o,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[a]=this.quill.getLine(e.index);let o=new Te().retain(e.index).delete(r);if(t.offset>=a.length()-1){const[c]=this.quill.getLine(e.index+1);if(c){const i=a.formats(),l=this.quill.getFormat(e.index,1);s=kt.AttributeMap.diff(i,l)||{},Object.keys(s).length>0&&(o=o.retain(c.length()-1).retain(1,s))}}this.quill.updateContents(o,le.sources.USER),this.quill.focus()}handleDeleteRange(e){Ki({range:e,quill:this.quill}),this.quill.focus()}handleEnter(e,t){const r=Object.keys(t.format).reduce((a,o)=>(this.quill.scroll.query(o,Ne.BLOCK)&&!Array.isArray(t.format[o])&&(a[o]=t.format[o]),a),{}),s=new Te().retain(e.index).delete(e.length).insert(`
27
27
  `,r);this.quill.updateContents(s,le.sources.USER),this.quill.setSelection(e.index+1,le.sources.SILENT),this.quill.focus()}}const e1={bindings:{bold:Wi("bold"),italic:Wi("italic"),underline:Wi("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":Vl(!0),"outdent code-block":Vl(!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(`
28
28
  `,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(`
29
- `,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,a]=e.getTable(n),o=n1(t,r,s,a);if(o==null)return;let l=t.offset();if(o<0){const i=new Te().retain(l).insert(`
30
- `);this.quill.updateContents(i,le.sources.USER),this.quill.setSelection(n.index+1,n.length,le.sources.SILENT)}else if(o>0){l+=t.length();const i=new Te().retain(l).insert(`
31
- `);this.quill.updateContents(i,le.sources.USER),this.quill.setSelection(l,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 a;switch(e.prefix.trim()){case"[]":case"[ ]":a="unchecked";break;case"[x]":a="checked";break;case"-":case"*":a="bullet";break;default:a="ordered"}this.quill.insertText(n.index," ",le.sources.USER),this.quill.history.cutoff();const o=new Te().retain(n.index-s).delete(t+1).retain(r.length()-2-s).retain(1,{list:a});return this.quill.updateContents(o,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 a=new Te().retain(n.index+e.length()-t-2).retain(1,{"code-block":null}).delete(1);return this.quill.updateContents(a,le.sources.USER),this.quill.setSelection(n.index-1,le.sources.SILENT),!1}return!0}},"embed left":Ts("ArrowLeft",!1),"embed left shift":Ts("ArrowLeft",!0),"embed right":Ts("ArrowRight",!1),"embed right shift":Ts("ArrowRight",!0),"table down":_l(!1),"table up":_l(!0)}};Ss.DEFAULTS=e1;function Vl(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:a}=s;if(e.length===0&&!r.shiftKey){this.quill.insertText(e.index,a,le.sources.USER),this.quill.setSelection(e.index+a.length,le.sources.SILENT);return}const o=e.length===0?this.quill.getLines(e.index,1):this.quill.getLines(e);let{index:l,length:i}=e;o.forEach((c,d)=>{n?(c.insertAt(0,a),d===0?l+=a.length:i+=a.length):c.domNode.textContent.startsWith(a)&&(c.deleteAt(0,a.length),d===0?l-=a.length:i-=a.length)}),this.quill.update(le.sources.USER),this.quill.setSelection(l,i,le.sources.SILENT)}}}function Ts(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[a]=this.quill.getLeaf(s);return a instanceof Rt?(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 Wi(n){return{key:n[0],shortKey:!0,handler(e,t){this.quill.format(n,!t.format[n],le.sources.USER)}}}function _l(n){return{key:n?"ArrowUp":"ArrowDown",collapsed:!0,format:["table"],handler(e,t){const r=n?"prev":"next",s=t.line,a=s.parent[r];if(a!=null){if(a.statics.blotName==="table-row"){let o=a.children.head,l=s;for(;l.prev!=null;)l=l.prev,o=o.next;const i=o.offset(this.quill.scroll)+Math.min(t.offset,o.length()-1);this.quill.setSelection(i,0,le.sources.USER)}}else{const o=s.table()[r];o!=null&&(n?this.quill.setSelection(o.offset(this.quill.scroll)+o.length()-1,0,le.sources.USER):this.quill.setSelection(o.offset(this.quill.scroll),0,le.sources.USER))}return!1}}}function t1(n){if(typeof n=="string"||typeof n=="number")n={key:n};else if(typeof n=="object")n=Qn(n);else return null;return n.shortKey&&(n[J0]=n.shortKey,delete n.shortKey),n}function Ki(n){let{quill:e,range:t}=n;const r=e.getLines(t);let s={};if(r.length>1){const a=r[0].formats(),o=r[r.length-1].formats();s=kt.AttributeMap.diff(o,a)||{}}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 n1(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 r1=/font-weight:\s*normal/,s1=["P","OL","UL"],ql=n=>n&&s1.includes(n.tagName),i1=n=>{Array.from(n.querySelectorAll("br")).filter(e=>ql(e.previousElementSibling)&&ql(e.nextElementSibling)).forEach(e=>{var t;(t=e.parentNode)==null||t.removeChild(e)})},o1=n=>{Array.from(n.querySelectorAll('b[style*="font-weight"]')).filter(e=>{var t;return(t=e.getAttribute("style"))==null?void 0:t.match(r1)}).forEach(e=>{var r;const t=n.createDocumentFragment();t.append(...e.childNodes),(r=e.parentNode)==null||r.replaceChild(t,e)})};function a1(n){n.querySelector('[id^="docs-internal-guid-"]')&&(o1(n),i1(n))}const l1=/\bmso-list:[^;]*ignore/i,c1=/\bmso-list:[^;]*\bl(\d+)/i,u1=/\bmso-list:[^;]*\blevel(\d+)/i,d1=(n,e)=>{const t=n.getAttribute("style"),r=t==null?void 0:t.match(c1);if(!r)return null;const s=Number(r[1]),a=t==null?void 0:t.match(u1),o=a?Number(a[1]):1,l=new RegExp(`@list l${s}:level${o}\\s*\\{[^\\}]*mso-level-number-format:\\s*([\\w-]+)`,"i"),i=e.match(l),c=i&&i[1]==="bullet"?"bullet":"ordered";return{id:s,indent:o,type:c,element:n}},f1=n=>{var o,l;const e=Array.from(n.querySelectorAll("[style*=mso-list]")),t=[],r=[];e.forEach(i=>{(i.getAttribute("style")||"").match(l1)?t.push(i):r.push(i)}),t.forEach(i=>{var c;return(c=i.parentNode)==null?void 0:c.removeChild(i)});const s=n.documentElement.innerHTML,a=r.map(i=>d1(i,s)).filter(i=>i);for(;a.length;){const i=[];let c=a.shift();for(;c;)i.push(c),c=a.length&&((o=a[0])==null?void 0:o.element)===c.element.nextElementSibling&&a[0].id===c.id?a.shift():null;const d=document.createElement("ul");i.forEach(g=>{const p=document.createElement("li");p.setAttribute("data-list",g.type),g.indent>1&&p.setAttribute("class",`ql-indent-${g.indent-1}`),p.innerHTML=g.element.innerHTML,d.appendChild(p)});const h=(l=i[0])==null?void 0:l.element,{parentNode:f}=h??{};h&&(f==null||f.replaceChild(d,h)),i.slice(1).forEach(g=>{let{element:p}=g;f==null||f.removeChild(p)})}};function h1(n){n.documentElement.getAttribute("xmlns:w")==="urn:schemas-microsoft-com:office:word"&&f1(n)}const p1=[h1,a1],m1=n=>{n.documentElement&&p1.forEach(e=>{e(n)})},g1=dn("quill:clipboard"),v1=[[Node.TEXT_NODE,R1],[Node.TEXT_NODE,Wl],["br",A1],[Node.ELEMENT_NODE,Wl],[Node.ELEMENT_NODE,E1],[Node.ELEMENT_NODE,x1],[Node.ELEMENT_NODE,O1],["li",T1],["ol, ul",N1],["pre",w1],["tr",C1],["b",Yi("bold")],["i",Yi("italic")],["strike",Yi("strike")],["style",S1]],y1=[K0,Bl].reduce((n,e)=>(n[e.keyName]=e,n),{}),zl=[Ll,zi,qi,Fl,Ul,$l].reduce((n,e)=>(n[e.keyName]=e,n),{});class Hl extends zt{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=[],v1.concat(this.options.matchers??[]).forEach(r=>{let[s,a]=r;this.addMatcher(s,a)})}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 a=this.convertHTML(t);return Pr(a,`
32
- `)&&(a.ops[a.ops.length-1].attributes==null||s.table)?a.compose(new Te().retain(a.length()-1).delete(1)):a}normalizeHTML(e){m1(e)}convertHTML(e){const t=new DOMParser().parseFromString(e,"text/html");this.normalizeHTML(t);const r=t.body,s=new WeakMap,[a,o]=this.prepareMatching(r,s);return Xi(this.quill.scroll,r,a,o,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 o,l;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:a}=this.onCopy(r,t);(o=e.clipboardData)==null||o.setData("text/plain",a),(l=e.clipboardData)==null||l.setData("text/html",s),t&&Ki({range:r,quill:this.quill})}normalizeURIList(e){return e.split(/\r?\n/).filter(t=>t[0]!=="#").join(`
33
- `)}onCapturePaste(e){var o,l,i,c,d;if(e.defaultPrevented||!this.quill.isEnabled())return;e.preventDefault();const t=this.quill.getSelection(!0);if(t==null)return;const r=(o=e.clipboardData)==null?void 0:o.getData("text/html");let s=(l=e.clipboardData)==null?void 0:l.getData("text/plain");if(!r&&!s){const h=(i=e.clipboardData)==null?void 0:i.getData("text/uri-list");h&&(s=this.normalizeURIList(h))}const a=Array.from(((c=e.clipboardData)==null?void 0:c.files)||[]);if(!r&&a.length>0){this.quill.uploader.upload(t,a);return}if(r&&a.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,a);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 a=this.quill.getFormat(e.index),o=this.convert({text:r,html:s},a);g1.log("onPaste",o,{text:r,html:s});const l=new Te().retain(e.index).delete(e.length).concat(o);this.quill.updateContents(l,le.sources.USER),this.quill.setSelection(l.length()-e.length,le.sources.SILENT),this.quill.scrollSelectionIntoView()}prepareMatching(e,t){const r=[],s=[];return this.matchers.forEach(a=>{const[o,l]=a;switch(o){case Node.TEXT_NODE:s.push(l);break;case Node.ELEMENT_NODE:r.push(l);break;default:Array.from(e.querySelectorAll(o)).forEach(i=>{if(t.has(i)){const c=t.get(i);c==null||c.push(l)}else t.set(i,[l])});break}}),[r,s]}}Ee(Hl,"DEFAULTS",{matchers:[]});function Vn(n,e,t,r){return r.query(e)?n.reduce((s,a)=>{if(!a.insert)return s;if(a.attributes&&a.attributes[e])return s.push(a);const o=t?{[e]:t}:{};return s.insert(a.insert,{...o,...a.attributes})},new Te):n}function Pr(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 Rt?!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 b1(n,e){return n.previousElementSibling&&n.nextElementSibling&&!Nn(n.previousElementSibling,e)&&!Nn(n.nextElementSibling,e)}const Ns=new WeakMap;function Gl(n){return n==null?!1:(Ns.has(n)||(n.tagName==="PRE"?Ns.set(n,!0):Ns.set(n,Gl(n.parentNode))),Ns.get(n))}function Xi(n,e,t,r,s){return e.nodeType===e.TEXT_NODE?r.reduce((a,o)=>o(e,a,n),new Te):e.nodeType===e.ELEMENT_NODE?Array.from(e.childNodes||[]).reduce((a,o)=>{let l=Xi(n,o,t,r,s);return o.nodeType===e.ELEMENT_NODE&&(l=t.reduce((i,c)=>c(o,i,n),l),l=(s.get(o)||[]).reduce((i,c)=>c(o,i,n),l)),a.concat(l)},new Te):new Te}function Yi(n){return(e,t,r)=>Vn(t,n,!0,r)}function x1(n,e,t){const r=en.keys(n),s=$t.keys(n),a=Sn.keys(n),o={};return r.concat(s).concat(a).forEach(l=>{let i=t.query(l,Ne.ATTRIBUTE);i!=null&&(o[i.attrName]=i.value(n),o[i.attrName])||(i=y1[l],i!=null&&(i.attrName===l||i.keyName===l)&&(o[i.attrName]=i.value(n)||void 0),i=zl[l],i!=null&&(i.attrName===l||i.keyName===l)&&(i=zl[l],o[i.attrName]=i.value(n)||void 0))}),Object.entries(o).reduce((l,i)=>{let[c,d]=i;return Vn(l,c,d,t)},e)}function E1(n,e,t){const r=t.query(n);if(r==null)return e;if(r.prototype instanceof Rt){const s={},a=r.value(n);if(a!=null)return s[r.blotName]=a,new Te().insert(s,r.formats(n,t))}else if(r.prototype instanceof Ir&&!Pr(e,`
29
+ `,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,a]=e.getTable(n),o=n1(t,r,s,a);if(o==null)return;let c=t.offset();if(o<0){const i=new Te().retain(c).insert(`
30
+ `);this.quill.updateContents(i,le.sources.USER),this.quill.setSelection(n.index+1,n.length,le.sources.SILENT)}else if(o>0){c+=t.length();const i=new Te().retain(c).insert(`
31
+ `);this.quill.updateContents(i,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 a;switch(e.prefix.trim()){case"[]":case"[ ]":a="unchecked";break;case"[x]":a="checked";break;case"-":case"*":a="bullet";break;default:a="ordered"}this.quill.insertText(n.index," ",le.sources.USER),this.quill.history.cutoff();const o=new Te().retain(n.index-s).delete(t+1).retain(r.length()-2-s).retain(1,{list:a});return this.quill.updateContents(o,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 a=new Te().retain(n.index+e.length()-t-2).retain(1,{"code-block":null}).delete(1);return this.quill.updateContents(a,le.sources.USER),this.quill.setSelection(n.index-1,le.sources.SILENT),!1}return!0}},"embed left":Ts("ArrowLeft",!1),"embed left shift":Ts("ArrowLeft",!0),"embed right":Ts("ArrowRight",!1),"embed right shift":Ts("ArrowRight",!0),"table down":_l(!1),"table up":_l(!0)}};Ss.DEFAULTS=e1;function Vl(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:a}=s;if(e.length===0&&!r.shiftKey){this.quill.insertText(e.index,a,le.sources.USER),this.quill.setSelection(e.index+a.length,le.sources.SILENT);return}const o=e.length===0?this.quill.getLines(e.index,1):this.quill.getLines(e);let{index:c,length:i}=e;o.forEach((l,d)=>{n?(l.insertAt(0,a),d===0?c+=a.length:i+=a.length):l.domNode.textContent.startsWith(a)&&(l.deleteAt(0,a.length),d===0?c-=a.length:i-=a.length)}),this.quill.update(le.sources.USER),this.quill.setSelection(c,i,le.sources.SILENT)}}}function Ts(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[a]=this.quill.getLeaf(s);return a instanceof Rt?(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 Wi(n){return{key:n[0],shortKey:!0,handler(e,t){this.quill.format(n,!t.format[n],le.sources.USER)}}}function _l(n){return{key:n?"ArrowUp":"ArrowDown",collapsed:!0,format:["table"],handler(e,t){const r=n?"prev":"next",s=t.line,a=s.parent[r];if(a!=null){if(a.statics.blotName==="table-row"){let o=a.children.head,c=s;for(;c.prev!=null;)c=c.prev,o=o.next;const i=o.offset(this.quill.scroll)+Math.min(t.offset,o.length()-1);this.quill.setSelection(i,0,le.sources.USER)}}else{const o=s.table()[r];o!=null&&(n?this.quill.setSelection(o.offset(this.quill.scroll)+o.length()-1,0,le.sources.USER):this.quill.setSelection(o.offset(this.quill.scroll),0,le.sources.USER))}return!1}}}function t1(n){if(typeof n=="string"||typeof n=="number")n={key:n};else if(typeof n=="object")n=Qn(n);else return null;return n.shortKey&&(n[J0]=n.shortKey,delete n.shortKey),n}function Ki(n){let{quill:e,range:t}=n;const r=e.getLines(t);let s={};if(r.length>1){const a=r[0].formats(),o=r[r.length-1].formats();s=kt.AttributeMap.diff(o,a)||{}}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 n1(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 r1=/font-weight:\s*normal/,s1=["P","OL","UL"],ql=n=>n&&s1.includes(n.tagName),i1=n=>{Array.from(n.querySelectorAll("br")).filter(e=>ql(e.previousElementSibling)&&ql(e.nextElementSibling)).forEach(e=>{var t;(t=e.parentNode)==null||t.removeChild(e)})},o1=n=>{Array.from(n.querySelectorAll('b[style*="font-weight"]')).filter(e=>{var t;return(t=e.getAttribute("style"))==null?void 0:t.match(r1)}).forEach(e=>{var r;const t=n.createDocumentFragment();t.append(...e.childNodes),(r=e.parentNode)==null||r.replaceChild(t,e)})};function a1(n){n.querySelector('[id^="docs-internal-guid-"]')&&(o1(n),i1(n))}const l1=/\bmso-list:[^;]*ignore/i,c1=/\bmso-list:[^;]*\bl(\d+)/i,u1=/\bmso-list:[^;]*\blevel(\d+)/i,d1=(n,e)=>{const t=n.getAttribute("style"),r=t==null?void 0:t.match(c1);if(!r)return null;const s=Number(r[1]),a=t==null?void 0:t.match(u1),o=a?Number(a[1]):1,c=new RegExp(`@list l${s}:level${o}\\s*\\{[^\\}]*mso-level-number-format:\\s*([\\w-]+)`,"i"),i=e.match(c),l=i&&i[1]==="bullet"?"bullet":"ordered";return{id:s,indent:o,type:l,element:n}},f1=n=>{var o,c;const e=Array.from(n.querySelectorAll("[style*=mso-list]")),t=[],r=[];e.forEach(i=>{(i.getAttribute("style")||"").match(l1)?t.push(i):r.push(i)}),t.forEach(i=>{var l;return(l=i.parentNode)==null?void 0:l.removeChild(i)});const s=n.documentElement.innerHTML,a=r.map(i=>d1(i,s)).filter(i=>i);for(;a.length;){const i=[];let l=a.shift();for(;l;)i.push(l),l=a.length&&((o=a[0])==null?void 0:o.element)===l.element.nextElementSibling&&a[0].id===l.id?a.shift():null;const d=document.createElement("ul");i.forEach(g=>{const p=document.createElement("li");p.setAttribute("data-list",g.type),g.indent>1&&p.setAttribute("class",`ql-indent-${g.indent-1}`),p.innerHTML=g.element.innerHTML,d.appendChild(p)});const h=(c=i[0])==null?void 0:c.element,{parentNode:f}=h??{};h&&(f==null||f.replaceChild(d,h)),i.slice(1).forEach(g=>{let{element:p}=g;f==null||f.removeChild(p)})}};function h1(n){n.documentElement.getAttribute("xmlns:w")==="urn:schemas-microsoft-com:office:word"&&f1(n)}const p1=[h1,a1],m1=n=>{n.documentElement&&p1.forEach(e=>{e(n)})},g1=dn("quill:clipboard"),v1=[[Node.TEXT_NODE,R1],[Node.TEXT_NODE,Wl],["br",A1],[Node.ELEMENT_NODE,Wl],[Node.ELEMENT_NODE,E1],[Node.ELEMENT_NODE,x1],[Node.ELEMENT_NODE,O1],["li",T1],["ol, ul",N1],["pre",w1],["tr",C1],["b",Yi("bold")],["i",Yi("italic")],["strike",Yi("strike")],["style",S1]],y1=[K0,Bl].reduce((n,e)=>(n[e.keyName]=e,n),{}),zl=[Ll,zi,qi,Fl,Ul,$l].reduce((n,e)=>(n[e.keyName]=e,n),{});class Hl extends zt{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=[],v1.concat(this.options.matchers??[]).forEach(r=>{let[s,a]=r;this.addMatcher(s,a)})}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 a=this.convertHTML(t);return Fr(a,`
32
+ `)&&(a.ops[a.ops.length-1].attributes==null||s.table)?a.compose(new Te().retain(a.length()-1).delete(1)):a}normalizeHTML(e){m1(e)}convertHTML(e){const t=new DOMParser().parseFromString(e,"text/html");this.normalizeHTML(t);const r=t.body,s=new WeakMap,[a,o]=this.prepareMatching(r,s);return Xi(this.quill.scroll,r,a,o,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 o,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:a}=this.onCopy(r,t);(o=e.clipboardData)==null||o.setData("text/plain",a),(c=e.clipboardData)==null||c.setData("text/html",s),t&&Ki({range:r,quill:this.quill})}normalizeURIList(e){return e.split(/\r?\n/).filter(t=>t[0]!=="#").join(`
33
+ `)}onCapturePaste(e){var o,c,i,l,d;if(e.defaultPrevented||!this.quill.isEnabled())return;e.preventDefault();const t=this.quill.getSelection(!0);if(t==null)return;const r=(o=e.clipboardData)==null?void 0:o.getData("text/html");let s=(c=e.clipboardData)==null?void 0:c.getData("text/plain");if(!r&&!s){const h=(i=e.clipboardData)==null?void 0:i.getData("text/uri-list");h&&(s=this.normalizeURIList(h))}const a=Array.from(((l=e.clipboardData)==null?void 0:l.files)||[]);if(!r&&a.length>0){this.quill.uploader.upload(t,a);return}if(r&&a.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,a);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 a=this.quill.getFormat(e.index),o=this.convert({text:r,html:s},a);g1.log("onPaste",o,{text:r,html:s});const c=new Te().retain(e.index).delete(e.length).concat(o);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(a=>{const[o,c]=a;switch(o){case Node.TEXT_NODE:s.push(c);break;case Node.ELEMENT_NODE:r.push(c);break;default:Array.from(e.querySelectorAll(o)).forEach(i=>{if(t.has(i)){const l=t.get(i);l==null||l.push(c)}else t.set(i,[c])});break}}),[r,s]}}Ee(Hl,"DEFAULTS",{matchers:[]});function Vn(n,e,t,r){return r.query(e)?n.reduce((s,a)=>{if(!a.insert)return s;if(a.attributes&&a.attributes[e])return s.push(a);const o=t?{[e]:t}:{};return s.insert(a.insert,{...o,...a.attributes})},new Te):n}function Fr(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 Rt?!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 b1(n,e){return n.previousElementSibling&&n.nextElementSibling&&!Nn(n.previousElementSibling,e)&&!Nn(n.nextElementSibling,e)}const Ns=new WeakMap;function Gl(n){return n==null?!1:(Ns.has(n)||(n.tagName==="PRE"?Ns.set(n,!0):Ns.set(n,Gl(n.parentNode))),Ns.get(n))}function Xi(n,e,t,r,s){return e.nodeType===e.TEXT_NODE?r.reduce((a,o)=>o(e,a,n),new Te):e.nodeType===e.ELEMENT_NODE?Array.from(e.childNodes||[]).reduce((a,o)=>{let c=Xi(n,o,t,r,s);return o.nodeType===e.ELEMENT_NODE&&(c=t.reduce((i,l)=>l(o,i,n),c),c=(s.get(o)||[]).reduce((i,l)=>l(o,i,n),c)),a.concat(c)},new Te):new Te}function Yi(n){return(e,t,r)=>Vn(t,n,!0,r)}function x1(n,e,t){const r=en.keys(n),s=$t.keys(n),a=Sn.keys(n),o={};return r.concat(s).concat(a).forEach(c=>{let i=t.query(c,Ne.ATTRIBUTE);i!=null&&(o[i.attrName]=i.value(n),o[i.attrName])||(i=y1[c],i!=null&&(i.attrName===c||i.keyName===c)&&(o[i.attrName]=i.value(n)||void 0),i=zl[c],i!=null&&(i.attrName===c||i.keyName===c)&&(i=zl[c],o[i.attrName]=i.value(n)||void 0))}),Object.entries(o).reduce((c,i)=>{let[l,d]=i;return Vn(c,l,d,t)},e)}function E1(n,e,t){const r=t.query(n);if(r==null)return e;if(r.prototype instanceof Rt){const s={},a=r.value(n);if(a!=null)return s[r.blotName]=a,new Te().insert(s,r.formats(n,t))}else if(r.prototype instanceof Lr&&!Fr(e,`
34
34
  `)&&e.insert(`
35
- `),"blotName"in r&&"formats"in r&&typeof r.formats=="function")return Vn(e,r.blotName,r.formats(n,t),t);return e}function A1(n,e){return Pr(e,`
35
+ `),"blotName"in r&&"formats"in r&&typeof r.formats=="function")return Vn(e,r.blotName,r.formats(n,t),t);return e}function A1(n,e){return Fr(e,`
36
36
  `)||e.insert(`
37
- `),e}function w1(n,e,t){const r=t.query("code-block"),s=r&&"formats"in r&&typeof r.formats=="function"?r.formats(n,t):!0;return Vn(e,"code-block",s,t)}function S1(){return new Te}function T1(n,e,t){const r=t.query(n);if(r==null||r.blotName!=="list"||!Pr(e,`
38
- `))return e;let s=-1,a=n.parentNode;for(;a!=null;)["OL","UL"].includes(a.tagName)&&(s+=1),a=a.parentNode;return s<=0?e:e.reduce((o,l)=>l.insert?l.attributes&&typeof l.attributes.indent=="number"?o.push(l):o.insert(l.insert,{indent:s,...l.attributes||{}}):o,new Te)}function N1(n,e,t){const r=n;let s=r.tagName==="OL"?"ordered":"bullet";const a=r.getAttribute("data-checked");return a&&(s=a==="true"?"checked":"unchecked"),Vn(e,"list",s,t)}function Wl(n,e,t){if(!Pr(e,`
37
+ `),e}function w1(n,e,t){const r=t.query("code-block"),s=r&&"formats"in r&&typeof r.formats=="function"?r.formats(n,t):!0;return Vn(e,"code-block",s,t)}function S1(){return new Te}function T1(n,e,t){const r=t.query(n);if(r==null||r.blotName!=="list"||!Fr(e,`
38
+ `))return e;let s=-1,a=n.parentNode;for(;a!=null;)["OL","UL"].includes(a.tagName)&&(s+=1),a=a.parentNode;return s<=0?e:e.reduce((o,c)=>c.insert?c.attributes&&typeof c.attributes.indent=="number"?o.push(c):o.insert(c.insert,{indent:s,...c.attributes||{}}):o,new Te)}function N1(n,e,t){const r=n;let s=r.tagName==="OL"?"ordered":"bullet";const a=r.getAttribute("data-checked");return a&&(s=a==="true"?"checked":"unchecked"),Vn(e,"list",s,t)}function Wl(n,e,t){if(!Fr(e,`
39
39
  `)){if(Nn(n,t)&&(n.childNodes.length>0||n instanceof HTMLParagraphElement))return e.insert(`
40
40
  `);if(e.length()>0&&n.nextSibling){let r=n.nextSibling;for(;r!=null;){if(Nn(r,t))return e.insert(`
41
41
  `);const s=t.query(r);if(s&&s.prototype instanceof Bt)return e.insert(`
42
- `);r=r.firstChild}}}return e}function O1(n,e,t){var a;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),((a=s.fontWeight)!=null&&a.startsWith("bold")||parseInt(s.fontWeight,10)>=700)&&(r.bold=!0),e=Object.entries(r).reduce((o,l)=>{let[i,c]=l;return Vn(o,i,c,t)},e),parseFloat(s.textIndent||0)>0?new Te().insert(" ").concat(e):e}function C1(n,e,t){var s,a;const r=((s=n.parentElement)==null?void 0:s.tagName)==="TABLE"?n.parentElement:(a=n.parentElement)==null?void 0:a.parentElement;if(r!=null){const l=Array.from(r.querySelectorAll("tr")).indexOf(n)+1;return Vn(e,"table",l,t)}return e}function R1(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(!Gl(n)){if(r.trim().length===0&&r.includes(`
43
- `)&&!b1(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 Kl extends zt{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,a,o,l)=>{s===le.events.SELECTION_CHANGE?a&&l!==le.sources.SILENT&&(this.currentRange=a):s===le.events.TEXT_CHANGE&&(this.ignoreChange||(!this.options.userOnly||l===le.sources.USER?this.record(a,o):this.transform(a)),this.currentRange=Zi(this.currentRange,a))}),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 a=this.quill.getContents(),o=s.delta.invert(a);this.stack[r].push({delta:o,range:Zi(s.range,o)}),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),a=this.currentRange;const o=Date.now();if(this.lastRecorded+this.options.delay>o&&this.stack.undo.length>0){const l=this.stack.undo.pop();l&&(s=s.compose(l.delta),a=l.range)}else this.lastRecorded=o;s.length()!==0&&(this.stack.undo.push({delta:s,range:a}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift())}redo(){this.change("redo","undo")}transform(t){Xl(this.stack.undo,t),Xl(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=L1(this.quill.scroll,t.delta);this.quill.setSelection(r,le.sources.USER)}}}Ee(Kl,"DEFAULTS",{delay:1e3,maxStack:100,userOnly:!1});function Xl(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&&Zi(s.range,t)},t=s.delta.transform(t),n[r].delta.length()===0&&n.splice(r,1)}}function I1(n,e){const t=e.ops[e.ops.length-1];return t==null?!1:t.insert!=null?typeof t.insert=="string"&&t.insert.endsWith(`
44
- `):t.attributes!=null?Object.keys(t.attributes).some(r=>n.query(r,Ne.BLOCK)!=null):!1}function L1(n,e){const t=e.reduce((s,a)=>s+(a.delete||0),0);let r=e.length()-t;return I1(n,e)&&(r-=1),r}function Zi(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 Yl extends zt{constructor(e,t){super(e,t),e.root.addEventListener("drop",r=>{var o;r.preventDefault();let s=null;if(document.caretRangeFromPoint)s=document.caretRangeFromPoint(r.clientX,r.clientY);else if(document.caretPositionFromPoint){const l=document.caretPositionFromPoint(r.clientX,r.clientY);s=document.createRange(),s.setStart(l.offsetNode,l.offset),s.setEnd(l.offsetNode,l.offset)}const a=s&&e.selection.normalizeNative(s);if(a){const l=e.selection.normalizedToRange(a);(o=r.dataTransfer)!=null&&o.files&&this.upload(l,r.dataTransfer.files)}})}upload(e,t){const r=[];Array.from(t).forEach(s=>{var a;s&&((a=this.options.mimetypes)!=null&&a.includes(s.type))&&r.push(s)}),r.length>0&&this.options.handler.call(this,e,r)}}Yl.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 a=new FileReader;a.onload=()=>{s(a.result)},a.readAsDataURL(r)}));Promise.all(t).then(r=>{const s=r.reduce((a,o)=>a.insert({image:o}),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 k1=["insertText","insertReplacementText"];class B1 extends zt{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){Ki({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||!k1.includes(e.inputType))return;const t=e.getTargetRanges?e.getTargetRanges()[0]:null;if(!t||t.collapsed===!0)return;const r=P1(e);if(r==null)return;const s=this.quill.selection.normalizeNative(t),a=s?this.quill.selection.normalizedToRange(s):null;a&&this.replaceText(a,r)&&e.preventDefault()}handleCompositionStart(){const e=this.quill.getSelection();e&&this.replaceText(e)}}function P1(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 F1=/Mac/i.test(navigator.platform),M1=100,D1=n=>!!(n.key==="ArrowLeft"||n.key==="ArrowRight"||n.key==="ArrowUp"||n.key==="ArrowDown"||n.key==="Home"||F1&&n.key==="a"&&n.ctrlKey===!0);class U1 extends zt{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:a}=r;if(!(s instanceof Vt)||!s.uiNode)return!0;const o=getComputedStyle(s.domNode).direction==="rtl";return o&&a.key!=="ArrowRight"||!o&&a.key!=="ArrowLeft"?!0:(this.quill.setSelection(t.index-1,t.length+(a.shiftKey?1:0),le.sources.USER),!1)}})}handleNavigationShortcuts(){this.quill.root.addEventListener("keydown",t=>{!t.defaultPrevented&&D1(t)&&this.ensureListeningToSelectionChange()})}ensureListeningToSelectionChange(){if(this.selectionChangeDeadline=Date.now()+M1,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 Vt)||!s.uiNode)return;const a=document.createRange();a.setStartAfter(s.uiNode),a.setEndAfter(s.uiNode),t.removeAllRanges(),t.addRange(a)}}le.register({"blots/block":ht,"blots/block/embed":Bt,"blots/break":_t,"blots/container":jn,"blots/cursor":sr,"blots/embed":ji,"blots/inline":tn,"blots/scroll":lr,"blots/text":qt,"modules/clipboard":Hl,"modules/history":Kl,"modules/keyboard":Ss,"modules/uploader":Yl,"modules/input":B1,"modules/uiNode":U1});class j1 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 $1=new j1("indent","ql-indent",{scope:Ne.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});class Qi extends ht{}Ee(Qi,"blotName","blockquote"),Ee(Qi,"tagName","blockquote");class Ji extends ht{static formats(e){return this.tagName.indexOf(e.tagName)+1}}Ee(Ji,"blotName","header"),Ee(Ji,"tagName",["H1","H2","H3","H4","H5","H6"]);class Fr extends jn{}Fr.blotName="list-container",Fr.tagName="OL";class Mr 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(Fr)}constructor(e,t){super(e,t);const r=t.ownerDocument.createElement("span"),s=a=>{if(!e.isEnabled())return;const o=this.statics.formats(t,e);o==="checked"?(this.format("list","unchecked"),a.preventDefault()):o==="unchecked"&&(this.format("list","checked"),a.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)}}Mr.blotName="list",Mr.tagName="LI",Fr.allowedChildren=[Mr],Mr.requiredContainer=Fr;class Dr extends tn{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(Dr,"blotName","bold"),Ee(Dr,"tagName",["STRONG","B"]);class eo extends Dr{}Ee(eo,"blotName","italic"),Ee(eo,"tagName",["EM","I"]);class On extends tn{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 Zl(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(On,"blotName","link"),Ee(On,"tagName","A"),Ee(On,"SANITIZED_URL","about:blank"),Ee(On,"PROTOCOL_WHITELIST",["http","https","mailto","tel","sms"]);function Zl(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 to extends tn{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(to,"blotName","script"),Ee(to,"tagName",["SUB","SUP"]);class no extends Dr{}Ee(no,"blotName","strike"),Ee(no,"tagName",["S","STRIKE"]);class ro extends tn{}Ee(ro,"blotName","underline"),Ee(ro,"tagName","U");class Os extends ji{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(Os,"blotName","formula"),Ee(Os,"className","ql-formula"),Ee(Os,"tagName","SPAN");const Ql=["alt","height","width"];class so extends Rt{static create(e){const t=super.create(e);return typeof e=="string"&&t.setAttribute("src",this.sanitize(e)),t}static formats(e){return Ql.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 Zl(e,["http","https","data"])?e:"//:0"}static value(e){return e.getAttribute("src")}format(e,t){Ql.indexOf(e)>-1?t?this.domNode.setAttribute(e,t):this.domNode.removeAttribute(e):super.format(e,t)}}Ee(so,"blotName","image"),Ee(so,"tagName","IMG");const Jl=["height","width"];class Cs 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 Jl.reduce((t,r)=>(e.hasAttribute(r)&&(t[r]=e.getAttribute(r)),t),{})}static sanitize(e){return On.sanitize(e)}static value(e){return e.getAttribute("src")}format(e,t){Jl.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(Cs,"blotName","video"),Ee(Cs,"className","ql-video"),Ee(Cs,"tagName","IFRAME");const Ur=new $t("code-token","hljs",{scope:Ne.INLINE});class hn extends tn{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),Ur.add(this.domNode,r)}format(e,t){e!==hn.blotName?super.format(e,t):t?Ur.add(this.domNode,t):(Ur.remove(this.domNode),this.domNode.classList.remove(this.statics.className))}optimize(){super.optimize(...arguments),Ur.value(this.domNode)||this.unwrap()}}hn.blotName="code-token",hn.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(),hn.blotName,!1),super.replaceWith(e,t)}}class jr extends $n{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(o=>o!==this.uiNode).map(o=>o.textContent).join(`
42
+ `);r=r.firstChild}}}return e}function O1(n,e,t){var a;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),((a=s.fontWeight)!=null&&a.startsWith("bold")||parseInt(s.fontWeight,10)>=700)&&(r.bold=!0),e=Object.entries(r).reduce((o,c)=>{let[i,l]=c;return Vn(o,i,l,t)},e),parseFloat(s.textIndent||0)>0?new Te().insert(" ").concat(e):e}function C1(n,e,t){var s,a;const r=((s=n.parentElement)==null?void 0:s.tagName)==="TABLE"?n.parentElement:(a=n.parentElement)==null?void 0:a.parentElement;if(r!=null){const c=Array.from(r.querySelectorAll("tr")).indexOf(n)+1;return Vn(e,"table",c,t)}return e}function R1(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(!Gl(n)){if(r.trim().length===0&&r.includes(`
43
+ `)&&!b1(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 Kl extends zt{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,a,o,c)=>{s===le.events.SELECTION_CHANGE?a&&c!==le.sources.SILENT&&(this.currentRange=a):s===le.events.TEXT_CHANGE&&(this.ignoreChange||(!this.options.userOnly||c===le.sources.USER?this.record(a,o):this.transform(a)),this.currentRange=Zi(this.currentRange,a))}),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 a=this.quill.getContents(),o=s.delta.invert(a);this.stack[r].push({delta:o,range:Zi(s.range,o)}),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),a=this.currentRange;const o=Date.now();if(this.lastRecorded+this.options.delay>o&&this.stack.undo.length>0){const c=this.stack.undo.pop();c&&(s=s.compose(c.delta),a=c.range)}else this.lastRecorded=o;s.length()!==0&&(this.stack.undo.push({delta:s,range:a}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift())}redo(){this.change("redo","undo")}transform(t){Xl(this.stack.undo,t),Xl(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=L1(this.quill.scroll,t.delta);this.quill.setSelection(r,le.sources.USER)}}}Ee(Kl,"DEFAULTS",{delay:1e3,maxStack:100,userOnly:!1});function Xl(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&&Zi(s.range,t)},t=s.delta.transform(t),n[r].delta.length()===0&&n.splice(r,1)}}function I1(n,e){const t=e.ops[e.ops.length-1];return t==null?!1:t.insert!=null?typeof t.insert=="string"&&t.insert.endsWith(`
44
+ `):t.attributes!=null?Object.keys(t.attributes).some(r=>n.query(r,Ne.BLOCK)!=null):!1}function L1(n,e){const t=e.reduce((s,a)=>s+(a.delete||0),0);let r=e.length()-t;return I1(n,e)&&(r-=1),r}function Zi(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 Yl extends zt{constructor(e,t){super(e,t),e.root.addEventListener("drop",r=>{var o;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 a=s&&e.selection.normalizeNative(s);if(a){const c=e.selection.normalizedToRange(a);(o=r.dataTransfer)!=null&&o.files&&this.upload(c,r.dataTransfer.files)}})}upload(e,t){const r=[];Array.from(t).forEach(s=>{var a;s&&((a=this.options.mimetypes)!=null&&a.includes(s.type))&&r.push(s)}),r.length>0&&this.options.handler.call(this,e,r)}}Yl.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 a=new FileReader;a.onload=()=>{s(a.result)},a.readAsDataURL(r)}));Promise.all(t).then(r=>{const s=r.reduce((a,o)=>a.insert({image:o}),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 k1=["insertText","insertReplacementText"];class B1 extends zt{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){Ki({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||!k1.includes(e.inputType))return;const t=e.getTargetRanges?e.getTargetRanges()[0]:null;if(!t||t.collapsed===!0)return;const r=P1(e);if(r==null)return;const s=this.quill.selection.normalizeNative(t),a=s?this.quill.selection.normalizedToRange(s):null;a&&this.replaceText(a,r)&&e.preventDefault()}handleCompositionStart(){const e=this.quill.getSelection();e&&this.replaceText(e)}}function P1(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 F1=/Mac/i.test(navigator.platform),M1=100,D1=n=>!!(n.key==="ArrowLeft"||n.key==="ArrowRight"||n.key==="ArrowUp"||n.key==="ArrowDown"||n.key==="Home"||F1&&n.key==="a"&&n.ctrlKey===!0);class U1 extends zt{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:a}=r;if(!(s instanceof Vt)||!s.uiNode)return!0;const o=getComputedStyle(s.domNode).direction==="rtl";return o&&a.key!=="ArrowRight"||!o&&a.key!=="ArrowLeft"?!0:(this.quill.setSelection(t.index-1,t.length+(a.shiftKey?1:0),le.sources.USER),!1)}})}handleNavigationShortcuts(){this.quill.root.addEventListener("keydown",t=>{!t.defaultPrevented&&D1(t)&&this.ensureListeningToSelectionChange()})}ensureListeningToSelectionChange(){if(this.selectionChangeDeadline=Date.now()+M1,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 Vt)||!s.uiNode)return;const a=document.createRange();a.setStartAfter(s.uiNode),a.setEndAfter(s.uiNode),t.removeAllRanges(),t.addRange(a)}}le.register({"blots/block":ht,"blots/block/embed":Bt,"blots/break":_t,"blots/container":jn,"blots/cursor":sr,"blots/embed":ji,"blots/inline":tn,"blots/scroll":lr,"blots/text":qt,"modules/clipboard":Hl,"modules/history":Kl,"modules/keyboard":Ss,"modules/uploader":Yl,"modules/input":B1,"modules/uiNode":U1});class j1 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 $1=new j1("indent","ql-indent",{scope:Ne.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});class Qi extends ht{}Ee(Qi,"blotName","blockquote"),Ee(Qi,"tagName","blockquote");class Ji extends ht{static formats(e){return this.tagName.indexOf(e.tagName)+1}}Ee(Ji,"blotName","header"),Ee(Ji,"tagName",["H1","H2","H3","H4","H5","H6"]);class Mr extends jn{}Mr.blotName="list-container",Mr.tagName="OL";class Dr 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(Mr)}constructor(e,t){super(e,t);const r=t.ownerDocument.createElement("span"),s=a=>{if(!e.isEnabled())return;const o=this.statics.formats(t,e);o==="checked"?(this.format("list","unchecked"),a.preventDefault()):o==="unchecked"&&(this.format("list","checked"),a.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)}}Dr.blotName="list",Dr.tagName="LI",Mr.allowedChildren=[Dr],Dr.requiredContainer=Mr;class Ur extends tn{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(Ur,"blotName","bold"),Ee(Ur,"tagName",["STRONG","B"]);class eo extends Ur{}Ee(eo,"blotName","italic"),Ee(eo,"tagName",["EM","I"]);class On extends tn{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 Zl(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(On,"blotName","link"),Ee(On,"tagName","A"),Ee(On,"SANITIZED_URL","about:blank"),Ee(On,"PROTOCOL_WHITELIST",["http","https","mailto","tel","sms"]);function Zl(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 to extends tn{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(to,"blotName","script"),Ee(to,"tagName",["SUB","SUP"]);class no extends Ur{}Ee(no,"blotName","strike"),Ee(no,"tagName",["S","STRIKE"]);class ro extends tn{}Ee(ro,"blotName","underline"),Ee(ro,"tagName","U");class Os extends ji{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(Os,"blotName","formula"),Ee(Os,"className","ql-formula"),Ee(Os,"tagName","SPAN");const Ql=["alt","height","width"];class so extends Rt{static create(e){const t=super.create(e);return typeof e=="string"&&t.setAttribute("src",this.sanitize(e)),t}static formats(e){return Ql.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 Zl(e,["http","https","data"])?e:"//:0"}static value(e){return e.getAttribute("src")}format(e,t){Ql.indexOf(e)>-1?t?this.domNode.setAttribute(e,t):this.domNode.removeAttribute(e):super.format(e,t)}}Ee(so,"blotName","image"),Ee(so,"tagName","IMG");const Jl=["height","width"];class Cs 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 Jl.reduce((t,r)=>(e.hasAttribute(r)&&(t[r]=e.getAttribute(r)),t),{})}static sanitize(e){return On.sanitize(e)}static value(e){return e.getAttribute("src")}format(e,t){Jl.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(Cs,"blotName","video"),Ee(Cs,"className","ql-video"),Ee(Cs,"tagName","IFRAME");const jr=new $t("code-token","hljs",{scope:Ne.INLINE});class hn extends tn{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),jr.add(this.domNode,r)}format(e,t){e!==hn.blotName?super.format(e,t):t?jr.add(this.domNode,t):(jr.remove(this.domNode),this.domNode.classList.remove(this.statics.className))}optimize(){super.optimize(...arguments),jr.value(this.domNode)||this.unwrap()}}hn.blotName="code-token",hn.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(),hn.blotName,!1),super.replaceWith(e,t)}}class $r extends $n{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(o=>o!==this.uiNode).map(o=>o.textContent).join(`
45
45
  `)}
46
- `,a=Ft.formats(this.children.head.domNode);if(t||this.forceNext||this.cachedText!==s){if(s.trim().length>0||this.cachedText==null){const o=this.children.reduce((i,c)=>i.concat(bl(c,!1)),new Te),l=e(s,a);o.diff(l).reduce((i,c)=>{let{retain:d,attributes:h}=c;return d?(h&&Object.keys(h).forEach(f=>{[Ft.blotName,hn.blotName].includes(f)&&this.formatAt(i,d,f,h[f])}),i+d):i},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"}">
46
+ `,a=Ft.formats(this.children.head.domNode);if(t||this.forceNext||this.cachedText!==s){if(s.trim().length>0||this.cachedText==null){const o=this.children.reduce((i,l)=>i.concat(bl(l,!1)),new Te),c=e(s,a);o.diff(c).reduce((i,l)=>{let{retain:d,attributes:h}=l;return d?(h&&Object.keys(h).forEach(f=>{[Ft.blotName,hn.blotName].includes(f)&&this.formatAt(i,d,f,h[f])}),i+d):i},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"}">
47
47
  ${xs(this.code(e,t))}
48
- </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)}}}jr.allowedChildren=[Ft],Ft.requiredContainer=jr,Ft.allowedChildren=[hn,sr,qt,_t];const V1=(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 ec extends zt{static register(){le.register(hn,!0),le.register(Ft,!0),le.register(jr,!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:a}=s;return r[a]=!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 jr))return;const t=this.quill.root.ownerDocument.createElement("select");this.options.languages.forEach(r=>{let{key:s,label:a}=r;const o=t.ownerDocument.createElement("option");o.textContent=a,o.setAttribute("value",s),t.appendChild(o)}),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(jr):[e]).forEach(a=>{a.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 xs(e).split(`
48
+ </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)}}}$r.allowedChildren=[Ft],Ft.requiredContainer=$r,Ft.allowedChildren=[hn,sr,qt,_t];const V1=(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 ec extends zt{static register(){le.register(hn,!0),le.register(Ft,!0),le.register($r,!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:a}=s;return r[a]=!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 $r))return;const t=this.quill.root.ownerDocument.createElement("select");this.options.languages.forEach(r=>{let{key:s,label:a}=r;const o=t.ownerDocument.createElement("option");o.textContent=a,o.setAttribute("value",s),t.appendChild(o)}),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($r):[e]).forEach(a=>{a.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 xs(e).split(`
49
49
  `).reduce((s,a,o)=>(o!==0&&s.insert(`
50
- `,{[vt.blotName]:t}),s.insert(a)),new Te);const r=this.quill.root.ownerDocument.createElement("div");return r.classList.add(vt.className),r.innerHTML=V1(this.options.hljs,t,e),Xi(this.quill.scroll,r,[(s,a)=>{const o=Ur.value(s);return o?a.compose(new Te().retain(a.length(),{[hn.blotName]:o})):a}],[(s,a)=>s.data.split(`
51
- `).reduce((o,l,i)=>(i!==0&&o.insert(`
52
- `,{[vt.blotName]:t}),o.insert(l)),a)],new WeakMap)}}ec.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 Xr=class Xr extends ht{static create(e){const t=super.create();return e?t.setAttribute("data-row",e):t.setAttribute("data-row",io()),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===Xr.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(Xr,"blotName","table"),Ee(Xr,"tagName","TD");let Gt=Xr;class pn extends jn{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 a=this.splitAfter(t);a&&a.optimize(),this.prev&&this.prev.optimize()}})}rowOffset(){return this.parent?this.parent.children.indexOf(this):-1}table(){return this.parent&&this.parent.parent}}Ee(pn,"blotName","table-row"),Ee(pn,"tagName","TR");class nn extends jn{}Ee(nn,"blotName","table-body"),Ee(nn,"tagName","TBODY");class cr extends jn{balanceCells(){const e=this.descendants(pn),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=Gt.formats(r.children.head.domNode));const a=this.scroll.create(Gt.blotName,s);r.appendChild(a),a.optimize()})})}cells(e){return this.rows().map(t=>t.children.at(e))}deleteColumn(e){const[t]=this.descendant(nn);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(nn);t==null||t.children.head==null||t.children.forEach(r=>{const s=r.children.at(e),a=Gt.formats(r.children.head.domNode),o=this.scroll.create(Gt.blotName,a);r.insertBefore(o,s)})}insertRow(e){const[t]=this.descendant(nn);if(t==null||t.children.head==null)return;const r=io(),s=this.scroll.create(pn.blotName);t.children.head.children.forEach(()=>{const o=this.scroll.create(Gt.blotName,r);s.appendChild(o)});const a=t.children.at(e);t.insertBefore(s,a)}rows(){const e=this.children.head;return e==null?[]:e.children.map(t=>t)}}Ee(cr,"blotName","table-container"),Ee(cr,"tagName","TABLE"),cr.allowedChildren=[nn],nn.requiredContainer=cr,nn.allowedChildren=[pn],pn.requiredContainer=nn,pn.allowedChildren=[Gt],Gt.requiredContainer=pn;function io(){return`row-${Math.random().toString(36).slice(2,6)}`}class _1 extends zt{static register(){le.register(Gt),le.register(pn),le.register(nn),le.register(cr)}constructor(){super(...arguments),this.listenBalanceCells()}balanceTables(){this.quill.scroll.descendants(cr).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!==Gt.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,a]=this.getTable(t);if(a==null)return;const o=a.cellOffset();r.insertColumn(o+e),this.quill.update(le.sources.USER);let l=s.rowOffset();e===0&&(l+=1),this.quill.setSelection(t.index+l,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,a]=this.getTable(t);if(a==null)return;const o=s.rowOffset();r.insertRow(o+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(a=>{const o=new Array(t).fill(`
53
- `).join("");return a.insert(o,{table:io()})},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,a)=>{a===le.sources.USER&&this.balanceTables()}),!0):!1)})}}const tc=dn("quill:toolbar");class oo extends zt{constructor(e,t){var r,s;if(super(e,t),Array.isArray(this.options.container)){const a=document.createElement("div");a.setAttribute("role","toolbar"),q1(a,this.options.container),(s=(r=e.container)==null?void 0:r.parentNode)==null||s.insertBefore(a,e.container),this.container=a}else typeof this.options.container=="string"?this.container=document.querySelector(this.options.container):this.container=this.options.container;if(!(this.container instanceof HTMLElement)){tc.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(a=>{var l;const o=(l=this.options.handlers)==null?void 0:l[a];o&&this.addHandler(a,o)}),Array.from(this.container.querySelectorAll("button, select")).forEach(a=>{this.attach(a)}),this.quill.on(le.events.EDITOR_CHANGE,()=>{const[a]=this.quill.selection.getRange();this.update(a)})}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){tc.warn("ignoring attaching to nonexistent format",t,e);return}const r=e.tagName==="SELECT"?"change":"click";e.addEventListener(r,s=>{let a;if(e.tagName==="SELECT"){if(e.selectedIndex<0)return;const l=e.options[e.selectedIndex];l.hasAttribute("selected")?a=!1:a=l.value||!1}else e.classList.contains("ql-active")?a=!1:a=e.value||!e.hasAttribute("value"),s.preventDefault();this.quill.focus();const[o]=this.quill.selection.getRange();if(this.handlers[t]!=null)this.handlers[t].call(this,a);else if(this.quill.scroll.query(t).prototype instanceof Rt){if(a=prompt(`Enter ${t}`),!a)return;this.quill.updateContents(new Te().retain(o.index).delete(o.length).insert({[t]:a}),le.sources.USER)}else this.quill.format(t,a,le.sources.USER);this.update(o)}),this.controls.push([t,e])}update(e){const t=e==null?{}:this.quill.getFormat(e);this.controls.forEach(r=>{const[s,a]=r;if(a.tagName==="SELECT"){let o=null;if(e==null)o=null;else if(t[s]==null)o=a.querySelector("option[selected]");else if(!Array.isArray(t[s])){let l=t[s];typeof l=="string"&&(l=l.replace(/"/g,'\\"')),o=a.querySelector(`option[value="${l}"]`)}o==null?(a.value="",a.selectedIndex=-1):o.selected=!0}else if(e==null)a.classList.remove("ql-active"),a.setAttribute("aria-pressed","false");else if(a.hasAttribute("value")){const o=t[s],l=o===a.getAttribute("value")||o!=null&&o.toString()===a.getAttribute("value")||o==null&&!a.getAttribute("value");a.classList.toggle("ql-active",l),a.setAttribute("aria-pressed",l.toString())}else{const o=t[s]!=null;a.classList.toggle("ql-active",o),a.setAttribute("aria-pressed",o.toString())}})}}oo.DEFAULTS={};function nc(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 q1(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")nc(r,s);else{const a=Object.keys(s)[0],o=s[a];Array.isArray(o)?z1(r,a,o):nc(r,a,o)}}),n.appendChild(r)})}function z1(n,e,t){const r=document.createElement("select");r.classList.add(`ql-${e}`),t.forEach(s=>{const a=document.createElement("option");s!==!1?a.setAttribute("value",String(s)):a.setAttribute("selected","selected"),r.appendChild(a)}),n.appendChild(r)}oo.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 H1='<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>',G1='<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>',W1='<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>',K1='<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>',X1='<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>',Y1='<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>',Z1='<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>',Q1='<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>',rc='<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>',$r={align:{"":H1,center:G1,right:W1,justify:K1},background:X1,blockquote:Y1,bold:Z1,clean:Q1,code:rc,"code-block":rc,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>'},J1='<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 sc=0;function ic(n,e){n.setAttribute(e,`${n.getAttribute(e)!=="true"}`)}class Rs{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"),ic(this.label,"aria-expanded"),ic(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=J1,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-${sc}`,sc+=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 oc extends Rs{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 ac extends Rs{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 ev=n=>{const{overflowY:e}=getComputedStyle(n,null);return e!=="visible"&&e!=="clip"};class lc{constructor(e,t){this.quill=e,this.boundsContainer=t||document.body,this.root=e.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,ev(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(),a=this.root.getBoundingClientRect();let o=0;if(a.right>s.right&&(o=s.right-a.right,this.root.style.left=`${t+o}px`),a.left<s.left&&(o=s.left-a.left,this.root.style.left=`${t+o}px`),a.bottom>s.bottom){const l=a.bottom-a.top,i=e.bottom-e.top+l;this.root.style.top=`${r-i}px`,this.root.classList.add("ql-flip")}return o}show(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}const tv=[!1,"center","right","justify"],nv=["#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"],rv=[!1,"serif","monospace"],sv=["1","2","3",!1],iv=["small",!1,"large","huge"];class Vr extends or{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(a=>{a.container.contains(s.target)||a.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(a=>{if(a.startsWith("ql-")&&(a=a.slice(3),t[a]!=null))if(a==="direction")r.innerHTML=t[a][""]+t[a].rtl;else if(typeof t[a]=="string")r.innerHTML=t[a];else{const o=r.value||"";o!=null&&t[a][o]&&(r.innerHTML=t[a][o])}})})}buildPickers(e,t){this.pickers=Array.from(e).map(s=>{if(s.classList.contains("ql-align")&&(s.querySelector("option")==null&&_r(s,tv),typeof t.align=="object"))return new ac(s,t.align);if(s.classList.contains("ql-background")||s.classList.contains("ql-color")){const a=s.classList.contains("ql-background")?"background":"color";return s.querySelector("option")==null&&_r(s,nv,a==="background"?"#ffffff":"#000000"),new oc(s,t[a])}return s.querySelector("option")==null&&(s.classList.contains("ql-font")?_r(s,rv):s.classList.contains("ql-header")?_r(s,sv):s.classList.contains("ql-size")&&_r(s,iv)),new Rs(s)});const r=()=>{this.pickers.forEach(s=>{s.update()})};this.quill.on(Se.events.EDITOR_CHANGE,r)}}Vr.DEFAULTS=wn({},or.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 cc extends lc{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=ov(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 ov(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 _r(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 av=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]];class uc extends cc{constructor(e,t){super(e,t),this.quill.on(Se.events.EDITOR_CHANGE,(r,s,a,o)=>{if(r===Se.events.SELECTION_CHANGE)if(s!=null&&s.length>0&&o===Se.sources.USER){this.show(),this.root.style.left="0px",this.root.style.width="",this.root.style.width=`${this.root.offsetWidth}px`;const l=this.quill.getLines(s.index,s.length);if(l.length===1){const i=this.quill.getBounds(s);i!=null&&this.position(i)}else{const i=l[l.length-1],c=this.quill.getIndex(i),d=Math.min(i.length()-1,s.index+s.length-c),h=this.quill.getBounds(new Un(c,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(uc,"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 dc extends Vr{constructor(e,t){t.modules.toolbar!=null&&t.modules.toolbar.container==null&&(t.modules.toolbar.container=av),super(e,t),this.quill.container.classList.add("ql-bubble")}extendToolbar(e){this.tooltip=new uc(this.quill,this.options.bounds),e.container!=null&&(this.tooltip.root.appendChild(e.container),this.buildButtons(e.container.querySelectorAll("button"),$r),this.buildPickers(e.container.querySelectorAll("select"),$r))}}dc.DEFAULTS=wn({},Vr.DEFAULTS,{modules:{toolbar:{handlers:{link(n){n?this.quill.theme.tooltip.edit():this.quill.format("link",!1,le.sources.USER)}}}}});const lv=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];class fc extends cc{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[a,o]=this.quill.scroll.descendant(On,t.index);if(a!=null){this.linkRange=new Un(t.index-o,a.length());const l=On.formats(a.domNode);this.preview.textContent=l,this.preview.setAttribute("href",l),this.show();const i=this.quill.getBounds(this.linkRange);i!=null&&this.position(i);return}}else delete this.linkRange;this.hide()}})}show(){super.show(),this.root.removeAttribute("data-mode")}}Ee(fc,"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 hc extends Vr{constructor(e,t){t.modules.toolbar!=null&&t.modules.toolbar.container==null&&(t.modules.toolbar.container=lv),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"),$r),this.buildPickers(e.container.querySelectorAll("select"),$r),this.tooltip=new fc(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)}))}}hc.DEFAULTS=wn({},Vr.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":Bl,"attributors/class/align":Il,"attributors/class/background":Y0,"attributors/class/color":X0,"attributors/class/direction":Pl,"attributors/class/font":Dl,"attributors/class/size":jl,"attributors/style/align":Ll,"attributors/style/background":zi,"attributors/style/color":qi,"attributors/style/direction":Fl,"attributors/style/font":Ul,"attributors/style/size":$l},!0),le.register({"formats/align":Il,"formats/direction":Pl,"formats/indent":$1,"formats/background":zi,"formats/color":qi,"formats/font":Dl,"formats/size":jl,"formats/blockquote":Qi,"formats/code-block":vt,"formats/header":Ji,"formats/list":Mr,"formats/bold":Dr,"formats/code":Hi,"formats/italic":eo,"formats/link":On,"formats/script":to,"formats/strike":no,"formats/underline":ro,"formats/formula":Os,"formats/image":so,"formats/video":Cs,"modules/syntax":ec,"modules/table":_1,"modules/toolbar":oo,"themes/bubble":dc,"themes/snow":hc,"ui/icons":$r,"ui/picker":Rs,"ui/icon-picker":ac,"ui/color-picker":oc,"ui/tooltip":lc},!0);const cv={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=u.ref(null);let r=null;return u.onMounted(()=>{r=new le(t.value,n.options),r.root.innerHTML=n.modelValue,r.on("text-change",()=>{e("update:modelValue",r.root.innerHTML)})}),u.watch(()=>n.modelValue,s=>{r&&r.root.innerHTML!==s&&(r.root.innerHTML=s)}),u.onBeforeUnmount(()=>{r=null}),{editorContainer:t}}},uv={class:"q-editor"},dv={ref:"editorContainer"};function fv(n,e,t,r,s,a){return u.openBlock(),u.createElementBlock("div",uv,[u.createElementVNode("div",dv,null,512)])}const hv=es(cv,[["render",fv]]),pv={class:"rounded-xl bg-gray-50 px-6 py-5"},mv={key:0,class:"pb-5"},gv={class:"text-lg font-semibold text-gray-900"},vv={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)=>(u.openBlock(),u.createElementBlock("div",pv,[n.title?(u.openBlock(),u.createElementBlock("div",mv,[u.createElementVNode("div",gv,u.toDisplayString(n.title),1),n.supporting_text?(u.openBlock(),u.createElementBlock("div",vv,u.toDisplayString(n.supporting_text),1)):u.createCommentVNode("",!0)])):u.createCommentVNode("",!0),u.renderSlot(e.$slots,"default")]))}};function pc(n,e){return function(){return n.apply(e,arguments)}}const{toString:yv}=Object.prototype,{getPrototypeOf:ao}=Object,{iterator:Is,toStringTag:mc}=Symbol,Ls=(n=>e=>{const t=yv.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),Wt=n=>(n=n.toLowerCase(),e=>Ls(e)===n),ks=n=>e=>typeof e===n,{isArray:ur}=Array,zr=ks("undefined");function bv(n){return n!==null&&!zr(n)&&n.constructor!==null&&!zr(n.constructor)&&Tt(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const gc=Wt("ArrayBuffer");function xv(n){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(n):e=n&&n.buffer&&gc(n.buffer),e}const Ev=ks("string"),Tt=ks("function"),vc=ks("number"),Bs=n=>n!==null&&typeof n=="object",Av=n=>n===!0||n===!1,Ps=n=>{if(Ls(n)!=="object")return!1;const e=ao(n);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(mc in n)&&!(Is in n)},wv=Wt("Date"),Sv=Wt("File"),Tv=Wt("Blob"),Nv=Wt("FileList"),Ov=n=>Bs(n)&&Tt(n.pipe),Cv=n=>{let e;return n&&(typeof FormData=="function"&&n instanceof FormData||Tt(n.append)&&((e=Ls(n))==="formdata"||e==="object"&&Tt(n.toString)&&n.toString()==="[object FormData]"))},Rv=Wt("URLSearchParams"),[Iv,Lv,kv,Bv]=["ReadableStream","Request","Response","Headers"].map(Wt),Pv=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Hr(n,e,{allOwnKeys:t=!1}={}){if(n===null||typeof n>"u")return;let r,s;if(typeof n!="object"&&(n=[n]),ur(n))for(r=0,s=n.length;r<s;r++)e.call(null,n[r],r,n);else{const a=t?Object.getOwnPropertyNames(n):Object.keys(n),o=a.length;let l;for(r=0;r<o;r++)l=a[r],e.call(null,n[l],l,n)}}function yc(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 _n=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,bc=n=>!zr(n)&&n!==_n;function lo(){const{caseless:n}=bc(this)&&this||{},e={},t=(r,s)=>{const a=n&&yc(e,s)||s;Ps(e[a])&&Ps(r)?e[a]=lo(e[a],r):Ps(r)?e[a]=lo({},r):ur(r)?e[a]=r.slice():e[a]=r};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&Hr(arguments[r],t);return e}const Fv=(n,e,t,{allOwnKeys:r}={})=>(Hr(e,(s,a)=>{t&&Tt(s)?n[a]=pc(s,t):n[a]=s},{allOwnKeys:r}),n),Mv=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),Dv=(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)},Uv=(n,e,t,r)=>{let s,a,o;const l={};if(e=e||{},n==null)return e;do{for(s=Object.getOwnPropertyNames(n),a=s.length;a-- >0;)o=s[a],(!r||r(o,n,e))&&!l[o]&&(e[o]=n[o],l[o]=!0);n=t!==!1&&ao(n)}while(n&&(!t||t(n,e))&&n!==Object.prototype);return e},jv=(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},$v=n=>{if(!n)return null;if(ur(n))return n;let e=n.length;if(!vc(e))return null;const t=new Array(e);for(;e-- >0;)t[e]=n[e];return t},Vv=(n=>e=>n&&e instanceof n)(typeof Uint8Array<"u"&&ao(Uint8Array)),_v=(n,e)=>{const r=(n&&n[Is]).call(n);let s;for(;(s=r.next())&&!s.done;){const a=s.value;e.call(n,a[0],a[1])}},qv=(n,e)=>{let t;const r=[];for(;(t=n.exec(e))!==null;)r.push(t);return r},zv=Wt("HTMLFormElement"),Hv=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,r,s){return r.toUpperCase()+s}),xc=(({hasOwnProperty:n})=>(e,t)=>n.call(e,t))(Object.prototype),Gv=Wt("RegExp"),Ec=(n,e)=>{const t=Object.getOwnPropertyDescriptors(n),r={};Hr(t,(s,a)=>{let o;(o=e(s,a,n))!==!1&&(r[a]=o||s)}),Object.defineProperties(n,r)},Wv=n=>{Ec(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+"'")})}})},Kv=(n,e)=>{const t={},r=s=>{s.forEach(a=>{t[a]=!0})};return ur(n)?r(n):r(String(n).split(e)),t},Xv=()=>{},Yv=(n,e)=>n!=null&&Number.isFinite(n=+n)?n:e;function Zv(n){return!!(n&&Tt(n.append)&&n[mc]==="FormData"&&n[Is])}const Qv=n=>{const e=new Array(10),t=(r,s)=>{if(Bs(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[s]=r;const a=ur(r)?[]:{};return Hr(r,(o,l)=>{const i=t(o,s+1);!zr(i)&&(a[l]=i)}),e[s]=void 0,a}}return r};return t(n,0)},Jv=Wt("AsyncFunction"),ey=n=>n&&(Bs(n)||Tt(n))&&Tt(n.then)&&Tt(n.catch),Ac=((n,e)=>n?setImmediate:e?((t,r)=>(_n.addEventListener("message",({source:s,data:a})=>{s===_n&&a===t&&r.length&&r.shift()()},!1),s=>{r.push(s),_n.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t))(typeof setImmediate=="function",Tt(_n.postMessage)),ty=typeof queueMicrotask<"u"?queueMicrotask.bind(_n):typeof process<"u"&&process.nextTick||Ac,ee={isArray:ur,isArrayBuffer:gc,isBuffer:bv,isFormData:Cv,isArrayBufferView:xv,isString:Ev,isNumber:vc,isBoolean:Av,isObject:Bs,isPlainObject:Ps,isReadableStream:Iv,isRequest:Lv,isResponse:kv,isHeaders:Bv,isUndefined:zr,isDate:wv,isFile:Sv,isBlob:Tv,isRegExp:Gv,isFunction:Tt,isStream:Ov,isURLSearchParams:Rv,isTypedArray:Vv,isFileList:Nv,forEach:Hr,merge:lo,extend:Fv,trim:Pv,stripBOM:Mv,inherits:Dv,toFlatObject:Uv,kindOf:Ls,kindOfTest:Wt,endsWith:jv,toArray:$v,forEachEntry:_v,matchAll:qv,isHTMLForm:zv,hasOwnProperty:xc,hasOwnProp:xc,reduceDescriptors:Ec,freezeMethods:Wv,toObjectSet:Kv,toCamelCase:Hv,noop:Xv,toFiniteNumber:Yv,findKey:yc,global:_n,isContextDefined:bc,isSpecCompliantForm:Zv,toJSONObject:Qv,isAsyncFn:Jv,isThenable:ey,setImmediate:Ac,asap:ty,isIterable:n=>n!=null&&Tt(n[Is])};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 wc=Me.prototype,Sc={};["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=>{Sc[n]={value:n}}),Object.defineProperties(Me,Sc),Object.defineProperty(wc,"isAxiosError",{value:!0}),Me.from=(n,e,t,r,s,a)=>{const o=Object.create(wc);return ee.toFlatObject(n,o,function(i){return i!==Error.prototype},l=>l!=="isAxiosError"),Me.call(o,n.message,e,t,r,s),o.cause=n,o.name=n.name,a&&Object.assign(o,a),o};const ny=null;function co(n){return ee.isPlainObject(n)||ee.isArray(n)}function Tc(n){return ee.endsWith(n,"[]")?n.slice(0,-2):n}function Nc(n,e,t){return n?n.concat(e).map(function(s,a){return s=Tc(s),!t&&a?"["+s+"]":s}).join(t?".":""):e}function ry(n){return ee.isArray(n)&&!n.some(co)}const sy=ee.toFlatObject(ee,{},null,function(e){return/^is[A-Z]/.test(e)});function Fs(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(v,x){return!ee.isUndefined(x[v])});const r=t.metaTokens,s=t.visitor||d,a=t.dots,o=t.indexes,i=(t.Blob||typeof Blob<"u"&&Blob)&&ee.isSpecCompliantForm(e);if(!ee.isFunction(s))throw new TypeError("visitor must be a function");function c(p){if(p===null)return"";if(ee.isDate(p))return p.toISOString();if(!i&&ee.isBlob(p))throw new Me("Blob is not supported. Use a Buffer instead.");return ee.isArrayBuffer(p)||ee.isTypedArray(p)?i&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function d(p,v,x){let T=p;if(p&&!x&&typeof p=="object"){if(ee.endsWith(v,"{}"))v=r?v:v.slice(0,-2),p=JSON.stringify(p);else if(ee.isArray(p)&&ry(p)||(ee.isFileList(p)||ee.endsWith(v,"[]"))&&(T=ee.toArray(p)))return v=Tc(v),T.forEach(function(I,F){!(ee.isUndefined(I)||I===null)&&e.append(o===!0?Nc([v],F,a):o===null?v:v+"[]",c(I))}),!1}return co(p)?!0:(e.append(Nc(x,v,a),c(p)),!1)}const h=[],f=Object.assign(sy,{defaultVisitor:d,convertValue:c,isVisitable:co});function g(p,v){if(!ee.isUndefined(p)){if(h.indexOf(p)!==-1)throw Error("Circular reference detected in "+v.join("."));h.push(p),ee.forEach(p,function(T,S){(!(ee.isUndefined(T)||T===null)&&s.call(e,T,ee.isString(S)?S.trim():S,v,f))===!0&&g(T,v?v.concat(S):[S])}),h.pop()}}if(!ee.isObject(n))throw new TypeError("data must be an object");return g(n),e}function Oc(n){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function uo(n,e){this._pairs=[],n&&Fs(n,this,e)}const Cc=uo.prototype;Cc.append=function(e,t){this._pairs.push([e,t])},Cc.toString=function(e){const t=e?function(r){return e.call(this,r,Oc)}:Oc;return this._pairs.map(function(s){return t(s[0])+"="+t(s[1])},"").join("&")};function iy(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Rc(n,e,t){if(!e)return n;const r=t&&t.encode||iy;ee.isFunction(t)&&(t={serialize:t});const s=t&&t.serialize;let a;if(s?a=s(e,t):a=ee.isURLSearchParams(e)?e.toString():new uo(e,t).toString(r),a){const o=n.indexOf("#");o!==-1&&(n=n.slice(0,o)),n+=(n.indexOf("?")===-1?"?":"&")+a}return n}class Ic{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 Lc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},oy={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:uo,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},fo=typeof window<"u"&&typeof document<"u",ho=typeof navigator=="object"&&navigator||void 0,ay=fo&&(!ho||["ReactNative","NativeScript","NS"].indexOf(ho.product)<0),ly=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",cy=fo&&window.location.href||"http://localhost",yt={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:fo,hasStandardBrowserEnv:ay,hasStandardBrowserWebWorkerEnv:ly,navigator:ho,origin:cy},Symbol.toStringTag,{value:"Module"})),...oy};function uy(n,e){return Fs(n,new yt.classes.URLSearchParams,Object.assign({visitor:function(t,r,s,a){return yt.isNode&&ee.isBuffer(t)?(this.append(r,t.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},e))}function dy(n){return ee.matchAll(/\w+|\[(\w*)]/g,n).map(e=>e[0]==="[]"?"":e[1]||e[0])}function fy(n){const e={},t=Object.keys(n);let r;const s=t.length;let a;for(r=0;r<s;r++)a=t[r],e[a]=n[a];return e}function kc(n){function e(t,r,s,a){let o=t[a++];if(o==="__proto__")return!0;const l=Number.isFinite(+o),i=a>=t.length;return o=!o&&ee.isArray(s)?s.length:o,i?(ee.hasOwnProp(s,o)?s[o]=[s[o],r]:s[o]=r,!l):((!s[o]||!ee.isObject(s[o]))&&(s[o]=[]),e(t,r,s[o],a)&&ee.isArray(s[o])&&(s[o]=fy(s[o])),!l)}if(ee.isFormData(n)&&ee.isFunction(n.entries)){const t={};return ee.forEachEntry(n,(r,s)=>{e(dy(r),s,t,0)}),t}return null}function hy(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 Gr={transitional:Lc,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",s=r.indexOf("application/json")>-1,a=ee.isObject(e);if(a&&ee.isHTMLForm(e)&&(e=new FormData(e)),ee.isFormData(e))return s?JSON.stringify(kc(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 l;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return uy(e,this.formSerializer).toString();if((l=ee.isFileList(e))||r.indexOf("multipart/form-data")>-1){const i=this.env&&this.env.FormData;return Fs(l?{"files[]":e}:e,i&&new i,this.formSerializer)}}return a||s?(t.setContentType("application/json",!1),hy(e)):e}],transformResponse:[function(e){const t=this.transitional||Gr.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 o=!(t&&t.silentJSONParsing)&&s;try{return JSON.parse(e)}catch(l){if(o)throw l.name==="SyntaxError"?Me.from(l,Me.ERR_BAD_RESPONSE,this,null,this.response):l}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:yt.classes.FormData,Blob:yt.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=>{Gr.headers[n]={}});const py=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"]),my=n=>{const e={};let t,r,s;return n&&n.split(`
54
- `).forEach(function(o){s=o.indexOf(":"),t=o.substring(0,s).trim().toLowerCase(),r=o.substring(s+1).trim(),!(!t||e[t]&&py[t])&&(t==="set-cookie"?e[t]?e[t].push(r):e[t]=[r]:e[t]=e[t]?e[t]+", "+r:r)}),e},Bc=Symbol("internals");function Wr(n){return n&&String(n).trim().toLowerCase()}function Ms(n){return n===!1||n==null?n:ee.isArray(n)?n.map(Ms):String(n)}function gy(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 vy=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function po(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 yy(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r)}function by(n,e){const t=ee.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(n,r+t,{value:function(s,a,o){return this[r].call(this,e,s,a,o)},configurable:!0})})}let Nt=class{constructor(e){e&&this.set(e)}set(e,t,r){const s=this;function a(l,i,c){const d=Wr(i);if(!d)throw new Error("header name must be a non-empty string");const h=ee.findKey(s,d);(!h||s[h]===void 0||c===!0||c===void 0&&s[h]!==!1)&&(s[h||i]=Ms(l))}const o=(l,i)=>ee.forEach(l,(c,d)=>a(c,d,i));if(ee.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(ee.isString(e)&&(e=e.trim())&&!vy(e))o(my(e),t);else if(ee.isObject(e)&&ee.isIterable(e)){let l={},i,c;for(const d of e){if(!ee.isArray(d))throw TypeError("Object iterator must return a key-value pair");l[c=d[0]]=(i=l[c])?ee.isArray(i)?[...i,d[1]]:[i,d[1]]:d[1]}o(l,t)}else e!=null&&a(t,e,r);return this}get(e,t){if(e=Wr(e),e){const r=ee.findKey(this,e);if(r){const s=this[r];if(!t)return s;if(t===!0)return gy(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=Wr(e),e){const r=ee.findKey(this,e);return!!(r&&this[r]!==void 0&&(!t||po(this,this[r],r,t)))}return!1}delete(e,t){const r=this;let s=!1;function a(o){if(o=Wr(o),o){const l=ee.findKey(r,o);l&&(!t||po(r,r[l],l,t))&&(delete r[l],s=!0)}}return ee.isArray(e)?e.forEach(a):a(e),s}clear(e){const t=Object.keys(this);let r=t.length,s=!1;for(;r--;){const a=t[r];(!e||po(this,this[a],a,e,!0))&&(delete this[a],s=!0)}return s}normalize(e){const t=this,r={};return ee.forEach(this,(s,a)=>{const o=ee.findKey(r,a);if(o){t[o]=Ms(s),delete t[a];return}const l=e?yy(a):String(a).trim();l!==a&&delete t[a],t[l]=Ms(s),r[l]=!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(`
55
- `)}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[Bc]=this[Bc]={accessors:{}}).accessors,s=this.prototype;function a(o){const l=Wr(o);r[l]||(by(s,o),r[l]=!0)}return ee.isArray(e)?e.forEach(a):a(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 mo(n,e){const t=this||Gr,r=e||t,s=Nt.from(r.headers);let a=r.data;return ee.forEach(n,function(l){a=l.call(t,a,s.normalize(),e?e.status:void 0)}),s.normalize(),a}function Pc(n){return!!(n&&n.__CANCEL__)}function dr(n,e,t){Me.call(this,n??"canceled",Me.ERR_CANCELED,e,t),this.name="CanceledError"}ee.inherits(dr,Me,{__CANCEL__:!0});function Fc(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 xy(n){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return e&&e[1]||""}function Ey(n,e){n=n||10;const t=new Array(n),r=new Array(n);let s=0,a=0,o;return e=e!==void 0?e:1e3,function(i){const c=Date.now(),d=r[a];o||(o=c),t[s]=i,r[s]=c;let h=a,f=0;for(;h!==s;)f+=t[h++],h=h%n;if(s=(s+1)%n,s===a&&(a=(a+1)%n),c-o<e)return;const g=d&&c-d;return g?Math.round(f*1e3/g):void 0}}function Ay(n,e){let t=0,r=1e3/e,s,a;const o=(c,d=Date.now())=>{t=d,s=null,a&&(clearTimeout(a),a=null),n.apply(null,c)};return[(...c)=>{const d=Date.now(),h=d-t;h>=r?o(c,d):(s=c,a||(a=setTimeout(()=>{a=null,o(s)},r-h)))},()=>s&&o(s)]}const Ds=(n,e,t=3)=>{let r=0;const s=Ey(50,250);return Ay(a=>{const o=a.loaded,l=a.lengthComputable?a.total:void 0,i=o-r,c=s(i),d=o<=l;r=o;const h={loaded:o,total:l,progress:l?o/l:void 0,bytes:i,rate:c||void 0,estimated:c&&l&&d?(l-o)/c:void 0,event:a,lengthComputable:l!=null,[e?"download":"upload"]:!0};n(h)},t)},Mc=(n,e)=>{const t=n!=null;return[r=>e[0]({lengthComputable:t,total:n,loaded:r}),e[1]]},Dc=n=>(...e)=>ee.asap(()=>n(...e)),wy=yt.hasStandardBrowserEnv?((n,e)=>t=>(t=new URL(t,yt.origin),n.protocol===t.protocol&&n.host===t.host&&(e||n.port===t.port)))(new URL(yt.origin),yt.navigator&&/(msie|trident)/i.test(yt.navigator.userAgent)):()=>!0,Sy=yt.hasStandardBrowserEnv?{write(n,e,t,r,s,a){const o=[n+"="+encodeURIComponent(e)];ee.isNumber(t)&&o.push("expires="+new Date(t).toGMTString()),ee.isString(r)&&o.push("path="+r),ee.isString(s)&&o.push("domain="+s),a===!0&&o.push("secure"),document.cookie=o.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 Ty(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function Ny(n,e){return e?n.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):n}function Uc(n,e,t){let r=!Ty(e);return n&&(r||t==!1)?Ny(n,e):e}const jc=n=>n instanceof Nt?{...n}:n;function qn(n,e){e=e||{};const t={};function r(c,d,h,f){return ee.isPlainObject(c)&&ee.isPlainObject(d)?ee.merge.call({caseless:f},c,d):ee.isPlainObject(d)?ee.merge({},d):ee.isArray(d)?d.slice():d}function s(c,d,h,f){if(ee.isUndefined(d)){if(!ee.isUndefined(c))return r(void 0,c,h,f)}else return r(c,d,h,f)}function a(c,d){if(!ee.isUndefined(d))return r(void 0,d)}function o(c,d){if(ee.isUndefined(d)){if(!ee.isUndefined(c))return r(void 0,c)}else return r(void 0,d)}function l(c,d,h){if(h in e)return r(c,d);if(h in n)return r(void 0,c)}const i={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:l,headers:(c,d,h)=>s(jc(c),jc(d),h,!0)};return ee.forEach(Object.keys(Object.assign({},n,e)),function(d){const h=i[d]||s,f=h(n[d],e[d],d);ee.isUndefined(f)&&h!==l||(t[d]=f)}),t}const $c=n=>{const e=qn({},n);let{data:t,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:a,headers:o,auth:l}=e;e.headers=o=Nt.from(o),e.url=Rc(Uc(e.baseURL,e.url,e.allowAbsoluteUrls),n.params,n.paramsSerializer),l&&o.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let i;if(ee.isFormData(t)){if(yt.hasStandardBrowserEnv||yt.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((i=o.getContentType())!==!1){const[c,...d]=i?i.split(";").map(h=>h.trim()).filter(Boolean):[];o.setContentType([c||"multipart/form-data",...d].join("; "))}}if(yt.hasStandardBrowserEnv&&(r&&ee.isFunction(r)&&(r=r(e)),r||r!==!1&&wy(e.url))){const c=s&&a&&Sy.read(a);c&&o.set(s,c)}return e},Oy=typeof XMLHttpRequest<"u"&&function(n){return new Promise(function(t,r){const s=$c(n);let a=s.data;const o=Nt.from(s.headers).normalize();let{responseType:l,onUploadProgress:i,onDownloadProgress:c}=s,d,h,f,g,p;function v(){g&&g(),p&&p(),s.cancelToken&&s.cancelToken.unsubscribe(d),s.signal&&s.signal.removeEventListener("abort",d)}let x=new XMLHttpRequest;x.open(s.method.toUpperCase(),s.url,!0),x.timeout=s.timeout;function T(){if(!x)return;const I=Nt.from("getAllResponseHeaders"in x&&x.getAllResponseHeaders()),M={data:!l||l==="text"||l==="json"?x.responseText:x.response,status:x.status,statusText:x.statusText,headers:I,config:n,request:x};Fc(function(X){t(X),v()},function(X){r(X),v()},M),x=null}"onloadend"in x?x.onloadend=T:x.onreadystatechange=function(){!x||x.readyState!==4||x.status===0&&!(x.responseURL&&x.responseURL.indexOf("file:")===0)||setTimeout(T)},x.onabort=function(){x&&(r(new Me("Request aborted",Me.ECONNABORTED,n,x)),x=null)},x.onerror=function(){r(new Me("Network Error",Me.ERR_NETWORK,n,x)),x=null},x.ontimeout=function(){let F=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const M=s.transitional||Lc;s.timeoutErrorMessage&&(F=s.timeoutErrorMessage),r(new Me(F,M.clarifyTimeoutError?Me.ETIMEDOUT:Me.ECONNABORTED,n,x)),x=null},a===void 0&&o.setContentType(null),"setRequestHeader"in x&&ee.forEach(o.toJSON(),function(F,M){x.setRequestHeader(M,F)}),ee.isUndefined(s.withCredentials)||(x.withCredentials=!!s.withCredentials),l&&l!=="json"&&(x.responseType=s.responseType),c&&([f,p]=Ds(c,!0),x.addEventListener("progress",f)),i&&x.upload&&([h,g]=Ds(i),x.upload.addEventListener("progress",h),x.upload.addEventListener("loadend",g)),(s.cancelToken||s.signal)&&(d=I=>{x&&(r(!I||I.type?new dr(null,n,x):I),x.abort(),x=null)},s.cancelToken&&s.cancelToken.subscribe(d),s.signal&&(s.signal.aborted?d():s.signal.addEventListener("abort",d)));const S=xy(s.url);if(S&&yt.protocols.indexOf(S)===-1){r(new Me("Unsupported protocol "+S+":",Me.ERR_BAD_REQUEST,n));return}x.send(a||null)})},Cy=(n,e)=>{const{length:t}=n=n?n.filter(Boolean):[];if(e||t){let r=new AbortController,s;const a=function(c){if(!s){s=!0,l();const d=c instanceof Error?c:this.reason;r.abort(d instanceof Me?d:new dr(d instanceof Error?d.message:d))}};let o=e&&setTimeout(()=>{o=null,a(new Me(`timeout ${e} of ms exceeded`,Me.ETIMEDOUT))},e);const l=()=>{n&&(o&&clearTimeout(o),o=null,n.forEach(c=>{c.unsubscribe?c.unsubscribe(a):c.removeEventListener("abort",a)}),n=null)};n.forEach(c=>c.addEventListener("abort",a));const{signal:i}=r;return i.unsubscribe=()=>ee.asap(l),i}},Ry=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},Iy=async function*(n,e){for await(const t of Ly(n))yield*Ry(t,e)},Ly=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()}},Vc=(n,e,t,r)=>{const s=Iy(n,e);let a=0,o,l=i=>{o||(o=!0,r&&r(i))};return new ReadableStream({async pull(i){try{const{done:c,value:d}=await s.next();if(c){l(),i.close();return}let h=d.byteLength;if(t){let f=a+=h;t(f)}i.enqueue(new Uint8Array(d))}catch(c){throw l(c),c}},cancel(i){return l(i),s.return()}},{highWaterMark:2})},Us=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",_c=Us&&typeof ReadableStream=="function",ky=Us&&(typeof TextEncoder=="function"?(n=>e=>n.encode(e))(new TextEncoder):async n=>new Uint8Array(await new Response(n).arrayBuffer())),qc=(n,...e)=>{try{return!!n(...e)}catch{return!1}},By=_c&&qc(()=>{let n=!1;const e=new Request(yt.origin,{body:new ReadableStream,method:"POST",get duplex(){return n=!0,"half"}}).headers.has("Content-Type");return n&&!e}),zc=64*1024,go=_c&&qc(()=>ee.isReadableStream(new Response("").body)),js={stream:go&&(n=>n.body)};Us&&(n=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!js[e]&&(js[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 Py=async n=>{if(n==null)return 0;if(ee.isBlob(n))return n.size;if(ee.isSpecCompliantForm(n))return(await new Request(yt.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 ky(n)).byteLength},Fy=async(n,e)=>{const t=ee.toFiniteNumber(n.getContentLength());return t??Py(e)},vo={http:ny,xhr:Oy,fetch:Us&&(async n=>{let{url:e,method:t,data:r,signal:s,cancelToken:a,timeout:o,onDownloadProgress:l,onUploadProgress:i,responseType:c,headers:d,withCredentials:h="same-origin",fetchOptions:f}=$c(n);c=c?(c+"").toLowerCase():"text";let g=Cy([s,a&&a.toAbortSignal()],o),p;const v=g&&g.unsubscribe&&(()=>{g.unsubscribe()});let x;try{if(i&&By&&t!=="get"&&t!=="head"&&(x=await Fy(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]=Mc(x,Ds(Dc(i)));r=Vc(M.body,zc,X,H)}}ee.isString(h)||(h=h?"include":"omit");const T="credentials"in Request.prototype;p=new Request(e,{...f,signal:g,method:t.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",credentials:T?h:void 0});let S=await fetch(p);const I=go&&(c==="stream"||c==="response");if(go&&(l||I&&v)){const M={};["status","statusText","headers"].forEach(re=>{M[re]=S[re]});const z=ee.toFiniteNumber(S.headers.get("content-length")),[X,H]=l&&Mc(z,Ds(Dc(l),!0))||[];S=new Response(Vc(S.body,zc,X,()=>{H&&H(),v&&v()}),M)}c=c||"text";let F=await js[ee.findKey(js,c)||"text"](S,n);return!I&&v&&v(),await new Promise((M,z)=>{Fc(M,z,{data:F,headers:Nt.from(S.headers),status:S.status,statusText:S.statusText,config:n,request:p})})}catch(T){throw v&&v(),T&&T.name==="TypeError"&&/Load failed|fetch/i.test(T.message)?Object.assign(new Me("Network Error",Me.ERR_NETWORK,n,p),{cause:T.cause||T}):Me.from(T,T&&T.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 Hc=n=>`- ${n}`,My=n=>ee.isFunction(n)||n===null||n===!1,Gc={getAdapter:n=>{n=ee.isArray(n)?n:[n];const{length:e}=n;let t,r;const s={};for(let a=0;a<e;a++){t=n[a];let o;if(r=t,!My(t)&&(r=vo[(o=String(t)).toLowerCase()],r===void 0))throw new Me(`Unknown adapter '${o}'`);if(r)break;s[o||"#"+a]=r}if(!r){const a=Object.entries(s).map(([l,i])=>`adapter ${l} `+(i===!1?"is not supported by the environment":"is not available in the build"));let o=e?a.length>1?`since :
50
+ `,{[vt.blotName]:t}),s.insert(a)),new Te);const r=this.quill.root.ownerDocument.createElement("div");return r.classList.add(vt.className),r.innerHTML=V1(this.options.hljs,t,e),Xi(this.quill.scroll,r,[(s,a)=>{const o=jr.value(s);return o?a.compose(new Te().retain(a.length(),{[hn.blotName]:o})):a}],[(s,a)=>s.data.split(`
51
+ `).reduce((o,c,i)=>(i!==0&&o.insert(`
52
+ `,{[vt.blotName]:t}),o.insert(c)),a)],new WeakMap)}}ec.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 Yr=class Yr extends ht{static create(e){const t=super.create();return e?t.setAttribute("data-row",e):t.setAttribute("data-row",io()),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===Yr.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(Yr,"blotName","table"),Ee(Yr,"tagName","TD");let Gt=Yr;class pn extends jn{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 a=this.splitAfter(t);a&&a.optimize(),this.prev&&this.prev.optimize()}})}rowOffset(){return this.parent?this.parent.children.indexOf(this):-1}table(){return this.parent&&this.parent.parent}}Ee(pn,"blotName","table-row"),Ee(pn,"tagName","TR");class nn extends jn{}Ee(nn,"blotName","table-body"),Ee(nn,"tagName","TBODY");class cr extends jn{balanceCells(){const e=this.descendants(pn),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=Gt.formats(r.children.head.domNode));const a=this.scroll.create(Gt.blotName,s);r.appendChild(a),a.optimize()})})}cells(e){return this.rows().map(t=>t.children.at(e))}deleteColumn(e){const[t]=this.descendant(nn);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(nn);t==null||t.children.head==null||t.children.forEach(r=>{const s=r.children.at(e),a=Gt.formats(r.children.head.domNode),o=this.scroll.create(Gt.blotName,a);r.insertBefore(o,s)})}insertRow(e){const[t]=this.descendant(nn);if(t==null||t.children.head==null)return;const r=io(),s=this.scroll.create(pn.blotName);t.children.head.children.forEach(()=>{const o=this.scroll.create(Gt.blotName,r);s.appendChild(o)});const a=t.children.at(e);t.insertBefore(s,a)}rows(){const e=this.children.head;return e==null?[]:e.children.map(t=>t)}}Ee(cr,"blotName","table-container"),Ee(cr,"tagName","TABLE"),cr.allowedChildren=[nn],nn.requiredContainer=cr,nn.allowedChildren=[pn],pn.requiredContainer=nn,pn.allowedChildren=[Gt],Gt.requiredContainer=pn;function io(){return`row-${Math.random().toString(36).slice(2,6)}`}class _1 extends zt{static register(){le.register(Gt),le.register(pn),le.register(nn),le.register(cr)}constructor(){super(...arguments),this.listenBalanceCells()}balanceTables(){this.quill.scroll.descendants(cr).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!==Gt.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,a]=this.getTable(t);if(a==null)return;const o=a.cellOffset();r.insertColumn(o+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,a]=this.getTable(t);if(a==null)return;const o=s.rowOffset();r.insertRow(o+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(a=>{const o=new Array(t).fill(`
53
+ `).join("");return a.insert(o,{table:io()})},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,a)=>{a===le.sources.USER&&this.balanceTables()}),!0):!1)})}}const tc=dn("quill:toolbar");class oo extends zt{constructor(e,t){var r,s;if(super(e,t),Array.isArray(this.options.container)){const a=document.createElement("div");a.setAttribute("role","toolbar"),q1(a,this.options.container),(s=(r=e.container)==null?void 0:r.parentNode)==null||s.insertBefore(a,e.container),this.container=a}else typeof this.options.container=="string"?this.container=document.querySelector(this.options.container):this.container=this.options.container;if(!(this.container instanceof HTMLElement)){tc.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(a=>{var c;const o=(c=this.options.handlers)==null?void 0:c[a];o&&this.addHandler(a,o)}),Array.from(this.container.querySelectorAll("button, select")).forEach(a=>{this.attach(a)}),this.quill.on(le.events.EDITOR_CHANGE,()=>{const[a]=this.quill.selection.getRange();this.update(a)})}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){tc.warn("ignoring attaching to nonexistent format",t,e);return}const r=e.tagName==="SELECT"?"change":"click";e.addEventListener(r,s=>{let a;if(e.tagName==="SELECT"){if(e.selectedIndex<0)return;const c=e.options[e.selectedIndex];c.hasAttribute("selected")?a=!1:a=c.value||!1}else e.classList.contains("ql-active")?a=!1:a=e.value||!e.hasAttribute("value"),s.preventDefault();this.quill.focus();const[o]=this.quill.selection.getRange();if(this.handlers[t]!=null)this.handlers[t].call(this,a);else if(this.quill.scroll.query(t).prototype instanceof Rt){if(a=prompt(`Enter ${t}`),!a)return;this.quill.updateContents(new Te().retain(o.index).delete(o.length).insert({[t]:a}),le.sources.USER)}else this.quill.format(t,a,le.sources.USER);this.update(o)}),this.controls.push([t,e])}update(e){const t=e==null?{}:this.quill.getFormat(e);this.controls.forEach(r=>{const[s,a]=r;if(a.tagName==="SELECT"){let o=null;if(e==null)o=null;else if(t[s]==null)o=a.querySelector("option[selected]");else if(!Array.isArray(t[s])){let c=t[s];typeof c=="string"&&(c=c.replace(/"/g,'\\"')),o=a.querySelector(`option[value="${c}"]`)}o==null?(a.value="",a.selectedIndex=-1):o.selected=!0}else if(e==null)a.classList.remove("ql-active"),a.setAttribute("aria-pressed","false");else if(a.hasAttribute("value")){const o=t[s],c=o===a.getAttribute("value")||o!=null&&o.toString()===a.getAttribute("value")||o==null&&!a.getAttribute("value");a.classList.toggle("ql-active",c),a.setAttribute("aria-pressed",c.toString())}else{const o=t[s]!=null;a.classList.toggle("ql-active",o),a.setAttribute("aria-pressed",o.toString())}})}}oo.DEFAULTS={};function nc(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 q1(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")nc(r,s);else{const a=Object.keys(s)[0],o=s[a];Array.isArray(o)?z1(r,a,o):nc(r,a,o)}}),n.appendChild(r)})}function z1(n,e,t){const r=document.createElement("select");r.classList.add(`ql-${e}`),t.forEach(s=>{const a=document.createElement("option");s!==!1?a.setAttribute("value",String(s)):a.setAttribute("selected","selected"),r.appendChild(a)}),n.appendChild(r)}oo.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 H1='<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>',G1='<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>',W1='<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>',K1='<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>',X1='<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>',Y1='<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>',Z1='<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>',Q1='<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>',rc='<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>',Vr={align:{"":H1,center:G1,right:W1,justify:K1},background:X1,blockquote:Y1,bold:Z1,clean:Q1,code:rc,"code-block":rc,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>'},J1='<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 sc=0;function ic(n,e){n.setAttribute(e,`${n.getAttribute(e)!=="true"}`)}class Rs{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"),ic(this.label,"aria-expanded"),ic(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=J1,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-${sc}`,sc+=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 oc extends Rs{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 ac extends Rs{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 ev=n=>{const{overflowY:e}=getComputedStyle(n,null);return e!=="visible"&&e!=="clip"};class lc{constructor(e,t){this.quill=e,this.boundsContainer=t||document.body,this.root=e.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,ev(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(),a=this.root.getBoundingClientRect();let o=0;if(a.right>s.right&&(o=s.right-a.right,this.root.style.left=`${t+o}px`),a.left<s.left&&(o=s.left-a.left,this.root.style.left=`${t+o}px`),a.bottom>s.bottom){const c=a.bottom-a.top,i=e.bottom-e.top+c;this.root.style.top=`${r-i}px`,this.root.classList.add("ql-flip")}return o}show(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}const tv=[!1,"center","right","justify"],nv=["#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"],rv=[!1,"serif","monospace"],sv=["1","2","3",!1],iv=["small",!1,"large","huge"];class _r extends or{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(a=>{a.container.contains(s.target)||a.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(a=>{if(a.startsWith("ql-")&&(a=a.slice(3),t[a]!=null))if(a==="direction")r.innerHTML=t[a][""]+t[a].rtl;else if(typeof t[a]=="string")r.innerHTML=t[a];else{const o=r.value||"";o!=null&&t[a][o]&&(r.innerHTML=t[a][o])}})})}buildPickers(e,t){this.pickers=Array.from(e).map(s=>{if(s.classList.contains("ql-align")&&(s.querySelector("option")==null&&qr(s,tv),typeof t.align=="object"))return new ac(s,t.align);if(s.classList.contains("ql-background")||s.classList.contains("ql-color")){const a=s.classList.contains("ql-background")?"background":"color";return s.querySelector("option")==null&&qr(s,nv,a==="background"?"#ffffff":"#000000"),new oc(s,t[a])}return s.querySelector("option")==null&&(s.classList.contains("ql-font")?qr(s,rv):s.classList.contains("ql-header")?qr(s,sv):s.classList.contains("ql-size")&&qr(s,iv)),new Rs(s)});const r=()=>{this.pickers.forEach(s=>{s.update()})};this.quill.on(Se.events.EDITOR_CHANGE,r)}}_r.DEFAULTS=wn({},or.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 cc extends lc{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=ov(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 ov(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 av=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]];class uc extends cc{constructor(e,t){super(e,t),this.quill.on(Se.events.EDITOR_CHANGE,(r,s,a,o)=>{if(r===Se.events.SELECTION_CHANGE)if(s!=null&&s.length>0&&o===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 i=this.quill.getBounds(s);i!=null&&this.position(i)}else{const i=c[c.length-1],l=this.quill.getIndex(i),d=Math.min(i.length()-1,s.index+s.length-l),h=this.quill.getBounds(new Un(l,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(uc,"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 dc extends _r{constructor(e,t){t.modules.toolbar!=null&&t.modules.toolbar.container==null&&(t.modules.toolbar.container=av),super(e,t),this.quill.container.classList.add("ql-bubble")}extendToolbar(e){this.tooltip=new uc(this.quill,this.options.bounds),e.container!=null&&(this.tooltip.root.appendChild(e.container),this.buildButtons(e.container.querySelectorAll("button"),Vr),this.buildPickers(e.container.querySelectorAll("select"),Vr))}}dc.DEFAULTS=wn({},_r.DEFAULTS,{modules:{toolbar:{handlers:{link(n){n?this.quill.theme.tooltip.edit():this.quill.format("link",!1,le.sources.USER)}}}}});const lv=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];class fc extends cc{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[a,o]=this.quill.scroll.descendant(On,t.index);if(a!=null){this.linkRange=new Un(t.index-o,a.length());const c=On.formats(a.domNode);this.preview.textContent=c,this.preview.setAttribute("href",c),this.show();const i=this.quill.getBounds(this.linkRange);i!=null&&this.position(i);return}}else delete this.linkRange;this.hide()}})}show(){super.show(),this.root.removeAttribute("data-mode")}}Ee(fc,"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 hc extends _r{constructor(e,t){t.modules.toolbar!=null&&t.modules.toolbar.container==null&&(t.modules.toolbar.container=lv),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"),Vr),this.buildPickers(e.container.querySelectorAll("select"),Vr),this.tooltip=new fc(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)}))}}hc.DEFAULTS=wn({},_r.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":Bl,"attributors/class/align":Il,"attributors/class/background":Y0,"attributors/class/color":X0,"attributors/class/direction":Pl,"attributors/class/font":Dl,"attributors/class/size":jl,"attributors/style/align":Ll,"attributors/style/background":zi,"attributors/style/color":qi,"attributors/style/direction":Fl,"attributors/style/font":Ul,"attributors/style/size":$l},!0),le.register({"formats/align":Il,"formats/direction":Pl,"formats/indent":$1,"formats/background":zi,"formats/color":qi,"formats/font":Dl,"formats/size":jl,"formats/blockquote":Qi,"formats/code-block":vt,"formats/header":Ji,"formats/list":Dr,"formats/bold":Ur,"formats/code":Hi,"formats/italic":eo,"formats/link":On,"formats/script":to,"formats/strike":no,"formats/underline":ro,"formats/formula":Os,"formats/image":so,"formats/video":Cs,"modules/syntax":ec,"modules/table":_1,"modules/toolbar":oo,"themes/bubble":dc,"themes/snow":hc,"ui/icons":Vr,"ui/picker":Rs,"ui/icon-picker":ac,"ui/color-picker":oc,"ui/tooltip":lc},!0);const cv={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=u.ref(null);let r=null;return u.onMounted(()=>{r=new le(t.value,n.options),r.root.innerHTML=n.modelValue,r.on("text-change",()=>{e("update:modelValue",r.root.innerHTML)})}),u.watch(()=>n.modelValue,s=>{r&&r.root.innerHTML!==s&&(r.root.innerHTML=s)}),u.onBeforeUnmount(()=>{r=null}),{editorContainer:t}}},uv={class:"q-editor"},dv={ref:"editorContainer"};function fv(n,e,t,r,s,a){return u.openBlock(),u.createElementBlock("div",uv,[u.createElementVNode("div",dv,null,512)])}const hv=Sr(cv,[["render",fv]]),pv={class:"rounded-xl bg-gray-50 px-6 py-5"},mv={key:0,class:"pb-5"},gv={class:"text-lg font-semibold text-gray-900"},vv={key:0,class:"text-sm text-gray-600"},zr={__name:"Card",props:{title:{type:String,default:""},supporting_text:{type:String,default:""}},setup(n){return(e,t)=>(u.openBlock(),u.createElementBlock("div",pv,[n.title?(u.openBlock(),u.createElementBlock("div",mv,[u.createElementVNode("div",gv,u.toDisplayString(n.title),1),n.supporting_text?(u.openBlock(),u.createElementBlock("div",vv,u.toDisplayString(n.supporting_text),1)):u.createCommentVNode("",!0)])):u.createCommentVNode("",!0),u.renderSlot(e.$slots,"default")]))}};function pc(n,e){return function(){return n.apply(e,arguments)}}const{toString:yv}=Object.prototype,{getPrototypeOf:ao}=Object,{iterator:Is,toStringTag:mc}=Symbol,Ls=(n=>e=>{const t=yv.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),Wt=n=>(n=n.toLowerCase(),e=>Ls(e)===n),ks=n=>e=>typeof e===n,{isArray:ur}=Array,Hr=ks("undefined");function bv(n){return n!==null&&!Hr(n)&&n.constructor!==null&&!Hr(n.constructor)&&Tt(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const gc=Wt("ArrayBuffer");function xv(n){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(n):e=n&&n.buffer&&gc(n.buffer),e}const Ev=ks("string"),Tt=ks("function"),vc=ks("number"),Bs=n=>n!==null&&typeof n=="object",Av=n=>n===!0||n===!1,Ps=n=>{if(Ls(n)!=="object")return!1;const e=ao(n);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(mc in n)&&!(Is in n)},wv=Wt("Date"),Sv=Wt("File"),Tv=Wt("Blob"),Nv=Wt("FileList"),Ov=n=>Bs(n)&&Tt(n.pipe),Cv=n=>{let e;return n&&(typeof FormData=="function"&&n instanceof FormData||Tt(n.append)&&((e=Ls(n))==="formdata"||e==="object"&&Tt(n.toString)&&n.toString()==="[object FormData]"))},Rv=Wt("URLSearchParams"),[Iv,Lv,kv,Bv]=["ReadableStream","Request","Response","Headers"].map(Wt),Pv=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Gr(n,e,{allOwnKeys:t=!1}={}){if(n===null||typeof n>"u")return;let r,s;if(typeof n!="object"&&(n=[n]),ur(n))for(r=0,s=n.length;r<s;r++)e.call(null,n[r],r,n);else{const a=t?Object.getOwnPropertyNames(n):Object.keys(n),o=a.length;let c;for(r=0;r<o;r++)c=a[r],e.call(null,n[c],c,n)}}function yc(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 _n=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,bc=n=>!Hr(n)&&n!==_n;function lo(){const{caseless:n}=bc(this)&&this||{},e={},t=(r,s)=>{const a=n&&yc(e,s)||s;Ps(e[a])&&Ps(r)?e[a]=lo(e[a],r):Ps(r)?e[a]=lo({},r):ur(r)?e[a]=r.slice():e[a]=r};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&Gr(arguments[r],t);return e}const Fv=(n,e,t,{allOwnKeys:r}={})=>(Gr(e,(s,a)=>{t&&Tt(s)?n[a]=pc(s,t):n[a]=s},{allOwnKeys:r}),n),Mv=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),Dv=(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)},Uv=(n,e,t,r)=>{let s,a,o;const c={};if(e=e||{},n==null)return e;do{for(s=Object.getOwnPropertyNames(n),a=s.length;a-- >0;)o=s[a],(!r||r(o,n,e))&&!c[o]&&(e[o]=n[o],c[o]=!0);n=t!==!1&&ao(n)}while(n&&(!t||t(n,e))&&n!==Object.prototype);return e},jv=(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},$v=n=>{if(!n)return null;if(ur(n))return n;let e=n.length;if(!vc(e))return null;const t=new Array(e);for(;e-- >0;)t[e]=n[e];return t},Vv=(n=>e=>n&&e instanceof n)(typeof Uint8Array<"u"&&ao(Uint8Array)),_v=(n,e)=>{const r=(n&&n[Is]).call(n);let s;for(;(s=r.next())&&!s.done;){const a=s.value;e.call(n,a[0],a[1])}},qv=(n,e)=>{let t;const r=[];for(;(t=n.exec(e))!==null;)r.push(t);return r},zv=Wt("HTMLFormElement"),Hv=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,r,s){return r.toUpperCase()+s}),xc=(({hasOwnProperty:n})=>(e,t)=>n.call(e,t))(Object.prototype),Gv=Wt("RegExp"),Ec=(n,e)=>{const t=Object.getOwnPropertyDescriptors(n),r={};Gr(t,(s,a)=>{let o;(o=e(s,a,n))!==!1&&(r[a]=o||s)}),Object.defineProperties(n,r)},Wv=n=>{Ec(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+"'")})}})},Kv=(n,e)=>{const t={},r=s=>{s.forEach(a=>{t[a]=!0})};return ur(n)?r(n):r(String(n).split(e)),t},Xv=()=>{},Yv=(n,e)=>n!=null&&Number.isFinite(n=+n)?n:e;function Zv(n){return!!(n&&Tt(n.append)&&n[mc]==="FormData"&&n[Is])}const Qv=n=>{const e=new Array(10),t=(r,s)=>{if(Bs(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[s]=r;const a=ur(r)?[]:{};return Gr(r,(o,c)=>{const i=t(o,s+1);!Hr(i)&&(a[c]=i)}),e[s]=void 0,a}}return r};return t(n,0)},Jv=Wt("AsyncFunction"),ey=n=>n&&(Bs(n)||Tt(n))&&Tt(n.then)&&Tt(n.catch),Ac=((n,e)=>n?setImmediate:e?((t,r)=>(_n.addEventListener("message",({source:s,data:a})=>{s===_n&&a===t&&r.length&&r.shift()()},!1),s=>{r.push(s),_n.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t))(typeof setImmediate=="function",Tt(_n.postMessage)),ty=typeof queueMicrotask<"u"?queueMicrotask.bind(_n):typeof process<"u"&&process.nextTick||Ac,ee={isArray:ur,isArrayBuffer:gc,isBuffer:bv,isFormData:Cv,isArrayBufferView:xv,isString:Ev,isNumber:vc,isBoolean:Av,isObject:Bs,isPlainObject:Ps,isReadableStream:Iv,isRequest:Lv,isResponse:kv,isHeaders:Bv,isUndefined:Hr,isDate:wv,isFile:Sv,isBlob:Tv,isRegExp:Gv,isFunction:Tt,isStream:Ov,isURLSearchParams:Rv,isTypedArray:Vv,isFileList:Nv,forEach:Gr,merge:lo,extend:Fv,trim:Pv,stripBOM:Mv,inherits:Dv,toFlatObject:Uv,kindOf:Ls,kindOfTest:Wt,endsWith:jv,toArray:$v,forEachEntry:_v,matchAll:qv,isHTMLForm:zv,hasOwnProperty:xc,hasOwnProp:xc,reduceDescriptors:Ec,freezeMethods:Wv,toObjectSet:Kv,toCamelCase:Hv,noop:Xv,toFiniteNumber:Yv,findKey:yc,global:_n,isContextDefined:bc,isSpecCompliantForm:Zv,toJSONObject:Qv,isAsyncFn:Jv,isThenable:ey,setImmediate:Ac,asap:ty,isIterable:n=>n!=null&&Tt(n[Is])};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 wc=Me.prototype,Sc={};["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=>{Sc[n]={value:n}}),Object.defineProperties(Me,Sc),Object.defineProperty(wc,"isAxiosError",{value:!0}),Me.from=(n,e,t,r,s,a)=>{const o=Object.create(wc);return ee.toFlatObject(n,o,function(i){return i!==Error.prototype},c=>c!=="isAxiosError"),Me.call(o,n.message,e,t,r,s),o.cause=n,o.name=n.name,a&&Object.assign(o,a),o};const ny=null;function co(n){return ee.isPlainObject(n)||ee.isArray(n)}function Tc(n){return ee.endsWith(n,"[]")?n.slice(0,-2):n}function Nc(n,e,t){return n?n.concat(e).map(function(s,a){return s=Tc(s),!t&&a?"["+s+"]":s}).join(t?".":""):e}function ry(n){return ee.isArray(n)&&!n.some(co)}const sy=ee.toFlatObject(ee,{},null,function(e){return/^is[A-Z]/.test(e)});function Fs(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(v,x){return!ee.isUndefined(x[v])});const r=t.metaTokens,s=t.visitor||d,a=t.dots,o=t.indexes,i=(t.Blob||typeof Blob<"u"&&Blob)&&ee.isSpecCompliantForm(e);if(!ee.isFunction(s))throw new TypeError("visitor must be a function");function l(p){if(p===null)return"";if(ee.isDate(p))return p.toISOString();if(!i&&ee.isBlob(p))throw new Me("Blob is not supported. Use a Buffer instead.");return ee.isArrayBuffer(p)||ee.isTypedArray(p)?i&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function d(p,v,x){let T=p;if(p&&!x&&typeof p=="object"){if(ee.endsWith(v,"{}"))v=r?v:v.slice(0,-2),p=JSON.stringify(p);else if(ee.isArray(p)&&ry(p)||(ee.isFileList(p)||ee.endsWith(v,"[]"))&&(T=ee.toArray(p)))return v=Tc(v),T.forEach(function(I,F){!(ee.isUndefined(I)||I===null)&&e.append(o===!0?Nc([v],F,a):o===null?v:v+"[]",l(I))}),!1}return co(p)?!0:(e.append(Nc(x,v,a),l(p)),!1)}const h=[],f=Object.assign(sy,{defaultVisitor:d,convertValue:l,isVisitable:co});function g(p,v){if(!ee.isUndefined(p)){if(h.indexOf(p)!==-1)throw Error("Circular reference detected in "+v.join("."));h.push(p),ee.forEach(p,function(T,S){(!(ee.isUndefined(T)||T===null)&&s.call(e,T,ee.isString(S)?S.trim():S,v,f))===!0&&g(T,v?v.concat(S):[S])}),h.pop()}}if(!ee.isObject(n))throw new TypeError("data must be an object");return g(n),e}function Oc(n){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function uo(n,e){this._pairs=[],n&&Fs(n,this,e)}const Cc=uo.prototype;Cc.append=function(e,t){this._pairs.push([e,t])},Cc.toString=function(e){const t=e?function(r){return e.call(this,r,Oc)}:Oc;return this._pairs.map(function(s){return t(s[0])+"="+t(s[1])},"").join("&")};function iy(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Rc(n,e,t){if(!e)return n;const r=t&&t.encode||iy;ee.isFunction(t)&&(t={serialize:t});const s=t&&t.serialize;let a;if(s?a=s(e,t):a=ee.isURLSearchParams(e)?e.toString():new uo(e,t).toString(r),a){const o=n.indexOf("#");o!==-1&&(n=n.slice(0,o)),n+=(n.indexOf("?")===-1?"?":"&")+a}return n}class Ic{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 Lc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},oy={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:uo,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},fo=typeof window<"u"&&typeof document<"u",ho=typeof navigator=="object"&&navigator||void 0,ay=fo&&(!ho||["ReactNative","NativeScript","NS"].indexOf(ho.product)<0),ly=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",cy=fo&&window.location.href||"http://localhost",yt={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:fo,hasStandardBrowserEnv:ay,hasStandardBrowserWebWorkerEnv:ly,navigator:ho,origin:cy},Symbol.toStringTag,{value:"Module"})),...oy};function uy(n,e){return Fs(n,new yt.classes.URLSearchParams,Object.assign({visitor:function(t,r,s,a){return yt.isNode&&ee.isBuffer(t)?(this.append(r,t.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},e))}function dy(n){return ee.matchAll(/\w+|\[(\w*)]/g,n).map(e=>e[0]==="[]"?"":e[1]||e[0])}function fy(n){const e={},t=Object.keys(n);let r;const s=t.length;let a;for(r=0;r<s;r++)a=t[r],e[a]=n[a];return e}function kc(n){function e(t,r,s,a){let o=t[a++];if(o==="__proto__")return!0;const c=Number.isFinite(+o),i=a>=t.length;return o=!o&&ee.isArray(s)?s.length:o,i?(ee.hasOwnProp(s,o)?s[o]=[s[o],r]:s[o]=r,!c):((!s[o]||!ee.isObject(s[o]))&&(s[o]=[]),e(t,r,s[o],a)&&ee.isArray(s[o])&&(s[o]=fy(s[o])),!c)}if(ee.isFormData(n)&&ee.isFunction(n.entries)){const t={};return ee.forEachEntry(n,(r,s)=>{e(dy(r),s,t,0)}),t}return null}function hy(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 Wr={transitional:Lc,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",s=r.indexOf("application/json")>-1,a=ee.isObject(e);if(a&&ee.isHTMLForm(e)&&(e=new FormData(e)),ee.isFormData(e))return s?JSON.stringify(kc(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(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return uy(e,this.formSerializer).toString();if((c=ee.isFileList(e))||r.indexOf("multipart/form-data")>-1){const i=this.env&&this.env.FormData;return Fs(c?{"files[]":e}:e,i&&new i,this.formSerializer)}}return a||s?(t.setContentType("application/json",!1),hy(e)):e}],transformResponse:[function(e){const t=this.transitional||Wr.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 o=!(t&&t.silentJSONParsing)&&s;try{return JSON.parse(e)}catch(c){if(o)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:yt.classes.FormData,Blob:yt.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=>{Wr.headers[n]={}});const py=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"]),my=n=>{const e={};let t,r,s;return n&&n.split(`
54
+ `).forEach(function(o){s=o.indexOf(":"),t=o.substring(0,s).trim().toLowerCase(),r=o.substring(s+1).trim(),!(!t||e[t]&&py[t])&&(t==="set-cookie"?e[t]?e[t].push(r):e[t]=[r]:e[t]=e[t]?e[t]+", "+r:r)}),e},Bc=Symbol("internals");function Kr(n){return n&&String(n).trim().toLowerCase()}function Ms(n){return n===!1||n==null?n:ee.isArray(n)?n.map(Ms):String(n)}function gy(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 vy=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function po(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 yy(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r)}function by(n,e){const t=ee.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(n,r+t,{value:function(s,a,o){return this[r].call(this,e,s,a,o)},configurable:!0})})}let Nt=class{constructor(e){e&&this.set(e)}set(e,t,r){const s=this;function a(c,i,l){const d=Kr(i);if(!d)throw new Error("header name must be a non-empty string");const h=ee.findKey(s,d);(!h||s[h]===void 0||l===!0||l===void 0&&s[h]!==!1)&&(s[h||i]=Ms(c))}const o=(c,i)=>ee.forEach(c,(l,d)=>a(l,d,i));if(ee.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(ee.isString(e)&&(e=e.trim())&&!vy(e))o(my(e),t);else if(ee.isObject(e)&&ee.isIterable(e)){let c={},i,l;for(const d of e){if(!ee.isArray(d))throw TypeError("Object iterator must return a key-value pair");c[l=d[0]]=(i=c[l])?ee.isArray(i)?[...i,d[1]]:[i,d[1]]:d[1]}o(c,t)}else e!=null&&a(t,e,r);return this}get(e,t){if(e=Kr(e),e){const r=ee.findKey(this,e);if(r){const s=this[r];if(!t)return s;if(t===!0)return gy(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=Kr(e),e){const r=ee.findKey(this,e);return!!(r&&this[r]!==void 0&&(!t||po(this,this[r],r,t)))}return!1}delete(e,t){const r=this;let s=!1;function a(o){if(o=Kr(o),o){const c=ee.findKey(r,o);c&&(!t||po(r,r[c],c,t))&&(delete r[c],s=!0)}}return ee.isArray(e)?e.forEach(a):a(e),s}clear(e){const t=Object.keys(this);let r=t.length,s=!1;for(;r--;){const a=t[r];(!e||po(this,this[a],a,e,!0))&&(delete this[a],s=!0)}return s}normalize(e){const t=this,r={};return ee.forEach(this,(s,a)=>{const o=ee.findKey(r,a);if(o){t[o]=Ms(s),delete t[a];return}const c=e?yy(a):String(a).trim();c!==a&&delete t[a],t[c]=Ms(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(`
55
+ `)}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[Bc]=this[Bc]={accessors:{}}).accessors,s=this.prototype;function a(o){const c=Kr(o);r[c]||(by(s,o),r[c]=!0)}return ee.isArray(e)?e.forEach(a):a(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 mo(n,e){const t=this||Wr,r=e||t,s=Nt.from(r.headers);let a=r.data;return ee.forEach(n,function(c){a=c.call(t,a,s.normalize(),e?e.status:void 0)}),s.normalize(),a}function Pc(n){return!!(n&&n.__CANCEL__)}function dr(n,e,t){Me.call(this,n??"canceled",Me.ERR_CANCELED,e,t),this.name="CanceledError"}ee.inherits(dr,Me,{__CANCEL__:!0});function Fc(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 xy(n){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return e&&e[1]||""}function Ey(n,e){n=n||10;const t=new Array(n),r=new Array(n);let s=0,a=0,o;return e=e!==void 0?e:1e3,function(i){const l=Date.now(),d=r[a];o||(o=l),t[s]=i,r[s]=l;let h=a,f=0;for(;h!==s;)f+=t[h++],h=h%n;if(s=(s+1)%n,s===a&&(a=(a+1)%n),l-o<e)return;const g=d&&l-d;return g?Math.round(f*1e3/g):void 0}}function Ay(n,e){let t=0,r=1e3/e,s,a;const o=(l,d=Date.now())=>{t=d,s=null,a&&(clearTimeout(a),a=null),n.apply(null,l)};return[(...l)=>{const d=Date.now(),h=d-t;h>=r?o(l,d):(s=l,a||(a=setTimeout(()=>{a=null,o(s)},r-h)))},()=>s&&o(s)]}const Ds=(n,e,t=3)=>{let r=0;const s=Ey(50,250);return Ay(a=>{const o=a.loaded,c=a.lengthComputable?a.total:void 0,i=o-r,l=s(i),d=o<=c;r=o;const h={loaded:o,total:c,progress:c?o/c:void 0,bytes:i,rate:l||void 0,estimated:l&&c&&d?(c-o)/l:void 0,event:a,lengthComputable:c!=null,[e?"download":"upload"]:!0};n(h)},t)},Mc=(n,e)=>{const t=n!=null;return[r=>e[0]({lengthComputable:t,total:n,loaded:r}),e[1]]},Dc=n=>(...e)=>ee.asap(()=>n(...e)),wy=yt.hasStandardBrowserEnv?((n,e)=>t=>(t=new URL(t,yt.origin),n.protocol===t.protocol&&n.host===t.host&&(e||n.port===t.port)))(new URL(yt.origin),yt.navigator&&/(msie|trident)/i.test(yt.navigator.userAgent)):()=>!0,Sy=yt.hasStandardBrowserEnv?{write(n,e,t,r,s,a){const o=[n+"="+encodeURIComponent(e)];ee.isNumber(t)&&o.push("expires="+new Date(t).toGMTString()),ee.isString(r)&&o.push("path="+r),ee.isString(s)&&o.push("domain="+s),a===!0&&o.push("secure"),document.cookie=o.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 Ty(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function Ny(n,e){return e?n.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):n}function Uc(n,e,t){let r=!Ty(e);return n&&(r||t==!1)?Ny(n,e):e}const jc=n=>n instanceof Nt?{...n}:n;function qn(n,e){e=e||{};const t={};function r(l,d,h,f){return ee.isPlainObject(l)&&ee.isPlainObject(d)?ee.merge.call({caseless:f},l,d):ee.isPlainObject(d)?ee.merge({},d):ee.isArray(d)?d.slice():d}function s(l,d,h,f){if(ee.isUndefined(d)){if(!ee.isUndefined(l))return r(void 0,l,h,f)}else return r(l,d,h,f)}function a(l,d){if(!ee.isUndefined(d))return r(void 0,d)}function o(l,d){if(ee.isUndefined(d)){if(!ee.isUndefined(l))return r(void 0,l)}else return r(void 0,d)}function c(l,d,h){if(h in e)return r(l,d);if(h in n)return r(void 0,l)}const i={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:c,headers:(l,d,h)=>s(jc(l),jc(d),h,!0)};return ee.forEach(Object.keys(Object.assign({},n,e)),function(d){const h=i[d]||s,f=h(n[d],e[d],d);ee.isUndefined(f)&&h!==c||(t[d]=f)}),t}const $c=n=>{const e=qn({},n);let{data:t,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:a,headers:o,auth:c}=e;e.headers=o=Nt.from(o),e.url=Rc(Uc(e.baseURL,e.url,e.allowAbsoluteUrls),n.params,n.paramsSerializer),c&&o.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let i;if(ee.isFormData(t)){if(yt.hasStandardBrowserEnv||yt.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((i=o.getContentType())!==!1){const[l,...d]=i?i.split(";").map(h=>h.trim()).filter(Boolean):[];o.setContentType([l||"multipart/form-data",...d].join("; "))}}if(yt.hasStandardBrowserEnv&&(r&&ee.isFunction(r)&&(r=r(e)),r||r!==!1&&wy(e.url))){const l=s&&a&&Sy.read(a);l&&o.set(s,l)}return e},Oy=typeof XMLHttpRequest<"u"&&function(n){return new Promise(function(t,r){const s=$c(n);let a=s.data;const o=Nt.from(s.headers).normalize();let{responseType:c,onUploadProgress:i,onDownloadProgress:l}=s,d,h,f,g,p;function v(){g&&g(),p&&p(),s.cancelToken&&s.cancelToken.unsubscribe(d),s.signal&&s.signal.removeEventListener("abort",d)}let x=new XMLHttpRequest;x.open(s.method.toUpperCase(),s.url,!0),x.timeout=s.timeout;function T(){if(!x)return;const I=Nt.from("getAllResponseHeaders"in x&&x.getAllResponseHeaders()),M={data:!c||c==="text"||c==="json"?x.responseText:x.response,status:x.status,statusText:x.statusText,headers:I,config:n,request:x};Fc(function(X){t(X),v()},function(X){r(X),v()},M),x=null}"onloadend"in x?x.onloadend=T:x.onreadystatechange=function(){!x||x.readyState!==4||x.status===0&&!(x.responseURL&&x.responseURL.indexOf("file:")===0)||setTimeout(T)},x.onabort=function(){x&&(r(new Me("Request aborted",Me.ECONNABORTED,n,x)),x=null)},x.onerror=function(){r(new Me("Network Error",Me.ERR_NETWORK,n,x)),x=null},x.ontimeout=function(){let F=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const M=s.transitional||Lc;s.timeoutErrorMessage&&(F=s.timeoutErrorMessage),r(new Me(F,M.clarifyTimeoutError?Me.ETIMEDOUT:Me.ECONNABORTED,n,x)),x=null},a===void 0&&o.setContentType(null),"setRequestHeader"in x&&ee.forEach(o.toJSON(),function(F,M){x.setRequestHeader(M,F)}),ee.isUndefined(s.withCredentials)||(x.withCredentials=!!s.withCredentials),c&&c!=="json"&&(x.responseType=s.responseType),l&&([f,p]=Ds(l,!0),x.addEventListener("progress",f)),i&&x.upload&&([h,g]=Ds(i),x.upload.addEventListener("progress",h),x.upload.addEventListener("loadend",g)),(s.cancelToken||s.signal)&&(d=I=>{x&&(r(!I||I.type?new dr(null,n,x):I),x.abort(),x=null)},s.cancelToken&&s.cancelToken.subscribe(d),s.signal&&(s.signal.aborted?d():s.signal.addEventListener("abort",d)));const S=xy(s.url);if(S&&yt.protocols.indexOf(S)===-1){r(new Me("Unsupported protocol "+S+":",Me.ERR_BAD_REQUEST,n));return}x.send(a||null)})},Cy=(n,e)=>{const{length:t}=n=n?n.filter(Boolean):[];if(e||t){let r=new AbortController,s;const a=function(l){if(!s){s=!0,c();const d=l instanceof Error?l:this.reason;r.abort(d instanceof Me?d:new dr(d instanceof Error?d.message:d))}};let o=e&&setTimeout(()=>{o=null,a(new Me(`timeout ${e} of ms exceeded`,Me.ETIMEDOUT))},e);const c=()=>{n&&(o&&clearTimeout(o),o=null,n.forEach(l=>{l.unsubscribe?l.unsubscribe(a):l.removeEventListener("abort",a)}),n=null)};n.forEach(l=>l.addEventListener("abort",a));const{signal:i}=r;return i.unsubscribe=()=>ee.asap(c),i}},Ry=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},Iy=async function*(n,e){for await(const t of Ly(n))yield*Ry(t,e)},Ly=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()}},Vc=(n,e,t,r)=>{const s=Iy(n,e);let a=0,o,c=i=>{o||(o=!0,r&&r(i))};return new ReadableStream({async pull(i){try{const{done:l,value:d}=await s.next();if(l){c(),i.close();return}let h=d.byteLength;if(t){let f=a+=h;t(f)}i.enqueue(new Uint8Array(d))}catch(l){throw c(l),l}},cancel(i){return c(i),s.return()}},{highWaterMark:2})},Us=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",_c=Us&&typeof ReadableStream=="function",ky=Us&&(typeof TextEncoder=="function"?(n=>e=>n.encode(e))(new TextEncoder):async n=>new Uint8Array(await new Response(n).arrayBuffer())),qc=(n,...e)=>{try{return!!n(...e)}catch{return!1}},By=_c&&qc(()=>{let n=!1;const e=new Request(yt.origin,{body:new ReadableStream,method:"POST",get duplex(){return n=!0,"half"}}).headers.has("Content-Type");return n&&!e}),zc=64*1024,go=_c&&qc(()=>ee.isReadableStream(new Response("").body)),js={stream:go&&(n=>n.body)};Us&&(n=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!js[e]&&(js[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 Py=async n=>{if(n==null)return 0;if(ee.isBlob(n))return n.size;if(ee.isSpecCompliantForm(n))return(await new Request(yt.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 ky(n)).byteLength},Fy=async(n,e)=>{const t=ee.toFiniteNumber(n.getContentLength());return t??Py(e)},vo={http:ny,xhr:Oy,fetch:Us&&(async n=>{let{url:e,method:t,data:r,signal:s,cancelToken:a,timeout:o,onDownloadProgress:c,onUploadProgress:i,responseType:l,headers:d,withCredentials:h="same-origin",fetchOptions:f}=$c(n);l=l?(l+"").toLowerCase():"text";let g=Cy([s,a&&a.toAbortSignal()],o),p;const v=g&&g.unsubscribe&&(()=>{g.unsubscribe()});let x;try{if(i&&By&&t!=="get"&&t!=="head"&&(x=await Fy(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]=Mc(x,Ds(Dc(i)));r=Vc(M.body,zc,X,H)}}ee.isString(h)||(h=h?"include":"omit");const T="credentials"in Request.prototype;p=new Request(e,{...f,signal:g,method:t.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",credentials:T?h:void 0});let S=await fetch(p);const I=go&&(l==="stream"||l==="response");if(go&&(c||I&&v)){const M={};["status","statusText","headers"].forEach(re=>{M[re]=S[re]});const z=ee.toFiniteNumber(S.headers.get("content-length")),[X,H]=c&&Mc(z,Ds(Dc(c),!0))||[];S=new Response(Vc(S.body,zc,X,()=>{H&&H(),v&&v()}),M)}l=l||"text";let F=await js[ee.findKey(js,l)||"text"](S,n);return!I&&v&&v(),await new Promise((M,z)=>{Fc(M,z,{data:F,headers:Nt.from(S.headers),status:S.status,statusText:S.statusText,config:n,request:p})})}catch(T){throw v&&v(),T&&T.name==="TypeError"&&/Load failed|fetch/i.test(T.message)?Object.assign(new Me("Network Error",Me.ERR_NETWORK,n,p),{cause:T.cause||T}):Me.from(T,T&&T.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 Hc=n=>`- ${n}`,My=n=>ee.isFunction(n)||n===null||n===!1,Gc={getAdapter:n=>{n=ee.isArray(n)?n:[n];const{length:e}=n;let t,r;const s={};for(let a=0;a<e;a++){t=n[a];let o;if(r=t,!My(t)&&(r=vo[(o=String(t)).toLowerCase()],r===void 0))throw new Me(`Unknown adapter '${o}'`);if(r)break;s[o||"#"+a]=r}if(!r){const a=Object.entries(s).map(([c,i])=>`adapter ${c} `+(i===!1?"is not supported by the environment":"is not available in the build"));let o=e?a.length>1?`since :
56
56
  `+a.map(Hc).join(`
57
- `):" "+Hc(a[0]):"as no adapter specified";throw new Me("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:vo};function yo(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new dr(null,n)}function Wc(n){return yo(n),n.headers=Nt.from(n.headers),n.data=mo.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),Gc.getAdapter(n.adapter||Gr.adapter)(n).then(function(r){return yo(n),r.data=mo.call(n,n.transformResponse,r),r.headers=Nt.from(r.headers),r},function(r){return Pc(r)||(yo(n),r&&r.response&&(r.response.data=mo.call(n,n.transformResponse,r.response),r.response.headers=Nt.from(r.response.headers))),Promise.reject(r)})}const Kc="1.9.0",$s={};["object","boolean","number","function","string","symbol"].forEach((n,e)=>{$s[n]=function(r){return typeof r===n||"a"+(e<1?"n ":" ")+n}});const Xc={};$s.transitional=function(e,t,r){function s(a,o){return"[Axios v"+Kc+"] Transitional option '"+a+"'"+o+(r?". "+r:"")}return(a,o,l)=>{if(e===!1)throw new Me(s(o," has been removed"+(t?" in "+t:"")),Me.ERR_DEPRECATED);return t&&!Xc[o]&&(Xc[o]=!0,console.warn(s(o," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(a,o,l):!0}},$s.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function Dy(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 a=r[s],o=e[a];if(o){const l=n[a],i=l===void 0||o(l,a,n);if(i!==!0)throw new Me("option "+a+" must be "+i,Me.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new Me("Unknown option "+a,Me.ERR_BAD_OPTION)}}const Vs={assertOptions:Dy,validators:$s},rn=Vs.validators;let zn=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Ic,response:new Ic}}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 a=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?a&&!String(r.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(r.stack+=`
58
- `+a):r.stack=a}catch{}}throw r}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=qn(this.defaults,t);const{transitional:r,paramsSerializer:s,headers:a}=t;r!==void 0&&Vs.assertOptions(r,{silentJSONParsing:rn.transitional(rn.boolean),forcedJSONParsing:rn.transitional(rn.boolean),clarifyTimeoutError:rn.transitional(rn.boolean)},!1),s!=null&&(ee.isFunction(s)?t.paramsSerializer={serialize:s}:Vs.assertOptions(s,{encode:rn.function,serialize:rn.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Vs.assertOptions(t,{baseUrl:rn.spelling("baseURL"),withXsrfToken:rn.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=a&&ee.merge(a.common,a[t.method]);a&&ee.forEach(["delete","get","head","post","put","patch","common"],p=>{delete a[p]}),t.headers=Nt.concat(o,a);const l=[];let i=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(t)===!1||(i=i&&v.synchronous,l.unshift(v.fulfilled,v.rejected))});const c=[];this.interceptors.response.forEach(function(v){c.push(v.fulfilled,v.rejected)});let d,h=0,f;if(!i){const p=[Wc.bind(this),void 0];for(p.unshift.apply(p,l),p.push.apply(p,c),f=p.length,d=Promise.resolve(t);h<f;)d=d.then(p[h++],p[h++]);return d}f=l.length;let g=t;for(h=0;h<f;){const p=l[h++],v=l[h++];try{g=p(g)}catch(x){v.call(this,x);break}}try{d=Wc.call(this,g)}catch(p){return Promise.reject(p)}for(h=0,f=c.length;h<f;)d=d.then(c[h++],c[h++]);return d}getUri(e){e=qn(this.defaults,e);const t=Uc(e.baseURL,e.url,e.allowAbsoluteUrls);return Rc(t,e.params,e.paramsSerializer)}};ee.forEach(["delete","get","head","options"],function(e){zn.prototype[e]=function(t,r){return this.request(qn(r||{},{method:e,url:t,data:(r||{}).data}))}}),ee.forEach(["post","put","patch"],function(e){function t(r){return function(a,o,l){return this.request(qn(l||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:o}))}}zn.prototype[e]=t(),zn.prototype[e+"Form"]=t(!0)});let Uy=class eu{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(a){t=a});const r=this;this.promise.then(s=>{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](s);r._listeners=null}),this.promise.then=s=>{let a;const o=new Promise(l=>{r.subscribe(l),a=l}).then(s);return o.cancel=function(){r.unsubscribe(a)},o},e(function(a,o,l){r.reason||(r.reason=new dr(a,o,l),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 eu(function(s){e=s}),cancel:e}}};function jy(n){return function(t){return n.apply(null,t)}}function $y(n){return ee.isObject(n)&&n.isAxiosError===!0}const bo={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(bo).forEach(([n,e])=>{bo[e]=n});function Yc(n){const e=new zn(n),t=pc(zn.prototype.request,e);return ee.extend(t,zn.prototype,e,{allOwnKeys:!0}),ee.extend(t,e,null,{allOwnKeys:!0}),t.create=function(s){return Yc(qn(n,s))},t}const nt=Yc(Gr);nt.Axios=zn,nt.CanceledError=dr,nt.CancelToken=Uy,nt.isCancel=Pc,nt.VERSION=Kc,nt.toFormData=Fs,nt.AxiosError=Me,nt.Cancel=nt.CanceledError,nt.all=function(e){return Promise.all(e)},nt.spread=jy,nt.isAxiosError=$y,nt.mergeConfig=qn,nt.AxiosHeaders=Nt,nt.formToJSON=n=>kc(ee.isHTMLForm(n)?new FormData(n):n),nt.getAdapter=Gc.getAdapter,nt.HttpStatusCode=bo,nt.default=nt;const{Axios:ix,AxiosError:ox,CanceledError:ax,isCancel:lx,CancelToken:cx,VERSION:ux,all:dx,Cancel:fx,isAxiosError:hx,spread:px,toFormData:mx,AxiosHeaders:gx,HttpStatusCode:vx,formToJSON:yx,getAdapter:bx,mergeConfig:xx}=nt;var xo={exports:{}},Zc;function Vy(){return Zc||(Zc=1,function(n,e){(function(r,s){n.exports=s()})(self,function(){return function(){var t={3099:function(o){o.exports=function(l){if(typeof l!="function")throw TypeError(String(l)+" is not a function");return l}},6077:function(o,l,i){var c=i(111);o.exports=function(d){if(!c(d)&&d!==null)throw TypeError("Can't set "+String(d)+" as a prototype");return d}},1223:function(o,l,i){var c=i(5112),d=i(30),h=i(3070),f=c("unscopables"),g=Array.prototype;g[f]==null&&h.f(g,f,{configurable:!0,value:d(null)}),o.exports=function(p){g[f][p]=!0}},1530:function(o,l,i){var c=i(8710).charAt;o.exports=function(d,h,f){return h+(f?c(d,h).length:1)}},5787:function(o){o.exports=function(l,i,c){if(!(l instanceof i))throw TypeError("Incorrect "+(c?c+" ":"")+"invocation");return l}},9670:function(o,l,i){var c=i(111);o.exports=function(d){if(!c(d))throw TypeError(String(d)+" is not an object");return d}},4019:function(o){o.exports=typeof ArrayBuffer<"u"&&typeof DataView<"u"},260:function(o,l,i){var c=i(4019),d=i(9781),h=i(7854),f=i(111),g=i(6656),p=i(648),v=i(8880),x=i(1320),T=i(3070).f,S=i(9518),I=i(7674),F=i(5112),M=i(9711),z=h.Int8Array,X=z&&z.prototype,H=h.Uint8ClampedArray,re=H&&H.prototype,G=z&&S(z),E=X&&S(X),P=Object.prototype,O=P.isPrototypeOf,_=F("toStringTag"),j=M("TYPED_ARRAY_TAG"),$=c&&!!I&&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"||g(J,R)||g(te,R)},ge=function(ye){if(!f(ye))return!1;var N=p(ye);return g(J,N)||g(te,N)},ve=function(ye){if(ge(ye))return ye;throw TypeError("Target is not a typed array")},xe=function(ye){if(I){if(O.call(G,ye))return ye}else for(var N in J)if(g(J,q)){var R=h[N];if(R&&(ye===R||O.call(R,ye)))return ye}throw TypeError("Target is not a typed array constructor")},he=function(ye,N,R){if(d){if(R)for(var A in J){var C=h[A];C&&g(C.prototype,ye)&&delete C.prototype[ye]}(!E[ye]||R)&&x(E,ye,R?N:$&&X[ye]||N)}},Oe=function(ye,N,R){var A,C;if(d){if(I){if(R)for(A in J)C=h[A],C&&g(C,ye)&&delete C[ye];if(!G[ye]||R)try{return x(G,ye,R?N:$&&z[ye]||N)}catch{}else return}for(A in J)C=h[A],C&&(!C[ye]||R)&&x(C,ye,N)}};for(q in J)h[q]||($=!1);if((!$||typeof G!="function"||G===Function.prototype)&&(G=function(){throw TypeError("Incorrect invocation")},$))for(q in J)h[q]&&I(h[q],G);if((!$||!E||E===P)&&(E=G.prototype,$))for(q in J)h[q]&&I(h[q].prototype,E);if($&&S(re)!==E&&I(re,E),d&&!g(E,_)){K=!0,T(E,_,{get:function(){return f(this)?this[j]:void 0}});for(q in J)h[q]&&v(h[q],j,q)}o.exports={NATIVE_ARRAY_BUFFER_VIEWS:$,TYPED_ARRAY_TAG:K&&j,aTypedArray:ve,aTypedArrayConstructor:xe,exportTypedArrayMethod:he,exportTypedArrayStaticMethod:Oe,isView:me,isTypedArray:ge,TypedArray:G,TypedArrayPrototype:E}},3331:function(o,l,i){var c=i(7854),d=i(9781),h=i(4019),f=i(8880),g=i(2248),p=i(7293),v=i(5787),x=i(9958),T=i(7466),S=i(7067),I=i(1179),F=i(9518),M=i(7674),z=i(8006).f,X=i(3070).f,H=i(1285),re=i(8003),G=i(9909),E=G.get,P=G.set,O="ArrayBuffer",_="DataView",j="prototype",$="Wrong length",K="Wrong index",q=c[O],J=q,te=c[_],me=te&&te[j],ge=Object.prototype,ve=c.RangeError,xe=I.pack,he=I.unpack,Oe=function(Q){return[Q&255]},ye=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]},A=function(Q){return xe(Q,23,4)},C=function(Q){return xe(Q,52,8)},y=function(Q,ne){X(Q[j],ne,{get:function(){return E(this)[ne]}})},b=function(Q,ne,oe,fe){var Ae=S(oe),De=E(Q);if(Ae+ne>De.byteLength)throw ve(K);var Ge=E(De.buffer).bytes,je=Ae+De.byteOffset,Be=Ge.slice(je,je+ne);return fe?Be:Be.reverse()},L=function(Q,ne,oe,fe,Ae,De){var Ge=S(oe),je=E(Q);if(Ge+ne>je.byteLength)throw ve(K);for(var Be=E(je.buffer).bytes,$e=Ge+je.byteOffset,rt=fe(+Ae),it=0;it<ne;it++)Be[$e+it]=rt[De?it:ne-it-1]};if(!h)J=function(ne){v(this,J,O);var oe=S(ne);P(this,{bytes:H.call(new Array(oe),0),byteLength:oe}),d||(this.byteLength=oe)},te=function(ne,oe,fe){v(this,te,_),v(ne,J,_);var Ae=E(ne).byteLength,De=x(oe);if(De<0||De>Ae)throw ve("Wrong offset");if(fe=fe===void 0?Ae-De:T(fe),De+fe>Ae)throw ve($);P(this,{buffer:ne,byteLength:fe,byteOffset:De}),d||(this.buffer=ne,this.byteLength=fe,this.byteOffset=De)},d&&(y(J,"byteLength"),y(te,"buffer"),y(te,"byteLength"),y(te,"byteOffset")),g(te[j],{getInt8:function(ne){return b(this,1,ne)[0]<<24>>24},getUint8:function(ne){return b(this,1,ne)[0]},getInt16:function(ne){var oe=b(this,2,ne,arguments.length>1?arguments[1]:void 0);return(oe[1]<<8|oe[0])<<16>>16},getUint16:function(ne){var oe=b(this,2,ne,arguments.length>1?arguments[1]:void 0);return oe[1]<<8|oe[0]},getInt32:function(ne){return R(b(this,4,ne,arguments.length>1?arguments[1]:void 0))},getUint32:function(ne){return R(b(this,4,ne,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(ne){return he(b(this,4,ne,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(ne){return he(b(this,8,ne,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(ne,oe){L(this,1,ne,Oe,oe)},setUint8:function(ne,oe){L(this,1,ne,Oe,oe)},setInt16:function(ne,oe){L(this,2,ne,ye,oe,arguments.length>2?arguments[2]:void 0)},setUint16:function(ne,oe){L(this,2,ne,ye,oe,arguments.length>2?arguments[2]:void 0)},setInt32:function(ne,oe){L(this,4,ne,N,oe,arguments.length>2?arguments[2]:void 0)},setUint32:function(ne,oe){L(this,4,ne,N,oe,arguments.length>2?arguments[2]:void 0)},setFloat32:function(ne,oe){L(this,4,ne,A,oe,arguments.length>2?arguments[2]:void 0)},setFloat64:function(ne,oe){L(this,8,ne,C,oe,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!=O})){J=function(ne){return v(this,J),new q(S(ne))};for(var B=J[j]=q[j],U=z(q),V=0,W;U.length>V;)(W=U[V++])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))&&g(me,{setInt8:function(ne,oe){Y.call(this,ne,oe<<24>>24)},setUint8:function(ne,oe){Y.call(this,ne,oe<<24>>24)}},{unsafe:!0})}re(J,O),re(te,_),o.exports={ArrayBuffer:J,DataView:te}},1048:function(o,l,i){var c=i(7908),d=i(1400),h=i(7466),f=Math.min;o.exports=[].copyWithin||function(p,v){var x=c(this),T=h(x.length),S=d(p,T),I=d(v,T),F=arguments.length>2?arguments[2]:void 0,M=f((F===void 0?T:d(F,T))-I,T-S),z=1;for(I<S&&S<I+M&&(z=-1,I+=M-1,S+=M-1);M-- >0;)I in x?x[S]=x[I]:delete x[S],S+=z,I+=z;return x}},1285:function(o,l,i){var c=i(7908),d=i(1400),h=i(7466);o.exports=function(g){for(var p=c(this),v=h(p.length),x=arguments.length,T=d(x>1?arguments[1]:void 0,v),S=x>2?arguments[2]:void 0,I=S===void 0?v:d(S,v);I>T;)p[T++]=g;return p}},8533:function(o,l,i){var c=i(2092).forEach,d=i(9341),h=d("forEach");o.exports=h?[].forEach:function(g){return c(this,g,arguments.length>1?arguments[1]:void 0)}},8457:function(o,l,i){var c=i(9974),d=i(7908),h=i(3411),f=i(7659),g=i(7466),p=i(6135),v=i(1246);o.exports=function(T){var S=d(T),I=typeof this=="function"?this:Array,F=arguments.length,M=F>1?arguments[1]:void 0,z=M!==void 0,X=v(S),H=0,re,G,E,P,O,_;if(z&&(M=c(M,F>2?arguments[2]:void 0,2)),X!=null&&!(I==Array&&f(X)))for(P=X.call(S),O=P.next,G=new I;!(E=O.call(P)).done;H++)_=z?h(P,M,[E.value,H],!0):E.value,p(G,H,_);else for(re=g(S.length),G=new I(re);re>H;H++)_=z?M(S[H],H):S[H],p(G,H,_);return G.length=H,G}},1318:function(o,l,i){var c=i(5656),d=i(7466),h=i(1400),f=function(g){return function(p,v,x){var T=c(p),S=d(T.length),I=h(x,S),F;if(g&&v!=v){for(;S>I;)if(F=T[I++],F!=F)return!0}else for(;S>I;I++)if((g||I in T)&&T[I]===v)return g||I||0;return!g&&-1}};o.exports={includes:f(!0),indexOf:f(!1)}},2092:function(o,l,i){var c=i(9974),d=i(8361),h=i(7908),f=i(7466),g=i(5417),p=[].push,v=function(x){var T=x==1,S=x==2,I=x==3,F=x==4,M=x==6,z=x==7,X=x==5||M;return function(H,re,G,E){for(var P=h(H),O=d(P),_=c(re,G,3),j=f(O.length),$=0,K=E||g,q=T?K(H,j):S||z?K(H,0):void 0,J,te;j>$;$++)if((X||$ in O)&&(J=O[$],te=_(J,$,P),x))if(T)q[$]=te;else if(te)switch(x){case 3:return!0;case 5:return J;case 6:return $;case 2:p.call(q,J)}else switch(x){case 4:return!1;case 7:p.call(q,J)}return M?-1:I||F?F:q}};o.exports={forEach:v(0),map:v(1),filter:v(2),some:v(3),every:v(4),find:v(5),findIndex:v(6),filterOut:v(7)}},6583:function(o,l,i){var c=i(5656),d=i(9958),h=i(7466),f=i(9341),g=Math.min,p=[].lastIndexOf,v=!!p&&1/[1].lastIndexOf(1,-0)<0,x=f("lastIndexOf"),T=v||!x;o.exports=T?function(I){if(v)return p.apply(this,arguments)||0;var F=c(this),M=h(F.length),z=M-1;for(arguments.length>1&&(z=g(z,d(arguments[1]))),z<0&&(z=M+z);z>=0;z--)if(z in F&&F[z]===I)return z||0;return-1}:p},1194:function(o,l,i){var c=i(7293),d=i(5112),h=i(7392),f=d("species");o.exports=function(g){return h>=51||!c(function(){var p=[],v=p.constructor={};return v[f]=function(){return{foo:1}},p[g](Boolean).foo!==1})}},9341:function(o,l,i){var c=i(7293);o.exports=function(d,h){var f=[][d];return!!f&&c(function(){f.call(null,h||function(){throw 1},1)})}},3671:function(o,l,i){var c=i(3099),d=i(7908),h=i(8361),f=i(7466),g=function(p){return function(v,x,T,S){c(x);var I=d(v),F=h(I),M=f(I.length),z=p?M-1:0,X=p?-1:1;if(T<2)for(;;){if(z in F){S=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&&(S=x(S,F[z],z,I));return S}};o.exports={left:g(!1),right:g(!0)}},5417:function(o,l,i){var c=i(111),d=i(3157),h=i(5112),f=h("species");o.exports=function(g,p){var v;return d(g)&&(v=g.constructor,typeof v=="function"&&(v===Array||d(v.prototype))?v=void 0:c(v)&&(v=v[f],v===null&&(v=void 0))),new(v===void 0?Array:v)(p===0?0:p)}},3411:function(o,l,i){var c=i(9670),d=i(9212);o.exports=function(h,f,g,p){try{return p?f(c(g)[0],g[1]):f(g)}catch(v){throw d(h),v}}},7072:function(o,l,i){var c=i(5112),d=c("iterator"),h=!1;try{var f=0,g={next:function(){return{done:!!f++}},return:function(){h=!0}};g[d]=function(){return this},Array.from(g,function(){throw 2})}catch{}o.exports=function(p,v){if(!v&&!h)return!1;var x=!1;try{var T={};T[d]=function(){return{next:function(){return{done:x=!0}}}},p(T)}catch{}return x}},4326:function(o){var l={}.toString;o.exports=function(i){return l.call(i).slice(8,-1)}},648:function(o,l,i){var c=i(1694),d=i(4326),h=i(5112),f=h("toStringTag"),g=d(function(){return arguments}())=="Arguments",p=function(v,x){try{return v[x]}catch{}};o.exports=c?d:function(v){var x,T,S;return v===void 0?"Undefined":v===null?"Null":typeof(T=p(x=Object(v),f))=="string"?T:g?d(x):(S=d(x))=="Object"&&typeof x.callee=="function"?"Arguments":S}},9920:function(o,l,i){var c=i(6656),d=i(3887),h=i(1236),f=i(3070);o.exports=function(g,p){for(var v=d(p),x=f.f,T=h.f,S=0;S<v.length;S++){var I=v[S];c(g,I)||x(g,I,T(p,I))}}},8544:function(o,l,i){var c=i(7293);o.exports=!c(function(){function d(){}return d.prototype.constructor=null,Object.getPrototypeOf(new d)!==d.prototype})},4994:function(o,l,i){var c=i(3383).IteratorPrototype,d=i(30),h=i(9114),f=i(8003),g=i(7497),p=function(){return this};o.exports=function(v,x,T){var S=x+" Iterator";return v.prototype=d(c,{next:h(1,T)}),f(v,S,!1,!0),g[S]=p,v}},8880:function(o,l,i){var c=i(9781),d=i(3070),h=i(9114);o.exports=c?function(f,g,p){return d.f(f,g,h(1,p))}:function(f,g,p){return f[g]=p,f}},9114:function(o){o.exports=function(l,i){return{enumerable:!(l&1),configurable:!(l&2),writable:!(l&4),value:i}}},6135:function(o,l,i){var c=i(7593),d=i(3070),h=i(9114);o.exports=function(f,g,p){var v=c(g);v in f?d.f(f,v,h(0,p)):f[v]=p}},654:function(o,l,i){var c=i(2109),d=i(4994),h=i(9518),f=i(7674),g=i(8003),p=i(8880),v=i(1320),x=i(5112),T=i(1913),S=i(7497),I=i(3383),F=I.IteratorPrototype,M=I.BUGGY_SAFARI_ITERATORS,z=x("iterator"),X="keys",H="values",re="entries",G=function(){return this};o.exports=function(E,P,O,_,j,$,K){d(O,P,_);var q=function(N){if(N===j&&ve)return ve;if(!M&&N in me)return me[N];switch(N){case X:return function(){return new O(this,N)};case H:return function(){return new O(this,N)};case re:return function(){return new O(this,N)}}return function(){return new O(this)}},J=P+" Iterator",te=!1,me=E.prototype,ge=me[z]||me["@@iterator"]||j&&me[j],ve=!M&&ge||q(j),xe=P=="Array"&&me.entries||ge,he,Oe,ye;if(xe&&(he=h(xe.call(new E)),F!==Object.prototype&&he.next&&(!T&&h(he)!==F&&(f?f(he,F):typeof he[z]!="function"&&p(he,z,G)),g(he,J,!0,!0),T&&(S[J]=G))),j==H&&ge&&ge.name!==H&&(te=!0,ve=function(){return ge.call(this)}),(!T||K)&&me[z]!==ve&&p(me,z,ve),S[P]=ve,j)if(Oe={values:q(H),keys:$?ve:q(X),entries:q(re)},K)for(ye in Oe)(M||te||!(ye in me))&&v(me,ye,Oe[ye]);else c({target:P,proto:!0,forced:M||te},Oe);return Oe}},9781:function(o,l,i){var c=i(7293);o.exports=!c(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},317:function(o,l,i){var c=i(7854),d=i(111),h=c.document,f=d(h)&&d(h.createElement);o.exports=function(g){return f?h.createElement(g):{}}},8324:function(o){o.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(o,l,i){var c=i(5005);o.exports=c("navigator","userAgent")||""},7392:function(o,l,i){var c=i(7854),d=i(8113),h=c.process,f=h&&h.versions,g=f&&f.v8,p,v;g?(p=g.split("."),v=p[0]+p[1]):d&&(p=d.match(/Edge\/(\d+)/),(!p||p[1]>=74)&&(p=d.match(/Chrome\/(\d+)/),p&&(v=p[1]))),o.exports=v&&+v},748:function(o){o.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(o,l,i){var c=i(7854),d=i(1236).f,h=i(8880),f=i(1320),g=i(3505),p=i(9920),v=i(4705);o.exports=function(x,T){var S=x.target,I=x.global,F=x.stat,M,z,X,H,re,G;if(I?z=c:F?z=c[S]||g(S,{}):z=(c[S]||{}).prototype,z)for(X in T){if(re=T[X],x.noTargetGet?(G=d(z,X),H=G&&G.value):H=z[X],M=v(I?X:S+(F?".":"#")+X,x.forced),!M&&H!==void 0){if(typeof re==typeof H)continue;p(re,H)}(x.sham||H&&H.sham)&&h(re,"sham",!0),f(z,X,re,x)}}},7293:function(o){o.exports=function(l){try{return!!l()}catch{return!0}}},7007:function(o,l,i){i(4916);var c=i(1320),d=i(7293),h=i(5112),f=i(2261),g=i(8880),p=h("species"),v=!d(function(){var F=/./;return F.exec=function(){var M=[];return M.groups={a:"7"},M},"".replace(F,"$<a>")!=="7"}),x=function(){return"a".replace(/./,"$0")==="$0"}(),T=h("replace"),S=function(){return/./[T]?/./[T]("a","$0")==="":!1}(),I=!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"});o.exports=function(F,M,z,X){var H=h(F),re=!d(function(){var j={};return j[H]=function(){return 7},""[F](j)!=7}),G=re&&!d(function(){var j=!1,$=/a/;return F==="split"&&($={},$.constructor={},$.constructor[p]=function(){return $},$.flags="",$[H]=/./[H]),$.exec=function(){return j=!0,null},$[H](""),!j});if(!re||!G||F==="replace"&&!(v&&x&&!S)||F==="split"&&!I){var E=/./[H],P=z(H,""[F],function(j,$,K,q,J){return $.exec===f?re&&!J?{done:!0,value:E.call($,K,q)}:{done:!0,value:j.call(K,$,q)}:{done:!1}},{REPLACE_KEEPS_$0:x,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:S}),O=P[0],_=P[1];c(String.prototype,F,O),c(RegExp.prototype,H,M==2?function(j,$){return _.call(j,this,$)}:function(j){return _.call(j,this)})}X&&g(RegExp.prototype[H],"sham",!0)}},9974:function(o,l,i){var c=i(3099);o.exports=function(d,h,f){if(c(d),h===void 0)return d;switch(f){case 0:return function(){return d.call(h)};case 1:return function(g){return d.call(h,g)};case 2:return function(g,p){return d.call(h,g,p)};case 3:return function(g,p,v){return d.call(h,g,p,v)}}return function(){return d.apply(h,arguments)}}},5005:function(o,l,i){var c=i(857),d=i(7854),h=function(f){return typeof f=="function"?f:void 0};o.exports=function(f,g){return arguments.length<2?h(c[f])||h(d[f]):c[f]&&c[f][g]||d[f]&&d[f][g]}},1246:function(o,l,i){var c=i(648),d=i(7497),h=i(5112),f=h("iterator");o.exports=function(g){if(g!=null)return g[f]||g["@@iterator"]||d[c(g)]}},8554:function(o,l,i){var c=i(9670),d=i(1246);o.exports=function(h){var f=d(h);if(typeof f!="function")throw TypeError(String(h)+" is not iterable");return c(f.call(h))}},647:function(o,l,i){var c=i(7908),d=Math.floor,h="".replace,f=/\$([$&'`]|\d\d?|<[^>]*>)/g,g=/\$([$&'`]|\d\d?)/g;o.exports=function(p,v,x,T,S,I){var F=x+p.length,M=T.length,z=g;return S!==void 0&&(S=c(S),z=f),h.call(I,z,function(X,H){var re;switch(H.charAt(0)){case"$":return"$";case"&":return p;case"`":return v.slice(0,x);case"'":return v.slice(F);case"<":re=S[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?T[E-1]===void 0?H.charAt(1):T[E-1]+H.charAt(1):X}re=T[G-1]}return re===void 0?"":re})}},7854:function(o,l,i){var c=function(d){return d&&d.Math==Math&&d};o.exports=c(typeof globalThis=="object"&&globalThis)||c(typeof window=="object"&&window)||c(typeof self=="object"&&self)||c(typeof i.g=="object"&&i.g)||function(){return this}()||Function("return this")()},6656:function(o){var l={}.hasOwnProperty;o.exports=function(i,c){return l.call(i,c)}},3501:function(o){o.exports={}},490:function(o,l,i){var c=i(5005);o.exports=c("document","documentElement")},4664:function(o,l,i){var c=i(9781),d=i(7293),h=i(317);o.exports=!c&&!d(function(){return Object.defineProperty(h("div"),"a",{get:function(){return 7}}).a!=7})},1179:function(o){var l=Math.abs,i=Math.pow,c=Math.floor,d=Math.log,h=Math.LN2,f=function(p,v,x){var T=new Array(x),S=x*8-v-1,I=(1<<S)-1,F=I>>1,M=v===23?i(2,-24)-i(2,-77):0,z=p<0||p===0&&1/p<0?1:0,X=0,H,re,G;for(p=l(p),p!=p||p===1/0?(re=p!=p?1:0,H=I):(H=c(d(p)/h),p*(G=i(2,-H))<1&&(H--,G*=2),H+F>=1?p+=M/G:p+=M*i(2,1-F),p*G>=2&&(H++,G/=2),H+F>=I?(re=0,H=I):H+F>=1?(re=(p*G-1)*i(2,v),H=H+F):(re=p*i(2,F-1)*i(2,v),H=0));v>=8;T[X++]=re&255,re/=256,v-=8);for(H=H<<v|re,S+=v;S>0;T[X++]=H&255,H/=256,S-=8);return T[--X]|=z*128,T},g=function(p,v){var x=p.length,T=x*8-v-1,S=(1<<T)-1,I=S>>1,F=T-7,M=x-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+=v;F>0;H=H*256+p[M],M--,F-=8);if(X===0)X=1-I;else{if(X===S)return H?NaN:z?-1/0:1/0;H=H+i(2,v),X=X-I}return(z?-1:1)*H*i(2,X-v)};o.exports={pack:f,unpack:g}},8361:function(o,l,i){var c=i(7293),d=i(4326),h="".split;o.exports=c(function(){return!Object("z").propertyIsEnumerable(0)})?function(f){return d(f)=="String"?h.call(f,""):Object(f)}:Object},9587:function(o,l,i){var c=i(111),d=i(7674);o.exports=function(h,f,g){var p,v;return d&&typeof(p=f.constructor)=="function"&&p!==g&&c(v=p.prototype)&&v!==g.prototype&&d(h,v),h}},2788:function(o,l,i){var c=i(5465),d=Function.toString;typeof c.inspectSource!="function"&&(c.inspectSource=function(h){return d.call(h)}),o.exports=c.inspectSource},9909:function(o,l,i){var c=i(8536),d=i(7854),h=i(111),f=i(8880),g=i(6656),p=i(5465),v=i(6200),x=i(3501),T=d.WeakMap,S,I,F,M=function(P){return F(P)?I(P):S(P,{})},z=function(P){return function(O){var _;if(!h(O)||(_=I(O)).type!==P)throw TypeError("Incompatible receiver, "+P+" required");return _}};if(c){var X=p.state||(p.state=new T),H=X.get,re=X.has,G=X.set;S=function(P,O){return O.facade=P,G.call(X,P,O),O},I=function(P){return H.call(X,P)||{}},F=function(P){return re.call(X,P)}}else{var E=v("state");x[E]=!0,S=function(P,O){return O.facade=P,f(P,E,O),O},I=function(P){return g(P,E)?P[E]:{}},F=function(P){return g(P,E)}}o.exports={set:S,get:I,has:F,enforce:M,getterFor:z}},7659:function(o,l,i){var c=i(5112),d=i(7497),h=c("iterator"),f=Array.prototype;o.exports=function(g){return g!==void 0&&(d.Array===g||f[h]===g)}},3157:function(o,l,i){var c=i(4326);o.exports=Array.isArray||function(h){return c(h)=="Array"}},4705:function(o,l,i){var c=i(7293),d=/#|\.prototype\./,h=function(x,T){var S=g[f(x)];return S==v?!0:S==p?!1:typeof T=="function"?c(T):!!T},f=h.normalize=function(x){return String(x).replace(d,".").toLowerCase()},g=h.data={},p=h.NATIVE="N",v=h.POLYFILL="P";o.exports=h},111:function(o){o.exports=function(l){return typeof l=="object"?l!==null:typeof l=="function"}},1913:function(o){o.exports=!1},7850:function(o,l,i){var c=i(111),d=i(4326),h=i(5112),f=h("match");o.exports=function(g){var p;return c(g)&&((p=g[f])!==void 0?!!p:d(g)=="RegExp")}},9212:function(o,l,i){var c=i(9670);o.exports=function(d){var h=d.return;if(h!==void 0)return c(h.call(d)).value}},3383:function(o,l,i){var c=i(7293),d=i(9518),h=i(8880),f=i(6656),g=i(5112),p=i(1913),v=g("iterator"),x=!1,T=function(){return this},S,I,F;[].keys&&(F=[].keys(),"next"in F?(I=d(d(F)),I!==Object.prototype&&(S=I)):x=!0);var M=S==null||c(function(){var z={};return S[v].call(z)!==z});M&&(S={}),(!p||M)&&!f(S,v)&&h(S,v,T),o.exports={IteratorPrototype:S,BUGGY_SAFARI_ITERATORS:x}},7497:function(o){o.exports={}},133:function(o,l,i){var c=i(7293);o.exports=!!Object.getOwnPropertySymbols&&!c(function(){return!String(Symbol())})},590:function(o,l,i){var c=i(7293),d=i(5112),h=i(1913),f=d("iterator");o.exports=!c(function(){var g=new URL("b?a=1&b=2&c=3","http://a"),p=g.searchParams,v="";return g.pathname="c%20d",p.forEach(function(x,T){p.delete("b"),v+=T+x}),h&&!g.toJSON||!p.sort||g.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"||v!=="a1c3"||new URL("http://x",void 0).host!=="x"})},8536:function(o,l,i){var c=i(7854),d=i(2788),h=c.WeakMap;o.exports=typeof h=="function"&&/native code/.test(d(h))},1574:function(o,l,i){var c=i(9781),d=i(7293),h=i(1956),f=i(5181),g=i(5296),p=i(7908),v=i(8361),x=Object.assign,T=Object.defineProperty;o.exports=!x||d(function(){if(c&&x({b:1},x(T({},"a",{enumerable:!0,get:function(){T(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var S={},I={},F=Symbol(),M="abcdefghijklmnopqrst";return S[F]=7,M.split("").forEach(function(z){I[z]=z}),x({},S)[F]!=7||h(x({},I)).join("")!=M})?function(I,F){for(var M=p(I),z=arguments.length,X=1,H=f.f,re=g.f;z>X;)for(var G=v(arguments[X++]),E=H?h(G).concat(H(G)):h(G),P=E.length,O=0,_;P>O;)_=E[O++],(!c||re.call(G,_))&&(M[_]=G[_]);return M}:x},30:function(o,l,i){var c=i(9670),d=i(6048),h=i(748),f=i(3501),g=i(490),p=i(317),v=i(6200),x=">",T="<",S="prototype",I="script",F=v("IE_PROTO"),M=function(){},z=function(E){return T+I+x+E+T+"/"+I+x},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"+I+":",O;return E.style.display="none",g.appendChild(E),E.src=String(P),O=E.contentWindow.document,O.open(),O.write(z("document.F=Object")),O.close(),O.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[S][h[E]];return G()};f[F]=!0,o.exports=Object.create||function(P,O){var _;return P!==null?(M[S]=c(P),_=new M,M[S]=null,_[F]=P):_=G(),O===void 0?_:d(_,O)}},6048:function(o,l,i){var c=i(9781),d=i(3070),h=i(9670),f=i(1956);o.exports=c?Object.defineProperties:function(p,v){h(p);for(var x=f(v),T=x.length,S=0,I;T>S;)d.f(p,I=x[S++],v[I]);return p}},3070:function(o,l,i){var c=i(9781),d=i(4664),h=i(9670),f=i(7593),g=Object.defineProperty;l.f=c?g:function(v,x,T){if(h(v),x=f(x,!0),h(T),d)try{return g(v,x,T)}catch{}if("get"in T||"set"in T)throw TypeError("Accessors not supported");return"value"in T&&(v[x]=T.value),v}},1236:function(o,l,i){var c=i(9781),d=i(5296),h=i(9114),f=i(5656),g=i(7593),p=i(6656),v=i(4664),x=Object.getOwnPropertyDescriptor;l.f=c?x:function(S,I){if(S=f(S),I=g(I,!0),v)try{return x(S,I)}catch{}if(p(S,I))return h(!d.f.call(S,I),S[I])}},8006:function(o,l,i){var c=i(6324),d=i(748),h=d.concat("length","prototype");l.f=Object.getOwnPropertyNames||function(g){return c(g,h)}},5181:function(o,l){l.f=Object.getOwnPropertySymbols},9518:function(o,l,i){var c=i(6656),d=i(7908),h=i(6200),f=i(8544),g=h("IE_PROTO"),p=Object.prototype;o.exports=f?Object.getPrototypeOf:function(v){return v=d(v),c(v,g)?v[g]:typeof v.constructor=="function"&&v instanceof v.constructor?v.constructor.prototype:v instanceof Object?p:null}},6324:function(o,l,i){var c=i(6656),d=i(5656),h=i(1318).indexOf,f=i(3501);o.exports=function(g,p){var v=d(g),x=0,T=[],S;for(S in v)!c(f,S)&&c(v,S)&&T.push(S);for(;p.length>x;)c(v,S=p[x++])&&(~h(T,S)||T.push(S));return T}},1956:function(o,l,i){var c=i(6324),d=i(748);o.exports=Object.keys||function(f){return c(f,d)}},5296:function(o,l){var i={}.propertyIsEnumerable,c=Object.getOwnPropertyDescriptor,d=c&&!i.call({1:2},1);l.f=d?function(f){var g=c(this,f);return!!g&&g.enumerable}:i},7674:function(o,l,i){var c=i(9670),d=i(6077);o.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var h=!1,f={},g;try{g=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,g.call(f,[]),h=f instanceof Array}catch{}return function(v,x){return c(v),d(x),h?g.call(v,x):v.__proto__=x,v}}():void 0)},288:function(o,l,i){var c=i(1694),d=i(648);o.exports=c?{}.toString:function(){return"[object "+d(this)+"]"}},3887:function(o,l,i){var c=i(5005),d=i(8006),h=i(5181),f=i(9670);o.exports=c("Reflect","ownKeys")||function(p){var v=d.f(f(p)),x=h.f;return x?v.concat(x(p)):v}},857:function(o,l,i){var c=i(7854);o.exports=c},2248:function(o,l,i){var c=i(1320);o.exports=function(d,h,f){for(var g in h)c(d,g,h[g],f);return d}},1320:function(o,l,i){var c=i(7854),d=i(8880),h=i(6656),f=i(3505),g=i(2788),p=i(9909),v=p.get,x=p.enforce,T=String(String).split("String");(o.exports=function(S,I,F,M){var z=M?!!M.unsafe:!1,X=M?!!M.enumerable:!1,H=M?!!M.noTargetGet:!1,re;if(typeof F=="function"&&(typeof I=="string"&&!h(F,"name")&&d(F,"name",I),re=x(F),re.source||(re.source=T.join(typeof I=="string"?I:""))),S===c){X?S[I]=F:f(I,F);return}else z?!H&&S[I]&&(X=!0):delete S[I];X?S[I]=F:d(S,I,F)})(Function.prototype,"toString",function(){return typeof this=="function"&&v(this).source||g(this)})},7651:function(o,l,i){var c=i(4326),d=i(2261);o.exports=function(h,f){var g=h.exec;if(typeof g=="function"){var p=g.call(h,f);if(typeof p!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return p}if(c(h)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return d.call(h,f)}},2261:function(o,l,i){var c=i(7066),d=i(2999),h=RegExp.prototype.exec,f=String.prototype.replace,g=h,p=function(){var S=/a/,I=/b*/g;return h.call(S,"a"),h.call(I,"a"),S.lastIndex!==0||I.lastIndex!==0}(),v=d.UNSUPPORTED_Y||d.BROKEN_CARET,x=/()??/.exec("")[1]!==void 0,T=p||x||v;T&&(g=function(I){var F=this,M,z,X,H,re=v&&F.sticky,G=c.call(F),E=F.source,P=0,O=I;return re&&(G=G.replace("y",""),G.indexOf("g")===-1&&(G+="g"),O=String(I).slice(F.lastIndex),F.lastIndex>0&&(!F.multiline||F.multiline&&I[F.lastIndex-1]!==`
59
- `)&&(E="(?: "+E+")",O=" "+O,P++),z=new RegExp("^(?:"+E+")",G)),x&&(z=new RegExp("^"+E+"$(?!\\s)",G)),p&&(M=F.lastIndex),X=h.call(re?z:F,O),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),x&&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}),o.exports=g},7066:function(o,l,i){var c=i(9670);o.exports=function(){var d=c(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(o,l,i){var c=i(7293);function d(h,f){return RegExp(h,f)}l.UNSUPPORTED_Y=c(function(){var h=d("a","y");return h.lastIndex=2,h.exec("abcd")!=null}),l.BROKEN_CARET=c(function(){var h=d("^r","gy");return h.lastIndex=2,h.exec("str")!=null})},4488:function(o){o.exports=function(l){if(l==null)throw TypeError("Can't call method on "+l);return l}},3505:function(o,l,i){var c=i(7854),d=i(8880);o.exports=function(h,f){try{d(c,h,f)}catch{c[h]=f}return f}},6340:function(o,l,i){var c=i(5005),d=i(3070),h=i(5112),f=i(9781),g=h("species");o.exports=function(p){var v=c(p),x=d.f;f&&v&&!v[g]&&x(v,g,{configurable:!0,get:function(){return this}})}},8003:function(o,l,i){var c=i(3070).f,d=i(6656),h=i(5112),f=h("toStringTag");o.exports=function(g,p,v){g&&!d(g=v?g:g.prototype,f)&&c(g,f,{configurable:!0,value:p})}},6200:function(o,l,i){var c=i(2309),d=i(9711),h=c("keys");o.exports=function(f){return h[f]||(h[f]=d(f))}},5465:function(o,l,i){var c=i(7854),d=i(3505),h="__core-js_shared__",f=c[h]||d(h,{});o.exports=f},2309:function(o,l,i){var c=i(1913),d=i(5465);(o.exports=function(h,f){return d[h]||(d[h]=f!==void 0?f:{})})("versions",[]).push({version:"3.9.0",mode:c?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},6707:function(o,l,i){var c=i(9670),d=i(3099),h=i(5112),f=h("species");o.exports=function(g,p){var v=c(g).constructor,x;return v===void 0||(x=c(v)[f])==null?p:d(x)}},8710:function(o,l,i){var c=i(9958),d=i(4488),h=function(f){return function(g,p){var v=String(d(g)),x=c(p),T=v.length,S,I;return x<0||x>=T?f?"":void 0:(S=v.charCodeAt(x),S<55296||S>56319||x+1===T||(I=v.charCodeAt(x+1))<56320||I>57343?f?v.charAt(x):S:f?v.slice(x,x+2):(S-55296<<10)+(I-56320)+65536)}};o.exports={codeAt:h(!1),charAt:h(!0)}},3197:function(o){var l=2147483647,i=36,c=1,d=26,h=38,f=700,g=72,p=128,v="-",x=/[^\0-\u007E]/,T=/[.\u3002\uFF0E\uFF61]/g,S="Overflow: input needs wider integers to process",I=i-c,F=Math.floor,M=String.fromCharCode,z=function(G){for(var E=[],P=0,O=G.length;P<O;){var _=G.charCodeAt(P++);if(_>=55296&&_<=56319&&P<O){var j=G.charCodeAt(P++);(j&64512)==56320?E.push(((_&1023)<<10)+(j&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 O=0;for(G=P?F(G/f):G>>1,G+=F(G/E);G>I*d>>1;O+=i)G=F(G/I);return F(O+(I+1)*G/(G+h))},re=function(G){var E=[];G=z(G);var P=G.length,O=p,_=0,j=g,$,K;for($=0;$<G.length;$++)K=G[$],K<128&&E.push(M(K));var q=E.length,J=q;for(q&&E.push(v);J<P;){var te=l;for($=0;$<G.length;$++)K=G[$],K>=O&&K<te&&(te=K);var me=J+1;if(te-O>F((l-_)/me))throw RangeError(S);for(_+=(te-O)*me,O=te,$=0;$<G.length;$++){if(K=G[$],K<O&&++_>l)throw RangeError(S);if(K==O){for(var ge=_,ve=i;;ve+=i){var xe=ve<=j?c:ve>=j+d?d:ve-j;if(ge<xe)break;var he=ge-xe,Oe=i-xe;E.push(M(X(xe+he%Oe))),ge=F(he/Oe)}E.push(M(X(ge))),j=H(_,me,J==q),_=0,++J}}++_,++O}return E.join("")};o.exports=function(G){var E=[],P=G.toLowerCase().replace(T,".").split("."),O,_;for(O=0;O<P.length;O++)_=P[O],E.push(x.test(_)?"xn--"+re(_):_);return E.join(".")}},6091:function(o,l,i){var c=i(7293),d=i(1361),h="​…᠎";o.exports=function(f){return c(function(){return!!d[f]()||h[f]()!=h||d[f].name!==f})}},3111:function(o,l,i){var c=i(4488),d=i(1361),h="["+d+"]",f=RegExp("^"+h+h+"*"),g=RegExp(h+h+"*$"),p=function(v){return function(x){var T=String(c(x));return v&1&&(T=T.replace(f,"")),v&2&&(T=T.replace(g,"")),T}};o.exports={start:p(1),end:p(2),trim:p(3)}},1400:function(o,l,i){var c=i(9958),d=Math.max,h=Math.min;o.exports=function(f,g){var p=c(f);return p<0?d(p+g,0):h(p,g)}},7067:function(o,l,i){var c=i(9958),d=i(7466);o.exports=function(h){if(h===void 0)return 0;var f=c(h),g=d(f);if(f!==g)throw RangeError("Wrong length or index");return g}},5656:function(o,l,i){var c=i(8361),d=i(4488);o.exports=function(h){return c(d(h))}},9958:function(o){var l=Math.ceil,i=Math.floor;o.exports=function(c){return isNaN(c=+c)?0:(c>0?i:l)(c)}},7466:function(o,l,i){var c=i(9958),d=Math.min;o.exports=function(h){return h>0?d(c(h),9007199254740991):0}},7908:function(o,l,i){var c=i(4488);o.exports=function(d){return Object(c(d))}},4590:function(o,l,i){var c=i(3002);o.exports=function(d,h){var f=c(d);if(f%h)throw RangeError("Wrong offset");return f}},3002:function(o,l,i){var c=i(9958);o.exports=function(d){var h=c(d);if(h<0)throw RangeError("The argument can't be less than 0");return h}},7593:function(o,l,i){var c=i(111);o.exports=function(d,h){if(!c(d))return d;var f,g;if(h&&typeof(f=d.toString)=="function"&&!c(g=f.call(d))||typeof(f=d.valueOf)=="function"&&!c(g=f.call(d))||!h&&typeof(f=d.toString)=="function"&&!c(g=f.call(d)))return g;throw TypeError("Can't convert object to primitive value")}},1694:function(o,l,i){var c=i(5112),d=c("toStringTag"),h={};h[d]="z",o.exports=String(h)==="[object z]"},9843:function(o,l,i){var c=i(2109),d=i(7854),h=i(9781),f=i(3832),g=i(260),p=i(3331),v=i(5787),x=i(9114),T=i(8880),S=i(7466),I=i(7067),F=i(4590),M=i(7593),z=i(6656),X=i(648),H=i(111),re=i(30),G=i(7674),E=i(8006).f,P=i(7321),O=i(2092).forEach,_=i(6340),j=i(3070),$=i(1236),K=i(9909),q=i(9587),J=K.get,te=K.set,me=j.f,ge=$.f,ve=Math.round,xe=d.RangeError,he=p.ArrayBuffer,Oe=p.DataView,ye=g.NATIVE_ARRAY_BUFFER_VIEWS,N=g.TYPED_ARRAY_TAG,R=g.TypedArray,A=g.TypedArrayPrototype,C=g.aTypedArrayConstructor,y=g.isTypedArray,b="BYTES_PER_ELEMENT",L="Wrong length",B=function(Q,ne){for(var oe=0,fe=ne.length,Ae=new(C(Q))(fe);fe>oe;)Ae[oe]=ne[oe++];return Ae},U=function(Q,ne){me(Q,ne,{get:function(){return J(this)[ne]}})},V=function(Q){var ne;return Q instanceof he||(ne=X(Q))=="ArrayBuffer"||ne=="SharedArrayBuffer"},W=function(Q,ne){return y(Q)&&typeof ne!="symbol"&&ne in Q&&String(+ne)==String(ne)},Z=function(ne,oe){return W(ne,oe=M(oe,!0))?x(2,ne[oe]):ge(ne,oe)},Y=function(ne,oe,fe){return W(ne,oe=M(oe,!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[oe]=fe.value,ne):me(ne,oe,fe)};h?(ye||($.f=Z,j.f=Y,U(A,"buffer"),U(A,"byteOffset"),U(A,"byteLength"),U(A,"length")),c({target:"Object",stat:!0,forced:!ye},{getOwnPropertyDescriptor:Z,defineProperty:Y}),o.exports=function(Q,ne,oe){var fe=Q.match(/\d+$/)[0]/8,Ae=Q+(oe?"Clamped":"")+"Array",De="get"+Q,Ge="set"+Q,je=d[Ae],Be=je,$e=Be&&Be.prototype,rt={},it=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);oe&&(We=(We=ve(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 it(this,Pe)},set:function(We){return Dt(this,Pe,We)},enumerable:!0})};ye?f&&(Be=ne(function(_e,Pe,We,pe){return v(_e,Be,Ae),q(function(){return H(Pe)?V(Pe)?pe!==void 0?new je(Pe,F(We,fe),pe):We!==void 0?new je(Pe,F(We,fe)):new je(Pe):y(Pe)?B(Be,Pe):P.call(Be,Pe):new je(I(Pe))}(),_e,Be)}),G&&G(Be,R),O(E(je),function(_e){_e in Be||T(Be,_e,je[_e])}),Be.prototype=$e):(Be=ne(function(_e,Pe,We,pe){v(_e,Be,Ae);var be=0,Ce=0,Le,Ie,Ve;if(!H(Pe))Ve=I(Pe),Ie=Ve*fe,Le=new he(Ie);else if(V(Pe)){Le=Pe,Ce=F(We,fe);var Ke=Pe.byteLength;if(pe===void 0){if(Ke%fe||(Ie=Ke-Ce,Ie<0))throw xe(L)}else if(Ie=S(pe)*fe,Ie+Ce>Ke)throw xe(L);Ve=Ie/fe}else return y(Pe)?B(Be,Pe):P.call(Be,Pe);for(te(_e,{buffer:Le,byteOffset:Ce,byteLength:Ie,length:Ve,view:new Oe(Le)});be<Ve;)bt(_e,be++)}),G&&G(Be,R),$e=Be.prototype=re(A)),$e.constructor!==Be&&T($e,"constructor",Be),N&&T($e,N,Ae),rt[Ae]=Be,c({global:!0,forced:Be!=je,sham:!ye},rt),b in Be||T(Be,b,fe),b in $e||T($e,b,fe),_(Ae)}):o.exports=function(){}},3832:function(o,l,i){var c=i(7854),d=i(7293),h=i(7072),f=i(260).NATIVE_ARRAY_BUFFER_VIEWS,g=c.ArrayBuffer,p=c.Int8Array;o.exports=!f||!d(function(){p(1)})||!d(function(){new p(-1)})||!h(function(v){new p,new p(null),new p(1.5),new p(v)},!0)||d(function(){return new p(new g(2),1,void 0).length!==1})},3074:function(o,l,i){var c=i(260).aTypedArrayConstructor,d=i(6707);o.exports=function(h,f){for(var g=d(h,h.constructor),p=0,v=f.length,x=new(c(g))(v);v>p;)x[p]=f[p++];return x}},7321:function(o,l,i){var c=i(7908),d=i(7466),h=i(1246),f=i(7659),g=i(9974),p=i(260).aTypedArrayConstructor;o.exports=function(x){var T=c(x),S=arguments.length,I=S>1?arguments[1]:void 0,F=I!==void 0,M=h(T),z,X,H,re,G,E;if(M!=null&&!f(M))for(G=M.call(T),E=G.next,T=[];!(re=E.call(G)).done;)T.push(re.value);for(F&&S>2&&(I=g(I,arguments[2],2)),X=d(T.length),H=new(p(this))(X),z=0;X>z;z++)H[z]=F?I(T[z],z):T[z];return H}},9711:function(o){var l=0,i=Math.random();o.exports=function(c){return"Symbol("+String(c===void 0?"":c)+")_"+(++l+i).toString(36)}},3307:function(o,l,i){var c=i(133);o.exports=c&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},5112:function(o,l,i){var c=i(7854),d=i(2309),h=i(6656),f=i(9711),g=i(133),p=i(3307),v=d("wks"),x=c.Symbol,T=p?x:x&&x.withoutSetter||f;o.exports=function(S){return h(v,S)||(g&&h(x,S)?v[S]=x[S]:v[S]=T("Symbol."+S)),v[S]}},1361:function(o){o.exports=`
60
- \v\f\r                 \u2028\u2029\uFEFF`},8264:function(o,l,i){var c=i(2109),d=i(7854),h=i(3331),f=i(6340),g="ArrayBuffer",p=h[g],v=d[g];c({global:!0,forced:v!==p},{ArrayBuffer:p}),f(g)},2222:function(o,l,i){var c=i(2109),d=i(7293),h=i(3157),f=i(111),g=i(7908),p=i(7466),v=i(6135),x=i(5417),T=i(1194),S=i(5112),I=i(7392),F=S("isConcatSpreadable"),M=9007199254740991,z="Maximum allowed index exceeded",X=I>=51||!d(function(){var E=[];return E[F]=!1,E.concat()[0]!==E}),H=T("concat"),re=function(E){if(!f(E))return!1;var P=E[F];return P!==void 0?!!P:h(E)},G=!X||!H;c({target:"Array",proto:!0,forced:G},{concat:function(P){var O=g(this),_=x(O,0),j=0,$,K,q,J,te;for($=-1,q=arguments.length;$<q;$++)if(te=$===-1?O:arguments[$],re(te)){if(J=p(te.length),j+J>M)throw TypeError(z);for(K=0;K<J;K++,j++)K in te&&v(_,j,te[K])}else{if(j>=M)throw TypeError(z);v(_,j++,te)}return _.length=j,_}})},7327:function(o,l,i){var c=i(2109),d=i(2092).filter,h=i(1194),f=h("filter");c({target:"Array",proto:!0,forced:!f},{filter:function(p){return d(this,p,arguments.length>1?arguments[1]:void 0)}})},2772:function(o,l,i){var c=i(2109),d=i(1318).indexOf,h=i(9341),f=[].indexOf,g=!!f&&1/[1].indexOf(1,-0)<0,p=h("indexOf");c({target:"Array",proto:!0,forced:g||!p},{indexOf:function(x){return g?f.apply(this,arguments)||0:d(this,x,arguments.length>1?arguments[1]:void 0)}})},6992:function(o,l,i){var c=i(5656),d=i(1223),h=i(7497),f=i(9909),g=i(654),p="Array Iterator",v=f.set,x=f.getterFor(p);o.exports=g(Array,"Array",function(T,S){v(this,{type:p,target:c(T),index:0,kind:S})},function(){var T=x(this),S=T.target,I=T.kind,F=T.index++;return!S||F>=S.length?(T.target=void 0,{value:void 0,done:!0}):I=="keys"?{value:F,done:!1}:I=="values"?{value:S[F],done:!1}:{value:[F,S[F]],done:!1}},"values"),h.Arguments=h.Array,d("keys"),d("values"),d("entries")},1249:function(o,l,i){var c=i(2109),d=i(2092).map,h=i(1194),f=h("map");c({target:"Array",proto:!0,forced:!f},{map:function(p){return d(this,p,arguments.length>1?arguments[1]:void 0)}})},7042:function(o,l,i){var c=i(2109),d=i(111),h=i(3157),f=i(1400),g=i(7466),p=i(5656),v=i(6135),x=i(5112),T=i(1194),S=T("slice"),I=x("species"),F=[].slice,M=Math.max;c({target:"Array",proto:!0,forced:!S},{slice:function(X,H){var re=p(this),G=g(re.length),E=f(X,G),P=f(H===void 0?G:H,G),O,_,j;if(h(re)&&(O=re.constructor,typeof O=="function"&&(O===Array||h(O.prototype))?O=void 0:d(O)&&(O=O[I],O===null&&(O=void 0)),O===Array||O===void 0))return F.call(re,E,P);for(_=new(O===void 0?Array:O)(M(P-E,0)),j=0;E<P;E++,j++)E in re&&v(_,j,re[E]);return _.length=j,_}})},561:function(o,l,i){var c=i(2109),d=i(1400),h=i(9958),f=i(7466),g=i(7908),p=i(5417),v=i(6135),x=i(1194),T=x("splice"),S=Math.max,I=Math.min,F=9007199254740991,M="Maximum allowed length exceeded";c({target:"Array",proto:!0,forced:!T},{splice:function(X,H){var re=g(this),G=f(re.length),E=d(X,G),P=arguments.length,O,_,j,$,K,q;if(P===0?O=_=0:P===1?(O=0,_=G-E):(O=P-2,_=I(S(h(H),0),G-E)),G+O-_>F)throw TypeError(M);for(j=p(re,_),$=0;$<_;$++)K=E+$,K in re&&v(j,$,re[K]);if(j.length=_,O<_){for($=E;$<G-_;$++)K=$+_,q=$+O,K in re?re[q]=re[K]:delete re[q];for($=G;$>G-_+O;$--)delete re[$-1]}else if(O>_)for($=G-_;$>E;$--)K=$+_-1,q=$+O-1,K in re?re[q]=re[K]:delete re[q];for($=0;$<O;$++)re[$+E]=arguments[$+2];return re.length=G-_+O,j}})},8309:function(o,l,i){var c=i(9781),d=i(3070).f,h=Function.prototype,f=h.toString,g=/^\s*function ([^ (]*)/,p="name";c&&!(p in h)&&d(h,p,{configurable:!0,get:function(){try{return f.call(this).match(g)[1]}catch{return""}}})},489:function(o,l,i){var c=i(2109),d=i(7293),h=i(7908),f=i(9518),g=i(8544),p=d(function(){f(1)});c({target:"Object",stat:!0,forced:p,sham:!g},{getPrototypeOf:function(x){return f(h(x))}})},1539:function(o,l,i){var c=i(1694),d=i(1320),h=i(288);c||d(Object.prototype,"toString",h,{unsafe:!0})},4916:function(o,l,i){var c=i(2109),d=i(2261);c({target:"RegExp",proto:!0,forced:/./.exec!==d},{exec:d})},9714:function(o,l,i){var c=i(1320),d=i(9670),h=i(7293),f=i(7066),g="toString",p=RegExp.prototype,v=p[g],x=h(function(){return v.call({source:"a",flags:"b"})!="/a/b"}),T=v.name!=g;(x||T)&&c(RegExp.prototype,g,function(){var I=d(this),F=String(I.source),M=I.flags,z=String(M===void 0&&I instanceof RegExp&&!("flags"in p)?f.call(I):M);return"/"+F+"/"+z},{unsafe:!0})},8783:function(o,l,i){var c=i(8710).charAt,d=i(9909),h=i(654),f="String Iterator",g=d.set,p=d.getterFor(f);h(String,"String",function(v){g(this,{type:f,string:String(v),index:0})},function(){var x=p(this),T=x.string,S=x.index,I;return S>=T.length?{value:void 0,done:!0}:(I=c(T,S),x.index+=I.length,{value:I,done:!1})})},4723:function(o,l,i){var c=i(7007),d=i(9670),h=i(7466),f=i(4488),g=i(1530),p=i(7651);c("match",1,function(v,x,T){return[function(I){var F=f(this),M=I==null?void 0:I[v];return M!==void 0?M.call(I,F):new RegExp(I)[v](String(F))},function(S){var I=T(x,S,this);if(I.done)return I.value;var F=d(S),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=g(M,h(F.lastIndex),z)),H++}return H===0?null:X}]})},5306:function(o,l,i){var c=i(7007),d=i(9670),h=i(7466),f=i(9958),g=i(4488),p=i(1530),v=i(647),x=i(7651),T=Math.max,S=Math.min,I=function(F){return F===void 0?F:String(F)};c("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,O){var _=g(this),j=P==null?void 0:P[F];return j!==void 0?j.call(P,_,O):M.call(String(_),P,O)},function(E,P){if(!H&&re||typeof P=="string"&&P.indexOf(G)===-1){var O=z(M,E,this,P);if(O.done)return O.value}var _=d(E),j=String(this),$=typeof P=="function";$||(P=String(P));var K=_.global;if(K){var q=_.unicode;_.lastIndex=0}for(var J=[];;){var te=x(_,j);if(te===null||(J.push(te),!K))break;var me=String(te[0]);me===""&&(_.lastIndex=p(j,h(_.lastIndex),q))}for(var ge="",ve=0,xe=0;xe<J.length;xe++){te=J[xe];for(var he=String(te[0]),Oe=T(S(f(te.index),j.length),0),ye=[],N=1;N<te.length;N++)ye.push(I(te[N]));var R=te.groups;if($){var A=[he].concat(ye,Oe,j);R!==void 0&&A.push(R);var C=String(P.apply(void 0,A))}else C=v(he,j,Oe,ye,R,P);Oe>=ve&&(ge+=j.slice(ve,Oe)+C,ve=Oe+he.length)}return ge+j.slice(ve)}]})},3123:function(o,l,i){var c=i(7007),d=i(7850),h=i(9670),f=i(4488),g=i(6707),p=i(1530),v=i(7466),x=i(7651),T=i(2261),S=i(7293),I=[].push,F=Math.min,M=4294967295,z=!S(function(){return!RegExp(M,"y")});c("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 O=String(f(this)),_=P===void 0?M:P>>>0;if(_===0)return[];if(E===void 0)return[O];if(!d(E))return H.call(O,E,_);for(var j=[],$=(E.ignoreCase?"i":"")+(E.multiline?"m":"")+(E.unicode?"u":"")+(E.sticky?"y":""),K=0,q=new RegExp(E.source,$+"g"),J,te,me;(J=T.call(q,O))&&(te=q.lastIndex,!(te>K&&(j.push(O.slice(K,J.index)),J.length>1&&J.index<O.length&&I.apply(j,J.slice(1)),me=J[0].length,K=te,j.length>=_)));)q.lastIndex===J.index&&q.lastIndex++;return K===O.length?(me||!q.test(""))&&j.push(""):j.push(O.slice(K)),j.length>_?j.slice(0,_):j}:"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,O){var _=f(this),j=P==null?void 0:P[X];return j!==void 0?j.call(P,_,O):G.call(String(_),P,O)},function(E,P){var O=re(G,E,this,P,G!==H);if(O.done)return O.value;var _=h(E),j=String(this),$=g(_,RegExp),K=_.unicode,q=(_.ignoreCase?"i":"")+(_.multiline?"m":"")+(_.unicode?"u":"")+(z?"y":"g"),J=new $(z?_:"^(?:"+_.source+")",q),te=P===void 0?M:P>>>0;if(te===0)return[];if(j.length===0)return x(J,j)===null?[j]:[];for(var me=0,ge=0,ve=[];ge<j.length;){J.lastIndex=z?ge:0;var xe=x(J,z?j:j.slice(ge)),he;if(xe===null||(he=F(v(J.lastIndex+(z?0:ge)),j.length))===me)ge=p(j,ge,K);else{if(ve.push(j.slice(me,ge)),ve.length===te)return ve;for(var Oe=1;Oe<=xe.length-1;Oe++)if(ve.push(xe[Oe]),ve.length===te)return ve;ge=me=he}}return ve.push(j.slice(me)),ve}]},!z)},3210:function(o,l,i){var c=i(2109),d=i(3111).trim,h=i(6091);c({target:"String",proto:!0,forced:h("trim")},{trim:function(){return d(this)}})},2990:function(o,l,i){var c=i(260),d=i(1048),h=c.aTypedArray,f=c.exportTypedArrayMethod;f("copyWithin",function(p,v){return d.call(h(this),p,v,arguments.length>2?arguments[2]:void 0)})},8927:function(o,l,i){var c=i(260),d=i(2092).every,h=c.aTypedArray,f=c.exportTypedArrayMethod;f("every",function(p){return d(h(this),p,arguments.length>1?arguments[1]:void 0)})},3105:function(o,l,i){var c=i(260),d=i(1285),h=c.aTypedArray,f=c.exportTypedArrayMethod;f("fill",function(p){return d.apply(h(this),arguments)})},5035:function(o,l,i){var c=i(260),d=i(2092).filter,h=i(3074),f=c.aTypedArray,g=c.exportTypedArrayMethod;g("filter",function(v){var x=d(f(this),v,arguments.length>1?arguments[1]:void 0);return h(this,x)})},7174:function(o,l,i){var c=i(260),d=i(2092).findIndex,h=c.aTypedArray,f=c.exportTypedArrayMethod;f("findIndex",function(p){return d(h(this),p,arguments.length>1?arguments[1]:void 0)})},4345:function(o,l,i){var c=i(260),d=i(2092).find,h=c.aTypedArray,f=c.exportTypedArrayMethod;f("find",function(p){return d(h(this),p,arguments.length>1?arguments[1]:void 0)})},2846:function(o,l,i){var c=i(260),d=i(2092).forEach,h=c.aTypedArray,f=c.exportTypedArrayMethod;f("forEach",function(p){d(h(this),p,arguments.length>1?arguments[1]:void 0)})},4731:function(o,l,i){var c=i(260),d=i(1318).includes,h=c.aTypedArray,f=c.exportTypedArrayMethod;f("includes",function(p){return d(h(this),p,arguments.length>1?arguments[1]:void 0)})},7209:function(o,l,i){var c=i(260),d=i(1318).indexOf,h=c.aTypedArray,f=c.exportTypedArrayMethod;f("indexOf",function(p){return d(h(this),p,arguments.length>1?arguments[1]:void 0)})},6319:function(o,l,i){var c=i(7854),d=i(260),h=i(6992),f=i(5112),g=f("iterator"),p=c.Uint8Array,v=h.values,x=h.keys,T=h.entries,S=d.aTypedArray,I=d.exportTypedArrayMethod,F=p&&p.prototype[g],M=!!F&&(F.name=="values"||F.name==null),z=function(){return v.call(S(this))};I("entries",function(){return T.call(S(this))}),I("keys",function(){return x.call(S(this))}),I("values",z,!M),I(g,z,!M)},8867:function(o,l,i){var c=i(260),d=c.aTypedArray,h=c.exportTypedArrayMethod,f=[].join;h("join",function(p){return f.apply(d(this),arguments)})},7789:function(o,l,i){var c=i(260),d=i(6583),h=c.aTypedArray,f=c.exportTypedArrayMethod;f("lastIndexOf",function(p){return d.apply(h(this),arguments)})},3739:function(o,l,i){var c=i(260),d=i(2092).map,h=i(6707),f=c.aTypedArray,g=c.aTypedArrayConstructor,p=c.exportTypedArrayMethod;p("map",function(x){return d(f(this),x,arguments.length>1?arguments[1]:void 0,function(T,S){return new(g(h(T,T.constructor)))(S)})})},4483:function(o,l,i){var c=i(260),d=i(3671).right,h=c.aTypedArray,f=c.exportTypedArrayMethod;f("reduceRight",function(p){return d(h(this),p,arguments.length,arguments.length>1?arguments[1]:void 0)})},9368:function(o,l,i){var c=i(260),d=i(3671).left,h=c.aTypedArray,f=c.exportTypedArrayMethod;f("reduce",function(p){return d(h(this),p,arguments.length,arguments.length>1?arguments[1]:void 0)})},2056:function(o,l,i){var c=i(260),d=c.aTypedArray,h=c.exportTypedArrayMethod,f=Math.floor;h("reverse",function(){for(var p=this,v=d(p).length,x=f(v/2),T=0,S;T<x;)S=p[T],p[T++]=p[--v],p[v]=S;return p})},3462:function(o,l,i){var c=i(260),d=i(7466),h=i(4590),f=i(7908),g=i(7293),p=c.aTypedArray,v=c.exportTypedArrayMethod,x=g(function(){new Int8Array(1).set({})});v("set",function(S){p(this);var I=h(arguments.length>1?arguments[1]:void 0,1),F=this.length,M=f(S),z=d(M.length),X=0;if(z+I>F)throw RangeError("Wrong length");for(;X<z;)this[I+X]=M[X++]},x)},678:function(o,l,i){var c=i(260),d=i(6707),h=i(7293),f=c.aTypedArray,g=c.aTypedArrayConstructor,p=c.exportTypedArrayMethod,v=[].slice,x=h(function(){new Int8Array(1).slice()});p("slice",function(S,I){for(var F=v.call(f(this),S,I),M=d(this,this.constructor),z=0,X=F.length,H=new(g(M))(X);X>z;)H[z]=F[z++];return H},x)},7462:function(o,l,i){var c=i(260),d=i(2092).some,h=c.aTypedArray,f=c.exportTypedArrayMethod;f("some",function(p){return d(h(this),p,arguments.length>1?arguments[1]:void 0)})},3824:function(o,l,i){var c=i(260),d=c.aTypedArray,h=c.exportTypedArrayMethod,f=[].sort;h("sort",function(p){return f.call(d(this),p)})},5021:function(o,l,i){var c=i(260),d=i(7466),h=i(1400),f=i(6707),g=c.aTypedArray,p=c.exportTypedArrayMethod;p("subarray",function(x,T){var S=g(this),I=S.length,F=h(x,I);return new(f(S,S.constructor))(S.buffer,S.byteOffset+F*S.BYTES_PER_ELEMENT,d((T===void 0?I:h(T,I))-F))})},2974:function(o,l,i){var c=i(7854),d=i(260),h=i(7293),f=c.Int8Array,g=d.aTypedArray,p=d.exportTypedArrayMethod,v=[].toLocaleString,x=[].slice,T=!!f&&h(function(){v.call(new f(1))}),S=h(function(){return[1,2].toLocaleString()!=new f([1,2]).toLocaleString()})||!h(function(){f.prototype.toLocaleString.call([1,2])});p("toLocaleString",function(){return v.apply(T?x.call(g(this)):g(this),arguments)},S)},5016:function(o,l,i){var c=i(260).exportTypedArrayMethod,d=i(7293),h=i(7854),f=h.Uint8Array,g=f&&f.prototype||{},p=[].toString,v=[].join;d(function(){p.call({})})&&(p=function(){return v.call(this)});var x=g.toString!=p;c("toString",p,x)},2472:function(o,l,i){var c=i(9843);c("Uint8",function(d){return function(f,g,p){return d(this,f,g,p)}})},4747:function(o,l,i){var c=i(7854),d=i(8324),h=i(8533),f=i(8880);for(var g in d){var p=c[g],v=p&&p.prototype;if(v&&v.forEach!==h)try{f(v,"forEach",h)}catch{v.forEach=h}}},3948:function(o,l,i){var c=i(7854),d=i(8324),h=i(6992),f=i(8880),g=i(5112),p=g("iterator"),v=g("toStringTag"),x=h.values;for(var T in d){var S=c[T],I=S&&S.prototype;if(I){if(I[p]!==x)try{f(I,p,x)}catch{I[p]=x}if(I[v]||f(I,v,T),d[T]){for(var F in h)if(I[F]!==h[F])try{f(I,F,h[F])}catch{I[F]=h[F]}}}}},1637:function(o,l,i){i(6992);var c=i(2109),d=i(5005),h=i(590),f=i(1320),g=i(2248),p=i(8003),v=i(4994),x=i(9909),T=i(5787),S=i(6656),I=i(9974),F=i(648),M=i(9670),z=i(111),X=i(30),H=i(9114),re=i(8554),G=i(1246),E=i(5112),P=d("fetch"),O=d("Headers"),_=E("iterator"),j="URLSearchParams",$=j+"Iterator",K=x.set,q=x.getterFor(j),J=x.getterFor($),te=/\+/g,me=Array(4),ge=function(B){return me[B-1]||(me[B-1]=RegExp("((?:%[\\da-f]{2}){"+B+"})","gi"))},ve=function(B){try{return decodeURIComponent(B)}catch{return B}},xe=function(B){var U=B.replace(te," "),V=4;try{return decodeURIComponent(U)}catch{for(;V;)U=U.replace(ge(V--),ve);return U}},he=/[!'()~]|%20/g,Oe={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ye=function(B){return Oe[B]},N=function(B){return encodeURIComponent(B).replace(he,ye)},R=function(B,U){if(U)for(var V=U.split("&"),W=0,Z,Y;W<V.length;)Z=V[W++],Z.length&&(Y=Z.split("="),B.push({key:xe(Y.shift()),value:xe(Y.join("="))}))},A=function(B){this.entries.length=0,R(this.entries,B)},C=function(B,U){if(B<U)throw TypeError("Not enough arguments")},y=v(function(U,V){K(this,{type:$,iterator:re(q(U).entries),kind:V})},"Iterator",function(){var U=J(this),V=U.kind,W=U.iterator.next(),Z=W.value;return W.done||(W.value=V==="keys"?Z.key:V==="values"?Z.value:[Z.key,Z.value]),W}),b=function(){T(this,b,j);var U=arguments.length>0?arguments[0]:void 0,V=this,W=[],Z,Y,Q,ne,oe,fe,Ae,De,Ge;if(K(V,{type:j,entries:W,updateURL:function(){},updateSearchParams:A}),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(oe=re(M(ne.value)),fe=oe.next,(Ae=fe.call(oe)).done||(De=fe.call(oe)).done||!fe.call(oe).done)throw TypeError("Expected sequence with length 2");W.push({key:Ae.value+"",value:De.value+""})}else for(Ge in U)S(U,Ge)&&W.push({key:Ge,value:U[Ge]+""});else R(W,typeof U=="string"?U.charAt(0)==="?"?U.slice(1):U:U+"")},L=b.prototype;g(L,{append:function(U,V){C(arguments.length,2);var W=q(this);W.entries.push({key:U+"",value:V+""}),W.updateURL()},delete:function(B){C(arguments.length,1);for(var U=q(this),V=U.entries,W=B+"",Z=0;Z<V.length;)V[Z].key===W?V.splice(Z,1):Z++;U.updateURL()},get:function(U){C(arguments.length,1);for(var V=q(this).entries,W=U+"",Z=0;Z<V.length;Z++)if(V[Z].key===W)return V[Z].value;return null},getAll:function(U){C(arguments.length,1);for(var V=q(this).entries,W=U+"",Z=[],Y=0;Y<V.length;Y++)V[Y].key===W&&Z.push(V[Y].value);return Z},has:function(U){C(arguments.length,1);for(var V=q(this).entries,W=U+"",Z=0;Z<V.length;)if(V[Z++].key===W)return!0;return!1},set:function(U,V){C(arguments.length,1);for(var W=q(this),Z=W.entries,Y=!1,Q=U+"",ne=V+"",oe=0,fe;oe<Z.length;oe++)fe=Z[oe],fe.key===Q&&(Y?Z.splice(oe--,1):(Y=!0,fe.value=ne));Y||Z.push({key:Q,value:ne}),W.updateURL()},sort:function(){var U=q(this),V=U.entries,W=V.slice(),Z,Y,Q;for(V.length=0,Q=0;Q<W.length;Q++){for(Z=W[Q],Y=0;Y<Q;Y++)if(V[Y].key>Z.key){V.splice(Y,0,Z);break}Y===Q&&V.push(Z)}U.updateURL()},forEach:function(U){for(var V=q(this).entries,W=I(U,arguments.length>1?arguments[1]:void 0,3),Z=0,Y;Z<V.length;)Y=V[Z++],W(Y.value,Y.key,this)},keys:function(){return new y(this,"keys")},values:function(){return new y(this,"values")},entries:function(){return new y(this,"entries")}},{enumerable:!0}),f(L,_,L.entries),f(L,"toString",function(){for(var U=q(this).entries,V=[],W=0,Z;W<U.length;)Z=U[W++],V.push(N(Z.key)+"="+N(Z.value));return V.join("&")},{enumerable:!0}),p(b,j),c({global:!0,forced:!h},{URLSearchParams:b}),!h&&typeof P=="function"&&typeof O=="function"&&c({global:!0,enumerable:!0,forced:!0},{fetch:function(U){var V=[U],W,Z,Y;return arguments.length>1&&(W=arguments[1],z(W)&&(Z=W.body,F(Z)===j&&(Y=W.headers?new O(W.headers):new O,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)}))),V.push(W)),P.apply(this,V)}}),o.exports={URLSearchParams:b,getState:q}},285:function(o,l,i){i(8783);var c=i(2109),d=i(9781),h=i(590),f=i(7854),g=i(6048),p=i(1320),v=i(5787),x=i(6656),T=i(1574),S=i(8457),I=i(8710).codeAt,F=i(3197),M=i(8003),z=i(1637),X=i(9909),H=f.URL,re=z.URLSearchParams,G=z.getState,E=X.set,P=X.getterFor("URL"),O=Math.floor,_=Math.pow,j="Invalid authority",$="Invalid scheme",K="Invalid host",q="Invalid port",J=/[A-Za-z]/,te=/[\d+-.A-Za-z]/,me=/\d/,ge=/^(0x|0X)/,ve=/^[0-7]+$/,xe=/^\d+$/,he=/^[\dA-Fa-f]+$/,Oe=/[\u0000\t\u000A\u000D #%/:?@[\\]]/,ye=/[\u0000\t\u000A\u000D #/:?@[\\]]/,N=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,R=/[\t\u000A\u000D]/g,A,C=function(k,ae){var se,ce,de;if(ae.charAt(0)=="["){if(ae.charAt(ae.length-1)!="]"||(se=b(ae.slice(1,-1)),!se))return K;k.host=se}else if(ne(k)){if(ae=F(ae),Oe.test(ae)||(se=y(ae),se===null))return K;k.host=se}else{if(ye.test(ae))return K;for(se="",ce=S(ae),de=0;de<ce.length;de++)se+=Y(ce[de],U);k.host=se}},y=function(k){var ae=k.split("."),se,ce,de,ke,we,Ue,qe;if(ae.length&&ae[ae.length-1]==""&&ae.pop(),se=ae.length,se>4)return k;for(ce=[],de=0;de<se;de++){if(ke=ae[de],ke=="")return k;if(we=10,ke.length>1&&ke.charAt(0)=="0"&&(we=ge.test(ke)?16:8,ke=ke.slice(we==8?1:2)),ke==="")Ue=0;else{if(!(we==10?xe:we==8?ve:he).test(ke))return k;Ue=parseInt(ke,we)}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},b=function(k){var ae=[0,0,0,0,0,0,0,0],se=0,ce=null,de=0,ke,we,Ue,qe,Qe,Et,ue,st=function(){return k.charAt(de)};if(st()==":"){if(k.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(ke=we=0;we<4&&he.test(st());)ke=ke*16+parseInt(st(),16),de++,we++;if(st()=="."){if(we==0||(de-=we,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++]=ke}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},L=function(k){for(var ae=null,se=1,ce=null,de=0,ke=0;ke<8;ke++)k[ke]!==0?(de>se&&(ae=ce,se=de),ce=null,de=0):(ce===null&&(ce=ke),++de);return de>se&&(ae=ce,se=de),ae},B=function(k){var ae,se,ce,de;if(typeof k=="number"){for(ae=[],se=0;se<4;se++)ae.unshift(k%256),k=O(k/256);return ae.join(".")}else if(typeof k=="object"){for(ae="",ce=L(k),se=0;se<8;se++)de&&k[se]===0||(de&&(de=!1),ce===se?(ae+=se?":":"::",de=!0):(ae+=k[se].toString(16),se<7&&(ae+=":")));return"["+ae+"]"}return k},U={},V=T({},U,{" ":1,'"':1,"<":1,">":1,"`":1}),W=T({},V,{"#":1,"?":1,"{":1,"}":1}),Z=T({},W,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Y=function(k,ae){var se=I(k,0);return se>32&&se<127&&!x(ae,k)?k:encodeURIComponent(k)},Q={ftp:21,file:null,http:80,https:443,ws:80,wss:443},ne=function(k){return x(Q,k.scheme)},oe=function(k){return k.username!=""||k.password!=""},fe=function(k){return!k.host||k.cannotBeABaseURL||k.scheme=="file"},Ae=function(k,ae){var se;return k.length==2&&J.test(k.charAt(0))&&((se=k.charAt(1))==":"||!ae&&se=="|")},De=function(k){var ae;return k.length>1&&Ae(k.slice(0,2))&&(k.length==2||(ae=k.charAt(2))==="/"||ae==="\\"||ae==="?"||ae==="#")},Ge=function(k){var ae=k.path,se=ae.length;se&&(k.scheme!="file"||se!=1||!Ae(ae[0],!0))&&ae.pop()},je=function(k){return k==="."||k.toLowerCase()==="%2e"},Be=function(k){return k=k.toLowerCase(),k===".."||k==="%2e."||k===".%2e"||k==="%2e%2e"},$e={},rt={},it={},Dt={},bt={},_e={},Pe={},We={},pe={},be={},Ce={},Le={},Ie={},Ve={},Ke={},et={},dt={},ft={},It={},Ut={},lt={},Ot=function(k,ae,se,ce){var de=se||$e,ke=0,we="",Ue=!1,qe=!1,Qe=!1,Et,ue,st,Lt;for(se||(k.scheme="",k.username="",k.password="",k.host=null,k.port=null,k.path=[],k.query=null,k.fragment=null,k.cannotBeABaseURL=!1,ae=ae.replace(N,"")),ae=ae.replace(R,""),Et=S(ae);ke<=Et.length;){switch(ue=Et[ke],de){case $e:if(ue&&J.test(ue))we+=ue.toLowerCase(),de=rt;else{if(se)return $;de=it;continue}break;case rt:if(ue&&(te.test(ue)||ue=="+"||ue=="-"||ue=="."))we+=ue.toLowerCase();else if(ue==":"){if(se&&(ne(k)!=x(Q,we)||we=="file"&&(oe(k)||k.port!==null)||k.scheme=="file"&&!k.host))return;if(k.scheme=we,se){ne(k)&&Q[k.scheme]==k.port&&(k.port=null);return}we="",k.scheme=="file"?de=Ve:ne(k)&&ce&&ce.scheme==k.scheme?de=Dt:ne(k)?de=We:Et[ke+1]=="/"?(de=bt,ke++):(k.cannotBeABaseURL=!0,k.path.push(""),de=It)}else{if(se)return $;we="",de=it,ke=0;continue}break;case it:if(!ce||ce.cannotBeABaseURL&&ue!="#")return $;if(ce.cannotBeABaseURL&&ue=="#"){k.scheme=ce.scheme,k.path=ce.path.slice(),k.query=ce.query,k.fragment="",k.cannotBeABaseURL=!0,de=lt;break}de=ce.scheme=="file"?Ve:_e;continue;case Dt:if(ue=="/"&&Et[ke+1]=="/")de=pe,ke++;else{de=_e;continue}break;case bt:if(ue=="/"){de=be;break}else{de=ft;continue}case _e:if(k.scheme=ce.scheme,ue==A)k.username=ce.username,k.password=ce.password,k.host=ce.host,k.port=ce.port,k.path=ce.path.slice(),k.query=ce.query;else if(ue=="/"||ue=="\\"&&ne(k))de=Pe;else if(ue=="?")k.username=ce.username,k.password=ce.password,k.host=ce.host,k.port=ce.port,k.path=ce.path.slice(),k.query="",de=Ut;else if(ue=="#")k.username=ce.username,k.password=ce.password,k.host=ce.host,k.port=ce.port,k.path=ce.path.slice(),k.query=ce.query,k.fragment="",de=lt;else{k.username=ce.username,k.password=ce.password,k.host=ce.host,k.port=ce.port,k.path=ce.path.slice(),k.path.pop(),de=ft;continue}break;case Pe:if(ne(k)&&(ue=="/"||ue=="\\"))de=pe;else if(ue=="/")de=be;else{k.username=ce.username,k.password=ce.password,k.host=ce.host,k.port=ce.port,de=ft;continue}break;case We:if(de=pe,ue!="/"||we.charAt(ke+1)!="/")continue;ke++;break;case pe:if(ue!="/"&&ue!="\\"){de=be;continue}break;case be:if(ue=="@"){Ue&&(we="%40"+we),Ue=!0,st=S(we);for(var Gn=0;Gn<st.length;Gn++){var gn=st[Gn];if(gn==":"&&!Qe){Qe=!0;continue}var Rn=Y(gn,Z);Qe?k.password+=Rn:k.username+=Rn}we=""}else if(ue==A||ue=="/"||ue=="?"||ue=="#"||ue=="\\"&&ne(k)){if(Ue&&we=="")return j;ke-=S(we).length+1,we="",de=Ce}else we+=ue;break;case Ce:case Le:if(se&&k.scheme=="file"){de=et;continue}else if(ue==":"&&!qe){if(we=="")return K;if(Lt=C(k,we),Lt)return Lt;if(we="",de=Ie,se==Le)return}else if(ue==A||ue=="/"||ue=="?"||ue=="#"||ue=="\\"&&ne(k)){if(ne(k)&&we=="")return K;if(se&&we==""&&(oe(k)||k.port!==null))return;if(Lt=C(k,we),Lt)return Lt;if(we="",de=dt,se)return;continue}else ue=="["?qe=!0:ue=="]"&&(qe=!1),we+=ue;break;case Ie:if(me.test(ue))we+=ue;else if(ue==A||ue=="/"||ue=="?"||ue=="#"||ue=="\\"&&ne(k)||se){if(we!=""){var Yt=parseInt(we,10);if(Yt>65535)return q;k.port=ne(k)&&Yt===Q[k.scheme]?null:Yt,we=""}if(se)return;de=dt;continue}else return q;break;case Ve:if(k.scheme="file",ue=="/"||ue=="\\")de=Ke;else if(ce&&ce.scheme=="file")if(ue==A)k.host=ce.host,k.path=ce.path.slice(),k.query=ce.query;else if(ue=="?")k.host=ce.host,k.path=ce.path.slice(),k.query="",de=Ut;else if(ue=="#")k.host=ce.host,k.path=ce.path.slice(),k.query=ce.query,k.fragment="",de=lt;else{De(Et.slice(ke).join(""))||(k.host=ce.host,k.path=ce.path.slice(),Ge(k)),de=ft;continue}else{de=ft;continue}break;case Ke:if(ue=="/"||ue=="\\"){de=et;break}ce&&ce.scheme=="file"&&!De(Et.slice(ke).join(""))&&(Ae(ce.path[0],!0)?k.path.push(ce.path[0]):k.host=ce.host),de=ft;continue;case et:if(ue==A||ue=="/"||ue=="\\"||ue=="?"||ue=="#"){if(!se&&Ae(we))de=ft;else if(we==""){if(k.host="",se)return;de=dt}else{if(Lt=C(k,we),Lt)return Lt;if(k.host=="localhost"&&(k.host=""),se)return;we="",de=dt}continue}else we+=ue;break;case dt:if(ne(k)){if(de=ft,ue!="/"&&ue!="\\")continue}else if(!se&&ue=="?")k.query="",de=Ut;else if(!se&&ue=="#")k.fragment="",de=lt;else if(ue!=A&&(de=ft,ue!="/"))continue;break;case ft:if(ue==A||ue=="/"||ue=="\\"&&ne(k)||!se&&(ue=="?"||ue=="#")){if(Be(we)?(Ge(k),ue!="/"&&!(ue=="\\"&&ne(k))&&k.path.push("")):je(we)?ue!="/"&&!(ue=="\\"&&ne(k))&&k.path.push(""):(k.scheme=="file"&&!k.path.length&&Ae(we)&&(k.host&&(k.host=""),we=we.charAt(0)+":"),k.path.push(we)),we="",k.scheme=="file"&&(ue==A||ue=="?"||ue=="#"))for(;k.path.length>1&&k.path[0]==="";)k.path.shift();ue=="?"?(k.query="",de=Ut):ue=="#"&&(k.fragment="",de=lt)}else we+=Y(ue,W);break;case It:ue=="?"?(k.query="",de=Ut):ue=="#"?(k.fragment="",de=lt):ue!=A&&(k.path[0]+=Y(ue,U));break;case Ut:!se&&ue=="#"?(k.fragment="",de=lt):ue!=A&&(ue=="'"&&ne(k)?k.query+="%27":ue=="#"?k.query+="%23":k.query+=Y(ue,U));break;case lt:ue!=A&&(k.fragment+=Y(ue,V));break}ke++}},Xt=function(ae){var se=v(this,Xt,"URL"),ce=arguments.length>1?arguments[1]:void 0,de=String(ae),ke=E(se,{type:"URL"}),we,Ue;if(ce!==void 0){if(ce instanceof Xt)we=P(ce);else if(Ue=Ot(we={},String(ce)),Ue)throw TypeError(Ue)}if(Ue=Ot(ke,de,null,we),Ue)throw TypeError(Ue);var qe=ke.searchParams=new re,Qe=G(qe);Qe.updateSearchParams(ke.query),Qe.updateURL=function(){ke.query=String(qe)||null},d||(se.href=mn.call(se),se.origin=Cn.call(se),se.protocol=ot.call(se),se.username=fr.call(se),se.password=hr.call(se),se.host=pr.call(se),se.hostname=mr.call(se),se.port=gr.call(se),se.pathname=ct.call(se),se.search=vr.call(se),se.searchParams=yr.call(se),se.hash=br.call(se))},Hn=Xt.prototype,mn=function(){var k=P(this),ae=k.scheme,se=k.username,ce=k.password,de=k.host,ke=k.port,we=k.path,Ue=k.query,qe=k.fragment,Qe=ae+":";return de!==null?(Qe+="//",oe(k)&&(Qe+=se+(ce?":"+ce:"")+"@"),Qe+=B(de),ke!==null&&(Qe+=":"+ke)):ae=="file"&&(Qe+="//"),Qe+=k.cannotBeABaseURL?we[0]:we.length?"/"+we.join("/"):"",Ue!==null&&(Qe+="?"+Ue),qe!==null&&(Qe+="#"+qe),Qe},Cn=function(){var k=P(this),ae=k.scheme,se=k.port;if(ae=="blob")try{return new URL(ae.path[0]).origin}catch{return"null"}return ae=="file"||!ne(k)?"null":ae+"://"+B(k.host)+(se!==null?":"+se:"")},ot=function(){return P(this).scheme+":"},fr=function(){return P(this).username},hr=function(){return P(this).password},pr=function(){var k=P(this),ae=k.host,se=k.port;return ae===null?"":se===null?B(ae):B(ae)+":"+se},mr=function(){var k=P(this).host;return k===null?"":B(k)},gr=function(){var k=P(this).port;return k===null?"":String(k)},ct=function(){var k=P(this),ae=k.path;return k.cannotBeABaseURL?ae[0]:ae.length?"/"+ae.join("/"):""},vr=function(){var k=P(this).query;return k?"?"+k:""},yr=function(){return P(this).searchParams},br=function(){var k=P(this).fragment;return k?"#"+k:""},xt=function(k,ae){return{get:k,set:ae,configurable:!0,enumerable:!0}};if(d&&g(Hn,{href:xt(mn,function(k){var ae=P(this),se=String(k),ce=Ot(ae,se);if(ce)throw TypeError(ce);G(ae.searchParams).updateSearchParams(ae.query)}),origin:xt(Cn),protocol:xt(ot,function(k){var ae=P(this);Ot(ae,String(k)+":",$e)}),username:xt(fr,function(k){var ae=P(this),se=S(String(k));if(!fe(ae)){ae.username="";for(var ce=0;ce<se.length;ce++)ae.username+=Y(se[ce],Z)}}),password:xt(hr,function(k){var ae=P(this),se=S(String(k));if(!fe(ae)){ae.password="";for(var ce=0;ce<se.length;ce++)ae.password+=Y(se[ce],Z)}}),host:xt(pr,function(k){var ae=P(this);ae.cannotBeABaseURL||Ot(ae,String(k),Ce)}),hostname:xt(mr,function(k){var ae=P(this);ae.cannotBeABaseURL||Ot(ae,String(k),Le)}),port:xt(gr,function(k){var ae=P(this);fe(ae)||(k=String(k),k==""?ae.port=null:Ot(ae,k,Ie))}),pathname:xt(ct,function(k){var ae=P(this);ae.cannotBeABaseURL||(ae.path=[],Ot(ae,k+"",dt))}),search:xt(vr,function(k){var ae=P(this);k=String(k),k==""?ae.query=null:(k.charAt(0)=="?"&&(k=k.slice(1)),ae.query="",Ot(ae,k,Ut)),G(ae.searchParams).updateSearchParams(ae.query)}),searchParams:xt(yr),hash:xt(br,function(k){var ae=P(this);if(k=String(k),k==""){ae.fragment=null;return}k.charAt(0)=="#"&&(k=k.slice(1)),ae.fragment="",Ot(ae,k,lt)})}),p(Hn,"toJSON",function(){return mn.call(this)},{enumerable:!0}),p(Hn,"toString",function(){return mn.call(this)},{enumerable:!0}),H){var xr=H.createObjectURL,pt=H.revokeObjectURL;xr&&p(Xt,"createObjectURL",function(ae){return xr.apply(H,arguments)}),pt&&p(Xt,"revokeObjectURL",function(ae){return pt.apply(H,arguments)})}M(Xt,"URL"),c({global:!0,forced:!h,sham:!d},{URL:Xt})}},r={};function s(o){if(r[o])return r[o].exports;var l=r[o]={exports:{}};return t[o](l,l.exports,s),l.exports}(function(){s.d=function(o,l){for(var i in l)s.o(l,i)&&!s.o(o,i)&&Object.defineProperty(o,i,{enumerable:!0,get:l[i]})}})(),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(o,l){return Object.prototype.hasOwnProperty.call(o,l)}}(),function(){s.r=function(o){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})}}();var a={};return function(){s.r(a),s.d(a,{Dropzone:function(){return q},default:function(){return ye}}),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 o(N,R){var A;if(typeof Symbol>"u"||N[Symbol.iterator]==null){if(Array.isArray(N)||(A=l(N))||N&&typeof N.length=="number"){A&&(N=A);var C=0,y=function(){};return{s:y,n:function(){return C>=N.length?{done:!0}:{done:!1,value:N[C++]}},e:function(V){throw V},f:y}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
61
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var b=!0,L=!1,B;return{s:function(){A=N[Symbol.iterator]()},n:function(){var V=A.next();return b=V.done,V},e:function(V){L=!0,B=V},f:function(){try{!b&&A.return!=null&&A.return()}finally{if(L)throw B}}}}function l(N,R){if(N){if(typeof N=="string")return i(N,R);var A=Object.prototype.toString.call(N).slice(8,-1);if(A==="Object"&&N.constructor&&(A=N.constructor.name),A==="Map"||A==="Set")return Array.from(N);if(A==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(A))return i(N,R)}}function i(N,R){(R==null||R>N.length)&&(R=N.length);for(var A=0,C=new Array(R);A<R;A++)C[A]=N[A];return C}function c(N,R){if(!(N instanceof R))throw new TypeError("Cannot call a class as a function")}function d(N,R){for(var A=0;A<R.length;A++){var C=R[A];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(N,C.key,C)}}function h(N,R,A){return R&&d(N.prototype,R),N}var f=function(){function N(){c(this,N)}return h(N,[{key:"on",value:function(A,C){return this._callbacks=this._callbacks||{},this._callbacks[A]||(this._callbacks[A]=[]),this._callbacks[A].push(C),this}},{key:"emit",value:function(A){this._callbacks=this._callbacks||{};for(var C=this._callbacks[A],y=arguments.length,b=new Array(y>1?y-1:0),L=1;L<y;L++)b[L-1]=arguments[L];if(C){var B=o(C),U;try{for(B.s();!(U=B.n()).done;){var V=U.value;V.apply(this,b)}}catch(W){B.e(W)}finally{B.f()}}return this.element&&this.element.dispatchEvent(this.makeEvent("dropzone:"+A,{args:b})),this}},{key:"makeEvent",value:function(A,C){var y={bubbles:!0,cancelable:!0,detail:C};if(typeof window.CustomEvent=="function")return new CustomEvent(A,y);var b=document.createEvent("CustomEvent");return b.initCustomEvent(A,y.bubbles,y.cancelable,y.detail),b}},{key:"off",value:function(A,C){if(!this._callbacks||arguments.length===0)return this._callbacks={},this;var y=this._callbacks[A];if(!y)return this;if(arguments.length===1)return delete this._callbacks[A],this;for(var b=0;b<y.length;b++){var L=y[b];if(L===C){y.splice(b,1);break}}return this}}]),N}(),g='<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=g;function v(N,R){var A;if(typeof Symbol>"u"||N[Symbol.iterator]==null){if(Array.isArray(N)||(A=x(N))||N&&typeof N.length=="number"){A&&(N=A);var C=0,y=function(){};return{s:y,n:function(){return C>=N.length?{done:!0}:{done:!1,value:N[C++]}},e:function(V){throw V},f:y}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
57
+ `):" "+Hc(a[0]):"as no adapter specified";throw new Me("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:vo};function yo(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new dr(null,n)}function Wc(n){return yo(n),n.headers=Nt.from(n.headers),n.data=mo.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),Gc.getAdapter(n.adapter||Wr.adapter)(n).then(function(r){return yo(n),r.data=mo.call(n,n.transformResponse,r),r.headers=Nt.from(r.headers),r},function(r){return Pc(r)||(yo(n),r&&r.response&&(r.response.data=mo.call(n,n.transformResponse,r.response),r.response.headers=Nt.from(r.response.headers))),Promise.reject(r)})}const Kc="1.9.0",$s={};["object","boolean","number","function","string","symbol"].forEach((n,e)=>{$s[n]=function(r){return typeof r===n||"a"+(e<1?"n ":" ")+n}});const Xc={};$s.transitional=function(e,t,r){function s(a,o){return"[Axios v"+Kc+"] Transitional option '"+a+"'"+o+(r?". "+r:"")}return(a,o,c)=>{if(e===!1)throw new Me(s(o," has been removed"+(t?" in "+t:"")),Me.ERR_DEPRECATED);return t&&!Xc[o]&&(Xc[o]=!0,console.warn(s(o," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(a,o,c):!0}},$s.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function Dy(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 a=r[s],o=e[a];if(o){const c=n[a],i=c===void 0||o(c,a,n);if(i!==!0)throw new Me("option "+a+" must be "+i,Me.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new Me("Unknown option "+a,Me.ERR_BAD_OPTION)}}const Vs={assertOptions:Dy,validators:$s},rn=Vs.validators;let zn=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Ic,response:new Ic}}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 a=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?a&&!String(r.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(r.stack+=`
58
+ `+a):r.stack=a}catch{}}throw r}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=qn(this.defaults,t);const{transitional:r,paramsSerializer:s,headers:a}=t;r!==void 0&&Vs.assertOptions(r,{silentJSONParsing:rn.transitional(rn.boolean),forcedJSONParsing:rn.transitional(rn.boolean),clarifyTimeoutError:rn.transitional(rn.boolean)},!1),s!=null&&(ee.isFunction(s)?t.paramsSerializer={serialize:s}:Vs.assertOptions(s,{encode:rn.function,serialize:rn.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Vs.assertOptions(t,{baseUrl:rn.spelling("baseURL"),withXsrfToken:rn.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=a&&ee.merge(a.common,a[t.method]);a&&ee.forEach(["delete","get","head","post","put","patch","common"],p=>{delete a[p]}),t.headers=Nt.concat(o,a);const c=[];let i=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(t)===!1||(i=i&&v.synchronous,c.unshift(v.fulfilled,v.rejected))});const l=[];this.interceptors.response.forEach(function(v){l.push(v.fulfilled,v.rejected)});let d,h=0,f;if(!i){const p=[Wc.bind(this),void 0];for(p.unshift.apply(p,c),p.push.apply(p,l),f=p.length,d=Promise.resolve(t);h<f;)d=d.then(p[h++],p[h++]);return d}f=c.length;let g=t;for(h=0;h<f;){const p=c[h++],v=c[h++];try{g=p(g)}catch(x){v.call(this,x);break}}try{d=Wc.call(this,g)}catch(p){return Promise.reject(p)}for(h=0,f=l.length;h<f;)d=d.then(l[h++],l[h++]);return d}getUri(e){e=qn(this.defaults,e);const t=Uc(e.baseURL,e.url,e.allowAbsoluteUrls);return Rc(t,e.params,e.paramsSerializer)}};ee.forEach(["delete","get","head","options"],function(e){zn.prototype[e]=function(t,r){return this.request(qn(r||{},{method:e,url:t,data:(r||{}).data}))}}),ee.forEach(["post","put","patch"],function(e){function t(r){return function(a,o,c){return this.request(qn(c||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:o}))}}zn.prototype[e]=t(),zn.prototype[e+"Form"]=t(!0)});let Uy=class eu{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(a){t=a});const r=this;this.promise.then(s=>{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](s);r._listeners=null}),this.promise.then=s=>{let a;const o=new Promise(c=>{r.subscribe(c),a=c}).then(s);return o.cancel=function(){r.unsubscribe(a)},o},e(function(a,o,c){r.reason||(r.reason=new dr(a,o,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 eu(function(s){e=s}),cancel:e}}};function jy(n){return function(t){return n.apply(null,t)}}function $y(n){return ee.isObject(n)&&n.isAxiosError===!0}const bo={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(bo).forEach(([n,e])=>{bo[e]=n});function Yc(n){const e=new zn(n),t=pc(zn.prototype.request,e);return ee.extend(t,zn.prototype,e,{allOwnKeys:!0}),ee.extend(t,e,null,{allOwnKeys:!0}),t.create=function(s){return Yc(qn(n,s))},t}const nt=Yc(Wr);nt.Axios=zn,nt.CanceledError=dr,nt.CancelToken=Uy,nt.isCancel=Pc,nt.VERSION=Kc,nt.toFormData=Fs,nt.AxiosError=Me,nt.Cancel=nt.CanceledError,nt.all=function(e){return Promise.all(e)},nt.spread=jy,nt.isAxiosError=$y,nt.mergeConfig=qn,nt.AxiosHeaders=Nt,nt.formToJSON=n=>kc(ee.isHTMLForm(n)?new FormData(n):n),nt.getAdapter=Gc.getAdapter,nt.HttpStatusCode=bo,nt.default=nt;const{Axios:ox,AxiosError:ax,CanceledError:lx,isCancel:cx,CancelToken:ux,VERSION:dx,all:fx,Cancel:hx,isAxiosError:px,spread:mx,toFormData:gx,AxiosHeaders:vx,HttpStatusCode:yx,formToJSON:bx,getAdapter:xx,mergeConfig:Ex}=nt;var xo={exports:{}},Zc;function Vy(){return Zc||(Zc=1,function(n,e){(function(r,s){n.exports=s()})(self,function(){return function(){var t={3099:function(o){o.exports=function(c){if(typeof c!="function")throw TypeError(String(c)+" is not a function");return c}},6077:function(o,c,i){var l=i(111);o.exports=function(d){if(!l(d)&&d!==null)throw TypeError("Can't set "+String(d)+" as a prototype");return d}},1223:function(o,c,i){var l=i(5112),d=i(30),h=i(3070),f=l("unscopables"),g=Array.prototype;g[f]==null&&h.f(g,f,{configurable:!0,value:d(null)}),o.exports=function(p){g[f][p]=!0}},1530:function(o,c,i){var l=i(8710).charAt;o.exports=function(d,h,f){return h+(f?l(d,h).length:1)}},5787:function(o){o.exports=function(c,i,l){if(!(c instanceof i))throw TypeError("Incorrect "+(l?l+" ":"")+"invocation");return c}},9670:function(o,c,i){var l=i(111);o.exports=function(d){if(!l(d))throw TypeError(String(d)+" is not an object");return d}},4019:function(o){o.exports=typeof ArrayBuffer<"u"&&typeof DataView<"u"},260:function(o,c,i){var l=i(4019),d=i(9781),h=i(7854),f=i(111),g=i(6656),p=i(648),v=i(8880),x=i(1320),T=i(3070).f,S=i(9518),I=i(7674),F=i(5112),M=i(9711),z=h.Int8Array,X=z&&z.prototype,H=h.Uint8ClampedArray,re=H&&H.prototype,G=z&&S(z),E=X&&S(X),P=Object.prototype,O=P.isPrototypeOf,_=F("toStringTag"),j=M("TYPED_ARRAY_TAG"),$=l&&!!I&&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"||g(J,R)||g(te,R)},ge=function(ye){if(!f(ye))return!1;var N=p(ye);return g(J,N)||g(te,N)},ve=function(ye){if(ge(ye))return ye;throw TypeError("Target is not a typed array")},xe=function(ye){if(I){if(O.call(G,ye))return ye}else for(var N in J)if(g(J,q)){var R=h[N];if(R&&(ye===R||O.call(R,ye)))return ye}throw TypeError("Target is not a typed array constructor")},he=function(ye,N,R){if(d){if(R)for(var A in J){var C=h[A];C&&g(C.prototype,ye)&&delete C.prototype[ye]}(!E[ye]||R)&&x(E,ye,R?N:$&&X[ye]||N)}},Oe=function(ye,N,R){var A,C;if(d){if(I){if(R)for(A in J)C=h[A],C&&g(C,ye)&&delete C[ye];if(!G[ye]||R)try{return x(G,ye,R?N:$&&z[ye]||N)}catch{}else return}for(A in J)C=h[A],C&&(!C[ye]||R)&&x(C,ye,N)}};for(q in J)h[q]||($=!1);if((!$||typeof G!="function"||G===Function.prototype)&&(G=function(){throw TypeError("Incorrect invocation")},$))for(q in J)h[q]&&I(h[q],G);if((!$||!E||E===P)&&(E=G.prototype,$))for(q in J)h[q]&&I(h[q].prototype,E);if($&&S(re)!==E&&I(re,E),d&&!g(E,_)){K=!0,T(E,_,{get:function(){return f(this)?this[j]:void 0}});for(q in J)h[q]&&v(h[q],j,q)}o.exports={NATIVE_ARRAY_BUFFER_VIEWS:$,TYPED_ARRAY_TAG:K&&j,aTypedArray:ve,aTypedArrayConstructor:xe,exportTypedArrayMethod:he,exportTypedArrayStaticMethod:Oe,isView:me,isTypedArray:ge,TypedArray:G,TypedArrayPrototype:E}},3331:function(o,c,i){var l=i(7854),d=i(9781),h=i(4019),f=i(8880),g=i(2248),p=i(7293),v=i(5787),x=i(9958),T=i(7466),S=i(7067),I=i(1179),F=i(9518),M=i(7674),z=i(8006).f,X=i(3070).f,H=i(1285),re=i(8003),G=i(9909),E=G.get,P=G.set,O="ArrayBuffer",_="DataView",j="prototype",$="Wrong length",K="Wrong index",q=l[O],J=q,te=l[_],me=te&&te[j],ge=Object.prototype,ve=l.RangeError,xe=I.pack,he=I.unpack,Oe=function(Q){return[Q&255]},ye=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]},A=function(Q){return xe(Q,23,4)},C=function(Q){return xe(Q,52,8)},y=function(Q,ne){X(Q[j],ne,{get:function(){return E(this)[ne]}})},b=function(Q,ne,oe,fe){var Ae=S(oe),De=E(Q);if(Ae+ne>De.byteLength)throw ve(K);var Ge=E(De.buffer).bytes,je=Ae+De.byteOffset,Be=Ge.slice(je,je+ne);return fe?Be:Be.reverse()},L=function(Q,ne,oe,fe,Ae,De){var Ge=S(oe),je=E(Q);if(Ge+ne>je.byteLength)throw ve(K);for(var Be=E(je.buffer).bytes,$e=Ge+je.byteOffset,rt=fe(+Ae),it=0;it<ne;it++)Be[$e+it]=rt[De?it:ne-it-1]};if(!h)J=function(ne){v(this,J,O);var oe=S(ne);P(this,{bytes:H.call(new Array(oe),0),byteLength:oe}),d||(this.byteLength=oe)},te=function(ne,oe,fe){v(this,te,_),v(ne,J,_);var Ae=E(ne).byteLength,De=x(oe);if(De<0||De>Ae)throw ve("Wrong offset");if(fe=fe===void 0?Ae-De:T(fe),De+fe>Ae)throw ve($);P(this,{buffer:ne,byteLength:fe,byteOffset:De}),d||(this.buffer=ne,this.byteLength=fe,this.byteOffset=De)},d&&(y(J,"byteLength"),y(te,"buffer"),y(te,"byteLength"),y(te,"byteOffset")),g(te[j],{getInt8:function(ne){return b(this,1,ne)[0]<<24>>24},getUint8:function(ne){return b(this,1,ne)[0]},getInt16:function(ne){var oe=b(this,2,ne,arguments.length>1?arguments[1]:void 0);return(oe[1]<<8|oe[0])<<16>>16},getUint16:function(ne){var oe=b(this,2,ne,arguments.length>1?arguments[1]:void 0);return oe[1]<<8|oe[0]},getInt32:function(ne){return R(b(this,4,ne,arguments.length>1?arguments[1]:void 0))},getUint32:function(ne){return R(b(this,4,ne,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(ne){return he(b(this,4,ne,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(ne){return he(b(this,8,ne,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(ne,oe){L(this,1,ne,Oe,oe)},setUint8:function(ne,oe){L(this,1,ne,Oe,oe)},setInt16:function(ne,oe){L(this,2,ne,ye,oe,arguments.length>2?arguments[2]:void 0)},setUint16:function(ne,oe){L(this,2,ne,ye,oe,arguments.length>2?arguments[2]:void 0)},setInt32:function(ne,oe){L(this,4,ne,N,oe,arguments.length>2?arguments[2]:void 0)},setUint32:function(ne,oe){L(this,4,ne,N,oe,arguments.length>2?arguments[2]:void 0)},setFloat32:function(ne,oe){L(this,4,ne,A,oe,arguments.length>2?arguments[2]:void 0)},setFloat64:function(ne,oe){L(this,8,ne,C,oe,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!=O})){J=function(ne){return v(this,J),new q(S(ne))};for(var B=J[j]=q[j],U=z(q),V=0,W;U.length>V;)(W=U[V++])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))&&g(me,{setInt8:function(ne,oe){Y.call(this,ne,oe<<24>>24)},setUint8:function(ne,oe){Y.call(this,ne,oe<<24>>24)}},{unsafe:!0})}re(J,O),re(te,_),o.exports={ArrayBuffer:J,DataView:te}},1048:function(o,c,i){var l=i(7908),d=i(1400),h=i(7466),f=Math.min;o.exports=[].copyWithin||function(p,v){var x=l(this),T=h(x.length),S=d(p,T),I=d(v,T),F=arguments.length>2?arguments[2]:void 0,M=f((F===void 0?T:d(F,T))-I,T-S),z=1;for(I<S&&S<I+M&&(z=-1,I+=M-1,S+=M-1);M-- >0;)I in x?x[S]=x[I]:delete x[S],S+=z,I+=z;return x}},1285:function(o,c,i){var l=i(7908),d=i(1400),h=i(7466);o.exports=function(g){for(var p=l(this),v=h(p.length),x=arguments.length,T=d(x>1?arguments[1]:void 0,v),S=x>2?arguments[2]:void 0,I=S===void 0?v:d(S,v);I>T;)p[T++]=g;return p}},8533:function(o,c,i){var l=i(2092).forEach,d=i(9341),h=d("forEach");o.exports=h?[].forEach:function(g){return l(this,g,arguments.length>1?arguments[1]:void 0)}},8457:function(o,c,i){var l=i(9974),d=i(7908),h=i(3411),f=i(7659),g=i(7466),p=i(6135),v=i(1246);o.exports=function(T){var S=d(T),I=typeof this=="function"?this:Array,F=arguments.length,M=F>1?arguments[1]:void 0,z=M!==void 0,X=v(S),H=0,re,G,E,P,O,_;if(z&&(M=l(M,F>2?arguments[2]:void 0,2)),X!=null&&!(I==Array&&f(X)))for(P=X.call(S),O=P.next,G=new I;!(E=O.call(P)).done;H++)_=z?h(P,M,[E.value,H],!0):E.value,p(G,H,_);else for(re=g(S.length),G=new I(re);re>H;H++)_=z?M(S[H],H):S[H],p(G,H,_);return G.length=H,G}},1318:function(o,c,i){var l=i(5656),d=i(7466),h=i(1400),f=function(g){return function(p,v,x){var T=l(p),S=d(T.length),I=h(x,S),F;if(g&&v!=v){for(;S>I;)if(F=T[I++],F!=F)return!0}else for(;S>I;I++)if((g||I in T)&&T[I]===v)return g||I||0;return!g&&-1}};o.exports={includes:f(!0),indexOf:f(!1)}},2092:function(o,c,i){var l=i(9974),d=i(8361),h=i(7908),f=i(7466),g=i(5417),p=[].push,v=function(x){var T=x==1,S=x==2,I=x==3,F=x==4,M=x==6,z=x==7,X=x==5||M;return function(H,re,G,E){for(var P=h(H),O=d(P),_=l(re,G,3),j=f(O.length),$=0,K=E||g,q=T?K(H,j):S||z?K(H,0):void 0,J,te;j>$;$++)if((X||$ in O)&&(J=O[$],te=_(J,$,P),x))if(T)q[$]=te;else if(te)switch(x){case 3:return!0;case 5:return J;case 6:return $;case 2:p.call(q,J)}else switch(x){case 4:return!1;case 7:p.call(q,J)}return M?-1:I||F?F:q}};o.exports={forEach:v(0),map:v(1),filter:v(2),some:v(3),every:v(4),find:v(5),findIndex:v(6),filterOut:v(7)}},6583:function(o,c,i){var l=i(5656),d=i(9958),h=i(7466),f=i(9341),g=Math.min,p=[].lastIndexOf,v=!!p&&1/[1].lastIndexOf(1,-0)<0,x=f("lastIndexOf"),T=v||!x;o.exports=T?function(I){if(v)return p.apply(this,arguments)||0;var F=l(this),M=h(F.length),z=M-1;for(arguments.length>1&&(z=g(z,d(arguments[1]))),z<0&&(z=M+z);z>=0;z--)if(z in F&&F[z]===I)return z||0;return-1}:p},1194:function(o,c,i){var l=i(7293),d=i(5112),h=i(7392),f=d("species");o.exports=function(g){return h>=51||!l(function(){var p=[],v=p.constructor={};return v[f]=function(){return{foo:1}},p[g](Boolean).foo!==1})}},9341:function(o,c,i){var l=i(7293);o.exports=function(d,h){var f=[][d];return!!f&&l(function(){f.call(null,h||function(){throw 1},1)})}},3671:function(o,c,i){var l=i(3099),d=i(7908),h=i(8361),f=i(7466),g=function(p){return function(v,x,T,S){l(x);var I=d(v),F=h(I),M=f(I.length),z=p?M-1:0,X=p?-1:1;if(T<2)for(;;){if(z in F){S=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&&(S=x(S,F[z],z,I));return S}};o.exports={left:g(!1),right:g(!0)}},5417:function(o,c,i){var l=i(111),d=i(3157),h=i(5112),f=h("species");o.exports=function(g,p){var v;return d(g)&&(v=g.constructor,typeof v=="function"&&(v===Array||d(v.prototype))?v=void 0:l(v)&&(v=v[f],v===null&&(v=void 0))),new(v===void 0?Array:v)(p===0?0:p)}},3411:function(o,c,i){var l=i(9670),d=i(9212);o.exports=function(h,f,g,p){try{return p?f(l(g)[0],g[1]):f(g)}catch(v){throw d(h),v}}},7072:function(o,c,i){var l=i(5112),d=l("iterator"),h=!1;try{var f=0,g={next:function(){return{done:!!f++}},return:function(){h=!0}};g[d]=function(){return this},Array.from(g,function(){throw 2})}catch{}o.exports=function(p,v){if(!v&&!h)return!1;var x=!1;try{var T={};T[d]=function(){return{next:function(){return{done:x=!0}}}},p(T)}catch{}return x}},4326:function(o){var c={}.toString;o.exports=function(i){return c.call(i).slice(8,-1)}},648:function(o,c,i){var l=i(1694),d=i(4326),h=i(5112),f=h("toStringTag"),g=d(function(){return arguments}())=="Arguments",p=function(v,x){try{return v[x]}catch{}};o.exports=l?d:function(v){var x,T,S;return v===void 0?"Undefined":v===null?"Null":typeof(T=p(x=Object(v),f))=="string"?T:g?d(x):(S=d(x))=="Object"&&typeof x.callee=="function"?"Arguments":S}},9920:function(o,c,i){var l=i(6656),d=i(3887),h=i(1236),f=i(3070);o.exports=function(g,p){for(var v=d(p),x=f.f,T=h.f,S=0;S<v.length;S++){var I=v[S];l(g,I)||x(g,I,T(p,I))}}},8544:function(o,c,i){var l=i(7293);o.exports=!l(function(){function d(){}return d.prototype.constructor=null,Object.getPrototypeOf(new d)!==d.prototype})},4994:function(o,c,i){var l=i(3383).IteratorPrototype,d=i(30),h=i(9114),f=i(8003),g=i(7497),p=function(){return this};o.exports=function(v,x,T){var S=x+" Iterator";return v.prototype=d(l,{next:h(1,T)}),f(v,S,!1,!0),g[S]=p,v}},8880:function(o,c,i){var l=i(9781),d=i(3070),h=i(9114);o.exports=l?function(f,g,p){return d.f(f,g,h(1,p))}:function(f,g,p){return f[g]=p,f}},9114:function(o){o.exports=function(c,i){return{enumerable:!(c&1),configurable:!(c&2),writable:!(c&4),value:i}}},6135:function(o,c,i){var l=i(7593),d=i(3070),h=i(9114);o.exports=function(f,g,p){var v=l(g);v in f?d.f(f,v,h(0,p)):f[v]=p}},654:function(o,c,i){var l=i(2109),d=i(4994),h=i(9518),f=i(7674),g=i(8003),p=i(8880),v=i(1320),x=i(5112),T=i(1913),S=i(7497),I=i(3383),F=I.IteratorPrototype,M=I.BUGGY_SAFARI_ITERATORS,z=x("iterator"),X="keys",H="values",re="entries",G=function(){return this};o.exports=function(E,P,O,_,j,$,K){d(O,P,_);var q=function(N){if(N===j&&ve)return ve;if(!M&&N in me)return me[N];switch(N){case X:return function(){return new O(this,N)};case H:return function(){return new O(this,N)};case re:return function(){return new O(this,N)}}return function(){return new O(this)}},J=P+" Iterator",te=!1,me=E.prototype,ge=me[z]||me["@@iterator"]||j&&me[j],ve=!M&&ge||q(j),xe=P=="Array"&&me.entries||ge,he,Oe,ye;if(xe&&(he=h(xe.call(new E)),F!==Object.prototype&&he.next&&(!T&&h(he)!==F&&(f?f(he,F):typeof he[z]!="function"&&p(he,z,G)),g(he,J,!0,!0),T&&(S[J]=G))),j==H&&ge&&ge.name!==H&&(te=!0,ve=function(){return ge.call(this)}),(!T||K)&&me[z]!==ve&&p(me,z,ve),S[P]=ve,j)if(Oe={values:q(H),keys:$?ve:q(X),entries:q(re)},K)for(ye in Oe)(M||te||!(ye in me))&&v(me,ye,Oe[ye]);else l({target:P,proto:!0,forced:M||te},Oe);return Oe}},9781:function(o,c,i){var l=i(7293);o.exports=!l(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},317:function(o,c,i){var l=i(7854),d=i(111),h=l.document,f=d(h)&&d(h.createElement);o.exports=function(g){return f?h.createElement(g):{}}},8324:function(o){o.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(o,c,i){var l=i(5005);o.exports=l("navigator","userAgent")||""},7392:function(o,c,i){var l=i(7854),d=i(8113),h=l.process,f=h&&h.versions,g=f&&f.v8,p,v;g?(p=g.split("."),v=p[0]+p[1]):d&&(p=d.match(/Edge\/(\d+)/),(!p||p[1]>=74)&&(p=d.match(/Chrome\/(\d+)/),p&&(v=p[1]))),o.exports=v&&+v},748:function(o){o.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(o,c,i){var l=i(7854),d=i(1236).f,h=i(8880),f=i(1320),g=i(3505),p=i(9920),v=i(4705);o.exports=function(x,T){var S=x.target,I=x.global,F=x.stat,M,z,X,H,re,G;if(I?z=l:F?z=l[S]||g(S,{}):z=(l[S]||{}).prototype,z)for(X in T){if(re=T[X],x.noTargetGet?(G=d(z,X),H=G&&G.value):H=z[X],M=v(I?X:S+(F?".":"#")+X,x.forced),!M&&H!==void 0){if(typeof re==typeof H)continue;p(re,H)}(x.sham||H&&H.sham)&&h(re,"sham",!0),f(z,X,re,x)}}},7293:function(o){o.exports=function(c){try{return!!c()}catch{return!0}}},7007:function(o,c,i){i(4916);var l=i(1320),d=i(7293),h=i(5112),f=i(2261),g=i(8880),p=h("species"),v=!d(function(){var F=/./;return F.exec=function(){var M=[];return M.groups={a:"7"},M},"".replace(F,"$<a>")!=="7"}),x=function(){return"a".replace(/./,"$0")==="$0"}(),T=h("replace"),S=function(){return/./[T]?/./[T]("a","$0")==="":!1}(),I=!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"});o.exports=function(F,M,z,X){var H=h(F),re=!d(function(){var j={};return j[H]=function(){return 7},""[F](j)!=7}),G=re&&!d(function(){var j=!1,$=/a/;return F==="split"&&($={},$.constructor={},$.constructor[p]=function(){return $},$.flags="",$[H]=/./[H]),$.exec=function(){return j=!0,null},$[H](""),!j});if(!re||!G||F==="replace"&&!(v&&x&&!S)||F==="split"&&!I){var E=/./[H],P=z(H,""[F],function(j,$,K,q,J){return $.exec===f?re&&!J?{done:!0,value:E.call($,K,q)}:{done:!0,value:j.call(K,$,q)}:{done:!1}},{REPLACE_KEEPS_$0:x,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:S}),O=P[0],_=P[1];l(String.prototype,F,O),l(RegExp.prototype,H,M==2?function(j,$){return _.call(j,this,$)}:function(j){return _.call(j,this)})}X&&g(RegExp.prototype[H],"sham",!0)}},9974:function(o,c,i){var l=i(3099);o.exports=function(d,h,f){if(l(d),h===void 0)return d;switch(f){case 0:return function(){return d.call(h)};case 1:return function(g){return d.call(h,g)};case 2:return function(g,p){return d.call(h,g,p)};case 3:return function(g,p,v){return d.call(h,g,p,v)}}return function(){return d.apply(h,arguments)}}},5005:function(o,c,i){var l=i(857),d=i(7854),h=function(f){return typeof f=="function"?f:void 0};o.exports=function(f,g){return arguments.length<2?h(l[f])||h(d[f]):l[f]&&l[f][g]||d[f]&&d[f][g]}},1246:function(o,c,i){var l=i(648),d=i(7497),h=i(5112),f=h("iterator");o.exports=function(g){if(g!=null)return g[f]||g["@@iterator"]||d[l(g)]}},8554:function(o,c,i){var l=i(9670),d=i(1246);o.exports=function(h){var f=d(h);if(typeof f!="function")throw TypeError(String(h)+" is not iterable");return l(f.call(h))}},647:function(o,c,i){var l=i(7908),d=Math.floor,h="".replace,f=/\$([$&'`]|\d\d?|<[^>]*>)/g,g=/\$([$&'`]|\d\d?)/g;o.exports=function(p,v,x,T,S,I){var F=x+p.length,M=T.length,z=g;return S!==void 0&&(S=l(S),z=f),h.call(I,z,function(X,H){var re;switch(H.charAt(0)){case"$":return"$";case"&":return p;case"`":return v.slice(0,x);case"'":return v.slice(F);case"<":re=S[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?T[E-1]===void 0?H.charAt(1):T[E-1]+H.charAt(1):X}re=T[G-1]}return re===void 0?"":re})}},7854:function(o,c,i){var l=function(d){return d&&d.Math==Math&&d};o.exports=l(typeof globalThis=="object"&&globalThis)||l(typeof window=="object"&&window)||l(typeof self=="object"&&self)||l(typeof i.g=="object"&&i.g)||function(){return this}()||Function("return this")()},6656:function(o){var c={}.hasOwnProperty;o.exports=function(i,l){return c.call(i,l)}},3501:function(o){o.exports={}},490:function(o,c,i){var l=i(5005);o.exports=l("document","documentElement")},4664:function(o,c,i){var l=i(9781),d=i(7293),h=i(317);o.exports=!l&&!d(function(){return Object.defineProperty(h("div"),"a",{get:function(){return 7}}).a!=7})},1179:function(o){var c=Math.abs,i=Math.pow,l=Math.floor,d=Math.log,h=Math.LN2,f=function(p,v,x){var T=new Array(x),S=x*8-v-1,I=(1<<S)-1,F=I>>1,M=v===23?i(2,-24)-i(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=I):(H=l(d(p)/h),p*(G=i(2,-H))<1&&(H--,G*=2),H+F>=1?p+=M/G:p+=M*i(2,1-F),p*G>=2&&(H++,G/=2),H+F>=I?(re=0,H=I):H+F>=1?(re=(p*G-1)*i(2,v),H=H+F):(re=p*i(2,F-1)*i(2,v),H=0));v>=8;T[X++]=re&255,re/=256,v-=8);for(H=H<<v|re,S+=v;S>0;T[X++]=H&255,H/=256,S-=8);return T[--X]|=z*128,T},g=function(p,v){var x=p.length,T=x*8-v-1,S=(1<<T)-1,I=S>>1,F=T-7,M=x-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+=v;F>0;H=H*256+p[M],M--,F-=8);if(X===0)X=1-I;else{if(X===S)return H?NaN:z?-1/0:1/0;H=H+i(2,v),X=X-I}return(z?-1:1)*H*i(2,X-v)};o.exports={pack:f,unpack:g}},8361:function(o,c,i){var l=i(7293),d=i(4326),h="".split;o.exports=l(function(){return!Object("z").propertyIsEnumerable(0)})?function(f){return d(f)=="String"?h.call(f,""):Object(f)}:Object},9587:function(o,c,i){var l=i(111),d=i(7674);o.exports=function(h,f,g){var p,v;return d&&typeof(p=f.constructor)=="function"&&p!==g&&l(v=p.prototype)&&v!==g.prototype&&d(h,v),h}},2788:function(o,c,i){var l=i(5465),d=Function.toString;typeof l.inspectSource!="function"&&(l.inspectSource=function(h){return d.call(h)}),o.exports=l.inspectSource},9909:function(o,c,i){var l=i(8536),d=i(7854),h=i(111),f=i(8880),g=i(6656),p=i(5465),v=i(6200),x=i(3501),T=d.WeakMap,S,I,F,M=function(P){return F(P)?I(P):S(P,{})},z=function(P){return function(O){var _;if(!h(O)||(_=I(O)).type!==P)throw TypeError("Incompatible receiver, "+P+" required");return _}};if(l){var X=p.state||(p.state=new T),H=X.get,re=X.has,G=X.set;S=function(P,O){return O.facade=P,G.call(X,P,O),O},I=function(P){return H.call(X,P)||{}},F=function(P){return re.call(X,P)}}else{var E=v("state");x[E]=!0,S=function(P,O){return O.facade=P,f(P,E,O),O},I=function(P){return g(P,E)?P[E]:{}},F=function(P){return g(P,E)}}o.exports={set:S,get:I,has:F,enforce:M,getterFor:z}},7659:function(o,c,i){var l=i(5112),d=i(7497),h=l("iterator"),f=Array.prototype;o.exports=function(g){return g!==void 0&&(d.Array===g||f[h]===g)}},3157:function(o,c,i){var l=i(4326);o.exports=Array.isArray||function(h){return l(h)=="Array"}},4705:function(o,c,i){var l=i(7293),d=/#|\.prototype\./,h=function(x,T){var S=g[f(x)];return S==v?!0:S==p?!1:typeof T=="function"?l(T):!!T},f=h.normalize=function(x){return String(x).replace(d,".").toLowerCase()},g=h.data={},p=h.NATIVE="N",v=h.POLYFILL="P";o.exports=h},111:function(o){o.exports=function(c){return typeof c=="object"?c!==null:typeof c=="function"}},1913:function(o){o.exports=!1},7850:function(o,c,i){var l=i(111),d=i(4326),h=i(5112),f=h("match");o.exports=function(g){var p;return l(g)&&((p=g[f])!==void 0?!!p:d(g)=="RegExp")}},9212:function(o,c,i){var l=i(9670);o.exports=function(d){var h=d.return;if(h!==void 0)return l(h.call(d)).value}},3383:function(o,c,i){var l=i(7293),d=i(9518),h=i(8880),f=i(6656),g=i(5112),p=i(1913),v=g("iterator"),x=!1,T=function(){return this},S,I,F;[].keys&&(F=[].keys(),"next"in F?(I=d(d(F)),I!==Object.prototype&&(S=I)):x=!0);var M=S==null||l(function(){var z={};return S[v].call(z)!==z});M&&(S={}),(!p||M)&&!f(S,v)&&h(S,v,T),o.exports={IteratorPrototype:S,BUGGY_SAFARI_ITERATORS:x}},7497:function(o){o.exports={}},133:function(o,c,i){var l=i(7293);o.exports=!!Object.getOwnPropertySymbols&&!l(function(){return!String(Symbol())})},590:function(o,c,i){var l=i(7293),d=i(5112),h=i(1913),f=d("iterator");o.exports=!l(function(){var g=new URL("b?a=1&b=2&c=3","http://a"),p=g.searchParams,v="";return g.pathname="c%20d",p.forEach(function(x,T){p.delete("b"),v+=T+x}),h&&!g.toJSON||!p.sort||g.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"||v!=="a1c3"||new URL("http://x",void 0).host!=="x"})},8536:function(o,c,i){var l=i(7854),d=i(2788),h=l.WeakMap;o.exports=typeof h=="function"&&/native code/.test(d(h))},1574:function(o,c,i){var l=i(9781),d=i(7293),h=i(1956),f=i(5181),g=i(5296),p=i(7908),v=i(8361),x=Object.assign,T=Object.defineProperty;o.exports=!x||d(function(){if(l&&x({b:1},x(T({},"a",{enumerable:!0,get:function(){T(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var S={},I={},F=Symbol(),M="abcdefghijklmnopqrst";return S[F]=7,M.split("").forEach(function(z){I[z]=z}),x({},S)[F]!=7||h(x({},I)).join("")!=M})?function(I,F){for(var M=p(I),z=arguments.length,X=1,H=f.f,re=g.f;z>X;)for(var G=v(arguments[X++]),E=H?h(G).concat(H(G)):h(G),P=E.length,O=0,_;P>O;)_=E[O++],(!l||re.call(G,_))&&(M[_]=G[_]);return M}:x},30:function(o,c,i){var l=i(9670),d=i(6048),h=i(748),f=i(3501),g=i(490),p=i(317),v=i(6200),x=">",T="<",S="prototype",I="script",F=v("IE_PROTO"),M=function(){},z=function(E){return T+I+x+E+T+"/"+I+x},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"+I+":",O;return E.style.display="none",g.appendChild(E),E.src=String(P),O=E.contentWindow.document,O.open(),O.write(z("document.F=Object")),O.close(),O.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[S][h[E]];return G()};f[F]=!0,o.exports=Object.create||function(P,O){var _;return P!==null?(M[S]=l(P),_=new M,M[S]=null,_[F]=P):_=G(),O===void 0?_:d(_,O)}},6048:function(o,c,i){var l=i(9781),d=i(3070),h=i(9670),f=i(1956);o.exports=l?Object.defineProperties:function(p,v){h(p);for(var x=f(v),T=x.length,S=0,I;T>S;)d.f(p,I=x[S++],v[I]);return p}},3070:function(o,c,i){var l=i(9781),d=i(4664),h=i(9670),f=i(7593),g=Object.defineProperty;c.f=l?g:function(v,x,T){if(h(v),x=f(x,!0),h(T),d)try{return g(v,x,T)}catch{}if("get"in T||"set"in T)throw TypeError("Accessors not supported");return"value"in T&&(v[x]=T.value),v}},1236:function(o,c,i){var l=i(9781),d=i(5296),h=i(9114),f=i(5656),g=i(7593),p=i(6656),v=i(4664),x=Object.getOwnPropertyDescriptor;c.f=l?x:function(S,I){if(S=f(S),I=g(I,!0),v)try{return x(S,I)}catch{}if(p(S,I))return h(!d.f.call(S,I),S[I])}},8006:function(o,c,i){var l=i(6324),d=i(748),h=d.concat("length","prototype");c.f=Object.getOwnPropertyNames||function(g){return l(g,h)}},5181:function(o,c){c.f=Object.getOwnPropertySymbols},9518:function(o,c,i){var l=i(6656),d=i(7908),h=i(6200),f=i(8544),g=h("IE_PROTO"),p=Object.prototype;o.exports=f?Object.getPrototypeOf:function(v){return v=d(v),l(v,g)?v[g]:typeof v.constructor=="function"&&v instanceof v.constructor?v.constructor.prototype:v instanceof Object?p:null}},6324:function(o,c,i){var l=i(6656),d=i(5656),h=i(1318).indexOf,f=i(3501);o.exports=function(g,p){var v=d(g),x=0,T=[],S;for(S in v)!l(f,S)&&l(v,S)&&T.push(S);for(;p.length>x;)l(v,S=p[x++])&&(~h(T,S)||T.push(S));return T}},1956:function(o,c,i){var l=i(6324),d=i(748);o.exports=Object.keys||function(f){return l(f,d)}},5296:function(o,c){var i={}.propertyIsEnumerable,l=Object.getOwnPropertyDescriptor,d=l&&!i.call({1:2},1);c.f=d?function(f){var g=l(this,f);return!!g&&g.enumerable}:i},7674:function(o,c,i){var l=i(9670),d=i(6077);o.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var h=!1,f={},g;try{g=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,g.call(f,[]),h=f instanceof Array}catch{}return function(v,x){return l(v),d(x),h?g.call(v,x):v.__proto__=x,v}}():void 0)},288:function(o,c,i){var l=i(1694),d=i(648);o.exports=l?{}.toString:function(){return"[object "+d(this)+"]"}},3887:function(o,c,i){var l=i(5005),d=i(8006),h=i(5181),f=i(9670);o.exports=l("Reflect","ownKeys")||function(p){var v=d.f(f(p)),x=h.f;return x?v.concat(x(p)):v}},857:function(o,c,i){var l=i(7854);o.exports=l},2248:function(o,c,i){var l=i(1320);o.exports=function(d,h,f){for(var g in h)l(d,g,h[g],f);return d}},1320:function(o,c,i){var l=i(7854),d=i(8880),h=i(6656),f=i(3505),g=i(2788),p=i(9909),v=p.get,x=p.enforce,T=String(String).split("String");(o.exports=function(S,I,F,M){var z=M?!!M.unsafe:!1,X=M?!!M.enumerable:!1,H=M?!!M.noTargetGet:!1,re;if(typeof F=="function"&&(typeof I=="string"&&!h(F,"name")&&d(F,"name",I),re=x(F),re.source||(re.source=T.join(typeof I=="string"?I:""))),S===l){X?S[I]=F:f(I,F);return}else z?!H&&S[I]&&(X=!0):delete S[I];X?S[I]=F:d(S,I,F)})(Function.prototype,"toString",function(){return typeof this=="function"&&v(this).source||g(this)})},7651:function(o,c,i){var l=i(4326),d=i(2261);o.exports=function(h,f){var g=h.exec;if(typeof g=="function"){var p=g.call(h,f);if(typeof p!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return p}if(l(h)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return d.call(h,f)}},2261:function(o,c,i){var l=i(7066),d=i(2999),h=RegExp.prototype.exec,f=String.prototype.replace,g=h,p=function(){var S=/a/,I=/b*/g;return h.call(S,"a"),h.call(I,"a"),S.lastIndex!==0||I.lastIndex!==0}(),v=d.UNSUPPORTED_Y||d.BROKEN_CARET,x=/()??/.exec("")[1]!==void 0,T=p||x||v;T&&(g=function(I){var F=this,M,z,X,H,re=v&&F.sticky,G=l.call(F),E=F.source,P=0,O=I;return re&&(G=G.replace("y",""),G.indexOf("g")===-1&&(G+="g"),O=String(I).slice(F.lastIndex),F.lastIndex>0&&(!F.multiline||F.multiline&&I[F.lastIndex-1]!==`
59
+ `)&&(E="(?: "+E+")",O=" "+O,P++),z=new RegExp("^(?:"+E+")",G)),x&&(z=new RegExp("^"+E+"$(?!\\s)",G)),p&&(M=F.lastIndex),X=h.call(re?z:F,O),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),x&&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}),o.exports=g},7066:function(o,c,i){var l=i(9670);o.exports=function(){var d=l(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(o,c,i){var l=i(7293);function d(h,f){return RegExp(h,f)}c.UNSUPPORTED_Y=l(function(){var h=d("a","y");return h.lastIndex=2,h.exec("abcd")!=null}),c.BROKEN_CARET=l(function(){var h=d("^r","gy");return h.lastIndex=2,h.exec("str")!=null})},4488:function(o){o.exports=function(c){if(c==null)throw TypeError("Can't call method on "+c);return c}},3505:function(o,c,i){var l=i(7854),d=i(8880);o.exports=function(h,f){try{d(l,h,f)}catch{l[h]=f}return f}},6340:function(o,c,i){var l=i(5005),d=i(3070),h=i(5112),f=i(9781),g=h("species");o.exports=function(p){var v=l(p),x=d.f;f&&v&&!v[g]&&x(v,g,{configurable:!0,get:function(){return this}})}},8003:function(o,c,i){var l=i(3070).f,d=i(6656),h=i(5112),f=h("toStringTag");o.exports=function(g,p,v){g&&!d(g=v?g:g.prototype,f)&&l(g,f,{configurable:!0,value:p})}},6200:function(o,c,i){var l=i(2309),d=i(9711),h=l("keys");o.exports=function(f){return h[f]||(h[f]=d(f))}},5465:function(o,c,i){var l=i(7854),d=i(3505),h="__core-js_shared__",f=l[h]||d(h,{});o.exports=f},2309:function(o,c,i){var l=i(1913),d=i(5465);(o.exports=function(h,f){return d[h]||(d[h]=f!==void 0?f:{})})("versions",[]).push({version:"3.9.0",mode:l?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},6707:function(o,c,i){var l=i(9670),d=i(3099),h=i(5112),f=h("species");o.exports=function(g,p){var v=l(g).constructor,x;return v===void 0||(x=l(v)[f])==null?p:d(x)}},8710:function(o,c,i){var l=i(9958),d=i(4488),h=function(f){return function(g,p){var v=String(d(g)),x=l(p),T=v.length,S,I;return x<0||x>=T?f?"":void 0:(S=v.charCodeAt(x),S<55296||S>56319||x+1===T||(I=v.charCodeAt(x+1))<56320||I>57343?f?v.charAt(x):S:f?v.slice(x,x+2):(S-55296<<10)+(I-56320)+65536)}};o.exports={codeAt:h(!1),charAt:h(!0)}},3197:function(o){var c=2147483647,i=36,l=1,d=26,h=38,f=700,g=72,p=128,v="-",x=/[^\0-\u007E]/,T=/[.\u3002\uFF0E\uFF61]/g,S="Overflow: input needs wider integers to process",I=i-l,F=Math.floor,M=String.fromCharCode,z=function(G){for(var E=[],P=0,O=G.length;P<O;){var _=G.charCodeAt(P++);if(_>=55296&&_<=56319&&P<O){var j=G.charCodeAt(P++);(j&64512)==56320?E.push(((_&1023)<<10)+(j&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 O=0;for(G=P?F(G/f):G>>1,G+=F(G/E);G>I*d>>1;O+=i)G=F(G/I);return F(O+(I+1)*G/(G+h))},re=function(G){var E=[];G=z(G);var P=G.length,O=p,_=0,j=g,$,K;for($=0;$<G.length;$++)K=G[$],K<128&&E.push(M(K));var q=E.length,J=q;for(q&&E.push(v);J<P;){var te=c;for($=0;$<G.length;$++)K=G[$],K>=O&&K<te&&(te=K);var me=J+1;if(te-O>F((c-_)/me))throw RangeError(S);for(_+=(te-O)*me,O=te,$=0;$<G.length;$++){if(K=G[$],K<O&&++_>c)throw RangeError(S);if(K==O){for(var ge=_,ve=i;;ve+=i){var xe=ve<=j?l:ve>=j+d?d:ve-j;if(ge<xe)break;var he=ge-xe,Oe=i-xe;E.push(M(X(xe+he%Oe))),ge=F(he/Oe)}E.push(M(X(ge))),j=H(_,me,J==q),_=0,++J}}++_,++O}return E.join("")};o.exports=function(G){var E=[],P=G.toLowerCase().replace(T,".").split("."),O,_;for(O=0;O<P.length;O++)_=P[O],E.push(x.test(_)?"xn--"+re(_):_);return E.join(".")}},6091:function(o,c,i){var l=i(7293),d=i(1361),h="​…᠎";o.exports=function(f){return l(function(){return!!d[f]()||h[f]()!=h||d[f].name!==f})}},3111:function(o,c,i){var l=i(4488),d=i(1361),h="["+d+"]",f=RegExp("^"+h+h+"*"),g=RegExp(h+h+"*$"),p=function(v){return function(x){var T=String(l(x));return v&1&&(T=T.replace(f,"")),v&2&&(T=T.replace(g,"")),T}};o.exports={start:p(1),end:p(2),trim:p(3)}},1400:function(o,c,i){var l=i(9958),d=Math.max,h=Math.min;o.exports=function(f,g){var p=l(f);return p<0?d(p+g,0):h(p,g)}},7067:function(o,c,i){var l=i(9958),d=i(7466);o.exports=function(h){if(h===void 0)return 0;var f=l(h),g=d(f);if(f!==g)throw RangeError("Wrong length or index");return g}},5656:function(o,c,i){var l=i(8361),d=i(4488);o.exports=function(h){return l(d(h))}},9958:function(o){var c=Math.ceil,i=Math.floor;o.exports=function(l){return isNaN(l=+l)?0:(l>0?i:c)(l)}},7466:function(o,c,i){var l=i(9958),d=Math.min;o.exports=function(h){return h>0?d(l(h),9007199254740991):0}},7908:function(o,c,i){var l=i(4488);o.exports=function(d){return Object(l(d))}},4590:function(o,c,i){var l=i(3002);o.exports=function(d,h){var f=l(d);if(f%h)throw RangeError("Wrong offset");return f}},3002:function(o,c,i){var l=i(9958);o.exports=function(d){var h=l(d);if(h<0)throw RangeError("The argument can't be less than 0");return h}},7593:function(o,c,i){var l=i(111);o.exports=function(d,h){if(!l(d))return d;var f,g;if(h&&typeof(f=d.toString)=="function"&&!l(g=f.call(d))||typeof(f=d.valueOf)=="function"&&!l(g=f.call(d))||!h&&typeof(f=d.toString)=="function"&&!l(g=f.call(d)))return g;throw TypeError("Can't convert object to primitive value")}},1694:function(o,c,i){var l=i(5112),d=l("toStringTag"),h={};h[d]="z",o.exports=String(h)==="[object z]"},9843:function(o,c,i){var l=i(2109),d=i(7854),h=i(9781),f=i(3832),g=i(260),p=i(3331),v=i(5787),x=i(9114),T=i(8880),S=i(7466),I=i(7067),F=i(4590),M=i(7593),z=i(6656),X=i(648),H=i(111),re=i(30),G=i(7674),E=i(8006).f,P=i(7321),O=i(2092).forEach,_=i(6340),j=i(3070),$=i(1236),K=i(9909),q=i(9587),J=K.get,te=K.set,me=j.f,ge=$.f,ve=Math.round,xe=d.RangeError,he=p.ArrayBuffer,Oe=p.DataView,ye=g.NATIVE_ARRAY_BUFFER_VIEWS,N=g.TYPED_ARRAY_TAG,R=g.TypedArray,A=g.TypedArrayPrototype,C=g.aTypedArrayConstructor,y=g.isTypedArray,b="BYTES_PER_ELEMENT",L="Wrong length",B=function(Q,ne){for(var oe=0,fe=ne.length,Ae=new(C(Q))(fe);fe>oe;)Ae[oe]=ne[oe++];return Ae},U=function(Q,ne){me(Q,ne,{get:function(){return J(this)[ne]}})},V=function(Q){var ne;return Q instanceof he||(ne=X(Q))=="ArrayBuffer"||ne=="SharedArrayBuffer"},W=function(Q,ne){return y(Q)&&typeof ne!="symbol"&&ne in Q&&String(+ne)==String(ne)},Z=function(ne,oe){return W(ne,oe=M(oe,!0))?x(2,ne[oe]):ge(ne,oe)},Y=function(ne,oe,fe){return W(ne,oe=M(oe,!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[oe]=fe.value,ne):me(ne,oe,fe)};h?(ye||($.f=Z,j.f=Y,U(A,"buffer"),U(A,"byteOffset"),U(A,"byteLength"),U(A,"length")),l({target:"Object",stat:!0,forced:!ye},{getOwnPropertyDescriptor:Z,defineProperty:Y}),o.exports=function(Q,ne,oe){var fe=Q.match(/\d+$/)[0]/8,Ae=Q+(oe?"Clamped":"")+"Array",De="get"+Q,Ge="set"+Q,je=d[Ae],Be=je,$e=Be&&Be.prototype,rt={},it=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);oe&&(We=(We=ve(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 it(this,Pe)},set:function(We){return Dt(this,Pe,We)},enumerable:!0})};ye?f&&(Be=ne(function(_e,Pe,We,pe){return v(_e,Be,Ae),q(function(){return H(Pe)?V(Pe)?pe!==void 0?new je(Pe,F(We,fe),pe):We!==void 0?new je(Pe,F(We,fe)):new je(Pe):y(Pe)?B(Be,Pe):P.call(Be,Pe):new je(I(Pe))}(),_e,Be)}),G&&G(Be,R),O(E(je),function(_e){_e in Be||T(Be,_e,je[_e])}),Be.prototype=$e):(Be=ne(function(_e,Pe,We,pe){v(_e,Be,Ae);var be=0,Ce=0,Le,Ie,Ve;if(!H(Pe))Ve=I(Pe),Ie=Ve*fe,Le=new he(Ie);else if(V(Pe)){Le=Pe,Ce=F(We,fe);var Ke=Pe.byteLength;if(pe===void 0){if(Ke%fe||(Ie=Ke-Ce,Ie<0))throw xe(L)}else if(Ie=S(pe)*fe,Ie+Ce>Ke)throw xe(L);Ve=Ie/fe}else return y(Pe)?B(Be,Pe):P.call(Be,Pe);for(te(_e,{buffer:Le,byteOffset:Ce,byteLength:Ie,length:Ve,view:new Oe(Le)});be<Ve;)bt(_e,be++)}),G&&G(Be,R),$e=Be.prototype=re(A)),$e.constructor!==Be&&T($e,"constructor",Be),N&&T($e,N,Ae),rt[Ae]=Be,l({global:!0,forced:Be!=je,sham:!ye},rt),b in Be||T(Be,b,fe),b in $e||T($e,b,fe),_(Ae)}):o.exports=function(){}},3832:function(o,c,i){var l=i(7854),d=i(7293),h=i(7072),f=i(260).NATIVE_ARRAY_BUFFER_VIEWS,g=l.ArrayBuffer,p=l.Int8Array;o.exports=!f||!d(function(){p(1)})||!d(function(){new p(-1)})||!h(function(v){new p,new p(null),new p(1.5),new p(v)},!0)||d(function(){return new p(new g(2),1,void 0).length!==1})},3074:function(o,c,i){var l=i(260).aTypedArrayConstructor,d=i(6707);o.exports=function(h,f){for(var g=d(h,h.constructor),p=0,v=f.length,x=new(l(g))(v);v>p;)x[p]=f[p++];return x}},7321:function(o,c,i){var l=i(7908),d=i(7466),h=i(1246),f=i(7659),g=i(9974),p=i(260).aTypedArrayConstructor;o.exports=function(x){var T=l(x),S=arguments.length,I=S>1?arguments[1]:void 0,F=I!==void 0,M=h(T),z,X,H,re,G,E;if(M!=null&&!f(M))for(G=M.call(T),E=G.next,T=[];!(re=E.call(G)).done;)T.push(re.value);for(F&&S>2&&(I=g(I,arguments[2],2)),X=d(T.length),H=new(p(this))(X),z=0;X>z;z++)H[z]=F?I(T[z],z):T[z];return H}},9711:function(o){var c=0,i=Math.random();o.exports=function(l){return"Symbol("+String(l===void 0?"":l)+")_"+(++c+i).toString(36)}},3307:function(o,c,i){var l=i(133);o.exports=l&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},5112:function(o,c,i){var l=i(7854),d=i(2309),h=i(6656),f=i(9711),g=i(133),p=i(3307),v=d("wks"),x=l.Symbol,T=p?x:x&&x.withoutSetter||f;o.exports=function(S){return h(v,S)||(g&&h(x,S)?v[S]=x[S]:v[S]=T("Symbol."+S)),v[S]}},1361:function(o){o.exports=`
60
+ \v\f\r                 \u2028\u2029\uFEFF`},8264:function(o,c,i){var l=i(2109),d=i(7854),h=i(3331),f=i(6340),g="ArrayBuffer",p=h[g],v=d[g];l({global:!0,forced:v!==p},{ArrayBuffer:p}),f(g)},2222:function(o,c,i){var l=i(2109),d=i(7293),h=i(3157),f=i(111),g=i(7908),p=i(7466),v=i(6135),x=i(5417),T=i(1194),S=i(5112),I=i(7392),F=S("isConcatSpreadable"),M=9007199254740991,z="Maximum allowed index exceeded",X=I>=51||!d(function(){var E=[];return E[F]=!1,E.concat()[0]!==E}),H=T("concat"),re=function(E){if(!f(E))return!1;var P=E[F];return P!==void 0?!!P:h(E)},G=!X||!H;l({target:"Array",proto:!0,forced:G},{concat:function(P){var O=g(this),_=x(O,0),j=0,$,K,q,J,te;for($=-1,q=arguments.length;$<q;$++)if(te=$===-1?O:arguments[$],re(te)){if(J=p(te.length),j+J>M)throw TypeError(z);for(K=0;K<J;K++,j++)K in te&&v(_,j,te[K])}else{if(j>=M)throw TypeError(z);v(_,j++,te)}return _.length=j,_}})},7327:function(o,c,i){var l=i(2109),d=i(2092).filter,h=i(1194),f=h("filter");l({target:"Array",proto:!0,forced:!f},{filter:function(p){return d(this,p,arguments.length>1?arguments[1]:void 0)}})},2772:function(o,c,i){var l=i(2109),d=i(1318).indexOf,h=i(9341),f=[].indexOf,g=!!f&&1/[1].indexOf(1,-0)<0,p=h("indexOf");l({target:"Array",proto:!0,forced:g||!p},{indexOf:function(x){return g?f.apply(this,arguments)||0:d(this,x,arguments.length>1?arguments[1]:void 0)}})},6992:function(o,c,i){var l=i(5656),d=i(1223),h=i(7497),f=i(9909),g=i(654),p="Array Iterator",v=f.set,x=f.getterFor(p);o.exports=g(Array,"Array",function(T,S){v(this,{type:p,target:l(T),index:0,kind:S})},function(){var T=x(this),S=T.target,I=T.kind,F=T.index++;return!S||F>=S.length?(T.target=void 0,{value:void 0,done:!0}):I=="keys"?{value:F,done:!1}:I=="values"?{value:S[F],done:!1}:{value:[F,S[F]],done:!1}},"values"),h.Arguments=h.Array,d("keys"),d("values"),d("entries")},1249:function(o,c,i){var l=i(2109),d=i(2092).map,h=i(1194),f=h("map");l({target:"Array",proto:!0,forced:!f},{map:function(p){return d(this,p,arguments.length>1?arguments[1]:void 0)}})},7042:function(o,c,i){var l=i(2109),d=i(111),h=i(3157),f=i(1400),g=i(7466),p=i(5656),v=i(6135),x=i(5112),T=i(1194),S=T("slice"),I=x("species"),F=[].slice,M=Math.max;l({target:"Array",proto:!0,forced:!S},{slice:function(X,H){var re=p(this),G=g(re.length),E=f(X,G),P=f(H===void 0?G:H,G),O,_,j;if(h(re)&&(O=re.constructor,typeof O=="function"&&(O===Array||h(O.prototype))?O=void 0:d(O)&&(O=O[I],O===null&&(O=void 0)),O===Array||O===void 0))return F.call(re,E,P);for(_=new(O===void 0?Array:O)(M(P-E,0)),j=0;E<P;E++,j++)E in re&&v(_,j,re[E]);return _.length=j,_}})},561:function(o,c,i){var l=i(2109),d=i(1400),h=i(9958),f=i(7466),g=i(7908),p=i(5417),v=i(6135),x=i(1194),T=x("splice"),S=Math.max,I=Math.min,F=9007199254740991,M="Maximum allowed length exceeded";l({target:"Array",proto:!0,forced:!T},{splice:function(X,H){var re=g(this),G=f(re.length),E=d(X,G),P=arguments.length,O,_,j,$,K,q;if(P===0?O=_=0:P===1?(O=0,_=G-E):(O=P-2,_=I(S(h(H),0),G-E)),G+O-_>F)throw TypeError(M);for(j=p(re,_),$=0;$<_;$++)K=E+$,K in re&&v(j,$,re[K]);if(j.length=_,O<_){for($=E;$<G-_;$++)K=$+_,q=$+O,K in re?re[q]=re[K]:delete re[q];for($=G;$>G-_+O;$--)delete re[$-1]}else if(O>_)for($=G-_;$>E;$--)K=$+_-1,q=$+O-1,K in re?re[q]=re[K]:delete re[q];for($=0;$<O;$++)re[$+E]=arguments[$+2];return re.length=G-_+O,j}})},8309:function(o,c,i){var l=i(9781),d=i(3070).f,h=Function.prototype,f=h.toString,g=/^\s*function ([^ (]*)/,p="name";l&&!(p in h)&&d(h,p,{configurable:!0,get:function(){try{return f.call(this).match(g)[1]}catch{return""}}})},489:function(o,c,i){var l=i(2109),d=i(7293),h=i(7908),f=i(9518),g=i(8544),p=d(function(){f(1)});l({target:"Object",stat:!0,forced:p,sham:!g},{getPrototypeOf:function(x){return f(h(x))}})},1539:function(o,c,i){var l=i(1694),d=i(1320),h=i(288);l||d(Object.prototype,"toString",h,{unsafe:!0})},4916:function(o,c,i){var l=i(2109),d=i(2261);l({target:"RegExp",proto:!0,forced:/./.exec!==d},{exec:d})},9714:function(o,c,i){var l=i(1320),d=i(9670),h=i(7293),f=i(7066),g="toString",p=RegExp.prototype,v=p[g],x=h(function(){return v.call({source:"a",flags:"b"})!="/a/b"}),T=v.name!=g;(x||T)&&l(RegExp.prototype,g,function(){var I=d(this),F=String(I.source),M=I.flags,z=String(M===void 0&&I instanceof RegExp&&!("flags"in p)?f.call(I):M);return"/"+F+"/"+z},{unsafe:!0})},8783:function(o,c,i){var l=i(8710).charAt,d=i(9909),h=i(654),f="String Iterator",g=d.set,p=d.getterFor(f);h(String,"String",function(v){g(this,{type:f,string:String(v),index:0})},function(){var x=p(this),T=x.string,S=x.index,I;return S>=T.length?{value:void 0,done:!0}:(I=l(T,S),x.index+=I.length,{value:I,done:!1})})},4723:function(o,c,i){var l=i(7007),d=i(9670),h=i(7466),f=i(4488),g=i(1530),p=i(7651);l("match",1,function(v,x,T){return[function(I){var F=f(this),M=I==null?void 0:I[v];return M!==void 0?M.call(I,F):new RegExp(I)[v](String(F))},function(S){var I=T(x,S,this);if(I.done)return I.value;var F=d(S),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=g(M,h(F.lastIndex),z)),H++}return H===0?null:X}]})},5306:function(o,c,i){var l=i(7007),d=i(9670),h=i(7466),f=i(9958),g=i(4488),p=i(1530),v=i(647),x=i(7651),T=Math.max,S=Math.min,I=function(F){return F===void 0?F:String(F)};l("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,O){var _=g(this),j=P==null?void 0:P[F];return j!==void 0?j.call(P,_,O):M.call(String(_),P,O)},function(E,P){if(!H&&re||typeof P=="string"&&P.indexOf(G)===-1){var O=z(M,E,this,P);if(O.done)return O.value}var _=d(E),j=String(this),$=typeof P=="function";$||(P=String(P));var K=_.global;if(K){var q=_.unicode;_.lastIndex=0}for(var J=[];;){var te=x(_,j);if(te===null||(J.push(te),!K))break;var me=String(te[0]);me===""&&(_.lastIndex=p(j,h(_.lastIndex),q))}for(var ge="",ve=0,xe=0;xe<J.length;xe++){te=J[xe];for(var he=String(te[0]),Oe=T(S(f(te.index),j.length),0),ye=[],N=1;N<te.length;N++)ye.push(I(te[N]));var R=te.groups;if($){var A=[he].concat(ye,Oe,j);R!==void 0&&A.push(R);var C=String(P.apply(void 0,A))}else C=v(he,j,Oe,ye,R,P);Oe>=ve&&(ge+=j.slice(ve,Oe)+C,ve=Oe+he.length)}return ge+j.slice(ve)}]})},3123:function(o,c,i){var l=i(7007),d=i(7850),h=i(9670),f=i(4488),g=i(6707),p=i(1530),v=i(7466),x=i(7651),T=i(2261),S=i(7293),I=[].push,F=Math.min,M=4294967295,z=!S(function(){return!RegExp(M,"y")});l("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 O=String(f(this)),_=P===void 0?M:P>>>0;if(_===0)return[];if(E===void 0)return[O];if(!d(E))return H.call(O,E,_);for(var j=[],$=(E.ignoreCase?"i":"")+(E.multiline?"m":"")+(E.unicode?"u":"")+(E.sticky?"y":""),K=0,q=new RegExp(E.source,$+"g"),J,te,me;(J=T.call(q,O))&&(te=q.lastIndex,!(te>K&&(j.push(O.slice(K,J.index)),J.length>1&&J.index<O.length&&I.apply(j,J.slice(1)),me=J[0].length,K=te,j.length>=_)));)q.lastIndex===J.index&&q.lastIndex++;return K===O.length?(me||!q.test(""))&&j.push(""):j.push(O.slice(K)),j.length>_?j.slice(0,_):j}:"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,O){var _=f(this),j=P==null?void 0:P[X];return j!==void 0?j.call(P,_,O):G.call(String(_),P,O)},function(E,P){var O=re(G,E,this,P,G!==H);if(O.done)return O.value;var _=h(E),j=String(this),$=g(_,RegExp),K=_.unicode,q=(_.ignoreCase?"i":"")+(_.multiline?"m":"")+(_.unicode?"u":"")+(z?"y":"g"),J=new $(z?_:"^(?:"+_.source+")",q),te=P===void 0?M:P>>>0;if(te===0)return[];if(j.length===0)return x(J,j)===null?[j]:[];for(var me=0,ge=0,ve=[];ge<j.length;){J.lastIndex=z?ge:0;var xe=x(J,z?j:j.slice(ge)),he;if(xe===null||(he=F(v(J.lastIndex+(z?0:ge)),j.length))===me)ge=p(j,ge,K);else{if(ve.push(j.slice(me,ge)),ve.length===te)return ve;for(var Oe=1;Oe<=xe.length-1;Oe++)if(ve.push(xe[Oe]),ve.length===te)return ve;ge=me=he}}return ve.push(j.slice(me)),ve}]},!z)},3210:function(o,c,i){var l=i(2109),d=i(3111).trim,h=i(6091);l({target:"String",proto:!0,forced:h("trim")},{trim:function(){return d(this)}})},2990:function(o,c,i){var l=i(260),d=i(1048),h=l.aTypedArray,f=l.exportTypedArrayMethod;f("copyWithin",function(p,v){return d.call(h(this),p,v,arguments.length>2?arguments[2]:void 0)})},8927:function(o,c,i){var l=i(260),d=i(2092).every,h=l.aTypedArray,f=l.exportTypedArrayMethod;f("every",function(p){return d(h(this),p,arguments.length>1?arguments[1]:void 0)})},3105:function(o,c,i){var l=i(260),d=i(1285),h=l.aTypedArray,f=l.exportTypedArrayMethod;f("fill",function(p){return d.apply(h(this),arguments)})},5035:function(o,c,i){var l=i(260),d=i(2092).filter,h=i(3074),f=l.aTypedArray,g=l.exportTypedArrayMethod;g("filter",function(v){var x=d(f(this),v,arguments.length>1?arguments[1]:void 0);return h(this,x)})},7174:function(o,c,i){var l=i(260),d=i(2092).findIndex,h=l.aTypedArray,f=l.exportTypedArrayMethod;f("findIndex",function(p){return d(h(this),p,arguments.length>1?arguments[1]:void 0)})},4345:function(o,c,i){var l=i(260),d=i(2092).find,h=l.aTypedArray,f=l.exportTypedArrayMethod;f("find",function(p){return d(h(this),p,arguments.length>1?arguments[1]:void 0)})},2846:function(o,c,i){var l=i(260),d=i(2092).forEach,h=l.aTypedArray,f=l.exportTypedArrayMethod;f("forEach",function(p){d(h(this),p,arguments.length>1?arguments[1]:void 0)})},4731:function(o,c,i){var l=i(260),d=i(1318).includes,h=l.aTypedArray,f=l.exportTypedArrayMethod;f("includes",function(p){return d(h(this),p,arguments.length>1?arguments[1]:void 0)})},7209:function(o,c,i){var l=i(260),d=i(1318).indexOf,h=l.aTypedArray,f=l.exportTypedArrayMethod;f("indexOf",function(p){return d(h(this),p,arguments.length>1?arguments[1]:void 0)})},6319:function(o,c,i){var l=i(7854),d=i(260),h=i(6992),f=i(5112),g=f("iterator"),p=l.Uint8Array,v=h.values,x=h.keys,T=h.entries,S=d.aTypedArray,I=d.exportTypedArrayMethod,F=p&&p.prototype[g],M=!!F&&(F.name=="values"||F.name==null),z=function(){return v.call(S(this))};I("entries",function(){return T.call(S(this))}),I("keys",function(){return x.call(S(this))}),I("values",z,!M),I(g,z,!M)},8867:function(o,c,i){var l=i(260),d=l.aTypedArray,h=l.exportTypedArrayMethod,f=[].join;h("join",function(p){return f.apply(d(this),arguments)})},7789:function(o,c,i){var l=i(260),d=i(6583),h=l.aTypedArray,f=l.exportTypedArrayMethod;f("lastIndexOf",function(p){return d.apply(h(this),arguments)})},3739:function(o,c,i){var l=i(260),d=i(2092).map,h=i(6707),f=l.aTypedArray,g=l.aTypedArrayConstructor,p=l.exportTypedArrayMethod;p("map",function(x){return d(f(this),x,arguments.length>1?arguments[1]:void 0,function(T,S){return new(g(h(T,T.constructor)))(S)})})},4483:function(o,c,i){var l=i(260),d=i(3671).right,h=l.aTypedArray,f=l.exportTypedArrayMethod;f("reduceRight",function(p){return d(h(this),p,arguments.length,arguments.length>1?arguments[1]:void 0)})},9368:function(o,c,i){var l=i(260),d=i(3671).left,h=l.aTypedArray,f=l.exportTypedArrayMethod;f("reduce",function(p){return d(h(this),p,arguments.length,arguments.length>1?arguments[1]:void 0)})},2056:function(o,c,i){var l=i(260),d=l.aTypedArray,h=l.exportTypedArrayMethod,f=Math.floor;h("reverse",function(){for(var p=this,v=d(p).length,x=f(v/2),T=0,S;T<x;)S=p[T],p[T++]=p[--v],p[v]=S;return p})},3462:function(o,c,i){var l=i(260),d=i(7466),h=i(4590),f=i(7908),g=i(7293),p=l.aTypedArray,v=l.exportTypedArrayMethod,x=g(function(){new Int8Array(1).set({})});v("set",function(S){p(this);var I=h(arguments.length>1?arguments[1]:void 0,1),F=this.length,M=f(S),z=d(M.length),X=0;if(z+I>F)throw RangeError("Wrong length");for(;X<z;)this[I+X]=M[X++]},x)},678:function(o,c,i){var l=i(260),d=i(6707),h=i(7293),f=l.aTypedArray,g=l.aTypedArrayConstructor,p=l.exportTypedArrayMethod,v=[].slice,x=h(function(){new Int8Array(1).slice()});p("slice",function(S,I){for(var F=v.call(f(this),S,I),M=d(this,this.constructor),z=0,X=F.length,H=new(g(M))(X);X>z;)H[z]=F[z++];return H},x)},7462:function(o,c,i){var l=i(260),d=i(2092).some,h=l.aTypedArray,f=l.exportTypedArrayMethod;f("some",function(p){return d(h(this),p,arguments.length>1?arguments[1]:void 0)})},3824:function(o,c,i){var l=i(260),d=l.aTypedArray,h=l.exportTypedArrayMethod,f=[].sort;h("sort",function(p){return f.call(d(this),p)})},5021:function(o,c,i){var l=i(260),d=i(7466),h=i(1400),f=i(6707),g=l.aTypedArray,p=l.exportTypedArrayMethod;p("subarray",function(x,T){var S=g(this),I=S.length,F=h(x,I);return new(f(S,S.constructor))(S.buffer,S.byteOffset+F*S.BYTES_PER_ELEMENT,d((T===void 0?I:h(T,I))-F))})},2974:function(o,c,i){var l=i(7854),d=i(260),h=i(7293),f=l.Int8Array,g=d.aTypedArray,p=d.exportTypedArrayMethod,v=[].toLocaleString,x=[].slice,T=!!f&&h(function(){v.call(new f(1))}),S=h(function(){return[1,2].toLocaleString()!=new f([1,2]).toLocaleString()})||!h(function(){f.prototype.toLocaleString.call([1,2])});p("toLocaleString",function(){return v.apply(T?x.call(g(this)):g(this),arguments)},S)},5016:function(o,c,i){var l=i(260).exportTypedArrayMethod,d=i(7293),h=i(7854),f=h.Uint8Array,g=f&&f.prototype||{},p=[].toString,v=[].join;d(function(){p.call({})})&&(p=function(){return v.call(this)});var x=g.toString!=p;l("toString",p,x)},2472:function(o,c,i){var l=i(9843);l("Uint8",function(d){return function(f,g,p){return d(this,f,g,p)}})},4747:function(o,c,i){var l=i(7854),d=i(8324),h=i(8533),f=i(8880);for(var g in d){var p=l[g],v=p&&p.prototype;if(v&&v.forEach!==h)try{f(v,"forEach",h)}catch{v.forEach=h}}},3948:function(o,c,i){var l=i(7854),d=i(8324),h=i(6992),f=i(8880),g=i(5112),p=g("iterator"),v=g("toStringTag"),x=h.values;for(var T in d){var S=l[T],I=S&&S.prototype;if(I){if(I[p]!==x)try{f(I,p,x)}catch{I[p]=x}if(I[v]||f(I,v,T),d[T]){for(var F in h)if(I[F]!==h[F])try{f(I,F,h[F])}catch{I[F]=h[F]}}}}},1637:function(o,c,i){i(6992);var l=i(2109),d=i(5005),h=i(590),f=i(1320),g=i(2248),p=i(8003),v=i(4994),x=i(9909),T=i(5787),S=i(6656),I=i(9974),F=i(648),M=i(9670),z=i(111),X=i(30),H=i(9114),re=i(8554),G=i(1246),E=i(5112),P=d("fetch"),O=d("Headers"),_=E("iterator"),j="URLSearchParams",$=j+"Iterator",K=x.set,q=x.getterFor(j),J=x.getterFor($),te=/\+/g,me=Array(4),ge=function(B){return me[B-1]||(me[B-1]=RegExp("((?:%[\\da-f]{2}){"+B+"})","gi"))},ve=function(B){try{return decodeURIComponent(B)}catch{return B}},xe=function(B){var U=B.replace(te," "),V=4;try{return decodeURIComponent(U)}catch{for(;V;)U=U.replace(ge(V--),ve);return U}},he=/[!'()~]|%20/g,Oe={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ye=function(B){return Oe[B]},N=function(B){return encodeURIComponent(B).replace(he,ye)},R=function(B,U){if(U)for(var V=U.split("&"),W=0,Z,Y;W<V.length;)Z=V[W++],Z.length&&(Y=Z.split("="),B.push({key:xe(Y.shift()),value:xe(Y.join("="))}))},A=function(B){this.entries.length=0,R(this.entries,B)},C=function(B,U){if(B<U)throw TypeError("Not enough arguments")},y=v(function(U,V){K(this,{type:$,iterator:re(q(U).entries),kind:V})},"Iterator",function(){var U=J(this),V=U.kind,W=U.iterator.next(),Z=W.value;return W.done||(W.value=V==="keys"?Z.key:V==="values"?Z.value:[Z.key,Z.value]),W}),b=function(){T(this,b,j);var U=arguments.length>0?arguments[0]:void 0,V=this,W=[],Z,Y,Q,ne,oe,fe,Ae,De,Ge;if(K(V,{type:j,entries:W,updateURL:function(){},updateSearchParams:A}),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(oe=re(M(ne.value)),fe=oe.next,(Ae=fe.call(oe)).done||(De=fe.call(oe)).done||!fe.call(oe).done)throw TypeError("Expected sequence with length 2");W.push({key:Ae.value+"",value:De.value+""})}else for(Ge in U)S(U,Ge)&&W.push({key:Ge,value:U[Ge]+""});else R(W,typeof U=="string"?U.charAt(0)==="?"?U.slice(1):U:U+"")},L=b.prototype;g(L,{append:function(U,V){C(arguments.length,2);var W=q(this);W.entries.push({key:U+"",value:V+""}),W.updateURL()},delete:function(B){C(arguments.length,1);for(var U=q(this),V=U.entries,W=B+"",Z=0;Z<V.length;)V[Z].key===W?V.splice(Z,1):Z++;U.updateURL()},get:function(U){C(arguments.length,1);for(var V=q(this).entries,W=U+"",Z=0;Z<V.length;Z++)if(V[Z].key===W)return V[Z].value;return null},getAll:function(U){C(arguments.length,1);for(var V=q(this).entries,W=U+"",Z=[],Y=0;Y<V.length;Y++)V[Y].key===W&&Z.push(V[Y].value);return Z},has:function(U){C(arguments.length,1);for(var V=q(this).entries,W=U+"",Z=0;Z<V.length;)if(V[Z++].key===W)return!0;return!1},set:function(U,V){C(arguments.length,1);for(var W=q(this),Z=W.entries,Y=!1,Q=U+"",ne=V+"",oe=0,fe;oe<Z.length;oe++)fe=Z[oe],fe.key===Q&&(Y?Z.splice(oe--,1):(Y=!0,fe.value=ne));Y||Z.push({key:Q,value:ne}),W.updateURL()},sort:function(){var U=q(this),V=U.entries,W=V.slice(),Z,Y,Q;for(V.length=0,Q=0;Q<W.length;Q++){for(Z=W[Q],Y=0;Y<Q;Y++)if(V[Y].key>Z.key){V.splice(Y,0,Z);break}Y===Q&&V.push(Z)}U.updateURL()},forEach:function(U){for(var V=q(this).entries,W=I(U,arguments.length>1?arguments[1]:void 0,3),Z=0,Y;Z<V.length;)Y=V[Z++],W(Y.value,Y.key,this)},keys:function(){return new y(this,"keys")},values:function(){return new y(this,"values")},entries:function(){return new y(this,"entries")}},{enumerable:!0}),f(L,_,L.entries),f(L,"toString",function(){for(var U=q(this).entries,V=[],W=0,Z;W<U.length;)Z=U[W++],V.push(N(Z.key)+"="+N(Z.value));return V.join("&")},{enumerable:!0}),p(b,j),l({global:!0,forced:!h},{URLSearchParams:b}),!h&&typeof P=="function"&&typeof O=="function"&&l({global:!0,enumerable:!0,forced:!0},{fetch:function(U){var V=[U],W,Z,Y;return arguments.length>1&&(W=arguments[1],z(W)&&(Z=W.body,F(Z)===j&&(Y=W.headers?new O(W.headers):new O,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)}))),V.push(W)),P.apply(this,V)}}),o.exports={URLSearchParams:b,getState:q}},285:function(o,c,i){i(8783);var l=i(2109),d=i(9781),h=i(590),f=i(7854),g=i(6048),p=i(1320),v=i(5787),x=i(6656),T=i(1574),S=i(8457),I=i(8710).codeAt,F=i(3197),M=i(8003),z=i(1637),X=i(9909),H=f.URL,re=z.URLSearchParams,G=z.getState,E=X.set,P=X.getterFor("URL"),O=Math.floor,_=Math.pow,j="Invalid authority",$="Invalid scheme",K="Invalid host",q="Invalid port",J=/[A-Za-z]/,te=/[\d+-.A-Za-z]/,me=/\d/,ge=/^(0x|0X)/,ve=/^[0-7]+$/,xe=/^\d+$/,he=/^[\dA-Fa-f]+$/,Oe=/[\u0000\t\u000A\u000D #%/:?@[\\]]/,ye=/[\u0000\t\u000A\u000D #/:?@[\\]]/,N=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,R=/[\t\u000A\u000D]/g,A,C=function(k,ae){var se,ce,de;if(ae.charAt(0)=="["){if(ae.charAt(ae.length-1)!="]"||(se=b(ae.slice(1,-1)),!se))return K;k.host=se}else if(ne(k)){if(ae=F(ae),Oe.test(ae)||(se=y(ae),se===null))return K;k.host=se}else{if(ye.test(ae))return K;for(se="",ce=S(ae),de=0;de<ce.length;de++)se+=Y(ce[de],U);k.host=se}},y=function(k){var ae=k.split("."),se,ce,de,ke,we,Ue,qe;if(ae.length&&ae[ae.length-1]==""&&ae.pop(),se=ae.length,se>4)return k;for(ce=[],de=0;de<se;de++){if(ke=ae[de],ke=="")return k;if(we=10,ke.length>1&&ke.charAt(0)=="0"&&(we=ge.test(ke)?16:8,ke=ke.slice(we==8?1:2)),ke==="")Ue=0;else{if(!(we==10?xe:we==8?ve:he).test(ke))return k;Ue=parseInt(ke,we)}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},b=function(k){var ae=[0,0,0,0,0,0,0,0],se=0,ce=null,de=0,ke,we,Ue,qe,Qe,Et,ue,st=function(){return k.charAt(de)};if(st()==":"){if(k.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(ke=we=0;we<4&&he.test(st());)ke=ke*16+parseInt(st(),16),de++,we++;if(st()=="."){if(we==0||(de-=we,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++]=ke}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},L=function(k){for(var ae=null,se=1,ce=null,de=0,ke=0;ke<8;ke++)k[ke]!==0?(de>se&&(ae=ce,se=de),ce=null,de=0):(ce===null&&(ce=ke),++de);return de>se&&(ae=ce,se=de),ae},B=function(k){var ae,se,ce,de;if(typeof k=="number"){for(ae=[],se=0;se<4;se++)ae.unshift(k%256),k=O(k/256);return ae.join(".")}else if(typeof k=="object"){for(ae="",ce=L(k),se=0;se<8;se++)de&&k[se]===0||(de&&(de=!1),ce===se?(ae+=se?":":"::",de=!0):(ae+=k[se].toString(16),se<7&&(ae+=":")));return"["+ae+"]"}return k},U={},V=T({},U,{" ":1,'"':1,"<":1,">":1,"`":1}),W=T({},V,{"#":1,"?":1,"{":1,"}":1}),Z=T({},W,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Y=function(k,ae){var se=I(k,0);return se>32&&se<127&&!x(ae,k)?k:encodeURIComponent(k)},Q={ftp:21,file:null,http:80,https:443,ws:80,wss:443},ne=function(k){return x(Q,k.scheme)},oe=function(k){return k.username!=""||k.password!=""},fe=function(k){return!k.host||k.cannotBeABaseURL||k.scheme=="file"},Ae=function(k,ae){var se;return k.length==2&&J.test(k.charAt(0))&&((se=k.charAt(1))==":"||!ae&&se=="|")},De=function(k){var ae;return k.length>1&&Ae(k.slice(0,2))&&(k.length==2||(ae=k.charAt(2))==="/"||ae==="\\"||ae==="?"||ae==="#")},Ge=function(k){var ae=k.path,se=ae.length;se&&(k.scheme!="file"||se!=1||!Ae(ae[0],!0))&&ae.pop()},je=function(k){return k==="."||k.toLowerCase()==="%2e"},Be=function(k){return k=k.toLowerCase(),k===".."||k==="%2e."||k===".%2e"||k==="%2e%2e"},$e={},rt={},it={},Dt={},bt={},_e={},Pe={},We={},pe={},be={},Ce={},Le={},Ie={},Ve={},Ke={},et={},dt={},ft={},It={},Ut={},lt={},Ot=function(k,ae,se,ce){var de=se||$e,ke=0,we="",Ue=!1,qe=!1,Qe=!1,Et,ue,st,Lt;for(se||(k.scheme="",k.username="",k.password="",k.host=null,k.port=null,k.path=[],k.query=null,k.fragment=null,k.cannotBeABaseURL=!1,ae=ae.replace(N,"")),ae=ae.replace(R,""),Et=S(ae);ke<=Et.length;){switch(ue=Et[ke],de){case $e:if(ue&&J.test(ue))we+=ue.toLowerCase(),de=rt;else{if(se)return $;de=it;continue}break;case rt:if(ue&&(te.test(ue)||ue=="+"||ue=="-"||ue=="."))we+=ue.toLowerCase();else if(ue==":"){if(se&&(ne(k)!=x(Q,we)||we=="file"&&(oe(k)||k.port!==null)||k.scheme=="file"&&!k.host))return;if(k.scheme=we,se){ne(k)&&Q[k.scheme]==k.port&&(k.port=null);return}we="",k.scheme=="file"?de=Ve:ne(k)&&ce&&ce.scheme==k.scheme?de=Dt:ne(k)?de=We:Et[ke+1]=="/"?(de=bt,ke++):(k.cannotBeABaseURL=!0,k.path.push(""),de=It)}else{if(se)return $;we="",de=it,ke=0;continue}break;case it:if(!ce||ce.cannotBeABaseURL&&ue!="#")return $;if(ce.cannotBeABaseURL&&ue=="#"){k.scheme=ce.scheme,k.path=ce.path.slice(),k.query=ce.query,k.fragment="",k.cannotBeABaseURL=!0,de=lt;break}de=ce.scheme=="file"?Ve:_e;continue;case Dt:if(ue=="/"&&Et[ke+1]=="/")de=pe,ke++;else{de=_e;continue}break;case bt:if(ue=="/"){de=be;break}else{de=ft;continue}case _e:if(k.scheme=ce.scheme,ue==A)k.username=ce.username,k.password=ce.password,k.host=ce.host,k.port=ce.port,k.path=ce.path.slice(),k.query=ce.query;else if(ue=="/"||ue=="\\"&&ne(k))de=Pe;else if(ue=="?")k.username=ce.username,k.password=ce.password,k.host=ce.host,k.port=ce.port,k.path=ce.path.slice(),k.query="",de=Ut;else if(ue=="#")k.username=ce.username,k.password=ce.password,k.host=ce.host,k.port=ce.port,k.path=ce.path.slice(),k.query=ce.query,k.fragment="",de=lt;else{k.username=ce.username,k.password=ce.password,k.host=ce.host,k.port=ce.port,k.path=ce.path.slice(),k.path.pop(),de=ft;continue}break;case Pe:if(ne(k)&&(ue=="/"||ue=="\\"))de=pe;else if(ue=="/")de=be;else{k.username=ce.username,k.password=ce.password,k.host=ce.host,k.port=ce.port,de=ft;continue}break;case We:if(de=pe,ue!="/"||we.charAt(ke+1)!="/")continue;ke++;break;case pe:if(ue!="/"&&ue!="\\"){de=be;continue}break;case be:if(ue=="@"){Ue&&(we="%40"+we),Ue=!0,st=S(we);for(var Gn=0;Gn<st.length;Gn++){var gn=st[Gn];if(gn==":"&&!Qe){Qe=!0;continue}var Rn=Y(gn,Z);Qe?k.password+=Rn:k.username+=Rn}we=""}else if(ue==A||ue=="/"||ue=="?"||ue=="#"||ue=="\\"&&ne(k)){if(Ue&&we=="")return j;ke-=S(we).length+1,we="",de=Ce}else we+=ue;break;case Ce:case Le:if(se&&k.scheme=="file"){de=et;continue}else if(ue==":"&&!qe){if(we=="")return K;if(Lt=C(k,we),Lt)return Lt;if(we="",de=Ie,se==Le)return}else if(ue==A||ue=="/"||ue=="?"||ue=="#"||ue=="\\"&&ne(k)){if(ne(k)&&we=="")return K;if(se&&we==""&&(oe(k)||k.port!==null))return;if(Lt=C(k,we),Lt)return Lt;if(we="",de=dt,se)return;continue}else ue=="["?qe=!0:ue=="]"&&(qe=!1),we+=ue;break;case Ie:if(me.test(ue))we+=ue;else if(ue==A||ue=="/"||ue=="?"||ue=="#"||ue=="\\"&&ne(k)||se){if(we!=""){var Yt=parseInt(we,10);if(Yt>65535)return q;k.port=ne(k)&&Yt===Q[k.scheme]?null:Yt,we=""}if(se)return;de=dt;continue}else return q;break;case Ve:if(k.scheme="file",ue=="/"||ue=="\\")de=Ke;else if(ce&&ce.scheme=="file")if(ue==A)k.host=ce.host,k.path=ce.path.slice(),k.query=ce.query;else if(ue=="?")k.host=ce.host,k.path=ce.path.slice(),k.query="",de=Ut;else if(ue=="#")k.host=ce.host,k.path=ce.path.slice(),k.query=ce.query,k.fragment="",de=lt;else{De(Et.slice(ke).join(""))||(k.host=ce.host,k.path=ce.path.slice(),Ge(k)),de=ft;continue}else{de=ft;continue}break;case Ke:if(ue=="/"||ue=="\\"){de=et;break}ce&&ce.scheme=="file"&&!De(Et.slice(ke).join(""))&&(Ae(ce.path[0],!0)?k.path.push(ce.path[0]):k.host=ce.host),de=ft;continue;case et:if(ue==A||ue=="/"||ue=="\\"||ue=="?"||ue=="#"){if(!se&&Ae(we))de=ft;else if(we==""){if(k.host="",se)return;de=dt}else{if(Lt=C(k,we),Lt)return Lt;if(k.host=="localhost"&&(k.host=""),se)return;we="",de=dt}continue}else we+=ue;break;case dt:if(ne(k)){if(de=ft,ue!="/"&&ue!="\\")continue}else if(!se&&ue=="?")k.query="",de=Ut;else if(!se&&ue=="#")k.fragment="",de=lt;else if(ue!=A&&(de=ft,ue!="/"))continue;break;case ft:if(ue==A||ue=="/"||ue=="\\"&&ne(k)||!se&&(ue=="?"||ue=="#")){if(Be(we)?(Ge(k),ue!="/"&&!(ue=="\\"&&ne(k))&&k.path.push("")):je(we)?ue!="/"&&!(ue=="\\"&&ne(k))&&k.path.push(""):(k.scheme=="file"&&!k.path.length&&Ae(we)&&(k.host&&(k.host=""),we=we.charAt(0)+":"),k.path.push(we)),we="",k.scheme=="file"&&(ue==A||ue=="?"||ue=="#"))for(;k.path.length>1&&k.path[0]==="";)k.path.shift();ue=="?"?(k.query="",de=Ut):ue=="#"&&(k.fragment="",de=lt)}else we+=Y(ue,W);break;case It:ue=="?"?(k.query="",de=Ut):ue=="#"?(k.fragment="",de=lt):ue!=A&&(k.path[0]+=Y(ue,U));break;case Ut:!se&&ue=="#"?(k.fragment="",de=lt):ue!=A&&(ue=="'"&&ne(k)?k.query+="%27":ue=="#"?k.query+="%23":k.query+=Y(ue,U));break;case lt:ue!=A&&(k.fragment+=Y(ue,V));break}ke++}},Xt=function(ae){var se=v(this,Xt,"URL"),ce=arguments.length>1?arguments[1]:void 0,de=String(ae),ke=E(se,{type:"URL"}),we,Ue;if(ce!==void 0){if(ce instanceof Xt)we=P(ce);else if(Ue=Ot(we={},String(ce)),Ue)throw TypeError(Ue)}if(Ue=Ot(ke,de,null,we),Ue)throw TypeError(Ue);var qe=ke.searchParams=new re,Qe=G(qe);Qe.updateSearchParams(ke.query),Qe.updateURL=function(){ke.query=String(qe)||null},d||(se.href=mn.call(se),se.origin=Cn.call(se),se.protocol=ot.call(se),se.username=fr.call(se),se.password=hr.call(se),se.host=pr.call(se),se.hostname=mr.call(se),se.port=gr.call(se),se.pathname=ct.call(se),se.search=vr.call(se),se.searchParams=yr.call(se),se.hash=br.call(se))},Hn=Xt.prototype,mn=function(){var k=P(this),ae=k.scheme,se=k.username,ce=k.password,de=k.host,ke=k.port,we=k.path,Ue=k.query,qe=k.fragment,Qe=ae+":";return de!==null?(Qe+="//",oe(k)&&(Qe+=se+(ce?":"+ce:"")+"@"),Qe+=B(de),ke!==null&&(Qe+=":"+ke)):ae=="file"&&(Qe+="//"),Qe+=k.cannotBeABaseURL?we[0]:we.length?"/"+we.join("/"):"",Ue!==null&&(Qe+="?"+Ue),qe!==null&&(Qe+="#"+qe),Qe},Cn=function(){var k=P(this),ae=k.scheme,se=k.port;if(ae=="blob")try{return new URL(ae.path[0]).origin}catch{return"null"}return ae=="file"||!ne(k)?"null":ae+"://"+B(k.host)+(se!==null?":"+se:"")},ot=function(){return P(this).scheme+":"},fr=function(){return P(this).username},hr=function(){return P(this).password},pr=function(){var k=P(this),ae=k.host,se=k.port;return ae===null?"":se===null?B(ae):B(ae)+":"+se},mr=function(){var k=P(this).host;return k===null?"":B(k)},gr=function(){var k=P(this).port;return k===null?"":String(k)},ct=function(){var k=P(this),ae=k.path;return k.cannotBeABaseURL?ae[0]:ae.length?"/"+ae.join("/"):""},vr=function(){var k=P(this).query;return k?"?"+k:""},yr=function(){return P(this).searchParams},br=function(){var k=P(this).fragment;return k?"#"+k:""},xt=function(k,ae){return{get:k,set:ae,configurable:!0,enumerable:!0}};if(d&&g(Hn,{href:xt(mn,function(k){var ae=P(this),se=String(k),ce=Ot(ae,se);if(ce)throw TypeError(ce);G(ae.searchParams).updateSearchParams(ae.query)}),origin:xt(Cn),protocol:xt(ot,function(k){var ae=P(this);Ot(ae,String(k)+":",$e)}),username:xt(fr,function(k){var ae=P(this),se=S(String(k));if(!fe(ae)){ae.username="";for(var ce=0;ce<se.length;ce++)ae.username+=Y(se[ce],Z)}}),password:xt(hr,function(k){var ae=P(this),se=S(String(k));if(!fe(ae)){ae.password="";for(var ce=0;ce<se.length;ce++)ae.password+=Y(se[ce],Z)}}),host:xt(pr,function(k){var ae=P(this);ae.cannotBeABaseURL||Ot(ae,String(k),Ce)}),hostname:xt(mr,function(k){var ae=P(this);ae.cannotBeABaseURL||Ot(ae,String(k),Le)}),port:xt(gr,function(k){var ae=P(this);fe(ae)||(k=String(k),k==""?ae.port=null:Ot(ae,k,Ie))}),pathname:xt(ct,function(k){var ae=P(this);ae.cannotBeABaseURL||(ae.path=[],Ot(ae,k+"",dt))}),search:xt(vr,function(k){var ae=P(this);k=String(k),k==""?ae.query=null:(k.charAt(0)=="?"&&(k=k.slice(1)),ae.query="",Ot(ae,k,Ut)),G(ae.searchParams).updateSearchParams(ae.query)}),searchParams:xt(yr),hash:xt(br,function(k){var ae=P(this);if(k=String(k),k==""){ae.fragment=null;return}k.charAt(0)=="#"&&(k=k.slice(1)),ae.fragment="",Ot(ae,k,lt)})}),p(Hn,"toJSON",function(){return mn.call(this)},{enumerable:!0}),p(Hn,"toString",function(){return mn.call(this)},{enumerable:!0}),H){var xr=H.createObjectURL,pt=H.revokeObjectURL;xr&&p(Xt,"createObjectURL",function(ae){return xr.apply(H,arguments)}),pt&&p(Xt,"revokeObjectURL",function(ae){return pt.apply(H,arguments)})}M(Xt,"URL"),l({global:!0,forced:!h,sham:!d},{URL:Xt})}},r={};function s(o){if(r[o])return r[o].exports;var c=r[o]={exports:{}};return t[o](c,c.exports,s),c.exports}(function(){s.d=function(o,c){for(var i in c)s.o(c,i)&&!s.o(o,i)&&Object.defineProperty(o,i,{enumerable:!0,get:c[i]})}})(),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(o,c){return Object.prototype.hasOwnProperty.call(o,c)}}(),function(){s.r=function(o){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})}}();var a={};return function(){s.r(a),s.d(a,{Dropzone:function(){return q},default:function(){return ye}}),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 o(N,R){var A;if(typeof Symbol>"u"||N[Symbol.iterator]==null){if(Array.isArray(N)||(A=c(N))||N&&typeof N.length=="number"){A&&(N=A);var C=0,y=function(){};return{s:y,n:function(){return C>=N.length?{done:!0}:{done:!1,value:N[C++]}},e:function(V){throw V},f:y}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
61
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var b=!0,L=!1,B;return{s:function(){A=N[Symbol.iterator]()},n:function(){var V=A.next();return b=V.done,V},e:function(V){L=!0,B=V},f:function(){try{!b&&A.return!=null&&A.return()}finally{if(L)throw B}}}}function c(N,R){if(N){if(typeof N=="string")return i(N,R);var A=Object.prototype.toString.call(N).slice(8,-1);if(A==="Object"&&N.constructor&&(A=N.constructor.name),A==="Map"||A==="Set")return Array.from(N);if(A==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(A))return i(N,R)}}function i(N,R){(R==null||R>N.length)&&(R=N.length);for(var A=0,C=new Array(R);A<R;A++)C[A]=N[A];return C}function l(N,R){if(!(N instanceof R))throw new TypeError("Cannot call a class as a function")}function d(N,R){for(var A=0;A<R.length;A++){var C=R[A];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(N,C.key,C)}}function h(N,R,A){return R&&d(N.prototype,R),N}var f=function(){function N(){l(this,N)}return h(N,[{key:"on",value:function(A,C){return this._callbacks=this._callbacks||{},this._callbacks[A]||(this._callbacks[A]=[]),this._callbacks[A].push(C),this}},{key:"emit",value:function(A){this._callbacks=this._callbacks||{};for(var C=this._callbacks[A],y=arguments.length,b=new Array(y>1?y-1:0),L=1;L<y;L++)b[L-1]=arguments[L];if(C){var B=o(C),U;try{for(B.s();!(U=B.n()).done;){var V=U.value;V.apply(this,b)}}catch(W){B.e(W)}finally{B.f()}}return this.element&&this.element.dispatchEvent(this.makeEvent("dropzone:"+A,{args:b})),this}},{key:"makeEvent",value:function(A,C){var y={bubbles:!0,cancelable:!0,detail:C};if(typeof window.CustomEvent=="function")return new CustomEvent(A,y);var b=document.createEvent("CustomEvent");return b.initCustomEvent(A,y.bubbles,y.cancelable,y.detail),b}},{key:"off",value:function(A,C){if(!this._callbacks||arguments.length===0)return this._callbacks={},this;var y=this._callbacks[A];if(!y)return this;if(arguments.length===1)return delete this._callbacks[A],this;for(var b=0;b<y.length;b++){var L=y[b];if(L===C){y.splice(b,1);break}}return this}}]),N}(),g='<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=g;function v(N,R){var A;if(typeof Symbol>"u"||N[Symbol.iterator]==null){if(Array.isArray(N)||(A=x(N))||N&&typeof N.length=="number"){A&&(N=A);var C=0,y=function(){};return{s:y,n:function(){return C>=N.length?{done:!0}:{done:!1,value:N[C++]}},e:function(V){throw V},f:y}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
62
62
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var b=!0,L=!1,B;return{s:function(){A=N[Symbol.iterator]()},n:function(){var V=A.next();return b=V.done,V},e:function(V){L=!0,B=V},f:function(){try{!b&&A.return!=null&&A.return()}finally{if(L)throw B}}}}function x(N,R){if(N){if(typeof N=="string")return T(N,R);var A=Object.prototype.toString.call(N).slice(8,-1);if(A==="Object"&&N.constructor&&(A=N.constructor.name),A==="Map"||A==="Set")return Array.from(N);if(A==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(A))return T(N,R)}}function T(N,R){(R==null||R>N.length)&&(R=N.length);for(var A=0,C=new Array(R);A<R;A++)C[A]=N[A];return C}var S={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,A,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,A){return A()},chunksUploaded:function(R,A){A()},fallback:function(){var R;this.element.className="".concat(this.element.className," dz-browser-not-supported");var A=v(this.element.getElementsByTagName("div")),C;try{for(A.s();!(C=A.n()).done;){var y=C.value;if(/(^| )dz-message($| )/.test(y.className)){R=y,y.className="dz-message";break}}}catch(L){A.e(L)}finally{A.f()}R||(R=q.createElement('<div class="dz-message"><span></span></div>'),this.element.appendChild(R));var b=R.getElementsByTagName("span")[0];return b&&(b.textContent!=null?b.textContent=this.options.dictFallbackMessage:b.innerText!=null&&(b.innerText=this.options.dictFallbackMessage)),this.element.appendChild(this.getFallbackForm())},resize:function(R,A,C,y){var b={srcX:0,srcY:0,srcWidth:R.width,srcHeight:R.height},L=R.width/R.height;A==null&&C==null?(A=b.srcWidth,C=b.srcHeight):A==null?A=C*L:C==null&&(C=A/L),A=Math.min(A,b.srcWidth),C=Math.min(C,b.srcHeight);var B=A/C;if(b.srcWidth>A||b.srcHeight>C)if(y==="crop")L>B?(b.srcHeight=R.height,b.srcWidth=b.srcHeight*B):(b.srcWidth=R.width,b.srcHeight=b.srcWidth/B);else if(y==="contain")L>B?C=A/L:A=C*L;else throw new Error("Unknown resizeMethod '".concat(y,"'"));return b.srcX=(R.width-b.srcWidth)/2,b.srcY=(R.height-b.srcHeight)/2,b.trgWidth=A,b.trgHeight=C,b},transformFile:function(R,A){return(this.options.resizeWidth||this.options.resizeHeight)&&R.type.match(/image.*/)?this.resizeImage(R,this.options.resizeWidth,this.options.resizeHeight,this.options.resizeMethod,A):A(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 A=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=v(R.previewElement.querySelectorAll("[data-dz-name]")),y;try{for(C.s();!(y=C.n()).done;){var b=y.value;b.textContent=R.name}}catch(Y){C.e(Y)}finally{C.f()}var L=v(R.previewElement.querySelectorAll("[data-dz-size]")),B;try{for(L.s();!(B=L.n()).done;)b=B.value,b.innerHTML=this.filesize(R.size)}catch(Y){L.e(Y)}finally{L.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(A.options.dictCancelUploadConfirmation,function(){return A.removeFile(R)}):A.options.dictRemoveFileConfirmation?q.confirm(A.options.dictRemoveFileConfirmation,function(){return A.removeFile(R)}):A.removeFile(R)},V=v(R.previewElement.querySelectorAll("[data-dz-remove]")),W;try{for(V.s();!(W=V.n()).done;){var Z=W.value;Z.addEventListener("click",U)}}catch(Y){V.e(Y)}finally{V.f()}}},removedfile:function(R){return R.previewElement!=null&&R.previewElement.parentNode!=null&&R.previewElement.parentNode.removeChild(R.previewElement),this._updateMaxFilesReachedClass()},thumbnail:function(R,A){if(R.previewElement){R.previewElement.classList.remove("dz-file-preview");var C=v(R.previewElement.querySelectorAll("[data-dz-thumbnail]")),y;try{for(C.s();!(y=C.n()).done;){var b=y.value;b.alt=R.name,b.src=A}}catch(L){C.e(L)}finally{C.f()}return setTimeout(function(){return R.previewElement.classList.add("dz-image-preview")},1)}},error:function(R,A){if(R.previewElement){R.previewElement.classList.add("dz-error"),typeof A!="string"&&A.error&&(A=A.error);var C=v(R.previewElement.querySelectorAll("[data-dz-errormessage]")),y;try{for(C.s();!(y=C.n()).done;){var b=y.value;b.textContent=A}}catch(L){C.e(L)}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,A,C){if(R.previewElement){var y=v(R.previewElement.querySelectorAll("[data-dz-uploadprogress]")),b;try{for(y.s();!(b=y.n()).done;){var L=b.value;L.nodeName==="PROGRESS"?L.value=A:L.style.width="".concat(A,"%")}}catch(B){y.e(B)}finally{y.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(){}},I=S;function F(N){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?F=function(A){return typeof A}:F=function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},F(N)}function M(N,R){var A;if(typeof Symbol>"u"||N[Symbol.iterator]==null){if(Array.isArray(N)||(A=z(N))||N&&typeof N.length=="number"){A&&(N=A);var C=0,y=function(){};return{s:y,n:function(){return C>=N.length?{done:!0}:{done:!1,value:N[C++]}},e:function(V){throw V},f:y}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
63
63
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var b=!0,L=!1,B;return{s:function(){A=N[Symbol.iterator]()},n:function(){var V=A.next();return b=V.done,V},e:function(V){L=!0,B=V},f:function(){try{!b&&A.return!=null&&A.return()}finally{if(L)throw B}}}}function z(N,R){if(N){if(typeof N=="string")return X(N,R);var A=Object.prototype.toString.call(N).slice(8,-1);if(A==="Object"&&N.constructor&&(A=N.constructor.name),A==="Map"||A==="Set")return Array.from(N);if(A==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(A))return X(N,R)}}function X(N,R){(R==null||R>N.length)&&(R=N.length);for(var A=0,C=new Array(R);A<R;A++)C[A]=N[A];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 A=0;A<R.length;A++){var C=R[A];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(N,C.key,C)}}function G(N,R,A){return R&&re(N.prototype,R),A&&re(N,A),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,y){return C.__proto__=y,C},P(N,R)}function O(N){var R=$();return function(){var C=K(N),y;if(R){var b=K(this).constructor;y=Reflect.construct(C,arguments,b)}else y=C.apply(this,arguments);return _(this,y)}}function _(N,R){return R&&(F(R)==="object"||typeof R=="function")?R:j(N)}function j(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}function $(){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(A){return A.__proto__||Object.getPrototypeOf(A)},K(N)}var q=function(N){E(A,N);var R=O(A);function A(C,y){var b;H(this,A),b=R.call(this);var L,B;if(b.element=C,b.version=A.version,b.clickableElements=[],b.listeners=[],b.files=[],typeof b.element=="string"&&(b.element=document.querySelector(b.element)),!b.element||b.element.nodeType==null)throw new Error("Invalid dropzone element.");if(b.element.dropzone)throw new Error("Dropzone already attached.");A.instances.push(j(b)),b.element.dropzone=j(b);var U=(B=A.optionsForElement(b.element))!=null?B:{};if(b.options=A.extend({},I,U,y??{}),b.options.previewTemplate=b.options.previewTemplate.replace(/\n*/g,""),b.options.forceFallback||!A.isBrowserSupported())return _(b,b.options.fallback.call(j(b)));if(b.options.url==null&&(b.options.url=b.element.getAttribute("action")),!b.options.url)throw new Error("No URL provided.");if(b.options.acceptedFiles&&b.options.acceptedMimeTypes)throw new Error("You can't provide both 'acceptedFiles' and 'acceptedMimeTypes'. 'acceptedMimeTypes' is deprecated.");if(b.options.uploadMultiple&&b.options.chunking)throw new Error("You cannot set both: uploadMultiple and chunking.");return b.options.acceptedMimeTypes&&(b.options.acceptedFiles=b.options.acceptedMimeTypes,delete b.options.acceptedMimeTypes),b.options.renameFilename!=null&&(b.options.renameFile=function(V){return b.options.renameFilename.call(j(b),V.name,V)}),typeof b.options.method=="string"&&(b.options.method=b.options.method.toUpperCase()),(L=b.getExistingFallback())&&L.parentNode&&L.parentNode.removeChild(L),b.options.previewsContainer!==!1&&(b.options.previewsContainer?b.previewsContainer=A.getElement(b.options.previewsContainer,"previewsContainer"):b.previewsContainer=b.element),b.options.clickable&&(b.options.clickable===!0?b.clickableElements=[b.element]:b.clickableElements=A.getElements(b.options.clickable,"clickable")),b.init(),b}return G(A,[{key:"getAcceptedFiles",value:function(){return this.files.filter(function(y){return y.accepted}).map(function(y){return y})}},{key:"getRejectedFiles",value:function(){return this.files.filter(function(y){return!y.accepted}).map(function(y){return y})}},{key:"getFilesWithStatus",value:function(y){return this.files.filter(function(b){return b.status===y}).map(function(b){return b})}},{key:"getQueuedFiles",value:function(){return this.getFilesWithStatus(A.QUEUED)}},{key:"getUploadingFiles",value:function(){return this.getFilesWithStatus(A.UPLOADING)}},{key:"getAddedFiles",value:function(){return this.getFilesWithStatus(A.ADDED)}},{key:"getActiveFiles",value:function(){return this.files.filter(function(y){return y.status===A.UPLOADING||y.status===A.QUEUED}).map(function(y){return y})}},{key:"init",value:function(){var y=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(A.createElement('<div class="dz-default dz-message"><button class="dz-button" type="button">'.concat(this.options.dictDefaultMessage,"</button></div>"))),this.clickableElements.length){var b=function Z(){y.hiddenFileInput&&y.hiddenFileInput.parentNode.removeChild(y.hiddenFileInput),y.hiddenFileInput=document.createElement("input"),y.hiddenFileInput.setAttribute("type","file"),(y.options.maxFiles===null||y.options.maxFiles>1)&&y.hiddenFileInput.setAttribute("multiple","multiple"),y.hiddenFileInput.className="dz-hidden-input",y.options.acceptedFiles!==null&&y.hiddenFileInput.setAttribute("accept",y.options.acceptedFiles),y.options.capture!==null&&y.hiddenFileInput.setAttribute("capture",y.options.capture),y.hiddenFileInput.setAttribute("tabindex","-1"),y.hiddenFileInput.style.visibility="hidden",y.hiddenFileInput.style.position="absolute",y.hiddenFileInput.style.top="0",y.hiddenFileInput.style.left="0",y.hiddenFileInput.style.height="0",y.hiddenFileInput.style.width="0",A.getElement(y.options.hiddenInputContainer,"hiddenInputContainer").appendChild(y.hiddenFileInput),y.hiddenFileInput.addEventListener("change",function(){var Y=y.hiddenFileInput.files;if(Y.length){var Q=M(Y),ne;try{for(Q.s();!(ne=Q.n()).done;){var oe=ne.value;y.addFile(oe)}}catch(fe){Q.e(fe)}finally{Q.f()}}y.emit("addedfiles",Y),Z()})};b()}this.URL=window.URL!==null?window.URL:window.webkitURL;var L=M(this.events),B;try{for(L.s();!(B=L.n()).done;){var U=B.value;this.on(U,this.options[U])}}catch(Z){L.e(Z)}finally{L.f()}this.on("uploadprogress",function(){return y.updateTotalUploadProgress()}),this.on("removedfile",function(){return y.updateTotalUploadProgress()}),this.on("canceled",function(Z){return y.emit("complete",Z)}),this.on("complete",function(Z){if(y.getAddedFiles().length===0&&y.getUploadingFiles().length===0&&y.getQueuedFiles().length===0)return setTimeout(function(){return y.emit("queuecomplete")},0)});var V=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(V(Y))return Y.stopPropagation(),Y.preventDefault?Y.preventDefault():Y.returnValue=!1};return this.listeners=[{element:this.element,events:{dragstart:function(Y){return y.emit("dragstart",Y)},dragenter:function(Y){return W(Y),y.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),y.emit("dragover",Y)},dragleave:function(Y){return y.emit("dragleave",Y)},drop:function(Y){return W(Y),y.drop(Y)},dragend:function(Y){return y.emit("dragend",Y)}}}],this.clickableElements.forEach(function(Z){return y.listeners.push({element:Z,events:{click:function(Q){return(Z!==y.element||Q.target===y.element||A.elementInside(Q.target,y.element.querySelector(".dz-message")))&&y.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,A.instances.splice(A.instances.indexOf(this),1)}},{key:"updateTotalUploadProgress",value:function(){var y,b=0,L=0,B=this.getActiveFiles();if(B.length){var U=M(this.getActiveFiles()),V;try{for(U.s();!(V=U.n()).done;){var W=V.value;b+=W.upload.bytesSent,L+=W.upload.total}}catch(Z){U.e(Z)}finally{U.f()}y=100*b/L}else y=100;return this.emit("totaluploadprogress",y,L,b)}},{key:"_getParamName",value:function(y){return typeof this.options.paramName=="function"?this.options.paramName(y):"".concat(this.options.paramName).concat(this.options.uploadMultiple?"[".concat(y,"]"):"")}},{key:"_renameFile",value:function(y){return typeof this.options.renameFile!="function"?y.name:this.options.renameFile(y)}},{key:"getFallbackForm",value:function(){var y,b;if(y=this.getExistingFallback())return y;var L='<div class="dz-fallback">';this.options.dictFallbackText&&(L+="<p>".concat(this.options.dictFallbackText,"</p>")),L+='<input type="file" name="'.concat(this._getParamName(0),'" ').concat(this.options.uploadMultiple?'multiple="multiple"':void 0,' /><input type="submit" value="Upload!"></div>');var B=A.createElement(L);return this.element.tagName!=="FORM"?(b=A.createElement('<form action="'.concat(this.options.url,'" enctype="multipart/form-data" method="').concat(this.options.method,'"></form>')),b.appendChild(B)):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),b??B}},{key:"getExistingFallback",value:function(){for(var y=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()}},b=0,L=["div","form"];b<L.length;b++){var B=L[b],U;if(U=y(this.element.getElementsByTagName(B)))return U}}},{key:"setupEventListeners",value:function(){return this.listeners.map(function(y){return function(){var b=[];for(var L in y.events){var B=y.events[L];b.push(y.element.addEventListener(L,B,!1))}return b}()})}},{key:"removeEventListeners",value:function(){return this.listeners.map(function(y){return function(){var b=[];for(var L in y.events){var B=y.events[L];b.push(y.element.removeEventListener(L,B,!1))}return b}()})}},{key:"disable",value:function(){var y=this;return this.clickableElements.forEach(function(b){return b.classList.remove("dz-clickable")}),this.removeEventListeners(),this.disabled=!0,this.files.map(function(b){return y.cancelUpload(b)})}},{key:"enable",value:function(){return delete this.disabled,this.clickableElements.forEach(function(y){return y.classList.add("dz-clickable")}),this.setupEventListeners()}},{key:"filesize",value:function(y){var b=0,L="b";if(y>0){for(var B=["tb","gb","mb","kb","b"],U=0;U<B.length;U++){var V=B[U],W=Math.pow(this.options.filesizeBase,4-U)/10;if(y>=W){b=y/Math.pow(this.options.filesizeBase,4-U),L=V;break}}b=Math.round(10*b)/10}return"<strong>".concat(b,"</strong> ").concat(this.options.dictFileSizeUnits[L])}},{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(y){if(y.dataTransfer){this.emit("drop",y);for(var b=[],L=0;L<y.dataTransfer.files.length;L++)b[L]=y.dataTransfer.files[L];if(b.length){var B=y.dataTransfer.items;B&&B.length&&B[0].webkitGetAsEntry!=null?this._addFilesFromItems(B):this.handleFiles(b)}this.emit("addedfiles",b)}}},{key:"paste",value:function(y){if(he(y!=null?y.clipboardData:void 0,function(L){return L.items})!=null){this.emit("paste",y);var b=y.clipboardData.items;if(b.length)return this._addFilesFromItems(b)}}},{key:"handleFiles",value:function(y){var b=M(y),L;try{for(b.s();!(L=b.n()).done;){var B=L.value;this.addFile(B)}}catch(U){b.e(U)}finally{b.f()}}},{key:"_addFilesFromItems",value:function(y){var b=this;return function(){var L=[],B=M(y),U;try{for(B.s();!(U=B.n()).done;){var V=U.value,W;V.webkitGetAsEntry!=null&&(W=V.webkitGetAsEntry())?W.isFile?L.push(b.addFile(V.getAsFile())):W.isDirectory?L.push(b._addFilesFromDirectory(W,W.name)):L.push(void 0):V.getAsFile!=null&&(V.kind==null||V.kind==="file")?L.push(b.addFile(V.getAsFile())):L.push(void 0)}}catch(Z){B.e(Z)}finally{B.f()}return L}()}},{key:"_addFilesFromDirectory",value:function(y,b){var L=this,B=y.createReader(),U=function(Z){return Oe(console,"log",function(Y){return Y.log(Z)})},V=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(oe){if(!(L.options.ignoreHiddenFiles&&oe.name.substring(0,1)==="."))return oe.fullPath="".concat(b,"/").concat(oe.name),L.addFile(oe)}):ne.isDirectory&&L._addFilesFromDirectory(ne,"".concat(b,"/").concat(ne.name))}}catch(oe){Y.e(oe)}finally{Y.f()}W()}return null},U)};return V()}},{key:"accept",value:function(y,b){this.options.maxFilesize&&y.size>this.options.maxFilesize*1024*1024?b(this.options.dictFileTooBig.replace("{{filesize}}",Math.round(y.size/1024/10.24)/100).replace("{{maxFilesize}}",this.options.maxFilesize)):A.isValidFile(y,this.options.acceptedFiles)?this.options.maxFiles!=null&&this.getAcceptedFiles().length>=this.options.maxFiles?(b(this.options.dictMaxFilesExceeded.replace("{{maxFiles}}",this.options.maxFiles)),this.emit("maxfilesexceeded",y)):this.options.accept.call(this,y,b):b(this.options.dictInvalidFileType)}},{key:"addFile",value:function(y){var b=this;y.upload={uuid:A.uuidv4(),progress:0,total:y.size,bytesSent:0,filename:this._renameFile(y)},this.files.push(y),y.status=A.ADDED,this.emit("addedfile",y),this._enqueueThumbnail(y),this.accept(y,function(L){L?(y.accepted=!1,b._errorProcessing([y],L)):(y.accepted=!0,b.options.autoQueue&&b.enqueueFile(y)),b._updateMaxFilesReachedClass()})}},{key:"enqueueFiles",value:function(y){var b=M(y),L;try{for(b.s();!(L=b.n()).done;){var B=L.value;this.enqueueFile(B)}}catch(U){b.e(U)}finally{b.f()}return null}},{key:"enqueueFile",value:function(y){var b=this;if(y.status===A.ADDED&&y.accepted===!0){if(y.status=A.QUEUED,this.options.autoProcessQueue)return setTimeout(function(){return b.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(y){var b=this;if(this.options.createImageThumbnails&&y.type.match(/image.*/)&&y.size<=this.options.maxThumbnailFilesize*1024*1024)return this._thumbnailQueue.push(y),setTimeout(function(){return b._processThumbnailQueue()},0)}},{key:"_processThumbnailQueue",value:function(){var y=this;if(!(this._processingThumbnail||this._thumbnailQueue.length===0)){this._processingThumbnail=!0;var b=this._thumbnailQueue.shift();return this.createThumbnail(b,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,!0,function(L){return y.emit("thumbnail",b,L),y._processingThumbnail=!1,y._processThumbnailQueue()})}}},{key:"removeFile",value:function(y){if(y.status===A.UPLOADING&&this.cancelUpload(y),this.files=J(this.files,y),this.emit("removedfile",y),this.files.length===0)return this.emit("reset")}},{key:"removeAllFiles",value:function(y){y==null&&(y=!1);var b=M(this.files.slice()),L;try{for(b.s();!(L=b.n()).done;){var B=L.value;(B.status!==A.UPLOADING||y)&&this.removeFile(B)}}catch(U){b.e(U)}finally{b.f()}return null}},{key:"resizeImage",value:function(y,b,L,B,U){var V=this;return this.createThumbnail(y,b,L,B,!0,function(W,Z){if(Z==null)return U(y);var Y=V.options.resizeMimeType;Y==null&&(Y=y.type);var Q=Z.toDataURL(Y,V.options.resizeQuality);return(Y==="image/jpeg"||Y==="image/jpg")&&(Q=ve.restore(y.dataURL,Q)),U(A.dataURItoBlob(Q))})}},{key:"createThumbnail",value:function(y,b,L,B,U,V){var W=this,Z=new FileReader;Z.onload=function(){if(y.dataURL=Z.result,y.type==="image/svg+xml"){V!=null&&V(Z.result);return}W.createThumbnailFromUrl(y,b,L,B,U,V)},Z.readAsDataURL(y)}},{key:"displayExistingFile",value:function(y,b,L,B){var U=this,V=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0;if(this.emit("addedfile",y),this.emit("complete",y),!V)this.emit("thumbnail",y,b),L&&L();else{var W=function(Y){U.emit("thumbnail",y,Y),L&&L()};y.dataURL=b,this.createThumbnailFromUrl(y,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,this.options.fixOrientation,W,B)}}},{key:"createThumbnailFromUrl",value:function(y,b,L,B,U,V,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(oe){return oe(1)};return typeof EXIF<"u"&&EXIF!==null&&U&&(Q=function(oe){return EXIF.getData(Y,function(){return oe(EXIF.getTag(this,"Orientation"))})}),Q(function(ne){y.width=Y.width,y.height=Y.height;var oe=Z.options.resize.call(Z,y,b,L,B),fe=document.createElement("canvas"),Ae=fe.getContext("2d");switch(fe.width=oe.trgWidth,fe.height=oe.trgHeight,ne>4&&(fe.width=oe.trgHeight,fe.height=oe.trgWidth),ne){case 2:Ae.translate(fe.width,0),Ae.scale(-1,1);break;case 3:Ae.translate(fe.width,fe.height),Ae.rotate(Math.PI);break;case 4:Ae.translate(0,fe.height),Ae.scale(1,-1);break;case 5:Ae.rotate(.5*Math.PI),Ae.scale(1,-1);break;case 6:Ae.rotate(.5*Math.PI),Ae.translate(0,-fe.width);break;case 7:Ae.rotate(.5*Math.PI),Ae.translate(fe.height,-fe.width),Ae.scale(-1,1);break;case 8:Ae.rotate(-.5*Math.PI),Ae.translate(-fe.height,0);break}ge(Ae,Y,oe.srcX!=null?oe.srcX:0,oe.srcY!=null?oe.srcY:0,oe.srcWidth,oe.srcHeight,oe.trgX!=null?oe.trgX:0,oe.trgY!=null?oe.trgY:0,oe.trgWidth,oe.trgHeight);var De=fe.toDataURL("image/png");if(V!=null)return V(De,fe)})},V!=null&&(Y.onerror=V),Y.src=y.dataURL}},{key:"processQueue",value:function(){var y=this.options.parallelUploads,b=this.getUploadingFiles().length,L=b;if(!(b>=y)){var B=this.getQueuedFiles();if(B.length>0){if(this.options.uploadMultiple)return this.processFiles(B.slice(0,y-b));for(;L<y;){if(!B.length)return;this.processFile(B.shift()),L++}}}}},{key:"processFile",value:function(y){return this.processFiles([y])}},{key:"processFiles",value:function(y){var b=M(y),L;try{for(b.s();!(L=b.n()).done;){var B=L.value;B.processing=!0,B.status=A.UPLOADING,this.emit("processing",B)}}catch(U){b.e(U)}finally{b.f()}return this.options.uploadMultiple&&this.emit("processingmultiple",y),this.uploadFiles(y)}},{key:"_getFilesWithXhr",value:function(y){return this.files.filter(function(b){return b.xhr===y}).map(function(b){return b})}},{key:"cancelUpload",value:function(y){if(y.status===A.UPLOADING){var b=this._getFilesWithXhr(y.xhr),L=M(b),B;try{for(L.s();!(B=L.n()).done;){var U=B.value;U.status=A.CANCELED}}catch(Y){L.e(Y)}finally{L.f()}typeof y.xhr<"u"&&y.xhr.abort();var V=M(b),W;try{for(V.s();!(W=V.n()).done;){var Z=W.value;this.emit("canceled",Z)}}catch(Y){V.e(Y)}finally{V.f()}this.options.uploadMultiple&&this.emit("canceledmultiple",b)}else(y.status===A.ADDED||y.status===A.QUEUED)&&(y.status=A.CANCELED,this.emit("canceled",y),this.options.uploadMultiple&&this.emit("canceledmultiple",[y]));if(this.options.autoProcessQueue)return this.processQueue()}},{key:"resolveOption",value:function(y){if(typeof y=="function"){for(var b=arguments.length,L=new Array(b>1?b-1:0),B=1;B<b;B++)L[B-1]=arguments[B];return y.apply(this,L)}return y}},{key:"uploadFile",value:function(y){return this.uploadFiles([y])}},{key:"uploadFiles",value:function(y){var b=this;this._transformFiles(y,function(L){if(b.options.chunking){var B=L[0];y[0].upload.chunked=b.options.chunking&&(b.options.forceChunking||B.size>b.options.chunkSize),y[0].upload.totalChunkCount=Math.ceil(B.size/b.options.chunkSize)}if(y[0].upload.chunked){var U=y[0],V=L[0];U.upload.chunks=[];var W=function(){for(var oe=0;U.upload.chunks[oe]!==void 0;)oe++;if(!(oe>=U.upload.totalChunkCount)){var fe=oe*b.options.chunkSize,Ae=Math.min(fe+b.options.chunkSize,V.size),De={name:b._getParamName(0),data:V.webkitSlice?V.webkitSlice(fe,Ae):V.slice(fe,Ae),filename:U.upload.filename,chunkIndex:oe};U.upload.chunks[oe]={file:U,index:oe,dataBlock:De,status:A.UPLOADING,progress:0,retries:0},b._uploadData(y,[De])}};if(U.upload.finishedChunkUpload=function(ne,oe){var fe=!0;ne.status=A.SUCCESS,ne.dataBlock=null,ne.xhr=null;for(var Ae=0;Ae<U.upload.totalChunkCount;Ae++){if(U.upload.chunks[Ae]===void 0)return W();U.upload.chunks[Ae].status!==A.SUCCESS&&(fe=!1)}fe&&b.options.chunksUploaded(U,function(){b._finished(y,oe,null)})},b.options.parallelChunkUploads)for(var Z=0;Z<U.upload.totalChunkCount;Z++)W();else W()}else{for(var Y=[],Q=0;Q<y.length;Q++)Y[Q]={name:b._getParamName(Q),data:L[Q],filename:y[Q].upload.filename};b._uploadData(y,Y)}})}},{key:"_getChunk",value:function(y,b){for(var L=0;L<y.upload.totalChunkCount;L++)if(y.upload.chunks[L]!==void 0&&y.upload.chunks[L].xhr===b)return y.upload.chunks[L]}},{key:"_uploadData",value:function(y,b){var L=this,B=new XMLHttpRequest,U=M(y),V;try{for(U.s();!(V=U.n()).done;){var W=V.value;W.xhr=B}}catch(Pe){U.e(Pe)}finally{U.f()}y[0].upload.chunked&&(y[0].upload.chunks[b[0].chunkIndex].xhr=B);var Z=this.resolveOption(this.options.method,y),Y=this.resolveOption(this.options.url,y);B.open(Z,Y,!0);var Q=this.resolveOption(this.options.timeout,y);Q&&(B.timeout=this.resolveOption(this.options.timeout,y)),B.withCredentials=!!this.options.withCredentials,B.onload=function(Pe){L._finishedUploading(y,B,Pe)},B.ontimeout=function(){L._handleUploadError(y,B,"Request timedout after ".concat(L.options.timeout/1e3," seconds"))},B.onerror=function(){L._handleUploadError(y,B)};var ne=B.upload!=null?B.upload:B;ne.onprogress=function(Pe){return L._updateFilesUploadProgress(y,B,Pe)};var oe={Accept:"application/json","Cache-Control":"no-cache","X-Requested-With":"XMLHttpRequest"};this.options.headers&&A.extend(oe,this.options.headers);for(var fe in oe){var Ae=oe[fe];Ae&&B.setRequestHeader(fe,Ae)}var De=new FormData;if(this.options.params){var Ge=this.options.params;typeof Ge=="function"&&(Ge=Ge.call(this,y,B,y[0].upload.chunked?this._getChunk(y[0],B):null));for(var je in Ge){var Be=Ge[je];if(Array.isArray(Be))for(var $e=0;$e<Be.length;$e++)De.append(je,Be[$e]);else De.append(je,Be)}}var rt=M(y),it;try{for(rt.s();!(it=rt.n()).done;){var Dt=it.value;this.emit("sending",Dt,B,De)}}catch(Pe){rt.e(Pe)}finally{rt.f()}this.options.uploadMultiple&&this.emit("sendingmultiple",y,B,De),this._addFormElementData(De);for(var bt=0;bt<b.length;bt++){var _e=b[bt];De.append(_e.name,_e.data,_e.filename)}this.submitRequest(B,De,y)}},{key:"_transformFiles",value:function(y,b){for(var L=this,B=[],U=0,V=function(Y){L.options.transformFile.call(L,y[Y],function(Q){B[Y]=Q,++U===y.length&&b(B)})},W=0;W<y.length;W++)V(W)}},{key:"_addFormElementData",value:function(y){if(this.element.tagName==="FORM"){var b=M(this.element.querySelectorAll("input, textarea, select, button")),L;try{for(b.s();!(L=b.n()).done;){var B=L.value,U=B.getAttribute("name"),V=B.getAttribute("type");if(V&&(V=V.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&&y.append(U,Y.value)}}catch(Q){W.e(Q)}finally{W.f()}}else(!V||V!=="checkbox"&&V!=="radio"||B.checked)&&y.append(U,B.value)}}catch(Q){b.e(Q)}finally{b.f()}}}},{key:"_updateFilesUploadProgress",value:function(y,b,L){if(y[0].upload.chunked){var W=y[0],Z=this._getChunk(W,b);L?(Z.progress=100*L.loaded/L.total,Z.total=L.total,Z.bytesSent=L.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(y),U;try{for(B.s();!(U=B.n()).done;){var V=U.value;V.upload.total&&V.upload.bytesSent&&V.upload.bytesSent==V.upload.total||(L?(V.upload.progress=100*L.loaded/L.total,V.upload.total=L.total,V.upload.bytesSent=L.loaded):(V.upload.progress=100,V.upload.bytesSent=V.upload.total),this.emit("uploadprogress",V,V.upload.progress,V.upload.bytesSent))}}catch(Q){B.e(Q)}finally{B.f()}}}},{key:"_finishedUploading",value:function(y,b,L){var B;if(y[0].status!==A.CANCELED&&b.readyState===4){if(b.responseType!=="arraybuffer"&&b.responseType!=="blob"&&(B=b.responseText,b.getResponseHeader("content-type")&&~b.getResponseHeader("content-type").indexOf("application/json")))try{B=JSON.parse(B)}catch(U){L=U,B="Invalid JSON response from server."}this._updateFilesUploadProgress(y,b),200<=b.status&&b.status<300?y[0].upload.chunked?y[0].upload.finishedChunkUpload(this._getChunk(y[0],b),B):this._finished(y,B,L):this._handleUploadError(y,b,B)}}},{key:"_handleUploadError",value:function(y,b,L){if(y[0].status!==A.CANCELED){if(y[0].upload.chunked&&this.options.retryChunks){var B=this._getChunk(y[0],b);if(B.retries++<this.options.retryChunksLimit){this._uploadData(y,[B.dataBlock]);return}else console.warn("Retried this chunk too often. Giving up.")}this._errorProcessing(y,L||this.options.dictResponseError.replace("{{statusCode}}",b.status),b)}}},{key:"submitRequest",value:function(y,b,L){if(y.readyState!=1){console.warn("Cannot send this request because the XMLHttpRequest.readyState is not OPENED.");return}y.send(b)}},{key:"_finished",value:function(y,b,L){var B=M(y),U;try{for(B.s();!(U=B.n()).done;){var V=U.value;V.status=A.SUCCESS,this.emit("success",V,b,L),this.emit("complete",V)}}catch(W){B.e(W)}finally{B.f()}if(this.options.uploadMultiple&&(this.emit("successmultiple",y,b,L),this.emit("completemultiple",y)),this.options.autoProcessQueue)return this.processQueue()}},{key:"_errorProcessing",value:function(y,b,L){var B=M(y),U;try{for(B.s();!(U=B.n()).done;){var V=U.value;V.status=A.ERROR,this.emit("error",V,b,L),this.emit("complete",V)}}catch(W){B.e(W)}finally{B.f()}if(this.options.uploadMultiple&&(this.emit("errormultiple",y,b,L),this.emit("completemultiple",y)),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(y){for(var b=arguments.length,L=new Array(b>1?b-1:0),B=1;B<b;B++)L[B-1]=arguments[B];for(var U=0,V=L;U<V.length;U++){var W=V[U];for(var Z in W){var Y=W[Z];y[Z]=Y}}return y}},{key:"uuidv4",value:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(y){var b=Math.random()*16|0,L=y==="x"?b:b&3|8;return L.toString(16)})}}]),A}(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 y=[],b=M(C),L;try{for(b.s();!(L=b.n()).done;){var B=L.value;/(^| )dropzone($| )/.test(B.className)?y.push(N.push(B)):y.push(void 0)}}catch(U){b.e(U)}finally{b.f()}return y}()};R(document.getElementsByTagName("div")),R(document.getElementsByTagName("form"))}return function(){var A=[],C=M(N),y;try{for(C.s();!(y=C.n()).done;){var b=y.value;q.optionsForElement(b)!==!1?A.push(new q(b)):A.push(void 0)}}catch(L){C.e(L)}finally{C.f()}return A}()},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),A;try{for(R.s();!(A=R.n()).done;){var C=A.value;if(C.test(navigator.userAgent)){N=!1;continue}}}catch(y){R.e(y)}finally{R.f()}}else N=!1;return N},q.dataURItoBlob=function(N){for(var R=atob(N.split(",")[1]),A=N.split(",")[0].split(":")[1].split(";")[0],C=new ArrayBuffer(R.length),y=new Uint8Array(C),b=0,L=R.length,B=0<=L;B?b<=L:b>=L;B?b++:b--)y[b]=R.charCodeAt(b);return new Blob([C],{type:A})};var J=function(R,A){return R.filter(function(C){return C!==A}).map(function(C){return C})},te=function(R){return R.replace(/[\-_](\w)/g,function(A){return A.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 A;if(typeof N=="string"?A=document.querySelector(N):N.nodeType!=null&&(A=N),A==null)throw new Error("Invalid `".concat(R,"` option provided. Please provide a CSS selector or a plain HTML element."));return A},q.getElements=function(N,R){var A,C;if(N instanceof Array){C=[];try{var y=M(N,!0),b;try{for(y.s();!(b=y.n()).done;)A=b.value,C.push(this.getElement(A,R))}catch(U){y.e(U)}finally{y.f()}}catch{C=null}}else if(typeof N=="string"){C=[];var L=M(document.querySelectorAll(N)),B;try{for(L.s();!(B=L.n()).done;)A=B.value,C.push(A)}catch(U){L.e(U)}finally{L.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,A){if(window.confirm(N))return R();if(A!=null)return A()},q.isValidFile=function(N,R){if(!R)return!0;R=R.split(",");var A=N.type,C=A.replace(/\/.*$/,""),y=M(R),b;try{for(y.s();!(b=y.n()).done;){var L=b.value;if(L=L.trim(),L.charAt(0)==="."){if(N.name.toLowerCase().indexOf(L.toLowerCase(),N.name.length-L.length)!==-1)return!0}else if(/\/\*$/.test(L)){if(C===L.replace(/\/.*$/,""))return!0}else if(A===L)return!0}}catch(B){y.e(B)}finally{y.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 A=R.naturalHeight,C=document.createElement("canvas");C.width=1,C.height=A;var y=C.getContext("2d");y.drawImage(R,0,0);for(var b=y.getImageData(1,0,1,A),L=b.data,B=0,U=A,V=A;V>B;){var W=L[(V-1)*4+3];W===0?U=V:B=V,V=U+B>>1}var Z=V/A;return Z===0?1:Z},ge=function(R,A,C,y,b,L,B,U,V,W){var Z=me(A);return R.drawImage(A,C,y,b,L,B,U,V,W/Z)},ve=function(){function N(){H(this,N)}return G(N,null,[{key:"initClass",value:function(){this.KEY_STR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}},{key:"encode64",value:function(A){for(var C="",y=void 0,b=void 0,L="",B=void 0,U=void 0,V=void 0,W="",Z=0;y=A[Z++],b=A[Z++],L=A[Z++],B=y>>2,U=(y&3)<<4|b>>4,V=(b&15)<<2|L>>6,W=L&63,isNaN(b)?V=W=64:isNaN(L)&&(W=64),C=C+this.KEY_STR.charAt(B)+this.KEY_STR.charAt(U)+this.KEY_STR.charAt(V)+this.KEY_STR.charAt(W),y=b=L="",B=U=V=W="",Z<A.length;);return C}},{key:"restore",value:function(A,C){if(!A.match("data:image/jpeg;base64,"))return C;var y=this.decode64(A.replace("data:image/jpeg;base64,","")),b=this.slice2Segments(y),L=this.exifManipulation(C,b);return"data:image/jpeg;base64,".concat(this.encode64(L))}},{key:"exifManipulation",value:function(A,C){var y=this.getExifArray(C),b=this.insertExif(A,y),L=new Uint8Array(b);return L}},{key:"getExifArray",value:function(A){for(var C=void 0,y=0;y<A.length;){if(C=A[y],C[0]===255&C[1]===225)return C;y++}return[]}},{key:"insertExif",value:function(A,C){var y=A.replace("data:image/jpeg;base64,",""),b=this.decode64(y),L=b.indexOf(255,3),B=b.slice(0,L),U=b.slice(L),V=B;return V=V.concat(C),V=V.concat(U),V}},{key:"slice2Segments",value:function(A){for(var C=0,y=[];;){var b;if(A[C]===255&A[C+1]===218)break;if(A[C]===255&A[C+1]===216)C+=2;else{b=A[C+2]*256+A[C+3];var L=C+b+2,B=A.slice(C,L);y.push(B),C=L}if(C>A.length)break}return y}},{key:"decode64",value:function(A){var C=void 0,y=void 0,b="",L=void 0,B=void 0,U=void 0,V="",W=0,Z=[],Y=/[^A-Za-z0-9\+\/\=]/g;for(Y.exec(A)&&console.warn(`There were invalid base64 characters in the input text.
64
64
  Valid base64 characters are A-Z, a-z, 0-9, '+', '/',and '='
65
- Expect errors in decoding.`),A=A.replace(/[^A-Za-z0-9\+\/\=]/g,"");L=this.KEY_STR.indexOf(A.charAt(W++)),B=this.KEY_STR.indexOf(A.charAt(W++)),U=this.KEY_STR.indexOf(A.charAt(W++)),V=this.KEY_STR.indexOf(A.charAt(W++)),C=L<<2|B>>4,y=(B&15)<<4|U>>2,b=(U&3)<<6|V,Z.push(C),U!==64&&Z.push(y),V!==64&&Z.push(b),C=y=b="",L=B=U=V="",W<A.length;);return Z}}]),N}();ve.initClass();var xe=function(R,A){var C=!1,y=!0,b=R.document,L=b.documentElement,B=b.addEventListener?"addEventListener":"attachEvent",U=b.addEventListener?"removeEventListener":"detachEvent",V=b.addEventListener?"":"on",W=function Y(Q){if(!(Q.type==="readystatechange"&&b.readyState!=="complete")&&((Q.type==="load"?R:b)[U](V+Q.type,Y,!1),!C&&(C=!0)))return A.call(R,Q.type||Q)},Z=function Y(){try{L.doScroll("left")}catch{setTimeout(Y,50);return}return W("poll")};if(b.readyState!=="complete"){if(b.createEventObject&&L.doScroll){try{y=!R.frameElement}catch{}y&&Z()}return b[B](V+"DOMContentLoaded",W,!1),b[B](V+"readystatechange",W,!1),R[B](V+"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 Oe(N,R,A){if(typeof N<"u"&&N!==null&&typeof N[R]=="function")return A(N,R)}window.Dropzone=q;var ye=q}(),a}()})}(xo)),xo.exports}var _y=Vy();const Eo=Ri(_y),qy={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function zy(n,e){return u.openBlock(),u.createElementBlock("svg",qy,e[0]||(e[0]=[u.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 Hy={render:zy},Gy={class:"file-upload"},Wy=["name","value"],Ky={key:0,class:"preview"},Xy={class:"file-upload-preview"},Yy=["src"],Zy={key:1,class:"preview"},Qy={class:"file-upload-preview"},Jy=["src","title"],eb=["href"],tb={class:"file-upload-title"},nb={class:"file-upload-file-remove"},rb={class:"relative"},sb={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"},ib={__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}},emits:["update:modelValue"],setup(n,{emit:e}){Eo.autoDiscover=!1;const t=n,r=u.ref([]),s=u.ref(Eo),a=u.ref(null),o=u.computed(()=>JSON.stringify(r)),l=c=>["image/gif","image/jpeg","image/png","image/tiff"].includes(c),i=c=>{nt.delete(t.deleteEndpoint+"?"+c.id).then(()=>{r.value=null}).catch(console.error)};return u.onMounted(()=>{var d;a.value=t.formData;const c=t.csrf;s.value=new Eo(s.value,{url:(t==null?void 0:t.submitEndpoint)+"?"+((d=a.value)==null?void 0:d.id),addRemoveLinks:!0,maxFiles:1,sending:(h,f,g)=>{g.append("_token",c),g.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}),(c,d)=>(u.openBlock(),u.createElementBlock("div",Gy,[u.createElementVNode("input",{type:"hidden",name:n.name,value:o.value},null,8,Wy),n.modelValue?(u.openBlock(),u.createElementBlock("div",Ky,[d[1]||(d[1]=u.createTextVNode(" @todo handle upload here ")),u.createElementVNode("span",Xy,[u.createElementVNode("img",{class:"img rounded-lg",src:n.modelValue,title:"Image"},null,8,Yy)])])):r.value&&r.value.length?(u.openBlock(),u.createElementBlock("div",Zy,[u.createElementVNode("span",Qy,[l(r.value.mime_type)?(u.openBlock(),u.createElementBlock("img",{key:0,class:"img",src:r.value.url,title:r.value.file_name},null,8,Jy)):u.createCommentVNode("",!0)]),u.createElementVNode("a",{href:r.value.url,target:"_blank",class:"link"},[u.createElementVNode("div",tb,u.toDisplayString(r.value.file_name),1)],8,eb),u.createElementVNode("a",nb,[u.createElementVNode("i",{class:"fal fa-times",onClick:d[0]||(d[0]=h=>i(r.value))})])])):u.createCommentVNode("",!0),u.withDirectives(u.createElementVNode("div",rb,[u.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),u.createElementVNode("div",sb,[u.createElementVNode("div",null,[u.createVNode(u.unref(Hy),{class:"w-6 h-6"})]),d[2]||(d[2]=u.createElementVNode("div",{class:"text-sm text-center"},[u.createElementVNode("p",null,[u.createElementVNode("span",{class:"text-brand-900"},"Click to upload"),u.createElementVNode("span",null," or drag and drop")]),u.createElementVNode("span",null,"(max. 20MB)")],-1))])],512),[[u.vShow,!n.modelValue]])]))}},ob={class:"item-edit"},ab={class:"flex items-start gap-4 px-6 pt-4 h-full"},lb={class:"flex flex-1 flex-col gap-4"},cb={class:"flex flex-col gap-8"},ub={class:"flex flex-col gap-8"},db={class:"flex flex-col gap-4"},fb={class:"flex w-full max-w-[356px] flex-col gap-4"},hb={class:"flex justify-between space-x-xsSpace pt-xsSpace gap-4 fixed bottom-0 w-full bg-gray-200 py-2 px-6"},pb={__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=e,r=n,s=u.ref({public:r.item.public,title:r.item.title,description:r.item.description,featured_image:r.item.featured_image});r.item.hasOwnProperty("primary_button")&&(s.value.primary_button=r.item.primary_button),r.item.hasOwnProperty("secondary_button")&&(s.value.secondary_button=r.item.secondary_button);const a=()=>{t("update",s.value),r.saveEndpoint&&nt.post(r.saveEndpoint,s.value).then(()=>{r.cancelEndpoint&&(window.location.href=r.cancelEndpoint)})},o=()=>{t("close",s.value),r.cancelEndpoint&&(window.location.href=r.cancelEndpoint)},l=u.computed(()=>{var d;return((d=s.value.description)==null?void 0:d.replace(/<[^>]*>/g," ").trim()).split(/\s+/).filter(h=>h.length>0).length});return(i,c)=>{var d,h,f,g;return u.openBlock(),u.createElementBlock("div",ob,[u.createElementVNode("div",ab,[u.createElementVNode("div",lb,[u.createVNode(qr,{title:"Description"},{default:u.withCtx(()=>[u.createElementVNode("div",cb,[u.createVNode(xn,{"is-vertical":"",field:"title","label-text":"Title *",class:"w-full",value:s.value.title,limit:51},{default:u.withCtx(()=>[u.withDirectives(u.createElementVNode("input",{"onUpdate:modelValue":c[0]||(c[0]=p=>s.value.title=p),name:"title",type:"text",placeholder:"Title",maxlength:51,class:"border-1 border-solid border-gray-300 rounded-lg bg-white w-full"},null,512),[[u.vModelText,s.value.title]])]),_:1},8,["value"]),u.createVNode(xn,{"is-vertical":"",field:"description","label-text":"Description *",class:"w-full mb-4",value:l.value,"show-count":!0},{default:u.withCtx(()=>[u.createVNode(hv,{modelValue:s.value.description,"onUpdate:modelValue":c[1]||(c[1]=p=>s.value.description=p)},null,8,["modelValue"])]),_:1},8,["value"])])]),_:1}),s.value.hasOwnProperty("primary_button")?(u.openBlock(),u.createBlock(qr,{key:0,title:((h=(d=n.item)==null?void 0:d.primary_button)==null?void 0:h.name)??"Primary button"},{default:u.withCtx(()=>[u.createElementVNode("div",ub,[u.createVNode(ts,{name:"show",modelValue:s.value.primary_button.show,"onUpdate:modelValue":c[2]||(c[2]=p=>s.value.primary_button.show=p),title:"Show Button"},null,8,["modelValue"]),u.createVNode(xn,{"is-vertical":"",field:"primary_button.label","label-text":"Button Label *",class:"w-full mb-4",value:s.value.primary_button.label,limit:20},{default:u.withCtx(()=>[u.withDirectives(u.createElementVNode("input",{"onUpdate:modelValue":c[3]||(c[3]=p=>s.value.primary_button.label=p),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),[[u.vModelText,s.value.primary_button.label]])]),_:1},8,["value"]),u.createVNode(ti,{name:"primary",type:s.value.primary_button.type,"onUpdate:type":c[4]||(c[4]=p=>s.value.primary_button.type=p),url:s.value.primary_button.url,"onUpdate:url":c[5]||(c[5]=p=>s.value.primary_button.url=p),openInNewTab:s.value.primary_button.open_in_new_tab,"onUpdate:openInNewTab":c[6]||(c[6]=p=>s.value.primary_button.open_in_new_tab=p),sites:n.sites},null,8,["type","url","openInNewTab","sites"])])]),_:1},8,["title"])):u.createCommentVNode("",!0),s.value.hasOwnProperty("secondary_button")?(u.openBlock(),u.createBlock(qr,{key:1,title:((g=(f=n.item)==null?void 0:f.secondary_button)==null?void 0:g.name)??"Secondary button"},{default:u.withCtx(()=>{var p;return[u.createElementVNode("div",db,[u.createVNode(ts,{name:"show",modelValue:s.value.secondary_button.show,"onUpdate:modelValue":c[7]||(c[7]=v=>s.value.secondary_button.show=v),title:"Show Button"},null,8,["modelValue"]),(p=s.value.secondary_button)!=null&&p.show?(u.openBlock(),u.createElementBlock(u.Fragment,{key:0},[u.createVNode(xn,{"is-vertical":"",field:"secondary_button.label","label-text":"Button Label *",class:"w-full mb-4",value:s.value.secondary_button.label,limit:20},{default:u.withCtx(()=>[u.withDirectives(u.createElementVNode("input",{"onUpdate:modelValue":c[8]||(c[8]=v=>s.value.secondary_button.label=v),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),[[u.vModelText,s.value.secondary_button.label]])]),_:1},8,["value"]),u.createVNode(ti,{name:"secondary",type:s.value.secondary_button.type,"onUpdate:type":c[9]||(c[9]=v=>s.value.secondary_button.type=v),url:s.value.secondary_button.url,"onUpdate:url":c[10]||(c[10]=v=>s.value.secondary_button.url=v),openInNewTab:s.value.secondary_button.open_in_new_tab,"onUpdate:openInNewTab":c[11]||(c[11]=v=>s.value.secondary_button.open_in_new_tab=v),sites:n.sites},null,8,["type","url","openInNewTab","sites"])],64)):u.createCommentVNode("",!0)])]}),_:1},8,["title"])):u.createCommentVNode("",!0)]),u.createElementVNode("div",fb,[u.createVNode(qr,{title:"Visibility",supporting_text:"Toggle off if you'd like to hide this item"},{default:u.withCtx(()=>[u.createVNode(ts,{modelValue:s.value.public,"onUpdate:modelValue":c[12]||(c[12]=p=>s.value.public=p),name:"public",label:"Public"},null,8,["modelValue"])]),_:1}),u.createVNode(qr,{title:"Featured Image",supporting_text:"Recommended dimension: 1200*1060px"},{default:u.withCtx(()=>[u.createVNode(ib,{name:"image",modelValue:s.value.featured_image,"onUpdate:modelValue":c[13]||(c[13]=p=>s.value.featured_image=p)},null,8,["modelValue"])]),_:1})])]),u.renderSlot(i.$slots,"default",{},()=>[u.createElementVNode("div",hb,[u.createElementVNode("a",{onClick:o,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 "),u.createElementVNode("a",{onClick:u.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=pb,Ye.PageBuilder=Gd,Ye.PageRender=Qf,Object.defineProperty(Ye,Symbol.toStringTag,{value:"Module"})});
65
+ Expect errors in decoding.`),A=A.replace(/[^A-Za-z0-9\+\/\=]/g,"");L=this.KEY_STR.indexOf(A.charAt(W++)),B=this.KEY_STR.indexOf(A.charAt(W++)),U=this.KEY_STR.indexOf(A.charAt(W++)),V=this.KEY_STR.indexOf(A.charAt(W++)),C=L<<2|B>>4,y=(B&15)<<4|U>>2,b=(U&3)<<6|V,Z.push(C),U!==64&&Z.push(y),V!==64&&Z.push(b),C=y=b="",L=B=U=V="",W<A.length;);return Z}}]),N}();ve.initClass();var xe=function(R,A){var C=!1,y=!0,b=R.document,L=b.documentElement,B=b.addEventListener?"addEventListener":"attachEvent",U=b.addEventListener?"removeEventListener":"detachEvent",V=b.addEventListener?"":"on",W=function Y(Q){if(!(Q.type==="readystatechange"&&b.readyState!=="complete")&&((Q.type==="load"?R:b)[U](V+Q.type,Y,!1),!C&&(C=!0)))return A.call(R,Q.type||Q)},Z=function Y(){try{L.doScroll("left")}catch{setTimeout(Y,50);return}return W("poll")};if(b.readyState!=="complete"){if(b.createEventObject&&L.doScroll){try{y=!R.frameElement}catch{}y&&Z()}return b[B](V+"DOMContentLoaded",W,!1),b[B](V+"readystatechange",W,!1),R[B](V+"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 Oe(N,R,A){if(typeof N<"u"&&N!==null&&typeof N[R]=="function")return A(N,R)}window.Dropzone=q;var ye=q}(),a}()})}(xo)),xo.exports}var _y=Vy();const Eo=Ri(_y),qy={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function zy(n,e){return u.openBlock(),u.createElementBlock("svg",qy,e[0]||(e[0]=[u.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 Hy={render:zy},Gy={class:"file-upload"},Wy=["name","value"],Ky={key:0,class:"preview"},Xy={class:"file-upload-preview"},Yy=["src"],Zy={key:1,class:"preview"},Qy={class:"file-upload-preview"},Jy=["src","title"],eb=["href"],tb={class:"file-upload-title"},nb={class:"file-upload-file-remove"},rb={class:"relative"},sb={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"},ib={__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}},emits:["update:modelValue"],setup(n,{emit:e}){Eo.autoDiscover=!1;const t=n,r=u.ref([]),s=u.ref(Eo),a=u.ref(null),o=u.computed(()=>JSON.stringify(r)),c=l=>["image/gif","image/jpeg","image/png","image/tiff"].includes(l),i=l=>{nt.delete(t.deleteEndpoint+"?"+l.id).then(()=>{r.value=null}).catch(console.error)};return u.onMounted(()=>{var d;a.value=t.formData;const l=t.csrf;s.value=new Eo(s.value,{url:(t==null?void 0:t.submitEndpoint)+"?"+((d=a.value)==null?void 0:d.id),addRemoveLinks:!0,maxFiles:1,sending:(h,f,g)=>{g.append("_token",l),g.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}),(l,d)=>(u.openBlock(),u.createElementBlock("div",Gy,[u.createElementVNode("input",{type:"hidden",name:n.name,value:o.value},null,8,Wy),n.modelValue?(u.openBlock(),u.createElementBlock("div",Ky,[d[1]||(d[1]=u.createTextVNode(" @todo handle upload here ")),u.createElementVNode("span",Xy,[u.createElementVNode("img",{class:"img rounded-lg",src:n.modelValue,title:"Image"},null,8,Yy)])])):r.value&&r.value.length?(u.openBlock(),u.createElementBlock("div",Zy,[u.createElementVNode("span",Qy,[c(r.value.mime_type)?(u.openBlock(),u.createElementBlock("img",{key:0,class:"img",src:r.value.url,title:r.value.file_name},null,8,Jy)):u.createCommentVNode("",!0)]),u.createElementVNode("a",{href:r.value.url,target:"_blank",class:"link"},[u.createElementVNode("div",tb,u.toDisplayString(r.value.file_name),1)],8,eb),u.createElementVNode("a",nb,[u.createElementVNode("i",{class:"fal fa-times",onClick:d[0]||(d[0]=h=>i(r.value))})])])):u.createCommentVNode("",!0),u.withDirectives(u.createElementVNode("div",rb,[u.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),u.createElementVNode("div",sb,[u.createElementVNode("div",null,[u.createVNode(u.unref(Hy),{class:"w-6 h-6"})]),d[2]||(d[2]=u.createElementVNode("div",{class:"text-sm text-center"},[u.createElementVNode("p",null,[u.createElementVNode("span",{class:"text-brand-900"},"Click to upload"),u.createElementVNode("span",null," or drag and drop")]),u.createElementVNode("span",null,"(max. 20MB)")],-1))])],512),[[u.vShow,!n.modelValue]])]))}},ob={class:"item-edit"},ab={class:"flex items-start gap-4 px-6 pt-4 h-full"},lb={class:"flex flex-1 flex-col gap-4"},cb={class:"flex flex-col gap-8"},ub={class:"flex flex-col gap-8"},db={class:"flex flex-col gap-4"},fb={class:"flex w-full max-w-[356px] flex-col gap-4"},hb={class:"flex justify-between space-x-xsSpace pt-xsSpace gap-4 fixed bottom-0 w-full bg-gray-200 py-2 px-6"},pb={__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=e,r=n,s=u.ref({public:r.item.public,title:r.item.title,description:r.item.description,featured_image:r.item.featured_image});r.item.hasOwnProperty("primary_button")&&(s.value.primary_button=r.item.primary_button),r.item.hasOwnProperty("secondary_button")&&(s.value.secondary_button=r.item.secondary_button);const a=()=>{t("update",s.value),r.saveEndpoint&&nt.post(r.saveEndpoint,s.value).then(()=>{r.cancelEndpoint&&(window.location.href=r.cancelEndpoint)})},o=()=>{t("close",s.value),r.cancelEndpoint&&(window.location.href=r.cancelEndpoint)},c=u.computed(()=>{var d;return((d=s.value.description)==null?void 0:d.replace(/<[^>]*>/g," ").trim()).split(/\s+/).filter(h=>h.length>0).length});return(i,l)=>{var d,h,f,g;return u.openBlock(),u.createElementBlock("div",ob,[u.createElementVNode("div",ab,[u.createElementVNode("div",lb,[u.createVNode(zr,{title:"Description"},{default:u.withCtx(()=>[u.createElementVNode("div",cb,[u.createVNode(xn,{"is-vertical":"",field:"title","label-text":"Title *",class:"w-full",value:s.value.title,limit:51},{default:u.withCtx(()=>[u.withDirectives(u.createElementVNode("input",{"onUpdate:modelValue":l[0]||(l[0]=p=>s.value.title=p),name:"title",type:"text",placeholder:"Title",maxlength:51,class:"border-1 border-solid border-gray-300 rounded-lg bg-white w-full"},null,512),[[u.vModelText,s.value.title]])]),_:1},8,["value"]),u.createVNode(xn,{"is-vertical":"",field:"description","label-text":"Description *",class:"w-full mb-4",value:c.value,"show-count":!0},{default:u.withCtx(()=>[u.createVNode(hv,{modelValue:s.value.description,"onUpdate:modelValue":l[1]||(l[1]=p=>s.value.description=p)},null,8,["modelValue"])]),_:1},8,["value"])])]),_:1}),s.value.hasOwnProperty("primary_button")?(u.openBlock(),u.createBlock(zr,{key:0,title:((h=(d=n.item)==null?void 0:d.primary_button)==null?void 0:h.name)??"Primary button"},{default:u.withCtx(()=>[u.createElementVNode("div",ub,[u.createVNode(ts,{name:"show",modelValue:s.value.primary_button.show,"onUpdate:modelValue":l[2]||(l[2]=p=>s.value.primary_button.show=p),title:"Show Button"},null,8,["modelValue"]),u.createVNode(xn,{"is-vertical":"",field:"primary_button.label","label-text":"Button Label *",class:"w-full mb-4",value:s.value.primary_button.label,limit:20},{default:u.withCtx(()=>[u.withDirectives(u.createElementVNode("input",{"onUpdate:modelValue":l[3]||(l[3]=p=>s.value.primary_button.label=p),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),[[u.vModelText,s.value.primary_button.label]])]),_:1},8,["value"]),u.createVNode(ti,{name:"primary",type:s.value.primary_button.type,"onUpdate:type":l[4]||(l[4]=p=>s.value.primary_button.type=p),url:s.value.primary_button.url,"onUpdate:url":l[5]||(l[5]=p=>s.value.primary_button.url=p),openInNewTab:s.value.primary_button.open_in_new_tab,"onUpdate:openInNewTab":l[6]||(l[6]=p=>s.value.primary_button.open_in_new_tab=p),sites:n.sites},null,8,["type","url","openInNewTab","sites"])])]),_:1},8,["title"])):u.createCommentVNode("",!0),s.value.hasOwnProperty("secondary_button")?(u.openBlock(),u.createBlock(zr,{key:1,title:((g=(f=n.item)==null?void 0:f.secondary_button)==null?void 0:g.name)??"Secondary button"},{default:u.withCtx(()=>{var p;return[u.createElementVNode("div",db,[u.createVNode(ts,{name:"show",modelValue:s.value.secondary_button.show,"onUpdate:modelValue":l[7]||(l[7]=v=>s.value.secondary_button.show=v),title:"Show Button"},null,8,["modelValue"]),(p=s.value.secondary_button)!=null&&p.show?(u.openBlock(),u.createElementBlock(u.Fragment,{key:0},[u.createVNode(xn,{"is-vertical":"",field:"secondary_button.label","label-text":"Button Label *",class:"w-full mb-4",value:s.value.secondary_button.label,limit:20},{default:u.withCtx(()=>[u.withDirectives(u.createElementVNode("input",{"onUpdate:modelValue":l[8]||(l[8]=v=>s.value.secondary_button.label=v),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),[[u.vModelText,s.value.secondary_button.label]])]),_:1},8,["value"]),u.createVNode(ti,{name:"secondary",type:s.value.secondary_button.type,"onUpdate:type":l[9]||(l[9]=v=>s.value.secondary_button.type=v),url:s.value.secondary_button.url,"onUpdate:url":l[10]||(l[10]=v=>s.value.secondary_button.url=v),openInNewTab:s.value.secondary_button.open_in_new_tab,"onUpdate:openInNewTab":l[11]||(l[11]=v=>s.value.secondary_button.open_in_new_tab=v),sites:n.sites},null,8,["type","url","openInNewTab","sites"])],64)):u.createCommentVNode("",!0)])]}),_:1},8,["title"])):u.createCommentVNode("",!0)]),u.createElementVNode("div",fb,[u.createVNode(zr,{title:"Visibility",supporting_text:"Toggle off if you'd like to hide this item"},{default:u.withCtx(()=>[u.createVNode(ts,{modelValue:s.value.public,"onUpdate:modelValue":l[12]||(l[12]=p=>s.value.public=p),name:"public",label:"Public"},null,8,["modelValue"])]),_:1}),u.createVNode(zr,{title:"Featured Image",supporting_text:"Recommended dimension: 1200*1060px"},{default:u.withCtx(()=>[u.createVNode(ib,{name:"image",modelValue:s.value.featured_image,"onUpdate:modelValue":l[13]||(l[13]=p=>s.value.featured_image=p)},null,8,["modelValue"])]),_:1})])]),u.renderSlot(i.$slots,"default",{},()=>[u.createElementVNode("div",hb,[u.createElementVNode("a",{onClick:o,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 "),u.createElementVNode("a",{onClick:u.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=pb,Ye.PageBuilder=Gd,Ye.PageRender=Qf,Object.defineProperty(Ye,Symbol.toStringTag,{value:"Module"})});