@dcodegroup-au/page-builder 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/page-builder.css +1 -1
- package/dist/page-builder.es.js +2496 -2456
- package/dist/page-builder.umd.js +40 -40
- package/example/src/App.vue +1 -1
- package/package.json +1 -1
- package/src/components/PageBuilder.vue +4 -18
- package/src/components/PageRender.vue +1 -1
- package/src/components/builders/VLinks.vue +3 -21
- package/src/components/builders/VSliders.vue +31 -9
- package/src/components/common/ActionMenu.vue +18 -1
- package/src/components/helpers/pageBuilderFactory.js +3 -3
- package/src/components/presenters/components/VSliderPresenter.vue +3 -3
- package/src/components/presenters/modules/HeroHeader.vue +1 -1
- package/tailwind.config.js +9 -0
package/dist/page-builder.umd.js
CHANGED
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
(function(Ye,h){typeof exports=="object"&&typeof module<"u"?h(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],h):(Ye=typeof globalThis<"u"?globalThis:Ye||self,h(Ye.PageBuilder={},Ye.Vue))})(this,function(Ye,h){"use strict";var Fy=Object.defineProperty;var My=(Ye,h,Kn)=>h in Ye?Fy(Ye,h,{enumerable:!0,configurable:!0,writable:!0,value:Kn}):Ye[h]=Kn;var Ee=(Ye,h,Kn)=>My(Ye,typeof h!="symbol"?h+"":h,Kn);const Kn={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function Kc(n,e){return h.openBlock(),h.createElementBlock("svg",Kn,e[0]||(e[0]=[h.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m9 18 6-6-6-6"},null,-1)]))}const Fo={render:Kc},Xc={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function Yc(n,e){return h.openBlock(),h.createElementBlock("svg",Xc,e[0]||(e[0]=[h.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m6 9 6 6 6-6"},null,-1)]))}const Zc={render:Yc},es=(n,e)=>{const t=n.__vccOpts||n;for(const[r,s]of e)t[r]=s;return t},Qc={};function Jc(n,e){return e[0]||(e[0]=h.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., "Hero header").</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 eu=es(Qc,[["render",Jc]]),tu={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function nu(n,e){return h.openBlock(),h.createElementBlock("svg",tu,e[0]||(e[0]=[h.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 5v14m-7-7h14"},null,-1)]))}const Mo={render:nu},Do={data:{required:!0,type:Object},sites:{required:!0,type:Array}};function ru(n={}){return{title:"New slide",description:"New description",public:!1,featured_image:"",primary_button:{show:!1,label:"",type:"site-content",link_to:"",is_new_tab:!1,...n.primary_button||{}},secondary_button:{show:!1,label:"",type:"site-content",link_to:"",is_new_tab:!1,...n.secondary_button||{}},...n}}const su={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function iu(n,e){return h.openBlock(),h.createElementBlock("svg",su,e[0]||(e[0]=[h.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 ou={render:iu},au={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function lu(n,e){return h.openBlock(),h.createElementBlock("svg",au,e[0]||(e[0]=[h.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 Qs={render:lu},cu={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)}},uu={class:"relative z-50"},fu={key:0,class:"absolute -left-60 top-6 w-[240px] rounded-lg border border-gray-200 bg-white"},Uo=Object.assign({directives:{clickOutside:cu}},{__name:"ActionMenu",emits:["removeItem"],setup(n,{emit:e}){const t=h.ref(!1),r=e,s=()=>{t.value&&(t.value=!1)},a=()=>{r("removeItem"),t.value=!1};return(o,c)=>{const i=h.resolveDirective("click-outside");return h.withDirectives((h.openBlock(),h.createElementBlock("div",uu,[h.createVNode(h.unref(ou),{onClick:c[0]||(c[0]=l=>t.value=!t.value),class:"w-5 cursor-pointer text-gray-600"}),t.value?(h.openBlock(),h.createElementBlock("div",fu,[h.createElementVNode("a",{class:"flex items-center gap-2 p-2.5 cursor-pointer h-[48px] w-full",onClick:a},[h.createVNode(h.unref(Qs),{class:"w-5"}),c[1]||(c[1]=h.createTextVNode(" Delete "))])])):h.createCommentVNode("",!0)])),[[i,s]])}}}),du={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function hu(n,e){return h.openBlock(),h.createElementBlock("svg",du,e[0]||(e[0]=[h.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M18 6 6 18M6 6l12 12"},null,-1)]))}const pu={render:hu},gu={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"},mu={class:"p-6 flex justify-between flex-col"},vu={class:"flex justify-between"},yu={class:"p-2 rounded-full border-8 border-error-50 bg-error-100 text-error-600"},bu={class:"text-lg font-semibold text-gray-900 pb-2 pt-4"},xu={class:"text-sm text-gray-600 pb-4"},Eu={class:"flex justify-between space-x-xsSpace pt-xsSpace gap-4"},wu=["textContent"],Au=["textContent"],jo=es(h.defineComponent({__name:"VModal",props:{entity:{type:String,required:!0},callback:{type:Function,required:!1,default:()=>{}}},setup(n,{expose:e}){const t=n,r=h.ref(!1),s=h.reactive({cancelTitle:null,confirmTitle:null,scrollable:!0,data:null}),a=h.computed(()=>s.cancelTitle?s.cancelTitle:"Cancel"),o=h.computed(()=>s.confirmTitle?s.confirmTitle:"Delete"),c=u=>{r.value=!0,s.data=u},i=()=>{r.value=!1},l=async()=>{t.callback(s.data),r.value=!1};return e({open:c,close:i}),(u,d)=>(h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass([{"-open":r.value},"v-modal"])},[h.createVNode(h.Transition,{name:"fade"},{default:h.withCtx(()=>[r.value?(h.openBlock(),h.createElementBlock("div",gu,[h.renderSlot(u.$slots,"default",{},()=>[h.createElementVNode("div",{class:h.normalizeClass(["relative min-h-[260px] overflow-y-auto flex",{"overflow-y-visible":!u.scrollable}])},[h.createElementVNode("div",mu,[h.createElementVNode("div",null,[h.createElementVNode("div",vu,[h.createElementVNode("span",yu,[h.createVNode(h.unref(Qs),{class:"w-6 h-6"})]),h.createVNode(h.unref(pu),{class:"w-6 h-6 text-gray-400 hover:bg-gray-100 rounded-md cursor-pointer",onClick:i})]),h.createElementVNode("h4",bu,"Delete this "+h.toDisplayString(n.entity)+"?",1),h.createElementVNode("p",xu,"Do you want to delete this "+h.toDisplayString(n.entity)+"? This action cannot be undone.",1)]),h.createElementVNode("div",Eu,[h.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:h.toDisplayString(a.value)},null,8,wu),h.createElementVNode("a",{onClick:h.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:h.toDisplayString(o.value)},null,8,Au)])])],2)],!0)])):h.createCommentVNode("",!0)]),_:3})],2))}}),[["__scopeId","data-v-0ca1257f"]]),Su={class:"flex justify-between pb-2"},Tu={class:"text-lg font-semibold text-gray-900"},Nu={class:"flex flex-col gap-4"},Ou={class:"text-gray-600 border-b border-gray-200 pb-4 text-sm"},Cu={class:"flex flex-col gap-3"},Ru={class:"flex justify-between"},Iu={class:"flex flex-col gap-1"},Lu={class:"text-sm text-gray-600"},ku=["disabled"],Bu={class:"flex flex-col gap-3"},Pu={class:"flex items-center gap-4 px-2 py-1 hover:bg-gray-100 rounded-lg"},Fu={class:"flex flex-1 cursor-pointer items-center justify-between relative"},Mu=["onClick"],Du={class:"text-xs text-gray-600"},Uu={class:"text-sm font-medium text-gray-900"},ju={__name:"VSliders",props:{...Do},emits:["update"],setup(n,{emit:e}){const t=e,r=n,s=h.ref(r.data.component),a=h.ref(null),o=()=>{s.value.data.push(ru()),t("update",s.value)},c=u=>{var d;(d=a==null?void 0:a.value)==null||d.open(u)},i=u=>{s.value.data.splice(u,1),t("update",s.value)},l=(u,d)=>{var f,m,g,v;u.hasOwnProperty("edit_url")&&(window.location.href=u.edit_url),window.location.href=`/admin/pages/${(m=(f=r==null?void 0:r.data)==null?void 0:f.page)==null?void 0:m.id}/sections/${(g=r==null?void 0:r.data)==null?void 0:g.sectionIndex}/components/${(v=r==null?void 0:r.data)==null?void 0:v.componentIndex}/slides/${d}`};return(u,d)=>(h.openBlock(),h.createElementBlock(h.Fragment,null,[h.createElementVNode("div",Su,[h.createElementVNode("p",Tu,h.toDisplayString(u.data.component.name),1)]),h.createElementVNode("div",Nu,[h.createElementVNode("div",Ou,h.toDisplayString(r.data.component.supportive_text),1),h.createElementVNode("div",Cu,[h.createElementVNode("div",Ru,[h.createElementVNode("div",Iu,[d[0]||(d[0]=h.createElementVNode("div",{class:"font-semibold text-gray-900"},"Sliders",-1)),h.createElementVNode("div",Lu,"This slider can contain up to "+h.toDisplayString(u.data.component.max_items)+" slides",1)]),h.createElementVNode("div",null,[h.createElementVNode("button",{disabled:s.value.data.length>=u.data.component.max_items,onClick:o,type:"button",class:h.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>=u.data.component.max_items}])},[h.createVNode(h.unref(Mo),{class:"h-5 w-5"}),d[1]||(d[1]=h.createElementVNode("span",null,"Add",-1))],10,ku)])]),h.createElementVNode("div",Bu,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(s.value.data,(f,m)=>(h.openBlock(),h.createElementBlock("div",Pu,[h.createElementVNode("div",Fu,[h.createElementVNode("div",{class:"flex flex-1 flex-col",onClick:g=>l(f,m)},[h.createElementVNode("div",Du," Slider #"+h.toDisplayString(m+1),1),h.createElementVNode("div",Uu,h.toDisplayString(f.title),1)],8,Mu),h.createVNode(Uo,{onRemoveItem:g=>c(m)},null,8,["onRemoveItem"])])]))),256))])])]),h.createVNode(jo,{ref_key:"modalRef",ref:a,entity:"slide",callback:i},null,512)],64))}},$u={class:"flex items-center gap-2"},Vu=["aria-checked"],_u={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=h.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)=>(h.openBlock(),h.createElementBlock("div",$u,[h.createElementVNode("button",{type:"button",class:h.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},[h.createElementVNode("span",{"aria-hidden":"true",class:h.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,Vu),n.title?(h.openBlock(),h.createElementBlock("span",_u,h.toDisplayString(n.title),1)):h.createCommentVNode("",!0)]))}},qu=["for"],zu={key:0,class:"v-field-label inline-block mb-2"},Hu={key:0},Gu={key:1,class:"absolute right-0 -bottom-6 text-sm text-gray-600 font-normal"},Wu={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 h.openBlock(),h.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?(h.openBlock(),h.createElementBlock("span",zu,[e.$slots.label?h.renderSlot(e.$slots,"label",{key:0}):(h.openBlock(),h.createElementBlock(h.Fragment,{key:1},[h.createTextVNode(h.toDisplayString(n.labelText)+" ",1),n.isRequired?(h.openBlock(),h.createElementBlock("span",Hu," *")):h.createCommentVNode("",!0)],64))])):h.createCommentVNode("",!0),h.renderSlot(e.$slots,"default"),n.limit?(h.openBlock(),h.createElementBlock("span",Gu,h.toDisplayString((r=n.value)==null?void 0:r.length)+"/"+h.toDisplayString(n.limit)+" characters ",1)):h.createCommentVNode("",!0),n.showCount?(h.openBlock(),h.createElementBlock("span",Wu," Word count: "+h.toDisplayString(n.value),1)):h.createCommentVNode("",!0)],8,qu)}}},Ku={class:"flex flex-col gap-2"},Xu=["value"],Yu={__name:"SiteContent",props:h.mergeModels({sites:{type:Object,required:!0},errors:{type:Object,required:!1,default:()=>({})}},{url:{},urlModifiers:{}}),emits:["update:url"],setup(n){const e=h.useModel(n,"url");return(t,r)=>(h.openBlock(),h.createElementBlock("div",Ku,[r[1]||(r[1]=h.createElementVNode("label",{class:"text-sm font-medium text-gray-700"},"Select a page from the site*",-1)),h.withDirectives(h.createElementVNode("select",{"onUpdate:modelValue":r[0]||(r[0]=s=>e.value=s),name:"url"},[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(n.sites,s=>(h.openBlock(),h.createElementBlock("option",{value:s.href},h.toDisplayString(s.name),9,Xu))),256))],512),[[h.vModelSelect,e.value]])]))}},Zu={__name:"ExternalPage",props:{url:{},urlModifiers:{}},emits:["update:url"],setup(n){const e=h.useModel(n,"url");return(t,r)=>(h.openBlock(),h.createBlock(Xn,{"is-vertical":"",field:"title","label-text":"URL *",class:"w-full"},{default:h.withCtx(()=>[h.withDirectives(h.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),[[h.vModelText,e.value]])]),_:1}))}},Qu={class:"flex flex-col gap-5"},Ju={key:0,class:"text-sm text-gray-700 font-medium py-2"},ef={class:"text-sm flex items-center gap-6 font-medium text-gray-700"},tf={class:"flex items-center gap-2 cursor-pointer"},nf=["name","value","disabled"],rf={class:"flex flex-col gap-2"},sf=["value"],of={class:"flex items-center gap-2"},Js={__name:"LinkedTo",props:h.mergeModels({label:{type:Object,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=h.useModel(n,"type"),t=h.useModel(n,"url"),r=h.useModel(n,"openInNewTab"),s=o=>o.split("-").map(c=>c.charAt(0).toUpperCase()+c.slice(1)).join(" "),a=o=>({"site-content":Yu,"external-page":Zu})[o]||null;return(o,c)=>(h.openBlock(),h.createElementBlock("div",Qu,[h.createElementVNode("div",null,[n.label?(h.openBlock(),h.createElementBlock("p",Ju,h.toDisplayString(n.label),1)):h.createCommentVNode("",!0),h.createElementVNode("div",ef,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(n.options,i=>(h.openBlock(),h.createElementBlock("label",tf,[h.withDirectives(h.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,nf),[[h.vModelRadio,e.value]]),h.createElementVNode("span",null,h.toDisplayString(s(i)),1)]))),256))])]),h.createElementVNode("div",rf,[(h.openBlock(),h.createBlock(h.resolveDynamicComponent(a(e.value)),{url:t.value,"onUpdate:url":c[1]||(c[1]=i=>t.value=i),sites:n.sites},null,40,["url","sites"])),h.createElementVNode("input",{type:"hidden",name:"url",value:t.value},null,8,sf)]),h.createElementVNode("div",of,[h.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"])])]))}},af={class:"flex justify-between pb-2"},lf={class:"flex justify-between w-full py-1"},cf={class:"text-lg font-semibold text-gray-900"},uf={class:"text-sm text-gray-600 mt-1"},ff={class:"flex flex-col gap-3"},df={class:"flex items-center justify-between"},hf={class:"text-lg font-semibold text-gray-900"},pf={class:"relative flex items-end"},gf=["onClick"],mf={class:"flex flex-col gap-6"},vf={class:"flex flex-col gap-1.5"},yf=["onUpdate:modelValue"],bf={__name:"VLinks",props:{...Do},emits:["update"],setup(n,{emit:e}){const t=e,r=n,s=h.ref(r.data.component),a=h.ref(null),o=h.ref(null),c=h.ref(null);function i(){s.value.data.length>=s.value.max_items||(s.value.data.push({title:"",type:"site-content",url:"",openInNewTab:""}),h.nextTick(()=>{o.value&&o.value.scrollIntoView({behavior:"smooth"})}),t("update",s.value))}const l=d=>{var f;c.value=d,(f=a==null?void 0:a.value)==null||f.open(d)},u=d=>{s.value.data.splice(d,1),t("update",s.value)};return(d,f)=>(h.openBlock(),h.createElementBlock(h.Fragment,null,[h.createElementVNode("div",af,[h.createElementVNode("div",lf,[h.createElementVNode("div",null,[h.createElementVNode("p",cf,h.toDisplayString(s.value.name),1),h.createElementVNode("p",uf,h.toDisplayString(s.value.supportive_text),1)]),h.createElementVNode("div",null,[h.createElementVNode("a",{onClick:i,class:h.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}])},[h.createVNode(h.unref(Mo),{class:"h-5 w-5"}),f[0]||(f[0]=h.createElementVNode("span",null,"Add",-1))],2)])])]),h.createElementVNode("div",ff,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(s.value.data,(m,g)=>(h.openBlock(),h.createElementBlock("div",{class:"flex flex-col gap-4 rounded-xl px-6 py-4 bg-gray-200",key:g,ref_for:!0,ref:g===s.value.data.length-1?v=>o.value=v:null},[h.createElementVNode("div",df,[h.createElementVNode("div",hf," Link #"+h.toDisplayString(g+1),1),h.createElementVNode("div",pf,[h.createVNode(Uo,null,{default:h.withCtx(()=>[h.createElementVNode("button",{class:"flex min-w-[15rem] items-center gap-2 p-2.5 hover:rounded-md hover:bg-gray-100",type:"button",onClick:v=>l(g)},[h.createVNode(h.unref(Qs),{class:"h-5 w-5 cursor-pointer stroke-gray-500"}),f[1]||(f[1]=h.createElementVNode("span",{class:"text-sm font-medium text-gray-700"}," Delete Link ",-1))],8,gf)]),_:2},1024)])]),h.createElementVNode("div",mf,[h.createElementVNode("div",vf,[h.createVNode(Xn,{"is-vertical":"",field:"title","label-text":"Title *",class:"w-full mb-4",value:m.title,limit:20},{default:h.withCtx(()=>[h.withDirectives(h.createElementVNode("input",{"onUpdate:modelValue":v=>m.title=v,name:"title",type:"text",placeholder:"Title",maxlength:20,class:"border-1 border-solid border-gray-300 rounded-lg bg-white w-full"},null,8,yf),[[h.vModelText,m.title]])]),_:2},1032,["value"]),h.createVNode(Js,{label:"Linked to",name:`link_${g+1}`,type:m.type,"onUpdate:type":v=>m.type=v,url:m.link_to,"onUpdate:url":v=>m.link_to=v,openInNewTab:m.open_in_new_tab,"onUpdate:openInNewTab":v=>m.open_in_new_tab=v,sites:d.sites},null,8,["name","type","onUpdate:type","url","onUpdate:url","openInNewTab","onUpdate:openInNewTab","sites"])])])]))),128))]),h.createVNode(jo,{ref_key:"modalRef",ref:a,entity:"link",callback:u},null,512)],64))}},xf={class:"flex gap-4 px-6 overflow-auto"},Ef={class:"flex w-[356px] flex-col gap-2"},wf={class:"border-b border-gray-200 pb-2"},Af=["onClick"],Sf={class:"text-lg font-semibold text-brand-800"},Tf={class:"relative flex items-center gap-3"},Nf={class:"cursor-pointer"},Of={key:0,class:"flex flex-col gap-2"},Cf=["onClick"],Rf={class:"flex flex-col"},If={class:"text-sm font-medium text-gray-900"},Lf={class:"flex items-center justify-between gap-3"},kf={class:"flex h-full flex-1 flex-col rounded-xl bg-gray-50 px-6 py-5 mb-20"},Bf={class:"flex justify-between space-x-xsSpace pt-xsSpace gap-4 fixed bottom-0 w-full bg-gray-200 py-2 px-6"},Pf={__name:"PageBuilder",props:{modelValue:{required:!0,type:Object},sites:{type:Array,default:()=>[{href:"/admin",name:"Site 1"},{href:"/login",name:"Site 2"}]}},emits:["save","close"],setup(n,{emit:e}){var m;const t=e,r=n,s=h.ref(JSON.parse(window.localStorage.getItem("pageBuilderOpenStates"))),a=h.ref(((m=r.modelValue)==null?void 0:m.sections)??[]);let o=h.ref(null);const c=h.ref({sliders:h.markRaw(ju),links:h.markRaw(bf)});s.value||(s.value={},a.value.forEach((g,v)=>{s.value[v]=!0}),window.localStorage.setItem("pageBuilderOpenStates",JSON.stringify(s.value)));const i=(g,v,x)=>{o.value={page:r.modelValue,component:v,componentIndex:x,sectionIndex:g}},l=()=>{t("close",r.modelValue)},u=()=>{t("save",r.modelValue)},d=h.computed(()=>{var g,v,x,T;return(v=(g=o.value)==null?void 0:g.component)!=null&&v.type?c.value[(T=(x=o.value)==null?void 0:x.component)==null?void 0:T.type]:""}),f=g=>{};return(g,v)=>{var x,T;return h.openBlock(),h.createElementBlock("div",null,[h.createElementVNode("div",xf,[h.createElementVNode("div",Ef,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(n.modelValue.sections,(S,R)=>(h.openBlock(),h.createElementBlock("div",wf,[h.createElementVNode("div",{onClick:F=>s.value[R]=!s.value[R],class:"flex cursor-pointer items-center justify-between px-2 py-4"},[h.createElementVNode("span",Sf,h.toDisplayString(S.title),1),h.createElementVNode("div",Tf,[h.createElementVNode("div",Nf,[s.value[R]?(h.openBlock(),h.createBlock(h.unref(Zc),{key:1,class:"h-5 w-5"})):(h.openBlock(),h.createBlock(h.unref(Fo),{key:0,class:"h-5 w-5"}))])])],8,Af),s.value[R]?(h.openBlock(),h.createElementBlock("div",Of,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(S.components,(F,M)=>(h.openBlock(),h.createElementBlock("div",{onClick:z=>i(R,F,M),class:"flex cursor-pointer items-center justify-between rounded-lg py-1 pl-6 pr-2 hover:bg-gray-200"},[h.createElementVNode("div",Rf,[v[0]||(v[0]=h.createElementVNode("div",{class:"text-xs text-gray-600"},"Sub-module",-1)),h.createElementVNode("div",If,h.toDisplayString(F.name),1)]),h.createElementVNode("div",Lf,[h.createVNode(h.unref(Fo),{class:"h-5 w-5"})])],8,Cf))),256))])):h.createCommentVNode("",!0)]))),256))]),h.createElementVNode("div",kf,[h.unref(o)?h.createCommentVNode("",!0):(h.openBlock(),h.createBlock(eu,{key:0})),(h.openBlock(),h.createBlock(h.resolveDynamicComponent(d.value),{key:((x=h.unref(o))==null?void 0:x.sectionIndex)+((T=h.unref(o))==null?void 0:T.componentIndex),data:h.unref(o),sites:n.sites,onUpdate:f},null,40,["data","sites"]))])]),h.renderSlot(g.$slots,"default",{},()=>[h.createElementVNode("div",Bf,[h.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 "),h.createElementVNode("a",{onClick:h.withModifiers(u,["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")])])])}}},Ff={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function Mf(n,e){return h.openBlock(),h.createElementBlock("svg",Ff,e[0]||(e[0]=[h.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M7 17 17 7m0 0H7m10 0v10"},null,-1)]))}const $o={render:Mf};/**
|
|
1
|
+
(function(Ye,d){typeof exports=="object"&&typeof module<"u"?d(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],d):(Ye=typeof globalThis<"u"?globalThis:Ye||self,d(Ye.PageBuilder={},Ye.Vue))})(this,function(Ye,d){"use strict";var Dy=Object.defineProperty;var Uy=(Ye,d,Kn)=>d in Ye?Dy(Ye,d,{enumerable:!0,configurable:!0,writable:!0,value:Kn}):Ye[d]=Kn;var Ee=(Ye,d,Kn)=>Uy(Ye,typeof d!="symbol"?d+"":d,Kn);const Kn={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function Kc(n,e){return d.openBlock(),d.createElementBlock("svg",Kn,e[0]||(e[0]=[d.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m9 18 6-6-6-6"},null,-1)]))}const Po={render:Kc},Xc={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function Yc(n,e){return d.openBlock(),d.createElementBlock("svg",Xc,e[0]||(e[0]=[d.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m6 9 6 6 6-6"},null,-1)]))}const Zc={render:Yc},es=(n,e)=>{const t=n.__vccOpts||n;for(const[r,s]of e)t[r]=s;return t},Qc={};function Jc(n,e){return e[0]||(e[0]=d.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., "Hero header").</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 eu=es(Qc,[["render",Jc]]),tu={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function nu(n,e){return d.openBlock(),d.createElementBlock("svg",tu,e[0]||(e[0]=[d.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 5v14m-7-7h14"},null,-1)]))}const Fo={render:nu},Mo={data:{required:!0,type:Object},sites:{required:!0,type:Array}};function ru(n={}){return{title:"New slide",description:"New description",public:!1,featured_image:"",primary_button:{show:!1,label:"",type:"site-content",link_to:"",is_new_tab:!1,...n.primary_button||{}},secondary_button:{show:!1,label:"",type:"site-content",link_to:"",is_new_tab:!1,...n.secondary_button||{}},...n}}function su(n={}){return{title:"New link",link_to:"",open_in_new_tab:!0,type:"site-content",...n||{}}}const iu={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function ou(n,e){return d.openBlock(),d.createElementBlock("svg",iu,e[0]||(e[0]=[d.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 au={render:ou},lu={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function cu(n,e){return d.openBlock(),d.createElementBlock("svg",lu,e[0]||(e[0]=[d.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 Do={render:cu},uu={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function fu(n,e){return d.openBlock(),d.createElementBlock("svg",uu,e[0]||(e[0]=[d.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 du={render:fu},hu={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)}},pu={class:"relative z-50"},gu={key:0,class:"absolute -left-60 top-6 w-[240px] rounded-lg border border-gray-200 bg-white"},Uo=Object.assign({directives:{clickOutside:hu}},{__name:"ActionMenu",props:{enableEdit:{type:Boolean,default:!1}},emits:["removeItem"],setup(n,{emit:e}){const t=d.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=d.resolveDirective("click-outside");return d.withDirectives((d.openBlock(),d.createElementBlock("div",pu,[d.createVNode(d.unref(au),{onClick:i[0]||(i[0]=u=>t.value=!t.value),class:"w-5 cursor-pointer text-gray-600"}),t.value?(d.openBlock(),d.createElementBlock("div",gu,[n.enableEdit?(d.openBlock(),d.createElementBlock("a",{key:0,class:"flex items-center gap-2 p-2.5 cursor-pointer h-[48px] w-full hover:bg-gray-100",onClick:o},[d.createVNode(d.unref(du),{class:"w-5"}),i[1]||(i[1]=d.createTextVNode(" Edit "))])):d.createCommentVNode("",!0),d.createElementVNode("a",{class:d.normalizeClass(["flex items-center gap-2 p-2.5 cursor-pointer h-[48px] w-full hover:bg-gray-100",{"hover:rounded-lg":!n.enableEdit}]),onClick:a},[d.createVNode(d.unref(Do),{class:"w-5"}),i[2]||(i[2]=d.createTextVNode(" Delete "))],2)])):d.createCommentVNode("",!0)])),[[l,s]])}}}),mu={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function vu(n,e){return d.openBlock(),d.createElementBlock("svg",mu,e[0]||(e[0]=[d.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M18 6 6 18M6 6l12 12"},null,-1)]))}const yu={render:vu},bu={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"},xu={class:"p-6 flex justify-between flex-col"},Eu={class:"flex justify-between"},wu={class:"p-2 rounded-full border-8 border-error-50 bg-error-100 text-error-600"},Au={class:"text-lg font-semibold text-gray-900 pb-2 pt-4"},Su={class:"text-sm text-gray-600 pb-4"},Tu={class:"flex justify-between space-x-xsSpace pt-xsSpace gap-4"},Nu=["textContent"],Ou=["textContent"],jo=es(d.defineComponent({__name:"VModal",props:{entity:{type:String,required:!0},callback:{type:Function,required:!1,default:()=>{}}},setup(n,{expose:e}){const t=n,r=d.ref(!1),s=d.reactive({cancelTitle:null,confirmTitle:null,scrollable:!0,data:null}),a=d.computed(()=>s.cancelTitle?s.cancelTitle:"Cancel"),o=d.computed(()=>s.confirmTitle?s.confirmTitle:"Delete"),c=u=>{r.value=!0,s.data=u},i=()=>{r.value=!1},l=async()=>{t.callback(s.data),r.value=!1};return e({open:c,close:i}),(u,h)=>(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass([{"-open":r.value},"v-modal"])},[d.createVNode(d.Transition,{name:"fade"},{default:d.withCtx(()=>[r.value?(d.openBlock(),d.createElementBlock("div",bu,[d.renderSlot(u.$slots,"default",{},()=>[d.createElementVNode("div",{class:d.normalizeClass(["relative min-h-[260px] overflow-y-auto flex",{"overflow-y-visible":!u.scrollable}])},[d.createElementVNode("div",xu,[d.createElementVNode("div",null,[d.createElementVNode("div",Eu,[d.createElementVNode("span",wu,[d.createVNode(d.unref(Do),{class:"w-6 h-6"})]),d.createVNode(d.unref(yu),{class:"w-6 h-6 text-gray-400 hover:bg-gray-100 rounded-md cursor-pointer",onClick:i})]),d.createElementVNode("h4",Au,"Delete this "+d.toDisplayString(n.entity)+"?",1),d.createElementVNode("p",Su,"Do you want to delete this "+d.toDisplayString(n.entity)+"? This action cannot be undone.",1)]),d.createElementVNode("div",Tu,[d.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:d.toDisplayString(a.value)},null,8,Nu),d.createElementVNode("a",{onClick:d.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:d.toDisplayString(o.value)},null,8,Ou)])])],2)],!0)])):d.createCommentVNode("",!0)]),_:3})],2))}}),[["__scopeId","data-v-0ca1257f"]]),Cu={class:"flex justify-between pb-2"},Ru={class:"text-lg font-semibold text-gray-900"},Iu={class:"flex flex-col gap-4"},Lu={class:"text-gray-600 border-b border-gray-200 pb-4 text-sm"},ku={class:"flex flex-col gap-3"},Bu={class:"flex justify-between"},Pu={class:"flex flex-col gap-1"},Fu={class:"text-sm text-gray-600"},Mu=["disabled"],Du={class:"flex flex-col gap-3"},Uu=["onClick"],ju={class:"flex flex-1 flex-col"},$u={class:"text-xs text-gray-600"},Vu={class:"text-sm font-medium text-gray-900"},_u={__name:"VSliders",props:{...Mo},emits:["update"],setup(n,{emit:e}){const t=e,r=n,s=d.ref(r.data.component),a=d.ref(null),o=d.ref(JSON.parse(window.localStorage.getItem("openSlideStates")));o.value||(o.value={},s.value.data.forEach((f,m)=>{o.value[m]=!1}),console.log(o),window.localStorage.setItem("openSlideStates",JSON.stringify(o.value)));const c=f=>{Object.keys(o.value).forEach(m=>{o.value[m]=!1}),o.value[f]=!o.value[f],window.localStorage.setItem("openSlideStates",JSON.stringify(o.value))},i=()=>{s.value.data.push(ru()),t("update",s.value)},l=f=>{var m;(m=a==null?void 0:a.value)==null||m.open(f)},u=f=>{s.value.data.splice(f,1),t("update",s.value)},h=(f,m)=>{var g,v,x,T;f.hasOwnProperty("edit_url")&&(window.location.href=f.edit_url),window.location.href=`/admin/pages/${(v=(g=r==null?void 0:r.data)==null?void 0:g.page)==null?void 0:v.id}/sections/${(x=r==null?void 0:r.data)==null?void 0:x.sectionIndex}/components/${(T=r==null?void 0:r.data)==null?void 0:T.componentIndex}/slides/${m}`};return(f,m)=>(d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createElementVNode("div",Cu,[d.createElementVNode("p",Ru,d.toDisplayString(s.value.name),1)]),d.createElementVNode("div",Iu,[d.createElementVNode("div",Lu,d.toDisplayString(s.value.supportive_text),1),d.createElementVNode("div",ku,[d.createElementVNode("div",Bu,[d.createElementVNode("div",Pu,[m[0]||(m[0]=d.createElementVNode("div",{class:"font-semibold text-gray-900"},"Sliders",-1)),d.createElementVNode("div",Fu,"This slider can contain up to "+d.toDisplayString(s.value.max_items)+" slides",1)]),d.createElementVNode("div",null,[d.createElementVNode("button",{disabled:s.value.data.length>=s.value.max_items,onClick:i,type:"button",class:d.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}])},[d.createVNode(d.unref(Fo),{class:"h-5 w-5"}),m[1]||(m[1]=d.createElementVNode("span",null,"Add",-1))],10,Mu)])]),d.createElementVNode("div",Du,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(s.value.data,(g,v)=>(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["flex items-center gap-4 px-2 py-1 hover:bg-gray-100 rounded-lg",{"bg-gray-200 hover:bg-gray-200":o.value[v]}])},[d.createElementVNode("div",{class:"flex flex-1 cursor-pointer items-center justify-between relative",onClick:x=>c(v)},[d.createElementVNode("div",ju,[d.createElementVNode("div",$u," Slider #"+d.toDisplayString(v+1),1),d.createElementVNode("div",Vu,d.toDisplayString(g.title),1)]),d.createVNode(Uo,{onRemoveItem:x=>l(v),"enable-edit":!0,onEditItem:x=>h(g,v)},null,8,["onRemoveItem","onEditItem"])],8,Uu)],2))),256))])])]),d.createVNode(jo,{ref_key:"modalRef",ref:a,entity:"slide",callback:u},null,512)],64))}},qu=["for"],zu={key:0,class:"v-field-label inline-block mb-2"},Hu={key:0},Gu={key:1,class:"absolute right-0 -bottom-6 text-sm text-gray-600 font-normal"},Wu={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 d.openBlock(),d.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?(d.openBlock(),d.createElementBlock("span",zu,[e.$slots.label?d.renderSlot(e.$slots,"label",{key:0}):(d.openBlock(),d.createElementBlock(d.Fragment,{key:1},[d.createTextVNode(d.toDisplayString(n.labelText)+" ",1),n.isRequired?(d.openBlock(),d.createElementBlock("span",Hu," *")):d.createCommentVNode("",!0)],64))])):d.createCommentVNode("",!0),d.renderSlot(e.$slots,"default"),n.limit?(d.openBlock(),d.createElementBlock("span",Gu,d.toDisplayString((r=n.value)==null?void 0:r.length)+"/"+d.toDisplayString(n.limit)+" characters ",1)):d.createCommentVNode("",!0),n.showCount?(d.openBlock(),d.createElementBlock("span",Wu," Word count: "+d.toDisplayString(n.value),1)):d.createCommentVNode("",!0)],8,qu)}}},Ku={class:"flex items-center gap-2"},Xu=["aria-checked"],Yu={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=d.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)=>(d.openBlock(),d.createElementBlock("div",Ku,[d.createElementVNode("button",{type:"button",class:d.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},[d.createElementVNode("span",{"aria-hidden":"true",class:d.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,Xu),n.title?(d.openBlock(),d.createElementBlock("span",Yu,d.toDisplayString(n.title),1)):d.createCommentVNode("",!0)]))}},Zu={class:"flex flex-col gap-2"},Qu=["value"],Ju={__name:"SiteContent",props:d.mergeModels({sites:{type:Object,required:!0},errors:{type:Object,required:!1,default:()=>({})}},{url:{},urlModifiers:{}}),emits:["update:url"],setup(n){const e=d.useModel(n,"url");return(t,r)=>(d.openBlock(),d.createElementBlock("div",Zu,[r[1]||(r[1]=d.createElementVNode("label",{class:"text-sm font-medium text-gray-700"},"Select a page from the site*",-1)),d.withDirectives(d.createElementVNode("select",{"onUpdate:modelValue":r[0]||(r[0]=s=>e.value=s),name:"url"},[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(n.sites,s=>(d.openBlock(),d.createElementBlock("option",{value:s.href},d.toDisplayString(s.name),9,Qu))),256))],512),[[d.vModelSelect,e.value]])]))}},ef={__name:"ExternalPage",props:{url:{},urlModifiers:{}},emits:["update:url"],setup(n){const e=d.useModel(n,"url");return(t,r)=>(d.openBlock(),d.createBlock(Xn,{"is-vertical":"",field:"title","label-text":"URL *",class:"w-full"},{default:d.withCtx(()=>[d.withDirectives(d.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),[[d.vModelText,e.value]])]),_:1}))}},tf={class:"flex flex-col gap-5"},nf={key:0,class:"text-sm text-gray-700 font-medium py-2"},rf={class:"text-sm flex items-center gap-6 font-medium text-gray-700"},sf={class:"flex items-center gap-2 cursor-pointer"},of=["name","value","disabled"],af={class:"flex flex-col gap-2"},lf=["value"],cf={class:"flex items-center gap-2"},Qs={__name:"LinkedTo",props:d.mergeModels({label:{type:Object,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=d.useModel(n,"type"),t=d.useModel(n,"url"),r=d.useModel(n,"openInNewTab"),s=o=>o.split("-").map(c=>c.charAt(0).toUpperCase()+c.slice(1)).join(" "),a=o=>({"site-content":Ju,"external-page":ef})[o]||null;return(o,c)=>(d.openBlock(),d.createElementBlock("div",tf,[d.createElementVNode("div",null,[n.label?(d.openBlock(),d.createElementBlock("p",nf,d.toDisplayString(n.label),1)):d.createCommentVNode("",!0),d.createElementVNode("div",rf,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(n.options,i=>(d.openBlock(),d.createElementBlock("label",sf,[d.withDirectives(d.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,of),[[d.vModelRadio,e.value]]),d.createElementVNode("span",null,d.toDisplayString(s(i)),1)]))),256))])]),d.createElementVNode("div",af,[(d.openBlock(),d.createBlock(d.resolveDynamicComponent(a(e.value)),{url:t.value,"onUpdate:url":c[1]||(c[1]=i=>t.value=i),sites:n.sites},null,40,["url","sites"])),d.createElementVNode("input",{type:"hidden",name:"url",value:t.value},null,8,lf)]),d.createElementVNode("div",cf,[d.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"])])]))}},uf={class:"flex justify-between pb-2"},ff={class:"flex justify-between w-full py-1"},df={class:"text-lg font-semibold text-gray-900"},hf={class:"text-sm text-gray-600 mt-1"},pf={class:"flex flex-col gap-3"},gf={class:"flex items-center justify-between"},mf={class:"text-lg font-semibold text-gray-900"},vf={class:"relative flex items-end"},yf={class:"flex flex-col gap-6"},bf={class:"flex flex-col gap-1.5"},xf=["onUpdate:modelValue"],Ef={__name:"VLinks",props:{...Mo},emits:["update"],setup(n,{emit:e}){const t=e,r=n,s=d.ref(r.data.component),a=d.ref(null),o=d.ref(null),c=d.ref(null);function i(){s.value.data.length>=s.value.max_items||(s.value.data.push(su()),d.nextTick(()=>{o.value&&o.value.scrollIntoView({behavior:"smooth"})}),t("update",s.value))}const l=h=>{var f;c.value=h,(f=a==null?void 0:a.value)==null||f.open(h)},u=h=>{s.value.data.splice(h,1),t("update",s.value)};return(h,f)=>(d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createElementVNode("div",uf,[d.createElementVNode("div",ff,[d.createElementVNode("div",null,[d.createElementVNode("p",df,d.toDisplayString(s.value.name),1),d.createElementVNode("p",hf,d.toDisplayString(s.value.supportive_text),1)]),d.createElementVNode("div",null,[d.createElementVNode("a",{onClick:i,class:d.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}])},[d.createVNode(d.unref(Fo),{class:"h-5 w-5"}),f[0]||(f[0]=d.createElementVNode("span",null,"Add",-1))],2)])])]),d.createElementVNode("div",pf,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(s.value.data,(m,g)=>(d.openBlock(),d.createElementBlock("div",{class:"flex flex-col gap-4 rounded-xl px-6 py-4 bg-gray-200",key:g,ref_for:!0,ref:g===s.value.data.length-1?v=>o.value=v:null},[d.createElementVNode("div",gf,[d.createElementVNode("div",mf," Link #"+d.toDisplayString(g+1),1),d.createElementVNode("div",vf,[d.createVNode(Uo,{onRemoveItem:v=>l(g)},null,8,["onRemoveItem"])])]),d.createElementVNode("div",yf,[d.createElementVNode("div",bf,[d.createVNode(Xn,{"is-vertical":"",field:"title","label-text":"Title *",class:"w-full mb-4",value:m.title,limit:20},{default:d.withCtx(()=>[d.withDirectives(d.createElementVNode("input",{"onUpdate:modelValue":v=>m.title=v,name:"title",type:"text",placeholder:"Title",maxlength:20,class:"border-1 border-solid border-gray-300 rounded-lg bg-white w-full"},null,8,xf),[[d.vModelText,m.title]])]),_:2},1032,["value"]),d.createVNode(Qs,{label:"Linked to",name:`link_${g+1}`,type:m.type,"onUpdate:type":v=>m.type=v,url:m.link_to,"onUpdate:url":v=>m.link_to=v,openInNewTab:m.open_in_new_tab,"onUpdate:openInNewTab":v=>m.open_in_new_tab=v,sites:h.sites},null,8,["name","type","onUpdate:type","url","onUpdate:url","openInNewTab","onUpdate:openInNewTab","sites"])])])]))),128))]),d.createVNode(jo,{ref_key:"modalRef",ref:a,entity:"link",callback:u},null,512)],64))}},wf={class:"flex gap-4 px-6 overflow-auto"},Af={class:"flex w-[356px] flex-col gap-2"},Sf={class:"border-b border-gray-200 pb-2"},Tf=["onClick"],Nf={class:"text-lg font-semibold text-brand-800"},Of={class:"relative flex items-center gap-3"},Cf={class:"cursor-pointer"},Rf={key:0,class:"flex flex-col gap-2"},If=["onClick"],Lf={class:"flex flex-col"},kf={class:"text-sm font-medium text-gray-900"},Bf={class:"flex items-center justify-between gap-3 px-[10px]"},Pf={class:"flex h-full flex-1 flex-col rounded-xl bg-gray-50 px-6 py-5 mb-20"},Ff={class:"flex justify-between space-x-xsSpace pt-xsSpace gap-4 fixed bottom-0 w-full bg-gray-200 py-2 px-6"},Mf={__name:"PageBuilder",props:{modelValue:{required:!0,type:Object},sites:{type:Array,default:()=>[{href:"/admin",name:"Site 1"},{href:"/login",name:"Site 2"}]}},emits:["save","close"],setup(n,{emit:e}){var f;const t=e,r=n,s=d.ref(JSON.parse(window.localStorage.getItem("pageBuilderOpenStates"))),a=d.ref(((f=r.modelValue)==null?void 0:f.sections)??[]);let o=d.ref(null);const c=d.ref({sliders:d.markRaw(_u),links:d.markRaw(Ef)});s.value||(s.value={},a.value.forEach((m,g)=>{s.value[g]=!0}),window.localStorage.setItem("pageBuilderOpenStates",JSON.stringify(s.value)));const i=(m,g,v)=>{o.value={page:r.modelValue,component:g,componentIndex:v,sectionIndex:m}},l=()=>{t("close",r.modelValue)},u=()=>{t("save",r.modelValue)},h=d.computed(()=>{var m,g,v,x;return(g=(m=o.value)==null?void 0:m.component)!=null&&g.type?c.value[(x=(v=o.value)==null?void 0:v.component)==null?void 0:x.type]:""});return(m,g)=>{var v,x;return d.openBlock(),d.createElementBlock("div",null,[d.createElementVNode("div",wf,[d.createElementVNode("div",Af,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(n.modelValue.sections,(T,S)=>(d.openBlock(),d.createElementBlock("div",Sf,[d.createElementVNode("div",{onClick:I=>s.value[S]=!s.value[S],class:"flex cursor-pointer items-center justify-between px-2 py-4"},[d.createElementVNode("span",Nf,d.toDisplayString(T.title),1),d.createElementVNode("div",Of,[d.createElementVNode("div",Cf,[s.value[S]?(d.openBlock(),d.createBlock(d.unref(Zc),{key:1,class:"h-5 w-5"})):(d.openBlock(),d.createBlock(d.unref(Po),{key:0,class:"h-5 w-5"}))])])],8,Tf),s.value[S]?(d.openBlock(),d.createElementBlock("div",Rf,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(T.components,(I,F)=>{var M,z;return d.openBlock(),d.createElementBlock("div",{onClick:X=>i(S,I,F),class:d.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=d.unref(o))==null?void 0:M.sectionIndex)===S&&((z=d.unref(o))==null?void 0:z.componentIndex)===F}])},[d.createElementVNode("div",Lf,[g[0]||(g[0]=d.createElementVNode("div",{class:"text-xs text-gray-600"},"Sub-module",-1)),d.createElementVNode("div",kf,d.toDisplayString(I.name),1)]),d.createElementVNode("div",Bf,[d.createVNode(d.unref(Po),{class:"h-5 w-5"})])],10,If)}),256))])):d.createCommentVNode("",!0)]))),256))]),d.createElementVNode("div",Pf,[d.unref(o)?d.createCommentVNode("",!0):(d.openBlock(),d.createBlock(eu,{key:0})),(d.openBlock(),d.createBlock(d.resolveDynamicComponent(h.value),{key:((v=d.unref(o))==null?void 0:v.sectionIndex)+((x=d.unref(o))==null?void 0:x.componentIndex),data:d.unref(o),sites:n.sites,onUpdate:m.update},null,40,["data","sites","onUpdate"]))])]),d.renderSlot(m.$slots,"default",{},()=>[d.createElementVNode("div",Ff,[d.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 "),d.createElementVNode("a",{onClick:d.withModifiers(u,["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")])])])}}},Df={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function Uf(n,e){return d.openBlock(),d.createElementBlock("svg",Df,e[0]||(e[0]=[d.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M7 17 17 7m0 0H7m10 0v10"},null,-1)]))}const $o={render:Uf};/**
|
|
2
2
|
* Vue 3 Carousel 0.15.1
|
|
3
3
|
* (c) 2025
|
|
4
4
|
* @license MIT
|
|
5
|
-
*/const Vo=["viewport","carousel"],ns={"bottom-to-top":"btt","left-to-right":"ltr","right-to-left":"rtl","top-to-bottom":"ttb"},_o=["ltr","left-to-right","rtl","right-to-left","ttb","top-to-bottom","btt","bottom-to-top"],Df={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}"},qo=["slide","fade"],zo=["center","start","end","center-even","center-odd"],Ho=10,rs=.3,tt={autoplay:0,breakpointMode:Vo[0],breakpoints:void 0,dir:_o[0],enabled:!0,gap:0,height:"auto",i18n:Df,ignoreAnimations:!1,itemsToScroll:1,itemsToShow:1,modelValue:0,mouseDrag:!0,mouseWheel:!1,pauseAutoplayOnHover:!1,preventExcessiveDragging:!1,slideEffect:qo[0],snapAlign:zo[0],touchDrag:!0,transition:300,wrapAround:!1},Ln=Symbol("carousel"),Uf=n=>{const e=h.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 jf(n){return n.length===0?0:n.reduce((t,r)=>t+r,0)/n.length}function Go({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}`},u=n[(c%n.length+n.length)%n.length].vnode,d=h.cloneVNode(u,l);d.el=null,r.push(d)}return r}const $f='a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])';function Wo(n){if(!n.el||!(n.el instanceof Element))return;const e=n.el.querySelectorAll($f);for(const t of e)t instanceof HTMLElement&&!t.hasAttribute("disabled")&&t.getAttribute("aria-hidden")!=="true"&&t.setAttribute("tabindex","-1")}function Vf(n,e){return Object.keys(n).filter(t=>!e.includes(t)).reduce((t,r)=>(t[r]=n[r],t),{})}function _f(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 qf(n){const{transform:e}=window.getComputedStyle(n);return e.split(/[(,)]/).slice(1,-1).map(t=>parseFloat(t))}function zf(n){let e=1,t=1;return n.forEach(r=>{const s=qf(r);s.length===6&&(e/=s[0],t/=s[3])}),{widthMultiplier:e,heightMultiplier:t}}function Hf(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 Gf(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 ei({slideSize:n,viewportSize:e,align:t,itemsToShow:r}){return r!==void 0?Hf(t,r):n!==void 0&&e!==void 0?Gf(t,n,e):0}function Ko(n="",e={}){return Object.entries(e).reduce((t,[r,s])=>t.replace(`{${r}}`,String(s)),n)}function Xo({val:n,max:e,min:t=0}){const r=e-t+1;return((n-t)%r+r)%r+t}function ti(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 Wf=h.defineComponent({name:"CarouselAria",setup(){const n=h.inject(Ln);return n?()=>h.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},Ko(n.config.i18n.itemXofY,{currentSlide:n.currentSlide+1,slidesCount:n.slidesCount})):()=>""}});function Kf(n){let e=!1;const t={x:0,y:0},r=h.reactive({x:0,y:0}),s=h.ref(!1),{isSliding:a}=n,o=h.computed(()=>typeof a=="boolean"?a:a.value),c=u=>{var d;const f=u.target.tagName;if(["INPUT","TEXTAREA","SELECT"].includes(f)||o.value||(e=u.type==="touchstart",e&&u.touches.length>1))return;if(!e&&(u.preventDefault(),u.button!==0))return;t.x=e?u.touches[0].clientX:u.clientX,t.y=e?u.touches[0].clientY:u.clientY;const m=e?"touchmove":"mousemove",g=e?"touchend":"mouseup";document.addEventListener(m,i,{passive:!1}),document.addEventListener(g,l,{passive:!0}),(d=n.onDragStart)===null||d===void 0||d.call(n)},i=ti(u=>{var d;if(e&&u.touches.length>1)return;s.value=!0;const f=e?u.touches[0].clientX:u.clientX,m=e?u.touches[0].clientY:u.clientY;r.x=f-t.x,r.y=m-t.y,(d=n.onDrag)===null||d===void 0||d.call(n,{deltaX:r.x,deltaY:r.y,isTouch:e})}),l=()=>{var u;i.cancel();const d=Math.abs(r.x)+Math.abs(r.y);!e&&d>10&&window.addEventListener("click",g=>{g.preventDefault(),g.stopPropagation()},{once:!0,capture:!0}),(u=n.onDragEnd)===null||u===void 0||u.call(n),r.x=0,r.y=0,s.value=!1;const f=e?"touchmove":"mousemove",m=e?"touchend":"mouseup";document.removeEventListener(f,i),document.removeEventListener(m,l)};return{dragged:r,isDragging:s,handleDragStart:c}}function Xf(){const n=h.ref(!1);return{isHover:n,handleMouseEnter:()=>{n.value=!0},handleMouseLeave:()=>{n.value=!1}}}function Yf(n){const{isVertical:e,isSliding:t,config:r}=n,s=h.computed(()=>typeof e=="boolean"?e:e.value),a=h.computed(()=>typeof t=="boolean"?t:t.value);return{handleScroll:c=>{var i,l;if(c.preventDefault(),!r.mouseWheel||a.value)return;const u=typeof r.mouseWheel=="object"&&(i=r.mouseWheel.threshold)!==null&&i!==void 0?i:Ho,d=Math.abs(c.deltaY)>u?c.deltaY:0,f=Math.abs(c.deltaX)>u?c.deltaX:0;if(d===0&&f===0)return;const m=s.value?d:f,v=(m!==0?m:s.value?f:d)>0;(l=n.onWheel)===null||l===void 0||l.call(n,{deltaX:f,deltaY:d,isScrollingForward:v})}}}const Zf={autoplay:{default:tt.autoplay,type:Number},breakpoints:{default:tt.breakpoints,type:Object},breakpointMode:{default:tt.breakpointMode,validator(n){return Vo.includes(n)}},clamp:{type:Boolean},dir:{type:String,default:tt.dir,validator(n,e){if(!_o.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 qo.includes(n)}},snapAlign:{default:tt.snapAlign,validator(n){return zo.includes(n)}},touchDrag:{default:tt.touchDrag,type:[Boolean,Object]},transition:{default:tt.transition,type:Number},wrapAround:{default:tt.wrapAround,type:Boolean}},Qf=h.defineComponent({name:"VueCarousel",props:Zf,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=Uf(t),o=a.getSlides(),c=h.computed(()=>o.length),i=h.ref(null),l=h.ref(null),u=h.ref(0),d=h.computed(()=>Object.assign(Object.assign(Object.assign({},tt),Vf(n,["breakpoints","modelValue"])),{i18n:Object.assign(Object.assign({},tt.i18n),n.i18n)})),f=h.shallowReactive(Object.assign({},d.value)),m=h.ref((s=n.modelValue)!==null&&s!==void 0?s:0),g=h.ref(m.value);h.watch(m,pe=>g.value=pe);const v=h.ref(0),x=h.computed(()=>Math.ceil((c.value-1)/2)),T=h.computed(()=>c.value-1),S=h.computed(()=>0);let R=null,F=null,M=null;const z=h.computed(()=>u.value+f.gap),X=h.computed(()=>{const pe=f.dir||"ltr";return pe in ns?ns[pe]:pe}),H=h.computed(()=>["rtl","btt"].includes(X.value)),re=h.computed(()=>["ttb","btt"].includes(X.value)),G=h.computed(()=>f.itemsToShow==="auto"),E=h.computed(()=>re.value?"height":"width");function P(){var pe;if(!he.value)return;const be=(d.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,d.value.i18n,n.breakpoints[Ie].i18n),!0):!1),Object.assign(f,d.value,Le),G.value||(f.itemsToShow=ln({val:Number(f.itemsToShow),max:n.clamp?c.value:1/0,min:1}))}const O=ti(()=>{P(),te(),J()}),_=h.shallowReactive(new Set),j=h.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=h.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=zf(_);if(q(pe),$(pe),G.value)u.value=jf(j.value.map(be=>be[E.value]));else{const be=Number(f.itemsToShow),Ce=(be-1)*f.gap;u.value=(K.value[E.value]-Ce)/be}}function te(){!f.wrapAround&&c.value>0&&(m.value=ln({val:m.value,max:T.value,min:S.value}))}const ge=h.computed(()=>typeof n.ignoreAnimations=="string"?n.ignoreAnimations.split(","):Array.isArray(n.ignoreAnimations)?n.ignoreAnimations:n.ignoreAnimations?!1:[]);h.watchEffect(()=>te()),h.watchEffect(()=>{J()});let me;const ve=pe=>{const be=pe.target;if(!(!(be!=null&&be.contains(i.value))||Array.isArray(ge.value)&&ge.value.includes(pe.animationName))&&(_.add(be),!me)){const Ce=()=>{me=requestAnimationFrame(()=>{J(),Ce()})};Ce()}},xe=pe=>{const be=pe.target;be&&_.delete(be),me&&_.size===0&&(cancelAnimationFrame(me),J())},he=h.ref(!1);typeof document<"u"&&h.watchEffect(()=>{he.value&&ge.value!==!1?(document.addEventListener("animationstart",ve),document.addEventListener("animationend",xe)):(document.removeEventListener("animationstart",ve),document.removeEventListener("animationend",xe))}),h.onMounted(()=>{he.value=!0,P(),y(),i.value&&(M=new ResizeObserver(O),M.observe(i.value)),t("init")}),h.onBeforeUnmount(()=>{he.value=!1,a.cleanup(),F&&clearTimeout(F),me&&cancelAnimationFrame(me),R&&clearInterval(R),M&&(M.disconnect(),M=null),typeof document<"u"&&w(),i.value&&(i.value.removeEventListener("transitionend",J),i.value.removeEventListener("animationiteration",J))});const{isHover:Oe,handleMouseEnter:ye,handleMouseLeave:N}=Xf(),I=ti(pe=>{if(!pe.ctrlKey)switch(pe.key){case"ArrowLeft":case"ArrowUp":re.value===pe.key.endsWith("Up")&&(H.value?oe(!0):de(!0));break;case"ArrowRight":case"ArrowDown":re.value===pe.key.endsWith("Down")&&(H.value?de(!0):oe(!0));break}},200),w=()=>{document.removeEventListener("keydown",I)},C=()=>{document.addEventListener("keydown",I)};function y(){!f.autoplay||f.autoplay<=0||(R=setInterval(()=>{f.pauseAutoplayOnHover&&Oe.value||oe()},f.autoplay))}function b(){L(),y()}function L(){R&&(clearInterval(R),R=null)}const B=h.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,ft=_f({isVertical:re.value,isReversed:H.value,dragged:{x:pe,y:be},effectiveSlideSize:z.value,threshold:et});ft!==0&&(g.value=f.wrapAround?m.value+ft:ln({val:m.value+ft,max:T.value,min:S.value}))},V=()=>we(g.value),{dragged:W,isDragging:Z,handleDragStart:Y}=Kf({isSliding:B,onDrag:U,onDragEnd:V}),Q=({deltaX:pe,deltaY:be,isScrollingForward:Ce})=>{t("wheel",{deltaX:pe,deltaY:be}),Ce?H.value?de():oe():H.value?oe():de()},{handleScroll:ne}=Yf({isVertical:re,isSliding:B,config:f,onWheel:Q});function oe(pe=!1){we(m.value+f.itemsToScroll,pe)}function de(pe=!1){we(m.value-f.itemsToScroll,pe)}function we(pe,be=!1){if(!be&&B.value)return;let Ce=pe,Le=pe;v.value=m.value,f.wrapAround?Le=Xo({val:Ce,max:T.value,min:S.value}):Ce=ln({val:Ce,max:T.value,min:S.value}),t("slide-start",{slidingToIndex:pe,currentSlideIndex:m.value,prevSlideIndex:v.value,slidesCount:c.value}),L(),B.value=!0,m.value=Ce,Le!==Ce&&Ge.pause(),t("update:modelValue",Le),F=setTimeout(()=>{f.wrapAround&&Le!==Ce&&(Ge.resume(),m.value=Le,t("loop",{currentSlideIndex:m.value,slidingToIndex:pe})),t("slide-end",{currentSlideIndex:m.value,prevSlideIndex:v.value,slidesCount:c.value}),B.value=!1,b()},f.transition)}function De(){P(),te(),J(),b()}h.watch(()=>[d.value,n.breakpoints],()=>P(),{deep:!0}),h.watch(()=>n.autoplay,()=>b());const Ge=h.watch(()=>n.modelValue,pe=>{pe!==m.value&&we(Number(pe),!0)});t("before-init");const je=h.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-g.value,Le=be-(c.value-(g.value+1));return{before:Math.max(0,Ce),after:Math.max(0,Le)}}),Be=h.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=h.computed(()=>{var pe;if(G.value){const be=(m.value%o.length+o.length)%o.length;return ei({slideSize:(pe=j.value[be])===null||pe===void 0?void 0:pe[E.value],viewportSize:K.value[E.value],align:f.snapAlign})}return ei({align:f.snapAlign,itemsToShow:+f.itemsToShow})}),rt=h.computed(()=>{let pe=0;if(G.value){if(m.value<0?pe=j.value.slice(m.value).reduce((be,Ce)=>be+Ce[E.value]+f.gap,0)*-1:pe=j.value.slice(0,m.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=m.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=h.computed(()=>{var pe,be;if(!G.value){const Ie=m.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=h.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=h.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:we,next:oe,prev:de},Pe=h.reactive({activeSlide:g,config:f,currentSlide:m,isSliding:B,isVertical:re,maxSlide:T,minSlide:S,nav:_e,normalizedDir:X,slideRegistry:a,slideSize:u,slides:o,slidesCount:c,viewport:l,visibleRange:it});h.provide(Ln,Pe);const We=h.reactive({config:f,currentSlide:m,maxSlide:T,middleSlide:x,minSlide:S,slideSize:u,slidesCount:c});return r(h.reactive(Object.assign({data:We,next:oe,prev:de,restartCarousel:De,slideTo:we,updateBreakpointsConfig:P,updateSlideSize:J,updateSlidesData:te},h.toRefs(Pe)))),()=>{var pe;const be=e.default||e.slides,Ce=(be==null?void 0:be(We))||[],{before:Le,after:Ie}=je.value,Ve=Go({slides:o,position:"before",toShow:Le}),Ke=Go({slides:o,position:"after",toShow:Ie}),et=[...Ve,...Ce,...Ke];if(!f.enabled||!et.length)return h.h("section",{ref:i,class:["carousel","is-disabled"]},et);const ft=((pe=e.addons)===null||pe===void 0?void 0:pe.call(e,We))||[],dt=h.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=h.h("div",{class:"carousel__viewport",ref:l},dt);return h.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:w,onFocus:C,onMouseenter:ye,onMouseleave:N},[It,ft,h.h(Wf)])}}});var ni;(function(n){n.arrowDown="arrowDown",n.arrowLeft="arrowLeft",n.arrowRight="arrowRight",n.arrowUp="arrowUp"})(ni||(ni={}));const Yo=n=>`icon${n.charAt(0).toUpperCase()+n.slice(1)}`,Jf={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 ed(n){return n in ni}const Zo=n=>n&&ed(n),Qo=h.defineComponent({props:{name:{type:String,required:!0,validator:Zo},title:{type:String,default:n=>n.name?tt.i18n[Yo(n.name)]:""}},setup(n){const e=h.inject(Ln,null);return()=>{const t=n.name;if(!t||!Zo(t))return;const r=Jf[t],s=h.h("path",{d:r}),a=(e==null?void 0:e.config.i18n[Yo(t)])||n.title,o=h.h("title",a);return h.h("svg",{class:"carousel__icon",viewBox:"0 0 24 24",role:"img","aria-label":a},[o,s])}}});h.defineComponent({name:"CarouselNavigation",inheritAttrs:!1,props:{carousel:{type:Object}},setup(n,{slots:e,attrs:t}){let r=h.inject(Ln,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=h.computed(()=>!r.config.wrapAround&&r.currentSlide<=r.minSlide),l=h.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:u}=r.config,d=h.h("button",Object.assign(Object.assign({type:"button",disabled:i.value,"aria-label":u.ariaPreviousSlide,title:u.ariaPreviousSlide,onClick:r.nav.prev},t),{class:["carousel__prev",{"carousel__prev--disabled":i.value},t.class]}),(a==null?void 0:a())||h.h(Qo,{name:o()})),f=h.h("button",Object.assign(Object.assign({type:"button",disabled:l.value,"aria-label":u.ariaNextSlide,title:u.ariaNextSlide,onClick:r.nav.next},t),{class:["carousel__next",{"carousel__next--disabled":l.value},t.class]}),(s==null?void 0:s())||h.h(Qo,{name:c()}));return[d,f]}}}),h.defineComponent({name:"CarouselPagination",props:{disableOnClick:{type:Boolean},paginateByItemsToShow:{type:Boolean},carousel:{type:Object}},setup(n){let e=h.inject(Ln,null);const t=h.computed(()=>e.config.itemsToShow),r=h.computed(()=>ei({align:e.config.snapAlign,itemsToShow:t.value})),s=h.computed(()=>n.paginateByItemsToShow&&t.value>1),a=h.computed(()=>Math.ceil((e.activeSlide-r.value)/t.value)),o=h.computed(()=>Math.ceil(e.slidesCount/t.value)),c=i=>Xo(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 u=[];for(let d=s.value?0:e.minSlide;d<=(s.value?o.value-1:e.maxSlide);d++){const f=Ko(e.config.i18n[s.value?"ariaNavigateToPage":"ariaNavigateToSlide"],{slideNumber:d+1}),m=c(d),g=h.h("button",{type:"button",class:{"carousel__pagination-button":!0,"carousel__pagination-button--active":m},"aria-label":f,"aria-pressed":m,"aria-controls":(l=(i=e.slides[d])===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(d*+e.config.itemsToShow+r.value):d)}),v=h.h("li",{class:"carousel__pagination-item",key:d},g);u.push(v)}return h.h("ol",{class:"carousel__pagination"},u)}}});const td=h.defineComponent({name:"CarouselSlide",props:{id:{type:String,default:n=>n.isClone?void 0:h.useId()},index:{type:Number,default:void 0},isClone:{type:Boolean,default:!1}},setup(n,{attrs:e,slots:t,expose:r}){const s=h.inject(Ln);if(h.provide(Ln,void 0),!s)return()=>"";const a=h.ref(n.index),o=g=>{a.value=g},c=h.getCurrentInstance(),i=()=>{const g=c.vnode.el;return g?g.getBoundingClientRect():{width:0,height:0}};r({id:n.id,setIndex:o,getBoundingRect:i});const l=h.computed(()=>a.value===s.activeSlide),u=h.computed(()=>a.value===s.activeSlide-1),d=h.computed(()=>a.value===s.activeSlide+1),f=h.computed(()=>a.value>=s.visibleRange.min&&a.value<=s.visibleRange.max),m=h.computed(()=>{if(s.config.itemsToShow==="auto")return;const g=s.config.itemsToShow,v=s.config.gap>0&&g>1?`calc(${100/g}% - ${s.config.gap*(g-1)/g}px)`:`${100/g}%`;return s.isVertical?{height:v}:{width:v}});return s.slideRegistry.registerSlide(c,n.index),h.onUnmounted(()=>{s.slideRegistry.unregisterSlide(c)}),n.isClone&&(h.onMounted(()=>{Wo(c.vnode)}),h.onUpdated(()=>{Wo(c.vnode)})),()=>{var g,v;return s.config.enabled?h.h("li",{style:[e.style,Object.assign({},m.value)],class:{carousel__slide:!0,"carousel__slide--clone":n.isClone,"carousel__slide--visible":f.value,"carousel__slide--active":l.value,"carousel__slide--prev":u.value,"carousel__slide--next":d.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:u.value,isNext:d.value,isSliding:s.isSliding,isVisible:f.value})):(g=t.default)===null||g===void 0?void 0:g.call(t)}}}),nd={class:"flex h-[872px] w-full bg-navy-800 relative rounded-[48px] z-10"},rd={class:"lg:p-8 p-4 flex sm:w-[95%] relative"},sd={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"},id={class:"gap-2 flex z-10 mb-4"},od=["onClick"],ad={class:"lg:text-[48px] text-[40px] font-semibold text-white mb-3 lg:leading-normal leading-[48px]"},ld=["innerHTML"],cd={class:"flex gap-3 mt-8 flex-col lg:flex-row"},ud=["href","target"],fd=["href","target"],dd=["src"],hd=es({__name:"VSliderPresenter",props:{component:{required:!0,type:Object}},setup(n){const e=n,t=h.ref(0),r=h.ref(e.component);return(s,a)=>(h.openBlock(),h.createElementBlock("div",nd,[h.createVNode(h.unref(Qf),{"items-to-show":1,modelValue:t.value,"onUpdate:modelValue":a[0]||(a[0]=o=>t.value=o),class:"carousel",autoplay:"5000","wrap-around":!0},{default:h.withCtx(()=>[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(r.value.data,(o,c)=>(h.openBlock(),h.createBlock(h.unref(td),{key:c},{default:h.withCtx(()=>[h.createElementVNode("div",rd,[h.createElementVNode("div",sd,[h.createElementVNode("div",id,[r.value.data.length>1?(h.openBlock(!0),h.createElementBlock(h.Fragment,{key:0},h.renderList(r.value.data,(i,l)=>(h.openBlock(),h.createElementBlock("a",{onClick:u=>t.value=l,class:h.normalizeClass(["w-4 h-1 bg-navy-400 rounded-full cursor-pointer",{"!w-12 !bg-white":t.value===l}])},null,10,od))),256)):h.createCommentVNode("",!0)]),h.createElementVNode("h3",ad,h.toDisplayString(o==null?void 0:o.title),1),h.createElementVNode("p",{class:"text-lg font-normal text-navy-50",innerHTML:o==null?void 0:o.description},null,8,ld),h.createElementVNode("div",cd,[o.secondary_button.show?(h.openBlock(),h.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:o.secondary_button.link_to,target:o.secondary_button.open_in_new_tab?"_blank":""},[h.createElementVNode("span",null,h.toDisplayString(o.secondary_button.label),1)],8,ud)):h.createCommentVNode("",!0),o.primary_button.show?(h.openBlock(),h.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:o.primary_button.link_to,target:o.primary_button.open_in_new_tab?"_blank":""},[h.createTextVNode(h.toDisplayString(o.primary_button.label)+" ",1),h.createVNode(h.unref($o),{class:"w-5 h-5"})],8,fd)):h.createCommentVNode("",!0)])]),o.featured_image?(h.openBlock(),h.createElementBlock("img",{key:0,src:o.featured_image,alt:"Slide Image",class:"rounded-[40px] h-[674px] lg:w-1/2 w-full object-cover"},null,8,dd)):h.createCommentVNode("",!0)])]),_:2},1024))),128))]),_:1},8,["modelValue"])]))}},[["__scopeId","data-v-fdf767fe"]]),pd={class:"flex justify-center h-[136px] w-full relative rounded-b-[48px] bg-navy-600 -mt-12 gap-[60px]"},gd=["target","href"],md={__name:"VLinkPresenter",props:{component:{required:!0,type:Object}},setup(n){const e=n,t=h.ref(e.component);return(r,s)=>(h.openBlock(),h.createElementBlock("div",pd,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(t.value.data,a=>(h.openBlock(),h.createElementBlock("a",{target:a.open_in_new_tab?"_blank":"",href:a.link_to,class:"text-white flex gap-1.5 items-center cursor-pointer mt-12 text-sm font-semibold hover:text-gray-300"},[h.createElementVNode("span",null,h.toDisplayString(a.title),1),h.createVNode(h.unref($o),{class:"w-5 h-5"})],8,gd))),256))]))}},vd={class:"rounded-[48px]"},yd={__name:"HeroHeader",props:{section:{required:!0,type:Object}},setup(n){const e=n,t=h.ref(e.section),r=h.ref({sliders:h.markRaw(hd),links:h.markRaw(md)}),s=a=>a!=null&&a.type?r.value[a==null?void 0:a.type]:"";return(a,o)=>(h.openBlock(),h.createElementBlock("div",vd,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(t.value.components,(c,i)=>(h.openBlock(),h.createElementBlock("div",null,[(h.openBlock(),h.createBlock(h.resolveDynamicComponent(s(c)),{key:i,component:c},null,8,["component"]))]))),256))]))}},bd={__name:"PageRender",props:{page:{required:!0,type:Object}},setup(n){const e=h.ref({header:h.markRaw(yd)}),t=r=>r!=null&&r.type?e.value[r==null?void 0:r.type]:"";return(r,s)=>(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(n.page.sections,(a,o)=>(h.openBlock(),h.createElementBlock("div",null,[(h.openBlock(),h.createBlock(h.resolveDynamicComponent(t(a)),{key:o,section:a},null,8,["section"]))]))),256))}};var Jo=typeof global=="object"&&global&&global.Object===Object&&global,xd=typeof self=="object"&&self&&self.Object===Object&&self,Qt=Jo||xd||Function("return this")(),xn=Qt.Symbol,ea=Object.prototype,Ed=ea.hasOwnProperty,wd=ea.toString,Sr=xn?xn.toStringTag:void 0;function Ad(n){var e=Ed.call(n,Sr),t=n[Sr];try{n[Sr]=void 0;var r=!0}catch{}var s=wd.call(n);return r&&(e?n[Sr]=t:delete n[Sr]),s}var Sd=Object.prototype,Td=Sd.toString;function Nd(n){return Td.call(n)}var Od="[object Null]",Cd="[object Undefined]",ta=xn?xn.toStringTag:void 0;function Yn(n){return n==null?n===void 0?Cd:Od:ta&&ta in Object(n)?Ad(n):Nd(n)}function cn(n){return n!=null&&typeof n=="object"}var kn=Array.isArray;function En(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}function na(n){return n}var Rd="[object AsyncFunction]",Id="[object Function]",Ld="[object GeneratorFunction]",kd="[object Proxy]";function ri(n){if(!En(n))return!1;var e=Yn(n);return e==Id||e==Ld||e==Rd||e==kd}var si=Qt["__core-js_shared__"],ra=function(){var n=/[^.]+$/.exec(si&&si.keys&&si.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function Bd(n){return!!ra&&ra in n}var Pd=Function.prototype,Fd=Pd.toString;function Bn(n){if(n!=null){try{return Fd.call(n)}catch{}try{return n+""}catch{}}return""}var Md=/[\\^$.*+?()[\]{}|]/g,Dd=/^\[object .+?Constructor\]$/,Ud=Function.prototype,jd=Object.prototype,$d=Ud.toString,Vd=jd.hasOwnProperty,_d=RegExp("^"+$d.call(Vd).replace(Md,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function qd(n){if(!En(n)||Bd(n))return!1;var e=ri(n)?_d:Dd;return e.test(Bn(n))}function zd(n,e){return n==null?void 0:n[e]}function Pn(n,e){var t=zd(n,e);return qd(t)?t:void 0}var ii=Pn(Qt,"WeakMap"),sa=Object.create,Hd=function(){function n(){}return function(e){if(!En(e))return{};if(sa)return sa(e);n.prototype=e;var t=new n;return n.prototype=void 0,t}}();function Gd(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 Wd(n,e){var t=-1,r=n.length;for(e||(e=Array(r));++t<r;)e[t]=n[t];return e}var Kd=800,Xd=16,Yd=Date.now;function Zd(n){var e=0,t=0;return function(){var r=Yd(),s=Xd-(r-t);if(t=r,s>0){if(++e>=Kd)return arguments[0]}else e=0;return n.apply(void 0,arguments)}}function Qd(n){return function(){return n}}var is=function(){try{var n=Pn(Object,"defineProperty");return n({},"",{}),n}catch{}}(),Jd=is?function(n,e){return is(n,"toString",{configurable:!0,enumerable:!1,value:Qd(e),writable:!0})}:na,eh=Zd(Jd);function th(n,e){for(var t=-1,r=n==null?0:n.length;++t<r&&e(n[t],t,n)!==!1;);return n}var nh=9007199254740991,rh=/^(?:0|[1-9]\d*)$/;function ia(n,e){var t=typeof n;return e=e??nh,!!e&&(t=="number"||t!="symbol"&&rh.test(n))&&n>-1&&n%1==0&&n<e}function oi(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 sh=Object.prototype,ih=sh.hasOwnProperty;function oa(n,e,t){var r=n[e];(!(ih.call(n,e)&&Tr(r,t))||t===void 0&&!(e in n))&&oi(n,e,t)}function oh(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?oi(t,c,i):oa(t,c,i)}return t}var aa=Math.max;function ah(n,e,t){return e=aa(e===void 0?n.length-1:e,0),function(){for(var r=arguments,s=-1,a=aa(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),Gd(n,this,c)}}function lh(n,e){return eh(ah(n,e,na),n+"")}var ch=9007199254740991;function la(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=ch}function os(n){return n!=null&&la(n.length)&&!ri(n)}function uh(n,e,t){if(!En(t))return!1;var r=typeof e;return(r=="number"?os(t)&&ia(e,t.length):r=="string"&&e in t)?Tr(t[e],n):!1}function fh(n){return lh(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&&uh(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 dh=Object.prototype;function ai(n){var e=n&&n.constructor,t=typeof e=="function"&&e.prototype||dh;return n===t}function hh(n,e){for(var t=-1,r=Array(n);++t<n;)r[t]=e(t);return r}var ph="[object Arguments]";function ca(n){return cn(n)&&Yn(n)==ph}var ua=Object.prototype,gh=ua.hasOwnProperty,mh=ua.propertyIsEnumerable,li=ca(function(){return arguments}())?ca:function(n){return cn(n)&&gh.call(n,"callee")&&!mh.call(n,"callee")};function vh(){return!1}var fa=typeof Ye=="object"&&Ye&&!Ye.nodeType&&Ye,da=fa&&typeof module=="object"&&module&&!module.nodeType&&module,yh=da&&da.exports===fa,ha=yh?Qt.Buffer:void 0,bh=ha?ha.isBuffer:void 0,Nr=bh||vh,xh="[object Arguments]",Eh="[object Array]",wh="[object Boolean]",Ah="[object Date]",Sh="[object Error]",Th="[object Function]",Nh="[object Map]",Oh="[object Number]",Ch="[object Object]",Rh="[object RegExp]",Ih="[object Set]",Lh="[object String]",kh="[object WeakMap]",Bh="[object ArrayBuffer]",Ph="[object DataView]",Fh="[object Float32Array]",Mh="[object Float64Array]",Dh="[object Int8Array]",Uh="[object Int16Array]",jh="[object Int32Array]",$h="[object Uint8Array]",Vh="[object Uint8ClampedArray]",_h="[object Uint16Array]",qh="[object Uint32Array]",Je={};Je[Fh]=Je[Mh]=Je[Dh]=Je[Uh]=Je[jh]=Je[$h]=Je[Vh]=Je[_h]=Je[qh]=!0,Je[xh]=Je[Eh]=Je[Bh]=Je[wh]=Je[Ph]=Je[Ah]=Je[Sh]=Je[Th]=Je[Nh]=Je[Oh]=Je[Ch]=Je[Rh]=Je[Ih]=Je[Lh]=Je[kh]=!1;function zh(n){return cn(n)&&la(n.length)&&!!Je[Yn(n)]}function ci(n){return function(e){return n(e)}}var pa=typeof Ye=="object"&&Ye&&!Ye.nodeType&&Ye,Or=pa&&typeof module=="object"&&module&&!module.nodeType&&module,Hh=Or&&Or.exports===pa,ui=Hh&&Jo.process,Zn=function(){try{var n=Or&&Or.require&&Or.require("util").types;return n||ui&&ui.binding&&ui.binding("util")}catch{}}(),ga=Zn&&Zn.isTypedArray,fi=ga?ci(ga):zh,Gh=Object.prototype,Wh=Gh.hasOwnProperty;function ma(n,e){var t=kn(n),r=!t&&li(n),s=!t&&!r&&Nr(n),a=!t&&!r&&!s&&fi(n),o=t||r||s||a,c=o?hh(n.length,String):[],i=c.length;for(var l in n)(e||Wh.call(n,l))&&!(o&&(l=="length"||s&&(l=="offset"||l=="parent")||a&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||ia(l,i)))&&c.push(l);return c}function va(n,e){return function(t){return n(e(t))}}var Kh=va(Object.keys,Object),Xh=Object.prototype,Yh=Xh.hasOwnProperty;function Zh(n){if(!ai(n))return Kh(n);var e=[];for(var t in Object(n))Yh.call(n,t)&&t!="constructor"&&e.push(t);return e}function Qh(n){return os(n)?ma(n):Zh(n)}function Jh(n){var e=[];if(n!=null)for(var t in Object(n))e.push(t);return e}var ep=Object.prototype,tp=ep.hasOwnProperty;function np(n){if(!En(n))return Jh(n);var e=ai(n),t=[];for(var r in n)r=="constructor"&&(e||!tp.call(n,r))||t.push(r);return t}function ya(n){return os(n)?ma(n,!0):np(n)}var Cr=Pn(Object,"create");function rp(){this.__data__=Cr?Cr(null):{},this.size=0}function sp(n){var e=this.has(n)&&delete this.__data__[n];return this.size-=e?1:0,e}var ip="__lodash_hash_undefined__",op=Object.prototype,ap=op.hasOwnProperty;function lp(n){var e=this.__data__;if(Cr){var t=e[n];return t===ip?void 0:t}return ap.call(e,n)?e[n]:void 0}var cp=Object.prototype,up=cp.hasOwnProperty;function fp(n){var e=this.__data__;return Cr?e[n]!==void 0:up.call(e,n)}var dp="__lodash_hash_undefined__";function hp(n,e){var t=this.__data__;return this.size+=this.has(n)?0:1,t[n]=Cr&&e===void 0?dp:e,this}function Fn(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])}}Fn.prototype.clear=rp,Fn.prototype.delete=sp,Fn.prototype.get=lp,Fn.prototype.has=fp,Fn.prototype.set=hp;function pp(){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 gp=Array.prototype,mp=gp.splice;function vp(n){var e=this.__data__,t=as(e,n);if(t<0)return!1;var r=e.length-1;return t==r?e.pop():mp.call(e,t,1),--this.size,!0}function yp(n){var e=this.__data__,t=as(e,n);return t<0?void 0:e[t][1]}function bp(n){return as(this.__data__,n)>-1}function xp(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=pp,un.prototype.delete=vp,un.prototype.get=yp,un.prototype.has=bp,un.prototype.set=xp;var Rr=Pn(Qt,"Map");function Ep(){this.size=0,this.__data__={hash:new Fn,map:new(Rr||un),string:new Fn}}function wp(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 wp(e)?t[typeof e=="string"?"string":"hash"]:t.map}function Ap(n){var e=ls(this,n).delete(n);return this.size-=e?1:0,e}function Sp(n){return ls(this,n).get(n)}function Tp(n){return ls(this,n).has(n)}function Np(n,e){var t=ls(this,n),r=t.size;return t.set(n,e),this.size+=t.size==r?0:1,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=Ep,Mn.prototype.delete=Ap,Mn.prototype.get=Sp,Mn.prototype.has=Tp,Mn.prototype.set=Np;function Op(n,e){for(var t=-1,r=e.length,s=n.length;++t<r;)n[s+t]=e[t];return n}var ba=va(Object.getPrototypeOf,Object),Cp="[object Object]",Rp=Function.prototype,Ip=Object.prototype,xa=Rp.toString,Lp=Ip.hasOwnProperty,kp=xa.call(Object);function Bp(n){if(!cn(n)||Yn(n)!=Cp)return!1;var e=ba(n);if(e===null)return!0;var t=Lp.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&xa.call(t)==kp}function Pp(){this.__data__=new un,this.size=0}function Fp(n){var e=this.__data__,t=e.delete(n);return this.size=e.size,t}function Mp(n){return this.__data__.get(n)}function Dp(n){return this.__data__.has(n)}var Up=200;function jp(n,e){var t=this.__data__;if(t instanceof un){var r=t.__data__;if(!Rr||r.length<Up-1)return r.push([n,e]),this.size=++t.size,this;t=this.__data__=new Mn(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=Pp,Jt.prototype.delete=Fp,Jt.prototype.get=Mp,Jt.prototype.has=Dp,Jt.prototype.set=jp;var Ea=typeof Ye=="object"&&Ye&&!Ye.nodeType&&Ye,wa=Ea&&typeof module=="object"&&module&&!module.nodeType&&module,$p=wa&&wa.exports===Ea,Aa=$p?Qt.Buffer:void 0,Sa=Aa?Aa.allocUnsafe:void 0;function Ta(n,e){if(e)return n.slice();var t=n.length,r=Sa?Sa(t):new n.constructor(t);return n.copy(r),r}function Vp(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 _p(){return[]}var qp=Object.prototype,zp=qp.propertyIsEnumerable,Na=Object.getOwnPropertySymbols,Hp=Na?function(n){return n==null?[]:(n=Object(n),Vp(Na(n),function(e){return zp.call(n,e)}))}:_p;function Gp(n,e,t){var r=e(n);return kn(n)?r:Op(r,t(n))}function di(n){return Gp(n,Qh,Hp)}var hi=Pn(Qt,"DataView"),pi=Pn(Qt,"Promise"),gi=Pn(Qt,"Set"),Oa="[object Map]",Wp="[object Object]",Ca="[object Promise]",Ra="[object Set]",Ia="[object WeakMap]",La="[object DataView]",Kp=Bn(hi),Xp=Bn(Rr),Yp=Bn(pi),Zp=Bn(gi),Qp=Bn(ii),jt=Yn;(hi&&jt(new hi(new ArrayBuffer(1)))!=La||Rr&&jt(new Rr)!=Oa||pi&&jt(pi.resolve())!=Ca||gi&&jt(new gi)!=Ra||ii&&jt(new ii)!=Ia)&&(jt=function(n){var e=Yn(n),t=e==Wp?n.constructor:void 0,r=t?Bn(t):"";if(r)switch(r){case Kp:return La;case Xp:return Oa;case Yp:return Ca;case Zp:return Ra;case Qp:return Ia}return e});var Jp=Object.prototype,eg=Jp.hasOwnProperty;function tg(n){var e=n.length,t=new n.constructor(e);return e&&typeof n[0]=="string"&&eg.call(n,"index")&&(t.index=n.index,t.input=n.input),t}var cs=Qt.Uint8Array;function mi(n){var e=new n.constructor(n.byteLength);return new cs(e).set(new cs(n)),e}function ng(n,e){var t=mi(n.buffer);return new n.constructor(t,n.byteOffset,n.byteLength)}var rg=/\w*$/;function sg(n){var e=new n.constructor(n.source,rg.exec(n));return e.lastIndex=n.lastIndex,e}var ka=xn?xn.prototype:void 0,Ba=ka?ka.valueOf:void 0;function ig(n){return Ba?Object(Ba.call(n)):{}}function Pa(n,e){var t=e?mi(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.length)}var og="[object Boolean]",ag="[object Date]",lg="[object Map]",cg="[object Number]",ug="[object RegExp]",fg="[object Set]",dg="[object String]",hg="[object Symbol]",pg="[object ArrayBuffer]",gg="[object DataView]",mg="[object Float32Array]",vg="[object Float64Array]",yg="[object Int8Array]",bg="[object Int16Array]",xg="[object Int32Array]",Eg="[object Uint8Array]",wg="[object Uint8ClampedArray]",Ag="[object Uint16Array]",Sg="[object Uint32Array]";function Tg(n,e,t){var r=n.constructor;switch(e){case pg:return mi(n);case og:case ag:return new r(+n);case gg:return ng(n);case mg:case vg:case yg:case bg:case xg:case Eg:case wg:case Ag:case Sg:return Pa(n,t);case lg:return new r;case cg:case dg:return new r(n);case ug:return sg(n);case fg:return new r;case hg:return ig(n)}}function Fa(n){return typeof n.constructor=="function"&&!ai(n)?Hd(ba(n)):{}}var Ng="[object Map]";function Og(n){return cn(n)&&jt(n)==Ng}var Ma=Zn&&Zn.isMap,Cg=Ma?ci(Ma):Og,Rg="[object Set]";function Ig(n){return cn(n)&&jt(n)==Rg}var Da=Zn&&Zn.isSet,Lg=Da?ci(Da):Ig,kg=1,Ua="[object Arguments]",Bg="[object Array]",Pg="[object Boolean]",Fg="[object Date]",Mg="[object Error]",ja="[object Function]",Dg="[object GeneratorFunction]",Ug="[object Map]",jg="[object Number]",$a="[object Object]",$g="[object RegExp]",Vg="[object Set]",_g="[object String]",qg="[object Symbol]",zg="[object WeakMap]",Hg="[object ArrayBuffer]",Gg="[object DataView]",Wg="[object Float32Array]",Kg="[object Float64Array]",Xg="[object Int8Array]",Yg="[object Int16Array]",Zg="[object Int32Array]",Qg="[object Uint8Array]",Jg="[object Uint8ClampedArray]",em="[object Uint16Array]",tm="[object Uint32Array]",Ze={};Ze[Ua]=Ze[Bg]=Ze[Hg]=Ze[Gg]=Ze[Pg]=Ze[Fg]=Ze[Wg]=Ze[Kg]=Ze[Xg]=Ze[Yg]=Ze[Zg]=Ze[Ug]=Ze[jg]=Ze[$a]=Ze[$g]=Ze[Vg]=Ze[_g]=Ze[qg]=Ze[Qg]=Ze[Jg]=Ze[em]=Ze[tm]=!0,Ze[Mg]=Ze[ja]=Ze[zg]=!1;function us(n,e,t,r,s,a){var o,c=e&kg;if(o!==void 0)return o;if(!En(n))return n;var i=kn(n);if(i)o=tg(n);else{var l=jt(n),u=l==ja||l==Dg;if(Nr(n))return Ta(n,c);if(l==$a||l==Ua||u&&!s)o=u?{}:Fa(n);else{if(!Ze[l])return s?n:{};o=Tg(n,l,c)}}a||(a=new Jt);var d=a.get(n);if(d)return d;a.set(n,o),Lg(n)?n.forEach(function(g){o.add(us(g,e,t,g,n,a))}):Cg(n)&&n.forEach(function(g,v){o.set(v,us(g,e,t,v,n,a))});var f=di,m=i?void 0:f(n);return th(m||n,function(g,v){m&&(v=g,g=n[v]),oa(o,v,us(g,e,t,v,n,a))}),o}var nm=1,rm=4;function Qn(n){return us(n,nm|rm)}var sm="__lodash_hash_undefined__";function im(n){return this.__data__.set(n,sm),this}function om(n){return this.__data__.has(n)}function fs(n){var e=-1,t=n==null?0:n.length;for(this.__data__=new Mn;++e<t;)this.add(n[e])}fs.prototype.add=fs.prototype.push=im,fs.prototype.has=om;function am(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 lm(n,e){return n.has(e)}var cm=1,um=2;function Va(n,e,t,r,s,a){var o=t&cm,c=n.length,i=e.length;if(c!=i&&!(o&&i>c))return!1;var l=a.get(n),u=a.get(e);if(l&&u)return l==e&&u==n;var d=-1,f=!0,m=t&um?new fs:void 0;for(a.set(n,e),a.set(e,n);++d<c;){var g=n[d],v=e[d];if(r)var x=o?r(v,g,d,e,n,a):r(g,v,d,n,e,a);if(x!==void 0){if(x)continue;f=!1;break}if(m){if(!am(e,function(T,S){if(!lm(m,S)&&(g===T||s(g,T,t,r,a)))return m.push(S)})){f=!1;break}}else if(!(g===v||s(g,v,t,r,a))){f=!1;break}}return a.delete(n),a.delete(e),f}function fm(n){var e=-1,t=Array(n.size);return n.forEach(function(r,s){t[++e]=[s,r]}),t}function dm(n){var e=-1,t=Array(n.size);return n.forEach(function(r){t[++e]=r}),t}var hm=1,pm=2,gm="[object Boolean]",mm="[object Date]",vm="[object Error]",ym="[object Map]",bm="[object Number]",xm="[object RegExp]",Em="[object Set]",wm="[object String]",Am="[object Symbol]",Sm="[object ArrayBuffer]",Tm="[object DataView]",_a=xn?xn.prototype:void 0,vi=_a?_a.valueOf:void 0;function Nm(n,e,t,r,s,a,o){switch(t){case Tm:if(n.byteLength!=e.byteLength||n.byteOffset!=e.byteOffset)return!1;n=n.buffer,e=e.buffer;case Sm:return!(n.byteLength!=e.byteLength||!a(new cs(n),new cs(e)));case gm:case mm:case bm:return Tr(+n,+e);case vm:return n.name==e.name&&n.message==e.message;case xm:case wm:return n==e+"";case ym:var c=fm;case Em:var i=r&hm;if(c||(c=dm),n.size!=e.size&&!i)return!1;var l=o.get(n);if(l)return l==e;r|=pm,o.set(n,e);var u=Va(c(n),c(e),r,s,a,o);return o.delete(n),u;case Am:if(vi)return vi.call(n)==vi.call(e)}return!1}var Om=1,Cm=Object.prototype,Rm=Cm.hasOwnProperty;function Im(n,e,t,r,s,a){var o=t&Om,c=di(n),i=c.length,l=di(e),u=l.length;if(i!=u&&!o)return!1;for(var d=i;d--;){var f=c[d];if(!(o?f in e:Rm.call(e,f)))return!1}var m=a.get(n),g=a.get(e);if(m&&g)return m==e&&g==n;var v=!0;a.set(n,e),a.set(e,n);for(var x=o;++d<i;){f=c[d];var T=n[f],S=e[f];if(r)var R=o?r(S,T,f,e,n,a):r(T,S,f,n,e,a);if(!(R===void 0?T===S||s(T,S,t,r,a):R)){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 Lm=1,qa="[object Arguments]",za="[object Array]",ds="[object Object]",km=Object.prototype,Ha=km.hasOwnProperty;function Bm(n,e,t,r,s,a){var o=kn(n),c=kn(e),i=o?za:jt(n),l=c?za:jt(e);i=i==qa?ds:i,l=l==qa?ds:l;var u=i==ds,d=l==ds,f=i==l;if(f&&Nr(n)){if(!Nr(e))return!1;o=!0,u=!1}if(f&&!u)return a||(a=new Jt),o||fi(n)?Va(n,e,t,r,s,a):Nm(n,e,i,t,r,s,a);if(!(t&Lm)){var m=u&&Ha.call(n,"__wrapped__"),g=d&&Ha.call(e,"__wrapped__");if(m||g){var v=m?n.value():n,x=g?e.value():e;return a||(a=new Jt),s(v,x,t,r,a)}}return f?(a||(a=new Jt),Im(n,e,t,r,s,a)):!1}function Ga(n,e,t,r,s){return n===e?!0:n==null||e==null||!cn(n)&&!cn(e)?n!==n&&e!==e:Bm(n,e,t,r,Ga,s)}function Pm(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 Fm=Pm();function yi(n,e,t){(t!==void 0&&!Tr(n[e],t)||t===void 0&&!(e in n))&&oi(n,e,t)}function Mm(n){return cn(n)&&os(n)}function bi(n,e){if(!(e==="constructor"&&typeof n[e]=="function")&&e!="__proto__")return n[e]}function Dm(n){return oh(n,ya(n))}function Um(n,e,t,r,s,a,o){var c=bi(n,t),i=bi(e,t),l=o.get(i);if(l){yi(n,t,l);return}var u=a?a(c,i,t+"",n,e,o):void 0,d=u===void 0;if(d){var f=kn(i),m=!f&&Nr(i),g=!f&&!m&&fi(i);u=i,f||m||g?kn(c)?u=c:Mm(c)?u=Wd(c):m?(d=!1,u=Ta(i,!0)):g?(d=!1,u=Pa(i,!0)):u=[]:Bp(i)||li(i)?(u=c,li(c)?u=Dm(c):(!En(c)||ri(c))&&(u=Fa(i))):d=!1}d&&(o.set(i,u),s(u,i,r,a,o),o.delete(i)),yi(n,t,u)}function Wa(n,e,t,r,s){n!==e&&Fm(e,function(a,o){if(s||(s=new Jt),En(a))Um(n,e,o,t,Wa,r,s);else{var c=r?r(bi(n,o),a,o+"",n,e,s):void 0;c===void 0&&(c=a),yi(n,o,c)}},ya)}function xi(n,e){return Ga(n,e)}var wn=fh(function(n,e,t){Wa(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 Ka=class Bo{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 Bo.blots.set(c.domNode,c),c}find(e,t=!1){return Bo.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})}};Ka.blots=new WeakMap;let er=Ka;function Xa(n,e){return(n.getAttribute("class")||"").split(/\s+/).filter(t=>t.indexOf(`${e}-`)===0)}class jm 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){Xa(e,this.keyName).forEach(t=>{e.classList.remove(t)}),e.classList.length===0&&e.removeAttribute("class")}value(e){const t=(Xa(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""}}const $t=jm;function Ei(n){const e=n.split("-"),t=e.slice(1).map(r=>r[0].toUpperCase()+r.slice(1)).join("");return e[0]+t}class $m 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[Ei(this.keyName)]=t,!0):!1}remove(e){e.style[Ei(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")}value(e){const t=e.style[Ei(this.keyName)];return this.canAdd(e,t)?t:""}}const An=$m;class Vm{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=An.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=Vm,Ya=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}};Ya.blotName="abstract";let Za=Ya;const Qa=class extends Za{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}}};Qa.scope=Ne.INLINE_BLOT;const mt=Qa;class _m{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 Ja(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 el=class In extends Za{constructor(e,t){super(e,t),this.uiNode=null,this.build()}appendChild(e){this.insertBefore(e)}attach(){super.attach(),this.children.forEach(e=>{e.attach()})}attachUI(e){this.uiNode!=null&&this.uiNode.remove(),this.uiNode=e,In.uiClass&&this.uiNode.classList.add(In.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new _m,Array.from(this.domNode.childNodes).filter(e=>e!==this.uiNode).reverse().forEach(e=>{try{const t=Ja(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 In?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 In&&(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 In?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 In?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 In&&this.moveChildren(r),super.replaceWith(r)}split(e,t=!1){if(!t){if(e===0)return this;if(e===this.length())return this.next}const r=this.clone();return this.parent&&this.parent.insertBefore(r,this.next||void 0),this.children.forEachAt(e,this.length(),(s,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=Ja(a,this.scroll);(c.next!==o||c.next==null)&&(c.parent!=null&&c.parent.removeChild(this),this.insertBefore(c,o||void 0))}),this.enforceAllowedChildren()}};el.uiClass="";const Vt=el;function qm(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 Ar extends Vt{static create(e){return super.create(e)}static formats(e,t){const r=t.query(Ar.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 Ar||(r=r.wrap(Ar.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 Ar&&r.prev===this&&qm(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 Ar&&this.attributes.move(r),r}};tr.allowedChildren=[tr,mt],tr.blotName="inline",tr.scope=Ne.INLINE_BLOT,tr.tagName="SPAN";const wi=tr,nr=class Po extends Vt{static create(e){return super.create(e)}static formats(e,t){const r=t.query(Po.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(Po.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=[wi,nr,mt];const Ir=nr,Ai=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())}};Ai.blotName="container",Ai.scope=Ne.BLOCK_BLOT;const ps=Ai;class zm extends mt{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=zm,Hm={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},Gm=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,Hm),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>=Gm)throw new Error("[Parchment] Maximum optimize iterations reached");for(c.forEach(l=>{const u=this.find(l.target,!0);u!=null&&(u.domNode===l.target&&(l.type==="childList"?(a(this.find(l.previousSibling,!1)),Array.from(l.addedNodes).forEach(d=>{const f=this.find(d,!1);a(f,!1),f instanceof Vt&&f.children.forEach(m=>{a(m,!1)})})):l.type==="attributes"&&a(u.prev)),a(u))}),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=Ir,rr.allowedChildren=[Ir,ps],rr.scope=Ne.BLOCK_BLOT,rr.tagName="DIV";const Si=rr,Ti=class Gc extends mt{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 Gc&&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}};Ti.blotName="text",Ti.scope=Ne.INLINE_BLOT;const gs=Ti,Wm=Object.freeze(Object.defineProperty({__proto__:null,Attributor:en,AttributorStore:hs,BlockBlot:Ir,ClassAttributor:$t,ContainerBlot:ps,EmbedBlot:Rt,InlineBlot:wi,LeafBlot:mt,ParentBlot:Vt,Registry:er,Scope:Ne,ScrollBlot:Si,StyleAttributor:An,TextBlot:gs},Symbol.toStringTag,{value:"Module"}));var Sn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ni(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var ms={exports:{}},Oi,tl;function Km(){if(tl)return Oi;tl=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),_&&d(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=u(E,P);if(K){var q=K[0],J=K[1],te=K[2],ge=K[3],me=K[4],ve=r(q,te),xe=r(J,ge);return ve.concat([[t,me]],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 ge=O-_,me=ge%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 I=$+N,w;N===-ye||N!==ye&&q[I-1]<q[I+1]?w=q[I+1]:w=q[I-1]+1;for(var C=w-N;w<O&&C<_&&E.charAt(w)===P.charAt(C);)w++,C++;if(q[I]=w,w>O)xe+=2;else if(C>_)ve+=2;else if(me){var y=$+ge-N;if(y>=0&&y<K&&J[y]!==-1){var b=O-J[y];if(w>=b)return o(E,P,w,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(!me){var I=$+ge-L;if(I>=0&&I<K&&q[I]!==-1){var w=q[I],C=$+w-I;if(b=O-b,w>=b)return o(E,P,w,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 R(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 u(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,I="",w,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));I.length<B+L&&(I=he.substring(N-B,N)+he.substring(N,N+L),w=xe.substring(0,Oe-B),C=xe.substring(Oe+L),y=he.substring(0,N-B),b=he.substring(N+L))}return I.length*2>=xe.length?[w,C,y,b,I]: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,ge,me;E.length>P.length?(J=q[0],te=q[1],ge=q[2],me=q[3]):(ge=q[0],me=q[1],J=q[2],te=q[3]);var ve=q[4];return[J,te,ge,me,ve]}function d(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 ge=E[$-1][1],me=E[$][1],ve=i(ge,me),xe=i(me,ge);ve>=xe?(ve>=ge.length/2||ve>=me.length/2)&&(E.splice($,0,[t,me.substring(0,ve)]),E[$-1][1]=ge.substring(0,ge.length-ve),E[$+1][1]=me.substring(ve),$++):(xe>=ge.length/2||xe>=me.length/2)&&(E.splice($,0,[t,ge.substring(0,xe)]),E[$-1][0]=e,E[$-1][1]=me.substring(0,me.length-xe),E[$+1][0]=n,E[$+1][1]=ge.substring(xe),$++),$++}$++}}var f=/[^a-zA-Z0-9]/,m=/\s/,g=/[\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),I=ye.match(f),w=N&&Oe.match(m),C=I&&ye.match(m),y=w&&Oe.match(g),b=C&&ye.match(g),L=y&&xe.match(v),B=b&&he.match(x);return L||B?5:y||b?4:N&&!w&&C?3:w||C?2:N||I?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,ge=$,me=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>=me&&(me=ve,J=_,te=j,ge=$)}E[O-1][1]!=J&&(J?E[O-1][1]=J:(E.splice(O-1,1),O--),E[O][1]=te,ge?E[O+1][1]=ge:(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 ge=J-1;E[ge]&&E[ge][0]===e&&(j++,K=E[ge][1]+K,ge--),E[ge]&&E[ge][0]===n&&(_++,$=E[ge][1]+$,ge--),J=ge}}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 me=j+_;$.length===0&&K.length===0?(E.splice(O-me,me),O=O-me):$.length===0?(E.splice(O-me,me,[e,K]),O=O-me+1):K.length===0?(E.splice(O-me,me,[n,$]),O=O-me+1):(E.splice(O-me,me,[n,$],[e,K]),O=O-me+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 R(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 R(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),ge=j?j.index:null;e:{var me=q+K-$;if(ge!==null&&ge!==me||me<0||me>K)break e;var ve=P.slice(0,me),xe=P.slice(me);if(xe!==te)break e;var he=Math.min(q,me),Oe=J.slice(0,he),ye=ve.slice(0,he);if(Oe!==ye)break e;var N=J.slice(he),I=ve.slice(he);return H(Oe,N,I,te)}e:{if(ge!==null&&ge!==q)break e;var w=q,ve=P.slice(0,w),xe=P.slice(w);if(ve!==J)break e;var C=Math.min($-w,K-w),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),I=xe.slice(0,xe.length-C);return H(J,N,I,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),I=P.slice(he,K-C);return H(Oe,N,I,y)}return null}function G(E,P,O,_){return r(E,P,O,_,!0)}return G.INSERT=e,G.DELETE=n,G.EQUAL=t,Oi=G,Oi}var Lr={exports:{}};Lr.exports;var nl;function rl(){return nl||(nl=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]",u="[object Function]",d="[object GeneratorFunction]",f="[object Map]",m="[object Number]",g="[object Object]",v="[object Promise]",x="[object RegExp]",T="[object Set]",S="[object String]",R="[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[m]=te[g]=te[x]=te[T]=te[S]=te[R]=te[P]=te[O]=te[_]=te[j]=!0,te[l]=te[u]=te[F]=!1;var ge=typeof Sn=="object"&&Sn&&Sn.Object===Object&&Sn,me=typeof self=="object"&&self&&self.Object===Object&&self,ve=ge||me||Function("return this")(),xe=e&&!e.nodeType&&e,he=xe&&!0&&n&&!n.nodeType&&n,Oe=he&&he.exports===xe;function ye(p,A){return p.set(A[0],A[1]),p}function N(p,A){return p.add(A),p}function I(p,A){for(var D=-1,ie=p?p.length:0;++D<ie&&A(p[D],D,p)!==!1;);return p}function w(p,A){for(var D=-1,ie=A.length,Fe=p.length;++D<ie;)p[Fe+D]=A[D];return p}function C(p,A,D,ie){for(var Fe=-1,Re=p?p.length:0;++Fe<Re;)D=A(D,p[Fe],Fe,p);return D}function y(p,A){for(var D=-1,ie=Array(p);++D<p;)ie[D]=A(D);return ie}function b(p,A){return p==null?void 0:p[A]}function L(p){var A=!1;if(p!=null&&typeof p.toString!="function")try{A=!!(p+"")}catch{}return A}function B(p){var A=-1,D=Array(p.size);return p.forEach(function(ie,Fe){D[++A]=[Fe,ie]}),D}function U(p,A){return function(D){return p(A(D))}}function V(p){var A=-1,D=Array(p.size);return p.forEach(function(ie){D[++A]=ie}),D}var W=Array.prototype,Z=Function.prototype,Y=Object.prototype,Q=ve["__core-js_shared__"],ne=function(){var p=/[^.]+$/.exec(Q&&Q.keys&&Q.keys.IE_PROTO||"");return p?"Symbol(src)_1."+p:""}(),oe=Z.toString,de=Y.hasOwnProperty,we=Y.toString,De=RegExp("^"+oe.call(de).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),ft=St(Ce),dt=St(Le),It=je?je.prototype:void 0,Ut=It?It.valueOf:void 0;function lt(p){var A=-1,D=p?p.length:0;for(this.clear();++A<D;){var ie=p[A];this.set(ie[0],ie[1])}}function Ot(){this.__data__=Ie?Ie(null):{}}function Xt(p){return this.has(p)&&delete this.__data__[p]}function zn(p){var A=this.__data__;if(Ie){var D=A[p];return D===r?void 0:D}return de.call(A,p)?A[p]:void 0}function gn(p){var A=this.__data__;return Ie?A[p]!==void 0:de.call(A,p)}function On(p,A){var D=this.__data__;return D[p]=Ie&&A===void 0?r:A,this}lt.prototype.clear=Ot,lt.prototype.delete=Xt,lt.prototype.get=zn,lt.prototype.has=gn,lt.prototype.set=On;function ot(p){var A=-1,D=p?p.length:0;for(this.clear();++A<D;){var ie=p[A];this.set(ie[0],ie[1])}}function dr(){this.__data__=[]}function hr(p){var A=this.__data__,D=Ue(A,p);if(D<0)return!1;var ie=A.length-1;return D==ie?A.pop():Dt.call(A,D,1),!0}function pr(p){var A=this.__data__,D=Ue(A,p);return D<0?void 0:A[D][1]}function gr(p){return Ue(this.__data__,p)>-1}function mr(p,A){var D=this.__data__,ie=Ue(D,p);return ie<0?D.push([p,A]):D[ie][1]=A,this}ot.prototype.clear=dr,ot.prototype.delete=hr,ot.prototype.get=pr,ot.prototype.has=gr,ot.prototype.set=mr;function ct(p){var A=-1,D=p?p.length:0;for(this.clear();++A<D;){var ie=p[A];this.set(ie[0],ie[1])}}function vr(){this.__data__={hash:new lt,map:new(pe||ot),string:new lt}}function yr(p){return Gn(this,p).delete(p)}function br(p){return Gn(this,p).get(p)}function xt(p){return Gn(this,p).has(p)}function xr(p,A){return Gn(this,p).set(p,A),this}ct.prototype.clear=vr,ct.prototype.delete=yr,ct.prototype.get=br,ct.prototype.has=xt,ct.prototype.set=xr;function pt(p){this.__data__=new ot(p)}function k(){this.__data__=new ot}function ae(p){return this.__data__.delete(p)}function se(p){return this.__data__.get(p)}function ce(p){return this.__data__.has(p)}function fe(p,A){var D=this.__data__;if(D instanceof ot){var ie=D.__data__;if(!pe||ie.length<t-1)return ie.push([p,A]),this;D=this.__data__=new ct(ie)}return D.set(p,A),this}pt.prototype.clear=k,pt.prototype.delete=ae,pt.prototype.get=se,pt.prototype.has=ce,pt.prototype.set=fe;function ke(p,A){var D=Zr(p)||Er(p)?y(p.length,String):[],ie=D.length,Fe=!!ie;for(var Re in p)de.call(p,Re)&&!(Fe&&(Re=="length"||Oo(Re,ie)))&&D.push(Re);return D}function Ae(p,A,D){var ie=p[A];(!(de.call(p,A)&&Gs(ie,D))||D===void 0&&!(A in p))&&(p[A]=D)}function Ue(p,A){for(var D=p.length;D--;)if(Gs(p[D][0],A))return D;return-1}function qe(p,A){return p&&Yr(A,Jr(A),p)}function Qe(p,A,D,ie,Fe,Re,He){var ze;if(ie&&(ze=Re?ie(p,Fe,Re,He):ie(p)),ze!==void 0)return ze;if(!an(p))return p;var at=Zr(p);if(at){if(ze=To(p),!A)return wo(p,ze)}else{var Xe=yn(p),wt=Xe==u||Xe==d;if(Ws(p))return mn(p,A);if(Xe==g||Xe==a||wt&&!Re){if(L(p))return Re?p:{};if(ze=on(wt?{}:p),!A)return Ao(p,qe(ze,p))}else{if(!te[Xe])return Re?p:{};ze=No(p,Xe,Qe,A)}}He||(He=new pt);var Ct=He.get(p);if(Ct)return Ct;if(He.set(p,ze),!at)var ut=D?So(p):Jr(p);return I(ut||p,function(At,gt){ut&&(gt=At,At=p[gt]),Ae(ze,gt,Qe(At,A,D,ie,gt,p,He))}),ze}function Et(p){return an(p)?rt(p):{}}function ue(p,A,D){var ie=A(p);return Zr(p)?ie:w(ie,D(p))}function st(p){return we.call(p)}function Lt(p){if(!an(p)||Ro(p))return!1;var A=Qr(p)||L(p)?De:q;return A.test(St(p))}function Hn(p){if(!zs(p))return Pe(p);var A=[];for(var D in Object(p))de.call(p,D)&&D!="constructor"&&A.push(D);return A}function mn(p,A){if(A)return p.slice();var D=new p.constructor(p.length);return p.copy(D),D}function Cn(p){var A=new p.constructor(p.byteLength);return new Be(A).set(new Be(p)),A}function Yt(p,A){var D=A?Cn(p.buffer):p.buffer;return new p.constructor(D,p.byteOffset,p.byteLength)}function _s(p,A,D){var ie=A?D(B(p),!0):B(p);return C(ie,ye,new p.constructor)}function qs(p){var A=new p.constructor(p.source,K.exec(p));return A.lastIndex=p.lastIndex,A}function bo(p,A,D){var ie=A?D(V(p),!0):V(p);return C(ie,N,new p.constructor)}function xo(p){return Ut?Object(Ut.call(p)):{}}function Eo(p,A){var D=A?Cn(p.buffer):p.buffer;return new p.constructor(D,p.byteOffset,p.length)}function wo(p,A){var D=-1,ie=p.length;for(A||(A=Array(ie));++D<ie;)A[D]=p[D];return A}function Yr(p,A,D,ie){D||(D={});for(var Fe=-1,Re=A.length;++Fe<Re;){var He=A[Fe],ze=void 0;Ae(D,He,ze===void 0?p[He]:ze)}return D}function Ao(p,A){return Yr(p,vn(p),A)}function So(p){return ue(p,Jr,vn)}function Gn(p,A){var D=p.__data__;return Co(A)?D[typeof A=="string"?"string":"hash"]:D.map}function Zt(p,A){var D=b(p,A);return Lt(D)?D:void 0}var vn=bt?U(bt,Object):Lo,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(p){var A=we.call(p),D=A==g?p.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 ft:return T;case dt:return F}return A});function To(p){var A=p.length,D=p.constructor(A);return A&&typeof p[0]=="string"&&de.call(p,"index")&&(D.index=p.index,D.input=p.input),D}function on(p){return typeof p.constructor=="function"&&!zs(p)?Et($e(p)):{}}function No(p,A,D,ie){var Fe=p.constructor;switch(A){case M:return Cn(p);case c:case i:return new Fe(+p);case z:return Yt(p,ie);case X:case H:case re:case G:case E:case P:case O:case _:case j:return Eo(p,ie);case f:return _s(p,ie,D);case m:case S:return new Fe(p);case x:return qs(p);case T:return bo(p,ie,D);case R:return xo(p)}}function Oo(p,A){return A=A??s,!!A&&(typeof p=="number"||J.test(p))&&p>-1&&p%1==0&&p<A}function Co(p){var A=typeof p;return A=="string"||A=="number"||A=="symbol"||A=="boolean"?p!=="__proto__":p===null}function Ro(p){return!!ne&&ne in p}function zs(p){var A=p&&p.constructor,D=typeof A=="function"&&A.prototype||Y;return p===D}function St(p){if(p!=null){try{return oe.call(p)}catch{}try{return p+""}catch{}}return""}function Hs(p){return Qe(p,!0,!0)}function Gs(p,A){return p===A||p!==p&&A!==A}function Er(p){return Io(p)&&de.call(p,"callee")&&(!it.call(p,"callee")||we.call(p)==a)}var Zr=Array.isArray;function wr(p){return p!=null&&Ks(p.length)&&!Qr(p)}function Io(p){return Xs(p)&&wr(p)}var Ws=_e||ko;function Qr(p){var A=an(p)?we.call(p):"";return A==u||A==d}function Ks(p){return typeof p=="number"&&p>-1&&p%1==0&&p<=s}function an(p){var A=typeof p;return!!p&&(A=="object"||A=="function")}function Xs(p){return!!p&&typeof p=="object"}function Jr(p){return wr(p)?ke(p):Hn(p)}function Lo(){return[]}function ko(){return!1}n.exports=Hs}(Lr,Lr.exports)),Lr.exports}var kr={exports:{}};kr.exports;var sl;function il(){return sl||(sl=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]",u="[object Boolean]",d="[object Date]",f="[object Error]",m="[object Function]",g="[object GeneratorFunction]",v="[object Map]",x="[object Number]",T="[object Null]",S="[object Object]",R="[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]",ge="[object Uint32Array]",me=/[\\^$.*+?()[\]{}|]/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[ge]=!0,he[c]=he[i]=he[E]=he[u]=he[P]=he[d]=he[f]=he[m]=he[v]=he[x]=he[S]=he[M]=he[z]=he[X]=he[G]=!1;var Oe=typeof Sn=="object"&&Sn&&Sn.Object===Object&&Sn,ye=typeof self=="object"&&self&&self.Object===Object&&self,N=Oe||ye||Function("return this")(),I=e&&!e.nodeType&&e,w=I&&!0&&n&&!n.nodeType&&n,C=w&&w.exports===I,y=C&&Oe.process,b=function(){try{return y&&y.binding&&y.binding("util")}catch{}}(),L=b&&b.isTypedArray;function B(p,A){for(var D=-1,ie=p==null?0:p.length,Fe=0,Re=[];++D<ie;){var He=p[D];A(He,D,p)&&(Re[Fe++]=He)}return Re}function U(p,A){for(var D=-1,ie=A.length,Fe=p.length;++D<ie;)p[Fe+D]=A[D];return p}function V(p,A){for(var D=-1,ie=p==null?0:p.length;++D<ie;)if(A(p[D],D,p))return!0;return!1}function W(p,A){for(var D=-1,ie=Array(p);++D<p;)ie[D]=A(D);return ie}function Z(p){return function(A){return p(A)}}function Y(p,A){return p.has(A)}function Q(p,A){return p==null?void 0:p[A]}function ne(p){var A=-1,D=Array(p.size);return p.forEach(function(ie,Fe){D[++A]=[Fe,ie]}),D}function oe(p,A){return function(D){return p(A(D))}}function de(p){var A=-1,D=Array(p.size);return p.forEach(function(ie){D[++A]=ie}),D}var we=Array.prototype,De=Function.prototype,Ge=Object.prototype,je=N["__core-js_shared__"],Be=De.toString,$e=Ge.hasOwnProperty,rt=function(){var p=/[^.]+$/.exec(je&&je.keys&&je.keys.IE_PROTO||"");return p?"Symbol(src)_1."+p:""}(),it=Ge.toString,Dt=RegExp("^"+Be.call($e).replace(me,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),bt=C?N.Buffer:void 0,_e=N.Symbol,Pe=N.Uint8Array,We=Ge.propertyIsEnumerable,pe=we.splice,be=_e?_e.toStringTag:void 0,Ce=Object.getOwnPropertySymbols,Le=bt?bt.isBuffer:void 0,Ie=oe(Object.keys,Object),Ve=vn(N,"DataView"),Ke=vn(N,"Map"),et=vn(N,"Promise"),ft=vn(N,"Set"),dt=vn(N,"WeakMap"),It=vn(Object,"create"),Ut=St(Ve),lt=St(Ke),Ot=St(et),Xt=St(ft),zn=St(dt),gn=_e?_e.prototype:void 0,On=gn?gn.valueOf:void 0;function ot(p){var A=-1,D=p==null?0:p.length;for(this.clear();++A<D;){var ie=p[A];this.set(ie[0],ie[1])}}function dr(){this.__data__=It?It(null):{},this.size=0}function hr(p){var A=this.has(p)&&delete this.__data__[p];return this.size-=A?1:0,A}function pr(p){var A=this.__data__;if(It){var D=A[p];return D===r?void 0:D}return $e.call(A,p)?A[p]:void 0}function gr(p){var A=this.__data__;return It?A[p]!==void 0:$e.call(A,p)}function mr(p,A){var D=this.__data__;return this.size+=this.has(p)?0:1,D[p]=It&&A===void 0?r:A,this}ot.prototype.clear=dr,ot.prototype.delete=hr,ot.prototype.get=pr,ot.prototype.has=gr,ot.prototype.set=mr;function ct(p){var A=-1,D=p==null?0:p.length;for(this.clear();++A<D;){var ie=p[A];this.set(ie[0],ie[1])}}function vr(){this.__data__=[],this.size=0}function yr(p){var A=this.__data__,D=mn(A,p);if(D<0)return!1;var ie=A.length-1;return D==ie?A.pop():pe.call(A,D,1),--this.size,!0}function br(p){var A=this.__data__,D=mn(A,p);return D<0?void 0:A[D][1]}function xt(p){return mn(this.__data__,p)>-1}function xr(p,A){var D=this.__data__,ie=mn(D,p);return ie<0?(++this.size,D.push([p,A])):D[ie][1]=A,this}ct.prototype.clear=vr,ct.prototype.delete=yr,ct.prototype.get=br,ct.prototype.has=xt,ct.prototype.set=xr;function pt(p){var A=-1,D=p==null?0:p.length;for(this.clear();++A<D;){var ie=p[A];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(p){var A=Zt(this,p).delete(p);return this.size-=A?1:0,A}function se(p){return Zt(this,p).get(p)}function ce(p){return Zt(this,p).has(p)}function fe(p,A){var D=Zt(this,p),ie=D.size;return D.set(p,A),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=fe;function ke(p){var A=-1,D=p==null?0:p.length;for(this.__data__=new pt;++A<D;)this.add(p[A])}function Ae(p){return this.__data__.set(p,r),this}function Ue(p){return this.__data__.has(p)}ke.prototype.add=ke.prototype.push=Ae,ke.prototype.has=Ue;function qe(p){var A=this.__data__=new ct(p);this.size=A.size}function Qe(){this.__data__=new ct,this.size=0}function Et(p){var A=this.__data__,D=A.delete(p);return this.size=A.size,D}function ue(p){return this.__data__.get(p)}function st(p){return this.__data__.has(p)}function Lt(p,A){var D=this.__data__;if(D instanceof ct){var ie=D.__data__;if(!Ke||ie.length<t-1)return ie.push([p,A]),this.size=++D.size,this;D=this.__data__=new pt(ie)}return D.set(p,A),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 Hn(p,A){var D=Er(p),ie=!D&&Gs(p),Fe=!D&&!ie&&wr(p),Re=!D&&!ie&&!Fe&&Xs(p),He=D||ie||Fe||Re,ze=He?W(p.length,String):[],at=ze.length;for(var Xe in p)$e.call(p,Xe)&&!(He&&(Xe=="length"||Fe&&(Xe=="offset"||Xe=="parent")||Re&&(Xe=="buffer"||Xe=="byteLength"||Xe=="byteOffset")||No(Xe,at)))&&ze.push(Xe);return ze}function mn(p,A){for(var D=p.length;D--;)if(Hs(p[D][0],A))return D;return-1}function Cn(p,A,D){var ie=A(p);return Er(p)?ie:U(ie,D(p))}function Yt(p){return p==null?p===void 0?re:T:be&&be in Object(p)?yn(p):zs(p)}function _s(p){return an(p)&&Yt(p)==c}function qs(p,A,D,ie,Fe){return p===A?!0:p==null||A==null||!an(p)&&!an(A)?p!==p&&A!==A:bo(p,A,D,ie,qs,Fe)}function bo(p,A,D,ie,Fe,Re){var He=Er(p),ze=Er(A),at=He?i:on(p),Xe=ze?i:on(A);at=at==c?S:at,Xe=Xe==c?S:Xe;var wt=at==S,Ct=Xe==S,ut=at==Xe;if(ut&&wr(p)){if(!wr(A))return!1;He=!0,wt=!1}if(ut&&!wt)return Re||(Re=new qe),He||Xs(p)?Yr(p,A,D,ie,Fe,Re):Ao(p,A,at,D,ie,Fe,Re);if(!(D&s)){var At=wt&&$e.call(p,"__wrapped__"),gt=Ct&&$e.call(A,"__wrapped__");if(At||gt){var Rn=At?p.value():p,bn=gt?A.value():A;return Re||(Re=new qe),Fe(Rn,bn,D,ie,Re)}}return ut?(Re||(Re=new qe),So(p,A,D,ie,Fe,Re)):!1}function xo(p){if(!Ks(p)||Co(p))return!1;var A=Ws(p)?Dt:ve;return A.test(St(p))}function Eo(p){return an(p)&&Qr(p.length)&&!!he[Yt(p)]}function wo(p){if(!Ro(p))return Ie(p);var A=[];for(var D in Object(p))$e.call(p,D)&&D!="constructor"&&A.push(D);return A}function Yr(p,A,D,ie,Fe,Re){var He=D&s,ze=p.length,at=A.length;if(ze!=at&&!(He&&at>ze))return!1;var Xe=Re.get(p);if(Xe&&Re.get(A))return Xe==A;var wt=-1,Ct=!0,ut=D&a?new ke:void 0;for(Re.set(p,A),Re.set(A,p);++wt<ze;){var At=p[wt],gt=A[wt];if(ie)var Rn=He?ie(gt,At,wt,A,p,Re):ie(At,gt,wt,p,A,Re);if(Rn!==void 0){if(Rn)continue;Ct=!1;break}if(ut){if(!V(A,function(bn,Wn){if(!Y(ut,Wn)&&(At===bn||Fe(At,bn,D,ie,Re)))return ut.push(Wn)})){Ct=!1;break}}else if(!(At===gt||Fe(At,gt,D,ie,Re))){Ct=!1;break}}return Re.delete(p),Re.delete(A),Ct}function Ao(p,A,D,ie,Fe,Re,He){switch(D){case P:if(p.byteLength!=A.byteLength||p.byteOffset!=A.byteOffset)return!1;p=p.buffer,A=A.buffer;case E:return!(p.byteLength!=A.byteLength||!Re(new Pe(p),new Pe(A)));case u:case d:case x:return Hs(+p,+A);case f:return p.name==A.name&&p.message==A.message;case M:case X:return p==A+"";case v:var ze=ne;case z:var at=ie&s;if(ze||(ze=de),p.size!=A.size&&!at)return!1;var Xe=He.get(p);if(Xe)return Xe==A;ie|=a,He.set(p,A);var wt=Yr(ze(p),ze(A),ie,Fe,Re,He);return He.delete(p),wt;case H:if(On)return On.call(p)==On.call(A)}return!1}function So(p,A,D,ie,Fe,Re){var He=D&s,ze=Gn(p),at=ze.length,Xe=Gn(A),wt=Xe.length;if(at!=wt&&!He)return!1;for(var Ct=at;Ct--;){var ut=ze[Ct];if(!(He?ut in A:$e.call(A,ut)))return!1}var At=Re.get(p);if(At&&Re.get(A))return At==A;var gt=!0;Re.set(p,A),Re.set(A,p);for(var Rn=He;++Ct<at;){ut=ze[Ct];var bn=p[ut],Wn=A[ut];if(ie)var Hc=He?ie(Wn,bn,ut,A,p,Re):ie(bn,Wn,ut,p,A,Re);if(!(Hc===void 0?bn===Wn||Fe(bn,Wn,D,ie,Re):Hc)){gt=!1;break}Rn||(Rn=ut=="constructor")}if(gt&&!Rn){var Ys=p.constructor,Zs=A.constructor;Ys!=Zs&&"constructor"in p&&"constructor"in A&&!(typeof Ys=="function"&&Ys instanceof Ys&&typeof Zs=="function"&&Zs instanceof Zs)&&(gt=!1)}return Re.delete(p),Re.delete(A),gt}function Gn(p){return Cn(p,Jr,To)}function Zt(p,A){var D=p.__data__;return Oo(A)?D[typeof A=="string"?"string":"hash"]:D.map}function vn(p,A){var D=Q(p,A);return xo(D)?D:void 0}function yn(p){var A=$e.call(p,be),D=p[be];try{p[be]=void 0;var ie=!0}catch{}var Fe=it.call(p);return ie&&(A?p[be]=D:delete p[be]),Fe}var To=Ce?function(p){return p==null?[]:(p=Object(p),B(Ce(p),function(A){return We.call(p,A)}))}:Lo,on=Yt;(Ve&&on(new Ve(new ArrayBuffer(1)))!=P||Ke&&on(new Ke)!=v||et&&on(et.resolve())!=R||ft&&on(new ft)!=z||dt&&on(new dt)!=G)&&(on=function(p){var A=Yt(p),D=A==S?p.constructor:void 0,ie=D?St(D):"";if(ie)switch(ie){case Ut:return P;case lt:return v;case Ot:return R;case Xt:return z;case zn:return G}return A});function No(p,A){return A=A??o,!!A&&(typeof p=="number"||xe.test(p))&&p>-1&&p%1==0&&p<A}function Oo(p){var A=typeof p;return A=="string"||A=="number"||A=="symbol"||A=="boolean"?p!=="__proto__":p===null}function Co(p){return!!rt&&rt in p}function Ro(p){var A=p&&p.constructor,D=typeof A=="function"&&A.prototype||Ge;return p===D}function zs(p){return it.call(p)}function St(p){if(p!=null){try{return Be.call(p)}catch{}try{return p+""}catch{}}return""}function Hs(p,A){return p===A||p!==p&&A!==A}var Gs=_s(function(){return arguments}())?_s:function(p){return an(p)&&$e.call(p,"callee")&&!We.call(p,"callee")},Er=Array.isArray;function Zr(p){return p!=null&&Qr(p.length)&&!Ws(p)}var wr=Le||ko;function Io(p,A){return qs(p,A)}function Ws(p){if(!Ks(p))return!1;var A=Yt(p);return A==m||A==g||A==l||A==F}function Qr(p){return typeof p=="number"&&p>-1&&p%1==0&&p<=o}function Ks(p){var A=typeof p;return p!=null&&(A=="object"||A=="function")}function an(p){return p!=null&&typeof p=="object"}var Xs=L?Z(L):Eo;function Jr(p){return Zr(p)?Hn(p):wo(p)}function Lo(){return[]}function ko(){return!1}n.exports=Io}(kr,kr.exports)),kr.exports}var vs={},ol;function Xm(){if(ol)return vs;ol=1,Object.defineProperty(vs,"__esModule",{value:!0});const n=rl(),e=il();var t;return function(r){function s(i={},l={},u=!1){typeof i!="object"&&(i={}),typeof l!="object"&&(l={});let d=n(l);u||(d=Object.keys(d).reduce((f,m)=>(d[m]!=null&&(f[m]=d[m]),f),{}));for(const f in i)i[f]!==void 0&&l[f]===void 0&&(d[f]=i[f]);return Object.keys(d).length>0?d:void 0}r.compose=s;function a(i={},l={}){typeof i!="object"&&(i={}),typeof l!="object"&&(l={});const u=Object.keys(i).concat(Object.keys(l)).reduce((d,f)=>(e(i[f],l[f])||(d[f]=l[f]===void 0?null:l[f]),d),{});return Object.keys(u).length>0?u:void 0}r.diff=a;function o(i={},l={}){i=i||{};const u=Object.keys(l).reduce((d,f)=>(l[f]!==i[f]&&i[f]!==void 0&&(d[f]=l[f]),d),{});return Object.keys(i).reduce((d,f)=>(i[f]!==l[f]&&l[f]===void 0&&(d[f]=null),d),u)}r.invert=o;function c(i,l,u=!1){if(typeof i!="object")return l;if(typeof l!="object")return;if(!u)return l;const d=Object.keys(l).reduce((f,m)=>(i[m]===void 0&&(f[m]=l[m]),f),{});return Object.keys(d).length>0?d:void 0}r.transform=c}(t||(t={})),vs.default=t,vs}var ys={},al;function ll(){if(al)return ys;al=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={},cl;function Ym(){if(cl)return bs;cl=1,Object.defineProperty(bs,"__esModule",{value:!0});const n=ll();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 ul;function Zm(){return ul||(ul=1,function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.AttributeMap=e.OpIterator=e.Op=void 0;const t=Km(),r=rl(),s=il(),a=Xm();e.AttributeMap=a.default;const o=ll();e.Op=o.default;const c=Ym();e.OpIterator=c.default;const i="\0",l=(d,f)=>{if(typeof d!="object"||d===null)throw new Error(`cannot retain a ${typeof d}`);if(typeof f!="object"||f===null)throw new Error(`cannot retain a ${typeof f}`);const m=Object.keys(d)[0];if(!m||m!==Object.keys(f)[0])throw new Error(`embed types not matched: ${m} != ${Object.keys(f)[0]}`);return[m,d[m],f[m]]};class u{constructor(f){Array.isArray(f)?this.ops=f:f!=null&&Array.isArray(f.ops)?this.ops=f.ops:this.ops=[]}static registerEmbed(f,m){this.handlers[f]=m}static unregisterEmbed(f){delete this.handlers[f]}static getHandler(f){const m=this.handlers[f];if(!m)throw new Error(`no handlers for embed type "${f}"`);return m}insert(f,m){const g={};return typeof f=="string"&&f.length===0?this:(g.insert=f,m!=null&&typeof m=="object"&&Object.keys(m).length>0&&(g.attributes=m),this.push(g))}delete(f){return f<=0?this:this.push({delete:f})}retain(f,m){if(typeof f=="number"&&f<=0)return this;const g={retain:f};return m!=null&&typeof m=="object"&&Object.keys(m).length>0&&(g.attributes=m),this.push(g)}push(f){let m=this.ops.length,g=this.ops[m-1];if(f=r(f),typeof g=="object"){if(typeof f.delete=="number"&&typeof g.delete=="number")return this.ops[m-1]={delete:g.delete+f.delete},this;if(typeof g.delete=="number"&&f.insert!=null&&(m-=1,g=this.ops[m-1],typeof g!="object"))return this.ops.unshift(f),this;if(s(f.attributes,g.attributes)){if(typeof f.insert=="string"&&typeof g.insert=="string")return this.ops[m-1]={insert:g.insert+f.insert},typeof f.attributes=="object"&&(this.ops[m-1].attributes=f.attributes),this;if(typeof f.retain=="number"&&typeof g.retain=="number")return this.ops[m-1]={retain:g.retain+f.retain},typeof f.attributes=="object"&&(this.ops[m-1].attributes=f.attributes),this}}return m===this.ops.length?this.ops.push(f):this.ops.splice(m,0,f),this}chop(){const f=this.ops[this.ops.length-1];return f&&typeof f.retain=="number"&&!f.attributes&&this.ops.pop(),this}filter(f){return this.ops.filter(f)}forEach(f){this.ops.forEach(f)}map(f){return this.ops.map(f)}partition(f){const m=[],g=[];return this.forEach(v=>{(f(v)?m:g).push(v)}),[m,g]}reduce(f,m){return this.ops.reduce(f,m)}changeLength(){return this.reduce((f,m)=>m.insert?f+o.default.length(m):m.delete?f-m.delete:f,0)}length(){return this.reduce((f,m)=>f+o.default.length(m),0)}slice(f=0,m=1/0){const g=[],v=new c.default(this.ops);let x=0;for(;x<m&&v.hasNext();){let T;x<f?T=v.next(f-x):(T=v.next(m-x),g.push(T)),x+=o.default.length(T)}return new u(g)}compose(f){const m=new c.default(this.ops),g=new c.default(f.ops),v=[],x=g.peek();if(x!=null&&typeof x.retain=="number"&&x.attributes==null){let S=x.retain;for(;m.peekType()==="insert"&&m.peekLength()<=S;)S-=m.peekLength(),v.push(m.next());x.retain-S>0&&g.next(x.retain-S)}const T=new u(v);for(;m.hasNext()||g.hasNext();)if(g.peekType()==="insert")T.push(g.next());else if(m.peekType()==="delete")T.push(m.next());else{const S=Math.min(m.peekLength(),g.peekLength()),R=m.next(S),F=g.next(S);if(F.retain){const M={};if(typeof R.retain=="number")M.retain=typeof F.retain=="number"?S:F.retain;else if(typeof F.retain=="number")R.retain==null?M.insert=R.insert:M.retain=R.retain;else{const X=R.retain==null?"insert":"retain",[H,re,G]=l(R[X],F.retain),E=u.getHandler(H);M[X]={[H]:E.compose(re,G,X==="retain")}}const z=a.default.compose(R.attributes,F.attributes,typeof R.retain=="number");if(z&&(M.attributes=z),T.push(M),!g.hasNext()&&s(T.ops[T.ops.length-1],M)){const X=new u(m.rest());return T.concat(X).chop()}}else typeof F.delete=="number"&&(typeof R.retain=="number"||typeof R.retain=="object"&&R.retain!==null)&&T.push(F)}return T.chop()}concat(f){const m=new u(this.ops.slice());return f.ops.length>0&&(m.push(f.ops[0]),m.ops=m.ops.concat(f.ops.slice(1))),m}diff(f,m){if(this.ops===f.ops)return new u;const g=[this,f].map(R=>R.map(F=>{if(F.insert!=null)return typeof F.insert=="string"?F.insert:i;const M=R===f?"on":"with";throw new Error("diff() called "+M+" non-document")}).join("")),v=new u,x=t(g[0],g[1],m,!0),T=new c.default(this.ops),S=new c.default(f.ops);return x.forEach(R=>{let F=R[1].length;for(;F>0;){let M=0;switch(R[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,m=`
|
|
6
|
-
`){const g=new c.default(this.ops);let v=new u,x=0;for(;g.hasNext();){if(g.peekType()!=="insert")return;const T=g.peek(),S=o.default.length(T)-g.peekLength(),
|
|
5
|
+
*/const Vo=["viewport","carousel"],ns={"bottom-to-top":"btt","left-to-right":"ltr","right-to-left":"rtl","top-to-bottom":"ttb"},_o=["ltr","left-to-right","rtl","right-to-left","ttb","top-to-bottom","btt","bottom-to-top"],jf={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}"},qo=["slide","fade"],zo=["center","start","end","center-even","center-odd"],Ho=10,rs=.3,tt={autoplay:0,breakpointMode:Vo[0],breakpoints:void 0,dir:_o[0],enabled:!0,gap:0,height:"auto",i18n:jf,ignoreAnimations:!1,itemsToScroll:1,itemsToShow:1,modelValue:0,mouseDrag:!0,mouseWheel:!1,pauseAutoplayOnHover:!1,preventExcessiveDragging:!1,slideEffect:qo[0],snapAlign:zo[0],touchDrag:!0,transition:300,wrapAround:!1},Ln=Symbol("carousel"),$f=n=>{const e=d.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 Vf(n){return n.length===0?0:n.reduce((t,r)=>t+r,0)/n.length}function Go({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}`},u=n[(c%n.length+n.length)%n.length].vnode,h=d.cloneVNode(u,l);h.el=null,r.push(h)}return r}const _f='a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])';function Wo(n){if(!n.el||!(n.el instanceof Element))return;const e=n.el.querySelectorAll(_f);for(const t of e)t instanceof HTMLElement&&!t.hasAttribute("disabled")&&t.getAttribute("aria-hidden")!=="true"&&t.setAttribute("tabindex","-1")}function qf(n,e){return Object.keys(n).filter(t=>!e.includes(t)).reduce((t,r)=>(t[r]=n[r],t),{})}function zf(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 Hf(n){const{transform:e}=window.getComputedStyle(n);return e.split(/[(,)]/).slice(1,-1).map(t=>parseFloat(t))}function Gf(n){let e=1,t=1;return n.forEach(r=>{const s=Hf(r);s.length===6&&(e/=s[0],t/=s[3])}),{widthMultiplier:e,heightMultiplier:t}}function Wf(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 Kf(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 Js({slideSize:n,viewportSize:e,align:t,itemsToShow:r}){return r!==void 0?Wf(t,r):n!==void 0&&e!==void 0?Kf(t,n,e):0}function Ko(n="",e={}){return Object.entries(e).reduce((t,[r,s])=>t.replace(`{${r}}`,String(s)),n)}function Xo({val:n,max:e,min:t=0}){const r=e-t+1;return((n-t)%r+r)%r+t}function ei(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 Xf=d.defineComponent({name:"CarouselAria",setup(){const n=d.inject(Ln);return n?()=>d.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},Ko(n.config.i18n.itemXofY,{currentSlide:n.currentSlide+1,slidesCount:n.slidesCount})):()=>""}});function Yf(n){let e=!1;const t={x:0,y:0},r=d.reactive({x:0,y:0}),s=d.ref(!1),{isSliding:a}=n,o=d.computed(()=>typeof a=="boolean"?a:a.value),c=u=>{var h;const f=u.target.tagName;if(["INPUT","TEXTAREA","SELECT"].includes(f)||o.value||(e=u.type==="touchstart",e&&u.touches.length>1))return;if(!e&&(u.preventDefault(),u.button!==0))return;t.x=e?u.touches[0].clientX:u.clientX,t.y=e?u.touches[0].clientY:u.clientY;const m=e?"touchmove":"mousemove",g=e?"touchend":"mouseup";document.addEventListener(m,i,{passive:!1}),document.addEventListener(g,l,{passive:!0}),(h=n.onDragStart)===null||h===void 0||h.call(n)},i=ei(u=>{var h;if(e&&u.touches.length>1)return;s.value=!0;const f=e?u.touches[0].clientX:u.clientX,m=e?u.touches[0].clientY:u.clientY;r.x=f-t.x,r.y=m-t.y,(h=n.onDrag)===null||h===void 0||h.call(n,{deltaX:r.x,deltaY:r.y,isTouch:e})}),l=()=>{var u;i.cancel();const h=Math.abs(r.x)+Math.abs(r.y);!e&&h>10&&window.addEventListener("click",g=>{g.preventDefault(),g.stopPropagation()},{once:!0,capture:!0}),(u=n.onDragEnd)===null||u===void 0||u.call(n),r.x=0,r.y=0,s.value=!1;const f=e?"touchmove":"mousemove",m=e?"touchend":"mouseup";document.removeEventListener(f,i),document.removeEventListener(m,l)};return{dragged:r,isDragging:s,handleDragStart:c}}function Zf(){const n=d.ref(!1);return{isHover:n,handleMouseEnter:()=>{n.value=!0},handleMouseLeave:()=>{n.value=!1}}}function Qf(n){const{isVertical:e,isSliding:t,config:r}=n,s=d.computed(()=>typeof e=="boolean"?e:e.value),a=d.computed(()=>typeof t=="boolean"?t:t.value);return{handleScroll:c=>{var i,l;if(c.preventDefault(),!r.mouseWheel||a.value)return;const u=typeof r.mouseWheel=="object"&&(i=r.mouseWheel.threshold)!==null&&i!==void 0?i:Ho,h=Math.abs(c.deltaY)>u?c.deltaY:0,f=Math.abs(c.deltaX)>u?c.deltaX:0;if(h===0&&f===0)return;const m=s.value?h:f,v=(m!==0?m:s.value?f:h)>0;(l=n.onWheel)===null||l===void 0||l.call(n,{deltaX:f,deltaY:h,isScrollingForward:v})}}}const Jf={autoplay:{default:tt.autoplay,type:Number},breakpoints:{default:tt.breakpoints,type:Object},breakpointMode:{default:tt.breakpointMode,validator(n){return Vo.includes(n)}},clamp:{type:Boolean},dir:{type:String,default:tt.dir,validator(n,e){if(!_o.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 qo.includes(n)}},snapAlign:{default:tt.snapAlign,validator(n){return zo.includes(n)}},touchDrag:{default:tt.touchDrag,type:[Boolean,Object]},transition:{default:tt.transition,type:Number},wrapAround:{default:tt.wrapAround,type:Boolean}},ed=d.defineComponent({name:"VueCarousel",props:Jf,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=$f(t),o=a.getSlides(),c=d.computed(()=>o.length),i=d.ref(null),l=d.ref(null),u=d.ref(0),h=d.computed(()=>Object.assign(Object.assign(Object.assign({},tt),qf(n,["breakpoints","modelValue"])),{i18n:Object.assign(Object.assign({},tt.i18n),n.i18n)})),f=d.shallowReactive(Object.assign({},h.value)),m=d.ref((s=n.modelValue)!==null&&s!==void 0?s:0),g=d.ref(m.value);d.watch(m,pe=>g.value=pe);const v=d.ref(0),x=d.computed(()=>Math.ceil((c.value-1)/2)),T=d.computed(()=>c.value-1),S=d.computed(()=>0);let I=null,F=null,M=null;const z=d.computed(()=>u.value+f.gap),X=d.computed(()=>{const pe=f.dir||"ltr";return pe in ns?ns[pe]:pe}),H=d.computed(()=>["rtl","btt"].includes(X.value)),re=d.computed(()=>["ttb","btt"].includes(X.value)),G=d.computed(()=>f.itemsToShow==="auto"),E=d.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=ei(()=>{P(),te(),J()}),_=d.shallowReactive(new Set),j=d.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=d.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=Gf(_);if(q(pe),$(pe),G.value)u.value=Vf(j.value.map(be=>be[E.value]));else{const be=Number(f.itemsToShow),Ce=(be-1)*f.gap;u.value=(K.value[E.value]-Ce)/be}}function te(){!f.wrapAround&&c.value>0&&(m.value=ln({val:m.value,max:T.value,min:S.value}))}const ge=d.computed(()=>typeof n.ignoreAnimations=="string"?n.ignoreAnimations.split(","):Array.isArray(n.ignoreAnimations)?n.ignoreAnimations:n.ignoreAnimations?!1:[]);d.watchEffect(()=>te()),d.watchEffect(()=>{J()});let me;const ve=pe=>{const be=pe.target;if(!(!(be!=null&&be.contains(i.value))||Array.isArray(ge.value)&&ge.value.includes(pe.animationName))&&(_.add(be),!me)){const Ce=()=>{me=requestAnimationFrame(()=>{J(),Ce()})};Ce()}},xe=pe=>{const be=pe.target;be&&_.delete(be),me&&_.size===0&&(cancelAnimationFrame(me),J())},he=d.ref(!1);typeof document<"u"&&d.watchEffect(()=>{he.value&&ge.value!==!1?(document.addEventListener("animationstart",ve),document.addEventListener("animationend",xe)):(document.removeEventListener("animationstart",ve),document.removeEventListener("animationend",xe))}),d.onMounted(()=>{he.value=!0,P(),y(),i.value&&(M=new ResizeObserver(O),M.observe(i.value)),t("init")}),d.onBeforeUnmount(()=>{he.value=!1,a.cleanup(),F&&clearTimeout(F),me&&cancelAnimationFrame(me),I&&clearInterval(I),M&&(M.disconnect(),M=null),typeof document<"u"&&w(),i.value&&(i.value.removeEventListener("transitionend",J),i.value.removeEventListener("animationiteration",J))});const{isHover:Oe,handleMouseEnter:ye,handleMouseLeave:N}=Zf(),R=ei(pe=>{if(!pe.ctrlKey)switch(pe.key){case"ArrowLeft":case"ArrowUp":re.value===pe.key.endsWith("Up")&&(H.value?oe(!0):de(!0));break;case"ArrowRight":case"ArrowDown":re.value===pe.key.endsWith("Down")&&(H.value?de(!0):oe(!0));break}},200),w=()=>{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=d.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,ft=zf({isVertical:re.value,isReversed:H.value,dragged:{x:pe,y:be},effectiveSlideSize:z.value,threshold:et});ft!==0&&(g.value=f.wrapAround?m.value+ft:ln({val:m.value+ft,max:T.value,min:S.value}))},V=()=>we(g.value),{dragged:W,isDragging:Z,handleDragStart:Y}=Yf({isSliding:B,onDrag:U,onDragEnd:V}),Q=({deltaX:pe,deltaY:be,isScrollingForward:Ce})=>{t("wheel",{deltaX:pe,deltaY:be}),Ce?H.value?de():oe():H.value?oe():de()},{handleScroll:ne}=Qf({isVertical:re,isSliding:B,config:f,onWheel:Q});function oe(pe=!1){we(m.value+f.itemsToScroll,pe)}function de(pe=!1){we(m.value-f.itemsToScroll,pe)}function we(pe,be=!1){if(!be&&B.value)return;let Ce=pe,Le=pe;v.value=m.value,f.wrapAround?Le=Xo({val:Ce,max:T.value,min:S.value}):Ce=ln({val:Ce,max:T.value,min:S.value}),t("slide-start",{slidingToIndex:pe,currentSlideIndex:m.value,prevSlideIndex:v.value,slidesCount:c.value}),L(),B.value=!0,m.value=Ce,Le!==Ce&&Ge.pause(),t("update:modelValue",Le),F=setTimeout(()=>{f.wrapAround&&Le!==Ce&&(Ge.resume(),m.value=Le,t("loop",{currentSlideIndex:m.value,slidingToIndex:pe})),t("slide-end",{currentSlideIndex:m.value,prevSlideIndex:v.value,slidesCount:c.value}),B.value=!1,b()},f.transition)}function De(){P(),te(),J(),b()}d.watch(()=>[h.value,n.breakpoints],()=>P(),{deep:!0}),d.watch(()=>n.autoplay,()=>b());const Ge=d.watch(()=>n.modelValue,pe=>{pe!==m.value&&we(Number(pe),!0)});t("before-init");const je=d.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-g.value,Le=be-(c.value-(g.value+1));return{before:Math.max(0,Ce),after:Math.max(0,Le)}}),Be=d.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=d.computed(()=>{var pe;if(G.value){const be=(m.value%o.length+o.length)%o.length;return Js({slideSize:(pe=j.value[be])===null||pe===void 0?void 0:pe[E.value],viewportSize:K.value[E.value],align:f.snapAlign})}return Js({align:f.snapAlign,itemsToShow:+f.itemsToShow})}),rt=d.computed(()=>{let pe=0;if(G.value){if(m.value<0?pe=j.value.slice(m.value).reduce((be,Ce)=>be+Ce[E.value]+f.gap,0)*-1:pe=j.value.slice(0,m.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=m.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=d.computed(()=>{var pe,be;if(!G.value){const Ie=m.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=d.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=d.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:we,next:oe,prev:de},Pe=d.reactive({activeSlide:g,config:f,currentSlide:m,isSliding:B,isVertical:re,maxSlide:T,minSlide:S,nav:_e,normalizedDir:X,slideRegistry:a,slideSize:u,slides:o,slidesCount:c,viewport:l,visibleRange:it});d.provide(Ln,Pe);const We=d.reactive({config:f,currentSlide:m,maxSlide:T,middleSlide:x,minSlide:S,slideSize:u,slidesCount:c});return r(d.reactive(Object.assign({data:We,next:oe,prev:de,restartCarousel:De,slideTo:we,updateBreakpointsConfig:P,updateSlideSize:J,updateSlidesData:te},d.toRefs(Pe)))),()=>{var pe;const be=e.default||e.slides,Ce=(be==null?void 0:be(We))||[],{before:Le,after:Ie}=je.value,Ve=Go({slides:o,position:"before",toShow:Le}),Ke=Go({slides:o,position:"after",toShow:Ie}),et=[...Ve,...Ce,...Ke];if(!f.enabled||!et.length)return d.h("section",{ref:i,class:["carousel","is-disabled"]},et);const ft=((pe=e.addons)===null||pe===void 0?void 0:pe.call(e,We))||[],dt=d.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=d.h("div",{class:"carousel__viewport",ref:l},dt);return d.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:w,onFocus:C,onMouseenter:ye,onMouseleave:N},[It,ft,d.h(Xf)])}}});var ti;(function(n){n.arrowDown="arrowDown",n.arrowLeft="arrowLeft",n.arrowRight="arrowRight",n.arrowUp="arrowUp"})(ti||(ti={}));const Yo=n=>`icon${n.charAt(0).toUpperCase()+n.slice(1)}`,td={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 nd(n){return n in ti}const Zo=n=>n&&nd(n),Qo=d.defineComponent({props:{name:{type:String,required:!0,validator:Zo},title:{type:String,default:n=>n.name?tt.i18n[Yo(n.name)]:""}},setup(n){const e=d.inject(Ln,null);return()=>{const t=n.name;if(!t||!Zo(t))return;const r=td[t],s=d.h("path",{d:r}),a=(e==null?void 0:e.config.i18n[Yo(t)])||n.title,o=d.h("title",a);return d.h("svg",{class:"carousel__icon",viewBox:"0 0 24 24",role:"img","aria-label":a},[o,s])}}});d.defineComponent({name:"CarouselNavigation",inheritAttrs:!1,props:{carousel:{type:Object}},setup(n,{slots:e,attrs:t}){let r=d.inject(Ln,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=d.computed(()=>!r.config.wrapAround&&r.currentSlide<=r.minSlide),l=d.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:u}=r.config,h=d.h("button",Object.assign(Object.assign({type:"button",disabled:i.value,"aria-label":u.ariaPreviousSlide,title:u.ariaPreviousSlide,onClick:r.nav.prev},t),{class:["carousel__prev",{"carousel__prev--disabled":i.value},t.class]}),(a==null?void 0:a())||d.h(Qo,{name:o()})),f=d.h("button",Object.assign(Object.assign({type:"button",disabled:l.value,"aria-label":u.ariaNextSlide,title:u.ariaNextSlide,onClick:r.nav.next},t),{class:["carousel__next",{"carousel__next--disabled":l.value},t.class]}),(s==null?void 0:s())||d.h(Qo,{name:c()}));return[h,f]}}}),d.defineComponent({name:"CarouselPagination",props:{disableOnClick:{type:Boolean},paginateByItemsToShow:{type:Boolean},carousel:{type:Object}},setup(n){let e=d.inject(Ln,null);const t=d.computed(()=>e.config.itemsToShow),r=d.computed(()=>Js({align:e.config.snapAlign,itemsToShow:t.value})),s=d.computed(()=>n.paginateByItemsToShow&&t.value>1),a=d.computed(()=>Math.ceil((e.activeSlide-r.value)/t.value)),o=d.computed(()=>Math.ceil(e.slidesCount/t.value)),c=i=>Xo(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 u=[];for(let h=s.value?0:e.minSlide;h<=(s.value?o.value-1:e.maxSlide);h++){const f=Ko(e.config.i18n[s.value?"ariaNavigateToPage":"ariaNavigateToSlide"],{slideNumber:h+1}),m=c(h),g=d.h("button",{type:"button",class:{"carousel__pagination-button":!0,"carousel__pagination-button--active":m},"aria-label":f,"aria-pressed":m,"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=d.h("li",{class:"carousel__pagination-item",key:h},g);u.push(v)}return d.h("ol",{class:"carousel__pagination"},u)}}});const rd=d.defineComponent({name:"CarouselSlide",props:{id:{type:String,default:n=>n.isClone?void 0:d.useId()},index:{type:Number,default:void 0},isClone:{type:Boolean,default:!1}},setup(n,{attrs:e,slots:t,expose:r}){const s=d.inject(Ln);if(d.provide(Ln,void 0),!s)return()=>"";const a=d.ref(n.index),o=g=>{a.value=g},c=d.getCurrentInstance(),i=()=>{const g=c.vnode.el;return g?g.getBoundingClientRect():{width:0,height:0}};r({id:n.id,setIndex:o,getBoundingRect:i});const l=d.computed(()=>a.value===s.activeSlide),u=d.computed(()=>a.value===s.activeSlide-1),h=d.computed(()=>a.value===s.activeSlide+1),f=d.computed(()=>a.value>=s.visibleRange.min&&a.value<=s.visibleRange.max),m=d.computed(()=>{if(s.config.itemsToShow==="auto")return;const g=s.config.itemsToShow,v=s.config.gap>0&&g>1?`calc(${100/g}% - ${s.config.gap*(g-1)/g}px)`:`${100/g}%`;return s.isVertical?{height:v}:{width:v}});return s.slideRegistry.registerSlide(c,n.index),d.onUnmounted(()=>{s.slideRegistry.unregisterSlide(c)}),n.isClone&&(d.onMounted(()=>{Wo(c.vnode)}),d.onUpdated(()=>{Wo(c.vnode)})),()=>{var g,v;return s.config.enabled?d.h("li",{style:[e.style,Object.assign({},m.value)],class:{carousel__slide:!0,"carousel__slide--clone":n.isClone,"carousel__slide--visible":f.value,"carousel__slide--active":l.value,"carousel__slide--prev":u.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:u.value,isNext:h.value,isSliding:s.isSliding,isVisible:f.value})):(g=t.default)===null||g===void 0?void 0:g.call(t)}}}),sd={class:"flex h-[872px] w-full bg-navy-800 relative rounded-[48px] z-10"},id={class:"lg:p-8 p-4 flex relative"},od={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"},ad={class:"gap-2 flex z-10 mb-4"},ld=["onClick"],cd={class:"lg:text-[48px] text-[40px] font-semibold text-white mb-3 lg:leading-normal leading-[48px]"},ud=["innerHTML"],fd={class:"flex gap-3 mt-8 flex-col lg:flex-row"},dd=["href","target"],hd=["href","target"],pd=["src"],gd=es({__name:"VSliderPresenter",props:{component:{required:!0,type:Object}},setup(n){const e=n,t=d.ref(0),r=d.ref(e.component);return(s,a)=>(d.openBlock(),d.createElementBlock("div",sd,[d.createVNode(d.unref(ed),{"items-to-show":1,modelValue:t.value,"onUpdate:modelValue":a[0]||(a[0]=o=>t.value=o),class:"carousel w-full",autoplay:5e3,"wrap-around":!0},{default:d.withCtx(()=>[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(r.value.data,(o,c)=>(d.openBlock(),d.createBlock(d.unref(rd),{key:c},{default:d.withCtx(()=>[d.createElementVNode("div",id,[d.createElementVNode("div",od,[d.createElementVNode("div",ad,[r.value.data.length>1?(d.openBlock(!0),d.createElementBlock(d.Fragment,{key:0},d.renderList(r.value.data,(i,l)=>(d.openBlock(),d.createElementBlock("a",{onClick:u=>t.value=l,class:d.normalizeClass(["w-4 h-1 bg-navy-400 rounded-full cursor-pointer",{"!w-12 !bg-white":t.value===l}])},null,10,ld))),256)):d.createCommentVNode("",!0)]),d.createElementVNode("h3",cd,d.toDisplayString(o==null?void 0:o.title),1),d.createElementVNode("p",{class:"text-lg font-normal text-navy-50",innerHTML:o==null?void 0:o.description},null,8,ud),d.createElementVNode("div",fd,[o.secondary_button.show?(d.openBlock(),d.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:o.secondary_button.link_to,target:o.secondary_button.open_in_new_tab?"_blank":""},[d.createElementVNode("span",null,d.toDisplayString(o.secondary_button.label),1)],8,dd)):d.createCommentVNode("",!0),o.primary_button.show?(d.openBlock(),d.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:o.primary_button.link_to,target:o.primary_button.open_in_new_tab?"_blank":""},[d.createTextVNode(d.toDisplayString(o.primary_button.label)+" ",1),d.createVNode(d.unref($o),{class:"w-5 h-5"})],8,hd)):d.createCommentVNode("",!0)])]),o.featured_image?(d.openBlock(),d.createElementBlock("img",{key:0,src:o.featured_image,alt:"Slide Image",class:"rounded-[40px] h-[674px] max-w-[882px] lg:w-1/2 w-full object-cover"},null,8,pd)):d.createCommentVNode("",!0)])]),_:2},1024))),128))]),_:1},8,["modelValue"])]))}},[["__scopeId","data-v-208c52d9"]]),md={class:"flex justify-center h-[136px] w-full relative rounded-b-[48px] bg-navy-600 -mt-12 gap-[60px]"},vd=["target","href"],yd={__name:"VLinkPresenter",props:{component:{required:!0,type:Object}},setup(n){const e=n,t=d.ref(e.component);return(r,s)=>(d.openBlock(),d.createElementBlock("div",md,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(t.value.data,a=>(d.openBlock(),d.createElementBlock("a",{target:a.open_in_new_tab?"_blank":"",href:a.link_to,class:"text-white flex gap-1.5 items-center cursor-pointer mt-12 text-sm font-semibold hover:text-gray-300"},[d.createElementVNode("span",null,d.toDisplayString(a.title),1),d.createVNode(d.unref($o),{class:"w-5 h-5"})],8,vd))),256))]))}},bd={class:"rounded-[48px] max-w-[1392px] 1xl:max-w-[1824px] mx-auto w-full"},xd={__name:"HeroHeader",props:{section:{required:!0,type:Object}},setup(n){const e=n,t=d.ref(e.section),r=d.ref({sliders:d.markRaw(gd),links:d.markRaw(yd)}),s=a=>a!=null&&a.type?r.value[a==null?void 0:a.type]:"";return(a,o)=>(d.openBlock(),d.createElementBlock("div",bd,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(t.value.components,(c,i)=>(d.openBlock(),d.createElementBlock("div",null,[(d.openBlock(),d.createBlock(d.resolveDynamicComponent(s(c)),{key:i,component:c},null,8,["component"]))]))),256))]))}},Ed={__name:"PageRender",props:{page:{required:!0,type:Object}},setup(n){const e=d.ref({header:d.markRaw(xd)}),t=r=>r!=null&&r.type?e.value[r==null?void 0:r.type]:"";return(r,s)=>(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(n.page.sections,(a,o)=>(d.openBlock(),d.createElementBlock("div",null,[(d.openBlock(),d.createBlock(d.resolveDynamicComponent(t(a)),{key:o,section:a},null,8,["section"]))]))),256))}};var Jo=typeof global=="object"&&global&&global.Object===Object&&global,wd=typeof self=="object"&&self&&self.Object===Object&&self,Qt=Jo||wd||Function("return this")(),xn=Qt.Symbol,ea=Object.prototype,Ad=ea.hasOwnProperty,Sd=ea.toString,Sr=xn?xn.toStringTag:void 0;function Td(n){var e=Ad.call(n,Sr),t=n[Sr];try{n[Sr]=void 0;var r=!0}catch{}var s=Sd.call(n);return r&&(e?n[Sr]=t:delete n[Sr]),s}var Nd=Object.prototype,Od=Nd.toString;function Cd(n){return Od.call(n)}var Rd="[object Null]",Id="[object Undefined]",ta=xn?xn.toStringTag:void 0;function Yn(n){return n==null?n===void 0?Id:Rd:ta&&ta in Object(n)?Td(n):Cd(n)}function cn(n){return n!=null&&typeof n=="object"}var kn=Array.isArray;function En(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}function na(n){return n}var Ld="[object AsyncFunction]",kd="[object Function]",Bd="[object GeneratorFunction]",Pd="[object Proxy]";function ni(n){if(!En(n))return!1;var e=Yn(n);return e==kd||e==Bd||e==Ld||e==Pd}var ri=Qt["__core-js_shared__"],ra=function(){var n=/[^.]+$/.exec(ri&&ri.keys&&ri.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function Fd(n){return!!ra&&ra in n}var Md=Function.prototype,Dd=Md.toString;function Bn(n){if(n!=null){try{return Dd.call(n)}catch{}try{return n+""}catch{}}return""}var Ud=/[\\^$.*+?()[\]{}|]/g,jd=/^\[object .+?Constructor\]$/,$d=Function.prototype,Vd=Object.prototype,_d=$d.toString,qd=Vd.hasOwnProperty,zd=RegExp("^"+_d.call(qd).replace(Ud,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Hd(n){if(!En(n)||Fd(n))return!1;var e=ni(n)?zd:jd;return e.test(Bn(n))}function Gd(n,e){return n==null?void 0:n[e]}function Pn(n,e){var t=Gd(n,e);return Hd(t)?t:void 0}var si=Pn(Qt,"WeakMap"),sa=Object.create,Wd=function(){function n(){}return function(e){if(!En(e))return{};if(sa)return sa(e);n.prototype=e;var t=new n;return n.prototype=void 0,t}}();function Kd(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 Xd(n,e){var t=-1,r=n.length;for(e||(e=Array(r));++t<r;)e[t]=n[t];return e}var Yd=800,Zd=16,Qd=Date.now;function Jd(n){var e=0,t=0;return function(){var r=Qd(),s=Zd-(r-t);if(t=r,s>0){if(++e>=Yd)return arguments[0]}else e=0;return n.apply(void 0,arguments)}}function eh(n){return function(){return n}}var is=function(){try{var n=Pn(Object,"defineProperty");return n({},"",{}),n}catch{}}(),th=is?function(n,e){return is(n,"toString",{configurable:!0,enumerable:!1,value:eh(e),writable:!0})}:na,nh=Jd(th);function rh(n,e){for(var t=-1,r=n==null?0:n.length;++t<r&&e(n[t],t,n)!==!1;);return n}var sh=9007199254740991,ih=/^(?:0|[1-9]\d*)$/;function ia(n,e){var t=typeof n;return e=e??sh,!!e&&(t=="number"||t!="symbol"&&ih.test(n))&&n>-1&&n%1==0&&n<e}function ii(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 oh=Object.prototype,ah=oh.hasOwnProperty;function oa(n,e,t){var r=n[e];(!(ah.call(n,e)&&Tr(r,t))||t===void 0&&!(e in n))&&ii(n,e,t)}function lh(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?ii(t,c,i):oa(t,c,i)}return t}var aa=Math.max;function ch(n,e,t){return e=aa(e===void 0?n.length-1:e,0),function(){for(var r=arguments,s=-1,a=aa(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),Kd(n,this,c)}}function uh(n,e){return nh(ch(n,e,na),n+"")}var fh=9007199254740991;function la(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=fh}function os(n){return n!=null&&la(n.length)&&!ni(n)}function dh(n,e,t){if(!En(t))return!1;var r=typeof e;return(r=="number"?os(t)&&ia(e,t.length):r=="string"&&e in t)?Tr(t[e],n):!1}function hh(n){return uh(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&&dh(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 ph=Object.prototype;function oi(n){var e=n&&n.constructor,t=typeof e=="function"&&e.prototype||ph;return n===t}function gh(n,e){for(var t=-1,r=Array(n);++t<n;)r[t]=e(t);return r}var mh="[object Arguments]";function ca(n){return cn(n)&&Yn(n)==mh}var ua=Object.prototype,vh=ua.hasOwnProperty,yh=ua.propertyIsEnumerable,ai=ca(function(){return arguments}())?ca:function(n){return cn(n)&&vh.call(n,"callee")&&!yh.call(n,"callee")};function bh(){return!1}var fa=typeof Ye=="object"&&Ye&&!Ye.nodeType&&Ye,da=fa&&typeof module=="object"&&module&&!module.nodeType&&module,xh=da&&da.exports===fa,ha=xh?Qt.Buffer:void 0,Eh=ha?ha.isBuffer:void 0,Nr=Eh||bh,wh="[object Arguments]",Ah="[object Array]",Sh="[object Boolean]",Th="[object Date]",Nh="[object Error]",Oh="[object Function]",Ch="[object Map]",Rh="[object Number]",Ih="[object Object]",Lh="[object RegExp]",kh="[object Set]",Bh="[object String]",Ph="[object WeakMap]",Fh="[object ArrayBuffer]",Mh="[object DataView]",Dh="[object Float32Array]",Uh="[object Float64Array]",jh="[object Int8Array]",$h="[object Int16Array]",Vh="[object Int32Array]",_h="[object Uint8Array]",qh="[object Uint8ClampedArray]",zh="[object Uint16Array]",Hh="[object Uint32Array]",Je={};Je[Dh]=Je[Uh]=Je[jh]=Je[$h]=Je[Vh]=Je[_h]=Je[qh]=Je[zh]=Je[Hh]=!0,Je[wh]=Je[Ah]=Je[Fh]=Je[Sh]=Je[Mh]=Je[Th]=Je[Nh]=Je[Oh]=Je[Ch]=Je[Rh]=Je[Ih]=Je[Lh]=Je[kh]=Je[Bh]=Je[Ph]=!1;function Gh(n){return cn(n)&&la(n.length)&&!!Je[Yn(n)]}function li(n){return function(e){return n(e)}}var pa=typeof Ye=="object"&&Ye&&!Ye.nodeType&&Ye,Or=pa&&typeof module=="object"&&module&&!module.nodeType&&module,Wh=Or&&Or.exports===pa,ci=Wh&&Jo.process,Zn=function(){try{var n=Or&&Or.require&&Or.require("util").types;return n||ci&&ci.binding&&ci.binding("util")}catch{}}(),ga=Zn&&Zn.isTypedArray,ui=ga?li(ga):Gh,Kh=Object.prototype,Xh=Kh.hasOwnProperty;function ma(n,e){var t=kn(n),r=!t&&ai(n),s=!t&&!r&&Nr(n),a=!t&&!r&&!s&&ui(n),o=t||r||s||a,c=o?gh(n.length,String):[],i=c.length;for(var l in n)(e||Xh.call(n,l))&&!(o&&(l=="length"||s&&(l=="offset"||l=="parent")||a&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||ia(l,i)))&&c.push(l);return c}function va(n,e){return function(t){return n(e(t))}}var Yh=va(Object.keys,Object),Zh=Object.prototype,Qh=Zh.hasOwnProperty;function Jh(n){if(!oi(n))return Yh(n);var e=[];for(var t in Object(n))Qh.call(n,t)&&t!="constructor"&&e.push(t);return e}function ep(n){return os(n)?ma(n):Jh(n)}function tp(n){var e=[];if(n!=null)for(var t in Object(n))e.push(t);return e}var np=Object.prototype,rp=np.hasOwnProperty;function sp(n){if(!En(n))return tp(n);var e=oi(n),t=[];for(var r in n)r=="constructor"&&(e||!rp.call(n,r))||t.push(r);return t}function ya(n){return os(n)?ma(n,!0):sp(n)}var Cr=Pn(Object,"create");function ip(){this.__data__=Cr?Cr(null):{},this.size=0}function op(n){var e=this.has(n)&&delete this.__data__[n];return this.size-=e?1:0,e}var ap="__lodash_hash_undefined__",lp=Object.prototype,cp=lp.hasOwnProperty;function up(n){var e=this.__data__;if(Cr){var t=e[n];return t===ap?void 0:t}return cp.call(e,n)?e[n]:void 0}var fp=Object.prototype,dp=fp.hasOwnProperty;function hp(n){var e=this.__data__;return Cr?e[n]!==void 0:dp.call(e,n)}var pp="__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?pp:e,this}function Fn(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])}}Fn.prototype.clear=ip,Fn.prototype.delete=op,Fn.prototype.get=up,Fn.prototype.has=hp,Fn.prototype.set=gp;function mp(){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 vp=Array.prototype,yp=vp.splice;function bp(n){var e=this.__data__,t=as(e,n);if(t<0)return!1;var r=e.length-1;return t==r?e.pop():yp.call(e,t,1),--this.size,!0}function xp(n){var e=this.__data__,t=as(e,n);return t<0?void 0:e[t][1]}function Ep(n){return as(this.__data__,n)>-1}function wp(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=mp,un.prototype.delete=bp,un.prototype.get=xp,un.prototype.has=Ep,un.prototype.set=wp;var Rr=Pn(Qt,"Map");function Ap(){this.size=0,this.__data__={hash:new Fn,map:new(Rr||un),string:new Fn}}function Sp(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 Sp(e)?t[typeof e=="string"?"string":"hash"]:t.map}function Tp(n){var e=ls(this,n).delete(n);return this.size-=e?1:0,e}function Np(n){return ls(this,n).get(n)}function Op(n){return ls(this,n).has(n)}function Cp(n,e){var t=ls(this,n),r=t.size;return t.set(n,e),this.size+=t.size==r?0:1,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=Ap,Mn.prototype.delete=Tp,Mn.prototype.get=Np,Mn.prototype.has=Op,Mn.prototype.set=Cp;function Rp(n,e){for(var t=-1,r=e.length,s=n.length;++t<r;)n[s+t]=e[t];return n}var ba=va(Object.getPrototypeOf,Object),Ip="[object Object]",Lp=Function.prototype,kp=Object.prototype,xa=Lp.toString,Bp=kp.hasOwnProperty,Pp=xa.call(Object);function Fp(n){if(!cn(n)||Yn(n)!=Ip)return!1;var e=ba(n);if(e===null)return!0;var t=Bp.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&xa.call(t)==Pp}function Mp(){this.__data__=new un,this.size=0}function Dp(n){var e=this.__data__,t=e.delete(n);return this.size=e.size,t}function Up(n){return this.__data__.get(n)}function jp(n){return this.__data__.has(n)}var $p=200;function Vp(n,e){var t=this.__data__;if(t instanceof un){var r=t.__data__;if(!Rr||r.length<$p-1)return r.push([n,e]),this.size=++t.size,this;t=this.__data__=new Mn(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=Mp,Jt.prototype.delete=Dp,Jt.prototype.get=Up,Jt.prototype.has=jp,Jt.prototype.set=Vp;var Ea=typeof Ye=="object"&&Ye&&!Ye.nodeType&&Ye,wa=Ea&&typeof module=="object"&&module&&!module.nodeType&&module,_p=wa&&wa.exports===Ea,Aa=_p?Qt.Buffer:void 0,Sa=Aa?Aa.allocUnsafe:void 0;function Ta(n,e){if(e)return n.slice();var t=n.length,r=Sa?Sa(t):new n.constructor(t);return n.copy(r),r}function qp(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 zp(){return[]}var Hp=Object.prototype,Gp=Hp.propertyIsEnumerable,Na=Object.getOwnPropertySymbols,Wp=Na?function(n){return n==null?[]:(n=Object(n),qp(Na(n),function(e){return Gp.call(n,e)}))}:zp;function Kp(n,e,t){var r=e(n);return kn(n)?r:Rp(r,t(n))}function fi(n){return Kp(n,ep,Wp)}var di=Pn(Qt,"DataView"),hi=Pn(Qt,"Promise"),pi=Pn(Qt,"Set"),Oa="[object Map]",Xp="[object Object]",Ca="[object Promise]",Ra="[object Set]",Ia="[object WeakMap]",La="[object DataView]",Yp=Bn(di),Zp=Bn(Rr),Qp=Bn(hi),Jp=Bn(pi),eg=Bn(si),jt=Yn;(di&&jt(new di(new ArrayBuffer(1)))!=La||Rr&&jt(new Rr)!=Oa||hi&&jt(hi.resolve())!=Ca||pi&&jt(new pi)!=Ra||si&&jt(new si)!=Ia)&&(jt=function(n){var e=Yn(n),t=e==Xp?n.constructor:void 0,r=t?Bn(t):"";if(r)switch(r){case Yp:return La;case Zp:return Oa;case Qp:return Ca;case Jp:return Ra;case eg:return Ia}return e});var tg=Object.prototype,ng=tg.hasOwnProperty;function rg(n){var e=n.length,t=new n.constructor(e);return e&&typeof n[0]=="string"&&ng.call(n,"index")&&(t.index=n.index,t.input=n.input),t}var cs=Qt.Uint8Array;function gi(n){var e=new n.constructor(n.byteLength);return new cs(e).set(new cs(n)),e}function sg(n,e){var t=gi(n.buffer);return new n.constructor(t,n.byteOffset,n.byteLength)}var ig=/\w*$/;function og(n){var e=new n.constructor(n.source,ig.exec(n));return e.lastIndex=n.lastIndex,e}var ka=xn?xn.prototype:void 0,Ba=ka?ka.valueOf:void 0;function ag(n){return Ba?Object(Ba.call(n)):{}}function Pa(n,e){var t=e?gi(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.length)}var lg="[object Boolean]",cg="[object Date]",ug="[object Map]",fg="[object Number]",dg="[object RegExp]",hg="[object Set]",pg="[object String]",gg="[object Symbol]",mg="[object ArrayBuffer]",vg="[object DataView]",yg="[object Float32Array]",bg="[object Float64Array]",xg="[object Int8Array]",Eg="[object Int16Array]",wg="[object Int32Array]",Ag="[object Uint8Array]",Sg="[object Uint8ClampedArray]",Tg="[object Uint16Array]",Ng="[object Uint32Array]";function Og(n,e,t){var r=n.constructor;switch(e){case mg:return gi(n);case lg:case cg:return new r(+n);case vg:return sg(n);case yg:case bg:case xg:case Eg:case wg:case Ag:case Sg:case Tg:case Ng:return Pa(n,t);case ug:return new r;case fg:case pg:return new r(n);case dg:return og(n);case hg:return new r;case gg:return ag(n)}}function Fa(n){return typeof n.constructor=="function"&&!oi(n)?Wd(ba(n)):{}}var Cg="[object Map]";function Rg(n){return cn(n)&&jt(n)==Cg}var Ma=Zn&&Zn.isMap,Ig=Ma?li(Ma):Rg,Lg="[object Set]";function kg(n){return cn(n)&&jt(n)==Lg}var Da=Zn&&Zn.isSet,Bg=Da?li(Da):kg,Pg=1,Ua="[object Arguments]",Fg="[object Array]",Mg="[object Boolean]",Dg="[object Date]",Ug="[object Error]",ja="[object Function]",jg="[object GeneratorFunction]",$g="[object Map]",Vg="[object Number]",$a="[object Object]",_g="[object RegExp]",qg="[object Set]",zg="[object String]",Hg="[object Symbol]",Gg="[object WeakMap]",Wg="[object ArrayBuffer]",Kg="[object DataView]",Xg="[object Float32Array]",Yg="[object Float64Array]",Zg="[object Int8Array]",Qg="[object Int16Array]",Jg="[object Int32Array]",em="[object Uint8Array]",tm="[object Uint8ClampedArray]",nm="[object Uint16Array]",rm="[object Uint32Array]",Ze={};Ze[Ua]=Ze[Fg]=Ze[Wg]=Ze[Kg]=Ze[Mg]=Ze[Dg]=Ze[Xg]=Ze[Yg]=Ze[Zg]=Ze[Qg]=Ze[Jg]=Ze[$g]=Ze[Vg]=Ze[$a]=Ze[_g]=Ze[qg]=Ze[zg]=Ze[Hg]=Ze[em]=Ze[tm]=Ze[nm]=Ze[rm]=!0,Ze[Ug]=Ze[ja]=Ze[Gg]=!1;function us(n,e,t,r,s,a){var o,c=e&Pg;if(o!==void 0)return o;if(!En(n))return n;var i=kn(n);if(i)o=rg(n);else{var l=jt(n),u=l==ja||l==jg;if(Nr(n))return Ta(n,c);if(l==$a||l==Ua||u&&!s)o=u?{}:Fa(n);else{if(!Ze[l])return s?n:{};o=Og(n,l,c)}}a||(a=new Jt);var h=a.get(n);if(h)return h;a.set(n,o),Bg(n)?n.forEach(function(g){o.add(us(g,e,t,g,n,a))}):Ig(n)&&n.forEach(function(g,v){o.set(v,us(g,e,t,v,n,a))});var f=fi,m=i?void 0:f(n);return rh(m||n,function(g,v){m&&(v=g,g=n[v]),oa(o,v,us(g,e,t,v,n,a))}),o}var sm=1,im=4;function Qn(n){return us(n,sm|im)}var om="__lodash_hash_undefined__";function am(n){return this.__data__.set(n,om),this}function lm(n){return this.__data__.has(n)}function fs(n){var e=-1,t=n==null?0:n.length;for(this.__data__=new Mn;++e<t;)this.add(n[e])}fs.prototype.add=fs.prototype.push=am,fs.prototype.has=lm;function cm(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 um(n,e){return n.has(e)}var fm=1,dm=2;function Va(n,e,t,r,s,a){var o=t&fm,c=n.length,i=e.length;if(c!=i&&!(o&&i>c))return!1;var l=a.get(n),u=a.get(e);if(l&&u)return l==e&&u==n;var h=-1,f=!0,m=t&dm?new fs:void 0;for(a.set(n,e),a.set(e,n);++h<c;){var g=n[h],v=e[h];if(r)var x=o?r(v,g,h,e,n,a):r(g,v,h,n,e,a);if(x!==void 0){if(x)continue;f=!1;break}if(m){if(!cm(e,function(T,S){if(!um(m,S)&&(g===T||s(g,T,t,r,a)))return m.push(S)})){f=!1;break}}else if(!(g===v||s(g,v,t,r,a))){f=!1;break}}return a.delete(n),a.delete(e),f}function hm(n){var e=-1,t=Array(n.size);return n.forEach(function(r,s){t[++e]=[s,r]}),t}function pm(n){var e=-1,t=Array(n.size);return n.forEach(function(r){t[++e]=r}),t}var gm=1,mm=2,vm="[object Boolean]",ym="[object Date]",bm="[object Error]",xm="[object Map]",Em="[object Number]",wm="[object RegExp]",Am="[object Set]",Sm="[object String]",Tm="[object Symbol]",Nm="[object ArrayBuffer]",Om="[object DataView]",_a=xn?xn.prototype:void 0,mi=_a?_a.valueOf:void 0;function Cm(n,e,t,r,s,a,o){switch(t){case Om:if(n.byteLength!=e.byteLength||n.byteOffset!=e.byteOffset)return!1;n=n.buffer,e=e.buffer;case Nm:return!(n.byteLength!=e.byteLength||!a(new cs(n),new cs(e)));case vm:case ym:case Em:return Tr(+n,+e);case bm:return n.name==e.name&&n.message==e.message;case wm:case Sm:return n==e+"";case xm:var c=hm;case Am:var i=r&gm;if(c||(c=pm),n.size!=e.size&&!i)return!1;var l=o.get(n);if(l)return l==e;r|=mm,o.set(n,e);var u=Va(c(n),c(e),r,s,a,o);return o.delete(n),u;case Tm:if(mi)return mi.call(n)==mi.call(e)}return!1}var Rm=1,Im=Object.prototype,Lm=Im.hasOwnProperty;function km(n,e,t,r,s,a){var o=t&Rm,c=fi(n),i=c.length,l=fi(e),u=l.length;if(i!=u&&!o)return!1;for(var h=i;h--;){var f=c[h];if(!(o?f in e:Lm.call(e,f)))return!1}var m=a.get(n),g=a.get(e);if(m&&g)return m==e&&g==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 Bm=1,qa="[object Arguments]",za="[object Array]",ds="[object Object]",Pm=Object.prototype,Ha=Pm.hasOwnProperty;function Fm(n,e,t,r,s,a){var o=kn(n),c=kn(e),i=o?za:jt(n),l=c?za:jt(e);i=i==qa?ds:i,l=l==qa?ds:l;var u=i==ds,h=l==ds,f=i==l;if(f&&Nr(n)){if(!Nr(e))return!1;o=!0,u=!1}if(f&&!u)return a||(a=new Jt),o||ui(n)?Va(n,e,t,r,s,a):Cm(n,e,i,t,r,s,a);if(!(t&Bm)){var m=u&&Ha.call(n,"__wrapped__"),g=h&&Ha.call(e,"__wrapped__");if(m||g){var v=m?n.value():n,x=g?e.value():e;return a||(a=new Jt),s(v,x,t,r,a)}}return f?(a||(a=new Jt),km(n,e,t,r,s,a)):!1}function Ga(n,e,t,r,s){return n===e?!0:n==null||e==null||!cn(n)&&!cn(e)?n!==n&&e!==e:Fm(n,e,t,r,Ga,s)}function Mm(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 Dm=Mm();function vi(n,e,t){(t!==void 0&&!Tr(n[e],t)||t===void 0&&!(e in n))&&ii(n,e,t)}function Um(n){return cn(n)&&os(n)}function yi(n,e){if(!(e==="constructor"&&typeof n[e]=="function")&&e!="__proto__")return n[e]}function jm(n){return lh(n,ya(n))}function $m(n,e,t,r,s,a,o){var c=yi(n,t),i=yi(e,t),l=o.get(i);if(l){vi(n,t,l);return}var u=a?a(c,i,t+"",n,e,o):void 0,h=u===void 0;if(h){var f=kn(i),m=!f&&Nr(i),g=!f&&!m&&ui(i);u=i,f||m||g?kn(c)?u=c:Um(c)?u=Xd(c):m?(h=!1,u=Ta(i,!0)):g?(h=!1,u=Pa(i,!0)):u=[]:Fp(i)||ai(i)?(u=c,ai(c)?u=jm(c):(!En(c)||ni(c))&&(u=Fa(i))):h=!1}h&&(o.set(i,u),s(u,i,r,a,o),o.delete(i)),vi(n,t,u)}function Wa(n,e,t,r,s){n!==e&&Dm(e,function(a,o){if(s||(s=new Jt),En(a))$m(n,e,o,t,Wa,r,s);else{var c=r?r(yi(n,o),a,o+"",n,e,s):void 0;c===void 0&&(c=a),vi(n,o,c)}},ya)}function bi(n,e){return Ga(n,e)}var wn=hh(function(n,e,t){Wa(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 Ka=class ko{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 ko.blots.set(c.domNode,c),c}find(e,t=!1){return ko.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})}};Ka.blots=new WeakMap;let er=Ka;function Xa(n,e){return(n.getAttribute("class")||"").split(/\s+/).filter(t=>t.indexOf(`${e}-`)===0)}class Vm 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){Xa(e,this.keyName).forEach(t=>{e.classList.remove(t)}),e.classList.length===0&&e.removeAttribute("class")}value(e){const t=(Xa(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""}}const $t=Vm;function xi(n){const e=n.split("-"),t=e.slice(1).map(r=>r[0].toUpperCase()+r.slice(1)).join("");return e[0]+t}class _m 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[xi(this.keyName)]=t,!0):!1}remove(e){e.style[xi(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")}value(e){const t=e.style[xi(this.keyName)];return this.canAdd(e,t)?t:""}}const An=_m;class qm{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=An.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=qm,Ya=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}};Ya.blotName="abstract";let Za=Ya;const Qa=class extends Za{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}}};Qa.scope=Ne.INLINE_BLOT;const mt=Qa;class zm{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 Ja(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 el=class In extends Za{constructor(e,t){super(e,t),this.uiNode=null,this.build()}appendChild(e){this.insertBefore(e)}attach(){super.attach(),this.children.forEach(e=>{e.attach()})}attachUI(e){this.uiNode!=null&&this.uiNode.remove(),this.uiNode=e,In.uiClass&&this.uiNode.classList.add(In.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new zm,Array.from(this.domNode.childNodes).filter(e=>e!==this.uiNode).reverse().forEach(e=>{try{const t=Ja(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 In?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 In&&(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 In?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 In?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 In&&this.moveChildren(r),super.replaceWith(r)}split(e,t=!1){if(!t){if(e===0)return this;if(e===this.length())return this.next}const r=this.clone();return this.parent&&this.parent.insertBefore(r,this.next||void 0),this.children.forEachAt(e,this.length(),(s,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=Ja(a,this.scroll);(c.next!==o||c.next==null)&&(c.parent!=null&&c.parent.removeChild(this),this.insertBefore(c,o||void 0))}),this.enforceAllowedChildren()}};el.uiClass="";const Vt=el;function Hm(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 Ar extends Vt{static create(e){return super.create(e)}static formats(e,t){const r=t.query(Ar.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 Ar||(r=r.wrap(Ar.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 Ar&&r.prev===this&&Hm(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 Ar&&this.attributes.move(r),r}};tr.allowedChildren=[tr,mt],tr.blotName="inline",tr.scope=Ne.INLINE_BLOT,tr.tagName="SPAN";const Ei=tr,nr=class Bo extends Vt{static create(e){return super.create(e)}static formats(e,t){const r=t.query(Bo.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(Bo.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=[Ei,nr,mt];const Ir=nr,wi=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())}};wi.blotName="container",wi.scope=Ne.BLOCK_BLOT;const ps=wi;class Gm extends mt{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=Gm,Wm={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},Km=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,Wm),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>=Km)throw new Error("[Parchment] Maximum optimize iterations reached");for(c.forEach(l=>{const u=this.find(l.target,!0);u!=null&&(u.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(m=>{a(m,!1)})})):l.type==="attributes"&&a(u.prev)),a(u))}),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=Ir,rr.allowedChildren=[Ir,ps],rr.scope=Ne.BLOCK_BLOT,rr.tagName="DIV";const Ai=rr,Si=class Gc extends mt{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 Gc&&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}};Si.blotName="text",Si.scope=Ne.INLINE_BLOT;const gs=Si,Xm=Object.freeze(Object.defineProperty({__proto__:null,Attributor:en,AttributorStore:hs,BlockBlot:Ir,ClassAttributor:$t,ContainerBlot:ps,EmbedBlot:Rt,InlineBlot:Ei,LeafBlot:mt,ParentBlot:Vt,Registry:er,Scope:Ne,ScrollBlot:Ai,StyleAttributor:An,TextBlot:gs},Symbol.toStringTag,{value:"Module"}));var Sn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ti(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var ms={exports:{}},Ni,tl;function Ym(){if(tl)return Ni;tl=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=u(E,P);if(K){var q=K[0],J=K[1],te=K[2],ge=K[3],me=K[4],ve=r(q,te),xe=r(J,ge);return ve.concat([[t,me]],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 ge=O-_,me=ge%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,w;N===-ye||N!==ye&&q[R-1]<q[R+1]?w=q[R+1]:w=q[R-1]+1;for(var C=w-N;w<O&&C<_&&E.charAt(w)===P.charAt(C);)w++,C++;if(q[R]=w,w>O)xe+=2;else if(C>_)ve+=2;else if(me){var y=$+ge-N;if(y>=0&&y<K&&J[y]!==-1){var b=O-J[y];if(w>=b)return o(E,P,w,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(!me){var R=$+ge-L;if(R>=0&&R<K&&q[R]!==-1){var w=q[R],C=$+w-R;if(b=O-b,w>=b)return o(E,P,w,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 u(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="",w,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),w=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?[w,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,ge,me;E.length>P.length?(J=q[0],te=q[1],ge=q[2],me=q[3]):(ge=q[0],me=q[1],J=q[2],te=q[3]);var ve=q[4];return[J,te,ge,me,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 ge=E[$-1][1],me=E[$][1],ve=i(ge,me),xe=i(me,ge);ve>=xe?(ve>=ge.length/2||ve>=me.length/2)&&(E.splice($,0,[t,me.substring(0,ve)]),E[$-1][1]=ge.substring(0,ge.length-ve),E[$+1][1]=me.substring(ve),$++):(xe>=ge.length/2||xe>=me.length/2)&&(E.splice($,0,[t,ge.substring(0,xe)]),E[$-1][0]=e,E[$-1][1]=me.substring(0,me.length-xe),E[$+1][0]=n,E[$+1][1]=ge.substring(xe),$++),$++}$++}}var f=/[^a-zA-Z0-9]/,m=/\s/,g=/[\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),w=N&&Oe.match(m),C=R&&ye.match(m),y=w&&Oe.match(g),b=C&&ye.match(g),L=y&&xe.match(v),B=b&&he.match(x);return L||B?5:y||b?4:N&&!w&&C?3:w||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,ge=$,me=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>=me&&(me=ve,J=_,te=j,ge=$)}E[O-1][1]!=J&&(J?E[O-1][1]=J:(E.splice(O-1,1),O--),E[O][1]=te,ge?E[O+1][1]=ge:(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 ge=J-1;E[ge]&&E[ge][0]===e&&(j++,K=E[ge][1]+K,ge--),E[ge]&&E[ge][0]===n&&(_++,$=E[ge][1]+$,ge--),J=ge}}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 me=j+_;$.length===0&&K.length===0?(E.splice(O-me,me),O=O-me):$.length===0?(E.splice(O-me,me,[e,K]),O=O-me+1):K.length===0?(E.splice(O-me,me,[n,$]),O=O-me+1):(E.splice(O-me,me,[n,$],[e,K]),O=O-me+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),ge=j?j.index:null;e:{var me=q+K-$;if(ge!==null&&ge!==me||me<0||me>K)break e;var ve=P.slice(0,me),xe=P.slice(me);if(xe!==te)break e;var he=Math.min(q,me),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(ge!==null&&ge!==q)break e;var w=q,ve=P.slice(0,w),xe=P.slice(w);if(ve!==J)break e;var C=Math.min($-w,K-w),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,Ni=G,Ni}var Lr={exports:{}};Lr.exports;var nl;function rl(){return nl||(nl=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]",u="[object Function]",h="[object GeneratorFunction]",f="[object Map]",m="[object Number]",g="[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[m]=te[g]=te[x]=te[T]=te[S]=te[I]=te[P]=te[O]=te[_]=te[j]=!0,te[l]=te[u]=te[F]=!1;var ge=typeof Sn=="object"&&Sn&&Sn.Object===Object&&Sn,me=typeof self=="object"&&self&&self.Object===Object&&self,ve=ge||me||Function("return this")(),xe=e&&!e.nodeType&&e,he=xe&&!0&&n&&!n.nodeType&&n,Oe=he&&he.exports===xe;function ye(p,A){return p.set(A[0],A[1]),p}function N(p,A){return p.add(A),p}function R(p,A){for(var D=-1,ie=p?p.length:0;++D<ie&&A(p[D],D,p)!==!1;);return p}function w(p,A){for(var D=-1,ie=A.length,Fe=p.length;++D<ie;)p[Fe+D]=A[D];return p}function C(p,A,D,ie){for(var Fe=-1,Re=p?p.length:0;++Fe<Re;)D=A(D,p[Fe],Fe,p);return D}function y(p,A){for(var D=-1,ie=Array(p);++D<p;)ie[D]=A(D);return ie}function b(p,A){return p==null?void 0:p[A]}function L(p){var A=!1;if(p!=null&&typeof p.toString!="function")try{A=!!(p+"")}catch{}return A}function B(p){var A=-1,D=Array(p.size);return p.forEach(function(ie,Fe){D[++A]=[Fe,ie]}),D}function U(p,A){return function(D){return p(A(D))}}function V(p){var A=-1,D=Array(p.size);return p.forEach(function(ie){D[++A]=ie}),D}var W=Array.prototype,Z=Function.prototype,Y=Object.prototype,Q=ve["__core-js_shared__"],ne=function(){var p=/[^.]+$/.exec(Q&&Q.keys&&Q.keys.IE_PROTO||"");return p?"Symbol(src)_1."+p:""}(),oe=Z.toString,de=Y.hasOwnProperty,we=Y.toString,De=RegExp("^"+oe.call(de).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),ft=St(Ce),dt=St(Le),It=je?je.prototype:void 0,Ut=It?It.valueOf:void 0;function lt(p){var A=-1,D=p?p.length:0;for(this.clear();++A<D;){var ie=p[A];this.set(ie[0],ie[1])}}function Ot(){this.__data__=Ie?Ie(null):{}}function Xt(p){return this.has(p)&&delete this.__data__[p]}function zn(p){var A=this.__data__;if(Ie){var D=A[p];return D===r?void 0:D}return de.call(A,p)?A[p]:void 0}function gn(p){var A=this.__data__;return Ie?A[p]!==void 0:de.call(A,p)}function On(p,A){var D=this.__data__;return D[p]=Ie&&A===void 0?r:A,this}lt.prototype.clear=Ot,lt.prototype.delete=Xt,lt.prototype.get=zn,lt.prototype.has=gn,lt.prototype.set=On;function ot(p){var A=-1,D=p?p.length:0;for(this.clear();++A<D;){var ie=p[A];this.set(ie[0],ie[1])}}function dr(){this.__data__=[]}function hr(p){var A=this.__data__,D=Ue(A,p);if(D<0)return!1;var ie=A.length-1;return D==ie?A.pop():Dt.call(A,D,1),!0}function pr(p){var A=this.__data__,D=Ue(A,p);return D<0?void 0:A[D][1]}function gr(p){return Ue(this.__data__,p)>-1}function mr(p,A){var D=this.__data__,ie=Ue(D,p);return ie<0?D.push([p,A]):D[ie][1]=A,this}ot.prototype.clear=dr,ot.prototype.delete=hr,ot.prototype.get=pr,ot.prototype.has=gr,ot.prototype.set=mr;function ct(p){var A=-1,D=p?p.length:0;for(this.clear();++A<D;){var ie=p[A];this.set(ie[0],ie[1])}}function vr(){this.__data__={hash:new lt,map:new(pe||ot),string:new lt}}function yr(p){return Gn(this,p).delete(p)}function br(p){return Gn(this,p).get(p)}function xt(p){return Gn(this,p).has(p)}function xr(p,A){return Gn(this,p).set(p,A),this}ct.prototype.clear=vr,ct.prototype.delete=yr,ct.prototype.get=br,ct.prototype.has=xt,ct.prototype.set=xr;function pt(p){this.__data__=new ot(p)}function k(){this.__data__=new ot}function ae(p){return this.__data__.delete(p)}function se(p){return this.__data__.get(p)}function ce(p){return this.__data__.has(p)}function fe(p,A){var D=this.__data__;if(D instanceof ot){var ie=D.__data__;if(!pe||ie.length<t-1)return ie.push([p,A]),this;D=this.__data__=new ct(ie)}return D.set(p,A),this}pt.prototype.clear=k,pt.prototype.delete=ae,pt.prototype.get=se,pt.prototype.has=ce,pt.prototype.set=fe;function ke(p,A){var D=Zr(p)||Er(p)?y(p.length,String):[],ie=D.length,Fe=!!ie;for(var Re in p)de.call(p,Re)&&!(Fe&&(Re=="length"||No(Re,ie)))&&D.push(Re);return D}function Ae(p,A,D){var ie=p[A];(!(de.call(p,A)&&Gs(ie,D))||D===void 0&&!(A in p))&&(p[A]=D)}function Ue(p,A){for(var D=p.length;D--;)if(Gs(p[D][0],A))return D;return-1}function qe(p,A){return p&&Yr(A,Jr(A),p)}function Qe(p,A,D,ie,Fe,Re,He){var ze;if(ie&&(ze=Re?ie(p,Fe,Re,He):ie(p)),ze!==void 0)return ze;if(!an(p))return p;var at=Zr(p);if(at){if(ze=So(p),!A)return Eo(p,ze)}else{var Xe=yn(p),wt=Xe==u||Xe==h;if(Ws(p))return mn(p,A);if(Xe==g||Xe==a||wt&&!Re){if(L(p))return Re?p:{};if(ze=on(wt?{}:p),!A)return wo(p,qe(ze,p))}else{if(!te[Xe])return Re?p:{};ze=To(p,Xe,Qe,A)}}He||(He=new pt);var Ct=He.get(p);if(Ct)return Ct;if(He.set(p,ze),!at)var ut=D?Ao(p):Jr(p);return R(ut||p,function(At,gt){ut&&(gt=At,At=p[gt]),Ae(ze,gt,Qe(At,A,D,ie,gt,p,He))}),ze}function Et(p){return an(p)?rt(p):{}}function ue(p,A,D){var ie=A(p);return Zr(p)?ie:w(ie,D(p))}function st(p){return we.call(p)}function Lt(p){if(!an(p)||Co(p))return!1;var A=Qr(p)||L(p)?De:q;return A.test(St(p))}function Hn(p){if(!zs(p))return Pe(p);var A=[];for(var D in Object(p))de.call(p,D)&&D!="constructor"&&A.push(D);return A}function mn(p,A){if(A)return p.slice();var D=new p.constructor(p.length);return p.copy(D),D}function Cn(p){var A=new p.constructor(p.byteLength);return new Be(A).set(new Be(p)),A}function Yt(p,A){var D=A?Cn(p.buffer):p.buffer;return new p.constructor(D,p.byteOffset,p.byteLength)}function _s(p,A,D){var ie=A?D(B(p),!0):B(p);return C(ie,ye,new p.constructor)}function qs(p){var A=new p.constructor(p.source,K.exec(p));return A.lastIndex=p.lastIndex,A}function yo(p,A,D){var ie=A?D(V(p),!0):V(p);return C(ie,N,new p.constructor)}function bo(p){return Ut?Object(Ut.call(p)):{}}function xo(p,A){var D=A?Cn(p.buffer):p.buffer;return new p.constructor(D,p.byteOffset,p.length)}function Eo(p,A){var D=-1,ie=p.length;for(A||(A=Array(ie));++D<ie;)A[D]=p[D];return A}function Yr(p,A,D,ie){D||(D={});for(var Fe=-1,Re=A.length;++Fe<Re;){var He=A[Fe],ze=void 0;Ae(D,He,ze===void 0?p[He]:ze)}return D}function wo(p,A){return Yr(p,vn(p),A)}function Ao(p){return ue(p,Jr,vn)}function Gn(p,A){var D=p.__data__;return Oo(A)?D[typeof A=="string"?"string":"hash"]:D.map}function Zt(p,A){var D=b(p,A);return Lt(D)?D:void 0}var vn=bt?U(bt,Object):Io,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(p){var A=we.call(p),D=A==g?p.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 ft:return T;case dt:return F}return A});function So(p){var A=p.length,D=p.constructor(A);return A&&typeof p[0]=="string"&&de.call(p,"index")&&(D.index=p.index,D.input=p.input),D}function on(p){return typeof p.constructor=="function"&&!zs(p)?Et($e(p)):{}}function To(p,A,D,ie){var Fe=p.constructor;switch(A){case M:return Cn(p);case c:case i:return new Fe(+p);case z:return Yt(p,ie);case X:case H:case re:case G:case E:case P:case O:case _:case j:return xo(p,ie);case f:return _s(p,ie,D);case m:case S:return new Fe(p);case x:return qs(p);case T:return yo(p,ie,D);case I:return bo(p)}}function No(p,A){return A=A??s,!!A&&(typeof p=="number"||J.test(p))&&p>-1&&p%1==0&&p<A}function Oo(p){var A=typeof p;return A=="string"||A=="number"||A=="symbol"||A=="boolean"?p!=="__proto__":p===null}function Co(p){return!!ne&&ne in p}function zs(p){var A=p&&p.constructor,D=typeof A=="function"&&A.prototype||Y;return p===D}function St(p){if(p!=null){try{return oe.call(p)}catch{}try{return p+""}catch{}}return""}function Hs(p){return Qe(p,!0,!0)}function Gs(p,A){return p===A||p!==p&&A!==A}function Er(p){return Ro(p)&&de.call(p,"callee")&&(!it.call(p,"callee")||we.call(p)==a)}var Zr=Array.isArray;function wr(p){return p!=null&&Ks(p.length)&&!Qr(p)}function Ro(p){return Xs(p)&&wr(p)}var Ws=_e||Lo;function Qr(p){var A=an(p)?we.call(p):"";return A==u||A==h}function Ks(p){return typeof p=="number"&&p>-1&&p%1==0&&p<=s}function an(p){var A=typeof p;return!!p&&(A=="object"||A=="function")}function Xs(p){return!!p&&typeof p=="object"}function Jr(p){return wr(p)?ke(p):Hn(p)}function Io(){return[]}function Lo(){return!1}n.exports=Hs}(Lr,Lr.exports)),Lr.exports}var kr={exports:{}};kr.exports;var sl;function il(){return sl||(sl=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]",u="[object Boolean]",h="[object Date]",f="[object Error]",m="[object Function]",g="[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]",ge="[object Uint32Array]",me=/[\\^$.*+?()[\]{}|]/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[ge]=!0,he[c]=he[i]=he[E]=he[u]=he[P]=he[h]=he[f]=he[m]=he[v]=he[x]=he[S]=he[M]=he[z]=he[X]=he[G]=!1;var Oe=typeof Sn=="object"&&Sn&&Sn.Object===Object&&Sn,ye=typeof self=="object"&&self&&self.Object===Object&&self,N=Oe||ye||Function("return this")(),R=e&&!e.nodeType&&e,w=R&&!0&&n&&!n.nodeType&&n,C=w&&w.exports===R,y=C&&Oe.process,b=function(){try{return y&&y.binding&&y.binding("util")}catch{}}(),L=b&&b.isTypedArray;function B(p,A){for(var D=-1,ie=p==null?0:p.length,Fe=0,Re=[];++D<ie;){var He=p[D];A(He,D,p)&&(Re[Fe++]=He)}return Re}function U(p,A){for(var D=-1,ie=A.length,Fe=p.length;++D<ie;)p[Fe+D]=A[D];return p}function V(p,A){for(var D=-1,ie=p==null?0:p.length;++D<ie;)if(A(p[D],D,p))return!0;return!1}function W(p,A){for(var D=-1,ie=Array(p);++D<p;)ie[D]=A(D);return ie}function Z(p){return function(A){return p(A)}}function Y(p,A){return p.has(A)}function Q(p,A){return p==null?void 0:p[A]}function ne(p){var A=-1,D=Array(p.size);return p.forEach(function(ie,Fe){D[++A]=[Fe,ie]}),D}function oe(p,A){return function(D){return p(A(D))}}function de(p){var A=-1,D=Array(p.size);return p.forEach(function(ie){D[++A]=ie}),D}var we=Array.prototype,De=Function.prototype,Ge=Object.prototype,je=N["__core-js_shared__"],Be=De.toString,$e=Ge.hasOwnProperty,rt=function(){var p=/[^.]+$/.exec(je&&je.keys&&je.keys.IE_PROTO||"");return p?"Symbol(src)_1."+p:""}(),it=Ge.toString,Dt=RegExp("^"+Be.call($e).replace(me,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),bt=C?N.Buffer:void 0,_e=N.Symbol,Pe=N.Uint8Array,We=Ge.propertyIsEnumerable,pe=we.splice,be=_e?_e.toStringTag:void 0,Ce=Object.getOwnPropertySymbols,Le=bt?bt.isBuffer:void 0,Ie=oe(Object.keys,Object),Ve=vn(N,"DataView"),Ke=vn(N,"Map"),et=vn(N,"Promise"),ft=vn(N,"Set"),dt=vn(N,"WeakMap"),It=vn(Object,"create"),Ut=St(Ve),lt=St(Ke),Ot=St(et),Xt=St(ft),zn=St(dt),gn=_e?_e.prototype:void 0,On=gn?gn.valueOf:void 0;function ot(p){var A=-1,D=p==null?0:p.length;for(this.clear();++A<D;){var ie=p[A];this.set(ie[0],ie[1])}}function dr(){this.__data__=It?It(null):{},this.size=0}function hr(p){var A=this.has(p)&&delete this.__data__[p];return this.size-=A?1:0,A}function pr(p){var A=this.__data__;if(It){var D=A[p];return D===r?void 0:D}return $e.call(A,p)?A[p]:void 0}function gr(p){var A=this.__data__;return It?A[p]!==void 0:$e.call(A,p)}function mr(p,A){var D=this.__data__;return this.size+=this.has(p)?0:1,D[p]=It&&A===void 0?r:A,this}ot.prototype.clear=dr,ot.prototype.delete=hr,ot.prototype.get=pr,ot.prototype.has=gr,ot.prototype.set=mr;function ct(p){var A=-1,D=p==null?0:p.length;for(this.clear();++A<D;){var ie=p[A];this.set(ie[0],ie[1])}}function vr(){this.__data__=[],this.size=0}function yr(p){var A=this.__data__,D=mn(A,p);if(D<0)return!1;var ie=A.length-1;return D==ie?A.pop():pe.call(A,D,1),--this.size,!0}function br(p){var A=this.__data__,D=mn(A,p);return D<0?void 0:A[D][1]}function xt(p){return mn(this.__data__,p)>-1}function xr(p,A){var D=this.__data__,ie=mn(D,p);return ie<0?(++this.size,D.push([p,A])):D[ie][1]=A,this}ct.prototype.clear=vr,ct.prototype.delete=yr,ct.prototype.get=br,ct.prototype.has=xt,ct.prototype.set=xr;function pt(p){var A=-1,D=p==null?0:p.length;for(this.clear();++A<D;){var ie=p[A];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(p){var A=Zt(this,p).delete(p);return this.size-=A?1:0,A}function se(p){return Zt(this,p).get(p)}function ce(p){return Zt(this,p).has(p)}function fe(p,A){var D=Zt(this,p),ie=D.size;return D.set(p,A),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=fe;function ke(p){var A=-1,D=p==null?0:p.length;for(this.__data__=new pt;++A<D;)this.add(p[A])}function Ae(p){return this.__data__.set(p,r),this}function Ue(p){return this.__data__.has(p)}ke.prototype.add=ke.prototype.push=Ae,ke.prototype.has=Ue;function qe(p){var A=this.__data__=new ct(p);this.size=A.size}function Qe(){this.__data__=new ct,this.size=0}function Et(p){var A=this.__data__,D=A.delete(p);return this.size=A.size,D}function ue(p){return this.__data__.get(p)}function st(p){return this.__data__.has(p)}function Lt(p,A){var D=this.__data__;if(D instanceof ct){var ie=D.__data__;if(!Ke||ie.length<t-1)return ie.push([p,A]),this.size=++D.size,this;D=this.__data__=new pt(ie)}return D.set(p,A),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 Hn(p,A){var D=Er(p),ie=!D&&Gs(p),Fe=!D&&!ie&&wr(p),Re=!D&&!ie&&!Fe&&Xs(p),He=D||ie||Fe||Re,ze=He?W(p.length,String):[],at=ze.length;for(var Xe in p)$e.call(p,Xe)&&!(He&&(Xe=="length"||Fe&&(Xe=="offset"||Xe=="parent")||Re&&(Xe=="buffer"||Xe=="byteLength"||Xe=="byteOffset")||To(Xe,at)))&&ze.push(Xe);return ze}function mn(p,A){for(var D=p.length;D--;)if(Hs(p[D][0],A))return D;return-1}function Cn(p,A,D){var ie=A(p);return Er(p)?ie:U(ie,D(p))}function Yt(p){return p==null?p===void 0?re:T:be&&be in Object(p)?yn(p):zs(p)}function _s(p){return an(p)&&Yt(p)==c}function qs(p,A,D,ie,Fe){return p===A?!0:p==null||A==null||!an(p)&&!an(A)?p!==p&&A!==A:yo(p,A,D,ie,qs,Fe)}function yo(p,A,D,ie,Fe,Re){var He=Er(p),ze=Er(A),at=He?i:on(p),Xe=ze?i:on(A);at=at==c?S:at,Xe=Xe==c?S:Xe;var wt=at==S,Ct=Xe==S,ut=at==Xe;if(ut&&wr(p)){if(!wr(A))return!1;He=!0,wt=!1}if(ut&&!wt)return Re||(Re=new qe),He||Xs(p)?Yr(p,A,D,ie,Fe,Re):wo(p,A,at,D,ie,Fe,Re);if(!(D&s)){var At=wt&&$e.call(p,"__wrapped__"),gt=Ct&&$e.call(A,"__wrapped__");if(At||gt){var Rn=At?p.value():p,bn=gt?A.value():A;return Re||(Re=new qe),Fe(Rn,bn,D,ie,Re)}}return ut?(Re||(Re=new qe),Ao(p,A,D,ie,Fe,Re)):!1}function bo(p){if(!Ks(p)||Oo(p))return!1;var A=Ws(p)?Dt:ve;return A.test(St(p))}function xo(p){return an(p)&&Qr(p.length)&&!!he[Yt(p)]}function Eo(p){if(!Co(p))return Ie(p);var A=[];for(var D in Object(p))$e.call(p,D)&&D!="constructor"&&A.push(D);return A}function Yr(p,A,D,ie,Fe,Re){var He=D&s,ze=p.length,at=A.length;if(ze!=at&&!(He&&at>ze))return!1;var Xe=Re.get(p);if(Xe&&Re.get(A))return Xe==A;var wt=-1,Ct=!0,ut=D&a?new ke:void 0;for(Re.set(p,A),Re.set(A,p);++wt<ze;){var At=p[wt],gt=A[wt];if(ie)var Rn=He?ie(gt,At,wt,A,p,Re):ie(At,gt,wt,p,A,Re);if(Rn!==void 0){if(Rn)continue;Ct=!1;break}if(ut){if(!V(A,function(bn,Wn){if(!Y(ut,Wn)&&(At===bn||Fe(At,bn,D,ie,Re)))return ut.push(Wn)})){Ct=!1;break}}else if(!(At===gt||Fe(At,gt,D,ie,Re))){Ct=!1;break}}return Re.delete(p),Re.delete(A),Ct}function wo(p,A,D,ie,Fe,Re,He){switch(D){case P:if(p.byteLength!=A.byteLength||p.byteOffset!=A.byteOffset)return!1;p=p.buffer,A=A.buffer;case E:return!(p.byteLength!=A.byteLength||!Re(new Pe(p),new Pe(A)));case u:case h:case x:return Hs(+p,+A);case f:return p.name==A.name&&p.message==A.message;case M:case X:return p==A+"";case v:var ze=ne;case z:var at=ie&s;if(ze||(ze=de),p.size!=A.size&&!at)return!1;var Xe=He.get(p);if(Xe)return Xe==A;ie|=a,He.set(p,A);var wt=Yr(ze(p),ze(A),ie,Fe,Re,He);return He.delete(p),wt;case H:if(On)return On.call(p)==On.call(A)}return!1}function Ao(p,A,D,ie,Fe,Re){var He=D&s,ze=Gn(p),at=ze.length,Xe=Gn(A),wt=Xe.length;if(at!=wt&&!He)return!1;for(var Ct=at;Ct--;){var ut=ze[Ct];if(!(He?ut in A:$e.call(A,ut)))return!1}var At=Re.get(p);if(At&&Re.get(A))return At==A;var gt=!0;Re.set(p,A),Re.set(A,p);for(var Rn=He;++Ct<at;){ut=ze[Ct];var bn=p[ut],Wn=A[ut];if(ie)var Hc=He?ie(Wn,bn,ut,A,p,Re):ie(bn,Wn,ut,p,A,Re);if(!(Hc===void 0?bn===Wn||Fe(bn,Wn,D,ie,Re):Hc)){gt=!1;break}Rn||(Rn=ut=="constructor")}if(gt&&!Rn){var Ys=p.constructor,Zs=A.constructor;Ys!=Zs&&"constructor"in p&&"constructor"in A&&!(typeof Ys=="function"&&Ys instanceof Ys&&typeof Zs=="function"&&Zs instanceof Zs)&&(gt=!1)}return Re.delete(p),Re.delete(A),gt}function Gn(p){return Cn(p,Jr,So)}function Zt(p,A){var D=p.__data__;return No(A)?D[typeof A=="string"?"string":"hash"]:D.map}function vn(p,A){var D=Q(p,A);return bo(D)?D:void 0}function yn(p){var A=$e.call(p,be),D=p[be];try{p[be]=void 0;var ie=!0}catch{}var Fe=it.call(p);return ie&&(A?p[be]=D:delete p[be]),Fe}var So=Ce?function(p){return p==null?[]:(p=Object(p),B(Ce(p),function(A){return We.call(p,A)}))}:Io,on=Yt;(Ve&&on(new Ve(new ArrayBuffer(1)))!=P||Ke&&on(new Ke)!=v||et&&on(et.resolve())!=I||ft&&on(new ft)!=z||dt&&on(new dt)!=G)&&(on=function(p){var A=Yt(p),D=A==S?p.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 zn:return G}return A});function To(p,A){return A=A??o,!!A&&(typeof p=="number"||xe.test(p))&&p>-1&&p%1==0&&p<A}function No(p){var A=typeof p;return A=="string"||A=="number"||A=="symbol"||A=="boolean"?p!=="__proto__":p===null}function Oo(p){return!!rt&&rt in p}function Co(p){var A=p&&p.constructor,D=typeof A=="function"&&A.prototype||Ge;return p===D}function zs(p){return it.call(p)}function St(p){if(p!=null){try{return Be.call(p)}catch{}try{return p+""}catch{}}return""}function Hs(p,A){return p===A||p!==p&&A!==A}var Gs=_s(function(){return arguments}())?_s:function(p){return an(p)&&$e.call(p,"callee")&&!We.call(p,"callee")},Er=Array.isArray;function Zr(p){return p!=null&&Qr(p.length)&&!Ws(p)}var wr=Le||Lo;function Ro(p,A){return qs(p,A)}function Ws(p){if(!Ks(p))return!1;var A=Yt(p);return A==m||A==g||A==l||A==F}function Qr(p){return typeof p=="number"&&p>-1&&p%1==0&&p<=o}function Ks(p){var A=typeof p;return p!=null&&(A=="object"||A=="function")}function an(p){return p!=null&&typeof p=="object"}var Xs=L?Z(L):xo;function Jr(p){return Zr(p)?Hn(p):Eo(p)}function Io(){return[]}function Lo(){return!1}n.exports=Ro}(kr,kr.exports)),kr.exports}var vs={},ol;function Zm(){if(ol)return vs;ol=1,Object.defineProperty(vs,"__esModule",{value:!0});const n=rl(),e=il();var t;return function(r){function s(i={},l={},u=!1){typeof i!="object"&&(i={}),typeof l!="object"&&(l={});let h=n(l);u||(h=Object.keys(h).reduce((f,m)=>(h[m]!=null&&(f[m]=h[m]),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 u=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(u).length>0?u:void 0}r.diff=a;function o(i={},l={}){i=i||{};const u=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),u)}r.invert=o;function c(i,l,u=!1){if(typeof i!="object")return l;if(typeof l!="object")return;if(!u)return l;const h=Object.keys(l).reduce((f,m)=>(i[m]===void 0&&(f[m]=l[m]),f),{});return Object.keys(h).length>0?h:void 0}r.transform=c}(t||(t={})),vs.default=t,vs}var ys={},al;function ll(){if(al)return ys;al=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={},cl;function Qm(){if(cl)return bs;cl=1,Object.defineProperty(bs,"__esModule",{value:!0});const n=ll();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 ul;function Jm(){return ul||(ul=1,function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.AttributeMap=e.OpIterator=e.Op=void 0;const t=Ym(),r=rl(),s=il(),a=Zm();e.AttributeMap=a.default;const o=ll();e.Op=o.default;const c=Qm();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 m=Object.keys(h)[0];if(!m||m!==Object.keys(f)[0])throw new Error(`embed types not matched: ${m} != ${Object.keys(f)[0]}`);return[m,h[m],f[m]]};class u{constructor(f){Array.isArray(f)?this.ops=f:f!=null&&Array.isArray(f.ops)?this.ops=f.ops:this.ops=[]}static registerEmbed(f,m){this.handlers[f]=m}static unregisterEmbed(f){delete this.handlers[f]}static getHandler(f){const m=this.handlers[f];if(!m)throw new Error(`no handlers for embed type "${f}"`);return m}insert(f,m){const g={};return typeof f=="string"&&f.length===0?this:(g.insert=f,m!=null&&typeof m=="object"&&Object.keys(m).length>0&&(g.attributes=m),this.push(g))}delete(f){return f<=0?this:this.push({delete:f})}retain(f,m){if(typeof f=="number"&&f<=0)return this;const g={retain:f};return m!=null&&typeof m=="object"&&Object.keys(m).length>0&&(g.attributes=m),this.push(g)}push(f){let m=this.ops.length,g=this.ops[m-1];if(f=r(f),typeof g=="object"){if(typeof f.delete=="number"&&typeof g.delete=="number")return this.ops[m-1]={delete:g.delete+f.delete},this;if(typeof g.delete=="number"&&f.insert!=null&&(m-=1,g=this.ops[m-1],typeof g!="object"))return this.ops.unshift(f),this;if(s(f.attributes,g.attributes)){if(typeof f.insert=="string"&&typeof g.insert=="string")return this.ops[m-1]={insert:g.insert+f.insert},typeof f.attributes=="object"&&(this.ops[m-1].attributes=f.attributes),this;if(typeof f.retain=="number"&&typeof g.retain=="number")return this.ops[m-1]={retain:g.retain+f.retain},typeof f.attributes=="object"&&(this.ops[m-1].attributes=f.attributes),this}}return m===this.ops.length?this.ops.push(f):this.ops.splice(m,0,f),this}chop(){const f=this.ops[this.ops.length-1];return f&&typeof f.retain=="number"&&!f.attributes&&this.ops.pop(),this}filter(f){return this.ops.filter(f)}forEach(f){this.ops.forEach(f)}map(f){return this.ops.map(f)}partition(f){const m=[],g=[];return this.forEach(v=>{(f(v)?m:g).push(v)}),[m,g]}reduce(f,m){return this.ops.reduce(f,m)}changeLength(){return this.reduce((f,m)=>m.insert?f+o.default.length(m):m.delete?f-m.delete:f,0)}length(){return this.reduce((f,m)=>f+o.default.length(m),0)}slice(f=0,m=1/0){const g=[],v=new c.default(this.ops);let x=0;for(;x<m&&v.hasNext();){let T;x<f?T=v.next(f-x):(T=v.next(m-x),g.push(T)),x+=o.default.length(T)}return new u(g)}compose(f){const m=new c.default(this.ops),g=new c.default(f.ops),v=[],x=g.peek();if(x!=null&&typeof x.retain=="number"&&x.attributes==null){let S=x.retain;for(;m.peekType()==="insert"&&m.peekLength()<=S;)S-=m.peekLength(),v.push(m.next());x.retain-S>0&&g.next(x.retain-S)}const T=new u(v);for(;m.hasNext()||g.hasNext();)if(g.peekType()==="insert")T.push(g.next());else if(m.peekType()==="delete")T.push(m.next());else{const S=Math.min(m.peekLength(),g.peekLength()),I=m.next(S),F=g.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=u.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),!g.hasNext()&&s(T.ops[T.ops.length-1],M)){const X=new u(m.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 m=new u(this.ops.slice());return f.ops.length>0&&(m.push(f.ops[0]),m.ops=m.ops.concat(f.ops.slice(1))),m}diff(f,m){if(this.ops===f.ops)return new u;const g=[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 u,x=t(g[0],g[1],m,!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,m=`
|
|
6
|
+
`){const g=new c.default(this.ops);let v=new u,x=0;for(;g.hasNext();){if(g.peekType()!=="insert")return;const T=g.peek(),S=o.default.length(T)-g.peekLength(),I=typeof T.insert=="string"?T.insert.indexOf(m,S)-S:-1;if(I<0)v.push(g.next());else if(I>0)v.push(g.next(I));else{if(f(v,g.next(1).attributes||{},x)===!1)return;x+=1,v=new u}}v.length()>0&&f(v,{},x)}invert(f){const m=new u;return this.reduce((g,v)=>{if(v.insert)m.delete(o.default.length(v));else{if(typeof v.retain=="number"&&v.attributes==null)return m.retain(v.retain),g+v.retain;if(v.delete||typeof v.retain=="number"){const x=v.delete||v.retain;return f.slice(g,g+x).forEach(S=>{v.delete?m.push(S):v.retain&&v.attributes&&m.retain(o.default.length(S),a.default.invert(v.attributes,S.attributes))}),g+x}else if(typeof v.retain=="object"&&v.retain!==null){const x=f.slice(g,g+1),T=new c.default(x.ops).next(),[S,I,F]=l(v.retain,T.insert),M=u.getHandler(S);return m.retain({[S]:M.invert(I,F)},a.default.invert(v.attributes,T.attributes)),g+1}}return g},0),m.chop()}transform(f,m=!1){if(m=!!m,typeof f=="number")return this.transformPosition(f,m);const g=f,v=new c.default(this.ops),x=new c.default(g.ops),T=new u;for(;v.hasNext()||x.hasNext();)if(v.peekType()==="insert"&&(m||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=u.getHandler(H);re&&(X={[H]:re.transform(M[H],z[H],m)})}}T.retain(X,a.default.transform(I.attributes,F.attributes,m))}}return T.chop()}transformPosition(f,m=!1){m=!!m;const g=new c.default(this.ops);let v=0;for(;g.hasNext()&&v<=f;){const x=g.peekLength(),T=g.peekType();if(g.next(),T==="delete"){f-=Math.min(x,f-v);continue}else T==="insert"&&(v<f||!m)&&(f+=x);v+=x}return f}}u.Op=o.default,u.OpIterator=c.default,u.AttributeMap=a.default,u.handlers={},e.default=u,n.exports=u,n.exports.default=u}(ms,ms.exports)),ms.exports}var kt=Jm();const Te=Ti(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 gs{};const ev={"&":"&","<":"<",">":">",'"':""","'":"'"};function xs(n){return n.replace(/[&<>"']/g,e=>ev[e])}const sn=class sn extends Ei{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 fl=1;class ht extends Ir{constructor(){super(...arguments);Ee(this,"cache",{})}delta(){return this.cache.delta==null&&(this.cache.delta=dl(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
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()+fl),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()-fl)){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
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 dl(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return n.descendants(mt).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,m)=>t&&f===t.domNode?m:f===o?r+m-1:s&&f===s.domNode?r+c.length+m:null,u=l(e.start.node,e.start.offset),d=l(e.end.node,e.end.offset);if(u!==null&&d!==null)return{startNode:i.domNode,startOffset:u,endNode:i.domNode,endOffset:d}}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 Ci={exports:{}},hl;function Jm(){return hl||(hl=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,u){this.fn=i,this.context=l,this.once=u||!1}function a(i,l,u,d,f){if(typeof u!="function")throw new TypeError("The listener must be a function");var m=new s(u,d||i,f),g=t?t+l:l;return i._events[g]?i._events[g].fn?i._events[g]=[i._events[g],m]:i._events[g].push(m):(i._events[g]=m,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=[],u,d;if(this._eventsCount===0)return l;for(d in u=this._events)e.call(u,d)&&l.push(t?d.slice(1):d);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(u)):l},c.prototype.listeners=function(l){var u=t?t+l:l,d=this._events[u];if(!d)return[];if(d.fn)return[d.fn];for(var f=0,m=d.length,g=new Array(m);f<m;f++)g[f]=d[f].fn;return g},c.prototype.listenerCount=function(l){var u=t?t+l:l,d=this._events[u];return d?d.fn?1:d.length:0},c.prototype.emit=function(l,u,d,f,m,g){var v=t?t+l:l;if(!this._events[v])return!1;var x=this._events[v],T=arguments.length,S,R;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,u),!0;case 3:return x.fn.call(x.context,u,d),!0;case 4:return x.fn.call(x.context,u,d,f),!0;case 5:return x.fn.call(x.context,u,d,f,m),!0;case 6:return x.fn.call(x.context,u,d,f,m,g),!0}for(R=1,S=new Array(T-1);R<T;R++)S[R-1]=arguments[R];x.fn.apply(x.context,S)}else{var F=x.length,M;for(R=0;R<F;R++)switch(x[R].once&&this.removeListener(l,x[R].fn,void 0,!0),T){case 1:x[R].fn.call(x[R].context);break;case 2:x[R].fn.call(x[R].context,u);break;case 3:x[R].fn.call(x[R].context,u,d);break;case 4:x[R].fn.call(x[R].context,u,d,f);break;default:if(!S)for(M=1,S=new Array(T-1);M<T;M++)S[M-1]=arguments[M];x[R].fn.apply(x[R].context,S)}}return!0},c.prototype.on=function(l,u,d){return a(this,l,u,d,!1)},c.prototype.once=function(l,u,d){return a(this,l,u,d,!0)},c.prototype.removeListener=function(l,u,d,f){var m=t?t+l:l;if(!this._events[m])return this;if(!u)return o(this,m),this;var g=this._events[m];if(g.fn)g.fn===u&&(!f||g.once)&&(!d||g.context===d)&&o(this,m);else{for(var v=0,x=[],T=g.length;v<T;v++)(g[v].fn!==u||f&&!g[v].once||d&&g[v].context!==d)&&x.push(g[v]);x.length?this._events[m]=x.length===1?x[0]:x:o(this,m)}return this},c.prototype.removeAllListeners=function(l){var u;return l?(u=t?t+l:l,this._events[u]&&o(this,u)):(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}(Ci)),Ci.exports}var ev=Jm();const tv=Ni(ev),Ri=new WeakMap,Ii=["error","warn","log","info"];let Li="warn";function pl(n){if(Li&&Ii.indexOf(n)<=Ii.indexOf(Li)){for(var e=arguments.length,t=new Array(e>1?e-1:0),r=1;r<e;r++)t[r-1]=arguments[r];console[n](...t)}}function fn(n){return Ii.reduce((e,t)=>(e[t]=pl.bind(console,t,n),e),{})}fn.level=n=>{Li=n},pl.level=fn.level;const ki=fn("quill:events");["selectionchange","mousedown","mouseup","click"].forEach(n=>{document.addEventListener(n,function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];Array.from(document.querySelectorAll(".ql-container")).forEach(s=>{const a=Ri.get(s);a&&a.emitter&&a.emitter.handleDOM(...t)})})});class Se extends tv{constructor(){super(),this.domListeners={},this.on("error",ki.error)}emit(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return ki.log.call(ki,...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 Bi=fn("quill:selection");class Dn{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.index=e,this.length=t}}class nv{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 Dn(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 mt){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[u]=this.scroll.leaf(e+1);if(u){const[d]=this.scroll.line(e),[f]=this.scroll.line(e+1);d===f&&(a=u,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 Bi.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&&Pi(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),u=l.offset(this.scroll);return i===0?u:l instanceof mt?u+l.index(c,i):u+l.length()}),s=Math.min(Math.max(...r),this.scroll.length()-1),a=Math.min(s,...r);return new Dn(a,s-a)}normalizeNative(e){if(!Pi(this.root,e.startContainer)||!e.collapsed&&!Pi(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(Bi.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),Bi.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),!xi(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 Pi(n,e){try{e.parentNode}catch{return!1}return n.contains(e)}const rv=/^[ -~]*$/;class sv{constructor(e){this.scroll=e,this.delta=this.getDelta()}applyDelta(e){this.scroll.update();let t=this.scroll.length();this.scroll.batchStart();const r=gl(e),s=new Te;return ov(r.ops.slice()).reduce((o,c)=>{const i=kt.Op.length(c);let l=c.attributes||{},u=!1,d=!1;if(c.insert!=null){if(s.retain(i),typeof c.insert=="string"){const g=c.insert;d=!g.endsWith(`
|
|
10
|
-
`)&&(t<=o||!!this.scroll.descendant(Bt,o)[0]),this.scroll.insertAt(o,g);const[v,x]=this.scroll.line(o);let T=wn({},Pt(v));if(v instanceof ht){const[S]=v.descendant(mt,x);S&&(T=wn(T,Pt(S)))}l=kt.AttributeMap.diff(T,l)||{}}else if(typeof c.insert=="object"){const g=Object.keys(c.insert)[0];if(g==null)return o;const v=this.scroll.query(g,Ne.INLINE)!=null;if(v)(t<=o||this.scroll.descendant(Bt,o)[0])&&(
|
|
11
|
-
`&&(u=!0):x instanceof Rt&&x.statics.scope===Ne.INLINE_BLOT&&(u=!0)}if(this.scroll.insertAt(o,g,c.insert[g]),v){const[x]=this.scroll.descendant(mt,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 g=Object.keys(c.retain)[0];if(g==null)return o;this.scroll.updateEmbedAt(o,g,c.retain[g])}Object.keys(l).forEach(g=>{this.scroll.formatAt(o,i,g,l[g])});const f=u?1:0,m=
|
|
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,m)=>t&&f===t.domNode?m:f===o?r+m-1:s&&f===s.domNode?r+c.length+m:null,u=l(e.start.node,e.start.offset),h=l(e.end.node,e.end.offset);if(u!==null&&h!==null)return{startNode:i.domNode,startOffset:u,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 Oi={exports:{}},hl;function tv(){return hl||(hl=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,u){this.fn=i,this.context=l,this.once=u||!1}function a(i,l,u,h,f){if(typeof u!="function")throw new TypeError("The listener must be a function");var m=new s(u,h||i,f),g=t?t+l:l;return i._events[g]?i._events[g].fn?i._events[g]=[i._events[g],m]:i._events[g].push(m):(i._events[g]=m,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=[],u,h;if(this._eventsCount===0)return l;for(h in u=this._events)e.call(u,h)&&l.push(t?h.slice(1):h);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(u)):l},c.prototype.listeners=function(l){var u=t?t+l:l,h=this._events[u];if(!h)return[];if(h.fn)return[h.fn];for(var f=0,m=h.length,g=new Array(m);f<m;f++)g[f]=h[f].fn;return g},c.prototype.listenerCount=function(l){var u=t?t+l:l,h=this._events[u];return h?h.fn?1:h.length:0},c.prototype.emit=function(l,u,h,f,m,g){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,u),!0;case 3:return x.fn.call(x.context,u,h),!0;case 4:return x.fn.call(x.context,u,h,f),!0;case 5:return x.fn.call(x.context,u,h,f,m),!0;case 6:return x.fn.call(x.context,u,h,f,m,g),!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,u);break;case 3:x[I].fn.call(x[I].context,u,h);break;case 4:x[I].fn.call(x[I].context,u,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,u,h){return a(this,l,u,h,!1)},c.prototype.once=function(l,u,h){return a(this,l,u,h,!0)},c.prototype.removeListener=function(l,u,h,f){var m=t?t+l:l;if(!this._events[m])return this;if(!u)return o(this,m),this;var g=this._events[m];if(g.fn)g.fn===u&&(!f||g.once)&&(!h||g.context===h)&&o(this,m);else{for(var v=0,x=[],T=g.length;v<T;v++)(g[v].fn!==u||f&&!g[v].once||h&&g[v].context!==h)&&x.push(g[v]);x.length?this._events[m]=x.length===1?x[0]:x:o(this,m)}return this},c.prototype.removeAllListeners=function(l){var u;return l?(u=t?t+l:l,this._events[u]&&o(this,u)):(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}(Oi)),Oi.exports}var nv=tv();const rv=Ti(nv),Ci=new WeakMap,Ri=["error","warn","log","info"];let Ii="warn";function pl(n){if(Ii&&Ri.indexOf(n)<=Ri.indexOf(Ii)){for(var e=arguments.length,t=new Array(e>1?e-1:0),r=1;r<e;r++)t[r-1]=arguments[r];console[n](...t)}}function fn(n){return Ri.reduce((e,t)=>(e[t]=pl.bind(console,t,n),e),{})}fn.level=n=>{Ii=n},pl.level=fn.level;const Li=fn("quill:events");["selectionchange","mousedown","mouseup","click"].forEach(n=>{document.addEventListener(n,function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];Array.from(document.querySelectorAll(".ql-container")).forEach(s=>{const a=Ci.get(s);a&&a.emitter&&a.emitter.handleDOM(...t)})})});class Se extends rv{constructor(){super(),this.domListeners={},this.on("error",Li.error)}emit(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Li.log.call(Li,...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 ki=fn("quill:selection");class Dn{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.index=e,this.length=t}}class sv{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 Dn(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 mt){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[u]=this.scroll.leaf(e+1);if(u){const[h]=this.scroll.line(e),[f]=this.scroll.line(e+1);h===f&&(a=u,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 ki.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&&Bi(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),u=l.offset(this.scroll);return i===0?u:l instanceof mt?u+l.index(c,i):u+l.length()}),s=Math.min(Math.max(...r),this.scroll.length()-1),a=Math.min(s,...r);return new Dn(a,s-a)}normalizeNative(e){if(!Bi(this.root,e.startContainer)||!e.collapsed&&!Bi(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(ki.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),ki.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),!bi(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 Bi(n,e){try{e.parentNode}catch{return!1}return n.contains(e)}const iv=/^[ -~]*$/;class ov{constructor(e){this.scroll=e,this.delta=this.getDelta()}applyDelta(e){this.scroll.update();let t=this.scroll.length();this.scroll.batchStart();const r=gl(e),s=new Te;return lv(r.ops.slice()).reduce((o,c)=>{const i=kt.Op.length(c);let l=c.attributes||{},u=!1,h=!1;if(c.insert!=null){if(s.retain(i),typeof c.insert=="string"){const g=c.insert;h=!g.endsWith(`
|
|
10
|
+
`)&&(t<=o||!!this.scroll.descendant(Bt,o)[0]),this.scroll.insertAt(o,g);const[v,x]=this.scroll.line(o);let T=wn({},Pt(v));if(v instanceof ht){const[S]=v.descendant(mt,x);S&&(T=wn(T,Pt(S)))}l=kt.AttributeMap.diff(T,l)||{}}else if(typeof c.insert=="object"){const g=Object.keys(c.insert)[0];if(g==null)return o;const v=this.scroll.query(g,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(mt,o-1);x instanceof qt?x.value()[T]!==`
|
|
11
|
+
`&&(u=!0):x instanceof Rt&&x.statics.scope===Ne.INLINE_BLOT&&(u=!0)}if(this.scroll.insertAt(o,g,c.insert[g]),v){const[x]=this.scroll.descendant(mt,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 g=Object.keys(c.retain)[0];if(g==null)return o;this.scroll.updateEmbedAt(o,g,c.retain[g])}Object.keys(l).forEach(g=>{this.scroll.formatAt(o,i,g,l[g])});const f=u?1:0,m=h?1:0;return t+=f+m,s.retain(f),s.delete(m),o+i+f+m},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 mt&&s.push(i)}):(r=this.scroll.lines(e,t),s=this.scroll.descendants(mt,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 u=c.shift();if(u==null)return l;l=av(Pt(u),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)?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=gl(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
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)),u=new Te().retain(e).concat(l);return this.applyDelta(u)}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(
|
|
14
|
+
`));const l=this.getContents(e,t+o).diff(new Te().insert(r).concat(c)),u=new Te().retain(e).concat(l);return this.applyDelta(u)}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(iv)&&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),u=new Te().insert(a.value()),h=r&&{oldRange:ml(r.oldRange,-c),newRange:ml(r.newRange,-c)};e=new Te().retain(c).concat(l.diff(u,h)).reduce((m,g)=>g.insert?m.insert(g.insert,o):m.push(g),new Te),this.delta=s.compose(e)}else this.delta=this.getDelta(),(!e||!bi(s.compose(e),this.delta))&&(e=s.diff(this.delta,r));return e}}function ir(n,e,t){if(n.length===0){const[m]=Pi(t.pop());return e<=0?`</li></${m}>`:`</li></${m}>${ir([],e-1,t)}`}const[{child:r,offset:s,length:a,indent:o,type:c},...i]=n,[l,u]=Pi(c);if(o>e)return t.push(c),o===e+1?`<${l}><li${u}>${Br(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${u}>${Br(r,s,a)}${ir(i,o,t)}`;const[f]=Pi(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(" "," ");if(n instanceof Vt){if(n.statics.blotName==="list-container"){const l=[];return n.children.forEachAt(e,t,(u,h,f)=>{const m="formats"in u&&typeof u.formats=="function"?u.formats():{};l.push({child:u,offset:h,length:f,indent:m.indent||0,type:m.list})}),ir(l,-1,[])}const s=[];if(n.children.forEachAt(e,t,(l,u,h)=>{s.push(Br(l,u,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 av(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 Pi(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 gl(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
|
-
`);return e.insert(r,t.attributes)}return e.push(t)},new Te)}function ml(n,e){let{index:t,length:r}=n;return new Dn(t+e,r)}function
|
|
16
|
+
`);return e.insert(r,t.attributes)}return e.push(t)},new Te)}function ml(n,e){let{index:t,length:r}=n;return new Dn(t+e,r)}function lv(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
|
|
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]=dn(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]=dn(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]=dn(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]=dn(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]=dn(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]=dn(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]=dn(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]=dn(e,t,r),Ht.call(this,()=>this.editor.removeFormat(e,t),r,e)}scrollRectIntoView(e){
|
|
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 Fi 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 cv{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 Fi)&&(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 uv=n=>n.parentElement||n.getRootNode().host||null,fv=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}},ws=n=>{const e=parseInt(n,10);return Number.isNaN(e)?0:e},vl=(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,dv=(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}:fv(s),u=getComputedStyle(s),h=vl(r.left,r.right,l.left,l.right,ws(u.scrollPaddingLeft),ws(u.scrollPaddingRight)),f=vl(r.top,r.bottom,l.top,l.bottom,ws(u.scrollPaddingTop),ws(u.scrollPaddingBottom));if(h||f)if(i)(c=t.defaultView)==null||c.scrollBy(h,f);else{const{scrollLeft:m,scrollTop:g}=s;f&&(s.scrollTop+=f),h&&(s.scrollLeft+=h);const v=s.scrollLeft-m,x=s.scrollTop-g;r={left:r.left-v,top:r.top-x,right:r.right-v,bottom:r.bottom-x}}s=i||u.position==="fixed"?null:uv(s)}},hv=100,pv=["block","break","cursor","inline","scroll","text"],gv=(n,e,t)=>{const r=new er;return pv.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>hv){t.error(`Cycle detected in registering blot requiredContainer: "${s}"`);break}}),r},ar=fn("quill"),As=new er;Vt.uiClass="ql-ui";const Kt=class Kt{static debug(e){e===!0&&(e="log"),fn.level(e)}static find(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Ci.get(e)||As.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"&&As.register(t),typeof t.register=="function"&&t.register(As)}}constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.options=mv(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="",Ci.set(this.container,this),this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.emitter=new Se;const s=Ai.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 ov(this.scroll),this.selection=new sv(this.scroll,this.emitter),this.composition=new cv(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(),u=i&&l?{oldRange:i,newRange:l}:void 0;Ht.call(this,()=>this.editor.update(null,c,u),o)}),this.emitter.on(Se.events.SCROLL_EMBED_UPDATE,(o,c)=>{const i=this.selection.lastRange,[l]=this.selection.getRange(),u=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,[],u)},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]=dn(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]=dn(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]=dn(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]=dn(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]=dn(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]=dn(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]=dn(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]=dn(e,t,r),Ht.call(this,()=>this.editor.removeFormat(e,t),r,e)}scrollRectIntoView(e){dv(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]=dn(e,t,r),this.selection.setRange(new Dn(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:As,theme:"default"}),Ee(Kt,"events",Se.events),Ee(Kt,"sources",Se.sources),Ee(Kt,"version","2.0.3"),Ee(Kt,"imports",{delta:Te,parchment:Xm,"core/module":zt,"core/theme":or});let le=Kt;function yl(n){return typeof n=="string"?document.querySelector(n):n}function Mi(n){return Object.entries(n??{}).reduce((e,t)=>{let[r,s]=t;return{...e,[r]:s===!0?{}:s}},{})}function bl(n){return Object.fromEntries(Object.entries(n).filter(e=>e[1]!==void 0))}function mv(n,e){const t=yl(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=Mi(e.modules);l!=null&&l.toolbar&&l.toolbar.constructor!==Object&&(l={...l,toolbar:{container:l.toolbar}});const u=wn({},Mi(a),Mi(c),l),h={...o,...bl(i),...bl(e)};let f=e.registry;return f?e.formats&&ar.warn('Ignoring "formats" option because "registry" is specified'):f=e.formats?gv(e.formats,h.registry,ar):h.registry,{...h,registry:f,container:t,theme:s,modules:Object.entries(u).reduce((m,g)=>{let[v,x]=g;if(!x)return m;const T=le.import(`modules/${v}`);return T==null?(ar.error(`Cannot load ${v} module. Are you sure you registered it?`),m):{...m,[v]:wn({},T.DEFAULTS||{},x)}},{}),bounds:yl(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=xl(s,o,e):r!==0&&(s=xl(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 dn(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 xl(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 Dn(a,o-a)}class Un extends ps{}function El(n){return n instanceof ht||n instanceof Bt}function wl(n){return typeof n.updateContent=="function"}class lr extends Ai{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()),l=a.type==="block"?a.delta:new Te().insert({[a.key]:a.value});
|
|
22
|
-
`);const f=Pt(this.line(e)[0]),m=kt.AttributeMap.diff(f,a.attributes)||{};Object.keys(m).forEach(g=>{this.formatAt(
|
|
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,Un]);function
|
|
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});Di(this,e,l);const u=a.type==="block"?1:0,h=e+l.length()+u;i&&this.insertAt(h-1,`
|
|
22
|
+
`);const f=Pt(this.line(e)[0]),m=kt.AttributeMap.diff(f,a.attributes)||{};Object.keys(m).forEach(g=>{this.formatAt(h-1,1,g,m[g])}),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);Di(l,0,i.delta)}else{const l=this.create(i.key,i.value);this.insertBefore(l,o||void 0),Object.keys(i.attributes).forEach(u=>{l.format(u,i.attributes[u])})}})),s.type==="block"&&s.delta.length()){const i=o?o.offset(o.scroll)+c:this.length();Di(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 mt?[r,s]:[null,-1]}line(e){return e===this.length()?this.line(e-1):this.descendant(El,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,u,h)=>{El(l)?c.push(l):l instanceof ps&&(c=c.concat(r(l,u,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&&!wl(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&&wl(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,Un]);function Di(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(mt,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(mt,r),u=Pt(l);o=kt.AttributeMap.diff(u,o)||{}}}}return Object.keys(o).forEach(c=>{n.formatAt(r,a,c,o[c])}),r+a},e)}const Ui={scope:Ne.BLOCK,whitelist:["right","center","justify"]},vv=new en("align","align",Ui),Al=new $t("align","ql-align",Ui),Sl=new An("align","text-align",Ui);class Tl extends An{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 yv=new $t("color","ql-color",{scope:Ne.INLINE}),ji=new Tl("color","color",{scope:Ne.INLINE}),bv=new $t("background","ql-bg",{scope:Ne.INLINE}),$i=new Tl("background","background-color",{scope:Ne.INLINE});class jn extends Un{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(jn)}}Ee(vt,"TAB"," ");class
|
|
27
|
-
`,r);this.quill.updateContents(s,le.sources.USER),this.quill.setSelection(e.index+1,le.sources.SILENT),this.quill.focus()}}const
|
|
26
|
+
</pre>`}}class vt extends ht{static register(){le.register(jn)}}Ee(vt,"TAB"," ");class Vi extends tn{}Vi.blotName="code",Vi.tagName="CODE",vt.blotName="code-block",vt.className="ql-code-block",vt.tagName="DIV",jn.blotName="code-block-container",jn.className="ql-code-block-container",jn.tagName="DIV",jn.allowedChildren=[vt],vt.allowedChildren=[qt,_t,sr],vt.requiredContainer=jn;const _i={scope:Ne.BLOCK,whitelist:["rtl"]},Nl=new en("direction","dir",_i),Ol=new $t("direction","ql-direction",_i),Cl=new An("direction","direction",_i),Rl={scope:Ne.INLINE,whitelist:["serif","monospace"]},Il=new $t("font","ql-font",Rl);class xv extends An{value(e){return super.value(e).replace(/["']/g,"")}}const Ll=new xv("font","font-family",Rl),kl=new $t("size","ql-size",{scope:Ne.INLINE,whitelist:["small","large","huge"]}),Bl=new An("size","font-size",{scope:Ne.INLINE,whitelist:["10px","18px","32px"]}),Ev=fn("quill:keyboard"),wv=/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=Sv(e);if(s==null){Ev.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,u]=this.quill.getLeaf(o.index),[h,f]=o.length===0?[l,u]:this.quill.getLeaf(o.index+o.length),m=l instanceof gs?l.value().slice(0,u):"",g=h instanceof gs?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:m,suffix:g,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:bi(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(),u=this.quill.getFormat(e.index-1,1);if(s=kt.AttributeMap.diff(l,u)||{},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){zi({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
|
+
`,r);this.quill.updateContents(s,le.sources.USER),this.quill.setSelection(e.index+1,le.sources.SILENT),this.quill.focus()}}const Av={bindings:{bold:qi("bold"),italic:qi("italic"),underline:qi("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":Pl(!0),"outdent code-block":Pl(!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=
|
|
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=Tv(t,r,s,a);if(o==null)return;let c=t.offset();if(o<0){const i=new Te().retain(c).insert(`
|
|
30
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":Fl(!1),"table up":Fl(!0)}};Ss.DEFAULTS=
|
|
32
|
-
`)&&(a.ops[a.ops.length-1].attributes==null||s.table)?a.compose(new Te().retain(a.length()-1).delete(1)):a}normalizeHTML(e){
|
|
33
|
-
`)}onCapturePaste(e){var o,c,i,l,u;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
|
|
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":Fl(!1),"table up":Fl(!0)}};Ss.DEFAULTS=Av;function Pl(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,u)=>{n?(l.insertAt(0,a),u===0?c+=a.length:i+=a.length):l.domNode.textContent.startsWith(a)&&(l.deleteAt(0,a.length),u===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 qi(n){return{key:n[0],shortKey:!0,handler(e,t){this.quill.format(n,!t.format[n],le.sources.USER)}}}function Fl(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 Sv(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[wv]=n.shortKey,delete n.shortKey),n}function zi(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 Tv(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 Nv=/font-weight:\s*normal/,Ov=["P","OL","UL"],Ml=n=>n&&Ov.includes(n.tagName),Cv=n=>{Array.from(n.querySelectorAll("br")).filter(e=>Ml(e.previousElementSibling)&&Ml(e.nextElementSibling)).forEach(e=>{var t;(t=e.parentNode)==null||t.removeChild(e)})},Rv=n=>{Array.from(n.querySelectorAll('b[style*="font-weight"]')).filter(e=>{var t;return(t=e.getAttribute("style"))==null?void 0:t.match(Nv)}).forEach(e=>{var r;const t=n.createDocumentFragment();t.append(...e.childNodes),(r=e.parentNode)==null||r.replaceChild(t,e)})};function Iv(n){n.querySelector('[id^="docs-internal-guid-"]')&&(Rv(n),Cv(n))}const Lv=/\bmso-list:[^;]*ignore/i,kv=/\bmso-list:[^;]*\bl(\d+)/i,Bv=/\bmso-list:[^;]*\blevel(\d+)/i,Pv=(n,e)=>{const t=n.getAttribute("style"),r=t==null?void 0:t.match(kv);if(!r)return null;const s=Number(r[1]),a=t==null?void 0:t.match(Bv),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}},Fv=n=>{var o,c;const e=Array.from(n.querySelectorAll("[style*=mso-list]")),t=[],r=[];e.forEach(i=>{(i.getAttribute("style")||"").match(Lv)?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=>Pv(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 u=document.createElement("ul");i.forEach(m=>{const g=document.createElement("li");g.setAttribute("data-list",m.type),m.indent>1&&g.setAttribute("class",`ql-indent-${m.indent-1}`),g.innerHTML=m.element.innerHTML,u.appendChild(g)});const h=(c=i[0])==null?void 0:c.element,{parentNode:f}=h??{};h&&(f==null||f.replaceChild(u,h)),i.slice(1).forEach(m=>{let{element:g}=m;f==null||f.removeChild(g)})}};function Mv(n){n.documentElement.getAttribute("xmlns:w")==="urn:schemas-microsoft-com:office:word"&&Fv(n)}const Dv=[Mv,Iv],Uv=n=>{n.documentElement&&Dv.forEach(e=>{e(n)})},jv=fn("quill:clipboard"),$v=[[Node.TEXT_NODE,Qv],[Node.TEXT_NODE,$l],["br",Hv],[Node.ELEMENT_NODE,$l],[Node.ELEMENT_NODE,zv],[Node.ELEMENT_NODE,qv],[Node.ELEMENT_NODE,Yv],["li",Kv],["ol, ul",Xv],["pre",Gv],["tr",Zv],["b",Gi("bold")],["i",Gi("italic")],["strike",Gi("strike")],["style",Wv]],Vv=[vv,Nl].reduce((n,e)=>(n[e.keyName]=e,n),{}),Dl=[Sl,$i,ji,Cl,Ll,Bl].reduce((n,e)=>(n[e.keyName]=e,n),{});class Ul 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=[],$v.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){Uv(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 Hi(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&&zi({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,u;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&&((u=h.body.firstElementChild)==null?void 0:u.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);jv.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(Ul,"DEFAULTS",{matchers:[]});function $n(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 Tn(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 _v(n,e){return n.previousElementSibling&&n.nextElementSibling&&!Tn(n.previousElementSibling,e)&&!Tn(n.nextElementSibling,e)}const Ns=new WeakMap;function jl(n){return n==null?!1:(Ns.has(n)||(n.tagName==="PRE"?Ns.set(n,!0):Ns.set(n,jl(n.parentNode))),Ns.get(n))}function Hi(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=Hi(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 Gi(n){return(e,t,r)=>$n(t,n,!0,r)}function qv(n,e,t){const r=en.keys(n),s=$t.keys(n),a=An.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=Vv[c],i!=null&&(i.attrName===c||i.keyName===c)&&(o[i.attrName]=i.value(n)||void 0),i=Dl[c],i!=null&&(i.attrName===c||i.keyName===c)&&(i=Dl[c],o[i.attrName]=i.value(n)||void 0))}),Object.entries(o).reduce((c,i)=>{let[l,u]=i;return $n(c,l,u,t)},e)}function zv(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,`
|
|
34
34
|
`)&&e.insert(`
|
|
35
|
-
`),"blotName"in r&&"formats"in r&&typeof r.formats=="function")return $n(e,r.blotName,r.formats(n,t),t);return e}function
|
|
35
|
+
`),"blotName"in r&&"formats"in r&&typeof r.formats=="function")return $n(e,r.blotName,r.formats(n,t),t);return e}function Hv(n,e){return Pr(e,`
|
|
36
36
|
`)||e.insert(`
|
|
37
|
-
`),e}function
|
|
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
|
|
37
|
+
`),e}function Gv(n,e,t){const r=t.query("code-block"),s=r&&"formats"in r&&typeof r.formats=="function"?r.formats(n,t):!0;return $n(e,"code-block",s,t)}function Wv(){return new Te}function Kv(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,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 Xv(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"),$n(e,"list",s,t)}function $l(n,e,t){if(!Pr(e,`
|
|
39
39
|
`)){if(Tn(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(Tn(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
|
|
43
|
-
`)
|
|
44
|
-
`):t.attributes!=null?Object.keys(t.attributes).some(r=>n.query(r,Ne.BLOCK)!=null):!1}function Qv(n,e){const t=e.reduce((s,a)=>s+(a.delete||0),0);let r=e.length()-t;return Zv(n,e)&&(r-=1),r}function Ki(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 ql 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)}}ql.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 Jv=["insertText","insertReplacementText"];class e1 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){Hi({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||!Jv.includes(e.inputType))return;const t=e.getTargetRanges?e.getTargetRanges()[0]:null;if(!t||t.collapsed===!0)return;const r=t1(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 t1(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 n1=/Mac/i.test(navigator.platform),r1=100,s1=n=>!!(n.key==="ArrowLeft"||n.key==="ArrowRight"||n.key==="ArrowUp"||n.key==="ArrowDown"||n.key==="Home"||n1&&n.key==="a"&&n.ctrlKey===!0);class i1 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&&s1(t)&&this.ensureListeningToSelectionChange()})}ensureListeningToSelectionChange(){if(this.selectionChangeDeadline=Date.now()+r1,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":Un,"blots/cursor":sr,"blots/embed":Mi,"blots/inline":tn,"blots/scroll":lr,"blots/text":qt,"modules/clipboard":Ul,"modules/history":Vl,"modules/keyboard":Ss,"modules/uploader":ql,"modules/input":e1,"modules/uiNode":i1});class o1 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 a1=new o1("indent","ql-indent",{scope:Ne.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});class Xi extends ht{}Ee(Xi,"blotName","blockquote"),Ee(Xi,"tagName","blockquote");class Yi extends ht{static formats(e){return this.tagName.indexOf(e.tagName)+1}}Ee(Yi,"blotName","header"),Ee(Yi,"tagName",["H1","H2","H3","H4","H5","H6"]);class Fr extends Un{}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 Zi extends Dr{}Ee(Zi,"blotName","italic"),Ee(Zi,"tagName",["EM","I"]);class Nn 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(Nn,"blotName","link"),Ee(Nn,"tagName","A"),Ee(Nn,"SANITIZED_URL","about:blank"),Ee(Nn,"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 Qi 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(Qi,"blotName","script"),Ee(Qi,"tagName",["SUB","SUP"]);class Ji extends Dr{}Ee(Ji,"blotName","strike"),Ee(Ji,"tagName",["S","STRIKE"]);class eo extends tn{}Ee(eo,"blotName","underline"),Ee(eo,"tagName","U");class Os extends Mi{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 Hl=["alt","height","width"];class to 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 Hl.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){Hl.indexOf(e)>-1?t?this.domNode.setAttribute(e,t):this.domNode.removeAttribute(e):super.format(e,t)}}Ee(to,"blotName","image"),Ee(to,"tagName","IMG");const Gl=["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 Gl.reduce((t,r)=>(e.hasAttribute(r)&&(t[r]=e.getAttribute(r)),t),{})}static sanitize(e){return Nn.sanitize(e)}static value(e){return e.getAttribute("src")}format(e,t){Gl.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 jn{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 Yv(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 $n(o,i,l,t)},e),parseFloat(s.textIndent||0)>0?new Te().insert(" ").concat(e):e}function Zv(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 $n(e,"table",c,t)}return e}function Qv(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(!jl(n)){if(r.trim().length===0&&r.includes(`
|
|
43
|
+
`)&&!_v(n,t))return e;r=r.replace(/[^\S\u00a0]/g," "),r=r.replace(/ {2,}/g," "),(n.previousSibling==null&&n.parentElement!=null&&Tn(n.parentElement,t)||n.previousSibling instanceof Element&&Tn(n.previousSibling,t))&&(r=r.replace(/^ /,"")),(n.nextSibling==null&&n.parentElement!=null&&Tn(n.parentElement,t)||n.nextSibling instanceof Element&&Tn(n.nextSibling,t))&&(r=r.replace(/ $/,"")),r=r.replaceAll(" "," ")}return e.insert(r)}class Vl 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=Wi(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:Wi(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){_l(this.stack.undo,t),_l(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=e1(this.quill.scroll,t.delta);this.quill.setSelection(r,le.sources.USER)}}}Ee(Vl,"DEFAULTS",{delay:1e3,maxStack:100,userOnly:!1});function _l(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&&Wi(s.range,t)},t=s.delta.transform(t),n[r].delta.length()===0&&n.splice(r,1)}}function Jv(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 e1(n,e){const t=e.reduce((s,a)=>s+(a.delete||0),0);let r=e.length()-t;return Jv(n,e)&&(r-=1),r}function Wi(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 ql 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)}}ql.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 t1=["insertText","insertReplacementText"];class n1 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){zi({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||!t1.includes(e.inputType))return;const t=e.getTargetRanges?e.getTargetRanges()[0]:null;if(!t||t.collapsed===!0)return;const r=r1(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 r1(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 s1=/Mac/i.test(navigator.platform),i1=100,o1=n=>!!(n.key==="ArrowLeft"||n.key==="ArrowRight"||n.key==="ArrowUp"||n.key==="ArrowDown"||n.key==="Home"||s1&&n.key==="a"&&n.ctrlKey===!0);class a1 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&&o1(t)&&this.ensureListeningToSelectionChange()})}ensureListeningToSelectionChange(){if(this.selectionChangeDeadline=Date.now()+i1,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":Un,"blots/cursor":sr,"blots/embed":Fi,"blots/inline":tn,"blots/scroll":lr,"blots/text":qt,"modules/clipboard":Ul,"modules/history":Vl,"modules/keyboard":Ss,"modules/uploader":ql,"modules/input":n1,"modules/uiNode":a1});class l1 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 c1=new l1("indent","ql-indent",{scope:Ne.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});class Ki extends ht{}Ee(Ki,"blotName","blockquote"),Ee(Ki,"tagName","blockquote");class Xi extends ht{static formats(e){return this.tagName.indexOf(e.tagName)+1}}Ee(Xi,"blotName","header"),Ee(Xi,"tagName",["H1","H2","H3","H4","H5","H6"]);class Fr extends Un{}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 Yi extends Dr{}Ee(Yi,"blotName","italic"),Ee(Yi,"tagName",["EM","I"]);class Nn 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(Nn,"blotName","link"),Ee(Nn,"tagName","A"),Ee(Nn,"SANITIZED_URL","about:blank"),Ee(Nn,"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 Zi 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(Zi,"blotName","script"),Ee(Zi,"tagName",["SUB","SUP"]);class Qi extends Dr{}Ee(Qi,"blotName","strike"),Ee(Qi,"tagName",["S","STRIKE"]);class Ji extends tn{}Ee(Ji,"blotName","underline"),Ee(Ji,"tagName","U");class Os extends Fi{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 Hl=["alt","height","width"];class eo 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 Hl.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){Hl.indexOf(e)>-1?t?this.domNode.setAttribute(e,t):this.domNode.removeAttribute(e):super.format(e,t)}}Ee(eo,"blotName","image"),Ee(eo,"tagName","IMG");const Gl=["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 Gl.reduce((t,r)=>(e.hasAttribute(r)&&(t[r]=e.getAttribute(r)),t),{})}static sanitize(e){return Nn.sanitize(e)}static value(e){return e.getAttribute("src")}format(e,t){Gl.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 jn{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,l)=>i.concat(dl(l,!1)),new Te),c=e(s,a);o.diff(c).reduce((i,l)=>{let{retain:u,attributes:
|
|
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(dl(l,!1)),new Te),c=e(s,a);o.diff(c).reduce((i,l)=>{let{retain:u,attributes:h}=l;return u?(h&&Object.keys(h).forEach(f=>{[Ft.blotName,hn.blotName].includes(f)&&this.formatAt(i,u,f,h[f])}),i+u):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
|
|
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 u1=(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 Wl 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(`
|
|
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=
|
|
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=u1(this.options.hljs,t,e),Hi(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
51
|
`).reduce((o,c,i)=>(i!==0&&o.insert(`
|
|
52
|
-
`,{[vt.blotName]:t}),o.insert(c)),a)],new WeakMap)}}Wl.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",
|
|
53
|
-
`).join("");return a.insert(o,{table:no()})},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 Kl=fn("quill:toolbar");class ro 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"),u1(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)){Kl.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){Kl.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())}})}}ro.DEFAULTS={};function Xl(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 u1(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")Xl(r,s);else{const a=Object.keys(s)[0],o=s[a];Array.isArray(o)?f1(r,a,o):Xl(r,a,o)}}),n.appendChild(r)})}function f1(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)}ro.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 d1='<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>',h1='<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>',p1='<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>',g1='<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>',m1='<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>',v1='<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>',y1='<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>',b1='<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>',Yl='<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:{"":d1,center:h1,right:p1,justify:g1},background:m1,blockquote:v1,bold:y1,clean:b1,code:Yl,"code-block":Yl,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>'},x1='<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 Zl=0;function Ql(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"),Ql(this.label,"aria-expanded"),Ql(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=x1,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-${Zl}`,Zl+=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 Jl 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 ec 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 E1=n=>{const{overflowY:e}=getComputedStyle(n,null);return e!=="visible"&&e!=="clip"};class tc{constructor(e,t){this.quill=e,this.boundsContainer=t||document.body,this.root=e.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,E1(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 w1=[!1,"center","right","justify"],A1=["#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"],S1=[!1,"serif","monospace"],T1=["1","2","3",!1],N1=["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,w1),typeof t.align=="object"))return new ec(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,A1,a==="background"?"#ffffff":"#000000"),new Jl(s,t[a])}return s.querySelector("option")==null&&(s.classList.contains("ql-font")?_r(s,S1):s.classList.contains("ql-header")?_r(s,T1):s.classList.contains("ql-size")&&_r(s,N1)),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 nc extends tc{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=O1(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 O1(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 C1=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]];class rc extends nc{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),u=Math.min(i.length()-1,s.index+s.length-l),d=this.quill.getBounds(new Dn(l,u));d!=null&&this.position(d)}}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(rc,"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 sc extends Vr{constructor(e,t){t.modules.toolbar!=null&&t.modules.toolbar.container==null&&(t.modules.toolbar.container=C1),super(e,t),this.quill.container.classList.add("ql-bubble")}extendToolbar(e){this.tooltip=new rc(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))}}sc.DEFAULTS=wn({},Vr.DEFAULTS,{modules:{toolbar:{handlers:{link(n){n?this.quill.theme.tooltip.edit():this.quill.format("link",!1,le.sources.USER)}}}}});const R1=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];class ic extends nc{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(Nn,t.index);if(a!=null){this.linkRange=new Dn(t.index-o,a.length());const c=Nn.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(ic,"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 oc extends Vr{constructor(e,t){t.modules.toolbar!=null&&t.modules.toolbar.container==null&&(t.modules.toolbar.container=R1),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 ic(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)}))}}oc.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":Nl,"attributors/class/align":Al,"attributors/class/background":vv,"attributors/class/color":mv,"attributors/class/direction":Ol,"attributors/class/font":Il,"attributors/class/size":kl,"attributors/style/align":Sl,"attributors/style/background":Vi,"attributors/style/color":$i,"attributors/style/direction":Cl,"attributors/style/font":Ll,"attributors/style/size":Bl},!0),le.register({"formats/align":Al,"formats/direction":Ol,"formats/indent":a1,"formats/background":Vi,"formats/color":$i,"formats/font":Il,"formats/size":kl,"formats/blockquote":Xi,"formats/code-block":vt,"formats/header":Yi,"formats/list":Mr,"formats/bold":Dr,"formats/code":_i,"formats/italic":Zi,"formats/link":Nn,"formats/script":Qi,"formats/strike":Ji,"formats/underline":eo,"formats/formula":Os,"formats/image":to,"formats/video":Cs,"modules/syntax":Wl,"modules/table":c1,"modules/toolbar":ro,"themes/bubble":sc,"themes/snow":oc,"ui/icons":$r,"ui/picker":Rs,"ui/icon-picker":ec,"ui/color-picker":Jl,"ui/tooltip":tc},!0);const I1={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=h.ref(null);let r=null;return h.onMounted(()=>{r=new le(t.value,n.options),r.root.innerHTML=n.modelValue,r.on("text-change",()=>{e("update:modelValue",r.root.innerHTML)})}),h.watch(()=>n.modelValue,s=>{r&&r.root.innerHTML!==s&&(r.root.innerHTML=s)}),h.onBeforeUnmount(()=>{r=null}),{editorContainer:t}}},L1={class:"q-editor"},k1={ref:"editorContainer"};function B1(n,e,t,r,s,a){return h.openBlock(),h.createElementBlock("div",L1,[h.createElementVNode("div",k1,null,512)])}const P1=es(I1,[["render",B1]]),F1={class:"rounded-xl bg-gray-50 px-6 py-5"},M1={key:0,class:"pb-5"},D1={class:"text-lg font-semibold text-gray-900"},U1={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)=>(h.openBlock(),h.createElementBlock("div",F1,[n.title?(h.openBlock(),h.createElementBlock("div",M1,[h.createElementVNode("div",D1,h.toDisplayString(n.title),1),n.supporting_text?(h.openBlock(),h.createElementBlock("div",U1,h.toDisplayString(n.supporting_text),1)):h.createCommentVNode("",!0)])):h.createCommentVNode("",!0),h.renderSlot(e.$slots,"default")]))}};function ac(n,e){return function(){return n.apply(e,arguments)}}const{toString:j1}=Object.prototype,{getPrototypeOf:so}=Object,{iterator:Is,toStringTag:lc}=Symbol,Ls=(n=>e=>{const t=j1.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 $1(n){return n!==null&&!zr(n)&&n.constructor!==null&&!zr(n.constructor)&&Tt(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const cc=Wt("ArrayBuffer");function V1(n){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(n):e=n&&n.buffer&&cc(n.buffer),e}const _1=ks("string"),Tt=ks("function"),uc=ks("number"),Bs=n=>n!==null&&typeof n=="object",q1=n=>n===!0||n===!1,Ps=n=>{if(Ls(n)!=="object")return!1;const e=so(n);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(lc in n)&&!(Is in n)},z1=Wt("Date"),H1=Wt("File"),G1=Wt("Blob"),W1=Wt("FileList"),K1=n=>Bs(n)&&Tt(n.pipe),X1=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]"))},Y1=Wt("URLSearchParams"),[Z1,Q1,J1,e0]=["ReadableStream","Request","Response","Headers"].map(Wt),t0=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 c;for(r=0;r<o;r++)c=a[r],e.call(null,n[c],c,n)}}function fc(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 Vn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,dc=n=>!zr(n)&&n!==Vn;function io(){const{caseless:n}=dc(this)&&this||{},e={},t=(r,s)=>{const a=n&&fc(e,s)||s;Ps(e[a])&&Ps(r)?e[a]=io(e[a],r):Ps(r)?e[a]=io({},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 n0=(n,e,t,{allOwnKeys:r}={})=>(Hr(e,(s,a)=>{t&&Tt(s)?n[a]=ac(s,t):n[a]=s},{allOwnKeys:r}),n),r0=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),s0=(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)},i0=(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&&so(n)}while(n&&(!t||t(n,e))&&n!==Object.prototype);return e},o0=(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},a0=n=>{if(!n)return null;if(ur(n))return n;let e=n.length;if(!uc(e))return null;const t=new Array(e);for(;e-- >0;)t[e]=n[e];return t},l0=(n=>e=>n&&e instanceof n)(typeof Uint8Array<"u"&&so(Uint8Array)),c0=(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])}},u0=(n,e)=>{let t;const r=[];for(;(t=n.exec(e))!==null;)r.push(t);return r},f0=Wt("HTMLFormElement"),d0=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,r,s){return r.toUpperCase()+s}),hc=(({hasOwnProperty:n})=>(e,t)=>n.call(e,t))(Object.prototype),h0=Wt("RegExp"),pc=(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)},p0=n=>{pc(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+"'")})}})},g0=(n,e)=>{const t={},r=s=>{s.forEach(a=>{t[a]=!0})};return ur(n)?r(n):r(String(n).split(e)),t},m0=()=>{},v0=(n,e)=>n!=null&&Number.isFinite(n=+n)?n:e;function y0(n){return!!(n&&Tt(n.append)&&n[lc]==="FormData"&&n[Is])}const b0=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,c)=>{const i=t(o,s+1);!zr(i)&&(a[c]=i)}),e[s]=void 0,a}}return r};return t(n,0)},x0=Wt("AsyncFunction"),E0=n=>n&&(Bs(n)||Tt(n))&&Tt(n.then)&&Tt(n.catch),gc=((n,e)=>n?setImmediate:e?((t,r)=>(Vn.addEventListener("message",({source:s,data:a})=>{s===Vn&&a===t&&r.length&&r.shift()()},!1),s=>{r.push(s),Vn.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t))(typeof setImmediate=="function",Tt(Vn.postMessage)),w0=typeof queueMicrotask<"u"?queueMicrotask.bind(Vn):typeof process<"u"&&process.nextTick||gc,ee={isArray:ur,isArrayBuffer:cc,isBuffer:$1,isFormData:X1,isArrayBufferView:V1,isString:_1,isNumber:uc,isBoolean:q1,isObject:Bs,isPlainObject:Ps,isReadableStream:Z1,isRequest:Q1,isResponse:J1,isHeaders:e0,isUndefined:zr,isDate:z1,isFile:H1,isBlob:G1,isRegExp:h0,isFunction:Tt,isStream:K1,isURLSearchParams:Y1,isTypedArray:l0,isFileList:W1,forEach:Hr,merge:io,extend:n0,trim:t0,stripBOM:r0,inherits:s0,toFlatObject:i0,kindOf:Ls,kindOfTest:Wt,endsWith:o0,toArray:a0,forEachEntry:c0,matchAll:u0,isHTMLForm:f0,hasOwnProperty:hc,hasOwnProp:hc,reduceDescriptors:pc,freezeMethods:p0,toObjectSet:g0,toCamelCase:d0,noop:m0,toFiniteNumber:v0,findKey:fc,global:Vn,isContextDefined:dc,isSpecCompliantForm:y0,toJSONObject:b0,isAsyncFn:x0,isThenable:E0,setImmediate:gc,asap:w0,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 mc=Me.prototype,vc={};["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=>{vc[n]={value:n}}),Object.defineProperties(Me,vc),Object.defineProperty(mc,"isAxiosError",{value:!0}),Me.from=(n,e,t,r,s,a)=>{const o=Object.create(mc);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 A0=null;function oo(n){return ee.isPlainObject(n)||ee.isArray(n)}function yc(n){return ee.endsWith(n,"[]")?n.slice(0,-2):n}function bc(n,e,t){return n?n.concat(e).map(function(s,a){return s=yc(s),!t&&a?"["+s+"]":s}).join(t?".":""):e}function S0(n){return ee.isArray(n)&&!n.some(oo)}const T0=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||u,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(g){if(g===null)return"";if(ee.isDate(g))return g.toISOString();if(!i&&ee.isBlob(g))throw new Me("Blob is not supported. Use a Buffer instead.");return ee.isArrayBuffer(g)||ee.isTypedArray(g)?i&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function u(g,v,x){let T=g;if(g&&!x&&typeof g=="object"){if(ee.endsWith(v,"{}"))v=r?v:v.slice(0,-2),g=JSON.stringify(g);else if(ee.isArray(g)&&S0(g)||(ee.isFileList(g)||ee.endsWith(v,"[]"))&&(T=ee.toArray(g)))return v=yc(v),T.forEach(function(R,F){!(ee.isUndefined(R)||R===null)&&e.append(o===!0?bc([v],F,a):o===null?v:v+"[]",l(R))}),!1}return oo(g)?!0:(e.append(bc(x,v,a),l(g)),!1)}const d=[],f=Object.assign(T0,{defaultVisitor:u,convertValue:l,isVisitable:oo});function m(g,v){if(!ee.isUndefined(g)){if(d.indexOf(g)!==-1)throw Error("Circular reference detected in "+v.join("."));d.push(g),ee.forEach(g,function(T,S){(!(ee.isUndefined(T)||T===null)&&s.call(e,T,ee.isString(S)?S.trim():S,v,f))===!0&&m(T,v?v.concat(S):[S])}),d.pop()}}if(!ee.isObject(n))throw new TypeError("data must be an object");return m(n),e}function xc(n){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function ao(n,e){this._pairs=[],n&&Fs(n,this,e)}const Ec=ao.prototype;Ec.append=function(e,t){this._pairs.push([e,t])},Ec.toString=function(e){const t=e?function(r){return e.call(this,r,xc)}:xc;return this._pairs.map(function(s){return t(s[0])+"="+t(s[1])},"").join("&")};function N0(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function wc(n,e,t){if(!e)return n;const r=t&&t.encode||N0;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 ao(e,t).toString(r),a){const o=n.indexOf("#");o!==-1&&(n=n.slice(0,o)),n+=(n.indexOf("?")===-1?"?":"&")+a}return n}class Ac{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 Sc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},O0={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:ao,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},lo=typeof window<"u"&&typeof document<"u",co=typeof navigator=="object"&&navigator||void 0,C0=lo&&(!co||["ReactNative","NativeScript","NS"].indexOf(co.product)<0),R0=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",I0=lo&&window.location.href||"http://localhost",yt={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:lo,hasStandardBrowserEnv:C0,hasStandardBrowserWebWorkerEnv:R0,navigator:co,origin:I0},Symbol.toStringTag,{value:"Module"})),...O0};function L0(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 k0(n){return ee.matchAll(/\w+|\[(\w*)]/g,n).map(e=>e[0]==="[]"?"":e[1]||e[0])}function B0(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 Tc(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]=B0(s[o])),!c)}if(ee.isFormData(n)&&ee.isFunction(n.entries)){const t={};return ee.forEachEntry(n,(r,s)=>{e(k0(r),s,t,0)}),t}return null}function P0(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:Sc,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(Tc(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 L0(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),P0(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(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=>{Gr.headers[n]={}});const F0=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"]),M0=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]&&
|
|
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[Nc]=this[Nc]={accessors:{}}).accessors,s=this.prototype;function a(o){const c=Wr(o);r[c]||($0(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 fo(n,e){const t=this||Gr,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 Oc(n){return!!(n&&n.__CANCEL__)}function fr(n,e,t){Me.call(this,n??"canceled",Me.ERR_CANCELED,e,t),this.name="CanceledError"}ee.inherits(fr,Me,{__CANCEL__:!0});function Cc(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 V0(n){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return e&&e[1]||""}function _0(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(),u=r[a];o||(o=l),t[s]=i,r[s]=l;let d=a,f=0;for(;d!==s;)f+=t[d++],d=d%n;if(s=(s+1)%n,s===a&&(a=(a+1)%n),l-o<e)return;const m=u&&l-u;return m?Math.round(f*1e3/m):void 0}}function q0(n,e){let t=0,r=1e3/e,s,a;const o=(l,u=Date.now())=>{t=u,s=null,a&&(clearTimeout(a),a=null),n.apply(null,l)};return[(...l)=>{const u=Date.now(),d=u-t;d>=r?o(l,u):(s=l,a||(a=setTimeout(()=>{a=null,o(s)},r-d)))},()=>s&&o(s)]}const Ds=(n,e,t=3)=>{let r=0;const s=_0(50,250);return q0(a=>{const o=a.loaded,c=a.lengthComputable?a.total:void 0,i=o-r,l=s(i),u=o<=c;r=o;const d={loaded:o,total:c,progress:c?o/c:void 0,bytes:i,rate:l||void 0,estimated:l&&c&&u?(c-o)/l:void 0,event:a,lengthComputable:c!=null,[e?"download":"upload"]:!0};n(d)},t)},Rc=(n,e)=>{const t=n!=null;return[r=>e[0]({lengthComputable:t,total:n,loaded:r}),e[1]]},Ic=n=>(...e)=>ee.asap(()=>n(...e)),z0=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,H0=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 G0(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function W0(n,e){return e?n.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):n}function Lc(n,e,t){let r=!G0(e);return n&&(r||t==!1)?W0(n,e):e}const kc=n=>n instanceof Nt?{...n}:n;function _n(n,e){e=e||{};const t={};function r(l,u,d,f){return ee.isPlainObject(l)&&ee.isPlainObject(u)?ee.merge.call({caseless:f},l,u):ee.isPlainObject(u)?ee.merge({},u):ee.isArray(u)?u.slice():u}function s(l,u,d,f){if(ee.isUndefined(u)){if(!ee.isUndefined(l))return r(void 0,l,d,f)}else return r(l,u,d,f)}function a(l,u){if(!ee.isUndefined(u))return r(void 0,u)}function o(l,u){if(ee.isUndefined(u)){if(!ee.isUndefined(l))return r(void 0,l)}else return r(void 0,u)}function c(l,u,d){if(d in e)return r(l,u);if(d 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,u,d)=>s(kc(l),kc(u),d,!0)};return ee.forEach(Object.keys(Object.assign({},n,e)),function(u){const d=i[u]||s,f=d(n[u],e[u],u);ee.isUndefined(f)&&d!==c||(t[u]=f)}),t}const Bc=n=>{const e=_n({},n);let{data:t,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:a,headers:o,auth:c}=e;e.headers=o=Nt.from(o),e.url=wc(Lc(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,...u]=i?i.split(";").map(d=>d.trim()).filter(Boolean):[];o.setContentType([l||"multipart/form-data",...u].join("; "))}}if(yt.hasStandardBrowserEnv&&(r&&ee.isFunction(r)&&(r=r(e)),r||r!==!1&&z0(e.url))){const l=s&&a&&H0.read(a);l&&o.set(s,l)}return e},K0=typeof XMLHttpRequest<"u"&&function(n){return new Promise(function(t,r){const s=Bc(n);let a=s.data;const o=Nt.from(s.headers).normalize();let{responseType:c,onUploadProgress:i,onDownloadProgress:l}=s,u,d,f,m,g;function v(){m&&m(),g&&g(),s.cancelToken&&s.cancelToken.unsubscribe(u),s.signal&&s.signal.removeEventListener("abort",u)}let x=new XMLHttpRequest;x.open(s.method.toUpperCase(),s.url,!0),x.timeout=s.timeout;function T(){if(!x)return;const R=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:R,config:n,request:x};Cc(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||Sc;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,g]=Ds(l,!0),x.addEventListener("progress",f)),i&&x.upload&&([d,m]=Ds(i),x.upload.addEventListener("progress",d),x.upload.addEventListener("loadend",m)),(s.cancelToken||s.signal)&&(u=R=>{x&&(r(!R||R.type?new fr(null,n,x):R),x.abort(),x=null)},s.cancelToken&&s.cancelToken.subscribe(u),s.signal&&(s.signal.aborted?u():s.signal.addEventListener("abort",u)));const S=V0(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)})},X0=(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 u=l instanceof Error?l:this.reason;r.abort(u instanceof Me?u:new fr(u instanceof Error?u.message:u))}};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}},Y0=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},Z0=async function*(n,e){for await(const t of Q0(n))yield*Y0(t,e)},Q0=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()}},Pc=(n,e,t,r)=>{const s=Z0(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:u}=await s.next();if(l){c(),i.close();return}let d=u.byteLength;if(t){let f=a+=d;t(f)}i.enqueue(new Uint8Array(u))}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",Fc=Us&&typeof ReadableStream=="function",J0=Us&&(typeof TextEncoder=="function"?(n=>e=>n.encode(e))(new TextEncoder):async n=>new Uint8Array(await new Response(n).arrayBuffer())),Mc=(n,...e)=>{try{return!!n(...e)}catch{return!1}},ey=Fc&&Mc(()=>{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}),Dc=64*1024,ho=Fc&&Mc(()=>ee.isReadableStream(new Response("").body)),js={stream:ho&&(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 ty=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 J0(n)).byteLength},ny=async(n,e)=>{const t=ee.toFiniteNumber(n.getContentLength());return t??ty(e)},po={http:A0,xhr:K0,fetch:Us&&(async n=>{let{url:e,method:t,data:r,signal:s,cancelToken:a,timeout:o,onDownloadProgress:c,onUploadProgress:i,responseType:l,headers:u,withCredentials:d="same-origin",fetchOptions:f}=Bc(n);l=l?(l+"").toLowerCase():"text";let m=X0([s,a&&a.toAbortSignal()],o),g;const v=m&&m.unsubscribe&&(()=>{m.unsubscribe()});let x;try{if(i&&ey&&t!=="get"&&t!=="head"&&(x=await ny(u,r))!==0){let M=new Request(e,{method:"POST",body:r,duplex:"half"}),z;if(ee.isFormData(r)&&(z=M.headers.get("content-type"))&&u.setContentType(z),M.body){const[X,H]=Rc(x,Ds(Ic(i)));r=Pc(M.body,Dc,X,H)}}ee.isString(d)||(d=d?"include":"omit");const T="credentials"in Request.prototype;g=new Request(e,{...f,signal:m,method:t.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:T?d:void 0});let S=await fetch(g);const R=ho&&(l==="stream"||l==="response");if(ho&&(c||R&&v)){const M={};["status","statusText","headers"].forEach(re=>{M[re]=S[re]});const z=ee.toFiniteNumber(S.headers.get("content-length")),[X,H]=c&&Rc(z,Ds(Ic(c),!0))||[];S=new Response(Pc(S.body,Dc,X,()=>{H&&H(),v&&v()}),M)}l=l||"text";let F=await js[ee.findKey(js,l)||"text"](S,n);return!R&&v&&v(),await new Promise((M,z)=>{Cc(M,z,{data:F,headers:Nt.from(S.headers),status:S.status,statusText:S.statusText,config:n,request:g})})}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,g),{cause:T.cause||T}):Me.from(T,T&&T.code,n,g)}})};ee.forEach(po,(n,e)=>{if(n){try{Object.defineProperty(n,"name",{value:e})}catch{}Object.defineProperty(n,"adapterName",{value:e})}});const Uc=n=>`- ${n}`,ry=n=>ee.isFunction(n)||n===null||n===!1,jc={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,!ry(t)&&(r=po[(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 :
|
|
52
|
+
`,{[vt.blotName]:t}),o.insert(c)),a)],new WeakMap)}}Wl.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",to()),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 Un{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 Un{}Ee(nn,"blotName","table-body"),Ee(nn,"tagName","TBODY");class cr extends Un{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=to(),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 to(){return`row-${Math.random().toString(36).slice(2,6)}`}class f1 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:to()})},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 Kl=fn("quill:toolbar");class no 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"),d1(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)){Kl.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){Kl.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())}})}}no.DEFAULTS={};function Xl(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 d1(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")Xl(r,s);else{const a=Object.keys(s)[0],o=s[a];Array.isArray(o)?h1(r,a,o):Xl(r,a,o)}}),n.appendChild(r)})}function h1(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)}no.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 p1='<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>',m1='<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>',v1='<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>',y1='<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>',b1='<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>',x1='<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>',E1='<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>',Yl='<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:{"":p1,center:g1,right:m1,justify:v1},background:y1,blockquote:b1,bold:x1,clean:E1,code:Yl,"code-block":Yl,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>'},w1='<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 Zl=0;function Ql(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"),Ql(this.label,"aria-expanded"),Ql(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=w1,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-${Zl}`,Zl+=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 Jl 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 ec 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 A1=n=>{const{overflowY:e}=getComputedStyle(n,null);return e!=="visible"&&e!=="clip"};class tc{constructor(e,t){this.quill=e,this.boundsContainer=t||document.body,this.root=e.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,A1(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 S1=[!1,"center","right","justify"],T1=["#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"],N1=[!1,"serif","monospace"],O1=["1","2","3",!1],C1=["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,S1),typeof t.align=="object"))return new ec(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,T1,a==="background"?"#ffffff":"#000000"),new Jl(s,t[a])}return s.querySelector("option")==null&&(s.classList.contains("ql-font")?_r(s,N1):s.classList.contains("ql-header")?_r(s,O1):s.classList.contains("ql-size")&&_r(s,C1)),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 nc extends tc{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=R1(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 R1(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 I1=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]];class rc extends nc{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),u=Math.min(i.length()-1,s.index+s.length-l),h=this.quill.getBounds(new Dn(l,u));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(rc,"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 sc extends Vr{constructor(e,t){t.modules.toolbar!=null&&t.modules.toolbar.container==null&&(t.modules.toolbar.container=I1),super(e,t),this.quill.container.classList.add("ql-bubble")}extendToolbar(e){this.tooltip=new rc(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))}}sc.DEFAULTS=wn({},Vr.DEFAULTS,{modules:{toolbar:{handlers:{link(n){n?this.quill.theme.tooltip.edit():this.quill.format("link",!1,le.sources.USER)}}}}});const L1=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];class ic extends nc{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(Nn,t.index);if(a!=null){this.linkRange=new Dn(t.index-o,a.length());const c=Nn.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(ic,"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 oc extends Vr{constructor(e,t){t.modules.toolbar!=null&&t.modules.toolbar.container==null&&(t.modules.toolbar.container=L1),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 ic(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)}))}}oc.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":Nl,"attributors/class/align":Al,"attributors/class/background":bv,"attributors/class/color":yv,"attributors/class/direction":Ol,"attributors/class/font":Il,"attributors/class/size":kl,"attributors/style/align":Sl,"attributors/style/background":$i,"attributors/style/color":ji,"attributors/style/direction":Cl,"attributors/style/font":Ll,"attributors/style/size":Bl},!0),le.register({"formats/align":Al,"formats/direction":Ol,"formats/indent":c1,"formats/background":$i,"formats/color":ji,"formats/font":Il,"formats/size":kl,"formats/blockquote":Ki,"formats/code-block":vt,"formats/header":Xi,"formats/list":Mr,"formats/bold":Dr,"formats/code":Vi,"formats/italic":Yi,"formats/link":Nn,"formats/script":Zi,"formats/strike":Qi,"formats/underline":Ji,"formats/formula":Os,"formats/image":eo,"formats/video":Cs,"modules/syntax":Wl,"modules/table":f1,"modules/toolbar":no,"themes/bubble":sc,"themes/snow":oc,"ui/icons":$r,"ui/picker":Rs,"ui/icon-picker":ec,"ui/color-picker":Jl,"ui/tooltip":tc},!0);const k1={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=d.ref(null);let r=null;return d.onMounted(()=>{r=new le(t.value,n.options),r.root.innerHTML=n.modelValue,r.on("text-change",()=>{e("update:modelValue",r.root.innerHTML)})}),d.watch(()=>n.modelValue,s=>{r&&r.root.innerHTML!==s&&(r.root.innerHTML=s)}),d.onBeforeUnmount(()=>{r=null}),{editorContainer:t}}},B1={class:"q-editor"},P1={ref:"editorContainer"};function F1(n,e,t,r,s,a){return d.openBlock(),d.createElementBlock("div",B1,[d.createElementVNode("div",P1,null,512)])}const M1=es(k1,[["render",F1]]),D1={class:"rounded-xl bg-gray-50 px-6 py-5"},U1={key:0,class:"pb-5"},j1={class:"text-lg font-semibold text-gray-900"},$1={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)=>(d.openBlock(),d.createElementBlock("div",D1,[n.title?(d.openBlock(),d.createElementBlock("div",U1,[d.createElementVNode("div",j1,d.toDisplayString(n.title),1),n.supporting_text?(d.openBlock(),d.createElementBlock("div",$1,d.toDisplayString(n.supporting_text),1)):d.createCommentVNode("",!0)])):d.createCommentVNode("",!0),d.renderSlot(e.$slots,"default")]))}};function ac(n,e){return function(){return n.apply(e,arguments)}}const{toString:V1}=Object.prototype,{getPrototypeOf:ro}=Object,{iterator:Is,toStringTag:lc}=Symbol,Ls=(n=>e=>{const t=V1.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 _1(n){return n!==null&&!zr(n)&&n.constructor!==null&&!zr(n.constructor)&&Tt(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const cc=Wt("ArrayBuffer");function q1(n){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(n):e=n&&n.buffer&&cc(n.buffer),e}const z1=ks("string"),Tt=ks("function"),uc=ks("number"),Bs=n=>n!==null&&typeof n=="object",H1=n=>n===!0||n===!1,Ps=n=>{if(Ls(n)!=="object")return!1;const e=ro(n);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(lc in n)&&!(Is in n)},G1=Wt("Date"),W1=Wt("File"),K1=Wt("Blob"),X1=Wt("FileList"),Y1=n=>Bs(n)&&Tt(n.pipe),Z1=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]"))},Q1=Wt("URLSearchParams"),[J1,e0,t0,n0]=["ReadableStream","Request","Response","Headers"].map(Wt),r0=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 c;for(r=0;r<o;r++)c=a[r],e.call(null,n[c],c,n)}}function fc(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 Vn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,dc=n=>!zr(n)&&n!==Vn;function so(){const{caseless:n}=dc(this)&&this||{},e={},t=(r,s)=>{const a=n&&fc(e,s)||s;Ps(e[a])&&Ps(r)?e[a]=so(e[a],r):Ps(r)?e[a]=so({},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 s0=(n,e,t,{allOwnKeys:r}={})=>(Hr(e,(s,a)=>{t&&Tt(s)?n[a]=ac(s,t):n[a]=s},{allOwnKeys:r}),n),i0=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),o0=(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)},a0=(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&&ro(n)}while(n&&(!t||t(n,e))&&n!==Object.prototype);return e},l0=(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},c0=n=>{if(!n)return null;if(ur(n))return n;let e=n.length;if(!uc(e))return null;const t=new Array(e);for(;e-- >0;)t[e]=n[e];return t},u0=(n=>e=>n&&e instanceof n)(typeof Uint8Array<"u"&&ro(Uint8Array)),f0=(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])}},d0=(n,e)=>{let t;const r=[];for(;(t=n.exec(e))!==null;)r.push(t);return r},h0=Wt("HTMLFormElement"),p0=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,r,s){return r.toUpperCase()+s}),hc=(({hasOwnProperty:n})=>(e,t)=>n.call(e,t))(Object.prototype),g0=Wt("RegExp"),pc=(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)},m0=n=>{pc(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+"'")})}})},v0=(n,e)=>{const t={},r=s=>{s.forEach(a=>{t[a]=!0})};return ur(n)?r(n):r(String(n).split(e)),t},y0=()=>{},b0=(n,e)=>n!=null&&Number.isFinite(n=+n)?n:e;function x0(n){return!!(n&&Tt(n.append)&&n[lc]==="FormData"&&n[Is])}const E0=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,c)=>{const i=t(o,s+1);!zr(i)&&(a[c]=i)}),e[s]=void 0,a}}return r};return t(n,0)},w0=Wt("AsyncFunction"),A0=n=>n&&(Bs(n)||Tt(n))&&Tt(n.then)&&Tt(n.catch),gc=((n,e)=>n?setImmediate:e?((t,r)=>(Vn.addEventListener("message",({source:s,data:a})=>{s===Vn&&a===t&&r.length&&r.shift()()},!1),s=>{r.push(s),Vn.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t))(typeof setImmediate=="function",Tt(Vn.postMessage)),S0=typeof queueMicrotask<"u"?queueMicrotask.bind(Vn):typeof process<"u"&&process.nextTick||gc,ee={isArray:ur,isArrayBuffer:cc,isBuffer:_1,isFormData:Z1,isArrayBufferView:q1,isString:z1,isNumber:uc,isBoolean:H1,isObject:Bs,isPlainObject:Ps,isReadableStream:J1,isRequest:e0,isResponse:t0,isHeaders:n0,isUndefined:zr,isDate:G1,isFile:W1,isBlob:K1,isRegExp:g0,isFunction:Tt,isStream:Y1,isURLSearchParams:Q1,isTypedArray:u0,isFileList:X1,forEach:Hr,merge:so,extend:s0,trim:r0,stripBOM:i0,inherits:o0,toFlatObject:a0,kindOf:Ls,kindOfTest:Wt,endsWith:l0,toArray:c0,forEachEntry:f0,matchAll:d0,isHTMLForm:h0,hasOwnProperty:hc,hasOwnProp:hc,reduceDescriptors:pc,freezeMethods:m0,toObjectSet:v0,toCamelCase:p0,noop:y0,toFiniteNumber:b0,findKey:fc,global:Vn,isContextDefined:dc,isSpecCompliantForm:x0,toJSONObject:E0,isAsyncFn:w0,isThenable:A0,setImmediate:gc,asap:S0,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 mc=Me.prototype,vc={};["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=>{vc[n]={value:n}}),Object.defineProperties(Me,vc),Object.defineProperty(mc,"isAxiosError",{value:!0}),Me.from=(n,e,t,r,s,a)=>{const o=Object.create(mc);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 T0=null;function io(n){return ee.isPlainObject(n)||ee.isArray(n)}function yc(n){return ee.endsWith(n,"[]")?n.slice(0,-2):n}function bc(n,e,t){return n?n.concat(e).map(function(s,a){return s=yc(s),!t&&a?"["+s+"]":s}).join(t?".":""):e}function N0(n){return ee.isArray(n)&&!n.some(io)}const O0=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||u,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(g){if(g===null)return"";if(ee.isDate(g))return g.toISOString();if(!i&&ee.isBlob(g))throw new Me("Blob is not supported. Use a Buffer instead.");return ee.isArrayBuffer(g)||ee.isTypedArray(g)?i&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function u(g,v,x){let T=g;if(g&&!x&&typeof g=="object"){if(ee.endsWith(v,"{}"))v=r?v:v.slice(0,-2),g=JSON.stringify(g);else if(ee.isArray(g)&&N0(g)||(ee.isFileList(g)||ee.endsWith(v,"[]"))&&(T=ee.toArray(g)))return v=yc(v),T.forEach(function(I,F){!(ee.isUndefined(I)||I===null)&&e.append(o===!0?bc([v],F,a):o===null?v:v+"[]",l(I))}),!1}return io(g)?!0:(e.append(bc(x,v,a),l(g)),!1)}const h=[],f=Object.assign(O0,{defaultVisitor:u,convertValue:l,isVisitable:io});function m(g,v){if(!ee.isUndefined(g)){if(h.indexOf(g)!==-1)throw Error("Circular reference detected in "+v.join("."));h.push(g),ee.forEach(g,function(T,S){(!(ee.isUndefined(T)||T===null)&&s.call(e,T,ee.isString(S)?S.trim():S,v,f))===!0&&m(T,v?v.concat(S):[S])}),h.pop()}}if(!ee.isObject(n))throw new TypeError("data must be an object");return m(n),e}function xc(n){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function oo(n,e){this._pairs=[],n&&Fs(n,this,e)}const Ec=oo.prototype;Ec.append=function(e,t){this._pairs.push([e,t])},Ec.toString=function(e){const t=e?function(r){return e.call(this,r,xc)}:xc;return this._pairs.map(function(s){return t(s[0])+"="+t(s[1])},"").join("&")};function C0(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function wc(n,e,t){if(!e)return n;const r=t&&t.encode||C0;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 oo(e,t).toString(r),a){const o=n.indexOf("#");o!==-1&&(n=n.slice(0,o)),n+=(n.indexOf("?")===-1?"?":"&")+a}return n}class Ac{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 Sc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},R0={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:oo,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},ao=typeof window<"u"&&typeof document<"u",lo=typeof navigator=="object"&&navigator||void 0,I0=ao&&(!lo||["ReactNative","NativeScript","NS"].indexOf(lo.product)<0),L0=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",k0=ao&&window.location.href||"http://localhost",yt={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ao,hasStandardBrowserEnv:I0,hasStandardBrowserWebWorkerEnv:L0,navigator:lo,origin:k0},Symbol.toStringTag,{value:"Module"})),...R0};function B0(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 P0(n){return ee.matchAll(/\w+|\[(\w*)]/g,n).map(e=>e[0]==="[]"?"":e[1]||e[0])}function F0(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 Tc(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]=F0(s[o])),!c)}if(ee.isFormData(n)&&ee.isFunction(n.entries)){const t={};return ee.forEachEntry(n,(r,s)=>{e(P0(r),s,t,0)}),t}return null}function M0(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:Sc,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(Tc(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 B0(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),M0(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(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=>{Gr.headers[n]={}});const D0=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"]),U0=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]&&D0[t])&&(t==="set-cookie"?e[t]?e[t].push(r):e[t]=[r]:e[t]=e[t]?e[t]+", "+r:r)}),e},Nc=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 j0(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 $0=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function co(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 V0(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r)}function _0(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 u=Wr(i);if(!u)throw new Error("header name must be a non-empty string");const h=ee.findKey(s,u);(!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,u)=>a(l,u,i));if(ee.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(ee.isString(e)&&(e=e.trim())&&!$0(e))o(U0(e),t);else if(ee.isObject(e)&&ee.isIterable(e)){let c={},i,l;for(const u of e){if(!ee.isArray(u))throw TypeError("Object iterator must return a key-value pair");c[l=u[0]]=(i=c[l])?ee.isArray(i)?[...i,u[1]]:[i,u[1]]:u[1]}o(c,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 j0(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||co(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 c=ee.findKey(r,o);c&&(!t||co(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||co(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?V0(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[Nc]=this[Nc]={accessors:{}}).accessors,s=this.prototype;function a(o){const c=Wr(o);r[c]||(_0(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 uo(n,e){const t=this||Gr,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 Oc(n){return!!(n&&n.__CANCEL__)}function fr(n,e,t){Me.call(this,n??"canceled",Me.ERR_CANCELED,e,t),this.name="CanceledError"}ee.inherits(fr,Me,{__CANCEL__:!0});function Cc(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 q0(n){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return e&&e[1]||""}function z0(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(),u=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 m=u&&l-u;return m?Math.round(f*1e3/m):void 0}}function H0(n,e){let t=0,r=1e3/e,s,a;const o=(l,u=Date.now())=>{t=u,s=null,a&&(clearTimeout(a),a=null),n.apply(null,l)};return[(...l)=>{const u=Date.now(),h=u-t;h>=r?o(l,u):(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=z0(50,250);return H0(a=>{const o=a.loaded,c=a.lengthComputable?a.total:void 0,i=o-r,l=s(i),u=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&&u?(c-o)/l:void 0,event:a,lengthComputable:c!=null,[e?"download":"upload"]:!0};n(h)},t)},Rc=(n,e)=>{const t=n!=null;return[r=>e[0]({lengthComputable:t,total:n,loaded:r}),e[1]]},Ic=n=>(...e)=>ee.asap(()=>n(...e)),G0=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,W0=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 K0(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function X0(n,e){return e?n.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):n}function Lc(n,e,t){let r=!K0(e);return n&&(r||t==!1)?X0(n,e):e}const kc=n=>n instanceof Nt?{...n}:n;function _n(n,e){e=e||{};const t={};function r(l,u,h,f){return ee.isPlainObject(l)&&ee.isPlainObject(u)?ee.merge.call({caseless:f},l,u):ee.isPlainObject(u)?ee.merge({},u):ee.isArray(u)?u.slice():u}function s(l,u,h,f){if(ee.isUndefined(u)){if(!ee.isUndefined(l))return r(void 0,l,h,f)}else return r(l,u,h,f)}function a(l,u){if(!ee.isUndefined(u))return r(void 0,u)}function o(l,u){if(ee.isUndefined(u)){if(!ee.isUndefined(l))return r(void 0,l)}else return r(void 0,u)}function c(l,u,h){if(h in e)return r(l,u);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,u,h)=>s(kc(l),kc(u),h,!0)};return ee.forEach(Object.keys(Object.assign({},n,e)),function(u){const h=i[u]||s,f=h(n[u],e[u],u);ee.isUndefined(f)&&h!==c||(t[u]=f)}),t}const Bc=n=>{const e=_n({},n);let{data:t,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:a,headers:o,auth:c}=e;e.headers=o=Nt.from(o),e.url=wc(Lc(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,...u]=i?i.split(";").map(h=>h.trim()).filter(Boolean):[];o.setContentType([l||"multipart/form-data",...u].join("; "))}}if(yt.hasStandardBrowserEnv&&(r&&ee.isFunction(r)&&(r=r(e)),r||r!==!1&&G0(e.url))){const l=s&&a&&W0.read(a);l&&o.set(s,l)}return e},Y0=typeof XMLHttpRequest<"u"&&function(n){return new Promise(function(t,r){const s=Bc(n);let a=s.data;const o=Nt.from(s.headers).normalize();let{responseType:c,onUploadProgress:i,onDownloadProgress:l}=s,u,h,f,m,g;function v(){m&&m(),g&&g(),s.cancelToken&&s.cancelToken.unsubscribe(u),s.signal&&s.signal.removeEventListener("abort",u)}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};Cc(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||Sc;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,g]=Ds(l,!0),x.addEventListener("progress",f)),i&&x.upload&&([h,m]=Ds(i),x.upload.addEventListener("progress",h),x.upload.addEventListener("loadend",m)),(s.cancelToken||s.signal)&&(u=I=>{x&&(r(!I||I.type?new fr(null,n,x):I),x.abort(),x=null)},s.cancelToken&&s.cancelToken.subscribe(u),s.signal&&(s.signal.aborted?u():s.signal.addEventListener("abort",u)));const S=q0(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)})},Z0=(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 u=l instanceof Error?l:this.reason;r.abort(u instanceof Me?u:new fr(u instanceof Error?u.message:u))}};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}},Q0=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},J0=async function*(n,e){for await(const t of ey(n))yield*Q0(t,e)},ey=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()}},Pc=(n,e,t,r)=>{const s=J0(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:u}=await s.next();if(l){c(),i.close();return}let h=u.byteLength;if(t){let f=a+=h;t(f)}i.enqueue(new Uint8Array(u))}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",Fc=Us&&typeof ReadableStream=="function",ty=Us&&(typeof TextEncoder=="function"?(n=>e=>n.encode(e))(new TextEncoder):async n=>new Uint8Array(await new Response(n).arrayBuffer())),Mc=(n,...e)=>{try{return!!n(...e)}catch{return!1}},ny=Fc&&Mc(()=>{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}),Dc=64*1024,fo=Fc&&Mc(()=>ee.isReadableStream(new Response("").body)),js={stream:fo&&(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 ry=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 ty(n)).byteLength},sy=async(n,e)=>{const t=ee.toFiniteNumber(n.getContentLength());return t??ry(e)},ho={http:T0,xhr:Y0,fetch:Us&&(async n=>{let{url:e,method:t,data:r,signal:s,cancelToken:a,timeout:o,onDownloadProgress:c,onUploadProgress:i,responseType:l,headers:u,withCredentials:h="same-origin",fetchOptions:f}=Bc(n);l=l?(l+"").toLowerCase():"text";let m=Z0([s,a&&a.toAbortSignal()],o),g;const v=m&&m.unsubscribe&&(()=>{m.unsubscribe()});let x;try{if(i&&ny&&t!=="get"&&t!=="head"&&(x=await sy(u,r))!==0){let M=new Request(e,{method:"POST",body:r,duplex:"half"}),z;if(ee.isFormData(r)&&(z=M.headers.get("content-type"))&&u.setContentType(z),M.body){const[X,H]=Rc(x,Ds(Ic(i)));r=Pc(M.body,Dc,X,H)}}ee.isString(h)||(h=h?"include":"omit");const T="credentials"in Request.prototype;g=new Request(e,{...f,signal:m,method:t.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:T?h:void 0});let S=await fetch(g);const I=fo&&(l==="stream"||l==="response");if(fo&&(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&&Rc(z,Ds(Ic(c),!0))||[];S=new Response(Pc(S.body,Dc,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)=>{Cc(M,z,{data:F,headers:Nt.from(S.headers),status:S.status,statusText:S.statusText,config:n,request:g})})}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,g),{cause:T.cause||T}):Me.from(T,T&&T.code,n,g)}})};ee.forEach(ho,(n,e)=>{if(n){try{Object.defineProperty(n,"name",{value:e})}catch{}Object.defineProperty(n,"adapterName",{value:e})}});const Uc=n=>`- ${n}`,iy=n=>ee.isFunction(n)||n===null||n===!1,jc={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,!iy(t)&&(r=ho[(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(Uc).join(`
|
|
57
|
-
`):" "+Uc(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:
|
|
58
|
-
`+a):r.stack=a}catch{}}throw r}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=_n(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"],g=>{delete a[g]}),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 u,d=0,f;if(!i){const g=[$c.bind(this),void 0];for(g.unshift.apply(g,c),g.push.apply(g,l),f=g.length,u=Promise.resolve(t);d<f;)u=u.then(g[d++],g[d++]);return u}f=c.length;let m=t;for(d=0;d<f;){const g=c[d++],v=c[d++];try{m=g(m)}catch(x){v.call(this,x);break}}try{u=$c.call(this,m)}catch(g){return Promise.reject(g)}for(d=0,f=l.length;d<f;)u=u.then(l[d++],l[d++]);return u}getUri(e){e=_n(this.defaults,e);const t=Lc(e.baseURL,e.url,e.allowAbsoluteUrls);return wc(t,e.params,e.paramsSerializer)}};ee.forEach(["delete","get","head","options"],function(e){qn.prototype[e]=function(t,r){return this.request(_n(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(_n(c||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:o}))}}qn.prototype[e]=t(),qn.prototype[e+"Form"]=t(!0)});let iy=class Wc{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 fr(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 Wc(function(s){e=s}),cancel:e}}};function oy(n){return function(t){return n.apply(null,t)}}function ay(n){return ee.isObject(n)&&n.isAxiosError===!0}const mo={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(mo).forEach(([n,e])=>{mo[e]=n});function qc(n){const e=new qn(n),t=ac(qn.prototype.request,e);return ee.extend(t,qn.prototype,e,{allOwnKeys:!0}),ee.extend(t,e,null,{allOwnKeys:!0}),t.create=function(s){return qc(_n(n,s))},t}const nt=qc(Gr);nt.Axios=qn,nt.CanceledError=fr,nt.CancelToken=iy,nt.isCancel=Oc,nt.VERSION=Vc,nt.toFormData=Fs,nt.AxiosError=Me,nt.Cancel=nt.CanceledError,nt.all=function(e){return Promise.all(e)},nt.spread=oy,nt.isAxiosError=ay,nt.mergeConfig=_n,nt.AxiosHeaders=Nt,nt.formToJSON=n=>Tc(ee.isHTMLForm(n)?new FormData(n):n),nt.getAdapter=jc.getAdapter,nt.HttpStatusCode=mo,nt.default=nt;const{Axios:Tb,AxiosError:Nb,CanceledError:Ob,isCancel:Cb,CancelToken:Rb,VERSION:Ib,all:Lb,Cancel:kb,isAxiosError:Bb,spread:Pb,toFormData:Fb,AxiosHeaders:Mb,HttpStatusCode:Db,formToJSON:Ub,getAdapter:jb,mergeConfig:$b}=nt;var vo={exports:{}},zc;function ly(){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(u){if(!l(u)&&u!==null)throw TypeError("Can't set "+String(u)+" as a prototype");return u}},1223:function(o,c,i){var l=i(5112),u=i(30),d=i(3070),f=l("unscopables"),m=Array.prototype;m[f]==null&&d.f(m,f,{configurable:!0,value:u(null)}),o.exports=function(g){m[f][g]=!0}},1530:function(o,c,i){var l=i(8710).charAt;o.exports=function(u,d,f){return d+(f?l(u,d).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(u){if(!l(u))throw TypeError(String(u)+" is not an object");return u}},4019:function(o){o.exports=typeof ArrayBuffer<"u"&&typeof DataView<"u"},260:function(o,c,i){var l=i(4019),u=i(9781),d=i(7854),f=i(111),m=i(6656),g=i(648),v=i(8880),x=i(1320),T=i(3070).f,S=i(9518),R=i(7674),F=i(5112),M=i(9711),z=d.Int8Array,X=z&&z.prototype,H=d.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&&!!R&&g(d.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},ge=function(N){if(!f(N))return!1;var I=g(N);return I==="DataView"||m(J,I)||m(te,I)},me=function(ye){if(!f(ye))return!1;var N=g(ye);return m(J,N)||m(te,N)},ve=function(ye){if(me(ye))return ye;throw TypeError("Target is not a typed array")},xe=function(ye){if(R){if(O.call(G,ye))return ye}else for(var N in J)if(m(J,q)){var I=d[N];if(I&&(ye===I||O.call(I,ye)))return ye}throw TypeError("Target is not a typed array constructor")},he=function(ye,N,I){if(u){if(I)for(var w in J){var C=d[w];C&&m(C.prototype,ye)&&delete C.prototype[ye]}(!E[ye]||I)&&x(E,ye,I?N:$&&X[ye]||N)}},Oe=function(ye,N,I){var w,C;if(u){if(R){if(I)for(w in J)C=d[w],C&&m(C,ye)&&delete C[ye];if(!G[ye]||I)try{return x(G,ye,I?N:$&&z[ye]||N)}catch{}else return}for(w in J)C=d[w],C&&(!C[ye]||I)&&x(C,ye,N)}};for(q in J)d[q]||($=!1);if((!$||typeof G!="function"||G===Function.prototype)&&(G=function(){throw TypeError("Incorrect invocation")},$))for(q in J)d[q]&&R(d[q],G);if((!$||!E||E===P)&&(E=G.prototype,$))for(q in J)d[q]&&R(d[q].prototype,E);if($&&S(re)!==E&&R(re,E),u&&!m(E,_)){K=!0,T(E,_,{get:function(){return f(this)?this[j]:void 0}});for(q in J)d[q]&&v(d[q],j,q)}o.exports={NATIVE_ARRAY_BUFFER_VIEWS:$,TYPED_ARRAY_TAG:K&&j,aTypedArray:ve,aTypedArrayConstructor:xe,exportTypedArrayMethod:he,exportTypedArrayStaticMethod:Oe,isView:ge,isTypedArray:me,TypedArray:G,TypedArrayPrototype:E}},3331:function(o,c,i){var l=i(7854),u=i(9781),d=i(4019),f=i(8880),m=i(2248),g=i(7293),v=i(5787),x=i(9958),T=i(7466),S=i(7067),R=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[_],ge=te&&te[j],me=Object.prototype,ve=l.RangeError,xe=R.pack,he=R.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]},I=function(Q){return Q[3]<<24|Q[2]<<16|Q[1]<<8|Q[0]},w=function(Q){return xe(Q,23,4)},C=function(Q){return xe(Q,52,8)},y=function(Q,ne){X(Q[j],ne,{get:function(){return E(this)[ne]}})},b=function(Q,ne,oe,de){var we=S(oe),De=E(Q);if(we+ne>De.byteLength)throw ve(K);var Ge=E(De.buffer).bytes,je=we+De.byteOffset,Be=Ge.slice(je,je+ne);return de?Be:Be.reverse()},L=function(Q,ne,oe,de,we,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=de(+we),it=0;it<ne;it++)Be[$e+it]=rt[De?it:ne-it-1]};if(!d)J=function(ne){v(this,J,O);var oe=S(ne);P(this,{bytes:H.call(new Array(oe),0),byteLength:oe}),u||(this.byteLength=oe)},te=function(ne,oe,de){v(this,te,_),v(ne,J,_);var we=E(ne).byteLength,De=x(oe);if(De<0||De>we)throw ve("Wrong offset");if(de=de===void 0?we-De:T(de),De+de>we)throw ve($);P(this,{buffer:ne,byteLength:de,byteOffset:De}),u||(this.buffer=ne,this.byteLength=de,this.byteOffset=De)},u&&(y(J,"byteLength"),y(te,"buffer"),y(te,"byteLength"),y(te,"byteOffset")),m(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 I(b(this,4,ne,arguments.length>1?arguments[1]:void 0))},getUint32:function(ne){return I(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,w,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(!g(function(){q(1)})||!g(function(){new q(-1)})||g(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(ge)!==me&&M(ge,me);var Z=new te(new J(2)),Y=ge.setInt8;Z.setInt8(0,2147483648),Z.setInt8(1,2147483649),(Z.getInt8(0)||!Z.getInt8(1))&&m(ge,{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),u=i(1400),d=i(7466),f=Math.min;o.exports=[].copyWithin||function(g,v){var x=l(this),T=d(x.length),S=u(g,T),R=u(v,T),F=arguments.length>2?arguments[2]:void 0,M=f((F===void 0?T:u(F,T))-R,T-S),z=1;for(R<S&&S<R+M&&(z=-1,R+=M-1,S+=M-1);M-- >0;)R in x?x[S]=x[R]:delete x[S],S+=z,R+=z;return x}},1285:function(o,c,i){var l=i(7908),u=i(1400),d=i(7466);o.exports=function(m){for(var g=l(this),v=d(g.length),x=arguments.length,T=u(x>1?arguments[1]:void 0,v),S=x>2?arguments[2]:void 0,R=S===void 0?v:u(S,v);R>T;)g[T++]=m;return g}},8533:function(o,c,i){var l=i(2092).forEach,u=i(9341),d=u("forEach");o.exports=d?[].forEach:function(m){return l(this,m,arguments.length>1?arguments[1]:void 0)}},8457:function(o,c,i){var l=i(9974),u=i(7908),d=i(3411),f=i(7659),m=i(7466),g=i(6135),v=i(1246);o.exports=function(T){var S=u(T),R=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&&!(R==Array&&f(X)))for(P=X.call(S),O=P.next,G=new R;!(E=O.call(P)).done;H++)_=z?d(P,M,[E.value,H],!0):E.value,g(G,H,_);else for(re=m(S.length),G=new R(re);re>H;H++)_=z?M(S[H],H):S[H],g(G,H,_);return G.length=H,G}},1318:function(o,c,i){var l=i(5656),u=i(7466),d=i(1400),f=function(m){return function(g,v,x){var T=l(g),S=u(T.length),R=d(x,S),F;if(m&&v!=v){for(;S>R;)if(F=T[R++],F!=F)return!0}else for(;S>R;R++)if((m||R in T)&&T[R]===v)return m||R||0;return!m&&-1}};o.exports={includes:f(!0),indexOf:f(!1)}},2092:function(o,c,i){var l=i(9974),u=i(8361),d=i(7908),f=i(7466),m=i(5417),g=[].push,v=function(x){var T=x==1,S=x==2,R=x==3,F=x==4,M=x==6,z=x==7,X=x==5||M;return function(H,re,G,E){for(var P=d(H),O=u(P),_=l(re,G,3),j=f(O.length),$=0,K=E||m,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:g.call(q,J)}else switch(x){case 4:return!1;case 7:g.call(q,J)}return M?-1:R||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),u=i(9958),d=i(7466),f=i(9341),m=Math.min,g=[].lastIndexOf,v=!!g&&1/[1].lastIndexOf(1,-0)<0,x=f("lastIndexOf"),T=v||!x;o.exports=T?function(R){if(v)return g.apply(this,arguments)||0;var F=l(this),M=d(F.length),z=M-1;for(arguments.length>1&&(z=m(z,u(arguments[1]))),z<0&&(z=M+z);z>=0;z--)if(z in F&&F[z]===R)return z||0;return-1}:g},1194:function(o,c,i){var l=i(7293),u=i(5112),d=i(7392),f=u("species");o.exports=function(m){return d>=51||!l(function(){var g=[],v=g.constructor={};return v[f]=function(){return{foo:1}},g[m](Boolean).foo!==1})}},9341:function(o,c,i){var l=i(7293);o.exports=function(u,d){var f=[][u];return!!f&&l(function(){f.call(null,d||function(){throw 1},1)})}},3671:function(o,c,i){var l=i(3099),u=i(7908),d=i(8361),f=i(7466),m=function(g){return function(v,x,T,S){l(x);var R=u(v),F=d(R),M=f(R.length),z=g?M-1:0,X=g?-1:1;if(T<2)for(;;){if(z in F){S=F[z],z+=X;break}if(z+=X,g?z<0:M<=z)throw TypeError("Reduce of empty array with no initial value")}for(;g?z>=0:M>z;z+=X)z in F&&(S=x(S,F[z],z,R));return S}};o.exports={left:m(!1),right:m(!0)}},5417:function(o,c,i){var l=i(111),u=i(3157),d=i(5112),f=d("species");o.exports=function(m,g){var v;return u(m)&&(v=m.constructor,typeof v=="function"&&(v===Array||u(v.prototype))?v=void 0:l(v)&&(v=v[f],v===null&&(v=void 0))),new(v===void 0?Array:v)(g===0?0:g)}},3411:function(o,c,i){var l=i(9670),u=i(9212);o.exports=function(d,f,m,g){try{return g?f(l(m)[0],m[1]):f(m)}catch(v){throw u(d),v}}},7072:function(o,c,i){var l=i(5112),u=l("iterator"),d=!1;try{var f=0,m={next:function(){return{done:!!f++}},return:function(){d=!0}};m[u]=function(){return this},Array.from(m,function(){throw 2})}catch{}o.exports=function(g,v){if(!v&&!d)return!1;var x=!1;try{var T={};T[u]=function(){return{next:function(){return{done:x=!0}}}},g(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),u=i(4326),d=i(5112),f=d("toStringTag"),m=u(function(){return arguments}())=="Arguments",g=function(v,x){try{return v[x]}catch{}};o.exports=l?u:function(v){var x,T,S;return v===void 0?"Undefined":v===null?"Null":typeof(T=g(x=Object(v),f))=="string"?T:m?u(x):(S=u(x))=="Object"&&typeof x.callee=="function"?"Arguments":S}},9920:function(o,c,i){var l=i(6656),u=i(3887),d=i(1236),f=i(3070);o.exports=function(m,g){for(var v=u(g),x=f.f,T=d.f,S=0;S<v.length;S++){var R=v[S];l(m,R)||x(m,R,T(g,R))}}},8544:function(o,c,i){var l=i(7293);o.exports=!l(function(){function u(){}return u.prototype.constructor=null,Object.getPrototypeOf(new u)!==u.prototype})},4994:function(o,c,i){var l=i(3383).IteratorPrototype,u=i(30),d=i(9114),f=i(8003),m=i(7497),g=function(){return this};o.exports=function(v,x,T){var S=x+" Iterator";return v.prototype=u(l,{next:d(1,T)}),f(v,S,!1,!0),m[S]=g,v}},8880:function(o,c,i){var l=i(9781),u=i(3070),d=i(9114);o.exports=l?function(f,m,g){return u.f(f,m,d(1,g))}:function(f,m,g){return f[m]=g,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),u=i(3070),d=i(9114);o.exports=function(f,m,g){var v=l(m);v in f?u.f(f,v,d(0,g)):f[v]=g}},654:function(o,c,i){var l=i(2109),u=i(4994),d=i(9518),f=i(7674),m=i(8003),g=i(8880),v=i(1320),x=i(5112),T=i(1913),S=i(7497),R=i(3383),F=R.IteratorPrototype,M=R.BUGGY_SAFARI_ITERATORS,z=x("iterator"),X="keys",H="values",re="entries",G=function(){return this};o.exports=function(E,P,O,_,j,$,K){u(O,P,_);var q=function(N){if(N===j&&ve)return ve;if(!M&&N in ge)return ge[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,ge=E.prototype,me=ge[z]||ge["@@iterator"]||j&&ge[j],ve=!M&&me||q(j),xe=P=="Array"&&ge.entries||me,he,Oe,ye;if(xe&&(he=d(xe.call(new E)),F!==Object.prototype&&he.next&&(!T&&d(he)!==F&&(f?f(he,F):typeof he[z]!="function"&&g(he,z,G)),m(he,J,!0,!0),T&&(S[J]=G))),j==H&&me&&me.name!==H&&(te=!0,ve=function(){return me.call(this)}),(!T||K)&&ge[z]!==ve&&g(ge,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 ge))&&v(ge,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),u=i(111),d=l.document,f=u(d)&&u(d.createElement);o.exports=function(m){return f?d.createElement(m):{}}},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),u=i(8113),d=l.process,f=d&&d.versions,m=f&&f.v8,g,v;m?(g=m.split("."),v=g[0]+g[1]):u&&(g=u.match(/Edge\/(\d+)/),(!g||g[1]>=74)&&(g=u.match(/Chrome\/(\d+)/),g&&(v=g[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),u=i(1236).f,d=i(8880),f=i(1320),m=i(3505),g=i(9920),v=i(4705);o.exports=function(x,T){var S=x.target,R=x.global,F=x.stat,M,z,X,H,re,G;if(R?z=l:F?z=l[S]||m(S,{}):z=(l[S]||{}).prototype,z)for(X in T){if(re=T[X],x.noTargetGet?(G=u(z,X),H=G&&G.value):H=z[X],M=v(R?X:S+(F?".":"#")+X,x.forced),!M&&H!==void 0){if(typeof re==typeof H)continue;g(re,H)}(x.sham||H&&H.sham)&&d(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),u=i(7293),d=i(5112),f=i(2261),m=i(8880),g=d("species"),v=!u(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=d("replace"),S=function(){return/./[T]?/./[T]("a","$0")==="":!1}(),R=!u(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=d(F),re=!u(function(){var j={};return j[H]=function(){return 7},""[F](j)!=7}),G=re&&!u(function(){var j=!1,$=/a/;return F==="split"&&($={},$.constructor={},$.constructor[g]=function(){return $},$.flags="",$[H]=/./[H]),$.exec=function(){return j=!0,null},$[H](""),!j});if(!re||!G||F==="replace"&&!(v&&x&&!S)||F==="split"&&!R){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&&m(RegExp.prototype[H],"sham",!0)}},9974:function(o,c,i){var l=i(3099);o.exports=function(u,d,f){if(l(u),d===void 0)return u;switch(f){case 0:return function(){return u.call(d)};case 1:return function(m){return u.call(d,m)};case 2:return function(m,g){return u.call(d,m,g)};case 3:return function(m,g,v){return u.call(d,m,g,v)}}return function(){return u.apply(d,arguments)}}},5005:function(o,c,i){var l=i(857),u=i(7854),d=function(f){return typeof f=="function"?f:void 0};o.exports=function(f,m){return arguments.length<2?d(l[f])||d(u[f]):l[f]&&l[f][m]||u[f]&&u[f][m]}},1246:function(o,c,i){var l=i(648),u=i(7497),d=i(5112),f=d("iterator");o.exports=function(m){if(m!=null)return m[f]||m["@@iterator"]||u[l(m)]}},8554:function(o,c,i){var l=i(9670),u=i(1246);o.exports=function(d){var f=u(d);if(typeof f!="function")throw TypeError(String(d)+" is not iterable");return l(f.call(d))}},647:function(o,c,i){var l=i(7908),u=Math.floor,d="".replace,f=/\$([$&'`]|\d\d?|<[^>]*>)/g,m=/\$([$&'`]|\d\d?)/g;o.exports=function(g,v,x,T,S,R){var F=x+g.length,M=T.length,z=m;return S!==void 0&&(S=l(S),z=f),d.call(R,z,function(X,H){var re;switch(H.charAt(0)){case"$":return"$";case"&":return g;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=u(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(u){return u&&u.Math==Math&&u};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),u=i(7293),d=i(317);o.exports=!l&&!u(function(){return Object.defineProperty(d("div"),"a",{get:function(){return 7}}).a!=7})},1179:function(o){var c=Math.abs,i=Math.pow,l=Math.floor,u=Math.log,d=Math.LN2,f=function(g,v,x){var T=new Array(x),S=x*8-v-1,R=(1<<S)-1,F=R>>1,M=v===23?i(2,-24)-i(2,-77):0,z=g<0||g===0&&1/g<0?1:0,X=0,H,re,G;for(g=c(g),g!=g||g===1/0?(re=g!=g?1:0,H=R):(H=l(u(g)/d),g*(G=i(2,-H))<1&&(H--,G*=2),H+F>=1?g+=M/G:g+=M*i(2,1-F),g*G>=2&&(H++,G/=2),H+F>=R?(re=0,H=R):H+F>=1?(re=(g*G-1)*i(2,v),H=H+F):(re=g*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},m=function(g,v){var x=g.length,T=x*8-v-1,S=(1<<T)-1,R=S>>1,F=T-7,M=x-1,z=g[M--],X=z&127,H;for(z>>=7;F>0;X=X*256+g[M],M--,F-=8);for(H=X&(1<<-F)-1,X>>=-F,F+=v;F>0;H=H*256+g[M],M--,F-=8);if(X===0)X=1-R;else{if(X===S)return H?NaN:z?-1/0:1/0;H=H+i(2,v),X=X-R}return(z?-1:1)*H*i(2,X-v)};o.exports={pack:f,unpack:m}},8361:function(o,c,i){var l=i(7293),u=i(4326),d="".split;o.exports=l(function(){return!Object("z").propertyIsEnumerable(0)})?function(f){return u(f)=="String"?d.call(f,""):Object(f)}:Object},9587:function(o,c,i){var l=i(111),u=i(7674);o.exports=function(d,f,m){var g,v;return u&&typeof(g=f.constructor)=="function"&&g!==m&&l(v=g.prototype)&&v!==m.prototype&&u(d,v),d}},2788:function(o,c,i){var l=i(5465),u=Function.toString;typeof l.inspectSource!="function"&&(l.inspectSource=function(d){return u.call(d)}),o.exports=l.inspectSource},9909:function(o,c,i){var l=i(8536),u=i(7854),d=i(111),f=i(8880),m=i(6656),g=i(5465),v=i(6200),x=i(3501),T=u.WeakMap,S,R,F,M=function(P){return F(P)?R(P):S(P,{})},z=function(P){return function(O){var _;if(!d(O)||(_=R(O)).type!==P)throw TypeError("Incompatible receiver, "+P+" required");return _}};if(l){var X=g.state||(g.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},R=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},R=function(P){return m(P,E)?P[E]:{}},F=function(P){return m(P,E)}}o.exports={set:S,get:R,has:F,enforce:M,getterFor:z}},7659:function(o,c,i){var l=i(5112),u=i(7497),d=l("iterator"),f=Array.prototype;o.exports=function(m){return m!==void 0&&(u.Array===m||f[d]===m)}},3157:function(o,c,i){var l=i(4326);o.exports=Array.isArray||function(d){return l(d)=="Array"}},4705:function(o,c,i){var l=i(7293),u=/#|\.prototype\./,d=function(x,T){var S=m[f(x)];return S==v?!0:S==g?!1:typeof T=="function"?l(T):!!T},f=d.normalize=function(x){return String(x).replace(u,".").toLowerCase()},m=d.data={},g=d.NATIVE="N",v=d.POLYFILL="P";o.exports=d},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),u=i(4326),d=i(5112),f=d("match");o.exports=function(m){var g;return l(m)&&((g=m[f])!==void 0?!!g:u(m)=="RegExp")}},9212:function(o,c,i){var l=i(9670);o.exports=function(u){var d=u.return;if(d!==void 0)return l(d.call(u)).value}},3383:function(o,c,i){var l=i(7293),u=i(9518),d=i(8880),f=i(6656),m=i(5112),g=i(1913),v=m("iterator"),x=!1,T=function(){return this},S,R,F;[].keys&&(F=[].keys(),"next"in F?(R=u(u(F)),R!==Object.prototype&&(S=R)):x=!0);var M=S==null||l(function(){var z={};return S[v].call(z)!==z});M&&(S={}),(!g||M)&&!f(S,v)&&d(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),u=i(5112),d=i(1913),f=u("iterator");o.exports=!l(function(){var m=new URL("b?a=1&b=2&c=3","http://a"),g=m.searchParams,v="";return m.pathname="c%20d",g.forEach(function(x,T){g.delete("b"),v+=T+x}),d&&!m.toJSON||!g.sort||m.href!=="http://a/c%20d?a=1&c=3"||g.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!g[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),u=i(2788),d=l.WeakMap;o.exports=typeof d=="function"&&/native code/.test(u(d))},1574:function(o,c,i){var l=i(9781),u=i(7293),d=i(1956),f=i(5181),m=i(5296),g=i(7908),v=i(8361),x=Object.assign,T=Object.defineProperty;o.exports=!x||u(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={},R={},F=Symbol(),M="abcdefghijklmnopqrst";return S[F]=7,M.split("").forEach(function(z){R[z]=z}),x({},S)[F]!=7||d(x({},R)).join("")!=M})?function(R,F){for(var M=g(R),z=arguments.length,X=1,H=f.f,re=m.f;z>X;)for(var G=v(arguments[X++]),E=H?d(G).concat(H(G)):d(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),u=i(6048),d=i(748),f=i(3501),m=i(490),g=i(317),v=i(6200),x=">",T="<",S="prototype",R="script",F=v("IE_PROTO"),M=function(){},z=function(E){return T+R+x+E+T+"/"+R+x},X=function(E){E.write(z("")),E.close();var P=E.parentWindow.Object;return E=null,P},H=function(){var E=g("iframe"),P="java"+R+":",O;return E.style.display="none",m.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=d.length;E--;)delete G[S][d[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?_:u(_,O)}},6048:function(o,c,i){var l=i(9781),u=i(3070),d=i(9670),f=i(1956);o.exports=l?Object.defineProperties:function(g,v){d(g);for(var x=f(v),T=x.length,S=0,R;T>S;)u.f(g,R=x[S++],v[R]);return g}},3070:function(o,c,i){var l=i(9781),u=i(4664),d=i(9670),f=i(7593),m=Object.defineProperty;c.f=l?m:function(v,x,T){if(d(v),x=f(x,!0),d(T),u)try{return m(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),u=i(5296),d=i(9114),f=i(5656),m=i(7593),g=i(6656),v=i(4664),x=Object.getOwnPropertyDescriptor;c.f=l?x:function(S,R){if(S=f(S),R=m(R,!0),v)try{return x(S,R)}catch{}if(g(S,R))return d(!u.f.call(S,R),S[R])}},8006:function(o,c,i){var l=i(6324),u=i(748),d=u.concat("length","prototype");c.f=Object.getOwnPropertyNames||function(m){return l(m,d)}},5181:function(o,c){c.f=Object.getOwnPropertySymbols},9518:function(o,c,i){var l=i(6656),u=i(7908),d=i(6200),f=i(8544),m=d("IE_PROTO"),g=Object.prototype;o.exports=f?Object.getPrototypeOf:function(v){return v=u(v),l(v,m)?v[m]:typeof v.constructor=="function"&&v instanceof v.constructor?v.constructor.prototype:v instanceof Object?g:null}},6324:function(o,c,i){var l=i(6656),u=i(5656),d=i(1318).indexOf,f=i(3501);o.exports=function(m,g){var v=u(m),x=0,T=[],S;for(S in v)!l(f,S)&&l(v,S)&&T.push(S);for(;g.length>x;)l(v,S=g[x++])&&(~d(T,S)||T.push(S));return T}},1956:function(o,c,i){var l=i(6324),u=i(748);o.exports=Object.keys||function(f){return l(f,u)}},5296:function(o,c){var i={}.propertyIsEnumerable,l=Object.getOwnPropertyDescriptor,u=l&&!i.call({1:2},1);c.f=u?function(f){var m=l(this,f);return!!m&&m.enumerable}:i},7674:function(o,c,i){var l=i(9670),u=i(6077);o.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var d=!1,f={},m;try{m=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,m.call(f,[]),d=f instanceof Array}catch{}return function(v,x){return l(v),u(x),d?m.call(v,x):v.__proto__=x,v}}():void 0)},288:function(o,c,i){var l=i(1694),u=i(648);o.exports=l?{}.toString:function(){return"[object "+u(this)+"]"}},3887:function(o,c,i){var l=i(5005),u=i(8006),d=i(5181),f=i(9670);o.exports=l("Reflect","ownKeys")||function(g){var v=u.f(f(g)),x=d.f;return x?v.concat(x(g)):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(u,d,f){for(var m in d)l(u,m,d[m],f);return u}},1320:function(o,c,i){var l=i(7854),u=i(8880),d=i(6656),f=i(3505),m=i(2788),g=i(9909),v=g.get,x=g.enforce,T=String(String).split("String");(o.exports=function(S,R,F,M){var z=M?!!M.unsafe:!1,X=M?!!M.enumerable:!1,H=M?!!M.noTargetGet:!1,re;if(typeof F=="function"&&(typeof R=="string"&&!d(F,"name")&&u(F,"name",R),re=x(F),re.source||(re.source=T.join(typeof R=="string"?R:""))),S===l){X?S[R]=F:f(R,F);return}else z?!H&&S[R]&&(X=!0):delete S[R];X?S[R]=F:u(S,R,F)})(Function.prototype,"toString",function(){return typeof this=="function"&&v(this).source||m(this)})},7651:function(o,c,i){var l=i(4326),u=i(2261);o.exports=function(d,f){var m=d.exec;if(typeof m=="function"){var g=m.call(d,f);if(typeof g!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return g}if(l(d)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return u.call(d,f)}},2261:function(o,c,i){var l=i(7066),u=i(2999),d=RegExp.prototype.exec,f=String.prototype.replace,m=d,g=function(){var S=/a/,R=/b*/g;return d.call(S,"a"),d.call(R,"a"),S.lastIndex!==0||R.lastIndex!==0}(),v=u.UNSUPPORTED_Y||u.BROKEN_CARET,x=/()??/.exec("")[1]!==void 0,T=g||x||v;T&&(m=function(R){var F=this,M,z,X,H,re=v&&F.sticky,G=l.call(F),E=F.source,P=0,O=R;return re&&(G=G.replace("y",""),G.indexOf("g")===-1&&(G+="g"),O=String(R).slice(F.lastIndex),F.lastIndex>0&&(!F.multiline||F.multiline&&R[F.lastIndex-1]!==`
|
|
59
|
-
`)&&(E="(?: "+E+")",O=" "+O,P++),z=new RegExp("^(?:"+E+")",G)),x&&(z=new RegExp("^"+E+"$(?!\\s)",G)),g&&(M=F.lastIndex),X=
|
|
60
|
-
\v\f\r \u2028\u2029\uFEFF`},8264:function(o,c,i){var l=i(2109),u=i(7854),d=i(3331),f=i(6340),m="ArrayBuffer",g=d[m],v=u[m];l({global:!0,forced:v!==g},{ArrayBuffer:g}),f(m)},2222:function(o,c,i){var l=i(2109),u=i(7293),d=i(3157),f=i(111),m=i(7908),g=i(7466),v=i(6135),x=i(5417),T=i(1194),S=i(5112),R=i(7392),F=S("isConcatSpreadable"),M=9007199254740991,z="Maximum allowed index exceeded",X=R>=51||!u(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:d(E)},G=!X||!H;l({target:"Array",proto:!0,forced:G},{concat:function(P){var O=m(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=g(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),u=i(2092).filter,d=i(1194),f=d("filter");l({target:"Array",proto:!0,forced:!f},{filter:function(g){return u(this,g,arguments.length>1?arguments[1]:void 0)}})},2772:function(o,c,i){var l=i(2109),u=i(1318).indexOf,d=i(9341),f=[].indexOf,m=!!f&&1/[1].indexOf(1,-0)<0,g=d("indexOf");l({target:"Array",proto:!0,forced:m||!g},{indexOf:function(x){return m?f.apply(this,arguments)||0:u(this,x,arguments.length>1?arguments[1]:void 0)}})},6992:function(o,c,i){var l=i(5656),u=i(1223),d=i(7497),f=i(9909),m=i(654),g="Array Iterator",v=f.set,x=f.getterFor(g);o.exports=m(Array,"Array",function(T,S){v(this,{type:g,target:l(T),index:0,kind:S})},function(){var T=x(this),S=T.target,R=T.kind,F=T.index++;return!S||F>=S.length?(T.target=void 0,{value:void 0,done:!0}):R=="keys"?{value:F,done:!1}:R=="values"?{value:S[F],done:!1}:{value:[F,S[F]],done:!1}},"values"),d.Arguments=d.Array,u("keys"),u("values"),u("entries")},1249:function(o,c,i){var l=i(2109),u=i(2092).map,d=i(1194),f=d("map");l({target:"Array",proto:!0,forced:!f},{map:function(g){return u(this,g,arguments.length>1?arguments[1]:void 0)}})},7042:function(o,c,i){var l=i(2109),u=i(111),d=i(3157),f=i(1400),m=i(7466),g=i(5656),v=i(6135),x=i(5112),T=i(1194),S=T("slice"),R=x("species"),F=[].slice,M=Math.max;l({target:"Array",proto:!0,forced:!S},{slice:function(X,H){var re=g(this),G=m(re.length),E=f(X,G),P=f(H===void 0?G:H,G),O,_,j;if(d(re)&&(O=re.constructor,typeof O=="function"&&(O===Array||d(O.prototype))?O=void 0:u(O)&&(O=O[R],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),u=i(1400),d=i(9958),f=i(7466),m=i(7908),g=i(5417),v=i(6135),x=i(1194),T=x("splice"),S=Math.max,R=Math.min,F=9007199254740991,M="Maximum allowed length exceeded";l({target:"Array",proto:!0,forced:!T},{splice:function(X,H){var re=m(this),G=f(re.length),E=u(X,G),P=arguments.length,O,_,j,$,K,q;if(P===0?O=_=0:P===1?(O=0,_=G-E):(O=P-2,_=R(S(d(H),0),G-E)),G+O-_>F)throw TypeError(M);for(j=g(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),u=i(3070).f,d=Function.prototype,f=d.toString,m=/^\s*function ([^ (]*)/,g="name";l&&!(g in d)&&u(d,g,{configurable:!0,get:function(){try{return f.call(this).match(m)[1]}catch{return""}}})},489:function(o,c,i){var l=i(2109),u=i(7293),d=i(7908),f=i(9518),m=i(8544),g=u(function(){f(1)});l({target:"Object",stat:!0,forced:g,sham:!m},{getPrototypeOf:function(x){return f(d(x))}})},1539:function(o,c,i){var l=i(1694),u=i(1320),d=i(288);l||u(Object.prototype,"toString",d,{unsafe:!0})},4916:function(o,c,i){var l=i(2109),u=i(2261);l({target:"RegExp",proto:!0,forced:/./.exec!==u},{exec:u})},9714:function(o,c,i){var l=i(1320),u=i(9670),d=i(7293),f=i(7066),m="toString",g=RegExp.prototype,v=g[m],x=d(function(){return v.call({source:"a",flags:"b"})!="/a/b"}),T=v.name!=m;(x||T)&&l(RegExp.prototype,m,function(){var R=u(this),F=String(R.source),M=R.flags,z=String(M===void 0&&R instanceof RegExp&&!("flags"in g)?f.call(R):M);return"/"+F+"/"+z},{unsafe:!0})},8783:function(o,c,i){var l=i(8710).charAt,u=i(9909),d=i(654),f="String Iterator",m=u.set,g=u.getterFor(f);d(String,"String",function(v){m(this,{type:f,string:String(v),index:0})},function(){var x=g(this),T=x.string,S=x.index,R;return S>=T.length?{value:void 0,done:!0}:(R=l(T,S),x.index+=R.length,{value:R,done:!1})})},4723:function(o,c,i){var l=i(7007),u=i(9670),d=i(7466),f=i(4488),m=i(1530),g=i(7651);l("match",1,function(v,x,T){return[function(R){var F=f(this),M=R==null?void 0:R[v];return M!==void 0?M.call(R,F):new RegExp(R)[v](String(F))},function(S){var R=T(x,S,this);if(R.done)return R.value;var F=u(S),M=String(this);if(!F.global)return g(F,M);var z=F.unicode;F.lastIndex=0;for(var X=[],H=0,re;(re=g(F,M))!==null;){var G=String(re[0]);X[H]=G,G===""&&(F.lastIndex=m(M,d(F.lastIndex),z)),H++}return H===0?null:X}]})},5306:function(o,c,i){var l=i(7007),u=i(9670),d=i(7466),f=i(9958),m=i(4488),g=i(1530),v=i(647),x=i(7651),T=Math.max,S=Math.min,R=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 _=m(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 _=u(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 ge=String(te[0]);ge===""&&(_.lastIndex=g(j,d(_.lastIndex),q))}for(var me="",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(R(te[N]));var I=te.groups;if($){var w=[he].concat(ye,Oe,j);I!==void 0&&w.push(I);var C=String(P.apply(void 0,w))}else C=v(he,j,Oe,ye,I,P);Oe>=ve&&(me+=j.slice(ve,Oe)+C,ve=Oe+he.length)}return me+j.slice(ve)}]})},3123:function(o,c,i){var l=i(7007),u=i(7850),d=i(9670),f=i(4488),m=i(6707),g=i(1530),v=i(7466),x=i(7651),T=i(2261),S=i(7293),R=[].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(!u(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,ge;(J=T.call(q,O))&&(te=q.lastIndex,!(te>K&&(j.push(O.slice(K,J.index)),J.length>1&&J.index<O.length&&R.apply(j,J.slice(1)),ge=J[0].length,K=te,j.length>=_)));)q.lastIndex===J.index&&q.lastIndex++;return K===O.length?(ge||!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 _=d(E),j=String(this),$=m(_,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 ge=0,me=0,ve=[];me<j.length;){J.lastIndex=z?me:0;var xe=x(J,z?j:j.slice(me)),he;if(xe===null||(he=F(v(J.lastIndex+(z?0:me)),j.length))===ge)me=g(j,me,K);else{if(ve.push(j.slice(ge,me)),ve.length===te)return ve;for(var Oe=1;Oe<=xe.length-1;Oe++)if(ve.push(xe[Oe]),ve.length===te)return ve;me=ge=he}}return ve.push(j.slice(ge)),ve}]},!z)},3210:function(o,c,i){var l=i(2109),u=i(3111).trim,d=i(6091);l({target:"String",proto:!0,forced:d("trim")},{trim:function(){return u(this)}})},2990:function(o,c,i){var l=i(260),u=i(1048),d=l.aTypedArray,f=l.exportTypedArrayMethod;f("copyWithin",function(g,v){return u.call(d(this),g,v,arguments.length>2?arguments[2]:void 0)})},8927:function(o,c,i){var l=i(260),u=i(2092).every,d=l.aTypedArray,f=l.exportTypedArrayMethod;f("every",function(g){return u(d(this),g,arguments.length>1?arguments[1]:void 0)})},3105:function(o,c,i){var l=i(260),u=i(1285),d=l.aTypedArray,f=l.exportTypedArrayMethod;f("fill",function(g){return u.apply(d(this),arguments)})},5035:function(o,c,i){var l=i(260),u=i(2092).filter,d=i(3074),f=l.aTypedArray,m=l.exportTypedArrayMethod;m("filter",function(v){var x=u(f(this),v,arguments.length>1?arguments[1]:void 0);return d(this,x)})},7174:function(o,c,i){var l=i(260),u=i(2092).findIndex,d=l.aTypedArray,f=l.exportTypedArrayMethod;f("findIndex",function(g){return u(d(this),g,arguments.length>1?arguments[1]:void 0)})},4345:function(o,c,i){var l=i(260),u=i(2092).find,d=l.aTypedArray,f=l.exportTypedArrayMethod;f("find",function(g){return u(d(this),g,arguments.length>1?arguments[1]:void 0)})},2846:function(o,c,i){var l=i(260),u=i(2092).forEach,d=l.aTypedArray,f=l.exportTypedArrayMethod;f("forEach",function(g){u(d(this),g,arguments.length>1?arguments[1]:void 0)})},4731:function(o,c,i){var l=i(260),u=i(1318).includes,d=l.aTypedArray,f=l.exportTypedArrayMethod;f("includes",function(g){return u(d(this),g,arguments.length>1?arguments[1]:void 0)})},7209:function(o,c,i){var l=i(260),u=i(1318).indexOf,d=l.aTypedArray,f=l.exportTypedArrayMethod;f("indexOf",function(g){return u(d(this),g,arguments.length>1?arguments[1]:void 0)})},6319:function(o,c,i){var l=i(7854),u=i(260),d=i(6992),f=i(5112),m=f("iterator"),g=l.Uint8Array,v=d.values,x=d.keys,T=d.entries,S=u.aTypedArray,R=u.exportTypedArrayMethod,F=g&&g.prototype[m],M=!!F&&(F.name=="values"||F.name==null),z=function(){return v.call(S(this))};R("entries",function(){return T.call(S(this))}),R("keys",function(){return x.call(S(this))}),R("values",z,!M),R(m,z,!M)},8867:function(o,c,i){var l=i(260),u=l.aTypedArray,d=l.exportTypedArrayMethod,f=[].join;d("join",function(g){return f.apply(u(this),arguments)})},7789:function(o,c,i){var l=i(260),u=i(6583),d=l.aTypedArray,f=l.exportTypedArrayMethod;f("lastIndexOf",function(g){return u.apply(d(this),arguments)})},3739:function(o,c,i){var l=i(260),u=i(2092).map,d=i(6707),f=l.aTypedArray,m=l.aTypedArrayConstructor,g=l.exportTypedArrayMethod;g("map",function(x){return u(f(this),x,arguments.length>1?arguments[1]:void 0,function(T,S){return new(m(d(T,T.constructor)))(S)})})},4483:function(o,c,i){var l=i(260),u=i(3671).right,d=l.aTypedArray,f=l.exportTypedArrayMethod;f("reduceRight",function(g){return u(d(this),g,arguments.length,arguments.length>1?arguments[1]:void 0)})},9368:function(o,c,i){var l=i(260),u=i(3671).left,d=l.aTypedArray,f=l.exportTypedArrayMethod;f("reduce",function(g){return u(d(this),g,arguments.length,arguments.length>1?arguments[1]:void 0)})},2056:function(o,c,i){var l=i(260),u=l.aTypedArray,d=l.exportTypedArrayMethod,f=Math.floor;d("reverse",function(){for(var g=this,v=u(g).length,x=f(v/2),T=0,S;T<x;)S=g[T],g[T++]=g[--v],g[v]=S;return g})},3462:function(o,c,i){var l=i(260),u=i(7466),d=i(4590),f=i(7908),m=i(7293),g=l.aTypedArray,v=l.exportTypedArrayMethod,x=m(function(){new Int8Array(1).set({})});v("set",function(S){g(this);var R=d(arguments.length>1?arguments[1]:void 0,1),F=this.length,M=f(S),z=u(M.length),X=0;if(z+R>F)throw RangeError("Wrong length");for(;X<z;)this[R+X]=M[X++]},x)},678:function(o,c,i){var l=i(260),u=i(6707),d=i(7293),f=l.aTypedArray,m=l.aTypedArrayConstructor,g=l.exportTypedArrayMethod,v=[].slice,x=d(function(){new Int8Array(1).slice()});g("slice",function(S,R){for(var F=v.call(f(this),S,R),M=u(this,this.constructor),z=0,X=F.length,H=new(m(M))(X);X>z;)H[z]=F[z++];return H},x)},7462:function(o,c,i){var l=i(260),u=i(2092).some,d=l.aTypedArray,f=l.exportTypedArrayMethod;f("some",function(g){return u(d(this),g,arguments.length>1?arguments[1]:void 0)})},3824:function(o,c,i){var l=i(260),u=l.aTypedArray,d=l.exportTypedArrayMethod,f=[].sort;d("sort",function(g){return f.call(u(this),g)})},5021:function(o,c,i){var l=i(260),u=i(7466),d=i(1400),f=i(6707),m=l.aTypedArray,g=l.exportTypedArrayMethod;g("subarray",function(x,T){var S=m(this),R=S.length,F=d(x,R);return new(f(S,S.constructor))(S.buffer,S.byteOffset+F*S.BYTES_PER_ELEMENT,u((T===void 0?R:d(T,R))-F))})},2974:function(o,c,i){var l=i(7854),u=i(260),d=i(7293),f=l.Int8Array,m=u.aTypedArray,g=u.exportTypedArrayMethod,v=[].toLocaleString,x=[].slice,T=!!f&&d(function(){v.call(new f(1))}),S=d(function(){return[1,2].toLocaleString()!=new f([1,2]).toLocaleString()})||!d(function(){f.prototype.toLocaleString.call([1,2])});g("toLocaleString",function(){return v.apply(T?x.call(m(this)):m(this),arguments)},S)},5016:function(o,c,i){var l=i(260).exportTypedArrayMethod,u=i(7293),d=i(7854),f=d.Uint8Array,m=f&&f.prototype||{},g=[].toString,v=[].join;u(function(){g.call({})})&&(g=function(){return v.call(this)});var x=m.toString!=g;l("toString",g,x)},2472:function(o,c,i){var l=i(9843);l("Uint8",function(u){return function(f,m,g){return u(this,f,m,g)}})},4747:function(o,c,i){var l=i(7854),u=i(8324),d=i(8533),f=i(8880);for(var m in u){var g=l[m],v=g&&g.prototype;if(v&&v.forEach!==d)try{f(v,"forEach",d)}catch{v.forEach=d}}},3948:function(o,c,i){var l=i(7854),u=i(8324),d=i(6992),f=i(8880),m=i(5112),g=m("iterator"),v=m("toStringTag"),x=d.values;for(var T in u){var S=l[T],R=S&&S.prototype;if(R){if(R[g]!==x)try{f(R,g,x)}catch{R[g]=x}if(R[v]||f(R,v,T),u[T]){for(var F in d)if(R[F]!==d[F])try{f(R,F,d[F])}catch{R[F]=d[F]}}}}},1637:function(o,c,i){i(6992);var l=i(2109),u=i(5005),d=i(590),f=i(1320),m=i(2248),g=i(8003),v=i(4994),x=i(9909),T=i(5787),S=i(6656),R=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=u("fetch"),O=u("Headers"),_=E("iterator"),j="URLSearchParams",$=j+"Iterator",K=x.set,q=x.getterFor(j),J=x.getterFor($),te=/\+/g,ge=Array(4),me=function(B){return ge[B-1]||(ge[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(me(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)},I=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("="))}))},w=function(B){this.entries.length=0,I(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,de,we,De,Ge;if(K(V,{type:j,entries:W,updateURL:function(){},updateSearchParams:w}),U!==void 0)if(z(U))if(Z=G(U),typeof Z=="function")for(Y=Z.call(U),Q=Y.next;!(ne=Q.call(Y)).done;){if(oe=re(M(ne.value)),de=oe.next,(we=de.call(oe)).done||(De=de.call(oe)).done||!de.call(oe).done)throw TypeError("Expected sequence with length 2");W.push({key:we.value+"",value:De.value+""})}else for(Ge in U)S(U,Ge)&&W.push({key:Ge,value:U[Ge]+""});else I(W,typeof U=="string"?U.charAt(0)==="?"?U.slice(1):U:U+"")},L=b.prototype;m(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,de;oe<Z.length;oe++)de=Z[oe],de.key===Q&&(Y?Z.splice(oe--,1):(Y=!0,de.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=R(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}),g(b,j),l({global:!0,forced:!d},{URLSearchParams:b}),!d&&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),u=i(9781),d=i(590),f=i(7854),m=i(6048),g=i(1320),v=i(5787),x=i(6656),T=i(1574),S=i(8457),R=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]/,ge=/\d/,me=/^(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,I=/[\t\u000A\u000D]/g,w,C=function(k,ae){var se,ce,fe;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),fe=0;fe<ce.length;fe++)se+=Y(ce[fe],U);k.host=se}},y=function(k){var ae=k.split("."),se,ce,fe,ke,Ae,Ue,qe;if(ae.length&&ae[ae.length-1]==""&&ae.pop(),se=ae.length,se>4)return k;for(ce=[],fe=0;fe<se;fe++){if(ke=ae[fe],ke=="")return k;if(Ae=10,ke.length>1&&ke.charAt(0)=="0"&&(Ae=me.test(ke)?16:8,ke=ke.slice(Ae==8?1:2)),ke==="")Ue=0;else{if(!(Ae==10?xe:Ae==8?ve:he).test(ke))return k;Ue=parseInt(ke,Ae)}ce.push(Ue)}for(fe=0;fe<se;fe++)if(Ue=ce[fe],fe==se-1){if(Ue>=_(256,5-se))return null}else if(Ue>255)return null;for(qe=ce.pop(),fe=0;fe<ce.length;fe++)qe+=ce[fe]*_(256,3-fe);return qe},b=function(k){var ae=[0,0,0,0,0,0,0,0],se=0,ce=null,fe=0,ke,Ae,Ue,qe,Qe,Et,ue,st=function(){return k.charAt(fe)};if(st()==":"){if(k.charAt(1)!=":")return;fe+=2,se++,ce=se}for(;st();){if(se==8)return;if(st()==":"){if(ce!==null)return;fe++,se++,ce=se;continue}for(ke=Ae=0;Ae<4&&he.test(st());)ke=ke*16+parseInt(st(),16),fe++,Ae++;if(st()=="."){if(Ae==0||(fe-=Ae,se>6))return;for(Ue=0;st();){if(qe=null,Ue>0)if(st()=="."&&Ue<4)fe++;else return;if(!ge.test(st()))return;for(;ge.test(st());){if(Qe=parseInt(st(),10),qe===null)qe=Qe;else{if(qe==0)return;qe=qe*10+Qe}if(qe>255)return;fe++}ae[se]=ae[se]*256+qe,Ue++,(Ue==2||Ue==4)&&se++}if(Ue!=4)return;break}else if(st()==":"){if(fe++,!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,fe=0,ke=0;ke<8;ke++)k[ke]!==0?(fe>se&&(ae=ce,se=fe),ce=null,fe=0):(ce===null&&(ce=ke),++fe);return fe>se&&(ae=ce,se=fe),ae},B=function(k){var ae,se,ce,fe;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++)fe&&k[se]===0||(fe&&(fe=!1),ce===se?(ae+=se?":":"::",fe=!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=R(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!=""},de=function(k){return!k.host||k.cannotBeABaseURL||k.scheme=="file"},we=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&&we(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||!we(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={},ft={},dt={},It={},Ut={},lt={},Ot=function(k,ae,se,ce){var fe=se||$e,ke=0,Ae="",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(I,""),Et=S(ae);ke<=Et.length;){switch(ue=Et[ke],fe){case $e:if(ue&&J.test(ue))Ae+=ue.toLowerCase(),fe=rt;else{if(se)return $;fe=it;continue}break;case rt:if(ue&&(te.test(ue)||ue=="+"||ue=="-"||ue=="."))Ae+=ue.toLowerCase();else if(ue==":"){if(se&&(ne(k)!=x(Q,Ae)||Ae=="file"&&(oe(k)||k.port!==null)||k.scheme=="file"&&!k.host))return;if(k.scheme=Ae,se){ne(k)&&Q[k.scheme]==k.port&&(k.port=null);return}Ae="",k.scheme=="file"?fe=Ve:ne(k)&&ce&&ce.scheme==k.scheme?fe=Dt:ne(k)?fe=We:Et[ke+1]=="/"?(fe=bt,ke++):(k.cannotBeABaseURL=!0,k.path.push(""),fe=It)}else{if(se)return $;Ae="",fe=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,fe=lt;break}fe=ce.scheme=="file"?Ve:_e;continue;case Dt:if(ue=="/"&&Et[ke+1]=="/")fe=pe,ke++;else{fe=_e;continue}break;case bt:if(ue=="/"){fe=be;break}else{fe=dt;continue}case _e:if(k.scheme=ce.scheme,ue==w)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))fe=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="",fe=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="",fe=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(),fe=dt;continue}break;case Pe:if(ne(k)&&(ue=="/"||ue=="\\"))fe=pe;else if(ue=="/")fe=be;else{k.username=ce.username,k.password=ce.password,k.host=ce.host,k.port=ce.port,fe=dt;continue}break;case We:if(fe=pe,ue!="/"||Ae.charAt(ke+1)!="/")continue;ke++;break;case pe:if(ue!="/"&&ue!="\\"){fe=be;continue}break;case be:if(ue=="@"){Ue&&(Ae="%40"+Ae),Ue=!0,st=S(Ae);for(var Hn=0;Hn<st.length;Hn++){var mn=st[Hn];if(mn==":"&&!Qe){Qe=!0;continue}var Cn=Y(mn,Z);Qe?k.password+=Cn:k.username+=Cn}Ae=""}else if(ue==w||ue=="/"||ue=="?"||ue=="#"||ue=="\\"&&ne(k)){if(Ue&&Ae=="")return j;ke-=S(Ae).length+1,Ae="",fe=Ce}else Ae+=ue;break;case Ce:case Le:if(se&&k.scheme=="file"){fe=et;continue}else if(ue==":"&&!qe){if(Ae=="")return K;if(Lt=C(k,Ae),Lt)return Lt;if(Ae="",fe=Ie,se==Le)return}else if(ue==w||ue=="/"||ue=="?"||ue=="#"||ue=="\\"&&ne(k)){if(ne(k)&&Ae=="")return K;if(se&&Ae==""&&(oe(k)||k.port!==null))return;if(Lt=C(k,Ae),Lt)return Lt;if(Ae="",fe=ft,se)return;continue}else ue=="["?qe=!0:ue=="]"&&(qe=!1),Ae+=ue;break;case Ie:if(ge.test(ue))Ae+=ue;else if(ue==w||ue=="/"||ue=="?"||ue=="#"||ue=="\\"&&ne(k)||se){if(Ae!=""){var Yt=parseInt(Ae,10);if(Yt>65535)return q;k.port=ne(k)&&Yt===Q[k.scheme]?null:Yt,Ae=""}if(se)return;fe=ft;continue}else return q;break;case Ve:if(k.scheme="file",ue=="/"||ue=="\\")fe=Ke;else if(ce&&ce.scheme=="file")if(ue==w)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="",fe=Ut;else if(ue=="#")k.host=ce.host,k.path=ce.path.slice(),k.query=ce.query,k.fragment="",fe=lt;else{De(Et.slice(ke).join(""))||(k.host=ce.host,k.path=ce.path.slice(),Ge(k)),fe=dt;continue}else{fe=dt;continue}break;case Ke:if(ue=="/"||ue=="\\"){fe=et;break}ce&&ce.scheme=="file"&&!De(Et.slice(ke).join(""))&&(we(ce.path[0],!0)?k.path.push(ce.path[0]):k.host=ce.host),fe=dt;continue;case et:if(ue==w||ue=="/"||ue=="\\"||ue=="?"||ue=="#"){if(!se&&we(Ae))fe=dt;else if(Ae==""){if(k.host="",se)return;fe=ft}else{if(Lt=C(k,Ae),Lt)return Lt;if(k.host=="localhost"&&(k.host=""),se)return;Ae="",fe=ft}continue}else Ae+=ue;break;case ft:if(ne(k)){if(fe=dt,ue!="/"&&ue!="\\")continue}else if(!se&&ue=="?")k.query="",fe=Ut;else if(!se&&ue=="#")k.fragment="",fe=lt;else if(ue!=w&&(fe=dt,ue!="/"))continue;break;case dt:if(ue==w||ue=="/"||ue=="\\"&&ne(k)||!se&&(ue=="?"||ue=="#")){if(Be(Ae)?(Ge(k),ue!="/"&&!(ue=="\\"&&ne(k))&&k.path.push("")):je(Ae)?ue!="/"&&!(ue=="\\"&&ne(k))&&k.path.push(""):(k.scheme=="file"&&!k.path.length&&we(Ae)&&(k.host&&(k.host=""),Ae=Ae.charAt(0)+":"),k.path.push(Ae)),Ae="",k.scheme=="file"&&(ue==w||ue=="?"||ue=="#"))for(;k.path.length>1&&k.path[0]==="";)k.path.shift();ue=="?"?(k.query="",fe=Ut):ue=="#"&&(k.fragment="",fe=lt)}else Ae+=Y(ue,W);break;case It:ue=="?"?(k.query="",fe=Ut):ue=="#"?(k.fragment="",fe=lt):ue!=w&&(k.path[0]+=Y(ue,U));break;case Ut:!se&&ue=="#"?(k.fragment="",fe=lt):ue!=w&&(ue=="'"&&ne(k)?k.query+="%27":ue=="#"?k.query+="%23":k.query+=Y(ue,U));break;case lt:ue!=w&&(k.fragment+=Y(ue,V));break}ke++}},Xt=function(ae){var se=v(this,Xt,"URL"),ce=arguments.length>1?arguments[1]:void 0,fe=String(ae),ke=E(se,{type:"URL"}),Ae,Ue;if(ce!==void 0){if(ce instanceof Xt)Ae=P(ce);else if(Ue=Ot(Ae={},String(ce)),Ue)throw TypeError(Ue)}if(Ue=Ot(ke,fe,null,Ae),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},u||(se.href=gn.call(se),se.origin=On.call(se),se.protocol=ot.call(se),se.username=dr.call(se),se.password=hr.call(se),se.host=pr.call(se),se.hostname=gr.call(se),se.port=mr.call(se),se.pathname=ct.call(se),se.search=vr.call(se),se.searchParams=yr.call(se),se.hash=br.call(se))},zn=Xt.prototype,gn=function(){var k=P(this),ae=k.scheme,se=k.username,ce=k.password,fe=k.host,ke=k.port,Ae=k.path,Ue=k.query,qe=k.fragment,Qe=ae+":";return fe!==null?(Qe+="//",oe(k)&&(Qe+=se+(ce?":"+ce:"")+"@"),Qe+=B(fe),ke!==null&&(Qe+=":"+ke)):ae=="file"&&(Qe+="//"),Qe+=k.cannotBeABaseURL?Ae[0]:Ae.length?"/"+Ae.join("/"):"",Ue!==null&&(Qe+="?"+Ue),qe!==null&&(Qe+="#"+qe),Qe},On=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+":"},dr=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},gr=function(){var k=P(this).host;return k===null?"":B(k)},mr=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(u&&m(zn,{href:xt(gn,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(On),protocol:xt(ot,function(k){var ae=P(this);Ot(ae,String(k)+":",$e)}),username:xt(dr,function(k){var ae=P(this),se=S(String(k));if(!de(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(!de(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(gr,function(k){var ae=P(this);ae.cannotBeABaseURL||Ot(ae,String(k),Le)}),port:xt(mr,function(k){var ae=P(this);de(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+"",ft))}),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)})}),g(zn,"toJSON",function(){return gn.call(this)},{enumerable:!0}),g(zn,"toString",function(){return gn.call(this)},{enumerable:!0}),H){var xr=H.createObjectURL,pt=H.revokeObjectURL;xr&&g(Xt,"createObjectURL",function(ae){return xr.apply(H,arguments)}),pt&&g(Xt,"revokeObjectURL",function(ae){return pt.apply(H,arguments)})}M(Xt,"URL"),l({global:!0,forced:!d,sham:!u},{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,I){var w;if(typeof Symbol>"u"||N[Symbol.iterator]==null){if(Array.isArray(N)||(w=c(N))||N&&typeof N.length=="number"){w&&(N=w);var C=0,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(){w=N[Symbol.iterator]()},n:function(){var V=w.next();return b=V.done,V},e:function(V){L=!0,B=V},f:function(){try{!b&&w.return!=null&&w.return()}finally{if(L)throw B}}}}function c(N,
|
|
62
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var b=!0,L=!1,B;return{s:function(){w=N[Symbol.iterator]()},n:function(){var V=w.next();return b=V.done,V},e:function(V){L=!0,B=V},f:function(){try{!b&&w.return!=null&&w.return()}finally{if(L)throw B}}}}function x(N,
|
|
63
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var b=!0,L=!1,B;return{s:function(){w=N[Symbol.iterator]()},n:function(){var V=w.next();return b=V.done,V},e:function(V){L=!0,B=V},f:function(){try{!b&&w.return!=null&&w.return()}finally{if(L)throw B}}}}function z(N,I){if(N){if(typeof N=="string")return X(N,I);var w=Object.prototype.toString.call(N).slice(8,-1);if(w==="Object"&&N.constructor&&(w=N.constructor.name),w==="Map"||w==="Set")return Array.from(N);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return X(N,I)}}function X(N,I){(I==null||I>N.length)&&(I=N.length);for(var w=0,C=new Array(I);w<I;w++)C[w]=N[w];return C}function H(N,I){if(!(N instanceof I))throw new TypeError("Cannot call a class as a function")}function re(N,I){for(var w=0;w<I.length;w++){var C=I[w];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(N,C.key,C)}}function G(N,I,w){return I&&re(N.prototype,I),w&&re(N,w),N}function E(N,I){if(typeof I!="function"&&I!==null)throw new TypeError("Super expression must either be null or a function");N.prototype=Object.create(I&&I.prototype,{constructor:{value:N,writable:!0,configurable:!0}}),I&&P(N,I)}function P(N,I){return P=Object.setPrototypeOf||function(C,y){return C.__proto__=y,C},P(N,I)}function O(N){var I=$();return function(){var C=K(N),y;if(I){var b=K(this).constructor;y=Reflect.construct(C,arguments,b)}else y=C.apply(this,arguments);return _(this,y)}}function _(N,I){return I&&(F(I)==="object"||typeof I=="function")?I: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(w){return w.__proto__||Object.getPrototypeOf(w)},K(N)}var q=function(N){E(w,N);var I=O(w);function w(C,y){var b;H(this,w),b=I.call(this);var L,B;if(b.element=C,b.version=w.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.");w.instances.push(j(b)),b.element.dropzone=j(b);var U=(B=w.optionsForElement(b.element))!=null?B:{};if(b.options=w.extend({},R,U,y??{}),b.options.previewTemplate=b.options.previewTemplate.replace(/\n*/g,""),b.options.forceFallback||!w.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=w.getElement(b.options.previewsContainer,"previewsContainer"):b.previewsContainer=b.element),b.options.clickable&&(b.options.clickable===!0?b.clickableElements=[b.element]:b.clickableElements=w.getElements(b.options.clickable,"clickable")),b.init(),b}return G(w,[{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(w.QUEUED)}},{key:"getUploadingFiles",value:function(){return this.getFilesWithStatus(w.UPLOADING)}},{key:"getAddedFiles",value:function(){return this.getFilesWithStatus(w.ADDED)}},{key:"getActiveFiles",value:function(){return this.files.filter(function(y){return y.status===w.UPLOADING||y.status===w.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(w.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",w.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(de){Q.e(de)}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||w.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,w.instances.splice(w.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=w.createElement(L);return this.element.tagName!=="FORM"?(b=w.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)):w.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:w.uuidv4(),progress:0,total:y.size,bytesSent:0,filename:this._renameFile(y)},this.files.push(y),y.status=w.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===w.ADDED&&y.accepted===!0){if(y.status=w.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===w.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!==w.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(w.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),de=document.createElement("canvas"),we=de.getContext("2d");switch(de.width=oe.trgWidth,de.height=oe.trgHeight,ne>4&&(de.width=oe.trgHeight,de.height=oe.trgWidth),ne){case 2:we.translate(de.width,0),we.scale(-1,1);break;case 3:we.translate(de.width,de.height),we.rotate(Math.PI);break;case 4:we.translate(0,de.height),we.scale(1,-1);break;case 5:we.rotate(.5*Math.PI),we.scale(1,-1);break;case 6:we.rotate(.5*Math.PI),we.translate(0,-de.width);break;case 7:we.rotate(.5*Math.PI),we.translate(de.height,-de.width),we.scale(-1,1);break;case 8:we.rotate(-.5*Math.PI),we.translate(-de.height,0);break}me(we,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=de.toDataURL("image/png");if(V!=null)return V(De,de)})},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=w.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===w.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=w.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===w.ADDED||y.status===w.QUEUED)&&(y.status=w.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 de=oe*b.options.chunkSize,we=Math.min(de+b.options.chunkSize,V.size),De={name:b._getParamName(0),data:V.webkitSlice?V.webkitSlice(de,we):V.slice(de,we),filename:U.upload.filename,chunkIndex:oe};U.upload.chunks[oe]={file:U,index:oe,dataBlock:De,status:w.UPLOADING,progress:0,retries:0},b._uploadData(y,[De])}};if(U.upload.finishedChunkUpload=function(ne,oe){var de=!0;ne.status=w.SUCCESS,ne.dataBlock=null,ne.xhr=null;for(var we=0;we<U.upload.totalChunkCount;we++){if(U.upload.chunks[we]===void 0)return W();U.upload.chunks[we].status!==w.SUCCESS&&(de=!1)}de&&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&&w.extend(oe,this.options.headers);for(var de in oe){var we=oe[de];we&&B.setRequestHeader(de,we)}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!==w.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!==w.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=w.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=w.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)})}}]),w}(f);q.initClass(),q.version="5.9.3",q.options={},q.optionsForElement=function(N){if(N.getAttribute("id"))return q.options[te(N.getAttribute("id"))]},q.instances=[],q.forElement=function(N){if(typeof N=="string"&&(N=document.querySelector(N)),(N!=null?N.dropzone:void 0)==null)throw new Error("No Dropzone found for given element. This is probably because you're trying to access it before Dropzone had the time to initialize. Use the `init` option to setup any additional observers on your Dropzone.");return N.dropzone},q.autoDiscover=!0,q.discover=function(){var N;if(document.querySelectorAll)N=document.querySelectorAll(".dropzone");else{N=[];var I=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}()};I(document.getElementsByTagName("div")),I(document.getElementsByTagName("form"))}return function(){var w=[],C=M(N),y;try{for(C.s();!(y=C.n()).done;){var b=y.value;q.optionsForElement(b)!==!1?w.push(new q(b)):w.push(void 0)}}catch(L){C.e(L)}finally{C.f()}return w}()},q.blockedBrowsers=[/opera.*(Macintosh|Windows Phone).*version\/12/i],q.isBrowserSupported=function(){var N=!0;if(window.File&&window.FileReader&&window.FileList&&window.Blob&&window.FormData&&document.querySelector)if(!("classList"in document.createElement("a")))N=!1;else{q.blacklistedBrowsers!==void 0&&(q.blockedBrowsers=q.blacklistedBrowsers);var I=M(q.blockedBrowsers),w;try{for(I.s();!(w=I.n()).done;){var C=w.value;if(C.test(navigator.userAgent)){N=!1;continue}}}catch(y){I.e(y)}finally{I.f()}}else N=!1;return N},q.dataURItoBlob=function(N){for(var I=atob(N.split(",")[1]),w=N.split(",")[0].split(":")[1].split(";")[0],C=new ArrayBuffer(I.length),y=new Uint8Array(C),b=0,L=I.length,B=0<=L;B?b<=L:b>=L;B?b++:b--)y[b]=I.charCodeAt(b);return new Blob([C],{type:w})};var J=function(I,w){return I.filter(function(C){return C!==w}).map(function(C){return C})},te=function(I){return I.replace(/[\-_](\w)/g,function(w){return w.charAt(1).toUpperCase()})};q.createElement=function(N){var I=document.createElement("div");return I.innerHTML=N,I.childNodes[0]},q.elementInside=function(N,I){if(N===I)return!0;for(;N=N.parentNode;)if(N===I)return!0;return!1},q.getElement=function(N,I){var w;if(typeof N=="string"?w=document.querySelector(N):N.nodeType!=null&&(w=N),w==null)throw new Error("Invalid `".concat(I,"` option provided. Please provide a CSS selector or a plain HTML element."));return w},q.getElements=function(N,I){var w,C;if(N instanceof Array){C=[];try{var y=M(N,!0),b;try{for(y.s();!(b=y.n()).done;)w=b.value,C.push(this.getElement(w,I))}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;)w=B.value,C.push(w)}catch(U){L.e(U)}finally{L.f()}}else N.nodeType!=null&&(C=[N]);if(C==null||!C.length)throw new Error("Invalid `".concat(I,"` option provided. Please provide a CSS selector, a plain HTML element or a list of those."));return C},q.confirm=function(N,I,w){if(window.confirm(N))return I();if(w!=null)return w()},q.isValidFile=function(N,I){if(!I)return!0;I=I.split(",");var w=N.type,C=w.replace(/\/.*$/,""),y=M(I),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(w===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 ge=function(I){I.naturalWidth;var w=I.naturalHeight,C=document.createElement("canvas");C.width=1,C.height=w;var y=C.getContext("2d");y.drawImage(I,0,0);for(var b=y.getImageData(1,0,1,w),L=b.data,B=0,U=w,V=w;V>B;){var W=L[(V-1)*4+3];W===0?U=V:B=V,V=U+B>>1}var Z=V/w;return Z===0?1:Z},me=function(I,w,C,y,b,L,B,U,V,W){var Z=ge(w);return I.drawImage(w,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(w){for(var C="",y=void 0,b=void 0,L="",B=void 0,U=void 0,V=void 0,W="",Z=0;y=w[Z++],b=w[Z++],L=w[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<w.length;);return C}},{key:"restore",value:function(w,C){if(!w.match("data:image/jpeg;base64,"))return C;var y=this.decode64(w.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(w,C){var y=this.getExifArray(C),b=this.insertExif(w,y),L=new Uint8Array(b);return L}},{key:"getExifArray",value:function(w){for(var C=void 0,y=0;y<w.length;){if(C=w[y],C[0]===255&C[1]===225)return C;y++}return[]}},{key:"insertExif",value:function(w,C){var y=w.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(w){for(var C=0,y=[];;){var b;if(w[C]===255&w[C+1]===218)break;if(w[C]===255&w[C+1]===216)C+=2;else{b=w[C+2]*256+w[C+3];var L=C+b+2,B=w.slice(C,L);y.push(B),C=L}if(C>w.length)break}return y}},{key:"decode64",value:function(w){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(w)&&console.warn(`There were invalid base64 characters in the input text.
|
|
57
|
+
`):" "+Uc(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:ho};function po(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new fr(null,n)}function $c(n){return po(n),n.headers=Nt.from(n.headers),n.data=uo.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),jc.getAdapter(n.adapter||Gr.adapter)(n).then(function(r){return po(n),r.data=uo.call(n,n.transformResponse,r),r.headers=Nt.from(r.headers),r},function(r){return Oc(r)||(po(n),r&&r.response&&(r.response.data=uo.call(n,n.transformResponse,r.response),r.response.headers=Nt.from(r.response.headers))),Promise.reject(r)})}const Vc="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 _c={};$s.transitional=function(e,t,r){function s(a,o){return"[Axios v"+Vc+"] 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&&!_c[o]&&(_c[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 oy(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:oy,validators:$s},rn=Vs.validators;let qn=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Ac,response:new Ac}}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=_n(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"],g=>{delete a[g]}),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 u,h=0,f;if(!i){const g=[$c.bind(this),void 0];for(g.unshift.apply(g,c),g.push.apply(g,l),f=g.length,u=Promise.resolve(t);h<f;)u=u.then(g[h++],g[h++]);return u}f=c.length;let m=t;for(h=0;h<f;){const g=c[h++],v=c[h++];try{m=g(m)}catch(x){v.call(this,x);break}}try{u=$c.call(this,m)}catch(g){return Promise.reject(g)}for(h=0,f=l.length;h<f;)u=u.then(l[h++],l[h++]);return u}getUri(e){e=_n(this.defaults,e);const t=Lc(e.baseURL,e.url,e.allowAbsoluteUrls);return wc(t,e.params,e.paramsSerializer)}};ee.forEach(["delete","get","head","options"],function(e){qn.prototype[e]=function(t,r){return this.request(_n(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(_n(c||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:o}))}}qn.prototype[e]=t(),qn.prototype[e+"Form"]=t(!0)});let ay=class Wc{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 fr(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 Wc(function(s){e=s}),cancel:e}}};function ly(n){return function(t){return n.apply(null,t)}}function cy(n){return ee.isObject(n)&&n.isAxiosError===!0}const go={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(go).forEach(([n,e])=>{go[e]=n});function qc(n){const e=new qn(n),t=ac(qn.prototype.request,e);return ee.extend(t,qn.prototype,e,{allOwnKeys:!0}),ee.extend(t,e,null,{allOwnKeys:!0}),t.create=function(s){return qc(_n(n,s))},t}const nt=qc(Gr);nt.Axios=qn,nt.CanceledError=fr,nt.CancelToken=ay,nt.isCancel=Oc,nt.VERSION=Vc,nt.toFormData=Fs,nt.AxiosError=Me,nt.Cancel=nt.CanceledError,nt.all=function(e){return Promise.all(e)},nt.spread=ly,nt.isAxiosError=cy,nt.mergeConfig=_n,nt.AxiosHeaders=Nt,nt.formToJSON=n=>Tc(ee.isHTMLForm(n)?new FormData(n):n),nt.getAdapter=jc.getAdapter,nt.HttpStatusCode=go,nt.default=nt;const{Axios:Ob,AxiosError:Cb,CanceledError:Rb,isCancel:Ib,CancelToken:Lb,VERSION:kb,all:Bb,Cancel:Pb,isAxiosError:Fb,spread:Mb,toFormData:Db,AxiosHeaders:Ub,HttpStatusCode:jb,formToJSON:$b,getAdapter:Vb,mergeConfig:_b}=nt;var mo={exports:{}},zc;function uy(){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(u){if(!l(u)&&u!==null)throw TypeError("Can't set "+String(u)+" as a prototype");return u}},1223:function(o,c,i){var l=i(5112),u=i(30),h=i(3070),f=l("unscopables"),m=Array.prototype;m[f]==null&&h.f(m,f,{configurable:!0,value:u(null)}),o.exports=function(g){m[f][g]=!0}},1530:function(o,c,i){var l=i(8710).charAt;o.exports=function(u,h,f){return h+(f?l(u,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(u){if(!l(u))throw TypeError(String(u)+" is not an object");return u}},4019:function(o){o.exports=typeof ArrayBuffer<"u"&&typeof DataView<"u"},260:function(o,c,i){var l=i(4019),u=i(9781),h=i(7854),f=i(111),m=i(6656),g=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&&g(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},ge=function(N){if(!f(N))return!1;var R=g(N);return R==="DataView"||m(J,R)||m(te,R)},me=function(ye){if(!f(ye))return!1;var N=g(ye);return m(J,N)||m(te,N)},ve=function(ye){if(me(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(m(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(u){if(R)for(var w in J){var C=h[w];C&&m(C.prototype,ye)&&delete C.prototype[ye]}(!E[ye]||R)&&x(E,ye,R?N:$&&X[ye]||N)}},Oe=function(ye,N,R){var w,C;if(u){if(I){if(R)for(w in J)C=h[w],C&&m(C,ye)&&delete C[ye];if(!G[ye]||R)try{return x(G,ye,R?N:$&&z[ye]||N)}catch{}else return}for(w in J)C=h[w],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),u&&!m(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:ge,isTypedArray:me,TypedArray:G,TypedArrayPrototype:E}},3331:function(o,c,i){var l=i(7854),u=i(9781),h=i(4019),f=i(8880),m=i(2248),g=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[_],ge=te&&te[j],me=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]},w=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,de){var we=S(oe),De=E(Q);if(we+ne>De.byteLength)throw ve(K);var Ge=E(De.buffer).bytes,je=we+De.byteOffset,Be=Ge.slice(je,je+ne);return de?Be:Be.reverse()},L=function(Q,ne,oe,de,we,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=de(+we),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}),u||(this.byteLength=oe)},te=function(ne,oe,de){v(this,te,_),v(ne,J,_);var we=E(ne).byteLength,De=x(oe);if(De<0||De>we)throw ve("Wrong offset");if(de=de===void 0?we-De:T(de),De+de>we)throw ve($);P(this,{buffer:ne,byteLength:de,byteOffset:De}),u||(this.buffer=ne,this.byteLength=de,this.byteOffset=De)},u&&(y(J,"byteLength"),y(te,"buffer"),y(te,"byteLength"),y(te,"byteOffset")),m(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,w,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(!g(function(){q(1)})||!g(function(){new q(-1)})||g(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(ge)!==me&&M(ge,me);var Z=new te(new J(2)),Y=ge.setInt8;Z.setInt8(0,2147483648),Z.setInt8(1,2147483649),(Z.getInt8(0)||!Z.getInt8(1))&&m(ge,{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),u=i(1400),h=i(7466),f=Math.min;o.exports=[].copyWithin||function(g,v){var x=l(this),T=h(x.length),S=u(g,T),I=u(v,T),F=arguments.length>2?arguments[2]:void 0,M=f((F===void 0?T:u(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),u=i(1400),h=i(7466);o.exports=function(m){for(var g=l(this),v=h(g.length),x=arguments.length,T=u(x>1?arguments[1]:void 0,v),S=x>2?arguments[2]:void 0,I=S===void 0?v:u(S,v);I>T;)g[T++]=m;return g}},8533:function(o,c,i){var l=i(2092).forEach,u=i(9341),h=u("forEach");o.exports=h?[].forEach:function(m){return l(this,m,arguments.length>1?arguments[1]:void 0)}},8457:function(o,c,i){var l=i(9974),u=i(7908),h=i(3411),f=i(7659),m=i(7466),g=i(6135),v=i(1246);o.exports=function(T){var S=u(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,g(G,H,_);else for(re=m(S.length),G=new I(re);re>H;H++)_=z?M(S[H],H):S[H],g(G,H,_);return G.length=H,G}},1318:function(o,c,i){var l=i(5656),u=i(7466),h=i(1400),f=function(m){return function(g,v,x){var T=l(g),S=u(T.length),I=h(x,S),F;if(m&&v!=v){for(;S>I;)if(F=T[I++],F!=F)return!0}else for(;S>I;I++)if((m||I in T)&&T[I]===v)return m||I||0;return!m&&-1}};o.exports={includes:f(!0),indexOf:f(!1)}},2092:function(o,c,i){var l=i(9974),u=i(8361),h=i(7908),f=i(7466),m=i(5417),g=[].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=u(P),_=l(re,G,3),j=f(O.length),$=0,K=E||m,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:g.call(q,J)}else switch(x){case 4:return!1;case 7:g.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),u=i(9958),h=i(7466),f=i(9341),m=Math.min,g=[].lastIndexOf,v=!!g&&1/[1].lastIndexOf(1,-0)<0,x=f("lastIndexOf"),T=v||!x;o.exports=T?function(I){if(v)return g.apply(this,arguments)||0;var F=l(this),M=h(F.length),z=M-1;for(arguments.length>1&&(z=m(z,u(arguments[1]))),z<0&&(z=M+z);z>=0;z--)if(z in F&&F[z]===I)return z||0;return-1}:g},1194:function(o,c,i){var l=i(7293),u=i(5112),h=i(7392),f=u("species");o.exports=function(m){return h>=51||!l(function(){var g=[],v=g.constructor={};return v[f]=function(){return{foo:1}},g[m](Boolean).foo!==1})}},9341:function(o,c,i){var l=i(7293);o.exports=function(u,h){var f=[][u];return!!f&&l(function(){f.call(null,h||function(){throw 1},1)})}},3671:function(o,c,i){var l=i(3099),u=i(7908),h=i(8361),f=i(7466),m=function(g){return function(v,x,T,S){l(x);var I=u(v),F=h(I),M=f(I.length),z=g?M-1:0,X=g?-1:1;if(T<2)for(;;){if(z in F){S=F[z],z+=X;break}if(z+=X,g?z<0:M<=z)throw TypeError("Reduce of empty array with no initial value")}for(;g?z>=0:M>z;z+=X)z in F&&(S=x(S,F[z],z,I));return S}};o.exports={left:m(!1),right:m(!0)}},5417:function(o,c,i){var l=i(111),u=i(3157),h=i(5112),f=h("species");o.exports=function(m,g){var v;return u(m)&&(v=m.constructor,typeof v=="function"&&(v===Array||u(v.prototype))?v=void 0:l(v)&&(v=v[f],v===null&&(v=void 0))),new(v===void 0?Array:v)(g===0?0:g)}},3411:function(o,c,i){var l=i(9670),u=i(9212);o.exports=function(h,f,m,g){try{return g?f(l(m)[0],m[1]):f(m)}catch(v){throw u(h),v}}},7072:function(o,c,i){var l=i(5112),u=l("iterator"),h=!1;try{var f=0,m={next:function(){return{done:!!f++}},return:function(){h=!0}};m[u]=function(){return this},Array.from(m,function(){throw 2})}catch{}o.exports=function(g,v){if(!v&&!h)return!1;var x=!1;try{var T={};T[u]=function(){return{next:function(){return{done:x=!0}}}},g(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),u=i(4326),h=i(5112),f=h("toStringTag"),m=u(function(){return arguments}())=="Arguments",g=function(v,x){try{return v[x]}catch{}};o.exports=l?u:function(v){var x,T,S;return v===void 0?"Undefined":v===null?"Null":typeof(T=g(x=Object(v),f))=="string"?T:m?u(x):(S=u(x))=="Object"&&typeof x.callee=="function"?"Arguments":S}},9920:function(o,c,i){var l=i(6656),u=i(3887),h=i(1236),f=i(3070);o.exports=function(m,g){for(var v=u(g),x=f.f,T=h.f,S=0;S<v.length;S++){var I=v[S];l(m,I)||x(m,I,T(g,I))}}},8544:function(o,c,i){var l=i(7293);o.exports=!l(function(){function u(){}return u.prototype.constructor=null,Object.getPrototypeOf(new u)!==u.prototype})},4994:function(o,c,i){var l=i(3383).IteratorPrototype,u=i(30),h=i(9114),f=i(8003),m=i(7497),g=function(){return this};o.exports=function(v,x,T){var S=x+" Iterator";return v.prototype=u(l,{next:h(1,T)}),f(v,S,!1,!0),m[S]=g,v}},8880:function(o,c,i){var l=i(9781),u=i(3070),h=i(9114);o.exports=l?function(f,m,g){return u.f(f,m,h(1,g))}:function(f,m,g){return f[m]=g,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),u=i(3070),h=i(9114);o.exports=function(f,m,g){var v=l(m);v in f?u.f(f,v,h(0,g)):f[v]=g}},654:function(o,c,i){var l=i(2109),u=i(4994),h=i(9518),f=i(7674),m=i(8003),g=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){u(O,P,_);var q=function(N){if(N===j&&ve)return ve;if(!M&&N in ge)return ge[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,ge=E.prototype,me=ge[z]||ge["@@iterator"]||j&&ge[j],ve=!M&&me||q(j),xe=P=="Array"&&ge.entries||me,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"&&g(he,z,G)),m(he,J,!0,!0),T&&(S[J]=G))),j==H&&me&&me.name!==H&&(te=!0,ve=function(){return me.call(this)}),(!T||K)&&ge[z]!==ve&&g(ge,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 ge))&&v(ge,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),u=i(111),h=l.document,f=u(h)&&u(h.createElement);o.exports=function(m){return f?h.createElement(m):{}}},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),u=i(8113),h=l.process,f=h&&h.versions,m=f&&f.v8,g,v;m?(g=m.split("."),v=g[0]+g[1]):u&&(g=u.match(/Edge\/(\d+)/),(!g||g[1]>=74)&&(g=u.match(/Chrome\/(\d+)/),g&&(v=g[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),u=i(1236).f,h=i(8880),f=i(1320),m=i(3505),g=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]||m(S,{}):z=(l[S]||{}).prototype,z)for(X in T){if(re=T[X],x.noTargetGet?(G=u(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;g(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),u=i(7293),h=i(5112),f=i(2261),m=i(8880),g=h("species"),v=!u(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=!u(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=!u(function(){var j={};return j[H]=function(){return 7},""[F](j)!=7}),G=re&&!u(function(){var j=!1,$=/a/;return F==="split"&&($={},$.constructor={},$.constructor[g]=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&&m(RegExp.prototype[H],"sham",!0)}},9974:function(o,c,i){var l=i(3099);o.exports=function(u,h,f){if(l(u),h===void 0)return u;switch(f){case 0:return function(){return u.call(h)};case 1:return function(m){return u.call(h,m)};case 2:return function(m,g){return u.call(h,m,g)};case 3:return function(m,g,v){return u.call(h,m,g,v)}}return function(){return u.apply(h,arguments)}}},5005:function(o,c,i){var l=i(857),u=i(7854),h=function(f){return typeof f=="function"?f:void 0};o.exports=function(f,m){return arguments.length<2?h(l[f])||h(u[f]):l[f]&&l[f][m]||u[f]&&u[f][m]}},1246:function(o,c,i){var l=i(648),u=i(7497),h=i(5112),f=h("iterator");o.exports=function(m){if(m!=null)return m[f]||m["@@iterator"]||u[l(m)]}},8554:function(o,c,i){var l=i(9670),u=i(1246);o.exports=function(h){var f=u(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),u=Math.floor,h="".replace,f=/\$([$&'`]|\d\d?|<[^>]*>)/g,m=/\$([$&'`]|\d\d?)/g;o.exports=function(g,v,x,T,S,I){var F=x+g.length,M=T.length,z=m;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 g;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=u(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(u){return u&&u.Math==Math&&u};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),u=i(7293),h=i(317);o.exports=!l&&!u(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,u=Math.log,h=Math.LN2,f=function(g,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=g<0||g===0&&1/g<0?1:0,X=0,H,re,G;for(g=c(g),g!=g||g===1/0?(re=g!=g?1:0,H=I):(H=l(u(g)/h),g*(G=i(2,-H))<1&&(H--,G*=2),H+F>=1?g+=M/G:g+=M*i(2,1-F),g*G>=2&&(H++,G/=2),H+F>=I?(re=0,H=I):H+F>=1?(re=(g*G-1)*i(2,v),H=H+F):(re=g*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},m=function(g,v){var x=g.length,T=x*8-v-1,S=(1<<T)-1,I=S>>1,F=T-7,M=x-1,z=g[M--],X=z&127,H;for(z>>=7;F>0;X=X*256+g[M],M--,F-=8);for(H=X&(1<<-F)-1,X>>=-F,F+=v;F>0;H=H*256+g[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:m}},8361:function(o,c,i){var l=i(7293),u=i(4326),h="".split;o.exports=l(function(){return!Object("z").propertyIsEnumerable(0)})?function(f){return u(f)=="String"?h.call(f,""):Object(f)}:Object},9587:function(o,c,i){var l=i(111),u=i(7674);o.exports=function(h,f,m){var g,v;return u&&typeof(g=f.constructor)=="function"&&g!==m&&l(v=g.prototype)&&v!==m.prototype&&u(h,v),h}},2788:function(o,c,i){var l=i(5465),u=Function.toString;typeof l.inspectSource!="function"&&(l.inspectSource=function(h){return u.call(h)}),o.exports=l.inspectSource},9909:function(o,c,i){var l=i(8536),u=i(7854),h=i(111),f=i(8880),m=i(6656),g=i(5465),v=i(6200),x=i(3501),T=u.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=g.state||(g.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 m(P,E)?P[E]:{}},F=function(P){return m(P,E)}}o.exports={set:S,get:I,has:F,enforce:M,getterFor:z}},7659:function(o,c,i){var l=i(5112),u=i(7497),h=l("iterator"),f=Array.prototype;o.exports=function(m){return m!==void 0&&(u.Array===m||f[h]===m)}},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),u=/#|\.prototype\./,h=function(x,T){var S=m[f(x)];return S==v?!0:S==g?!1:typeof T=="function"?l(T):!!T},f=h.normalize=function(x){return String(x).replace(u,".").toLowerCase()},m=h.data={},g=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),u=i(4326),h=i(5112),f=h("match");o.exports=function(m){var g;return l(m)&&((g=m[f])!==void 0?!!g:u(m)=="RegExp")}},9212:function(o,c,i){var l=i(9670);o.exports=function(u){var h=u.return;if(h!==void 0)return l(h.call(u)).value}},3383:function(o,c,i){var l=i(7293),u=i(9518),h=i(8880),f=i(6656),m=i(5112),g=i(1913),v=m("iterator"),x=!1,T=function(){return this},S,I,F;[].keys&&(F=[].keys(),"next"in F?(I=u(u(F)),I!==Object.prototype&&(S=I)):x=!0);var M=S==null||l(function(){var z={};return S[v].call(z)!==z});M&&(S={}),(!g||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),u=i(5112),h=i(1913),f=u("iterator");o.exports=!l(function(){var m=new URL("b?a=1&b=2&c=3","http://a"),g=m.searchParams,v="";return m.pathname="c%20d",g.forEach(function(x,T){g.delete("b"),v+=T+x}),h&&!m.toJSON||!g.sort||m.href!=="http://a/c%20d?a=1&c=3"||g.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!g[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),u=i(2788),h=l.WeakMap;o.exports=typeof h=="function"&&/native code/.test(u(h))},1574:function(o,c,i){var l=i(9781),u=i(7293),h=i(1956),f=i(5181),m=i(5296),g=i(7908),v=i(8361),x=Object.assign,T=Object.defineProperty;o.exports=!x||u(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=g(I),z=arguments.length,X=1,H=f.f,re=m.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),u=i(6048),h=i(748),f=i(3501),m=i(490),g=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=g("iframe"),P="java"+I+":",O;return E.style.display="none",m.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?_:u(_,O)}},6048:function(o,c,i){var l=i(9781),u=i(3070),h=i(9670),f=i(1956);o.exports=l?Object.defineProperties:function(g,v){h(g);for(var x=f(v),T=x.length,S=0,I;T>S;)u.f(g,I=x[S++],v[I]);return g}},3070:function(o,c,i){var l=i(9781),u=i(4664),h=i(9670),f=i(7593),m=Object.defineProperty;c.f=l?m:function(v,x,T){if(h(v),x=f(x,!0),h(T),u)try{return m(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),u=i(5296),h=i(9114),f=i(5656),m=i(7593),g=i(6656),v=i(4664),x=Object.getOwnPropertyDescriptor;c.f=l?x:function(S,I){if(S=f(S),I=m(I,!0),v)try{return x(S,I)}catch{}if(g(S,I))return h(!u.f.call(S,I),S[I])}},8006:function(o,c,i){var l=i(6324),u=i(748),h=u.concat("length","prototype");c.f=Object.getOwnPropertyNames||function(m){return l(m,h)}},5181:function(o,c){c.f=Object.getOwnPropertySymbols},9518:function(o,c,i){var l=i(6656),u=i(7908),h=i(6200),f=i(8544),m=h("IE_PROTO"),g=Object.prototype;o.exports=f?Object.getPrototypeOf:function(v){return v=u(v),l(v,m)?v[m]:typeof v.constructor=="function"&&v instanceof v.constructor?v.constructor.prototype:v instanceof Object?g:null}},6324:function(o,c,i){var l=i(6656),u=i(5656),h=i(1318).indexOf,f=i(3501);o.exports=function(m,g){var v=u(m),x=0,T=[],S;for(S in v)!l(f,S)&&l(v,S)&&T.push(S);for(;g.length>x;)l(v,S=g[x++])&&(~h(T,S)||T.push(S));return T}},1956:function(o,c,i){var l=i(6324),u=i(748);o.exports=Object.keys||function(f){return l(f,u)}},5296:function(o,c){var i={}.propertyIsEnumerable,l=Object.getOwnPropertyDescriptor,u=l&&!i.call({1:2},1);c.f=u?function(f){var m=l(this,f);return!!m&&m.enumerable}:i},7674:function(o,c,i){var l=i(9670),u=i(6077);o.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var h=!1,f={},m;try{m=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,m.call(f,[]),h=f instanceof Array}catch{}return function(v,x){return l(v),u(x),h?m.call(v,x):v.__proto__=x,v}}():void 0)},288:function(o,c,i){var l=i(1694),u=i(648);o.exports=l?{}.toString:function(){return"[object "+u(this)+"]"}},3887:function(o,c,i){var l=i(5005),u=i(8006),h=i(5181),f=i(9670);o.exports=l("Reflect","ownKeys")||function(g){var v=u.f(f(g)),x=h.f;return x?v.concat(x(g)):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(u,h,f){for(var m in h)l(u,m,h[m],f);return u}},1320:function(o,c,i){var l=i(7854),u=i(8880),h=i(6656),f=i(3505),m=i(2788),g=i(9909),v=g.get,x=g.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")&&u(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:u(S,I,F)})(Function.prototype,"toString",function(){return typeof this=="function"&&v(this).source||m(this)})},7651:function(o,c,i){var l=i(4326),u=i(2261);o.exports=function(h,f){var m=h.exec;if(typeof m=="function"){var g=m.call(h,f);if(typeof g!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return g}if(l(h)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return u.call(h,f)}},2261:function(o,c,i){var l=i(7066),u=i(2999),h=RegExp.prototype.exec,f=String.prototype.replace,m=h,g=function(){var S=/a/,I=/b*/g;return h.call(S,"a"),h.call(I,"a"),S.lastIndex!==0||I.lastIndex!==0}(),v=u.UNSUPPORTED_Y||u.BROKEN_CARET,x=/()??/.exec("")[1]!==void 0,T=g||x||v;T&&(m=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)),g&&(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:g&&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=m},7066:function(o,c,i){var l=i(9670);o.exports=function(){var u=l(this),h="";return u.global&&(h+="g"),u.ignoreCase&&(h+="i"),u.multiline&&(h+="m"),u.dotAll&&(h+="s"),u.unicode&&(h+="u"),u.sticky&&(h+="y"),h}},2999:function(o,c,i){var l=i(7293);function u(h,f){return RegExp(h,f)}c.UNSUPPORTED_Y=l(function(){var h=u("a","y");return h.lastIndex=2,h.exec("abcd")!=null}),c.BROKEN_CARET=l(function(){var h=u("^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),u=i(8880);o.exports=function(h,f){try{u(l,h,f)}catch{l[h]=f}return f}},6340:function(o,c,i){var l=i(5005),u=i(3070),h=i(5112),f=i(9781),m=h("species");o.exports=function(g){var v=l(g),x=u.f;f&&v&&!v[m]&&x(v,m,{configurable:!0,get:function(){return this}})}},8003:function(o,c,i){var l=i(3070).f,u=i(6656),h=i(5112),f=h("toStringTag");o.exports=function(m,g,v){m&&!u(m=v?m:m.prototype,f)&&l(m,f,{configurable:!0,value:g})}},6200:function(o,c,i){var l=i(2309),u=i(9711),h=l("keys");o.exports=function(f){return h[f]||(h[f]=u(f))}},5465:function(o,c,i){var l=i(7854),u=i(3505),h="__core-js_shared__",f=l[h]||u(h,{});o.exports=f},2309:function(o,c,i){var l=i(1913),u=i(5465);(o.exports=function(h,f){return u[h]||(u[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),u=i(3099),h=i(5112),f=h("species");o.exports=function(m,g){var v=l(m).constructor,x;return v===void 0||(x=l(v)[f])==null?g:u(x)}},8710:function(o,c,i){var l=i(9958),u=i(4488),h=function(f){return function(m,g){var v=String(u(m)),x=l(g),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,u=26,h=38,f=700,m=72,g=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*u>>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=g,_=0,j=m,$,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 ge=J+1;if(te-O>F((c-_)/ge))throw RangeError(S);for(_+=(te-O)*ge,O=te,$=0;$<G.length;$++){if(K=G[$],K<O&&++_>c)throw RangeError(S);if(K==O){for(var me=_,ve=i;;ve+=i){var xe=ve<=j?l:ve>=j+u?u:ve-j;if(me<xe)break;var he=me-xe,Oe=i-xe;E.push(M(X(xe+he%Oe))),me=F(he/Oe)}E.push(M(X(me))),j=H(_,ge,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),u=i(1361),h="
";o.exports=function(f){return l(function(){return!!u[f]()||h[f]()!=h||u[f].name!==f})}},3111:function(o,c,i){var l=i(4488),u=i(1361),h="["+u+"]",f=RegExp("^"+h+h+"*"),m=RegExp(h+h+"*$"),g=function(v){return function(x){var T=String(l(x));return v&1&&(T=T.replace(f,"")),v&2&&(T=T.replace(m,"")),T}};o.exports={start:g(1),end:g(2),trim:g(3)}},1400:function(o,c,i){var l=i(9958),u=Math.max,h=Math.min;o.exports=function(f,m){var g=l(f);return g<0?u(g+m,0):h(g,m)}},7067:function(o,c,i){var l=i(9958),u=i(7466);o.exports=function(h){if(h===void 0)return 0;var f=l(h),m=u(f);if(f!==m)throw RangeError("Wrong length or index");return m}},5656:function(o,c,i){var l=i(8361),u=i(4488);o.exports=function(h){return l(u(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),u=Math.min;o.exports=function(h){return h>0?u(l(h),9007199254740991):0}},7908:function(o,c,i){var l=i(4488);o.exports=function(u){return Object(l(u))}},4590:function(o,c,i){var l=i(3002);o.exports=function(u,h){var f=l(u);if(f%h)throw RangeError("Wrong offset");return f}},3002:function(o,c,i){var l=i(9958);o.exports=function(u){var h=l(u);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(u,h){if(!l(u))return u;var f,m;if(h&&typeof(f=u.toString)=="function"&&!l(m=f.call(u))||typeof(f=u.valueOf)=="function"&&!l(m=f.call(u))||!h&&typeof(f=u.toString)=="function"&&!l(m=f.call(u)))return m;throw TypeError("Can't convert object to primitive value")}},1694:function(o,c,i){var l=i(5112),u=l("toStringTag"),h={};h[u]="z",o.exports=String(h)==="[object z]"},9843:function(o,c,i){var l=i(2109),u=i(7854),h=i(9781),f=i(3832),m=i(260),g=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,ge=j.f,me=$.f,ve=Math.round,xe=u.RangeError,he=g.ArrayBuffer,Oe=g.DataView,ye=m.NATIVE_ARRAY_BUFFER_VIEWS,N=m.TYPED_ARRAY_TAG,R=m.TypedArray,w=m.TypedArrayPrototype,C=m.aTypedArrayConstructor,y=m.isTypedArray,b="BYTES_PER_ELEMENT",L="Wrong length",B=function(Q,ne){for(var oe=0,de=ne.length,we=new(C(Q))(de);de>oe;)we[oe]=ne[oe++];return we},U=function(Q,ne){ge(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]):me(ne,oe)},Y=function(ne,oe,de){return W(ne,oe=M(oe,!0))&&H(de)&&z(de,"value")&&!z(de,"get")&&!z(de,"set")&&!de.configurable&&(!z(de,"writable")||de.writable)&&(!z(de,"enumerable")||de.enumerable)?(ne[oe]=de.value,ne):ge(ne,oe,de)};h?(ye||($.f=Z,j.f=Y,U(w,"buffer"),U(w,"byteOffset"),U(w,"byteLength"),U(w,"length")),l({target:"Object",stat:!0,forced:!ye},{getOwnPropertyDescriptor:Z,defineProperty:Y}),o.exports=function(Q,ne,oe){var de=Q.match(/\d+$/)[0]/8,we=Q+(oe?"Clamped":"")+"Array",De="get"+Q,Ge="set"+Q,je=u[we],Be=je,$e=Be&&Be.prototype,rt={},it=function(_e,Pe){var We=J(_e);return We.view[De](Pe*de+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*de+pe.byteOffset,We,!0)},bt=function(_e,Pe){ge(_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,we),q(function(){return H(Pe)?V(Pe)?pe!==void 0?new je(Pe,F(We,de),pe):We!==void 0?new je(Pe,F(We,de)):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,we);var be=0,Ce=0,Le,Ie,Ve;if(!H(Pe))Ve=I(Pe),Ie=Ve*de,Le=new he(Ie);else if(V(Pe)){Le=Pe,Ce=F(We,de);var Ke=Pe.byteLength;if(pe===void 0){if(Ke%de||(Ie=Ke-Ce,Ie<0))throw xe(L)}else if(Ie=S(pe)*de,Ie+Ce>Ke)throw xe(L);Ve=Ie/de}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(w)),$e.constructor!==Be&&T($e,"constructor",Be),N&&T($e,N,we),rt[we]=Be,l({global:!0,forced:Be!=je,sham:!ye},rt),b in Be||T(Be,b,de),b in $e||T($e,b,de),_(we)}):o.exports=function(){}},3832:function(o,c,i){var l=i(7854),u=i(7293),h=i(7072),f=i(260).NATIVE_ARRAY_BUFFER_VIEWS,m=l.ArrayBuffer,g=l.Int8Array;o.exports=!f||!u(function(){g(1)})||!u(function(){new g(-1)})||!h(function(v){new g,new g(null),new g(1.5),new g(v)},!0)||u(function(){return new g(new m(2),1,void 0).length!==1})},3074:function(o,c,i){var l=i(260).aTypedArrayConstructor,u=i(6707);o.exports=function(h,f){for(var m=u(h,h.constructor),g=0,v=f.length,x=new(l(m))(v);v>g;)x[g]=f[g++];return x}},7321:function(o,c,i){var l=i(7908),u=i(7466),h=i(1246),f=i(7659),m=i(9974),g=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=m(I,arguments[2],2)),X=u(T.length),H=new(g(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),u=i(2309),h=i(6656),f=i(9711),m=i(133),g=i(3307),v=u("wks"),x=l.Symbol,T=g?x:x&&x.withoutSetter||f;o.exports=function(S){return h(v,S)||(m&&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),u=i(7854),h=i(3331),f=i(6340),m="ArrayBuffer",g=h[m],v=u[m];l({global:!0,forced:v!==g},{ArrayBuffer:g}),f(m)},2222:function(o,c,i){var l=i(2109),u=i(7293),h=i(3157),f=i(111),m=i(7908),g=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||!u(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=m(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=g(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),u=i(2092).filter,h=i(1194),f=h("filter");l({target:"Array",proto:!0,forced:!f},{filter:function(g){return u(this,g,arguments.length>1?arguments[1]:void 0)}})},2772:function(o,c,i){var l=i(2109),u=i(1318).indexOf,h=i(9341),f=[].indexOf,m=!!f&&1/[1].indexOf(1,-0)<0,g=h("indexOf");l({target:"Array",proto:!0,forced:m||!g},{indexOf:function(x){return m?f.apply(this,arguments)||0:u(this,x,arguments.length>1?arguments[1]:void 0)}})},6992:function(o,c,i){var l=i(5656),u=i(1223),h=i(7497),f=i(9909),m=i(654),g="Array Iterator",v=f.set,x=f.getterFor(g);o.exports=m(Array,"Array",function(T,S){v(this,{type:g,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,u("keys"),u("values"),u("entries")},1249:function(o,c,i){var l=i(2109),u=i(2092).map,h=i(1194),f=h("map");l({target:"Array",proto:!0,forced:!f},{map:function(g){return u(this,g,arguments.length>1?arguments[1]:void 0)}})},7042:function(o,c,i){var l=i(2109),u=i(111),h=i(3157),f=i(1400),m=i(7466),g=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=g(this),G=m(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:u(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),u=i(1400),h=i(9958),f=i(7466),m=i(7908),g=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=m(this),G=f(re.length),E=u(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=g(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),u=i(3070).f,h=Function.prototype,f=h.toString,m=/^\s*function ([^ (]*)/,g="name";l&&!(g in h)&&u(h,g,{configurable:!0,get:function(){try{return f.call(this).match(m)[1]}catch{return""}}})},489:function(o,c,i){var l=i(2109),u=i(7293),h=i(7908),f=i(9518),m=i(8544),g=u(function(){f(1)});l({target:"Object",stat:!0,forced:g,sham:!m},{getPrototypeOf:function(x){return f(h(x))}})},1539:function(o,c,i){var l=i(1694),u=i(1320),h=i(288);l||u(Object.prototype,"toString",h,{unsafe:!0})},4916:function(o,c,i){var l=i(2109),u=i(2261);l({target:"RegExp",proto:!0,forced:/./.exec!==u},{exec:u})},9714:function(o,c,i){var l=i(1320),u=i(9670),h=i(7293),f=i(7066),m="toString",g=RegExp.prototype,v=g[m],x=h(function(){return v.call({source:"a",flags:"b"})!="/a/b"}),T=v.name!=m;(x||T)&&l(RegExp.prototype,m,function(){var I=u(this),F=String(I.source),M=I.flags,z=String(M===void 0&&I instanceof RegExp&&!("flags"in g)?f.call(I):M);return"/"+F+"/"+z},{unsafe:!0})},8783:function(o,c,i){var l=i(8710).charAt,u=i(9909),h=i(654),f="String Iterator",m=u.set,g=u.getterFor(f);h(String,"String",function(v){m(this,{type:f,string:String(v),index:0})},function(){var x=g(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),u=i(9670),h=i(7466),f=i(4488),m=i(1530),g=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=u(S),M=String(this);if(!F.global)return g(F,M);var z=F.unicode;F.lastIndex=0;for(var X=[],H=0,re;(re=g(F,M))!==null;){var G=String(re[0]);X[H]=G,G===""&&(F.lastIndex=m(M,h(F.lastIndex),z)),H++}return H===0?null:X}]})},5306:function(o,c,i){var l=i(7007),u=i(9670),h=i(7466),f=i(9958),m=i(4488),g=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 _=m(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 _=u(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 ge=String(te[0]);ge===""&&(_.lastIndex=g(j,h(_.lastIndex),q))}for(var me="",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 w=[he].concat(ye,Oe,j);R!==void 0&&w.push(R);var C=String(P.apply(void 0,w))}else C=v(he,j,Oe,ye,R,P);Oe>=ve&&(me+=j.slice(ve,Oe)+C,ve=Oe+he.length)}return me+j.slice(ve)}]})},3123:function(o,c,i){var l=i(7007),u=i(7850),h=i(9670),f=i(4488),m=i(6707),g=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(!u(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,ge;(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)),ge=J[0].length,K=te,j.length>=_)));)q.lastIndex===J.index&&q.lastIndex++;return K===O.length?(ge||!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),$=m(_,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 ge=0,me=0,ve=[];me<j.length;){J.lastIndex=z?me:0;var xe=x(J,z?j:j.slice(me)),he;if(xe===null||(he=F(v(J.lastIndex+(z?0:me)),j.length))===ge)me=g(j,me,K);else{if(ve.push(j.slice(ge,me)),ve.length===te)return ve;for(var Oe=1;Oe<=xe.length-1;Oe++)if(ve.push(xe[Oe]),ve.length===te)return ve;me=ge=he}}return ve.push(j.slice(ge)),ve}]},!z)},3210:function(o,c,i){var l=i(2109),u=i(3111).trim,h=i(6091);l({target:"String",proto:!0,forced:h("trim")},{trim:function(){return u(this)}})},2990:function(o,c,i){var l=i(260),u=i(1048),h=l.aTypedArray,f=l.exportTypedArrayMethod;f("copyWithin",function(g,v){return u.call(h(this),g,v,arguments.length>2?arguments[2]:void 0)})},8927:function(o,c,i){var l=i(260),u=i(2092).every,h=l.aTypedArray,f=l.exportTypedArrayMethod;f("every",function(g){return u(h(this),g,arguments.length>1?arguments[1]:void 0)})},3105:function(o,c,i){var l=i(260),u=i(1285),h=l.aTypedArray,f=l.exportTypedArrayMethod;f("fill",function(g){return u.apply(h(this),arguments)})},5035:function(o,c,i){var l=i(260),u=i(2092).filter,h=i(3074),f=l.aTypedArray,m=l.exportTypedArrayMethod;m("filter",function(v){var x=u(f(this),v,arguments.length>1?arguments[1]:void 0);return h(this,x)})},7174:function(o,c,i){var l=i(260),u=i(2092).findIndex,h=l.aTypedArray,f=l.exportTypedArrayMethod;f("findIndex",function(g){return u(h(this),g,arguments.length>1?arguments[1]:void 0)})},4345:function(o,c,i){var l=i(260),u=i(2092).find,h=l.aTypedArray,f=l.exportTypedArrayMethod;f("find",function(g){return u(h(this),g,arguments.length>1?arguments[1]:void 0)})},2846:function(o,c,i){var l=i(260),u=i(2092).forEach,h=l.aTypedArray,f=l.exportTypedArrayMethod;f("forEach",function(g){u(h(this),g,arguments.length>1?arguments[1]:void 0)})},4731:function(o,c,i){var l=i(260),u=i(1318).includes,h=l.aTypedArray,f=l.exportTypedArrayMethod;f("includes",function(g){return u(h(this),g,arguments.length>1?arguments[1]:void 0)})},7209:function(o,c,i){var l=i(260),u=i(1318).indexOf,h=l.aTypedArray,f=l.exportTypedArrayMethod;f("indexOf",function(g){return u(h(this),g,arguments.length>1?arguments[1]:void 0)})},6319:function(o,c,i){var l=i(7854),u=i(260),h=i(6992),f=i(5112),m=f("iterator"),g=l.Uint8Array,v=h.values,x=h.keys,T=h.entries,S=u.aTypedArray,I=u.exportTypedArrayMethod,F=g&&g.prototype[m],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(m,z,!M)},8867:function(o,c,i){var l=i(260),u=l.aTypedArray,h=l.exportTypedArrayMethod,f=[].join;h("join",function(g){return f.apply(u(this),arguments)})},7789:function(o,c,i){var l=i(260),u=i(6583),h=l.aTypedArray,f=l.exportTypedArrayMethod;f("lastIndexOf",function(g){return u.apply(h(this),arguments)})},3739:function(o,c,i){var l=i(260),u=i(2092).map,h=i(6707),f=l.aTypedArray,m=l.aTypedArrayConstructor,g=l.exportTypedArrayMethod;g("map",function(x){return u(f(this),x,arguments.length>1?arguments[1]:void 0,function(T,S){return new(m(h(T,T.constructor)))(S)})})},4483:function(o,c,i){var l=i(260),u=i(3671).right,h=l.aTypedArray,f=l.exportTypedArrayMethod;f("reduceRight",function(g){return u(h(this),g,arguments.length,arguments.length>1?arguments[1]:void 0)})},9368:function(o,c,i){var l=i(260),u=i(3671).left,h=l.aTypedArray,f=l.exportTypedArrayMethod;f("reduce",function(g){return u(h(this),g,arguments.length,arguments.length>1?arguments[1]:void 0)})},2056:function(o,c,i){var l=i(260),u=l.aTypedArray,h=l.exportTypedArrayMethod,f=Math.floor;h("reverse",function(){for(var g=this,v=u(g).length,x=f(v/2),T=0,S;T<x;)S=g[T],g[T++]=g[--v],g[v]=S;return g})},3462:function(o,c,i){var l=i(260),u=i(7466),h=i(4590),f=i(7908),m=i(7293),g=l.aTypedArray,v=l.exportTypedArrayMethod,x=m(function(){new Int8Array(1).set({})});v("set",function(S){g(this);var I=h(arguments.length>1?arguments[1]:void 0,1),F=this.length,M=f(S),z=u(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),u=i(6707),h=i(7293),f=l.aTypedArray,m=l.aTypedArrayConstructor,g=l.exportTypedArrayMethod,v=[].slice,x=h(function(){new Int8Array(1).slice()});g("slice",function(S,I){for(var F=v.call(f(this),S,I),M=u(this,this.constructor),z=0,X=F.length,H=new(m(M))(X);X>z;)H[z]=F[z++];return H},x)},7462:function(o,c,i){var l=i(260),u=i(2092).some,h=l.aTypedArray,f=l.exportTypedArrayMethod;f("some",function(g){return u(h(this),g,arguments.length>1?arguments[1]:void 0)})},3824:function(o,c,i){var l=i(260),u=l.aTypedArray,h=l.exportTypedArrayMethod,f=[].sort;h("sort",function(g){return f.call(u(this),g)})},5021:function(o,c,i){var l=i(260),u=i(7466),h=i(1400),f=i(6707),m=l.aTypedArray,g=l.exportTypedArrayMethod;g("subarray",function(x,T){var S=m(this),I=S.length,F=h(x,I);return new(f(S,S.constructor))(S.buffer,S.byteOffset+F*S.BYTES_PER_ELEMENT,u((T===void 0?I:h(T,I))-F))})},2974:function(o,c,i){var l=i(7854),u=i(260),h=i(7293),f=l.Int8Array,m=u.aTypedArray,g=u.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])});g("toLocaleString",function(){return v.apply(T?x.call(m(this)):m(this),arguments)},S)},5016:function(o,c,i){var l=i(260).exportTypedArrayMethod,u=i(7293),h=i(7854),f=h.Uint8Array,m=f&&f.prototype||{},g=[].toString,v=[].join;u(function(){g.call({})})&&(g=function(){return v.call(this)});var x=m.toString!=g;l("toString",g,x)},2472:function(o,c,i){var l=i(9843);l("Uint8",function(u){return function(f,m,g){return u(this,f,m,g)}})},4747:function(o,c,i){var l=i(7854),u=i(8324),h=i(8533),f=i(8880);for(var m in u){var g=l[m],v=g&&g.prototype;if(v&&v.forEach!==h)try{f(v,"forEach",h)}catch{v.forEach=h}}},3948:function(o,c,i){var l=i(7854),u=i(8324),h=i(6992),f=i(8880),m=i(5112),g=m("iterator"),v=m("toStringTag"),x=h.values;for(var T in u){var S=l[T],I=S&&S.prototype;if(I){if(I[g]!==x)try{f(I,g,x)}catch{I[g]=x}if(I[v]||f(I,v,T),u[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),u=i(5005),h=i(590),f=i(1320),m=i(2248),g=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=u("fetch"),O=u("Headers"),_=E("iterator"),j="URLSearchParams",$=j+"Iterator",K=x.set,q=x.getterFor(j),J=x.getterFor($),te=/\+/g,ge=Array(4),me=function(B){return ge[B-1]||(ge[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(me(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("="))}))},w=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,de,we,De,Ge;if(K(V,{type:j,entries:W,updateURL:function(){},updateSearchParams:w}),U!==void 0)if(z(U))if(Z=G(U),typeof Z=="function")for(Y=Z.call(U),Q=Y.next;!(ne=Q.call(Y)).done;){if(oe=re(M(ne.value)),de=oe.next,(we=de.call(oe)).done||(De=de.call(oe)).done||!de.call(oe).done)throw TypeError("Expected sequence with length 2");W.push({key:we.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;m(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,de;oe<Z.length;oe++)de=Z[oe],de.key===Q&&(Y?Z.splice(oe--,1):(Y=!0,de.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}),g(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),u=i(9781),h=i(590),f=i(7854),m=i(6048),g=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]/,ge=/\d/,me=/^(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,w,C=function(k,ae){var se,ce,fe;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),fe=0;fe<ce.length;fe++)se+=Y(ce[fe],U);k.host=se}},y=function(k){var ae=k.split("."),se,ce,fe,ke,Ae,Ue,qe;if(ae.length&&ae[ae.length-1]==""&&ae.pop(),se=ae.length,se>4)return k;for(ce=[],fe=0;fe<se;fe++){if(ke=ae[fe],ke=="")return k;if(Ae=10,ke.length>1&&ke.charAt(0)=="0"&&(Ae=me.test(ke)?16:8,ke=ke.slice(Ae==8?1:2)),ke==="")Ue=0;else{if(!(Ae==10?xe:Ae==8?ve:he).test(ke))return k;Ue=parseInt(ke,Ae)}ce.push(Ue)}for(fe=0;fe<se;fe++)if(Ue=ce[fe],fe==se-1){if(Ue>=_(256,5-se))return null}else if(Ue>255)return null;for(qe=ce.pop(),fe=0;fe<ce.length;fe++)qe+=ce[fe]*_(256,3-fe);return qe},b=function(k){var ae=[0,0,0,0,0,0,0,0],se=0,ce=null,fe=0,ke,Ae,Ue,qe,Qe,Et,ue,st=function(){return k.charAt(fe)};if(st()==":"){if(k.charAt(1)!=":")return;fe+=2,se++,ce=se}for(;st();){if(se==8)return;if(st()==":"){if(ce!==null)return;fe++,se++,ce=se;continue}for(ke=Ae=0;Ae<4&&he.test(st());)ke=ke*16+parseInt(st(),16),fe++,Ae++;if(st()=="."){if(Ae==0||(fe-=Ae,se>6))return;for(Ue=0;st();){if(qe=null,Ue>0)if(st()=="."&&Ue<4)fe++;else return;if(!ge.test(st()))return;for(;ge.test(st());){if(Qe=parseInt(st(),10),qe===null)qe=Qe;else{if(qe==0)return;qe=qe*10+Qe}if(qe>255)return;fe++}ae[se]=ae[se]*256+qe,Ue++,(Ue==2||Ue==4)&&se++}if(Ue!=4)return;break}else if(st()==":"){if(fe++,!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,fe=0,ke=0;ke<8;ke++)k[ke]!==0?(fe>se&&(ae=ce,se=fe),ce=null,fe=0):(ce===null&&(ce=ke),++fe);return fe>se&&(ae=ce,se=fe),ae},B=function(k){var ae,se,ce,fe;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++)fe&&k[se]===0||(fe&&(fe=!1),ce===se?(ae+=se?":":"::",fe=!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!=""},de=function(k){return!k.host||k.cannotBeABaseURL||k.scheme=="file"},we=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&&we(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||!we(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={},ft={},dt={},It={},Ut={},lt={},Ot=function(k,ae,se,ce){var fe=se||$e,ke=0,Ae="",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],fe){case $e:if(ue&&J.test(ue))Ae+=ue.toLowerCase(),fe=rt;else{if(se)return $;fe=it;continue}break;case rt:if(ue&&(te.test(ue)||ue=="+"||ue=="-"||ue=="."))Ae+=ue.toLowerCase();else if(ue==":"){if(se&&(ne(k)!=x(Q,Ae)||Ae=="file"&&(oe(k)||k.port!==null)||k.scheme=="file"&&!k.host))return;if(k.scheme=Ae,se){ne(k)&&Q[k.scheme]==k.port&&(k.port=null);return}Ae="",k.scheme=="file"?fe=Ve:ne(k)&&ce&&ce.scheme==k.scheme?fe=Dt:ne(k)?fe=We:Et[ke+1]=="/"?(fe=bt,ke++):(k.cannotBeABaseURL=!0,k.path.push(""),fe=It)}else{if(se)return $;Ae="",fe=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,fe=lt;break}fe=ce.scheme=="file"?Ve:_e;continue;case Dt:if(ue=="/"&&Et[ke+1]=="/")fe=pe,ke++;else{fe=_e;continue}break;case bt:if(ue=="/"){fe=be;break}else{fe=dt;continue}case _e:if(k.scheme=ce.scheme,ue==w)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))fe=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="",fe=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="",fe=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(),fe=dt;continue}break;case Pe:if(ne(k)&&(ue=="/"||ue=="\\"))fe=pe;else if(ue=="/")fe=be;else{k.username=ce.username,k.password=ce.password,k.host=ce.host,k.port=ce.port,fe=dt;continue}break;case We:if(fe=pe,ue!="/"||Ae.charAt(ke+1)!="/")continue;ke++;break;case pe:if(ue!="/"&&ue!="\\"){fe=be;continue}break;case be:if(ue=="@"){Ue&&(Ae="%40"+Ae),Ue=!0,st=S(Ae);for(var Hn=0;Hn<st.length;Hn++){var mn=st[Hn];if(mn==":"&&!Qe){Qe=!0;continue}var Cn=Y(mn,Z);Qe?k.password+=Cn:k.username+=Cn}Ae=""}else if(ue==w||ue=="/"||ue=="?"||ue=="#"||ue=="\\"&&ne(k)){if(Ue&&Ae=="")return j;ke-=S(Ae).length+1,Ae="",fe=Ce}else Ae+=ue;break;case Ce:case Le:if(se&&k.scheme=="file"){fe=et;continue}else if(ue==":"&&!qe){if(Ae=="")return K;if(Lt=C(k,Ae),Lt)return Lt;if(Ae="",fe=Ie,se==Le)return}else if(ue==w||ue=="/"||ue=="?"||ue=="#"||ue=="\\"&&ne(k)){if(ne(k)&&Ae=="")return K;if(se&&Ae==""&&(oe(k)||k.port!==null))return;if(Lt=C(k,Ae),Lt)return Lt;if(Ae="",fe=ft,se)return;continue}else ue=="["?qe=!0:ue=="]"&&(qe=!1),Ae+=ue;break;case Ie:if(ge.test(ue))Ae+=ue;else if(ue==w||ue=="/"||ue=="?"||ue=="#"||ue=="\\"&&ne(k)||se){if(Ae!=""){var Yt=parseInt(Ae,10);if(Yt>65535)return q;k.port=ne(k)&&Yt===Q[k.scheme]?null:Yt,Ae=""}if(se)return;fe=ft;continue}else return q;break;case Ve:if(k.scheme="file",ue=="/"||ue=="\\")fe=Ke;else if(ce&&ce.scheme=="file")if(ue==w)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="",fe=Ut;else if(ue=="#")k.host=ce.host,k.path=ce.path.slice(),k.query=ce.query,k.fragment="",fe=lt;else{De(Et.slice(ke).join(""))||(k.host=ce.host,k.path=ce.path.slice(),Ge(k)),fe=dt;continue}else{fe=dt;continue}break;case Ke:if(ue=="/"||ue=="\\"){fe=et;break}ce&&ce.scheme=="file"&&!De(Et.slice(ke).join(""))&&(we(ce.path[0],!0)?k.path.push(ce.path[0]):k.host=ce.host),fe=dt;continue;case et:if(ue==w||ue=="/"||ue=="\\"||ue=="?"||ue=="#"){if(!se&&we(Ae))fe=dt;else if(Ae==""){if(k.host="",se)return;fe=ft}else{if(Lt=C(k,Ae),Lt)return Lt;if(k.host=="localhost"&&(k.host=""),se)return;Ae="",fe=ft}continue}else Ae+=ue;break;case ft:if(ne(k)){if(fe=dt,ue!="/"&&ue!="\\")continue}else if(!se&&ue=="?")k.query="",fe=Ut;else if(!se&&ue=="#")k.fragment="",fe=lt;else if(ue!=w&&(fe=dt,ue!="/"))continue;break;case dt:if(ue==w||ue=="/"||ue=="\\"&&ne(k)||!se&&(ue=="?"||ue=="#")){if(Be(Ae)?(Ge(k),ue!="/"&&!(ue=="\\"&&ne(k))&&k.path.push("")):je(Ae)?ue!="/"&&!(ue=="\\"&&ne(k))&&k.path.push(""):(k.scheme=="file"&&!k.path.length&&we(Ae)&&(k.host&&(k.host=""),Ae=Ae.charAt(0)+":"),k.path.push(Ae)),Ae="",k.scheme=="file"&&(ue==w||ue=="?"||ue=="#"))for(;k.path.length>1&&k.path[0]==="";)k.path.shift();ue=="?"?(k.query="",fe=Ut):ue=="#"&&(k.fragment="",fe=lt)}else Ae+=Y(ue,W);break;case It:ue=="?"?(k.query="",fe=Ut):ue=="#"?(k.fragment="",fe=lt):ue!=w&&(k.path[0]+=Y(ue,U));break;case Ut:!se&&ue=="#"?(k.fragment="",fe=lt):ue!=w&&(ue=="'"&&ne(k)?k.query+="%27":ue=="#"?k.query+="%23":k.query+=Y(ue,U));break;case lt:ue!=w&&(k.fragment+=Y(ue,V));break}ke++}},Xt=function(ae){var se=v(this,Xt,"URL"),ce=arguments.length>1?arguments[1]:void 0,fe=String(ae),ke=E(se,{type:"URL"}),Ae,Ue;if(ce!==void 0){if(ce instanceof Xt)Ae=P(ce);else if(Ue=Ot(Ae={},String(ce)),Ue)throw TypeError(Ue)}if(Ue=Ot(ke,fe,null,Ae),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},u||(se.href=gn.call(se),se.origin=On.call(se),se.protocol=ot.call(se),se.username=dr.call(se),se.password=hr.call(se),se.host=pr.call(se),se.hostname=gr.call(se),se.port=mr.call(se),se.pathname=ct.call(se),se.search=vr.call(se),se.searchParams=yr.call(se),se.hash=br.call(se))},zn=Xt.prototype,gn=function(){var k=P(this),ae=k.scheme,se=k.username,ce=k.password,fe=k.host,ke=k.port,Ae=k.path,Ue=k.query,qe=k.fragment,Qe=ae+":";return fe!==null?(Qe+="//",oe(k)&&(Qe+=se+(ce?":"+ce:"")+"@"),Qe+=B(fe),ke!==null&&(Qe+=":"+ke)):ae=="file"&&(Qe+="//"),Qe+=k.cannotBeABaseURL?Ae[0]:Ae.length?"/"+Ae.join("/"):"",Ue!==null&&(Qe+="?"+Ue),qe!==null&&(Qe+="#"+qe),Qe},On=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+":"},dr=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},gr=function(){var k=P(this).host;return k===null?"":B(k)},mr=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(u&&m(zn,{href:xt(gn,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(On),protocol:xt(ot,function(k){var ae=P(this);Ot(ae,String(k)+":",$e)}),username:xt(dr,function(k){var ae=P(this),se=S(String(k));if(!de(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(!de(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(gr,function(k){var ae=P(this);ae.cannotBeABaseURL||Ot(ae,String(k),Le)}),port:xt(mr,function(k){var ae=P(this);de(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+"",ft))}),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)})}),g(zn,"toJSON",function(){return gn.call(this)},{enumerable:!0}),g(zn,"toString",function(){return gn.call(this)},{enumerable:!0}),H){var xr=H.createObjectURL,pt=H.revokeObjectURL;xr&&g(Xt,"createObjectURL",function(ae){return xr.apply(H,arguments)}),pt&&g(Xt,"revokeObjectURL",function(ae){return pt.apply(H,arguments)})}M(Xt,"URL"),l({global:!0,forced:!h,sham:!u},{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 w;if(typeof Symbol>"u"||N[Symbol.iterator]==null){if(Array.isArray(N)||(w=c(N))||N&&typeof N.length=="number"){w&&(N=w);var C=0,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(){w=N[Symbol.iterator]()},n:function(){var V=w.next();return b=V.done,V},e:function(V){L=!0,B=V},f:function(){try{!b&&w.return!=null&&w.return()}finally{if(L)throw B}}}}function c(N,R){if(N){if(typeof N=="string")return i(N,R);var w=Object.prototype.toString.call(N).slice(8,-1);if(w==="Object"&&N.constructor&&(w=N.constructor.name),w==="Map"||w==="Set")return Array.from(N);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return i(N,R)}}function i(N,R){(R==null||R>N.length)&&(R=N.length);for(var w=0,C=new Array(R);w<R;w++)C[w]=N[w];return C}function l(N,R){if(!(N instanceof R))throw new TypeError("Cannot call a class as a function")}function u(N,R){for(var w=0;w<R.length;w++){var C=R[w];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(N,C.key,C)}}function h(N,R,w){return R&&u(N.prototype,R),N}var f=function(){function N(){l(this,N)}return h(N,[{key:"on",value:function(w,C){return this._callbacks=this._callbacks||{},this._callbacks[w]||(this._callbacks[w]=[]),this._callbacks[w].push(C),this}},{key:"emit",value:function(w){this._callbacks=this._callbacks||{};for(var C=this._callbacks[w],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:"+w,{args:b})),this}},{key:"makeEvent",value:function(w,C){var y={bubbles:!0,cancelable:!0,detail:C};if(typeof window.CustomEvent=="function")return new CustomEvent(w,y);var b=document.createEvent("CustomEvent");return b.initCustomEvent(w,y.bubbles,y.cancelable,y.detail),b}},{key:"off",value:function(w,C){if(!this._callbacks||arguments.length===0)return this._callbacks={},this;var y=this._callbacks[w];if(!y)return this;if(arguments.length===1)return delete this._callbacks[w],this;for(var b=0;b<y.length;b++){var L=y[b];if(L===C){y.splice(b,1);break}}return this}}]),N}(),m='<div class="dz-preview dz-file-preview"> <div class="dz-image"><img data-dz-thumbnail/></div> <div class="dz-details"> <div class="dz-size"><span data-dz-size></span></div> <div class="dz-filename"><span data-dz-name></span></div> </div> <div class="dz-progress"> <span class="dz-upload" data-dz-uploadprogress></span> </div> <div class="dz-error-message"><span data-dz-errormessage></span></div> <div class="dz-success-mark"> <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>Check</title> <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> <path d="M23.5,31.8431458 L17.5852419,25.9283877 C16.0248253,24.3679711 13.4910294,24.366835 11.9289322,25.9289322 C10.3700136,27.4878508 10.3665912,30.0234455 11.9283877,31.5852419 L20.4147581,40.0716123 C20.5133999,40.1702541 20.6159315,40.2626649 20.7218615,40.3488435 C22.2835669,41.8725651 24.794234,41.8626202 26.3461564,40.3106978 L43.3106978,23.3461564 C44.8771021,21.7797521 44.8758057,19.2483887 43.3137085,17.6862915 C41.7547899,16.1273729 39.2176035,16.1255422 37.6538436,17.6893022 L23.5,31.8431458 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z" stroke-opacity="0.198794158" stroke="#747474" fill-opacity="0.816519475" fill="#FFFFFF"></path> </g> </svg> </div> <div class="dz-error-mark"> <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>Error</title> <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> <g stroke="#747474" stroke-opacity="0.198794158" fill="#FFFFFF" fill-opacity="0.816519475"> <path d="M32.6568542,29 L38.3106978,23.3461564 C39.8771021,21.7797521 39.8758057,19.2483887 38.3137085,17.6862915 C36.7547899,16.1273729 34.2176035,16.1255422 32.6538436,17.6893022 L27,23.3431458 L21.3461564,17.6893022 C19.7823965,16.1255422 17.2452101,16.1273729 15.6862915,17.6862915 C14.1241943,19.2483887 14.1228979,21.7797521 15.6893022,23.3461564 L21.3431458,29 L15.6893022,34.6538436 C14.1228979,36.2202479 14.1241943,38.7516113 15.6862915,40.3137085 C17.2452101,41.8726271 19.7823965,41.8744578 21.3461564,40.3106978 L27,34.6568542 L32.6538436,40.3106978 C34.2176035,41.8744578 36.7547899,41.8726271 38.3137085,40.3137085 C39.8758057,38.7516113 39.8771021,36.2202479 38.3106978,34.6538436 L32.6568542,29 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z"></path> </g> </g> </svg> </div> </div> ',g=m;function v(N,R){var w;if(typeof Symbol>"u"||N[Symbol.iterator]==null){if(Array.isArray(N)||(w=x(N))||N&&typeof N.length=="number"){w&&(N=w);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
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var b=!0,L=!1,B;return{s:function(){w=N[Symbol.iterator]()},n:function(){var V=w.next();return b=V.done,V},e:function(V){L=!0,B=V},f:function(){try{!b&&w.return!=null&&w.return()}finally{if(L)throw B}}}}function x(N,R){if(N){if(typeof N=="string")return T(N,R);var w=Object.prototype.toString.call(N).slice(8,-1);if(w==="Object"&&N.constructor&&(w=N.constructor.name),w==="Map"||w==="Set")return Array.from(N);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return T(N,R)}}function T(N,R){(R==null||R>N.length)&&(R=N.length);for(var w=0,C=new Array(R);w<R;w++)C[w]=N[w];return C}var 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,w,C){if(C)return{dzuuid:C.file.upload.uuid,dzchunkindex:C.index,dztotalfilesize:C.file.size,dzchunksize:this.options.chunkSize,dztotalchunkcount:C.file.upload.totalChunkCount,dzchunkbyteoffset:C.index*this.options.chunkSize}},accept:function(R,w){return w()},chunksUploaded:function(R,w){w()},fallback:function(){var R;this.element.className="".concat(this.element.className," dz-browser-not-supported");var w=v(this.element.getElementsByTagName("div")),C;try{for(w.s();!(C=w.n()).done;){var y=C.value;if(/(^| )dz-message($| )/.test(y.className)){R=y,y.className="dz-message";break}}}catch(L){w.e(L)}finally{w.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,w,C,y){var b={srcX:0,srcY:0,srcWidth:R.width,srcHeight:R.height},L=R.width/R.height;w==null&&C==null?(w=b.srcWidth,C=b.srcHeight):w==null?w=C*L:C==null&&(C=w/L),w=Math.min(w,b.srcWidth),C=Math.min(C,b.srcHeight);var B=w/C;if(b.srcWidth>w||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=w/L:w=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=w,b.trgHeight=C,b},transformFile:function(R,w){return(this.options.resizeWidth||this.options.resizeHeight)&&R.type.match(/image.*/)?this.resizeImage(R,this.options.resizeWidth,this.options.resizeHeight,this.options.resizeMethod,w):w(R)},previewTemplate:g,drop:function(R){return this.element.classList.remove("dz-drag-hover")},dragstart:function(R){},dragend:function(R){return this.element.classList.remove("dz-drag-hover")},dragenter:function(R){return this.element.classList.add("dz-drag-hover")},dragover:function(R){return this.element.classList.add("dz-drag-hover")},dragleave:function(R){return this.element.classList.remove("dz-drag-hover")},paste:function(R){},reset:function(){return this.element.classList.remove("dz-started")},addedfile:function(R){var w=this;if(this.element===this.previewsContainer&&this.element.classList.add("dz-started"),this.previewsContainer&&!this.options.disablePreviews){R.previewElement=q.createElement(this.options.previewTemplate.trim()),R.previewTemplate=R.previewElement,this.previewsContainer.appendChild(R.previewElement);var C=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(w.options.dictCancelUploadConfirmation,function(){return w.removeFile(R)}):w.options.dictRemoveFileConfirmation?q.confirm(w.options.dictRemoveFileConfirmation,function(){return w.removeFile(R)}):w.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,w){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=w}}catch(L){C.e(L)}finally{C.f()}return setTimeout(function(){return R.previewElement.classList.add("dz-image-preview")},1)}},error:function(R,w){if(R.previewElement){R.previewElement.classList.add("dz-error"),typeof w!="string"&&w.error&&(w=w.error);var C=v(R.previewElement.querySelectorAll("[data-dz-errormessage]")),y;try{for(C.s();!(y=C.n()).done;){var b=y.value;b.textContent=w}}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,w,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=w:L.style.width="".concat(w,"%")}}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(w){return typeof w}:F=function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w},F(N)}function M(N,R){var w;if(typeof Symbol>"u"||N[Symbol.iterator]==null){if(Array.isArray(N)||(w=z(N))||N&&typeof N.length=="number"){w&&(N=w);var C=0,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
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var b=!0,L=!1,B;return{s:function(){w=N[Symbol.iterator]()},n:function(){var V=w.next();return b=V.done,V},e:function(V){L=!0,B=V},f:function(){try{!b&&w.return!=null&&w.return()}finally{if(L)throw B}}}}function z(N,R){if(N){if(typeof N=="string")return X(N,R);var w=Object.prototype.toString.call(N).slice(8,-1);if(w==="Object"&&N.constructor&&(w=N.constructor.name),w==="Map"||w==="Set")return Array.from(N);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return X(N,R)}}function X(N,R){(R==null||R>N.length)&&(R=N.length);for(var w=0,C=new Array(R);w<R;w++)C[w]=N[w];return C}function H(N,R){if(!(N instanceof R))throw new TypeError("Cannot call a class as a function")}function re(N,R){for(var w=0;w<R.length;w++){var C=R[w];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(N,C.key,C)}}function G(N,R,w){return R&&re(N.prototype,R),w&&re(N,w),N}function E(N,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function");N.prototype=Object.create(R&&R.prototype,{constructor:{value:N,writable:!0,configurable:!0}}),R&&P(N,R)}function P(N,R){return P=Object.setPrototypeOf||function(C,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(w){return w.__proto__||Object.getPrototypeOf(w)},K(N)}var q=function(N){E(w,N);var R=O(w);function w(C,y){var b;H(this,w),b=R.call(this);var L,B;if(b.element=C,b.version=w.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.");w.instances.push(j(b)),b.element.dropzone=j(b);var U=(B=w.optionsForElement(b.element))!=null?B:{};if(b.options=w.extend({},I,U,y??{}),b.options.previewTemplate=b.options.previewTemplate.replace(/\n*/g,""),b.options.forceFallback||!w.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=w.getElement(b.options.previewsContainer,"previewsContainer"):b.previewsContainer=b.element),b.options.clickable&&(b.options.clickable===!0?b.clickableElements=[b.element]:b.clickableElements=w.getElements(b.options.clickable,"clickable")),b.init(),b}return G(w,[{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(w.QUEUED)}},{key:"getUploadingFiles",value:function(){return this.getFilesWithStatus(w.UPLOADING)}},{key:"getAddedFiles",value:function(){return this.getFilesWithStatus(w.ADDED)}},{key:"getActiveFiles",value:function(){return this.files.filter(function(y){return y.status===w.UPLOADING||y.status===w.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(w.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",w.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(de){Q.e(de)}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||w.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,w.instances.splice(w.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=w.createElement(L);return this.element.tagName!=="FORM"?(b=w.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)):w.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:w.uuidv4(),progress:0,total:y.size,bytesSent:0,filename:this._renameFile(y)},this.files.push(y),y.status=w.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===w.ADDED&&y.accepted===!0){if(y.status=w.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===w.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!==w.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(w.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),de=document.createElement("canvas"),we=de.getContext("2d");switch(de.width=oe.trgWidth,de.height=oe.trgHeight,ne>4&&(de.width=oe.trgHeight,de.height=oe.trgWidth),ne){case 2:we.translate(de.width,0),we.scale(-1,1);break;case 3:we.translate(de.width,de.height),we.rotate(Math.PI);break;case 4:we.translate(0,de.height),we.scale(1,-1);break;case 5:we.rotate(.5*Math.PI),we.scale(1,-1);break;case 6:we.rotate(.5*Math.PI),we.translate(0,-de.width);break;case 7:we.rotate(.5*Math.PI),we.translate(de.height,-de.width),we.scale(-1,1);break;case 8:we.rotate(-.5*Math.PI),we.translate(-de.height,0);break}me(we,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=de.toDataURL("image/png");if(V!=null)return V(De,de)})},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=w.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===w.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=w.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===w.ADDED||y.status===w.QUEUED)&&(y.status=w.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 de=oe*b.options.chunkSize,we=Math.min(de+b.options.chunkSize,V.size),De={name:b._getParamName(0),data:V.webkitSlice?V.webkitSlice(de,we):V.slice(de,we),filename:U.upload.filename,chunkIndex:oe};U.upload.chunks[oe]={file:U,index:oe,dataBlock:De,status:w.UPLOADING,progress:0,retries:0},b._uploadData(y,[De])}};if(U.upload.finishedChunkUpload=function(ne,oe){var de=!0;ne.status=w.SUCCESS,ne.dataBlock=null,ne.xhr=null;for(var we=0;we<U.upload.totalChunkCount;we++){if(U.upload.chunks[we]===void 0)return W();U.upload.chunks[we].status!==w.SUCCESS&&(de=!1)}de&&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&&w.extend(oe,this.options.headers);for(var de in oe){var we=oe[de];we&&B.setRequestHeader(de,we)}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!==w.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!==w.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=w.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=w.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)})}}]),w}(f);q.initClass(),q.version="5.9.3",q.options={},q.optionsForElement=function(N){if(N.getAttribute("id"))return q.options[te(N.getAttribute("id"))]},q.instances=[],q.forElement=function(N){if(typeof N=="string"&&(N=document.querySelector(N)),(N!=null?N.dropzone:void 0)==null)throw new Error("No Dropzone found for given element. This is probably because you're trying to access it before Dropzone had the time to initialize. Use the `init` option to setup any additional observers on your Dropzone.");return N.dropzone},q.autoDiscover=!0,q.discover=function(){var N;if(document.querySelectorAll)N=document.querySelectorAll(".dropzone");else{N=[];var R=function(C){return function(){var 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 w=[],C=M(N),y;try{for(C.s();!(y=C.n()).done;){var b=y.value;q.optionsForElement(b)!==!1?w.push(new q(b)):w.push(void 0)}}catch(L){C.e(L)}finally{C.f()}return w}()},q.blockedBrowsers=[/opera.*(Macintosh|Windows Phone).*version\/12/i],q.isBrowserSupported=function(){var N=!0;if(window.File&&window.FileReader&&window.FileList&&window.Blob&&window.FormData&&document.querySelector)if(!("classList"in document.createElement("a")))N=!1;else{q.blacklistedBrowsers!==void 0&&(q.blockedBrowsers=q.blacklistedBrowsers);var R=M(q.blockedBrowsers),w;try{for(R.s();!(w=R.n()).done;){var C=w.value;if(C.test(navigator.userAgent)){N=!1;continue}}}catch(y){R.e(y)}finally{R.f()}}else N=!1;return N},q.dataURItoBlob=function(N){for(var R=atob(N.split(",")[1]),w=N.split(",")[0].split(":")[1].split(";")[0],C=new ArrayBuffer(R.length),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:w})};var J=function(R,w){return R.filter(function(C){return C!==w}).map(function(C){return C})},te=function(R){return R.replace(/[\-_](\w)/g,function(w){return w.charAt(1).toUpperCase()})};q.createElement=function(N){var R=document.createElement("div");return R.innerHTML=N,R.childNodes[0]},q.elementInside=function(N,R){if(N===R)return!0;for(;N=N.parentNode;)if(N===R)return!0;return!1},q.getElement=function(N,R){var w;if(typeof N=="string"?w=document.querySelector(N):N.nodeType!=null&&(w=N),w==null)throw new Error("Invalid `".concat(R,"` option provided. Please provide a CSS selector or a plain HTML element."));return w},q.getElements=function(N,R){var w,C;if(N instanceof Array){C=[];try{var y=M(N,!0),b;try{for(y.s();!(b=y.n()).done;)w=b.value,C.push(this.getElement(w,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;)w=B.value,C.push(w)}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,w){if(window.confirm(N))return R();if(w!=null)return w()},q.isValidFile=function(N,R){if(!R)return!0;R=R.split(",");var w=N.type,C=w.replace(/\/.*$/,""),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(w===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 ge=function(R){R.naturalWidth;var w=R.naturalHeight,C=document.createElement("canvas");C.width=1,C.height=w;var y=C.getContext("2d");y.drawImage(R,0,0);for(var b=y.getImageData(1,0,1,w),L=b.data,B=0,U=w,V=w;V>B;){var W=L[(V-1)*4+3];W===0?U=V:B=V,V=U+B>>1}var Z=V/w;return Z===0?1:Z},me=function(R,w,C,y,b,L,B,U,V,W){var Z=ge(w);return R.drawImage(w,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(w){for(var C="",y=void 0,b=void 0,L="",B=void 0,U=void 0,V=void 0,W="",Z=0;y=w[Z++],b=w[Z++],L=w[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<w.length;);return C}},{key:"restore",value:function(w,C){if(!w.match("data:image/jpeg;base64,"))return C;var y=this.decode64(w.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(w,C){var y=this.getExifArray(C),b=this.insertExif(w,y),L=new Uint8Array(b);return L}},{key:"getExifArray",value:function(w){for(var C=void 0,y=0;y<w.length;){if(C=w[y],C[0]===255&C[1]===225)return C;y++}return[]}},{key:"insertExif",value:function(w,C){var y=w.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(w){for(var C=0,y=[];;){var b;if(w[C]===255&w[C+1]===218)break;if(w[C]===255&w[C+1]===216)C+=2;else{b=w[C+2]*256+w[C+3];var L=C+b+2,B=w.slice(C,L);y.push(B),C=L}if(C>w.length)break}return y}},{key:"decode64",value:function(w){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(w)&&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.`),w=w.replace(/[^A-Za-z0-9\+\/\=]/g,"");L=this.KEY_STR.indexOf(w.charAt(W++)),B=this.KEY_STR.indexOf(w.charAt(W++)),U=this.KEY_STR.indexOf(w.charAt(W++)),V=this.KEY_STR.indexOf(w.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<w.length;);return Z}}]),N}();ve.initClass();var xe=function(I,w){var C=!1,y=!0,b=I.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"?I:b)[U](V+Q.type,Y,!1),!C&&(C=!0)))return w.call(I,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=!I.frameElement}catch{}y&&Z()}return b[B](V+"DOMContentLoaded",W,!1),b[B](V+"readystatechange",W,!1),I[B](V+"load",W,!1)}};q._autoDiscoverFunction=function(){if(q.autoDiscover)return q.discover()},xe(window,q._autoDiscoverFunction);function he(N,I){return typeof N<"u"&&N!==null?I(N):void 0}function Oe(N,I,w){if(typeof N<"u"&&N!==null&&typeof N[I]=="function")return w(N,I)}window.Dropzone=q;var ye=q}(),a}()})}(vo)),vo.exports}var cy=ly();const yo=Ni(cy),uy={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function fy(n,e){return h.openBlock(),h.createElementBlock("svg",uy,e[0]||(e[0]=[h.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 dy={render:fy},hy={class:"file-upload"},py=["name","value"],gy={key:0,class:"preview"},my={class:"file-upload-preview"},vy=["src"],yy={key:1,class:"preview"},by={class:"file-upload-preview"},xy=["src","title"],Ey=["href"],wy={class:"file-upload-title"},Ay={class:"file-upload-file-remove"},Sy={class:"relative"},Ty={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"},Ny={__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}){yo.autoDiscover=!1;const t=n,r=h.ref([]),s=h.ref(yo),a=h.ref(null),o=h.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 h.onMounted(()=>{var u;a.value=t.formData;const l=t.csrf;s.value=new yo(s.value,{url:(t==null?void 0:t.submitEndpoint)+"?"+((u=a.value)==null?void 0:u.id),addRemoveLinks:!0,maxFiles:1,sending:(d,f,m)=>{m.append("_token",l),m.append("field",t.name)},success:(d,f)=>{d.value=f},complete:d=>{var f;(f=s.value)==null||f.removeFile(d)}}),r.value=t.modelValue}),(l,u)=>(h.openBlock(),h.createElementBlock("div",hy,[h.createElementVNode("input",{type:"hidden",name:n.name,value:o.value},null,8,py),n.modelValue?(h.openBlock(),h.createElementBlock("div",gy,[u[1]||(u[1]=h.createTextVNode(" @todo handle upload here ")),h.createElementVNode("span",my,[h.createElementVNode("img",{class:"img rounded-lg",src:n.modelValue,title:"Image"},null,8,vy)])])):r.value&&r.value.length?(h.openBlock(),h.createElementBlock("div",yy,[h.createElementVNode("span",by,[c(r.value.mime_type)?(h.openBlock(),h.createElementBlock("img",{key:0,class:"img",src:r.value.url,title:r.value.file_name},null,8,xy)):h.createCommentVNode("",!0)]),h.createElementVNode("a",{href:r.value.url,target:"_blank",class:"link"},[h.createElementVNode("div",wy,h.toDisplayString(r.value.file_name),1)],8,Ey),h.createElementVNode("a",Ay,[h.createElementVNode("i",{class:"fal fa-times",onClick:u[0]||(u[0]=d=>i(r.value))})])])):h.createCommentVNode("",!0),h.withDirectives(h.createElementVNode("div",Sy,[h.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),h.createElementVNode("div",Ty,[h.createElementVNode("div",null,[h.createVNode(h.unref(dy),{class:"w-6 h-6"})]),u[2]||(u[2]=h.createElementVNode("div",{class:"text-sm text-center"},[h.createElementVNode("p",null,[h.createElementVNode("span",{class:"text-brand-900"},"Click to upload"),h.createElementVNode("span",null," or drag and drop")]),h.createElementVNode("span",null,"(max. 20MB)")],-1))])],512),[[h.vShow,!n.modelValue]])]))}},Oy={class:"flex items-start gap-4 px-6 pt-4"},Cy={class:"flex flex-1 flex-col gap-4"},Ry={class:"flex flex-col gap-8"},Iy={class:"flex flex-col gap-8"},Ly={class:"flex flex-col gap-4"},ky={class:"flex w-full max-w-[356px] flex-col gap-4"},By={class:"flex justify-between space-x-xsSpace pt-xsSpace gap-4 sticky bottom-0 w-full bg-gray-200 py-2 px-6"},Py={__name:"SlideEdit",props:{slide:{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=h.ref({public:r.slide.public,description:r.slide.description,featured_image:r.slide.featured_image,primary_button:r.slide.primary_button,secondary_button:r.slide.secondary_button,title:r.slide.title}),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=h.computed(()=>s.value.description.replace(/<[^>]*>/g," ").trim().split(/\s+/).filter(u=>u.length>0).length);return(i,l)=>(h.openBlock(),h.createElementBlock("div",null,[h.createElementVNode("div",Oy,[h.createElementVNode("div",Cy,[h.createVNode(qr,{title:"Description"},{default:h.withCtx(()=>[h.createElementVNode("div",Ry,[h.createVNode(Xn,{"is-vertical":"",field:"title","label-text":"Title *",class:"w-full",value:s.value.title,limit:51},{default:h.withCtx(()=>[h.withDirectives(h.createElementVNode("input",{"onUpdate:modelValue":l[0]||(l[0]=u=>s.value.title=u),name:"title",type:"text",placeholder:"Title",maxlength:51,class:"border-1 border-solid border-gray-300 rounded-lg bg-white w-full"},null,512),[[h.vModelText,s.value.title]])]),_:1},8,["value"]),h.createVNode(Xn,{"is-vertical":"",field:"description","label-text":"Description *",class:"w-full mb-4",value:c.value,"show-count":!0},{default:h.withCtx(()=>[h.createVNode(P1,{modelValue:s.value.description,"onUpdate:modelValue":l[1]||(l[1]=u=>s.value.description=u)},null,8,["modelValue"])]),_:1},8,["value"])])]),_:1}),h.createVNode(qr,{title:"Primary button"},{default:h.withCtx(()=>[h.createElementVNode("div",Iy,[h.createVNode(ts,{name:"show",modelValue:s.value.primary_button.show,"onUpdate:modelValue":l[2]||(l[2]=u=>s.value.primary_button.show=u),title:"Show Button"},null,8,["modelValue"]),h.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:h.withCtx(()=>[h.withDirectives(h.createElementVNode("input",{"onUpdate:modelValue":l[3]||(l[3]=u=>s.value.primary_button.label=u),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),[[h.vModelText,s.value.primary_button.label]])]),_:1},8,["value"]),h.createVNode(Js,{name:"primary",type:s.value.primary_button.type,"onUpdate:type":l[4]||(l[4]=u=>s.value.primary_button.type=u),url:s.value.primary_button.url,"onUpdate:url":l[5]||(l[5]=u=>s.value.primary_button.url=u),openInNewTab:s.value.primary_button.open_in_new_tab,"onUpdate:openInNewTab":l[6]||(l[6]=u=>s.value.primary_button.open_in_new_tab=u),sites:n.sites},null,8,["type","url","openInNewTab","sites"])])]),_:1}),h.createVNode(qr,{title:"Secondary button"},{default:h.withCtx(()=>[h.createElementVNode("div",Ly,[h.createVNode(ts,{name:"show",modelValue:s.value.secondary_button.show,"onUpdate:modelValue":l[7]||(l[7]=u=>s.value.secondary_button.show=u),title:"Show Button"},null,8,["modelValue"]),s.value.secondary_button.show?(h.openBlock(),h.createElementBlock(h.Fragment,{key:0},[h.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:h.withCtx(()=>[h.withDirectives(h.createElementVNode("input",{"onUpdate:modelValue":l[8]||(l[8]=u=>s.value.secondary_button.label=u),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),[[h.vModelText,s.value.secondary_button.label]])]),_:1},8,["value"]),h.createVNode(Js,{name:"secondary",type:s.value.secondary_button.type,"onUpdate:type":l[9]||(l[9]=u=>s.value.secondary_button.type=u),url:s.value.secondary_button.url,"onUpdate:url":l[10]||(l[10]=u=>s.value.secondary_button.url=u),openInNewTab:s.value.secondary_button.open_in_new_tab,"onUpdate:openInNewTab":l[11]||(l[11]=u=>s.value.secondary_button.open_in_new_tab=u),sites:n.sites},null,8,["type","url","openInNewTab","sites"])],64)):h.createCommentVNode("",!0)])]),_:1})]),h.createElementVNode("div",ky,[h.createVNode(qr,{title:"Visibility",supporting_text:"Toggle off if you'd like to hide this item"},{default:h.withCtx(()=>[h.createVNode(ts,{modelValue:s.value.public,"onUpdate:modelValue":l[12]||(l[12]=u=>s.value.public=u),name:"public",label:"Public"},null,8,["modelValue"])]),_:1}),h.createVNode(qr,{title:"Featured Image",supporting_text:"Recommended dimension: 1200*1060px"},{default:h.withCtx(()=>[h.createVNode(Ny,{name:"image",modelValue:s.value.featured_image,"onUpdate:modelValue":l[13]||(l[13]=u=>s.value.featured_image=u)},null,8,["modelValue"])]),_:1})])]),h.renderSlot(i.$slots,"default",{},()=>[h.createElementVNode("div",By,[h.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 "),h.createElementVNode("a",{onClick:h.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.PageBuilder=Pf,Ye.PageRender=bd,Ye.SlideEdit=Py,Object.defineProperty(Ye,Symbol.toStringTag,{value:"Module"})});
|
|
65
|
+
Expect errors in decoding.`),w=w.replace(/[^A-Za-z0-9\+\/\=]/g,"");L=this.KEY_STR.indexOf(w.charAt(W++)),B=this.KEY_STR.indexOf(w.charAt(W++)),U=this.KEY_STR.indexOf(w.charAt(W++)),V=this.KEY_STR.indexOf(w.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<w.length;);return Z}}]),N}();ve.initClass();var xe=function(R,w){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 w.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,w){if(typeof N<"u"&&N!==null&&typeof N[R]=="function")return w(N,R)}window.Dropzone=q;var ye=q}(),a}()})}(mo)),mo.exports}var fy=uy();const vo=Ti(fy),dy={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function hy(n,e){return d.openBlock(),d.createElementBlock("svg",dy,e[0]||(e[0]=[d.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 py={render:hy},gy={class:"file-upload"},my=["name","value"],vy={key:0,class:"preview"},yy={class:"file-upload-preview"},by=["src"],xy={key:1,class:"preview"},Ey={class:"file-upload-preview"},wy=["src","title"],Ay=["href"],Sy={class:"file-upload-title"},Ty={class:"file-upload-file-remove"},Ny={class:"relative"},Oy={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"},Cy={__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}){vo.autoDiscover=!1;const t=n,r=d.ref([]),s=d.ref(vo),a=d.ref(null),o=d.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 d.onMounted(()=>{var u;a.value=t.formData;const l=t.csrf;s.value=new vo(s.value,{url:(t==null?void 0:t.submitEndpoint)+"?"+((u=a.value)==null?void 0:u.id),addRemoveLinks:!0,maxFiles:1,sending:(h,f,m)=>{m.append("_token",l),m.append("field",t.name)},success:(h,f)=>{h.value=f},complete:h=>{var f;(f=s.value)==null||f.removeFile(h)}}),r.value=t.modelValue}),(l,u)=>(d.openBlock(),d.createElementBlock("div",gy,[d.createElementVNode("input",{type:"hidden",name:n.name,value:o.value},null,8,my),n.modelValue?(d.openBlock(),d.createElementBlock("div",vy,[u[1]||(u[1]=d.createTextVNode(" @todo handle upload here ")),d.createElementVNode("span",yy,[d.createElementVNode("img",{class:"img rounded-lg",src:n.modelValue,title:"Image"},null,8,by)])])):r.value&&r.value.length?(d.openBlock(),d.createElementBlock("div",xy,[d.createElementVNode("span",Ey,[c(r.value.mime_type)?(d.openBlock(),d.createElementBlock("img",{key:0,class:"img",src:r.value.url,title:r.value.file_name},null,8,wy)):d.createCommentVNode("",!0)]),d.createElementVNode("a",{href:r.value.url,target:"_blank",class:"link"},[d.createElementVNode("div",Sy,d.toDisplayString(r.value.file_name),1)],8,Ay),d.createElementVNode("a",Ty,[d.createElementVNode("i",{class:"fal fa-times",onClick:u[0]||(u[0]=h=>i(r.value))})])])):d.createCommentVNode("",!0),d.withDirectives(d.createElementVNode("div",Ny,[d.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),d.createElementVNode("div",Oy,[d.createElementVNode("div",null,[d.createVNode(d.unref(py),{class:"w-6 h-6"})]),u[2]||(u[2]=d.createElementVNode("div",{class:"text-sm text-center"},[d.createElementVNode("p",null,[d.createElementVNode("span",{class:"text-brand-900"},"Click to upload"),d.createElementVNode("span",null," or drag and drop")]),d.createElementVNode("span",null,"(max. 20MB)")],-1))])],512),[[d.vShow,!n.modelValue]])]))}},Ry={class:"flex items-start gap-4 px-6 pt-4"},Iy={class:"flex flex-1 flex-col gap-4"},Ly={class:"flex flex-col gap-8"},ky={class:"flex flex-col gap-8"},By={class:"flex flex-col gap-4"},Py={class:"flex w-full max-w-[356px] flex-col gap-4"},Fy={class:"flex justify-between space-x-xsSpace pt-xsSpace gap-4 sticky bottom-0 w-full bg-gray-200 py-2 px-6"},My={__name:"SlideEdit",props:{slide:{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=d.ref({public:r.slide.public,description:r.slide.description,featured_image:r.slide.featured_image,primary_button:r.slide.primary_button,secondary_button:r.slide.secondary_button,title:r.slide.title}),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=d.computed(()=>s.value.description.replace(/<[^>]*>/g," ").trim().split(/\s+/).filter(u=>u.length>0).length);return(i,l)=>(d.openBlock(),d.createElementBlock("div",null,[d.createElementVNode("div",Ry,[d.createElementVNode("div",Iy,[d.createVNode(qr,{title:"Description"},{default:d.withCtx(()=>[d.createElementVNode("div",Ly,[d.createVNode(Xn,{"is-vertical":"",field:"title","label-text":"Title *",class:"w-full",value:s.value.title,limit:51},{default:d.withCtx(()=>[d.withDirectives(d.createElementVNode("input",{"onUpdate:modelValue":l[0]||(l[0]=u=>s.value.title=u),name:"title",type:"text",placeholder:"Title",maxlength:51,class:"border-1 border-solid border-gray-300 rounded-lg bg-white w-full"},null,512),[[d.vModelText,s.value.title]])]),_:1},8,["value"]),d.createVNode(Xn,{"is-vertical":"",field:"description","label-text":"Description *",class:"w-full mb-4",value:c.value,"show-count":!0},{default:d.withCtx(()=>[d.createVNode(M1,{modelValue:s.value.description,"onUpdate:modelValue":l[1]||(l[1]=u=>s.value.description=u)},null,8,["modelValue"])]),_:1},8,["value"])])]),_:1}),d.createVNode(qr,{title:"Primary button"},{default:d.withCtx(()=>[d.createElementVNode("div",ky,[d.createVNode(ts,{name:"show",modelValue:s.value.primary_button.show,"onUpdate:modelValue":l[2]||(l[2]=u=>s.value.primary_button.show=u),title:"Show Button"},null,8,["modelValue"]),d.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:d.withCtx(()=>[d.withDirectives(d.createElementVNode("input",{"onUpdate:modelValue":l[3]||(l[3]=u=>s.value.primary_button.label=u),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),[[d.vModelText,s.value.primary_button.label]])]),_:1},8,["value"]),d.createVNode(Qs,{name:"primary",type:s.value.primary_button.type,"onUpdate:type":l[4]||(l[4]=u=>s.value.primary_button.type=u),url:s.value.primary_button.url,"onUpdate:url":l[5]||(l[5]=u=>s.value.primary_button.url=u),openInNewTab:s.value.primary_button.open_in_new_tab,"onUpdate:openInNewTab":l[6]||(l[6]=u=>s.value.primary_button.open_in_new_tab=u),sites:n.sites},null,8,["type","url","openInNewTab","sites"])])]),_:1}),d.createVNode(qr,{title:"Secondary button"},{default:d.withCtx(()=>[d.createElementVNode("div",By,[d.createVNode(ts,{name:"show",modelValue:s.value.secondary_button.show,"onUpdate:modelValue":l[7]||(l[7]=u=>s.value.secondary_button.show=u),title:"Show Button"},null,8,["modelValue"]),s.value.secondary_button.show?(d.openBlock(),d.createElementBlock(d.Fragment,{key:0},[d.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:d.withCtx(()=>[d.withDirectives(d.createElementVNode("input",{"onUpdate:modelValue":l[8]||(l[8]=u=>s.value.secondary_button.label=u),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),[[d.vModelText,s.value.secondary_button.label]])]),_:1},8,["value"]),d.createVNode(Qs,{name:"secondary",type:s.value.secondary_button.type,"onUpdate:type":l[9]||(l[9]=u=>s.value.secondary_button.type=u),url:s.value.secondary_button.url,"onUpdate:url":l[10]||(l[10]=u=>s.value.secondary_button.url=u),openInNewTab:s.value.secondary_button.open_in_new_tab,"onUpdate:openInNewTab":l[11]||(l[11]=u=>s.value.secondary_button.open_in_new_tab=u),sites:n.sites},null,8,["type","url","openInNewTab","sites"])],64)):d.createCommentVNode("",!0)])]),_:1})]),d.createElementVNode("div",Py,[d.createVNode(qr,{title:"Visibility",supporting_text:"Toggle off if you'd like to hide this item"},{default:d.withCtx(()=>[d.createVNode(ts,{modelValue:s.value.public,"onUpdate:modelValue":l[12]||(l[12]=u=>s.value.public=u),name:"public",label:"Public"},null,8,["modelValue"])]),_:1}),d.createVNode(qr,{title:"Featured Image",supporting_text:"Recommended dimension: 1200*1060px"},{default:d.withCtx(()=>[d.createVNode(Cy,{name:"image",modelValue:s.value.featured_image,"onUpdate:modelValue":l[13]||(l[13]=u=>s.value.featured_image=u)},null,8,["modelValue"])]),_:1})])]),d.renderSlot(i.$slots,"default",{},()=>[d.createElementVNode("div",Fy,[d.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 "),d.createElementVNode("a",{onClick:d.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.PageBuilder=Mf,Ye.PageRender=Ed,Ye.SlideEdit=My,Object.defineProperty(Ye,Symbol.toStringTag,{value:"Module"})});
|