officialblock 1.0.1 → 1.0.3

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.
Files changed (40) hide show
  1. package/README.md +25 -1
  2. package/dist/official-block.cjs.js +195 -1
  3. package/dist/official-block.es.js +27230 -72
  4. package/dist/official-block.umd.js +195 -1
  5. package/dist/style.css +1 -1
  6. package/package.json +13 -2
  7. package/src/App.vue +32 -82
  8. package/src/components/ArticleList/article.vue +73 -0
  9. package/src/components/ArticleList/contact.vue +95 -0
  10. package/src/components/ArticleList/index.vue +220 -46
  11. package/src/components/ArticleList/setting.vue +709 -0
  12. package/src/components/Button/index.vue +183 -0
  13. package/src/components/Media/index.vue +327 -0
  14. package/src/components/Operate/index.vue +74 -0
  15. package/src/components/RichTextEditor/RichTextEditor.vue +277 -0
  16. package/src/components/RichTextEditor/index.ts +7 -0
  17. package/src/components/ThemePreview/ThemePreview.vue +462 -0
  18. package/src/components/ThemePreview/index.ts +4 -0
  19. package/src/components/index.ts +3 -0
  20. package/src/composables/useTheme.ts +205 -0
  21. package/src/index.ts +15 -4
  22. package/src/main.ts +16 -1
  23. package/src/router/index.ts +96 -0
  24. package/src/style.css +2 -4
  25. package/src/styles/editor.scss +649 -0
  26. package/src/styles/test.scss +20 -0
  27. package/src/styles/variables.scss +669 -0
  28. package/src/utils/common.ts +13 -0
  29. package/src/utils/theme.ts +335 -0
  30. package/src/views/Layout.vue +250 -0
  31. package/src/views/NotFound.vue +114 -0
  32. package/src/views/components/ArticleListDemo.vue +166 -0
  33. package/src/views/components/DragLimitDemo.vue +573 -0
  34. package/src/views/components/DragSortDemo.vue +610 -0
  35. package/src/views/components/HeroSlideDemo.vue +353 -0
  36. package/src/views/components/RichTextEditorDemo.vue +53 -0
  37. package/src/views/components/ThemeDemo.vue +477 -0
  38. package/src/views/guide/Installation.vue +234 -0
  39. package/src/views/guide/Introduction.vue +174 -0
  40. package/src/views/guide/QuickStart.vue +265 -0
@@ -1 +1,195 @@
1
- (function(l,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(l=typeof globalThis<"u"?globalThis:l||self,e(l.OfficialBlock={},l.Vue))})(this,function(l,e){"use strict";const k={class:"content"},h=e.defineComponent({name:"ArticleList",__name:"index",props:{size:{default:"medium"},disabled:{type:Boolean,default:!1},modelValue:{}},emits:["update:modelValue","change","focus"],setup(t,{emit:c}){const i=t,a=c,n=e.computed(()=>`Current value: ${i.modelValue}`);function r(){i.disabled||a("change",i.modelValue)}return(o,_)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["your-component",[`size-${o.size}`,{"is-disabled":o.disabled}]]),onClick:r},[e.renderSlot(o.$slots,"header",{title:n.value},void 0,!0),e.createElementVNode("div",k,[e.renderSlot(o.$slots,"default",{value:o.modelValue},()=>[e.createTextVNode(e.toDisplayString(o.modelValue),1)],!0)])],2))}}),f=(t,c)=>{const i=t.__vccOpts||t;for(const[a,n]of c)i[a]=n;return i},m=f(h,[["__scopeId","data-v-03506405"]]),y={class:"hero-slide"},B={class:"slide-container"},g={key:0,class:"slide-indicators"},S=["onClick"],u=f(e.defineComponent({name:"HeroSlide",__name:"index",props:{autoPlayInterval:{default:3e3},showIndicators:{type:Boolean,default:!0},autoPlay:{type:Boolean,default:!0}},emits:["change","click"],setup(t,{emit:c}){const i=t,a=c,n=e.ref(0),r=e.ref([{title:"轮播图标题 1",description:"这是第一张轮播图的描述内容"},{title:"轮播图标题 2",description:"这是第二张轮播图的描述内容"},{title:"轮播图标题 3",description:"这是第三张轮播图的描述内容"}]);let o=null;const _=d=>{n.value=d,a("change",d)},P=()=>{n.value=(n.value+1)%r.value.length,a("change",n.value)},A=()=>{i.autoPlay&&(o=window.setInterval(P,i.autoPlayInterval))},I=()=>{o&&(clearInterval(o),o=null)};return e.onMounted(()=>{A()}),e.onUnmounted(()=>{I()}),(d,$)=>(e.openBlock(),e.createElementBlock("div",y,[e.createElementVNode("div",B,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,(p,s)=>(e.openBlock(),e.createElementBlock("div",{key:s,class:e.normalizeClass(["slide-item",{active:n.value===s}])},[e.createElementVNode("h2",null,e.toDisplayString(p.title),1),e.createElementVNode("p",null,e.toDisplayString(p.description),1)],2))),128))]),d.showIndicators?(e.openBlock(),e.createElementBlock("div",g,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,(p,s)=>(e.openBlock(),e.createElementBlock("span",{key:s,class:e.normalizeClass(["indicator",{active:n.value===s}]),onClick:b=>_(s)},null,10,S))),128))])):e.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-4198d280"]]),V={install:t=>{t.component("ArticleList",m)}},C={install:t=>{t.component("HeroSlide",u)}},E={install:t=>{t.component("ArticleList",m),t.component("HeroSlide",u)}};l.ArticleList=m,l.ArticleListPlugin=V,l.HeroSlide=u,l.HeroSlidePlugin=C,l.default=E,Object.defineProperties(l,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
1
+ (function(Ye,b){typeof exports=="object"&&typeof module<"u"?b(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],b):(Ye=typeof globalThis<"u"?globalThis:Ye||self,b(Ye.OfficialBlock={},Ye.Vue))})(this,function(Ye,b){"use strict";var zEt=Object.defineProperty;var HEt=(Ye,b,Ue)=>b in Ye?zEt(Ye,b,{enumerable:!0,configurable:!0,writable:!0,value:Ue}):Ye[b]=Ue;var r_=(Ye,b,Ue)=>HEt(Ye,typeof b!="symbol"?b+"":b,Ue);function Ue(t=16){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let n="";for(let r=0;r<t;r++)n+=e.charAt(Math.floor(Math.random()*e.length));return n}const i_={class:"button-text"},a_={class:"link-text"},u_=b.defineComponent({__name:"index",props:{type:{type:String,default:"button"},data:{type:Object,default:()=>{}}},setup(t){const e=t,n=()=>{window.open(e.data.url,"_blank")};return console.log("data=====",e.data),(r,o)=>t.type==="button"?(b.openBlock(),b.createElementBlock("div",{key:0,class:"button-primary flex-inline flex-center",onClick:n},[b.createElementVNode("span",i_,b.toDisplayString(t.data.text),1),o[0]||(o[0]=b.createElementVNode("span",{class:"button-icon"},null,-1))])):(b.openBlock(),b.createElementBlock("div",{key:1,class:"link-button flex-inline flex-center",onClick:n},[b.createElementVNode("span",a_,b.toDisplayString(t.data.text),1),o[1]||(o[1]=b.createElementVNode("span",{class:"button-icon link-icon"},null,-1))]))}}),Wo=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n},q1=Wo(u_,[["__scopeId","data-v-f9e75c11"]]),s_={class:"article-item"},l_={class:"article-item-title"},c_=["innerHTML"],f_={class:"article-item-button"},d_={class:"article-item-link"},p_=Wo(b.defineComponent({__name:"article",props:{article:{type:Object,default:()=>{}}},setup(t){return(e,n)=>(b.openBlock(),b.createElementBlock("div",s_,[b.createElementVNode("h4",l_,b.toDisplayString(t.article.title),1),b.createElementVNode("div",{class:"editor-content",innerHTML:t.article.content},null,8,c_),b.createElementVNode("div",f_,[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList(t.article.buttonList,r=>(b.openBlock(),b.createBlock(q1,{key:r.id,data:r},null,8,["data"]))),128))]),b.createElementVNode("div",d_,[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList(t.article.linkList,r=>(b.openBlock(),b.createBlock(q1,{key:r.id,data:r,type:"link"},null,8,["data"]))),128))])]))}}),[["__scopeId","data-v-7f3f4d15"]]),h_={class:"contact-item"},g_={class:"contact-item-categories"},v_={class:"contact-item-title"},m_=["innerHTML"],y_={class:"contact-item-link"},b_=Wo(b.defineComponent({__name:"contact",props:{contact:{type:Object,default:()=>{}}},setup(t){return(e,n)=>(b.openBlock(),b.createElementBlock("div",h_,[b.createElementVNode("div",g_,[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList(t.contact.categories,r=>(b.openBlock(),b.createElementBlock("p",{class:"categories",key:r.id},b.toDisplayString(r.text),1))),128))]),b.createElementVNode("h4",v_,b.toDisplayString(t.contact.title),1),b.createElementVNode("div",{class:"editor-content",innerHTML:t.contact.content},null,8,m_),b.createElementVNode("div",y_,[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList(t.contact.linkList,r=>(b.openBlock(),b.createBlock(q1,{key:r.id,data:r,type:"link"},null,8,["data"]))),128))])]))}}),[["__scopeId","data-v-e9c9c007"]]),w_={key:0,class:"image-container"},E_={key:0,class:"image-desc"},S_={key:1,class:"video-container flex-inline flex-center"},x_=["src"],C_={class:"video-thumbnail flex flex-center"},D_=["src"],O_={key:2,class:"image-list-container"},A_={key:0,class:"image-preview"},T_={class:"image-list-wrapper"},B_=["src","onClick"],P_=Wo(b.defineComponent({__name:"index",props:{type:{type:String,default:"Image"},data:{type:Object,default:()=>{}},preview:{type:Boolean,default:!0}},setup(t){var m,h,v;const e=t,n=b.ref(),r=b.ref(!1),o=()=>{var y;(y=n.value)==null||y.play(),r.value=!0},a=b.ref(((v=(h=(m=e.data)==null?void 0:m.imageList)==null?void 0:h[0])==null?void 0:v.src)||""),i=y=>{a.value=y},u=b.ref(null),s=b.ref(!1),l=b.ref(!1),c=()=>{const y=u.value;y&&(s.value=y.scrollLeft>0,l.value=y.scrollLeft+y.clientWidth<y.scrollWidth)},f=()=>{const y=u.value;y&&y.scrollBy({left:-y.clientWidth/1.5,behavior:"smooth"})},d=()=>{const y=u.value;y&&y.scrollBy({left:y.clientWidth/1.5,behavior:"smooth"})},p=()=>{c()};return b.watch(()=>{var y;return(y=e.data)==null?void 0:y.imageList},async()=>{await b.nextTick(),c()}),b.onMounted(()=>{window.addEventListener("resize",c),b.nextTick(c)}),b.onUnmounted(()=>{window.removeEventListener("resize",c)}),(y,g)=>{const w=b.resolveComponent("a-image"),E=b.resolveComponent("icon-caret-right");return b.openBlock(),b.createElementBlock(b.Fragment,null,[t.type==="Image"?(b.openBlock(),b.createElementBlock("div",w_,[b.createVNode(w,{class:"image",src:t.data.imgSrc,preview:t.preview,alt:t.data.alt,fit:"contain",width:"100%",height:"100%"},null,8,["src","preview","alt"]),t.data.caption?(b.openBlock(),b.createElementBlock("p",E_,b.toDisplayString(t.data.caption),1)):b.createCommentVNode("",!0)])):b.createCommentVNode("",!0),t.type==="Video"?(b.openBlock(),b.createElementBlock("div",S_,[b.createElementVNode("video",{class:"video",ref_key:"videoElement",ref:n,src:t.data.videoSrc,controls:""},null,8,x_),r.value?b.createCommentVNode("",!0):(b.openBlock(),b.createElementBlock(b.Fragment,{key:0},[b.createElementVNode("div",C_,[b.createElementVNode("img",{src:t.data.imgSrc},null,8,D_)]),b.createElementVNode("div",{class:"play-button flex flex-center",onClick:o},[b.createVNode(E,{style:{color:"#fff"}})])],64))])):b.createCommentVNode("",!0),t.type==="ImageList"?(b.openBlock(),b.createElementBlock("div",O_,[a.value?(b.openBlock(),b.createElementBlock("div",A_,[b.createVNode(w,{class:"image",src:a.value,preview:t.preview,fit:"contain",width:"100%",height:"100%"},null,8,["src","preview"])])):b.createCommentVNode("",!0),b.createElementVNode("div",T_,[b.withDirectives(b.createElementVNode("div",{class:"thumbnail__nav__prev",onClick:f}," ‹ ",512),[[b.vShow,s.value]]),b.createElementVNode("div",{class:"image-list",ref_key:"imageListRef",ref:u,onScroll:p},[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList(t.data.imageList,x=>(b.openBlock(),b.createElementBlock(b.Fragment,{key:x.id},[x.src?(b.openBlock(),b.createElementBlock("img",{key:0,class:"image",src:x.src,onClick:S=>i(x.src)},null,8,B_)):b.createCommentVNode("",!0)],64))),128))],544),b.withDirectives(b.createElementVNode("div",{class:"thumbnail__nav__next",onClick:d}," › ",512),[[b.vShow,l.value]])])])):b.createCommentVNode("",!0)],64)}}}),[["__scopeId","data-v-63d0f133"]]);var F_=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function k_(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function N_(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var o=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return t[r]}})}),n}var L8={exports:{}};/**!
2
+ * Sortable 1.14.0
3
+ * @author RubaXa <trash@rubaxa.org>
4
+ * @author owenm <owen23355@gmail.com>
5
+ * @license MIT
6
+ */function M8(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Ko(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?M8(Object(n),!0).forEach(function(r){I_(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):M8(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function bg(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?bg=function(e){return typeof e}:bg=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bg(t)}function I_(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function no(){return no=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},no.apply(this,arguments)}function j_(t,e){if(t==null)return{};var n={},r=Object.keys(t),o,a;for(a=0;a<r.length;a++)o=r[a],!(e.indexOf(o)>=0)&&(n[o]=t[o]);return n}function R_(t,e){if(t==null)return{};var n=j_(t,e),r,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(o=0;o<a.length;o++)r=a[o],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function L_(t){return M_(t)||V_(t)||z_(t)||H_()}function M_(t){if(Array.isArray(t))return tb(t)}function V_(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function z_(t,e){if(t){if(typeof t=="string")return tb(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tb(t,e)}}function tb(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function H_(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
7
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var U_="1.14.0";function Ai(t){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(t)}var Ti=Ai(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),pf=Ai(/Edge/i),V8=Ai(/firefox/i),hf=Ai(/safari/i)&&!Ai(/chrome/i)&&!Ai(/android/i),z8=Ai(/iP(ad|od|hone)/i),__=Ai(/chrome/i)&&Ai(/android/i),H8={capture:!1,passive:!1};function se(t,e,n){t.addEventListener(e,n,!Ti&&H8)}function ie(t,e,n){t.removeEventListener(e,n,!Ti&&H8)}function wg(t,e){if(e){if(e[0]===">"&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch{return!1}return!1}}function G_(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function Oo(t,e,n,r){if(t){n=n||document;do{if(e!=null&&(e[0]===">"?t.parentNode===n&&wg(t,e):wg(t,e))||r&&t===n)return t;if(t===n)break}while(t=G_(t))}return null}var U8=/\s+/g;function en(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var r=(" "+t.className+" ").replace(U8," ").replace(" "+e+" "," ");t.className=(r+(n?" "+e:"")).replace(U8," ")}}function Ot(t,e,n){var r=t&&t.style;if(r){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),e===void 0?n:n[e];!(e in r)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),r[e]=n+(typeof n=="string"?"":"px")}}function Ou(t,e){var n="";if(typeof t=="string")n=t;else do{var r=Ot(t,"transform");r&&r!=="none"&&(n=r+" "+n)}while(!e&&(t=t.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function _8(t,e,n){if(t){var r=t.getElementsByTagName(e),o=0,a=r.length;if(n)for(;o<a;o++)n(r[o],o);return r}return[]}function Yo(){var t=document.scrollingElement;return t||document.documentElement}function Xe(t,e,n,r,o){if(!(!t.getBoundingClientRect&&t!==window)){var a,i,u,s,l,c,f;if(t!==window&&t.parentNode&&t!==Yo()?(a=t.getBoundingClientRect(),i=a.top,u=a.left,s=a.bottom,l=a.right,c=a.height,f=a.width):(i=0,u=0,s=window.innerHeight,l=window.innerWidth,c=window.innerHeight,f=window.innerWidth),(e||n)&&t!==window&&(o=o||t.parentNode,!Ti))do if(o&&o.getBoundingClientRect&&(Ot(o,"transform")!=="none"||n&&Ot(o,"position")!=="static")){var d=o.getBoundingClientRect();i-=d.top+parseInt(Ot(o,"border-top-width")),u-=d.left+parseInt(Ot(o,"border-left-width")),s=i+a.height,l=u+a.width;break}while(o=o.parentNode);if(r&&t!==window){var p=Ou(o||t),m=p&&p.a,h=p&&p.d;p&&(i/=h,u/=m,f/=m,c/=h,s=i+c,l=u+f)}return{top:i,left:u,bottom:s,right:l,width:f,height:c}}}function G8(t,e,n){for(var r=oa(t,!0),o=Xe(t)[e];r;){var a=Xe(r)[n],i=void 0;if(i=o>=a,!i)return r;if(r===Yo())break;r=oa(r,!1)}return!1}function il(t,e,n,r){for(var o=0,a=0,i=t.children;a<i.length;){if(i[a].style.display!=="none"&&i[a]!==It.ghost&&(r||i[a]!==It.dragged)&&Oo(i[a],n.draggable,t,!1)){if(o===e)return i[a];o++}a++}return null}function eb(t,e){for(var n=t.lastElementChild;n&&(n===It.ghost||Ot(n,"display")==="none"||e&&!wg(n,e));)n=n.previousElementSibling;return n||null}function on(t,e){var n=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)t.nodeName.toUpperCase()!=="TEMPLATE"&&t!==It.clone&&(!e||wg(t,e))&&n++;return n}function W8(t){var e=0,n=0,r=Yo();if(t)do{var o=Ou(t),a=o.a,i=o.d;e+=t.scrollLeft*a,n+=t.scrollTop*i}while(t!==r&&(t=t.parentNode));return[e,n]}function W_(t,e){for(var n in t)if(t.hasOwnProperty(n)){for(var r in e)if(e.hasOwnProperty(r)&&e[r]===t[n][r])return Number(n)}return-1}function oa(t,e){if(!t||!t.getBoundingClientRect)return Yo();var n=t,r=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var o=Ot(n);if(n.clientWidth<n.scrollWidth&&(o.overflowX=="auto"||o.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(o.overflowY=="auto"||o.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return Yo();if(r||e)return n;r=!0}}while(n=n.parentNode);return Yo()}function K_(t,e){if(t&&e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function nb(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}var gf;function K8(t,e){return function(){if(!gf){var n=arguments,r=this;n.length===1?t.call(r,n[0]):t.apply(r,n),gf=setTimeout(function(){gf=void 0},e)}}}function Y_(){clearTimeout(gf),gf=void 0}function Y8(t,e,n){t.scrollLeft+=e,t.scrollTop+=n}function rb(t){var e=window.Polymer,n=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):n?n(t).clone(!0)[0]:t.cloneNode(!0)}function X8(t,e){Ot(t,"position","absolute"),Ot(t,"top",e.top),Ot(t,"left",e.left),Ot(t,"width",e.width),Ot(t,"height",e.height)}function ob(t){Ot(t,"position",""),Ot(t,"top",""),Ot(t,"left",""),Ot(t,"width",""),Ot(t,"height","")}var $n="Sortable"+new Date().getTime();function X_(){var t=[],e;return{captureAnimationState:function(){if(t=[],!!this.options.animation){var r=[].slice.call(this.el.children);r.forEach(function(o){if(!(Ot(o,"display")==="none"||o===It.ghost)){t.push({target:o,rect:Xe(o)});var a=Ko({},t[t.length-1].rect);if(o.thisAnimationDuration){var i=Ou(o,!0);i&&(a.top-=i.f,a.left-=i.e)}o.fromRect=a}})}},addAnimationState:function(r){t.push(r)},removeAnimationState:function(r){t.splice(W_(t,{target:r}),1)},animateAll:function(r){var o=this;if(!this.options.animation){clearTimeout(e),typeof r=="function"&&r();return}var a=!1,i=0;t.forEach(function(u){var s=0,l=u.target,c=l.fromRect,f=Xe(l),d=l.prevFromRect,p=l.prevToRect,m=u.rect,h=Ou(l,!0);h&&(f.top-=h.f,f.left-=h.e),l.toRect=f,l.thisAnimationDuration&&nb(d,f)&&!nb(c,f)&&(m.top-f.top)/(m.left-f.left)===(c.top-f.top)/(c.left-f.left)&&(s=J_(m,d,p,o.options)),nb(f,c)||(l.prevFromRect=c,l.prevToRect=f,s||(s=o.options.animation),o.animate(l,m,f,s)),s&&(a=!0,i=Math.max(i,s),clearTimeout(l.animationResetTimer),l.animationResetTimer=setTimeout(function(){l.animationTime=0,l.prevFromRect=null,l.fromRect=null,l.prevToRect=null,l.thisAnimationDuration=null},s),l.thisAnimationDuration=s)}),clearTimeout(e),a?e=setTimeout(function(){typeof r=="function"&&r()},i):typeof r=="function"&&r(),t=[]},animate:function(r,o,a,i){if(i){Ot(r,"transition",""),Ot(r,"transform","");var u=Ou(this.el),s=u&&u.a,l=u&&u.d,c=(o.left-a.left)/(s||1),f=(o.top-a.top)/(l||1);r.animatingX=!!c,r.animatingY=!!f,Ot(r,"transform","translate3d("+c+"px,"+f+"px,0)"),this.forRepaintDummy=Z_(r),Ot(r,"transition","transform "+i+"ms"+(this.options.easing?" "+this.options.easing:"")),Ot(r,"transform","translate3d(0,0,0)"),typeof r.animated=="number"&&clearTimeout(r.animated),r.animated=setTimeout(function(){Ot(r,"transition",""),Ot(r,"transform",""),r.animated=!1,r.animatingX=!1,r.animatingY=!1},i)}}}}function Z_(t){return t.offsetWidth}function J_(t,e,n,r){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-n.top,2)+Math.pow(e.left-n.left,2))*r.animation}var al=[],ib={initializeByDefault:!0},vf={mount:function(e){for(var n in ib)ib.hasOwnProperty(n)&&!(n in e)&&(e[n]=ib[n]);al.forEach(function(r){if(r.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),al.push(e)},pluginEvent:function(e,n,r){var o=this;this.eventCanceled=!1,r.cancel=function(){o.eventCanceled=!0};var a=e+"Global";al.forEach(function(i){n[i.pluginName]&&(n[i.pluginName][a]&&n[i.pluginName][a](Ko({sortable:n},r)),n.options[i.pluginName]&&n[i.pluginName][e]&&n[i.pluginName][e](Ko({sortable:n},r)))})},initializePlugins:function(e,n,r,o){al.forEach(function(u){var s=u.pluginName;if(!(!e.options[s]&&!u.initializeByDefault)){var l=new u(e,n,e.options);l.sortable=e,l.options=e.options,e[s]=l,no(r,l.defaults)}});for(var a in e.options)if(e.options.hasOwnProperty(a)){var i=this.modifyOption(e,a,e.options[a]);typeof i<"u"&&(e.options[a]=i)}},getEventProperties:function(e,n){var r={};return al.forEach(function(o){typeof o.eventProperties=="function"&&no(r,o.eventProperties.call(n[o.pluginName],e))}),r},modifyOption:function(e,n,r){var o;return al.forEach(function(a){e[a.pluginName]&&a.optionListeners&&typeof a.optionListeners[n]=="function"&&(o=a.optionListeners[n].call(e[a.pluginName],r))}),o}};function mf(t){var e=t.sortable,n=t.rootEl,r=t.name,o=t.targetEl,a=t.cloneEl,i=t.toEl,u=t.fromEl,s=t.oldIndex,l=t.newIndex,c=t.oldDraggableIndex,f=t.newDraggableIndex,d=t.originalEvent,p=t.putSortable,m=t.extraEventProperties;if(e=e||n&&n[$n],!!e){var h,v=e.options,y="on"+r.charAt(0).toUpperCase()+r.substr(1);window.CustomEvent&&!Ti&&!pf?h=new CustomEvent(r,{bubbles:!0,cancelable:!0}):(h=document.createEvent("Event"),h.initEvent(r,!0,!0)),h.to=i||n,h.from=u||n,h.item=o||n,h.clone=a,h.oldIndex=s,h.newIndex=l,h.oldDraggableIndex=c,h.newDraggableIndex=f,h.originalEvent=d,h.pullMode=p?p.lastPutMode:void 0;var g=Ko(Ko({},m),vf.getEventProperties(r,e));for(var w in g)h[w]=g[w];n&&n.dispatchEvent(h),v[y]&&v[y].call(e,h)}}var Q_=["evt"],yr=function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=r.evt,a=R_(r,Q_);vf.pluginEvent.bind(It)(e,n,Ko({dragEl:pt,parentEl:an,ghostEl:Xt,rootEl:Ze,nextEl:Au,lastDownEl:Eg,cloneEl:un,cloneHidden:ia,dragStarted:bf,putSortable:Wn,activeSortable:It.active,originalEvent:o,oldIndex:ul,oldDraggableIndex:yf,newIndex:Nr,newDraggableIndex:aa,hideGhostForTarget:eO,unhideGhostForTarget:nO,cloneNowHidden:function(){ia=!0},cloneNowShown:function(){ia=!1},dispatchSortableEvent:function(u){dr({sortable:n,name:u,originalEvent:o})}},a))};function dr(t){mf(Ko({putSortable:Wn,cloneEl:un,targetEl:pt,rootEl:Ze,oldIndex:ul,oldDraggableIndex:yf,newIndex:Nr,newDraggableIndex:aa},t))}var pt,an,Xt,Ze,Au,Eg,un,ia,ul,Nr,yf,aa,Sg,Wn,sl=!1,xg=!1,Cg=[],Tu,Ao,ab,ub,Z8,J8,bf,ll,wf,Ef=!1,Dg=!1,Og,qn,sb=[],lb=!1,Ag=[],Tg=typeof document<"u",Bg=z8,Q8=pf||Ti?"cssFloat":"float",$_=Tg&&!__&&!z8&&"draggable"in document.createElement("div"),$8=function(){if(Tg){if(Ti)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto",t.style.pointerEvents==="auto"}}(),q8=function(e,n){var r=Ot(e),o=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),a=il(e,0,n),i=il(e,1,n),u=a&&Ot(a),s=i&&Ot(i),l=u&&parseInt(u.marginLeft)+parseInt(u.marginRight)+Xe(a).width,c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+Xe(i).width;if(r.display==="flex")return r.flexDirection==="column"||r.flexDirection==="column-reverse"?"vertical":"horizontal";if(r.display==="grid")return r.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(a&&u.float&&u.float!=="none"){var f=u.float==="left"?"left":"right";return i&&(s.clear==="both"||s.clear===f)?"vertical":"horizontal"}return a&&(u.display==="block"||u.display==="flex"||u.display==="table"||u.display==="grid"||l>=o&&r[Q8]==="none"||i&&r[Q8]==="none"&&l+c>o)?"vertical":"horizontal"},q_=function(e,n,r){var o=r?e.left:e.top,a=r?e.right:e.bottom,i=r?e.width:e.height,u=r?n.left:n.top,s=r?n.right:n.bottom,l=r?n.width:n.height;return o===u||a===s||o+i/2===u+l/2},tG=function(e,n){var r;return Cg.some(function(o){var a=o[$n].options.emptyInsertThreshold;if(!(!a||eb(o))){var i=Xe(o),u=e>=i.left-a&&e<=i.right+a,s=n>=i.top-a&&n<=i.bottom+a;if(u&&s)return r=o}}),r},tO=function(e){function n(a,i){return function(u,s,l,c){var f=u.options.group.name&&s.options.group.name&&u.options.group.name===s.options.group.name;if(a==null&&(i||f))return!0;if(a==null||a===!1)return!1;if(i&&a==="clone")return a;if(typeof a=="function")return n(a(u,s,l,c),i)(u,s,l,c);var d=(i?u:s).options.group.name;return a===!0||typeof a=="string"&&a===d||a.join&&a.indexOf(d)>-1}}var r={},o=e.group;(!o||bg(o)!="object")&&(o={name:o}),r.name=o.name,r.checkPull=n(o.pull,!0),r.checkPut=n(o.put),r.revertClone=o.revertClone,e.group=r},eO=function(){!$8&&Xt&&Ot(Xt,"display","none")},nO=function(){!$8&&Xt&&Ot(Xt,"display","")};Tg&&document.addEventListener("click",function(t){if(xg)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),xg=!1,!1},!0);var Bu=function(e){if(pt){e=e.touches?e.touches[0]:e;var n=tG(e.clientX,e.clientY);if(n){var r={};for(var o in e)e.hasOwnProperty(o)&&(r[o]=e[o]);r.target=r.rootEl=n,r.preventDefault=void 0,r.stopPropagation=void 0,n[$n]._onDragOver(r)}}},eG=function(e){pt&&pt.parentNode[$n]._isOutsideThisEl(e.target)};function It(t,e){if(!(t&&t.nodeType&&t.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=no({},e),t[$n]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return q8(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(i,u){i.setData("Text",u.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:It.supportPointer!==!1&&"PointerEvent"in window&&!hf,emptyInsertThreshold:5};vf.initializePlugins(this,t,n);for(var r in n)!(r in e)&&(e[r]=n[r]);tO(e);for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this));this.nativeDraggable=e.forceFallback?!1:$_,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?se(t,"pointerdown",this._onTapStart):(se(t,"mousedown",this._onTapStart),se(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(se(t,"dragover",this),se(t,"dragenter",this)),Cg.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),no(this,X_())}It.prototype={constructor:It,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(ll=null)},_getDirection:function(e,n){return typeof this.options.direction=="function"?this.options.direction.call(this,e,n,pt):this.options.direction},_onTapStart:function(e){if(e.cancelable){var n=this,r=this.el,o=this.options,a=o.preventOnFilter,i=e.type,u=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,s=(u||e).target,l=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,c=o.filter;if(lG(r),!pt&&!(/mousedown|pointerdown/.test(i)&&e.button!==0||o.disabled)&&!l.isContentEditable&&!(!this.nativeDraggable&&hf&&s&&s.tagName.toUpperCase()==="SELECT")&&(s=Oo(s,o.draggable,r,!1),!(s&&s.animated)&&Eg!==s)){if(ul=on(s),yf=on(s,o.draggable),typeof c=="function"){if(c.call(this,e,s,this)){dr({sortable:n,rootEl:l,name:"filter",targetEl:s,toEl:r,fromEl:r}),yr("filter",n,{evt:e}),a&&e.cancelable&&e.preventDefault();return}}else if(c&&(c=c.split(",").some(function(f){if(f=Oo(l,f.trim(),r,!1),f)return dr({sortable:n,rootEl:f,name:"filter",targetEl:s,fromEl:r,toEl:r}),yr("filter",n,{evt:e}),!0}),c)){a&&e.cancelable&&e.preventDefault();return}o.handle&&!Oo(l,o.handle,r,!1)||this._prepareDragStart(e,u,s)}}},_prepareDragStart:function(e,n,r){var o=this,a=o.el,i=o.options,u=a.ownerDocument,s;if(r&&!pt&&r.parentNode===a){var l=Xe(r);if(Ze=a,pt=r,an=pt.parentNode,Au=pt.nextSibling,Eg=r,Sg=i.group,It.dragged=pt,Tu={target:pt,clientX:(n||e).clientX,clientY:(n||e).clientY},Z8=Tu.clientX-l.left,J8=Tu.clientY-l.top,this._lastX=(n||e).clientX,this._lastY=(n||e).clientY,pt.style["will-change"]="all",s=function(){if(yr("delayEnded",o,{evt:e}),It.eventCanceled){o._onDrop();return}o._disableDelayedDragEvents(),!V8&&o.nativeDraggable&&(pt.draggable=!0),o._triggerDragStart(e,n),dr({sortable:o,name:"choose",originalEvent:e}),en(pt,i.chosenClass,!0)},i.ignore.split(",").forEach(function(c){_8(pt,c.trim(),cb)}),se(u,"dragover",Bu),se(u,"mousemove",Bu),se(u,"touchmove",Bu),se(u,"mouseup",o._onDrop),se(u,"touchend",o._onDrop),se(u,"touchcancel",o._onDrop),V8&&this.nativeDraggable&&(this.options.touchStartThreshold=4,pt.draggable=!0),yr("delayStart",this,{evt:e}),i.delay&&(!i.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(pf||Ti))){if(It.eventCanceled){this._onDrop();return}se(u,"mouseup",o._disableDelayedDrag),se(u,"touchend",o._disableDelayedDrag),se(u,"touchcancel",o._disableDelayedDrag),se(u,"mousemove",o._delayedDragTouchMoveHandler),se(u,"touchmove",o._delayedDragTouchMoveHandler),i.supportPointer&&se(u,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(s,i.delay)}else s()}},_delayedDragTouchMoveHandler:function(e){var n=e.touches?e.touches[0]:e;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){pt&&cb(pt),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;ie(e,"mouseup",this._disableDelayedDrag),ie(e,"touchend",this._disableDelayedDrag),ie(e,"touchcancel",this._disableDelayedDrag),ie(e,"mousemove",this._delayedDragTouchMoveHandler),ie(e,"touchmove",this._delayedDragTouchMoveHandler),ie(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,n){n=n||e.pointerType=="touch"&&e,!this.nativeDraggable||n?this.options.supportPointer?se(document,"pointermove",this._onTouchMove):n?se(document,"touchmove",this._onTouchMove):se(document,"mousemove",this._onTouchMove):(se(pt,"dragend",this),se(Ze,"dragstart",this._onDragStart));try{document.selection?Fg(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,n){if(sl=!1,Ze&&pt){yr("dragStarted",this,{evt:n}),this.nativeDraggable&&se(document,"dragover",eG);var r=this.options;!e&&en(pt,r.dragClass,!1),en(pt,r.ghostClass,!0),It.active=this,e&&this._appendGhost(),dr({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(Ao){this._lastX=Ao.clientX,this._lastY=Ao.clientY,eO();for(var e=document.elementFromPoint(Ao.clientX,Ao.clientY),n=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(Ao.clientX,Ao.clientY),e!==n);)n=e;if(pt.parentNode[$n]._isOutsideThisEl(e),n)do{if(n[$n]){var r=void 0;if(r=n[$n]._onDragOver({clientX:Ao.clientX,clientY:Ao.clientY,target:e,rootEl:n}),r&&!this.options.dragoverBubble)break}e=n}while(n=n.parentNode);nO()}},_onTouchMove:function(e){if(Tu){var n=this.options,r=n.fallbackTolerance,o=n.fallbackOffset,a=e.touches?e.touches[0]:e,i=Xt&&Ou(Xt,!0),u=Xt&&i&&i.a,s=Xt&&i&&i.d,l=Bg&&qn&&W8(qn),c=(a.clientX-Tu.clientX+o.x)/(u||1)+(l?l[0]-sb[0]:0)/(u||1),f=(a.clientY-Tu.clientY+o.y)/(s||1)+(l?l[1]-sb[1]:0)/(s||1);if(!It.active&&!sl){if(r&&Math.max(Math.abs(a.clientX-this._lastX),Math.abs(a.clientY-this._lastY))<r)return;this._onDragStart(e,!0)}if(Xt){i?(i.e+=c-(ab||0),i.f+=f-(ub||0)):i={a:1,b:0,c:0,d:1,e:c,f};var d="matrix(".concat(i.a,",").concat(i.b,",").concat(i.c,",").concat(i.d,",").concat(i.e,",").concat(i.f,")");Ot(Xt,"webkitTransform",d),Ot(Xt,"mozTransform",d),Ot(Xt,"msTransform",d),Ot(Xt,"transform",d),ab=c,ub=f,Ao=a}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!Xt){var e=this.options.fallbackOnBody?document.body:Ze,n=Xe(pt,!0,Bg,!0,e),r=this.options;if(Bg){for(qn=e;Ot(qn,"position")==="static"&&Ot(qn,"transform")==="none"&&qn!==document;)qn=qn.parentNode;qn!==document.body&&qn!==document.documentElement?(qn===document&&(qn=Yo()),n.top+=qn.scrollTop,n.left+=qn.scrollLeft):qn=Yo(),sb=W8(qn)}Xt=pt.cloneNode(!0),en(Xt,r.ghostClass,!1),en(Xt,r.fallbackClass,!0),en(Xt,r.dragClass,!0),Ot(Xt,"transition",""),Ot(Xt,"transform",""),Ot(Xt,"box-sizing","border-box"),Ot(Xt,"margin",0),Ot(Xt,"top",n.top),Ot(Xt,"left",n.left),Ot(Xt,"width",n.width),Ot(Xt,"height",n.height),Ot(Xt,"opacity","0.8"),Ot(Xt,"position",Bg?"absolute":"fixed"),Ot(Xt,"zIndex","100000"),Ot(Xt,"pointerEvents","none"),It.ghost=Xt,e.appendChild(Xt),Ot(Xt,"transform-origin",Z8/parseInt(Xt.style.width)*100+"% "+J8/parseInt(Xt.style.height)*100+"%")}},_onDragStart:function(e,n){var r=this,o=e.dataTransfer,a=r.options;if(yr("dragStart",this,{evt:e}),It.eventCanceled){this._onDrop();return}yr("setupClone",this),It.eventCanceled||(un=rb(pt),un.draggable=!1,un.style["will-change"]="",this._hideClone(),en(un,this.options.chosenClass,!1),It.clone=un),r.cloneId=Fg(function(){yr("clone",r),!It.eventCanceled&&(r.options.removeCloneOnHide||Ze.insertBefore(un,pt),r._hideClone(),dr({sortable:r,name:"clone"}))}),!n&&en(pt,a.dragClass,!0),n?(xg=!0,r._loopId=setInterval(r._emulateDragOver,50)):(ie(document,"mouseup",r._onDrop),ie(document,"touchend",r._onDrop),ie(document,"touchcancel",r._onDrop),o&&(o.effectAllowed="move",a.setData&&a.setData.call(r,o,pt)),se(document,"drop",r),Ot(pt,"transform","translateZ(0)")),sl=!0,r._dragStartId=Fg(r._dragStarted.bind(r,n,e)),se(document,"selectstart",r),bf=!0,hf&&Ot(document.body,"user-select","none")},_onDragOver:function(e){var n=this.el,r=e.target,o,a,i,u=this.options,s=u.group,l=It.active,c=Sg===s,f=u.sort,d=Wn||l,p,m=this,h=!1;if(lb)return;function v(rt,it){yr(rt,m,Ko({evt:e,isOwner:c,axis:p?"vertical":"horizontal",revert:i,dragRect:o,targetRect:a,canSort:f,fromSortable:d,target:r,completed:g,onMove:function(O,B){return Pg(Ze,n,pt,o,O,Xe(O),e,B)},changed:w},it))}function y(){v("dragOverAnimationCapture"),m.captureAnimationState(),m!==d&&d.captureAnimationState()}function g(rt){return v("dragOverCompleted",{insertion:rt}),rt&&(c?l._hideClone():l._showClone(m),m!==d&&(en(pt,Wn?Wn.options.ghostClass:l.options.ghostClass,!1),en(pt,u.ghostClass,!0)),Wn!==m&&m!==It.active?Wn=m:m===It.active&&Wn&&(Wn=null),d===m&&(m._ignoreWhileAnimating=r),m.animateAll(function(){v("dragOverAnimationComplete"),m._ignoreWhileAnimating=null}),m!==d&&(d.animateAll(),d._ignoreWhileAnimating=null)),(r===pt&&!pt.animated||r===n&&!r.animated)&&(ll=null),!u.dragoverBubble&&!e.rootEl&&r!==document&&(pt.parentNode[$n]._isOutsideThisEl(e.target),!rt&&Bu(e)),!u.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),h=!0}function w(){Nr=on(pt),aa=on(pt,u.draggable),dr({sortable:m,name:"change",toEl:n,newIndex:Nr,newDraggableIndex:aa,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),r=Oo(r,u.draggable,n,!0),v("dragOver"),It.eventCanceled)return h;if(pt.contains(e.target)||r.animated&&r.animatingX&&r.animatingY||m._ignoreWhileAnimating===r)return g(!1);if(xg=!1,l&&!u.disabled&&(c?f||(i=an!==Ze):Wn===this||(this.lastPutMode=Sg.checkPull(this,l,pt,e))&&s.checkPut(this,l,pt,e))){if(p=this._getDirection(e,r)==="vertical",o=Xe(pt),v("dragOverValid"),It.eventCanceled)return h;if(i)return an=Ze,y(),this._hideClone(),v("revert"),It.eventCanceled||(Au?Ze.insertBefore(pt,Au):Ze.appendChild(pt)),g(!0);var E=eb(n,u.draggable);if(!E||iG(e,p,this)&&!E.animated){if(E===pt)return g(!1);if(E&&n===e.target&&(r=E),r&&(a=Xe(r)),Pg(Ze,n,pt,o,r,a,e,!!r)!==!1)return y(),n.appendChild(pt),an=n,w(),g(!0)}else if(E&&oG(e,p,this)){var x=il(n,0,u,!0);if(x===pt)return g(!1);if(r=x,a=Xe(r),Pg(Ze,n,pt,o,r,a,e,!1)!==!1)return y(),n.insertBefore(pt,x),an=n,w(),g(!0)}else if(r.parentNode===n){a=Xe(r);var S=0,C,T=pt.parentNode!==n,A=!q_(pt.animated&&pt.toRect||o,r.animated&&r.toRect||a,p),k=p?"top":"left",M=G8(r,"top","top")||G8(pt,"top","top"),H=M?M.scrollTop:void 0;ll!==r&&(C=a[k],Ef=!1,Dg=!A&&u.invertSwap||T),S=aG(e,r,a,p,A?1:u.swapThreshold,u.invertedSwapThreshold==null?u.swapThreshold:u.invertedSwapThreshold,Dg,ll===r);var N;if(S!==0){var j=on(pt);do j-=S,N=an.children[j];while(N&&(Ot(N,"display")==="none"||N===Xt))}if(S===0||N===r)return g(!1);ll=r,wf=S;var G=r.nextElementSibling,V=!1;V=S===1;var J=Pg(Ze,n,pt,o,r,a,e,V);if(J!==!1)return(J===1||J===-1)&&(V=J===1),lb=!0,setTimeout(rG,30),y(),V&&!G?n.appendChild(pt):r.parentNode.insertBefore(pt,V?G:r),M&&Y8(M,0,H-M.scrollTop),an=pt.parentNode,C!==void 0&&!Dg&&(Og=Math.abs(C-Xe(r)[k])),w(),g(!0)}if(n.contains(pt))return g(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){ie(document,"mousemove",this._onTouchMove),ie(document,"touchmove",this._onTouchMove),ie(document,"pointermove",this._onTouchMove),ie(document,"dragover",Bu),ie(document,"mousemove",Bu),ie(document,"touchmove",Bu)},_offUpEvents:function(){var e=this.el.ownerDocument;ie(e,"mouseup",this._onDrop),ie(e,"touchend",this._onDrop),ie(e,"pointerup",this._onDrop),ie(e,"touchcancel",this._onDrop),ie(document,"selectstart",this)},_onDrop:function(e){var n=this.el,r=this.options;if(Nr=on(pt),aa=on(pt,r.draggable),yr("drop",this,{evt:e}),an=pt&&pt.parentNode,Nr=on(pt),aa=on(pt,r.draggable),It.eventCanceled){this._nulling();return}sl=!1,Dg=!1,Ef=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),fb(this.cloneId),fb(this._dragStartId),this.nativeDraggable&&(ie(document,"drop",this),ie(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),hf&&Ot(document.body,"user-select",""),Ot(pt,"transform",""),e&&(bf&&(e.cancelable&&e.preventDefault(),!r.dropBubble&&e.stopPropagation()),Xt&&Xt.parentNode&&Xt.parentNode.removeChild(Xt),(Ze===an||Wn&&Wn.lastPutMode!=="clone")&&un&&un.parentNode&&un.parentNode.removeChild(un),pt&&(this.nativeDraggable&&ie(pt,"dragend",this),cb(pt),pt.style["will-change"]="",bf&&!sl&&en(pt,Wn?Wn.options.ghostClass:this.options.ghostClass,!1),en(pt,this.options.chosenClass,!1),dr({sortable:this,name:"unchoose",toEl:an,newIndex:null,newDraggableIndex:null,originalEvent:e}),Ze!==an?(Nr>=0&&(dr({rootEl:an,name:"add",toEl:an,fromEl:Ze,originalEvent:e}),dr({sortable:this,name:"remove",toEl:an,originalEvent:e}),dr({rootEl:an,name:"sort",toEl:an,fromEl:Ze,originalEvent:e}),dr({sortable:this,name:"sort",toEl:an,originalEvent:e})),Wn&&Wn.save()):Nr!==ul&&Nr>=0&&(dr({sortable:this,name:"update",toEl:an,originalEvent:e}),dr({sortable:this,name:"sort",toEl:an,originalEvent:e})),It.active&&((Nr==null||Nr===-1)&&(Nr=ul,aa=yf),dr({sortable:this,name:"end",toEl:an,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){yr("nulling",this),Ze=pt=an=Xt=Au=un=Eg=ia=Tu=Ao=bf=Nr=aa=ul=yf=ll=wf=Wn=Sg=It.dragged=It.ghost=It.clone=It.active=null,Ag.forEach(function(e){e.checked=!0}),Ag.length=ab=ub=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":pt&&(this._onDragOver(e),nG(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],n,r=this.el.children,o=0,a=r.length,i=this.options;o<a;o++)n=r[o],Oo(n,i.draggable,this.el,!1)&&e.push(n.getAttribute(i.dataIdAttr)||sG(n));return e},sort:function(e,n){var r={},o=this.el;this.toArray().forEach(function(a,i){var u=o.children[i];Oo(u,this.options.draggable,o,!1)&&(r[a]=u)},this),n&&this.captureAnimationState(),e.forEach(function(a){r[a]&&(o.removeChild(r[a]),o.appendChild(r[a]))}),n&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,n){return Oo(e,n||this.options.draggable,this.el,!1)},option:function(e,n){var r=this.options;if(n===void 0)return r[e];var o=vf.modifyOption(this,e,n);typeof o<"u"?r[e]=o:r[e]=n,e==="group"&&tO(r)},destroy:function(){yr("destroy",this);var e=this.el;e[$n]=null,ie(e,"mousedown",this._onTapStart),ie(e,"touchstart",this._onTapStart),ie(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(ie(e,"dragover",this),ie(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Cg.splice(Cg.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!ia){if(yr("hideClone",this),It.eventCanceled)return;Ot(un,"display","none"),this.options.removeCloneOnHide&&un.parentNode&&un.parentNode.removeChild(un),ia=!0}},_showClone:function(e){if(e.lastPutMode!=="clone"){this._hideClone();return}if(ia){if(yr("showClone",this),It.eventCanceled)return;pt.parentNode==Ze&&!this.options.group.revertClone?Ze.insertBefore(un,pt):Au?Ze.insertBefore(un,Au):Ze.appendChild(un),this.options.group.revertClone&&this.animate(pt,un),Ot(un,"display",""),ia=!1}}};function nG(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}function Pg(t,e,n,r,o,a,i,u){var s,l=t[$n],c=l.options.onMove,f;return window.CustomEvent&&!Ti&&!pf?s=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(s=document.createEvent("Event"),s.initEvent("move",!0,!0)),s.to=e,s.from=t,s.dragged=n,s.draggedRect=r,s.related=o||e,s.relatedRect=a||Xe(e),s.willInsertAfter=u,s.originalEvent=i,t.dispatchEvent(s),c&&(f=c.call(l,s,i)),f}function cb(t){t.draggable=!1}function rG(){lb=!1}function oG(t,e,n){var r=Xe(il(n.el,0,n.options,!0)),o=10;return e?t.clientX<r.left-o||t.clientY<r.top&&t.clientX<r.right:t.clientY<r.top-o||t.clientY<r.bottom&&t.clientX<r.left}function iG(t,e,n){var r=Xe(eb(n.el,n.options.draggable)),o=10;return e?t.clientX>r.right+o||t.clientX<=r.right&&t.clientY>r.bottom&&t.clientX>=r.left:t.clientX>r.right&&t.clientY>r.top||t.clientX<=r.right&&t.clientY>r.bottom+o}function aG(t,e,n,r,o,a,i,u){var s=r?t.clientY:t.clientX,l=r?n.height:n.width,c=r?n.top:n.left,f=r?n.bottom:n.right,d=!1;if(!i){if(u&&Og<l*o){if(!Ef&&(wf===1?s>c+l*a/2:s<f-l*a/2)&&(Ef=!0),Ef)d=!0;else if(wf===1?s<c+Og:s>f-Og)return-wf}else if(s>c+l*(1-o)/2&&s<f-l*(1-o)/2)return uG(e)}return d=d||i,d&&(s<c+l*a/2||s>f-l*a/2)?s>c+l/2?1:-1:0}function uG(t){return on(pt)<on(t)?1:-1}function sG(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,n=e.length,r=0;n--;)r+=e.charCodeAt(n);return r.toString(36)}function lG(t){Ag.length=0;for(var e=t.getElementsByTagName("input"),n=e.length;n--;){var r=e[n];r.checked&&Ag.push(r)}}function Fg(t){return setTimeout(t,0)}function fb(t){return clearTimeout(t)}Tg&&se(document,"touchmove",function(t){(It.active||sl)&&t.cancelable&&t.preventDefault()}),It.utils={on:se,off:ie,css:Ot,find:_8,is:function(e,n){return!!Oo(e,n,e,!1)},extend:K_,throttle:K8,closest:Oo,toggleClass:en,clone:rb,index:on,nextTick:Fg,cancelNextTick:fb,detectDirection:q8,getChild:il},It.get=function(t){return t[$n]},It.mount=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e[0].constructor===Array&&(e=e[0]),e.forEach(function(r){if(!r.prototype||!r.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(r));r.utils&&(It.utils=Ko(Ko({},It.utils),r.utils)),vf.mount(r)})},It.create=function(t,e){return new It(t,e)},It.version=U_;var En=[],Sf,db,pb=!1,hb,gb,kg,xf;function cG(){function t(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var e in this)e.charAt(0)==="_"&&typeof this[e]=="function"&&(this[e]=this[e].bind(this))}return t.prototype={dragStarted:function(n){var r=n.originalEvent;this.sortable.nativeDraggable?se(document,"dragover",this._handleAutoScroll):this.options.supportPointer?se(document,"pointermove",this._handleFallbackAutoScroll):r.touches?se(document,"touchmove",this._handleFallbackAutoScroll):se(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var r=n.originalEvent;!this.options.dragOverBubble&&!r.rootEl&&this._handleAutoScroll(r)},drop:function(){this.sortable.nativeDraggable?ie(document,"dragover",this._handleAutoScroll):(ie(document,"pointermove",this._handleFallbackAutoScroll),ie(document,"touchmove",this._handleFallbackAutoScroll),ie(document,"mousemove",this._handleFallbackAutoScroll)),rO(),Ng(),Y_()},nulling:function(){kg=db=Sf=pb=xf=hb=gb=null,En.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,r){var o=this,a=(n.touches?n.touches[0]:n).clientX,i=(n.touches?n.touches[0]:n).clientY,u=document.elementFromPoint(a,i);if(kg=n,r||this.options.forceAutoScrollFallback||pf||Ti||hf){vb(n,this.options,u,r);var s=oa(u,!0);pb&&(!xf||a!==hb||i!==gb)&&(xf&&rO(),xf=setInterval(function(){var l=oa(document.elementFromPoint(a,i),!0);l!==s&&(s=l,Ng()),vb(n,o.options,l,r)},10),hb=a,gb=i)}else{if(!this.options.bubbleScroll||oa(u,!0)===Yo()){Ng();return}vb(n,this.options,oa(u,!1),!1)}}},no(t,{pluginName:"scroll",initializeByDefault:!0})}function Ng(){En.forEach(function(t){clearInterval(t.pid)}),En=[]}function rO(){clearInterval(xf)}var vb=K8(function(t,e,n,r){if(e.scroll){var o=(t.touches?t.touches[0]:t).clientX,a=(t.touches?t.touches[0]:t).clientY,i=e.scrollSensitivity,u=e.scrollSpeed,s=Yo(),l=!1,c;db!==n&&(db=n,Ng(),Sf=e.scroll,c=e.scrollFn,Sf===!0&&(Sf=oa(n,!0)));var f=0,d=Sf;do{var p=d,m=Xe(p),h=m.top,v=m.bottom,y=m.left,g=m.right,w=m.width,E=m.height,x=void 0,S=void 0,C=p.scrollWidth,T=p.scrollHeight,A=Ot(p),k=p.scrollLeft,M=p.scrollTop;p===s?(x=w<C&&(A.overflowX==="auto"||A.overflowX==="scroll"||A.overflowX==="visible"),S=E<T&&(A.overflowY==="auto"||A.overflowY==="scroll"||A.overflowY==="visible")):(x=w<C&&(A.overflowX==="auto"||A.overflowX==="scroll"),S=E<T&&(A.overflowY==="auto"||A.overflowY==="scroll"));var H=x&&(Math.abs(g-o)<=i&&k+w<C)-(Math.abs(y-o)<=i&&!!k),N=S&&(Math.abs(v-a)<=i&&M+E<T)-(Math.abs(h-a)<=i&&!!M);if(!En[f])for(var j=0;j<=f;j++)En[j]||(En[j]={});(En[f].vx!=H||En[f].vy!=N||En[f].el!==p)&&(En[f].el=p,En[f].vx=H,En[f].vy=N,clearInterval(En[f].pid),(H!=0||N!=0)&&(l=!0,En[f].pid=setInterval((function(){r&&this.layer===0&&It.active._onTouchMove(kg);var G=En[this.layer].vy?En[this.layer].vy*u:0,V=En[this.layer].vx?En[this.layer].vx*u:0;typeof c=="function"&&c.call(It.dragged.parentNode[$n],V,G,t,kg,En[this.layer].el)!=="continue"||Y8(En[this.layer].el,V,G)}).bind({layer:f}),24))),f++}while(e.bubbleScroll&&d!==s&&(d=oa(d,!1)));pb=l}},30),oO=function(e){var n=e.originalEvent,r=e.putSortable,o=e.dragEl,a=e.activeSortable,i=e.dispatchSortableEvent,u=e.hideGhostForTarget,s=e.unhideGhostForTarget;if(n){var l=r||a;u();var c=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,f=document.elementFromPoint(c.clientX,c.clientY);s(),l&&!l.el.contains(f)&&(i("spill"),this.onSpill({dragEl:o,putSortable:r}))}};function mb(){}mb.prototype={startIndex:null,dragStart:function(e){var n=e.oldDraggableIndex;this.startIndex=n},onSpill:function(e){var n=e.dragEl,r=e.putSortable;this.sortable.captureAnimationState(),r&&r.captureAnimationState();var o=il(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(n,o):this.sortable.el.appendChild(n),this.sortable.animateAll(),r&&r.animateAll()},drop:oO},no(mb,{pluginName:"revertOnSpill"});function yb(){}yb.prototype={onSpill:function(e){var n=e.dragEl,r=e.putSortable,o=r||this.sortable;o.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),o.animateAll()},drop:oO},no(yb,{pluginName:"removeOnSpill"});var ro;function fG(){function t(){this.defaults={swapClass:"sortable-swap-highlight"}}return t.prototype={dragStart:function(n){var r=n.dragEl;ro=r},dragOverValid:function(n){var r=n.completed,o=n.target,a=n.onMove,i=n.activeSortable,u=n.changed,s=n.cancel;if(i.options.swap){var l=this.sortable.el,c=this.options;if(o&&o!==l){var f=ro;a(o)!==!1?(en(o,c.swapClass,!0),ro=o):ro=null,f&&f!==ro&&en(f,c.swapClass,!1)}u(),r(!0),s()}},drop:function(n){var r=n.activeSortable,o=n.putSortable,a=n.dragEl,i=o||this.sortable,u=this.options;ro&&en(ro,u.swapClass,!1),ro&&(u.swap||o&&o.options.swap)&&a!==ro&&(i.captureAnimationState(),i!==r&&r.captureAnimationState(),dG(a,ro),i.animateAll(),i!==r&&r.animateAll())},nulling:function(){ro=null}},no(t,{pluginName:"swap",eventProperties:function(){return{swapItem:ro}}})}function dG(t,e){var n=t.parentNode,r=e.parentNode,o,a;!n||!r||n.isEqualNode(e)||r.isEqualNode(t)||(o=on(t),a=on(e),n.isEqualNode(r)&&o<a&&a++,n.insertBefore(e,n.children[o]),r.insertBefore(t,r.children[a]))}var Kt=[],Ir=[],Cf,To,Df=!1,br=!1,cl=!1,Le,Of,Ig;function pG(){function t(e){for(var n in this)n.charAt(0)==="_"&&typeof this[n]=="function"&&(this[n]=this[n].bind(this));e.options.supportPointer?se(document,"pointerup",this._deselectMultiDrag):(se(document,"mouseup",this._deselectMultiDrag),se(document,"touchend",this._deselectMultiDrag)),se(document,"keydown",this._checkKeyDown),se(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(o,a){var i="";Kt.length&&To===e?Kt.forEach(function(u,s){i+=(s?", ":"")+u.textContent}):i=a.textContent,o.setData("Text",i)}}}return t.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(n){var r=n.dragEl;Le=r},delayEnded:function(){this.isMultiDrag=~Kt.indexOf(Le)},setupClone:function(n){var r=n.sortable,o=n.cancel;if(this.isMultiDrag){for(var a=0;a<Kt.length;a++)Ir.push(rb(Kt[a])),Ir[a].sortableIndex=Kt[a].sortableIndex,Ir[a].draggable=!1,Ir[a].style["will-change"]="",en(Ir[a],this.options.selectedClass,!1),Kt[a]===Le&&en(Ir[a],this.options.chosenClass,!1);r._hideClone(),o()}},clone:function(n){var r=n.sortable,o=n.rootEl,a=n.dispatchSortableEvent,i=n.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||Kt.length&&To===r&&(iO(!0,o),a("clone"),i()))},showClone:function(n){var r=n.cloneNowShown,o=n.rootEl,a=n.cancel;this.isMultiDrag&&(iO(!1,o),Ir.forEach(function(i){Ot(i,"display","")}),r(),Ig=!1,a())},hideClone:function(n){var r=this;n.sortable;var o=n.cloneNowHidden,a=n.cancel;this.isMultiDrag&&(Ir.forEach(function(i){Ot(i,"display","none"),r.options.removeCloneOnHide&&i.parentNode&&i.parentNode.removeChild(i)}),o(),Ig=!0,a())},dragStartGlobal:function(n){n.sortable,!this.isMultiDrag&&To&&To.multiDrag._deselectMultiDrag(),Kt.forEach(function(r){r.sortableIndex=on(r)}),Kt=Kt.sort(function(r,o){return r.sortableIndex-o.sortableIndex}),cl=!0},dragStarted:function(n){var r=this,o=n.sortable;if(this.isMultiDrag){if(this.options.sort&&(o.captureAnimationState(),this.options.animation)){Kt.forEach(function(i){i!==Le&&Ot(i,"position","absolute")});var a=Xe(Le,!1,!0,!0);Kt.forEach(function(i){i!==Le&&X8(i,a)}),br=!0,Df=!0}o.animateAll(function(){br=!1,Df=!1,r.options.animation&&Kt.forEach(function(i){ob(i)}),r.options.sort&&jg()})}},dragOver:function(n){var r=n.target,o=n.completed,a=n.cancel;br&&~Kt.indexOf(r)&&(o(!1),a())},revert:function(n){var r=n.fromSortable,o=n.rootEl,a=n.sortable,i=n.dragRect;Kt.length>1&&(Kt.forEach(function(u){a.addAnimationState({target:u,rect:br?Xe(u):i}),ob(u),u.fromRect=i,r.removeAnimationState(u)}),br=!1,hG(!this.options.removeCloneOnHide,o))},dragOverCompleted:function(n){var r=n.sortable,o=n.isOwner,a=n.insertion,i=n.activeSortable,u=n.parentEl,s=n.putSortable,l=this.options;if(a){if(o&&i._hideClone(),Df=!1,l.animation&&Kt.length>1&&(br||!o&&!i.options.sort&&!s)){var c=Xe(Le,!1,!0,!0);Kt.forEach(function(d){d!==Le&&(X8(d,c),u.appendChild(d))}),br=!0}if(!o)if(br||jg(),Kt.length>1){var f=Ig;i._showClone(r),i.options.animation&&!Ig&&f&&Ir.forEach(function(d){i.addAnimationState({target:d,rect:Of}),d.fromRect=Of,d.thisAnimationDuration=null})}else i._showClone(r)}},dragOverAnimationCapture:function(n){var r=n.dragRect,o=n.isOwner,a=n.activeSortable;if(Kt.forEach(function(u){u.thisAnimationDuration=null}),a.options.animation&&!o&&a.multiDrag.isMultiDrag){Of=no({},r);var i=Ou(Le,!0);Of.top-=i.f,Of.left-=i.e}},dragOverAnimationComplete:function(){br&&(br=!1,jg())},drop:function(n){var r=n.originalEvent,o=n.rootEl,a=n.parentEl,i=n.sortable,u=n.dispatchSortableEvent,s=n.oldIndex,l=n.putSortable,c=l||this.sortable;if(r){var f=this.options,d=a.children;if(!cl)if(f.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),en(Le,f.selectedClass,!~Kt.indexOf(Le)),~Kt.indexOf(Le))Kt.splice(Kt.indexOf(Le),1),Cf=null,mf({sortable:i,rootEl:o,name:"deselect",targetEl:Le});else{if(Kt.push(Le),mf({sortable:i,rootEl:o,name:"select",targetEl:Le}),r.shiftKey&&Cf&&i.el.contains(Cf)){var p=on(Cf),m=on(Le);if(~p&&~m&&p!==m){var h,v;for(m>p?(v=p,h=m):(v=m,h=p+1);v<h;v++)~Kt.indexOf(d[v])||(en(d[v],f.selectedClass,!0),Kt.push(d[v]),mf({sortable:i,rootEl:o,name:"select",targetEl:d[v]}))}}else Cf=Le;To=c}if(cl&&this.isMultiDrag){if(br=!1,(a[$n].options.sort||a!==o)&&Kt.length>1){var y=Xe(Le),g=on(Le,":not(."+this.options.selectedClass+")");if(!Df&&f.animation&&(Le.thisAnimationDuration=null),c.captureAnimationState(),!Df&&(f.animation&&(Le.fromRect=y,Kt.forEach(function(E){if(E.thisAnimationDuration=null,E!==Le){var x=br?Xe(E):y;E.fromRect=x,c.addAnimationState({target:E,rect:x})}})),jg(),Kt.forEach(function(E){d[g]?a.insertBefore(E,d[g]):a.appendChild(E),g++}),s===on(Le))){var w=!1;Kt.forEach(function(E){if(E.sortableIndex!==on(E)){w=!0;return}}),w&&u("update")}Kt.forEach(function(E){ob(E)}),c.animateAll()}To=c}(o===a||l&&l.lastPutMode!=="clone")&&Ir.forEach(function(E){E.parentNode&&E.parentNode.removeChild(E)})}},nullingGlobal:function(){this.isMultiDrag=cl=!1,Ir.length=0},destroyGlobal:function(){this._deselectMultiDrag(),ie(document,"pointerup",this._deselectMultiDrag),ie(document,"mouseup",this._deselectMultiDrag),ie(document,"touchend",this._deselectMultiDrag),ie(document,"keydown",this._checkKeyDown),ie(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(n){if(!(typeof cl<"u"&&cl)&&To===this.sortable&&!(n&&Oo(n.target,this.options.draggable,this.sortable.el,!1))&&!(n&&n.button!==0))for(;Kt.length;){var r=Kt[0];en(r,this.options.selectedClass,!1),Kt.shift(),mf({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:r})}},_checkKeyDown:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},no(t,{pluginName:"multiDrag",utils:{select:function(n){var r=n.parentNode[$n];!r||!r.options.multiDrag||~Kt.indexOf(n)||(To&&To!==r&&(To.multiDrag._deselectMultiDrag(),To=r),en(n,r.options.selectedClass,!0),Kt.push(n))},deselect:function(n){var r=n.parentNode[$n],o=Kt.indexOf(n);!r||!r.options.multiDrag||!~o||(en(n,r.options.selectedClass,!1),Kt.splice(o,1))}},eventProperties:function(){var n=this,r=[],o=[];return Kt.forEach(function(a){r.push({multiDragElement:a,index:a.sortableIndex});var i;br&&a!==Le?i=-1:br?i=on(a,":not(."+n.options.selectedClass+")"):i=on(a),o.push({multiDragElement:a,index:i})}),{items:L_(Kt),clones:[].concat(Ir),oldIndicies:r,newIndicies:o}},optionListeners:{multiDragKey:function(n){return n=n.toLowerCase(),n==="ctrl"?n="Control":n.length>1&&(n=n.charAt(0).toUpperCase()+n.substr(1)),n}}})}function hG(t,e){Kt.forEach(function(n,r){var o=e.children[n.sortableIndex+(t?Number(r):0)];o?e.insertBefore(n,o):e.appendChild(n)})}function iO(t,e){Ir.forEach(function(n,r){var o=e.children[n.sortableIndex+(t?Number(r):0)];o?e.insertBefore(n,o):e.appendChild(n)})}function jg(){Kt.forEach(function(t){t!==Le&&t.parentNode&&t.parentNode.removeChild(t)})}It.mount(new cG),It.mount(yb,mb);const gG=N_(Object.freeze(Object.defineProperty({__proto__:null,MultiDrag:pG,Sortable:It,Swap:fG,default:It},Symbol.toStringTag,{value:"Module"})));(function(t,e){(function(r,o){t.exports=o(b,gG)})(typeof self<"u"?self:F_,function(n,r){return function(o){var a={};function i(u){if(a[u])return a[u].exports;var s=a[u]={i:u,l:!1,exports:{}};return o[u].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=o,i.c=a,i.d=function(u,s,l){i.o(u,s)||Object.defineProperty(u,s,{enumerable:!0,get:l})},i.r=function(u){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})},i.t=function(u,s){if(s&1&&(u=i(u)),s&8||s&4&&typeof u=="object"&&u&&u.__esModule)return u;var l=Object.create(null);if(i.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:u}),s&2&&typeof u!="string")for(var c in u)i.d(l,c,(function(f){return u[f]}).bind(null,c));return l},i.n=function(u){var s=u&&u.__esModule?function(){return u.default}:function(){return u};return i.d(s,"a",s),s},i.o=function(u,s){return Object.prototype.hasOwnProperty.call(u,s)},i.p="",i(i.s="fb15")}({"00ee":function(o,a,i){var u=i("b622"),s=u("toStringTag"),l={};l[s]="z",o.exports=String(l)==="[object z]"},"0366":function(o,a,i){var u=i("1c0b");o.exports=function(s,l,c){if(u(s),l===void 0)return s;switch(c){case 0:return function(){return s.call(l)};case 1:return function(f){return s.call(l,f)};case 2:return function(f,d){return s.call(l,f,d)};case 3:return function(f,d,p){return s.call(l,f,d,p)}}return function(){return s.apply(l,arguments)}}},"057f":function(o,a,i){var u=i("fc6a"),s=i("241c").f,l={}.toString,c=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],f=function(d){try{return s(d)}catch{return c.slice()}};o.exports.f=function(p){return c&&l.call(p)=="[object Window]"?f(p):s(u(p))}},"06cf":function(o,a,i){var u=i("83ab"),s=i("d1e7"),l=i("5c6c"),c=i("fc6a"),f=i("c04e"),d=i("5135"),p=i("0cfb"),m=Object.getOwnPropertyDescriptor;a.f=u?m:function(v,y){if(v=c(v),y=f(y,!0),p)try{return m(v,y)}catch{}if(d(v,y))return l(!s.f.call(v,y),v[y])}},"0cfb":function(o,a,i){var u=i("83ab"),s=i("d039"),l=i("cc12");o.exports=!u&&!s(function(){return Object.defineProperty(l("div"),"a",{get:function(){return 7}}).a!=7})},"13d5":function(o,a,i){var u=i("23e7"),s=i("d58f").left,l=i("a640"),c=i("ae40"),f=l("reduce"),d=c("reduce",{1:0});u({target:"Array",proto:!0,forced:!f||!d},{reduce:function(m){return s(this,m,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(o,a,i){var u=i("c6b6"),s=i("9263");o.exports=function(l,c){var f=l.exec;if(typeof f=="function"){var d=f.call(l,c);if(typeof d!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return d}if(u(l)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return s.call(l,c)}},"159b":function(o,a,i){var u=i("da84"),s=i("fdbc"),l=i("17c2"),c=i("9112");for(var f in s){var d=u[f],p=d&&d.prototype;if(p&&p.forEach!==l)try{c(p,"forEach",l)}catch{p.forEach=l}}},"17c2":function(o,a,i){var u=i("b727").forEach,s=i("a640"),l=i("ae40"),c=s("forEach"),f=l("forEach");o.exports=!c||!f?function(p){return u(this,p,arguments.length>1?arguments[1]:void 0)}:[].forEach},"1be4":function(o,a,i){var u=i("d066");o.exports=u("document","documentElement")},"1c0b":function(o,a){o.exports=function(i){if(typeof i!="function")throw TypeError(String(i)+" is not a function");return i}},"1c7e":function(o,a,i){var u=i("b622"),s=u("iterator"),l=!1;try{var c=0,f={next:function(){return{done:!!c++}},return:function(){l=!0}};f[s]=function(){return this},Array.from(f,function(){throw 2})}catch{}o.exports=function(d,p){if(!p&&!l)return!1;var m=!1;try{var h={};h[s]=function(){return{next:function(){return{done:m=!0}}}},d(h)}catch{}return m}},"1d80":function(o,a){o.exports=function(i){if(i==null)throw TypeError("Can't call method on "+i);return i}},"1dde":function(o,a,i){var u=i("d039"),s=i("b622"),l=i("2d00"),c=s("species");o.exports=function(f){return l>=51||!u(function(){var d=[],p=d.constructor={};return p[c]=function(){return{foo:1}},d[f](Boolean).foo!==1})}},"23cb":function(o,a,i){var u=i("a691"),s=Math.max,l=Math.min;o.exports=function(c,f){var d=u(c);return d<0?s(d+f,0):l(d,f)}},"23e7":function(o,a,i){var u=i("da84"),s=i("06cf").f,l=i("9112"),c=i("6eeb"),f=i("ce4e"),d=i("e893"),p=i("94ca");o.exports=function(m,h){var v=m.target,y=m.global,g=m.stat,w,E,x,S,C,T;if(y?E=u:g?E=u[v]||f(v,{}):E=(u[v]||{}).prototype,E)for(x in h){if(C=h[x],m.noTargetGet?(T=s(E,x),S=T&&T.value):S=E[x],w=p(y?x:v+(g?".":"#")+x,m.forced),!w&&S!==void 0){if(typeof C==typeof S)continue;d(C,S)}(m.sham||S&&S.sham)&&l(C,"sham",!0),c(E,x,C,m)}}},"241c":function(o,a,i){var u=i("ca84"),s=i("7839"),l=s.concat("length","prototype");a.f=Object.getOwnPropertyNames||function(f){return u(f,l)}},"25f0":function(o,a,i){var u=i("6eeb"),s=i("825a"),l=i("d039"),c=i("ad6d"),f="toString",d=RegExp.prototype,p=d[f],m=l(function(){return p.call({source:"a",flags:"b"})!="/a/b"}),h=p.name!=f;(m||h)&&u(RegExp.prototype,f,function(){var y=s(this),g=String(y.source),w=y.flags,E=String(w===void 0&&y instanceof RegExp&&!("flags"in d)?c.call(y):w);return"/"+g+"/"+E},{unsafe:!0})},"2ca0":function(o,a,i){var u=i("23e7"),s=i("06cf").f,l=i("50c4"),c=i("5a34"),f=i("1d80"),d=i("ab13"),p=i("c430"),m="".startsWith,h=Math.min,v=d("startsWith"),y=!p&&!v&&!!function(){var g=s(String.prototype,"startsWith");return g&&!g.writable}();u({target:"String",proto:!0,forced:!y&&!v},{startsWith:function(w){var E=String(f(this));c(w);var x=l(h(arguments.length>1?arguments[1]:void 0,E.length)),S=String(w);return m?m.call(E,S,x):E.slice(x,x+S.length)===S}})},"2d00":function(o,a,i){var u=i("da84"),s=i("342f"),l=u.process,c=l&&l.versions,f=c&&c.v8,d,p;f?(d=f.split("."),p=d[0]+d[1]):s&&(d=s.match(/Edge\/(\d+)/),(!d||d[1]>=74)&&(d=s.match(/Chrome\/(\d+)/),d&&(p=d[1]))),o.exports=p&&+p},"342f":function(o,a,i){var u=i("d066");o.exports=u("navigator","userAgent")||""},"35a1":function(o,a,i){var u=i("f5df"),s=i("3f8c"),l=i("b622"),c=l("iterator");o.exports=function(f){if(f!=null)return f[c]||f["@@iterator"]||s[u(f)]}},"37e8":function(o,a,i){var u=i("83ab"),s=i("9bf2"),l=i("825a"),c=i("df75");o.exports=u?Object.defineProperties:function(d,p){l(d);for(var m=c(p),h=m.length,v=0,y;h>v;)s.f(d,y=m[v++],p[y]);return d}},"3bbe":function(o,a,i){var u=i("861d");o.exports=function(s){if(!u(s)&&s!==null)throw TypeError("Can't set "+String(s)+" as a prototype");return s}},"3ca3":function(o,a,i){var u=i("6547").charAt,s=i("69f3"),l=i("7dd0"),c="String Iterator",f=s.set,d=s.getterFor(c);l(String,"String",function(p){f(this,{type:c,string:String(p),index:0})},function(){var m=d(this),h=m.string,v=m.index,y;return v>=h.length?{value:void 0,done:!0}:(y=u(h,v),m.index+=y.length,{value:y,done:!1})})},"3f8c":function(o,a){o.exports={}},4160:function(o,a,i){var u=i("23e7"),s=i("17c2");u({target:"Array",proto:!0,forced:[].forEach!=s},{forEach:s})},"428f":function(o,a,i){var u=i("da84");o.exports=u},"44ad":function(o,a,i){var u=i("d039"),s=i("c6b6"),l="".split;o.exports=u(function(){return!Object("z").propertyIsEnumerable(0)})?function(c){return s(c)=="String"?l.call(c,""):Object(c)}:Object},"44d2":function(o,a,i){var u=i("b622"),s=i("7c73"),l=i("9bf2"),c=u("unscopables"),f=Array.prototype;f[c]==null&&l.f(f,c,{configurable:!0,value:s(null)}),o.exports=function(d){f[c][d]=!0}},"44e7":function(o,a,i){var u=i("861d"),s=i("c6b6"),l=i("b622"),c=l("match");o.exports=function(f){var d;return u(f)&&((d=f[c])!==void 0?!!d:s(f)=="RegExp")}},4930:function(o,a,i){var u=i("d039");o.exports=!!Object.getOwnPropertySymbols&&!u(function(){return!String(Symbol())})},"4d64":function(o,a,i){var u=i("fc6a"),s=i("50c4"),l=i("23cb"),c=function(f){return function(d,p,m){var h=u(d),v=s(h.length),y=l(m,v),g;if(f&&p!=p){for(;v>y;)if(g=h[y++],g!=g)return!0}else for(;v>y;y++)if((f||y in h)&&h[y]===p)return f||y||0;return!f&&-1}};o.exports={includes:c(!0),indexOf:c(!1)}},"4de4":function(o,a,i){var u=i("23e7"),s=i("b727").filter,l=i("1dde"),c=i("ae40"),f=l("filter"),d=c("filter");u({target:"Array",proto:!0,forced:!f||!d},{filter:function(m){return s(this,m,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(o,a,i){var u=i("0366"),s=i("7b0b"),l=i("9bdd"),c=i("e95a"),f=i("50c4"),d=i("8418"),p=i("35a1");o.exports=function(h){var v=s(h),y=typeof this=="function"?this:Array,g=arguments.length,w=g>1?arguments[1]:void 0,E=w!==void 0,x=p(v),S=0,C,T,A,k,M,H;if(E&&(w=u(w,g>2?arguments[2]:void 0,2)),x!=null&&!(y==Array&&c(x)))for(k=x.call(v),M=k.next,T=new y;!(A=M.call(k)).done;S++)H=E?l(k,w,[A.value,S],!0):A.value,d(T,S,H);else for(C=f(v.length),T=new y(C);C>S;S++)H=E?w(v[S],S):v[S],d(T,S,H);return T.length=S,T}},"4fad":function(o,a,i){var u=i("23e7"),s=i("6f53").entries;u({target:"Object",stat:!0},{entries:function(c){return s(c)}})},"50c4":function(o,a,i){var u=i("a691"),s=Math.min;o.exports=function(l){return l>0?s(u(l),9007199254740991):0}},5135:function(o,a){var i={}.hasOwnProperty;o.exports=function(u,s){return i.call(u,s)}},5319:function(o,a,i){var u=i("d784"),s=i("825a"),l=i("7b0b"),c=i("50c4"),f=i("a691"),d=i("1d80"),p=i("8aa5"),m=i("14c3"),h=Math.max,v=Math.min,y=Math.floor,g=/\$([$&'`]|\d\d?|<[^>]*>)/g,w=/\$([$&'`]|\d\d?)/g,E=function(x){return x===void 0?x:String(x)};u("replace",2,function(x,S,C,T){var A=T.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,k=T.REPLACE_KEEPS_$0,M=A?"$":"$0";return[function(j,G){var V=d(this),J=j==null?void 0:j[x];return J!==void 0?J.call(j,V,G):S.call(String(V),j,G)},function(N,j){if(!A&&k||typeof j=="string"&&j.indexOf(M)===-1){var G=C(S,N,this,j);if(G.done)return G.value}var V=s(N),J=String(this),rt=typeof j=="function";rt||(j=String(j));var it=V.global;if(it){var W=V.unicode;V.lastIndex=0}for(var O=[];;){var B=m(V,J);if(B===null||(O.push(B),!it))break;var I=String(B[0]);I===""&&(V.lastIndex=p(J,c(V.lastIndex),W))}for(var Y="",et=0,X=0;X<O.length;X++){B=O[X];for(var ot=String(B[0]),mt=h(v(f(B.index),J.length),0),bt=[],Pt=1;Pt<B.length;Pt++)bt.push(E(B[Pt]));var tt=B.groups;if(rt){var Mt=[ot].concat(bt,mt,J);tt!==void 0&&Mt.push(tt);var Dt=String(j.apply(void 0,Mt))}else Dt=H(ot,J,mt,bt,tt,j);mt>=et&&(Y+=J.slice(et,mt)+Dt,et=mt+ot.length)}return Y+J.slice(et)}];function H(N,j,G,V,J,rt){var it=G+N.length,W=V.length,O=w;return J!==void 0&&(J=l(J),O=g),S.call(rt,O,function(B,I){var Y;switch(I.charAt(0)){case"$":return"$";case"&":return N;case"`":return j.slice(0,G);case"'":return j.slice(it);case"<":Y=J[I.slice(1,-1)];break;default:var et=+I;if(et===0)return B;if(et>W){var X=y(et/10);return X===0?B:X<=W?V[X-1]===void 0?I.charAt(1):V[X-1]+I.charAt(1):B}Y=V[et-1]}return Y===void 0?"":Y})}})},5692:function(o,a,i){var u=i("c430"),s=i("c6cd");(o.exports=function(l,c){return s[l]||(s[l]=c!==void 0?c:{})})("versions",[]).push({version:"3.6.5",mode:u?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(o,a,i){var u=i("d066"),s=i("241c"),l=i("7418"),c=i("825a");o.exports=u("Reflect","ownKeys")||function(d){var p=s.f(c(d)),m=l.f;return m?p.concat(m(d)):p}},"5a34":function(o,a,i){var u=i("44e7");o.exports=function(s){if(u(s))throw TypeError("The method doesn't accept regular expressions");return s}},"5c6c":function(o,a){o.exports=function(i,u){return{enumerable:!(i&1),configurable:!(i&2),writable:!(i&4),value:u}}},"5db7":function(o,a,i){var u=i("23e7"),s=i("a2bf"),l=i("7b0b"),c=i("50c4"),f=i("1c0b"),d=i("65f0");u({target:"Array",proto:!0},{flatMap:function(m){var h=l(this),v=c(h.length),y;return f(m),y=d(h,0),y.length=s(y,h,h,v,0,1,m,arguments.length>1?arguments[1]:void 0),y}})},6547:function(o,a,i){var u=i("a691"),s=i("1d80"),l=function(c){return function(f,d){var p=String(s(f)),m=u(d),h=p.length,v,y;return m<0||m>=h?c?"":void 0:(v=p.charCodeAt(m),v<55296||v>56319||m+1===h||(y=p.charCodeAt(m+1))<56320||y>57343?c?p.charAt(m):v:c?p.slice(m,m+2):(v-55296<<10)+(y-56320)+65536)}};o.exports={codeAt:l(!1),charAt:l(!0)}},"65f0":function(o,a,i){var u=i("861d"),s=i("e8b5"),l=i("b622"),c=l("species");o.exports=function(f,d){var p;return s(f)&&(p=f.constructor,typeof p=="function"&&(p===Array||s(p.prototype))?p=void 0:u(p)&&(p=p[c],p===null&&(p=void 0))),new(p===void 0?Array:p)(d===0?0:d)}},"69f3":function(o,a,i){var u=i("7f9a"),s=i("da84"),l=i("861d"),c=i("9112"),f=i("5135"),d=i("f772"),p=i("d012"),m=s.WeakMap,h,v,y,g=function(A){return y(A)?v(A):h(A,{})},w=function(A){return function(k){var M;if(!l(k)||(M=v(k)).type!==A)throw TypeError("Incompatible receiver, "+A+" required");return M}};if(u){var E=new m,x=E.get,S=E.has,C=E.set;h=function(A,k){return C.call(E,A,k),k},v=function(A){return x.call(E,A)||{}},y=function(A){return S.call(E,A)}}else{var T=d("state");p[T]=!0,h=function(A,k){return c(A,T,k),k},v=function(A){return f(A,T)?A[T]:{}},y=function(A){return f(A,T)}}o.exports={set:h,get:v,has:y,enforce:g,getterFor:w}},"6eeb":function(o,a,i){var u=i("da84"),s=i("9112"),l=i("5135"),c=i("ce4e"),f=i("8925"),d=i("69f3"),p=d.get,m=d.enforce,h=String(String).split("String");(o.exports=function(v,y,g,w){var E=w?!!w.unsafe:!1,x=w?!!w.enumerable:!1,S=w?!!w.noTargetGet:!1;if(typeof g=="function"&&(typeof y=="string"&&!l(g,"name")&&s(g,"name",y),m(g).source=h.join(typeof y=="string"?y:"")),v===u){x?v[y]=g:c(y,g);return}else E?!S&&v[y]&&(x=!0):delete v[y];x?v[y]=g:s(v,y,g)})(Function.prototype,"toString",function(){return typeof this=="function"&&p(this).source||f(this)})},"6f53":function(o,a,i){var u=i("83ab"),s=i("df75"),l=i("fc6a"),c=i("d1e7").f,f=function(d){return function(p){for(var m=l(p),h=s(m),v=h.length,y=0,g=[],w;v>y;)w=h[y++],(!u||c.call(m,w))&&g.push(d?[w,m[w]]:m[w]);return g}};o.exports={entries:f(!0),values:f(!1)}},"73d9":function(o,a,i){var u=i("44d2");u("flatMap")},7418:function(o,a){a.f=Object.getOwnPropertySymbols},"746f":function(o,a,i){var u=i("428f"),s=i("5135"),l=i("e538"),c=i("9bf2").f;o.exports=function(f){var d=u.Symbol||(u.Symbol={});s(d,f)||c(d,f,{value:l.f(f)})}},7839:function(o,a){o.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(o,a,i){var u=i("1d80");o.exports=function(s){return Object(u(s))}},"7c73":function(o,a,i){var u=i("825a"),s=i("37e8"),l=i("7839"),c=i("d012"),f=i("1be4"),d=i("cc12"),p=i("f772"),m=">",h="<",v="prototype",y="script",g=p("IE_PROTO"),w=function(){},E=function(A){return h+y+m+A+h+"/"+y+m},x=function(A){A.write(E("")),A.close();var k=A.parentWindow.Object;return A=null,k},S=function(){var A=d("iframe"),k="java"+y+":",M;return A.style.display="none",f.appendChild(A),A.src=String(k),M=A.contentWindow.document,M.open(),M.write(E("document.F=Object")),M.close(),M.F},C,T=function(){try{C=document.domain&&new ActiveXObject("htmlfile")}catch{}T=C?x(C):S();for(var A=l.length;A--;)delete T[v][l[A]];return T()};c[g]=!0,o.exports=Object.create||function(k,M){var H;return k!==null?(w[v]=u(k),H=new w,w[v]=null,H[g]=k):H=T(),M===void 0?H:s(H,M)}},"7dd0":function(o,a,i){var u=i("23e7"),s=i("9ed3"),l=i("e163"),c=i("d2bb"),f=i("d44e"),d=i("9112"),p=i("6eeb"),m=i("b622"),h=i("c430"),v=i("3f8c"),y=i("ae93"),g=y.IteratorPrototype,w=y.BUGGY_SAFARI_ITERATORS,E=m("iterator"),x="keys",S="values",C="entries",T=function(){return this};o.exports=function(A,k,M,H,N,j,G){s(M,k,H);var V=function(X){if(X===N&&O)return O;if(!w&&X in it)return it[X];switch(X){case x:return function(){return new M(this,X)};case S:return function(){return new M(this,X)};case C:return function(){return new M(this,X)}}return function(){return new M(this)}},J=k+" Iterator",rt=!1,it=A.prototype,W=it[E]||it["@@iterator"]||N&&it[N],O=!w&&W||V(N),B=k=="Array"&&it.entries||W,I,Y,et;if(B&&(I=l(B.call(new A)),g!==Object.prototype&&I.next&&(!h&&l(I)!==g&&(c?c(I,g):typeof I[E]!="function"&&d(I,E,T)),f(I,J,!0,!0),h&&(v[J]=T))),N==S&&W&&W.name!==S&&(rt=!0,O=function(){return W.call(this)}),(!h||G)&&it[E]!==O&&d(it,E,O),v[k]=O,N)if(Y={values:V(S),keys:j?O:V(x),entries:V(C)},G)for(et in Y)(w||rt||!(et in it))&&p(it,et,Y[et]);else u({target:k,proto:!0,forced:w||rt},Y);return Y}},"7f9a":function(o,a,i){var u=i("da84"),s=i("8925"),l=u.WeakMap;o.exports=typeof l=="function"&&/native code/.test(s(l))},"825a":function(o,a,i){var u=i("861d");o.exports=function(s){if(!u(s))throw TypeError(String(s)+" is not an object");return s}},"83ab":function(o,a,i){var u=i("d039");o.exports=!u(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},8418:function(o,a,i){var u=i("c04e"),s=i("9bf2"),l=i("5c6c");o.exports=function(c,f,d){var p=u(f);p in c?s.f(c,p,l(0,d)):c[p]=d}},"861d":function(o,a){o.exports=function(i){return typeof i=="object"?i!==null:typeof i=="function"}},8875:function(o,a,i){var u,s,l;(function(c,f){s=[],u=f,l=typeof u=="function"?u.apply(a,s):u,l!==void 0&&(o.exports=l)})(typeof self<"u"?self:this,function(){function c(){var f=Object.getOwnPropertyDescriptor(document,"currentScript");if(!f&&"currentScript"in document&&document.currentScript||f&&f.get!==c&&document.currentScript)return document.currentScript;try{throw new Error}catch(C){var d=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,p=/@([^@]*):(\d+):(\d+)\s*$/ig,m=d.exec(C.stack)||p.exec(C.stack),h=m&&m[1]||!1,v=m&&m[2]||!1,y=document.location.href.replace(document.location.hash,""),g,w,E,x=document.getElementsByTagName("script");h===y&&(g=document.documentElement.outerHTML,w=new RegExp("(?:[^\\n]+?\\n){0,"+(v-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),E=g.replace(w,"$1").trim());for(var S=0;S<x.length;S++)if(x[S].readyState==="interactive"||x[S].src===h||h===y&&x[S].innerHTML&&x[S].innerHTML.trim()===E)return x[S];return null}}return c})},8925:function(o,a,i){var u=i("c6cd"),s=Function.toString;typeof u.inspectSource!="function"&&(u.inspectSource=function(l){return s.call(l)}),o.exports=u.inspectSource},"8aa5":function(o,a,i){var u=i("6547").charAt;o.exports=function(s,l,c){return l+(c?u(s,l).length:1)}},"8bbf":function(o,a){o.exports=n},"90e3":function(o,a){var i=0,u=Math.random();o.exports=function(s){return"Symbol("+String(s===void 0?"":s)+")_"+(++i+u).toString(36)}},9112:function(o,a,i){var u=i("83ab"),s=i("9bf2"),l=i("5c6c");o.exports=u?function(c,f,d){return s.f(c,f,l(1,d))}:function(c,f,d){return c[f]=d,c}},9263:function(o,a,i){var u=i("ad6d"),s=i("9f7f"),l=RegExp.prototype.exec,c=String.prototype.replace,f=l,d=function(){var v=/a/,y=/b*/g;return l.call(v,"a"),l.call(y,"a"),v.lastIndex!==0||y.lastIndex!==0}(),p=s.UNSUPPORTED_Y||s.BROKEN_CARET,m=/()??/.exec("")[1]!==void 0,h=d||m||p;h&&(f=function(y){var g=this,w,E,x,S,C=p&&g.sticky,T=u.call(g),A=g.source,k=0,M=y;return C&&(T=T.replace("y",""),T.indexOf("g")===-1&&(T+="g"),M=String(y).slice(g.lastIndex),g.lastIndex>0&&(!g.multiline||g.multiline&&y[g.lastIndex-1]!==`
8
+ `)&&(A="(?: "+A+")",M=" "+M,k++),E=new RegExp("^(?:"+A+")",T)),m&&(E=new RegExp("^"+A+"$(?!\\s)",T)),d&&(w=g.lastIndex),x=l.call(C?E:g,M),C?x?(x.input=x.input.slice(k),x[0]=x[0].slice(k),x.index=g.lastIndex,g.lastIndex+=x[0].length):g.lastIndex=0:d&&x&&(g.lastIndex=g.global?x.index+x[0].length:w),m&&x&&x.length>1&&c.call(x[0],E,function(){for(S=1;S<arguments.length-2;S++)arguments[S]===void 0&&(x[S]=void 0)}),x}),o.exports=f},"94ca":function(o,a,i){var u=i("d039"),s=/#|\.prototype\./,l=function(m,h){var v=f[c(m)];return v==p?!0:v==d?!1:typeof h=="function"?u(h):!!h},c=l.normalize=function(m){return String(m).replace(s,".").toLowerCase()},f=l.data={},d=l.NATIVE="N",p=l.POLYFILL="P";o.exports=l},"99af":function(o,a,i){var u=i("23e7"),s=i("d039"),l=i("e8b5"),c=i("861d"),f=i("7b0b"),d=i("50c4"),p=i("8418"),m=i("65f0"),h=i("1dde"),v=i("b622"),y=i("2d00"),g=v("isConcatSpreadable"),w=9007199254740991,E="Maximum allowed index exceeded",x=y>=51||!s(function(){var A=[];return A[g]=!1,A.concat()[0]!==A}),S=h("concat"),C=function(A){if(!c(A))return!1;var k=A[g];return k!==void 0?!!k:l(A)},T=!x||!S;u({target:"Array",proto:!0,forced:T},{concat:function(k){var M=f(this),H=m(M,0),N=0,j,G,V,J,rt;for(j=-1,V=arguments.length;j<V;j++)if(rt=j===-1?M:arguments[j],C(rt)){if(J=d(rt.length),N+J>w)throw TypeError(E);for(G=0;G<J;G++,N++)G in rt&&p(H,N,rt[G])}else{if(N>=w)throw TypeError(E);p(H,N++,rt)}return H.length=N,H}})},"9bdd":function(o,a,i){var u=i("825a");o.exports=function(s,l,c,f){try{return f?l(u(c)[0],c[1]):l(c)}catch(p){var d=s.return;throw d!==void 0&&u(d.call(s)),p}}},"9bf2":function(o,a,i){var u=i("83ab"),s=i("0cfb"),l=i("825a"),c=i("c04e"),f=Object.defineProperty;a.f=u?f:function(p,m,h){if(l(p),m=c(m,!0),l(h),s)try{return f(p,m,h)}catch{}if("get"in h||"set"in h)throw TypeError("Accessors not supported");return"value"in h&&(p[m]=h.value),p}},"9ed3":function(o,a,i){var u=i("ae93").IteratorPrototype,s=i("7c73"),l=i("5c6c"),c=i("d44e"),f=i("3f8c"),d=function(){return this};o.exports=function(p,m,h){var v=m+" Iterator";return p.prototype=s(u,{next:l(1,h)}),c(p,v,!1,!0),f[v]=d,p}},"9f7f":function(o,a,i){var u=i("d039");function s(l,c){return RegExp(l,c)}a.UNSUPPORTED_Y=u(function(){var l=s("a","y");return l.lastIndex=2,l.exec("abcd")!=null}),a.BROKEN_CARET=u(function(){var l=s("^r","gy");return l.lastIndex=2,l.exec("str")!=null})},a2bf:function(o,a,i){var u=i("e8b5"),s=i("50c4"),l=i("0366"),c=function(f,d,p,m,h,v,y,g){for(var w=h,E=0,x=y?l(y,g,3):!1,S;E<m;){if(E in p){if(S=x?x(p[E],E,d):p[E],v>0&&u(S))w=c(f,d,S,s(S.length),w,v-1)-1;else{if(w>=9007199254740991)throw TypeError("Exceed the acceptable array length");f[w]=S}w++}E++}return w};o.exports=c},a352:function(o,a){o.exports=r},a434:function(o,a,i){var u=i("23e7"),s=i("23cb"),l=i("a691"),c=i("50c4"),f=i("7b0b"),d=i("65f0"),p=i("8418"),m=i("1dde"),h=i("ae40"),v=m("splice"),y=h("splice",{ACCESSORS:!0,0:0,1:2}),g=Math.max,w=Math.min,E=9007199254740991,x="Maximum allowed length exceeded";u({target:"Array",proto:!0,forced:!v||!y},{splice:function(C,T){var A=f(this),k=c(A.length),M=s(C,k),H=arguments.length,N,j,G,V,J,rt;if(H===0?N=j=0:H===1?(N=0,j=k-M):(N=H-2,j=w(g(l(T),0),k-M)),k+N-j>E)throw TypeError(x);for(G=d(A,j),V=0;V<j;V++)J=M+V,J in A&&p(G,V,A[J]);if(G.length=j,N<j){for(V=M;V<k-j;V++)J=V+j,rt=V+N,J in A?A[rt]=A[J]:delete A[rt];for(V=k;V>k-j+N;V--)delete A[V-1]}else if(N>j)for(V=k-j;V>M;V--)J=V+j-1,rt=V+N-1,J in A?A[rt]=A[J]:delete A[rt];for(V=0;V<N;V++)A[V+M]=arguments[V+2];return A.length=k-j+N,G}})},a4d3:function(o,a,i){var u=i("23e7"),s=i("da84"),l=i("d066"),c=i("c430"),f=i("83ab"),d=i("4930"),p=i("fdbf"),m=i("d039"),h=i("5135"),v=i("e8b5"),y=i("861d"),g=i("825a"),w=i("7b0b"),E=i("fc6a"),x=i("c04e"),S=i("5c6c"),C=i("7c73"),T=i("df75"),A=i("241c"),k=i("057f"),M=i("7418"),H=i("06cf"),N=i("9bf2"),j=i("d1e7"),G=i("9112"),V=i("6eeb"),J=i("5692"),rt=i("f772"),it=i("d012"),W=i("90e3"),O=i("b622"),B=i("e538"),I=i("746f"),Y=i("d44e"),et=i("69f3"),X=i("b727").forEach,ot=rt("hidden"),mt="Symbol",bt="prototype",Pt=O("toPrimitive"),tt=et.set,Mt=et.getterFor(mt),Dt=Object[bt],ht=s.Symbol,kt=l("JSON","stringify"),ye=H.f,zt=N.f,he=k.f,Te=j.f,ke=J("symbols"),Ut=J("op-symbols"),bn=J("string-to-symbol-registry"),Jn=J("symbol-to-string-registry"),lr=J("wks"),Do=s.QObject,Qr=!Do||!Do[bt]||!Do[bt].findChild,Qn=f&&m(function(){return C(zt({},"a",{get:function(){return zt(this,"a",{value:7}).a}})).a!=7})?function(Bt,Et,Tt){var Jt=ye(Dt,Et);Jt&&delete Dt[Et],zt(Bt,Et,Tt),Jt&&Bt!==Dt&&zt(Dt,Et,Jt)}:zt,cr=function(Bt,Et){var Tt=ke[Bt]=C(ht[bt]);return tt(Tt,{type:mt,tag:Bt,description:Et}),f||(Tt.description=Et),Tt},K=p?function(Bt){return typeof Bt=="symbol"}:function(Bt){return Object(Bt)instanceof ht},U=function(Et,Tt,Jt){Et===Dt&&U(Ut,Tt,Jt),g(Et);var Wt=x(Tt,!0);return g(Jt),h(ke,Wt)?(Jt.enumerable?(h(Et,ot)&&Et[ot][Wt]&&(Et[ot][Wt]=!1),Jt=C(Jt,{enumerable:S(0,!1)})):(h(Et,ot)||zt(Et,ot,S(1,{})),Et[ot][Wt]=!0),Qn(Et,Wt,Jt)):zt(Et,Wt,Jt)},Z=function(Et,Tt){g(Et);var Jt=E(Tt),Wt=T(Jt).concat(ae(Jt));return X(Wt,function(je){(!f||gt.call(Jt,je))&&U(Et,je,Jt[je])}),Et},nt=function(Et,Tt){return Tt===void 0?C(Et):Z(C(Et),Tt)},gt=function(Et){var Tt=x(Et,!0),Jt=Te.call(this,Tt);return this===Dt&&h(ke,Tt)&&!h(Ut,Tt)?!1:Jt||!h(this,Tt)||!h(ke,Tt)||h(this,ot)&&this[ot][Tt]?Jt:!0},wt=function(Et,Tt){var Jt=E(Et),Wt=x(Tt,!0);if(!(Jt===Dt&&h(ke,Wt)&&!h(Ut,Wt))){var je=ye(Jt,Wt);return je&&h(ke,Wt)&&!(h(Jt,ot)&&Jt[ot][Wt])&&(je.enumerable=!0),je}},Ft=function(Et){var Tt=he(E(Et)),Jt=[];return X(Tt,function(Wt){!h(ke,Wt)&&!h(it,Wt)&&Jt.push(Wt)}),Jt},ae=function(Et){var Tt=Et===Dt,Jt=he(Tt?Ut:E(Et)),Wt=[];return X(Jt,function(je){h(ke,je)&&(!Tt||h(Dt,je))&&Wt.push(ke[je])}),Wt};if(d||(ht=function(){if(this instanceof ht)throw TypeError("Symbol is not a constructor");var Et=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),Tt=W(Et),Jt=function(Wt){this===Dt&&Jt.call(Ut,Wt),h(this,ot)&&h(this[ot],Tt)&&(this[ot][Tt]=!1),Qn(this,Tt,S(1,Wt))};return f&&Qr&&Qn(Dt,Tt,{configurable:!0,set:Jt}),cr(Tt,Et)},V(ht[bt],"toString",function(){return Mt(this).tag}),V(ht,"withoutSetter",function(Bt){return cr(W(Bt),Bt)}),j.f=gt,N.f=U,H.f=wt,A.f=k.f=Ft,M.f=ae,B.f=function(Bt){return cr(O(Bt),Bt)},f&&(zt(ht[bt],"description",{configurable:!0,get:function(){return Mt(this).description}}),c||V(Dt,"propertyIsEnumerable",gt,{unsafe:!0}))),u({global:!0,wrap:!0,forced:!d,sham:!d},{Symbol:ht}),X(T(lr),function(Bt){I(Bt)}),u({target:mt,stat:!0,forced:!d},{for:function(Bt){var Et=String(Bt);if(h(bn,Et))return bn[Et];var Tt=ht(Et);return bn[Et]=Tt,Jn[Tt]=Et,Tt},keyFor:function(Et){if(!K(Et))throw TypeError(Et+" is not a symbol");if(h(Jn,Et))return Jn[Et]},useSetter:function(){Qr=!0},useSimple:function(){Qr=!1}}),u({target:"Object",stat:!0,forced:!d,sham:!f},{create:nt,defineProperty:U,defineProperties:Z,getOwnPropertyDescriptor:wt}),u({target:"Object",stat:!0,forced:!d},{getOwnPropertyNames:Ft,getOwnPropertySymbols:ae}),u({target:"Object",stat:!0,forced:m(function(){M.f(1)})},{getOwnPropertySymbols:function(Et){return M.f(w(Et))}}),kt){var xe=!d||m(function(){var Bt=ht();return kt([Bt])!="[null]"||kt({a:Bt})!="{}"||kt(Object(Bt))!="{}"});u({target:"JSON",stat:!0,forced:xe},{stringify:function(Et,Tt,Jt){for(var Wt=[Et],je=1,$r;arguments.length>je;)Wt.push(arguments[je++]);if($r=Tt,!(!y(Tt)&&Et===void 0||K(Et)))return v(Tt)||(Tt=function(qr,to){if(typeof $r=="function"&&(to=$r.call(this,qr,to)),!K(to))return to}),Wt[1]=Tt,kt.apply(null,Wt)}})}ht[bt][Pt]||G(ht[bt],Pt,ht[bt].valueOf),Y(ht,mt),it[ot]=!0},a630:function(o,a,i){var u=i("23e7"),s=i("4df4"),l=i("1c7e"),c=!l(function(f){Array.from(f)});u({target:"Array",stat:!0,forced:c},{from:s})},a640:function(o,a,i){var u=i("d039");o.exports=function(s,l){var c=[][s];return!!c&&u(function(){c.call(null,l||function(){throw 1},1)})}},a691:function(o,a){var i=Math.ceil,u=Math.floor;o.exports=function(s){return isNaN(s=+s)?0:(s>0?u:i)(s)}},ab13:function(o,a,i){var u=i("b622"),s=u("match");o.exports=function(l){var c=/./;try{"/./"[l](c)}catch{try{return c[s]=!1,"/./"[l](c)}catch{}}return!1}},ac1f:function(o,a,i){var u=i("23e7"),s=i("9263");u({target:"RegExp",proto:!0,forced:/./.exec!==s},{exec:s})},ad6d:function(o,a,i){var u=i("825a");o.exports=function(){var s=u(this),l="";return s.global&&(l+="g"),s.ignoreCase&&(l+="i"),s.multiline&&(l+="m"),s.dotAll&&(l+="s"),s.unicode&&(l+="u"),s.sticky&&(l+="y"),l}},ae40:function(o,a,i){var u=i("83ab"),s=i("d039"),l=i("5135"),c=Object.defineProperty,f={},d=function(p){throw p};o.exports=function(p,m){if(l(f,p))return f[p];m||(m={});var h=[][p],v=l(m,"ACCESSORS")?m.ACCESSORS:!1,y=l(m,0)?m[0]:d,g=l(m,1)?m[1]:void 0;return f[p]=!!h&&!s(function(){if(v&&!u)return!0;var w={length:-1};v?c(w,1,{enumerable:!0,get:d}):w[1]=1,h.call(w,y,g)})}},ae93:function(o,a,i){var u=i("e163"),s=i("9112"),l=i("5135"),c=i("b622"),f=i("c430"),d=c("iterator"),p=!1,m=function(){return this},h,v,y;[].keys&&(y=[].keys(),"next"in y?(v=u(u(y)),v!==Object.prototype&&(h=v)):p=!0),h==null&&(h={}),!f&&!l(h,d)&&s(h,d,m),o.exports={IteratorPrototype:h,BUGGY_SAFARI_ITERATORS:p}},b041:function(o,a,i){var u=i("00ee"),s=i("f5df");o.exports=u?{}.toString:function(){return"[object "+s(this)+"]"}},b0c0:function(o,a,i){var u=i("83ab"),s=i("9bf2").f,l=Function.prototype,c=l.toString,f=/^\s*function ([^ (]*)/,d="name";u&&!(d in l)&&s(l,d,{configurable:!0,get:function(){try{return c.call(this).match(f)[1]}catch{return""}}})},b622:function(o,a,i){var u=i("da84"),s=i("5692"),l=i("5135"),c=i("90e3"),f=i("4930"),d=i("fdbf"),p=s("wks"),m=u.Symbol,h=d?m:m&&m.withoutSetter||c;o.exports=function(v){return l(p,v)||(f&&l(m,v)?p[v]=m[v]:p[v]=h("Symbol."+v)),p[v]}},b64b:function(o,a,i){var u=i("23e7"),s=i("7b0b"),l=i("df75"),c=i("d039"),f=c(function(){l(1)});u({target:"Object",stat:!0,forced:f},{keys:function(p){return l(s(p))}})},b727:function(o,a,i){var u=i("0366"),s=i("44ad"),l=i("7b0b"),c=i("50c4"),f=i("65f0"),d=[].push,p=function(m){var h=m==1,v=m==2,y=m==3,g=m==4,w=m==6,E=m==5||w;return function(x,S,C,T){for(var A=l(x),k=s(A),M=u(S,C,3),H=c(k.length),N=0,j=T||f,G=h?j(x,H):v?j(x,0):void 0,V,J;H>N;N++)if((E||N in k)&&(V=k[N],J=M(V,N,A),m)){if(h)G[N]=J;else if(J)switch(m){case 3:return!0;case 5:return V;case 6:return N;case 2:d.call(G,V)}else if(g)return!1}return w?-1:y||g?g:G}};o.exports={forEach:p(0),map:p(1),filter:p(2),some:p(3),every:p(4),find:p(5),findIndex:p(6)}},c04e:function(o,a,i){var u=i("861d");o.exports=function(s,l){if(!u(s))return s;var c,f;if(l&&typeof(c=s.toString)=="function"&&!u(f=c.call(s))||typeof(c=s.valueOf)=="function"&&!u(f=c.call(s))||!l&&typeof(c=s.toString)=="function"&&!u(f=c.call(s)))return f;throw TypeError("Can't convert object to primitive value")}},c430:function(o,a){o.exports=!1},c6b6:function(o,a){var i={}.toString;o.exports=function(u){return i.call(u).slice(8,-1)}},c6cd:function(o,a,i){var u=i("da84"),s=i("ce4e"),l="__core-js_shared__",c=u[l]||s(l,{});o.exports=c},c740:function(o,a,i){var u=i("23e7"),s=i("b727").findIndex,l=i("44d2"),c=i("ae40"),f="findIndex",d=!0,p=c(f);f in[]&&Array(1)[f](function(){d=!1}),u({target:"Array",proto:!0,forced:d||!p},{findIndex:function(h){return s(this,h,arguments.length>1?arguments[1]:void 0)}}),l(f)},c8ba:function(o,a){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch{typeof window=="object"&&(i=window)}o.exports=i},c975:function(o,a,i){var u=i("23e7"),s=i("4d64").indexOf,l=i("a640"),c=i("ae40"),f=[].indexOf,d=!!f&&1/[1].indexOf(1,-0)<0,p=l("indexOf"),m=c("indexOf",{ACCESSORS:!0,1:0});u({target:"Array",proto:!0,forced:d||!p||!m},{indexOf:function(v){return d?f.apply(this,arguments)||0:s(this,v,arguments.length>1?arguments[1]:void 0)}})},ca84:function(o,a,i){var u=i("5135"),s=i("fc6a"),l=i("4d64").indexOf,c=i("d012");o.exports=function(f,d){var p=s(f),m=0,h=[],v;for(v in p)!u(c,v)&&u(p,v)&&h.push(v);for(;d.length>m;)u(p,v=d[m++])&&(~l(h,v)||h.push(v));return h}},caad:function(o,a,i){var u=i("23e7"),s=i("4d64").includes,l=i("44d2"),c=i("ae40"),f=c("indexOf",{ACCESSORS:!0,1:0});u({target:"Array",proto:!0,forced:!f},{includes:function(p){return s(this,p,arguments.length>1?arguments[1]:void 0)}}),l("includes")},cc12:function(o,a,i){var u=i("da84"),s=i("861d"),l=u.document,c=s(l)&&s(l.createElement);o.exports=function(f){return c?l.createElement(f):{}}},ce4e:function(o,a,i){var u=i("da84"),s=i("9112");o.exports=function(l,c){try{s(u,l,c)}catch{u[l]=c}return c}},d012:function(o,a){o.exports={}},d039:function(o,a){o.exports=function(i){try{return!!i()}catch{return!0}}},d066:function(o,a,i){var u=i("428f"),s=i("da84"),l=function(c){return typeof c=="function"?c:void 0};o.exports=function(c,f){return arguments.length<2?l(u[c])||l(s[c]):u[c]&&u[c][f]||s[c]&&s[c][f]}},d1e7:function(o,a,i){var u={}.propertyIsEnumerable,s=Object.getOwnPropertyDescriptor,l=s&&!u.call({1:2},1);a.f=l?function(f){var d=s(this,f);return!!d&&d.enumerable}:u},d28b:function(o,a,i){var u=i("746f");u("iterator")},d2bb:function(o,a,i){var u=i("825a"),s=i("3bbe");o.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var l=!1,c={},f;try{f=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,f.call(c,[]),l=c instanceof Array}catch{}return function(p,m){return u(p),s(m),l?f.call(p,m):p.__proto__=m,p}}():void 0)},d3b7:function(o,a,i){var u=i("00ee"),s=i("6eeb"),l=i("b041");u||s(Object.prototype,"toString",l,{unsafe:!0})},d44e:function(o,a,i){var u=i("9bf2").f,s=i("5135"),l=i("b622"),c=l("toStringTag");o.exports=function(f,d,p){f&&!s(f=p?f:f.prototype,c)&&u(f,c,{configurable:!0,value:d})}},d58f:function(o,a,i){var u=i("1c0b"),s=i("7b0b"),l=i("44ad"),c=i("50c4"),f=function(d){return function(p,m,h,v){u(m);var y=s(p),g=l(y),w=c(y.length),E=d?w-1:0,x=d?-1:1;if(h<2)for(;;){if(E in g){v=g[E],E+=x;break}if(E+=x,d?E<0:w<=E)throw TypeError("Reduce of empty array with no initial value")}for(;d?E>=0:w>E;E+=x)E in g&&(v=m(v,g[E],E,y));return v}};o.exports={left:f(!1),right:f(!0)}},d784:function(o,a,i){i("ac1f");var u=i("6eeb"),s=i("d039"),l=i("b622"),c=i("9263"),f=i("9112"),d=l("species"),p=!s(function(){var g=/./;return g.exec=function(){var w=[];return w.groups={a:"7"},w},"".replace(g,"$<a>")!=="7"}),m=function(){return"a".replace(/./,"$0")==="$0"}(),h=l("replace"),v=function(){return/./[h]?/./[h]("a","$0")==="":!1}(),y=!s(function(){var g=/(?:)/,w=g.exec;g.exec=function(){return w.apply(this,arguments)};var E="ab".split(g);return E.length!==2||E[0]!=="a"||E[1]!=="b"});o.exports=function(g,w,E,x){var S=l(g),C=!s(function(){var N={};return N[S]=function(){return 7},""[g](N)!=7}),T=C&&!s(function(){var N=!1,j=/a/;return g==="split"&&(j={},j.constructor={},j.constructor[d]=function(){return j},j.flags="",j[S]=/./[S]),j.exec=function(){return N=!0,null},j[S](""),!N});if(!C||!T||g==="replace"&&!(p&&m&&!v)||g==="split"&&!y){var A=/./[S],k=E(S,""[g],function(N,j,G,V,J){return j.exec===c?C&&!J?{done:!0,value:A.call(j,G,V)}:{done:!0,value:N.call(G,j,V)}:{done:!1}},{REPLACE_KEEPS_$0:m,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:v}),M=k[0],H=k[1];u(String.prototype,g,M),u(RegExp.prototype,S,w==2?function(N,j){return H.call(N,this,j)}:function(N){return H.call(N,this)})}x&&f(RegExp.prototype[S],"sham",!0)}},d81d:function(o,a,i){var u=i("23e7"),s=i("b727").map,l=i("1dde"),c=i("ae40"),f=l("map"),d=c("map");u({target:"Array",proto:!0,forced:!f||!d},{map:function(m){return s(this,m,arguments.length>1?arguments[1]:void 0)}})},da84:function(o,a,i){(function(u){var s=function(l){return l&&l.Math==Math&&l};o.exports=s(typeof globalThis=="object"&&globalThis)||s(typeof window=="object"&&window)||s(typeof self=="object"&&self)||s(typeof u=="object"&&u)||Function("return this")()}).call(this,i("c8ba"))},dbb4:function(o,a,i){var u=i("23e7"),s=i("83ab"),l=i("56ef"),c=i("fc6a"),f=i("06cf"),d=i("8418");u({target:"Object",stat:!0,sham:!s},{getOwnPropertyDescriptors:function(m){for(var h=c(m),v=f.f,y=l(h),g={},w=0,E,x;y.length>w;)x=v(h,E=y[w++]),x!==void 0&&d(g,E,x);return g}})},dbf1:function(o,a,i){(function(u){i.d(a,"a",function(){return l});function s(){return typeof window<"u"?window.console:u.console}var l=s()}).call(this,i("c8ba"))},ddb0:function(o,a,i){var u=i("da84"),s=i("fdbc"),l=i("e260"),c=i("9112"),f=i("b622"),d=f("iterator"),p=f("toStringTag"),m=l.values;for(var h in s){var v=u[h],y=v&&v.prototype;if(y){if(y[d]!==m)try{c(y,d,m)}catch{y[d]=m}if(y[p]||c(y,p,h),s[h]){for(var g in l)if(y[g]!==l[g])try{c(y,g,l[g])}catch{y[g]=l[g]}}}}},df75:function(o,a,i){var u=i("ca84"),s=i("7839");o.exports=Object.keys||function(c){return u(c,s)}},e01a:function(o,a,i){var u=i("23e7"),s=i("83ab"),l=i("da84"),c=i("5135"),f=i("861d"),d=i("9bf2").f,p=i("e893"),m=l.Symbol;if(s&&typeof m=="function"&&(!("description"in m.prototype)||m().description!==void 0)){var h={},v=function(){var S=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),C=this instanceof v?new m(S):S===void 0?m():m(S);return S===""&&(h[C]=!0),C};p(v,m);var y=v.prototype=m.prototype;y.constructor=v;var g=y.toString,w=String(m("test"))=="Symbol(test)",E=/^Symbol\((.*)\)[^)]+$/;d(y,"description",{configurable:!0,get:function(){var S=f(this)?this.valueOf():this,C=g.call(S);if(c(h,S))return"";var T=w?C.slice(7,-1):C.replace(E,"$1");return T===""?void 0:T}}),u({global:!0,forced:!0},{Symbol:v})}},e163:function(o,a,i){var u=i("5135"),s=i("7b0b"),l=i("f772"),c=i("e177"),f=l("IE_PROTO"),d=Object.prototype;o.exports=c?Object.getPrototypeOf:function(p){return p=s(p),u(p,f)?p[f]:typeof p.constructor=="function"&&p instanceof p.constructor?p.constructor.prototype:p instanceof Object?d:null}},e177:function(o,a,i){var u=i("d039");o.exports=!u(function(){function s(){}return s.prototype.constructor=null,Object.getPrototypeOf(new s)!==s.prototype})},e260:function(o,a,i){var u=i("fc6a"),s=i("44d2"),l=i("3f8c"),c=i("69f3"),f=i("7dd0"),d="Array Iterator",p=c.set,m=c.getterFor(d);o.exports=f(Array,"Array",function(h,v){p(this,{type:d,target:u(h),index:0,kind:v})},function(){var h=m(this),v=h.target,y=h.kind,g=h.index++;return!v||g>=v.length?(h.target=void 0,{value:void 0,done:!0}):y=="keys"?{value:g,done:!1}:y=="values"?{value:v[g],done:!1}:{value:[g,v[g]],done:!1}},"values"),l.Arguments=l.Array,s("keys"),s("values"),s("entries")},e439:function(o,a,i){var u=i("23e7"),s=i("d039"),l=i("fc6a"),c=i("06cf").f,f=i("83ab"),d=s(function(){c(1)}),p=!f||d;u({target:"Object",stat:!0,forced:p,sham:!f},{getOwnPropertyDescriptor:function(h,v){return c(l(h),v)}})},e538:function(o,a,i){var u=i("b622");a.f=u},e893:function(o,a,i){var u=i("5135"),s=i("56ef"),l=i("06cf"),c=i("9bf2");o.exports=function(f,d){for(var p=s(d),m=c.f,h=l.f,v=0;v<p.length;v++){var y=p[v];u(f,y)||m(f,y,h(d,y))}}},e8b5:function(o,a,i){var u=i("c6b6");o.exports=Array.isArray||function(l){return u(l)=="Array"}},e95a:function(o,a,i){var u=i("b622"),s=i("3f8c"),l=u("iterator"),c=Array.prototype;o.exports=function(f){return f!==void 0&&(s.Array===f||c[l]===f)}},f5df:function(o,a,i){var u=i("00ee"),s=i("c6b6"),l=i("b622"),c=l("toStringTag"),f=s(function(){return arguments}())=="Arguments",d=function(p,m){try{return p[m]}catch{}};o.exports=u?s:function(p){var m,h,v;return p===void 0?"Undefined":p===null?"Null":typeof(h=d(m=Object(p),c))=="string"?h:f?s(m):(v=s(m))=="Object"&&typeof m.callee=="function"?"Arguments":v}},f772:function(o,a,i){var u=i("5692"),s=i("90e3"),l=u("keys");o.exports=function(c){return l[c]||(l[c]=s(c))}},fb15:function(o,a,i){if(i.r(a),typeof window<"u"){var u=window.document.currentScript;{var s=i("8875");u=s(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:s})}var l=u&&u.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);l&&(i.p=l[1])}i("99af"),i("4de4"),i("4160"),i("c975"),i("d81d"),i("a434"),i("159b"),i("a4d3"),i("e439"),i("dbb4"),i("b64b");function c(K,U,Z){return U in K?Object.defineProperty(K,U,{value:Z,enumerable:!0,configurable:!0,writable:!0}):K[U]=Z,K}function f(K,U){var Z=Object.keys(K);if(Object.getOwnPropertySymbols){var nt=Object.getOwnPropertySymbols(K);U&&(nt=nt.filter(function(gt){return Object.getOwnPropertyDescriptor(K,gt).enumerable})),Z.push.apply(Z,nt)}return Z}function d(K){for(var U=1;U<arguments.length;U++){var Z=arguments[U]!=null?arguments[U]:{};U%2?f(Object(Z),!0).forEach(function(nt){c(K,nt,Z[nt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(K,Object.getOwnPropertyDescriptors(Z)):f(Object(Z)).forEach(function(nt){Object.defineProperty(K,nt,Object.getOwnPropertyDescriptor(Z,nt))})}return K}function p(K){if(Array.isArray(K))return K}i("e01a"),i("d28b"),i("e260"),i("d3b7"),i("3ca3"),i("ddb0");function m(K,U){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(K)))){var Z=[],nt=!0,gt=!1,wt=void 0;try{for(var Ft=K[Symbol.iterator](),ae;!(nt=(ae=Ft.next()).done)&&(Z.push(ae.value),!(U&&Z.length===U));nt=!0);}catch(xe){gt=!0,wt=xe}finally{try{!nt&&Ft.return!=null&&Ft.return()}finally{if(gt)throw wt}}return Z}}i("a630"),i("fb6a"),i("b0c0"),i("25f0");function h(K,U){(U==null||U>K.length)&&(U=K.length);for(var Z=0,nt=new Array(U);Z<U;Z++)nt[Z]=K[Z];return nt}function v(K,U){if(K){if(typeof K=="string")return h(K,U);var Z=Object.prototype.toString.call(K).slice(8,-1);if(Z==="Object"&&K.constructor&&(Z=K.constructor.name),Z==="Map"||Z==="Set")return Array.from(K);if(Z==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Z))return h(K,U)}}function y(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
9
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function g(K,U){return p(K)||m(K,U)||v(K,U)||y()}function w(K){if(Array.isArray(K))return h(K)}function E(K){if(typeof Symbol<"u"&&Symbol.iterator in Object(K))return Array.from(K)}function x(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
10
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function S(K){return w(K)||E(K)||v(K)||x()}var C=i("a352"),T=i.n(C);function A(K){K.parentElement!==null&&K.parentElement.removeChild(K)}function k(K,U,Z){var nt=Z===0?K.children[0]:K.children[Z-1].nextSibling;K.insertBefore(U,nt)}var M=i("dbf1");i("13d5"),i("4fad"),i("ac1f"),i("5319");function H(K){var U=Object.create(null);return function(nt){var gt=U[nt];return gt||(U[nt]=K(nt))}}var N=/-(\w)/g,j=H(function(K){return K.replace(N,function(U,Z){return Z.toUpperCase()})});i("5db7"),i("73d9");var G=["Start","Add","Remove","Update","End"],V=["Choose","Unchoose","Sort","Filter","Clone"],J=["Move"],rt=[J,G,V].flatMap(function(K){return K}).map(function(K){return"on".concat(K)}),it={manage:J,manageAndEmit:G,emit:V};function W(K){return rt.indexOf(K)!==-1}i("caad"),i("2ca0");var O=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function B(K){return O.includes(K)}function I(K){return["transition-group","TransitionGroup"].includes(K)}function Y(K){return["id","class","role","style"].includes(K)||K.startsWith("data-")||K.startsWith("aria-")||K.startsWith("on")}function et(K){return K.reduce(function(U,Z){var nt=g(Z,2),gt=nt[0],wt=nt[1];return U[gt]=wt,U},{})}function X(K){var U=K.$attrs,Z=K.componentData,nt=Z===void 0?{}:Z,gt=et(Object.entries(U).filter(function(wt){var Ft=g(wt,2),ae=Ft[0];return Ft[1],Y(ae)}));return d(d({},gt),nt)}function ot(K){var U=K.$attrs,Z=K.callBackBuilder,nt=et(mt(U));Object.entries(Z).forEach(function(wt){var Ft=g(wt,2),ae=Ft[0],xe=Ft[1];it[ae].forEach(function(Bt){nt["on".concat(Bt)]=xe(Bt)})});var gt="[data-draggable]".concat(nt.draggable||"");return d(d({},nt),{},{draggable:gt})}function mt(K){return Object.entries(K).filter(function(U){var Z=g(U,2),nt=Z[0];return Z[1],!Y(nt)}).map(function(U){var Z=g(U,2),nt=Z[0],gt=Z[1];return[j(nt),gt]}).filter(function(U){var Z=g(U,2),nt=Z[0];return Z[1],!W(nt)})}i("c740");function bt(K,U){if(!(K instanceof U))throw new TypeError("Cannot call a class as a function")}function Pt(K,U){for(var Z=0;Z<U.length;Z++){var nt=U[Z];nt.enumerable=nt.enumerable||!1,nt.configurable=!0,"value"in nt&&(nt.writable=!0),Object.defineProperty(K,nt.key,nt)}}function tt(K,U,Z){return U&&Pt(K.prototype,U),K}var Mt=function(U){var Z=U.el;return Z},Dt=function(U,Z){return U.__draggable_context=Z},ht=function(U){return U.__draggable_context},kt=function(){function K(U){var Z=U.nodes,nt=Z.header,gt=Z.default,wt=Z.footer,Ft=U.root,ae=U.realList;bt(this,K),this.defaultNodes=gt,this.children=[].concat(S(nt),S(gt),S(wt)),this.externalComponent=Ft.externalComponent,this.rootTransition=Ft.transition,this.tag=Ft.tag,this.realList=ae}return tt(K,[{key:"render",value:function(Z,nt){var gt=this.tag,wt=this.children,Ft=this._isRootComponent,ae=Ft?{default:function(){return wt}}:wt;return Z(gt,nt,ae)}},{key:"updated",value:function(){var Z=this.defaultNodes,nt=this.realList;Z.forEach(function(gt,wt){Dt(Mt(gt),{element:nt[wt],index:wt})})}},{key:"getUnderlyingVm",value:function(Z){return ht(Z)}},{key:"getVmIndexFromDomIndex",value:function(Z,nt){var gt=this.defaultNodes,wt=gt.length,Ft=nt.children,ae=Ft.item(Z);if(ae===null)return wt;var xe=ht(ae);if(xe)return xe.index;if(wt===0)return 0;var Bt=Mt(gt[0]),Et=S(Ft).findIndex(function(Tt){return Tt===Bt});return Z<Et?0:wt}},{key:"_isRootComponent",get:function(){return this.externalComponent||this.rootTransition}}]),K}(),ye=i("8bbf");function zt(K,U){var Z=K[U];return Z?Z():[]}function he(K){var U=K.$slots,Z=K.realList,nt=K.getKey,gt=Z||[],wt=["header","footer"].map(function(Tt){return zt(U,Tt)}),Ft=g(wt,2),ae=Ft[0],xe=Ft[1],Bt=U.item;if(!Bt)throw new Error("draggable element must have an item slot");var Et=gt.flatMap(function(Tt,Jt){return Bt({element:Tt,index:Jt}).map(function(Wt){return Wt.key=nt(Tt),Wt.props=d(d({},Wt.props||{}),{},{"data-draggable":!0}),Wt})});if(Et.length!==gt.length)throw new Error("Item slot must have only one child");return{header:ae,footer:xe,default:Et}}function Te(K){var U=I(K),Z=!B(K)&&!U;return{transition:U,externalComponent:Z,tag:Z?Object(ye.resolveComponent)(K):U?ye.TransitionGroup:K}}function ke(K){var U=K.$slots,Z=K.tag,nt=K.realList,gt=K.getKey,wt=he({$slots:U,realList:nt,getKey:gt}),Ft=Te(Z);return new kt({nodes:wt,root:Ft,realList:nt})}function Ut(K,U){var Z=this;Object(ye.nextTick)(function(){return Z.$emit(K.toLowerCase(),U)})}function bn(K){var U=this;return function(Z,nt){if(U.realList!==null)return U["onDrag".concat(K)](Z,nt)}}function Jn(K){var U=this,Z=bn.call(this,K);return function(nt,gt){Z.call(U,nt,gt),Ut.call(U,K,nt)}}var lr=null,Do={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:function(U){return U}},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},Qr=["update:modelValue","change"].concat(S([].concat(S(it.manageAndEmit),S(it.emit)).map(function(K){return K.toLowerCase()}))),Qn=Object(ye.defineComponent)({name:"draggable",inheritAttrs:!1,props:Do,emits:Qr,data:function(){return{error:!1}},render:function(){try{this.error=!1;var U=this.$slots,Z=this.$attrs,nt=this.tag,gt=this.componentData,wt=this.realList,Ft=this.getKey,ae=ke({$slots:U,tag:nt,realList:wt,getKey:Ft});this.componentStructure=ae;var xe=X({$attrs:Z,componentData:gt});return ae.render(ye.h,xe)}catch(Bt){return this.error=!0,Object(ye.h)("pre",{style:{color:"red"}},Bt.stack)}},created:function(){this.list!==null&&this.modelValue!==null&&M.a.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted:function(){var U=this;if(!this.error){var Z=this.$attrs,nt=this.$el,gt=this.componentStructure;gt.updated();var wt=ot({$attrs:Z,callBackBuilder:{manageAndEmit:function(xe){return Jn.call(U,xe)},emit:function(xe){return Ut.bind(U,xe)},manage:function(xe){return bn.call(U,xe)}}}),Ft=nt.nodeType===1?nt:nt.parentElement;this._sortable=new T.a(Ft,wt),this.targetDomElement=Ft,Ft.__draggable_component__=this}},updated:function(){this.componentStructure.updated()},beforeUnmount:function(){this._sortable!==void 0&&this._sortable.destroy()},computed:{realList:function(){var U=this.list;return U||this.modelValue},getKey:function(){var U=this.itemKey;return typeof U=="function"?U:function(Z){return Z[U]}}},watch:{$attrs:{handler:function(U){var Z=this._sortable;Z&&mt(U).forEach(function(nt){var gt=g(nt,2),wt=gt[0],Ft=gt[1];Z.option(wt,Ft)})},deep:!0}},methods:{getUnderlyingVm:function(U){return this.componentStructure.getUnderlyingVm(U)||null},getUnderlyingPotencialDraggableComponent:function(U){return U.__draggable_component__},emitChanges:function(U){var Z=this;Object(ye.nextTick)(function(){return Z.$emit("change",U)})},alterList:function(U){if(this.list){U(this.list);return}var Z=S(this.modelValue);U(Z),this.$emit("update:modelValue",Z)},spliceList:function(){var U=arguments,Z=function(gt){return gt.splice.apply(gt,S(U))};this.alterList(Z)},updatePosition:function(U,Z){var nt=function(wt){return wt.splice(Z,0,wt.splice(U,1)[0])};this.alterList(nt)},getRelatedContextFromMoveEvent:function(U){var Z=U.to,nt=U.related,gt=this.getUnderlyingPotencialDraggableComponent(Z);if(!gt)return{component:gt};var wt=gt.realList,Ft={list:wt,component:gt};if(Z!==nt&&wt){var ae=gt.getUnderlyingVm(nt)||{};return d(d({},ae),Ft)}return Ft},getVmIndexFromDomIndex:function(U){return this.componentStructure.getVmIndexFromDomIndex(U,this.targetDomElement)},onDragStart:function(U){this.context=this.getUnderlyingVm(U.item),U.item._underlying_vm_=this.clone(this.context.element),lr=U.item},onDragAdd:function(U){var Z=U.item._underlying_vm_;if(Z!==void 0){A(U.item);var nt=this.getVmIndexFromDomIndex(U.newIndex);this.spliceList(nt,0,Z);var gt={element:Z,newIndex:nt};this.emitChanges({added:gt})}},onDragRemove:function(U){if(k(this.$el,U.item,U.oldIndex),U.pullMode==="clone"){A(U.clone);return}var Z=this.context,nt=Z.index,gt=Z.element;this.spliceList(nt,1);var wt={element:gt,oldIndex:nt};this.emitChanges({removed:wt})},onDragUpdate:function(U){A(U.item),k(U.from,U.item,U.oldIndex);var Z=this.context.index,nt=this.getVmIndexFromDomIndex(U.newIndex);this.updatePosition(Z,nt);var gt={element:this.context.element,oldIndex:Z,newIndex:nt};this.emitChanges({moved:gt})},computeFutureIndex:function(U,Z){if(!U.element)return 0;var nt=S(Z.to.children).filter(function(ae){return ae.style.display!=="none"}),gt=nt.indexOf(Z.related),wt=U.component.getVmIndexFromDomIndex(gt),Ft=nt.indexOf(lr)!==-1;return Ft||!Z.willInsertAfter?wt:wt+1},onDragMove:function(U,Z){var nt=this.move,gt=this.realList;if(!nt||!gt)return!0;var wt=this.getRelatedContextFromMoveEvent(U),Ft=this.computeFutureIndex(wt,U),ae=d(d({},this.context),{},{futureIndex:Ft}),xe=d(d({},U),{},{relatedContext:wt,draggedContext:ae});return nt(xe,Z)},onDragEnd:function(){lr=null}}}),cr=Qn;a.default=cr},fb6a:function(o,a,i){var u=i("23e7"),s=i("861d"),l=i("e8b5"),c=i("23cb"),f=i("50c4"),d=i("fc6a"),p=i("8418"),m=i("b622"),h=i("1dde"),v=i("ae40"),y=h("slice"),g=v("slice",{ACCESSORS:!0,0:0,1:2}),w=m("species"),E=[].slice,x=Math.max;u({target:"Array",proto:!0,forced:!y||!g},{slice:function(C,T){var A=d(this),k=f(A.length),M=c(C,k),H=c(T===void 0?k:T,k),N,j,G;if(l(A)&&(N=A.constructor,typeof N=="function"&&(N===Array||l(N.prototype))?N=void 0:s(N)&&(N=N[w],N===null&&(N=void 0)),N===Array||N===void 0))return E.call(A,M,H);for(j=new(N===void 0?Array:N)(x(H-M,0)),G=0;M<H;M++,G++)M in A&&p(j,G,A[M]);return j.length=G,j}})},fc6a:function(o,a,i){var u=i("44ad"),s=i("1d80");o.exports=function(l){return u(s(l))}},fdbc:function(o,a){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}},fdbf:function(o,a,i){var u=i("4930");o.exports=u&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}}).default})})(L8);var vG=L8.exports;const fl=k_(vG);var Be=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function mG(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Pu(t){var e={exports:{}};return t(e,e.exports),e.exports}var ua,Rg,Lg=function(t){return t&&t.Math==Math&&t},Yt=Lg(typeof globalThis=="object"&&globalThis)||Lg(typeof window=="object"&&window)||Lg(typeof self=="object"&&self)||Lg(typeof Be=="object"&&Be)||function(){return this}()||Function("return this")(),bb=Function.prototype,aO=bb.apply,yG=bb.bind,uO=bb.call,sO=typeof Reflect=="object"&&Reflect.apply||(yG?uO.bind(aO):function(){return uO.apply(aO,arguments)}),lO=Function.prototype,wb=lO.bind,Eb=lO.call,bG=wb&&wb.bind(Eb),Me=wb?function(t){return t&&bG(Eb,t)}:function(t){return t&&function(){return Eb.apply(t,arguments)}},Kn=function(t){return typeof t=="function"},wr=function(t){try{return!!t()}catch{return!0}},Er=!wr(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Af=Function.prototype.call,jr=Af.bind?Af.bind(Af):function(){return Af.apply(Af,arguments)},cO={}.propertyIsEnumerable,fO=Object.getOwnPropertyDescriptor,wG=fO&&!cO.call({1:2},1)?function(t){var e=fO(this,t);return!!e&&e.enumerable}:cO,Sb={f:wG},Bo=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},EG=Me({}.toString),SG=Me("".slice),Fu=function(t){return SG(EG(t),8,-1)},xb=Yt.Object,xG=Me("".split),dO=wr(function(){return!xb("z").propertyIsEnumerable(0)})?function(t){return Fu(t)=="String"?xG(t,""):xb(t)}:xb,CG=Yt.TypeError,Cb=function(t){if(t==null)throw CG("Can't call method on "+t);return t},Xo=function(t){return dO(Cb(t))},oo=function(t){return typeof t=="object"?t!==null:Kn(t)},Rr={},pO=function(t){return Kn(t)?t:void 0},dl=function(t,e){return arguments.length<2?pO(Rr[t])||pO(Yt[t]):Rr[t]&&Rr[t][e]||Yt[t]&&Yt[t][e]},Tf=Me({}.isPrototypeOf),Db=dl("navigator","userAgent")||"",hO=Yt.process,gO=Yt.Deno,vO=hO&&hO.versions||gO&&gO.version,mO=vO&&vO.v8;mO&&(Rg=(ua=mO.split("."))[0]>0&&ua[0]<4?1:+(ua[0]+ua[1])),!Rg&&Db&&(!(ua=Db.match(/Edge\/(\d+)/))||ua[1]>=74)&&(ua=Db.match(/Chrome\/(\d+)/))&&(Rg=+ua[1]);var Mg,Vg=Rg,Zo=!!Object.getOwnPropertySymbols&&!wr(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Vg&&Vg<41}),Ob=Zo&&!Symbol.sham&&typeof Symbol.iterator=="symbol",DG=Yt.Object,pl=Ob?function(t){return typeof t=="symbol"}:function(t){var e=dl("Symbol");return Kn(e)&&Tf(e.prototype,DG(t))},OG=Yt.String,Ab=function(t){try{return OG(t)}catch{return"Object"}},AG=Yt.TypeError,Tb=function(t){if(Kn(t))return t;throw AG(Ab(t)+" is not a function")},zg=function(t,e){var n=t[e];return n==null?void 0:Tb(n)},TG=Yt.TypeError,BG=Object.defineProperty,sa=Yt["__core-js_shared__"]||function(t,e){try{BG(Yt,t,{value:e,configurable:!0,writable:!0})}catch{Yt[t]=e}return e}("__core-js_shared__",{}),ku=Pu(function(t){(t.exports=function(e,n){return sa[e]||(sa[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),PG=Yt.Object,Bf=function(t){return PG(Cb(t))},FG=Me({}.hasOwnProperty),le=Object.hasOwn||function(t,e){return FG(Bf(t),e)},kG=0,NG=Math.random(),IG=Me(1 .toString),Hg=function(t){return"Symbol("+(t===void 0?"":t)+")_"+IG(++kG+NG,36)},Pf=ku("wks"),Nu=Yt.Symbol,yO=Nu&&Nu.for,jG=Ob?Nu:Nu&&Nu.withoutSetter||Hg,tr=function(t){if(!le(Pf,t)||!Zo&&typeof Pf[t]!="string"){var e="Symbol."+t;Zo&&le(Nu,t)?Pf[t]=Nu[t]:Pf[t]=Ob&&yO?yO(e):jG(e)}return Pf[t]},RG=Yt.TypeError,LG=tr("toPrimitive"),MG=function(t,e){if(!oo(t)||pl(t))return t;var n,r=zg(t,LG);if(r){if(n=jr(r,t,e),!oo(n)||pl(n))return n;throw RG("Can't convert object to primitive value")}return function(o,a){var i,u;if(Kn(i=o.toString)&&!oo(u=jr(i,o))||Kn(i=o.valueOf)&&!oo(u=jr(i,o)))return u;throw TG("Can't convert object to primitive value")}(t)},hl=function(t){var e=MG(t,"string");return pl(e)?e:e+""},Bb=Yt.document,VG=oo(Bb)&&oo(Bb.createElement),bO=function(t){return VG?Bb.createElement(t):{}},wO=!Er&&!wr(function(){return Object.defineProperty(bO("div"),"a",{get:function(){return 7}}).a!=7}),EO=Object.getOwnPropertyDescriptor,zG=Er?EO:function(t,e){if(t=Xo(t),e=hl(e),wO)try{return EO(t,e)}catch{}if(le(t,e))return Bo(!jr(Sb.f,t,e),t[e])},Ug={f:zG},HG=/#|\.prototype\./,Ff=function(t,e){var n=_G[UG(t)];return n==WG||n!=GG&&(Kn(e)?wr(e):!!e)},UG=Ff.normalize=function(t){return String(t).replace(HG,".").toLowerCase()},_G=Ff.data={},GG=Ff.NATIVE="N",WG=Ff.POLYFILL="P",KG=Ff,SO=Me(Me.bind),Pb=function(t,e){return Tb(t),e===void 0?t:SO?SO(t,e):function(){return t.apply(e,arguments)}},YG=Yt.String,XG=Yt.TypeError,Lr=function(t){if(oo(t))return t;throw XG(YG(t)+" is not an object")},ZG=Yt.TypeError,xO=Object.defineProperty,JG=Er?xO:function(t,e,n){if(Lr(t),e=hl(e),Lr(n),wO)try{return xO(t,e,n)}catch{}if("get"in n||"set"in n)throw ZG("Accessors not supported");return"value"in n&&(t[e]=n.value),t},la={f:JG},pr=Er?function(t,e,n){return la.f(t,e,Bo(1,n))}:function(t,e,n){return t[e]=n,t},QG=Ug.f,$G=function(t){var e=function(n,r,o){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,o)}return sO(t,this,arguments)};return e.prototype=t.prototype,e},Bi=function(t,e){var n,r,o,a,i,u,s,l,c=t.target,f=t.global,d=t.stat,p=t.proto,m=f?Yt:d?Yt[c]:(Yt[c]||{}).prototype,h=f?Rr:Rr[c]||pr(Rr,c,{})[c],v=h.prototype;for(o in e)n=!KG(f?o:c+(d?".":"#")+o,t.forced)&&m&&le(m,o),i=h[o],n&&(u=t.noTargetGet?(l=QG(m,o))&&l.value:m[o]),a=n&&u?u:e[o],n&&typeof i==typeof a||(s=t.bind&&n?Pb(a,Yt):t.wrap&&n?$G(a):p&&Kn(a)?Me(a):a,(t.sham||a&&a.sham||i&&i.sham)&&pr(s,"sham",!0),pr(h,o,s),p&&(le(Rr,r=c+"Prototype")||pr(Rr,r,{}),pr(Rr[r],o,a),t.real&&v&&!v[o]&&pr(v,o,a)))},CO=ku("keys"),_g=function(t){return CO[t]||(CO[t]=Hg(t))},qG=!wr(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),DO=_g("IE_PROTO"),Fb=Yt.Object,tW=Fb.prototype,Gg=qG?Fb.getPrototypeOf:function(t){var e=Bf(t);if(le(e,DO))return e[DO];var n=e.constructor;return Kn(n)&&e instanceof n?n.prototype:e instanceof Fb?tW:null},eW=Yt.String,nW=Yt.TypeError,Wg=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Me(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch{}return function(r,o){return Lr(r),function(a){if(typeof a=="object"||Kn(a))return a;throw nW("Can't set "+eW(a)+" as a prototype")}(o),e?t(r,o):r.__proto__=o,r}}():void 0),rW=Math.ceil,oW=Math.floor,kb=function(t){var e=+t;return e!=e||e===0?0:(e>0?oW:rW)(e)},iW=Math.max,aW=Math.min,Nb=function(t,e){var n=kb(t);return n<0?iW(n+e,0):aW(n,e)},uW=Math.min,kf=function(t){return(e=t.length)>0?uW(kb(e),9007199254740991):0;var e},sW=function(t){return function(e,n,r){var o,a=Xo(e),i=kf(a),u=Nb(r,i);if(t&&n!=n){for(;i>u;)if((o=a[u++])!=o)return!0}else for(;i>u;u++)if((t||u in a)&&a[u]===n)return t||u||0;return!t&&-1}},lW={indexOf:sW(!1)},Nf={},cW=lW.indexOf,OO=Me([].push),AO=function(t,e){var n,r=Xo(t),o=0,a=[];for(n in r)!le(Nf,n)&&le(r,n)&&OO(a,n);for(;e.length>o;)le(r,n=e[o++])&&(~cW(a,n)||OO(a,n));return a},Kg=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],fW=Kg.concat("length","prototype"),dW=Object.getOwnPropertyNames||function(t){return AO(t,fW)},Ib={f:dW},Yg={f:Object.getOwnPropertySymbols},pW=Me([].concat),hW=dl("Reflect","ownKeys")||function(t){var e=Ib.f(Lr(t)),n=Yg.f;return n?pW(e,n(t)):e},jb=Object.keys||function(t){return AO(t,Kg)},gW=Er?Object.defineProperties:function(t,e){Lr(t);for(var n,r=Xo(e),o=jb(e),a=o.length,i=0;a>i;)la.f(t,n=o[i++],r[n]);return t},vW=dl("document","documentElement"),TO=_g("IE_PROTO"),Rb=function(){},BO=function(t){return"<script>"+t+"<\/script>"},PO=function(t){t.write(BO("")),t.close();var e=t.parentWindow.Object;return t=null,e},Xg=function(){try{Mg=new ActiveXObject("htmlfile")}catch{}var t,e;Xg=typeof document<"u"?document.domain&&Mg?PO(Mg):((e=bO("iframe")).style.display="none",vW.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(BO("document.F=Object")),t.close(),t.F):PO(Mg);for(var n=Kg.length;n--;)delete Xg.prototype[Kg[n]];return Xg()};Nf[TO]=!0;var Pi=Object.create||function(t,e){var n;return t!==null?(Rb.prototype=Lr(t),n=new Rb,Rb.prototype=null,n[TO]=t):n=Xg(),e===void 0?n:gW(n,e)},Lb=function(t,e,n){var r=hl(e);r in t?la.f(t,r,Bo(0,n)):t[r]=n},mW=Yt.Array,yW=Math.max,FO=function(t,e,n){for(var r=kf(t),o=Nb(e,r),a=Nb(r,r),i=mW(yW(a-o,0)),u=0;o<a;o++,u++)Lb(i,u,t[o]);return i.length=u,i},bW=Me("".replace),wW=Me("".split),EW=Me([].join),Mb=String(Error("zxcasd").stack),kO=/\n\s*at [^:]*:[^\n]*/,SW=kO.test(Mb),xW=/@[^\n]*\n/.test(Mb)&&!/zxcasd/.test(Mb),CW=function(t,e){if(typeof t!="string")return t;if(SW)for(;e--;)t=bW(t,kO,"");else if(xW)return EW(FO(wW(t,`
11
+ `),e),`
12
+ `);return t},DW=function(t,e){oo(e)&&"cause"in e&&pr(t,"cause",e.cause)},Fi={},OW=tr("iterator"),AW=Array.prototype,NO={};NO[tr("toStringTag")]="z";var Vb=String(NO)==="[object z]",TW=tr("toStringTag"),BW=Yt.Object,PW=Fu(function(){return arguments}())=="Arguments",If=Vb?Fu:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,a){try{return o[a]}catch{}}(e=BW(t),TW))=="string"?n:PW?Fu(e):(r=Fu(e))=="Object"&&Kn(e.callee)?"Arguments":r},FW=tr("iterator"),IO=function(t){if(t!=null)return zg(t,FW)||zg(t,"@@iterator")||Fi[If(t)]},kW=Yt.TypeError,jO=function(t,e,n){var r,o;Lr(t);try{if(!(r=zg(t,"return"))){if(e==="throw")throw n;return n}r=jr(r,t)}catch(a){o=!0,r=a}if(e==="throw")throw n;if(o)throw r;return Lr(r),n},NW=Yt.TypeError,Zg=function(t,e){this.stopped=t,this.result=e},RO=Zg.prototype,IW=function(t,e,n){var r,o,a,i,u,s,l,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),m=Pb(e,c),h=function(y){return r&&jO(r,"normal",y),new Zg(!0,y)},v=function(y){return f?(Lr(y),p?m(y[0],y[1],h):m(y[0],y[1])):p?m(y,h):m(y)};if(d)r=t;else{if(!(o=IO(t)))throw NW(Ab(t)+" is not iterable");if(function(y){return y!==void 0&&(Fi.Array===y||AW[OW]===y)}(o)){for(a=0,i=kf(t);i>a;a++)if((u=v(t[a]))&&Tf(RO,u))return u;return new Zg(!1)}r=function(y,g){var w=arguments.length<2?IO(y):g;if(Tb(w))return Lr(jr(w,y));throw kW(Ab(y)+" is not iterable")}(t,o)}for(s=r.next;!(l=jr(s,r)).done;){try{u=v(l.value)}catch(y){jO(r,"throw",y)}if(typeof u=="object"&&u&&Tf(RO,u))return u}return new Zg(!1)},jW=Yt.String,jf=function(t){if(If(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return jW(t)},RW=function(t,e){return t===void 0?arguments.length<2?"":e:jf(t)},LW=!wr(function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",Bo(1,7)),t.stack!==7)}),MW=tr("toStringTag"),Jg=Yt.Error,VW=[].push,Rf=function(t,e){var n,r=arguments.length>2?arguments[2]:void 0,o=Tf(zb,this);Wg?n=Wg(new Jg(void 0),o?Gg(this):zb):(n=o?this:Pi(zb),pr(n,MW,"Error")),pr(n,"message",RW(e,"")),LW&&pr(n,"stack",CW(n.stack,1)),DW(n,r);var a=[];return IW(t,VW,{that:a}),pr(n,"errors",a),n};Wg?Wg(Rf,Jg):function(t,e){for(var n=hW(e),r=la.f,o=Ug.f,a=0;a<n.length;a++){var i=n[a];le(t,i)||r(t,i,o(e,i))}}(Rf,Jg);var zb=Rf.prototype=Pi(Jg.prototype,{constructor:Bo(1,Rf),message:Bo(1,""),name:Bo(1,"AggregateError")});Bi({global:!0},{AggregateError:Rf});var zW=Me(Function.toString);Kn(sa.inspectSource)||(sa.inspectSource=function(t){return zW(t)});var Qg,Lf,$g,LO=sa.inspectSource,MO=Yt.WeakMap,HW=Kn(MO)&&/native code/.test(LO(MO)),Hb=Yt.TypeError,UW=Yt.WeakMap;if(HW||sa.state){var Iu=sa.state||(sa.state=new UW),_W=Me(Iu.get),VO=Me(Iu.has),GW=Me(Iu.set);Qg=function(t,e){if(VO(Iu,t))throw new Hb("Object already initialized");return e.facade=t,GW(Iu,t,e),e},Lf=function(t){return _W(Iu,t)||{}},$g=function(t){return VO(Iu,t)}}else{var gl=_g("state");Nf[gl]=!0,Qg=function(t,e){if(le(t,gl))throw new Hb("Object already initialized");return e.facade=t,pr(t,gl,e),e},Lf=function(t){return le(t,gl)?t[gl]:{}},$g=function(t){return le(t,gl)}}var ca,zO,HO,vl={set:Qg,get:Lf,has:$g,enforce:function(t){return $g(t)?Lf(t):Qg(t,{})},getterFor:function(t){return function(e){var n;if(!oo(e)||(n=Lf(e)).type!==t)throw Hb("Incompatible receiver, "+t+" required");return n}}},UO=Function.prototype,WW=Er&&Object.getOwnPropertyDescriptor,_O=le(UO,"name"),KW={PROPER:_O&&(function(){}).name==="something",CONFIGURABLE:_O&&(!Er||Er&&WW(UO,"name").configurable)},qg=function(t,e,n,r){pr(t,e,n)},Ub=tr("iterator"),GO=!1;[].keys&&("next"in(HO=[].keys())?(zO=Gg(Gg(HO)))!==Object.prototype&&(ca=zO):GO=!0);var YW=ca==null||wr(function(){var t={};return ca[Ub].call(t)!==t});ca=YW?{}:Pi(ca),Kn(ca[Ub])||qg(ca,Ub,function(){return this});var WO={IteratorPrototype:ca,BUGGY_SAFARI_ITERATORS:GO},XW=Vb?{}.toString:function(){return"[object "+If(this)+"]"},ZW=la.f,KO=tr("toStringTag"),tv=function(t,e,n,r){if(t){var o=n?t:t.prototype;le(o,KO)||ZW(o,KO,{configurable:!0,value:e}),r&&!Vb&&pr(o,"toString",XW)}},JW=WO.IteratorPrototype,QW=function(){return this},$W=KW.PROPER,_b=WO.BUGGY_SAFARI_ITERATORS,qW=tr("iterator"),tK=function(){return this},YO=function(t,e,n,r,o,a,i){(function(v,y,g,w){var E=y+" Iterator";v.prototype=Pi(JW,{next:Bo(1,g)}),tv(v,E,!1,!0),Fi[E]=QW})(n,e,r);var u,s,l=function(v){if(v===o&&m)return m;if(!_b&&v in d)return d[v];switch(v){case"keys":case"values":case"entries":return function(){return new n(this,v)}}return function(){return new n(this)}},c=e+" Iterator",f=!1,d=t.prototype,p=d[qW]||d["@@iterator"]||o&&d[o],m=!_b&&p||l(o),h=e=="Array"&&d.entries||p;return h&&(u=Gg(h.call(new t)))!==Object.prototype&&u.next&&(tv(u,c,!0,!0),Fi[c]=tK),$W&&o=="values"&&p&&p.name!=="values"&&(f=!0,m=function(){return jr(p,this)}),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},i||Bi({target:e,proto:!0,forced:_b||f},s)),Fi[e]=m,s},eK=vl.set,nK=vl.getterFor("Array Iterator");YO(Array,"Array",function(t,e){eK(this,{type:"Array Iterator",target:Xo(t),index:0,kind:e})},function(){var t=nK(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values"),Fi.Arguments=Fi.Array;var rK=Me("".charAt),XO=Me("".charCodeAt),oK=Me("".slice),iK=function(t){return function(e,n){var r,o,a=jf(Cb(e)),i=kb(n),u=a.length;return i<0||i>=u?t?"":void 0:(r=XO(a,i))<55296||r>56319||i+1===u||(o=XO(a,i+1))<56320||o>57343?t?rK(a,i):r:t?oK(a,i,i+2):o-56320+(r-55296<<10)+65536}},aK={charAt:iK(!0)}.charAt,uK=vl.set,sK=vl.getterFor("String Iterator");YO(String,"String",function(t){uK(this,{type:"String Iterator",string:jf(t),index:0})},function(){var t,e=sK(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=aK(n,r),e.index+=t.length,{value:t,done:!1})});var lK=Rr.AggregateError,ZO=tr("toStringTag");for(var Gb in{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}){var JO=Yt[Gb],Wb=JO&&JO.prototype;Wb&&If(Wb)!==ZO&&pr(Wb,ZO,Gb),Fi[Gb]=Fi.Array}var fa,ev,cK=lK,nv=function(t){return t&&t.Math==Math&&t},Vt=nv(typeof globalThis=="object"&&globalThis)||nv(typeof window=="object"&&window)||nv(typeof self=="object"&&self)||nv(typeof Be=="object"&&Be)||function(){return this}()||Function("return this")(),Ln=function(t){try{return!!t()}catch{return!0}},Jo=!Ln(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Mf=Function.prototype.call,Yn=Mf.bind?Mf.bind(Mf):function(){return Mf.apply(Mf,arguments)},QO={}.propertyIsEnumerable,$O=Object.getOwnPropertyDescriptor,fK=$O&&!QO.call({1:2},1)?function(t){var e=$O(this,t);return!!e&&e.enumerable}:QO,dK={f:fK},da=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},qO=Function.prototype,Kb=qO.bind,Yb=qO.call,pK=Kb&&Kb.bind(Yb),De=Kb?function(t){return t&&pK(Yb,t)}:function(t){return t&&function(){return Yb.apply(t,arguments)}},hK=De({}.toString),gK=De("".slice),ju=function(t){return gK(hK(t),8,-1)},Xb=Vt.Object,vK=De("".split),tA=Ln(function(){return!Xb("z").propertyIsEnumerable(0)})?function(t){return ju(t)=="String"?vK(t,""):Xb(t)}:Xb,mK=Vt.TypeError,rv=function(t){if(t==null)throw mK("Can't call method on "+t);return t},ml=function(t){return tA(rv(t))},Fn=function(t){return typeof t=="function"},Qo=function(t){return typeof t=="object"?t!==null:Fn(t)},yK=function(t){return Fn(t)?t:void 0},Vf=function(t,e){return arguments.length<2?yK(Vt[t]):Vt[t]&&Vt[t][e]},ov=De({}.isPrototypeOf),Zb=Vf("navigator","userAgent")||"",eA=Vt.process,nA=Vt.Deno,rA=eA&&eA.versions||nA&&nA.version,oA=rA&&rA.v8;oA&&(ev=(fa=oA.split("."))[0]>0&&fa[0]<4?1:+(fa[0]+fa[1])),!ev&&Zb&&(!(fa=Zb.match(/Edge\/(\d+)/))||fa[1]>=74)&&(fa=Zb.match(/Chrome\/(\d+)/))&&(ev=+fa[1]);var iA=ev,Jb=!!Object.getOwnPropertySymbols&&!Ln(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&iA&&iA<41}),Qb=Jb&&!Symbol.sham&&typeof Symbol.iterator=="symbol",bK=Vt.Object,$b=Qb?function(t){return typeof t=="symbol"}:function(t){var e=Vf("Symbol");return Fn(e)&&ov(e.prototype,bK(t))},wK=Vt.String,qb=function(t){try{return wK(t)}catch{return"Object"}},EK=Vt.TypeError,t2=function(t){if(Fn(t))return t;throw EK(qb(t)+" is not a function")},zf=function(t,e){var n=t[e];return n==null?void 0:t2(n)},SK=Vt.TypeError,xK=Object.defineProperty,e2=function(t,e){try{xK(Vt,t,{value:e,configurable:!0,writable:!0})}catch{Vt[t]=e}return e},pa=Vt["__core-js_shared__"]||e2("__core-js_shared__",{}),n2=Pu(function(t){(t.exports=function(e,n){return pa[e]||(pa[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),CK=Vt.Object,r2=function(t){return CK(rv(t))},DK=De({}.hasOwnProperty),Sr=Object.hasOwn||function(t,e){return DK(r2(t),e)},OK=0,AK=Math.random(),TK=De(1 .toString),aA=function(t){return"Symbol("+(t===void 0?"":t)+")_"+TK(++OK+AK,36)},Hf=n2("wks"),Ru=Vt.Symbol,uA=Ru&&Ru.for,BK=Qb?Ru:Ru&&Ru.withoutSetter||aA,hr=function(t){if(!Sr(Hf,t)||!Jb&&typeof Hf[t]!="string"){var e="Symbol."+t;Jb&&Sr(Ru,t)?Hf[t]=Ru[t]:Hf[t]=Qb&&uA?uA(e):BK(e)}return Hf[t]},PK=Vt.TypeError,FK=hr("toPrimitive"),kK=function(t,e){if(!Qo(t)||$b(t))return t;var n,r=zf(t,FK);if(r){if(n=Yn(r,t,e),!Qo(n)||$b(n))return n;throw PK("Can't convert object to primitive value")}return function(o,a){var i,u;if(Fn(i=o.toString)&&!Qo(u=Yn(i,o))||Fn(i=o.valueOf)&&!Qo(u=Yn(i,o)))return u;throw SK("Can't convert object to primitive value")}(t)},o2=function(t){var e=kK(t,"string");return $b(e)?e:e+""},i2=Vt.document,NK=Qo(i2)&&Qo(i2.createElement),a2=function(t){return NK?i2.createElement(t):{}},sA=!Jo&&!Ln(function(){return Object.defineProperty(a2("div"),"a",{get:function(){return 7}}).a!=7}),lA=Object.getOwnPropertyDescriptor,IK=Jo?lA:function(t,e){if(t=ml(t),e=o2(e),sA)try{return lA(t,e)}catch{}if(Sr(t,e))return da(!Yn(dK.f,t,e),t[e])},u2={f:IK},jK=Vt.String,RK=Vt.TypeError,Mr=function(t){if(Qo(t))return t;throw RK(jK(t)+" is not an object")},LK=Vt.TypeError,cA=Object.defineProperty,MK=Jo?cA:function(t,e,n){if(Mr(t),e=o2(e),Mr(n),sA)try{return cA(t,e,n)}catch{}if("get"in n||"set"in n)throw LK("Accessors not supported");return"value"in n&&(t[e]=n.value),t},yl={f:MK},xr=Jo?function(t,e,n){return yl.f(t,e,da(1,n))}:function(t,e,n){return t[e]=n,t},VK=De(Function.toString);Fn(pa.inspectSource)||(pa.inspectSource=function(t){return VK(t)});var iv,Uf,av,s2=pa.inspectSource,fA=Vt.WeakMap,zK=Fn(fA)&&/native code/.test(s2(fA)),dA=n2("keys"),l2=function(t){return dA[t]||(dA[t]=aA(t))},c2={},f2=Vt.TypeError,HK=Vt.WeakMap;if(zK||pa.state){var Lu=pa.state||(pa.state=new HK),UK=De(Lu.get),pA=De(Lu.has),_K=De(Lu.set);iv=function(t,e){if(pA(Lu,t))throw new f2("Object already initialized");return e.facade=t,_K(Lu,t,e),e},Uf=function(t){return UK(Lu,t)||{}},av=function(t){return pA(Lu,t)}}else{var bl=l2("state");c2[bl]=!0,iv=function(t,e){if(Sr(t,bl))throw new f2("Object already initialized");return e.facade=t,xr(t,bl,e),e},Uf=function(t){return Sr(t,bl)?t[bl]:{}},av=function(t){return Sr(t,bl)}}var Mu={set:iv,get:Uf,has:av,enforce:function(t){return av(t)?Uf(t):iv(t,{})},getterFor:function(t){return function(e){var n;if(!Qo(e)||(n=Uf(e)).type!==t)throw f2("Incompatible receiver, "+t+" required");return n}}},hA=Function.prototype,GK=Jo&&Object.getOwnPropertyDescriptor,gA=Sr(hA,"name"),d2={PROPER:gA&&(function(){}).name==="something",CONFIGURABLE:gA&&(!Jo||Jo&&GK(hA,"name").configurable)},Vu=Pu(function(t){var e=d2.CONFIGURABLE,n=Mu.get,r=Mu.enforce,o=String(String).split("String");(t.exports=function(a,i,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:i;Fn(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Sr(u,"name")||e&&u.name!==p)&&xr(u,"name",p),(l=r(u)).source||(l.source=o.join(typeof p=="string"?p:""))),a!==Vt?(c?!d&&a[i]&&(f=!0):delete a[i],f?a[i]=u:xr(a,i,u)):f?a[i]=u:e2(i,u)})(Function.prototype,"toString",function(){return Fn(this)&&n(this).source||s2(this)})}),WK=Math.ceil,KK=Math.floor,p2=function(t){var e=+t;return e!=e||e===0?0:(e>0?KK:WK)(e)},YK=Math.max,XK=Math.min,h2=function(t,e){var n=p2(t);return n<0?YK(n+e,0):XK(n,e)},ZK=Math.min,vA=function(t){return t>0?ZK(p2(t),9007199254740991):0},uv=function(t){return vA(t.length)},JK=function(t){return function(e,n,r){var o,a=ml(e),i=uv(a),u=h2(r,i);if(t&&n!=n){for(;i>u;)if((o=a[u++])!=o)return!0}else for(;i>u;u++)if((t||u in a)&&a[u]===n)return t||u||0;return!t&&-1}},QK={indexOf:JK(!1)}.indexOf,mA=De([].push),yA=function(t,e){var n,r=ml(t),o=0,a=[];for(n in r)!Sr(c2,n)&&Sr(r,n)&&mA(a,n);for(;e.length>o;)Sr(r,n=e[o++])&&(~QK(a,n)||mA(a,n));return a},sv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],$K=sv.concat("length","prototype"),qK=Object.getOwnPropertyNames||function(t){return yA(t,$K)},tY={f:qK},eY={f:Object.getOwnPropertySymbols},nY=De([].concat),rY=Vf("Reflect","ownKeys")||function(t){var e=tY.f(Mr(t)),n=eY.f;return n?nY(e,n(t)):e},bA=function(t,e){for(var n=rY(e),r=yl.f,o=u2.f,a=0;a<n.length;a++){var i=n[a];Sr(t,i)||r(t,i,o(e,i))}},oY=/#|\.prototype\./,_f=function(t,e){var n=aY[iY(t)];return n==sY||n!=uY&&(Fn(e)?Ln(e):!!e)},iY=_f.normalize=function(t){return String(t).replace(oY,".").toLowerCase()},aY=_f.data={},uY=_f.NATIVE="N",sY=_f.POLYFILL="P",lY=_f,cY=u2.f,Gf=function(t,e){var n,r,o,a,i,u=t.target,s=t.global,l=t.stat;if(n=s?Vt:l?Vt[u]||e2(u,{}):(Vt[u]||{}).prototype)for(r in e){if(a=e[r],o=t.noTargetGet?(i=cY(n,r))&&i.value:n[r],!lY(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof a==typeof o)continue;bA(a,o)}(t.sham||o&&o.sham)&&xr(a,"sham",!0),Vu(n,r,a,t)}},wA={};wA[hr("toStringTag")]="z";var lv,g2=String(wA)==="[object z]",fY=hr("toStringTag"),dY=Vt.Object,pY=ju(function(){return arguments}())=="Arguments",cv=g2?ju:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,a){try{return o[a]}catch{}}(e=dY(t),fY))=="string"?n:pY?ju(e):(r=ju(e))=="Object"&&Fn(e.callee)?"Arguments":r},hY=Vt.String,zu=function(t){if(cv(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return hY(t)},gY=function(){var t=Mr(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},v2=Vt.RegExp,EA=Ln(function(){var t=v2("a","y");return t.lastIndex=2,t.exec("abcd")!=null});EA||Ln(function(){return!v2("a","y").sticky});var vY=EA||Ln(function(){var t=v2("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),mY={BROKEN_CARET:vY},yY=Object.keys||function(t){return yA(t,sv)},bY=Jo?Object.defineProperties:function(t,e){Mr(t);for(var n,r=ml(e),o=yY(e),a=o.length,i=0;a>i;)yl.f(t,n=o[i++],r[n]);return t},wY=Vf("document","documentElement"),SA=l2("IE_PROTO"),m2=function(){},xA=function(t){return"<script>"+t+"<\/script>"},CA=function(t){t.write(xA("")),t.close();var e=t.parentWindow.Object;return t=null,e},fv=function(){try{lv=new ActiveXObject("htmlfile")}catch{}var t,e;fv=typeof document<"u"?document.domain&&lv?CA(lv):((e=a2("iframe")).style.display="none",wY.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(xA("document.F=Object")),t.close(),t.F):CA(lv);for(var n=sv.length;n--;)delete fv.prototype[sv[n]];return fv()};c2[SA]=!0;var DA,y2,Wf=Object.create||function(t,e){var n;return t!==null?(m2.prototype=Mr(t),n=new m2,m2.prototype=null,n[SA]=t):n=fv(),e===void 0?n:bY(n,e)},EY=Vt.RegExp,SY=Ln(function(){var t=EY(".","s");return!(t.dotAll&&t.exec(`
13
+ `)&&t.flags==="s")}),xY=Vt.RegExp,CY=Ln(function(){var t=xY("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),DY=Mu.get,OY=n2("native-string-replace",String.prototype.replace),dv=RegExp.prototype.exec,b2=dv,AY=De("".charAt),TY=De("".indexOf),BY=De("".replace),w2=De("".slice),E2=(y2=/b*/g,Yn(dv,DA=/a/,"a"),Yn(dv,y2,"a"),DA.lastIndex!==0||y2.lastIndex!==0),OA=mY.BROKEN_CARET,S2=/()??/.exec("")[1]!==void 0;(E2||S2||OA||SY||CY)&&(b2=function(t){var e,n,r,o,a,i,u,s=this,l=DY(s),c=zu(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=Yn(b2,f,c),s.lastIndex=f.lastIndex,e;var d=l.groups,p=OA&&s.sticky,m=Yn(gY,s),h=s.source,v=0,y=c;if(p&&(m=BY(m,"y",""),TY(m,"g")===-1&&(m+="g"),y=w2(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&AY(c,s.lastIndex-1)!==`
14
+ `)&&(h="(?: "+h+")",y=" "+y,v++),n=new RegExp("^(?:"+h+")",m)),S2&&(n=new RegExp("^"+h+"$(?!\\s)",m)),E2&&(r=s.lastIndex),o=Yn(dv,p?n:s,y),p?o?(o.input=w2(o.input,v),o[0]=w2(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:E2&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),S2&&o&&o.length>1&&Yn(OY,o[0],n,function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(o[a]=void 0)}),o&&d)for(o.groups=i=Wf(null),a=0;a<d.length;a++)i[(u=d[a])[0]]=o[u[1]];return o});var pv=b2;Gf({target:"RegExp",proto:!0,forced:/./.exec!==pv},{exec:pv});var PY=hr("species"),AA=RegExp.prototype,FY=De("".charAt),TA=De("".charCodeAt),kY=De("".slice),NY=function(t){return function(e,n){var r,o,a=zu(rv(e)),i=p2(n),u=a.length;return i<0||i>=u?t?"":void 0:(r=TA(a,i))<55296||r>56319||i+1===u||(o=TA(a,i+1))<56320||o>57343?t?FY(a,i):r:t?kY(a,i,i+2):o-56320+(r-55296<<10)+65536}},BA={charAt:NY(!0)},IY=BA.charAt,jY=function(t,e,n){return e+(n?IY(t,e).length:1)},RY=Vt.TypeError,PA=function(t,e){var n=t.exec;if(Fn(n)){var r=Yn(n,t,e);return r!==null&&Mr(r),r}if(ju(t)==="RegExp")return Yn(pv,t,e);throw RY("RegExp#exec called on incompatible receiver")};(function(t,e,n,r){var o=hr(t),a=!Ln(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),i=a&&!Ln(function(){var l=!1,c=/a/;return t==="split"&&((c={}).constructor={},c.constructor[PY]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!a||!i||n){var u=De(/./[o]),s=e(o,""[t],function(l,c,f,d,p){var m=De(l),h=c.exec;return h===pv||h===AA.exec?a&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:m(f,c,d)}:{done:!1}});Vu(String.prototype,t,s[0]),Vu(AA,o,s[1])}})("match",function(t,e,n){return[function(r){var o=rv(this),a=r==null?void 0:zf(r,t);return a?Yn(a,r,o):new RegExp(r)[t](zu(o))},function(r){var o=Mr(this),a=zu(r),i=n(e,o,a);if(i.done)return i.value;if(!o.global)return PA(o,a);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=PA(o,a))!==null;){var f=zu(s[0]);l[c]=f,f===""&&(o.lastIndex=jY(a,vA(o.lastIndex),u)),c++}return c===0?null:l}]}),Gf({global:!0},{globalThis:Vt});var LY=!Ln(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),FA=l2("IE_PROTO"),x2=Vt.Object,MY=x2.prototype,Kf=LY?x2.getPrototypeOf:function(t){var e=r2(t);if(Sr(e,FA))return e[FA];var n=e.constructor;return Fn(n)&&e instanceof n?n.prototype:e instanceof x2?MY:null},VY=Vt.String,zY=Vt.TypeError,wl=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=De(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch{}return function(r,o){return Mr(r),function(a){if(typeof a=="object"||Fn(a))return a;throw zY("Can't set "+VY(a)+" as a prototype")}(o),e?t(r,o):r.__proto__=o,r}}():void 0),HY=Vt.Array,UY=Math.max,_Y=De("".replace),GY=De("".split),WY=De([].join),C2=String(Error("zxcasd").stack),kA=/\n\s*at [^:]*:[^\n]*/,KY=kA.test(C2),YY=/@[^\n]*\n/.test(C2)&&!/zxcasd/.test(C2),XY=function(t,e){if(typeof t!="string")return t;if(KY)for(;e--;)t=_Y(t,kA,"");else if(YY)return WY(function(n,r,o){for(var a,i,u,s,l=uv(n),c=h2(r,l),f=h2(l,l),d=HY(UY(f-c,0)),p=0;c<f;c++,p++)a=d,i=p,u=n[c],s=void 0,(s=o2(i))in a?yl.f(a,s,da(0,u)):a[s]=u;return d.length=p,d}(GY(t,`
15
+ `),e),`
16
+ `);return t},ZY=function(t,e){Qo(e)&&"cause"in e&&xr(t,"cause",e.cause)},NA=De(De.bind),IA=function(t,e){return t2(t),e===void 0?t:NA?NA(t,e):function(){return t.apply(e,arguments)}},El={},JY=hr("iterator"),QY=Array.prototype,$Y=hr("iterator"),jA=function(t){if(t!=null)return zf(t,$Y)||zf(t,"@@iterator")||El[cv(t)]},qY=Vt.TypeError,RA=function(t,e,n){var r,o;Mr(t);try{if(!(r=zf(t,"return"))){if(e==="throw")throw n;return n}r=Yn(r,t)}catch(a){o=!0,r=a}if(e==="throw")throw n;if(o)throw r;return Mr(r),n},tX=Vt.TypeError,hv=function(t,e){this.stopped=t,this.result=e},LA=hv.prototype,eX=function(t,e,n){var r,o,a,i,u,s,l,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),m=IA(e,c),h=function(y){return r&&RA(r,"normal",y),new hv(!0,y)},v=function(y){return f?(Mr(y),p?m(y[0],y[1],h):m(y[0],y[1])):p?m(y,h):m(y)};if(d)r=t;else{if(!(o=jA(t)))throw tX(qb(t)+" is not iterable");if(function(y){return y!==void 0&&(El.Array===y||QY[JY]===y)}(o)){for(a=0,i=uv(t);i>a;a++)if((u=v(t[a]))&&ov(LA,u))return u;return new hv(!1)}r=function(y,g){var w=arguments.length<2?jA(y):g;if(t2(w))return Mr(Yn(w,y));throw qY(qb(y)+" is not iterable")}(t,o)}for(s=r.next;!(l=Yn(s,r)).done;){try{u=v(l.value)}catch(y){RA(r,"throw",y)}if(typeof u=="object"&&u&&ov(LA,u))return u}return new hv(!1)},nX=function(t,e){return t===void 0?arguments.length<2?"":e:zu(t)},rX=!Ln(function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",da(1,7)),t.stack!==7)}),oX=hr("toStringTag"),gv=Vt.Error,iX=[].push,Yf=function(t,e){var n,r=arguments.length>2?arguments[2]:void 0,o=ov(D2,this);wl?n=wl(new gv(void 0),o?Kf(this):D2):(n=o?this:Wf(D2),xr(n,oX,"Error")),xr(n,"message",nX(e,"")),rX&&xr(n,"stack",XY(n.stack,1)),ZY(n,r);var a=[];return eX(t,iX,{that:a}),xr(n,"errors",a),n};wl?wl(Yf,gv):bA(Yf,gv);var D2=Yf.prototype=Wf(gv.prototype,{constructor:da(1,Yf),message:da(1,""),name:da(1,"AggregateError")});Gf({global:!0},{AggregateError:Yf});var O2=hr("unscopables"),A2=Array.prototype;A2[O2]==null&&yl.f(A2,O2,{configurable:!0,value:Wf(null)});var Hu,MA,VA,T2=function(t){A2[O2][t]=!0},B2=hr("iterator"),zA=!1;[].keys&&("next"in(VA=[].keys())?(MA=Kf(Kf(VA)))!==Object.prototype&&(Hu=MA):zA=!0);var aX=Hu==null||Ln(function(){var t={};return Hu[B2].call(t)!==t});aX&&(Hu={}),Fn(Hu[B2])||Vu(Hu,B2,function(){return this});var P2={IteratorPrototype:Hu,BUGGY_SAFARI_ITERATORS:zA},uX=yl.f,HA=hr("toStringTag"),UA=function(t,e,n){t&&!Sr(t=n?t:t.prototype,HA)&&uX(t,HA,{configurable:!0,value:e})},sX=P2.IteratorPrototype,lX=function(){return this},cX=d2.PROPER,fX=d2.CONFIGURABLE,_A=P2.IteratorPrototype,F2=P2.BUGGY_SAFARI_ITERATORS,Xf=hr("iterator"),dX=function(){return this},GA=function(t,e,n,r,o,a,i){(function(v,y,g,w){var E=y+" Iterator";v.prototype=Wf(sX,{next:da(1,g)}),UA(v,E,!1),El[E]=lX})(n,e,r);var u,s,l=function(v){if(v===o&&m)return m;if(!F2&&v in d)return d[v];switch(v){case"keys":case"values":case"entries":return function(){return new n(this,v)}}return function(){return new n(this)}},c=e+" Iterator",f=!1,d=t.prototype,p=d[Xf]||d["@@iterator"]||o&&d[o],m=!F2&&p||l(o),h=e=="Array"&&d.entries||p;return h&&(u=Kf(h.call(new t)))!==Object.prototype&&u.next&&(Kf(u)!==_A&&(wl?wl(u,_A):Fn(u[Xf])||Vu(u,Xf,dX)),UA(u,c,!0)),cX&&o=="values"&&p&&p.name!=="values"&&(fX?xr(d,"name","values"):(f=!0,m=function(){return Yn(p,this)})),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},i||Gf({target:e,proto:!0,forced:F2||f},s)),d[Xf]!==m&&Vu(d,Xf,m,{name:o}),El[e]=m,s},pX=Mu.set,hX=Mu.getterFor("Array Iterator"),Zf=GA(Array,"Array",function(t,e){pX(this,{type:"Array Iterator",target:ml(t),index:0,kind:e})},function(){var t=hX(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values");El.Arguments=El.Array,T2("keys"),T2("values"),T2("entries");var gX=BA.charAt,vX=Mu.set,mX=Mu.getterFor("String Iterator");GA(String,"String",function(t){vX(this,{type:"String Iterator",string:zu(t),index:0})},function(){var t,e=mX(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=gX(n,r),e.index+=t.length,{value:t,done:!1})});var k2,vv={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},N2=a2("span").classList,WA=N2&&N2.constructor&&N2.constructor.prototype,KA=WA===Object.prototype?void 0:WA,I2=hr("iterator"),YA=hr("toStringTag"),j2=Zf.values,XA=function(t,e){if(t){if(t[I2]!==j2)try{xr(t,I2,j2)}catch{t[I2]=j2}if(t[YA]||xr(t,YA,e),vv[e]){for(var n in Zf)if(t[n]!==Zf[n])try{xr(t,n,Zf[n])}catch{t[n]=Zf[n]}}}};for(var R2 in vv)XA(Vt[R2]&&Vt[R2].prototype,R2);XA(KA,"DOMTokenList"),typeof global>"u"?("ActiveXObject"in window&&console.error(`抱歉,wangEditor V5+ 版本开始,不在支持 IE 浏览器
17
+ Sorry, wangEditor V5+ versions do not support IE browser.`),ZA(),JA()):global&&(!((k2=global.navigator)===null||k2===void 0)&&k2.userAgent.match("QQBrowser"))&&(ZA(),JA());function ZA(){typeof globalThis>"u"&&(window.globalThis=window)}function JA(){cK===void 0&&(window.AggregateError=function(t,e){var n=new Error(e);return n.errors=t,n})}var QA,mv=Array.isArray||function(t){return Fu(t)=="Array"},$A=function(){},yX=[],qA=dl("Reflect","construct"),L2=/^\s*(?:class|function)\b/,bX=Me(L2.exec),wX=!L2.exec($A),Jf=function(t){if(!Kn(t))return!1;try{return qA($A,yX,t),!0}catch{return!1}},EX=!qA||wr(function(){var t;return Jf(Jf.call)||!Jf(Object)||!Jf(function(){t=!0})||t})?function(t){if(!Kn(t))return!1;switch(If(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return wX||!!bX(L2,LO(t))}:Jf,SX=tr("species"),t7=Yt.Array,e7=function(t,e){return new(function(n){var r;return mv(n)&&(r=n.constructor,(EX(r)&&(r===t7||mv(r.prototype))||oo(r)&&(r=r[SX])===null)&&(r=void 0)),r===void 0?t7:r}(t))(e===0?0:e)},xX=tr("species"),n7=tr("isConcatSpreadable"),r7=Yt.TypeError,CX=Vg>=51||!wr(function(){var t=[];return t[n7]=!1,t.concat()[0]!==t}),DX=(QA="concat",Vg>=51||!wr(function(){var t=[];return(t.constructor={})[xX]=function(){return{foo:1}},t[QA](Boolean).foo!==1})),OX=function(t){if(!oo(t))return!1;var e=t[n7];return e!==void 0?!!e:mv(t)};Bi({target:"Array",proto:!0,forced:!CX||!DX},{concat:function(t){var e,n,r,o,a,i=Bf(this),u=e7(i,0),s=0;for(e=-1,r=arguments.length;e<r;e++)if(OX(a=e===-1?i:arguments[e])){if(s+(o=kf(a))>9007199254740991)throw r7("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in a&&Lb(u,s,a[n])}else{if(s>=9007199254740991)throw r7("Maximum allowed index exceeded");Lb(u,s++,a)}return u.length=s,u}});var o7=Ib.f,i7=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a7={f:function(t){return i7&&Fu(t)=="Window"?function(e){try{return o7(e)}catch{return FO(i7)}}(t):o7(Xo(t))}},AX=Me([].slice),M2={f:tr},TX=la.f,dn=function(t){var e=Rr.Symbol||(Rr.Symbol={});le(e,t)||TX(e,t,{value:M2.f(t)})},u7=Me([].push),BX=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,a=t==6,i=t==7,u=t==5||a;return function(s,l,c,f){for(var d,p,m=Bf(s),h=dO(m),v=Pb(l,c),y=kf(h),g=0,w=f||e7,E=e?w(s,y):n||i?w(s,0):void 0;y>g;g++)if((u||g in h)&&(p=v(d=h[g],g,m),t))if(e)E[g]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return g;case 2:u7(E,d)}else switch(t){case 4:return!1;case 7:u7(E,d)}return a?-1:r||o?o:E}},yv={forEach:BX(0)}.forEach,Cr=_g("hidden"),s7=tr("toPrimitive"),PX=vl.set,l7=vl.getterFor("Symbol"),Po=Object.prototype,ha=Yt.Symbol,ga=ha&&ha.prototype,c7=Yt.TypeError,V2=Yt.QObject,Qf=dl("JSON","stringify"),f7=Ug.f,va=la.f,d7=a7.f,FX=Sb.f,p7=Me([].push),ki=ku("symbols"),$f=ku("op-symbols"),z2=ku("string-to-symbol-registry"),H2=ku("symbol-to-string-registry"),kX=ku("wks"),U2=!V2||!V2.prototype||!V2.prototype.findChild,_2=Er&&wr(function(){return Pi(va({},"a",{get:function(){return va(this,"a",{value:7}).a}})).a!=7})?function(t,e,n){var r=f7(Po,e);r&&delete Po[e],va(t,e,n),r&&t!==Po&&va(Po,e,r)}:va,G2=function(t,e){var n=ki[t]=Pi(ga);return PX(n,{type:"Symbol",tag:t,description:e}),Er||(n.description=e),n},bv=function(t,e,n){t===Po&&bv($f,e,n),Lr(t);var r=hl(e);return Lr(n),le(ki,r)?(n.enumerable?(le(t,Cr)&&t[Cr][r]&&(t[Cr][r]=!1),n=Pi(n,{enumerable:Bo(0,!1)})):(le(t,Cr)||va(t,Cr,Bo(1,{})),t[Cr][r]=!0),_2(t,r,n)):va(t,r,n)},h7=function(t,e){Lr(t);var n=Xo(e),r=jb(n).concat(W2(n));return yv(r,function(o){Er&&!jr(g7,n,o)||bv(t,o,n[o])}),t},g7=function(t){var e=hl(t),n=jr(FX,this,e);return!(this===Po&&le(ki,e)&&!le($f,e))&&(!(n||!le(this,e)||!le(ki,e)||le(this,Cr)&&this[Cr][e])||n)},v7=function(t,e){var n=Xo(t),r=hl(e);if(n!==Po||!le(ki,r)||le($f,r)){var o=f7(n,r);return!o||!le(ki,r)||le(n,Cr)&&n[Cr][r]||(o.enumerable=!0),o}},m7=function(t){var e=d7(Xo(t)),n=[];return yv(e,function(r){le(ki,r)||le(Nf,r)||p7(n,r)}),n},W2=function(t){var e=t===Po,n=d7(e?$f:Xo(t)),r=[];return yv(n,function(o){!le(ki,o)||e&&!le(Po,o)||p7(r,ki[o])}),r};if(Zo||(ga=(ha=function(){if(Tf(ga,this))throw c7("Symbol is not a constructor");var t=arguments.length&&arguments[0]!==void 0?jf(arguments[0]):void 0,e=Hg(t),n=function(r){this===Po&&jr(n,$f,r),le(this,Cr)&&le(this[Cr],e)&&(this[Cr][e]=!1),_2(this,e,Bo(1,r))};return Er&&U2&&_2(Po,e,{configurable:!0,set:n}),G2(e,t)}).prototype,qg(ga,"toString",function(){return l7(this).tag}),qg(ha,"withoutSetter",function(t){return G2(Hg(t),t)}),Sb.f=g7,la.f=bv,Ug.f=v7,Ib.f=a7.f=m7,Yg.f=W2,M2.f=function(t){return G2(tr(t),t)},Er&&va(ga,"description",{configurable:!0,get:function(){return l7(this).description}})),Bi({global:!0,wrap:!0,forced:!Zo,sham:!Zo},{Symbol:ha}),yv(jb(kX),function(t){dn(t)}),Bi({target:"Symbol",stat:!0,forced:!Zo},{for:function(t){var e=jf(t);if(le(z2,e))return z2[e];var n=ha(e);return z2[e]=n,H2[n]=e,n},keyFor:function(t){if(!pl(t))throw c7(t+" is not a symbol");if(le(H2,t))return H2[t]},useSetter:function(){U2=!0},useSimple:function(){U2=!1}}),Bi({target:"Object",stat:!0,forced:!Zo,sham:!Er},{create:function(t,e){return e===void 0?Pi(t):h7(Pi(t),e)},defineProperty:bv,defineProperties:h7,getOwnPropertyDescriptor:v7}),Bi({target:"Object",stat:!0,forced:!Zo},{getOwnPropertyNames:m7,getOwnPropertySymbols:W2}),Bi({target:"Object",stat:!0,forced:wr(function(){Yg.f(1)})},{getOwnPropertySymbols:function(t){return Yg.f(Bf(t))}}),Qf){var NX=!Zo||wr(function(){var t=ha();return Qf([t])!="[null]"||Qf({a:t})!="{}"||Qf(Object(t))!="{}"});Bi({target:"JSON",stat:!0,forced:NX},{stringify:function(t,e,n){var r=AX(arguments),o=e;if((oo(e)||t!==void 0)&&!pl(t))return mv(e)||(e=function(a,i){if(Kn(o)&&(i=jr(o,this,a,i)),!pl(i))return i}),r[1]=e,sO(Qf,null,r)}})}if(!ga[s7]){var IX=ga.valueOf;qg(ga,s7,function(t){return jr(IX,this)})}tv(ha,"Symbol"),Nf[Cr]=!0,dn("asyncIterator"),dn("hasInstance"),dn("isConcatSpreadable"),dn("iterator"),dn("match"),dn("matchAll"),dn("replace"),dn("search"),dn("species"),dn("split"),dn("toPrimitive"),dn("toStringTag"),dn("unscopables"),tv(Yt.JSON,"JSON",!0);var jX=Rr.Symbol;dn("asyncDispose"),dn("dispose"),dn("matcher"),dn("metadata"),dn("observable"),dn("patternMatch"),dn("replaceAll");var wv=jX,RX=M2.f("iterator"),LX=Pu(function(t){function e(n){return typeof wv=="function"&&typeof RX=="symbol"?(t.exports=e=function(r){return typeof r},t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=e=function(r){return r&&typeof wv=="function"&&r.constructor===wv&&r!==wv.prototype?"symbol":typeof r},t.exports.default=t.exports,t.exports.__esModule=!0),e(n)}t.exports=e,t.exports.default=t.exports,t.exports.__esModule=!0}),MX=mG(LX),y7=u2.f,VX=Ln(function(){y7(1)});if(Gf({target:"Object",stat:!0,forced:!Jo||VX,sham:!Jo},{getOwnPropertyDescriptor:function(t,e){return y7(ml(t),e)}}),(typeof global>"u"?"undefined":MX(global))==="object"){var zX=Object.getOwnPropertyDescriptor(global,"window");global.window&&!zX.set||(global.window=global,global.requestAnimationFrame=function(){},global.navigator={userAgent:""},global.location={hostname:"0.0.0.0",port:0,protocol:"http:"},global.btoa=function(){},global.crypto={getRandomValues:function(t){return nodeCrypto.randomFillSync(t)}}),global.document!=null&&global.document.getElementsByTagName==null&&(global.document.getElementsByTagName=function(){return[]})}/*!
18
+ * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
19
+ *
20
+ * Copyright (c) 2014-2017, Jon Schlinkert.
21
+ * Released under the MIT License.
22
+ */function b7(t){return Object.prototype.toString.call(t)==="[object Object]"}function er(t){var e,n;return b7(t)!==!1&&((e=t.constructor)===void 0||b7(n=e.prototype)!==!1&&n.hasOwnProperty("isPrototypeOf")!==!1)}function Fo(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+t+(n.length?" "+n.map(function(o){return"'"+o+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Uu(t){return!!t&&!!t[Vr]}function _u(t){return!!t&&(function(e){if(!e||typeof e!="object")return!1;var n=Object.getPrototypeOf(e);if(n===null)return!0;var r=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return r===Object||typeof r=="function"&&Function.toString.call(r)===KX}(t)||Array.isArray(t)||!!t[B7]||!!t.constructor[B7]||Y2(t)||X2(t))}function qf(t,e,n){n===void 0&&(n=!1),Sl(t)===0?(n?Object.keys:aw)(t).forEach(function(r){n&&typeof r=="symbol"||e(r,t[r],t)}):t.forEach(function(r,o){return e(o,r,t)})}function Sl(t){var e=t[Vr];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Y2(t)?2:X2(t)?3:0}function K2(t,e){return Sl(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function w7(t,e,n){var r=Sl(t);r===2?t.set(e,n):r===3?(t.delete(e),t.add(n)):t[e]=n}function Y2(t){return GX&&t instanceof Map}function X2(t){return WX&&t instanceof Set}function Gu(t){return t.o||t.t}function Z2(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=YX(t);delete e[Vr];for(var n=aw(e),r=0;r<n.length;r++){var o=n[r],a=e[o];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[o]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[o]})}return Object.create(Object.getPrototypeOf(t),e)}function J2(t,e){return e===void 0&&(e=!1),Q2(t)||Uu(t)||!_u(t)||(Sl(t)>1&&(t.set=t.add=t.clear=t.delete=HX),Object.freeze(t),e&&qf(t,function(n,r){return J2(r,!0)},!0)),t}function HX(){Fo(2)}function Q2(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Ni(t){var e=XX[t];return e||Fo(18,t),e}function E7(){return td}function $2(t,e){e&&(Ni("Patches"),t.u=[],t.s=[],t.v=e)}function Ev(t){q2(t),t.p.forEach(UX),t.p=null}function q2(t){t===td&&(td=t.l)}function S7(t){return td={p:[],l:td,h:t,m:!0,_:0}}function UX(t){var e=t[Vr];e.i===0||e.i===1?e.j():e.O=!0}function tw(t,e){e._=e.p.length;var n=e.p[0],r=t!==void 0&&t!==n;return e.h.g||Ni("ES5").S(e,t,r),r?(n[Vr].P&&(Ev(e),Fo(4)),_u(t)&&(t=Sv(e,t),e.l||xv(e,t)),e.u&&Ni("Patches").M(n[Vr],t,e.u,e.s)):t=Sv(e,n,[]),Ev(e),e.u&&e.v(e.u,e.s),t!==T7?t:void 0}function Sv(t,e,n){if(Q2(e))return e;var r=e[Vr];if(!r)return qf(e,function(a,i){return x7(t,r,e,a,i,n)},!0),e;if(r.A!==t)return e;if(!r.P)return xv(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=r.i===4||r.i===5?r.o=Z2(r.k):r.o;qf(r.i===3?new Set(o):o,function(a,i){return x7(t,r,o,a,i,n)}),xv(t,o,!1),n&&t.u&&Ni("Patches").R(r,n,t.u,t.s)}return r.o}function x7(t,e,n,r,o,a){if(Uu(o)){var i=Sv(t,o,a&&e&&e.i!==3&&!K2(e.D,r)?a.concat(r):void 0);if(w7(n,r,i),!Uu(i))return;t.m=!1}if(_u(o)&&!Q2(o)){if(!t.h.F&&t._<1)return;Sv(t,o),e&&e.A.l||xv(t,o)}}function xv(t,e,n){n===void 0&&(n=!1),t.h.F&&t.m&&J2(e,n)}function ew(t,e){var n=t[Vr];return(n?Gu(n):t)[e]}function C7(t,e){if(e in t)for(var n=Object.getPrototypeOf(t);n;){var r=Object.getOwnPropertyDescriptor(n,e);if(r)return r;n=Object.getPrototypeOf(n)}}function nw(t){t.P||(t.P=!0,t.l&&nw(t.l))}function rw(t){t.o||(t.o=Z2(t.t))}function ow(t,e,n){var r=Y2(e)?Ni("MapSet").N(e,n):X2(e)?Ni("MapSet").T(e,n):t.g?function(o,a){var i=Array.isArray(o),u={i:i?1:0,A:a?a.A:E7(),P:!1,I:!1,D:{},l:a,t:o,k:null,o:null,j:null,C:!1},s=u,l=Cv;i&&(s=[u],l=Dv);var c=Proxy.revocable(s,l),f=c.revoke,d=c.proxy;return u.k=d,u.j=f,d}(e,n):Ni("ES5").J(e,n);return(n?n.A:E7()).p.push(r),r}function _X(t){return Uu(t)||Fo(22,t),function e(n){if(!_u(n))return n;var r,o=n[Vr],a=Sl(n);if(o){if(!o.P&&(o.i<4||!Ni("ES5").K(o)))return o.t;o.I=!0,r=D7(n,a),o.I=!1}else r=D7(n,a);return qf(r,function(i,u){o&&function(s,l){return Sl(s)===2?s.get(l):s[l]}(o.t,i)===u||w7(r,i,e(u))}),a===3?new Set(r):r}(t)}function D7(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Z2(t)}var O7,td,iw=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",GX=typeof Map<"u",WX=typeof Set<"u",A7=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",T7=iw?Symbol.for("immer-nothing"):((O7={})["immer-nothing"]=!0,O7),B7=iw?Symbol.for("immer-draftable"):"__$immer_draftable",Vr=iw?Symbol.for("immer-state"):"__$immer_state",KX=""+Object.prototype.constructor,aw=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,YX=Object.getOwnPropertyDescriptors||function(t){var e={};return aw(t).forEach(function(n){e[n]=Object.getOwnPropertyDescriptor(t,n)}),e},XX={},Cv={get:function(t,e){if(e===Vr)return t;var n=Gu(t);if(!K2(n,e))return function(o,a,i){var u,s=C7(a,i);return s?"value"in s?s.value:(u=s.get)===null||u===void 0?void 0:u.call(o.k):void 0}(t,n,e);var r=n[e];return t.I||!_u(r)?r:r===ew(t.t,e)?(rw(t),t.o[e]=ow(t.A.h,r,t)):r},has:function(t,e){return e in Gu(t)},ownKeys:function(t){return Reflect.ownKeys(Gu(t))},set:function(t,e,n){var r=C7(Gu(t),e);if(r!=null&&r.set)return r.set.call(t.k,n),!0;if(!t.P){var o=ew(Gu(t),e),a=o==null?void 0:o[Vr];if(a&&a.t===n)return t.o[e]=n,t.D[e]=!1,!0;if(function(i,u){return i===u?i!==0||1/i==1/u:i!=i&&u!=u}(n,o)&&(n!==void 0||K2(t.t,e)))return!0;rw(t),nw(t)}return t.o[e]===n&&typeof n!="number"&&(n!==void 0||e in t.o)||(t.o[e]=n,t.D[e]=!0,!0)},deleteProperty:function(t,e){return ew(t.t,e)!==void 0||e in t.t?(t.D[e]=!1,rw(t),nw(t)):delete t.D[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var n=Gu(t),r=Reflect.getOwnPropertyDescriptor(n,e);return r&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:r.enumerable,value:n[e]}},defineProperty:function(){Fo(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Fo(12)}},Dv={};qf(Cv,function(t,e){Dv[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Dv.deleteProperty=function(t,e){return Cv.deleteProperty.call(this,t[0],e)},Dv.set=function(t,e,n){return Cv.set.call(this,t[0],e,n,t[0])};var ZX=function(){function t(n){var r=this;this.g=A7,this.F=!0,this.produce=function(o,a,i){if(typeof o=="function"&&typeof a!="function"){var u=a;a=o;var s=r;return function(p){var m=this;p===void 0&&(p=u);for(var h=arguments.length,v=Array(h>1?h-1:0),y=1;y<h;y++)v[y-1]=arguments[y];return s.produce(p,function(g){var w;return(w=a).call.apply(w,[m,g].concat(v))})}}var l;if(typeof a!="function"&&Fo(6),i!==void 0&&typeof i!="function"&&Fo(7),_u(o)){var c=S7(r),f=ow(r,o,void 0),d=!0;try{l=a(f),d=!1}finally{d?Ev(c):q2(c)}return typeof Promise<"u"&&l instanceof Promise?l.then(function(p){return $2(c,i),tw(p,c)},function(p){throw Ev(c),p}):($2(c,i),tw(l,c))}if(!o||typeof o!="object")return(l=a(o))===T7?void 0:(l===void 0&&(l=o),r.F&&J2(l,!0),l);Fo(21,o)},this.produceWithPatches=function(o,a){return typeof o=="function"?function(s){for(var l=arguments.length,c=Array(l>1?l-1:0),f=1;f<l;f++)c[f-1]=arguments[f];return r.produceWithPatches(s,function(d){return o.apply(void 0,[d].concat(c))})}:[r.produce(o,a,function(s,l){i=s,u=l}),i,u];var i,u},typeof(n==null?void 0:n.useProxies)=="boolean"&&this.setUseProxies(n.useProxies),typeof(n==null?void 0:n.autoFreeze)=="boolean"&&this.setAutoFreeze(n.autoFreeze)}var e=t.prototype;return e.createDraft=function(n){_u(n)||Fo(8),Uu(n)&&(n=_X(n));var r=S7(this),o=ow(this,n,void 0);return o[Vr].C=!0,q2(r),o},e.finishDraft=function(n,r){var o=(n&&n[Vr]).A;return $2(o,r),tw(void 0,o)},e.setAutoFreeze=function(n){this.F=n},e.setUseProxies=function(n){n&&!A7&&Fo(20),this.g=n},e.applyPatches=function(n,r){var o;for(o=r.length-1;o>=0;o--){var a=r[o];if(a.path.length===0&&a.op==="replace"){n=a.value;break}}o>-1&&(r=r.slice(o+1));var i=Ni("Patches").$;return Uu(n)?i(n,r):this.produce(n,function(u){return i(u,r)})},t}(),zr=new ZX,Ov=zr.produce;zr.produceWithPatches.bind(zr),zr.setAutoFreeze.bind(zr),zr.setUseProxies.bind(zr),zr.applyPatches.bind(zr);var P7=zr.createDraft.bind(zr),F7=zr.finishDraft.bind(zr);function $o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Av=new WeakMap,ed=new WeakMap,k7=new WeakMap,N7=new WeakMap,I7=new WeakMap,j7=new WeakMap;function R7(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Tv(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?R7(Object(n),!0).forEach(function(r){$o(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):R7(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var JX=()=>{var t={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:e=>{for(var n of D.pathRefs(t))OZ.transform(n,e);for(var r of D.pointRefs(t))AZ.transform(r,e);for(var o of D.rangeRefs(t))BZ.transform(o,e);var a=new Set,i=[],u=d=>{if(d){var p=d.join(",");a.has(p)||(a.add(p),i.push(d))}},s=Av.get(t)||[],l=QX(e);for(var c of s)u(z.transform(c,e));for(var f of l)u(f);Av.set(t,i),_.transform(t,e),t.operations.push(e),D.normalize(t),e.type==="set_selection"&&(t.marks=null),ed.get(t)||(ed.set(t,!0),Promise.resolve().then(()=>{ed.set(t,!1),t.onChange(),t.operations=[]}))},addMark:(e,n)=>{var{selection:r}=t;if(r)if($.isExpanded(r))_.setNodes(t,{[e]:n},{match:vt.isText,split:!0});else{var o=Tv(Tv({},D.marks(t)||{}),{},{[e]:n});t.marks=o,ed.get(t)||t.onChange()}},deleteBackward:e=>{var{selection:n}=t;n&&$.isCollapsed(n)&&_.delete(t,{unit:e,reverse:!0})},deleteForward:e=>{var{selection:n}=t;n&&$.isCollapsed(n)&&_.delete(t,{unit:e})},deleteFragment:e=>{var{selection:n}=t;n&&$.isExpanded(n)&&_.delete(t,{reverse:e==="backward"})},getFragment:()=>{var{selection:e}=t;return e?st.fragment(t,e):[]},insertBreak:()=>{_.splitNodes(t,{always:!0})},insertFragment:e=>{_.insertFragment(t,e)},insertNode:e=>{_.insertNodes(t,e)},insertText:e=>{var{selection:n,marks:r}=t;if(n){if(r){var o=Tv({text:e},r);_.insertNodes(t,o)}else _.insertText(t,e);t.marks=null}},normalizeNode:e=>{var[n,r]=e;if(!vt.isText(n))if(St.isElement(n)&&n.children.length===0)_.insertNodes(t,{text:""},{at:r.concat(0),voids:!0});else for(var o=!D.isEditor(n)&&St.isElement(n)&&(t.isInline(n)||n.children.length===0||vt.isText(n.children[0])||t.isInline(n.children[0])),a=0,i=0;i<n.children.length;i++,a++){var u=st.get(t,r);if(!vt.isText(u)){var s=n.children[i],l=u.children[a-1],c=i===n.children.length-1;(vt.isText(s)||St.isElement(s)&&t.isInline(s))!==o?(_.removeNodes(t,{at:r.concat(a),voids:!0}),a--):St.isElement(s)?t.isInline(s)&&(l!=null&&vt.isText(l)?c&&(_.insertNodes(t,{text:""},{at:r.concat(a+1),voids:!0}),a++):(_.insertNodes(t,{text:""},{at:r.concat(a),voids:!0}),a++)):l!=null&&vt.isText(l)&&(vt.equals(s,l,{loose:!0})?(_.mergeNodes(t,{at:r.concat(a),voids:!0}),a--):l.text===""?(_.removeNodes(t,{at:r.concat(a-1),voids:!0}),a--):s.text===""&&(_.removeNodes(t,{at:r.concat(a),voids:!0}),a--))}}},removeMark:e=>{var{selection:n}=t;if(n)if($.isExpanded(n))_.unsetNodes(t,e,{match:vt.isText,split:!0});else{var r=Tv({},D.marks(t)||{});delete r[e],t.marks=r,ed.get(t)||t.onChange()}}};return t},QX=t=>{switch(t.type){case"insert_text":case"remove_text":case"set_node":var{path:e}=t;return z.levels(e);case"insert_node":var{node:n,path:r}=t,o=z.levels(r),a=vt.isText(n)?[]:Array.from(st.nodes(n),E=>{var[,x]=E;return r.concat(x)});return[...o,...a];case"merge_node":var{path:i}=t;return[...z.ancestors(i),z.previous(i)];case"move_node":var{path:u,newPath:s}=t;if(z.equals(u,s))return[];var l=[],c=[];for(var f of z.ancestors(u)){var d=z.transform(f,t);l.push(d)}for(var p of z.ancestors(s)){var m=z.transform(p,t);c.push(m)}var h=c[c.length-1],v=s[s.length-1],y=h.concat(v);return[...l,...c,y];case"remove_node":var{path:g}=t;return[...z.ancestors(g)];case"split_node":var{path:w}=t;return[...z.levels(w),z.next(w)];default:return[]}};function Ii(t,e){if(t==null)return{};var n,r,o=function(i,u){if(i==null)return{};var s,l,c={},f=Object.keys(i);for(l=0;l<f.length;l++)s=f[l],u.indexOf(s)>=0||(c[s]=i[s]);return c}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}var _t,uw=function(t){var e=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=!e,r=e?nZ(t):t,o=_t.None,a=_t.None,i=0,u=null;for(var s of r){var l=s.codePointAt(0);if(!l)break;var c=hZ(s,l);if([o,a]=n?[a,c]:[c,o],xl(o,_t.ZWJ)&&xl(a,_t.ExtPict)&&!yZ(n?t.substring(0,i):t.substring(0,t.length-i))||xl(o,_t.RI)&&xl(a,_t.RI)&&!(u=u!==null?!u:!!n||wZ(t.substring(0,t.length-i)))||o!==_t.None&&a!==_t.None&&vZ(o,a))break;i+=s.length}return i||1},$X=/\s/,qX=/[\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,tZ=/['\u2018\u2019]/,sw=(t,e,n)=>{if(n){var r=t.length-e;return[t.slice(r,t.length),t.slice(0,r)]}return[t.slice(0,e),t.slice(e)]},eZ=function t(e,n){var r=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if($X.test(e))return!1;if(tZ.test(e)){var o=uw(n,r),[a,i]=sw(n,o,r);if(t(a,i,r))return!0}return!qX.test(e)},nZ=function*(t){for(var e=t.length-1,n=0;n<t.length;n++){var r=t.charAt(e-n);if(oZ(r.charCodeAt(0))){var o=t.charAt(e-n-1);if(rZ(o.charCodeAt(0))){yield o+r,n++;continue}}yield r}},rZ=t=>t>=55296&&t<=56319,oZ=t=>t>=56320&&t<=57343;(function(t){t[t.None=0]="None",t[t.Extend=1]="Extend",t[t.ZWJ=2]="ZWJ",t[t.RI=4]="RI",t[t.Prepend=8]="Prepend",t[t.SpacingMark=16]="SpacingMark",t[t.L=32]="L",t[t.V=64]="V",t[t.T=128]="T",t[t.LV=256]="LV",t[t.LVT=512]="LVT",t[t.ExtPict=1024]="ExtPict",t[t.Any=2048]="Any"})(_t||(_t={}));var iZ=/^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/,aZ=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,uZ=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,sZ=/^[\u1100-\u115F\uA960-\uA97C]$/,lZ=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,cZ=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,fZ=/^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,dZ=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,pZ=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,hZ=(t,e)=>{var n=_t.Any;return t.search(iZ)!==-1&&(n|=_t.Extend),e===8205&&(n|=_t.ZWJ),e>=127462&&e<=127487&&(n|=_t.RI),t.search(aZ)!==-1&&(n|=_t.Prepend),t.search(uZ)!==-1&&(n|=_t.SpacingMark),t.search(sZ)!==-1&&(n|=_t.L),t.search(lZ)!==-1&&(n|=_t.V),t.search(cZ)!==-1&&(n|=_t.T),t.search(fZ)!==-1&&(n|=_t.LV),t.search(dZ)!==-1&&(n|=_t.LVT),t.search(pZ)!==-1&&(n|=_t.ExtPict),n};function xl(t,e){return(t&e)!=0}var gZ=[[_t.L,_t.L|_t.V|_t.LV|_t.LVT],[_t.LV|_t.V,_t.V|_t.T],[_t.LVT|_t.T,_t.T],[_t.Any,_t.Extend|_t.ZWJ],[_t.Any,_t.SpacingMark],[_t.Prepend,_t.Any],[_t.ZWJ,_t.ExtPict],[_t.RI,_t.RI]];function vZ(t,e){return gZ.findIndex(n=>xl(t,n[0])&&xl(e,n[1]))===-1}var mZ=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,yZ=t=>t.search(mZ)!==-1,bZ=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,wZ=t=>{var e=t.match(bZ);return e!==null&&e[0].length/2%2==1},L7=t=>er(t)&&st.isNodeList(t.children)&&!D.isEditor(t),St={isAncestor:t=>er(t)&&st.isNodeList(t.children),isElement:L7,isElementList:t=>Array.isArray(t)&&t.every(e=>St.isElement(e)),isElementProps:t=>t.children!==void 0,isElementType:function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"type";return L7(t)&&t[n]===e},matches(t,e){for(var n in e)if(n!=="children"&&t[n]!==e[n])return!1;return!0}},EZ=["text"],SZ=["text"];function M7(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Cl(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?M7(Object(n),!0).forEach(function(r){$o(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):M7(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var V7=new WeakMap,D={above(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{voids:n=!1,mode:r="lowest",at:o=t.selection,match:a}=e;if(o){var i=D.path(t,o),u=r==="lowest";for(var[s,l]of D.levels(t,{at:i,voids:n,match:a,reverse:u}))if(!vt.isText(s)&&!z.equals(i,l))return[s,l]}},addMark(t,e,n){t.addMark(e,n)},after(t,e){var n,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o={anchor:D.point(t,e,{edge:"end"}),focus:D.end(t,[])},{distance:a=1}=r,i=0;for(var u of D.positions(t,Cl(Cl({},r),{},{at:o}))){if(i>a)break;i!==0&&(n=u),i++}return n},before(t,e){var n,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o={anchor:D.start(t,[]),focus:D.point(t,e,{edge:"start"})},{distance:a=1}=r,i=0;for(var u of D.positions(t,Cl(Cl({},r),{},{at:o,reverse:!0}))){if(i>a)break;i!==0&&(n=u),i++}return n},deleteBackward(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:n="character"}=e;t.deleteBackward(n)},deleteForward(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:n="character"}=e;t.deleteForward(n)},deleteFragment(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{direction:n="forward"}=e;t.deleteFragment(n)},edges:(t,e)=>[D.start(t,e),D.end(t,e)],end:(t,e)=>D.point(t,e,{edge:"end"}),first(t,e){var n=D.path(t,e,{edge:"start"});return D.node(t,n)},fragment(t,e){var n=D.range(t,e);return st.fragment(t,n)},hasBlocks:(t,e)=>e.children.some(n=>D.isBlock(t,n)),hasInlines:(t,e)=>e.children.some(n=>vt.isText(n)||D.isInline(t,n)),hasTexts:(t,e)=>e.children.every(n=>vt.isText(n)),insertBreak(t){t.insertBreak()},insertFragment(t,e){t.insertFragment(e)},insertNode(t,e){t.insertNode(e)},insertText(t,e){t.insertText(e)},isBlock:(t,e)=>St.isElement(e)&&!t.isInline(e),isEditor(t){if(!er(t))return!1;var e=V7.get(t);if(e!==void 0)return e;var n=typeof t.addMark=="function"&&typeof t.apply=="function"&&typeof t.deleteBackward=="function"&&typeof t.deleteForward=="function"&&typeof t.deleteFragment=="function"&&typeof t.insertBreak=="function"&&typeof t.insertFragment=="function"&&typeof t.insertNode=="function"&&typeof t.insertText=="function"&&typeof t.isInline=="function"&&typeof t.isVoid=="function"&&typeof t.normalizeNode=="function"&&typeof t.onChange=="function"&&typeof t.removeMark=="function"&&(t.marks===null||er(t.marks))&&(t.selection===null||$.isRange(t.selection))&&st.isNodeList(t.children)&&ma.isOperationList(t.operations);return V7.set(t,n),n},isEnd(t,e,n){var r=D.end(t,n);return Zt.equals(e,r)},isEdge:(t,e,n)=>D.isStart(t,e,n)||D.isEnd(t,e,n),isEmpty(t,e){var{children:n}=e,[r]=n;return n.length===0||n.length===1&&vt.isText(r)&&r.text===""&&!t.isVoid(e)},isInline:(t,e)=>St.isElement(e)&&t.isInline(e),isNormalizing(t){var e=k7.get(t);return e===void 0||e},isStart(t,e,n){if(e.offset!==0)return!1;var r=D.start(t,n);return Zt.equals(e,r)},isVoid:(t,e)=>St.isElement(e)&&t.isVoid(e),last(t,e){var n=D.path(t,e,{edge:"end"});return D.node(t,n)},leaf(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=D.path(t,e,n);return[st.leaf(t,r),r]},*levels(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=t.selection,reverse:r=!1,voids:o=!1}=e,{match:a}=e;if(a==null&&(a=()=>!0),n){var i=[],u=D.path(t,n);for(var[s,l]of st.levels(t,u))if(a(s,l)&&(i.push([s,l]),!o&&D.isVoid(t,s)))break;r&&i.reverse(),yield*i}},marks(t){var{marks:e,selection:n}=t;if(!n)return null;if(e)return e;if($.isExpanded(n)){var[r]=D.nodes(t,{match:vt.isText});if(r){var[o]=r;return Ii(o,EZ)}return{}}var{anchor:a}=n,{path:i}=a,[u]=D.leaf(t,i);if(a.offset===0){var s=D.previous(t,{at:i,match:vt.isText}),l=D.above(t,{match:p=>D.isBlock(t,p)});if(s&&l){var[c,f]=s,[,d]=l;z.isAncestor(d,f)&&(u=c)}}return Ii(u,SZ)},next(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n="lowest",voids:r=!1}=e,{match:o,at:a=t.selection}=e;if(a){var i=D.after(t,a,{voids:r});if(i){var[,u]=D.last(t,[]),s=[i.path,u];if(z.isPath(a)&&a.length===0)throw new Error("Cannot get the next node from the root node!");if(o==null)if(z.isPath(a)){var[l]=D.parent(t,a);o=f=>l.children.includes(f)}else o=()=>!0;var[c]=D.nodes(t,{at:s,match:o,mode:n,voids:r});return c}}},node(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=D.path(t,e,n);return[st.get(t,r),r]},*nodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=t.selection,mode:r="all",universal:o=!1,reverse:a=!1,voids:i=!1}=e,{match:u}=e;if(u||(u=()=>!0),n){var s,l;if(xZ.isSpan(n))s=n[0],l=n[1];else{var c=D.path(t,n,{edge:"start"}),f=D.path(t,n,{edge:"end"});s=a?f:c,l=a?c:f}var d,p=st.nodes(t,{reverse:a,from:s,to:l,pass:w=>{var[E]=w;return!i&&D.isVoid(t,E)}}),m=[];for(var[h,v]of p){var y=d&&z.compare(v,d[1])===0;if(r!=="highest"||!y){if(u(h,v))if(r==="lowest"&&y)d=[h,v];else{var g=r==="lowest"?d:[h,v];g&&(o?m.push(g):yield g),d=[h,v]}else if(o&&!y&&vt.isText(h))return}}r==="lowest"&&d&&(o?m.push(d):yield d),o&&(yield*m)}},normalize(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{force:n=!1}=e,r=a=>Av.get(a)||[];if(D.isNormalizing(t)){if(n){var o=Array.from(st.nodes(t),a=>{var[,i]=a;return i});Av.set(t,o)}r(t).length!==0&&D.withoutNormalizing(t,()=>{for(var a of r(t))if(st.has(t,a)){var i=D.node(t,a),[u,s]=i;St.isElement(u)&&u.children.length===0&&t.normalizeNode(i)}for(var l=42*r(t).length,c=0;r(t).length!==0;){if(c>l)throw new Error(`
23
+ Could not completely normalize the editor after `.concat(l,` iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.
24
+ `));var f=r(t).pop();if(st.has(t,f)){var d=D.node(t,f);t.normalizeNode(d)}c++}})}},parent(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=D.path(t,e,n),o=z.parent(r);return D.node(t,o)},path(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{depth:r,edge:o}=n;if(z.isPath(e)){if(o==="start"){var[,a]=st.first(t,e);e=a}else if(o==="end"){var[,i]=st.last(t,e);e=i}}return $.isRange(e)&&(e=o==="start"?$.start(e):o==="end"?$.end(e):z.common(e.anchor.path,e.focus.path)),Zt.isPoint(e)&&(e=e.path),r!=null&&(e=e.slice(0,r)),e},hasPath:(t,e)=>st.has(t,e),pathRef(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,o={current:e,affinity:r,unref(){var{current:a}=o;return D.pathRefs(t).delete(o),o.current=null,a}};return D.pathRefs(t).add(o),o},pathRefs(t){var e=N7.get(t);return e||(e=new Set,N7.set(t,e)),e},point(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{edge:r="start"}=n;if(z.isPath(e)){var o;if(r==="end"){var[,a]=st.last(t,e);o=a}else{var[,i]=st.first(t,e);o=i}var u=st.get(t,o);if(!vt.isText(u))throw new Error("Cannot get the ".concat(r," point in the node at path [").concat(e,"] because it has no ").concat(r," text node."));return{path:o,offset:r==="end"?u.text.length:0}}if($.isRange(e)){var[s,l]=$.edges(e);return r==="start"?s:l}return e},pointRef(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,o={current:e,affinity:r,unref(){var{current:a}=o;return D.pointRefs(t).delete(o),o.current=null,a}};return D.pointRefs(t).add(o),o},pointRefs(t){var e=I7.get(t);return e||(e=new Set,I7.set(t,e)),e},*positions(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=t.selection,unit:r="offset",reverse:o=!1,voids:a=!1}=e;if(n){var i=D.range(t,n),[u,s]=$.edges(i),l=o?s:u,c=!1,f="",d=0,p=0,m=0;for(var[h,v]of D.nodes(t,{at:n,reverse:o,voids:a})){if(St.isElement(h)){if(!a&&t.isVoid(h)){yield D.start(t,v);continue}if(t.isInline(h))continue;if(D.hasInlines(t,h)){var y=z.isAncestor(v,s.path)?s:D.end(t,v),g=z.isAncestor(v,u.path)?u:D.start(t,v);f=D.string(t,{anchor:g,focus:y},{voids:a}),c=!0}}if(vt.isText(h)){var w=z.equals(v,l.path);for(w?(p=o?l.offset:h.text.length-l.offset,m=l.offset):(p=h.text.length,m=o?p:0),(w||c||r==="offset")&&(yield{path:v,offset:m},c=!1);;){if(d===0){if(f==="")break;d=E(f,r,o),f=sw(f,d,o)[1]}if(m=o?m-d:m+d,(p-=d)<0){d=-p;break}d=0,yield{path:v,offset:m}}}}}function E(x,S,C){return S==="character"?uw(x,C):S==="word"?function(T){for(var A=arguments.length>1&&arguments[1]!==void 0&&arguments[1],k=0,M=!1;T.length>0;){var H=uw(T,A),[N,j]=sw(T,H,A);if(eZ(N,j,A))M=!0,k+=H;else{if(M)break;k+=H}T=j}return k}(x,C):S==="line"||S==="block"?x.length:1}},previous(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n="lowest",voids:r=!1}=e,{match:o,at:a=t.selection}=e;if(a){var i=D.before(t,a,{voids:r});if(i){var[,u]=D.first(t,[]),s=[i.path,u];if(z.isPath(a)&&a.length===0)throw new Error("Cannot get the previous node from the root node!");if(o==null)if(z.isPath(a)){var[l]=D.parent(t,a);o=f=>l.children.includes(f)}else o=()=>!0;var[c]=D.nodes(t,{reverse:!0,at:s,match:o,mode:n,voids:r});return c}}},range:(t,e,n)=>$.isRange(e)&&!n?e:{anchor:D.start(t,e),focus:D.end(t,n||e)},rangeRef(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,o={current:e,affinity:r,unref(){var{current:a}=o;return D.rangeRefs(t).delete(o),o.current=null,a}};return D.rangeRefs(t).add(o),o},rangeRefs(t){var e=j7.get(t);return e||(e=new Set,j7.set(t,e)),e},removeMark(t,e){t.removeMark(e)},setNormalizing(t,e){k7.set(t,e)},start:(t,e)=>D.point(t,e,{edge:"start"}),string(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:r=!1}=n,o=D.range(t,e),[a,i]=$.edges(o),u="";for(var[s,l]of D.nodes(t,{at:o,match:vt.isText,voids:r})){var c=s.text;z.equals(l,i.path)&&(c=c.slice(0,i.offset)),z.equals(l,a.path)&&(c=c.slice(a.offset)),u+=c}return u},unhangRange(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:r=!1}=n,[o,a]=$.edges(e);if(o.offset!==0||a.offset!==0||$.isCollapsed(e))return e;var i=D.above(t,{at:a,match:d=>D.isBlock(t,d)}),u=i?i[1]:[],s={anchor:D.start(t,[]),focus:a},l=!0;for(var[c,f]of D.nodes(t,{at:s,match:vt.isText,reverse:!0,voids:r}))if(l)l=!1;else if(c.text!==""||z.isBefore(f,u)){a={path:f,offset:c.text.length};break}return{anchor:o,focus:a}},void(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return D.above(t,Cl(Cl({},e),{},{match:n=>D.isVoid(t,n)}))},withoutNormalizing(t,e){var n=D.isNormalizing(t);D.setNormalizing(t,!1);try{e()}finally{D.setNormalizing(t,n)}D.normalize(t)}},xZ={isSpan:t=>Array.isArray(t)&&t.length===2&&t.every(z.isPath)},CZ=["children"],DZ=["text"],z7=new WeakMap,st={ancestor(t,e){var n=st.get(t,e);if(vt.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(e,"] because it refers to a text node instead: ").concat(n));return n},*ancestors(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var r of z.ancestors(e,n)){var o=[st.ancestor(t,r),r];yield o}},child(t,e){if(vt.isText(t))throw new Error("Cannot get the child of a text node: ".concat(JSON.stringify(t)));var n=t.children[e];if(n==null)throw new Error("Cannot get child at index `".concat(e,"` in node: ").concat(JSON.stringify(t)));return n},*children(t,e){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{reverse:r=!1}=n,o=st.ancestor(t,e),{children:a}=o,i=r?a.length-1:0;r?i>=0:i<a.length;){var u=st.child(o,i),s=e.concat(i);yield[u,s],i=r?i-1:i+1}},common(t,e,n){var r=z.common(e,n);return[st.get(t,r),r]},descendant(t,e){var n=st.get(t,e);if(D.isEditor(n))throw new Error("Cannot get the descendant node at path [".concat(e,"] because it refers to the root editor node instead: ").concat(n));return n},*descendants(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of st.nodes(t,e))r.length!==0&&(yield[n,r])},*elements(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of st.nodes(t,e))St.isElement(n)&&(yield[n,r])},extractProps:t=>St.isAncestor(t)?Ii(t,CZ):Ii(t,DZ),first(t,e){for(var n=e.slice(),r=st.get(t,n);r&&!vt.isText(r)&&r.children.length!==0;)r=r.children[0],n.push(0);return[r,n]},fragment(t,e){if(vt.isText(t))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(t)));var n=Ov({children:t.children},r=>{var[o,a]=$.edges(e),i=st.nodes(r,{reverse:!0,pass:d=>{var[,p]=d;return!$.includes(e,p)}});for(var[,u]of i){if(!$.includes(e,u)){var s=st.parent(r,u),l=u[u.length-1];s.children.splice(l,1)}if(z.equals(u,a.path)){var c=st.leaf(r,u);c.text=c.text.slice(0,a.offset)}if(z.equals(u,o.path)){var f=st.leaf(r,u);f.text=f.text.slice(o.offset)}}D.isEditor(r)&&(r.selection=null)});return n.children},get(t,e){for(var n=t,r=0;r<e.length;r++){var o=e[r];if(vt.isText(n)||!n.children[o])throw new Error("Cannot find a descendant at path [".concat(e,"] in node: ").concat(JSON.stringify(t)));n=n.children[o]}return n},has(t,e){for(var n=t,r=0;r<e.length;r++){var o=e[r];if(vt.isText(n)||!n.children[o])return!1;n=n.children[o]}return!0},isNode:t=>vt.isText(t)||St.isElement(t)||D.isEditor(t),isNodeList(t){if(!Array.isArray(t))return!1;var e=z7.get(t);if(e!==void 0)return e;var n=t.every(r=>st.isNode(r));return z7.set(t,n),n},last(t,e){for(var n=e.slice(),r=st.get(t,n);r&&!vt.isText(r)&&r.children.length!==0;){var o=r.children.length-1;r=r.children[o],n.push(o)}return[r,n]},leaf(t,e){var n=st.get(t,e);if(!vt.isText(n))throw new Error("Cannot get the leaf node at path [".concat(e,"] because it refers to a non-leaf node: ").concat(n));return n},*levels(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var r of z.levels(e,n)){var o=st.get(t,r);yield[o,r]}},matches:(t,e)=>St.isElement(t)&&St.isElementProps(e)&&St.matches(t,e)||vt.isText(t)&&vt.isTextProps(e)&&vt.matches(t,e),*nodes(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{pass:n,reverse:r=!1}=e,{from:o=[],to:a}=e,i=new Set,u=[],s=t;!a||!(r?z.isBefore(u,a):z.isAfter(u,a));)if(i.has(s)||(yield[s,u]),i.has(s)||vt.isText(s)||s.children.length===0||n!=null&&n([s,u])!==!1){if(u.length===0)break;if(!r){var l=z.next(u);if(st.has(t,l)){u=l,s=st.get(t,u);continue}}r&&u[u.length-1]!==0?(u=z.previous(u),s=st.get(t,u)):(u=z.parent(u),s=st.get(t,u),i.add(s))}else{i.add(s);var c=r?s.children.length-1:0;z.isAncestor(u,o)&&(c=o[u.length]),u=u.concat(c),s=st.get(t,u)}},parent(t,e){var n=z.parent(e),r=st.get(t,n);if(vt.isText(r))throw new Error("Cannot get the parent of path [".concat(e,"] because it does not exist in the root."));return r},string:t=>vt.isText(t)?t.text:t.children.map(st.string).join(""),*texts(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of st.nodes(t,e))vt.isText(n)&&(yield[n,r])}};function H7(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Sn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?H7(Object(n),!0).forEach(function(r){$o(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):H7(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var ma={isNodeOperation:t=>ma.isOperation(t)&&t.type.endsWith("_node"),isOperation(t){if(!er(t))return!1;switch(t.type){case"insert_node":case"remove_node":return z.isPath(t.path)&&st.isNode(t.node);case"insert_text":case"remove_text":return typeof t.offset=="number"&&typeof t.text=="string"&&z.isPath(t.path);case"merge_node":return typeof t.position=="number"&&z.isPath(t.path)&&er(t.properties);case"move_node":return z.isPath(t.path)&&z.isPath(t.newPath);case"set_node":return z.isPath(t.path)&&er(t.properties)&&er(t.newProperties);case"set_selection":return t.properties===null&&$.isRange(t.newProperties)||t.newProperties===null&&$.isRange(t.properties)||er(t.properties)&&er(t.newProperties);case"split_node":return z.isPath(t.path)&&typeof t.position=="number"&&er(t.properties);default:return!1}},isOperationList:t=>Array.isArray(t)&&t.every(e=>ma.isOperation(e)),isSelectionOperation:t=>ma.isOperation(t)&&t.type.endsWith("_selection"),isTextOperation:t=>ma.isOperation(t)&&t.type.endsWith("_text"),inverse(t){switch(t.type){case"insert_node":return Sn(Sn({},t),{},{type:"remove_node"});case"insert_text":return Sn(Sn({},t),{},{type:"remove_text"});case"merge_node":return Sn(Sn({},t),{},{type:"split_node",path:z.previous(t.path)});case"move_node":var{newPath:e,path:n}=t;if(z.equals(e,n))return t;if(z.isSibling(n,e))return Sn(Sn({},t),{},{path:e,newPath:n});var r=z.transform(n,t),o=z.transform(z.next(n),t);return Sn(Sn({},t),{},{path:r,newPath:o});case"remove_node":return Sn(Sn({},t),{},{type:"insert_node"});case"remove_text":return Sn(Sn({},t),{},{type:"insert_text"});case"set_node":var{properties:a,newProperties:i}=t;return Sn(Sn({},t),{},{properties:i,newProperties:a});case"set_selection":var{properties:u,newProperties:s}=t;return Sn(Sn({},t),{},u==null?{properties:s,newProperties:null}:s==null?{properties:null,newProperties:u}:{properties:s,newProperties:u});case"split_node":return Sn(Sn({},t),{},{type:"merge_node",path:z.next(t.path)})}}},z={ancestors(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=e,r=z.levels(t,e);return r=n?r.slice(1):r.slice(0,-1)},common(t,e){for(var n=[],r=0;r<t.length&&r<e.length;r++){var o=t[r];if(o!==e[r])break;n.push(o)}return n},compare(t,e){for(var n=Math.min(t.length,e.length),r=0;r<n;r++){if(t[r]<e[r])return-1;if(t[r]>e[r])return 1}return 0},endsAfter(t,e){var n=t.length-1,r=t.slice(0,n),o=e.slice(0,n),a=t[n],i=e[n];return z.equals(r,o)&&a>i},endsAt(t,e){var n=t.length,r=t.slice(0,n),o=e.slice(0,n);return z.equals(r,o)},endsBefore(t,e){var n=t.length-1,r=t.slice(0,n),o=e.slice(0,n),a=t[n],i=e[n];return z.equals(r,o)&&a<i},equals:(t,e)=>t.length===e.length&&t.every((n,r)=>n===e[r]),hasPrevious:t=>t[t.length-1]>0,isAfter:(t,e)=>z.compare(t,e)===1,isAncestor:(t,e)=>t.length<e.length&&z.compare(t,e)===0,isBefore:(t,e)=>z.compare(t,e)===-1,isChild:(t,e)=>t.length===e.length+1&&z.compare(t,e)===0,isCommon:(t,e)=>t.length<=e.length&&z.compare(t,e)===0,isDescendant:(t,e)=>t.length>e.length&&z.compare(t,e)===0,isParent:(t,e)=>t.length+1===e.length&&z.compare(t,e)===0,isPath:t=>Array.isArray(t)&&(t.length===0||typeof t[0]=="number"),isSibling(t,e){if(t.length!==e.length)return!1;var n=t.slice(0,-1),r=e.slice(0,-1);return t[t.length-1]!==e[e.length-1]&&z.equals(n,r)},levels(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=e,r=[],o=0;o<=t.length;o++)r.push(t.slice(0,o));return n&&r.reverse(),r},next(t){if(t.length===0)throw new Error("Cannot get the next path of a root path [".concat(t,"], because it has no next index."));var e=t[t.length-1];return t.slice(0,-1).concat(e+1)},parent(t){if(t.length===0)throw new Error("Cannot get the parent path of the root path [".concat(t,"]."));return t.slice(0,-1)},previous(t){if(t.length===0)throw new Error("Cannot get the previous path of a root path [".concat(t,"], because it has no previous index."));var e=t[t.length-1];if(e<=0)throw new Error("Cannot get the previous path of a first child path [".concat(t,"] because it would result in a negative index."));return t.slice(0,-1).concat(e-1)},relative(t,e){if(!z.isAncestor(e,t)&&!z.equals(t,e))throw new Error("Cannot get the relative path of [".concat(t,"] inside ancestor [").concat(e,"], because it is not above or equal to the path."));return t.slice(e.length)},transform(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Ov(t,r=>{var{affinity:o="forward"}=n;if(t&&(t==null?void 0:t.length)!==0){if(r===null)return null;switch(e.type){case"insert_node":var{path:a}=e;(z.equals(a,r)||z.endsBefore(a,r)||z.isAncestor(a,r))&&(r[a.length-1]+=1);break;case"remove_node":var{path:i}=e;if(z.equals(i,r)||z.isAncestor(i,r))return null;z.endsBefore(i,r)&&(r[i.length-1]-=1);break;case"merge_node":var{path:u,position:s}=e;z.equals(u,r)||z.endsBefore(u,r)?r[u.length-1]-=1:z.isAncestor(u,r)&&(r[u.length-1]-=1,r[u.length]+=s);break;case"split_node":var{path:l,position:c}=e;if(z.equals(l,r)){if(o==="forward")r[r.length-1]+=1;else if(o!=="backward")return null}else z.endsBefore(l,r)?r[l.length-1]+=1:z.isAncestor(l,r)&&t[l.length]>=c&&(r[l.length-1]+=1,r[l.length]-=c);break;case"move_node":var{path:f,newPath:d}=e;if(z.equals(f,d))return;if(z.isAncestor(f,r)||z.equals(f,r)){var p=d.slice();return z.endsBefore(f,d)&&f.length<d.length&&(p[f.length-1]-=1),p.concat(r.slice(f.length))}z.isSibling(f,d)&&(z.isAncestor(d,r)||z.equals(d,r))?z.endsBefore(f,r)?r[f.length-1]-=1:r[f.length-1]+=1:z.endsBefore(d,r)||z.equals(d,r)||z.isAncestor(d,r)?(z.endsBefore(f,r)&&(r[f.length-1]-=1),r[d.length-1]+=1):z.endsBefore(f,r)&&(z.equals(d,r)&&(r[d.length-1]+=1),r[f.length-1]-=1)}}})}},OZ={transform(t,e){var{current:n,affinity:r}=t;if(n!=null){var o=z.transform(n,e,{affinity:r});t.current=o,o==null&&t.unref()}}};function U7(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function _7(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?U7(Object(n),!0).forEach(function(r){$o(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):U7(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var Zt={compare(t,e){var n=z.compare(t.path,e.path);return n===0?t.offset<e.offset?-1:t.offset>e.offset?1:0:n},isAfter:(t,e)=>Zt.compare(t,e)===1,isBefore:(t,e)=>Zt.compare(t,e)===-1,equals:(t,e)=>t.offset===e.offset&&z.equals(t.path,e.path),isPoint:t=>er(t)&&typeof t.offset=="number"&&z.isPath(t.path),transform(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Ov(t,r=>{if(r===null)return null;var{affinity:o="forward"}=n,{path:a,offset:i}=r;switch(e.type){case"insert_node":case"move_node":r.path=z.transform(a,e,n);break;case"insert_text":z.equals(e.path,a)&&e.offset<=i&&(r.offset+=e.text.length);break;case"merge_node":z.equals(e.path,a)&&(r.offset+=e.position),r.path=z.transform(a,e,n);break;case"remove_text":z.equals(e.path,a)&&e.offset<=i&&(r.offset-=Math.min(i-e.offset,e.text.length));break;case"remove_node":if(z.equals(e.path,a)||z.isAncestor(e.path,a))return null;r.path=z.transform(a,e,n);break;case"split_node":if(z.equals(e.path,a)){if(e.position===i&&o==null)return null;(e.position<i||e.position===i&&o==="forward")&&(r.offset-=e.position,r.path=z.transform(a,e,_7(_7({},n),{},{affinity:"forward"})))}else r.path=z.transform(a,e,n)}})}},AZ={transform(t,e){var{current:n,affinity:r}=t;if(n!=null){var o=Zt.transform(n,e,{affinity:r});t.current=o,o==null&&t.unref()}}},TZ=["anchor","focus"];function G7(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}var $={edges(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=e,{anchor:r,focus:o}=t;return $.isBackward(t)===n?[r,o]:[o,r]},end(t){var[,e]=$.edges(t);return e},equals:(t,e)=>Zt.equals(t.anchor,e.anchor)&&Zt.equals(t.focus,e.focus),includes(t,e){if($.isRange(e)){if($.includes(t,e.anchor)||$.includes(t,e.focus))return!0;var[n,r]=$.edges(t),[o,a]=$.edges(e);return Zt.isBefore(n,o)&&Zt.isAfter(r,a)}var[i,u]=$.edges(t),s=!1,l=!1;return Zt.isPoint(e)?(s=Zt.compare(e,i)>=0,l=Zt.compare(e,u)<=0):(s=z.compare(e,i.path)>=0,l=z.compare(e,u.path)<=0),s&&l},intersection(t,e){var n=Ii(t,TZ),[r,o]=$.edges(t),[a,i]=$.edges(e),u=Zt.isBefore(r,a)?a:r,s=Zt.isBefore(o,i)?o:i;return Zt.isBefore(s,u)?null:function(l){for(var c=1;c<arguments.length;c++){var f=arguments[c]!=null?arguments[c]:{};c%2?G7(Object(f),!0).forEach(function(d){$o(l,d,f[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(f)):G7(Object(f)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(f,d))})}return l}({anchor:u,focus:s},n)},isBackward(t){var{anchor:e,focus:n}=t;return Zt.isAfter(e,n)},isCollapsed(t){var{anchor:e,focus:n}=t;return Zt.equals(e,n)},isExpanded:t=>!$.isCollapsed(t),isForward:t=>!$.isBackward(t),isRange:t=>er(t)&&Zt.isPoint(t.anchor)&&Zt.isPoint(t.focus),*points(t){yield[t.anchor,"anchor"],yield[t.focus,"focus"]},start(t){var[e]=$.edges(t);return e},transform(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Ov(t,r=>{if(r===null)return null;var o,a,{affinity:i="inward"}=n;if(i==="inward"){var u=$.isCollapsed(r);$.isForward(r)?(o="forward",a=u?o:"backward"):(o="backward",a=u?o:"forward")}else i==="outward"?$.isForward(r)?(o="backward",a="forward"):(o="forward",a="backward"):(o=i,a=i);var s=Zt.transform(r.anchor,e,{affinity:o}),l=Zt.transform(r.focus,e,{affinity:a});if(!s||!l)return null;r.anchor=s,r.focus=l})}},BZ={transform(t,e){var{current:n,affinity:r}=t;if(n!=null){var o=$.transform(n,e,{affinity:r});t.current=o,o==null&&t.unref()}}},W7=(t,e)=>{for(var n in t){var r=t[n],o=e[n];if(er(r)&&er(o)){if(!W7(r,o))return!1}else if(Array.isArray(r)&&Array.isArray(o)){if(r.length!==o.length)return!1;for(var a=0;a<r.length;a++)if(r[a]!==o[a])return!1}else if(r!==o)return!1}for(var i in e)if(t[i]===void 0&&e[i]!==void 0)return!1;return!0},PZ=["text"],FZ=["anchor","focus"];function K7(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function ji(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?K7(Object(n),!0).forEach(function(r){$o(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):K7(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var vt={equals(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{loose:r=!1}=n;function o(a){return Ii(a,PZ)}return W7(r?o(t):t,r?o(e):e)},isText:t=>er(t)&&typeof t.text=="string",isTextList:t=>Array.isArray(t)&&t.every(e=>vt.isText(e)),isTextProps:t=>t.text!==void 0,matches(t,e){for(var n in e)if(n!=="text"&&(!t.hasOwnProperty(n)||t[n]!==e[n]))return!1;return!0},decorations(t,e){var n=[ji({},t)];for(var r of e){var o=Ii(r,FZ),[a,i]=$.edges(r),u=[],s=0;for(var l of n){var{length:c}=l.text,f=s;if(s+=c,a.offset<=f&&i.offset>=s)Object.assign(l,o),u.push(l);else if(a.offset!==i.offset&&(a.offset===s||i.offset===f)||a.offset>s||i.offset<f||i.offset===f&&f!==0)u.push(l);else{var d=l,p=void 0,m=void 0;if(i.offset<s){var h=i.offset-f;m=ji(ji({},d),{},{text:d.text.slice(h)}),d=ji(ji({},d),{},{text:d.text.slice(0,h)})}if(a.offset>f){var v=a.offset-f;p=ji(ji({},d),{},{text:d.text.slice(0,v)}),d=ji(ji({},d),{},{text:d.text.slice(v)})}Object.assign(d,o),p&&u.push(p),u.push(d),m&&u.push(m)}}n=u}return n}};function Y7(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function nd(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Y7(Object(n),!0).forEach(function(r){$o(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Y7(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var kZ={transform(t,e){t.children=P7(t.children);var n=t.selection&&P7(t.selection);try{n=((r,o,a)=>{switch(a.type){case"insert_node":var{path:i,node:u}=a,s=st.parent(r,i),l=i[i.length-1];if(l>s.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(i,"] because the destination is past the end of the node."));if(s.children.splice(l,0,u),o)for(var[c,f]of $.points(o))o[f]=Zt.transform(c,a);break;case"insert_text":var{path:d,offset:p,text:m}=a;if(m.length===0)break;var h=st.leaf(r,d),v=h.text.slice(0,p),y=h.text.slice(p);if(h.text=v+m+y,o)for(var[g,w]of $.points(o))o[w]=Zt.transform(g,a);break;case"merge_node":var{path:E}=a,x=st.get(r,E),S=z.previous(E),C=st.get(r,S),T=st.parent(r,E),A=E[E.length-1];if(vt.isText(x)&&vt.isText(C))C.text+=x.text;else{if(vt.isText(x)||vt.isText(C))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(E,"] to nodes of different interfaces: ").concat(x," ").concat(C));C.children.push(...x.children)}if(T.children.splice(A,1),o)for(var[k,M]of $.points(o))o[M]=Zt.transform(k,a);break;case"move_node":var{path:H,newPath:N}=a;if(z.isAncestor(H,N))throw new Error("Cannot move a path [".concat(H,"] to new path [").concat(N,"] because the destination is inside itself."));var j=st.get(r,H),G=st.parent(r,H),V=H[H.length-1];G.children.splice(V,1);var J=z.transform(H,a),rt=st.get(r,z.parent(J)),it=J[J.length-1];if(rt.children.splice(it,0,j),o)for(var[W,O]of $.points(o))o[O]=Zt.transform(W,a);break;case"remove_node":var{path:B}=a,I=B[B.length-1];if(st.parent(r,B).children.splice(I,1),o)for(var[Y,et]of $.points(o)){var X=Zt.transform(Y,a);if(o!=null&&X!=null)o[et]=X;else{var ot=void 0,mt=void 0;for(var[bt,Pt]of st.texts(r)){if(z.compare(Pt,B)!==-1){mt=[bt,Pt];break}ot=[bt,Pt]}var tt=!1;ot&&mt&&(tt=z.equals(mt[1],B)?!z.hasPrevious(mt[1]):z.common(ot[1],B).length<z.common(mt[1],B).length),ot&&!tt?(Y.path=ot[1],Y.offset=ot[0].text.length):mt?(Y.path=mt[1],Y.offset=0):o=null}}break;case"remove_text":var{path:Mt,offset:Dt,text:ht}=a;if(ht.length===0)break;var kt=st.leaf(r,Mt),ye=kt.text.slice(0,Dt),zt=kt.text.slice(Dt+ht.length);if(kt.text=ye+zt,o)for(var[he,Te]of $.points(o))o[Te]=Zt.transform(he,a);break;case"set_node":var{path:ke,properties:Ut,newProperties:bn}=a;if(ke.length===0)throw new Error("Cannot set properties on the root node!");var Jn=st.get(r,ke);for(var lr in bn){if(lr==="children"||lr==="text")throw new Error('Cannot set the "'.concat(lr,'" property of nodes!'));var Do=bn[lr];Do==null?delete Jn[lr]:Jn[lr]=Do}for(var Qr in Ut)bn.hasOwnProperty(Qr)||delete Jn[Qr];break;case"set_selection":var{newProperties:Qn}=a;if(Qn==null)o=Qn;else{if(o==null){if(!$.isRange(Qn))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(Qn)," when there is no current selection."));o=nd({},Qn)}for(var cr in Qn){var K=Qn[cr];if(K==null){if(cr==="anchor"||cr==="focus")throw new Error('Cannot remove the "'.concat(cr,'" selection property'));delete o[cr]}else o[cr]=K}}break;case"split_node":var{path:U,position:Z,properties:nt}=a;if(U.length===0)throw new Error('Cannot apply a "split_node" operation at path ['.concat(U,"] because the root node cannot be split."));var gt,wt=st.get(r,U),Ft=st.parent(r,U),ae=U[U.length-1];if(vt.isText(wt)){var xe=wt.text.slice(0,Z),Bt=wt.text.slice(Z);wt.text=xe,gt=nd(nd({},nt),{},{text:Bt})}else{var Et=wt.children.slice(0,Z),Tt=wt.children.slice(Z);wt.children=Et,gt=nd(nd({},nt),{},{children:Tt})}if(Ft.children.splice(ae+1,0,gt),o)for(var[Jt,Wt]of $.points(o))o[Wt]=Zt.transform(Jt,a)}return o})(t,n,e)}finally{t.children=F7(t.children),t.selection=n?Uu(n)?F7(n):n:null}}},NZ=["text"],IZ=["children"];function X7(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Z7(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?X7(Object(n),!0).forEach(function(r){$o(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):X7(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var jZ={insertNodes(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};D.withoutNormalizing(t,()=>{var{hanging:r=!1,voids:o=!1,mode:a="lowest"}=n,{at:i,match:u,select:s}=n;if(st.isNode(e)&&(e=[e]),e.length!==0){var[l]=e;if(i||(i=t.selection?t.selection:t.children.length>0?D.end(t,[]):[0],s=!0),s==null&&(s=!1),$.isRange(i))if(r||(i=D.unhangRange(t,i)),$.isCollapsed(i))i=i.anchor;else{var[,c]=$.edges(i),f=D.pointRef(t,c);_.delete(t,{at:i}),i=f.unref()}if(Zt.isPoint(i)){u==null&&(u=vt.isText(l)?S=>vt.isText(S):t.isInline(l)?S=>vt.isText(S)||D.isInline(t,S):S=>D.isBlock(t,S));var[d]=D.nodes(t,{at:i.path,match:u,mode:a,voids:o});if(!d)return;var[,p]=d,m=D.pathRef(t,p),h=D.isEnd(t,i,p);_.splitNodes(t,{at:i,match:u,mode:a,voids:o});var v=m.unref();i=h?z.next(v):v}var y=z.parent(i),g=i[i.length-1];if(o||!D.void(t,{at:y})){for(var w of e){var E=y.concat(g);g++,t.apply({type:"insert_node",path:E,node:w}),i=z.next(i)}if(i=z.previous(i),s){var x=D.end(t,i);x&&_.select(t,x)}}}})},liftNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};D.withoutNormalizing(t,()=>{var{at:n=t.selection,mode:r="lowest",voids:o=!1}=e,{match:a}=e;if(a==null&&(a=z.isPath(n)?Dl(t,n):w=>D.isBlock(t,w)),n){var i=D.nodes(t,{at:n,match:a,mode:r,voids:o}),u=Array.from(i,w=>{var[,E]=w;return D.pathRef(t,E)});for(var s of u){var l=s.unref();if(l.length<2)throw new Error("Cannot lift node at a path [".concat(l,"] because it has a depth of less than `2`."));var c=D.node(t,z.parent(l)),[f,d]=c,p=l[l.length-1],{length:m}=f.children;if(m===1){var h=z.next(d);_.moveNodes(t,{at:l,to:h,voids:o}),_.removeNodes(t,{at:d,voids:o})}else if(p===0)_.moveNodes(t,{at:l,to:d,voids:o});else if(p===m-1){var v=z.next(d);_.moveNodes(t,{at:l,to:v,voids:o})}else{var y=z.next(l),g=z.next(d);_.splitNodes(t,{at:y,voids:o}),_.moveNodes(t,{at:l,to:g,voids:o})}}}})},mergeNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};D.withoutNormalizing(t,()=>{var{match:n,at:r=t.selection}=e,{hanging:o=!1,voids:a=!1,mode:i="lowest"}=e;if(r){if(n==null)if(z.isPath(r)){var[u]=D.parent(t,r);n=A=>u.children.includes(A)}else n=A=>D.isBlock(t,A);if(!o&&$.isRange(r)&&(r=D.unhangRange(t,r)),$.isRange(r))if($.isCollapsed(r))r=r.anchor;else{var[,s]=$.edges(r),l=D.pointRef(t,s);_.delete(t,{at:r}),r=l.unref(),e.at==null&&_.select(t,r)}var[c]=D.nodes(t,{at:r,match:n,voids:a,mode:i}),f=D.previous(t,{at:r,match:n,voids:a,mode:i});if(c&&f){var[d,p]=c,[m,h]=f;if(p.length!==0&&h.length!==0){var v,y,g=z.next(h),w=z.common(p,h),E=z.isSibling(p,h),x=Array.from(D.levels(t,{at:p}),A=>{var[k]=A;return k}).slice(w.length).slice(0,-1),S=D.above(t,{at:p,mode:"highest",match:A=>x.includes(A)&&J7(t,A)}),C=S&&D.pathRef(t,S[1]);if(vt.isText(d)&&vt.isText(m)){var T=Ii(d,NZ);y=m.text.length,v=T}else{if(!St.isElement(d)||!St.isElement(m))throw new Error("Cannot merge the node at path [".concat(p,"] with the previous sibling because it is not the same kind: ").concat(JSON.stringify(d)," ").concat(JSON.stringify(m)));T=Ii(d,IZ),y=m.children.length,v=T}E||_.moveNodes(t,{at:p,to:g,voids:a}),C&&_.removeNodes(t,{at:C.current,voids:a}),St.isElement(m)&&D.isEmpty(t,m)||vt.isText(m)&&m.text===""&&h[h.length-1]!==0?_.removeNodes(t,{at:h,voids:a}):t.apply({type:"merge_node",path:g,position:y,properties:v}),C&&C.unref()}}}})},moveNodes(t,e){D.withoutNormalizing(t,()=>{var{to:n,at:r=t.selection,mode:o="lowest",voids:a=!1}=e,{match:i}=e;if(r){i==null&&(i=z.isPath(r)?Dl(t,r):p=>D.isBlock(t,p));var u=D.pathRef(t,n),s=D.nodes(t,{at:r,match:i,mode:o,voids:a}),l=Array.from(s,p=>{var[,m]=p;return D.pathRef(t,m)});for(var c of l){var f=c.unref(),d=u.current;f.length!==0&&t.apply({type:"move_node",path:f,newPath:d}),u.current&&z.isSibling(d,f)&&z.isAfter(d,f)&&(u.current=z.next(u.current))}u.unref()}})},removeNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};D.withoutNormalizing(t,()=>{var{hanging:n=!1,voids:r=!1,mode:o="lowest"}=e,{at:a=t.selection,match:i}=e;if(a){i==null&&(i=z.isPath(a)?Dl(t,a):d=>D.isBlock(t,d)),!n&&$.isRange(a)&&(a=D.unhangRange(t,a));var u=D.nodes(t,{at:a,match:i,mode:o,voids:r}),s=Array.from(u,d=>{var[,p]=d;return D.pathRef(t,p)});for(var l of s){var c=l.unref();if(c){var[f]=D.node(t,c);t.apply({type:"remove_node",path:c,node:f})}}}})},setNodes(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};D.withoutNormalizing(t,()=>{var{match:r,at:o=t.selection}=n,{hanging:a=!1,mode:i="lowest",split:u=!1,voids:s=!1}=n;if(o){if(r==null&&(r=z.isPath(o)?Dl(t,o):x=>D.isBlock(t,x)),!a&&$.isRange(o)&&(o=D.unhangRange(t,o)),u&&$.isRange(o)){if($.isCollapsed(o)&&D.leaf(t,o.anchor)[0].text.length>0)return;var l=D.rangeRef(t,o,{affinity:"inward"}),[c,f]=$.edges(o),d=i==="lowest"?"lowest":"highest",p=D.isEnd(t,f,f.path);_.splitNodes(t,{at:f,match:r,mode:d,voids:s,always:!p});var m=D.isStart(t,c,c.path);_.splitNodes(t,{at:c,match:r,mode:d,voids:s,always:!m}),o=l.unref(),n.at==null&&_.select(t,o)}for(var[h,v]of D.nodes(t,{at:o,match:r,mode:i,voids:s})){var y={},g={};if(v.length!==0){var w=!1;for(var E in e)E!=="children"&&E!=="text"&&e[E]!==h[E]&&(w=!0,h.hasOwnProperty(E)&&(y[E]=h[E]),e[E]!=null&&(g[E]=e[E]));w&&t.apply({type:"set_node",path:v,properties:y,newProperties:g})}}}})},splitNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};D.withoutNormalizing(t,()=>{var{mode:n="lowest",voids:r=!1}=e,{match:o,at:a=t.selection,height:i=0,always:u=!1}=e;if(o==null&&(o=j=>D.isBlock(t,j)),$.isRange(a)&&(a=RZ(t,a)),z.isPath(a)){var s=a,l=D.point(t,s),[c]=D.parent(t,s);o=j=>j===c,i=l.path.length-s.length+1,a=l,u=!0}if(a){var f=D.pointRef(t,a,{affinity:"backward"}),[d]=D.nodes(t,{at:a,match:o,mode:n,voids:r});if(d){var p=D.void(t,{at:a,mode:"highest"});if(!r&&p){var[m,h]=p;if(St.isElement(m)&&t.isInline(m)){var v=D.after(t,h);if(!v){var y=z.next(h);_.insertNodes(t,{text:""},{at:y,voids:r}),v=D.point(t,y)}a=v,u=!0}i=a.path.length-h.length+1,u=!0}var g=D.pointRef(t,a),w=a.path.length-i,[,E]=d,x=a.path.slice(0,w),S=i===0?a.offset:a.path[w]+0;for(var[C,T]of D.levels(t,{at:x,reverse:!0,voids:r})){var A=!1;if(T.length<E.length||T.length===0||!r&&D.isVoid(t,C))break;var k=f.current,M=D.isEnd(t,k,T);if(u||!f||!D.isEdge(t,k,T)){A=!0;var H=st.extractProps(C);t.apply({type:"split_node",path:T,position:S,properties:H})}S=T[T.length-1]+(A||M?1:0)}if(e.at==null){var N=g.current||D.end(t,[]);_.select(t,N)}f.unref(),g.unref()}}})},unsetNodes(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Array.isArray(e)||(e=[e]);var r={};for(var o of e)r[o]=null;_.setNodes(t,r,n)},unwrapNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};D.withoutNormalizing(t,()=>{var{mode:n="lowest",split:r=!1,voids:o=!1}=e,{at:a=t.selection,match:i}=e;if(a){i==null&&(i=z.isPath(a)?Dl(t,a):d=>D.isBlock(t,d)),z.isPath(a)&&(a=D.range(t,a));var u=$.isRange(a)?D.rangeRef(t,a):null,s=D.nodes(t,{at:a,match:i,mode:n,voids:o}),l=Array.from(s,d=>{var[,p]=d;return D.pathRef(t,p)}).reverse(),c=function(d){var p=d.unref(),[m]=D.node(t,p),h=D.range(t,p);r&&u&&(h=$.intersection(u.current,h)),_.liftNodes(t,{at:h,match:v=>St.isAncestor(m)&&m.children.includes(v),voids:o})};for(var f of l)c(f);u&&u.unref()}})},wrapNodes(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};D.withoutNormalizing(t,()=>{var{mode:r="lowest",split:o=!1,voids:a=!1}=n,{match:i,at:u=t.selection}=n;if(u){if(i==null&&(i=z.isPath(u)?Dl(t,u):t.isInline(e)?v=>D.isInline(t,v)||vt.isText(v):v=>D.isBlock(t,v)),o&&$.isRange(u)){var[s,l]=$.edges(u),c=D.rangeRef(t,u,{affinity:"inward"});_.splitNodes(t,{at:l,match:i,voids:a}),_.splitNodes(t,{at:s,match:i,voids:a}),u=c.unref(),n.at==null&&_.select(t,u)}var f=Array.from(D.nodes(t,{at:u,match:t.isInline(e)?v=>D.isBlock(t,v):v=>D.isEditor(v),mode:"lowest",voids:a}));for(var[,d]of f){var p=$.isRange(u)?$.intersection(u,D.range(t,d)):u;if(p){var m=Array.from(D.nodes(t,{at:p,match:i,mode:r,voids:a}));if(m.length>0){var h=function(){var[v]=m,y=m[m.length-1],[,g]=v,[,w]=y;if(g.length===0&&w.length===0)return"continue";var E=z.equals(g,w)?z.parent(g):z.common(g,w),x=D.range(t,g,w),S=D.node(t,E),[C]=S,T=E.length+1,A=z.next(w.slice(0,T)),k=Z7(Z7({},e),{},{children:[]});_.insertNodes(t,k,{at:A,voids:a}),_.moveNodes(t,{at:x,match:M=>St.isAncestor(C)&&C.children.includes(M),to:A.concat(0),voids:a})}();if(h==="continue")continue}}}}})}},J7=(t,e)=>{if(St.isElement(e)){var n=e;return!!D.isVoid(t,e)||n.children.length===1&&J7(t,n.children[0])}return!D.isEditor(e)},RZ=(t,e)=>{if($.isCollapsed(e))return e.anchor;var[,n]=$.edges(e),r=D.pointRef(t,n);return _.delete(t,{at:e}),r.unref()},Dl=(t,e)=>{var[n]=D.node(t,e);return r=>r===n};function Q7(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function $7(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Q7(Object(n),!0).forEach(function(r){$o(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Q7(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var LZ={collapse(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{edge:n="anchor"}=e,{selection:r}=t;if(r){if(n==="anchor")_.select(t,r.anchor);else if(n==="focus")_.select(t,r.focus);else if(n==="start"){var[o]=$.edges(r);_.select(t,o)}else if(n==="end"){var[,a]=$.edges(r);_.select(t,a)}}},deselect(t){var{selection:e}=t;e&&t.apply({type:"set_selection",properties:e,newProperties:null})},move(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:n}=t,{distance:r=1,unit:o="character",reverse:a=!1}=e,{edge:i=null}=e;if(n){i==="start"&&(i=$.isBackward(n)?"focus":"anchor"),i==="end"&&(i=$.isBackward(n)?"anchor":"focus");var{anchor:u,focus:s}=n,l={distance:r,unit:o},c={};if(i==null||i==="anchor"){var f=a?D.before(t,u,l):D.after(t,u,l);f&&(c.anchor=f)}if(i==null||i==="focus"){var d=a?D.before(t,s,l):D.after(t,s,l);d&&(c.focus=d)}_.setSelection(t,c)}},select(t,e){var{selection:n}=t;if(e=D.range(t,e),n)_.setSelection(t,e);else{if(!$.isRange(e))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(JSON.stringify(e)));t.apply({type:"set_selection",properties:n,newProperties:e})}},setPoint(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{selection:r}=t,{edge:o="both"}=n;if(r){o==="start"&&(o=$.isBackward(r)?"focus":"anchor"),o==="end"&&(o=$.isBackward(r)?"anchor":"focus");var{anchor:a,focus:i}=r,u=o==="anchor"?a:i;_.setSelection(t,{[o==="anchor"?"anchor":"focus"]:$7($7({},u),e)})}},setSelection(t,e){var{selection:n}=t,r={},o={};if(n){for(var a in e)(a==="anchor"&&e.anchor!=null&&!Zt.equals(e.anchor,n.anchor)||a==="focus"&&e.focus!=null&&!Zt.equals(e.focus,n.focus)||a!=="anchor"&&a!=="focus"&&e[a]!==n[a])&&(r[a]=n[a],o[a]=e[a]);Object.keys(r).length>0&&t.apply({type:"set_selection",properties:r,newProperties:o})}}},MZ={delete(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};D.withoutNormalizing(t,()=>{var{reverse:n=!1,unit:r="character",distance:o=1,voids:a=!1}=e,{at:i=t.selection,hanging:u=!1}=e;if(i){if($.isRange(i)&&$.isCollapsed(i)&&(i=i.anchor),Zt.isPoint(i)){var s=D.void(t,{at:i,mode:"highest"});if(!a&&s){var[,l]=s;i=l}else{var c={unit:r,distance:o};i={anchor:i,focus:n?D.before(t,i,c)||D.start(t,[]):D.after(t,i,c)||D.end(t,[])},u=!0}}if(z.isPath(i))_.removeNodes(t,{at:i,voids:a});else if(!$.isCollapsed(i)){if(!u){var[,f]=$.edges(i),d=D.end(t,[]);Zt.equals(f,d)||(i=D.unhangRange(t,i,{voids:a}))}var[p,m]=$.edges(i),h=D.above(t,{match:mt=>D.isBlock(t,mt),at:p,voids:a}),v=D.above(t,{match:mt=>D.isBlock(t,mt),at:m,voids:a}),y=h&&v&&!z.equals(h[1],v[1]),g=z.equals(p.path,m.path),w=a?null:D.void(t,{at:p,mode:"highest"}),E=a?null:D.void(t,{at:m,mode:"highest"});if(w){var x=D.before(t,p);x&&h&&z.isAncestor(h[1],x.path)&&(p=x)}if(E){var S=D.after(t,m);S&&v&&z.isAncestor(v[1],S.path)&&(m=S)}var C,T=[];for(var A of D.nodes(t,{at:i,voids:a})){var[k,M]=A;C&&z.compare(M,C)===0||(!a&&D.isVoid(t,k)||!z.isCommon(M,p.path)&&!z.isCommon(M,m.path))&&(T.push(A),C=M)}var H=Array.from(T,mt=>{var[,bt]=mt;return D.pathRef(t,bt)}),N=D.pointRef(t,p),j=D.pointRef(t,m);if(!g&&!w){var G=N.current,[V]=D.leaf(t,G),{path:J}=G,{offset:rt}=p,it=V.text.slice(rt);it.length>0&&t.apply({type:"remove_text",path:J,offset:rt,text:it})}for(var W of H){var O=W.unref();_.removeNodes(t,{at:O,voids:a})}if(!E){var B=j.current,[I]=D.leaf(t,B),{path:Y}=B,et=g?p.offset:0,X=I.text.slice(et,m.offset);X.length>0&&t.apply({type:"remove_text",path:Y,offset:et,text:X})}!g&&y&&j.current&&N.current&&_.mergeNodes(t,{at:j.current,hanging:!0,voids:a});var ot=n?N.unref()||j.unref():j.unref()||N.unref();e.at==null&&ot&&_.select(t,ot)}}})},insertFragment(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};D.withoutNormalizing(t,()=>{var{hanging:r=!1,voids:o=!1}=n,{at:a=t.selection}=n;if(e.length&&a){if($.isRange(a))if(r||(a=D.unhangRange(t,a)),$.isCollapsed(a))a=a.anchor;else{var[,i]=$.edges(a);if(!o&&D.void(t,{at:i}))return;var u=D.pointRef(t,i);_.delete(t,{at:a}),a=u.unref()}else z.isPath(a)&&(a=D.start(t,a));if(o||!D.void(t,{at:a})){var s=D.above(t,{at:a,match:B=>D.isInline(t,B),mode:"highest",voids:o});if(s){var[,l]=s;D.isEnd(t,a,l)?a=D.after(t,l):D.isStart(t,a,l)&&(a=D.before(t,l))}var c=D.above(t,{match:B=>D.isBlock(t,B),at:a,voids:o}),[,f]=c,d=D.isStart(t,a,f),p=D.isEnd(t,a,f),m=d&&p,h=!d||d&&p,v=!p,[,y]=st.first({children:e},[]),[,g]=st.last({children:e},[]),w=[],E=B=>{var[I,Y]=B;return Y.length!==0&&(!!m||!(h&&z.isAncestor(Y,y)&&St.isElement(I)&&!t.isVoid(I)&&!t.isInline(I))&&!(v&&z.isAncestor(Y,g)&&St.isElement(I)&&!t.isVoid(I)&&!t.isInline(I)))};for(var x of st.nodes({children:e},{pass:E}))E(x)&&w.push(x);var S=[],C=[],T=[],A=!0,k=!1;for(var[M]of w)St.isElement(M)&&!t.isInline(M)?(A=!1,k=!0,C.push(M)):A?S.push(M):T.push(M);var[H]=D.nodes(t,{at:a,match:B=>vt.isText(B)||D.isInline(t,B),mode:"highest",voids:o}),[,N]=H,j=D.isStart(t,a,N),G=D.isEnd(t,a,N),V=D.pathRef(t,p?z.next(f):f),J=D.pathRef(t,G?z.next(N):N),rt=D.pathRef(t,f);_.splitNodes(t,{at:a,match:B=>k?D.isBlock(t,B):vt.isText(B)||D.isInline(t,B),mode:k?"lowest":"highest",voids:o});var it=D.pathRef(t,!j||j&&G?z.next(N):N);if(_.insertNodes(t,S,{at:it.current,match:B=>vt.isText(B)||D.isInline(t,B),mode:"highest",voids:o}),m&&C.length&&_.delete(t,{at:rt.unref(),voids:o}),_.insertNodes(t,C,{at:V.current,match:B=>D.isBlock(t,B),mode:"lowest",voids:o}),_.insertNodes(t,T,{at:J.current,match:B=>vt.isText(B)||D.isInline(t,B),mode:"highest",voids:o}),!n.at){var W;W=T.length>0?z.previous(J.current):C.length>0?z.previous(V.current):z.previous(it.current);var O=D.end(t,W);_.select(t,O)}it.unref(),V.unref(),J.unref()}}})},insertText(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};D.withoutNormalizing(t,()=>{var{voids:r=!1}=n,{at:o=t.selection}=n;if(o){if(z.isPath(o)&&(o=D.range(t,o)),$.isRange(o))if($.isCollapsed(o))o=o.anchor;else{var a=$.end(o);if(!r&&D.void(t,{at:a}))return;var i=D.pointRef(t,a);_.delete(t,{at:o,voids:r}),o=i.unref(),_.setSelection(t,{anchor:o,focus:o})}if(r||!D.void(t,{at:o})){var{path:u,offset:s}=o;e.length>0&&t.apply({type:"insert_text",path:u,offset:s,text:e})}}})}};function q7(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Bv(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?q7(Object(n),!0).forEach(function(r){$o(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):q7(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var _=Bv(Bv(Bv(Bv({},kZ),jZ),LZ),MZ),lw="[object Map]",cw="[object Set]",VZ=/^\[object .+?Constructor\]$/,zZ=/^(?:0|[1-9]\d*)$/,HZ="[\\ud800-\\udfff]",fw="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",dw="\\ud83c[\\udffb-\\udfff]",t9="[^\\ud800-\\udfff]",e9="(?:\\ud83c[\\udde6-\\uddff]){2}",n9="[\\ud800-\\udbff][\\udc00-\\udfff]",r9="(?:"+fw+"|"+dw+")?",UZ="[\\ufe0e\\ufe0f]?"+r9+("(?:\\u200d(?:"+[t9,e9,n9].join("|")+")[\\ufe0e\\ufe0f]?"+r9+")*"),_Z="(?:"+[t9+fw+"?",fw,e9,n9,HZ].join("|")+")",GZ=RegExp(dw+"(?="+dw+")|"+_Z+UZ,"g"),WZ=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),KZ=typeof Be=="object"&&Be&&Be.Object===Object&&Be,YZ=typeof self=="object"&&self&&self.Object===Object&&self,Wu=KZ||YZ||Function("return this")();function XZ(t,e){return function(n,r){for(var o=-1,a=n?n.length:0,i=Array(a);++o<a;)i[o]=r(n[o],o,n);return i}(e,function(n){return t[n]})}function ZZ(t){var e=-1,n=Array(t.size);return t.forEach(function(r,o){n[++e]=[o,r]}),n}function JZ(t){var e=-1,n=Array(t.size);return t.forEach(function(r){n[++e]=r}),n}function QZ(t){return function(e){return WZ.test(e)}(t)?function(e){return e.match(GZ)||[]}(t):function(e){return e.split("")}(t)}var o9,i9,$Z=Function.prototype,Pv=Object.prototype,pw=Wu["__core-js_shared__"],a9=function(){var t=/[^.]+$/.exec(pw&&pw.keys&&pw.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),u9=$Z.toString,Fv=Pv.hasOwnProperty,rd=Pv.toString,qZ=RegExp("^"+u9.call(Fv).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),s9=Wu.Symbol,hw=s9?s9.iterator:void 0,tJ=Pv.propertyIsEnumerable,eJ=(o9=Object.keys,i9=Object,function(t){return o9(i9(t))}),gw=od(Wu,"DataView"),vw=od(Wu,"Map"),mw=od(Wu,"Promise"),yw=od(Wu,"Set"),bw=od(Wu,"WeakMap"),nJ=Yu(gw),rJ=Yu(vw),oJ=Yu(mw),iJ=Yu(yw),aJ=Yu(bw);function uJ(t,e){var n=l9(t)||function(i){return function(u){return d9(u)&&ww(u)}(i)&&Fv.call(i,"callee")&&(!tJ.call(i,"callee")||rd.call(i)=="[object Arguments]")}(t)?function(i,u){for(var s=-1,l=Array(i);++s<i;)l[s]=u(s);return l}(t.length,String):[],r=n.length,o=!!r;for(var a in t)!Fv.call(t,a)||o&&(a=="length"||cJ(a,r))||n.push(a);return n}function sJ(t){if(!f9(t)||function(n){return!!a9&&a9 in n}(t))return!1;var e=c9(t)||function(n){var r=!1;if(n!=null&&typeof n.toString!="function")try{r=!!(n+"")}catch{}return r}(t)?qZ:VZ;return e.test(Yu(t))}function lJ(t){if(n=(e=t)&&e.constructor,r=typeof n=="function"&&n.prototype||Pv,e!==r)return eJ(t);var e,n,r,o=[];for(var a in Object(t))Fv.call(t,a)&&a!="constructor"&&o.push(a);return o}function od(t,e){var n=function(r,o){return r==null?void 0:r[o]}(t,e);return sJ(n)?n:void 0}var Ku=function(t){return rd.call(t)};function cJ(t,e){return!!(e=e??9007199254740991)&&(typeof t=="number"||zZ.test(t))&&t>-1&&t%1==0&&t<e}function Yu(t){if(t!=null){try{return u9.call(t)}catch{}try{return t+""}catch{}}return""}(gw&&Ku(new gw(new ArrayBuffer(1)))!="[object DataView]"||vw&&Ku(new vw)!=lw||mw&&Ku(mw.resolve())!="[object Promise]"||yw&&Ku(new yw)!=cw||bw&&Ku(new bw)!="[object WeakMap]")&&(Ku=function(t){var e=rd.call(t),n=e=="[object Object]"?t.constructor:void 0,r=n?Yu(n):void 0;if(r)switch(r){case nJ:return"[object DataView]";case rJ:return lw;case oJ:return"[object Promise]";case iJ:return cw;case aJ:return"[object WeakMap]"}return e});var l9=Array.isArray;function ww(t){return t!=null&&function(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=9007199254740991}(t.length)&&!c9(t)}function c9(t){var e=f9(t)?rd.call(t):"";return e=="[object Function]"||e=="[object GeneratorFunction]"}function f9(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function d9(t){return!!t&&typeof t=="object"}function fJ(t){return t?XZ(t,function(e){return ww(e)?uJ(e):lJ(e)}(t)):[]}var p9=function(t){if(!t)return[];if(ww(t))return function(n){return typeof n=="string"||!l9(n)&&d9(n)&&rd.call(n)=="[object String]"}(t)?QZ(t):function(n,r){var o=-1,a=n.length;for(r||(r=Array(a));++o<a;)r[o]=n[o];return r}(t);if(hw&&t[hw])return function(n){for(var r,o=[];!(r=n.next()).done;)o.push(r.value);return o}(t[hw]());var e=Ku(t);return(e==lw?ZZ:e==cw?JZ:fJ)(t)};function h9(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function Ew(t,e){t===void 0&&(t={}),e===void 0&&(e={}),Object.keys(e).forEach(function(n){t[n]===void 0?t[n]=e[n]:h9(e[n])&&h9(t[n])&&Object.keys(e[n]).length>0&&Ew(t[n],e[n])})}var g9={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function id(){var t=typeof document<"u"?document:{};return Ew(t,g9),t}var dJ={document:g9,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(t){return typeof setTimeout>"u"?(t(),null):setTimeout(t,0)},cancelAnimationFrame:function(t){typeof setTimeout<"u"&&clearTimeout(t)}};function Xu(){var t=typeof window<"u"?window:{};return Ew(t,dJ),t}function Sw(t){return Sw=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Sw(t)}function kv(t,e){return kv=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},kv(t,e)}function pJ(){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 xw(t,e,n){return xw=pJ()?Reflect.construct:function(r,o,a){var i=[null];i.push.apply(i,o);var u=new(Function.bind.apply(r,i));return a&&kv(u,a.prototype),u},xw.apply(null,arguments)}function Cw(t){var e=typeof Map=="function"?new Map:void 0;return Cw=function(n){if(n===null||!function(o){return Function.toString.call(o).indexOf("[native code]")!==-1}(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(e!==void 0){if(e.has(n))return e.get(n);e.set(n,r)}function r(){return xw(n,arguments,Sw(this).constructor)}return r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),kv(r,n)},Cw(t)}var ya=function(t){var e,n;function r(o){var a,i,u;return a=t.call.apply(t,[this].concat(o))||this,i=function(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}(a),u=i.__proto__,Object.defineProperty(i,"__proto__",{get:function(){return u},set:function(s){u.__proto__=s}}),a}return n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,r}(Cw(Array));function Nv(t){t===void 0&&(t=[]);var e=[];return t.forEach(function(n){Array.isArray(n)?e.push.apply(e,Nv(n)):e.push(n)}),e}function v9(t,e){return Array.prototype.filter.call(t,e)}function F(t,e){var n=Xu(),r=id(),o=[];if(!e&&t instanceof ya)return t;if(!t)return new ya(o);if(typeof t=="string"){var a=t.trim();if(a.indexOf("<")>=0&&a.indexOf(">")>=0){var i="div";a.indexOf("<li")===0&&(i="ul"),a.indexOf("<tr")===0&&(i="tbody"),a.indexOf("<td")!==0&&a.indexOf("<th")!==0||(i="tr"),a.indexOf("<tbody")===0&&(i="table"),a.indexOf("<option")===0&&(i="select");var u=r.createElement(i);u.innerHTML=a;for(var s=0;s<u.childNodes.length;s+=1)o.push(u.childNodes[s])}else o=function(l,c){if(typeof l!="string")return[l];for(var f=[],d=c.querySelectorAll(l),p=0;p<d.length;p+=1)f.push(d[p]);return f}(t.trim(),e||r)}else if(t.nodeType||t===n||t===r)o.push(t);else if(Array.isArray(t)){if(t instanceof ya)return t;o=t}return new ya(function(l){for(var c=[],f=0;f<l.length;f+=1)c.indexOf(l[f])===-1&&c.push(l[f]);return c}(o))}function Ol(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=Nv(e.map(function(o){return o.split(" ")}));return this.forEach(function(o){var a;(a=o.classList).add.apply(a,r)}),this}function Al(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=Nv(e.map(function(o){return o.split(" ")}));return this.forEach(function(o){var a;(a=o.classList).remove.apply(a,r)}),this}function Tl(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=Nv(e.map(function(o){return o.split(" ")}));return v9(this,function(o){return r.filter(function(a){return o.classList.contains(a)}).length>0}).length>0}function io(t,e){if(arguments.length===1&&typeof t=="string")return this[0]?this[0].getAttribute(t):void 0;for(var n=0;n<this.length;n+=1)if(arguments.length===2)this[n].setAttribute(t,e);else for(var r in t)this[n][r]=t[r],this[n].setAttribute(r,t[r]);return this}function Iv(t){for(var e=0;e<this.length;e+=1)this[e].removeAttribute(t);return this}function Bl(){var t=this[0];if(t){var e,n={};if(t.dataset)for(var r in t.dataset)n[r]=t.dataset[r];else for(var o=0;o<t.attributes.length;o+=1){var a=t.attributes[o];a.name.indexOf("data-")>=0&&(n[e=a.name.split("data-")[1],e.toLowerCase().replace(/-(.)/g,function(u,s){return s.toUpperCase()})]=a.value)}for(var i in n)n[i]==="false"?n[i]=!1:n[i]==="true"?n[i]=!0:parseFloat(n[i])===1*n[i]&&(n[i]*=1);return n}}function qo(t){if(t===void 0){var e=this[0];if(!e)return;if(e.multiple&&e.nodeName.toLowerCase()==="select"){for(var n=[],r=0;r<e.selectedOptions.length;r+=1)n.push(e.selectedOptions[r].value);return n}return e.value}for(var o=0;o<this.length;o+=1){var a=this[o];if(Array.isArray(t)&&a.multiple&&a.nodeName.toLowerCase()==="select")for(var i=0;i<a.options.length;i+=1)a.options[i].selected=t.indexOf(a.options[i].value)>=0;else a.value=t}return this}function ti(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e[0],o=e[1],a=e[2],i=e[3];function u(h){var v=h.target;if(v){var y=h.target.dom7EventData||[];if(y.indexOf(h)<0&&y.unshift(h),F(v).is(o))a.apply(v,y);else for(var g=F(v).parents(),w=0;w<g.length;w+=1)F(g[w]).is(o)&&a.apply(g[w],y)}}function s(h){var v=h&&h.target&&h.target.dom7EventData||[];v.indexOf(h)<0&&v.unshift(h),a.apply(this,v)}typeof e[1]=="function"&&(r=e[0],a=e[1],i=e[2],o=void 0),i||(i=!1);for(var l,c=r.split(" "),f=0;f<this.length;f+=1){var d=this[f];if(o)for(l=0;l<c.length;l+=1){var p=c[l];d.dom7LiveListeners||(d.dom7LiveListeners={}),d.dom7LiveListeners[p]||(d.dom7LiveListeners[p]=[]),d.dom7LiveListeners[p].push({listener:a,proxyListener:u}),d.addEventListener(p,u,i)}else for(l=0;l<c.length;l+=1){var m=c[l];d.dom7Listeners||(d.dom7Listeners={}),d.dom7Listeners[m]||(d.dom7Listeners[m]=[]),d.dom7Listeners[m].push({listener:a,proxyListener:s}),d.addEventListener(m,s,i)}}return this}function m9(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e[0],o=e[1],a=e[2],i=e[3];typeof e[1]=="function"&&(r=e[0],a=e[1],i=e[2],o=void 0),i||(i=!1);for(var u=r.split(" "),s=0;s<u.length;s+=1)for(var l=u[s],c=0;c<this.length;c+=1){var f=this[c],d=void 0;if(!o&&f.dom7Listeners?d=f.dom7Listeners[l]:o&&f.dom7LiveListeners&&(d=f.dom7LiveListeners[l]),d&&d.length)for(var p=d.length-1;p>=0;p-=1){var m=d[p];a&&m.listener===a||a&&m.listener&&m.listener.dom7proxy&&m.listener.dom7proxy===a?(f.removeEventListener(l,m.proxyListener,i),d.splice(p,1)):a||(f.removeEventListener(l,m.proxyListener,i),d.splice(p,1))}}return this}function jv(){var t=Xu();return this[0]===t?t.innerWidth:this.length>0?parseFloat(this.css("width")):null}function Rv(){var t=Xu();return this[0]===t?t.innerHeight:this.length>0?parseFloat(this.css("height")):null}function y9(){if(this.length>0){var t=Xu(),e=id(),n=this[0],r=n.getBoundingClientRect(),o=e.body,a=n.clientTop||o.clientTop||0,i=n.clientLeft||o.clientLeft||0,u=n===t?t.scrollY:n.scrollTop,s=n===t?t.scrollX:n.scrollLeft;return{top:r.top+u-a,left:r.left+s-i}}return null}function Pl(){for(var t=0;t<this.length;t+=1)this[t].style.display="none";return this}function Lv(){for(var t=Xu(),e=0;e<this.length;e+=1){var n=this[e];n.style.display==="none"&&(n.style.display=""),t.getComputedStyle(n,null).getPropertyValue("display")==="none"&&(n.style.display="block")}return this}function Mv(t,e){var n,r=Xu();if(arguments.length===1){if(typeof t!="string"){for(n=0;n<this.length;n+=1)for(var o in t)this[n].style[o]=t[o];return this}if(this[0])return r.getComputedStyle(this[0],null).getPropertyValue(t)}if(arguments.length===2&&typeof t=="string"){for(n=0;n<this.length;n+=1)this[n].style[t]=e;return this}return this}function Vv(t){return t?(this.forEach(function(e,n){t.apply(e,[e,n])}),this):this}function b9(t){return F(v9(this,t))}function ba(t){if(t===void 0)return this[0]?this[0].innerHTML:null;for(var e=0;e<this.length;e+=1)this[e].innerHTML=t;return this}function zv(t){if(t===void 0)return this[0]?this[0].textContent.trim():null;for(var e=0;e<this.length;e+=1)this[e].textContent=t;return this}function w9(t){var e,n,r=Xu(),o=id(),a=this[0];if(!a||t===void 0)return!1;if(typeof t=="string"){if(a.matches)return a.matches(t);if(a.webkitMatchesSelector)return a.webkitMatchesSelector(t);if(a.msMatchesSelector)return a.msMatchesSelector(t);for(e=F(t),n=0;n<e.length;n+=1)if(e[n]===a)return!0;return!1}if(t===o)return a===o;if(t===r)return a===r;if(t.nodeType||t instanceof ya){for(e=t.nodeType?[t]:t,n=0;n<e.length;n+=1)if(e[n]===a)return!0;return!1}return!1}function ao(){for(var t,e=id(),n=0;n<arguments.length;n+=1){t=n<0||arguments.length<=n?void 0:arguments[n];for(var r=0;r<this.length;r+=1)if(typeof t=="string"){var o=e.createElement("div");for(o.innerHTML=t;o.firstChild;)this[r].appendChild(o.firstChild)}else if(t instanceof ya)for(var a=0;a<t.length;a+=1)this[r].appendChild(t[a]);else this[r].appendChild(t)}return this}function E9(t){var e,n,r=id();for(e=0;e<this.length;e+=1)if(typeof t=="string"){var o=r.createElement("div");for(o.innerHTML=t,n=o.childNodes.length-1;n>=0;n-=1)this[e].insertBefore(o.childNodes[n],this[e].childNodes[0])}else if(t instanceof ya)for(n=0;n<t.length;n+=1)this[e].insertBefore(t[n],this[e].childNodes[0]);else this[e].insertBefore(t,this[e].childNodes[0]);return this}function Fl(t){for(var e=[],n=0;n<this.length;n+=1)this[n].parentNode!==null&&(t?F(this[n].parentNode).is(t)&&e.push(this[n].parentNode):e.push(this[n].parentNode));return F(e)}function Hv(t){for(var e=[],n=0;n<this.length;n+=1)for(var r=this[n].parentNode;r;)t?F(r).is(t)&&e.push(r):e.push(r),r=r.parentNode;return F(e)}function kl(t){for(var e=[],n=0;n<this.length;n+=1)for(var r=this[n].querySelectorAll(t),o=0;o<r.length;o+=1)e.push(r[o]);return F(e)}function Nl(t){for(var e=[],n=0;n<this.length;n+=1)for(var r=this[n].children,o=0;o<r.length;o+=1)t&&!F(r[o]).is(t)||e.push(r[o]);return F(e)}function Il(){for(var t=0;t<this.length;t+=1)this[t].parentNode&&this[t].parentNode.removeChild(this[t]);return this}function jl(){for(var t=0;t<this.length;t+=1){var e=this[t];if(e.nodeType===1){for(var n=0;n<e.childNodes.length;n+=1)e.childNodes[n].parentNode&&e.childNodes[n].parentNode.removeChild(e.childNodes[n]);e.textContent=""}}return this}F.fn=ya.prototype;var hJ="resize scroll".split(" ");function S9(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];if(n[0]===void 0){for(var o=0;o<this.length;o+=1)hJ.indexOf(t)<0&&(t in this[o]?this[o][t]():F(this[o]).trigger(t));return this}return this.on.apply(this,[t].concat(n))}}var x9=S9("click"),wa=S9("focus"),gJ="[object GeneratorFunction]",vJ=/^(?:0|[1-9]\d*)$/;function mJ(t,e){for(var n=-1,r=t?t.length:0;++n<r&&e(t[n],n,t)!==!1;);return t}var Uv=Object.prototype,Dw=Uv.hasOwnProperty,C9=Uv.toString,yJ=Uv.propertyIsEnumerable,bJ=function(t,e){return function(n){return t(e(n))}}(Object.keys,Object);function wJ(t,e){var n=O9(t)||function(i){return function(u){return function(s){return!!s&&typeof s=="object"}(u)&&Ow(u)}(i)&&Dw.call(i,"callee")&&(!yJ.call(i,"callee")||C9.call(i)=="[object Arguments]")}(t)?function(i,u){for(var s=-1,l=Array(i);++s<i;)l[s]=u(s);return l}(t.length,String):[],r=n.length,o=!!r;for(var a in t)!Dw.call(t,a)||o&&(a=="length"||CJ(a,r))||n.push(a);return n}var D9,EJ=(D9=function(t,e){return t&&SJ(t,e,DJ)},function(t,e){if(t==null)return t;if(!Ow(t))return D9(t,e);for(var n=t.length,r=-1,o=Object(t);++r<n&&e(o[r],r,o)!==!1;);return t}),SJ=function(t){return function(e,n,r){for(var o=-1,a=Object(e),i=r(e),u=i.length;u--;){var s=i[++o];if(n(a[s],s,a)===!1)break}return e}}();function xJ(t){if(n=(e=t)&&e.constructor,r=typeof n=="function"&&n.prototype||Uv,e!==r)return bJ(t);var e,n,r,o=[];for(var a in Object(t))Dw.call(t,a)&&a!="constructor"&&o.push(a);return o}function CJ(t,e){return!!(e=e??9007199254740991)&&(typeof t=="number"||vJ.test(t))&&t>-1&&t%1==0&&t<e}var O9=Array.isArray;function Ow(t){return t!=null&&function(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=9007199254740991}(t.length)&&!function(e){var n=function(r){var o=typeof r;return!!r&&(o=="object"||o=="function")}(e)?C9.call(e):"";return n=="[object Function]"||n==gJ}(t)}function DJ(t){return Ow(t)?wJ(t):xJ(t)}function OJ(t){return t}var Aw=function(t,e){return(O9(t)?mJ:EJ)(t,typeof e=="function"?e:OJ)};let A9=(t=21)=>{let e="",n=crypto.getRandomValues(new Uint8Array(t));for(;t--;){let r=63&n[t];e+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return e};var AJ=/^\s+|\s+$/g,TJ=/^[-+]0x[0-9a-f]+$/i,BJ=/^0b[01]+$/i,PJ=/^0o[0-7]+$/i,FJ=parseInt,kJ=typeof Be=="object"&&Be&&Be.Object===Object&&Be,NJ=typeof self=="object"&&self&&self.Object===Object&&self,IJ=kJ||NJ||Function("return this")(),jJ=Object.prototype.toString,RJ=Math.max,LJ=Math.min,Tw=function(){return IJ.Date.now()};function MJ(t,e,n){var r,o,a,i,u,s,l=0,c=!1,f=!1,d=!0;if(typeof t!="function")throw new TypeError("Expected a function");function p(w){var E=r,x=o;return r=o=void 0,l=w,i=t.apply(x,E)}function m(w){return l=w,u=setTimeout(v,e),c?p(w):i}function h(w){var E=w-s;return s===void 0||E>=e||E<0||f&&w-l>=a}function v(){var w=Tw();if(h(w))return y(w);u=setTimeout(v,function(E){var x=e-(E-s);return f?LJ(x,a-(E-l)):x}(w))}function y(w){return u=void 0,d&&r?p(w):(r=o=void 0,i)}function g(){var w=Tw(),E=h(w);if(r=arguments,o=this,s=w,E){if(u===void 0)return m(s);if(f)return u=setTimeout(v,e),p(s)}return u===void 0&&(u=setTimeout(v,e)),i}return e=T9(e)||0,_v(n)&&(c=!!n.leading,a=(f="maxWait"in n)?RJ(T9(n.maxWait)||0,e):a,d="trailing"in n?!!n.trailing:d),g.cancel=function(){u!==void 0&&clearTimeout(u),l=0,r=s=o=u=void 0},g.flush=function(){return u===void 0?i:y(Tw())},g}function _v(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function T9(t){if(typeof t=="number")return t;if(function(r){return typeof r=="symbol"||function(o){return!!o&&typeof o=="object"}(r)&&jJ.call(r)=="[object Symbol]"}(t))return NaN;if(_v(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=_v(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=t.replace(AJ,"");var n=BJ.test(t);return n||PJ.test(t)?FJ(t.slice(2),n?2:8):TJ.test(t)?NaN:+t}var Zu=function(t,e,n){var r=!0,o=!0;if(typeof t!="function")throw new TypeError("Expected a function");return _v(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),MJ(t,e,{leading:r,maxWait:e,trailing:o})};const VJ={createElement:function(t,e){return document.createElement(t,e)},createElementNS:function(t,e,n){return document.createElementNS(t,e,n)},createTextNode:function(t){return document.createTextNode(t)},createComment:function(t){return document.createComment(t)},insertBefore:function(t,e,n){t.insertBefore(e,n)},removeChild:function(t,e){t.removeChild(e)},appendChild:function(t,e){t.appendChild(e)},parentNode:function(t){return t.parentNode},nextSibling:function(t){return t.nextSibling},tagName:function(t){return t.tagName},setTextContent:function(t,e){t.textContent=e},getTextContent:function(t){return t.textContent},isElement:function(t){return t.nodeType===1},isText:function(t){return t.nodeType===3},isComment:function(t){return t.nodeType===8}};function ad(t,e,n,r,o){return{sel:t,data:e,children:n,text:r,elm:o,key:e===void 0?void 0:e.key}}const Bw=Array.isArray;function Gv(t){return typeof t=="string"||typeof t=="number"||t instanceof String||t instanceof Number}function Pw(t){return t===void 0}function Hr(t){return t!==void 0}const B9=ad("",{},[],void 0,void 0);function ud(t,e){var n,r;const o=t.key===e.key,a=((n=t.data)===null||n===void 0?void 0:n.is)===((r=e.data)===null||r===void 0?void 0:r.is);return t.sel===e.sel&&o&&a}function zJ(t,e,n){var r;const o={};for(let a=e;a<=n;++a){const i=(r=t[a])===null||r===void 0?void 0:r.key;i!==void 0&&(o[i]=a)}return o}const HJ=["create","update","remove","destroy","pre","post"];function UJ(t,e){const n={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},r=VJ;for(const f of HJ)for(const d of t){const p=d[f];p!==void 0&&n[f].push(p)}function o(f){const d=f.id?"#"+f.id:"",p=f.getAttribute("class"),m=p?"."+p.split(" ").join("."):"";return ad(r.tagName(f).toLowerCase()+d+m,{},[],void 0,f)}function a(f,d){return function(){if(--d==0){const p=r.parentNode(f);r.removeChild(p,f)}}}function i(f,d){var p,m;let h,v=f.data;if(v!==void 0){const w=(p=v.hook)===null||p===void 0?void 0:p.init;Hr(w)&&(w(f),v=f.data)}const y=f.children,g=f.sel;if(g==="!")Pw(f.text)&&(f.text=""),f.elm=r.createComment(f.text);else if(g!==void 0){const w=g.indexOf("#"),E=g.indexOf(".",w),x=w>0?w:g.length,S=E>0?E:g.length,C=w!==-1||E!==-1?g.slice(0,Math.min(x,S)):g,T=f.elm=Hr(v)&&Hr(h=v.ns)?r.createElementNS(h,C,v):r.createElement(C,v);for(x<S&&T.setAttribute("id",g.slice(x+1,S)),E>0&&T.setAttribute("class",g.slice(S+1).replace(/\./g," ")),h=0;h<n.create.length;++h)n.create[h](B9,f);if(Bw(y))for(h=0;h<y.length;++h){const k=y[h];k!=null&&r.appendChild(T,i(k,d))}else Gv(f.text)&&r.appendChild(T,r.createTextNode(f.text));const A=f.data.hook;Hr(A)&&((m=A.create)===null||m===void 0||m.call(A,B9,f),A.insert&&d.push(f))}else f.elm=r.createTextNode(f.text);return f.elm}function u(f,d,p,m,h,v){for(;m<=h;++m){const y=p[m];y!=null&&r.insertBefore(f,i(y,v),d)}}function s(f){var d,p;const m=f.data;if(m!==void 0){(p=(d=m==null?void 0:m.hook)===null||d===void 0?void 0:d.destroy)===null||p===void 0||p.call(d,f);for(let h=0;h<n.destroy.length;++h)n.destroy[h](f);if(f.children!==void 0)for(let h=0;h<f.children.length;++h){const v=f.children[h];v!=null&&typeof v!="string"&&s(v)}}}function l(f,d,p,m){for(var h,v;p<=m;++p){let y,g;const w=d[p];if(w!=null)if(Hr(w.sel)){s(w),y=n.remove.length+1,g=a(w.elm,y);for(let x=0;x<n.remove.length;++x)n.remove[x](w,g);const E=(v=(h=w==null?void 0:w.data)===null||h===void 0?void 0:h.hook)===null||v===void 0?void 0:v.remove;Hr(E)?E(w,g):g()}else r.removeChild(f,w.elm)}}function c(f,d,p){var m,h,v,y,g;const w=(m=d.data)===null||m===void 0?void 0:m.hook;(h=w==null?void 0:w.prepatch)===null||h===void 0||h.call(w,f,d);const E=d.elm=f.elm,x=f.children,S=d.children;if(f!==d){if(d.data!==void 0){for(let C=0;C<n.update.length;++C)n.update[C](f,d);(y=(v=d.data.hook)===null||v===void 0?void 0:v.update)===null||y===void 0||y.call(v,f,d)}Pw(d.text)?Hr(x)&&Hr(S)?x!==S&&function(C,T,A,k){let M,H,N,j,G=0,V=0,J=T.length-1,rt=T[0],it=T[J],W=A.length-1,O=A[0],B=A[W];for(;G<=J&&V<=W;)rt==null?rt=T[++G]:it==null?it=T[--J]:O==null?O=A[++V]:B==null?B=A[--W]:ud(rt,O)?(c(rt,O,k),rt=T[++G],O=A[++V]):ud(it,B)?(c(it,B,k),it=T[--J],B=A[--W]):ud(rt,B)?(c(rt,B,k),r.insertBefore(C,rt.elm,r.nextSibling(it.elm)),rt=T[++G],B=A[--W]):ud(it,O)?(c(it,O,k),r.insertBefore(C,it.elm,rt.elm),it=T[--J],O=A[++V]):(M===void 0&&(M=zJ(T,G,J)),H=M[O.key],Pw(H)?r.insertBefore(C,i(O,k),rt.elm):(N=T[H],N.sel!==O.sel?r.insertBefore(C,i(O,k),rt.elm):(c(N,O,k),T[H]=void 0,r.insertBefore(C,N.elm,rt.elm))),O=A[++V]);(G<=J||V<=W)&&(G>J?(j=A[W+1]==null?null:A[W+1].elm,u(C,j,A,V,W,k)):l(C,T,G,J))}(E,x,S,p):Hr(S)?(Hr(f.text)&&r.setTextContent(E,""),u(E,null,S,0,S.length-1,p)):Hr(x)?l(E,x,0,x.length-1):Hr(f.text)&&r.setTextContent(E,""):f.text!==d.text&&(Hr(x)&&l(E,x,0,x.length-1),r.setTextContent(E,d.text)),(g=w==null?void 0:w.postpatch)===null||g===void 0||g.call(w,f,d)}}return function(f,d){let p,m,h;const v=[];for(p=0;p<n.pre.length;++p)n.pre[p]();for(function(y){return y.sel!==void 0}(f)||(f=o(f)),ud(f,d)?c(f,d,v):(m=f.elm,h=r.parentNode(m),i(d,v),h!==null&&(r.insertBefore(h,d.elm,r.nextSibling(m)),l(h,[f],0,0))),p=0;p<v.length;++p)v[p].data.hook.insert(v[p]);for(p=0;p<n.post.length;++p)n.post[p]();return d}}function P9(t,e,n){if(t.ns="http://www.w3.org/2000/svg",n!=="foreignObject"&&e!==void 0)for(let r=0;r<e.length;++r){const o=e[r].data;o!==void 0&&P9(o,e[r].children,e[r].sel)}}function Rl(t,e,n){let r,o,a,i={};if(n!==void 0?(e!==null&&(i=e),Bw(n)?r=n:Gv(n)?o=n.toString():n&&n.sel&&(r=[n])):e!=null&&(Bw(e)?r=e:Gv(e)?o=e.toString():e&&e.sel?r=[e]:i=e),r!==void 0)for(a=0;a<r.length;++a)Gv(r[a])&&(r[a]=ad(void 0,void 0,void 0,r[a],void 0));return t[0]!=="s"||t[1]!=="v"||t[2]!=="g"||t.length!==3&&t[3]!=="."&&t[3]!=="#"||P9(i,r,t),ad(t,i,r,o,void 0)}function F9(t,e){let n;const r=e.elm;let o=t.data.attrs,a=e.data.attrs;if((o||a)&&o!==a){for(n in o=o||{},a=a||{},a){const i=a[n];o[n]!==i&&(i===!0?r.setAttribute(n,""):i===!1?r.removeAttribute(n):n.charCodeAt(0)!==120?r.setAttribute(n,i):n.charCodeAt(3)===58?r.setAttributeNS("http://www.w3.org/XML/1998/namespace",n,i):n.charCodeAt(5)===58?r.setAttributeNS("http://www.w3.org/1999/xlink",n,i):r.setAttribute(n,i))}for(n in o)n in a||r.removeAttribute(n)}}const _J={create:F9,update:F9};function k9(t,e){let n,r;const o=e.elm;let a=t.data.class,i=e.data.class;if((a||i)&&a!==i){for(r in a=a||{},i=i||{},a)a[r]&&!Object.prototype.hasOwnProperty.call(i,r)&&o.classList.remove(r);for(r in i)n=i[r],n!==a[r]&&o.classList[n?"add":"remove"](r)}}const GJ={create:k9,update:k9},N9=/[A-Z]/g;function I9(t,e){const n=e.elm;let r,o=t.data.dataset,a=e.data.dataset;if(!o&&!a||o===a)return;o=o||{},a=a||{};const i=n.dataset;for(r in o)a[r]||(i?r in i&&delete i[r]:n.removeAttribute("data-"+r.replace(N9,"-$&").toLowerCase()));for(r in a)o[r]!==a[r]&&(i?i[r]=a[r]:n.setAttribute("data-"+r.replace(N9,"-$&").toLowerCase(),a[r]))}const WJ={create:I9,update:I9};function j9(t,e,n){if(typeof t=="function")t.call(e,n,e);else if(typeof t=="object")for(let r=0;r<t.length;r++)j9(t[r],e,n)}function KJ(t,e){const n=t.type,r=e.data.on;r&&r[n]&&j9(r[n],e,t)}function Fw(t,e){const n=t.data.on,r=t.listener,o=t.elm,a=e&&e.data.on,i=e&&e.elm;let u;if(n!==a){if(n&&r)if(a)for(u in n)a[u]||o.removeEventListener(u,r,!1);else for(u in n)o.removeEventListener(u,r,!1);if(a){const s=e.listener=t.listener||function l(c){KJ(c,l.vnode)};if(s.vnode=e,n)for(u in a)n[u]||i.addEventListener(u,s,!1);else for(u in a)i.addEventListener(u,s,!1)}}}const YJ={create:Fw,update:Fw,destroy:Fw};function R9(t,e){let n,r,o;const a=e.elm;let i=t.data.props,u=e.data.props;if((i||u)&&i!==u)for(n in i=i||{},u=u||{},u)r=u[n],o=i[n],o===r||n==="value"&&a[n]===r||(a[n]=r)}const XJ={create:R9,update:R9},L9=typeof window<"u"&&window.requestAnimationFrame.bind(window)||setTimeout;let kw=!1;function ZJ(t,e,n){(function(r){L9(function(){L9(r)})})(function(){t[e]=n})}function M9(t,e){let n,r;const o=e.elm;let a=t.data.style,i=e.data.style;if(!a&&!i||a===i)return;a=a||{},i=i||{};const u="delayed"in a;for(r in a)i[r]||(r[0]==="-"&&r[1]==="-"?o.style.removeProperty(r):o.style[r]="");for(r in i)if(n=i[r],r==="delayed"&&i.delayed)for(const s in i.delayed)n=i.delayed[s],u&&n===a.delayed[s]||ZJ(o.style,s,n);else r!=="remove"&&n!==a[r]&&(r[0]==="-"&&r[1]==="-"?o.style.setProperty(r,n):o.style[r]=n)}const JJ={pre:function(){kw=!1},create:M9,update:M9,destroy:function(t){let e,n;const r=t.elm,o=t.data.style;if(o&&(e=o.destroy))for(n in e)r.style[n]=e[n]},remove:function(t,e){const n=t.data.style;if(!n||!n.remove)return void e();let r;kw||(t.elm.offsetLeft,kw=!0);const o=t.elm;let a=0;const i=n.remove;let u=0;const s=[];for(r in i)s.push(r),o.style[r]=i[r];const l=getComputedStyle(o)["transition-property"].split(", ");for(;a<l.length;++a)s.indexOf(l[a])!==-1&&u++;o.addEventListener("transitionend",function(c){c.target===o&&--u,u===0&&e()})}};function V9(t,e){for(const n of t)n!=null&&n!==!1&&n!==""&&(Array.isArray(n)?V9(n,e):typeof n=="string"||typeof n=="number"||typeof n=="boolean"?e.push(ad(void 0,void 0,void 0,String(n),void 0)):e.push(n));return e}function jt(t,e,...n){const r=V9(n,[]);return typeof t=="function"?t(e,r):r.length===1&&!r[0].sel&&r[0].text?Rl(t,e,r[0].text):Rl(t,e,r)}jt||(jt={});var QJ=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,$J=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,z9="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",qJ="[\\ud800-\\udfff]",H9="["+z9+"]",Wv="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",U9="\\d+",tQ="[\\u2700-\\u27bf]",_9="[a-z\\xdf-\\xf6\\xf8-\\xff]",G9="[^\\ud800-\\udfff"+z9+U9+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",Nw="\\ud83c[\\udffb-\\udfff]",W9="[^\\ud800-\\udfff]",Iw="(?:\\ud83c[\\udde6-\\uddff]){2}",jw="[\\ud800-\\udbff][\\udc00-\\udfff]",Ll="[A-Z\\xc0-\\xd6\\xd8-\\xde]",K9="(?:"+_9+"|"+G9+")",eQ="(?:"+Ll+"|"+G9+")",Y9="(?:"+Wv+"|"+Nw+")?",X9="[\\ufe0e\\ufe0f]?"+Y9+("(?:\\u200d(?:"+[W9,Iw,jw].join("|")+")[\\ufe0e\\ufe0f]?"+Y9+")*"),nQ="(?:"+[tQ,Iw,jw].join("|")+")"+X9,rQ="(?:"+[W9+Wv+"?",Wv,Iw,jw,qJ].join("|")+")",oQ=RegExp("['’]","g"),iQ=RegExp(Wv,"g"),aQ=RegExp(Nw+"(?="+Nw+")|"+rQ+X9,"g"),uQ=RegExp([Ll+"?"+_9+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[H9,Ll,"$"].join("|")+")",eQ+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[H9,Ll+K9,"$"].join("|")+")",Ll+"?"+K9+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Ll+"+(?:['’](?:D|LL|M|RE|S|T|VE))?",U9,nQ].join("|"),"g"),sQ=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),lQ=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,cQ=typeof Be=="object"&&Be&&Be.Object===Object&&Be,fQ=typeof self=="object"&&self&&self.Object===Object&&self,dQ=cQ||fQ||Function("return this")(),Rw,pQ=(Rw={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"ss"},function(t){return Rw==null?void 0:Rw[t]});function Z9(t){return sQ.test(t)}function hQ(t){return Z9(t)?function(e){return e.match(aQ)||[]}(t):function(e){return e.split("")}(t)}var gQ=Object.prototype.toString,J9=dQ.Symbol,Q9=J9?J9.prototype:void 0,$9=Q9?Q9.toString:void 0;function vQ(t){if(typeof t=="string")return t;if(function(n){return typeof n=="symbol"||function(r){return!!r&&typeof r=="object"}(n)&&gQ.call(n)=="[object Symbol]"}(t))return $9?$9.call(t):"";var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}function mQ(t,e,n){var r=t.length;return n=n===void 0?r:n,!e&&n>=r?t:function(o,a,i){var u=-1,s=o.length;a<0&&(a=-a>s?0:s+a),(i=i>s?s:i)<0&&(i+=s),s=a>i?0:i-a>>>0,a>>>=0;for(var l=Array(s);++u<s;)l[u]=o[u+a];return l}(t,e,n)}function Kv(t){return t==null?"":vQ(t)}for(var q9,yQ=(q9=function(t,e,n){return e=e.toLowerCase(),t+(n?bQ(Kv(e).toLowerCase()):e)},function(t){return function(e,n,r,o){var a=-1,i=e?e.length:0;for(o;++a<i;)r=n(r,e[a],a,e);return r}(function(e,n,r){return e=Kv(e),(n=n)===void 0?function(o){return lQ.test(o)}(e)?function(o){return o.match(uQ)||[]}(e):function(o){return o.match(QJ)||[]}(e):e.match(n)||[]}(function(e){return(e=Kv(e))&&e.replace($J,pQ).replace(iQ,"")}(t).replace(oQ,"")),q9,"")}),tT,bQ=(tT="toUpperCase",function(t){var e=Z9(t=Kv(t))?hQ(t):void 0,n=e?e[0]:t.charAt(0),r=e?mQ(e,1).join(""):t.slice(1);return n[tT]()+r}),wQ=yQ,EQ=typeof window<"u"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),Lw={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},eT={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:EQ?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},Mw={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},Yv=1;Yv<20;Yv++)Mw["f"+Yv]=111+Yv;function nT(t,e,n){e&&!("byKey"in e)&&(n=e,e=null),Array.isArray(t)||(t=[t]);var r=t.map(function(a){return function(i,u){var s=u&&u.byKey,l={},c=(i=i.replace("++","+add")).split("+"),f=c.length;for(var d in Lw)l[Lw[d]]=!1;var p=!0,m=!1,h=void 0;try{for(var v,y=c[Symbol.iterator]();!(p=(v=y.next()).done);p=!0){var g=v.value,w=g.endsWith("?")&&g.length>1;w&&(g=g.slice(0,-1));var E=rT(g),x=Lw[E];if(g.length>1&&!x&&!eT[g]&&!Mw[E])throw new TypeError('Unknown modifier: "'+g+'"');f!==1&&x||(s?l.key=E:l.which=SQ(g)),x&&(l[x]=!w||null)}}catch(S){m=!0,h=S}finally{try{!p&&y.return&&y.return()}finally{if(m)throw h}}return l}(a,e)}),o=function(a){return r.some(function(i){return function(u,s){for(var l in u){var c=u[l],f=void 0;if(c!=null&&((f=l==="key"&&s.key!=null?s.key.toLowerCase():l==="which"?c===91&&s.which===93?91:s.which:s[l])!=null||c!==!1)&&f!==c)return!1}return!0}(i,a)})};return n==null?o:o(n)}function SQ(t){return t=rT(t),Mw[t]||t.toUpperCase().charCodeAt(0)}function rT(t){return t=t.toLowerCase(),t=eT[t]||t}var xQ=nT,Vw=function(t,e){return nT(t,{byKey:!0},e)},CQ=/^\s+|\s+$/g,DQ=/^[-+]0x[0-9a-f]+$/i,OQ=/^0b[01]+$/i,AQ=/^0o[0-7]+$/i,TQ=parseInt,BQ=typeof Be=="object"&&Be&&Be.Object===Object&&Be,PQ=typeof self=="object"&&self&&self.Object===Object&&self,FQ=BQ||PQ||Function("return this")(),kQ=Object.prototype.toString,NQ=Math.max,IQ=Math.min,zw=function(){return FQ.Date.now()};function Hw(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function oT(t){if(typeof t=="number")return t;if(function(r){return typeof r=="symbol"||function(o){return!!o&&typeof o=="object"}(r)&&kQ.call(r)=="[object Symbol]"}(t))return NaN;if(Hw(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=Hw(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=t.replace(CQ,"");var n=OQ.test(t);return n||AQ.test(t)?TQ(t.slice(2),n?2:8):DQ.test(t)?NaN:+t}var Ml,iT=function(t,e,n){var r,o,a,i,u,s,l=0,c=!1,f=!1,d=!0;if(typeof t!="function")throw new TypeError("Expected a function");function p(w){var E=r,x=o;return r=o=void 0,l=w,i=t.apply(x,E)}function m(w){return l=w,u=setTimeout(v,e),c?p(w):i}function h(w){var E=w-s;return s===void 0||E>=e||E<0||f&&w-l>=a}function v(){var w=zw();if(h(w))return y(w);u=setTimeout(v,function(E){var x=e-(E-s);return f?IQ(x,a-(E-l)):x}(w))}function y(w){return u=void 0,d&&r?p(w):(r=o=void 0,i)}function g(){var w=zw(),E=h(w);if(r=arguments,o=this,s=w,E){if(u===void 0)return m(s);if(f)return u=setTimeout(v,e),p(s)}return u===void 0&&(u=setTimeout(v,e)),i}return e=oT(e)||0,Hw(n)&&(c=!!n.leading,a=(f="maxWait"in n)?NQ(oT(n.maxWait)||0,e):a,d="trailing"in n?!!n.trailing:d),g.cancel=function(){u!==void 0&&clearTimeout(u),l=0,r=s=o=u=void 0},g.flush=function(){return u===void 0?i:y(zw())},g},aT=Pu(function(t,e){var n="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",a="[object Boolean]",i="[object Date]",u="[object Function]",s="[object GeneratorFunction]",l="[object Map]",c="[object Number]",f="[object Object]",d="[object Promise]",p="[object RegExp]",m="[object Set]",h="[object String]",v="[object Symbol]",y="[object WeakMap]",g="[object ArrayBuffer]",w="[object DataView]",E="[object Float32Array]",x="[object Float64Array]",S="[object Int8Array]",C="[object Int16Array]",T="[object Int32Array]",A="[object Uint8Array]",k="[object Uint8ClampedArray]",M="[object Uint16Array]",H="[object Uint32Array]",N=/\w*$/,j=/^\[object .+?Constructor\]$/,G=/^(?:0|[1-9]\d*)$/,V={};V[o]=V["[object Array]"]=V[g]=V[w]=V[a]=V[i]=V[E]=V[x]=V[S]=V[C]=V[T]=V[l]=V[c]=V[f]=V[p]=V[m]=V[h]=V[v]=V[A]=V[k]=V[M]=V[H]=!0,V["[object Error]"]=V[u]=V[y]=!1;var J=typeof Be=="object"&&Be&&Be.Object===Object&&Be,rt=typeof self=="object"&&self&&self.Object===Object&&self,it=J||rt||Function("return this")(),W=e&&!e.nodeType&&e,O=W&&t&&!t.nodeType&&t,B=O&&O.exports===W;function I(R,q){return R.set(q[0],q[1]),R}function Y(R,q){return R.add(q),R}function et(R,q,dt,yt){var ue=-1,Ke=R?R.length:0;for(yt;++ue<Ke;)dt=q(dt,R[ue],ue,R);return dt}function X(R){var q=!1;if(R!=null&&typeof R.toString!="function")try{q=!!(R+"")}catch{}return q}function ot(R){var q=-1,dt=Array(R.size);return R.forEach(function(yt,ue){dt[++q]=[ue,yt]}),dt}function mt(R,q){return function(dt){return R(q(dt))}}function bt(R){var q=-1,dt=Array(R.size);return R.forEach(function(yt){dt[++q]=yt}),dt}var Pt=Array.prototype,tt=Function.prototype,Mt=Object.prototype,Dt=it["__core-js_shared__"],ht=function(){var R=/[^.]+$/.exec(Dt&&Dt.keys&&Dt.keys.IE_PROTO||"");return R?"Symbol(src)_1."+R:""}(),kt=tt.toString,ye=Mt.hasOwnProperty,zt=Mt.toString,he=RegExp("^"+kt.call(ye).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Te=B?it.Buffer:void 0,ke=it.Symbol,Ut=it.Uint8Array,bn=mt(Object.getPrototypeOf,Object),Jn=Object.create,lr=Mt.propertyIsEnumerable,Do=Pt.splice,Qr=Object.getOwnPropertySymbols,Qn=Te?Te.isBuffer:void 0,cr=mt(Object.keys,Object),K=Ci(it,"DataView"),U=Ci(it,"Map"),Z=Ci(it,"Promise"),nt=Ci(it,"Set"),gt=Ci(it,"WeakMap"),wt=Ci(Object,"create"),Ft=Oi(K),ae=Oi(U),xe=Oi(Z),Bt=Oi(nt),Et=Oi(gt),Tt=ke?ke.prototype:void 0,Jt=Tt?Tt.valueOf:void 0;function Wt(R){var q=-1,dt=R?R.length:0;for(this.clear();++q<dt;){var yt=R[q];this.set(yt[0],yt[1])}}function je(R){var q=-1,dt=R?R.length:0;for(this.clear();++q<dt;){var yt=R[q];this.set(yt[0],yt[1])}}function $r(R){var q=-1,dt=R?R.length:0;for(this.clear();++q<dt;){var yt=R[q];this.set(yt[0],yt[1])}}function qr(R){this.__data__=new je(R)}function to(R,q){var dt=L(R)||function(Re){return function(ge){return function(Rn){return!!Rn&&typeof Rn=="object"}(ge)&&Q(ge)}(Re)&&ye.call(Re,"callee")&&(!lr.call(Re,"callee")||zt.call(Re)==o)}(R)?function(Re,ge){for(var Rn=-1,fr=Array(Re);++Rn<Re;)fr[Rn]=ge(Rn);return fr}(R.length,String):[],yt=dt.length,ue=!!yt;for(var Ke in R)!ye.call(R,Ke)||ue&&(Ke=="length"||W1(Ke,yt))||dt.push(Ke);return dt}function _1(R,q,dt){var yt=R[q];ye.call(R,q)&&K1(yt,dt)&&(dt!==void 0||q in R)||(R[q]=dt)}function eo(R,q){for(var dt=R.length;dt--;)if(K1(R[dt][0],q))return dt;return-1}function vg(R,q,dt,yt,ue,Ke,Re){var ge;if(yt&&(ge=Ke?yt(R,ue,Ke,Re):yt(R)),ge!==void 0)return ge;if(!Ce(R))return R;var Rn=L(R);if(Rn){if(ge=function(Lt){var we=Lt.length,wn=Lt.constructor(we);return we&&typeof Lt[0]=="string"&&ye.call(Lt,"index")&&(wn.index=Lt.index,wn.input=Lt.input),wn}(R),!q)return function(Lt,we){var wn=-1,oe=Lt.length;for(we||(we=Array(oe));++wn<oe;)we[wn]=Lt[wn];return we}(R,ge)}else{var fr=Di(R),rl=fr==u||fr==s;if(ut(R))return function(Lt,we){if(we)return Lt.slice();var wn=new Lt.constructor(Lt.length);return Lt.copy(wn),wn}(R,q);if(fr==f||fr==o||rl&&!Ke){if(X(R))return Ke?R:{};if(ge=function(Lt){return typeof Lt.constructor!="function"||xu(Lt)?{}:(we=bn(Lt),Ce(we)?Jn(we):{});var we}(rl?{}:R),!q)return function(Lt,we){return G1(Lt,mg(Lt),we)}(R,function(Lt,we){return Lt&&G1(we,ne(we),Lt)}(ge,R))}else{if(!V[fr])return Ke?R:{};ge=function(Lt,we,wn,oe){var ve=Lt.constructor;switch(we){case g:return ff(Lt);case a:case i:return new ve(+Lt);case w:return function(me,fn){var mr=fn?ff(me.buffer):me.buffer;return new me.constructor(mr,me.byteOffset,me.byteLength)}(Lt,oe);case E:case x:case S:case C:case T:case A:case k:case M:case H:return function(me,fn){var mr=fn?ff(me.buffer):me.buffer;return new me.constructor(mr,me.byteOffset,me.length)}(Lt,oe);case l:return function(me,fn,mr){return et(fn?mr(ot(me),!0):ot(me),I,new me.constructor)}(Lt,oe,wn);case c:case h:return new ve(Lt);case p:return function(me){var fn=new me.constructor(me.source,N.exec(me));return fn.lastIndex=me.lastIndex,fn}(Lt);case m:return function(me,fn,mr){return et(fn?mr(bt(me),!0):bt(me),Y,new me.constructor)}(Lt,oe,wn);case v:return function(me){return Jt?Object(Jt.call(me)):{}}(Lt)}}(R,fr,vg,q)}}Re||(Re=new qr);var ra=Re.get(R);if(ra)return ra;if(Re.set(R,ge),!Rn)var Cu=dt?function(Lt){return function(we,wn,oe){var ve=wn(we);return L(we)?ve:function(me,fn){for(var mr=-1,kr=fn.length,Go=me.length;++mr<kr;)me[Go+mr]=fn[mr];return me}(ve,oe(we))}(Lt,ne,mg)}(R):ne(R);return function(Lt,we){for(var wn=-1,oe=Lt?Lt.length:0;++wn<oe&&we(Lt[wn],wn,Lt)!==!1;);}(Cu||R,function(Lt,we){Cu&&(Lt=R[we=Lt]),_1(ge,we,vg(Lt,q,dt,yt,we,R,Re))}),ge}function ea(R){return!(!Ce(R)||function(q){return!!ht&&ht in q}(R))&&(At(R)||X(R)?he:j).test(Oi(R))}function ff(R){var q=new R.constructor(R.byteLength);return new Ut(q).set(new Ut(R)),q}function G1(R,q,dt,yt){dt||(dt={});for(var ue=-1,Ke=q.length;++ue<Ke;){var Re=q[ue],ge=void 0;_1(dt,Re,ge===void 0?R[Re]:ge)}return dt}function na(R,q){var dt,yt,ue=R.__data__;return((yt=typeof(dt=q))=="string"||yt=="number"||yt=="symbol"||yt=="boolean"?dt!=="__proto__":dt===null)?ue[typeof q=="string"?"string":"hash"]:ue.map}function Ci(R,q){var dt=function(yt,ue){return yt==null?void 0:yt[ue]}(R,q);return ea(dt)?dt:void 0}Wt.prototype.clear=function(){this.__data__=wt?wt(null):{}},Wt.prototype.delete=function(R){return this.has(R)&&delete this.__data__[R]},Wt.prototype.get=function(R){var q=this.__data__;if(wt){var dt=q[R];return dt===n?void 0:dt}return ye.call(q,R)?q[R]:void 0},Wt.prototype.has=function(R){var q=this.__data__;return wt?q[R]!==void 0:ye.call(q,R)},Wt.prototype.set=function(R,q){return this.__data__[R]=wt&&q===void 0?n:q,this},je.prototype.clear=function(){this.__data__=[]},je.prototype.delete=function(R){var q=this.__data__,dt=eo(q,R);return!(dt<0)&&(dt==q.length-1?q.pop():Do.call(q,dt,1),!0)},je.prototype.get=function(R){var q=this.__data__,dt=eo(q,R);return dt<0?void 0:q[dt][1]},je.prototype.has=function(R){return eo(this.__data__,R)>-1},je.prototype.set=function(R,q){var dt=this.__data__,yt=eo(dt,R);return yt<0?dt.push([R,q]):dt[yt][1]=q,this},$r.prototype.clear=function(){this.__data__={hash:new Wt,map:new(U||je),string:new Wt}},$r.prototype.delete=function(R){return na(this,R).delete(R)},$r.prototype.get=function(R){return na(this,R).get(R)},$r.prototype.has=function(R){return na(this,R).has(R)},$r.prototype.set=function(R,q){return na(this,R).set(R,q),this},qr.prototype.clear=function(){this.__data__=new je},qr.prototype.delete=function(R){return this.__data__.delete(R)},qr.prototype.get=function(R){return this.__data__.get(R)},qr.prototype.has=function(R){return this.__data__.has(R)},qr.prototype.set=function(R,q){var dt=this.__data__;if(dt instanceof je){var yt=dt.__data__;if(!U||yt.length<199)return yt.push([R,q]),this;dt=this.__data__=new $r(yt)}return dt.set(R,q),this};var mg=Qr?mt(Qr,Object):function(){return[]},Di=function(R){return zt.call(R)};function W1(R,q){return!!(q=q??r)&&(typeof R=="number"||G.test(R))&&R>-1&&R%1==0&&R<q}function xu(R){var q=R&&R.constructor;return R===(typeof q=="function"&&q.prototype||Mt)}function Oi(R){if(R!=null){try{return kt.call(R)}catch{}try{return R+""}catch{}}return""}function K1(R,q){return R===q||R!=R&&q!=q}(K&&Di(new K(new ArrayBuffer(1)))!=w||U&&Di(new U)!=l||Z&&Di(Z.resolve())!=d||nt&&Di(new nt)!=m||gt&&Di(new gt)!=y)&&(Di=function(R){var q=zt.call(R),dt=q==f?R.constructor:void 0,yt=dt?Oi(dt):void 0;if(yt)switch(yt){case Ft:return w;case ae:return l;case xe:return d;case Bt:return m;case Et:return y}return q});var L=Array.isArray;function Q(R){return R!=null&&function(q){return typeof q=="number"&&q>-1&&q%1==0&&q<=r}(R.length)&&!At(R)}var ut=Qn||function(){return!1};function At(R){var q=Ce(R)?zt.call(R):"";return q==u||q==s}function Ce(R){var q=typeof R;return!!R&&(q=="object"||q=="function")}function ne(R){return Q(R)?to(R):function(q){if(!xu(q))return cr(q);var dt=[];for(var yt in Object(q))ye.call(q,yt)&&yt!="constructor"&&dt.push(yt);return dt}(R)}t.exports=function(R){return vg(R,!0,!0)}});function uT(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var jQ=0;function RQ(t){return"__private_"+jQ+++"_"+t}function LQ(t,e,n){const r=[];return t.forEach(o=>typeof o!="string"?r.push(o):e[Symbol.split](o).forEach((a,i,u)=>{a!==""&&r.push(a),i<u.length-1&&r.push(n)})),r}/**
25
+ * Takes a string with placeholder variables like `%{smart_count} file selected`
26
+ * and replaces it with values from options `{smart_count: 5}`
27
+ *
28
+ * @license https://github.com/airbnb/polyglot.js/blob/master/LICENSE
29
+ * taken from https://github.com/airbnb/polyglot.js/blob/master/lib/polyglot.js#L299
30
+ *
31
+ * @param {string} phrase that needs interpolation, with placeholders
32
+ * @param {object} options with values that will be used to replace placeholders
33
+ * @returns {any[]} interpolated
34
+ */function sT(t,e){const n=/\$/g;let r=[t];if(e==null)return r;for(const o of Object.keys(e))if(o!=="_"){let a=e[o];typeof a=="string"&&(a=n[Symbol.replace](a,"$$$$")),r=LQ(r,new RegExp(`%\\{${o}\\}`,"g"),a)}return r}var lT=(Ml=RQ("apply"),class{constructor(t){Object.defineProperty(this,Ml,{value:MQ}),this.locale={strings:{},pluralize:e=>e===1?0:1},Array.isArray(t)?t.forEach(uT(this,Ml)[Ml],this):uT(this,Ml)[Ml](t)}translate(t,e){return this.translateArray(t,e).join("")}translateArray(t,e){if(!function(r,o){return Object.prototype.hasOwnProperty.call(r,o)}(this.locale.strings,t))throw new Error(`missing string: ${t}`);const n=this.locale.strings[t];if(typeof n=="object"){if(e&&e.smart_count!==void 0)return sT(n[this.locale.pluralize(e.smart_count)],e);throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}return sT(n,e)}});function MQ(t){if(t==null||!t.strings)return;const e=this.locale;this.locale={...e,strings:{...e.strings,...t.strings}},this.locale.pluralize=t.pluralize||e.pluralize}var cT=function(){var t={},e=t._fns={};return t.emit=function(n,r,o,a,i,u,s){var l=function(c){for(var f=e[c]?e[c]:[],d=c.indexOf(":"),p=d===-1?[c]:[c.substring(0,d),c.substring(d+1)],m=Object.keys(e),h=0,v=m.length;h<v;h++){var y=m[h];if(y==="*"&&(f=f.concat(e[y])),p.length===2&&p[0]===y){f=f.concat(e[y]);break}}return f}(n);l.length&&function(c,f,d){for(var p=0,m=f.length;p<m&&f[p];p++)f[p].event=c,f[p].apply(f[p],d)}(n,l,[r,o,a,i,u,s])},t.on=function(n,r){e[n]||(e[n]=[]),e[n].push(r)},t.once=function(n,r){this.on(n,function o(){r.apply(this,arguments),t.off(n,o)})},t.off=function(n,r){var o=[];if(n&&r)for(var a=this._fns[n],i=0,u=a?a.length:0;i<u;i++)a[i]!==r&&o.push(a[i]);o.length?this._fns[n]=o:delete this._fns[n]},t},VQ={nanoid:(t=21)=>{let e="",n=crypto.getRandomValues(new Uint8Array(t));for(;t--;){let r=63&n[t];e+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return e}},Uw=function(t){if(typeof t!="number"||isNaN(t))throw new TypeError("Expected a number, got "+typeof t);var e=t<0,n=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(e&&(t=-t),t<1)return(e?"-":"")+t+" B";var r=Math.min(Math.floor(Math.log(t)/Math.log(1024)),n.length-1);t=Number(t/Math.pow(1024,r));var o=n[r];return t>=10||t%1==0?(e?"-":"")+t.toFixed(0)+" "+o:(e?"-":"")+t.toFixed(1)+" "+o};function fT(t,e){this.text=t=t||"",this.hasWild=~t.indexOf("*"),this.separator=e,this.parts=t.split(e)}fT.prototype.match=function(t){var e,n,r=!0,o=this.parts,a=o.length;if(typeof t=="string"||t instanceof String)if(this.hasWild||this.text==t){for(n=(t||"").split(this.separator),e=0;r&&e<a;e++)o[e]!=="*"&&(r=e<n.length&&o[e]===n[e]);r=r&&n}else r=!1;else if(typeof t.splice=="function")for(r=[],e=t.length;e--;)this.match(t[e])&&(r[r.length]=t[e]);else if(typeof t=="object")for(var i in r={},t)this.match(i)&&(r[i]=t[i]);return r};var zQ=/[\/\+\.]/,HQ=function(t,e){function n(r){var o=function(a,i,u){var s=new fT(a,u||/[\/\.]/);return i!==void 0?s.match(i):s}(r,t,zQ);return o&&o.length>=2}return e?n(e.split(";")[0]):n},UQ=0;function _Q(t){return"__private_"+UQ+++"_"+t}var _w=_Q("publish");class dT{constructor(){Object.defineProperty(this,_w,{value:GQ}),this.state={},this.callbacks=[]}getState(){return this.state}setState(e){const n={...this.state},r={...this.state,...e};this.state=r,function(o,a){if(!Object.prototype.hasOwnProperty.call(o,a))throw new TypeError("attempted to use private field on non-instance");return o}(this,_w)[_w](n,r,e)}subscribe(e){return this.callbacks.push(e),()=>{this.callbacks.splice(this.callbacks.indexOf(e),1)}}}function GQ(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];this.callbacks.forEach(r=>{r(...e)})}dT.VERSION="2.0.3";var pT=function(t){const e=t.lastIndexOf(".");return e===-1||e===t.length-1?{name:t,extension:void 0}:{name:t.slice(0,e),extension:t.slice(e+1)}},hT={md:"text/markdown",markdown:"text/markdown",mp4:"video/mp4",mp3:"audio/mp3",svg:"image/svg+xml",jpg:"image/jpeg",png:"image/png",gif:"image/gif",heic:"image/heic",heif:"image/heif",yaml:"text/yaml",yml:"text/yaml",csv:"text/csv",tsv:"text/tab-separated-values",tab:"text/tab-separated-values",avi:"video/x-msvideo",mks:"video/x-matroska",mkv:"video/x-matroska",mov:"video/quicktime",doc:"application/msword",docm:"application/vnd.ms-word.document.macroenabled.12",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",dot:"application/msword",dotm:"application/vnd.ms-word.template.macroenabled.12",dotx:"application/vnd.openxmlformats-officedocument.wordprocessingml.template",xla:"application/vnd.ms-excel",xlam:"application/vnd.ms-excel.addin.macroenabled.12",xlc:"application/vnd.ms-excel",xlf:"application/x-xliff+xml",xlm:"application/vnd.ms-excel",xls:"application/vnd.ms-excel",xlsb:"application/vnd.ms-excel.sheet.binary.macroenabled.12",xlsm:"application/vnd.ms-excel.sheet.macroenabled.12",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xlt:"application/vnd.ms-excel",xltm:"application/vnd.ms-excel.template.macroenabled.12",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template",xlw:"application/vnd.ms-excel",txt:"text/plain",text:"text/plain",conf:"text/plain",log:"text/plain",pdf:"application/pdf",zip:"application/zip","7z":"application/x-7z-compressed",rar:"application/x-rar-compressed",tar:"application/x-tar",gz:"application/gzip",dmg:"application/x-apple-diskimage"};function gT(t){let e="";return t.replace(/[^A-Z0-9]/gi,n=>(e+=`-${function(r){return r.charCodeAt(0).toString(32)}(n)}`,"/"))+e}var WQ=function(t){if(t==null&&(t=typeof navigator<"u"?navigator.userAgent:null),!t)return!0;const e=/Edge\/(\d+\.\d+)/.exec(t);if(!e)return!0;const n=e[1];let[r,o]=n.split(".");return r=parseInt(r,10),o=parseInt(o,10),r<15||r===15&&o<15063||r>18||r===18&&o>=18218};function Gw(t){return t<10?`0${t}`:t.toString()}var Xv=function(){const t=new Date;return`${Gw(t.getHours())}:${Gw(t.getMinutes())}:${Gw(t.getSeconds())}`},vT={justErrorsLogger:{debug:()=>{},warn:()=>{},error:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return console.error(`[Uppy] [${Xv()}]`,...e)}},debugLogger:{debug:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return console.debug(`[Uppy] [${Xv()}]`,...e)},warn:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return console.warn(`[Uppy] [${Xv()}]`,...e)},error:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return console.error(`[Uppy] [${Xv()}]`,...e)}}},KQ={strings:{addBulkFilesFailed:{0:"Failed to add %{smart_count} file due to an internal error",1:"Failed to add %{smart_count} files due to internal errors"},youCanOnlyUploadX:{0:"You can only upload %{smart_count} file",1:"You can only upload %{smart_count} files"},youHaveToAtLeastSelectX:{0:"You have to select at least %{smart_count} file",1:"You have to select at least %{smart_count} files"},exceedsSize:"%{file} exceeds maximum allowed size of %{size}",missingRequiredMetaField:"Missing required meta fields",missingRequiredMetaFieldOnFile:"Missing required meta fields in %{fileName}",inferiorSize:"This file is smaller than the allowed size of %{size}",youCanOnlyUploadFileTypes:"You can only upload: %{types}",noMoreFilesAllowed:"Cannot add more files",noDuplicates:"Cannot add the duplicate file '%{fileName}', it already exists",companionError:"Connection with Companion failed",authAborted:"Authentication aborted",companionUnauthorizeHint:"To unauthorize to your %{provider} account, please go to %{url}",failedToUpload:"Failed to upload %{file}",noInternetConnection:"No Internet connection",connectedToInternet:"Connected to the Internet",noFilesFound:"You have no files or folders here",selectX:{0:"Select %{smart_count}",1:"Select %{smart_count}"},allFilesFromFolderNamed:"All files from folder %{name}",openFolderNamed:"Open folder %{name}",cancel:"Cancel",logOut:"Log out",filter:"Filter",resetFilter:"Reset filter",loading:"Loading...",authenticateWithTitle:"Please authenticate with %{pluginName} to select files",authenticateWith:"Connect to %{pluginName}",signInWithGoogle:"Sign in with Google",searchImages:"Search for images",enterTextToSearch:"Enter text to search for images",backToSearch:"Back to Search",emptyFolderAdded:"No files were added from empty folder",folderAlreadyAdded:'The folder "%{folder}" was already added',folderAdded:{0:"Added %{smart_count} file from %{folder}",1:"Added %{smart_count} files from %{folder}"}}},mT=VQ;let yT,bT;function xt(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var YQ=0;function xn(t){return"__private_"+YQ+++"_"+t}const{nanoid:XQ}=mT,{justErrorsLogger:ZQ,debugLogger:JQ}=vT;class ei extends Error{constructor(){super(...arguments),this.isRestriction=!0}}typeof AggregateError>"u"&&(globalThis.AggregateError=class extends Error{constructor(t,e){super(e),this.errors=t}});class QQ extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}}var Xn=xn("plugins"),sd=xn("storeUnsubscribe"),Ri=xn("emitter"),Ju=xn("preProcessors"),Qu=xn("uploaders"),Li=xn("postProcessors"),ld=xn("checkRestrictions"),Ww=xn("checkMinNumberOfFiles"),cd=xn("checkRequiredMetaFieldsOnFile"),Kw=xn("checkRequiredMetaFields"),kn=xn("showOrLogErrorAndThrow"),fd=xn("assertNewUploadAllowed"),dd=xn("checkAndCreateFileStateObject"),pd=xn("startIfAutoProceed"),Yw=xn("addListeners"),ko=xn("updateOnlineStatus"),Mi=xn("createUpload"),Xw=xn("getUpload"),$u=xn("removeUpload"),Vi=xn("runUpload");yT=Symbol.for("uppy test: getPlugins"),bT=Symbol.for("uppy test: createUpload");class wT{constructor(e){Object.defineProperty(this,Vi,{value:c$}),Object.defineProperty(this,$u,{value:l$}),Object.defineProperty(this,Xw,{value:s$}),Object.defineProperty(this,Mi,{value:u$}),Object.defineProperty(this,Yw,{value:a$}),Object.defineProperty(this,pd,{value:i$}),Object.defineProperty(this,dd,{value:o$}),Object.defineProperty(this,fd,{value:r$}),Object.defineProperty(this,kn,{value:n$}),Object.defineProperty(this,Kw,{value:e$}),Object.defineProperty(this,cd,{value:t$}),Object.defineProperty(this,Ww,{value:qQ}),Object.defineProperty(this,ld,{value:$Q}),Object.defineProperty(this,Xn,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,sd,{writable:!0,value:void 0}),Object.defineProperty(this,Ri,{writable:!0,value:cT()}),Object.defineProperty(this,Ju,{writable:!0,value:new Set}),Object.defineProperty(this,Qu,{writable:!0,value:new Set}),Object.defineProperty(this,Li,{writable:!0,value:new Set}),Object.defineProperty(this,ko,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=KQ;const n={id:"uppy",autoProceed:!1,allowMultipleUploads:!0,allowMultipleUploadBatches:!0,debug:!1,restrictions:{maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]},meta:{},onBeforeFileAdded:r=>r,onBeforeUpload:r=>r,store:new dT,logger:ZQ,infoTimeout:5e3};if(this.opts={...n,...e,restrictions:{...n.restrictions,...e&&e.restrictions}},e&&e.logger&&e.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):e&&e.debug&&(this.opts.logger=JQ),this.log(`Using Core v${this.constructor.VERSION}`),this.opts.restrictions.allowedFileTypes&&this.opts.restrictions.allowedFileTypes!==null&&!Array.isArray(this.opts.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");this.i18nInit(),this.calculateProgress=Zu(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:WQ(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),xt(this,sd)[sd]=this.store.subscribe((r,o,a)=>{this.emit("state-update",r,o,a),this.updateAll(o)}),this.opts.debug&&typeof window<"u"&&(window[this.opts.id]=this),xt(this,Yw)[Yw]()}emit(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];xt(this,Ri)[Ri].emit(e,...r)}on(e,n){return xt(this,Ri)[Ri].on(e,n),this}once(e,n){return xt(this,Ri)[Ri].once(e,n),this}off(e,n){return xt(this,Ri)[Ri].off(e,n),this}updateAll(e){this.iteratePlugins(n=>{n.update(e)})}setState(e){this.store.setState(e)}getState(){return this.store.getState()}get state(){return this.getState()}setFileState(e,n){if(!this.getState().files[e])throw new Error(`Can’t set state for ${e} (the file could have been removed)`);this.setState({files:{...this.getState().files,[e]:{...this.getState().files[e],...n}}})}i18nInit(){const e=new lT([this.defaultLocale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.locale=e.locale}setOptions(e){this.opts={...this.opts,...e,restrictions:{...this.opts.restrictions,...e&&e.restrictions}},e.meta&&this.setMeta(e.meta),this.i18nInit(),e.locale&&this.iteratePlugins(n=>{n.setOptions()}),this.setState()}resetProgress(){const e={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},n={...this.getState().files},r={};Object.keys(n).forEach(o=>{const a={...n[o]};a.progress={...a.progress,...e},r[o]=a}),this.setState({files:r,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(e){xt(this,Ju)[Ju].add(e)}removePreProcessor(e){return xt(this,Ju)[Ju].delete(e)}addPostProcessor(e){xt(this,Li)[Li].add(e)}removePostProcessor(e){return xt(this,Li)[Li].delete(e)}addUploader(e){xt(this,Qu)[Qu].add(e)}removeUploader(e){return xt(this,Qu)[Qu].delete(e)}setMeta(e){const n={...this.getState().meta,...e},r={...this.getState().files};Object.keys(r).forEach(o=>{r[o]={...r[o],meta:{...r[o].meta,...e}}}),this.log("Adding metadata:"),this.log(e),this.setState({meta:n,files:r})}setFileMeta(e,n){const r={...this.getState().files};if(!r[e])return void this.log("Was trying to set metadata for a file that has been removed: ",e);const o={...r[e].meta,...n};r[e]={...r[e],meta:o},this.setState({files:r})}getFile(e){return this.getState().files[e]}getFiles(){const{files:e}=this.getState();return Object.values(e)}getObjectOfFilesPerState(){const{files:e,totalProgress:n,error:r}=this.getState(),o=Object.values(e),a=o.filter(m=>{let{progress:h}=m;return!h.uploadComplete&&h.uploadStarted}),i=o.filter(m=>!m.progress.uploadStarted),u=o.filter(m=>m.progress.uploadStarted||m.progress.preprocess||m.progress.postprocess),s=o.filter(m=>m.progress.uploadStarted),l=o.filter(m=>m.isPaused),c=o.filter(m=>m.progress.uploadComplete),f=o.filter(m=>m.error),d=a.filter(m=>!m.isPaused),p=o.filter(m=>m.progress.preprocess||m.progress.postprocess);return{newFiles:i,startedFiles:u,uploadStartedFiles:s,pausedFiles:l,completeFiles:c,erroredFiles:f,inProgressFiles:a,inProgressNotPausedFiles:d,processingFiles:p,isUploadStarted:s.length>0,isAllComplete:n===100&&c.length===o.length&&p.length===0,isAllErrored:!!r&&f.length===o.length,isAllPaused:a.length!==0&&l.length===a.length,isUploadInProgress:a.length>0,isSomeGhost:o.some(m=>m.isGhost)}}validateRestrictions(e,n){try{return xt(this,ld)[ld](e,n),{result:!0}}catch(r){return{result:!1,reason:r.message}}}checkIfFileAlreadyExists(e){const{files:n}=this.getState();return!(!n[e]||n[e].isGhost)}addFile(e){xt(this,fd)[fd](e);const{files:n}=this.getState();let r=xt(this,dd)[dd](n,e);return n[r.id]&&n[r.id].isGhost&&(r={...n[r.id],data:e.data,isGhost:!1},this.log(`Replaced the blob in the restored ghost file: ${r.name}, ${r.id}`)),this.setState({files:{...n,[r.id]:r}}),this.emit("file-added",r),this.emit("files-added",[r]),this.log(`Added file: ${r.name}, ${r.id}, mime type: ${r.type}`),xt(this,pd)[pd](),r.id}addFiles(e){xt(this,fd)[fd]();const n={...this.getState().files},r=[],o=[];for(let a=0;a<e.length;a++)try{let i=xt(this,dd)[dd](n,e[a]);n[i.id]&&n[i.id].isGhost&&(i={...n[i.id],data:e[a].data,isGhost:!1},this.log(`Replaced blob in a ghost file: ${i.name}, ${i.id}`)),n[i.id]=i,r.push(i)}catch(i){i.isRestriction||o.push(i)}if(this.setState({files:n}),r.forEach(a=>{this.emit("file-added",a)}),this.emit("files-added",r),r.length>5?this.log(`Added batch of ${r.length} files`):Object.keys(r).forEach(a=>{this.log(`Added file: ${r[a].name}
35
+ id: ${r[a].id}
36
+ type: ${r[a].type}`)}),r.length>0&&xt(this,pd)[pd](),o.length>0){let a=`Multiple errors occurred while adding files:
37
+ `;if(o.forEach(i=>{a+=`
38
+ * ${i.message}`}),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:o.length}),details:a},"error",this.opts.infoTimeout),typeof AggregateError=="function")throw new AggregateError(o,a);{const i=new Error(a);throw i.errors=o,i}}}removeFiles(e,n){const{files:r,currentUploads:o}=this.getState(),a={...r},i={...o},u=Object.create(null);function s(f){return u[f]===void 0}e.forEach(f=>{r[f]&&(u[f]=r[f],delete a[f])}),Object.keys(i).forEach(f=>{const d=o[f].fileIDs.filter(s);d.length!==0?i[f]={...o[f],fileIDs:d}:delete i[f]});const l={currentUploads:i,files:a};Object.keys(a).length===0&&(l.allowNewUpload=!0,l.error=null,l.recoveredState=null),this.setState(l),this.calculateTotalProgress();const c=Object.keys(u);c.forEach(f=>{this.emit("file-removed",u[f],n)}),c.length>5?this.log(`Removed ${c.length} files`):this.log(`Removed files: ${c.join(", ")}`)}removeFile(e,n){n===void 0&&(n=null),this.removeFiles([e],n)}pauseResume(e){if(!this.getState().capabilities.resumableUploads||this.getFile(e).uploadComplete)return;const n=!this.getFile(e).isPaused;return this.setFileState(e,{isPaused:n}),this.emit("upload-pause",e,n),n}pauseAll(){const e={...this.getState().files};Object.keys(e).filter(n=>!e[n].progress.uploadComplete&&e[n].progress.uploadStarted).forEach(n=>{const r={...e[n],isPaused:!0};e[n]=r}),this.setState({files:e}),this.emit("pause-all")}resumeAll(){const e={...this.getState().files};Object.keys(e).filter(n=>!e[n].progress.uploadComplete&&e[n].progress.uploadStarted).forEach(n=>{const r={...e[n],isPaused:!1,error:null};e[n]=r}),this.setState({files:e}),this.emit("resume-all")}retryAll(){const e={...this.getState().files},n=Object.keys(e).filter(o=>e[o].error);if(n.forEach(o=>{const a={...e[o],isPaused:!1,error:null};e[o]=a}),this.setState({files:e,error:null}),this.emit("retry-all",n),n.length===0)return Promise.resolve({successful:[],failed:[]});const r=xt(this,Mi)[Mi](n,{forceAllowNewUpload:!0});return xt(this,Vi)[Vi](r)}cancelAll(){this.emit("cancel-all");const{files:e}=this.getState(),n=Object.keys(e);n.length&&this.removeFiles(n,"cancel-all"),this.setState({totalProgress:0,error:null,recoveredState:null})}retryUpload(e){this.setFileState(e,{error:null,isPaused:!1}),this.emit("upload-retry",e);const n=xt(this,Mi)[Mi]([e],{forceAllowNewUpload:!0});return xt(this,Vi)[Vi](n)}reset(){this.cancelAll()}logout(){this.iteratePlugins(e=>{e.provider&&e.provider.logout&&e.provider.logout()})}calculateProgress(e,n){if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const r=Number.isFinite(n.bytesTotal)&&n.bytesTotal>0;this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,bytesUploaded:n.bytesUploaded,bytesTotal:n.bytesTotal,percentage:r?Math.round(n.bytesUploaded/n.bytesTotal*100):0}}),this.calculateTotalProgress()}calculateTotalProgress(){const e=this.getFiles().filter(s=>s.progress.uploadStarted||s.progress.preprocess||s.progress.postprocess);if(e.length===0)return this.emit("progress",0),void this.setState({totalProgress:0});const n=e.filter(s=>s.progress.bytesTotal!=null),r=e.filter(s=>s.progress.bytesTotal==null);if(n.length===0){const s=100*e.length,l=r.reduce((f,d)=>f+d.progress.percentage,0),c=Math.round(l/s*100);return void this.setState({totalProgress:c})}let o=n.reduce((s,l)=>s+l.progress.bytesTotal,0);const a=o/n.length;o+=a*r.length;let i=0;n.forEach(s=>{i+=s.progress.bytesUploaded}),r.forEach(s=>{i+=a*(s.progress.percentage||0)/100});let u=o===0?0:Math.round(i/o*100);u>100&&(u=100),this.setState({totalProgress:u}),this.emit("progress",u)}updateOnlineStatus(){window.navigator.onLine===void 0||window.navigator.onLine?(this.emit("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)}getID(){return this.opts.id}use(e,n){if(typeof e!="function")throw new TypeError(`Expected a plugin class, but got ${e===null?"null":typeof e}. Please verify that the plugin was imported and spelled correctly.`);const r=new e(this,n),o=r.id;if(!o)throw new Error("Your plugin must have an id");if(!r.type)throw new Error("Your plugin must have a type");const a=this.getPlugin(o);if(a){const i=`Already found a plugin named '${a.id}'. Tried to use: '${o}'.
39
+ Uppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(i)}return e.VERSION&&this.log(`Using ${o} v${e.VERSION}`),r.type in xt(this,Xn)[Xn]?xt(this,Xn)[Xn][r.type].push(r):xt(this,Xn)[Xn][r.type]=[r],r.install(),this}getPlugin(e){for(const n of Object.values(xt(this,Xn)[Xn])){const r=n.find(o=>o.id===e);if(r!=null)return r}}[yT](e){return xt(this,Xn)[Xn][e]}iteratePlugins(e){Object.values(xt(this,Xn)[Xn]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();const n=xt(this,Xn)[Xn][e.type],r=n.findIndex(a=>a.id===e.id);r!==-1&&n.splice(r,1);const o={plugins:{...this.getState().plugins,[e.id]:void 0}};this.setState(o)}close(){this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.reset(),xt(this,sd)[sd](),this.iteratePlugins(e=>{this.removePlugin(e)}),typeof window<"u"&&window.removeEventListener&&(window.removeEventListener("online",xt(this,ko)[ko]),window.removeEventListener("offline",xt(this,ko)[ko]))}hideInfo(){const{info:e}=this.getState();this.setState({info:e.slice(1)}),this.emit("info-hidden")}info(e,n,r){n===void 0&&(n="info"),r===void 0&&(r=3e3);const o=typeof e=="object";this.setState({info:[...this.getState().info,{type:n,message:o?e.message:e,details:o?e.details:null}]}),setTimeout(()=>this.hideInfo(),r),this.emit("info-visible")}log(e,n){const{logger:r}=this.opts;switch(n){case"error":r.error(e);break;case"warning":r.warn(e);break;default:r.debug(e)}}restore(e){return this.log(`Core: attempting to restore upload "${e}"`),this.getState().currentUploads[e]?xt(this,Vi)[Vi](e):(xt(this,$u)[$u](e),Promise.reject(new Error("Nonexistent upload")))}[bT](){return xt(this,Mi)[Mi](...arguments)}addResultData(e,n){if(!xt(this,Xw)[Xw](e))return void this.log(`Not setting result for an upload that has been removed: ${e}`);const{currentUploads:r}=this.getState(),o={...r[e],result:{...r[e].result,...n}};this.setState({currentUploads:{...r,[e]:o}})}upload(){var e;(e=xt(this,Xn)[Xn].uploader)!=null&&e.length||this.log("No uploader type plugins are used","warning");let{files:n}=this.getState();const r=this.opts.onBeforeUpload(n);return r===!1?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(r&&typeof r=="object"&&(n=r,this.setState({files:n})),Promise.resolve().then(()=>{xt(this,Ww)[Ww](n),xt(this,Kw)[Kw](n)}).catch(o=>{xt(this,kn)[kn](o)}).then(()=>{const{currentUploads:o}=this.getState(),a=Object.values(o).flatMap(s=>s.fileIDs),i=[];Object.keys(n).forEach(s=>{const l=this.getFile(s);l.progress.uploadStarted||a.indexOf(s)!==-1||i.push(l.id)});const u=xt(this,Mi)[Mi](i);return xt(this,Vi)[Vi](u)}).catch(o=>{xt(this,kn)[kn](o,{showInformer:!1})}))}}function $Q(t,e){e===void 0&&(e=this.getFiles());const{maxFileSize:n,minFileSize:r,maxTotalFileSize:o,maxNumberOfFiles:a,allowedFileTypes:i}=this.opts.restrictions;if(a&&e.length+1>a)throw new ei(`${this.i18n("youCanOnlyUploadX",{smart_count:a})}`);if(i&&!i.some(u=>u.indexOf("/")>-1?!!t.type&&HQ(t.type.replace(/;.*?$/,""),u):!(u[0]!=="."||!t.extension)&&t.extension.toLowerCase()===u.substr(1).toLowerCase())){const u=i.join(", ");throw new ei(this.i18n("youCanOnlyUploadFileTypes",{types:u}))}if(o&&t.size!=null){let u=0;if(u+=t.size,e.forEach(s=>{u+=s.size}),u>o)throw new ei(this.i18n("exceedsSize",{size:Uw(o),file:t.name}))}if(n&&t.size!=null&&t.size>n)throw new ei(this.i18n("exceedsSize",{size:Uw(n),file:t.name}));if(r&&t.size!=null&&t.size<r)throw new ei(this.i18n("inferiorSize",{size:Uw(r)}))}function qQ(t){const{minNumberOfFiles:e}=this.opts.restrictions;if(Object.keys(t).length<e)throw new ei(`${this.i18n("youHaveToAtLeastSelectX",{smart_count:e})}`)}function t$(t){const{requiredMetaFields:e}=this.opts.restrictions,{hasOwnProperty:n}=Object.prototype,r=[],o=[];for(let a=0;a<e.length;a++)if(!n.call(t.meta,e[a])||t.meta[e[a]]===""){const i=new ei(`${this.i18n("missingRequiredMetaFieldOnFile",{fileName:t.name})}`);r.push(i),o.push(e[a]),xt(this,kn)[kn](i,{file:t,showInformer:!1,throwErr:!1})}return this.setFileState(t.id,{missingRequiredMetaFields:o}),r}function e$(t){const e=Object.keys(t).flatMap(n=>{const r=this.getFile(n);return xt(this,cd)[cd](r)});if(e.length)throw new QQ(e,`${this.i18n("missingRequiredMetaField")}`)}function n$(t,e){let{showInformer:n=!0,file:r=null,throwErr:o=!0}=e===void 0?{}:e;const a=typeof t=="object"?t.message:t,i=typeof t=="object"&&t.details?t.details:"";let u=a;if(i&&(u+=` ${i}`),t.isRestriction?(this.log(u),this.emit("restriction-failed",r,t)):this.log(u,"error"),n&&this.info({message:a,details:i},"error",this.opts.infoTimeout),o)throw typeof t=="object"?t:new Error(t)}function r$(t){const{allowNewUpload:e}=this.getState();e===!1&&xt(this,kn)[kn](new ei(this.i18n("noMoreFilesAllowed")),{file:t})}function o$(t,e){const n=function(f){var d;if(f.type)return f.type;const p=f.name?(d=pT(f.name).extension)==null?void 0:d.toLowerCase():null;return p&&p in hT?hT[p]:"application/octet-stream"}(e),r=function(f,d){return d.name?d.name:f.split("/")[0]==="image"?`${f.split("/")[0]}.${f.split("/")[1]}`:"noname"}(n,e),o=pT(r).extension,a=!!e.isRemote,i=function(f){let d="uppy";return typeof f.name=="string"&&(d+=`-${gT(f.name.toLowerCase())}`),f.type!==void 0&&(d+=`-${f.type}`),f.meta&&typeof f.meta.relativePath=="string"&&(d+=`-${gT(f.meta.relativePath.toLowerCase())}`),f.data.size!==void 0&&(d+=`-${f.data.size}`),f.data.lastModified!==void 0&&(d+=`-${f.data.lastModified}`),d}({...e,type:n});if(this.checkIfFileAlreadyExists(i)){const f=new ei(this.i18n("noDuplicates",{fileName:r}));xt(this,kn)[kn](f,{file:e})}const u=e.meta||{};u.name=r,u.type=n;const s=Number.isFinite(e.data.size)?e.data.size:null;let l={source:e.source||"",id:i,name:r,extension:o||"",meta:{...this.getState().meta,...u},type:n,data:e.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:s,uploadComplete:!1,uploadStarted:null},size:s,isRemote:a,remote:e.remote||"",preview:e.preview};const c=this.opts.onBeforeFileAdded(l,t);c===!1?xt(this,kn)[kn](new ei("Cannot add the file because onBeforeFileAdded returned false."),{showInformer:!1,fileDescriptor:e}):typeof c=="object"&&c!==null&&(l=c);try{const f=Object.keys(t).map(d=>t[d]);xt(this,ld)[ld](l,f)}catch(f){xt(this,kn)[kn](f,{file:l})}return l}function i$(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout(()=>{this.scheduledAutoProceed=null,this.upload().catch(t=>{t.isRestriction||this.log(t.stack||t.message||t)})},4))}function a$(){const t=(e,n,r)=>{let o=e.message||"Unknown error";e.details&&(o+=` ${e.details}`),this.setState({error:o}),n!=null&&n.id in this.getState().files&&this.setFileState(n.id,{error:o,response:r})};this.on("error",t),this.on("upload-error",(e,n,r)=>{if(t(n,e,r),typeof n=="object"&&n.message){const o=new Error(n.message);o.details=n.message,n.details&&(o.details+=` ${n.details}`),o.message=this.i18n("failedToUpload",{file:e.name}),xt(this,kn)[kn](o,{throwErr:!1})}else xt(this,kn)[kn](n,{throwErr:!1})}),this.on("upload",()=>{this.setState({error:null})}),this.on("upload-started",e=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:e.size}}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)}),this.on("upload-progress",this.calculateProgress),this.on("upload-success",(e,n)=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const r=this.getFile(e.id).progress;this.setFileState(e.id,{progress:{...r,postprocess:xt(this,Li)[Li].size>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:r.bytesTotal},response:n,uploadURL:n.uploadURL,isPaused:!1}),e.size==null&&this.setFileState(e.id,{size:n.bytesUploaded||r.bytesTotal}),this.calculateTotalProgress()}),this.on("preprocess-progress",(e,n)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,preprocess:n}}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)}),this.on("preprocess-complete",e=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const n={...this.getState().files};n[e.id]={...n[e.id],progress:{...n[e.id].progress}},delete n[e.id].progress.preprocess,this.setState({files:n})}),this.on("postprocess-progress",(e,n)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getState().files[e.id].progress,postprocess:n}}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)}),this.on("postprocess-complete",e=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const n={...this.getState().files};n[e.id]={...n[e.id],progress:{...n[e.id].progress}},delete n[e.id].progress.postprocess,this.setState({files:n})}),this.on("restored",()=>{this.calculateTotalProgress()}),this.on("dashboard:file-edit-complete",e=>{e&&xt(this,cd)[cd](e)}),typeof window<"u"&&window.addEventListener&&(window.addEventListener("online",xt(this,ko)[ko]),window.addEventListener("offline",xt(this,ko)[ko]),setTimeout(xt(this,ko)[ko],3e3))}function u$(t,e){e===void 0&&(e={});const{forceAllowNewUpload:n=!1}=e,{allowNewUpload:r,currentUploads:o}=this.getState();if(!r&&!n)throw new Error("Cannot create a new upload: already uploading.");const a=XQ();return this.emit("upload",{id:a,fileIDs:t}),this.setState({allowNewUpload:this.opts.allowMultipleUploadBatches!==!1&&this.opts.allowMultipleUploads!==!1,currentUploads:{...o,[a]:{fileIDs:t,step:0,result:{}}}}),a}function s$(t){const{currentUploads:e}=this.getState();return e[t]}function l$(t){const e={...this.getState().currentUploads};delete e[t],this.setState({currentUploads:e})}async function c$(t){let{currentUploads:e}=this.getState(),n=e[t];const r=n.step||0,o=[...xt(this,Ju)[Ju],...xt(this,Qu)[Qu],...xt(this,Li)[Li]];try{for(let i=r;i<o.length&&n;i++){const u=o[i],s={...n,step:i};this.setState({currentUploads:{...e,[t]:s}}),await u(s.fileIDs,t),e=this.getState().currentUploads,n=e[t]}}catch(i){throw this.emit("error",i),xt(this,$u)[$u](t),i}if(n){n.fileIDs.forEach(l=>{const c=this.getFile(l);c&&c.progress.postprocess&&this.emit("postprocess-complete",c)});const i=n.fileIDs.map(l=>this.getFile(l)),u=i.filter(l=>!l.error),s=i.filter(l=>l.error);await this.addResultData(t,{successful:u,failed:s,uploadID:t}),e=this.getState().currentUploads,n=e[t]}let a;return n&&(a=n.result,this.emit("complete",a),xt(this,$u)[$u](t)),a==null&&this.log(`Not setting result for an upload that has been removed: ${t}`),a}wT.VERSION="2.1.3";var ET=wT,f$=Pu(function(t,e){var n,r,o,a,i,u,s,l,c={},f=[],d=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function p(O,B){for(var I in B)O[I]=B[I];return O}function m(O){var B=O.parentNode;B&&B.removeChild(O)}function h(O,B,I){var Y,et,X,ot={};for(X in B)X=="key"?Y=B[X]:X=="ref"?et=B[X]:ot[X]=B[X];if(arguments.length>2&&(ot.children=arguments.length>3?n.call(arguments,2):I),typeof O=="function"&&O.defaultProps!=null)for(X in O.defaultProps)ot[X]===void 0&&(ot[X]=O.defaultProps[X]);return v(O,ot,Y,et,null)}function v(O,B,I,Y,et){var X={type:O,props:B,key:I,ref:Y,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:et??++o};return et==null&&r.vnode!=null&&r.vnode(X),X}function y(O){return O.children}function g(O,B){this.props=O,this.context=B}function w(O,B){if(B==null)return O.__?w(O.__,O.__.__k.indexOf(O)+1):null;for(var I;B<O.__k.length;B++)if((I=O.__k[B])!=null&&I.__e!=null)return I.__e;return typeof O.type=="function"?w(O):null}function E(O){var B,I;if((O=O.__)!=null&&O.__c!=null){for(O.__e=O.__c.base=null,B=0;B<O.__k.length;B++)if((I=O.__k[B])!=null&&I.__e!=null){O.__e=O.__c.base=I.__e;break}return E(O)}}function x(O){(!O.__d&&(O.__d=!0)&&i.push(O)&&!S.__r++||s!==r.debounceRendering)&&((s=r.debounceRendering)||u)(S)}function S(){for(var O;S.__r=i.length;)O=i.sort(function(B,I){return B.__v.__b-I.__v.__b}),i=[],O.some(function(B){var I,Y,et,X,ot,mt;B.__d&&(ot=(X=(I=B).__v).__e,(mt=I.__P)&&(Y=[],(et=p({},X)).__v=X.__v+1,j(mt,X,et,I.__n,mt.ownerSVGElement!==void 0,X.__h!=null?[ot]:null,Y,ot??w(X),X.__h),G(Y,X),X.__e!=ot&&E(X)))})}function C(O,B,I,Y,et,X,ot,mt,bt,Pt){var tt,Mt,Dt,ht,kt,ye,zt,he=Y&&Y.__k||f,Te=he.length;for(I.__k=[],tt=0;tt<B.length;tt++)if((ht=I.__k[tt]=(ht=B[tt])==null||typeof ht=="boolean"?null:typeof ht=="string"||typeof ht=="number"||typeof ht=="bigint"?v(null,ht,null,null,ht):Array.isArray(ht)?v(y,{children:ht},null,null,null):ht.__b>0?v(ht.type,ht.props,ht.key,null,ht.__v):ht)!=null){if(ht.__=I,ht.__b=I.__b+1,(Dt=he[tt])===null||Dt&&ht.key==Dt.key&&ht.type===Dt.type)he[tt]=void 0;else for(Mt=0;Mt<Te;Mt++){if((Dt=he[Mt])&&ht.key==Dt.key&&ht.type===Dt.type){he[Mt]=void 0;break}Dt=null}j(O,ht,Dt=Dt||c,et,X,ot,mt,bt,Pt),kt=ht.__e,(Mt=ht.ref)&&Dt.ref!=Mt&&(zt||(zt=[]),Dt.ref&&zt.push(Dt.ref,null,ht),zt.push(Mt,ht.__c||kt,ht)),kt!=null?(ye==null&&(ye=kt),typeof ht.type=="function"&&ht.__k===Dt.__k?ht.__d=bt=T(ht,bt,O):bt=A(O,ht,Dt,he,kt,bt),typeof I.type=="function"&&(I.__d=bt)):bt&&Dt.__e==bt&&bt.parentNode!=O&&(bt=w(Dt))}for(I.__e=ye,tt=Te;tt--;)he[tt]!=null&&(typeof I.type=="function"&&he[tt].__e!=null&&he[tt].__e==I.__d&&(I.__d=w(Y,tt+1)),rt(he[tt],he[tt]));if(zt)for(tt=0;tt<zt.length;tt++)J(zt[tt],zt[++tt],zt[++tt])}function T(O,B,I){for(var Y,et=O.__k,X=0;et&&X<et.length;X++)(Y=et[X])&&(Y.__=O,B=typeof Y.type=="function"?T(Y,B,I):A(I,Y,Y,et,Y.__e,B));return B}function A(O,B,I,Y,et,X){var ot,mt,bt;if(B.__d!==void 0)ot=B.__d,B.__d=void 0;else if(I==null||et!=X||et.parentNode==null)t:if(X==null||X.parentNode!==O)O.appendChild(et),ot=null;else{for(mt=X,bt=0;(mt=mt.nextSibling)&&bt<Y.length;bt+=2)if(mt==et)break t;O.insertBefore(et,X),ot=X}return ot!==void 0?ot:et.nextSibling}function k(O,B,I){B[0]==="-"?O.setProperty(B,I):O[B]=I==null?"":typeof I!="number"||d.test(B)?I:I+"px"}function M(O,B,I,Y,et){var X;t:if(B==="style")if(typeof I=="string")O.style.cssText=I;else{if(typeof Y=="string"&&(O.style.cssText=Y=""),Y)for(B in Y)I&&B in I||k(O.style,B,"");if(I)for(B in I)Y&&I[B]===Y[B]||k(O.style,B,I[B])}else if(B[0]==="o"&&B[1]==="n")X=B!==(B=B.replace(/Capture$/,"")),B=B.toLowerCase()in O?B.toLowerCase().slice(2):B.slice(2),O.l||(O.l={}),O.l[B+X]=I,I?Y||O.addEventListener(B,X?N:H,X):O.removeEventListener(B,X?N:H,X);else if(B!=="dangerouslySetInnerHTML"){if(et)B=B.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if(B!=="href"&&B!=="list"&&B!=="form"&&B!=="tabIndex"&&B!=="download"&&B in O)try{O[B]=I??"";break t}catch{}typeof I=="function"||(I!=null&&(I!==!1||B[0]==="a"&&B[1]==="r")?O.setAttribute(B,I):O.removeAttribute(B))}}function H(O){this.l[O.type+!1](r.event?r.event(O):O)}function N(O){this.l[O.type+!0](r.event?r.event(O):O)}function j(O,B,I,Y,et,X,ot,mt,bt){var Pt,tt,Mt,Dt,ht,kt,ye,zt,he,Te,ke,Ut=B.type;if(B.constructor!==void 0)return null;I.__h!=null&&(bt=I.__h,mt=B.__e=I.__e,B.__h=null,X=[mt]),(Pt=r.__b)&&Pt(B);try{t:if(typeof Ut=="function"){if(zt=B.props,he=(Pt=Ut.contextType)&&Y[Pt.__c],Te=Pt?he?he.props.value:Pt.__:Y,I.__c?ye=(tt=B.__c=I.__c).__=tt.__E:("prototype"in Ut&&Ut.prototype.render?B.__c=tt=new Ut(zt,Te):(B.__c=tt=new g(zt,Te),tt.constructor=Ut,tt.render=it),he&&he.sub(tt),tt.props=zt,tt.state||(tt.state={}),tt.context=Te,tt.__n=Y,Mt=tt.__d=!0,tt.__h=[]),tt.__s==null&&(tt.__s=tt.state),Ut.getDerivedStateFromProps!=null&&(tt.__s==tt.state&&(tt.__s=p({},tt.__s)),p(tt.__s,Ut.getDerivedStateFromProps(zt,tt.__s))),Dt=tt.props,ht=tt.state,Mt)Ut.getDerivedStateFromProps==null&&tt.componentWillMount!=null&&tt.componentWillMount(),tt.componentDidMount!=null&&tt.__h.push(tt.componentDidMount);else{if(Ut.getDerivedStateFromProps==null&&zt!==Dt&&tt.componentWillReceiveProps!=null&&tt.componentWillReceiveProps(zt,Te),!tt.__e&&tt.shouldComponentUpdate!=null&&tt.shouldComponentUpdate(zt,tt.__s,Te)===!1||B.__v===I.__v){tt.props=zt,tt.state=tt.__s,B.__v!==I.__v&&(tt.__d=!1),tt.__v=B,B.__e=I.__e,B.__k=I.__k,B.__k.forEach(function(bn){bn&&(bn.__=B)}),tt.__h.length&&ot.push(tt);break t}tt.componentWillUpdate!=null&&tt.componentWillUpdate(zt,tt.__s,Te),tt.componentDidUpdate!=null&&tt.__h.push(function(){tt.componentDidUpdate(Dt,ht,kt)})}tt.context=Te,tt.props=zt,tt.state=tt.__s,(Pt=r.__r)&&Pt(B),tt.__d=!1,tt.__v=B,tt.__P=O,Pt=tt.render(tt.props,tt.state,tt.context),tt.state=tt.__s,tt.getChildContext!=null&&(Y=p(p({},Y),tt.getChildContext())),Mt||tt.getSnapshotBeforeUpdate==null||(kt=tt.getSnapshotBeforeUpdate(Dt,ht)),ke=Pt!=null&&Pt.type===y&&Pt.key==null?Pt.props.children:Pt,C(O,Array.isArray(ke)?ke:[ke],B,I,Y,et,X,ot,mt,bt),tt.base=B.__e,B.__h=null,tt.__h.length&&ot.push(tt),ye&&(tt.__E=tt.__=null),tt.__e=!1}else X==null&&B.__v===I.__v?(B.__k=I.__k,B.__e=I.__e):B.__e=V(I.__e,B,I,Y,et,X,ot,bt);(Pt=r.diffed)&&Pt(B)}catch(bn){B.__v=null,(bt||X!=null)&&(B.__e=mt,B.__h=!!bt,X[X.indexOf(mt)]=null),r.__e(bn,B,I)}}function G(O,B){r.__c&&r.__c(B,O),O.some(function(I){try{O=I.__h,I.__h=[],O.some(function(Y){Y.call(I)})}catch(Y){r.__e(Y,I.__v)}})}function V(O,B,I,Y,et,X,ot,mt){var bt,Pt,tt,Mt=I.props,Dt=B.props,ht=B.type,kt=0;if(ht==="svg"&&(et=!0),X!=null){for(;kt<X.length;kt++)if((bt=X[kt])&&"setAttribute"in bt==!!ht&&(ht?bt.localName===ht:bt.nodeType===3)){O=bt,X[kt]=null;break}}if(O==null){if(ht===null)return document.createTextNode(Dt);O=et?document.createElementNS("http://www.w3.org/2000/svg",ht):document.createElement(ht,Dt.is&&Dt),X=null,mt=!1}if(ht===null)Mt===Dt||mt&&O.data===Dt||(O.data=Dt);else{if(X=X&&n.call(O.childNodes),Pt=(Mt=I.props||c).dangerouslySetInnerHTML,tt=Dt.dangerouslySetInnerHTML,!mt){if(X!=null)for(Mt={},kt=0;kt<O.attributes.length;kt++)Mt[O.attributes[kt].name]=O.attributes[kt].value;(tt||Pt)&&(tt&&(Pt&&tt.__html==Pt.__html||tt.__html===O.innerHTML)||(O.innerHTML=tt&&tt.__html||""))}if(function(ye,zt,he,Te,ke){var Ut;for(Ut in he)Ut==="children"||Ut==="key"||Ut in zt||M(ye,Ut,null,he[Ut],Te);for(Ut in zt)ke&&typeof zt[Ut]!="function"||Ut==="children"||Ut==="key"||Ut==="value"||Ut==="checked"||he[Ut]===zt[Ut]||M(ye,Ut,zt[Ut],he[Ut],Te)}(O,Dt,Mt,et,mt),tt)B.__k=[];else if(kt=B.props.children,C(O,Array.isArray(kt)?kt:[kt],B,I,Y,et&&ht!=="foreignObject",X,ot,X?X[0]:I.__k&&w(I,0),mt),X!=null)for(kt=X.length;kt--;)X[kt]!=null&&m(X[kt]);mt||("value"in Dt&&(kt=Dt.value)!==void 0&&(kt!==Mt.value||kt!==O.value||ht==="progress"&&!kt)&&M(O,"value",kt,Mt.value,!1),"checked"in Dt&&(kt=Dt.checked)!==void 0&&kt!==O.checked&&M(O,"checked",kt,Mt.checked,!1))}return O}function J(O,B,I){try{typeof O=="function"?O(B):O.current=B}catch(Y){r.__e(Y,I)}}function rt(O,B,I){var Y,et;if(r.unmount&&r.unmount(O),(Y=O.ref)&&(Y.current&&Y.current!==O.__e||J(Y,null,B)),(Y=O.__c)!=null){if(Y.componentWillUnmount)try{Y.componentWillUnmount()}catch(X){r.__e(X,B)}Y.base=Y.__P=null}if(Y=O.__k)for(et=0;et<Y.length;et++)Y[et]&&rt(Y[et],B,typeof O.type!="function");I||O.__e==null||m(O.__e),O.__e=O.__d=void 0}function it(O,B,I){return this.constructor(O,I)}function W(O,B,I){var Y,et,X;r.__&&r.__(O,B),et=(Y=typeof I=="function")?null:I&&I.__k||B.__k,X=[],j(B,O=(!Y&&I||B).__k=h(y,null,[O]),et||c,c,B.ownerSVGElement!==void 0,!Y&&I?[I]:et?null:B.firstChild?n.call(B.childNodes):null,X,!Y&&I?I:et?et.__e:B.firstChild,Y),G(X,O)}n=f.slice,r={__e:function(O,B){for(var I,Y,et;B=B.__;)if((I=B.__c)&&!I.__)try{if((Y=I.constructor)&&Y.getDerivedStateFromError!=null&&(I.setState(Y.getDerivedStateFromError(O)),et=I.__d),I.componentDidCatch!=null&&(I.componentDidCatch(O),et=I.__d),et)return I.__E=I}catch(X){O=X}throw O}},o=0,a=function(O){return O!=null&&O.constructor===void 0},g.prototype.setState=function(O,B){var I;I=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=p({},this.state),typeof O=="function"&&(O=O(p({},I),this.props)),O&&p(I,O),O!=null&&this.__v&&(B&&this.__h.push(B),x(this))},g.prototype.forceUpdate=function(O){this.__v&&(this.__e=!0,O&&this.__h.push(O),x(this))},g.prototype.render=y,i=[],u=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,S.__r=0,l=0,e.Component=g,e.Fragment=y,e.cloneElement=function(O,B,I){var Y,et,X,ot=p({},O.props);for(X in B)X=="key"?Y=B[X]:X=="ref"?et=B[X]:ot[X]=B[X];return arguments.length>2&&(ot.children=arguments.length>3?n.call(arguments,2):I),v(O.type,ot,Y||O.key,et||O.ref,null)},e.createContext=function(O,B){var I={__c:B="__cC"+l++,__:O,Consumer:function(Y,et){return Y.children(et)},Provider:function(Y){var et,X;return this.getChildContext||(et=[],(X={})[B]=this,this.getChildContext=function(){return X},this.shouldComponentUpdate=function(ot){this.props.value!==ot.value&&et.some(x)},this.sub=function(ot){et.push(ot);var mt=ot.componentWillUnmount;ot.componentWillUnmount=function(){et.splice(et.indexOf(ot),1),mt&&mt.call(ot)}}),Y.children}};return I.Provider.__=I.Consumer.contextType=I},e.createElement=h,e.createRef=function(){return{current:null}},e.h=h,e.hydrate=function O(B,I){W(B,I,O)},e.isValidElement=a,e.options=r,e.render=W,e.toChildArray=function O(B,I){return I=I||[],B==null||typeof B=="boolean"||(Array.isArray(B)?B.some(function(Y){O(Y,I)}):I.push(B)),I}}),d$=function(t,e){return e===void 0&&(e=document),typeof t=="string"?e.querySelector(t):((n=t)==null?void 0:n.nodeType)===Node.ELEMENT_NODE?t:null;var n},Zw=class{constructor(t,e){e===void 0&&(e={}),this.uppy=t,this.opts=e}getPluginState(){const{plugins:t}=this.uppy.getState();return t[this.id]||{}}setPluginState(t){const{plugins:e}=this.uppy.getState();this.uppy.setState({plugins:{...e,[this.id]:{...e[this.id],...t}}})}setOptions(t){this.opts={...this.opts,...t},this.setPluginState(),this.i18nInit()}i18nInit(){const t=new lT([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=t.translate.bind(t),this.i18nArray=t.translateArray.bind(t),this.setPluginState()}addTarget(){throw new Error("Extend the addTarget method to add your plugin to another plugin's target")}install(){}uninstall(){}render(){throw new Error("Extend the render method to add your plugin to a DOM element")}update(){}afterUpdate(){}};function ST(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var p$=0;function h$(t){return"__private_"+p$+++"_"+t}const{render:xT}=f$;var hd=h$("updateUI");class Jw extends Zw{constructor(){super(...arguments),Object.defineProperty(this,hd,{writable:!0,value:void 0})}mount(e,n){const r=n.id,o=d$(e);if(o){this.isTargetDOMEl=!0;const u=document.createDocumentFragment();return ST(this,hd)[hd]=function(s){let l=null,c=null;return function(){for(var f=arguments.length,d=new Array(f),p=0;p<f;p++)d[p]=arguments[p];return c=d,l||(l=Promise.resolve().then(()=>(l=null,s(...c)))),l}}(s=>{this.uppy.getPlugin(this.id)&&(xT(this.render(s),u),this.afterUpdate())}),this.uppy.log(`Installing ${r} to a DOM element '${e}'`),this.opts.replaceTargetContent&&(o.innerHTML=""),xT(this.render(this.uppy.getState()),u),this.el=u.firstElementChild,o.appendChild(u),this.onMount(),this.el}let a;if(typeof e=="object"&&e instanceof Jw)a=e;else if(typeof e=="function"){const u=e;this.uppy.iteratePlugins(s=>{if(s instanceof u)return a=s,!1})}if(a)return this.uppy.log(`Installing ${r} to ${a.id}`),this.parent=a,this.el=a.addTarget(n),this.onMount(),this.el;this.uppy.log(`Not installing ${r}`);let i=`Invalid target option given to ${r}.`;throw i+=typeof e=="function"?" The given target is not a Plugin class. Please check that you're not specifying a React Component instead of a plugin. If you are using @uppy/* packages directly, make sure you have only 1 version of @uppy/core installed: run `npm ls @uppy/core` on the command line and verify that all the versions match and are deduped correctly.":"If you meant to target an HTML element, please make sure that the element exists. Check that the <script> tag initializing Uppy is right before the closing </body> tag at the end of the page. (see https://github.com/transloadit/uppy/issues/1042)\n\nIf you meant to target a plugin, please confirm that your `import` statements or `require` calls are correct.",new Error(i)}update(e){var n,r;this.el!=null&&((n=(r=ST(this,hd))[hd])==null||n.call(r,e))}unmount(){var e;this.isTargetDOMEl&&((e=this.el)==null||e.remove()),this.onUnmount()}onMount(){}onUnmount(){}}var g$=Jw;const{debugLogger:v$}=vT;var gd=ET,m$=ET,y$=g$,b$=Zw,w$=v$;gd.Uppy=m$,gd.UIPlugin=y$,gd.BasePlugin=b$,gd.debugLogger=w$;class E$ extends Error{constructor(e,n){n===void 0&&(n=null),super("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall."),this.cause=e,this.isNetworkError=!0,this.request=n}}var Qw=E$,$w=function(){return fetch(...arguments).catch(t=>{throw t.name==="AbortError"?t:new Qw(t)})};class S$ extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}var Zv,Ea,ni,Sa,CT,x$=S$;function ri(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var C$=0;function qw(t){return"__private_"+C$+++"_"+t}async function tE(t){if(t.status===401)throw new x$;const e=t.json();if(t.status<200||t.status>300){let n=`Failed request with status: ${t.status}. ${t.statusText}`;try{const r=await e;n=r.message?`${n} message: ${r.message}`:n,n=r.requestId?`${n} request-Id: ${r.requestId}`:n}finally{throw new Error(n)}}return e}var DT=(Ea=qw("getPostResponseFunc"),ni=qw("getUrl"),Sa=qw("errorHandler"),CT=Zv=class o_{constructor(e,n){Object.defineProperty(this,Sa,{value:O$}),Object.defineProperty(this,ni,{value:D$}),Object.defineProperty(this,Ea,{writable:!0,value:r=>o=>r?o:this.onReceiveResponse(o)}),this.uppy=e,this.opts=n,this.onReceiveResponse=this.onReceiveResponse.bind(this),this.allowedHeaders=["accept","content-type","uppy-auth-token"],this.preflightDone=!1}get hostname(){const{companion:e}=this.uppy.getState(),n=this.opts.companionUrl;return(e&&e[n]?e[n]:n).replace(/\/$/,"")}headers(){const e=this.opts.companionHeaders||{};return Promise.resolve({...o_.defaultHeaders,...e})}onReceiveResponse(e){const n=this.uppy.getState().companion||{},r=this.opts.companionUrl,{headers:o}=e;return o.has("i-am")&&o.get("i-am")!==n[r]&&this.uppy.setState({companion:{...n,[r]:o.get("i-am")}}),e}preflight(e){return this.preflightDone?Promise.resolve(this.allowedHeaders.slice()):fetch(ri(this,ni)[ni](e),{method:"OPTIONS"}).then(n=>(n.headers.has("access-control-allow-headers")&&(this.allowedHeaders=n.headers.get("access-control-allow-headers").split(",").map(r=>r.trim().toLowerCase())),this.preflightDone=!0,this.allowedHeaders.slice())).catch(n=>(this.uppy.log(`[CompanionClient] unable to make preflight request ${n}`,"warning"),this.preflightDone=!0,this.allowedHeaders.slice()))}preflightAndHeaders(e){return Promise.all([this.preflight(e),this.headers()]).then(n=>{let[r,o]=n;return Object.keys(o).forEach(a=>{r.includes(a.toLowerCase())||(this.uppy.log(`[CompanionClient] excluding disallowed header ${a}`),delete o[a])}),o})}get(e,n){return this.preflightAndHeaders(e).then(r=>$w(ri(this,ni)[ni](e),{method:"get",headers:r,credentials:this.opts.companionCookiesRule||"same-origin"})).then(ri(this,Ea)[Ea](n)).then(tE).catch(ri(this,Sa)[Sa]("get",e))}post(e,n,r){const o="post";return this.preflightAndHeaders(e).then(a=>$w(ri(this,ni)[ni](e),{method:o,headers:a,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(n)})).then(ri(this,Ea)[Ea](r)).then(tE).catch(ri(this,Sa)[Sa](o,e))}delete(e,n,r){const o="delete";return this.preflightAndHeaders(e).then(a=>$w(`${this.hostname}/${e}`,{method:o,headers:a,credentials:this.opts.companionCookiesRule||"same-origin",body:n?JSON.stringify(n):null})).then(ri(this,Ea)[Ea](r)).then(tE).catch(ri(this,Sa)[Sa](o,e))}},Zv.VERSION="2.0.4",Zv.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":`@uppy/companion-client=${Zv.VERSION}`},CT);function D$(t){return/^(https?:|)\/\//.test(t)?t:`${this.hostname}/${t}`}function O$(t,e){return n=>{var r;if((r=n)==null||!r.isAuthError){const o=new Error(`Could not ${t} ${ri(this,ni)[ni](e)}`);o.cause=n,n=o}return Promise.reject(n)}}var A$={setItem:(t,e)=>new Promise(n=>{localStorage.setItem(t,e),n()}),getItem:t=>Promise.resolve(localStorage.getItem(t)),removeItem:t=>new Promise(e=>{localStorage.removeItem(t),e()})},oi,xa,uo,nr,Jv;let OT,AT;function Cn(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var T$=0;function vd(t){return"__private_"+T$+++"_"+t}var B$=(oi=vd("queued"),xa=vd("emitter"),uo=vd("isOpen"),nr=vd("socket"),Jv=vd("handleMessage"),OT=Symbol.for("uppy test: getSocket"),AT=Symbol.for("uppy test: getQueued"),class{constructor(t){Object.defineProperty(this,oi,{writable:!0,value:[]}),Object.defineProperty(this,xa,{writable:!0,value:cT()}),Object.defineProperty(this,uo,{writable:!0,value:!1}),Object.defineProperty(this,nr,{writable:!0,value:void 0}),Object.defineProperty(this,Jv,{writable:!0,value:e=>{try{const n=JSON.parse(e.data);this.emit(n.action,n.payload)}catch(n){console.log(n)}}}),this.opts=t,t&&t.autoOpen===!1||this.open()}get isOpen(){return Cn(this,uo)[uo]}[OT](){return Cn(this,nr)[nr]}[AT](){return Cn(this,oi)[oi]}open(){Cn(this,nr)[nr]=new WebSocket(this.opts.target),Cn(this,nr)[nr].onopen=()=>{for(Cn(this,uo)[uo]=!0;Cn(this,oi)[oi].length>0&&Cn(this,uo)[uo];){const t=Cn(this,oi)[oi].shift();this.send(t.action,t.payload)}},Cn(this,nr)[nr].onclose=()=>{Cn(this,uo)[uo]=!1},Cn(this,nr)[nr].onmessage=Cn(this,Jv)[Jv]}close(){var t;(t=Cn(this,nr)[nr])==null||t.close()}send(t,e){Cn(this,uo)[uo]?Cn(this,nr)[nr].send(JSON.stringify({action:t,payload:e})):Cn(this,oi)[oi].push({action:t,payload:e})}on(t,e){Cn(this,xa)[xa].on(t,e)}emit(t,e){Cn(this,xa)[xa].emit(t,e)}once(t,e){Cn(this,xa)[xa].once(t,e)}}),P$={RequestClient:DT,Provider:class extends DT{constructor(t,e){super(t,e),this.provider=e.provider,this.id=this.provider,this.name=this.opts.name||(n=>n.split("-").map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join(" "))(this.id),this.pluginId=this.opts.pluginId,this.tokenKey=`companion-${this.pluginId}-auth-token`,this.companionKeysParams=this.opts.companionKeysParams,this.preAuthToken=null}headers(){return Promise.all([super.headers(),this.getAuthToken()]).then(t=>{let[e,n]=t;const r={};return n&&(r["uppy-auth-token"]=n),this.companionKeysParams&&(r["uppy-credentials-params"]=btoa(JSON.stringify({params:this.companionKeysParams}))),{...e,...r}})}onReceiveResponse(t){t=super.onReceiveResponse(t);const e=this.uppy.getPlugin(this.pluginId),n=e.getPluginState().authenticated?t.status!==401:t.status<400;return e.setPluginState({authenticated:n}),t}setAuthToken(t){return this.uppy.getPlugin(this.pluginId).storage.setItem(this.tokenKey,t)}getAuthToken(){return this.uppy.getPlugin(this.pluginId).storage.getItem(this.tokenKey)}authUrl(t){return t===void 0&&(t={}),this.preAuthToken&&(t.uppyPreAuthToken=this.preAuthToken),`${this.hostname}/${this.id}/connect?${new URLSearchParams(t)}`}fileUrl(t){return`${this.hostname}/${this.id}/get/${t}`}fetchPreAuthToken(){return this.companionKeysParams?this.post(`${this.id}/preauth/`,{params:this.companionKeysParams}).then(t=>{this.preAuthToken=t.token}).catch(t=>{this.uppy.log(`[CompanionClient] unable to fetch preAuthToken ${t}`,"warning")}):Promise.resolve()}list(t){return this.get(`${this.id}/list/${t||""}`)}logout(){return this.get(`${this.id}/logout`).then(t=>Promise.all([t,this.uppy.getPlugin(this.pluginId).storage.removeItem(this.tokenKey)])).then(t=>{let[e]=t;return e})}static initPlugin(t,e,n){if(t.type="acquirer",t.files=[],n&&(t.opts={...n,...e}),e.serverUrl||e.serverPattern)throw new Error("`serverUrl` and `serverPattern` have been renamed to `companionUrl` and `companionAllowedHosts` respectively in the 0.30.5 release. Please consult the docs (for example, https://uppy.io/docs/instagram/ for the Instagram plugin) and use the updated options.`");if(e.companionAllowedHosts){const r=e.companionAllowedHosts;if(!(typeof r=="string"||Array.isArray(r)||r instanceof RegExp))throw new TypeError(`${t.id}: the option "companionAllowedHosts" must be one of string, Array, RegExp`);t.opts.companionAllowedHosts=r}else/^(?!https?:\/\/).*$/i.test(e.companionUrl)?t.opts.companionAllowedHosts=`https://${e.companionUrl.replace(/^\/\//,"")}`:t.opts.companionAllowedHosts=new URL(e.companionUrl).origin;t.storage=t.opts.storage||A$}},Socket:B$},Ca,Vl,F$=Zu(function(t,e,n){const{progress:r,bytesUploaded:o,bytesTotal:a}=e;r&&(t.uppy.log(`Upload progress: ${r}`),t.uppy.emit("upload-progress",n,{uploader:t,bytesUploaded:o,bytesTotal:a}))},300,{leading:!0,trailing:!0});function md(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var k$=0;function TT(t){return"__private_"+k$+++"_"+t}var BT=(Ca=TT("emitter"),Vl=TT("events"),class{constructor(t){Object.defineProperty(this,Ca,{writable:!0,value:void 0}),Object.defineProperty(this,Vl,{writable:!0,value:[]}),md(this,Ca)[Ca]=t}on(t,e){return md(this,Vl)[Vl].push([t,e]),md(this,Ca)[Ca].on(t,e)}remove(){for(const[t,e]of md(this,Vl)[Vl].splice(0))md(this,Ca)[Ca].off(t,e)}});function so(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var N$=0;function Qv(t){return"__private_"+N$+++"_"+t}var zi=Qv("aliveTimer"),qu=Qv("isDone"),yd=Qv("onTimedOut"),ts=Qv("timeout"),PT=class{constructor(t,e){Object.defineProperty(this,zi,{writable:!0,value:void 0}),Object.defineProperty(this,qu,{writable:!0,value:!1}),Object.defineProperty(this,yd,{writable:!0,value:void 0}),Object.defineProperty(this,ts,{writable:!0,value:void 0}),so(this,ts)[ts]=t,so(this,yd)[yd]=e}progress(){so(this,qu)[qu]||so(this,ts)[ts]>0&&(clearTimeout(so(this,zi)[zi]),so(this,zi)[zi]=setTimeout(so(this,yd)[yd],so(this,ts)[ts]))}done(){so(this,qu)[qu]||(clearTimeout(so(this,zi)[zi]),so(this,zi)[zi]=null,so(this,qu)[qu]=!0)}};function Dn(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var I$=0;function es(t){return"__private_"+I$+++"_"+t}function j$(){return new Error("Cancelled")}var Ur=es("activeRequests"),gr=es("queuedHandlers"),bd=es("call"),wd=es("queueNext"),eE=es("next"),nE=es("queue"),rE=es("dequeue");function R$(t){Dn(this,Ur)[Ur]+=1;let e,n=!1;try{e=t()}catch(r){throw Dn(this,Ur)[Ur]-=1,r}return{abort:()=>{n||(n=!0,Dn(this,Ur)[Ur]-=1,e(),Dn(this,wd)[wd]())},done:()=>{n||(n=!0,Dn(this,Ur)[Ur]-=1,Dn(this,wd)[wd]())}}}function L$(){queueMicrotask(()=>Dn(this,eE)[eE]())}function M$(){if(Dn(this,Ur)[Ur]>=this.limit||Dn(this,gr)[gr].length===0)return;const t=Dn(this,gr)[gr].shift(),e=Dn(this,bd)[bd](t.fn);t.abort=e.abort,t.done=e.done}function V$(t,e){e===void 0&&(e={});const n={fn:t,priority:e.priority||0,abort:()=>{Dn(this,rE)[rE](n)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},r=Dn(this,gr)[gr].findIndex(o=>n.priority>o.priority);return r===-1?Dn(this,gr)[gr].push(n):Dn(this,gr)[gr].splice(r,0,n),n}function z$(t){const e=Dn(this,gr)[gr].indexOf(t);e!==-1&&Dn(this,gr)[gr].splice(e,1)}var H$={RateLimitedQueue:class{constructor(t){Object.defineProperty(this,rE,{value:z$}),Object.defineProperty(this,nE,{value:V$}),Object.defineProperty(this,eE,{value:M$}),Object.defineProperty(this,wd,{value:L$}),Object.defineProperty(this,bd,{value:R$}),Object.defineProperty(this,Ur,{writable:!0,value:0}),Object.defineProperty(this,gr,{writable:!0,value:[]}),this.limit=typeof t!="number"||t===0?1/0:t}run(t,e){return Dn(this,Ur)[Ur]<this.limit?Dn(this,bd)[bd](t):Dn(this,nE)[nE](t,e)}wrapPromiseFunction(t,e){var n=this;return function(){for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];let i;const u=new Promise((s,l)=>{i=n.run(()=>{let c,f;try{f=Promise.resolve(t(...o))}catch(d){f=Promise.reject(d)}return f.then(d=>{c?l(c):(i.done(),s(d))},d=>{c?l(c):(i.done(),l(d))}),()=>{c=j$()}},e)});return u.abort=()=>{i.abort()},u}}},internalRateLimitedQueue:Symbol("__queue")},FT,kT,NT=function(t){return!!t&&(t.readyState!==0&&t.readyState!==4||t.status===0)},U$={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}};const{nanoid:_$}=mT,{Provider:G$,RequestClient:W$,Socket:K$}=P$,{RateLimitedQueue:Y$,internalRateLimitedQueue:oE}=H$;function IT(t,e){let n=e;return n||(n=new Error("Upload error")),typeof n=="string"&&(n=new Error(n)),n instanceof Error||(n=Object.assign(new Error("Upload error"),{data:n})),NT(t)?(n=new Qw(n,t),n):(n.request=t,n)}function jT(t){return t.data.slice(0,t.data.size,t.meta.type)}var X$=(kT=FT=class extends Zw{constructor(t,e){super(t,e),this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=U$;const n={formData:!0,fieldName:e.bundle?"files[]":"file",method:"post",metaFields:null,responseUrlFieldName:"url",bundle:!1,headers:{},timeout:3e4,limit:5,withCredentials:!1,responseType:"",getResponseData(r){let o={};try{o=JSON.parse(r)}catch(a){t.log(a)}return o},getResponseError(r,o){let a=new Error("Upload error");return NT(o)&&(a=new Qw(a,o)),a},validateStatus:r=>r>=200&&r<300};if(this.opts={...n,...e},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),oE in this.opts?this.requests=this.opts[oE]:this.requests=new Y$(this.opts.limit),this.opts.bundle&&!this.opts.formData)throw new Error("`opts.formData` must be true when `opts.bundle` is enabled.");this.uploaderEvents=Object.create(null)}getOptions(t){const e=this.uppy.getState().xhrUpload,{headers:n}=this.opts,r={...this.opts,...e||{},...t.xhrUpload||{},headers:{}};return typeof n=="function"?r.headers=n(t):Object.assign(r.headers,this.opts.headers),e&&Object.assign(r.headers,e.headers),t.xhrUpload&&Object.assign(r.headers,t.xhrUpload.headers),r}addMetadata(t,e,n){(Array.isArray(n.metaFields)?n.metaFields:Object.keys(e)).forEach(r=>{t.append(r,e[r])})}createFormDataUpload(t,e){const n=new FormData;this.addMetadata(n,t.meta,e);const r=jT(t);return t.name?n.append(e.fieldName,r,t.meta.name):n.append(e.fieldName,r),n}createBundledUpload(t,e){const n=new FormData,{meta:r}=this.uppy.getState();return this.addMetadata(n,r,e),t.forEach(o=>{const a=this.getOptions(o),i=jT(o);o.name?n.append(a.fieldName,i,o.name):n.append(a.fieldName,i)}),n}upload(t,e,n){const r=this.getOptions(t);return this.uppy.log(`uploading ${e} of ${n}`),new Promise((o,a)=>{this.uppy.emit("upload-started",t);const i=r.formData?this.createFormDataUpload(t,r):t.data,u=new XMLHttpRequest;this.uploaderEvents[t.id]=new BT(this.uppy);const s=new PT(r.timeout,()=>{u.abort(),c.done();const f=new Error(this.i18n("timedOut",{seconds:Math.ceil(r.timeout/1e3)}));this.uppy.emit("upload-error",t,f),a(f)}),l=_$();u.upload.addEventListener("loadstart",()=>{this.uppy.log(`[XHRUpload] ${l} started`)}),u.upload.addEventListener("progress",f=>{this.uppy.log(`[XHRUpload] ${l} progress: ${f.loaded} / ${f.total}`),s.progress(),f.lengthComputable&&this.uppy.emit("upload-progress",t,{uploader:this,bytesUploaded:f.loaded,bytesTotal:f.total})}),u.addEventListener("load",f=>{if(this.uppy.log(`[XHRUpload] ${l} finished`),s.done(),c.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null),r.validateStatus(f.target.status,u.responseText,u)){const h=r.getResponseData(u.responseText,u),v=h[r.responseUrlFieldName],y={status:f.target.status,body:h,uploadURL:v};return this.uppy.emit("upload-success",t,y),v&&this.uppy.log(`Download ${t.name} from ${v}`),o(t)}const d=r.getResponseData(u.responseText,u),p=IT(u,r.getResponseError(u.responseText,u)),m={status:f.target.status,body:d};return this.uppy.emit("upload-error",t,p,m),a(p)}),u.addEventListener("error",()=>{this.uppy.log(`[XHRUpload] ${l} errored`),s.done(),c.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null);const f=IT(u,r.getResponseError(u.responseText,u));return this.uppy.emit("upload-error",t,f),a(f)}),u.open(r.method.toUpperCase(),r.endpoint,!0),u.withCredentials=r.withCredentials,r.responseType!==""&&(u.responseType=r.responseType);const c=this.requests.run(()=>{this.uppy.emit("upload-started",t);const f=this.getOptions(t);return Object.keys(f.headers).forEach(d=>{u.setRequestHeader(d,f.headers[d])}),u.send(i),()=>{s.done(),u.abort()}});this.onFileRemove(t.id,()=>{c.abort(),a(new Error("File removed"))}),this.onCancelAll(t.id,()=>{c.abort(),a(new Error("Upload cancelled"))})})}uploadRemote(t){const e=this.getOptions(t);return new Promise((n,r)=>{this.uppy.emit("upload-started",t);const o={};(Array.isArray(e.metaFields)?e.metaFields:Object.keys(t.meta)).forEach(a=>{o[a]=t.meta[a]}),new(t.remote.providerOptions.provider?G$:W$)(this.uppy,t.remote.providerOptions).post(t.remote.url,{...t.remote.body,endpoint:e.endpoint,size:t.data.size,fieldname:e.fieldName,metadata:o,httpMethod:e.method,useFormData:e.formData,headers:e.headers}).then(a=>{const{token:i}=a,u=function(c){const f=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(c)[1];return`${/^http:\/\//i.test(c)?"ws":"wss"}://${f}`}(t.remote.companionUrl),s=new K$({target:`${u}/api/${i}`,autoOpen:!1});this.uploaderEvents[t.id]=new BT(this.uppy),this.onFileRemove(t.id,()=>{s.send("cancel",{}),l.abort(),n(`upload ${t.id} was removed`)}),this.onCancelAll(t.id,()=>{s.send("cancel",{}),l.abort(),n(`upload ${t.id} was canceled`)}),this.onRetry(t.id,()=>{s.send("pause",{}),s.send("resume",{})}),this.onRetryAll(t.id,()=>{s.send("pause",{}),s.send("resume",{})}),s.on("progress",c=>F$(this,c,t)),s.on("success",c=>{const f=e.getResponseData(c.response.responseText,c.response),d=f[e.responseUrlFieldName],p={status:c.response.status,body:f,uploadURL:d};return this.uppy.emit("upload-success",t,p),l.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null),n()}),s.on("error",c=>{const f=c.response,d=f?e.getResponseError(f.responseText,f):Object.assign(new Error(c.error.message),{cause:c.error});this.uppy.emit("upload-error",t,d),l.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null),r(d)});const l=this.requests.run(()=>(s.open(),t.isPaused&&s.send("pause",{}),()=>s.close()))}).catch(a=>{this.uppy.emit("upload-error",t,a),r(a)})})}uploadBundle(t){return new Promise((e,n)=>{const{endpoint:r}=this.opts,{method:o}=this.opts,a=this.uppy.getState().xhrUpload,i=this.createBundledUpload(t,{...this.opts,...a||{}}),u=new XMLHttpRequest,s=new PT(this.opts.timeout,()=>{u.abort();const c=new Error(this.i18n("timedOut",{seconds:Math.ceil(this.opts.timeout/1e3)}));l(c),n(c)}),l=c=>{t.forEach(f=>{this.uppy.emit("upload-error",f,c)})};u.upload.addEventListener("loadstart",()=>{this.uppy.log("[XHRUpload] started uploading bundle"),s.progress()}),u.upload.addEventListener("progress",c=>{s.progress(),c.lengthComputable&&t.forEach(f=>{this.uppy.emit("upload-progress",f,{uploader:this,bytesUploaded:c.loaded/c.total*f.size,bytesTotal:f.size})})}),u.addEventListener("load",c=>{if(s.done(),this.opts.validateStatus(c.target.status,u.responseText,u)){const d=this.opts.getResponseData(u.responseText,u),p={status:c.target.status,body:d};return t.forEach(m=>{this.uppy.emit("upload-success",m,p)}),e()}const f=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return f.request=u,l(f),n(f)}),u.addEventListener("error",()=>{s.done();const c=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return l(c),n(c)}),this.uppy.on("cancel-all",()=>{s.done(),u.abort()}),u.open(o.toUpperCase(),r,!0),u.withCredentials=this.opts.withCredentials,this.opts.responseType!==""&&(u.responseType=this.opts.responseType),Object.keys(this.opts.headers).forEach(c=>{u.setRequestHeader(c,this.opts.headers[c])}),u.send(i),t.forEach(c=>{this.uppy.emit("upload-started",c)})})}uploadFiles(t){const e=t.map((n,r)=>{const o=parseInt(r,10)+1,a=t.length;return n.error?Promise.reject(new Error(n.error)):n.isRemote?this.uploadRemote(n,o,a):this.upload(n,o,a)});return function(n){const r=[],o=[];function a(u){r.push(u)}function i(u){o.push(u)}return Promise.all(n.map(u=>u.then(a,i))).then(()=>({successful:r,failed:o}))}(e)}onFileRemove(t,e){this.uploaderEvents[t].on("file-removed",n=>{t===n.id&&e(n.id)})}onRetry(t,e){this.uploaderEvents[t].on("upload-retry",n=>{t===n&&e()})}onRetryAll(t,e){this.uploaderEvents[t].on("retry-all",()=>{this.uppy.getFile(t)&&e()})}onCancelAll(t,e){this.uploaderEvents[t].on("cancel-all",()=>{this.uppy.getFile(t)&&e()})}handleUpload(t){if(t.length===0)return this.uppy.log("[XHRUpload] No files to upload!"),Promise.resolve();this.opts.limit!==0||this.opts[oE]||this.uppy.log("[XHRUpload] When uploading multiple files at once, consider setting the `limit` option (to `10` for example), to limit the number of concurrent uploads, which helps prevent memory and network issues: https://uppy.io/docs/xhr-upload/#limit-0","warning"),this.uppy.log("[XHRUpload] Uploading...");const e=t.map(n=>this.uppy.getFile(n));if(this.opts.bundle){if(e.some(n=>n.isRemote))throw new Error("Can’t upload remote files when the `bundle: true` option is set");if(typeof this.opts.headers=="function")throw new TypeError("`headers` may not be a function when the `bundle: true` option is set");return this.uploadBundle(e)}return this.uploadFiles(e).then(()=>null)}install(){if(this.opts.bundle){const{capabilities:t}=this.uppy.getState();this.uppy.setState({capabilities:{...t,individualCancellation:!1}})}this.uppy.addUploader(this.handleUpload)}uninstall(){if(this.opts.bundle){const{capabilities:t}=this.uppy.getState();this.uppy.setState({capabilities:{...t,individualCancellation:!0}})}this.uppy.removeUploader(this.handleUpload)}},FT.VERSION="2.0.6",kT),RT=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ed(t){var e={exports:{}};return t(e,e.exports),e.exports}var Da,$v,qv=function(t){return t&&t.Math==Math&&t},at=qv(typeof globalThis=="object"&&globalThis)||qv(typeof window=="object"&&window)||qv(typeof self=="object"&&self)||qv(typeof RT=="object"&&RT)||function(){return this}()||Function("return this")(),Z$=Object.defineProperty,iE=function(t,e){try{Z$(at,t,{value:e,configurable:!0,writable:!0})}catch{at[t]=e}return e},Oa=at["__core-js_shared__"]||iE("__core-js_shared__",{}),aE=Ed(function(t){(t.exports=function(e,n){return Oa[e]||(Oa[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),LT=Function.prototype,uE=LT.bind,sE=LT.call,J$=uE&&uE.bind(sE),Ct=uE?function(t){return t&&J$(sE,t)}:function(t){return t&&function(){return sE.apply(t,arguments)}},Q$=at.TypeError,lo=function(t){if(t==null)throw Q$("Can't call method on "+t);return t},$$=at.Object,Aa=function(t){return $$(lo(t))},q$=Ct({}.hasOwnProperty),pn=Object.hasOwn||function(t,e){return q$(Aa(t),e)},tq=0,eq=Math.random(),nq=Ct(1 .toString),lE=function(t){return"Symbol("+(t===void 0?"":t)+")_"+nq(++tq+eq,36)},Oe=function(t){return typeof t=="function"},rq=function(t){return Oe(t)?t:void 0},ns=function(t,e){return arguments.length<2?rq(at[t]):at[t]&&at[t][e]},zl=ns("navigator","userAgent")||"",MT=at.process,VT=at.Deno,zT=MT&&MT.versions||VT&&VT.version,HT=zT&&zT.v8;HT&&($v=(Da=HT.split("."))[0]>0&&Da[0]<4?1:+(Da[0]+Da[1])),!$v&&zl&&(!(Da=zl.match(/Edge\/(\d+)/))||Da[1]>=74)&&(Da=zl.match(/Chrome\/(\d+)/))&&($v=+Da[1]);var Sd=$v,be=function(t){try{return!!t()}catch{return!0}},cE=!!Object.getOwnPropertySymbols&&!be(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Sd&&Sd<41}),fE=cE&&!Symbol.sham&&typeof Symbol.iterator=="symbol",xd=aE("wks"),rs=at.Symbol,UT=rs&&rs.for,oq=fE?rs:rs&&rs.withoutSetter||lE,Je=function(t){if(!pn(xd,t)||!cE&&typeof xd[t]!="string"){var e="Symbol."+t;cE&&pn(rs,t)?xd[t]=rs[t]:xd[t]=fE&&UT?UT(e):oq(e)}return xd[t]},_T={};_T[Je("toStringTag")]="z";var dE=String(_T)==="[object z]",Mn=!be(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Ve=function(t){return typeof t=="object"?t!==null:Oe(t)},pE=at.document,iq=Ve(pE)&&Ve(pE.createElement),Cd=function(t){return iq?pE.createElement(t):{}},GT=!Mn&&!be(function(){return Object.defineProperty(Cd("div"),"a",{get:function(){return 7}}).a!=7}),aq=at.String,uq=at.TypeError,hn=function(t){if(Ve(t))return t;throw uq(aq(t)+" is not an object")},Dd=Function.prototype.call,fe=Dd.bind?Dd.bind(Dd):function(){return Dd.apply(Dd,arguments)},os=Ct({}.isPrototypeOf),sq=at.Object,hE=fE?function(t){return typeof t=="symbol"}:function(t){var e=ns("Symbol");return Oe(e)&&os(e.prototype,sq(t))},lq=at.String,tm=function(t){try{return lq(t)}catch{return"Object"}},cq=at.TypeError,Ta=function(t){if(Oe(t))return t;throw cq(tm(t)+" is not a function")},is=function(t,e){var n=t[e];return n==null?void 0:Ta(n)},fq=at.TypeError,dq=at.TypeError,pq=Je("toPrimitive"),gE=function(t){var e=function(n,r){if(!Ve(n)||hE(n))return n;var o,a=is(n,pq);if(a){if(o=fe(a,n,r),!Ve(o)||hE(o))return o;throw dq("Can't convert object to primitive value")}return function(i,u){var s,l;if(Oe(s=i.toString)&&!Ve(l=fe(s,i))||Oe(s=i.valueOf)&&!Ve(l=fe(s,i)))return l;throw fq("Can't convert object to primitive value")}(n)}(t,"string");return hE(e)?e:e+""},hq=at.TypeError,WT=Object.defineProperty,No={f:Mn?WT:function(t,e,n){if(hn(t),e=gE(e),hn(n),GT)try{return WT(t,e,n)}catch{}if("get"in n||"set"in n)throw hq("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},em=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},Io=Mn?function(t,e,n){return No.f(t,e,em(1,n))}:function(t,e,n){return t[e]=n,t},gq=Ct(Function.toString);Oe(Oa.inspectSource)||(Oa.inspectSource=function(t){return gq(t)});var nm,Od,rm,om=Oa.inspectSource,KT=at.WeakMap,YT=Oe(KT)&&/native code/.test(om(KT)),XT=aE("keys"),vE=function(t){return XT[t]||(XT[t]=lE(t))},im={},mE=at.TypeError,vq=at.WeakMap;if(YT||Oa.state){var as=Oa.state||(Oa.state=new vq),mq=Ct(as.get),ZT=Ct(as.has),yq=Ct(as.set);nm=function(t,e){if(ZT(as,t))throw new mE("Object already initialized");return e.facade=t,yq(as,t,e),e},Od=function(t){return mq(as,t)||{}},rm=function(t){return ZT(as,t)}}else{var Hl=vE("state");im[Hl]=!0,nm=function(t,e){if(pn(t,Hl))throw new mE("Object already initialized");return e.facade=t,Io(t,Hl,e),e},Od=function(t){return pn(t,Hl)?t[Hl]:{}},rm=function(t){return pn(t,Hl)}}var rr={set:nm,get:Od,has:rm,enforce:function(t){return rm(t)?Od(t):nm(t,{})},getterFor:function(t){return function(e){var n;if(!Ve(e)||(n=Od(e)).type!==t)throw mE("Incompatible receiver, "+t+" required");return n}}},JT=Function.prototype,bq=Mn&&Object.getOwnPropertyDescriptor,yE=pn(JT,"name"),Ul={EXISTS:yE,PROPER:yE&&(function(){}).name==="something",CONFIGURABLE:yE&&(!Mn||Mn&&bq(JT,"name").configurable)},Dr=Ed(function(t){var e=Ul.CONFIGURABLE,n=rr.get,r=rr.enforce,o=String(String).split("String");(t.exports=function(a,i,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:i;Oe(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!pn(u,"name")||e&&u.name!==p)&&Io(u,"name",p),(l=r(u)).source||(l.source=o.join(typeof p=="string"?p:""))),a!==at?(c?!d&&a[i]&&(f=!0):delete a[i],f?a[i]=u:Io(a,i,u)):f?a[i]=u:iE(i,u)})(Function.prototype,"toString",function(){return Oe(this)&&n(this).source||om(this)})}),wq=Ct({}.toString),Eq=Ct("".slice),jo=function(t){return Eq(wq(t),8,-1)},Sq=Je("toStringTag"),xq=at.Object,Cq=jo(function(){return arguments}())=="Arguments",am=dE?jo:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,a){try{return o[a]}catch{}}(e=xq(t),Sq))=="string"?n:Cq?jo(e):(r=jo(e))=="Object"&&Oe(e.callee)?"Arguments":r},Dq=dE?{}.toString:function(){return"[object "+am(this)+"]"};dE||Dr(Object.prototype,"toString",Dq,{unsafe:!0});var um={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},bE=Cd("span").classList,QT=bE&&bE.constructor&&bE.constructor.prototype,$T=QT===Object.prototype?void 0:QT,qT=Ct(Ct.bind),us=function(t,e){return Ta(t),e===void 0?t:qT?qT(t,e):function(){return t.apply(e,arguments)}},wE=at.Object,Oq=Ct("".split),sm=be(function(){return!wE("z").propertyIsEnumerable(0)})?function(t){return jo(t)=="String"?Oq(t,""):wE(t)}:wE,Aq=Math.ceil,Tq=Math.floor,Ad=function(t){var e=+t;return e!=e||e===0?0:(e>0?Tq:Aq)(e)},Bq=Math.min,_l=function(t){return t>0?Bq(Ad(t),9007199254740991):0},ss=function(t){return _l(t.length)},lm=Array.isArray||function(t){return jo(t)=="Array"},tB=function(){},Pq=[],eB=ns("Reflect","construct"),EE=/^\s*(?:class|function)\b/,Fq=Ct(EE.exec),kq=!EE.exec(tB),Td=function(t){if(!Oe(t))return!1;try{return eB(tB,Pq,t),!0}catch{return!1}},cm=!eB||be(function(){var t;return Td(Td.call)||!Td(Object)||!Td(function(){t=!0})||t})?function(t){if(!Oe(t))return!1;switch(am(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return kq||!!Fq(EE,om(t))}:Td,Nq=Je("species"),nB=at.Array,rB=function(t,e){return new(function(n){var r;return lm(n)&&(r=n.constructor,(cm(r)&&(r===nB||lm(r.prototype))||Ve(r)&&(r=r[Nq])===null)&&(r=void 0)),r===void 0?nB:r}(t))(e===0?0:e)},oB=Ct([].push),Bd=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,a=t==6,i=t==7,u=t==5||a;return function(s,l,c,f){for(var d,p,m=Aa(s),h=sm(m),v=us(l,c),y=ss(h),g=0,w=f||rB,E=e?w(s,y):n||i?w(s,0):void 0;y>g;g++)if((u||g in h)&&(p=v(d=h[g],g,m),t))if(e)E[g]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return g;case 2:oB(E,d)}else switch(t){case 4:return!1;case 7:oB(E,d)}return a?-1:r||o?o:E}},Gl={forEach:Bd(0),map:Bd(1),filter:Bd(2),find:Bd(5),findIndex:Bd(6)},iB=function(t,e){var n=[][t];return!!n&&be(function(){n.call(null,e||function(){throw 1},1)})},Iq=Gl.forEach,SE=iB("forEach")?[].forEach:function(t){return Iq(this,t,arguments.length>1?arguments[1]:void 0)},aB=function(t){if(t&&t.forEach!==SE)try{Io(t,"forEach",SE)}catch{t.forEach=SE}};for(var xE in um)um[xE]&&aB(at[xE]&&at[xE].prototype);aB($T);var uB={}.propertyIsEnumerable,sB=Object.getOwnPropertyDescriptor,jq=sB&&!uB.call({1:2},1)?function(t){var e=sB(this,t);return!!e&&e.enumerable}:uB,lB={f:jq},Ba=function(t){return sm(lo(t))},cB=Object.getOwnPropertyDescriptor,Pd={f:Mn?cB:function(t,e){if(t=Ba(t),e=gE(e),GT)try{return cB(t,e)}catch{}if(pn(t,e))return em(!fe(lB.f,t,e),t[e])}},Rq=Math.max,Lq=Math.min,Wl=function(t,e){var n=Ad(t);return n<0?Rq(n+e,0):Lq(n,e)},fB=function(t){return function(e,n,r){var o,a=Ba(e),i=ss(a),u=Wl(r,i);if(t&&n!=n){for(;i>u;)if((o=a[u++])!=o)return!0}else for(;i>u;u++)if((t||u in a)&&a[u]===n)return t||u||0;return!t&&-1}},dB={includes:fB(!0),indexOf:fB(!1)},Mq=dB.indexOf,pB=Ct([].push),hB=function(t,e){var n,r=Ba(t),o=0,a=[];for(n in r)!pn(im,n)&&pn(r,n)&&pB(a,n);for(;e.length>o;)pn(r,n=e[o++])&&(~Mq(a,n)||pB(a,n));return a},fm=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Vq=fm.concat("length","prototype"),Fd={f:Object.getOwnPropertyNames||function(t){return hB(t,Vq)}},gB={f:Object.getOwnPropertySymbols},zq=Ct([].concat),Hq=ns("Reflect","ownKeys")||function(t){var e=Fd.f(hn(t)),n=gB.f;return n?zq(e,n(t)):e},Uq=function(t,e){for(var n=Hq(e),r=No.f,o=Pd.f,a=0;a<n.length;a++){var i=n[a];pn(t,i)||r(t,i,o(e,i))}},_q=/#|\.prototype\./,kd=function(t,e){var n=Wq[Gq(t)];return n==Yq||n!=Kq&&(Oe(e)?be(e):!!e)},Gq=kd.normalize=function(t){return String(t).replace(_q,".").toLowerCase()},Wq=kd.data={},Kq=kd.NATIVE="N",Yq=kd.POLYFILL="P",Nd=kd,Xq=Pd.f,Qe=function(t,e){var n,r,o,a,i,u=t.target,s=t.global,l=t.stat;if(n=s?at:l?at[u]||iE(u,{}):(at[u]||{}).prototype)for(r in e){if(a=e[r],o=t.noTargetGet?(i=Xq(n,r))&&i.value:n[r],!Nd(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof a==typeof o)continue;Uq(a,o)}(t.sham||o&&o.sham)&&Io(a,"sham",!0),Dr(n,r,a,t)}},Kl=Object.keys||function(t){return hB(t,fm)},Zq=be(function(){Kl(1)});/*!
40
+ * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
41
+ *
42
+ * Copyright (c) 2014-2017, Jon Schlinkert.
43
+ * Released under the MIT License.
44
+ */function vB(t){return Object.prototype.toString.call(t)==="[object Object]"}Qe({target:"Object",stat:!0,forced:Zq},{keys:function(t){return Kl(Aa(t))}});var Jq={isHistory(t){return vB(e=t)!==!1&&((n=e.constructor)===void 0||vB(r=n.prototype)!==!1&&r.hasOwnProperty("isPrototypeOf")!==!1)&&Array.isArray(t.redos)&&Array.isArray(t.undos)&&(t.redos.length===0||ma.isOperationList(t.redos[0]))&&(t.undos.length===0||ma.isOperationList(t.undos[0]));var e,n,r}},CE=new WeakMap,DE=new WeakMap,Yl={isHistoryEditor:t=>Jq.isHistory(t.history)&&D.isEditor(t),isMerging:t=>DE.get(t),isSaving:t=>CE.get(t),redo(t){t.redo()},undo(t){t.undo()},withoutMerging(t,e){var n=Yl.isMerging(t);DE.set(t,!1),e(),DE.set(t,n)},withoutSaving(t,e){var n=Yl.isSaving(t);CE.set(t,!1),e(),CE.set(t,n)}},Qq=at.String,Pe=function(t){if(am(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Qq(t)},OE=function(){var t=hn(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},$q=Ul.PROPER,AE=RegExp.prototype,mB=AE.toString,qq=Ct(OE),ttt=be(function(){return mB.call({source:"a",flags:"b"})!="/a/b"}),ett=$q&&mB.name!="toString";(ttt||ett)&&Dr(RegExp.prototype,"toString",function(){var t=hn(this),e=Pe(t.source),n=t.flags;return"/"+e+"/"+Pe(n===void 0&&os(AE,t)&&!("flags"in AE)?qq(t):n)},{unsafe:!0});var dm,ntt=Mn?Object.defineProperties:function(t,e){hn(t);for(var n,r=Ba(e),o=Kl(e),a=o.length,i=0;a>i;)No.f(t,n=o[i++],r[n]);return t},TE=ns("document","documentElement"),yB=vE("IE_PROTO"),BE=function(){},bB=function(t){return"<script>"+t+"<\/script>"},wB=function(t){t.write(bB("")),t.close();var e=t.parentWindow.Object;return t=null,e},pm=function(){try{dm=new ActiveXObject("htmlfile")}catch{}var t,e;pm=typeof document<"u"?document.domain&&dm?wB(dm):((e=Cd("iframe")).style.display="none",TE.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(bB("document.F=Object")),t.close(),t.F):wB(dm);for(var n=fm.length;n--;)delete pm.prototype[fm[n]];return pm()};im[yB]=!0;var hm=Object.create||function(t,e){var n;return t!==null?(BE.prototype=hn(t),n=new BE,BE.prototype=null,n[yB]=t):n=pm(),e===void 0?n:ntt(n,e)},PE=Je("unscopables"),FE=Array.prototype;FE[PE]==null&&No.f(FE,PE,{configurable:!0,value:hm(null)});var Id=function(t){FE[PE][t]=!0},rtt=dB.includes;Qe({target:"Array",proto:!0},{includes:function(t){return rtt(this,t,arguments.length>1?arguments[1]:void 0)}}),Id("includes");var ott=Je("match"),kE=function(t){var e;return Ve(t)&&((e=t[ott])!==void 0?!!e:jo(t)=="RegExp")},itt=at.TypeError,NE=function(t){if(kE(t))throw itt("The method doesn't accept regular expressions");return t},att=Je("match"),IE=function(t){var e=/./;try{"/./"[t](e)}catch{try{return e[att]=!1,"/./"[t](e)}catch{}}return!1},utt=Ct("".indexOf);Qe({target:"String",proto:!0,forced:!IE("includes")},{includes:function(t){return!!~utt(Pe(lo(this)),Pe(NE(t)),arguments.length>1?arguments[1]:void 0)}});var stt=/"/g,ltt=Ct("".replace);Qe({target:"String",proto:!0,forced:be(function(){var t="".anchor('"');return t!==t.toLowerCase()||t.split('"').length>3})},{anchor:function(t){return e=t,n=Pe(lo(this)),r="<a",(r+=' name="'+ltt(Pe(e),stt,"&quot;")+'"')+">"+n+"</a>";var e,n,r}});var jE=function(t,e,n){var r,o;hn(t);try{if(!(r=is(t,"return"))){if(e==="throw")throw n;return n}r=fe(r,t)}catch(a){o=!0,r=a}if(e==="throw")throw n;if(o)throw r;return hn(r),n},ctt=function(t,e,n,r){try{return r?e(hn(n)[0],n[1]):e(n)}catch(o){jE(t,"throw",o)}},Xl={},ftt=Je("iterator"),dtt=Array.prototype,EB=function(t){return t!==void 0&&(Xl.Array===t||dtt[ftt]===t)},jd=function(t,e,n){var r=gE(e);r in t?No.f(t,r,em(0,n)):t[r]=n},ptt=Je("iterator"),RE=function(t){if(t!=null)return is(t,ptt)||is(t,"@@iterator")||Xl[am(t)]},htt=at.TypeError,SB=function(t,e){var n=arguments.length<2?RE(t):e;if(Ta(n))return hn(fe(n,t));throw htt(tm(t)+" is not iterable")},xB=at.Array,CB=Je("iterator"),DB=!1;try{var gtt=0,OB={next:function(){return{done:!!gtt++}},return:function(){DB=!0}};OB[CB]=function(){return this},Array.from(OB,function(){throw 2})}catch{}var LE=function(t,e){if(!DB)return!1;var n=!1;try{var r={};r[CB]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch{}return n},vtt=!LE(function(t){Array.from(t)});Qe({target:"Array",stat:!0,forced:vtt},{from:function(t){var e=Aa(t),n=cm(this),r=arguments.length,o=r>1?arguments[1]:void 0,a=o!==void 0;a&&(o=us(o,r>2?arguments[2]:void 0));var i,u,s,l,c,f,d=RE(e),p=0;if(!d||this==xB&&EB(d))for(i=ss(e),u=n?new this(i):xB(i);i>p;p++)f=a?o(e[p],p):e[p],jd(u,p,f);else for(c=(l=SB(e,d)).next,u=n?new this:[];!(s=fe(c,l)).done;p++)f=a?ctt(l,o,[s.value,p],!0):s.value,jd(u,p,f);return u.length=p,u}});var ls,AB,TB,mtt=Ct("".charAt),BB=Ct("".charCodeAt),ytt=Ct("".slice),btt=function(t){return function(e,n){var r,o,a=Pe(lo(e)),i=Ad(n),u=a.length;return i<0||i>=u?t?"":void 0:(r=BB(a,i))<55296||r>56319||i+1===u||(o=BB(a,i+1))<56320||o>57343?t?mtt(a,i):r:t?ytt(a,i,i+2):o-56320+(r-55296<<10)+65536}},PB={charAt:btt(!0)},wtt=!be(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),FB=vE("IE_PROTO"),ME=at.Object,Ett=ME.prototype,gm=wtt?ME.getPrototypeOf:function(t){var e=Aa(t);if(pn(e,FB))return e[FB];var n=e.constructor;return Oe(n)&&e instanceof n?n.prototype:e instanceof ME?Ett:null},VE=Je("iterator"),kB=!1;[].keys&&("next"in(TB=[].keys())?(AB=gm(gm(TB)))!==Object.prototype&&(ls=AB):kB=!0);var Stt=ls==null||be(function(){var t={};return ls[VE].call(t)!==t});Stt&&(ls={}),Oe(ls[VE])||Dr(ls,VE,function(){return this});var zE={IteratorPrototype:ls,BUGGY_SAFARI_ITERATORS:kB},xtt=No.f,NB=Je("toStringTag"),vm=function(t,e,n){t&&!pn(t=n?t:t.prototype,NB)&&xtt(t,NB,{configurable:!0,value:e})},Ctt=zE.IteratorPrototype,Dtt=function(){return this},Ott=at.String,Att=at.TypeError,Zl=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Ct(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch{}return function(r,o){return hn(r),function(a){if(typeof a=="object"||Oe(a))return a;throw Att("Can't set "+Ott(a)+" as a prototype")}(o),e?t(r,o):r.__proto__=o,r}}():void 0),Ttt=Ul.PROPER,Btt=Ul.CONFIGURABLE,IB=zE.IteratorPrototype,mm=zE.BUGGY_SAFARI_ITERATORS,Rd=Je("iterator"),Ptt=function(){return this},HE=function(t,e,n,r,o,a,i){(function(y,g,w,E){var x=g+" Iterator";y.prototype=hm(Ctt,{next:em(1,w)}),vm(y,x,!1),Xl[x]=Dtt})(n,e,r);var u,s,l,c=function(y){if(y===o&&h)return h;if(!mm&&y in p)return p[y];switch(y){case"keys":case"values":case"entries":return function(){return new n(this,y)}}return function(){return new n(this)}},f=e+" Iterator",d=!1,p=t.prototype,m=p[Rd]||p["@@iterator"]||o&&p[o],h=!mm&&m||c(o),v=e=="Array"&&p.entries||m;if(v&&(u=gm(v.call(new t)))!==Object.prototype&&u.next&&(gm(u)!==IB&&(Zl?Zl(u,IB):Oe(u[Rd])||Dr(u,Rd,Ptt)),vm(u,f,!0)),Ttt&&o=="values"&&m&&m.name!=="values"&&(Btt?Io(p,"name","values"):(d=!0,h=function(){return fe(m,this)})),o)if(s={values:c("values"),keys:a?h:c("keys"),entries:c("entries")},i)for(l in s)(mm||d||!(l in p))&&Dr(p,l,s[l]);else Qe({target:e,proto:!0,forced:mm||d},s);return p[Rd]!==h&&Dr(p,Rd,h,{name:o}),Xl[e]=h,s},Ftt=PB.charAt,ktt=rr.set,Ntt=rr.getterFor("String Iterator");HE(String,"String",function(t){ktt(this,{type:"String Iterator",string:Pe(t),index:0})},function(){var t,e=Ntt(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=Ftt(n,r),e.index+=t.length,{value:t,done:!1})});var UE,Itt=Pd.f,jB=Ct("".endsWith),jtt=Ct("".slice),Rtt=Math.min,RB=IE("endsWith"),Ltt=!(RB||(UE=Itt(String.prototype,"endsWith"),!UE||UE.writable));Qe({target:"String",proto:!0,forced:!Ltt&&!RB},{endsWith:function(t){var e=Pe(lo(this));NE(t);var n=arguments.length>1?arguments[1]:void 0,r=e.length,o=n===void 0?r:Rtt(_l(n),r),a=Pe(t);return jB?jB(e,a,o):jtt(e,o-a.length,o)===a}});var Mtt=Ct([].join),Vtt=sm!=Object,ztt=iB("join",",");Qe({target:"Array",proto:!0,forced:Vtt||!ztt},{join:function(t){return Mtt(Ba(this),t===void 0?",":t)}});var Htt=Je("species"),ym=function(t){return Sd>=51||!be(function(){var e=[];return(e.constructor={})[Htt]=function(){return{foo:1}},e[t](Boolean).foo!==1})},Utt=Gl.map,_tt=ym("map");Qe({target:"Array",proto:!0,forced:!_tt},{map:function(t){return Utt(this,t,arguments.length>1?arguments[1]:void 0)}});var _E=at.RegExp,GE=be(function(){var t=_E("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),Gtt=GE||be(function(){return!_E("a","y").sticky}),bm={BROKEN_CARET:GE||be(function(){var t=_E("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:Gtt,UNSUPPORTED_Y:GE},Wtt=at.RegExp,WE=be(function(){var t=Wtt(".","s");return!(t.dotAll&&t.exec(`
45
+ `)&&t.flags==="s")}),Ktt=at.RegExp,KE=be(function(){var t=Ktt("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),Ytt=rr.get,Xtt=aE("native-string-replace",String.prototype.replace),wm=RegExp.prototype.exec,YE=wm,Ztt=Ct("".charAt),Jtt=Ct("".indexOf),Qtt=Ct("".replace),XE=Ct("".slice),ZE=function(){var t=/a/,e=/b*/g;return fe(wm,t,"a"),fe(wm,e,"a"),t.lastIndex!==0||e.lastIndex!==0}(),LB=bm.BROKEN_CARET,JE=/()??/.exec("")[1]!==void 0;(ZE||JE||LB||WE||KE)&&(YE=function(t){var e,n,r,o,a,i,u,s=this,l=Ytt(s),c=Pe(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=fe(YE,f,c),s.lastIndex=f.lastIndex,e;var d=l.groups,p=LB&&s.sticky,m=fe(OE,s),h=s.source,v=0,y=c;if(p&&(m=Qtt(m,"y",""),Jtt(m,"g")===-1&&(m+="g"),y=XE(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Ztt(c,s.lastIndex-1)!==`
46
+ `)&&(h="(?: "+h+")",y=" "+y,v++),n=new RegExp("^(?:"+h+")",m)),JE&&(n=new RegExp("^"+h+"$(?!\\s)",m)),ZE&&(r=s.lastIndex),o=fe(wm,p?n:s,y),p?o?(o.input=XE(o.input,v),o[0]=XE(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:ZE&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),JE&&o&&o.length>1&&fe(Xtt,o[0],n,function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(o[a]=void 0)}),o&&d)for(o.groups=i=hm(null),a=0;a<d.length;a++)i[(u=d[a])[0]]=o[u[1]];return o});var Ld=YE;Qe({target:"RegExp",proto:!0,forced:/./.exec!==Ld},{exec:Ld});var QE=Function.prototype,MB=QE.apply,$tt=QE.bind,VB=QE.call,$E=typeof Reflect=="object"&&Reflect.apply||($tt?VB.bind(MB):function(){return VB.apply(MB,arguments)}),qtt=Je("species"),qE=RegExp.prototype,tS=function(t,e,n,r){var o=Je(t),a=!be(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),i=a&&!be(function(){var l=!1,c=/a/;return t==="split"&&((c={}).constructor={},c.constructor[qtt]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!a||!i||n){var u=Ct(/./[o]),s=e(o,""[t],function(l,c,f,d,p){var m=Ct(l),h=c.exec;return h===Ld||h===qE.exec?a&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:m(f,c,d)}:{done:!1}});Dr(String.prototype,t,s[0]),Dr(qE,o,s[1])}r&&Io(qE[o],"sham",!0)},tet=PB.charAt,eS=function(t,e,n){return e+(n?tet(t,e).length:1)},eet=Math.floor,nS=Ct("".charAt),net=Ct("".replace),rS=Ct("".slice),ret=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,oet=/\$([$&'`]|\d{1,2})/g,iet=function(t,e,n,r,o,a){var i=n+t.length,u=r.length,s=oet;return o!==void 0&&(o=Aa(o),s=ret),net(a,s,function(l,c){var f;switch(nS(c,0)){case"$":return"$";case"&":return t;case"`":return rS(e,0,n);case"'":return rS(e,i);case"<":f=o[rS(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=eet(d/10);return p===0?l:p<=u?r[p-1]===void 0?nS(c,1):r[p-1]+nS(c,1):l}f=r[d-1]}return f===void 0?"":f})},aet=at.TypeError,Md=function(t,e){var n=t.exec;if(Oe(n)){var r=fe(n,t,e);return r!==null&&hn(r),r}if(jo(t)==="RegExp")return fe(Ld,t,e);throw aet("RegExp#exec called on incompatible receiver")},oS=Je("replace"),uet=Math.max,set=Math.min,cet=Ct([].concat),iS=Ct([].push),zB=Ct("".indexOf),HB=Ct("".slice),fet="a".replace(/./,"$0")==="$0",UB=!!/./[oS]&&/./[oS]("a","$0")==="";tS("replace",function(t,e,n){var r=UB?"$":"$0";return[function(o,a){var i=lo(this),u=o==null?void 0:is(o,oS);return u?fe(u,o,i,a):fe(e,Pe(i),o,a)},function(o,a){var i=hn(this),u=Pe(o);if(typeof a=="string"&&zB(a,r)===-1&&zB(a,"$<")===-1){var s=n(e,i,u,a);if(s.done)return s.value}var l=Oe(a);l||(a=Pe(a));var c=i.global;if(c){var f=i.unicode;i.lastIndex=0}for(var d=[];;){var p=Md(i,u);if(p===null||(iS(d,p),!c))break;Pe(p[0])===""&&(i.lastIndex=eS(u,_l(i.lastIndex),f))}for(var m,h="",v=0,y=0;y<d.length;y++){for(var g=Pe((p=d[y])[0]),w=uet(set(Ad(p.index),u.length),0),E=[],x=1;x<p.length;x++)iS(E,(m=p[x])===void 0?m:String(m));var S=p.groups;if(l){var C=cet([g],E,w,u);S!==void 0&&iS(C,S);var T=Pe($E(a,void 0,C))}else T=iet(g,u,w,E,S,a);w>=v&&(h+=HB(u,v,w)+T,v=w+g.length)}return h+HB(u,v)}]},!!be(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!fet||UB);/*! *****************************************************************************
47
+ Copyright (c) Microsoft Corporation.
48
+
49
+ Permission to use, copy, modify, and/or distribute this software for any
50
+ purpose with or without fee is hereby granted.
51
+
52
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
53
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
54
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
55
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
56
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
57
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
58
+ PERFORMANCE OF THIS SOFTWARE.
59
+ ***************************************************************************** */var aS=function(t,e){return aS=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},aS(t,e)};function Jl(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}aS(t,e),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var co=function(){return co=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},co.apply(this,arguments)};function fo(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function ce(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r,o,a=n.call(t),i=[];try{for(;(e===void 0||e-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function uS(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t}var det=0,_B=function(){this.id=""+det++},pet=rr.set,het=rr.getterFor("Array Iterator"),Vd=HE(Array,"Array",function(t,e){pet(this,{type:"Array Iterator",target:Ba(t),index:0,kind:e})},function(){var t=het(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values");Xl.Arguments=Xl.Array,Id("keys"),Id("values"),Id("entries");var Ql=function(t,e,n){for(var r in e)Dr(t,r,e[r],n);return t},get=at.Array,vet=Math.max,sS=function(t,e,n){for(var r=ss(t),o=Wl(e,r),a=Wl(n===void 0?r:n,r),i=get(vet(a-o,0)),u=0;o<a;o++,u++)jd(i,u,t[o]);return i.length=u,i},GB=Fd.f,WB=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],met={f:function(t){return WB&&jo(t)=="Window"?function(e){try{return GB(e)}catch{return sS(WB)}}(t):GB(Ba(t))}},KB=be(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),Em=Object.isExtensible,cs=be(function(){Em(1)})||KB?function(t){return!!Ve(t)&&(!KB||jo(t)!="ArrayBuffer")&&(!Em||Em(t))}:Em,yet=!be(function(){return Object.isExtensible(Object.preventExtensions({}))}),Sm=Ed(function(t){var e=No.f,n=!1,r=lE("meta"),o=0,a=function(u){e(u,r,{value:{objectID:"O"+o++,weakData:{}}})},i=t.exports={enable:function(){i.enable=function(){},n=!0;var u=Fd.f,s=Ct([].splice),l={};l[r]=1,u(l).length&&(Fd.f=function(c){for(var f=u(c),d=0,p=f.length;d<p;d++)if(f[d]===r){s(f,d,1);break}return f},Qe({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:met.f}))},fastKey:function(u,s){if(!Ve(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!pn(u,r)){if(!cs(u))return"F";if(!s)return"E";a(u)}return u[r].objectID},getWeakData:function(u,s){if(!pn(u,r)){if(!cs(u))return!0;if(!s)return!1;a(u)}return u[r].weakData},onFreeze:function(u){return yet&&n&&cs(u)&&!pn(u,r)&&a(u),u}};im[r]=!0}),bet=at.TypeError,xm=function(t,e){this.stopped=t,this.result=e},YB=xm.prototype,zd=function(t,e,n){var r,o,a,i,u,s,l,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),m=us(e,c),h=function(y){return r&&jE(r,"normal",y),new xm(!0,y)},v=function(y){return f?(hn(y),p?m(y[0],y[1],h):m(y[0],y[1])):p?m(y,h):m(y)};if(d)r=t;else{if(!(o=RE(t)))throw bet(tm(t)+" is not iterable");if(EB(o)){for(a=0,i=ss(t);i>a;a++)if((u=v(t[a]))&&os(YB,u))return u;return new xm(!1)}r=SB(t,o)}for(s=r.next;!(l=fe(s,r)).done;){try{u=v(l.value)}catch(y){jE(r,"throw",y)}if(typeof u=="object"&&u&&os(YB,u))return u}return new xm(!1)},wet=at.TypeError,Cm=function(t,e){if(os(e,t))return t;throw wet("Incorrect invocation")},XB=function(t,e,n){var r,o;return Zl&&Oe(r=e.constructor)&&r!==n&&Ve(o=r.prototype)&&o!==n.prototype&&Zl(t,o),t},ZB=function(t,e,n){var r=t.indexOf("Map")!==-1,o=t.indexOf("Weak")!==-1,a=r?"set":"add",i=at[t],u=i&&i.prototype,s=i,l={},c=function(v){var y=Ct(u[v]);Dr(u,v,v=="add"?function(g){return y(this,g===0?0:g),this}:v=="delete"?function(g){return!(o&&!Ve(g))&&y(this,g===0?0:g)}:v=="get"?function(g){return o&&!Ve(g)?void 0:y(this,g===0?0:g)}:v=="has"?function(g){return!(o&&!Ve(g))&&y(this,g===0?0:g)}:function(g,w){return y(this,g===0?0:g,w),this})};if(Nd(t,!Oe(i)||!(o||u.forEach&&!be(function(){new i().entries().next()}))))s=n.getConstructor(e,t,r,a),Sm.enable();else if(Nd(t,!0)){var f=new s,d=f[a](o?{}:-0,1)!=f,p=be(function(){f.has(1)}),m=LE(function(v){new i(v)}),h=!o&&be(function(){for(var v=new i,y=5;y--;)v[a](y,y);return!v.has(-0)});m||((s=e(function(v,y){Cm(v,u);var g=XB(new i,v,s);return y!=null&&zd(y,g[a],{that:g,AS_ENTRIES:r}),g})).prototype=u,u.constructor=s),(p||h)&&(c("delete"),c("has"),r&&c("get")),(h||d)&&c(a),o&&u.clear&&delete u.clear}return l[t]=s,Qe({global:!0,forced:s!=i},l),vm(s,t),o||n.setStrong(s,t,r),s},Dm=Sm.getWeakData,Eet=rr.set,xet=rr.getterFor,Cet=Gl.find,Det=Gl.findIndex,Oet=Ct([].splice),Aet=0,Om=function(t){return t.frozen||(t.frozen=new JB)},JB=function(){this.entries=[]},lS=function(t,e){return Cet(t.entries,function(n){return n[0]===e})};JB.prototype={get:function(t){var e=lS(this,t);if(e)return e[1]},has:function(t){return!!lS(this,t)},set:function(t,e){var n=lS(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=Det(this.entries,function(n){return n[0]===t});return~e&&Oet(this.entries,e,1),!!~e}};var Hd,QB={getConstructor:function(t,e,n,r){var o=t(function(s,l){Cm(s,a),Eet(s,{type:e,id:Aet++,frozen:void 0}),l!=null&&zd(l,s[r],{that:s,AS_ENTRIES:n})}),a=o.prototype,i=xet(e),u=function(s,l,c){var f=i(s),d=Dm(hn(l),!0);return d===!0?Om(f).set(l,c):d[f.id]=c,s};return Ql(a,{delete:function(s){var l=i(this);if(!Ve(s))return!1;var c=Dm(s);return c===!0?Om(l).delete(s):c&&pn(c,l.id)&&delete c[l.id]},has:function(s){var l=i(this);if(!Ve(s))return!1;var c=Dm(s);return c===!0?Om(l).has(s):c&&pn(c,l.id)}}),Ql(a,n?{get:function(s){var l=i(this);if(Ve(s)){var c=Dm(s);return c===!0?Om(l).get(s):c?c[l.id]:void 0}},set:function(s,l){return u(this,s,l)}}:{add:function(s){return u(this,s,!0)}}),o}},Am=rr.enforce,Tet=!at.ActiveXObject&&"ActiveXObject"in at,$B=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Bet=ZB("WeakMap",$B,QB);if(YT&&Tet){Hd=QB.getConstructor($B,"WeakMap",!0),Sm.enable();var Ud=Bet.prototype,qB=Ct(Ud.delete),Tm=Ct(Ud.has),tP=Ct(Ud.get),eP=Ct(Ud.set);Ql(Ud,{delete:function(t){if(Ve(t)&&!cs(t)){var e=Am(this);return e.frozen||(e.frozen=new Hd),qB(this,t)||e.frozen.delete(t)}return qB(this,t)},has:function(t){if(Ve(t)&&!cs(t)){var e=Am(this);return e.frozen||(e.frozen=new Hd),Tm(this,t)||e.frozen.has(t)}return Tm(this,t)},get:function(t){if(Ve(t)&&!cs(t)){var e=Am(this);return e.frozen||(e.frozen=new Hd),Tm(this,t)?tP(this,t):e.frozen.get(t)}return tP(this,t)},set:function(t,e){if(Ve(t)&&!cs(t)){var n=Am(this);n.frozen||(n.frozen=new Hd),Tm(this,t)?eP(this,t,e):n.frozen.set(t,e)}else eP(this,t,e);return this}})}var cS=Je("iterator"),nP=Je("toStringTag"),fS=Vd.values,rP=function(t,e){if(t){if(t[cS]!==fS)try{Io(t,cS,fS)}catch{t[cS]=fS}if(t[nP]||Io(t,nP,e),um[e]){for(var n in Vd)if(t[n]!==Vd[n])try{Io(t,n,Vd[n])}catch{t[n]=Vd[n]}}}};for(var dS in um)rP(at[dS]&&at[dS].prototype,dS);rP($T,"DOMTokenList");var pS=new WeakMap,hS=new WeakMap,gS=new WeakMap,Bm=new WeakMap,vS=new WeakMap,Pm=new WeakMap,mS=new WeakMap,yS=new WeakMap,Fm=new WeakMap,oP=new WeakMap,iP=new WeakMap,aP=new WeakMap,uP=new WeakMap,_d=new WeakMap,$l=new WeakMap,bS=new WeakMap,km=new WeakMap,wS=new WeakMap,Nm=new WeakMap,Im=new WeakMap,sP=new WeakMap,fs=new WeakMap,ES=new WeakMap,lP=new WeakMap,SS=new WeakMap,Pet=Gl.find,cP=!0;"find"in[]&&Array(1).find(function(){cP=!1}),Qe({target:"Array",proto:!0,forced:cP},{find:function(t){return Pet(this,t,arguments.length>1?arguments[1]:void 0)}}),Id("find"),Qe({global:!0},{globalThis:at});const Fet=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];Mv&&(F.fn.css=Mv),ao&&(F.fn.append=ao),Ol&&(F.fn.addClass=Ol),Al&&(F.fn.removeClass=Al),Tl&&(F.fn.hasClass=Tl),ti&&(F.fn.on=ti),wa&&(F.fn.focus=wa),io&&(F.fn.attr=io),Iv&&(F.fn.removeAttr=Iv),Pl&&(F.fn.hide=Pl),Lv&&(F.fn.show=Lv),y9&&(F.fn.offset=y9),jv&&(F.fn.width=jv),Rv&&(F.fn.height=Rv),Fl&&(F.fn.parent=Fl),Hv&&(F.fn.parents=Hv),w9&&(F.fn.is=w9),Bl&&(F.fn.dataset=Bl),qo&&(F.fn.val=qo),zv&&(F.fn.text=zv),ba&&(F.fn.html=ba),Nl&&(F.fn.children=Nl),Il&&(F.fn.remove=Il),kl&&(F.fn.find=kl),Vv&&(F.fn.each=Vv),jl&&(F.fn.empty=jl);var ii,or,xS=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||null},Ro=function(t){return ds(t)&&t.nodeType===1},ds=function(t){var e=xS(t);return!!e&&t instanceof e.Node},fP=function(t){var e=t&&t.anchorNode&&xS(t.anchorNode);return!!e&&t instanceof e.Selection},dP=function(t){return ds(t)&&t.nodeType===3},CS=function(t){var e,n,r;return(e=window.document.getElementById(t))!==null&&e!==void 0?e:((r=(n=window.document.activeElement)===null||n===void 0?void 0:n.shadowRoot)===null||r===void 0?void 0:r.getElementById(t))||null},pP=function(t,e,n){for(var r,o=t.childNodes,a=o[e],i=e,u=!1,s=!1;(ds(r=a)&&r.nodeType===8||Ro(a)&&a.childNodes.length===0||Ro(a)&&a.getAttribute("contenteditable")==="false")&&(!u||!s);)i>=o.length?(u=!0,i=e-1,n="backward"):i<0?(s=!0,i=e+1,n="forward"):(a=o[i],e=i,i+=n==="forward"?1:-1);return[a,e]},ket=function(t,e,n){return ce(pP(t,e,n),1)[0]},Net=function t(e){var n,r,o="";if(dP(e)&&e.nodeValue)return e.nodeValue;if(Ro(e)){try{for(var a=fo(Array.from(e.childNodes)),i=a.next();!i.done;i=a.next())o+=t(i.value)}catch(s){n={error:s}}finally{try{i&&!i.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}var u=getComputedStyle(e).getPropertyValue("display");u!=="block"&&u!=="list"&&u!=="table-row"&&e.tagName!=="BR"||(o+=`
60
+ `)}return o};function hP(t,e){if(!(t instanceof HTMLElement&&t.dataset.slateVoid==="true"))for(var n=t.childNodes,r=n.length;r--;){var o=n[r],a=o.nodeType;a==3?e(o,t):a!=1&&a!=9&&a!=11||hP(o,e)}}function gP(t){if(t.length===0)return"";var e=t[0];return e.nodeType!==ii.ELEMENT_NODE?"":e.tagName.toLowerCase()}(or=ii||(ii={}))[or.ELEMENT_NODE=1]="ELEMENT_NODE",or[or.TEXT_NODE=3]="TEXT_NODE",or[or.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",or[or.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",or[or.COMMENT_NODE=8]="COMMENT_NODE",or[or.DOCUMENT_NODE=9]="DOCUMENT_NODE",or[or.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",or[or.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE";var DS=typeof navigator<"u"&&/Mac OS X/.test(navigator.userAgent),Gd=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),Wd=typeof navigator<"u"&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),Iet=typeof navigator<"u"&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),jet=typeof navigator<"u"&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),OS=typeof navigator<"u"&&/Chrome/i.test(navigator.userAgent),Kd=!jet&&!Iet&&typeof globalThis<"u"&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges=="function",P={getWindow:function(t){var e=sP.get(t);if(!e)throw new Error("Unable to find a host window element for this editor");return e},findKey:function(t,e){var n=Im.get(e);return n||(n=new _B,Im.set(e,n)),n},setNewKey:function(t){var e=new _B;Im.set(t,e)},findPath:function(t,e){for(var n=[],r=e;;){var o=$l.get(r);if(o==null){if(D.isEditor(r))return n;break}var a=_d.get(r);if(a==null)break;n.unshift(a),r=o}throw new Error("Unable to find the path for Slate node: "+JSON.stringify(e))},findDocumentOrShadowRoot:function(t){if(t.isDestroyed)return window.document;var e=P.toDOMNode(t,t),n=e.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&n.getSelection!=null?n:e.ownerDocument},getParentNode:function(t,e){return $l.get(e)||null},getParentsNodes:function(t,e){for(var n=[],r=e;r!==t&&r!=null;){var o=P.getParentNode(t,r);if(o==null)break;n.push(o),r=o}return n},getTopNode:function(t,e){var n=[P.findPath(t,e)[0]];return st.get(t,n)},toDOMNode:function(t,e){var n;if(D.isEditor(e))n=bS.get(t);else{var r=P.findKey(t,e);n=wS.get(r)}if(!n)throw new Error("Cannot resolve a DOM node from Slate node: "+JSON.stringify(e));return n},hasDOMNode:function(t,e,n){n===void 0&&(n={});var r,o=n.editable,a=o!==void 0&&o,i=P.toDOMNode(t,t);try{r=Ro(e)?e:e.parentElement}catch(u){if(!u.message.includes('Permission denied to access property "nodeType"'))throw u}return!!r&&r.closest("[data-slate-editor]")===i&&(!a||r.isContentEditable||!!r.getAttribute("data-slate-zero-width"))},toDOMRange:function(t,e){var n=e.anchor,r=e.focus,o=$.isBackward(e),a=P.toDOMPoint(t,n),i=$.isCollapsed(e)?a:P.toDOMPoint(t,r),u=P.getWindow(t).document.createRange(),s=ce(o?i:a,2),l=s[0],c=s[1],f=ce(o?a:i,2),d=f[0],p=f[1],m=!!(Ro(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),h=!!(Ro(d)?d:d.parentElement).getAttribute("data-slate-zero-width");return u.setStart(l,m?1:c),u.setEnd(d,h?1:p),u},toDOMPoint:function(t,e){var n,r,o,a=ce(D.node(t,e.path),1)[0],i=P.toDOMNode(t,a);D.void(t,{at:e})&&(e={path:e.path,offset:0});var u=Array.from(i.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),s=0;try{for(var l=fo(u),c=l.next();!c.done;c=l.next()){var f=c.value,d=f.childNodes[0];if(d!=null&&d.textContent!=null){var p=d.textContent.length,m=f.getAttribute("data-slate-length"),h=s+(m==null?p:parseInt(m,10));if(e.offset<=h){o=[d,Math.min(p,Math.max(0,e.offset-s))];break}s=h}}}catch(v){n={error:v}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}if(!o)throw new Error("Cannot resolve a DOM point from Slate point: "+JSON.stringify(e));return o},toSlateNode:function(t,e){var n=Ro(e)?e:e.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?km.get(n):null;if(!r)throw new Error("Cannot resolve a Slate node from DOM node: "+n);return r},findEventRange:function(t,e){"nativeEvent"in e&&(e=e.nativeEvent);var n=e.clientX,r=e.clientY,o=e.target;if(n==null||r==null)throw new Error("Cannot resolve a Slate range from a DOM event: "+e);var a,i=P.toSlateNode(t,e.target),u=P.findPath(t,i);if(D.isVoid(t,i)){var s=o.getBoundingClientRect(),l=t.isInline(i)?n-s.left<s.left+s.width-n:r-s.top<s.top+s.height-r,c=D.point(t,u,{edge:l?"start":"end"}),f=l?D.before(t,c):D.after(t,c);if(f)return D.range(t,f)}var d=this.getWindow(t).document;if(d.caretRangeFromPoint)a=d.caretRangeFromPoint(n,r);else{var p=d.caretPositionFromPoint(n,r);p&&((a=d.createRange()).setStart(p.offsetNode,p.offset),a.setEnd(p.offsetNode,p.offset))}if(!a)throw new Error("Cannot resolve a Slate range from a DOM event: "+e);return P.toSlateRange(t,a,{exactMatch:!1,suppressThrow:!1})},toSlateRange:function(t,e,n){var r,o,a,i,u,s=n.exactMatch,l=n.suppressThrow;if((fP(e)?e.anchorNode:e.startContainer)&&(fP(e)?(r=e.anchorNode,o=e.anchorOffset,a=e.focusNode,i=e.focusOffset,u=OS&&window.document.activeElement&&window.document.activeElement.shadowRoot?e.anchorNode===e.focusNode&&e.anchorOffset===e.focusOffset:e.isCollapsed):(r=e.startContainer,o=e.startOffset,a=e.endContainer,i=e.endOffset,u=e.collapsed)),r==null||a==null||o==null||i==null)throw new Error("Cannot resolve a Slate range from DOM range: "+e);var c=P.toSlatePoint(t,[r,o],{exactMatch:s,suppressThrow:l});if(!c)return null;var f=u?c:P.toSlatePoint(t,[a,i],{exactMatch:s,suppressThrow:l});if(!f)return null;var d={anchor:c,focus:f};return $.isExpanded(d)&&$.isForward(d)&&Ro(a)&&D.void(t,{at:d.focus,mode:"highest"})&&(d=D.unhangRange(t,d,{voids:!0})),d},toSlatePoint:function(t,e,n){var r,o=n.exactMatch,a=n.suppressThrow,i=ce(o?e:function(g){var w,E=ce(g,2),x=E[0],S=E[1];if(Ro(x)&&x.childNodes.length){var C=S===x.childNodes.length,T=C?S-1:S;for(x=(w=ce(pP(x,T,C?"backward":"forward"),2))[0],C=(T=w[1])<S;Ro(x)&&x.childNodes.length;){var A=C?x.childNodes.length-1:0;x=ket(x,A,C?"backward":"forward")}S=C&&x.textContent!=null?x.textContent.length:0}return[x,S]}(e),2),u=i[0],s=i[1],l=u.parentNode,c=null,f=0;if(l){var d=l.closest('[data-slate-void="true"]'),p=l.closest("[data-slate-leaf]"),m=null;if(p){c=p.closest('[data-slate-node="text"]');var h=P.getWindow(t).document.createRange();h.setStart(c,0),h.setEnd(u,s);var v=h.cloneContents();uS(uS([],ce(p9(v.querySelectorAll("[data-slate-zero-width]")))),ce(p9(v.querySelectorAll("[contenteditable=false]")))).forEach(function(g){g.parentNode.removeChild(g)}),f=v.textContent.length,m=c}else d&&((p=d.querySelector("[data-slate-leaf]"))?(c=p.closest('[data-slate-node="text"]'),f=(m=p).textContent.length,m.querySelectorAll("[data-slate-zero-width]").forEach(function(g){f-=g.textContent.length})):f=1);m&&f===m.textContent.length&&(l.hasAttribute("data-slate-zero-width")||Gd&&(!((r=m.textContent)===null||r===void 0)&&r.endsWith(`
61
+ `)))&&f--}if(!c){if(a)return null;throw new Error("Cannot resolve a Slate point from DOM point: "+e)}var y=P.toSlateNode(t,c);return{path:P.findPath(t,y),offset:f}},hasRange:function(t,e){var n=e.anchor,r=e.focus;return D.hasPath(t,n.path)&&D.hasPath(t,r.path)},getNodeType:function(t){return St.isElement(t)?t.type:""},checkNodeType:function(t,e){return this.getNodeType(t)===e},getNodesStr:function(t){return t.map(function(e){return st.string(e)}).join("")},getSelectedElems:function(t){var e,n,r=[],o=D.nodes(t,{universal:!0});try{for(var a=fo(o),i=a.next();!i.done;i=a.next()){var u=ce(i.value,1)[0];St.isElement(u)&&r.push(u)}}catch(s){e={error:s}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return r},getSelectedNodeByType:function(t,e){var n=this,r=ce(D.nodes(t,{match:function(a){return n.checkNodeType(a,e)},universal:!0}),1),o=r[0];return o==null?null:o[0]},getSelectedTextNode:function(t){var e=ce(D.nodes(t,{match:function(r){return vt.isText(r)},universal:!0}),1),n=e[0];return n==null?null:n[0]},isNodeSelected:function(t,e){var n=ce(D.nodes(t,{match:function(o){return o===e},universal:!0}),1),r=n[0];return r!=null&&ce(r,1)[0]===e},isSelectionAtLineEnd:function(t,e){var n=t.selection;return!!n&&(D.isEnd(t,n.anchor,e)||D.isEnd(t,n.focus,e))},getTextarea:function(t){var e=pS.get(t);if(e==null)throw new Error("Cannot find textarea instance by editor");return e},getToolbar:function(t){return Bm.get(t)||null},getHoverbar:function(t){return Pm.get(t)||null},normalizeContent:function(t){t.children.forEach(function(e,n){t.normalizeNode([e,[n]])})},getLeftLengthOfMaxLength:function(t){var e=t.getConfig(),n=e.maxLength,r=e.onMaxLength;if(typeof n!="number"||n<=0)return 1/0;var o=n-t.getText().replace(/\r|\n|(\r\n)/g,"").length;return o<=0&&r&&r(t),o},cleanExposedTexNodeInSelectionBlock:function(t){var e,n,r,o,a=P.getTextarea(t).$textArea,i=a==null?void 0:a[0].childNodes;if(i)try{for(var u=fo(Array.from(i)),s=u.next();!s.done;s=u.next()){var l=s.value;if(l.nodeType!==3)break;l.remove()}}catch(h){e={error:h}}finally{try{s&&!s.done&&(n=u.return)&&n.call(u)}finally{if(e)throw e.error}}var c=D.nodes(t,{match:function(h){return!(!St.isElement(h)||t.isInline(h))},universal:!0});try{for(var f=fo(c),d=f.next();!d.done;d=f.next()){var p=d.value;if(p!=null){var m=p[0];hP(P.toDOMNode(t,m),function(h,v){var y=F(v);y.attr("data-slate-string")||y.attr("data-slate-zero-width")||y.attr("data-w-e-reserve")||v.removeChild(h)})}}}catch(h){r={error:h}}finally{try{d&&!d.done&&(o=f.return)&&o.call(f)}finally{if(r)throw r.error}}},isLastNode:function(t,e){var n=t.children||[];return n[n.length-1]===e},genEmptyParagraph:function(){return{type:"paragraph",children:[{text:""}]}},isSelectedVoidNode:function(t){var e,n,r=D.nodes(t,{match:function(u){return t.isVoid(u)}}),o=0;try{for(var a=fo(r),i=a.next();!i.done;i=a.next())i.value,o++}catch(u){e={error:u}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return o>0},isSelectedEmptyParagraph:function(t){var e=t.selection;if(e==null||$.isExpanded(e))return!1;var n=P.getSelectedNodeByType(t,"paragraph");if(n===null)return!1;var r=n.children;return r.length===1&&(r[0].text===""||void 0)},isEmptyPath:function(t,e){var n=D.node(t,e);if(n==null)return!1;var r=ce(n,1)[0].children;return r.length===1&&r[0].text===""}},Ret=1,vP={},Yd={},Let=Gl.filter,Met=ym("filter");Qe({target:"Array",proto:!0,forced:!Met},{filter:function(t){return Let(this,t,arguments.length>1?arguments[1]:void 0)}});var AS=`
62
+ \v\f\r                 \u2028\u2029\uFEFF`,mP=Ct("".replace),jm="["+AS+"]",Vet=RegExp("^"+jm+jm+"*"),zet=RegExp(jm+jm+"*$"),Het=function(t){return function(e){var n=Pe(lo(e));return 1&t&&(n=mP(n,Vet,"")),2&t&&(n=mP(n,zet,"")),n}},Uet={trim:Het(3)},_et=Ul.PROPER,Get=Uet.trim;Qe({target:"String",proto:!0,forced:function(t){return be(function(){return!!AS[t]()||"​…᠎"[t]()!=="​…᠎"||_et&&AS[t].name!==t})}("trim")},{trim:function(){return Get(this)}});var TS=[],yP={};function Wet(t,e,n){var r=n.isInline(t)?"span":"div";return"<"+r+">"+e+"</"+r+">"}var Xd,ql,bP,BS,Rm=at.Promise,wP=Je("species"),PS=function(t){var e=ns(t),n=No.f;Mn&&e&&!e[wP]&&n(e,wP,{configurable:!0,get:function(){return this}})},Ket=at.TypeError,Yet=Je("species"),EP=function(t,e){var n,r=hn(t).constructor;return r===void 0||(n=hn(r)[Yet])==null?e:function(o){if(cm(o))return o;throw Ket(tm(o)+" is not a constructor")}(n)},SP=Ct([].slice),xP=/(?:ipad|iphone|ipod).*applewebkit/i.test(zl),Pa=jo(at.process)=="process",FS=at.setImmediate,CP=at.clearImmediate,Xet=at.process,kS=at.Dispatch,Zet=at.Function,DP=at.MessageChannel,Jet=at.String,NS=0,Zd={};try{Xd=at.location}catch{}var IS=function(t){if(pn(Zd,t)){var e=Zd[t];delete Zd[t],e()}},jS=function(t){return function(){IS(t)}},OP=function(t){IS(t.data)},AP=function(t){at.postMessage(Jet(t),Xd.protocol+"//"+Xd.host)};FS&&CP||(FS=function(t){var e=SP(arguments,1);return Zd[++NS]=function(){$E(Oe(t)?t:Zet(t),void 0,e)},ql(NS),NS},CP=function(t){delete Zd[t]},Pa?ql=function(t){Xet.nextTick(jS(t))}:kS&&kS.now?ql=function(t){kS.now(jS(t))}:DP&&!xP?(BS=(bP=new DP).port2,bP.port1.onmessage=OP,ql=us(BS.postMessage,BS)):at.addEventListener&&Oe(at.postMessage)&&!at.importScripts&&Xd&&Xd.protocol!=="file:"&&!be(AP)?(ql=AP,at.addEventListener("message",OP,!1)):ql="onreadystatechange"in Cd("script")?function(t){TE.appendChild(Cd("script")).onreadystatechange=function(){TE.removeChild(this),IS(t)}}:function(t){setTimeout(jS(t),0)});var Jd,ps,Qd,tc,RS,LS,MS,TP,BP={set:FS},Qet=/ipad|iphone|ipod/i.test(zl)&&at.Pebble!==void 0,$et=/web0s(?!.*chrome)/i.test(zl),qet=Pd.f,VS=BP.set,PP=at.MutationObserver||at.WebKitMutationObserver,FP=at.document,kP=at.process,Lm=at.Promise,NP=qet(at,"queueMicrotask"),IP=NP&&NP.value;IP||(Jd=function(){var t,e;for(Pa&&(t=kP.domain)&&t.exit();ps;){e=ps.fn,ps=ps.next;try{e()}catch(n){throw ps?tc():Qd=void 0,n}}Qd=void 0,t&&t.enter()},xP||Pa||$et||!PP||!FP?!Qet&&Lm&&Lm.resolve?((MS=Lm.resolve(void 0)).constructor=Lm,TP=us(MS.then,MS),tc=function(){TP(Jd)}):Pa?tc=function(){kP.nextTick(Jd)}:(VS=us(VS,at),tc=function(){VS(Jd)}):(RS=!0,LS=FP.createTextNode(""),new PP(Jd).observe(LS,{characterData:!0}),tc=function(){LS.data=RS=!RS}));var zS,jP,RP,LP,MP=IP||function(t){var e={fn:t,next:void 0};Qd&&(Qd.next=e),ps||(ps=e,tc()),Qd=e},tnt=function(t){var e,n;this.promise=new t(function(r,o){if(e!==void 0||n!==void 0)throw TypeError("Bad Promise constructor");e=r,n=o}),this.resolve=Ta(e),this.reject=Ta(n)},HS={f:function(t){return new tnt(t)}},US=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}},ent=typeof window=="object",VP=BP.set,nnt=Je("species"),ai="Promise",zP=rr.getterFor(ai),rnt=rr.set,ont=rr.getterFor(ai),hs=Rm&&Rm.prototype,ui=Rm,$d=hs,HP=at.TypeError,_S=at.document,GS=at.process,ec=HS.f,int=ec,ant=!!(_S&&_S.createEvent&&at.dispatchEvent),UP=Oe(at.PromiseRejectionEvent),_P=!1,qd=Nd(ai,function(){var t=om(ui),e=t!==String(ui);if(!e&&Sd===66)return!0;if(Sd>=51&&/native code/.test(t))return!1;var n=new ui(function(o){o(1)}),r=function(o){o(function(){},function(){})};return(n.constructor={})[nnt]=r,!(_P=n.then(function(){})instanceof r)||!e&&ent&&!UP}),unt=qd||!LE(function(t){ui.all(t).catch(function(){})}),GP=function(t){var e;return!(!Ve(t)||!Oe(e=t.then))&&e},WS=function(t,e){if(!t.notified){t.notified=!0;var n=t.reactions;MP(function(){for(var r=t.value,o=t.state==1,a=0;n.length>a;){var i,u,s,l=n[a++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(t.rejection===2&&lnt(t),t.rejection=1),c===!0?i=r:(p&&p.enter(),i=c(r),p&&(p.exit(),s=!0)),i===l.promise?d(HP("Promise-chain cycle")):(u=GP(i))?fe(u,i,f,d):f(i)):d(r)}catch(m){p&&!s&&p.exit(),d(m)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&snt(t)})}},WP=function(t,e,n){var r,o;ant?((r=_S.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),at.dispatchEvent(r)):r={promise:e,reason:n},!UP&&(o=at["on"+t])?o(r):t==="unhandledrejection"&&function(a,i){var u=at.console;u&&u.error&&(arguments.length==1?u.error(a):u.error(a,i))}("Unhandled promise rejection",n)},snt=function(t){fe(VP,at,function(){var e,n=t.facade,r=t.value;if(KP(t)&&(e=US(function(){Pa?GS.emit("unhandledRejection",r,n):WP("unhandledrejection",n,r)}),t.rejection=Pa||KP(t)?2:1,e.error))throw e.value})},KP=function(t){return t.rejection!==1&&!t.parent},lnt=function(t){fe(VP,at,function(){var e=t.facade;Pa?GS.emit("rejectionHandled",e):WP("rejectionhandled",e,t.value)})},nc=function(t,e,n){return function(r){t(e,r,n)}},rc=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,WS(t,!0))},KS=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw HP("Promise can't be resolved itself");var r=GP(e);r?MP(function(){var o={done:!1};try{fe(r,e,nc(KS,o,t),nc(rc,o,t))}catch(a){rc(o,a,t)}}):(t.value=e,t.state=1,WS(t,!1))}catch(o){rc({done:!1},o,t)}}};if(qd&&($d=(ui=function(t){Cm(this,$d),Ta(t),fe(zS,this);var e=zP(this);try{t(nc(KS,e),nc(rc,e))}catch(n){rc(e,n)}}).prototype,(zS=function(t){rnt(this,{type:ai,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Ql($d,{then:function(t,e){var n=ont(this),r=n.reactions,o=ec(EP(this,ui));return o.ok=!Oe(t)||t,o.fail=Oe(e)&&e,o.domain=Pa?GS.domain:void 0,n.parent=!0,r[r.length]=o,n.state!=0&&WS(n,!1),o.promise},catch:function(t){return this.then(void 0,t)}}),jP=function(){var t=new zS,e=zP(t);this.promise=t,this.resolve=nc(KS,e),this.reject=nc(rc,e)},HS.f=ec=function(t){return t===ui||t===RP?new jP(t):int(t)},Oe(Rm)&&hs!==Object.prototype)){LP=hs.then,_P||(Dr(hs,"then",function(t,e){var n=this;return new ui(function(r,o){fe(LP,n,r,o)}).then(t,e)},{unsafe:!0}),Dr(hs,"catch",$d.catch,{unsafe:!0}));try{delete hs.constructor}catch{}Zl&&Zl(hs,$d)}Qe({global:!0,wrap:!0,forced:qd},{Promise:ui}),vm(ui,ai,!1),PS(ai),RP=ns(ai),Qe({target:ai,stat:!0,forced:qd},{reject:function(t){var e=ec(this);return fe(e.reject,void 0,t),e.promise}}),Qe({target:ai,stat:!0,forced:qd},{resolve:function(t){return function(e,n){if(hn(e),Ve(n)&&n.constructor===e)return n;var r=HS.f(e);return(0,r.resolve)(n),r.promise}(this,t)}}),Qe({target:ai,stat:!0,forced:unt},{all:function(t){var e=this,n=ec(e),r=n.resolve,o=n.reject,a=US(function(){var i=Ta(e.resolve),u=[],s=0,l=1;zd(t,function(c){var f=s++,d=!1;l++,fe(i,e,c).then(function(p){d||(d=!0,u[f]=p,--l||r(u))},o)}),--l||r(u)});return a.error&&o(a.value),n.promise},race:function(t){var e=this,n=ec(e),r=n.reject,o=US(function(){var a=Ta(e.resolve);zd(t,function(i){fe(a,e,i).then(n.resolve,r)})});return o.error&&r(o.value),n.promise}});var oc=bm.UNSUPPORTED_Y,cnt=Math.min,YP=[].push,fnt=Ct(/./.exec),ic=Ct(YP),tp=Ct("".slice);function po(t){Promise.resolve().then(t)}function XP(t,e){return St.isElement(t)?function(n,r){var o=n.type,a=o===void 0?"":o,i=n.children,u=i===void 0?[]:i,s=D.isVoid(r,n),l="";s||(l=u.map(function(y){return XP(y,r)}).join(""));var c=function(y){return yP[y]||Wet}(a),f=c(n,l,r),d="";if(d=typeof f=="string"?f:f.html||"",s||TS.forEach(function(y){return d=y(n,d)}),typeof f=="string")return d;var p=f.prefix,m=p===void 0?"":p,h=f.suffix,v=h===void 0?"":h;return m&&(d=m+d),v&&(d+=v),d}(t,e):function(n,r){var o=n.text;if(o==null)throw new Error("Current node is not slate Text "+JSON.stringify(n));var a=o;a=function(s){return s.replace(/ {2}/g," &nbsp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/®/g,"&reg;").replace(/©/g,"&copy;").replace(/™/g,"&trade;")}(a);var i=P.getParentsNodes(r,n).some(function(s){return P.getNodeType(s)==="pre"});if(i||(a=a.replace(/\r\n|\r|\n/g,"<br>")),i&&(a=a.replace(/&nbsp;/g," ")),a===""){var u=P.getParentNode(null,n);if(!u||u.children.length!==0)return a;a="<br>"}return TS.forEach(function(s){return a=s(n,a)}),a}(t,e)}function ZP(t){return"w-e-element-"+t}tS("split",function(t,e,n){var r;return r="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(o,a){var i=Pe(lo(this)),u=a===void 0?4294967295:a>>>0;if(u===0)return[];if(o===void 0)return[i];if(!kE(o))return fe(e,i,o,u);for(var s,l,c,f=[],d=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),p=0,m=new RegExp(o.source,d+"g");(s=fe(Ld,m,i))&&!((l=m.lastIndex)>p&&(ic(f,tp(i,p,s.index)),s.length>1&&s.index<i.length&&$E(YP,f,sS(s,1)),c=s[0].length,p=l,f.length>=u));)m.lastIndex===s.index&&m.lastIndex++;return p===i.length?!c&&fnt(m,"")||ic(f,""):ic(f,tp(i,p)),f.length>u?sS(f,0,u):f}:"0".split(void 0,0).length?function(o,a){return o===void 0&&a===0?[]:fe(e,this,o,a)}:e,[function(o,a){var i=lo(this),u=o==null?void 0:is(o,t);return u?fe(u,o,i,a):fe(r,Pe(i),o,a)},function(o,a){var i=hn(this),u=Pe(o),s=n(r,i,u,a,r!==e);if(s.done)return s.value;var l=EP(i,RegExp),c=i.unicode,f=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(oc?"g":"y"),d=new l(oc?"^(?:"+i.source+")":i,f),p=a===void 0?4294967295:a>>>0;if(p===0)return[];if(u.length===0)return Md(d,u)===null?[u]:[];for(var m=0,h=0,v=[];h<u.length;){d.lastIndex=oc?0:h;var y,g=Md(d,oc?tp(u,h):u);if(g===null||(y=cnt(_l(d.lastIndex+(oc?h:0)),u.length))===m)h=eS(u,h,c);else{if(ic(v,tp(u,m,h)),v.length===p)return v;for(var w=1;w<=g.length-1;w++)if(ic(v,g[w]),v.length===p)return v;h=m=y}}return ic(v,tp(u,m)),v}]},!!be(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),oc);var JP=function(t,e){var n=(e.top+e.bottom)/2;return t.top<=n&&t.bottom>=n},QP=function(t,e,n){var r=P.toDOMRange(t,e).getBoundingClientRect(),o=P.toDOMRange(t,n).getBoundingClientRect();return JP(r,o)&&JP(o,r)},$P=["span","b","strong","i","em","s","strike","u","font","sub","sup"],qP=[],YS=[],Mm={},dnt=No.f,pnt=Fd.f,hnt=rr.enforce,gnt=Je("match"),Hi=at.RegExp,ac=Hi.prototype,vnt=at.SyntaxError,mnt=Ct(OE),ynt=Ct(ac.exec),Vm=Ct("".charAt),tF=Ct("".replace),eF=Ct("".indexOf),bnt=Ct("".slice),wnt=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,gs=/a/g,XS=/a/g,Ent=new Hi(gs)!==gs,nF=bm.MISSED_STICKY,Snt=bm.UNSUPPORTED_Y,xnt=Mn&&(!Ent||nF||WE||KE||be(function(){return XS[gnt]=!1,Hi(gs)!=gs||Hi(XS)==XS||Hi(gs,"i")!="/a/i"}));if(Nd("RegExp",xnt)){for(var Fa=function(t,e){var n,r,o,a,i,u,s=os(ac,this),l=kE(t),c=e===void 0,f=[],d=t;if(!s&&l&&c&&t.constructor===Fa)return t;if((l||os(ac,t))&&(t=t.source,c&&(e="flags"in d?d.flags:mnt(d))),t=t===void 0?"":Pe(t),e=e===void 0?"":Pe(e),d=t,WE&&"dotAll"in gs&&(r=!!e&&eF(e,"s")>-1)&&(e=tF(e,/s/g,"")),n=e,nF&&"sticky"in gs&&(o=!!e&&eF(e,"y")>-1)&&Snt&&(e=tF(e,/y/g,"")),KE&&(a=function(p){for(var m,h=p.length,v=0,y="",g=[],w={},E=!1,x=!1,S=0,C="";v<=h;v++){if((m=Vm(p,v))==="\\")m+=Vm(p,++v);else if(m==="]")E=!1;else if(!E)switch(!0){case m==="[":E=!0;break;case m==="(":ynt(wnt,bnt(p,v+1))&&(v+=2,x=!0),y+=m,S++;continue;case(m===">"&&x):if(C===""||pn(w,C))throw new vnt("Invalid capture group name");w[C]=!0,g[g.length]=[C,S],x=!1,C="";continue}x?C+=m:y+=m}return[y,g]}(t),t=a[0],f=a[1]),i=XB(Hi(t,e),s?this:ac,Fa),(r||o||f.length)&&(u=hnt(i),r&&(u.dotAll=!0,u.raw=Fa(function(p){for(var m,h=p.length,v=0,y="",g=!1;v<=h;v++)(m=Vm(p,v))!=="\\"?g||m!=="."?(m==="["?g=!0:m==="]"&&(g=!1),y+=m):y+="[\\s\\S]":y+=m+Vm(p,++v);return y}(t),n)),o&&(u.sticky=!0),f.length&&(u.groups=f)),t!==d)try{Io(i,"source",d===""?"(?:)":d)}catch{}return i},Cnt=function(t){t in Fa||dnt(Fa,t,{configurable:!0,get:function(){return Hi[t]},set:function(e){Hi[t]=e}})},rF=pnt(Hi),oF=0;rF.length>oF;)Cnt(rF[oF++]);ac.constructor=Fa,Fa.prototype=ac,Dr(at,"RegExp",Fa)}PS("RegExp");var Dnt=new RegExp(" ","g");function iF(t){return t.replace(Dnt," ")}function aF(t,e){var n=t.length;if(n){var r=t[n-1];if(vt.isText(r)){var o=Object.keys(r);if(o.length===1&&o[0]==="text")return r.text=r.text+e,!0}}return!1}function Ont(t,e,n){return{type:"paragraph",children:[{text:F(t).text().replace(/\s+/gm," ")}]}}function ZS(t,e){var n=function(a,i){var u=[];if(a.attr("data-w-e-is-void")!=null)return u;var s=a[0].childNodes;return s.length===1&&s[0].nodeName==="BR"?(u.push({text:""}),u):(s.forEach(function(l){if(l.nodeType!==ii.ELEMENT_NODE){if(l.nodeType===ii.TEXT_NODE){var c=l.textContent||"";if(c.trim()===""&&c.indexOf(`
63
+ `)>=0)return;c&&(c=iF(c),aF(u,c)||u.push({text:c}))}}else{if(l.nodeName==="BR")return void(aF(u,`
64
+ `)||u.push({text:`
65
+ `}));var f=QS(F(l),i);Array.isArray(f)?f.forEach(function(d){return u.push(d)}):u.push(f)}}),u)}(t,e),r=function(a){for(var i in Mm)if(a[0].matches(i))return Mm[i];return Ont}(t),o=r(t[0],n,e);return Array.isArray(o)||(o=[o]),o.forEach(function(a){D.isVoid(e,a)||(n.length===0&&(a.children=[{text:t.text().replace(/\s+/gm," ")}]),YS.forEach(function(i){a=i(t[0],a,e)}))}),o}function JS(t,e){t.parents("pre").length===0&&(t[0].innerHTML=t[0].innerHTML.replace(/\s+/gm," ").replace(/<br>/g,`
66
+ `));var n=t[0].textContent||"";n=function(o){return o.replace(/&nbsp;/g," ").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&reg;/g,"®").replace(/&copy;/g,"©").replace(/&trade;/g,"™").replace(/&quot;/g,'"')}(n);var r={text:n=iF(n)};return YS.forEach(function(o){r=o(t[0],r,e)}),r}function QS(t,e){qP.forEach(function(r){var o=r.selector,a=r.preParseHtml;t[0].matches(o)&&(t=F(a(t[0])))});var n=gP(t);return n==="span"?t.attr("data-w-e-type")?ZS(t,e):JS(t,e):n==="code"?gP(t.parent())==="pre"?ZS(t,e):JS(t,e):$P.includes(n)?JS(t,e):ZS(t,e)}function uF(t,e,n){var r=F(n);return!!r.attr(e)||(r.attr(e,"true"),t.on("destroyed",function(){r.removeAttr(e)}),!1)}function sF(t,e){e===void 0&&(e="");var n=[];e===""&&(e="<p><br></p>"),e.indexOf("<")!==0&&(e=e.split(/\n/).map(function(o){return"<p>"+o+"</p>"}).join(""));var r=F("<div>"+e+"</div>");return Array.from(r.children()).forEach(function(o){var a=QS(F(o),t);Array.isArray(a)?a.forEach(function(i){return n.push(i)}):n.push(a)}),n}var Ant=No.f,lF=Sm.fastKey,cF=rr.set,$S=rr.getterFor,Tnt={getConstructor:function(t,e,n,r){var o=t(function(l,c){Cm(l,a),cF(l,{type:e,index:hm(null),first:void 0,last:void 0,size:0}),Mn||(l.size=0),c!=null&&zd(c,l[r],{that:l,AS_ENTRIES:n})}),a=o.prototype,i=$S(e),u=function(l,c,f){var d,p,m=i(l),h=s(l,c);return h?h.value=f:(m.last=h={index:p=lF(c,!0),key:c,value:f,previous:d=m.last,next:void 0,removed:!1},m.first||(m.first=h),d&&(d.next=h),Mn?m.size++:l.size++,p!=="F"&&(m.index[p]=h)),l},s=function(l,c){var f,d=i(l),p=lF(c);if(p!=="F")return d.index[p];for(f=d.first;f;f=f.next)if(f.key==c)return f};return Ql(a,{clear:function(){for(var l=i(this),c=l.index,f=l.first;f;)f.removed=!0,f.previous&&(f.previous=f.previous.next=void 0),delete c[f.index],f=f.next;l.first=l.last=void 0,Mn?l.size=0:this.size=0},delete:function(l){var c=this,f=i(c),d=s(c,l);if(d){var p=d.next,m=d.previous;delete f.index[d.index],d.removed=!0,m&&(m.next=p),p&&(p.previous=m),f.first==d&&(f.first=p),f.last==d&&(f.last=m),Mn?f.size--:c.size--}return!!d},forEach:function(l){for(var c,f=i(this),d=us(l,arguments.length>1?arguments[1]:void 0);c=c?c.next:f.first;)for(d(c.value,c.key,this);c&&c.removed;)c=c.previous},has:function(l){return!!s(this,l)}}),Ql(a,n?{get:function(l){var c=s(this,l);return c&&c.value},set:function(l,c){return u(this,l===0?0:l,c)}}:{add:function(l){return u(this,l=l===0?0:l,l)}}),Mn&&Ant(a,"size",{get:function(){return i(this).size}}),o},setStrong:function(t,e,n){var r=e+" Iterator",o=$S(e),a=$S(r);HE(t,e,function(i,u){cF(this,{type:r,target:i,state:o(i),kind:u,last:void 0})},function(){for(var i=a(this),u=i.kind,s=i.last;s&&s.removed;)s=s.previous;return i.target&&(i.last=s=s?s.next:i.state.first)?u=="keys"?{value:s.key,done:!1}:u=="values"?{value:s.value,done:!1}:{value:[s.key,s.value],done:!1}:(i.target=void 0,{value:void 0,done:!0})},n?"entries":"values",!n,!0),PS(e)}};ZB("Set",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Tnt);var fF=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function dF(t,e){t.isInline(e)?(t.insertNode(e),e.type==="link"&&t.insertFragment([{text:""}])):_.insertNodes(t,e,{mode:"highest"})}var Bnt=function(t){var e=t,n=e.insertText;return e.insertFragment,e.setFragmentData=function(r){var o=e.selection;if(o){var a=ce($.edges(o),2),i=a[0],u=a[1],s=D.void(e,{at:i.path}),l=D.void(e,{at:u.path});if(!$.isCollapsed(o)||s){var c=P.toDOMRange(e,o),f=c.cloneContents(),d=f.childNodes[0];if(f.childNodes.forEach(function(x){x.textContent&&x.textContent.trim()!==""&&(d=x)}),l){var p=ce(l,1)[0],m=c.cloneRange(),h=P.toDOMNode(e,p);m.setEndAfter(h),f=m.cloneContents()}if(s&&(d=f.querySelector("[data-slate-spacer]")),Array.from(f.querySelectorAll("[data-slate-zero-width]")).forEach(function(x){var S=x.getAttribute("data-slate-zero-width")==="n";x.textContent=S?`
67
+ `:""}),dP(d)){var v=d.ownerDocument.createElement("span");v.style.whiteSpace="pre",v.appendChild(d),f.appendChild(v),d=v}var y=e.getFragment(),g=JSON.stringify(y),w=window.btoa(encodeURIComponent(g));d.setAttribute("data-slate-fragment",w),r.setData("application/x-slate-fragment",w);var E=f.ownerDocument.createElement("div");return E.appendChild(f),E.setAttribute("hidden","true"),f.ownerDocument.body.appendChild(E),r.setData("text/html",E.innerHTML),r.setData("text/plain",Net(E)),f.ownerDocument.body.removeChild(E),r}}},e.insertData=function(r){var o,a,i=r.getData("application/x-slate-fragment");if(i){var u=decodeURIComponent(window.atob(i)),s=JSON.parse(u);e.insertFragment(s)}else{var l=r.getData("text/plain"),c=r.getData("text/html");if(c)e.dangerouslyInsertHtml(c);else if(l){var f=l.split(/\r\n|\r|\n/),d=!1;try{for(var p=fo(f),m=p.next();!m.done;m=p.next()){var h=m.value;d&&_.splitNodes(e,{always:!0}),n(h),d=!0}}catch(v){o={error:v}}finally{try{m&&!m.done&&(a=p.return)&&a.call(p)}finally{if(o)throw o.error}}}}},e},ep=function(t){return t!=null},Pnt={object:!0,function:!0,undefined:!0},Fnt=/^\s*class[\s{/}]/,knt=Function.prototype.toString,pF=function(t){return!!function(e){if(typeof e!="function"||!hasOwnProperty.call(e,"length"))return!1;try{if(typeof e.length!="number"||typeof e.call!="function"||typeof e.apply!="function")return!1}catch{return!1}return!function(n){if(!function(r){return!!ep(r)&&hasOwnProperty.call(Pnt,typeof r)}(n))return!1;try{return!!n.constructor&&n.constructor.prototype===n}catch{return!1}}(e)}(t)&&!Fnt.test(knt.call(t))},qS=function(t){return t!=null},Nnt=Object.keys,Int=function(){try{return Object.keys("primitive"),!0}catch{return!1}}()?Object.keys:function(t){return Nnt(qS(t)?Object(t):t)},jnt=function(t){if(!qS(t))throw new TypeError("Cannot use null or undefined");return t},Rnt=Math.max,hF=function(){var t,e=Object.assign;return typeof e=="function"&&(e(t={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")}()?Object.assign:function(t,e){var n,r,o,a=Rnt(arguments.length,2);for(t=Object(jnt(t)),o=function(i){try{t[i]=e[i]}catch(u){n||(n=u)}},r=1;r<a;++r)Int(e=arguments[r]).forEach(o);if(n!==void 0)throw n;return t},Lnt=Array.prototype.forEach,Mnt=Object.create,Vnt=function(t,e){var n;for(n in t)e[n]=t[n]},gF=function(t){var e=Mnt(null);return Lnt.call(arguments,function(n){qS(n)&&Vnt(Object(n),e)}),e},tx="razdwatrzy",znt=String.prototype.indexOf,np=typeof tx.contains=="function"&&tx.contains("dwa")===!0&&tx.contains("foo")===!1?String.prototype.contains:function(t){return znt.call(this,t,arguments[1])>-1},zm=Ed(function(t){var e=t.exports=function(n,r){var o,a,i,u,s;return arguments.length<2||typeof n!="string"?(u=r,r=n,n=null):u=arguments[2],ep(n)?(o=np.call(n,"c"),a=np.call(n,"e"),i=np.call(n,"w")):(o=i=!0,a=!1),s={value:r,configurable:o,enumerable:a,writable:i},u?hF(gF(u),s):s};e.gs=function(n,r,o){var a,i,u,s;return typeof n!="string"?(u=o,o=r,r=n,n=null):u=arguments[3],ep(r)?pF(r)?ep(o)?pF(o)||(u=o,o=void 0):o=void 0:(u=r,r=o=void 0):r=void 0,ep(n)?(a=np.call(n,"c"),i=np.call(n,"e")):(a=!0,i=!1),s={get:r,set:o,configurable:a,enumerable:i},u?hF(gF(u),s):s}}),ex=function(t){if(typeof t!="function")throw new TypeError(t+" is not a function");return t},Hnt=Ed(function(t,e){var n,r,o,a,i,u,s,l=Function.prototype.apply,c=Function.prototype.call,f=Object.create,d=Object.defineProperty,p=Object.defineProperties,m=Object.prototype.hasOwnProperty,h={configurable:!0,enumerable:!1,writable:!0};n=function(v,y){var g;return ex(y),m.call(this,"__ee__")?g=this.__ee__:(g=h.value=f(null),d(this,"__ee__",h),h.value=null),g[v]?typeof g[v]=="object"?g[v].push(y):g[v]=[g[v],y]:g[v]=y,this},r=function(v,y){var g,w;return ex(y),w=this,n.call(this,v,g=function(){o.call(w,v,g),l.call(y,this,arguments)}),g.__eeOnceListener__=y,this},o=function(v,y){var g,w,E,x;if(ex(y),!m.call(this,"__ee__"))return this;if(!(g=this.__ee__)[v])return this;if(typeof(w=g[v])=="object")for(x=0;E=w[x];++x)E!==y&&E.__eeOnceListener__!==y||(w.length===2?g[v]=w[x?0:1]:w.splice(x,1));else w!==y&&w.__eeOnceListener__!==y||delete g[v];return this},a=function(v){var y,g,w,E,x;if(m.call(this,"__ee__")&&(E=this.__ee__[v]))if(typeof E=="object"){for(g=arguments.length,x=new Array(g-1),y=1;y<g;++y)x[y-1]=arguments[y];for(E=E.slice(),y=0;w=E[y];++y)l.call(w,this,x)}else switch(arguments.length){case 1:c.call(E,this);break;case 2:c.call(E,this,arguments[1]);break;case 3:c.call(E,this,arguments[1],arguments[2]);break;default:for(g=arguments.length,x=new Array(g-1),y=1;y<g;++y)x[y-1]=arguments[y];l.call(E,this,x)}},i={on:n,once:r,off:o,emit:a},u={on:zm(n),once:zm(r),off:zm(o),emit:zm(a)},s=p({},u),t.exports=e=function(v){return v==null?f(s):p(Object(v),u)},e.methods=i});function Hm(t){var e=lP.get(t);return e==null&&(e=Hnt(),lP.set(t,e)),e}var Um=new WeakMap;function vF(t,e){var n=Um.get(t);n==null&&(n=new Set,Um.set(t,n)),n.add(e)}function Unt(t){return Um.get(t)||new Set}function _nt(t){Um.set(t,new Set)}function nx(t){var e=P.getTextarea(t).$textAreaContainer,n=e.width(),r=e.height(),o=e.offset();return{top:o.top,left:o.left,width:n,height:r}}function rx(t){var e={top:"0",left:"0"},n=t.selection;if(n==null)return e;var r=nx(t);if(r==null)return e;var o=r.top,a=r.left,i=r.width,u=r.height,s=P.toDOMRange(t,n).getClientRects()[0];if(s==null)return e;s.width;var l=s.height,c={},f=s.top-o,d=s.left-a;if(d>i/2){var p=i-d;c.right=p+5+"px"}else c.left=d+5+"px";if(f>u/2){var m=u-f;c.bottom=m+5+"px"}else{var h=f+l;h<0&&(h=0),c.top=h+5+"px"}return c}function ox(t,e,n){n===void 0&&(n="modal");var r={top:"0",left:"0"};if(t.selection==null)return r;var o=St.isElement(e)&&t.isVoid(e),a=St.isElement(e)&&t.isInline(e),i=Nm.get(e);if(i==null)return r;var u=i.getBoundingClientRect(),s=u.top,l=u.left,c=u.height,f=u.width;if(o){var d=function(C){var T=[];T.push(C);for(var A=0;T.length>0;){var k=T.pop();if(k==null||++A>1e4)break;var M=k.nodeName;if(k.nodeType===1){var H=M.toLowerCase();if(Fet.includes(H)||H==="iframe"||H==="video")return k;var N=k.children||[],j=N.length;if(j)for(var G=j-1;G>=0;G--)T.push(N[G])}}return null}(i);if(d!=null){var p=d.getBoundingClientRect();s=p.top,c=p.height}}var m=nx(t);if(m==null)return r;var h,v=m.top,y=m.left,g=m.width,w=m.height,E={},x=s-v,S=l-y;if(n==="bar")return E.left=S+"px",x>40?E.bottom=w-x+5+"px":E.top=x+c+5+"px",E;if(n==="modal")return o?a?S>(g-f)/2?E.right=g-S+5+"px":E.left=S+f+5+"px":E.left="20px":E.left=S+"px",o?((h=x)<0&&(h=0),E.top=h+"px"):x>(w-c)/2?E.bottom=w-x+5+"px":((h=x+c)<0&&(h=0),E.top=h+5+"px"),E;throw new Error("type '"+n+"' is invalid")}function ix(t,e){po(function(){var n=nx(t);if(n!=null){var r,o=n.top,a=n.left,i=n.width,u=n.height,s=e.offset(),l=s.top,c=s.left,f=e.width(),d=e.height(),p=l-o,m=c-a,h=e.attr("style");if(h.indexOf("top")>=0&&(r=p+d-u)>0){var v=e.css("top"),y=parseInt(v.toString())-r;y<0&&(y=0),e.css("top",y+"px")}if(h.indexOf("bottom")>=0&&l<0){var g=e.css("bottom"),w=parseInt(g.toString())-Math.abs(l);e.css("bottom",w+"px")}if(h.indexOf("left")>=0&&(r=m+f-i)>0){var E=e.css("left"),x=parseInt(E.toString())-r;x<0&&(x=0),e.css("left",x+"px")}if(h.indexOf("right")>=0&&c<0){var S=e.css("right"),C=parseInt(S.toString())-Math.abs(c);e.css("right",C+"px")}}})}var Gnt=ym("slice"),Wnt=Je("species"),ax=at.Array,Knt=Math.max;Qe({target:"Array",proto:!0,forced:!Gnt},{slice:function(t,e){var n,r,o,a=Ba(this),i=ss(a),u=Wl(t,i),s=Wl(e===void 0?i:e,i);if(lm(a)&&(n=a.constructor,(cm(n)&&(n===ax||lm(n.prototype))||Ve(n)&&(n=n[Wnt])===null)&&(n=void 0),n===ax||n===void 0))return SP(a,u,s);for(r=new(n===void 0?ax:n)(Knt(s-u,0)),o=0;u<s;u++,o++)u in a&&jd(r,o,a[u]);return r.length=o,r}});var Ynt=Pd.f,mF=Ct("".startsWith),Xnt=Ct("".slice),Znt=Math.min,yF=IE("startsWith"),Jnt=!yF&&!!function(){var t=Ynt(String.prototype,"startsWith");return t&&!t.writable}();Qe({target:"String",proto:!0,forced:!Jnt&&!yF},{startsWith:function(t){var e=Pe(lo(this));NE(t);var n=_l(Znt(arguments.length>1?arguments[1]:void 0,e.length)),r=Pe(t);return mF?mF(e,r,n):Xnt(e,n,n+r.length)===r}});var uc=Object.assign,bF=Object.defineProperty,Qnt=Ct([].concat),wF=!uc||be(function(){if(Mn&&uc({b:1},uc(bF({},"a",{enumerable:!0,get:function(){bF(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(o){e[o]=o}),uc({},t)[n]!=7||Kl(uc({},e)).join("")!=r})?function(t,e){for(var n=Aa(t),r=arguments.length,o=1,a=gB.f,i=lB.f;r>o;)for(var u,s=sm(arguments[o++]),l=a?Qnt(Kl(s),a(s)):Kl(s),c=l.length,f=0;c>f;)u=l[f++],Mn&&!fe(i,s,u)||(n[u]=s[u]);return n}:uc;Qe({target:"Object",stat:!0,forced:Object.assign!==wF},{assign:wF});var $nt=["props","attrs","style","dataset","on","hook"];function EF(t){var e=t.data,n=e===void 0?{}:e,r=t.children,o=r===void 0?[]:r;Object.keys(n).forEach(function(a){var i,u,s=n[a];if(a!=="key"){if(!$nt.includes(a)){if(a.startsWith("data-")){var l=a.slice(5);return l=wQ(l),function(c,f){c.data==null&&(c.data={});var d=c.data;d.dataset==null&&(d.dataset={}),Object.assign(d.dataset,f)}(t,((i={})[l]=s,i)),void delete n[a]}(function(c,f){c.data==null&&(c.data={});var d=c.data;d.props==null&&(d.props={}),Object.assign(d.props,f)})(t,(u={},u[a]=s,u)),delete n[a]}}else t.key=s}),o.length>0&&o.forEach(function(a){typeof a!="string"&&EF(a)})}var ux=[],SF={};function qnt(t,e,n){return jt(n.isInline(t)?"span":"div",null,e)}function xF(t,e){return e===void 0&&(e=!1),jt("span",{"data-slate-string":!0},e?t+`
68
+ `:t)}function sx(t,e){return t===void 0&&(t=0),e===void 0&&(e=!1),jt("span",{"data-slate-zero-width":e?"n":"z","data-slate-length":t},"\uFEFF",e?jt("br",null):null)}function lx(t,e,n,r){return _d.set(t,e),$l.set(t,n),St.isElement(t)?function(o,a){var i,u=P.findKey(a,o),s=a.isInline(o),l=D.isVoid(a,o),c=ZP(u.id),f={id:c,key:u.id,"data-slate-node":"element","data-slate-inline":s},d=o.type,p=o.children,m=p===void 0?[]:p,h=function(x){return SF[x]||qnt}(d);i=l?null:m.map(function(x,S){return lx(x,S,o,a)});var v=h(o,i,a);if(l){f["data-slate-void"]=!0;var y=s?"span":"div",g=ce(st.texts(o),1),w=ce(g[0],1)[0],E=jt(y,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},lx(w,0,o,a));v=jt(y,{style:{position:"relative"}},v,E),_d.set(w,0),$l.set(w,o)}return v.data==null&&(v.data={}),Object.assign(v.data,f),l||s||(v=function(x,S){var C=S;return ux.forEach(function(T){C=T(x,S)}),C}(o,v)),po(function(){var x=CS(c);x!=null&&(wS.set(u,x),Nm.set(o,x),km.set(x,o))}),v}(t,r):function(o,a,i){if(o.text==null)throw new Error("Current node is not slate Text "+JSON.stringify(o));var u=P.findKey(i,o),s=i.getConfig().decorate;if(s==null)throw new Error("Can not get config.decorate");var l=P.findPath(i,o),c=s([o,l]),f=vt.decorations(o,c),d=f.map(function(h,v){var y=function(g,w,E,x,S){w===void 0&&(w=!1);var C=g.text,T=P.findPath(S,E),A=z.parent(T);if(D.isEditor(x))throw new Error("Text node "+JSON.stringify(E)+" parent is Editor");return S.isVoid(x)?sx(st.string(x).length):C!==""||x.children[x.children.length-1]!==E||S.isInline(x)||D.string(S,A)!==""?C===""?sx():w&&C.slice(-1)===`
69
+ `?xF(C,!0):xF(C):sx(0,!0)}(h,v===f.length-1,o,a,i);return y=function(g,w){var E=w;return ux.forEach(function(x){E=x(g,E)}),E}(h,y),jt("span",{"data-slate-leaf":!0},y)}),p=function(h){return"w-e-text-"+h}(u.id),m=jt("span",{"data-slate-node":"text",id:p,key:u.id},d);return po(function(){var h=CS(p);h!=null&&(wS.set(u,h),Nm.set(o,h),km.set(h,o))}),m}(t,n,r)}function trt(t,e){var n,r=t.$scroll,o=function(h){return"w-e-textarea-"+h}(t.id),a=e.getConfig(),i=a.readOnly,u=a.autoFocus,s=function(h,v){return v===void 0&&(v=!1),Rl("div#"+h,{props:{contentEditable:!v}})}(o,i),l=e.children||[];s.children=l.map(function(h,v){var y=lx(h,v,e,e);return EF(y),y});var c=iP.get(t);if(c==null&&(c=!0),c){var f=function(h,v){return F(`<div
70
+ id="`+h+`"
71
+ data-slate-editor
72
+ data-slate-node="value"
73
+ suppressContentEditableWarning
74
+ role="textarea"
75
+ spellCheck="true"
76
+ autoCorrect="true"
77
+ autoCapitalize="true"
78
+ ></div>`)}(o);r.append(f),t.$textArea=f,n=f[0],(p=UJ([GJ,XJ,JJ,WJ,YJ,_J]))(n,s),iP.set(t,!1),aP.set(t,p)}else{var d=uP.get(t),p=aP.get(t);if(d==null||p==null)return;n=d.elm,p(d,s)}if(n!=null||(n=CS(o))!=null){if((c?u:e.isFocused())&&n.focus({preventScroll:!0}),c){var m=xS(n);m&&sP.set(e,m)}bS.set(e,n),Nm.set(e,n),km.set(n,e),uP.set(t,s)}}function CF(t){return typeof t=="object"&&t!=null&&t.nodeType===1}function DF(t,e){return(!e||t!=="hidden")&&t!=="visible"&&t!=="clip"}function cx(t,e){if(t.clientHeight<t.scrollHeight||t.clientWidth<t.scrollWidth){var n=getComputedStyle(t,null);return DF(n.overflowY,e)||DF(n.overflowX,e)||function(r){var o=function(a){if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}}(r);return!!o&&(o.clientHeight<r.scrollHeight||o.clientWidth<r.scrollWidth)}(t)}return!1}function _m(t,e,n,r,o,a,i,u){return a<t&&i>e||a>t&&i<e?0:a<=t&&u<=n||i>=e&&u>=n?a-t-r:i>e&&u<n||a<t&&u>n?i-e+o:0}function OF(t,e){var n=window,r=e.scrollMode,o=e.block,a=e.inline,i=e.boundary,u=e.skipOverflowHiddenElements,s=typeof i=="function"?i:function(Pt){return Pt!==i};if(!CF(t))throw new TypeError("Invalid target");for(var l=document.scrollingElement||document.documentElement,c=[],f=t;CF(f)&&s(f);){if((f=f.parentElement)===l){c.push(f);break}f!=null&&f===document.body&&cx(f)&&!cx(document.documentElement)||f!=null&&cx(f,u)&&c.push(f)}for(var d=n.visualViewport?n.visualViewport.width:innerWidth,p=n.visualViewport?n.visualViewport.height:innerHeight,m=window.scrollX||pageXOffset,h=window.scrollY||pageYOffset,v=t.getBoundingClientRect(),y=v.height,g=v.width,w=v.top,E=v.right,x=v.bottom,S=v.left,C=o==="start"||o==="nearest"?w:o==="end"?x:w+y/2,T=a==="center"?S+g/2:a==="end"?E:S,A=[],k=0;k<c.length;k++){var M=c[k],H=M.getBoundingClientRect(),N=H.height,j=H.width,G=H.top,V=H.right,J=H.bottom,rt=H.left;if(r==="if-needed"&&w>=0&&S>=0&&x<=p&&E<=d&&w>=G&&x<=J&&S>=rt&&E<=V)return A;var it=getComputedStyle(M),W=parseInt(it.borderLeftWidth,10),O=parseInt(it.borderTopWidth,10),B=parseInt(it.borderRightWidth,10),I=parseInt(it.borderBottomWidth,10),Y=0,et=0,X="offsetWidth"in M?M.offsetWidth-M.clientWidth-W-B:0,ot="offsetHeight"in M?M.offsetHeight-M.clientHeight-O-I:0;if(l===M)Y=o==="start"?C:o==="end"?C-p:o==="nearest"?_m(h,h+p,p,O,I,h+C,h+C+y,y):C-p/2,et=a==="start"?T:a==="center"?T-d/2:a==="end"?T-d:_m(m,m+d,d,W,B,m+T,m+T+g,g),Y=Math.max(0,Y+h),et=Math.max(0,et+m);else{Y=o==="start"?C-G-O:o==="end"?C-J+I+ot:o==="nearest"?_m(G,J,N,O,I+ot,C,C+y,y):C-(G+N/2)+ot/2,et=a==="start"?T-rt-W:a==="center"?T-(rt+j/2)+X/2:a==="end"?T-V+B+X:_m(rt,V,j,W,B+X,T,T+g,g);var mt=M.scrollLeft,bt=M.scrollTop;C+=bt-(Y=Math.max(0,Math.min(bt+Y,M.scrollHeight-N+ot))),T+=mt-(et=Math.max(0,Math.min(mt+et,M.scrollWidth-j+X)))}A.push({el:M,top:Y,left:et})}return A}function AF(t){return t===Object(t)&&Object.keys(t).length!==0}function ho(t,e){return ds(e)&&P.hasDOMNode(t,e,{editable:!0})}function TF(t,e){if(t.getConfig().readOnly)return!1;var n=sc(t,e)&&P.toSlateNode(t,e);return D.isVoid(t,n)}function sc(t,e){return ds(e)&&P.hasDOMNode(t,e)}function BF(t,e,n){n===void 0&&(n=!1);var r=e.selection,o=e.getConfig(),a=P.findDocumentOrShadowRoot(e).getSelection();if(a&&(!t.isComposing||n)&&e.isFocused()){var i=a.type!=="None";if(r||i){var u=bS.get(e),s=!1;if(u.contains(a.anchorNode)&&u.contains(a.focusNode)&&(s=!0),i&&s&&r){var l=P.toSlateRange(e,a,{exactMatch:!0,suppressThrow:!0});if(l&&$.equals(l,r)){var c=!0;if($.isCollapsed(r)){var f=a.anchorNode,d=a.anchorOffset;if(f===u){var p=u.childNodes,m=void 0;(m=p[d])&&m.matches("table")&&(c=!1),(m=p[d-1])&&m.matches("table")&&(c=!1)}}if(c)return}}if(!r||P.hasRange(e,r)){t.isUpdatingSelection=!0;var h=r&&P.toDOMRange(e,r);if(h){$.isBackward(r)?a.setBaseAndExtent(h.endContainer,h.endOffset,h.startContainer,h.startOffset):a.setBaseAndExtent(h.startContainer,h.startOffset,h.endContainer,h.endOffset);var v=h.startContainer.parentElement;if(!v.closest("[data-slate-spacer]")){v.getBoundingClientRect=h.getBoundingClientRect.bind(h);var y=document.body;(function(g,w){var E=!g.ownerDocument.documentElement.contains(g);if(AF(w)&&typeof w.behavior=="function")return w.behavior(E?[]:OF(g,w));if(!E){var x=function(S){return S===!1?{block:"end",inline:"nearest"}:AF(S)?S:{block:"start",inline:"nearest"}}(w);(function(S,C){C===void 0&&(C="auto");var T="scrollBehavior"in document.body.style;S.forEach(function(A){var k=A.el,M=A.top,H=A.left;k.scroll&&T?k.scroll({top:M,left:H,behavior:C}):(k.scrollTop=M,k.scrollLeft=H)})})(OF(g,x),x.behavior)}})(v,{scrollMode:"if-needed",boundary:o.scroll?u.parentElement:y,block:"end",behavior:"smooth"}),delete v.getBoundingClientRect}}else a.removeAllRanges();setTimeout(function(){h&&Gd&&u.focus(),t.isUpdatingSelection=!1})}else e.selection=P.toSlateRange(e,a,{exactMatch:!1,suppressThrow:!1})}}}var fx=new WeakMap,PF=new WeakMap,ert={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",splitBlock:"shift?+enter",undo:"mod+z",tab:"tab",selectAll:"mod+a"},nrt={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},rrt={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},_e=function(t){var e=ert[t],n=nrt[t],r=rrt[t],o=e&&Vw(e),a=n&&Vw(n),i=r&&Vw(r);return function(u){return!(!o||!o(u))||!!(DS&&a&&a(u))||!(DS||!i||!i(u))}},$e={isBold:_e("bold"),isCompose:_e("compose"),isMoveBackward:_e("moveBackward"),isMoveForward:_e("moveForward"),isDeleteBackward:_e("deleteBackward"),isDeleteForward:_e("deleteForward"),isDeleteLineBackward:_e("deleteLineBackward"),isDeleteLineForward:_e("deleteLineForward"),isDeleteWordBackward:_e("deleteWordBackward"),isDeleteWordForward:_e("deleteWordForward"),isExtendBackward:_e("extendBackward"),isExtendForward:_e("extendForward"),isExtendLineBackward:_e("extendLineBackward"),isExtendLineForward:_e("extendLineForward"),isItalic:_e("italic"),isMoveLineBackward:_e("moveLineBackward"),isMoveLineForward:_e("moveLineForward"),isMoveWordBackward:_e("moveWordBackward"),isMoveWordForward:_e("moveWordForward"),isRedo:_e("redo"),isSplitBlock:_e("splitBlock"),isTransposeCharacter:_e("transposeCharacter"),isUndo:_e("undo"),isTab:_e("tab"),isSelectAll:_e("selectAll")};function On(t){t.preventDefault()}var ort={beforeinput:function(t,e,n){var r=t,o=n.getConfig().readOnly;if(Kd&&!o&&ho(n,r.target)){var a=n.selection,i=r.inputType,u=r.dataTransfer||r.data||void 0;if(i!=="insertCompositionText"&&i!=="deleteCompositionText"){if(r.preventDefault(),!i.startsWith("delete")||i.startsWith("deleteBy")){var s=ce(r.getTargetRanges(),1)[0];if(s){var l=P.toSlateRange(n,s,{exactMatch:!1,suppressThrow:!1});a&&$.equals(a,l)||_.select(n,l)}}if(a&&$.isExpanded(a)&&i.startsWith("delete")){var c=i.endsWith("Backward")?"backward":"forward";D.deleteFragment(n,{direction:c})}else switch(i){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":D.deleteFragment(n);break;case"deleteContent":case"deleteContentForward":D.deleteForward(n);break;case"deleteContentBackward":D.deleteBackward(n);break;case"deleteEntireSoftLine":D.deleteBackward(n,{unit:"line"}),D.deleteForward(n,{unit:"line"});break;case"deleteHardLineBackward":D.deleteBackward(n,{unit:"block"});break;case"deleteSoftLineBackward":D.deleteBackward(n,{unit:"line"});break;case"deleteHardLineForward":D.deleteForward(n,{unit:"block"});break;case"deleteSoftLineForward":D.deleteForward(n,{unit:"line"});break;case"deleteWordBackward":D.deleteBackward(n,{unit:"word"});break;case"deleteWordForward":D.deleteForward(n,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":D.insertBreak(n);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if(i==="insertFromPaste"&&!SS.get(n))break;u instanceof DataTransfer?n.insertData(u):typeof u=="string"&&D.insertText(n,u)}}}},blur:function(t,e,n){var r=t,o=e.isUpdatingSelection,a=e.latestElement;if(!n.getConfig().readOnly&&!o&&ho(n,r.target)){var i=P.findDocumentOrShadowRoot(n);if(a!==i.activeElement){var u=r.relatedTarget;if(!(u===P.toDOMNode(n,n)||Ro(u)&&u.hasAttribute("data-slate-spacer"))){if(u!=null&&ds(u)&&P.hasDOMNode(n,u)){var s=P.toSlateNode(n,u);if(St.isElement(s)&&!n.isVoid(s))return}if(Wd){var l=i.getSelection();l==null||l.removeAllRanges()}fs.delete(n)}}}},focus:function(t,e,n){var r=P.toDOMNode(n,n),o=P.findDocumentOrShadowRoot(n);e.latestElement=o.activeElement,Gd&&t.target!==r?r.focus():fs.set(n,!0)},click:function(t,e,n){if(!n.getConfig().readOnly&&sc(n,t.target)&&ds(t.target)){var r=P.toSlateNode(n,t.target),o=P.findPath(n,r);if(D.hasPath(n,o)&&st.get(n,o)===r){var a=D.start(n,o),i=D.end(n,o),u=D.void(n,{at:a}),s=D.void(n,{at:i});if(u&&s&&z.equals(u[1],s[1])){var l=D.range(n,a);_.select(n,l)}}}},compositionstart:function(t,e,n){if(ho(n,t.target)){var r=n.selection;if(r&&$.isExpanded(r)&&(D.deleteFragment(n),Promise.resolve().then(function(){BF(e,n,!0)})),r&&$.isCollapsed(r)){var o=P.toDOMRange(n,r).startContainer,a=o.textContent||"";fx.set(n,a),PF.set(n,o)}e.isComposing=!0,function(i,u){var s;u.getConfig().placeholder&&u.isEmpty()&&i.showPlaceholder&&((s=i.$placeholder)===null||s===void 0||s.hide(),i.showPlaceholder=!1)}(e,n)}},compositionend:function(t,e,n){var r=t;if(ho(n,r.target)){e.isComposing=!1;var o=n.selection;if(o!=null){(OS||Gd)&&P.cleanExposedTexNodeInSelectionBlock(n);for(var a=$.isBackward(o)?o.focus:o.anchor,i=ce(D.node(n,[a.path[0]]),1)[0],u=0;u<a.path.length;u++){var s=ce(D.node(n,a.path.slice(0,u+1)),1)[0];if(St.isElement(s)&&((Wd||Gd)&&s.type==="link"||s.type==="code")){P.setNewKey(i);break}}var l=r.data;if(l){if(n.getConfig().maxLength){var c=P.getLeftLengthOfMaxLength(n);c<l.length?(P.toDOMRange(n,o).startContainer.textContent=fx.get(n)||"",c>0&&D.insertText(n,l.slice(0,c)),e.changeViewState()):D.insertText(n,l)}else D.insertText(n,l);Wd||setTimeout(function(){var f=n.selection;if(f!=null){var d=PF.get(n);d!=null&&P.toDOMRange(n,f).startContainer!==d&&(d.textContent=fx.get(n)||"")}})}}}},compositionupdate:function(t,e,n){ho(n,t.target)&&(e.isComposing=!0)},keydown:function(t,e,n){var r=t,o=n.selection;if(!n.getConfig().readOnly&&!e.isComposing&&ho(n,r.target)){if(function(i,u){var s=Bm.get(i),l=s&&s.getMenus(),c=Pm.get(i),f=c&&c.getMenus(),d=co(co({},l),f);for(var p in d){var m=d[p],h=m.hotkey;if(h&&xQ(h,u)&&!m.isDisabled(i)){var v=m.getValue(i);m.exec(i,v)}}}(n,r),$e.isTab(r))return On(r),void n.handleTab();if($e.isRedo(r))return On(r),void(typeof n.redo=="function"&&n.redo());if($e.isUndo(r))return On(r),void(typeof n.undo=="function"&&n.undo());if($e.isMoveLineBackward(r))return On(r),void _.move(n,{unit:"line",reverse:!0});if($e.isMoveLineForward(r))return On(r),void _.move(n,{unit:"line"});if($e.isExtendLineBackward(r))return On(r),void _.move(n,{unit:"line",edge:"focus",reverse:!0});if($e.isExtendLineForward(r))return On(r),void _.move(n,{unit:"line",edge:"focus"});if($e.isMoveBackward(r))return On(r),void(o&&$.isCollapsed(o)?_.move(n,{reverse:!0}):_.collapse(n,{edge:"start"}));if($e.isMoveForward(r))return On(r),void(o&&$.isCollapsed(o)?_.move(n):_.collapse(n,{edge:"end"}));if($e.isMoveWordBackward(r))return On(r),o&&$.isExpanded(o)&&_.collapse(n,{edge:"focus"}),void _.move(n,{unit:"word",reverse:!0});if($e.isMoveWordForward(r))return On(r),o&&$.isExpanded(o)&&_.collapse(n,{edge:"focus"}),void _.move(n,{unit:"word"});if($e.isSelectAll(r))return On(r),void n.selectAll();if(Kd){if((OS||Wd)&&o&&($e.isDeleteBackward(r)||$e.isDeleteForward(r))&&$.isCollapsed(o)){var a=st.parent(n,o.anchor.path);if(St.isElement(a)&&D.isVoid(n,a)&&D.isInline(n,a))return r.preventDefault(),void _.delete(n,{unit:"block"})}}else{if($e.isBold(r)||$e.isItalic(r)||$e.isTransposeCharacter(r))return void On(r);if($e.isSplitBlock(r))return On(r),void D.insertBreak(n);if($e.isDeleteBackward(r))return On(r),void(o&&$.isExpanded(o)?D.deleteFragment(n,{direction:"backward"}):D.deleteBackward(n));if($e.isDeleteForward(r))return On(r),void(o&&$.isExpanded(o)?D.deleteFragment(n,{direction:"forward"}):D.deleteForward(n));if($e.isDeleteLineBackward(r))return On(r),void(o&&$.isExpanded(o)?D.deleteFragment(n,{direction:"backward"}):D.deleteBackward(n,{unit:"line"}));if($e.isDeleteLineForward(r))return On(r),void(o&&$.isExpanded(o)?D.deleteFragment(n,{direction:"forward"}):D.deleteForward(n,{unit:"line"}));if($e.isDeleteWordBackward(r))return On(r),void(o&&$.isExpanded(o)?D.deleteFragment(n,{direction:"backward"}):D.deleteBackward(n,{unit:"word"}));if($e.isDeleteWordForward(r))return On(r),void(o&&$.isExpanded(o)?D.deleteFragment(n,{direction:"forward"}):D.deleteForward(n,{unit:"word"}))}}},keypress:function(t,e,n){if(!Kd&&!n.getConfig().readOnly&&ho(n,t.target)){t.preventDefault();var r=t.key;D.insertText(n,r)}},copy:function(t,e,n){var r=t;if(ho(n,r.target)){r.preventDefault();var o=r.clipboardData;o!=null&&n.setFragmentData(o)}},cut:function(t,e,n){var r=t,o=n.selection;if(!n.getConfig().readOnly&&ho(n,r.target)){r.preventDefault();var a=r.clipboardData;if(a!=null&&(n.setFragmentData(a),o))if($.isExpanded(o))D.deleteFragment(n);else{var i=st.parent(n,o.anchor.path);D.isVoid(n,i)&&_.delete(n)}}},paste:function(t,e,n){SS.set(n,!0);var r=t;if(!n.getConfig().readOnly&&ho(n,r.target)){var o=n.getConfig().customPaste;if(o&&o(n,r)===!1)return void SS.set(n,!1);if(!Kd||function(i){return i.clipboardData&&i.clipboardData.getData("text/plain")!==""&&i.clipboardData.types.length===1}(r)){r.preventDefault();var a=r.clipboardData;a!=null&&n.insertData(a)}}},dragover:function(t,e,n){if(sc(n,t.target)){var r=P.toSlateNode(n,t.target);D.isVoid(n,r)&&t.preventDefault()}},dragstart:function(t,e,n){var r=t;if(sc(n,r.target)&&!n.getConfig().readOnly){var o=P.toSlateNode(n,r.target),a=P.findPath(n,o);if(D.isVoid(n,o)||D.void(n,{at:a,voids:!0})){var i=D.range(n,a);_.select(n,i)}var u=r.dataTransfer;u!=null&&(e.isDraggingInternally=!0,n.setFragmentData(u))}},dragend:function(t,e,n){var r=t;n.getConfig().readOnly||e.isDraggingInternally&&sc(n,r.target)&&(e.isDraggingInternally=!1)},drop:function(t,e,n){var r=t,o=r.dataTransfer;if(!n.getConfig().readOnly&&sc(n,r.target)&&o!=null&&!(Kd&&Wd&&o.files.length>0)){r.preventDefault();var a=n.selection,i=P.findEventRange(n,r);_.select(n,i),e.isDraggingInternally&&(a&&_.delete(n,{at:a}),e.isDraggingInternally=!1),n.insertData(o),n.isFocused()||n.focus()}}},irt=1,art=function(){function t(e){var n=this;this.id=irt++,this.$textArea=null,this.$progressBar=F('<div class="w-e-progress-bar"></div>'),this.$maxLengthInfo=F('<div class="w-e-max-length-info"></div>'),this.isComposing=!1,this.isUpdatingSelection=!1,this.isDraggingInternally=!1,this.latestElement=null,this.showPlaceholder=!1,this.$placeholder=null,this.latestEditorSelection=null,this.onDOMSelectionChange=Zu(function(){var i=n.editorInstance;(function(u,s){var l=u.isComposing,c=u.isUpdatingSelection,f=u.isDraggingInternally;if(!(s.getConfig().readOnly||l||c||f)){var d=P.findDocumentOrShadowRoot(s),p=d.activeElement,m=P.toDOMNode(s,s),h=d.getSelection();if(p===m?(u.latestElement=p,fs.set(s,!0)):fs.delete(s),!h)return _.deselect(s);var v=h.anchorNode,y=h.focusNode,g=ho(s,v)||TF(s,v),w=ho(s,y)||TF(s,y);if(g&&w){var E=P.toSlateRange(s,h,{exactMatch:!1,suppressThrow:!1});_.select(s,E)}else _.deselect(s)}})(n,i)},100);var r=F(e);if(r.length===0)throw new Error("Cannot find textarea DOM by selector '"+e+"'");this.$box=r;var o=F('<div class="w-e-text-container"></div>');o.append(this.$progressBar),o.append(this.$maxLengthInfo),r.append(o);var a=F('<div class="w-e-scroll"></div>');o.append(a),this.$scroll=a,this.$textAreaContainer=o,po(function(){var i=n.editorInstance,u=P.getWindow(i);u.document.addEventListener("selectionchange",n.onDOMSelectionChange),i.on("destroyed",function(){u.document.removeEventListener("selectionchange",n.onDOMSelectionChange)}),o.on("click",function(){return i.hidePanelOrModal()}),i.on("change",n.changeViewState.bind(n));var s=i.getConfig().onChange;s&&i.on("change",function(){return s(i)}),n.onFocusAndOnBlur(),i.on("change",n.changeMaxLengthInfo.bind(n)),n.bindEvent()})}return Object.defineProperty(t.prototype,"editorInstance",{get:function(){var e=hS.get(this);if(e==null)throw new Error("Can not get editor instance");return e},enumerable:!1,configurable:!0}),t.prototype.bindEvent=function(){var e=this,n=this.$textArea,r=this.$scroll,o=this.editorInstance;n!=null&&(Aw(ort,function(a,i){n.on(i,function(u){a(u,e,o)})}),o.getConfig().scroll&&(r.css("overflow-y","auto"),r.on("scroll",Zu(function(){o.emit("scroll")},100))))},t.prototype.onFocusAndOnBlur=function(){var e=this,n=this.editorInstance,r=n.getConfig(),o=r.onBlur,a=r.onFocus;this.latestEditorSelection=n.selection,n.on("change",function(){e.latestEditorSelection==null&&n.selection!=null?setTimeout(function(){return a&&a(n)}):e.latestEditorSelection!=null&&n.selection==null&&setTimeout(function(){return o&&o(n)}),e.latestEditorSelection=n.selection})},t.prototype.changeMaxLengthInfo=function(){var e=this.editorInstance,n=e.getConfig().maxLength;if(n){var r=n-P.getLeftLengthOfMaxLength(e);this.$maxLengthInfo[0].innerHTML=r+"/"+n}},t.prototype.changeProgress=function(e){var n=this.$progressBar;n.css("width",e+"%"),e>=100&&setTimeout(function(){n.hide(),n.css("width","0"),n.show()},1e3)},t.prototype.changeViewState=function(){var e=this,n=this.editorInstance;trt(this,n),function(r,o){var a,i=o.getConfig().placeholder;if(i){var u=o.isEmpty();if(u&&!r.showPlaceholder&&!r.isComposing){if(r.$placeholder==null){var s=F('<div class="w-e-text-placeholder">'+i+"</div>");r.$textAreaContainer.append(s),r.$placeholder=s}return r.$placeholder.show(),void(r.showPlaceholder=!0)}!u&&r.showPlaceholder&&((a=r.$placeholder)===null||a===void 0||a.hide(),r.showPlaceholder=!1)}}(this,n),po(function(){BF(e,n)})},t.prototype.destroy=function(){this.$textAreaContainer.remove()},t}();function dx(t){t.removeAttr("width"),t.removeAttr("height"),t.removeAttr("fill"),t.removeAttr("class"),t.removeAttr("t"),t.removeAttr("p-id");var e=t.children();e.length&&dx(e)}function px(){return F('<svg viewBox="0 0 1024 1024"><path d="M498.7 655.8l-197.6-268c-8.1-10.9-0.3-26.4 13.3-26.4h395.2c13.6 0 21.4 15.4 13.3 26.4l-197.6 268c-6.6 9-20 9-26.6 0z"></path></svg>')}function FF(){return F('<div class="w-e-bar-divider"></div>')}function kF(t,e,n,r,o){if(o===void 0&&(o=!1),e){if(r){var a=DS?"cmd":"ctrl";r=r.replace("mod",a)}if(o)r&&(t.attr("data-tooltip",r),t.addClass("w-e-menu-tooltip-v5"),t.addClass("tooltip-right"));else{var i=r?n+`
79
+ `+r:n;t.attr("data-tooltip",i),t.addClass("w-e-menu-tooltip-v5")}}}tS("match",function(t,e,n){return[function(r){var o=lo(this),a=r==null?void 0:is(r,t);return a?fe(a,r,o):new RegExp(r)[t](Pe(o))},function(r){var o=hn(this),a=Pe(r),i=n(e,o,a);if(i.done)return i.value;if(!o.global)return Md(o,a);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=Md(o,a))!==null;){var f=Pe(s[0]);l[c]=f,f===""&&(o.lastIndex=eS(a,_l(o.lastIndex),u)),c++}return c===0?null:l}]});var hx=function(){function t(e,n,r){var o=this;r===void 0&&(r=!1),this.$elem=F('<div class="w-e-bar-item"></div>'),this.$button=F('<button type="button"></button>'),this.disabled=!1,this.menu=n;var a=n.tag,i=n.width;if(a!=="button")throw new Error("Invalid tag '"+a+"', expected 'button'");var u=n.title,s=n.hotkey,l=s===void 0?"":s,c=n.iconSvg,f=c===void 0?"":c,d=this.$button;if(f){var p=F(f);dx(p),d.append(p)}else d.text(u);kF(d,f,u,l,r),r&&f&&d.append(F('<span class="title">'+u+"</span>")),i&&d.css("width",i+"px"),d.attr("data-menu-key",e),this.$elem.append(d),po(function(){return o.init()})}return t.prototype.init=function(){var e=this;this.setActive(),this.setDisabled(),this.$button.on("click",function(n){n.preventDefault(),Gr(e).hidePanelOrModal(),e.disabled||(e.exec(),e.onButtonClick())})},t.prototype.exec=function(){var e=Gr(this),n=this.menu,r=n.getValue(e);n.exec(e,r)},t.prototype.setActive=function(){var e=Gr(this),n=this.$button,r="active";this.menu.isActive(e)?n.addClass(r):n.removeClass(r)},t.prototype.setDisabled=function(){var e=Gr(this),n=this.$button,r=this.menu.isDisabled(e);(e.selection==null||e.isDisabled())&&(r=!0),this.menu.alwaysEnable&&(r=!1);var o="disabled";r?n.addClass(o):n.removeClass(o),this.disabled=r},t.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()},t}(),urt=function(t){function e(n,r,o){return o===void 0&&(o=!1),t.call(this,n,r,o)||this}return Jl(e,t),e.prototype.onButtonClick=function(){},e}(hx),gx=function(){function t(e){this.isShow=!1,this.showTime=0,this.record(e)}return t.prototype.record=function(e){var n=yS.get(e);n==null&&(n=new Set,yS.set(e,n)),n.add(this),Fm.set(this,e)},t.prototype.renderContent=function(e){var n=this.$elem;n.empty(),n.append(e);var r=this.genSelfElem();r&&n.append(r)},t.prototype.appendTo=function(e){var n=this.$elem;e.append(n)},t.prototype.show=function(){if(!this.isShow){this.showTime=Date.now(),this.$elem.show(),this.isShow=!0;var e=Fm.get(this);e&&e.emit("modalOrPanelShow",this)}},t.prototype.hide=function(){if(this.isShow&&!(Date.now()-this.showTime<200)){this.$elem.hide(),this.isShow=!1;var e=Fm.get(this);e&&e.emit("modalOrPanelHide")}},t}(),srt=function(t){function e(n){var r=t.call(this,n)||this;return r.type="dropPanel",r.$elem=F('<div class="w-e-drop-panel"></div>'),r}return Jl(e,t),e.prototype.genSelfElem=function(){return null},e}(gx),lrt=function(t){function e(n,r,o){o===void 0&&(o=!1);var a=t.call(this,n,r,o)||this;if(a.dropPanel=null,a.menu=r,r.showDropPanel){var i=px();a.$button.append(i)}return a}return Jl(e,t),e.prototype.onButtonClick=function(){this.menu.showDropPanel&&this.handleDropPanel()},e.prototype.handleDropPanel=function(){var n=this.menu;if(n.getPanelContentElem!=null){var r=Gr(this);if(this.dropPanel==null){var o=new srt(r),a=n.getPanelContentElem(r);o.renderContent(a),o.appendTo(this.$elem),o.show(),this.dropPanel=o}else{var i=this.dropPanel;i.isShow?i.hide():(a=n.getPanelContentElem(r),i.renderContent(a),i.show())}var u=this.dropPanel;if(u.isShow){var s=this.$elem,l=s.offset().left,c=s.parents(".w-e-bar");l-c.offset().left>=c.width()/2?u.$elem.css({left:"none",right:"0"}):u.$elem.css({left:"0",right:"none"})}}},e}(hx),crt=function(t){function e(n,r){r===void 0&&(r=0);var o=t.call(this,n)||this;o.type="modal",o.$elem=F('<div class="w-e-modal"></div>'),o.width=0,r&&(o.width=r);var a=o.$elem;return a.on("click",function(i){return i.stopPropagation()}),a.on("keyup",function(i){i.code==="Escape"&&(o.hide(),n.restoreSelection())}),o}return Jl(e,t),e.prototype.genSelfElem=function(){var n=this,r=F('<span class="btn-close"><svg viewBox="0 0 1024 1024"><path d="M1024 896.1024l-128 128L512 640 128 1024 0 896 384 512 0 128 128 0 512 384 896.1024 0l128 128L640 512z"></path></svg></span>'),o=Fm.get(this);return r.on("click",function(){n.hide(),o==null||o.restoreSelection()}),r},e.prototype.setStyle=function(n){var r=this.width,o=this.$elem;o.attr("style",""),r&&o.css("width",r+"px"),o.css(n)},e}(gx);function _r(t,e,n){var r=F('<label class="babel-container"></label>');r.append("<span>"+t+"</span>");var o=F('<input type="text" id="'+e+'" placeholder="'+(n||"")+'">');return r.append(o),[r[0],o[0]]}function lc(t,e){var n=F('<div class="button-container"></div>'),r=F('<button type="button" id="'+t+'">'+e+"</button>");return n.append(r),[n[0],r[0]]}var frt=function(t){function e(n,r,o){o===void 0&&(o=!1);var a=t.call(this,n,r,o)||this;return a.$body=F("body"),a.modal=null,a.menu=r,a}return Jl(e,t),e.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},e.prototype.getPosition=function(){var n=Gr(this),r=this.menu.getModalPositionNode(n);return St.isElement(r)?ox(n,r,"modal"):rx(n)},e.prototype.handleModal=function(){var n=Gr(this),r=this.menu;if(this.modal==null){var o=new crt(n,r.modalWidth);this.renderAndShowModal(o,!0),this.modal=o}else(o=this.modal).isShow?o.hide():this.renderAndShowModal(o,!1)},e.prototype.renderAndShowModal=function(n,r){r===void 0&&(r=!1);var o=Gr(this),a=this.menu;if(a.getModalContentElem!=null){var i=P.getTextarea(o),u=P.getToolbar(o),s=((u==null?void 0:u.getConfig())||{}).modalAppendToBody,l=a.getModalContentElem(o);if(n.renderContent(l),s)n.setStyle({left:"0",right:"0"});else{var c=this.getPosition();n.setStyle(c)}r&&(s?n.appendTo(this.$body):n.appendTo(i.$textAreaContainer)),n.show(),s||ix(o,n.$elem),setTimeout(function(){o.blur()})}},e}(hx),drt=function(t){function e(n,r){var o=t.call(this,n)||this;return o.type="selectList",o.$elem=F('<div class="w-e-select-list"></div>'),r&&o.$elem.css("width",r+"px"),o.$elem.on("click",function(a){a.stopPropagation()}),o}return Jl(e,t),e.prototype.renderList=function(n){var r=this.$elem;r.empty();var o=F("<ul></ul>");n.forEach(function(a){var i=a.value,u=a.text,s=a.selected,l=a.styleForRenderMenuList,c=F('<li data-value="'+i+'"></li>');if(l&&c.css(l),s){var f=F('<svg viewBox="0 0 1446 1024"><path d="M574.116299 786.736392 1238.811249 48.517862C1272.390222 11.224635 1329.414799 7.827718 1366.75664 41.450462 1403.840015 74.840484 1406.731043 132.084741 1373.10189 169.433699L655.118888 966.834607C653.072421 969.716875 650.835807 972.514337 648.407938 975.210759 615.017957 1012.29409 558.292155 1015.652019 521.195664 982.250188L72.778218 578.493306C35.910826 545.297758 32.859041 488.584019 66.481825 451.242134 99.871807 414.158803 156.597563 410.800834 193.694055 444.202665L574.116299 786.736392Z"></path></svg>');c.append(f),c.addClass("selected")}c.append(F('<span data-value="'+i+'">'+u+"</span>")),c.attr("title",u),o.append(c)}),r.append(o)},e.prototype.genSelfElem=function(){return null},e}(gx),prt=function(){function t(e,n,r){var o=this;r===void 0&&(r=!1),this.$elem=F('<div class="w-e-bar-item"></div>'),this.$button=F('<button type="button" class="select-button"></button>'),this.disabled=!1,this.selectList=null;var a=n.tag,i=n.title,u=n.width,s=n.iconSvg,l=s===void 0?"":s,c=n.hotkey,f=c===void 0?"":c;if(a!=="select")throw new Error("Invalid tag '"+a+"', expected 'select'");var d=this.$button;u&&d.css("width",u+"px"),d.attr("data-menu-key",e),kF(d,l,i,f,r),this.$elem.append(d),this.menu=n,po(function(){return o.init()})}return t.prototype.init=function(){var e=this;this.setSelectedValue(),this.$button.on("click",function(n){n.preventDefault(),Gr(e).hidePanelOrModal(),e.trigger()})},t.prototype.trigger=function(){var e=this,n=Gr(this);if(!n.isDisabled()&&!this.disabled){var r=this.menu;if(this.selectList==null){this.selectList=new drt(n,r.selectPanelWidth);var o=this.selectList,a=r.getOptions(n);o.renderList(a),o.appendTo(this.$elem),o.show(),o.$elem.on("click","li",function(i){var u=i.target;if(u!=null){i.preventDefault();var s=F(u).attr("data-value");e.onChange(s)}})}else(o=this.selectList).isShow?o.hide():(a=r.getOptions(n),o.renderList(a),o.show())}},t.prototype.onChange=function(e){var n=Gr(this),r=this.menu;r.exec&&r.exec(n,e)},t.prototype.setSelectedValue=function(){var e=Gr(this),n=this.menu,r=n.getValue(e),o=function(u,s){for(var l=u.length,c="",f=0;f<l;f++){var d=u[f];if(d.value===s){c=d.text;break}}return c}(n.getOptions(e),r.toString()),a=this.$button,i=px();a.empty(),a.text(o),a.append(i)},t.prototype.setDisabled=function(){var e=Gr(this),n=this.menu.isDisabled(e),r=this.$button;(e.selection==null||e.isDisabled())&&(n=!0);var o="disabled";n?r.addClass(o):r.removeClass(o),this.disabled=n},t.prototype.changeMenuState=function(){this.setSelectedValue(),this.setDisabled()},t}(),NF=function(){function t(e){this.$elem=F('<div class="w-e-bar-item w-e-bar-item-group"></div>'),this.$container=F('<div class="w-e-bar-item-menus-container"></div>'),this.$button=F('<button type="button"></button>');var n=e.key,r=e.iconSvg,o=e.title,a=this.$elem,i=this.$button;if(r){var u=F(r);dx(u),i.append(u)}else i.text(o);i.attr("data-menu-key",n);var s=px();i.append(s),a.append(i);var l=this.$container;a.append(l);var c=this.createObserver();this.observe(c)}return t.prototype.appendBarItem=function(e){var n=e.$elem;this.$container.append(n)},t.prototype.observe=function(e){var n=this.$container;e.observe(n[0],{childList:!0,subtree:!0,attributes:!0})},t.prototype.createObserver=function(){var e=this,n=this.$container,r=this.$button,o=new MutationObserver(function(){var a=n.find("button"),i=a.length;if(i!==0){var u=0;a.each(function(s){F(s).hasClass("disabled")&&u++}),o.disconnect(),u===i?r.addClass("disabled"):r.removeClass("disabled"),e.observe(o)}});return o},t}(),IF=new WeakMap;function Gr(t){var e=mS.get(t);if(e==null)throw new Error("Can not get editor instance");return e}function jF(t,e,n){n===void 0&&(n=!1);var r=IF.get(e);if(r)return r;var o=e.tag;if(o==="button"){var a=e.showDropPanel,i=e.showModal;r=a?new lrt(t,e,n):i?new frt(t,e,n):new urt(t,e,n)}if(o==="select"&&(r=new prt(t,e,n)),r==null)throw new Error("Invalid tag in menu "+JSON.stringify(e));return IF.set(e,r),r}function hrt(t,e){var n=t.selection;return n!=null&&!$.isCollapsed(n)&&!P.getSelectedElems(t).some(function(r){if(t.isVoid(r))return!0;var o=r.type;return!!["pre","code","table"].includes(o)||void 0})&&!!vt.isText(e)}var grt=function(){function t(){var e=this;this.$elem=F('<div class="w-e-bar w-e-bar-hidden w-e-hover-bar"></div>'),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null,this.isShow=!1,this.changeHoverbarState=iT(function(){var n=e.isShow,r=e.getSelectedNodeAndMenuKeys()||{},o=r.node,a=o===void 0?null:o,i=r.menuKeys,u=i===void 0?[]:i;a!=null&&e.changeItemsState(),a&&St.isElement(a)&&n&&e.isSamePath(a,e.prevSelectedNode)||(e.hideAndClean(),a!=null&&(e.registerItems(u),e.setPosition(a),e.show()),e.prevSelectedNode=a)},200),po(function(){var n=e.getEditorInstance(),r=e.$elem;r.on("mousedown",function(a){return a.preventDefault()},{passive:!1}),P.getTextarea(n).$textAreaContainer.append(r),n.on("change",e.changeHoverbarState);var o=e.hideAndClean.bind(e);n.on("scroll",o),n.on("fullScreen",o),n.on("unFullScreen",o)})}return t.prototype.getMenus=function(){return this.menus},t.prototype.hideAndClean=function(){var e=this.$elem;e.removeClass("w-e-bar-show").addClass("w-e-bar-hidden"),this.hoverbarItems=[],e.empty(),this.isShow=!1},t.prototype.checkPositionBottom=function(){var e=this.$elem,n=!1,r=window.innerHeight;r&&r>=360&&r-e[0].getBoundingClientRect().bottom<360&&(n=!0),n?e.addClass("w-e-bar-bottom"):e.removeClass("w-e-bar-bottom")},t.prototype.show=function(){this.$elem.removeClass("w-e-bar-hidden").addClass("w-e-bar-show"),this.isShow=!0,this.checkPositionBottom()},t.prototype.changeItemsState=function(){var e=this;po(function(){e.hoverbarItems.forEach(function(n){n.changeMenuState()})})},t.prototype.registerItems=function(e){var n=this,r=this.$elem;e.forEach(function(o){if(o!=="|")n.registerSingleItem(o);else{var a=FF();r.append(a)}})},t.prototype.registerSingleItem=function(e){var n=this.getEditorInstance(),r=this.menus,o=r[e];if(o==null){var a=Yd[e];if(a==null)throw new Error("Not found menu item factory by key '"+e+"'");if(typeof a!="function")throw new Error("Menu item factory (key='"+e+"') is not a function");o=a(),r[e]=o}var i=jF(e,o);this.hoverbarItems.push(i),mS.set(i,n),this.$elem.append(i.$elem)},t.prototype.setPosition=function(e){var n=this.getEditorInstance(),r=this.$elem;if(r.attr("style",""),St.isElement(e)){var o=ox(n,e,"bar");return r.css(o),void ix(n,r)}if(vt.isText(e))return o=rx(n),r.css(o),void ix(n,r);throw new Error("hoverbar.setPosition error, current selected node is not elem nor text")},t.prototype.getSelectedNodeAndMenuKeys=function(){var e=this.getEditorInstance();if(e.selection==null)return null;var n=this.getHoverbarKeysConf(),r=null,o=[],a=function(u){var s=n[u],l=s.match,c=s.menuKeys,f=c===void 0?[]:c,d=l||function(h,v){return P.checkNodeType(v,u)},p=ce(D.nodes(e,{match:function(h){return d(e,h)},universal:!0}),1),m=p[0];if(m!=null)return r=m[0],o=f,"break"};for(var i in n)if(a(i)==="break")break;return r==null||o.length===0?null:{node:r,menuKeys:o}},t.prototype.getEditorInstance=function(){var e=vS.get(this);if(e==null)throw new Error("Can not get editor instance");return e},t.prototype.getHoverbarKeysConf=function(){var e=this.getEditorInstance().getConfig().hoverbarKeys,n=e===void 0?{}:e,r=n.text;return r&&r.match==null&&(r.match=hrt),n},t.prototype.isSamePath=function(e,n){if(e==null||n==null)return!1;var r=P.findPath(null,e),o=P.findPath(null,n);return z.equals(r,o)},t.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},t}();function RF(t,e,n,r){if(_d.set(t,e),$l.set(t,n),St.isElement(t)){var o=t.children;if((o===void 0?[]:o).forEach(function(u,s){return RF(u,s,t,r)}),D.isVoid(r,t)){var a=ce(st.texts(t),1),i=ce(a[0],1)[0];_d.set(i,0),$l.set(i,t)}}}function vrt(t){var e=t.selector,n=e===void 0?"":e,r=t.config,o=r===void 0?{}:r,a=t.content,i=t.html,u=t.plugins,s=u===void 0?[]:u,l=(y=>{var g=y,{apply:w}=g;return g.history={undos:[],redos:[]},g.redo=()=>{var{history:E}=g,{redos:x}=E;if(x.length>0){var S=x[x.length-1];Yl.withoutSaving(g,()=>{D.withoutNormalizing(g,()=>{for(var C of S)g.apply(C)})}),E.redos.pop(),E.undos.push(S)}},g.undo=()=>{var{history:E}=g,{undos:x}=E;if(x.length>0){var S=x[x.length-1];Yl.withoutSaving(g,()=>{D.withoutNormalizing(g,()=>{var C=S.map(ma.inverse).reverse();for(var T of C)g.apply(T)})}),E.redos.push(S),E.undos.pop()}},g.apply=E=>{var{operations:x,history:S}=g,{undos:C}=S,T=C[C.length-1],A=T&&T[T.length-1],k=((j,G)=>!(!G||j.type!=="set_selection"||G.type!=="set_selection"))(E,A),M=Yl.isSaving(g),H=Yl.isMerging(g);if(M==null&&(M=((j,G)=>j.type!=="set_selection"||j.properties!=null&&j.newProperties!=null)(E)),M){if(H==null&&(H=T!=null&&(x.length!==0||((j,G)=>j.type==="set_selection"||!(!G||j.type!=="insert_text"||G.type!=="insert_text"||j.offset!==G.offset+G.text.length||!z.equals(j.path,G.path))||!(!G||j.type!=="remove_text"||G.type!=="remove_text"||j.offset+j.text.length!==G.offset||!z.equals(j.path,G.path)))(E,A)||k)),T&&H)k&&T.pop(),T.push(E);else{var N=[E];C.push(N)}for(;C.length>100;)C.shift();(j=>j.type!=="set_selection")(E)&&(S.redos=[])}w(E)},g})(function(y){var g=y,w=g.insertText,E=g.insertNode,x=g.insertFragment,S=g.dangerouslyInsertHtml;return g.insertText=function(C){if(g.getConfig().maxLength){var T=P.getLeftLengthOfMaxLength(g);T<=0||(T<C.length?w(C.slice(0,T)):w(C))}else w(C)},g.insertNode=function(C){if(g.getConfig().maxLength){var T=P.getLeftLengthOfMaxLength(g);T<=0||T<st.string(C).length||E(C)}else E(C)},g.insertFragment=function(C){if(g.getConfig().maxLength)if(C.length!==1)C.forEach(function(A){g.insertNode(A)});else{var T=C[0];if(P.getLeftLengthOfMaxLength(g)<st.string(T).length)return;x(C)}else x(C)},g.dangerouslyInsertHtml=function(C,T){if(C===void 0&&(C=""),T===void 0&&(T=!1),C)if(g.getConfig().maxLength){var A=P.getLeftLengthOfMaxLength(g);if(!(A<=0)){var k=document.createElement("div");k.innerHTML=C;var M=Array.from(k.childNodes).reduce(function(H,N){var j=N.nodeType,G=N.nodeName;return N?j===ii.TEXT_NODE?H+(N.textContent||""):j===ii.ELEMENT_NODE?fF.has(G.toLowerCase())?H:H+(N.textContent||""):H:H},"");A<M.length||S(C,T)}}else S(C,T)},g}(function(y){var g=y;return g.on=function(w,E){var x=Hm(g);if(x.on(w,E),w==="destroyed"&&vF(g,E),w!=="destroyed"){var S=function(){return x.off(w,E)};x.on("destroyed",S),vF(g,S)}},g.once=function(w,E){Hm(g).once(w,E)},g.off=function(w,E){Hm(g).off(w,E)},g.emit=function(w){for(var E=[],x=1;x<arguments.length;x++)E[x-1]=arguments[x];var S=Hm(g);S.emit.apply(S,uS([w],ce(E))),w==="destroyed"&&(Unt(g).forEach(function(C){return S.off("destroyed",C)}),_nt(g))},g}(function(y){var g=y;return g.select=function(w){_.select(g,w)},g.deselect=function(){var w=g.selection,E=P.findDocumentOrShadowRoot(g).getSelection();E&&E.rangeCount>0&&E.removeAllRanges(),w&&_.deselect(y)},g.move=function(w,E){E===void 0&&(E=!1),w&&(w<0||_.move(y,{distance:w,unit:"character",reverse:E}))},g.moveReverse=function(w){g.move(w,!0)},g.restoreSelection=function(){var w=ES.get(g);w!=null&&(g.focus(),_.select(g,w))},g.getSelectionPosition=function(){return rx(g)},g.getNodePosition=function(w){return ox(g,w)},g.isSelectedAll=function(){var w=g.selection;if(w==null)return!1;var E=ce($.edges(w),2),x=E[0],S=E[1],C=ce(D.edges(g,[]),2),T=C[0],A=C[1];return!(!Zt.equals(x,T)||!Zt.equals(S,A))},g.selectAll=function(){var w=D.start(g,[]),E=D.end(g,[]);_.select(g,{anchor:w,focus:E})},g}(function(y){var g=y,w=g.onChange,E=g.insertText,x=g.apply,S=g.deleteBackward;return g.insertText=function(C){g.getConfig().readOnly||E(C)},g.apply=function(C){var T,A,k,M,H,N,j,G,V=[];switch(C.type){case"insert_text":case"remove_text":case"set_node":try{for(var J=fo(D.levels(g,{at:C.path})),rt=J.next();!rt.done;rt=J.next()){var it=ce(rt.value,2),W=it[0],O=it[1],B=P.findKey(g,W);V.push([O,B])}}catch(Mt){T={error:Mt}}finally{try{rt&&!rt.done&&(A=J.return)&&A.call(J)}finally{if(T)throw T.error}}break;case"insert_node":case"remove_node":case"merge_node":case"split_node":try{for(var I=fo(D.levels(g,{at:z.parent(C.path)})),Y=I.next();!Y.done;Y=I.next()){var et=ce(Y.value,2);W=et[0],O=et[1],B=P.findKey(g,W),V.push([O,B])}}catch(Mt){k={error:Mt}}finally{try{Y&&!Y.done&&(M=I.return)&&M.call(I)}finally{if(k)throw k.error}}break;case"move_node":try{for(var X=fo(D.levels(g,{at:z.common(z.parent(C.path),z.parent(C.newPath))})),ot=X.next();!ot.done;ot=X.next()){var mt=ce(ot.value,2);W=mt[0],O=mt[1],B=P.findKey(g,W),V.push([O,B])}}catch(Mt){H={error:Mt}}finally{try{ot&&!ot.done&&(N=X.return)&&N.call(X)}finally{if(H)throw H.error}}}x(C);try{for(var bt=fo(V),Pt=bt.next();!Pt.done;Pt=bt.next()){var tt=ce(Pt.value,2);O=tt[0],B=tt[1],W=ce(D.node(g,O),1)[0],Im.set(W,B)}}catch(Mt){j={error:Mt}}finally{try{Pt&&!Pt.done&&(G=bt.return)&&G.call(bt)}finally{if(j)throw j.error}}},g.deleteBackward=function(C){if(C!=="line")return S(C);if(y.selection&&$.isCollapsed(y.selection)){var T=D.above(y,{match:function(H){return D.isBlock(y,H)},at:y.selection});if(T){var A=ce(T,2)[1],k=D.range(y,A,y.selection.anchor),M=function(H,N){var j=D.range(H,$.end(N)),G=Array.from(D.positions(H,{at:N})),V=0,J=G.length,rt=Math.floor(J/2);if(QP(H,D.range(H,G[V]),j))return D.range(H,G[V],j);if(G.length<2)return D.range(H,G[G.length-1],j);for(;rt!==G.length&&rt!==V;)QP(H,D.range(H,G[rt]),j)?J=rt:V=rt,rt=Math.floor((V+J)/2);return D.range(H,G[J],j)}(g,k);$.isCollapsed(M)||_.delete(y,{at:M})}}},g.onChange=function(){var C=g.selection;C!=null&&ES.set(g,C),g.emit("change"),w()},g.handleTab=function(){g.insertText(" ")},g.getHtml=function(){var C=g.children;return(C===void 0?[]:C).map(function(T){return XP(T,g)}).join("")},g.getText=function(){var C=g.children;return(C===void 0?[]:C).map(function(T){return st.string(T)}).join(`
80
+ `)},g.getSelectionText=function(){var C=g.selection;return C==null?"":D.string(y,C)},g.getElemsByType=function(C,T){var A,k;T===void 0&&(T=!1);var M=[],H=D.nodes(g,{at:[],universal:!0});try{for(var N=fo(H),j=N.next();!j.done;j=N.next()){var G=ce(j.value,1)[0];if(St.isElement(G)&&(T?G.type.indexOf(C)>=0:G.type===C)){var V=ZP(P.findKey(g,G).id);M.push(co(co({},G),{id:V}))}}}catch(J){A={error:J}}finally{try{j&&!j.done&&(k=N.return)&&k.call(N)}finally{if(A)throw A.error}}return M},g.getElemsByTypePrefix=function(C){return g.getElemsByType(C,!0)},g.isEmpty=function(){var C=g.children,T=C===void 0?[]:C;if(T.length>1)return!1;var A=T[0];if(A==null)return!0;if(St.isElement(A)&&A.type==="paragraph"){var k=A.children,M=k===void 0?[]:k;if(M.length>1)return!1;var H=M[0];if(H==null||vt.isText(H)&&H.text==="")return!0}return!1},g.clear=function(){_.delete(g,{at:{anchor:D.start(g,[]),focus:D.end(g,[])}}),g.children.length===0&&_.insertNodes(g,[{type:"paragraph",children:[{text:""}]}])},g.getParentNode=function(C){return P.getParentNode(g,C)},g.dangerouslyInsertHtml=function(C,T){if(C===void 0&&(C=""),T===void 0&&(T=!1),C){var A=document.createElement("div");A.innerHTML=C;var k=Array.from(A.childNodes);if(k=k.filter(function(j){var G=j.nodeType,V=j.nodeName;return G===ii.TEXT_NODE||G===ii.ELEMENT_NODE&&!fF.has(V.toLowerCase())}),k.length!==0){var M=g.selection;if(M!=null){var H=null;P.isSelectedEmptyParagraph(g)&&!T&&(H=[M.focus.path[0]]),A.setAttribute("hidden","true"),document.body.appendChild(A);var N=0;k.forEach(function(j){var G=j.nodeType,V=j.nodeName,J=j.textContent,rt=J===void 0?"":J;if(G!==ii.TEXT_NODE)if(V!=="BR"){var it=j,W=!1;if($P.includes(V.toLowerCase()))W=!0;else for(var O in Mm)if(it.matches(O)){W=!0;break}if(W){var B=QS(F(it),g);return Array.isArray(B)?(B.forEach(function(Y){return dF(g,Y)}),N++):(dF(g,B),N++),void(P.isSelectedVoidNode(g)&&g.move(1))}var I=window.getComputedStyle(it).display;P.isSelectedEmptyParagraph(g)||I.indexOf("inline")<0&&g.insertBreak(),g.dangerouslyInsertHtml(it.innerHTML,!0)}else g.insertText(`
81
+ `);else{if(!rt||!rt.trim())return;g.insertNode({text:rt})}}),N&&H&&P.isEmptyPath(g,H)&&_.removeNodes(g,{at:H}),A.remove()}}}},g.setHtml=function(C){C===void 0&&(C="");var T=g.isDisabled(),A=g.isFocused(),k=JSON.stringify(g.selection);g.enable(),g.focus(),g.clear();var M=sF(g,C);if(_.insertFragment(g,M),A||(g.deselect(),g.blur()),T&&(g.deselect(),g.disable()),g.isFocused())try{g.select(JSON.parse(k))}catch{g.select(D.start(g,[]))}},g}(function(y){var g=y;return g.getAllMenuKeys=function(){var w=[];for(var E in Yd)w.push(E);return w},g.getConfig=function(){var w=oP.get(g);if(w==null)throw new Error("Can not get editor config");return w},g.getMenuConfig=function(w){var E=g.getConfig().MENU_CONF;return(E===void 0?{}:E)[w]||{}},g.alert=function(w,E){E===void 0&&(E="info");var x=g.getConfig().customAlert;x&&x(w,E)},g}(function(y){var g=Bnt(JX());return g.id="wangEditor-"+Ret++,g.isDestroyed=!1,g.isFullScreen=!1,g.focus=function(w){if(P.toDOMNode(g,g).focus({preventScroll:!0}),fs.set(g,!0),w){var E=D.end(g,[]);_.select(g,E)}else{var x=ES.get(g);x?_.select(g,x):_.select(g,D.start(g,[]))}},g.isFocused=function(){return!!fs.get(g)},g.blur=function(){P.toDOMNode(g,g).blur(),_.deselect(g),fs.set(g,!1)},g.updateView=function(){P.getTextarea(g).changeViewState();var w=P.getToolbar(g);w&&w.changeToolbarState();var E=P.getHoverbar(g);E&&E.changeHoverbarState()},g.destroy=function(){if(!g.isDestroyed){var w=P.getTextarea(g);w.destroy(),pS.delete(g),hS.delete(w);var E=P.getToolbar(g);E&&(E.destroy(),Bm.delete(g),gS.delete(E));var x=P.getHoverbar(g);x&&(x.destroy(),Pm.delete(g),vS.delete(x)),g.isDestroyed=!0,g.emit("destroyed")}},g.scrollToElem=function(w){if(!g.getConfig().scroll){var E="编辑器禁用了 scroll ,编辑器内容无法滚动,请自行实现该功能";return E+=`
82
+ You has disabled editor scroll, please do this yourself`,void console.warn(E)}var x=F("#"+w);if(x.length!==0){var S=x[0];if(!P.hasDOMNode(g,S))return E="Element (found by id is '"+w+"') is not in editor DOM",E+=`
83
+ 通过 id '`+w+"' 找到的 element 不在 editor DOM 之内",void console.error(E,S);var C=P.getTextarea(g),T=C.$textAreaContainer,A=C.$scroll,k=x.offset().top,M=T.offset().top;A[0].scrollBy({top:k-M,behavior:"smooth"})}},g.showProgressBar=function(w){w<1||P.getTextarea(g).changeProgress(w)},g.hidePanelOrModal=function(){var w=yS.get(g);w!=null&&w.forEach(function(E){return E.hide()})},g.enable=function(){g.getConfig().readOnly=!1,g.updateView()},g.disable=function(){g.getConfig().readOnly=!0,g.updateView()},g.isDisabled=function(){return g.getConfig().readOnly},g.toDOMNode=function(w){return P.toDOMNode(g,w)},g.fullScreen=function(){if(!g.isFullScreen){var w=null,E=P.getToolbar(g);E&&(w=E.$box);var x=P.getTextarea(g).$box.parent();if(w&&w.parent()[0]!==x[0])throw new Error(`Can not set full screen, cause toolbar DOM parent is not equal to textarea DOM parent
84
+ 不能设置全屏,因为 toolbar DOM 父节点和 textarea DOM 父节点不一致`);x.addClass("w-e-full-screen-container");var S=x.css("z-index");x.attr("data-z-index",S.toString()),g.isFullScreen=!0,g.emit("fullScreen")}},g.unFullScreen=function(){if(g.isFullScreen){var w=P.getTextarea(g).$box.parent();setTimeout(function(){w.removeClass("w-e-full-screen-container"),g.isFullScreen=!1,g.emit("unFullScreen")},200)}},g.getEditableContainer=function(){return P.getTextarea(g).$textAreaContainer[0]},g}()))))));if(n&&function(y,g){return uF(y,"data-w-e-textarea",g)}(l,n))throw new Error("Repeated create editor by selector '"+n+"'");var c=function(y){y===void 0&&(y={});var g=aT(vP),w={},E=y.MENU_CONF,x=E===void 0?{}:E;return Aw(g,function(S,C){w[C]=co(co({},S),x[C]||{})}),delete y.MENU_CONF,co({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:w,hoverbarKeys:{},customAlert:function(S,C){window.alert(C+`:
85
+ `+S)}},y)}(o);oP.set(l,c);var f=c.hoverbarKeys,d=f===void 0?{}:f;if(s.forEach(function(y){l=y(l)}),i!=null&&(l.children=sF(l,i)),a&&a.length&&(l.children=a),l.children.length===0&&(l.children=[{type:"paragraph",children:[{text:""}]}]),P.normalizeContent(l),n){var p=new art(n);pS.set(l,p),hS.set(p,l),p.changeViewState(),po(function(){var y=p.$scroll;y!=null&&y.height()<300&&console.warn(`编辑区域高度 < 300px 这可能会导致 modal hoverbar 定位异常
86
+ Textarea height < 300px . This may be cause modal and hoverbar position error`,y)});var m=void 0;Object.keys(d).length>0&&(m=new grt,vS.set(m,l),Pm.set(l,m)),l.on("change",function(){l.hidePanelOrModal()}),l.on("scroll",function(){l.hidePanelOrModal()})}else l.children.forEach(function(y,g){return RF(y,g,l,l)});var h=c.onCreated,v=c.onDestroyed;return h&&l.on("created",function(){return h(l)}),v&&l.on("destroyed",function(){return v(l)}),po(function(){return l.emit("created")}),l}var mrt=ym("splice"),yrt=at.TypeError,brt=Math.max,wrt=Math.min;Qe({target:"Array",proto:!0,forced:!mrt},{splice:function(t,e){var n,r,o,a,i,u,s=Aa(this),l=ss(s),c=Wl(t,l),f=arguments.length;if(f===0?n=r=0:f===1?(n=0,r=l-c):(n=f-2,r=wrt(brt(Ad(e),0),l-c)),l+n-r>9007199254740991)throw yrt("Maximum allowed length exceeded");for(o=rB(s,r),a=0;a<r;a++)(i=c+a)in s&&jd(o,a,s[i]);if(o.length=r,n<r){for(a=c;a<l-r;a++)u=a+n,(i=a+r)in s?s[u]=s[i]:delete s[u];for(a=l;a>l-r+n;a--)delete s[a-1]}else if(n>r)for(a=l-r;a>c;a--)u=a+n-1,(i=a+r-1)in s?s[u]=s[i]:delete s[u];for(a=0;a<n;a++)s[a+c]=arguments[a+2];return s.length=l-r+n,o}});var Ert=function(){function t(e,n){var r=this;this.$toolbar=F('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=iT(function(){r.toolbarItems.forEach(function(i){i.changeMenuState()})},200),this.config=n;var o=F(e);if(o.length===0)throw new Error("Cannot find toolbar DOM by selector '"+e+"'");this.$box=o;var a=this.$toolbar;a.on("mousedown",function(i){return i.preventDefault()},{passive:!1}),o.append(a),po(function(){r.registerItems(),r.changeToolbarState(),r.getEditorInstance().on("change",r.changeToolbarState)})}return t.prototype.getMenus=function(){return this.menus},t.prototype.getConfig=function(){return this.config},t.prototype.registerItems=function(){var e=this,n="",r=this.$toolbar,o=this.config,a=o.toolbarKeys,i=a===void 0?[]:a,u=o.insertKeys,s=u===void 0?{index:0,keys:[]}:u,l=o.excludeKeys,c=l===void 0?[]:l,f=aT(i);s.keys.length>0&&(typeof s.keys=="string"&&(s.keys=[s.keys]),s.keys.forEach(function(m,h){f.splice(s.index+h,0,m)}));var d=f.filter(function(m){if(typeof m=="string"){if(c.includes(m))return!1}else if(c.includes(m.key))return!1;return!0}),p=d.length;d.forEach(function(m,h){if(m==="|"){if(h===0||h+1===p||n==="|")return;var v=FF();return r.append(v),void(n=m)}if(typeof m=="string")return e.registerSingleItem(m,e),void(n=m);e.registerGroup(m),n="group"})},t.prototype.registerGroup=function(e){var n=this,r=this.$toolbar,o=function(l){return new NF(l)}(e),a=e.menuKeys,i=a===void 0?[]:a,u=this.config.excludeKeys,s=u===void 0?[]:u;i.forEach(function(l){s.includes(l)||n.registerSingleItem(l,o)}),r.append(o.$elem)},t.prototype.registerSingleItem=function(e,n){var r=this.getEditorInstance(),o=n instanceof NF,a=this.menus,i=a[e];if(i==null){var u=Yd[e];if(u==null)throw new Error("Not found menu item factory by key '"+e+"'");if(typeof u!="function")throw new Error("Menu item factory (key='"+e+"') is not a function");i=u(),a[e]=i}else console.warn("Duplicated toolbar menu key '"+e+`'
87
+ 重复注册了菜单栏 menu '`+e+"'");var s=jF(e,i,o);this.toolbarItems.push(s),mS.set(s,r),o?n.appendBarItem(s):n.$toolbar.append(s.$elem)},t.prototype.getEditorInstance=function(){var e=gS.get(this);if(e==null)throw new Error("Can not get editor instance");return e},t.prototype.destroy=function(){this.$toolbar.remove(),this.menus={},this.toolbarItems=[]},t}(),Srt=Ul.EXISTS,xrt=No.f,LF=Function.prototype,Crt=Ct(LF.toString),MF=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Drt=Ct(MF.exec);function VF(t){var e=t.server,n=e===void 0?"":e,r=t.fieldName,o=r===void 0?"":r,a=t.maxFileSize,i=a===void 0?10485760:a,u=t.maxNumberOfFiles,s=u===void 0?100:u,l=t.meta,c=l===void 0?{}:l,f=t.metaWithUrl,d=f!==void 0&&f,p=t.headers,m=p===void 0?{}:p,h=t.withCredentials,v=h!==void 0&&h,y=t.timeout,g=y===void 0?1e4:y,w=t.onBeforeUpload,E=w===void 0?function(N){return N}:w,x=t.onSuccess,S=x===void 0?function(N,j){}:x,C=t.onError,T=C===void 0?function(N,j,G){console.error(N.name+" upload error",j,G)}:C,A=t.onProgress,k=A===void 0?function(N){}:A;if(!n)throw new Error(`Cannot get upload server address
88
+ 没有配置上传地址`);if(!o)throw new Error(`Cannot get fieldName
89
+ 没有配置 fieldName`);var M=n;d&&(M=function(N,j){var G=ce(N.split("#"),2),V=G[0],J=G[1],rt=[];Aw(j,function(W,O){rt.push(O+"="+W)});var it=rt.join("&");return V=V.indexOf("?")>0?V+"&"+it:V+"?"+it,J?V+"#"+J:V}(M,c));var H=new gd({onBeforeUpload:E,restrictions:{maxFileSize:i,maxNumberOfFiles:s},meta:c}).use(X$,{endpoint:M,headers:m,formData:!0,fieldName:o,bundle:!0,withCredentials:v,timeout:g});return H.on("upload-success",function(N,j){var G=j.body,V=G===void 0?{}:G;try{S(N,V)}catch(J){console.error("wangEditor upload file - onSuccess error",J)}H.removeFile(N.id)}),H.on("progress",function(N){N<1||k(N)}),H.on("upload-error",function(N,j,G){try{T(N,j,G)}catch(V){console.error("wangEditor upload file - onError error",V)}H.removeFile(N.id)}),H.on("restriction-failed",function(N,j){try{T(N,j)}catch(G){console.error("wangEditor upload file - onError error",G)}H.removeFile(N.id)}),H}function ka(t){return ka=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ka(t)}function Ort(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function An(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),r.forEach(function(o){Ort(t,o,n[o])})}return t}function Ui(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function zF(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function _i(t,e,n){return e&&zF(t.prototype,e),n&&zF(t,n),t}function vs(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function rp(t,e){if(e&&(ka(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return vs(t)}function cc(t){return cc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},cc(t)}function vx(t,e){return vx=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},vx(t,e)}function Gm(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&vx(t,e)}Mn&&!Srt&&xrt(LF,"name",{configurable:!0,get:function(){try{return Drt(MF,Crt(this))[1]}catch{return""}}});var Art={type:"logger",log:function(t){this.output("log",t)},warn:function(t){this.output("warn",t)},error:function(t){this.output("error",t)},output:function(t,e){console&&console[t]&&console[t].apply(console,e)}},Gi=new(function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Ui(this,t),this.init(e,n)}return _i(t,[{key:"init",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=e||Art,this.options=n,this.debug=n.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,n,r,o){return o&&!this.debug?null:(typeof e[0]=="string"&&(e[0]="".concat(r).concat(this.prefix," ").concat(e[0])),this.logger[n](e))}},{key:"create",value:function(e){return new t(this.logger,An({},{prefix:"".concat(this.prefix,":").concat(e,":")},this.options))}}]),t}()),Na=function(){function t(){Ui(this,t),this.observers={}}return _i(t,[{key:"on",value:function(e,n){var r=this;return e.split(" ").forEach(function(o){r.observers[o]=r.observers[o]||[],r.observers[o].push(n)}),this}},{key:"off",value:function(e,n){this.observers[e]&&(n?this.observers[e]=this.observers[e].filter(function(r){return r!==n}):delete this.observers[e])}},{key:"emit",value:function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];if(this.observers[e]){var a=[].concat(this.observers[e]);a.forEach(function(u){u.apply(void 0,r)})}if(this.observers["*"]){var i=[].concat(this.observers["*"]);i.forEach(function(u){u.apply(u,[e].concat(r))})}}}]),t}();function op(){var t,e,n=new Promise(function(r,o){t=r,e=o});return n.resolve=t,n.reject=e,n}function HF(t){return t==null?"":""+t}function Trt(t,e,n){t.forEach(function(r){e[r]&&(n[r]=e[r])})}function mx(t,e,n){function r(u){return u&&u.indexOf("###")>-1?u.replace(/###/g,"."):u}function o(){return!t||typeof t=="string"}for(var a=typeof e!="string"?[].concat(e):e.split(".");a.length>1;){if(o())return{};var i=r(a.shift());!t[i]&&n&&(t[i]=new n),t=Object.prototype.hasOwnProperty.call(t,i)?t[i]:{}}return o()?{}:{obj:t,k:r(a.shift())}}function UF(t,e,n){var r=mx(t,e,Object);r.obj[r.k]=n}function Wm(t,e){var n=mx(t,e),r=n.obj,o=n.k;if(r)return r[o]}function _F(t,e,n){var r=Wm(t,n);return r!==void 0?r:Wm(e,n)}function GF(t,e,n){for(var r in e)r!=="__proto__"&&r!=="constructor"&&(r in t?typeof t[r]=="string"||t[r]instanceof String||typeof e[r]=="string"||e[r]instanceof String?n&&(t[r]=e[r]):GF(t[r],e[r],n):t[r]=e[r]);return t}function fc(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Brt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function Prt(t){return typeof t=="string"?t.replace(/[&<>"'\/]/g,function(e){return Brt[e]}):t}var Km=typeof window<"u"&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function WF(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(t){if(t[e])return t[e];for(var r=e.split(n),o=t,a=0;a<r.length;++a){if(!o||typeof o[r[a]]=="string"&&a+1<r.length)return;if(o[r[a]]===void 0){for(var i=2,u=r.slice(a,a+i).join(n),s=o[u];s===void 0&&r.length>a+i;)i++,s=o[u=r.slice(a,a+i).join(n)];if(s===void 0)return;if(typeof s=="string")return s;if(u&&typeof s[u]=="string")return s[u];var l=r.slice(a+i).join(n);return l?WF(s,l,n):void 0}o=o[r[a]]}return o}}var Frt=function(t){function e(n){var r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Ui(this,e),r=rp(this,cc(e).call(this)),Km&&Na.call(vs(r)),r.data=n||{},r.options=o,r.options.keySeparator===void 0&&(r.options.keySeparator="."),r.options.ignoreJSONStructure===void 0&&(r.options.ignoreJSONStructure=!0),r}return Gm(e,Na),_i(e,[{key:"addNamespaces",value:function(n){this.options.ns.indexOf(n)<0&&this.options.ns.push(n)}},{key:"removeNamespaces",value:function(n){var r=this.options.ns.indexOf(n);r>-1&&this.options.ns.splice(r,1)}},{key:"getResource",value:function(n,r,o){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,u=a.ignoreJSONStructure!==void 0?a.ignoreJSONStructure:this.options.ignoreJSONStructure,s=[n,r];o&&typeof o!="string"&&(s=s.concat(o)),o&&typeof o=="string"&&(s=s.concat(i?o.split(i):o)),n.indexOf(".")>-1&&(s=n.split("."));var l=Wm(this.data,s);return l||!u||typeof o!="string"?l:WF(this.data&&this.data[n]&&this.data[n][r],o,i)}},{key:"addResource",value:function(n,r,o,a){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},u=this.options.keySeparator;u===void 0&&(u=".");var s=[n,r];o&&(s=s.concat(u?o.split(u):o)),n.indexOf(".")>-1&&(a=r,r=(s=n.split("."))[1]),this.addNamespaces(r),UF(this.data,s,a),i.silent||this.emit("added",n,r,o,a)}},{key:"addResources",value:function(n,r,o){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var i in o)typeof o[i]!="string"&&Object.prototype.toString.apply(o[i])!=="[object Array]"||this.addResource(n,r,i,o[i],{silent:!0});a.silent||this.emit("added",n,r,o)}},{key:"addResourceBundle",value:function(n,r,o,a,i){var u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},s=[n,r];n.indexOf(".")>-1&&(a=o,o=r,r=(s=n.split("."))[1]),this.addNamespaces(r);var l=Wm(this.data,s)||{};a?GF(l,o,i):l=An({},l,o),UF(this.data,s,l),u.silent||this.emit("added",n,r,o)}},{key:"removeResourceBundle",value:function(n,r){this.hasResourceBundle(n,r)&&delete this.data[n][r],this.removeNamespaces(r),this.emit("removed",n,r)}},{key:"hasResourceBundle",value:function(n,r){return this.getResource(n,r)!==void 0}},{key:"getResourceBundle",value:function(n,r){return r||(r=this.options.defaultNS),this.options.compatibilityAPI==="v1"?An({},{},this.getResource(n,r)):this.getResource(n,r)}},{key:"getDataByLanguage",value:function(n){return this.data[n]}},{key:"toJSON",value:function(){return this.data}}]),e}(),KF={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,e,n,r,o){var a=this;return t.forEach(function(i){a.processors[i]&&(e=a.processors[i].process(e,n,r,o))}),e}},YF={},XF=function(t){function e(n){var r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Ui(this,e),r=rp(this,cc(e).call(this)),Km&&Na.call(vs(r)),Trt(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],n,vs(r)),r.options=o,r.options.keySeparator===void 0&&(r.options.keySeparator="."),r.logger=Gi.create("translator"),r}return Gm(e,Na),_i(e,[{key:"changeLanguage",value:function(n){n&&(this.language=n)}},{key:"exists",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(n==null)return!1;var o=this.resolve(n,r);return o&&o.res!==void 0}},{key:"extractFromKey",value:function(n,r){var o=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;o===void 0&&(o=":");var a=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,i=r.ns||this.options.defaultNS;if(o&&n.indexOf(o)>-1){var u=n.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:n,namespaces:i};var s=n.split(o);(o!==a||o===a&&this.options.ns.indexOf(s[0])>-1)&&(i=s.shift()),n=s.join(a)}return typeof i=="string"&&(i=[i]),{key:n,namespaces:i}}},{key:"translate",value:function(n,r,o){var a=this;if(ka(r)!=="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),r||(r={}),n==null)return"";Array.isArray(n)||(n=[String(n)]);var i=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,u=this.extractFromKey(n[n.length-1],r),s=u.key,l=u.namespaces,c=l[l.length-1],f=r.lng||this.language,d=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&f.toLowerCase()==="cimode"){if(d){var p=r.nsSeparator||this.options.nsSeparator;return c+p+s}return s}var m=this.resolve(n,r),h=m&&m.res,v=m&&m.usedKey||s,y=m&&m.exactUsedKey||s,g=Object.prototype.toString.apply(h),w=["[object Number]","[object Function]","[object RegExp]"],E=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,x=!this.i18nFormat||this.i18nFormat.handleAsObject,S=typeof h!="string"&&typeof h!="boolean"&&typeof h!="number";if(x&&h&&S&&w.indexOf(g)<0&&(typeof E!="string"||g!=="[object Array]")){if(!r.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,h,An({},r,{ns:l})):"key '".concat(s," (").concat(this.language,")' returned an object instead of string.");if(i){var C=g==="[object Array]",T=C?[]:{},A=C?y:v;for(var k in h)if(Object.prototype.hasOwnProperty.call(h,k)){var M="".concat(A).concat(i).concat(k);T[k]=this.translate(M,An({},r,{joinArrays:!1,ns:l})),T[k]===M&&(T[k]=h[k])}h=T}}else if(x&&typeof E=="string"&&g==="[object Array]")(h=h.join(E))&&(h=this.extendTranslation(h,n,r,o));else{var H=!1,N=!1,j=r.count!==void 0&&typeof r.count!="string",G=e.hasDefaultValue(r),V=j?this.pluralResolver.getSuffix(f,r.count):"",J=r["defaultValue".concat(V)]||r.defaultValue;!this.isValidLookup(h)&&G&&(H=!0,h=J),this.isValidLookup(h)||(N=!0,h=s);var rt=r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,it=rt&&N?void 0:h,W=G&&J!==h&&this.options.updateMissing;if(N||H||W){if(this.logger.log(W?"updateKey":"missingKey",f,c,s,W?J:h),i){var O=this.resolve(s,An({},r,{keySeparator:!1}));O&&O.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var B=[],I=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&I&&I[0])for(var Y=0;Y<I.length;Y++)B.push(I[Y]);else this.options.saveMissingTo==="all"?B=this.languageUtils.toResolveHierarchy(r.lng||this.language):B.push(r.lng||this.language);var et=function(X,ot,mt){a.options.missingKeyHandler?a.options.missingKeyHandler(X,c,ot,W?mt:it,W,r):a.backendConnector&&a.backendConnector.saveMissing&&a.backendConnector.saveMissing(X,c,ot,W?mt:it,W,r),a.emit("missingKey",X,c,ot,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&j?B.forEach(function(X){a.pluralResolver.getSuffixes(X).forEach(function(ot){et([X],s+ot,r["defaultValue".concat(ot)]||J)})}):et(B,s,J))}h=this.extendTranslation(h,n,r,m,o),N&&h===s&&this.options.appendNamespaceToMissingKey&&(h="".concat(c,":").concat(s)),(N||H)&&this.options.parseMissingKeyHandler&&(h=this.options.parseMissingKeyHandler(h))}return h}},{key:"extendTranslation",value:function(n,r,o,a,i){var u=this;if(this.i18nFormat&&this.i18nFormat.parse)n=this.i18nFormat.parse(n,o,a.usedLng,a.usedNS,a.usedKey,{resolved:a});else if(!o.skipInterpolation){o.interpolation&&this.interpolator.init(An({},o,{interpolation:An({},this.options.interpolation,o.interpolation)}));var s,l=o.interpolation&&o.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(l){var c=n.match(this.interpolator.nestingRegexp);s=c&&c.length}var f=o.replace&&typeof o.replace!="string"?o.replace:o;if(this.options.interpolation.defaultVariables&&(f=An({},this.options.interpolation.defaultVariables,f)),n=this.interpolator.interpolate(n,f,o.lng||this.language,o),l){var d=n.match(this.interpolator.nestingRegexp);s<(d&&d.length)&&(o.nest=!1)}o.nest!==!1&&(n=this.interpolator.nest(n,function(){for(var h=arguments.length,v=new Array(h),y=0;y<h;y++)v[y]=arguments[y];return i&&i[0]===v[0]&&!o.context?(u.logger.warn("It seems you are nesting recursively key: ".concat(v[0]," in key: ").concat(r[0])),null):u.translate.apply(u,v.concat([r]))},o)),o.interpolation&&this.interpolator.reset()}var p=o.postProcess||this.options.postProcess,m=typeof p=="string"?[p]:p;return n!=null&&m&&m.length&&o.applyPostProcessor!==!1&&(n=KF.handle(m,n,r,this.options&&this.options.postProcessPassResolved?An({i18nResolved:a},o):o,this)),n}},{key:"resolve",value:function(n){var r,o,a,i,u,s=this,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return typeof n=="string"&&(n=[n]),n.forEach(function(c){if(!s.isValidLookup(r)){var f=s.extractFromKey(c,l),d=f.key;o=d;var p=f.namespaces;s.options.fallbackNS&&(p=p.concat(s.options.fallbackNS));var m=l.count!==void 0&&typeof l.count!="string",h=l.context!==void 0&&(typeof l.context=="string"||typeof l.context=="number")&&l.context!=="",v=l.lngs?l.lngs:s.languageUtils.toResolveHierarchy(l.lng||s.language,l.fallbackLng);p.forEach(function(y){s.isValidLookup(r)||(u=y,!YF["".concat(v[0],"-").concat(y)]&&s.utils&&s.utils.hasLoadedNamespace&&!s.utils.hasLoadedNamespace(u)&&(YF["".concat(v[0],"-").concat(y)]=!0,s.logger.warn('key "'.concat(o,'" for languages "').concat(v.join(", "),`" won't get resolved as namespace "`).concat(u,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),v.forEach(function(g){if(!s.isValidLookup(r)){i=g;var w,E,x=d,S=[x];for(s.i18nFormat&&s.i18nFormat.addLookupKeys?s.i18nFormat.addLookupKeys(S,d,g,y,l):(m&&(w=s.pluralResolver.getSuffix(g,l.count)),m&&h&&S.push(x+w),h&&S.push(x+="".concat(s.options.contextSeparator).concat(l.context)),m&&S.push(x+=w));E=S.pop();)s.isValidLookup(r)||(a=E,r=s.getResource(g,y,E,l))}}))})}}),{res:r,usedKey:o,exactUsedKey:a,usedLng:i,usedNS:u}}},{key:"isValidLookup",value:function(n){return!(n===void 0||!this.options.returnNull&&n===null||!this.options.returnEmptyString&&n==="")}},{key:"getResource",value:function(n,r,o){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(n,r,o,a):this.resourceStore.getResource(n,r,o,a)}}],[{key:"hasDefaultValue",value:function(n){var r="defaultValue";for(var o in n)if(Object.prototype.hasOwnProperty.call(n,o)&&r===o.substring(0,r.length)&&n[o]!==void 0)return!0;return!1}}]),e}();function yx(t){return t.charAt(0).toUpperCase()+t.slice(1)}var krt=function(){function t(e){Ui(this,t),this.options=e,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Gi.create("languageUtils")}return _i(t,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var n=e.split("-");return n.length===2?null:(n.pop(),n[n.length-1].toLowerCase()==="x"?null:this.formatLanguageCode(n.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var n=e.split("-");return this.formatLanguageCode(n[0])}},{key:"formatLanguageCode",value:function(e){if(typeof e=="string"&&e.indexOf("-")>-1){var n=["hans","hant","latn","cyrl","cans","mong","arab"],r=e.split("-");return this.options.lowerCaseLng?r=r.map(function(o){return o.toLowerCase()}):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=yx(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=yx(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=yx(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return this.logger.deprecate("languageUtils.isWhitelisted",`function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it's usage asap.`),this.isSupportedCode(e)}},{key:"isSupportedCode",value:function(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var n,r=this;return e?(e.forEach(function(o){if(!n){var a=r.formatLanguageCode(o);r.options.supportedLngs&&!r.isSupportedCode(a)||(n=a)}}),!n&&this.options.supportedLngs&&e.forEach(function(o){if(!n){var a=r.getLanguagePartFromCode(o);if(r.isSupportedCode(a))return n=a;n=r.options.supportedLngs.find(function(i){if(i.indexOf(a)===0)return i})}}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n):null}},{key:"getFallbackCodes",value:function(e,n){if(!e)return[];if(typeof e=="function"&&(e=e(n)),typeof e=="string"&&(e=[e]),Object.prototype.toString.apply(e)==="[object Array]")return e;if(!n)return e.default||[];var r=e[n];return r||(r=e[this.getScriptPartFromCode(n)]),r||(r=e[this.formatLanguageCode(n)]),r||(r=e[this.getLanguagePartFromCode(n)]),r||(r=e.default),r||[]}},{key:"toResolveHierarchy",value:function(e,n){var r=this,o=this.getFallbackCodes(n||this.options.fallbackLng||[],e),a=[],i=function(u){u&&(r.isSupportedCode(u)?a.push(u):r.logger.warn("rejecting language code not found in supportedLngs: ".concat(u)))};return typeof e=="string"&&e.indexOf("-")>-1?(this.options.load!=="languageOnly"&&i(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&i(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&i(this.getLanguagePartFromCode(e))):typeof e=="string"&&i(this.formatLanguageCode(e)),o.forEach(function(u){a.indexOf(u)<0&&i(r.formatLanguageCode(u))}),a}}]),t}(),Nrt=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Irt={1:function(t){return+(t>1)},2:function(t){return+(t!=1)},3:function(t){return 0},4:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},5:function(t){return t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},6:function(t){return t==1?0:t>=2&&t<=4?1:2},7:function(t){return t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},8:function(t){return t==1?0:t==2?1:t!=8&&t!=11?2:3},9:function(t){return+(t>=2)},10:function(t){return t==1?0:t==2?1:t<7?2:t<11?3:4},11:function(t){return t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3},12:function(t){return+(t%10!=1||t%100==11)},13:function(t){return+(t!==0)},14:function(t){return t==1?0:t==2?1:t==3?2:3},15:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2},16:function(t){return t%10==1&&t%100!=11?0:t!==0?1:2},17:function(t){return t==1||t%10==1&&t%100!=11?0:1},18:function(t){return t==0?0:t==1?1:2},19:function(t){return t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3},20:function(t){return t==1?0:t==0||t%100>0&&t%100<20?1:2},21:function(t){return t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0},22:function(t){return t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3}};function jrt(){var t={};return Nrt.forEach(function(e){e.lngs.forEach(function(n){t[n]={numbers:e.nr,plurals:Irt[e.fc]}})}),t}var Rrt=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Ui(this,t),this.languageUtils=e,this.options=n,this.logger=Gi.create("pluralResolver"),this.rules=jrt()}return _i(t,[{key:"addRule",value:function(e,n){this.rules[e]=n}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var n=this.getRule(e);return n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,n){return this.getSuffixes(e).map(function(r){return n+r})}},{key:"getSuffixes",value:function(e){var n=this,r=this.getRule(e);return r?r.numbers.map(function(o){return n.getSuffix(e,o)}):[]}},{key:"getSuffix",value:function(e,n){var r=this,o=this.getRule(e);if(o){var a=o.noAbs?o.plurals(n):o.plurals(Math.abs(n)),i=o.numbers[a];this.options.simplifyPluralSuffix&&o.numbers.length===2&&o.numbers[0]===1&&(i===2?i="plural":i===1&&(i=""));var u=function(){return r.options.prepend&&i.toString()?r.options.prepend+i.toString():i.toString()};return this.options.compatibilityJSON==="v1"?i===1?"":typeof i=="number"?"_plural_".concat(i.toString()):u():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&o.numbers.length===2&&o.numbers[0]===1?u():this.options.prepend&&a.toString()?this.options.prepend+a.toString():a.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),t}(),Lrt=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ui(this,t),this.logger=Gi.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(n){return n},this.init(e)}return _i(t,[{key:"init",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var n=e.interpolation;this.escape=n.escape!==void 0?n.escape:Prt,this.escapeValue=n.escapeValue===void 0||n.escapeValue,this.useRawValueToEscape=n.useRawValueToEscape!==void 0&&n.useRawValueToEscape,this.prefix=n.prefix?fc(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?fc(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?fc(n.nestingPrefix):n.nestingPrefixEscaped||fc("$t("),this.nestingSuffix=n.nestingSuffix?fc(n.nestingSuffix):n.nestingSuffixEscaped||fc(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=n.alwaysFormat!==void 0&&n.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var n="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(n,"g");var r="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,"g")}},{key:"interpolate",value:function(e,n,r,o){var a,i,u,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(h){return h.replace(/\$/g,"$$$$")}var f=function(h){if(h.indexOf(s.formatSeparator)<0){var v=_F(n,l,h);return s.alwaysFormat?s.format(v,void 0,r,An({},o,n,{interpolationkey:h})):v}var y=h.split(s.formatSeparator),g=y.shift().trim(),w=y.join(s.formatSeparator).trim();return s.format(_F(n,l,g),w,r,An({},o,n,{interpolationkey:g}))};this.resetRegExp();var d=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,p=o&&o.interpolation&&o.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,m=[{regex:this.regexpUnescape,safeValue:function(h){return c(h)}},{regex:this.regexp,safeValue:function(h){return s.escapeValue?c(s.escape(h)):c(h)}}];return m.forEach(function(h){for(u=0;a=h.regex.exec(e);){if((i=f(a[1].trim()))===void 0)if(typeof d=="function"){var v=d(e,a,o);i=typeof v=="string"?v:""}else{if(p){i=a[0];continue}s.logger.warn("missed to pass in variable ".concat(a[1]," for interpolating ").concat(e)),i=""}else typeof i=="string"||s.useRawValueToEscape||(i=HF(i));var y=h.safeValue(i);if(e=e.replace(a[0],y),p?(h.regex.lastIndex+=y.length,h.regex.lastIndex-=a[0].length):h.regex.lastIndex=0,++u>=s.maxReplaces)break}}),e}},{key:"nest",value:function(e,n){var r,o,a=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=An({},i);function s(d,p){var m=this.nestingOptionsSeparator;if(d.indexOf(m)<0)return d;var h=d.split(new RegExp("".concat(m,"[ ]*{"))),v="{".concat(h[1]);d=h[0],v=(v=this.interpolate(v,u)).replace(/'/g,'"');try{u=JSON.parse(v),p&&(u=An({},p,u))}catch(y){return this.logger.warn("failed parsing options string in nesting for key ".concat(d),y),"".concat(d).concat(m).concat(v)}return delete u.defaultValue,d}for(u.applyPostProcessor=!1,delete u.defaultValue;r=this.nestingRegexp.exec(e);){var l=[],c=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){var f=r[1].split(this.formatSeparator).map(function(d){return d.trim()});r[1]=f.shift(),l=f,c=!0}if((o=n(s.call(this,r[1].trim(),u),u))&&r[0]===e&&typeof o!="string")return o;typeof o!="string"&&(o=HF(o)),o||(this.logger.warn("missed to resolve ".concat(r[1]," for nesting ").concat(e)),o=""),c&&(o=l.reduce(function(d,p){return a.format(d,p,i.lng,An({},i,{interpolationkey:r[1].trim()}))},o.trim())),e=e.replace(r[0],o),this.regexp.lastIndex=0}return e}}]),t}(),Mrt=function(t){function e(n,r,o){var a,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return Ui(this,e),a=rp(this,cc(e).call(this)),Km&&Na.call(vs(a)),a.backend=n,a.store=r,a.services=o,a.languageUtils=o.languageUtils,a.options=i,a.logger=Gi.create("backendConnector"),a.state={},a.queue=[],a.backend&&a.backend.init&&a.backend.init(o,i.backend,i),a}return Gm(e,Na),_i(e,[{key:"queueLoad",value:function(n,r,o,a){var i=this,u=[],s=[],l=[],c=[];return n.forEach(function(f){var d=!0;r.forEach(function(p){var m="".concat(f,"|").concat(p);!o.reload&&i.store.hasResourceBundle(f,p)?i.state[m]=2:i.state[m]<0||(i.state[m]===1?s.indexOf(m)<0&&s.push(m):(i.state[m]=1,d=!1,s.indexOf(m)<0&&s.push(m),u.indexOf(m)<0&&u.push(m),c.indexOf(p)<0&&c.push(p)))}),d||l.push(f)}),(u.length||s.length)&&this.queue.push({pending:s,loaded:{},errors:[],callback:a}),{toLoad:u,pending:s,toLoadLanguages:l,toLoadNamespaces:c}}},{key:"loaded",value:function(n,r,o){var a=n.split("|"),i=a[0],u=a[1];r&&this.emit("failedLoading",i,u,r),o&&this.store.addResourceBundle(i,u,o),this.state[n]=r?-1:2;var s={};this.queue.forEach(function(l){(function(c,f,d,p){var m=mx(c,f,Object),h=m.obj,v=m.k;h[v]=h[v]||[],h[v].push(d)})(l.loaded,[i],u),function(c,f){for(var d=c.indexOf(f);d!==-1;)c.splice(d,1),d=c.indexOf(f)}(l.pending,n),r&&l.errors.push(r),l.pending.length!==0||l.done||(Object.keys(l.loaded).forEach(function(c){s[c]||(s[c]=[]),l.loaded[c].length&&l.loaded[c].forEach(function(f){s[c].indexOf(f)<0&&s[c].push(f)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(function(l){return!l.done})}},{key:"read",value:function(n,r,o){var a=this,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:350,s=arguments.length>5?arguments[5]:void 0;return n.length?this.backend[o](n,r,function(l,c){l&&c&&i<5?setTimeout(function(){a.read.call(a,n,r,o,i+1,2*u,s)},u):s(l,c)}):s(null,{})}},{key:"prepareLoading",value:function(n,r){var o=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();typeof n=="string"&&(n=this.languageUtils.toResolveHierarchy(n)),typeof r=="string"&&(r=[r]);var u=this.queueLoad(n,r,a,i);if(!u.toLoad.length)return u.pending.length||i(),null;u.toLoad.forEach(function(s){o.loadOne(s)})}},{key:"load",value:function(n,r,o){this.prepareLoading(n,r,{},o)}},{key:"reload",value:function(n,r,o){this.prepareLoading(n,r,{reload:!0},o)}},{key:"loadOne",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=n.split("|"),i=a[0],u=a[1];this.read(i,u,"read",void 0,void 0,function(s,l){s&&r.logger.warn("".concat(o,"loading namespace ").concat(u," for language ").concat(i," failed"),s),!s&&l&&r.logger.log("".concat(o,"loaded namespace ").concat(u," for language ").concat(i),l),r.loaded(n,s,l)})}},{key:"saveMissing",value:function(n,r,o,a,i){var u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(r)?this.logger.warn('did not save key "'.concat(o,'" as the namespace "').concat(r,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):o!=null&&o!==""&&(this.backend&&this.backend.create&&this.backend.create(n,r,o,a,null,An({},u,{isUpdate:i})),n&&n[0]&&this.store.addResource(n[0],r,o,a))}}]),e}();function Vrt(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){var e={};if(ka(t[1])==="object"&&(e=t[1]),typeof t[1]=="string"&&(e.defaultValue=t[1]),typeof t[2]=="string"&&(e.tDescription=t[2]),ka(t[2])==="object"||ka(t[3])==="object"){var n=t[3]||t[2];Object.keys(n).forEach(function(r){e[r]=n[r]})}return e},interpolation:{escapeValue:!0,format:function(t,e,n,r){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function ZF(t){return typeof t.ns=="string"&&(t.ns=[t.ns]),typeof t.fallbackLng=="string"&&(t.fallbackLng=[t.fallbackLng]),typeof t.fallbackNS=="string"&&(t.fallbackNS=[t.fallbackNS]),t.whitelist&&(t.whitelist&&t.whitelist.indexOf("cimode")<0&&(t.whitelist=t.whitelist.concat(["cimode"])),t.supportedLngs=t.whitelist),t.nonExplicitWhitelist&&(t.nonExplicitSupportedLngs=t.nonExplicitWhitelist),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t}function Ym(){}var zrt=function(t){function e(){var n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(Ui(this,e),n=rp(this,cc(e).call(this)),Km&&Na.call(vs(n)),n.options=ZF(r),n.services={},n.logger=Gi,n.modules={external:[]},o&&!n.isInitialized&&!r.isClone){if(!n.options.initImmediate)return n.init(r,o),rp(n,vs(n));setTimeout(function(){n.init(r,o)},0)}return n}return Gm(e,Na),_i(e,[{key:"init",value:function(){var n=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;function a(p){return p?typeof p=="function"?new p:p:null}if(typeof r=="function"&&(o=r,r={}),r.whitelist&&!r.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),r.nonExplicitWhitelist&&!r.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=An({},Vrt(),this.options,ZF(r)),this.format=this.options.interpolation.format,o||(o=Ym),!this.options.isClone){this.modules.logger?Gi.init(a(this.modules.logger),this.options):Gi.init(null,this.options);var i=new krt(this.options);this.store=new Frt(this.options.resources,this.options);var u=this.services;u.logger=Gi,u.resourceStore=this.store,u.languageUtils=i,u.pluralResolver=new Rrt(i,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u.interpolator=new Lrt(this.options),u.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},u.backendConnector=new Mrt(a(this.modules.backend),u.resourceStore,u,this.options),u.backendConnector.on("*",function(p){for(var m=arguments.length,h=new Array(m>1?m-1:0),v=1;v<m;v++)h[v-1]=arguments[v];n.emit.apply(n,[p].concat(h))}),this.modules.languageDetector&&(u.languageDetector=a(this.modules.languageDetector),u.languageDetector.init(u,this.options.detection,this.options)),this.modules.i18nFormat&&(u.i18nFormat=a(this.modules.i18nFormat),u.i18nFormat.init&&u.i18nFormat.init(this)),this.translator=new XF(this.services,this.options),this.translator.on("*",function(p){for(var m=arguments.length,h=new Array(m>1?m-1:0),v=1;v<m;v++)h[v-1]=arguments[v];n.emit.apply(n,[p].concat(h))}),this.modules.external.forEach(function(p){p.init&&p.init(n)})}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.length>0&&s[0]!=="dev"&&(this.options.lng=s[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var l=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];l.forEach(function(p){n[p]=function(){var m;return(m=n.store)[p].apply(m,arguments)}});var c=["addResource","addResources","addResourceBundle","removeResourceBundle"];c.forEach(function(p){n[p]=function(){var m;return(m=n.store)[p].apply(m,arguments),n}});var f=op(),d=function(){var p=function(m,h){n.isInitialized&&!n.initializedStoreOnce&&n.logger.warn("init: i18next is already initialized. You should call init just once!"),n.isInitialized=!0,n.options.isClone||n.logger.log("initialized",n.options),n.emit("initialized",n.options),f.resolve(h),o(m,h)};if(n.languages&&n.options.compatibilityAPI!=="v1"&&!n.isInitialized)return p(null,n.t.bind(n));n.changeLanguage(n.options.lng,p)};return this.options.resources||!this.options.initImmediate?d():setTimeout(d,0),f}},{key:"loadResources",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ym,a=o,i=typeof n=="string"?n:this.language;if(typeof n=="function"&&(a=n),!this.options.resources||this.options.partialBundledLanguages){if(i&&i.toLowerCase()==="cimode")return a();var u=[],s=function(c){c&&r.services.languageUtils.toResolveHierarchy(c).forEach(function(f){u.indexOf(f)<0&&u.push(f)})};if(i)s(i);else{var l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.forEach(function(c){return s(c)})}this.options.preload&&this.options.preload.forEach(function(c){return s(c)}),this.services.backendConnector.load(u,this.options.ns,a)}else a(null)}},{key:"reloadResources",value:function(n,r,o){var a=op();return n||(n=this.languages),r||(r=this.options.ns),o||(o=Ym),this.services.backendConnector.reload(n,r,function(i){a.resolve(),o(i)}),a}},{key:"use",value:function(n){if(!n)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!n.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return n.type==="backend"&&(this.modules.backend=n),(n.type==="logger"||n.log&&n.warn&&n.error)&&(this.modules.logger=n),n.type==="languageDetector"&&(this.modules.languageDetector=n),n.type==="i18nFormat"&&(this.modules.i18nFormat=n),n.type==="postProcessor"&&KF.addPostProcessor(n),n.type==="3rdParty"&&this.modules.external.push(n),this}},{key:"changeLanguage",value:function(n,r){var o=this;this.isLanguageChangingTo=n;var a=op();this.emit("languageChanging",n);var i=function(u){n||u||!o.services.languageDetector||(u=[]);var s=typeof u=="string"?u:o.services.languageUtils.getBestMatchFromCodes(u);s&&(o.language||(o.language=s,o.languages=o.services.languageUtils.toResolveHierarchy(s)),o.translator.language||o.translator.changeLanguage(s),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage(s)),o.loadResources(s,function(l){(function(c,f){f?(o.language=f,o.languages=o.services.languageUtils.toResolveHierarchy(f),o.translator.changeLanguage(f),o.isLanguageChangingTo=void 0,o.emit("languageChanged",f),o.logger.log("languageChanged",f)):o.isLanguageChangingTo=void 0,a.resolve(function(){return o.t.apply(o,arguments)}),r&&r(c,function(){return o.t.apply(o,arguments)})})(l,s)})};return n||!this.services.languageDetector||this.services.languageDetector.async?!n&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(i):i(n):i(this.services.languageDetector.detect()),a}},{key:"getFixedT",value:function(n,r,o){var a=this,i=function u(s,l){var c;if(ka(l)!=="object"){for(var f=arguments.length,d=new Array(f>2?f-2:0),p=2;p<f;p++)d[p-2]=arguments[p];c=a.options.overloadTranslationOptionHandler([s,l].concat(d))}else c=An({},l);c.lng=c.lng||u.lng,c.lngs=c.lngs||u.lngs,c.ns=c.ns||u.ns;var m=a.options.keySeparator||".",h=o?"".concat(o).concat(m).concat(s):s;return a.t(h,c)};return typeof n=="string"?i.lng=n:i.lngs=n,i.ns=r,i.keyPrefix=o,i}},{key:"t",value:function(){var n;return this.translator&&(n=this.translator).translate.apply(n,arguments)}},{key:"exists",value:function(){var n;return this.translator&&(n=this.translator).exists.apply(n,arguments)}},{key:"setDefaultNamespace",value:function(n){this.options.defaultNS=n}},{key:"hasLoadedNamespace",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var a=this.languages[0],i=!!this.options&&this.options.fallbackLng,u=this.languages[this.languages.length-1];if(a.toLowerCase()==="cimode")return!0;var s=function(c,f){var d=r.services.backendConnector.state["".concat(c,"|").concat(f)];return d===-1||d===2};if(o.precheck){var l=o.precheck(this,s);if(l!==void 0)return l}return!!this.hasResourceBundle(a,n)||!this.services.backendConnector.backend||!(!s(a,n)||i&&!s(u,n))}},{key:"loadNamespaces",value:function(n,r){var o=this,a=op();return this.options.ns?(typeof n=="string"&&(n=[n]),n.forEach(function(i){o.options.ns.indexOf(i)<0&&o.options.ns.push(i)}),this.loadResources(function(i){a.resolve(),r&&r(i)}),a):(r&&r(),Promise.resolve())}},{key:"loadLanguages",value:function(n,r){var o=op();typeof n=="string"&&(n=[n]);var a=this.options.preload||[],i=n.filter(function(u){return a.indexOf(u)<0});return i.length?(this.options.preload=a.concat(i),this.loadResources(function(u){o.resolve(),r&&r(u)}),o):(r&&r(),Promise.resolve())}},{key:"dir",value:function(n){return n||(n=this.languages&&this.languages.length>0?this.languages[0]:this.language),n?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(n))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new e(n,r)}},{key:"cloneInstance",value:function(){var n=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ym,a=An({},this.options,r,{isClone:!0}),i=new e(a),u=["store","services","language"];return u.forEach(function(s){i[s]=n[s]}),i.services=An({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new XF(i.services,i.options),i.translator.on("*",function(s){for(var l=arguments.length,c=new Array(l>1?l-1:0),f=1;f<l;f++)c[f-1]=arguments[f];i.emit.apply(i,[s].concat(c))}),i.init(a,o),i.translator.options=i.options,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages}}}]),e}(),Xm=new zrt;function Or(t,e){Xm.addResourceBundle(t,"translation",e,!0,!0)}Xm.init({lng:"zh-CN",resources:{}});var lt=Xm.t.bind(Xm);Or("en",{editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}}),Or("zh-CN",{editor:{more:"更多",justify:"对齐",indent:"缩进",image:"图片",video:"视频"}});var Hrt=g2?{}.toString:function(){return"[object "+cv(this)+"]"};g2||Vu(Object.prototype,"toString",Hrt,{unsafe:!0});var JF=Array.isArray||function(t){return ju(t)=="Array"},QF=function(){},Urt=[],$F=Vf("Reflect","construct"),bx=/^\s*(?:class|function)\b/,_rt=De(bx.exec),Grt=!bx.exec(QF),ip=function(t){if(!Fn(t))return!1;try{return $F(QF,Urt,t),!0}catch{return!1}},Wrt=!$F||Ln(function(){var t;return ip(ip.call)||!ip(Object)||!ip(function(){t=!0})||t})?function(t){if(!Fn(t))return!1;switch(cv(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Grt||!!_rt(bx,s2(t))}:ip,Krt=hr("species"),qF=Vt.Array,Yrt=function(t,e){return new(function(n){var r;return JF(n)&&(r=n.constructor,(Wrt(r)&&(r===qF||JF(r.prototype))||Qo(r)&&(r=r[Krt])===null)&&(r=void 0)),r===void 0?qF:r}(t))(e===0?0:e)},tk=De([].push),Xrt=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,a=t==6,i=t==7,u=t==5||a;return function(s,l,c,f){for(var d,p,m=r2(s),h=tA(m),v=IA(l,c),y=uv(h),g=0,w=f||Yrt,E=e?w(s,y):n||i?w(s,0):void 0;y>g;g++)if((u||g in h)&&(p=v(d=h[g],g,m),t))if(e)E[g]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return g;case 2:tk(E,d)}else switch(t){case 4:return!1;case 7:tk(E,d)}return a?-1:r||o?o:E}},Zrt={forEach:Xrt(0)}.forEach,Jrt=function(t,e){var n=[][t];return!!n&&Ln(function(){n.call(null,e||function(){throw 1},1)})}("forEach"),wx=Jrt?[].forEach:function(t){return Zrt(this,t,arguments.length>1?arguments[1]:void 0)},ek=function(t){if(t&&t.forEach!==wx)try{xr(t,"forEach",wx)}catch{t.forEach=wx}};for(var Ex in vv)vv[Ex]&&ek(Vt[Ex]&&Vt[Ex].prototype);ek(KA),Or("en",{common:{ok:"OK",delete:"Delete",enter:"Enter"},blockQuote:{title:"Quote"},codeBlock:{title:"Code block"},color:{color:"Font color",bgColor:"Back color",default:"Default color",clear:"Clear back color"},divider:{title:"Divider"},emotion:{title:"Emotion"},fontSize:{title:"Font size",default:"Default"},fontFamily:{title:"Font family",default:"Default"},fullScreen:{title:"Full screen"},header:{title:"Header",text:"Text"},image:{netImage:"Net image",delete:"Delete image",edit:"Edit image",viewLink:"View link",src:"Image src",desc:"Description",link:"Image link"},indent:{decrease:"Decrease",increase:"Increase"},justify:{left:"Left",right:"Right",center:"Center",justify:"Justify"},lineHeight:{title:"Line height",default:"Default"},link:{insert:"Insert link",text:"Link text",url:"Link source",unLink:"Unlink",edit:"Edit link",view:"View link"},textStyle:{bold:"Bold",clear:"Clear styles",code:"Inline code",italic:"Italic",sub:"Sub",sup:"Sup",through:"Through",underline:"Underline"},undo:{undo:"undo",redo:"Redo"},todo:{todo:"Todo"}}),Or("zh-CN",{common:{ok:"确定",delete:"删除",enter:"回车"},blockQuote:{title:"引用"},codeBlock:{title:"代码块"},color:{color:"文字颜色",bgColor:"背景色",default:"默认颜色",clear:"清除背景色"},divider:{title:"分割线"},emotion:{title:"表情"},fontSize:{title:"字号",default:"默认字号"},fontFamily:{title:"字体",default:"默认字体"},fullScreen:{title:"全屏"},header:{title:"标题",text:"正文"},image:{netImage:"网络图片",delete:"删除图片",edit:"编辑图片",viewLink:"查看链接",src:"图片地址",desc:"图片描述",link:"图片链接"},indent:{decrease:"减少缩进",increase:"增加缩进"},justify:{left:"左对齐",right:"右对齐",center:"居中对齐",justify:"两端对齐"},lineHeight:{title:"行高",default:"默认行高"},link:{insert:"插入链接",text:"链接文本",url:"链接地址",unLink:"取消链接",edit:"修改链接",view:"查看链接"},textStyle:{bold:"粗体",clear:"清除格式",code:"行内代码",italic:"斜体",sub:"下标",sup:"上标",through:"删除线",underline:"下划线"},undo:{undo:"撤销",redo:"重做"},todo:{todo:"待办"}});var Qrt={type:"paragraph",renderElem:function(t,e,n){return jt("p",null,e)}},Zm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Jm(t){var e={exports:{}};return t(e,e.exports),e.exports}var Ia,Qm,$m=function(t){return t&&t.Math==Math&&t},Gt=$m(typeof globalThis=="object"&&globalThis)||$m(typeof window=="object"&&window)||$m(typeof self=="object"&&self)||$m(typeof Zm=="object"&&Zm)||function(){return this}()||Function("return this")(),qe=function(t){try{return!!t()}catch{return!0}},Lo=!qe(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),ap=Function.prototype.call,gn=ap.bind?ap.bind(ap):function(){return ap.apply(ap,arguments)},nk={}.propertyIsEnumerable,rk=Object.getOwnPropertyDescriptor,$rt=rk&&!nk.call({1:2},1)?function(t){var e=rk(this,t);return!!e&&e.enumerable}:nk,ok={f:$rt},Sx=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},ik=Function.prototype,xx=ik.bind,Cx=ik.call,qrt=xx&&xx.bind(Cx),Nt=xx?function(t){return t&&qrt(Cx,t)}:function(t){return t&&function(){return Cx.apply(t,arguments)}},tot=Nt({}.toString),eot=Nt("".slice),ja=function(t){return eot(tot(t),8,-1)},Dx=Gt.Object,not=Nt("".split),qm=qe(function(){return!Dx("z").propertyIsEnumerable(0)})?function(t){return ja(t)=="String"?not(t,""):Dx(t)}:Dx,rot=Gt.TypeError,go=function(t){if(t==null)throw rot("Can't call method on "+t);return t},dc=function(t){return qm(go(t))},ir=function(t){return typeof t=="function"},si=function(t){return typeof t=="object"?t!==null:ir(t)},oot=function(t){return ir(t)?t:void 0},up=function(t,e){return arguments.length<2?oot(Gt[t]):Gt[t]&&Gt[t][e]},ak=Nt({}.isPrototypeOf),Ox=up("navigator","userAgent")||"",uk=Gt.process,sk=Gt.Deno,lk=uk&&uk.versions||sk&&sk.version,ck=lk&&lk.v8;ck&&(Qm=(Ia=ck.split("."))[0]>0&&Ia[0]<4?1:+(Ia[0]+Ia[1])),!Qm&&Ox&&(!(Ia=Ox.match(/Edge\/(\d+)/))||Ia[1]>=74)&&(Ia=Ox.match(/Chrome\/(\d+)/))&&(Qm=+Ia[1]);var Ax=Qm,Tx=!!Object.getOwnPropertySymbols&&!qe(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Ax&&Ax<41}),Bx=Tx&&!Symbol.sham&&typeof Symbol.iterator=="symbol",iot=Gt.Object,Px=Bx?function(t){return typeof t=="symbol"}:function(t){var e=up("Symbol");return ir(e)&&ak(e.prototype,iot(t))},aot=Gt.String,fk=function(t){try{return aot(t)}catch{return"Object"}},uot=Gt.TypeError,dk=function(t){if(ir(t))return t;throw uot(fk(t)+" is not a function")},t0=function(t,e){var n=t[e];return n==null?void 0:dk(n)},sot=Gt.TypeError,lot=Object.defineProperty,Fx=function(t,e){try{lot(Gt,t,{value:e,configurable:!0,writable:!0})}catch{Gt[t]=e}return e},Ra=Gt["__core-js_shared__"]||Fx("__core-js_shared__",{}),kx=Jm(function(t){(t.exports=function(e,n){return Ra[e]||(Ra[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),cot=Gt.Object,sp=function(t){return cot(go(t))},fot=Nt({}.hasOwnProperty),vo=Object.hasOwn||function(t,e){return fot(sp(t),e)},dot=0,pot=Math.random(),hot=Nt(1 .toString),pk=function(t){return"Symbol("+(t===void 0?"":t)+")_"+hot(++dot+pot,36)},lp=kx("wks"),ms=Gt.Symbol,hk=ms&&ms.for,got=Bx?ms:ms&&ms.withoutSetter||pk,Wr=function(t){if(!vo(lp,t)||!Tx&&typeof lp[t]!="string"){var e="Symbol."+t;Tx&&vo(ms,t)?lp[t]=ms[t]:lp[t]=Bx&&hk?hk(e):got(e)}return lp[t]},vot=Gt.TypeError,mot=Wr("toPrimitive"),Nx=function(t){var e=function(n,r){if(!si(n)||Px(n))return n;var o,a=t0(n,mot);if(a){if(o=gn(a,n,r),!si(o)||Px(o))return o;throw vot("Can't convert object to primitive value")}return function(i,u){var s,l;if(ir(s=i.toString)&&!si(l=gn(s,i))||ir(s=i.valueOf)&&!si(l=gn(s,i)))return l;throw sot("Can't convert object to primitive value")}(n)}(t,"string");return Px(e)?e:e+""},Ix=Gt.document,yot=si(Ix)&&si(Ix.createElement),jx=function(t){return yot?Ix.createElement(t):{}},gk=!Lo&&!qe(function(){return Object.defineProperty(jx("div"),"a",{get:function(){return 7}}).a!=7}),vk=Object.getOwnPropertyDescriptor,Rx={f:Lo?vk:function(t,e){if(t=dc(t),e=Nx(e),gk)try{return vk(t,e)}catch{}if(vo(t,e))return Sx(!gn(ok.f,t,e),t[e])}},bot=Gt.String,wot=Gt.TypeError,Kr=function(t){if(si(t))return t;throw wot(bot(t)+" is not an object")},Eot=Gt.TypeError,mk=Object.defineProperty,pc={f:Lo?mk:function(t,e,n){if(Kr(t),e=Nx(e),Kr(n),gk)try{return mk(t,e,n)}catch{}if("get"in n||"set"in n)throw Eot("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},hc=Lo?function(t,e,n){return pc.f(t,e,Sx(1,n))}:function(t,e,n){return t[e]=n,t},Sot=Nt(Function.toString);ir(Ra.inspectSource)||(Ra.inspectSource=function(t){return Sot(t)});var Lx,e0,Mx,Vx=Ra.inspectSource,yk=Gt.WeakMap,xot=ir(yk)&&/native code/.test(Vx(yk)),bk=kx("keys"),wk=function(t){return bk[t]||(bk[t]=pk(t))},zx={},Ek=Gt.TypeError,Cot=Gt.WeakMap;if(xot||Ra.state){var ys=Ra.state||(Ra.state=new Cot),Dot=Nt(ys.get),Sk=Nt(ys.has),Oot=Nt(ys.set);Lx=function(t,e){if(Sk(ys,t))throw new Ek("Object already initialized");return e.facade=t,Oot(ys,t,e),e},e0=function(t){return Dot(ys,t)||{}},Mx=function(t){return Sk(ys,t)}}else{var gc=wk("state");zx[gc]=!0,Lx=function(t,e){if(vo(t,gc))throw new Ek("Object already initialized");return e.facade=t,hc(t,gc,e),e},e0=function(t){return vo(t,gc)?t[gc]:{}},Mx=function(t){return vo(t,gc)}}var Hx={get:e0,enforce:function(t){return Mx(t)?e0(t):Lx(t,{})}},xk=Function.prototype,Aot=Lo&&Object.getOwnPropertyDescriptor,Ux=vo(xk,"name"),n0={EXISTS:Ux,PROPER:Ux&&(function(){}).name==="something",CONFIGURABLE:Ux&&(!Lo||Lo&&Aot(xk,"name").configurable)},cp=Jm(function(t){var e=n0.CONFIGURABLE,n=Hx.get,r=Hx.enforce,o=String(String).split("String");(t.exports=function(a,i,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:i;ir(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!vo(u,"name")||e&&u.name!==p)&&hc(u,"name",p),(l=r(u)).source||(l.source=o.join(typeof p=="string"?p:""))),a!==Gt?(c?!d&&a[i]&&(f=!0):delete a[i],f?a[i]=u:hc(a,i,u)):f?a[i]=u:Fx(i,u)})(Function.prototype,"toString",function(){return ir(this)&&n(this).source||Vx(this)})}),Tot=Math.ceil,Bot=Math.floor,vc=function(t){var e=+t;return e!=e||e===0?0:(e>0?Bot:Tot)(e)},Pot=Math.max,Fot=Math.min,fp=function(t,e){var n=vc(t);return n<0?Pot(n+e,0):Fot(n,e)},kot=Math.min,dp=function(t){return t>0?kot(vc(t),9007199254740991):0},r0=function(t){return dp(t.length)},Ck=function(t){return function(e,n,r){var o,a=dc(e),i=r0(a),u=fp(r,i);if(t&&n!=n){for(;i>u;)if((o=a[u++])!=o)return!0}else for(;i>u;u++)if((t||u in a)&&a[u]===n)return t||u||0;return!t&&-1}},Dk={includes:Ck(!0),indexOf:Ck(!1)},Not=Dk.indexOf,Ok=Nt([].push),Ak=function(t,e){var n,r=dc(t),o=0,a=[];for(n in r)!vo(zx,n)&&vo(r,n)&&Ok(a,n);for(;e.length>o;)vo(r,n=e[o++])&&(~Not(a,n)||Ok(a,n));return a},o0=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Iot=o0.concat("length","prototype"),jot={f:Object.getOwnPropertyNames||function(t){return Ak(t,Iot)}},Tk={f:Object.getOwnPropertySymbols},Rot=Nt([].concat),Lot=up("Reflect","ownKeys")||function(t){var e=jot.f(Kr(t)),n=Tk.f;return n?Rot(e,n(t)):e},Mot=function(t,e){for(var n=Lot(e),r=pc.f,o=Rx.f,a=0;a<n.length;a++){var i=n[a];vo(t,i)||r(t,i,o(e,i))}},Vot=/#|\.prototype\./,pp=function(t,e){var n=Hot[zot(t)];return n==_ot||n!=Uot&&(ir(e)?qe(e):!!e)},zot=pp.normalize=function(t){return String(t).replace(Vot,".").toLowerCase()},Hot=pp.data={},Uot=pp.NATIVE="N",_ot=pp.POLYFILL="P",Got=pp,Wot=Rx.f,Nn=function(t,e){var n,r,o,a,i,u=t.target,s=t.global,l=t.stat;if(n=s?Gt:l?Gt[u]||Fx(u,{}):(Gt[u]||{}).prototype)for(r in e){if(a=e[r],o=t.noTargetGet?(i=Wot(n,r))&&i.value:n[r],!Got(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof a==typeof o)continue;Mot(a,o)}(t.sham||o&&o.sham)&&hc(a,"sham",!0),cp(n,r,a,t)}},Bk=Nt(Nt.bind),i0=Array.isArray||function(t){return ja(t)=="Array"},Pk={};Pk[Wr("toStringTag")]="z";var _x=String(Pk)==="[object z]",Kot=Wr("toStringTag"),Yot=Gt.Object,Xot=ja(function(){return arguments}())=="Arguments",Gx=_x?ja:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,a){try{return o[a]}catch{}}(e=Yot(t),Kot))=="string"?n:Xot?ja(e):(r=ja(e))=="Object"&&ir(e.callee)?"Arguments":r},Fk=function(){},Zot=[],kk=up("Reflect","construct"),Wx=/^\s*(?:class|function)\b/,Jot=Nt(Wx.exec),Qot=!Wx.exec(Fk),hp=function(t){if(!ir(t))return!1;try{return kk(Fk,Zot,t),!0}catch{return!1}},Kx=!kk||qe(function(){var t;return hp(hp.call)||!hp(Object)||!hp(function(){t=!0})||t})?function(t){if(!ir(t))return!1;switch(Gx(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Qot||!!Jot(Wx,Vx(t))}:hp,$ot=Wr("species"),Nk=Gt.Array,qot=function(t,e){return new(function(n){var r;return i0(n)&&(r=n.constructor,(Kx(r)&&(r===Nk||i0(r.prototype))||si(r)&&(r=r[$ot])===null)&&(r=void 0)),r===void 0?Nk:r}(t))(e===0?0:e)},Ik=Nt([].push),a0=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,a=t==6,i=t==7,u=t==5||a;return function(s,l,c,f){for(var d,p,m=sp(s),h=qm(m),v=function(x,S){return dk(x),S===void 0?x:Bk?Bk(x,S):function(){return x.apply(S,arguments)}}(l,c),y=r0(h),g=0,w=f||qot,E=e?w(s,y):n||i?w(s,0):void 0;y>g;g++)if((u||g in h)&&(p=v(d=h[g],g,m),t))if(e)E[g]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return g;case 2:Ik(E,d)}else switch(t){case 4:return!1;case 7:Ik(E,d)}return a?-1:r||o?o:E}},u0={forEach:a0(0),map:a0(1),filter:a0(2),find:a0(5)},tit=Wr("species"),Yx=function(t){return Ax>=51||!qe(function(){var e=[];return(e.constructor={})[tit]=function(){return{foo:1}},e[t](Boolean).foo!==1})},eit=u0.filter;Nn({target:"Array",proto:!0,forced:!Yx("filter")},{filter:function(t){return eit(this,t,arguments.length>1?arguments[1]:void 0)}});var nit=_x?{}.toString:function(){return"[object "+Gx(this)+"]"};_x||cp(Object.prototype,"toString",nit,{unsafe:!0});var s0,rit=Gt.String,tn=function(t){if(Gx(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return rit(t)},jk=function(){var t=Kr(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},Xx=Gt.RegExp,Zx=qe(function(){var t=Xx("a","y");return t.lastIndex=2,t.exec("abcd")!=null});Zx||qe(function(){return!Xx("a","y").sticky});var Rk={BROKEN_CARET:Zx||qe(function(){var t=Xx("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),UNSUPPORTED_Y:Zx},mc=Object.keys||function(t){return Ak(t,o0)},oit=Lo?Object.defineProperties:function(t,e){Kr(t);for(var n,r=dc(e),o=mc(e),a=o.length,i=0;a>i;)pc.f(t,n=o[i++],r[n]);return t},iit=up("document","documentElement"),Lk=wk("IE_PROTO"),Jx=function(){},Mk=function(t){return"<script>"+t+"<\/script>"},Vk=function(t){t.write(Mk("")),t.close();var e=t.parentWindow.Object;return t=null,e},l0=function(){try{s0=new ActiveXObject("htmlfile")}catch{}var t,e;l0=typeof document<"u"?document.domain&&s0?Vk(s0):((e=jx("iframe")).style.display="none",iit.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(Mk("document.F=Object")),t.close(),t.F):Vk(s0);for(var n=o0.length;n--;)delete l0.prototype[o0[n]];return l0()};zx[Lk]=!0;var zk,Qx,Hk=Object.create||function(t,e){var n;return t!==null?(Jx.prototype=Kr(t),n=new Jx,Jx.prototype=null,n[Lk]=t):n=l0(),e===void 0?n:oit(n,e)},ait=Gt.RegExp,uit=qe(function(){var t=ait(".","s");return!(t.dotAll&&t.exec(`
90
+ `)&&t.flags==="s")}),sit=Gt.RegExp,lit=qe(function(){var t=sit("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),cit=Hx.get,fit=kx("native-string-replace",String.prototype.replace),c0=RegExp.prototype.exec,$x=c0,dit=Nt("".charAt),pit=Nt("".indexOf),hit=Nt("".replace),qx=Nt("".slice),t4=(Qx=/b*/g,gn(c0,zk=/a/,"a"),gn(c0,Qx,"a"),zk.lastIndex!==0||Qx.lastIndex!==0),Uk=Rk.BROKEN_CARET,e4=/()??/.exec("")[1]!==void 0;(t4||e4||Uk||uit||lit)&&($x=function(t){var e,n,r,o,a,i,u,s=this,l=cit(s),c=tn(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=gn($x,f,c),s.lastIndex=f.lastIndex,e;var d=l.groups,p=Uk&&s.sticky,m=gn(jk,s),h=s.source,v=0,y=c;if(p&&(m=hit(m,"y",""),pit(m,"g")===-1&&(m+="g"),y=qx(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&dit(c,s.lastIndex-1)!==`
91
+ `)&&(h="(?: "+h+")",y=" "+y,v++),n=new RegExp("^(?:"+h+")",m)),e4&&(n=new RegExp("^"+h+"$(?!\\s)",m)),t4&&(r=s.lastIndex),o=gn(c0,p?n:s,y),p?o?(o.input=qx(o.input,v),o[0]=qx(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:t4&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),e4&&o&&o.length>1&&gn(fit,o[0],n,function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(o[a]=void 0)}),o&&d)for(o.groups=i=Hk(null),a=0;a<d.length;a++)i[(u=d[a])[0]]=o[u[1]];return o});var gp=$x;Nn({target:"RegExp",proto:!0,forced:/./.exec!==gp},{exec:gp});var n4=Function.prototype,_k=n4.apply,git=n4.bind,Gk=n4.call,Wk=typeof Reflect=="object"&&Reflect.apply||(git?Gk.bind(_k):function(){return Gk.apply(_k,arguments)}),vit=Wr("species"),r4=RegExp.prototype,o4=function(t,e,n,r){var o=Wr(t),a=!qe(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),i=a&&!qe(function(){var l=!1,c=/a/;return t==="split"&&((c={}).constructor={},c.constructor[vit]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!a||!i||n){var u=Nt(/./[o]),s=e(o,""[t],function(l,c,f,d,p){var m=Nt(l),h=c.exec;return h===gp||h===r4.exec?a&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:m(f,c,d)}:{done:!1}});cp(String.prototype,t,s[0]),cp(r4,o,s[1])}r&&hc(r4[o],"sham",!0)},mit=Nt("".charAt),Kk=Nt("".charCodeAt),yit=Nt("".slice),bit=function(t){return function(e,n){var r,o,a=tn(go(e)),i=vc(n),u=a.length;return i<0||i>=u?t?"":void 0:(r=Kk(a,i))<55296||r>56319||i+1===u||(o=Kk(a,i+1))<56320||o>57343?t?mit(a,i):r:t?yit(a,i,i+2):o-56320+(r-55296<<10)+65536}},wit=bit(!0),i4=function(t,e,n){return e+(n?wit(t,e).length:1)},Eit=Math.floor,a4=Nt("".charAt),Sit=Nt("".replace),u4=Nt("".slice),xit=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Cit=/\$([$&'`]|\d{1,2})/g,Dit=function(t,e,n,r,o,a){var i=n+t.length,u=r.length,s=Cit;return o!==void 0&&(o=sp(o),s=xit),Sit(a,s,function(l,c){var f;switch(a4(c,0)){case"$":return"$";case"&":return t;case"`":return u4(e,0,n);case"'":return u4(e,i);case"<":f=o[u4(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=Eit(d/10);return p===0?l:p<=u?r[p-1]===void 0?a4(c,1):r[p-1]+a4(c,1):l}f=r[d-1]}return f===void 0?"":f})},Oit=Gt.TypeError,vp=function(t,e){var n=t.exec;if(ir(n)){var r=gn(n,t,e);return r!==null&&Kr(r),r}if(ja(t)==="RegExp")return gn(gp,t,e);throw Oit("RegExp#exec called on incompatible receiver")},s4=Wr("replace"),Ait=Math.max,Tit=Math.min,Bit=Nt([].concat),l4=Nt([].push),Yk=Nt("".indexOf),Xk=Nt("".slice),Pit="a".replace(/./,"$0")==="$0",Zk=!!/./[s4]&&/./[s4]("a","$0")==="";o4("replace",function(t,e,n){var r=Zk?"$":"$0";return[function(o,a){var i=go(this),u=o==null?void 0:t0(o,s4);return u?gn(u,o,i,a):gn(e,tn(i),o,a)},function(o,a){var i=Kr(this),u=tn(o);if(typeof a=="string"&&Yk(a,r)===-1&&Yk(a,"$<")===-1){var s=n(e,i,u,a);if(s.done)return s.value}var l=ir(a);l||(a=tn(a));var c=i.global;if(c){var f=i.unicode;i.lastIndex=0}for(var d=[];;){var p=vp(i,u);if(p===null||(l4(d,p),!c))break;tn(p[0])===""&&(i.lastIndex=i4(u,dp(i.lastIndex),f))}for(var m,h="",v=0,y=0;y<d.length;y++){for(var g=tn((p=d[y])[0]),w=Ait(Tit(vc(p.index),u.length),0),E=[],x=1;x<p.length;x++)l4(E,(m=p[x])===void 0?m:String(m));var S=p.groups;if(l){var C=Bit([g],E,w,u);S!==void 0&&l4(C,S);var T=tn(Wk(a,void 0,C))}else T=Dit(g,u,w,E,S,a);w>=v&&(h+=Xk(u,v,w)+T,v=w+g.length)}return h+Xk(u,v)}]},!!qe(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!Pit||Zk);var c4=Wr("unscopables"),f4=Array.prototype;f4[c4]==null&&pc.f(f4,c4,{configurable:!0,value:Hk(null)});var Jk=function(t){f4[c4][t]=!0},Fit=u0.find,Qk=!0;"find"in[]&&Array(1).find(function(){Qk=!1}),Nn({target:"Array",proto:!0,forced:Qk},{find:function(t){return Fit(this,t,arguments.length>1?arguments[1]:void 0)}}),Jk("find");var kit=Wr("match"),$k=function(t){var e;return si(t)&&((e=t[kit])!==void 0?!!e:ja(t)=="RegExp")},Nit=Gt.TypeError,Iit=Wr("species"),qk=function(t,e,n){var r=Nx(e);r in t?pc.f(t,r,Sx(0,n)):t[r]=n},jit=Gt.Array,Rit=Math.max,tN=function(t,e,n){for(var r=r0(t),o=fp(e,r),a=fp(n===void 0?r:n,r),i=jit(Rit(a-o,0)),u=0;o<a;o++,u++)qk(i,u,t[o]);return i.length=u,i},yc=Rk.UNSUPPORTED_Y,Lit=Math.min,eN=[].push,Mit=Nt(/./.exec),bc=Nt(eN),mp=Nt("".slice);o4("split",function(t,e,n){var r;return r="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(o,a){var i=tn(go(this)),u=a===void 0?4294967295:a>>>0;if(u===0)return[];if(o===void 0)return[i];if(!$k(o))return gn(e,i,o,u);for(var s,l,c,f=[],d=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),p=0,m=new RegExp(o.source,d+"g");(s=gn(gp,m,i))&&!((l=m.lastIndex)>p&&(bc(f,mp(i,p,s.index)),s.length>1&&s.index<i.length&&Wk(eN,f,tN(s,1)),c=s[0].length,p=l,f.length>=u));)m.lastIndex===s.index&&m.lastIndex++;return p===i.length?!c&&Mit(m,"")||bc(f,""):bc(f,mp(i,p)),f.length>u?tN(f,0,u):f}:"0".split(void 0,0).length?function(o,a){return o===void 0&&a===0?[]:gn(e,this,o,a)}:e,[function(o,a){var i=go(this),u=o==null?void 0:t0(o,t);return u?gn(u,o,i,a):gn(r,tn(i),o,a)},function(o,a){var i=Kr(this),u=tn(o),s=n(r,i,u,a,r!==e);if(s.done)return s.value;var l=function(E,x){var S,C=Kr(E).constructor;return C===void 0||(S=Kr(C)[Iit])==null?x:function(T){if(Kx(T))return T;throw Nit(fk(T)+" is not a constructor")}(S)}(i,RegExp),c=i.unicode,f=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(yc?"g":"y"),d=new l(yc?"^(?:"+i.source+")":i,f),p=a===void 0?4294967295:a>>>0;if(p===0)return[];if(u.length===0)return vp(d,u)===null?[u]:[];for(var m=0,h=0,v=[];h<u.length;){d.lastIndex=yc?0:h;var y,g=vp(d,yc?mp(u,h):u);if(g===null||(y=Lit(dp(d.lastIndex+(yc?h:0)),u.length))===m)h=i4(u,h,c);else{if(bc(v,mp(u,m,h)),v.length===p)return v;for(var w=1;w<=g.length-1;w++)if(bc(v,g[w]),v.length===p)return v;h=m=y}}return bc(v,mp(u,m)),v}]},!!qe(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),yc);var d4=`
92
+ \v\f\r                 \u2028\u2029\uFEFF`,nN=Nt("".replace),f0="["+d4+"]",Vit=RegExp("^"+f0+f0+"*"),zit=RegExp(f0+f0+"*$"),Hit=function(t){return function(e){var n=tn(go(e));return 1&t&&(n=nN(n,Vit,"")),2&t&&(n=nN(n,zit,"")),n}},Uit={trim:Hit(3)},_it=n0.PROPER,Git=Uit.trim;function p4(t){return F("<div>"+t+"</div>").children().filter(function(e){return e.tagName!=="BR"}).length===0}function wc(t){return t.length===0?"":t[0].outerHTML}function Ec(t){return t.length?t[0].tagName.toLowerCase():""}function Mo(t,e){for(var n="",r=(t.attr("style")||"").split(";"),o=r.length,a=0;a<o;a++){var i=r[a];if(i){var u=i.split(":");u[0].trim()===e&&(n=u[1].trim())}}return n}Nn({target:"String",proto:!0,forced:qe(function(){return!!d4.trim()||"​…᠎".trim()!=="​…᠎"||_it&&d4.trim.name!=="trim"})},{trim:function(){return Git(this)}}),Nn({global:!0},{globalThis:Gt}),Mv&&(F.fn.css=Mv),ao&&(F.fn.append=ao),E9&&(F.fn.prepend=E9),Ol&&(F.fn.addClass=Ol),Al&&(F.fn.removeClass=Al),Tl&&(F.fn.hasClass=Tl),ti&&(F.fn.on=ti),m9&&(F.fn.off=m9),wa&&(F.fn.focus=wa),io&&(F.fn.attr=io),Iv&&(F.fn.removeAttr=Iv),Pl&&(F.fn.hide=Pl),Lv&&(F.fn.show=Lv),Hv&&(F.fn.parents=Hv),Bl&&(F.fn.dataset=Bl),qo&&(F.fn.val=qo),zv&&(F.fn.text=zv),ba&&(F.fn.html=ba),Nl&&(F.fn.children=Nl),Il&&(F.fn.remove=Il),kl&&(F.fn.find=kl),jv&&(F.fn.width=jv),Rv&&(F.fn.height=Rv),b9&&(F.fn.filter=b9),jl&&(F.fn.empty=jl);var Wit={selector:"p:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=F(t);return(e=e.filter(function(o){return!!vt.isText(o)||!!n.isInline(o)})).length===0&&(e=[{text:r.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:e}}},h4=function(t,e){return h4=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},h4(t,e);/*! *****************************************************************************
93
+ Copyright (c) Microsoft Corporation.
94
+
95
+ Permission to use, copy, modify, and/or distribute this software for any
96
+ purpose with or without fee is hereby granted.
97
+
98
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
99
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
100
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
101
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
102
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
103
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
104
+ PERFORMANCE OF THIS SOFTWARE.
105
+ ***************************************************************************** */};function Ge(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}h4(t,e),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var La=function(){return La=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},La.apply(this,arguments)};function Ma(t,e,n,r){return new(n||(n=Promise))(function(o,a){function i(l){try{s(r.next(l))}catch(c){a(c)}}function u(l){try{s(r.throw(l))}catch(c){a(c)}}function s(l){var c;l.done?o(l.value):(c=l.value,c instanceof n?c:new n(function(f){f(c)})).then(i,u)}s((r=r.apply(t,[])).next())})}function Va(t,e){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(s){return function(l){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||c[0]!==6&&c[0]!==2)){i=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(c[0]===6&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=e.call(t,i)}catch(f){c=[6,f],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([s,l])}}}function rN(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function de(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r,o,a=n.call(t),i=[];try{for(;(e===void 0||e-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function oN(t){var e=de(D.nodes(t,{match:function(a){return t.children[0]===a},mode:"highest"}),1)[0];if(e==null)return!1;var n=e[0];if(!St.isElement(n)||n.type==="paragraph"||st.string(n)!=="")return!1;var r=n.children,o=r===void 0?[]:r;return!!vt.isText(o[0])&&(_.setNodes(t,{type:"paragraph"}),!0)}var Kit={renderElems:[Qrt],elemsToHtml:[{type:"paragraph",elemToHtml:function(t,e){return e===""?"<p><br></p>":"<p>"+e+"</p>"}}],parseElemsHtml:[Wit],editorPlugin:function(t){var e=t.deleteBackward,n=t.deleteForward;t.insertText,t.insertBreak;var r=t;return r.deleteBackward=function(o){oN(r)||e(o)},r.deleteForward=function(o){oN(r)||n(o)},r}},Yit=/"/g,Xit=Nt("".replace),yp=function(t,e,n,r){var o=tn(go(t)),a="<"+e;return n!==""&&(a+=" "+n+'="'+Xit(tn(r),Yit,"&quot;")+'"'),a+">"+o+"</"+e+">"},bp=function(t){return qe(function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3})};function g4(t,e){var n=e,r=t,o=r.bold,a=r.italic,i=r.underline;return o&&(n="<strong>"+n+"</strong>"),r.code&&(n="<code>"+n+"</code>"),a&&(n="<em>"+n+"</em>"),i&&(n="<u>"+n+"</u>"),r.through&&(n="<s>"+n+"</s>"),r.sub&&(n="<sub>"+n+"</sub>"),r.sup&&(n="<sup>"+n+"</sup>"),n}function bs(t,e){return t.length!==0&&(!!t[0].matches(e)||t.find(e).length>0)}Nn({target:"String",proto:!0,forced:bp("bold")},{bold:function(){return yp(this,"b","","")}}),Nn({target:"String",proto:!0,forced:bp("italics")},{italics:function(){return yp(this,"i","","")}}),Nn({target:"String",proto:!0,forced:bp("sub")},{sub:function(){return yp(this,"sub","","")}}),Nn({target:"String",proto:!0,forced:bp("sup")},{sup:function(){return yp(this,"sup","","")}});var iN={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},v4=jx("span").classList,aN=v4&&v4.constructor&&v4.constructor.prototype,Zit=aN===Object.prototype?void 0:aN,uN=function(t,e){var n=[][t];return!!n&&qe(function(){n.call(null,e||function(){throw 1},1)})},Jit=u0.forEach,m4=uN("forEach")?[].forEach:function(t){return Jit(this,t,arguments.length>1?arguments[1]:void 0)},sN=function(t){if(t&&t.forEach!==m4)try{hc(t,"forEach",m4)}catch{t.forEach=m4}};for(var y4 in iN)iN[y4]&&sN(Gt[y4]&&Gt[y4].prototype);function lN(t,e){return t.selection==null||!!de(D.nodes(t,{match:function(n){return P.getNodeType(n)==="pre"||!!D.isVoid(t,n)},universal:!0}),1)[0]}function Qit(t,e){Object.keys(e).forEach(function(n){n!=="text"&&D.removeMark(t,n)})}sN(Zit),Nn({target:"Object",stat:!0,forced:qe(function(){mc(1)})},{keys:function(t){return mc(sp(t))}});var ws=function(){function t(){this.marksNeedToRemove=[],this.tag="button"}return t.prototype.getValue=function(e){var n=this.mark,r=D.marks(e);return r?r[n]:!!de(D.nodes(e,{match:function(o){return o[n]===!0}}),1)[0]},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(e){return lN(e,this.mark)},t.prototype.exec=function(e,n){var r=this.mark,o=this.marksNeedToRemove;n?e.removeMark(r):(e.addMark(r,!0),o&&o.forEach(function(a){return e.removeMark(a)}))},t}(),$it='<svg viewBox="0 0 1024 1024"><path d="M707.872 484.64A254.88 254.88 0 0 0 768 320c0-141.152-114.848-256-256-256H192v896h384c141.152 0 256-114.848 256-256a256.096 256.096 0 0 0-124.128-219.36zM384 192h101.504c55.968 0 101.504 57.408 101.504 128s-45.536 128-101.504 128H384V192z m159.008 640H384v-256h159.008c58.464 0 106.016 57.408 106.016 128s-47.552 128-106.016 128z"></path></svg>',qit='<svg viewBox="0 0 1024 1024"><path d="M704 64l128 0 0 416c0 159.072-143.264 288-320 288s-320-128.928-320-288l0-416 128 0 0 416c0 40.16 18.24 78.688 51.36 108.512 36.896 33.216 86.848 51.488 140.64 51.488s103.744-18.304 140.64-51.488c33.12-29.792 51.36-68.352 51.36-108.512l0-416zM192 832l640 0 0 128-640 0z"></path></svg>',tat='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',eat='<svg viewBox="0 0 1024 1024"><path d="M1024 512v64h-234.496c27.52 38.496 42.496 82.688 42.496 128 0 70.88-36.672 139.04-100.576 186.976C672.064 935.488 594.144 960 512 960s-160.064-24.512-219.424-69.024C228.64 843.04 192 774.88 192 704h128c0 69.376 87.936 128 192 128s192-58.624 192-128-87.936-128-192-128H0v-64h299.52a385.984 385.984 0 0 1-6.944-5.024C228.64 459.04 192 390.88 192 320s36.672-139.04 100.576-186.976C351.936 88.512 429.856 64 512 64s160.064 24.512 219.424 69.024C795.328 180.96 832 249.12 832 320h-128c0-69.376-87.936-128-192-128s-192 58.624-192 128 87.936 128 192 128c78.976 0 154.048 22.688 212.48 64H1024z"></path></svg>',nat='<svg viewBox="0 0 1024 1024"><path d="M576 736l96 96 320-320L672 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224z"></path></svg>',cN='<svg viewBox="0 0 1024 1024"><path d="M864 0a160 160 0 0 1 128 256l-64 64-224-224 64-64c26.752-20.096 59.968-32 96-32zM64 736l-64 288 288-64 592-592-224-224L64 736z m651.584-372.416l-448 448-55.168-55.168 448-448 55.168 55.168z"></path></svg>',fN='<svg viewBox="0 0 1024 1024"><path d="M924.402464 1023.068211H0.679665V99.345412h461.861399v98.909208H99.596867v725.896389h725.896389V561.206811h98.909208z" p-id="10909"></path><path d="M930.805104 22.977336l69.965436 69.965436-453.492405 453.492404-69.965435-69.901489z" p-id="10910"></path><path d="M1022.464381 304.030081h-98.917201V99.345412H709.230573V0.428211h313.233808z"></path></svg>',rat='<svg viewBox="0 0 1024 1024"><path d="M64 864h896v96H64zM360.58 576h302.85l81.53 224h102.16L579.24 64H444.77L176.89 800h102.16l81.53-224zM512 159.96L628.49 480H395.52L512 159.96z"></path></svg>',oat='<svg viewBox="0 0 1024 1024"><path d="M510.030769 315.076923l84.676923 196.923077h-177.230769l76.8-196.923077h15.753846zM945.230769 157.538462v708.923076c0 43.323077-35.446154 78.769231-78.769231 78.769231H157.538462c-43.323077 0-78.769231-35.446154-78.769231-78.769231V157.538462c0-43.323077 35.446154-78.769231 78.769231-78.769231h708.923076c43.323077 0 78.769231 35.446154 78.769231 78.769231z m-108.307692 643.938461L600.615385 216.615385c-5.907692-11.815385-15.753846-19.692308-29.538462-19.692308h-139.815385c-11.815385 0-23.630769 7.876923-27.56923 19.692308l-216.615385 584.861538c-3.938462 11.815385 3.938462 25.6 17.723077 25.6h80.738462c11.815385 0 23.630769-9.846154 27.56923-21.661538l63.015385-175.261539h263.876923l68.923077 175.261539c3.938462 11.815385 15.753846 21.661538 27.569231 21.661538h80.738461c13.784615 0 23.630769-13.784615 19.692308-25.6z"></path></svg>',iat='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',aat='<svg viewBox="0 0 1024 1024"><path d="M956.788364 152.110545h-24.110546l23.924364 9.029819 0.186182 121.018181h-65.070546l-86.574545-130.048H566.551273v650.14691l130.048 64.977454v65.163636h-390.050909v-65.163636l129.954909-64.977454V152.110545H198.283636L111.429818 282.065455H46.545455V69.259636C46.545455 33.792 82.664727 22.062545 98.955636 22.062545h812.683637c23.738182 0 45.056 15.173818 45.056 41.053091V169.425455v-17.221819z"></path></svg>',uat='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',sat='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',lat='<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',cat='<svg viewBox="0 0 1024 1024"><path d="M972.8 793.6v102.4H256v-102.4h716.8z m0-230.4v102.4H51.2v-102.4h921.6z m0-230.4v102.4H256v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',fat='<svg viewBox="0 0 1024 1024"><path d="M870.4 793.6v102.4H153.6v-102.4h716.8z m102.4-230.4v102.4H51.2v-102.4h921.6z m-102.4-230.4v102.4H153.6v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',dat='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',pat='<svg viewBox="0 0 1024 1024"><path d="M768 206.016v50.016h128v64h-192V174.016l128-60V64h-128V0h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',hat='<svg viewBox="0 0 1024 1024"><path d="M768 910.016v50.016h128v64h-192v-146.016l128-60V768h-128v-64h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',gat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="bold",n.title=lt("textStyle.bold"),n.iconSvg=$it,n.hotkey="mod+b",n}return Ge(e,t),e}(ws),vat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="code",n.title=lt("textStyle.code"),n.iconSvg=nat,n.hotkey="mod+e",n}return Ge(e,t),e}(ws),mat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="italic",n.title=lt("textStyle.italic"),n.iconSvg=tat,n.hotkey="mod+i",n}return Ge(e,t),e}(ws),yat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="through",n.title=lt("textStyle.through"),n.iconSvg=eat,n.hotkey="mod+shift+x",n}return Ge(e,t),e}(ws),bat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="underline",n.title=lt("textStyle.underline"),n.iconSvg=qit,n.hotkey="mod+u",n}return Ge(e,t),e}(ws),wat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="sub",n.marksNeedToRemove=["sup"],n.title=lt("textStyle.sub"),n.iconSvg=hat,n.hotkey="",n}return Ge(e,t),e}(ws),Eat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="sup",n.marksNeedToRemove=["sub"],n.title=lt("textStyle.sup"),n.iconSvg=pat,n.hotkey="",n}return Ge(e,t),e}(ws),Sat=function(){function t(){this.title=lt("textStyle.clear"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M969.382408 288.738615l-319.401123-270.852152a67.074236 67.074236 0 0 0-96.459139 5.74922l-505.931379 574.922021a68.35184 68.35184 0 0 0-17.886463 47.910169 74.101061 74.101061 0 0 0 24.274486 47.910168l156.50655 132.232065h373.060512L975.131628 383.281347a67.074236 67.074236 0 0 0-5.74922-96.459139z m-440.134747 433.746725H264.144729l-90.071117-78.572676c-5.74922-5.74922-12.137243-12.137243-12.137243-17.886463a36.411728 36.411728 0 0 1 5.749221-24.274485l210.804741-240.828447 265.102932 228.691204z m-439.495945 180.781036h843.218964a60.047411 60.047411 0 1 1 0 120.733624H89.751716a60.047411 60.047411 0 1 1 0-120.733624z m0 0"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return lN(e)},t.prototype.exec=function(e,n){var r,o,a=D.nodes(e,{match:function(s){return vt.isText(s)},universal:!0});try{for(var i=rN(a),u=i.next();!u.done;u=i.next())Qit(e,u.value[0])}catch(s){r={error:s}}finally{try{u&&!u.done&&(o=i.return)&&o.call(i)}finally{if(r)throw r.error}}},t}(),xat={renderStyle:function(t,e){var n=t,r=n.bold,o=n.italic,a=n.underline,i=n.code,u=n.through,s=n.sub,l=n.sup,c=e;return r&&(c=jt("strong",null,c)),i&&(c=jt("code",null,c)),o&&(c=jt("em",null,c)),a&&(c=jt("u",null,c)),u&&(c=jt("s",null,c)),s&&(c=jt("sub",null,c)),l&&(c=jt("sup",null,c)),c},menus:[{key:"bold",factory:function(){return new gat}},{key:"underline",factory:function(){return new bat}},{key:"italic",factory:function(){return new mat}},{key:"through",factory:function(){return new yat}},{key:"code",factory:function(){return new vat}},{key:"sub",factory:function(){return new wat}},{key:"sup",factory:function(){return new Eat}},{key:"clearStyle",factory:function(){return new Sat}}],styleToHtml:function(t,e){if(!vt.isText(t))return e;if(p4(e))return g4(t,e);var n=F(e);if(Ec(n)==="br")return g4(t,"<br>");var r=n.html();return r=g4(t,r),n.html(r),wc(n)},parseStyleHtml:function(t,e,n){var r=F(t);if(!vt.isText(e))return e;var o=e;return bs(r,"b,strong")&&(o.bold=!0),bs(r,"i,em")&&(o.italic=!0),bs(r,"u")&&(o.underline=!0),bs(r,"s,strike")&&(o.through=!0),bs(r,"sub")&&(o.sub=!0),bs(r,"sup")&&(o.sup=!0),bs(r,"code")&&(o.code=!0),o}};function wp(t){return function(e,n,r){return jt("h"+t,null,n)}}var Cat={type:"header1",renderElem:wp(1)},Dat={type:"header2",renderElem:wp(2)},Oat={type:"header3",renderElem:wp(3)},Aat={type:"header4",renderElem:wp(4)},Tat={type:"header5",renderElem:wp(5)},Bat=n0.PROPER,b4=RegExp.prototype,dN=b4.toString,Pat=Nt(jk),Fat=qe(function(){return dN.call({source:"a",flags:"b"})!="/a/b"}),kat=Bat&&dN.name!="toString";(Fat||kat)&&cp(RegExp.prototype,"toString",function(){var t=Kr(this),e=tn(t.source),n=t.flags;return"/"+e+"/"+tn(n===void 0&&ak(b4,t)&&!("flags"in b4)?Pat(t):n)},{unsafe:!0});var w4,Nat=Gt.TypeError,pN=function(t){if($k(t))throw Nat("The method doesn't accept regular expressions");return t},Iat=Wr("match"),hN=function(t){var e=/./;try{"/./"[t](e)}catch{try{return e[Iat]=!1,"/./"[t](e)}catch{}}return!1},jat=Rx.f,gN=Nt("".startsWith),Rat=Nt("".slice),Lat=Math.min,vN=hN("startsWith");function mN(t){var e=de(D.nodes(t,{match:function(o){return P.getNodeType(o).startsWith("header")},universal:!0}),1),n=e[0];if(n==null)return"paragraph";var r=de(n,1)[0];return P.getNodeType(r)}function yN(t){return t.selection==null||!de(D.nodes(t,{match:function(e){var n=P.getNodeType(e);return n==="paragraph"||!!n.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function bN(t,e){e&&_.setNodes(t,{type:e})}Nn({target:"String",proto:!0,forced:!(!vN&&(w4=jat(String.prototype,"startsWith"),w4&&!w4.writable)||vN)},{startsWith:function(t){var e=tn(go(this));pN(t);var n=dp(Lat(arguments.length>1?arguments[1]:void 0,e.length)),r=tn(t);return gN?gN(e,r,n):Rat(e,n,n+r.length)===r}});var Mat=function(){function t(){this.title=lt("header.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M960 960c-51.2 0-102.4-3.2-153.6-3.2-51.2 0-99.2 3.2-150.4 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 57.6-28.8 86.4-48 19.2-12.8 19.2-60.8 19.2-80v-224-19.2c-9.6-3.2-19.2-3.2-28.8-3.2H320c-9.6 0-19.2 0-28.8 3.2V780.8c0 22.4 0 80 22.4 92.8 28.8 19.2 96-6.4 96 44.8 0 16-9.6 41.6-28.8 41.6-54.4 0-105.6-3.2-160-3.2-48 0-96 3.2-147.2 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 51.2-28.8 80-48 19.2-12.8 19.2-60.8 19.2-83.2V294.4c0-28.8 3.2-115.2-22.4-131.2-25.6-16-86.4 9.6-86.4-41.6 0-16 6.4-41.6 28.8-41.6 51.2 0 105.6 3.2 156.8 3.2 48 0 96-3.2 144-3.2 19.2 0 28.8 22.4 28.8 41.6 0 48-57.6 25.6-83.2 41.6-19.2 12.8-19.2 73.6-19.2 92.8v201.6c6.4 3.2 16 3.2 22.4 3.2h400c6.4 0 12.8 0 22.4-3.2V256c0-22.4 0-80-19.2-92.8-28.8-16-86.4 6.4-86.4-41.6 0-16 9.6-41.6 28.8-41.6 51.2 0 99.2 3.2 150.4 3.2 48 0 99.2-3.2 147.2-3.2 19.2 0 28.8 22.4 28.8 41.6 0 51.2-57.6 25.6-86.4 41.6-19.2 12.8-19.2 70.4-19.2 92.8v537.6c0 19.2 0 67.2 19.2 80 28.8 19.2 89.6-6.4 89.6 44.8 0 19.2-6.4 41.6-28.8 41.6z"></path></svg>',this.tag="select",this.width=60}return t.prototype.getOptions=function(e){var n=[{value:"header1",text:"H1",styleForRenderMenuList:{"font-size":"32px","font-weight":"bold"}},{value:"header2",text:"H2",styleForRenderMenuList:{"font-size":"24px","font-weight":"bold"}},{value:"header3",text:"H3",styleForRenderMenuList:{"font-size":"18px","font-weight":"bold"}},{value:"header4",text:"H4",styleForRenderMenuList:{"font-size":"16px","font-weight":"bold"}},{value:"header5",text:"H5",styleForRenderMenuList:{"font-size":"13px","font-weight":"bold"}},{value:"paragraph",text:lt("header.text")}],r=this.getValue(e).toString();return n.forEach(function(o){o.value===r?o.selected=!0:delete o.selected}),n},t.prototype.isActive=function(e){return!1},t.prototype.getValue=function(e){return mN(e)},t.prototype.isDisabled=function(e){return yN(e)},t.prototype.exec=function(e,n){bN(e,n.toString())},t}(),Ep=function(){function t(){this.tag="button"}return t.prototype.getValue=function(e){return mN(e)},t.prototype.isActive=function(e){return this.getValue(e)===this.type},t.prototype.isDisabled=function(e){return yN(e)},t.prototype.exec=function(e,n){var r=this.type;bN(e,n===r?"paragraph":r)},t}(),Vat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="H1",n.type="header1",n}return Ge(e,t),e}(Ep),zat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="H2",n.type="header2",n}return Ge(e,t),e}(Ep),Hat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="H3",n.type="header3",n}return Ge(e,t),e}(Ep),Uat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="H4",n.type="header4",n}return Ge(e,t),e}(Ep),_at=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="H5",n.type="header5",n}return Ge(e,t),e}(Ep),Gat={key:"headerSelect",factory:function(){return new Mat}},Wat={key:"header1",factory:function(){return new Vat}},Kat={key:"header2",factory:function(){return new zat}},Yat={key:"header3",factory:function(){return new Hat}},Xat={key:"header4",factory:function(){return new Uat}},Zat={key:"header5",factory:function(){return new _at}};function Sp(t){return function(e,n){return"<h"+t+">"+n+"</h"+t+">"}}function xp(t){return function(e,n,r){var o=F(e);return(n=n.filter(function(a){return!!vt.isText(a)||!!r.isInline(a)})).length===0&&(n=[{text:o.text().replace(/\s+/gm," ")}]),{type:"header"+t,children:n}}}var Jat={renderElems:[Cat,Dat,Oat,Aat,Tat],elemsToHtml:[{type:"header1",elemToHtml:Sp(1)},{type:"header2",elemToHtml:Sp(2)},{type:"header3",elemToHtml:Sp(3)},{type:"header4",elemToHtml:Sp(4)},{type:"header5",elemToHtml:Sp(5)}],parseElemsHtml:[{selector:"h1:not([data-w-e-type])",parseElemHtml:xp(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:xp(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:xp(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:xp(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:xp(5)}],menus:[Gat,Wat,Kat,Yat,Xat,Zat],editorPlugin:function(t){var e=t.insertBreak;t.insertNode;var n=t;return n.insertBreak=function(){var r=de(D.nodes(n,{match:function(o){return P.getNodeType(o).startsWith("header")},universal:!0}),1)[0];r&&P.isSelectionAtLineEnd(t,r[1])?_.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):e()},n}},Sc=Object.assign,wN=Object.defineProperty,Qat=Nt([].concat),EN=!Sc||qe(function(){if(Lo&&Sc({b:1},Sc(wN({},"a",{enumerable:!0,get:function(){wN(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(o){e[o]=o}),Sc({},t)[n]!=7||mc(Sc({},e)).join("")!=r})?function(t,e){for(var n=sp(t),r=arguments.length,o=1,a=Tk.f,i=ok.f;r>o;)for(var u,s=qm(arguments[o++]),l=a?Qat(mc(s),a(s)):mc(s),c=l.length,f=0;c>f;)u=l[f++],Lo&&!gn(i,s,u)||(n[u]=s[u]);return n}:Sc;function Es(t,e){t.data==null&&(t.data={});var n=t.data;n.style==null&&(n.style={}),Object.assign(n.style,e)}Nn({target:"Object",stat:!0,forced:Object.assign!==EN},{assign:EN});var $at={selector:"font",preParseHtml:function(t){var e=F(t);if(Ec(e)!=="font")return t;var n=e.attr("color")||"";return n&&(e.removeAttr("color"),e.css("color",n)),e[0]}},SN=function(){function t(){this.tag="button",this.showDropPanel=!0,this.$content=null}return t.prototype.exec=function(e,n){},t.prototype.getValue=function(e){var n=this.mark,r=D.marks(e);return r&&r[n]?r[n]:""},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(e){return e.selection==null||!!de(D.nodes(e,{match:function(n){return P.getNodeType(n)==="pre"||!!D.isVoid(e,n)},universal:!0}),1)[0]},t.prototype.getPanelContentElem=function(e){var n=this.mark;if(this.$content==null){var r=F('<ul class="w-e-panel-content-color"></ul>');r.on("click","li",function(l){var c=l.target;if(c!=null&&(l.preventDefault(),e.selection!=null)){var f=F(c).attr("data-value");f==="0"?D.removeMark(e,n):D.addMark(e,n,f)}}),this.$content=r}var o=this.$content;if(o==null)return document.createElement("ul");o.empty();var a=this.getValue(e),i=e.getMenuConfig(n).colors;(i===void 0?[]:i).forEach(function(l){var c=F('<div class="color-block" data-value="'+l+'"></div>');c.css("background-color",l);var f=F('<li data-value="'+l+'"></li>');a===l&&f.addClass("active"),f.append(c),o.append(f)});var u="";n==="color"&&(u=lt("color.default")),n==="bgColor"&&(u=lt("color.clear"));var s=F(`
106
+ <li data-value="0" class="clear">
107
+ <svg viewBox="0 0 1024 1024"><path d="M236.8 128L896 787.2V128H236.8z m614.4 704L192 172.8V832h659.2zM192 64h704c38.4 0 64 25.6 64 64v704c0 38.4-25.6 64-64 64H192c-38.4 0-64-25.6-64-64V128c0-38.4 25.6-64 64-64z"></path></svg>
108
+ `+u+`
109
+ </li>
110
+ `);return o.prepend(s),o[0]},t}(),qat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=lt("color.color"),n.iconSvg=rat,n.mark="color",n}return Ge(e,t),e}(SN),tut=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=lt("color.bgColor"),n.iconSvg=oat,n.mark="bgColor",n}return Ge(e,t),e}(SN),xN=["rgb(0, 0, 0)","rgb(38, 38, 38)","rgb(89, 89, 89)","rgb(140, 140, 140)","rgb(191, 191, 191)","rgb(217, 217, 217)","rgb(233, 233, 233)","rgb(245, 245, 245)","rgb(250, 250, 250)","rgb(255, 255, 255)","rgb(225, 60, 57)","rgb(231, 95, 51)","rgb(235, 144, 58)","rgb(245, 219, 77)","rgb(114, 192, 64)","rgb(89, 191, 192)","rgb(66, 144, 247)","rgb(54, 88, 226)","rgb(106, 57, 201)","rgb(216, 68, 147)","rgb(251, 233, 230)","rgb(252, 237, 225)","rgb(252, 239, 212)","rgb(252, 251, 207)","rgb(231, 246, 213)","rgb(218, 244, 240)","rgb(217, 237, 250)","rgb(224, 232, 250)","rgb(237, 225, 248)","rgb(246, 226, 234)","rgb(255, 163, 158)","rgb(255, 187, 150)","rgb(255, 213, 145)","rgb(255, 251, 143)","rgb(183, 235, 143)","rgb(135, 232, 222)","rgb(145, 213, 255)","rgb(173, 198, 255)","rgb(211, 173, 247)","rgb(255, 173, 210)","rgb(255, 77, 79)","rgb(255, 122, 69)","rgb(255, 169, 64)","rgb(255, 236, 61)","rgb(115, 209, 61)","rgb(54, 207, 201)","rgb(64, 169, 255)","rgb(89, 126, 247)","rgb(146, 84, 222)","rgb(247, 89, 171)","rgb(207, 19, 34)","rgb(212, 56, 13)","rgb(212, 107, 8)","rgb(212, 177, 6)","rgb(56, 158, 13)","rgb(8, 151, 156)","rgb(9, 109, 217)","rgb(29, 57, 196)","rgb(83, 29, 171)","rgb(196, 29, 127)","rgb(130, 0, 20)","rgb(135, 20, 0)","rgb(135, 56, 0)","rgb(97, 71, 0)","rgb(19, 82, 0)","rgb(0, 71, 79)","rgb(0, 58, 140)","rgb(6, 17, 120)","rgb(34, 7, 94)","rgb(120, 6, 80)"],eut={renderStyle:function(t,e){var n=t,r=n.color,o=n.bgColor,a=e;return r&&Es(a,{color:r}),o&&Es(a,{backgroundColor:o}),a},styleToHtml:function(t,e){if(!vt.isText(t))return e;var n,r=t,o=r.color,a=r.bgColor;return o||a?((p4(e)||Ec(n=F(e))!=="span")&&(n=F("<span>"+e+"</span>")),o&&n.css("color",o),a&&n.css("background-color",a),wc(n)):e},preParseHtml:[$at],parseStyleHtml:function(t,e,n){var r=F(t);if(!vt.isText(e))return e;var o=e,a=Mo(r,"color");a&&(o.color=a);var i=Mo(r,"background-color");return i||(i=Mo(r,"background")),i&&(o.bgColor=i),o},menus:[{key:"color",factory:function(){return new qat},config:{colors:xN}},{key:"bgColor",factory:function(){return new tut},config:{colors:xN}}]},nut=/^(?:\w+:)?\/\/(\S+)$/,rut=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,out=/^[^\s\.]+\.\S{2,}$/,iut=Dk.includes;function d0(t){return t===void 0&&(t="r"),t+"-"+A9()}function E4(t){return t.replace(/</g,"&lt;").replace(/>/g,"&gt;")}function CN(t,e,n,r){return Ma(this,void 0,void 0,function(){var o,a;return Va(this,function(i){switch(i.label){case 0:return(o=e.getMenuConfig(t).checkLink)?[4,o(n,r)]:[3,2];case 1:if(typeof(a=i.sent())=="string")return e.alert(a,"error"),[2,!1];if(a==null)return[2,!1];i.label=2;case 2:return[2,!0]}})})}function DN(t,e,n){return Ma(this,void 0,void 0,function(){var r;return Va(this,function(o){switch(o.label){case 0:return(r=e.getMenuConfig(t).parseLinkUrl)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}})})}function S4(t){return t.selection==null||!!P.getSelectedElems(t).some(function(e){var n=e.type;return!!t.isVoid(e)||!!["pre","code","link"].includes(n)||void 0})}function x4(t,e){return{type:"link",url:E4(t),children:e?[{text:e}]:[]}}function ON(t,e,n){return Ma(this,void 0,void 0,function(){var r,o,a;return Va(this,function(i){switch(i.label){case 0:return n?(e||(e=n),t.restoreSelection(),S4(t)?[2]:[4,CN("insertLink",t,e,n)]):[2];case 1:return i.sent()?[4,DN("insertLink",t,n)]:[2];case 2:return r=i.sent(),(o=t.selection)==null||($.isCollapsed(o)?(t.insertText(" "),a=x4(r,e),_.insertNodes(t,a),t.insertFragment([{text:" "}])):D.string(t,o)!==e?(t.deleteFragment(),a=x4(r,e),_.insertNodes(t,a)):(a=x4(r),_.wrapNodes(t,a,{split:!0}),_.collapse(t,{edge:"end"}))),[2]}})})}Nn({target:"Array",proto:!0},{includes:function(t){return iut(this,t,arguments.length>1?arguments[1]:void 0)}}),Jk("includes");var aut={type:"link",renderElem:function(t,e,n){var r=t,o=r.url,a=r.target;return jt("a",{href:o,target:a===void 0?"_blank":a},e)}},uut={selector:"a:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=F(t);return(e=e.filter(function(o){return!!vt.isText(o)||!!n.isInline(o)})).length===0&&(e=[{text:r.text().replace(/\s+/gm," ")}]),{type:"link",url:r.attr("href")||"",target:r.attr("target")||"",children:e}}};function C4(){return d0("w-e-insert-link")}var sut=function(){function t(){this.title=lt("link.insert"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M440.224 635.776a51.84 51.84 0 0 1-36.768-15.232c-95.136-95.136-95.136-249.92 0-345.056l192-192C641.536 37.408 702.816 12.032 768 12.032s126.432 25.376 172.544 71.456c95.136 95.136 95.136 249.92 0 345.056l-87.776 87.776a51.968 51.968 0 1 1-73.536-73.536l87.776-87.776a140.16 140.16 0 0 0 0-197.984c-26.432-26.432-61.6-40.992-99.008-40.992s-72.544 14.56-99.008 40.992l-192 192a140.16 140.16 0 0 0 0 197.984 51.968 51.968 0 0 1-36.768 88.768z"></path><path d="M256 1012a242.4 242.4 0 0 1-172.544-71.456c-95.136-95.136-95.136-249.92 0-345.056l87.776-87.776a51.968 51.968 0 1 1 73.536 73.536l-87.776 87.776a140.16 140.16 0 0 0 0 197.984c26.432 26.432 61.6 40.992 99.008 40.992s72.544-14.56 99.008-40.992l192-192a140.16 140.16 0 0 0 0-197.984 51.968 51.968 0 1 1 73.536-73.536c95.136 95.136 95.136 249.92 0 345.056l-192 192A242.4 242.4 0 0 1 256 1012z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.textInputId=C4(),this.urlInputId=C4(),this.buttonId=C4()}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){},t.prototype.isDisabled=function(e){return S4(e)},t.prototype.getModalPositionNode=function(e){return null},t.prototype.getModalContentElem=function(e){var n=e.selection,r=this,o=r.textInputId,a=r.urlInputId,i=r.buttonId,u=de(_r(lt("link.text"),o),2),s=u[0],l=F(u[1]),c=de(_r(lt("link.url"),a),2),f=c[0],d=F(c[1]),p=de(lc(i,lt("common.ok")),1)[0];if(this.$content==null){var m=F("<div></div>");m.on("click","#"+i,function(y){y.preventDefault();var g=m.find("#"+o).val(),w=m.find("#"+a).val();ON(e,g,w),e.hidePanelOrModal()}),this.$content=m}var h=this.$content;if(h.empty(),h.append(s),h.append(f),h.append(p),n==null||$.isCollapsed(n))l.val("");else{var v=D.string(e,n);l.val(v)}return d.val(""),setTimeout(function(){l.focus()}),h[0]},t}();function AN(){return d0("w-e-update-link")}var lut=function(){function t(){this.title=lt("link.edit"),this.iconSvg=cN,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=AN(),this.buttonId=AN()}return t.prototype.getSelectedLinkElem=function(e){var n=P.getSelectedNodeByType(e,"link");return n??null},t.prototype.getValue=function(e){var n=this.getSelectedLinkElem(e);return n&&n.url||""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){},t.prototype.isDisabled=function(e){return e.selection==null||this.getSelectedLinkElem(e)==null},t.prototype.getModalPositionNode=function(e){return P.getSelectedNodeByType(e,"link")},t.prototype.getModalContentElem=function(e){var n=this.urlInputId,r=this.buttonId,o=de(_r(lt("link.url"),n),2),a=o[0],i=F(o[1]),u=de(lc(r,lt("common.ok")),1)[0];if(this.$content==null){var s=F("<div></div>");s.on("click","button",function(f){f.preventDefault(),e.restoreSelection();var d=P.getSelectedNodeByType(e,"link"),p=d?st.string(d):"",m=s.find("#"+n).val();(function(h,v,y){Ma(this,void 0,void 0,function(){var g,w;return Va(this,function(E){switch(E.label){case 0:return y?[4,CN("editLink",h,v,y)]:[2];case 1:return E.sent()?[4,DN("editLink",h,y)]:[2];case 2:return g=E.sent(),w={url:E4(g)},_.setNodes(h,w,{match:function(x){return P.checkNodeType(x,"link")}}),[2]}})})})(e,p,m),e.hidePanelOrModal()}),this.$content=s}var l=this.$content;l.empty(),l.append(a),l.append(u);var c=this.getValue(e);return i.val(c),setTimeout(function(){i.focus()}),l[0]},t}(),cut=function(){function t(){this.title=lt("link.unLink"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M608.16328 811.815036c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.347563 89.347564c-118.525421 118.523421-311.38448 118.531421-429.919901 0-118.527421-118.529421-118.527421-311.39048 0-429.917901l89.349564-89.349563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.195613 79.195613c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.349563 89.347564c-56.143726 56.145726-56.143726 147.49928 0 203.645005 56.143726 56.143726 147.49928 56.145726 203.647005 0l89.347564-89.347563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.193613 79.195613z m-113.135447-520.429459c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.347564-89.347564c56.143726-56.149726 147.49928-56.145726 203.647006 0 56.143726 56.145726 56.143726 147.49928 0 203.645006l-89.349564 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.195613 79.195613c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.349564-89.349563c118.529421-118.529421 118.529421-311.38848 0-429.917901-118.531421-118.527421-311.38848-118.527421-429.919901 0l-89.347563 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.193613 79.195613z m469.653707 718.556492l45.253779-45.253779c18.745908-18.745908 18.745908-49.13776 0-67.881669L127.195629 14.062931c-18.745908-18.745908-49.13776-18.745908-67.881669 0L14.058181 59.31871c-18.745908 18.745908-18.745908 49.13776 0 67.881669l882.74169 882.74169c18.745908 18.743908 49.13776 18.743908 67.881669 0z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||P.getSelectedNodeByType(e,"link")==null},t.prototype.exec=function(e,n){this.isDisabled(e)||_.unwrapNodes(e,{match:function(r){return P.checkNodeType(r,"link")}})},t}(),fut=function(){function t(){this.title=lt("link.view"),this.iconSvg=fN,this.tag="button"}return t.prototype.getSelectedLinkElem=function(e){var n=P.getSelectedNodeByType(e,"link");return n??null},t.prototype.getValue=function(e){var n=this.getSelectedLinkElem(e);return n&&n.url||""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||this.getSelectedLinkElem(e)==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){if(!n||typeof n!="string")throw new Error("View link failed, link url is '"+n+"'");window.open(n,"_blank")}},t}(),TN={checkLink:function(t,e){return!0},parseLinkUrl:function(t){return t}},dut={renderElems:[aut],elemsToHtml:[{type:"link",elemToHtml:function(t,e){var n=t,r=n.url,o=n.target;return'<a href="'+r+'" target="'+(o===void 0?"_blank":o)+'">'+e+"</a>"}}],parseElemsHtml:[uut],menus:[{key:"insertLink",factory:function(){return new sut},config:TN},{key:"editLink",factory:function(){return new lut},config:TN},{key:"unLink",factory:function(){return new cut}},{key:"viewLink",factory:function(){return new fut}}],editorPlugin:function(t){var e=t.isInline,n=t.insertData,r=t.normalizeNode;t.insertNode,t.insertText;var o=t;return o.isInline=function(a){return a.type==="link"||e(a)},o.insertData=function(a){var i=a.getData("text/plain");if(function(l){if(typeof l!="string")return!1;var c=l.match(nut);if(!c)return!1;var f=c[1];return!(!f||!rut.test(f)&&!out.test(f))}(i)){if(!S4(o)){var u=o.selection;if(u!=null){var s=D.string(o,u);ON(o,s,i)}}}else n(a)},o.normalizeNode=function(a){var i=de(a,2),u=i[0],s=i[1];return P.getNodeType(u)!=="link"?r([u,s]):st.string(u)===""?_.removeNodes(o,{at:s}):r([u,s])},o}},put=Nt(1 .valueOf),hut=Gt.RangeError,gut=Gt.RangeError,BN=Gt.String,PN=Math.floor,D4=Nt(function(t){var e=tn(go(this)),n="",r=vc(t);if(r<0||r==1/0)throw hut("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(e+=e))1&r&&(n+=e);return n}),FN=Nt("".slice),Cp=Nt(1 .toFixed),xc=function(t,e,n){return e===0?n:e%2==1?xc(t,e-1,n*t):xc(t*t,e/2,n)},Cc=function(t,e,n){for(var r=-1,o=n;++r<6;)o+=e*t[r],t[r]=o%1e7,o=PN(o/1e7)},O4=function(t,e){for(var n=6,r=0;--n>=0;)r+=t[n],t[n]=PN(r/e),r=r%e*1e7},kN=function(t){for(var e=6,n="";--e>=0;)if(n!==""||e===0||t[e]!==0){var r=BN(t[e]);n=n===""?r:n+D4("0",7-r.length)+r}return n};function NN(t,e){return"w-e-image-container-"+P.findKey(t,e).id}Nn({target:"Number",proto:!0,forced:qe(function(){return Cp(8e-5,3)!=="0.000"||Cp(.9,0)!=="1"||Cp(1.255,2)!=="1.25"||Cp(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!qe(function(){Cp({})})},{toFixed:function(t){var e,n,r,o,a=put(this),i=vc(t),u=[0,0,0,0,0,0],s="",l="0";if(i<0||i>20)throw gut("Incorrect fraction digits");if(a!=a)return"NaN";if(a<=-1e21||a>=1e21)return BN(a);if(a<0&&(s="-",a=-a),a>1e-21)if(n=(e=function(c){for(var f=0,d=c;d>=4096;)f+=12,d/=4096;for(;d>=2;)f+=1,d/=2;return f}(a*xc(2,69,1))-69)<0?a*xc(2,-e,1):a/xc(2,e,1),n*=4503599627370496,(e=52-e)>0){for(Cc(u,0,n),r=i;r>=7;)Cc(u,1e7,0),r-=7;for(Cc(u,xc(10,r,1),0),r=e-1;r>=23;)O4(u,1<<23),r-=23;O4(u,1<<r),Cc(u,1,1),O4(u,2),l=kN(u)}else Cc(u,0,n),Cc(u,1<<-e,0),l=kN(u)+D4("0",i);return i>0?s+((o=l.length)<=i?"0."+D4("0",i-o)+l:FN(l,0,o-i)+"."+FN(l,o-i)):s+l}});var vut={type:"image",renderElem:function(t,e,n){var r=t,o=r.src,a=r.alt,i=a===void 0?"":a,u=r.href,s=u===void 0?"":u,l=r.style,c=l===void 0?{}:l,f=c.width,d=f===void 0?"":f,p=c.height,m=p===void 0?"":p,h=P.isNodeSelected(n,t),v={};d&&(v.width="100%"),m&&(v.height="100%");var y=jt("img",{style:v,src:o,alt:i,"data-href":s}),g=n.isDisabled();return h&&!g?function(w,E,x,S){var C=F("body"),T=NN(w,E),A=S.width,k=S.height,M=0,H=0,N=0,j=!1,G=null;function V(W){G=function(){var I=F("#"+T);if(I.length===0)throw new Error("Cannot find image container elem");return I}(),M=W;var O=G.find("img");if(O.length===0)throw new Error("Cannot find image elem");H=O.width(),N=O.height(),C.on("mousemove",J),C.on("mouseup",rt);var B=P.getHoverbar(w);B&&B.hideAndClean()}var J=Zu(function(W){W.preventDefault();var O=W.clientX,B=H+(j?M-O:O-M),I=N*(B/H);G!=null&&(B<=15||I<=15||(G.css("width",B+"px"),G.css("height",I+"px")))},100);function rt(W){if(C.off("mousemove",J),G!=null){var O=G.width().toFixed(2),B=G.height().toFixed(2),I={style:La(La({},E.style),{width:O+"px",height:B+"px"})};_.setNodes(w,I,{at:P.findPath(w,E)}),C.off("mouseup",rt)}}var it={};return A&&(it.width=A),k&&(it.height=k),jt("div",{id:T,style:it,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(W){var O=F(W.target);O.hasClass("w-e-image-dragger")&&(W.preventDefault(),(O.hasClass("left-top")||O.hasClass("left-bottom"))&&(j=!0),V(W.clientX))}}},x,jt("div",{className:"w-e-image-dragger left-top"}),jt("div",{className:"w-e-image-dragger right-top"}),jt("div",{className:"w-e-image-dragger left-bottom"}),jt("div",{className:"w-e-image-dragger right-bottom"}))}(n,t,y,{width:d,height:m}):function(w,E,x,S){var C=S.width,T=S.height,A={};return C&&(A.width=C),T&&(A.height=T),jt("div",{id:NN(w,E),style:A,className:"w-e-image-container"},x)}(n,t,y,{width:d,height:m})}},mut={selector:"img:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=F(t),o=r.attr("data-href")||"";return o=decodeURIComponent(o),{type:"image",src:r.attr("src")||"",alt:r.attr("alt")||"",href:o,style:{width:Mo(r,"width"),height:Mo(r,"height")},children:[{text:""}]}}};function IN(t,e,n,r,o){return r===void 0&&(r=""),o===void 0&&(o=""),Ma(this,void 0,void 0,function(){var a,i;return Va(this,function(u){switch(u.label){case 0:return(a=e.getMenuConfig(t).checkImage)?[4,a(n,r,o)]:[3,2];case 1:if(typeof(i=u.sent())=="string")return e.alert(i,"error"),[2,!1];if(i==null)return[2,!1];u.label=2;case 2:return[2,!0]}})})}function jN(t,e,n){return Ma(this,void 0,void 0,function(){var r;return Va(this,function(o){switch(o.label){case 0:return(r=e.getMenuConfig(t).parseImageSrc)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}})})}function Ss(t,e,n,r){return n===void 0&&(n=""),r===void 0&&(r=""),Ma(this,void 0,void 0,function(){var o,a,i;return Va(this,function(u){switch(u.label){case 0:return[4,IN("insertImage",t,e,n,r)];case 1:return u.sent()?[4,jN("insertImage",t,e)]:[2];case 2:return o=u.sent(),a={type:"image",src:E4(o),href:r,alt:n,style:{},children:[{text:""}]},t.selection===null&&t.restoreSelection(),P.getSelectedNodeByType(t,"image")&&t.move(1),p0(t)||(_.insertNodes(t,a),(i=t.getMenuConfig("insertImage").onInsertedImage)&&i(a)),[2]}})})}function p0(t){var e=t.selection;return e==null||!$.isCollapsed(e)||!!de(D.nodes(t,{match:function(n){var r=P.getNodeType(n);return r==="code"||r==="pre"||r==="link"||r==="list-item"||!!r.startsWith("header")||r==="blockquote"||!!D.isVoid(t,n)},universal:!0}),1)[0]}function h0(){return d0("w-e-insert-image")}var yut=function(){function t(){this.title=lt("image.netImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=h0(),this.altInputId=h0(),this.hrefInputId=h0(),this.buttonId=h0()}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){},t.prototype.isDisabled=function(e){return p0(e)},t.prototype.getModalPositionNode=function(e){return null},t.prototype.getModalContentElem=function(e){var n=this,r=this,o=r.srcInputId,a=r.altInputId,i=r.hrefInputId,u=r.buttonId,s=de(_r(lt("image.src"),o),2),l=s[0],c=F(s[1]),f=de(_r(lt("image.desc"),a),2),d=f[0],p=F(f[1]),m=de(_r(lt("image.link"),i),2),h=m[0],v=F(m[1]),y=de(lc(u,lt("common.ok")),1)[0];if(this.$content==null){var g=F("<div></div>");g.on("click","#"+u,function(E){E.preventDefault();var x=g.find("#"+o).val().trim(),S=g.find("#"+a).val().trim(),C=g.find("#"+i).val().trim();n.insertImage(e,x,S,C),e.hidePanelOrModal()}),this.$content=g}var w=this.$content;return w.empty(),w.append(l),w.append(d),w.append(h),w.append(y),c.val(""),p.val(""),v.val(""),setTimeout(function(){c.focus()}),w[0]},t.prototype.insertImage=function(e,n,r,o){r===void 0&&(r=""),o===void 0&&(o=""),n&&(e.restoreSelection(),this.isDisabled(e)||Ss(e,n,r,o))},t}(),but=function(){function t(){this.title=lt("image.delete"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||P.getSelectedNodeByType(e,"image")==null},t.prototype.exec=function(e,n){this.isDisabled(e)||_.removeNodes(e,{match:function(r){return P.checkNodeType(r,"image")}})},t}();function g0(){return d0("w-e-edit-image")}var wut=function(){function t(){this.title=lt("image.edit"),this.iconSvg=cN,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=g0(),this.altInputId=g0(),this.hrefInputId=g0(),this.buttonId=g0()}return t.prototype.getValue=function(e){return""},t.prototype.getImageNode=function(e){return P.getSelectedNodeByType(e,"image")},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!$.isCollapsed(n)||P.getSelectedNodeByType(e,"image")==null},t.prototype.getModalPositionNode=function(e){return this.getImageNode(e)},t.prototype.getModalContentElem=function(e){var n=this,r=this,o=r.srcInputId,a=r.altInputId,i=r.hrefInputId,u=r.buttonId,s=this.getImageNode(e);if(s==null)throw new Error("Not found selected image node");var l=de(_r(lt("image.src"),o),2),c=l[0],f=F(l[1]),d=de(_r(lt("image.desc"),a),2),p=d[0],m=F(d[1]),h=de(_r(lt("image.link"),i),2),v=h[0],y=F(h[1]),g=de(lc(u,lt("common.ok")),1)[0];if(this.$content==null){var w=F("<div></div>");w.on("click","#"+u,function(M){M.preventDefault();var H=w.find("#"+o).val(),N=w.find("#"+a).val(),j=w.find("#"+i).val();n.updateImage(e,H,N,j),e.hidePanelOrModal()}),this.$content=w}var E=this.$content;E.empty(),E.append(c),E.append(p),E.append(v),E.append(g);var x=s,S=x.src,C=x.alt,T=C===void 0?"":C,A=x.href,k=A===void 0?"":A;return f.val(S),m.val(T),y.val(k),setTimeout(function(){f.focus()}),E[0]},t.prototype.updateImage=function(e,n,r,o,a){r===void 0&&(r=""),o===void 0&&(o=""),a===void 0&&(a={}),n&&(e.restoreSelection(),this.isDisabled(e)||function(i,u,s,l,c){s===void 0&&(s=""),l===void 0&&(l=""),c===void 0&&(c={}),Ma(this,void 0,void 0,function(){var f,d,p,m,h,v;return Va(this,function(y){switch(y.label){case 0:return[4,IN("editImage",i,u,s,l)];case 1:return y.sent()?[4,jN("editImage",i,u)]:[2];case 2:return f=y.sent(),(d=P.getSelectedNodeByType(i,"image"))==null||(p=d.style,m={src:f,alt:s,href:l,style:La(La({},p===void 0?{}:p),c)},_.setNodes(i,m,{match:function(g){return P.checkNodeType(g,"image")}}),h=P.getSelectedNodeByType(i,"image"),(v=i.getMenuConfig("editImage").onUpdatedImage)&&v(h)),[2]}})})}(e,n,r,o,a))},t}(),Eut=function(){function t(){this.title=lt("image.viewLink"),this.iconSvg=fN,this.tag="button"}return t.prototype.getValue=function(e){var n=P.getSelectedNodeByType(e,"image");return n&&n.href||""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||!this.getValue(e)},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){if(!n||typeof n!="string")throw new Error("View image link failed, image.href is '"+n+"'");window.open(n,"_blank")}},t}(),A4=function(){function t(){this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.getSelectedNode=function(e){return P.getSelectedNodeByType(e,"image")},t.prototype.isDisabled=function(e){return e.selection==null||this.getSelectedNode(e)==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=this.getSelectedNode(e);if(r!=null){var o=P.getHoverbar(e);o&&o.hideAndClean();var a=r.style,i={style:La(La({},a===void 0?{}:a),{width:this.value,height:""})};_.setNodes(e,i,{match:function(u){return P.checkNodeType(u,"image")}})}}},t}(),Sut=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="30%",n.value="30%",n}return Ge(e,t),e}(A4),xut=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="50%",n.value="50%",n}return Ge(e,t),e}(A4),Cut=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="100%",n.value="100%",n}return Ge(e,t),e}(A4),RN={onInsertedImage:function(t){},onUpdatedImage:function(t){},checkImage:function(t,e,n){return!0},parseImageSrc:function(t){return t}},Dut={renderElems:[vut],elemsToHtml:[{type:"image",elemToHtml:function(t,e){var n=t,r=n.src,o=n.alt,a=o===void 0?"":o,i=n.href,u=i===void 0?"":i,s=n.style,l=s===void 0?{}:s,c=l.width,f=c===void 0?"":c,d=l.height,p=d===void 0?"":d,m="";return f&&(m+="width: "+f+";"),p&&(m+="height: "+p+";"),'<img src="'+r+'" alt="'+a+'" data-href="'+u+'" style="'+m+'"/>'}}],parseElemsHtml:[mut],menus:[{key:"insertImage",factory:function(){return new yut},config:RN},{key:"deleteImage",factory:function(){return new but}},{key:"editImage",factory:function(){return new wut},config:RN},{key:"viewImageLink",factory:function(){return new Eut}},{key:"imageWidth30",factory:function(){return new Sut}},{key:"imageWidth50",factory:function(){return new xut}},{key:"imageWidth100",factory:function(){return new Cut}}],editorPlugin:function(t){var e=t.isInline,n=t.isVoid;t.insertNode;var r=t;return r.isInline=function(o){return o.type==="image"||e(o)},r.isVoid=function(o){return o.type==="image"||n(o)},r}},Out={type:"todo",renderElem:function(t,e,n){var r=!1;n.isDisabled()&&(r=!0);var o=jt("div",{style:{margin:"5px 0"}},jt("span",{contentEditable:!1,style:{marginRight:"0.5em"}},jt("input",{type:"checkbox",checked:t.checked,disabled:r,on:{change:function(a){var i=P.findPath(n,t),u={checked:a.target.checked};_.setNodes(n,u,{at:i})}}})),jt("span",null,e));return o}},Aut=function(){function t(){this.title=lt("todo.todo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M278.755556 403.911111l-79.644445 79.644445L455.111111 739.555556l568.888889-568.888889-79.644444-79.644445L455.111111 580.266667l-176.355555-176.355556zM910.222222 910.222222H113.777778V113.777778h568.888889V0H113.777778C51.2 0 0 51.2 0 113.777778v796.444444c0 62.577778 51.2 113.777778 113.777778 113.777778h796.444444c62.577778 0 113.777778-51.2 113.777778-113.777778V455.111111h-113.777778v455.111111z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!!P.getSelectedNodeByType(e,"todo")},t.prototype.isDisabled=function(e){return e.selection==null||!!P.getSelectedElems(e).some(function(n){if(D.isVoid(e,n)&&D.isBlock(e,n))return!0;var r=n.type;return!!["pre","table","list-item"].includes(r)||void 0})},t.prototype.exec=function(e,n){var r=this.isActive(e);_.setNodes(e,{type:r?"paragraph":"todo"})},t}(),Tut={selector:'div[data-w-e-type="todo"]',parseElemHtml:function(t,e,n){var r=F(t);(e=e.filter(function(a){return!!vt.isText(a)||!!n.isInline(a)})).length===0&&(e=[{text:r.text().replace(/\s+/gm," ")}]);var o=!1;return r.find('input[type="checkbox"]').attr("checked")!=null&&(o=!0),{type:"todo",checked:o,children:e}}},But={renderElems:[Out],elemsToHtml:[{type:"todo",elemToHtml:function(t,e){return'<div data-w-e-type="todo"><input type="checkbox" disabled '+(t.checked?"checked":"")+">"+e+"</div>"}}],preParseHtml:[{selector:"ul.w-e-todo",preParseHtml:function(t){var e=F(t).find("li"),n=F('<div data-w-e-type="todo"></div>'),r=e.find("input[type]");return n.append(r),e.children()[0].remove(),n[0].innerHTML=n[0].innerHTML+e[0].innerHTML,n[0]}}],parseElemsHtml:[Tut],menus:[{key:"todo",factory:function(){return new Aut}}],editorPlugin:function(t){var e=t.deleteBackward,n=t;return n.deleteBackward=function(r){var o=t.selection;if(o&&$.isCollapsed(o)){var a=P.getSelectedNodeByType(t,"todo");if(a&&st.string(a).length===0)return void _.setNodes(t,{type:"paragraph"},{mode:"highest"})}e(r)},n}},Put={type:"blockquote",renderElem:function(t,e,n){return jt("blockquote",null,e)}},Fut={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=F(t);return(e=e.filter(function(o){return!!vt.isText(o)||!!n.isInline(o)})).length===0&&(e=[{text:r.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:e}}},kut=function(){function t(){this.title=lt("blockQuote.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M894.6 907.1H605.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C752.7 180.4 711.3 315.8 711.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z m-472 0H133.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C280.7 180.4 239.3 315.8 239.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!!P.getSelectedNodeByType(e,"blockquote")},t.prototype.isDisabled=function(e){return e.selection==null||!de(D.nodes(e,{match:function(n){var r=P.getNodeType(n);return r==="paragraph"||r==="blockquote"},universal:!0,mode:"highest"}),1)[0]},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=this.isActive(e)?"paragraph":"blockquote";_.setNodes(e,{type:r},{mode:"highest"})}},t}(),Nut={key:"blockquote",factory:function(){return new kut}},Iut=Nt([].slice),jut=Yx("slice"),Rut=Wr("species"),T4=Gt.Array,Lut=Math.max;Nn({target:"Array",proto:!0,forced:!jut},{slice:function(t,e){var n,r,o,a=dc(this),i=r0(a),u=fp(t,i),s=fp(e===void 0?i:e,i);if(i0(a)&&(n=a.constructor,(Kx(n)&&(n===T4||i0(n.prototype))||si(n)&&(n=n[Rut])===null)&&(n=void 0),n===T4||n===void 0))return Iut(a,u,s);for(r=new(n===void 0?T4:n)(Lut(s-u,0)),o=0;u<s;u++,o++)u in a&&qk(r,o,a[u]);return r.length=o,r}});var Mut={renderElems:[Put],elemsToHtml:[{type:"blockquote",elemToHtml:function(t,e){return"<blockquote>"+e+"</blockquote>"}}],parseElemsHtml:[Fut],menus:[Nut],editorPlugin:function(t){var e=t.insertBreak,n=t.insertText,r=t;return r.insertBreak=function(){var o=r.selection;if(o==null)return e();var a=de(D.nodes(t,{match:function(c){return P.checkNodeType(c,"blockquote")},universal:!0}),1)[0];if(!a)return e();var i=a[0],u=P.findPath(t,i),s=D.end(t,u);if(Zt.equals(s,o.focus)){var l=st.string(i);if(l&&l.slice(-1)===`
111
+ `)return t.deleteBackward("character"),void _.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}n(`
112
+ `)},r}},Vut=function(){function t(){this.title=lt("emotion.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 1024C230.4 1024 0 793.6 0 512S230.4 0 512 0s512 230.4 512 512-230.4 512-512 512z m0-102.4c226.742857 0 409.6-182.857143 409.6-409.6S738.742857 102.4 512 102.4 102.4 285.257143 102.4 512s182.857143 409.6 409.6 409.6z m-204.8-358.4h409.6c0 113.371429-91.428571 204.8-204.8 204.8s-204.8-91.428571-204.8-204.8z m0-102.4c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8 76.8 32.914286 76.8 76.8-32.914286 76.8-76.8 76.8z m409.6 0c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8c43.885714 0 76.8 32.914286 76.8 76.8s-32.914286 76.8-76.8 76.8z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return t.prototype.exec=function(e,n){},t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||!!de(D.nodes(e,{match:function(n){return P.getNodeType(n)==="pre"||!!D.isVoid(e,n)},universal:!0}),1)[0]},t.prototype.getPanelContentElem=function(e){if(this.$content==null){var n=F('<ul class="w-e-panel-content-emotion"></ul>');n.on("click","li",function(a){var i=a.target;if(i!=null){a.preventDefault();var u=F(i).text();e.insertText(u)}}),this.$content=n}var r=this.$content;if(r==null)return document.createElement("ul");r.empty();var o=e.getMenuConfig("emotion").emotions;return(o===void 0?[]:o).forEach(function(a){var i=F("<li>"+a+"</li>");r.append(i)}),r[0]},t}(),zut={menus:[{key:"emotion",factory:function(){return new Vut},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},Hut={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},Uut={selector:"font",preParseHtml:function(t){var e=F(t);if(Ec(e)!=="font")return t;var n=e.attr("size")||"";n&&(e.removeAttr("size"),e.css("font-size",Hut[n]));var r=e.attr("face")||"";return r&&(e.removeAttr("face"),e.css("font-family",r)),e[0]}},_ut=Nt("".indexOf);Nn({target:"String",proto:!0,forced:!hN("includes")},{includes:function(t){return!!~_ut(tn(go(this)),tn(pN(t)),arguments.length>1?arguments[1]:void 0)}});var za,v0,m0=function(t){return t&&t.Math==Math&&t},Qt=m0(typeof globalThis=="object"&&globalThis)||m0(typeof window=="object"&&window)||m0(typeof self=="object"&&self)||m0(typeof Zm=="object"&&Zm)||function(){return this}()||Function("return this")(),B4=Function.prototype,LN=B4.apply,Gut=B4.bind,MN=B4.call,VN=typeof Reflect=="object"&&Reflect.apply||(Gut?MN.bind(LN):function(){return MN.apply(LN,arguments)}),zN=Function.prototype,P4=zN.bind,F4=zN.call,Wut=P4&&P4.bind(F4),sn=P4?function(t){return t&&Wut(F4,t)}:function(t){return t&&function(){return F4.apply(t,arguments)}},ar=function(t){return typeof t=="function"},Yr=function(t){try{return!!t()}catch{return!0}},Ar=!Yr(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Dp=Function.prototype.call,li=Dp.bind?Dp.bind(Dp):function(){return Dp.apply(Dp,arguments)},HN={}.propertyIsEnumerable,UN=Object.getOwnPropertyDescriptor,Kut=UN&&!HN.call({1:2},1)?function(t){var e=UN(this,t);return!!e&&e.enumerable}:HN,k4={f:Kut},xs=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},Yut=sn({}.toString),Xut=sn("".slice),Cs=function(t){return Xut(Yut(t),8,-1)},N4=Qt.Object,Zut=sn("".split),_N=Yr(function(){return!N4("z").propertyIsEnumerable(0)})?function(t){return Cs(t)=="String"?Zut(t,""):N4(t)}:N4,Jut=Qt.TypeError,I4=function(t){if(t==null)throw Jut("Can't call method on "+t);return t},ci=function(t){return _N(I4(t))},Vo=function(t){return typeof t=="object"?t!==null:ar(t)},mo={},GN=function(t){return ar(t)?t:void 0},Op=function(t,e){return arguments.length<2?GN(mo[t])||GN(Qt[t]):mo[t]&&mo[t][e]||Qt[t]&&Qt[t][e]},WN=sn({}.isPrototypeOf),j4=Op("navigator","userAgent")||"",KN=Qt.process,YN=Qt.Deno,XN=KN&&KN.versions||YN&&YN.version,ZN=XN&&XN.v8;ZN&&(v0=(za=ZN.split("."))[0]>0&&za[0]<4?1:+(za[0]+za[1])),!v0&&j4&&(!(za=j4.match(/Edge\/(\d+)/))||za[1]>=74)&&(za=j4.match(/Chrome\/(\d+)/))&&(v0=+za[1]);var y0=v0,fi=!!Object.getOwnPropertySymbols&&!Yr(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&y0&&y0<41}),R4=fi&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Qut=Qt.Object,Dc=R4?function(t){return typeof t=="symbol"}:function(t){var e=Op("Symbol");return ar(e)&&WN(e.prototype,Qut(t))},$ut=Qt.String,qut=Qt.TypeError,JN=function(t){if(ar(t))return t;throw qut(function(e){try{return $ut(e)}catch{return"Object"}}(t)+" is not a function")},tst=Qt.TypeError,est=Object.defineProperty,Ha=Qt["__core-js_shared__"]||function(t,e){try{est(Qt,t,{value:e,configurable:!0,writable:!0})}catch{Qt[t]=e}return e}("__core-js_shared__",{}),Ds=Jm(function(t){(t.exports=function(e,n){return Ha[e]||(Ha[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),nst=Qt.Object,Ap=function(t){return nst(I4(t))},rst=sn({}.hasOwnProperty),pe=Object.hasOwn||function(t,e){return rst(Ap(t),e)},ost=0,ist=Math.random(),ast=sn(1 .toString),b0=function(t){return"Symbol("+(t===void 0?"":t)+")_"+ast(++ost+ist,36)},Tp=Ds("wks"),Os=Qt.Symbol,QN=Os&&Os.for,ust=R4?Os:Os&&Os.withoutSetter||b0,Xr=function(t){if(!pe(Tp,t)||!fi&&typeof Tp[t]!="string"){var e="Symbol."+t;fi&&pe(Os,t)?Tp[t]=Os[t]:Tp[t]=R4&&QN?QN(e):ust(e)}return Tp[t]},sst=Qt.TypeError,lst=Xr("toPrimitive"),Oc=function(t){var e=function(n,r){if(!Vo(n)||Dc(n))return n;var o,a,i=(o=n[lst])==null?void 0:JN(o);if(i){if(a=li(i,n,r),!Vo(a)||Dc(a))return a;throw sst("Can't convert object to primitive value")}return function(u,s){var l,c;if(ar(l=u.toString)&&!Vo(c=li(l,u))||ar(l=u.valueOf)&&!Vo(c=li(l,u)))return c;throw tst("Can't convert object to primitive value")}(n)}(t,"string");return Dc(e)?e:e+""},L4=Qt.document,cst=Vo(L4)&&Vo(L4.createElement),$N=function(t){return cst?L4.createElement(t):{}},qN=!Ar&&!Yr(function(){return Object.defineProperty($N("div"),"a",{get:function(){return 7}}).a!=7}),tI=Object.getOwnPropertyDescriptor,M4={f:Ar?tI:function(t,e){if(t=ci(t),e=Oc(e),qN)try{return tI(t,e)}catch{}if(pe(t,e))return xs(!li(k4.f,t,e),t[e])}},fst=/#|\.prototype\./,Bp=function(t,e){var n=pst[dst(t)];return n==gst||n!=hst&&(ar(e)?Yr(e):!!e)},dst=Bp.normalize=function(t){return String(t).replace(fst,".").toLowerCase()},pst=Bp.data={},hst=Bp.NATIVE="N",gst=Bp.POLYFILL="P",vst=Bp,eI=sn(sn.bind),nI=function(t,e){return JN(t),e===void 0?t:eI?eI(t,e):function(){return t.apply(e,arguments)}},mst=Qt.String,yst=Qt.TypeError,As=function(t){if(Vo(t))return t;throw yst(mst(t)+" is not an object")},bst=Qt.TypeError,rI=Object.defineProperty,Ts={f:Ar?rI:function(t,e,n){if(As(t),e=Oc(e),As(n),qN)try{return rI(t,e,n)}catch{}if("get"in n||"set"in n)throw bst("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},di=Ar?function(t,e,n){return Ts.f(t,e,xs(1,n))}:function(t,e,n){return t[e]=n,t},wst=M4.f,Est=function(t){var e=function(n,r,o){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,o)}return VN(t,this,arguments)};return e.prototype=t.prototype,e},Ua=function(t,e){var n,r,o,a,i,u,s,l,c=t.target,f=t.global,d=t.stat,p=t.proto,m=f?Qt:d?Qt[c]:(Qt[c]||{}).prototype,h=f?mo:mo[c]||di(mo,c,{})[c],v=h.prototype;for(o in e)n=!vst(f?o:c+(d?".":"#")+o,t.forced)&&m&&pe(m,o),i=h[o],n&&(u=t.noTargetGet?(l=wst(m,o))&&l.value:m[o]),a=n&&u?u:e[o],n&&typeof i==typeof a||(s=t.bind&&n?nI(a,Qt):t.wrap&&n?Est(a):p&&ar(a)?sn(a):a,(t.sham||a&&a.sham||i&&i.sham)&&di(s,"sham",!0),di(h,o,s),p&&(pe(mo,r=c+"Prototype")||di(mo,r,{}),di(mo[r],o,a),t.real&&v&&!v[o]&&di(v,o,a)))},w0=Array.isArray||function(t){return Cs(t)=="Array"},Sst=Math.ceil,xst=Math.floor,V4=function(t){var e=+t;return e!=e||e===0?0:(e>0?xst:Sst)(e)},Cst=Math.min,E0=function(t){return(e=t.length)>0?Cst(V4(e),9007199254740991):0;var e},z4=function(t,e,n){var r=Oc(e);r in t?Ts.f(t,r,xs(0,n)):t[r]=n},oI={};oI[Xr("toStringTag")]="z";var H4=String(oI)==="[object z]",Dst=Xr("toStringTag"),Ost=Qt.Object,Ast=Cs(function(){return arguments}())=="Arguments",S0=H4?Cs:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,a){try{return o[a]}catch{}}(e=Ost(t),Dst))=="string"?n:Ast?Cs(e):(r=Cs(e))=="Object"&&ar(e.callee)?"Arguments":r},Tst=sn(Function.toString);ar(Ha.inspectSource)||(Ha.inspectSource=function(t){return Tst(t)});var iI=Ha.inspectSource,aI=function(){},Bst=[],uI=Op("Reflect","construct"),U4=/^\s*(?:class|function)\b/,Pst=sn(U4.exec),Fst=!U4.exec(aI),Pp=function(t){if(!ar(t))return!1;try{return uI(aI,Bst,t),!0}catch{return!1}},kst=!uI||Yr(function(){var t;return Pp(Pp.call)||!Pp(Object)||!Pp(function(){t=!0})||t})?function(t){if(!ar(t))return!1;switch(S0(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Fst||!!Pst(U4,iI(t))}:Pp,Nst=Xr("species"),sI=Qt.Array,lI=function(t,e){return new(function(n){var r;return w0(n)&&(r=n.constructor,(kst(r)&&(r===sI||w0(r.prototype))||Vo(r)&&(r=r[Nst])===null)&&(r=void 0)),r===void 0?sI:r}(t))(e===0?0:e)},Ist=Xr("species"),cI=Xr("isConcatSpreadable"),fI=Qt.TypeError,jst=y0>=51||!Yr(function(){var t=[];return t[cI]=!1,t.concat()[0]!==t}),Rst=y0>=51||!Yr(function(){var t=[];return(t.constructor={})[Ist]=function(){return{foo:1}},t.concat(Boolean).foo!==1}),Lst=function(t){if(!Vo(t))return!1;var e=t[cI];return e!==void 0?!!e:w0(t)};Ua({target:"Array",proto:!0,forced:!jst||!Rst},{concat:function(t){var e,n,r,o,a,i=Ap(this),u=lI(i,0),s=0;for(e=-1,r=arguments.length;e<r;e++)if(Lst(a=e===-1?i:arguments[e])){if(s+(o=E0(a))>9007199254740991)throw fI("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in a&&z4(u,s,a[n])}else{if(s>=9007199254740991)throw fI("Maximum allowed index exceeded");z4(u,s++,a)}return u.length=s,u}});var x0,Mst=Qt.String,C0=function(t){if(S0(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Mst(t)},Vst=Math.max,zst=Math.min,_4=function(t,e){var n=V4(t);return n<0?Vst(n+e,0):zst(n,e)},Hst=function(t){return function(e,n,r){var o,a=ci(e),i=E0(a),u=_4(r,i);if(t&&n!=n){for(;i>u;)if((o=a[u++])!=o)return!0}else for(;i>u;u++)if((t||u in a)&&a[u]===n)return t||u||0;return!t&&-1}},Ust={indexOf:Hst(!1)},Fp={},_st=Ust.indexOf,dI=sn([].push),pI=function(t,e){var n,r=ci(t),o=0,a=[];for(n in r)!pe(Fp,n)&&pe(r,n)&&dI(a,n);for(;e.length>o;)pe(r,n=e[o++])&&(~_st(a,n)||dI(a,n));return a},D0=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],G4=Object.keys||function(t){return pI(t,D0)},Gst=Ar?Object.defineProperties:function(t,e){As(t);for(var n,r=ci(e),o=G4(e),a=o.length,i=0;a>i;)Ts.f(t,n=o[i++],r[n]);return t},Wst=Op("document","documentElement"),hI=Ds("keys"),O0=function(t){return hI[t]||(hI[t]=b0(t))},gI=O0("IE_PROTO"),W4=function(){},vI=function(t){return"<script>"+t+"<\/script>"},mI=function(t){t.write(vI("")),t.close();var e=t.parentWindow.Object;return t=null,e},A0=function(){try{x0=new ActiveXObject("htmlfile")}catch{}var t,e;A0=typeof document<"u"?document.domain&&x0?mI(x0):((e=$N("iframe")).style.display="none",Wst.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(vI("document.F=Object")),t.close(),t.F):mI(x0);for(var n=D0.length;n--;)delete A0.prototype[D0[n]];return A0()};Fp[gI]=!0;var T0,kp,B0,Bs=Object.create||function(t,e){var n;return t!==null?(W4.prototype=As(t),n=new W4,W4.prototype=null,n[gI]=t):n=A0(),e===void 0?n:Gst(n,e)},Kst=D0.concat("length","prototype"),yI={f:Object.getOwnPropertyNames||function(t){return pI(t,Kst)}},Yst=Qt.Array,Xst=Math.max,bI=yI.f,wI=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],EI={f:function(t){return wI&&Cs(t)=="Window"?function(e){try{return bI(e)}catch{return function(r,o,a){for(var i=E0(r),u=_4(void 0,i),s=_4(i,i),l=Yst(Xst(s-u,0)),c=0;u<s;u++,c++)z4(l,c,r[u]);return l.length=c,l}(wI)}}(t):bI(ci(t))}},K4={f:Object.getOwnPropertySymbols},Zst=sn([].slice),P0=function(t,e,n,r){di(t,e,n)},Y4={f:Xr},Jst=Ts.f,vn=function(t){var e=mo.Symbol||(mo.Symbol={});pe(e,t)||Jst(e,t,{value:Y4.f(t)})},Qst=H4?{}.toString:function(){return"[object "+S0(this)+"]"},$st=Ts.f,SI=Xr("toStringTag"),F0=function(t,e,n,r){if(t){var o=n?t:t.prototype;pe(o,SI)||$st(o,SI,{configurable:!0,value:e}),r&&!H4&&di(o,"toString",Qst)}},xI=Qt.WeakMap,qst=ar(xI)&&/native code/.test(iI(xI)),X4=Qt.TypeError,tlt=Qt.WeakMap;if(qst||Ha.state){var Ps=Ha.state||(Ha.state=new tlt),elt=sn(Ps.get),CI=sn(Ps.has),nlt=sn(Ps.set);T0=function(t,e){if(CI(Ps,t))throw new X4("Object already initialized");return e.facade=t,nlt(Ps,t,e),e},kp=function(t){return elt(Ps,t)||{}},B0=function(t){return CI(Ps,t)}}else{var Ac=O0("state");Fp[Ac]=!0,T0=function(t,e){if(pe(t,Ac))throw new X4("Object already initialized");return e.facade=t,di(t,Ac,e),e},kp=function(t){return pe(t,Ac)?t[Ac]:{}},B0=function(t){return pe(t,Ac)}}var Tc={set:T0,get:kp,has:B0,enforce:function(t){return B0(t)?kp(t):T0(t,{})},getterFor:function(t){return function(e){var n;if(!Vo(e)||(n=kp(e)).type!==t)throw X4("Incompatible receiver, "+t+" required");return n}}},DI=sn([].push),_a=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,a=t==6,i=t==7,u=t==5||a;return function(s,l,c,f){for(var d,p,m=Ap(s),h=_N(m),v=nI(l,c),y=E0(h),g=0,w=f||lI,E=e?w(s,y):n||i?w(s,0):void 0;y>g;g++)if((u||g in h)&&(p=v(d=h[g],g,m),t))if(e)E[g]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return g;case 2:DI(E,d)}else switch(t){case 4:return!1;case 7:DI(E,d)}return a?-1:r||o?o:E}},k0=[_a(0),_a(1),_a(2),_a(3),_a(4),_a(5),_a(6),_a(7)][0],Tr=O0("hidden"),OI=Xr("toPrimitive"),rlt=Tc.set,AI=Tc.getterFor("Symbol"),zo=Object.prototype,Ga=Qt.Symbol,Wa=Ga&&Ga.prototype,TI=Qt.TypeError,Z4=Qt.QObject,Np=Op("JSON","stringify"),BI=M4.f,Ka=Ts.f,PI=EI.f,olt=k4.f,FI=sn([].push),Wi=Ds("symbols"),Ip=Ds("op-symbols"),J4=Ds("string-to-symbol-registry"),Q4=Ds("symbol-to-string-registry"),ilt=Ds("wks"),$4=!Z4||!Z4.prototype||!Z4.prototype.findChild,q4=Ar&&Yr(function(){return Bs(Ka({},"a",{get:function(){return Ka(this,"a",{value:7}).a}})).a!=7})?function(t,e,n){var r=BI(zo,e);r&&delete zo[e],Ka(t,e,n),r&&t!==zo&&Ka(zo,e,r)}:Ka,tC=function(t,e){var n=Wi[t]=Bs(Wa);return rlt(n,{type:"Symbol",tag:t,description:e}),Ar||(n.description=e),n},N0=function(t,e,n){t===zo&&N0(Ip,e,n),As(t);var r=Oc(e);return As(n),pe(Wi,r)?(n.enumerable?(pe(t,Tr)&&t[Tr][r]&&(t[Tr][r]=!1),n=Bs(n,{enumerable:xs(0,!1)})):(pe(t,Tr)||Ka(t,Tr,xs(1,{})),t[Tr][r]=!0),q4(t,r,n)):Ka(t,r,n)},kI=function(t,e){As(t);var n=ci(e),r=G4(n).concat(eC(n));return k0(r,function(o){Ar&&!li(NI,n,o)||N0(t,o,n[o])}),t},NI=function(t){var e=Oc(t),n=li(olt,this,e);return!(this===zo&&pe(Wi,e)&&!pe(Ip,e))&&(!(n||!pe(this,e)||!pe(Wi,e)||pe(this,Tr)&&this[Tr][e])||n)},II=function(t,e){var n=ci(t),r=Oc(e);if(n!==zo||!pe(Wi,r)||pe(Ip,r)){var o=BI(n,r);return!o||!pe(Wi,r)||pe(n,Tr)&&n[Tr][r]||(o.enumerable=!0),o}},jI=function(t){var e=PI(ci(t)),n=[];return k0(e,function(r){pe(Wi,r)||pe(Fp,r)||FI(n,r)}),n},eC=function(t){var e=t===zo,n=PI(e?Ip:ci(t)),r=[];return k0(n,function(o){!pe(Wi,o)||e&&!pe(zo,o)||FI(r,Wi[o])}),r};if(fi||(Wa=(Ga=function(){if(WN(Wa,this))throw TI("Symbol is not a constructor");var t=arguments.length&&arguments[0]!==void 0?C0(arguments[0]):void 0,e=b0(t),n=function(r){this===zo&&li(n,Ip,r),pe(this,Tr)&&pe(this[Tr],e)&&(this[Tr][e]=!1),q4(this,e,xs(1,r))};return Ar&&$4&&q4(zo,e,{configurable:!0,set:n}),tC(e,t)}).prototype,P0(Wa,"toString",function(){return AI(this).tag}),P0(Ga,"withoutSetter",function(t){return tC(b0(t),t)}),k4.f=NI,Ts.f=N0,M4.f=II,yI.f=EI.f=jI,K4.f=eC,Y4.f=function(t){return tC(Xr(t),t)},Ar&&Ka(Wa,"description",{configurable:!0,get:function(){return AI(this).description}})),Ua({global:!0,wrap:!0,forced:!fi,sham:!fi},{Symbol:Ga}),k0(G4(ilt),function(t){vn(t)}),Ua({target:"Symbol",stat:!0,forced:!fi},{for:function(t){var e=C0(t);if(pe(J4,e))return J4[e];var n=Ga(e);return J4[e]=n,Q4[n]=e,n},keyFor:function(t){if(!Dc(t))throw TI(t+" is not a symbol");if(pe(Q4,t))return Q4[t]},useSetter:function(){$4=!0},useSimple:function(){$4=!1}}),Ua({target:"Object",stat:!0,forced:!fi,sham:!Ar},{create:function(t,e){return e===void 0?Bs(t):kI(Bs(t),e)},defineProperty:N0,defineProperties:kI,getOwnPropertyDescriptor:II}),Ua({target:"Object",stat:!0,forced:!fi},{getOwnPropertyNames:jI,getOwnPropertySymbols:eC}),Ua({target:"Object",stat:!0,forced:Yr(function(){K4.f(1)})},{getOwnPropertySymbols:function(t){return K4.f(Ap(t))}}),Np){var alt=!fi||Yr(function(){var t=Ga();return Np([t])!="[null]"||Np({a:t})!="{}"||Np(Object(t))!="{}"});Ua({target:"JSON",stat:!0,forced:alt},{stringify:function(t,e,n){var r=Zst(arguments),o=e;if((Vo(e)||t!==void 0)&&!Dc(t))return w0(e)||(e=function(a,i){if(ar(o)&&(i=li(o,this,a,i)),!Dc(i))return i}),r[1]=e,VN(Np,null,r)}})}if(!Wa[OI]){var ult=Wa.valueOf;P0(Wa,OI,function(t){return li(ult,this)})}F0(Ga,"Symbol"),Fp[Tr]=!0,vn("asyncIterator"),vn("hasInstance"),vn("isConcatSpreadable"),vn("iterator"),vn("match"),vn("matchAll"),vn("replace"),vn("search"),vn("species"),vn("split"),vn("toPrimitive"),vn("toStringTag"),vn("unscopables"),F0(Qt.JSON,"JSON",!0);var Ya,RI,LI,slt=mo.Symbol,Fs={},MI=Function.prototype,llt=Ar&&Object.getOwnPropertyDescriptor,VI=pe(MI,"name"),clt={PROPER:VI&&(function(){}).name==="something",CONFIGURABLE:VI&&(!Ar||Ar&&llt(MI,"name").configurable)},flt=!Yr(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),zI=O0("IE_PROTO"),nC=Qt.Object,dlt=nC.prototype,rC=flt?nC.getPrototypeOf:function(t){var e=Ap(t);if(pe(e,zI))return e[zI];var n=e.constructor;return ar(n)&&e instanceof n?n.prototype:e instanceof nC?dlt:null},oC=Xr("iterator"),HI=!1;[].keys&&("next"in(LI=[].keys())?(RI=rC(rC(LI)))!==Object.prototype&&(Ya=RI):HI=!0);var plt=Ya==null||Yr(function(){var t={};return Ya[oC].call(t)!==t});Ya=plt?{}:Bs(Ya),ar(Ya[oC])||P0(Ya,oC,function(){return this});var UI={IteratorPrototype:Ya,BUGGY_SAFARI_ITERATORS:HI},hlt=UI.IteratorPrototype,glt=function(){return this};Qt.String,Qt.TypeError,Object.setPrototypeOf||"__proto__"in{}&&function(){var t={};try{sn(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set)(t,[]),t instanceof Array}catch{}}();var vlt=clt.PROPER,iC=UI.BUGGY_SAFARI_ITERATORS,mlt=Xr("iterator"),ylt=function(){return this},_I=function(t,e,n,r,o,a,i){(function(v,y,g,w){var E=y+" Iterator";v.prototype=Bs(hlt,{next:xs(1,g)}),F0(v,E,!1,!0),Fs[E]=glt})(n,e,r);var u,s,l=function(v){if(v===o&&m)return m;if(!iC&&v in d)return d[v];switch(v){case"keys":case"values":case"entries":return function(){return new n(this,v)}}return function(){return new n(this)}},c=e+" Iterator",f=!1,d=t.prototype,p=d[mlt]||d["@@iterator"]||o&&d[o],m=!iC&&p||l(o),h=e=="Array"&&d.entries||p;return h&&(u=rC(h.call(new t)))!==Object.prototype&&u.next&&(F0(u,c,!0,!0),Fs[c]=ylt),vlt&&o=="values"&&p&&p.name!=="values"&&(f=!0,m=function(){return li(p,this)}),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},i||Ua({target:e,proto:!0,forced:iC||f},s)),Fs[e]=m,s},blt=Tc.set,wlt=Tc.getterFor("Array Iterator");_I(Array,"Array",function(t,e){blt(this,{type:"Array Iterator",target:ci(t),index:0,kind:e})},function(){var t=wlt(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values"),Fs.Arguments=Fs.Array;var GI=Xr("toStringTag");for(var aC in{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}){var WI=Qt[aC],uC=WI&&WI.prototype;uC&&S0(uC)!==GI&&di(uC,GI,aC),Fs[aC]=Fs.Array}var Elt=slt;vn("asyncDispose"),vn("dispose"),vn("matcher"),vn("metadata"),vn("observable"),vn("patternMatch"),vn("replaceAll");var I0=Elt,Slt=sn("".charAt),KI=sn("".charCodeAt),xlt=sn("".slice),Clt=function(t){return function(e,n){var r,o,a=C0(I4(e)),i=V4(n),u=a.length;return i<0||i>=u?t?"":void 0:(r=KI(a,i))<55296||r>56319||i+1===u||(o=KI(a,i+1))<56320||o>57343?t?Slt(a,i):r:t?xlt(a,i,i+2):o-56320+(r-55296<<10)+65536}},Dlt=Clt(!0),Olt=Tc.set,Alt=Tc.getterFor("String Iterator");_I(String,"String",function(t){Olt(this,{type:"String Iterator",string:C0(t),index:0})},function(){var t,e=Alt(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=Dlt(n,r),e.index+=t.length,{value:t,done:!1})});var Tlt=Y4.f("iterator"),Blt=Jm(function(t){function e(n){return typeof I0=="function"&&typeof Tlt=="symbol"?(t.exports=e=function(r){return typeof r},t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=e=function(r){return r&&typeof I0=="function"&&r.constructor===I0&&r!==I0.prototype?"symbol":typeof r},t.exports.default=t.exports,t.exports.__esModule=!0),e(n)}t.exports=e,t.exports.default=t.exports,t.exports.__esModule=!0}),YI=function(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}(Blt),Plt=n0.EXISTS,Flt=pc.f,XI=Function.prototype,klt=Nt(XI.toString),ZI=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Nlt=Nt(ZI.exec);Lo&&!Plt&&Flt(XI,"name",{configurable:!0,get:function(){try{return Nlt(ZI,klt(this))[1]}catch{return""}}});var JI=function(){function t(){this.tag="select",this.width=80}return t.prototype.isActive=function(e){return!1},t.prototype.getValue=function(e){var n=this.mark,r=D.marks(e);return r&&r[n]?r[n]:""},t.prototype.isDisabled=function(e){return e.selection==null||(this.mark,!!de(D.nodes(e,{match:function(n){return P.getNodeType(n)==="pre"||!!D.isVoid(e,n)},universal:!0}),1)[0])},t.prototype.exec=function(e,n){var r=this.mark;n?e.addMark(r,n):e.removeMark(r)},t}(),Ilt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=lt("fontSize.title"),n.iconSvg=iat,n.mark="fontSize",n}return Ge(e,t),e.prototype.getOptions=function(n){var r=[],o=n.getMenuConfig(this.mark).fontSizeList,a=o===void 0?[]:o;r.push({text:lt("fontSize.default"),value:""}),a.forEach(function(u){if(typeof u=="string")r.push({text:u,value:u});else if(YI(u)==="object"){var s=u.name,l=u.value;r.push({text:s,value:l})}});var i=this.getValue(n);return r.forEach(function(u){u.value===i?u.selected=!0:delete u.selected}),r},e}(JI),jlt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=lt("fontFamily.title"),n.iconSvg=aat,n.mark="fontFamily",n.selectPanelWidth=150,n}return Ge(e,t),e.prototype.getOptions=function(n){var r=[],o=n.getMenuConfig(this.mark).fontFamilyList,a=o===void 0?[]:o;r.push({text:lt("fontFamily.default"),value:""}),a.forEach(function(u){if(typeof u=="string")r.push({text:u,value:u,styleForRenderMenuList:{"font-family":u}});else if(YI(u)==="object"){var s=u.name,l=u.value;r.push({text:s,value:l,styleForRenderMenuList:{"font-family":l}})}});var i=this.getValue(n);return r.forEach(function(u){u.value===i?u.selected=!0:delete u.selected}),r},e}(JI),Rlt={renderStyle:function(t,e){var n=t,r=n.fontSize,o=n.fontFamily,a=e;return r&&Es(a,{fontSize:r}),o&&Es(a,{fontFamily:o}),a},styleToHtml:function(t,e){if(!vt.isText(t))return e;var n,r=t,o=r.fontSize,a=r.fontFamily;return o||a?((p4(e)||Ec(n=F(e))!=="span")&&(n=F("<span>"+e+"</span>")),o&&n.css("font-size",o),a&&n.css("font-family",a),wc(n)):e},preParseHtml:[Uut],parseStyleHtml:function(t,e,n){var r=F(t);if(!vt.isText(e))return e;var o=e,a=n.getMenuConfig("fontSize").fontSizeList,i=a===void 0?[]:a,u=Mo(r,"font-size"),s=i.find(function(p){return p.value&&p.value===u})||i.includes(u);u&&s&&(o.fontSize=u);var l=n.getMenuConfig("fontFamily").fontFamilyList,c=l===void 0?[]:l,f=Mo(r,"font-family").replace(/"/g,""),d=c.find(function(p){return p.value&&p.value===f})||c.includes(f);return f&&d&&(o.fontFamily=f),o},menus:[{key:"fontSize",factory:function(){return new Ilt},config:{fontSizeList:["12px",{name:"13px",value:"13px"},"14px","15px","16px","19px",{name:"22px",value:"22px"},"24px","29px","32px","40px","48px"]}},{key:"fontFamily",factory:function(){return new jlt},config:{fontFamilyList:["黑体",{name:"仿宋",value:"仿宋"},"楷体","标楷体","华文仿宋","华文楷体",{name:"宋体",value:"宋体"},"微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},Llt={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(t){var e=F(t),n=Mo(e,"padding-left");return/\dem/.test(n)&&e.css("text-indent","2em"),/\dpx/.test(n)&&parseInt(n,10)%32==0&&e.css("text-indent","2em"),e[0]}},QI=function(){function t(){this.tag="button"}return t.prototype.getValue=function(e){var n=de(D.nodes(e,{match:function(o){return!!o.indent},universal:!0}),1),r=n[0];return r==null?"":de(r,1)[0].indent||""},t.prototype.isActive=function(e){return!1},t.prototype.getMatchNode=function(e){var n=de(D.nodes(e,{match:function(r){var o=P.getNodeType(r);return o==="paragraph"||!!o.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return n==null?null:n[0]},t}(),Mlt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=lt("indent.decrease"),n.iconSvg=uat,n}return Ge(e,t),e.prototype.isDisabled=function(n){var r=this.getMatchNode(n);return r==null||!r.indent},e.prototype.exec=function(n,r){_.setNodes(n,{indent:null},{match:function(o){return St.isElement(o)}})},e}(QI),Vlt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=lt("indent.increase"),n.iconSvg=sat,n}return Ge(e,t),e.prototype.isDisabled=function(n){var r=this.getMatchNode(n);return r==null||!!r.indent},e.prototype.exec=function(n,r){_.setNodes(n,{indent:"2em"},{match:function(o){return St.isElement(o)},mode:"highest"})},e}(QI),zlt={renderStyle:function(t,e){if(!St.isElement(t))return e;var n=t.indent,r=e;return n&&Es(r,{textIndent:n}),r},styleToHtml:function(t,e){if(!St.isElement(t))return e;var n=t.indent;if(!n)return e;var r=F(e);return r.css("text-indent",n),wc(r)},preParseHtml:[Llt],parseStyleHtml:function(t,e,n){var r=F(t);if(!St.isElement(e))return e;var o=e,a=Mo(r,"text-indent"),i=parseInt(a,10);return a&&i>0&&(o.indent=a),o},menus:[{key:"indent",factory:function(){return new Vlt}},{key:"delIndent",factory:function(){return new Mlt}}]},j0=function(){function t(){this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.getMatchNode=function(e){var n=de(D.nodes(e,{match:function(r){var o=P.getNodeType(r);return o==="paragraph"||o==="blockquote"||!!o.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return n==null?null:n[0]},t.prototype.isDisabled=function(e){return e.selection==null||!!P.getSelectedElems(e).some(function(n){if(D.isVoid(e,n)&&D.isBlock(e,n))return!0;var r=n.type;return!!["pre","code"].includes(r)||void 0})},t}(),Hlt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=lt("justify.left"),n.iconSvg=lat,n}return Ge(e,t),e.prototype.exec=function(n,r){_.setNodes(n,{textAlign:"left"},{match:function(o){return St.isElement(o)&&!n.isInline(o)}})},e}(j0),Ult=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=lt("justify.right"),n.iconSvg=cat,n}return Ge(e,t),e.prototype.exec=function(n,r){_.setNodes(n,{textAlign:"right"},{match:function(o){return St.isElement(o)&&!n.isInline(o)}})},e}(j0),_lt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=lt("justify.center"),n.iconSvg=fat,n}return Ge(e,t),e.prototype.exec=function(n,r){_.setNodes(n,{textAlign:"center"},{match:function(o){return St.isElement(o)&&!n.isInline(o)}})},e}(j0),Glt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=lt("justify.justify"),n.iconSvg=dat,n}return Ge(e,t),e.prototype.exec=function(n,r){_.setNodes(n,{textAlign:"justify"},{match:function(o){return St.isElement(o)&&!n.isInline(o)}})},e}(j0),Wlt={renderStyle:function(t,e){if(!St.isElement(t))return e;var n=t.textAlign,r=e;return n&&Es(r,{textAlign:n}),r},styleToHtml:function(t,e){if(!St.isElement(t))return e;var n=t.textAlign;if(!n)return e;var r=F(e);return r.css("text-align",n),wc(r)},parseStyleHtml:function(t,e,n){var r=F(t);if(!St.isElement(e))return e;var o=e,a=Mo(r,"text-align");return a&&(o.textAlign=a),o},menus:[{key:"justifyLeft",factory:function(){return new Hlt}},{key:"justifyRight",factory:function(){return new Ult}},{key:"justifyCenter",factory:function(){return new _lt}},{key:"justifyJustify",factory:function(){return new Glt}}]},Klt=function(){function t(){this.title=lt("lineHeight.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M964 788a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526zM198.93 144.306c6.668-5.798 16.774-5.094 22.573 1.574l122.26 140.582a16 16 0 0 1 3.927 10.5c0 8.836-7.164 16-16 16h-61.8a8 8 0 0 0-8 8v390.077h69.819a16 16 0 0 1 10.502 3.928c6.666 5.8 7.37 15.906 1.57 22.573L221.476 878.123a16 16 0 0 1-1.57 1.57c-6.668 5.8-16.774 5.097-22.574-1.57L75.051 737.538a16 16 0 0 1-3.928-10.5c0-8.837 7.163-16 16-16h69.822V312.96H87.127a16 16 0 0 1-10.502-3.928c-6.666-5.8-7.37-15.906-1.57-22.573l122.303-140.582a16 16 0 0 1 1.572-1.572zM964 465a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z m0-323a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z"></path></svg>',this.tag="select",this.width=80}return t.prototype.getOptions=function(e){var n=[],r=e.getMenuConfig("lineHeight").lineHeightList,o=r===void 0?[]:r;n.push({text:lt("lineHeight.default"),value:""}),o.forEach(function(i){n.push({text:i,value:i})});var a=this.getValue(e);return n.forEach(function(i){i.value===a?i.selected=!0:delete i.selected}),n},t.prototype.getMatchNode=function(e){var n=de(D.nodes(e,{match:function(r){var o=P.getNodeType(r);return!!o.startsWith("header")||!!["paragraph","blockquote","list-item"].includes(o)},universal:!0,mode:"highest"}),1)[0];return n==null?null:n[0]},t.prototype.isActive=function(e){return!1},t.prototype.getValue=function(e){var n=this.getMatchNode(e);return n==null?"":St.isElement(n)&&n.lineHeight||""},t.prototype.isDisabled=function(e){return e.selection==null||this.getMatchNode(e)==null},t.prototype.exec=function(e,n){_.setNodes(e,{lineHeight:n.toString()},{mode:"highest"})},t}(),Ylt={renderStyle:function(t,e){if(!St.isElement(t))return e;var n=t.lineHeight,r=e;return n&&Es(r,{lineHeight:n}),r},styleToHtml:function(t,e){if(!St.isElement(t))return e;var n=t.lineHeight;if(!n)return e;var r=F(e);return r.css("line-height",n),wc(r)},parseStyleHtml:function(t,e,n){var r=F(t);if(!St.isElement(e))return e;var o=e,a=n.getMenuConfig("lineHeight").lineHeightList,i=a===void 0?[]:a,u=Mo(r,"line-height");return u&&i.includes(u)&&(o.lineHeight=u),o},menus:[{key:"lineHeight",factory:function(){return new Klt},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},Xlt=function(){function t(){this.title=lt("undo.redo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0.00032 576a510.72 510.72 0 0 0 173.344 384l84.672-96A383.136 383.136 0 0 1 128.00032 576C128.00032 363.936 299.93632 192 512.00032 192c106.048 0 202.048 42.976 271.52 112.48L640.00032 448h384V64l-149.984 149.984A510.272 510.272 0 0 0 512.00032 64C229.21632 64 0.00032 293.216 0.00032 576z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null},t.prototype.exec=function(e,n){typeof e.redo=="function"&&e.redo()},t}(),Zlt=function(){function t(){this.title=lt("undo.undo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 64A510.272 510.272 0 0 0 149.984 213.984L0.032 64v384h384L240.512 304.48A382.784 382.784 0 0 1 512.032 192c212.064 0 384 171.936 384 384 0 114.688-50.304 217.632-130.016 288l84.672 96a510.72 510.72 0 0 0 173.344-384c0-282.784-229.216-512-512-512z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null},t.prototype.exec=function(e,n){typeof e.undo=="function"&&e.undo()},t}(),Jlt={menus:[{key:"redo",factory:function(){return new Xlt}},{key:"undo",factory:function(){return new Zlt}}]},Qlt={type:"divider",renderElem:function(t,e,n){return Rl("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:P.isNodeSelected(n,t)?"true":""},style:{},on:{mousedown:function(r){return r.preventDefault()}}},[Rl("hr")])}},$lt=function(){function t(){this.title=lt("divider.title"),this.iconSvg='<svg viewBox="0 0 1092 1024"><path d="M0 51.2m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M819.2 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M409.6 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 870.4m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||!!P.getSelectedElems(e).some(function(n){if(e.isVoid(n))return!0;var r=P.getNodeType(n);return r==="table"||r==="pre"||void 0})},t.prototype.exec=function(e,n){_.insertNodes(e,{type:"divider",children:[{text:""}]},{mode:"highest"})},t}(),qlt={renderElems:[Qlt],elemsToHtml:[{type:"divider",elemToHtml:function(t,e){return"<hr/>"}}],parseElemsHtml:[{selector:"hr:not([data-w-e-type])",parseElemHtml:function(t,e,n){return{type:"divider",children:[{text:""}]}}}],menus:[{key:"divider",factory:function(){return new $lt}}],editorPlugin:function(t){var e=t.isVoid,n=t.normalizeNode,r=t;return r.isVoid=function(o){return o.type==="divider"||e(o)},r.normalizeNode=function(o){var a=de(o,2),i=a[0],u=a[1];if(P.getNodeType(i)!=="divider")return n([i,u]);P.isLastNode(r,i)&&_.insertNodes(r,P.genEmptyParagraph(),{at:[u[0]+1]})},r}},tct=u0.map;Nn({target:"Array",proto:!0,forced:!Yx("map")},{map:function(t){return tct(this,t,arguments.length>1?arguments[1]:void 0)}});var ect=Nt([].join),nct=qm!=Object,rct=uN("join",",");Nn({target:"Array",proto:!0,forced:nct||!rct},{join:function(t){return ect(dc(this),t===void 0?",":t)}});var oct=function(){function t(){this.title=lt("codeBlock.title"),this.iconSvg='<svg viewBox="0 0 1280 1024"><path d="M832 736l96 96 320-320L928 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224zM701.312 150.528l69.472 18.944-192 704.032-69.472-18.944 192-704.032z"></path></svg>',this.tag="button"}return t.prototype.getSelectCodeElem=function(e){var n=P.getSelectedNodeByType(e,"code");if(n==null)return null;var r=P.getParentNode(e,n);return r==null||P.getNodeType(r)!=="pre"?null:n},t.prototype.getValue=function(e){var n=this.getSelectCodeElem(e);return n==null?"":n.language||""},t.prototype.isActive=function(e){return!!this.getSelectCodeElem(e)},t.prototype.isDisabled=function(e){if(e.selection==null)return!0;var n=P.getSelectedElems(e);return!!n.some(function(r){return e.isVoid(r)})||!n.some(function(r){var o=P.getNodeType(r);if(o==="pre"||o==="paragraph")return!0})},t.prototype.exec=function(e,n){this.isActive(e)?this.changeToPlainText(e):this.changeToCodeBlock(e,n.toString())},t.prototype.changeToPlainText=function(e){var n=this.getSelectCodeElem(e);if(n!=null){var r=st.string(n);_.removeNodes(e,{mode:"highest"});var o=r.split(`
113
+ `).map(function(a){return{type:"paragraph",children:[{text:a}]}});_.insertNodes(e,o,{mode:"highest"})}},t.prototype.changeToCodeBlock=function(e,n){var r,o,a=[],i=D.nodes(e,{match:function(f){return e.children.includes(f)},universal:!0});try{for(var u=rN(i),s=u.next();!s.done;s=u.next()){var l=de(s.value,1)[0];l&&a.push(st.string(l))}}catch(f){r={error:f}}finally{try{s&&!s.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}_.removeNodes(e,{mode:"highest"});var c={type:"pre",children:[{type:"code",language:n,children:[{text:a.join(`
114
+ `)}]}]};_.insertNodes(e,c,{mode:"highest"})},t}(),ict={key:"codeBlock",factory:function(){return new oct}};Nn({target:"String",proto:!0,forced:bp("anchor")},{anchor:function(t){return yp(this,"a","name",t)}}),o4("match",function(t,e,n){return[function(r){var o=go(this),a=r==null?void 0:t0(r,t);return a?gn(a,r,o):new RegExp(r)[t](tn(o))},function(r){var o=Kr(this),a=tn(r),i=n(e,o,a);if(i.done)return i.value;if(!o.global)return vp(o,a);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=vp(o,a))!==null;){var f=tn(s[0]);l[c]=f,f===""&&(o.lastIndex=i4(a,dp(o.lastIndex),u)),c++}return c===0?null:l}]});var act={type:"pre",renderElem:function(t,e,n){return jt("pre",null,e)}},uct={type:"code",renderElem:function(t,e,n){return jt("code",null,e)}},sct={selector:"pre:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=F(t);return(e=e.filter(function(o){return P.getNodeType(o)==="code"})).length===0&&(e=[{type:"code",language:"",children:[{text:r[0].textContent||""}]}]),{type:"pre",children:e.filter(function(o){return P.getNodeType(o)==="code"})}}},lct={menus:[ict],editorPlugin:function(t){var e=t.insertBreak,n=t.normalizeNode,r=t.insertData;t.insertNode;var o=t;return o.insertBreak=function(){var a=P.getSelectedNodeByType(o,"code");if(a!=null){var i=function(l,c){var f=c.selection;if(f==null)return"";var d=st.string(l),p=f.anchor.offset,m=d.slice(0,p).split(`
115
+ `),h=m.length;return h===0?"":m[h-1]}(a,o);if(i){var u=i.match(/^\s+/);if(u!=null&&u[0]!=null){var s=u[0];return void o.insertText(`
116
+ `+s)}}o.insertText(`
117
+ `)}else e()},o.normalizeNode=function(a){var i=de(a,2),u=i[0],s=i[1],l=P.getNodeType(u);return l==="code"&&s.length<=1&&_.setNodes(o,{type:"paragraph"},{at:s}),l==="pre"&&(P.isLastNode(o,u)&&_.insertNodes(o,P.genEmptyParagraph(),{at:[s[0]+1]}),P.getNodeType(u.children[0])!=="code"&&(_.unwrapNodes(o),_.setNodes(o,{type:"paragraph"},{mode:"highest"}))),n([u,s])},o.insertData=function(a){if(P.getSelectedNodeByType(o,"code")!=null){var i=a.getData("text/plain");D.insertText(o,i)}else r(a)},o},renderElems:[act,uct],elemsToHtml:[{type:"code",elemToHtml:function(t,e){return"<code>"+e+"</code>"}},{type:"pre",elemToHtml:function(t,e){return"<pre>"+e+"</pre>"}}],preParseHtml:[{selector:"pre>code",preParseHtml:function(t){var e=F(t);if(Ec(e)!=="code")return t;var n=e.find("xmp");if(n.length===0)return t;var r=n.text();return n.remove(),e.text(r),e[0]}}],parseElemsHtml:[{selector:"pre:not([data-w-e-type])>code",parseElemHtml:function(t,e,n){return{type:"code",language:"",children:[{text:F(t)[0].textContent||""}]}}},sct]},cct=function(){function t(){this.title=lt("fullScreen.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M133.705143 335.433143V133.851429h201.581714a29.622857 29.622857 0 0 0 29.622857-29.549715V68.754286a29.622857 29.622857 0 0 0-29.622857-29.622857H61.732571A22.893714 22.893714 0 0 0 38.765714 62.025143V335.725714c0 16.310857 13.238857 29.622857 29.622857 29.622857h35.547429a29.842286 29.842286 0 0 0 29.696-29.842285zM690.980571 133.851429h201.581715v201.654857c0 16.310857 13.238857 29.549714 29.622857 29.549714h35.547428a29.622857 29.622857 0 0 0 29.549715-29.549714V61.952a22.893714 22.893714 0 0 0-22.820572-22.893714h-273.554285a29.622857 29.622857 0 0 0-29.549715 29.622857v35.547428c0 16.310857 13.238857 29.696 29.622857 29.696zM335.286857 892.781714H133.705143V691.2a29.622857 29.622857 0 0 0-29.622857-29.622857H68.534857a29.622857 29.622857 0 0 0-29.549714 29.622857v273.554286c0 12.653714 10.24 22.893714 22.820571 22.893714h273.554286a29.622857 29.622857 0 0 0 29.696-29.622857v-35.547429a29.769143 29.769143 0 0 0-29.769143-29.696z m557.348572-201.581714v201.581714H690.907429a29.622857 29.622857 0 0 0-29.622858 29.622857v35.547429c0 16.310857 13.238857 29.622857 29.622858 29.622857h273.554285c12.580571 0 22.893714-10.313143 22.893715-22.893714V691.2a29.622857 29.622857 0 0 0-29.622858-29.622857h-35.547428a29.622857 29.622857 0 0 0-29.696 29.622857z"></path></svg>',this.tag="button",this.alwaysEnable=!0}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return e.isFullScreen},t.prototype.isDisabled=function(e){return!1},t.prototype.exec=function(e,n){e.isFullScreen?e.unFullScreen():e.fullScreen()},t}(),fct={menus:[{key:"fullScreen",factory:function(){return new cct}}]},dct=function(){function t(){this.title=lt("common.enter"),this.iconSvg='<svg viewBox="0 0 1255 1024"><path d="M1095.111111 731.477333h-625.777778V1024L0 658.318222 469.333333 292.408889v292.636444h625.777778V0h156.444445v731.477333z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!!$.isExpanded(n)},t.prototype.exec=function(e,n){var r=e.selection;if(r!=null){var o=[r.anchor.path[0]];_.insertNodes(e,{type:"paragraph",children:[{text:""}]},{at:o}),e.select(D.start(e,o))}},t}(),pct=[xat,eut,Rlt,zlt,Wlt,Ylt,Dut,qlt,zut,dut,lct,Mut,Jat,Kit,But,Jlt,fct,{menus:[{key:"enter",factory:function(){return new dct}}]}];Or("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),Or("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var $I=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function sC(t){var e={exports:{}};return t(e,e.exports),e.exports}var Xa,R0,L0=function(t){return t&&t.Math==Math&&t},Rt=L0(typeof globalThis=="object"&&globalThis)||L0(typeof window=="object"&&window)||L0(typeof self=="object"&&self)||L0(typeof $I=="object"&&$I)||function(){return this}()||Function("return this")(),qI=Function.prototype,lC=qI.bind,cC=qI.call,hct=lC&&lC.bind(cC),te=lC?function(t){return t&&hct(cC,t)}:function(t){return t&&function(){return cC.apply(t,arguments)}},nn=function(t){try{return!!t()}catch{return!0}},gct=te({}.toString),vct=te("".slice),Ki=function(t){return vct(gct(t),8,-1)},fC=Rt.Object,mct=te("".split),tj=nn(function(){return!fC("z").propertyIsEnumerable(0)})?function(t){return Ki(t)=="String"?mct(t,""):fC(t)}:fC,yct=Rt.TypeError,M0=function(t){if(t==null)throw yct("Can't call method on "+t);return t},Bc=function(t){return tj(M0(t))},bct=Object.defineProperty,dC=function(t,e){try{bct(Rt,t,{value:e,configurable:!0,writable:!0})}catch{Rt[t]=e}return e},Za=Rt["__core-js_shared__"]||dC("__core-js_shared__",{}),pC=sC(function(t){(t.exports=function(e,n){return Za[e]||(Za[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),wct=Rt.Object,jp=function(t){return wct(M0(t))},Ect=te({}.hasOwnProperty),In=Object.hasOwn||function(t,e){return Ect(jp(t),e)},Sct=0,xct=Math.random(),Cct=te(1 .toString),hC=function(t){return"Symbol("+(t===void 0?"":t)+")_"+Cct(++Sct+xct,36)},ln=function(t){return typeof t=="function"},Dct=function(t){return ln(t)?t:void 0},Rp=function(t,e){return arguments.length<2?Dct(Rt[t]):Rt[t]&&Rt[t][e]},gC=Rp("navigator","userAgent")||"",ej=Rt.process,nj=Rt.Deno,rj=ej&&ej.versions||nj&&nj.version,oj=rj&&rj.v8;oj&&(R0=(Xa=oj.split("."))[0]>0&&Xa[0]<4?1:+(Xa[0]+Xa[1])),!R0&&gC&&(!(Xa=gC.match(/Edge\/(\d+)/))||Xa[1]>=74)&&(Xa=gC.match(/Chrome\/(\d+)/))&&(R0=+Xa[1]);var V0,vC=R0,mC=!!Object.getOwnPropertySymbols&&!nn(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&vC&&vC<41}),yC=mC&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Lp=pC("wks"),ks=Rt.Symbol,ij=ks&&ks.for,Oct=yC?ks:ks&&ks.withoutSetter||hC,Zn=function(t){if(!In(Lp,t)||!mC&&typeof Lp[t]!="string"){var e="Symbol."+t;mC&&In(ks,t)?Lp[t]=ks[t]:Lp[t]=yC&&ij?ij(e):Oct(e)}return Lp[t]},cn=function(t){return typeof t=="object"?t!==null:ln(t)},Act=Rt.String,Tct=Rt.TypeError,Br=function(t){if(cn(t))return t;throw Tct(Act(t)+" is not an object")},Ja=!nn(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),bC=Rt.document,Bct=cn(bC)&&cn(bC.createElement),wC=function(t){return Bct?bC.createElement(t):{}},aj=!Ja&&!nn(function(){return Object.defineProperty(wC("div"),"a",{get:function(){return 7}}).a!=7}),Mp=Function.prototype.call,Vn=Mp.bind?Mp.bind(Mp):function(){return Mp.apply(Mp,arguments)},z0=te({}.isPrototypeOf),Pct=Rt.Object,EC=yC?function(t){return typeof t=="symbol"}:function(t){var e=Rp("Symbol");return ln(e)&&z0(e.prototype,Pct(t))},Fct=Rt.String,SC=function(t){try{return Fct(t)}catch{return"Object"}},kct=Rt.TypeError,xC=function(t){if(ln(t))return t;throw kct(SC(t)+" is not a function")},Vp=function(t,e){var n=t[e];return n==null?void 0:xC(n)},Nct=Rt.TypeError,Ict=Rt.TypeError,jct=Zn("toPrimitive"),CC=function(t){var e=function(n,r){if(!cn(n)||EC(n))return n;var o,a=Vp(n,jct);if(a){if(o=Vn(a,n,r),!cn(o)||EC(o))return o;throw Ict("Can't convert object to primitive value")}return function(i,u){var s,l;if(ln(s=i.toString)&&!cn(l=Vn(s,i))||ln(s=i.valueOf)&&!cn(l=Vn(s,i)))return l;throw Nct("Can't convert object to primitive value")}(n)}(t,"string");return EC(e)?e:e+""},Rct=Rt.TypeError,uj=Object.defineProperty,Ns={f:Ja?uj:function(t,e,n){if(Br(t),e=CC(e),Br(n),aj)try{return uj(t,e,n)}catch{}if("get"in n||"set"in n)throw Rct("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Lct=Math.ceil,Mct=Math.floor,zp=function(t){var e=+t;return e!=e||e===0?0:(e>0?Mct:Lct)(e)},Vct=Math.max,zct=Math.min,DC=function(t,e){var n=zp(t);return n<0?Vct(n+e,0):zct(n,e)},Hct=Math.min,sj=function(t){return t>0?Hct(zp(t),9007199254740991):0},Pc=function(t){return sj(t.length)},lj=function(t){return function(e,n,r){var o,a=Bc(e),i=Pc(a),u=DC(r,i);if(t&&n!=n){for(;i>u;)if((o=a[u++])!=o)return!0}else for(;i>u;u++)if((t||u in a)&&a[u]===n)return t||u||0;return!t&&-1}},cj={includes:lj(!0),indexOf:lj(!1)},H0={},Uct=cj.indexOf,fj=te([].push),dj=function(t,e){var n,r=Bc(t),o=0,a=[];for(n in r)!In(H0,n)&&In(r,n)&&fj(a,n);for(;e.length>o;)In(r,n=e[o++])&&(~Uct(a,n)||fj(a,n));return a},U0=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],_ct=Object.keys||function(t){return dj(t,U0)},Gct=Ja?Object.defineProperties:function(t,e){Br(t);for(var n,r=Bc(e),o=_ct(e),a=o.length,i=0;a>i;)Ns.f(t,n=o[i++],r[n]);return t},Wct=Rp("document","documentElement"),pj=pC("keys"),OC=function(t){return pj[t]||(pj[t]=hC(t))},hj=OC("IE_PROTO"),AC=function(){},gj=function(t){return"<script>"+t+"<\/script>"},vj=function(t){t.write(gj("")),t.close();var e=t.parentWindow.Object;return t=null,e},_0=function(){try{V0=new ActiveXObject("htmlfile")}catch{}var t,e;_0=typeof document<"u"?document.domain&&V0?vj(V0):((e=wC("iframe")).style.display="none",Wct.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(gj("document.F=Object")),t.close(),t.F):vj(V0);for(var n=U0.length;n--;)delete _0.prototype[U0[n]];return _0()};H0[hj]=!0;var TC=Object.create||function(t,e){var n;return t!==null?(AC.prototype=Br(t),n=new AC,AC.prototype=null,n[hj]=t):n=_0(),e===void 0?n:Gct(n,e)},BC=Zn("unscopables"),PC=Array.prototype;PC[BC]==null&&Ns.f(PC,BC,{configurable:!0,value:TC(null)});var Hp=function(t){PC[BC][t]=!0},Fc={},Kct=te(Function.toString);ln(Za.inspectSource)||(Za.inspectSource=function(t){return Kct(t)});var G0,Up,W0,FC=Za.inspectSource,mj=Rt.WeakMap,yj=ln(mj)&&/native code/.test(FC(mj)),K0=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},Qa=Ja?function(t,e,n){return Ns.f(t,e,K0(1,n))}:function(t,e,n){return t[e]=n,t},kC=Rt.TypeError,Yct=Rt.WeakMap;if(yj||Za.state){var Is=Za.state||(Za.state=new Yct),Xct=te(Is.get),bj=te(Is.has),Zct=te(Is.set);G0=function(t,e){if(bj(Is,t))throw new kC("Object already initialized");return e.facade=t,Zct(Is,t,e),e},Up=function(t){return Xct(Is,t)||{}},W0=function(t){return bj(Is,t)}}else{var kc=OC("state");H0[kc]=!0,G0=function(t,e){if(In(t,kc))throw new kC("Object already initialized");return e.facade=t,Qa(t,kc,e),e},Up=function(t){return In(t,kc)?t[kc]:{}},W0=function(t){return In(t,kc)}}var js,wj,Ej,pi={set:G0,get:Up,has:W0,enforce:function(t){return W0(t)?Up(t):G0(t,{})},getterFor:function(t){return function(e){var n;if(!cn(e)||(n=Up(e)).type!==t)throw kC("Incompatible receiver, "+t+" required");return n}}},Sj={}.propertyIsEnumerable,xj=Object.getOwnPropertyDescriptor,Jct={f:xj&&!Sj.call({1:2},1)?function(t){var e=xj(this,t);return!!e&&e.enumerable}:Sj},Cj=Object.getOwnPropertyDescriptor,Dj={f:Ja?Cj:function(t,e){if(t=Bc(t),e=CC(e),aj)try{return Cj(t,e)}catch{}if(In(t,e))return K0(!Vn(Jct.f,t,e),t[e])}},Oj=Function.prototype,Qct=Ja&&Object.getOwnPropertyDescriptor,Aj=In(Oj,"name"),NC={PROPER:Aj&&(function(){}).name==="something",CONFIGURABLE:Aj&&(!Ja||Ja&&Qct(Oj,"name").configurable)},Yi=sC(function(t){var e=NC.CONFIGURABLE,n=pi.get,r=pi.enforce,o=String(String).split("String");(t.exports=function(a,i,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:i;ln(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!In(u,"name")||e&&u.name!==p)&&Qa(u,"name",p),(l=r(u)).source||(l.source=o.join(typeof p=="string"?p:""))),a!==Rt?(c?!d&&a[i]&&(f=!0):delete a[i],f?a[i]=u:Qa(a,i,u)):f?a[i]=u:dC(i,u)})(Function.prototype,"toString",function(){return ln(this)&&n(this).source||FC(this)})}),$ct=U0.concat("length","prototype"),Y0={f:Object.getOwnPropertyNames||function(t){return dj(t,$ct)}},qct={f:Object.getOwnPropertySymbols},tft=te([].concat),eft=Rp("Reflect","ownKeys")||function(t){var e=Y0.f(Br(t)),n=qct.f;return n?tft(e,n(t)):e},nft=function(t,e){for(var n=eft(e),r=Ns.f,o=Dj.f,a=0;a<n.length;a++){var i=n[a];In(t,i)||r(t,i,o(e,i))}},rft=/#|\.prototype\./,_p=function(t,e){var n=ift[oft(t)];return n==uft||n!=aft&&(ln(e)?nn(e):!!e)},oft=_p.normalize=function(t){return String(t).replace(rft,".").toLowerCase()},ift=_p.data={},aft=_p.NATIVE="N",uft=_p.POLYFILL="P",IC=_p,sft=Dj.f,$a=function(t,e){var n,r,o,a,i,u=t.target,s=t.global,l=t.stat;if(n=s?Rt:l?Rt[u]||dC(u,{}):(Rt[u]||{}).prototype)for(r in e){if(a=e[r],o=t.noTargetGet?(i=sft(n,r))&&i.value:n[r],!IC(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof a==typeof o)continue;nft(a,o)}(t.sham||o&&o.sham)&&Qa(a,"sham",!0),Yi(n,r,a,t)}},lft=!nn(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),Tj=OC("IE_PROTO"),jC=Rt.Object,cft=jC.prototype,X0=lft?jC.getPrototypeOf:function(t){var e=jp(t);if(In(e,Tj))return e[Tj];var n=e.constructor;return ln(n)&&e instanceof n?n.prototype:e instanceof jC?cft:null},RC=Zn("iterator"),Bj=!1;[].keys&&("next"in(Ej=[].keys())?(wj=X0(X0(Ej)))!==Object.prototype&&(js=wj):Bj=!0);var fft=js==null||nn(function(){var t={};return js[RC].call(t)!==t});fft&&(js={}),ln(js[RC])||Yi(js,RC,function(){return this});var LC={IteratorPrototype:js,BUGGY_SAFARI_ITERATORS:Bj},dft=Ns.f,Pj=Zn("toStringTag"),MC=function(t,e,n){t&&!In(t=n?t:t.prototype,Pj)&&dft(t,Pj,{configurable:!0,value:e})},pft=LC.IteratorPrototype,hft=function(){return this},gft=Rt.String,vft=Rt.TypeError,Z0=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=te(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch{}return function(r,o){return Br(r),function(a){if(typeof a=="object"||ln(a))return a;throw vft("Can't set "+gft(a)+" as a prototype")}(o),e?t(r,o):r.__proto__=o,r}}():void 0),mft=NC.PROPER,yft=NC.CONFIGURABLE,Fj=LC.IteratorPrototype,VC=LC.BUGGY_SAFARI_ITERATORS,Gp=Zn("iterator"),bft=function(){return this},kj=function(t,e,n,r,o,a,i){(function(v,y,g,w){var E=y+" Iterator";v.prototype=TC(pft,{next:K0(1,g)}),MC(v,E,!1),Fc[E]=hft})(n,e,r);var u,s,l=function(v){if(v===o&&m)return m;if(!VC&&v in d)return d[v];switch(v){case"keys":case"values":case"entries":return function(){return new n(this,v)}}return function(){return new n(this)}},c=e+" Iterator",f=!1,d=t.prototype,p=d[Gp]||d["@@iterator"]||o&&d[o],m=!VC&&p||l(o),h=e=="Array"&&d.entries||p;return h&&(u=X0(h.call(new t)))!==Object.prototype&&u.next&&(X0(u)!==Fj&&(Z0?Z0(u,Fj):ln(u[Gp])||Yi(u,Gp,bft)),MC(u,c,!0)),mft&&o=="values"&&p&&p.name!=="values"&&(yft?Qa(d,"name","values"):(f=!0,m=function(){return Vn(p,this)})),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},i||$a({target:e,proto:!0,forced:VC||f},s)),d[Gp]!==m&&Yi(d,Gp,m,{name:o}),Fc[e]=m,s},wft=pi.set,Eft=pi.getterFor("Array Iterator"),Wp=kj(Array,"Array",function(t,e){wft(this,{type:"Array Iterator",target:Bc(t),index:0,kind:e})},function(){var t=Eft(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values");Fc.Arguments=Fc.Array,Hp("keys"),Hp("values"),Hp("entries");var Nj={};Nj[Zn("toStringTag")]="z";var zC=String(Nj)==="[object z]",Sft=Zn("toStringTag"),xft=Rt.Object,Cft=Ki(function(){return arguments}())=="Arguments",J0=zC?Ki:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,a){try{return o[a]}catch{}}(e=xft(t),Sft))=="string"?n:Cft?Ki(e):(r=Ki(e))=="Object"&&ln(e.callee)?"Arguments":r},Dft=zC?{}.toString:function(){return"[object "+J0(this)+"]"};zC||Yi(Object.prototype,"toString",Dft,{unsafe:!0});var Oft=Rt.String,Xi=function(t){if(J0(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Oft(t)},Aft=te("".charAt),Ij=te("".charCodeAt),Tft=te("".slice),Bft=function(t){return function(e,n){var r,o,a=Xi(M0(e)),i=zp(n),u=a.length;return i<0||i>=u?t?"":void 0:(r=Ij(a,i))<55296||r>56319||i+1===u||(o=Ij(a,i+1))<56320||o>57343?t?Aft(a,i):r:t?Tft(a,i,i+2):o-56320+(r-55296<<10)+65536}},jj={charAt:Bft(!0)},Pft=jj.charAt,Fft=pi.set,kft=pi.getterFor("String Iterator");kj(String,"String",function(t){Fft(this,{type:"String Iterator",string:Xi(t),index:0})},function(){var t,e=kft(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=Pft(n,r),e.index+=t.length,{value:t,done:!1})});var HC=function(t,e,n){for(var r in e)Yi(t,r,e[r],n);return t},Nft=Rt.Array,Ift=Math.max,Rj=Y0.f,Lj=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],jft={f:function(t){return Lj&&Ki(t)=="Window"?function(e){try{return Rj(e)}catch{return function(r,o,a){for(var i,u,s,l,c=Pc(r),f=DC(void 0,c),d=DC(c,c),p=Nft(Ift(d-f,0)),m=0;f<d;f++,m++)i=p,u=m,s=r[f],(l=CC(u))in i?Ns.f(i,l,K0(0,s)):i[l]=s;return p.length=m,p}(Lj)}}(t):Rj(Bc(t))}},Mj=nn(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),Q0=Object.isExtensible,Rs=nn(function(){Q0(1)})||Mj?function(t){return!!cn(t)&&(!Mj||Ki(t)!="ArrayBuffer")&&(!Q0||Q0(t))}:Q0,Rft=!nn(function(){return Object.isExtensible(Object.preventExtensions({}))}),UC=sC(function(t){var e=Ns.f,n=!1,r=hC("meta"),o=0,a=function(u){e(u,r,{value:{objectID:"O"+o++,weakData:{}}})},i=t.exports={enable:function(){i.enable=function(){},n=!0;var u=Y0.f,s=te([].splice),l={};l[r]=1,u(l).length&&(Y0.f=function(c){for(var f=u(c),d=0,p=f.length;d<p;d++)if(f[d]===r){s(f,d,1);break}return f},$a({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:jft.f}))},fastKey:function(u,s){if(!cn(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!In(u,r)){if(!Rs(u))return"F";if(!s)return"E";a(u)}return u[r].objectID},getWeakData:function(u,s){if(!In(u,r)){if(!Rs(u))return!0;if(!s)return!1;a(u)}return u[r].weakData},onFreeze:function(u){return Rft&&n&&Rs(u)&&!In(u,r)&&a(u),u}};H0[r]=!0}),Vj=te(te.bind),_C=function(t,e){return xC(t),e===void 0?t:Vj?Vj(t,e):function(){return t.apply(e,arguments)}},Lft=Zn("iterator"),Mft=Array.prototype,Vft=Zn("iterator"),zj=function(t){if(t!=null)return Vp(t,Vft)||Vp(t,"@@iterator")||Fc[J0(t)]},zft=Rt.TypeError,Hj=function(t,e,n){var r,o;Br(t);try{if(!(r=Vp(t,"return"))){if(e==="throw")throw n;return n}r=Vn(r,t)}catch(a){o=!0,r=a}if(e==="throw")throw n;if(o)throw r;return Br(r),n},Hft=Rt.TypeError,$0=function(t,e){this.stopped=t,this.result=e},Uj=$0.prototype,_j=function(t,e,n){var r,o,a,i,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),m=!(!n||!n.INTERRUPTED),h=_C(e,f),v=function(g){return r&&Hj(r,"normal",g),new $0(!0,g)},y=function(g){return d?(Br(g),m?h(g[0],g[1],v):h(g[0],g[1])):m?h(g,v):h(g)};if(p)r=t;else{if(!(o=zj(t)))throw Hft(SC(t)+" is not iterable");if((c=o)!==void 0&&(Fc.Array===c||Mft[Lft]===c)){for(a=0,i=Pc(t);i>a;a++)if((u=y(t[a]))&&z0(Uj,u))return u;return new $0(!1)}r=function(g,w){var E=arguments.length<2?zj(g):w;if(xC(E))return Br(Vn(E,g));throw zft(SC(g)+" is not iterable")}(t,o)}for(s=r.next;!(l=Vn(s,r)).done;){try{u=y(l.value)}catch(g){Hj(r,"throw",g)}if(typeof u=="object"&&u&&z0(Uj,u))return u}return new $0(!1)},Uft=Rt.TypeError,Gj=function(t,e){if(z0(e,t))return t;throw Uft("Incorrect invocation")},Wj=Zn("iterator"),Kj=!1;try{var _ft=0,Yj={next:function(){return{done:!!_ft++}},return:function(){Kj=!0}};Yj[Wj]=function(){return this},Array.from(Yj,function(){throw 2})}catch{}var GC=Array.isArray||function(t){return Ki(t)=="Array"},Xj=function(){},Gft=[],Zj=Rp("Reflect","construct"),WC=/^\s*(?:class|function)\b/,Wft=te(WC.exec),Kft=!WC.exec(Xj),Kp=function(t){if(!ln(t))return!1;try{return Zj(Xj,Gft,t),!0}catch{return!1}},Yft=!Zj||nn(function(){var t;return Kp(Kp.call)||!Kp(Object)||!Kp(function(){t=!0})||t})?function(t){if(!ln(t))return!1;switch(J0(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Kft||!!Wft(WC,FC(t))}:Kp,Xft=Zn("species"),Jj=Rt.Array,Qj=function(t,e){return new(function(n){var r;return GC(n)&&(r=n.constructor,(Yft(r)&&(r===Jj||GC(r.prototype))||cn(r)&&(r=r[Xft])===null)&&(r=void 0)),r===void 0?Jj:r}(t))(e===0?0:e)},$j=te([].push),KC=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,a=t==6,i=t==7,u=t==5||a;return function(s,l,c,f){for(var d,p,m=jp(s),h=tj(m),v=_C(l,c),y=Pc(h),g=0,w=f||Qj,E=e?w(s,y):n||i?w(s,0):void 0;y>g;g++)if((u||g in h)&&(p=v(d=h[g],g,m),t))if(e)E[g]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return g;case 2:$j(E,d)}else switch(t){case 4:return!1;case 7:$j(E,d)}return a?-1:r||o?o:E}},YC={filter:KC(2),find:KC(5),findIndex:KC(6)},q0=UC.getWeakData,Zft=pi.set,Jft=pi.getterFor,Qft=YC.find,$ft=YC.findIndex,qft=te([].splice),tdt=0,ty=function(t){return t.frozen||(t.frozen=new qj)},qj=function(){this.entries=[]},XC=function(t,e){return Qft(t.entries,function(n){return n[0]===e})};qj.prototype={get:function(t){var e=XC(this,t);if(e)return e[1]},has:function(t){return!!XC(this,t)},set:function(t,e){var n=XC(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=$ft(this.entries,function(n){return n[0]===t});return~e&&qft(this.entries,e,1),!!~e}};var Yp,tR={getConstructor:function(t,e,n,r){var o=t(function(s,l){Gj(s,a),Zft(s,{type:e,id:tdt++,frozen:void 0}),l!=null&&_j(l,s[r],{that:s,AS_ENTRIES:n})}),a=o.prototype,i=Jft(e),u=function(s,l,c){var f=i(s),d=q0(Br(l),!0);return d===!0?ty(f).set(l,c):d[f.id]=c,s};return HC(a,{delete:function(s){var l=i(this);if(!cn(s))return!1;var c=q0(s);return c===!0?ty(l).delete(s):c&&In(c,l.id)&&delete c[l.id]},has:function(s){var l=i(this);if(!cn(s))return!1;var c=q0(s);return c===!0?ty(l).has(s):c&&In(c,l.id)}}),HC(a,n?{get:function(s){var l=i(this);if(cn(s)){var c=q0(s);return c===!0?ty(l).get(s):c?c[l.id]:void 0}},set:function(s,l){return u(this,s,l)}}:{add:function(s){return u(this,s,!0)}}),o}},ey=pi.enforce,edt=!Rt.ActiveXObject&&"ActiveXObject"in Rt,eR=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},ndt=function(t,e,n){var r=t.indexOf("Map")!==-1,o=t.indexOf("Weak")!==-1,a=r?"set":"add",i=Rt[t],u=i&&i.prototype,s=i,l={},c=function(v){var y=te(u[v]);Yi(u,v,v=="add"?function(g){return y(this,g===0?0:g),this}:v=="delete"?function(g){return!(o&&!cn(g))&&y(this,g===0?0:g)}:v=="get"?function(g){return o&&!cn(g)?void 0:y(this,g===0?0:g)}:v=="has"?function(g){return!(o&&!cn(g))&&y(this,g===0?0:g)}:function(g,w){return y(this,g===0?0:g,w),this})};if(IC(t,!ln(i)||!(o||u.forEach&&!nn(function(){new i().entries().next()}))))s=n.getConstructor(e,t,r,a),UC.enable();else if(IC(t,!0)){var f=new s,d=f[a](o?{}:-0,1)!=f,p=nn(function(){f.has(1)}),m=function(v,y){if(!Kj)return!1;var g=!1;try{var w={};w[Wj]=function(){return{next:function(){return{done:g=!0}}}},function(E){new i(E)}(w)}catch{}return g}(),h=!o&&nn(function(){for(var v=new i,y=5;y--;)v[a](y,y);return!v.has(-0)});m||((s=e(function(v,y){Gj(v,u);var g=function(w,E,x){var S,C;return Z0&&ln(S=E.constructor)&&S!==x&&cn(C=S.prototype)&&C!==x.prototype&&Z0(w,C),w}(new i,v,s);return y!=null&&_j(y,g[a],{that:g,AS_ENTRIES:r}),g})).prototype=u,u.constructor=s),(p||h)&&(c("delete"),c("has"),r&&c("get")),(h||d)&&c(a),o&&u.clear&&delete u.clear}return l[t]=s,$a({global:!0,forced:s!=i},l),MC(s,t),o||n.setStrong(s,t,r),s}("WeakMap",eR,tR);if(yj&&edt){Yp=tR.getConstructor(eR,"WeakMap",!0),UC.enable();var Xp=ndt.prototype,nR=te(Xp.delete),ny=te(Xp.has),rR=te(Xp.get),oR=te(Xp.set);HC(Xp,{delete:function(t){if(cn(t)&&!Rs(t)){var e=ey(this);return e.frozen||(e.frozen=new Yp),nR(this,t)||e.frozen.delete(t)}return nR(this,t)},has:function(t){if(cn(t)&&!Rs(t)){var e=ey(this);return e.frozen||(e.frozen=new Yp),ny(this,t)||e.frozen.has(t)}return ny(this,t)},get:function(t){if(cn(t)&&!Rs(t)){var e=ey(this);return e.frozen||(e.frozen=new Yp),ny(this,t)?rR(this,t):e.frozen.get(t)}return rR(this,t)},set:function(t,e){if(cn(t)&&!Rs(t)){var n=ey(this);n.frozen||(n.frozen=new Yp),ny(this,t)?oR(this,t,e):n.frozen.set(t,e)}else oR(this,t,e);return this}})}var iR={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},ZC=wC("span").classList,aR=ZC&&ZC.constructor&&ZC.constructor.prototype,rdt=aR===Object.prototype?void 0:aR,JC=Zn("iterator"),uR=Zn("toStringTag"),QC=Wp.values,sR=function(t,e){if(t){if(t[JC]!==QC)try{Qa(t,JC,QC)}catch{t[JC]=QC}if(t[uR]||Qa(t,uR,e),iR[e]){for(var n in Wp)if(t[n]!==Wp[n])try{Qa(t,n,Wp[n])}catch{t[n]=Wp[n]}}}};for(var $C in iR)sR(Rt[$C]&&Rt[$C].prototype,$C);sR(rdt,"DOMTokenList");var qC=new WeakMap,odt={type:"list-item",renderElem:function(t,e,n){qC.set(t,n);var r=t,o=r.level,a=o===void 0?0:o,i=r.ordered,u={margin:"5px 0 5px "+20*a+"px"},s="";if(i!==void 0&&i){var l=function(f,d){var p=d,m=p.type,h=p.level,v=h===void 0?0:h,y=p.ordered,g=y!==void 0&&y;if(!g)return-1;var w=1,E=d,x=P.findPath(f,E);if(x[0]===0)return 1;for(;x[0]>0;){var S=z.previous(x),C=D.node(f,S);if(C==null)break;var T=C[0],A=T.level,k=A===void 0?0:A,M=T.type,H=T.ordered;if(M!==m||k<v)break;if(k===v){if(H!==g)break;w++}E=T,x=S}return w}(n,t);s=l+"."}else s=function(f){f===void 0&&(f=0);var d="";switch(f){case 0:d="•";break;case 1:d="◦";break;default:d="▪"}return d}(a);var c=function(f){var d,p=f.children||[],m=p.length;if(m===0)return"";for(var h=0;h<m&&!d;h++){var v=p[h];vt.isText(v)&&(d=v)}return d==null?"":d.color||""}(t);return jt("div",{style:u},jt("span",{contentEditable:!1,style:{marginRight:"0.5em",color:c},"data-w-e-reserve":!0},s),jt("span",null,e))}},tD=function(t,e){return tD=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},tD(t,e);/*! *****************************************************************************
118
+ Copyright (c) Microsoft Corporation.
119
+
120
+ Permission to use, copy, modify, and/or distribute this software for any
121
+ purpose with or without fee is hereby granted.
122
+
123
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
124
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
125
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
126
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
127
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
128
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
129
+ PERFORMANCE OF THIS SOFTWARE.
130
+ ***************************************************************************** */};function lR(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}tD(t,e),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}function cR(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Zp(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r,o,a=n.call(t),i=[];try{for(;(e===void 0||e-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function fR(t){return D.nodes(t,{at:t.selection||void 0,match:function(e){return P.findPath(t,e).length===1}})}var idt=cj.includes;$a({target:"Array",proto:!0},{includes:function(t){return idt(this,t,arguments.length>1?arguments[1]:void 0)}}),Hp("includes");var dR,eD,adt=function(){var t=Br(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},nD=Rt.RegExp,pR=nn(function(){var t=nD("a","y");return t.lastIndex=2,t.exec("abcd")!=null});pR||nn(function(){return!nD("a","y").sticky});var udt={BROKEN_CARET:pR||nn(function(){var t=nD("^r","gy");return t.lastIndex=2,t.exec("str")!=null})},sdt=Rt.RegExp,ldt=nn(function(){var t=sdt(".","s");return!(t.dotAll&&t.exec(`
131
+ `)&&t.flags==="s")}),cdt=Rt.RegExp,fdt=nn(function(){var t=cdt("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),ddt=pi.get,pdt=pC("native-string-replace",String.prototype.replace),ry=RegExp.prototype.exec,rD=ry,hdt=te("".charAt),gdt=te("".indexOf),vdt=te("".replace),oD=te("".slice),iD=(eD=/b*/g,Vn(ry,dR=/a/,"a"),Vn(ry,eD,"a"),dR.lastIndex!==0||eD.lastIndex!==0),hR=udt.BROKEN_CARET,aD=/()??/.exec("")[1]!==void 0;(iD||aD||hR||ldt||fdt)&&(rD=function(t){var e,n,r,o,a,i,u,s=this,l=ddt(s),c=Xi(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=Vn(rD,f,c),s.lastIndex=f.lastIndex,e;var d=l.groups,p=hR&&s.sticky,m=Vn(adt,s),h=s.source,v=0,y=c;if(p&&(m=vdt(m,"y",""),gdt(m,"g")===-1&&(m+="g"),y=oD(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&hdt(c,s.lastIndex-1)!==`
132
+ `)&&(h="(?: "+h+")",y=" "+y,v++),n=new RegExp("^(?:"+h+")",m)),aD&&(n=new RegExp("^"+h+"$(?!\\s)",m)),iD&&(r=s.lastIndex),o=Vn(ry,p?n:s,y),p?o?(o.input=oD(o.input,v),o[0]=oD(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:iD&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),aD&&o&&o.length>1&&Vn(pdt,o[0],n,function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(o[a]=void 0)}),o&&d)for(o.groups=i=TC(null),a=0;a<d.length;a++)i[(u=d[a])[0]]=o[u[1]];return o});var oy=rD;$a({target:"RegExp",proto:!0,forced:/./.exec!==oy},{exec:oy});var gR=function(){function t(){this.type="list-item",this.tag="button"}return t.prototype.getListNode=function(e){var n=this.type;return P.getSelectedNodeByType(e,n)},t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){var n=this.getListNode(e);if(n==null)return!1;var r=n.ordered;return(r!==void 0&&r)===this.ordered},t.prototype.isDisabled=function(e){return e.selection==null||!!P.getSelectedElems(e).some(function(n){if(D.isVoid(e,n)&&D.isBlock(e,n))return!0;var r=n.type;return!!["pre","code","table"].includes(r)||void 0})},t.prototype.exec=function(e,n){this.isActive(e)?_.setNodes(e,{type:"paragraph",ordered:void 0,level:void 0}):_.setNodes(e,{type:"list-item",ordered:this.ordered,indent:void 0})},t}(),mdt='<svg viewBox="0 0 1024 1024"><path d="M384 64h640v128H384V64z m0 384h640v128H384v-128z m0 384h640v128H384v-128zM0 128a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z"></path></svg>',ydt='<svg viewBox="0 0 1024 1024"><path d="M384 832h640v128H384z m0-384h640v128H384z m0-384h640v128H384zM192 0v256H128V64H64V0zM128 526.016v50.016h128v64H64v-146.016l128-60V384H64v-64h192v146.016zM256 704v320H64v-64h128v-64H64v-64h128v-64H64v-64z"></path></svg>',bdt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.ordered=!1,n.title=lt("listModule.unOrderedList"),n.iconSvg=mdt,n}return lR(e,t),e}(gR),wdt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.ordered=!0,n.title=lt("listModule.orderedList"),n.iconSvg=ydt,n}return lR(e,t),e}(gR),Edt={key:"bulletedList",factory:function(){return new bdt}},Sdt={key:"numberedList",factory:function(){return new wdt}},vR=[],xdt={type:"list-item",elemToHtml:function(t,e){var n="",r="",o=t.ordered,a=o!==void 0&&o?"ol":"ul",i=function(l){var c=qC.get(l);if(c==null)return 0;var f=l,d=f.type,p=f.ordered,m=p!==void 0&&p,h=f.level,v=h===void 0?0:h,y=P.findPath(c,l);if(y[0]===0)return v+1;var g=z.previous(y),w=D.node(c,g);if(!w)return 0;var E=Zp(w,1)[0];if(P.getNodeType(E)!==d)return v+1;var x=E,S=x.ordered,C=S!==void 0&&S,T=x.level,A=T===void 0?0:T;return A<v?v-A:A>v?0:A===v?C===m?0:1:0}(t);if(i>0)for(var u=0;u<i;u++)n+="<"+a+">",vR.push(a);var s=function(l){var c=qC.get(l);if(c==null)return 0;var f=l,d=f.type,p=f.ordered,m=p!==void 0&&p,h=f.level,v=h===void 0?0:h,y=P.findPath(c,l);if(y[0]===c.children.length-1)return v+1;var g=z.next(y),w=D.node(c,g);if(!w)return 0;var E=Zp(w,1)[0];if(P.getNodeType(E)!==d)return v+1;var x=E,S=x.ordered,C=S!==void 0&&S,T=x.level,A=T===void 0?0:T;return A<v?v-A:A>v?0:A===v?C===m?0:1:0}(t);if(s>0)for(u=0;u<s;u++)r+="</"+vR.pop()+">";return{html:"<li>"+e+"</li>",prefix:n,suffix:r}}},Cdt=Zn("species"),Ddt=YC.filter,Odt=vC>=51||!nn(function(){var t=[];return(t.constructor={})[Cdt]=function(){return{foo:1}},t.filter(Boolean).foo!==1});$a({target:"Array",proto:!0,forced:!Odt},{filter:function(t){return Ddt(this,t,arguments.length>1?arguments[1]:void 0)}});var uD=Function.prototype,mR=uD.apply,Adt=uD.bind,yR=uD.call,Tdt=typeof Reflect=="object"&&Reflect.apply||(Adt?yR.bind(mR):function(){return yR.apply(mR,arguments)}),bR=(Zn("species"),RegExp.prototype),Bdt=jj.charAt,Pdt=function(t,e,n){return e+(n?Bdt(t,e).length:1)},Fdt=Math.floor,sD=te("".charAt),kdt=te("".replace),lD=te("".slice),Ndt=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Idt=/\$([$&'`]|\d{1,2})/g,jdt=function(t,e,n,r,o,a){var i=n+t.length,u=r.length,s=Idt;return o!==void 0&&(o=jp(o),s=Ndt),kdt(a,s,function(l,c){var f;switch(sD(c,0)){case"$":return"$";case"&":return t;case"`":return lD(e,0,n);case"'":return lD(e,i);case"<":f=o[lD(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=Fdt(d/10);return p===0?l:p<=u?r[p-1]===void 0?sD(c,1):r[p-1]+sD(c,1):l}f=r[d-1]}return f===void 0?"":f})},Rdt=Rt.TypeError,Ldt=function(t,e){var n=t.exec;if(ln(n)){var r=Vn(n,t,e);return r!==null&&Br(r),r}if(Ki(t)==="RegExp")return Vn(oy,t,e);throw Rdt("RegExp#exec called on incompatible receiver")},cD=Zn("replace"),Mdt=Math.max,Vdt=Math.min,zdt=te([].concat),fD=te([].push),wR=te("".indexOf),ER=te("".slice),Hdt="a".replace(/./,"$0")==="$0",SR=!!/./[cD]&&/./[cD]("a","$0")==="";(function(t,e,n,r){var o=Zn(t),a=!nn(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),i=a&&!nn(function(){var l=!1,c=/a/;return c.exec=function(){return l=!0,null},c[o](""),!l});if(!a||!i||n){var u=te(/./[o]),s=function(l,c,f){var d=SR?"$":"$0";return[function(p,m){var h=M0(this),v=p==null?void 0:Vp(p,cD);return v?Vn(v,p,h,m):Vn(c,Xi(h),p,m)},function(p,m){var h=Br(this),v=Xi(p);if(typeof m=="string"&&wR(m,d)===-1&&wR(m,"$<")===-1){var y=f(c,h,v,m);if(y.done)return y.value}var g=ln(m);g||(m=Xi(m));var w=h.global;if(w){var E=h.unicode;h.lastIndex=0}for(var x=[];;){var S=Ldt(h,v);if(S===null||(fD(x,S),!w))break;Xi(S[0])===""&&(h.lastIndex=Pdt(v,sj(h.lastIndex),E))}for(var C,T="",A=0,k=0;k<x.length;k++){for(var M=Xi((S=x[k])[0]),H=Mdt(Vdt(zp(S.index),v.length),0),N=[],j=1;j<S.length;j++)fD(N,(C=S[j])===void 0?C:String(C));var G=S.groups;if(g){var V=zdt([M],N,H,v);G!==void 0&&fD(V,G);var J=Xi(Tdt(m,void 0,V))}else J=jdt(M,v,H,N,G,m);H>=A&&(T+=ER(v,A,H)+J,A=H+M.length)}return T+ER(v,A)}]}(0,""[t],function(l,c,f,d,p){var m=te(l),h=c.exec;return h===oy||h===bR.exec?a&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:m(f,c,d)}:{done:!1}});Yi(String.prototype,t,s[0]),Yi(bR,o,s[1])}})("replace",0,!!nn(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!Hdt||SR);var Udt=Rt.TypeError,xR=function(t,e,n,r,o,a,i,u){for(var s,l,c=o,f=0,d=!!i&&_C(i,u);f<r;){if(f in n){if(s=d?d(n[f],f,e):n[f],a>0&&GC(s))l=Pc(s),c=xR(t,e,s,l,c,a-1)-1;else{if(c>=9007199254740991)throw Udt("Exceed the acceptable array length");t[c]=s}c++}f++}return c},_dt=xR;function dD(t){return t.length?t[0].tagName.toLowerCase():""}$a({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=jp(this),n=Pc(e),r=Qj(e,0);return r.length=_dt(r,e,e,n,0,t===void 0?1:zp(t)),r}}),Hp("flat"),$a({global:!0},{globalThis:Rt}),ao&&(F.fn.append=ao),io&&(F.fn.attr=io),Fl&&(F.fn.parent=Fl);var Gdt={renderElems:[odt],editorPlugin:function(t){var e=t.deleteBackward,n=t.handleTab,r=t.normalizeNode,o=t;return o.deleteBackward=function(a){var i=o.selection;if(i!=null)if($.isExpanded(i))e(a);else{var u=P.getSelectedNodeByType(o,"list-item");if(u!=null)if(i.focus.offset!==0)e(a);else{var s=u.level,l=s===void 0?0:s;l>0?_.setNodes(o,{level:l-1}):_.setNodes(o,{type:"paragraph",ordered:void 0,level:void 0})}else e(a)}else e(a)},o.handleTab=function(){var a,i,u,s,l=o.selection;if(l!=null){if($.isCollapsed(l)){var c=P.getSelectedNodeByType(o,"list-item");if(c==null)return void n();if(l.focus.offset===0){var f=c.level,d=f===void 0?0:f;return void _.setNodes(o,{level:d+1})}}if($.isExpanded(l)){var p=0,m=!1;try{for(var h=cR(fR(o)),v=h.next();!v.done;v=h.next()){var y=Zp(v.value,1)[0];P.getNodeType(y)==="list-item"?p++:m=!0}}catch(C){a={error:C}}finally{try{v&&!v.done&&(i=h.return)&&i.call(h)}finally{if(a)throw a.error}}if(m||p<=1)return void n();try{for(var g=cR(fR(o)),w=g.next();!w.done;w=g.next()){var E=Zp(w.value,2),x=(y=E[0],E[1]),S=y.level;d=S===void 0?0:S,_.setNodes(o,{level:d+1},{at:x})}}catch(C){u={error:C}}finally{try{w&&!w.done&&(s=g.return)&&s.call(g)}finally{if(u)throw u.error}}}else n()}else n()},o.normalizeNode=function(a){var i=Zp(a,2),u=i[0],s=i[1],l=P.getNodeType(u);return l!=="bulleted-list"&&l!=="numbered-list"||_.unwrapNodes(o,{at:s}),r([u,s])},o},menus:[Edt,Sdt],elemsToHtml:[xdt],parseElemsHtml:[{selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(t,e,n){return e.flat(1/0)}},{selector:"li:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=F(t);(e=e.filter(function(i){return!!vt.isText(i)||!!n.isInline(i)})).length===0&&(e=[{text:r.text().replace(/\s+/gm," ")}]);var o=function(i){return dD(i.parent())==="ol"}(r),a=function(i){for(var u=0,s=i.parent(),l=dD(s);l==="ul"||l==="ol";)l=dD(s=s.parent()),u++;return u-1}(r);return{type:"list-item",ordered:o,level:a,children:e}}}]},CR=Pu(function(t,e){var n="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",a="[object Array]",i="[object Boolean]",u="[object Date]",s="[object Error]",l="[object Function]",c="[object Map]",f="[object Number]",d="[object Object]",p="[object Promise]",m="[object RegExp]",h="[object Set]",v="[object String]",y="[object Symbol]",g="[object WeakMap]",w="[object ArrayBuffer]",E="[object DataView]",x=/^\[object .+?Constructor\]$/,S=/^(?:0|[1-9]\d*)$/,C={};C["[object Float32Array]"]=C["[object Float64Array]"]=C["[object Int8Array]"]=C["[object Int16Array]"]=C["[object Int32Array]"]=C["[object Uint8Array]"]=C["[object Uint8ClampedArray]"]=C["[object Uint16Array]"]=C["[object Uint32Array]"]=!0,C[o]=C[a]=C[w]=C[i]=C[E]=C[u]=C[s]=C[l]=C[c]=C[f]=C[d]=C[m]=C[h]=C[v]=C[g]=!1;var T=typeof Be=="object"&&Be&&Be.Object===Object&&Be,A=typeof self=="object"&&self&&self.Object===Object&&self,k=T||A||Function("return this")(),M=e&&!e.nodeType&&e,H=M&&t&&!t.nodeType&&t,N=H&&H.exports===M,j=N&&T.process,G=function(){try{return j&&j.binding&&j.binding("util")}catch{}}(),V=G&&G.isTypedArray;function J(L,Q){for(var ut=-1,At=L==null?0:L.length;++ut<At;)if(Q(L[ut],ut,L))return!0;return!1}function rt(L){var Q=-1,ut=Array(L.size);return L.forEach(function(At,Ce){ut[++Q]=[Ce,At]}),ut}function it(L){var Q=-1,ut=Array(L.size);return L.forEach(function(At){ut[++Q]=At}),ut}var W=Array.prototype,O=Function.prototype,B=Object.prototype,I=k["__core-js_shared__"],Y=O.toString,et=B.hasOwnProperty,X=function(){var L=/[^.]+$/.exec(I&&I.keys&&I.keys.IE_PROTO||"");return L?"Symbol(src)_1."+L:""}(),ot=B.toString,mt=RegExp("^"+Y.call(et).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),bt=N?k.Buffer:void 0,Pt=k.Symbol,tt=k.Uint8Array,Mt=B.propertyIsEnumerable,Dt=W.splice,ht=Pt?Pt.toStringTag:void 0,kt=Object.getOwnPropertySymbols,ye=bt?bt.isBuffer:void 0,zt=function(L,Q){return function(ut){return L(Q(ut))}}(Object.keys,Object),he=to(k,"DataView"),Te=to(k,"Map"),ke=to(k,"Promise"),Ut=to(k,"Set"),bn=to(k,"WeakMap"),Jn=to(Object,"create"),lr=ea(he),Do=ea(Te),Qr=ea(ke),Qn=ea(Ut),cr=ea(bn),K=Pt?Pt.prototype:void 0,U=K?K.valueOf:void 0;function Z(L){var Q=-1,ut=L==null?0:L.length;for(this.clear();++Q<ut;){var At=L[Q];this.set(At[0],At[1])}}function nt(L){var Q=-1,ut=L==null?0:L.length;for(this.clear();++Q<ut;){var At=L[Q];this.set(At[0],At[1])}}function gt(L){var Q=-1,ut=L==null?0:L.length;for(this.clear();++Q<ut;){var At=L[Q];this.set(At[0],At[1])}}function wt(L){var Q=-1,ut=L==null?0:L.length;for(this.__data__=new gt;++Q<ut;)this.add(L[Q])}function Ft(L){var Q=this.__data__=new nt(L);this.size=Q.size}function ae(L,Q){var ut=na(L),At=!ut&&G1(L),Ce=!ut&&!At&&Ci(L),ne=!ut&&!At&&!Ce&&Oi(L),R=ut||At||Ce||ne,q=R?function(ue,Ke){for(var Re=-1,ge=Array(ue);++Re<ue;)ge[Re]=Ke(Re);return ge}(L.length,String):[],dt=q.length;for(var yt in L)!et.call(L,yt)||R&&(yt=="length"||Ce&&(yt=="offset"||yt=="parent")||ne&&(yt=="buffer"||yt=="byteLength"||yt=="byteOffset")||vg(yt,dt))||q.push(yt);return q}function xe(L,Q){for(var ut=L.length;ut--;)if(ff(L[ut][0],Q))return ut;return-1}function Bt(L){return L==null?L===void 0?"[object Undefined]":"[object Null]":ht&&ht in Object(L)?function(Q){var ut=et.call(Q,ht),At=Q[ht];try{Q[ht]=void 0;var Ce=!0}catch{}var ne=ot.call(Q);return Ce&&(ut?Q[ht]=At:delete Q[ht]),ne}(L):function(Q){return ot.call(Q)}(L)}function Et(L){return xu(L)&&Bt(L)==o}function Tt(L,Q,ut,At,Ce){return L===Q||(L==null||Q==null||!xu(L)&&!xu(Q)?L!=L&&Q!=Q:function(ne,R,q,dt,yt,ue){var Ke=na(ne),Re=na(R),ge=Ke?a:eo(ne),Rn=Re?a:eo(R),fr=(ge=ge==o?d:ge)==d,rl=(Rn=Rn==o?d:Rn)==d,ra=ge==Rn;if(ra&&Ci(ne)){if(!Ci(R))return!1;Ke=!0,fr=!1}if(ra&&!fr)return ue||(ue=new Ft),Ke||Oi(ne)?je(ne,R,q,dt,yt,ue):function(oe,ve,me,fn,mr,kr,Go){switch(me){case E:if(oe.byteLength!=ve.byteLength||oe.byteOffset!=ve.byteOffset)return!1;oe=oe.buffer,ve=ve.buffer;case w:return!(oe.byteLength!=ve.byteLength||!kr(new tt(oe),new tt(ve)));case i:case u:case f:return ff(+oe,+ve);case s:return oe.name==ve.name&&oe.message==ve.message;case m:case v:return oe==ve+"";case c:var Du=rt;case h:var yg=1&fn;if(Du||(Du=it),oe.size!=ve.size&&!yg)return!1;var Y1=Go.get(oe);if(Y1)return Y1==ve;fn|=2,Go.set(oe,ve);var df=je(Du(oe),Du(ve),fn,mr,kr,Go);return Go.delete(oe),df;case y:if(U)return U.call(oe)==U.call(ve)}return!1}(ne,R,ge,q,dt,yt,ue);if(!(1&q)){var Cu=fr&&et.call(ne,"__wrapped__"),Lt=rl&&et.call(R,"__wrapped__");if(Cu||Lt){var we=Cu?ne.value():ne,wn=Lt?R.value():R;return ue||(ue=new Ft),yt(we,wn,q,dt,ue)}}return ra?(ue||(ue=new Ft),function(oe,ve,me,fn,mr,kr){var Go=1&me,Du=$r(oe),yg=Du.length,Y1=$r(ve).length;if(yg!=Y1&&!Go)return!1;for(var df=yg;df--;){var ol=Du[df];if(!(Go?ol in ve:et.call(ve,ol)))return!1}var e_=kr.get(oe);if(e_&&kr.get(ve))return e_==ve;var X1=!0;kr.set(oe,ve),kr.set(ve,oe);for(var R8=Go;++df<yg;){var Z1=oe[ol=Du[df]],J1=ve[ol];if(fn)var n_=Go?fn(J1,Z1,ol,ve,oe,kr):fn(Z1,J1,ol,oe,ve,kr);if(!(n_===void 0?Z1===J1||mr(Z1,J1,me,fn,kr):n_)){X1=!1;break}R8||(R8=ol=="constructor")}if(X1&&!R8){var Q1=oe.constructor,$1=ve.constructor;Q1==$1||!("constructor"in oe)||!("constructor"in ve)||typeof Q1=="function"&&Q1 instanceof Q1&&typeof $1=="function"&&$1 instanceof $1||(X1=!1)}return kr.delete(oe),kr.delete(ve),X1}(ne,R,q,dt,yt,ue)):!1}(L,Q,ut,At,Tt,Ce))}function Jt(L){return!(!W1(L)||function(Q){return!!X&&X in Q}(L))&&(mg(L)?mt:x).test(ea(L))}function Wt(L){if(ut=(Q=L)&&Q.constructor,At=typeof ut=="function"&&ut.prototype||B,Q!==At)return zt(L);var Q,ut,At,Ce=[];for(var ne in Object(L))et.call(L,ne)&&ne!="constructor"&&Ce.push(ne);return Ce}function je(L,Q,ut,At,Ce,ne){var R=1&ut,q=L.length,dt=Q.length;if(q!=dt&&!(R&&dt>q))return!1;var yt=ne.get(L);if(yt&&ne.get(Q))return yt==Q;var ue=-1,Ke=!0,Re=2&ut?new wt:void 0;for(ne.set(L,Q),ne.set(Q,L);++ue<q;){var ge=L[ue],Rn=Q[ue];if(At)var fr=R?At(Rn,ge,ue,Q,L,ne):At(ge,Rn,ue,L,Q,ne);if(fr!==void 0){if(fr)continue;Ke=!1;break}if(Re){if(!J(Q,function(rl,ra){if(Cu=ra,!Re.has(Cu)&&(ge===rl||Ce(ge,rl,ut,At,ne)))return Re.push(ra);var Cu})){Ke=!1;break}}else if(ge!==Rn&&!Ce(ge,Rn,ut,At,ne)){Ke=!1;break}}return ne.delete(L),ne.delete(Q),Ke}function $r(L){return function(Q,ut,At){var Ce=ut(Q);return na(Q)?Ce:function(ne,R){for(var q=-1,dt=R.length,yt=ne.length;++q<dt;)ne[yt+q]=R[q];return ne}(Ce,At(Q))}(L,K1,_1)}function qr(L,Q){var ut,At,Ce=L.__data__;return((At=typeof(ut=Q))=="string"||At=="number"||At=="symbol"||At=="boolean"?ut!=="__proto__":ut===null)?Ce[typeof Q=="string"?"string":"hash"]:Ce.map}function to(L,Q){var ut=function(At,Ce){return At==null?void 0:At[Ce]}(L,Q);return Jt(ut)?ut:void 0}Z.prototype.clear=function(){this.__data__=Jn?Jn(null):{},this.size=0},Z.prototype.delete=function(L){var Q=this.has(L)&&delete this.__data__[L];return this.size-=Q?1:0,Q},Z.prototype.get=function(L){var Q=this.__data__;if(Jn){var ut=Q[L];return ut===n?void 0:ut}return et.call(Q,L)?Q[L]:void 0},Z.prototype.has=function(L){var Q=this.__data__;return Jn?Q[L]!==void 0:et.call(Q,L)},Z.prototype.set=function(L,Q){var ut=this.__data__;return this.size+=this.has(L)?0:1,ut[L]=Jn&&Q===void 0?n:Q,this},nt.prototype.clear=function(){this.__data__=[],this.size=0},nt.prototype.delete=function(L){var Q=this.__data__,ut=xe(Q,L);return!(ut<0)&&(ut==Q.length-1?Q.pop():Dt.call(Q,ut,1),--this.size,!0)},nt.prototype.get=function(L){var Q=this.__data__,ut=xe(Q,L);return ut<0?void 0:Q[ut][1]},nt.prototype.has=function(L){return xe(this.__data__,L)>-1},nt.prototype.set=function(L,Q){var ut=this.__data__,At=xe(ut,L);return At<0?(++this.size,ut.push([L,Q])):ut[At][1]=Q,this},gt.prototype.clear=function(){this.size=0,this.__data__={hash:new Z,map:new(Te||nt),string:new Z}},gt.prototype.delete=function(L){var Q=qr(this,L).delete(L);return this.size-=Q?1:0,Q},gt.prototype.get=function(L){return qr(this,L).get(L)},gt.prototype.has=function(L){return qr(this,L).has(L)},gt.prototype.set=function(L,Q){var ut=qr(this,L),At=ut.size;return ut.set(L,Q),this.size+=ut.size==At?0:1,this},wt.prototype.add=wt.prototype.push=function(L){return this.__data__.set(L,n),this},wt.prototype.has=function(L){return this.__data__.has(L)},Ft.prototype.clear=function(){this.__data__=new nt,this.size=0},Ft.prototype.delete=function(L){var Q=this.__data__,ut=Q.delete(L);return this.size=Q.size,ut},Ft.prototype.get=function(L){return this.__data__.get(L)},Ft.prototype.has=function(L){return this.__data__.has(L)},Ft.prototype.set=function(L,Q){var ut=this.__data__;if(ut instanceof nt){var At=ut.__data__;if(!Te||At.length<199)return At.push([L,Q]),this.size=++ut.size,this;ut=this.__data__=new gt(At)}return ut.set(L,Q),this.size=ut.size,this};var _1=kt?function(L){return L==null?[]:(L=Object(L),function(Q,ut){for(var At=-1,Ce=Q==null?0:Q.length,ne=0,R=[];++At<Ce;){var q=Q[At];ut(q,At,Q)&&(R[ne++]=q)}return R}(kt(L),function(Q){return Mt.call(L,Q)}))}:function(){return[]},eo=Bt;function vg(L,Q){return!!(Q=Q??r)&&(typeof L=="number"||S.test(L))&&L>-1&&L%1==0&&L<Q}function ea(L){if(L!=null){try{return Y.call(L)}catch{}try{return L+""}catch{}}return""}function ff(L,Q){return L===Q||L!=L&&Q!=Q}(he&&eo(new he(new ArrayBuffer(1)))!=E||Te&&eo(new Te)!=c||ke&&eo(ke.resolve())!=p||Ut&&eo(new Ut)!=h||bn&&eo(new bn)!=g)&&(eo=function(L){var Q=Bt(L),ut=Q==d?L.constructor:void 0,At=ut?ea(ut):"";if(At)switch(At){case lr:return E;case Do:return c;case Qr:return p;case Qn:return h;case cr:return g}return Q});var G1=Et(function(){return arguments}())?Et:function(L){return xu(L)&&et.call(L,"callee")&&!Mt.call(L,"callee")},na=Array.isArray,Ci=ye||function(){return!1};function mg(L){if(!W1(L))return!1;var Q=Bt(L);return Q==l||Q=="[object GeneratorFunction]"||Q=="[object AsyncFunction]"||Q=="[object Proxy]"}function Di(L){return typeof L=="number"&&L>-1&&L%1==0&&L<=r}function W1(L){var Q=typeof L;return L!=null&&(Q=="object"||Q=="function")}function xu(L){return L!=null&&typeof L=="object"}var Oi=V?function(L){return function(Q){return L(Q)}}(V):function(L){return xu(L)&&Di(L.length)&&!!C[Bt(L)]};function K1(L){return(Q=L)!=null&&Di(Q.length)&&!mg(Q)?ae(L):Wt(L);var Q}t.exports=function(L,Q){return Tt(L,Q)}});Or("en",{tableModule:{deleteCol:"Delete column",deleteRow:"Delete row",deleteTable:"Delete table",widthAuto:"Width auto",insertCol:"Insert column",insertRow:"Insert row",insertTable:"Insert table",header:"Header"}}),Or("zh-CN",{tableModule:{deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"宽度自适应",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头"}});var DR=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function OR(t){var e={exports:{}};return t(e,e.exports),e.exports}var qa,iy,ay=function(t){return t&&t.Math==Math&&t},$t=ay(typeof globalThis=="object"&&globalThis)||ay(typeof window=="object"&&window)||ay(typeof self=="object"&&self)||ay(typeof DR=="object"&&DR)||function(){return this}()||Function("return this")(),Tn=function(t){try{return!!t()}catch{return!0}},tu=!Tn(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Jp=Function.prototype.call,jn=Jp.bind?Jp.bind(Jp):function(){return Jp.apply(Jp,arguments)},AR={}.propertyIsEnumerable,TR=Object.getOwnPropertyDescriptor,Wdt={f:TR&&!AR.call({1:2},1)?function(t){var e=TR(this,t);return!!e&&e.enumerable}:AR},pD=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},BR=Function.prototype,hD=BR.bind,gD=BR.call,Kdt=hD&&hD.bind(gD),re=hD?function(t){return t&&Kdt(gD,t)}:function(t){return t&&function(){return gD.apply(t,arguments)}},Ydt=re({}.toString),Xdt=re("".slice),eu=function(t){return Xdt(Ydt(t),8,-1)},vD=$t.Object,Zdt=re("".split),PR=Tn(function(){return!vD("z").propertyIsEnumerable(0)})?function(t){return eu(t)=="String"?Zdt(t,""):vD(t)}:vD,Jdt=$t.TypeError,nu=function(t){if(t==null)throw Jdt("Can't call method on "+t);return t},Qp=function(t){return PR(nu(t))},ur=function(t){return typeof t=="function"},hi=function(t){return typeof t=="object"?t!==null:ur(t)},Qdt=function(t){return ur(t)?t:void 0},$p=function(t,e){return arguments.length<2?Qdt($t[t]):$t[t]&&$t[t][e]},FR=re({}.isPrototypeOf),mD=$p("navigator","userAgent")||"",kR=$t.process,NR=$t.Deno,IR=kR&&kR.versions||NR&&NR.version,jR=IR&&IR.v8;jR&&(iy=(qa=jR.split("."))[0]>0&&qa[0]<4?1:+(qa[0]+qa[1])),!iy&&mD&&(!(qa=mD.match(/Edge\/(\d+)/))||qa[1]>=74)&&(qa=mD.match(/Chrome\/(\d+)/))&&(iy=+qa[1]);var yD=iy,bD=!!Object.getOwnPropertySymbols&&!Tn(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&yD&&yD<41}),wD=bD&&!Symbol.sham&&typeof Symbol.iterator=="symbol",$dt=$t.Object,ED=wD?function(t){return typeof t=="symbol"}:function(t){var e=$p("Symbol");return ur(e)&&FR(e.prototype,$dt(t))},qdt=$t.String,RR=function(t){try{return qdt(t)}catch{return"Object"}},tpt=$t.TypeError,LR=function(t){if(ur(t))return t;throw tpt(RR(t)+" is not a function")},SD=function(t,e){var n=t[e];return n==null?void 0:LR(n)},ept=$t.TypeError,npt=Object.defineProperty,xD=function(t,e){try{npt($t,t,{value:e,configurable:!0,writable:!0})}catch{$t[t]=e}return e},ru=$t["__core-js_shared__"]||xD("__core-js_shared__",{}),CD=OR(function(t){(t.exports=function(e,n){return ru[e]||(ru[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),rpt=$t.Object,DD=function(t){return rpt(nu(t))},opt=re({}.hasOwnProperty),yo=Object.hasOwn||function(t,e){return opt(DD(t),e)},ipt=0,apt=Math.random(),upt=re(1 .toString),MR=function(t){return"Symbol("+(t===void 0?"":t)+")_"+upt(++ipt+apt,36)},qp=CD("wks"),Ls=$t.Symbol,VR=Ls&&Ls.for,spt=wD?Ls:Ls&&Ls.withoutSetter||MR,bo=function(t){if(!yo(qp,t)||!bD&&typeof qp[t]!="string"){var e="Symbol."+t;bD&&yo(Ls,t)?qp[t]=Ls[t]:qp[t]=wD&&VR?VR(e):spt(e)}return qp[t]},lpt=$t.TypeError,cpt=bo("toPrimitive"),OD=function(t){var e=function(n,r){if(!hi(n)||ED(n))return n;var o,a=SD(n,cpt);if(a){if(o=jn(a,n,r),!hi(o)||ED(o))return o;throw lpt("Can't convert object to primitive value")}return function(i,u){var s,l;if(ur(s=i.toString)&&!hi(l=jn(s,i))||ur(s=i.valueOf)&&!hi(l=jn(s,i)))return l;throw ept("Can't convert object to primitive value")}(n)}(t,"string");return ED(e)?e:e+""},AD=$t.document,fpt=hi(AD)&&hi(AD.createElement),TD=function(t){return fpt?AD.createElement(t):{}},zR=!tu&&!Tn(function(){return Object.defineProperty(TD("div"),"a",{get:function(){return 7}}).a!=7}),HR=Object.getOwnPropertyDescriptor,UR={f:tu?HR:function(t,e){if(t=Qp(t),e=OD(e),zR)try{return HR(t,e)}catch{}if(yo(t,e))return pD(!jn(Wdt.f,t,e),t[e])}},dpt=$t.String,ppt=$t.TypeError,wo=function(t){if(hi(t))return t;throw ppt(dpt(t)+" is not an object")},hpt=$t.TypeError,_R=Object.defineProperty,th={f:tu?_R:function(t,e,n){if(wo(t),e=OD(e),wo(n),zR)try{return _R(t,e,n)}catch{}if("get"in n||"set"in n)throw hpt("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Nc=tu?function(t,e,n){return th.f(t,e,pD(1,n))}:function(t,e,n){return t[e]=n,t},gpt=re(Function.toString);ur(ru.inspectSource)||(ru.inspectSource=function(t){return gpt(t)});var BD,uy,PD,FD=ru.inspectSource,GR=$t.WeakMap,vpt=ur(GR)&&/native code/.test(FD(GR)),WR=CD("keys"),KR=function(t){return WR[t]||(WR[t]=MR(t))},kD={},YR=$t.TypeError,mpt=$t.WeakMap;if(vpt||ru.state){var Ms=ru.state||(ru.state=new mpt),ypt=re(Ms.get),XR=re(Ms.has),bpt=re(Ms.set);BD=function(t,e){if(XR(Ms,t))throw new YR("Object already initialized");return e.facade=t,bpt(Ms,t,e),e},uy=function(t){return ypt(Ms,t)||{}},PD=function(t){return XR(Ms,t)}}else{var Ic=KR("state");kD[Ic]=!0,BD=function(t,e){if(yo(t,Ic))throw new YR("Object already initialized");return e.facade=t,Nc(t,Ic,e),e},uy=function(t){return yo(t,Ic)?t[Ic]:{}},PD=function(t){return yo(t,Ic)}}var ND={get:uy,enforce:function(t){return PD(t)?uy(t):BD(t,{})}},ZR=Function.prototype,wpt=tu&&Object.getOwnPropertyDescriptor,JR=yo(ZR,"name"),ID={PROPER:JR&&(function(){}).name==="something",CONFIGURABLE:JR&&(!tu||tu&&wpt(ZR,"name").configurable)},eh=OR(function(t){var e=ID.CONFIGURABLE,n=ND.get,r=ND.enforce,o=String(String).split("String");(t.exports=function(a,i,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:i;ur(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!yo(u,"name")||e&&u.name!==p)&&Nc(u,"name",p),(l=r(u)).source||(l.source=o.join(typeof p=="string"?p:""))),a!==$t?(c?!d&&a[i]&&(f=!0):delete a[i],f?a[i]=u:Nc(a,i,u)):f?a[i]=u:xD(i,u)})(Function.prototype,"toString",function(){return ur(this)&&n(this).source||FD(this)})}),Ept=Math.ceil,Spt=Math.floor,sy=function(t){var e=+t;return e!=e||e===0?0:(e>0?Spt:Ept)(e)},xpt=Math.max,Cpt=Math.min,nh=function(t,e){var n=sy(t);return n<0?xpt(n+e,0):Cpt(n,e)},Dpt=Math.min,jD=function(t){return t>0?Dpt(sy(t),9007199254740991):0},ly=function(t){return jD(t.length)},Opt=function(t){return function(e,n,r){var o,a=Qp(e),i=ly(a),u=nh(r,i);if(t&&n!=n){for(;i>u;)if((o=a[u++])!=o)return!0}else for(;i>u;u++)if((t||u in a)&&a[u]===n)return t||u||0;return!t&&-1}},Apt=Opt(!1),QR=re([].push),$R=function(t,e){var n,r=Qp(t),o=0,a=[];for(n in r)!yo(kD,n)&&yo(r,n)&&QR(a,n);for(;e.length>o;)yo(r,n=e[o++])&&(~Apt(a,n)||QR(a,n));return a},cy=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Tpt=cy.concat("length","prototype"),Bpt={f:Object.getOwnPropertyNames||function(t){return $R(t,Tpt)}},Ppt={f:Object.getOwnPropertySymbols},Fpt=re([].concat),kpt=$p("Reflect","ownKeys")||function(t){var e=Bpt.f(wo(t)),n=Ppt.f;return n?Fpt(e,n(t)):e},Npt=function(t,e){for(var n=kpt(e),r=th.f,o=UR.f,a=0;a<n.length;a++){var i=n[a];yo(t,i)||r(t,i,o(e,i))}},Ipt=/#|\.prototype\./,rh=function(t,e){var n=Rpt[jpt(t)];return n==Mpt||n!=Lpt&&(ur(e)?Tn(e):!!e)},jpt=rh.normalize=function(t){return String(t).replace(Ipt,".").toLowerCase()},Rpt=rh.data={},Lpt=rh.NATIVE="N",Mpt=rh.POLYFILL="P",Vpt=rh,zpt=UR.f,ou=function(t,e){var n,r,o,a,i,u=t.target,s=t.global,l=t.stat;if(n=s?$t:l?$t[u]||xD(u,{}):($t[u]||{}).prototype)for(r in e){if(a=e[r],o=t.noTargetGet?(i=zpt(n,r))&&i.value:n[r],!Vpt(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof a==typeof o)continue;Npt(a,o)}(t.sham||o&&o.sham)&&Nc(a,"sham",!0),eh(n,r,a,t)}},qR={};qR[bo("toStringTag")]="z";var RD=String(qR)==="[object z]",Hpt=bo("toStringTag"),Upt=$t.Object,_pt=eu(function(){return arguments}())=="Arguments",LD=RD?eu:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,a){try{return o[a]}catch{}}(e=Upt(t),Hpt))=="string"?n:_pt?eu(e):(r=eu(e))=="Object"&&ur(e.callee)?"Arguments":r},Gpt=$t.String,sr=function(t){if(LD(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Gpt(t)},Wpt=/"/g,Kpt=re("".replace);ou({target:"String",proto:!0,forced:Tn(function(){var t="".anchor('"');return t!==t.toLowerCase()||t.split('"').length>3})},{anchor:function(t){return e=t,n=sr(nu(this)),r="<a",(r+=' name="'+Kpt(sr(e),Wpt,"&quot;")+'"')+">"+n+"</a>";var e,n,r}});var fy,tL=function(){var t=wo(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},MD=$t.RegExp,VD=Tn(function(){var t=MD("a","y");return t.lastIndex=2,t.exec("abcd")!=null});VD||Tn(function(){return!MD("a","y").sticky});var eL={BROKEN_CARET:VD||Tn(function(){var t=MD("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),UNSUPPORTED_Y:VD},Ypt=Object.keys||function(t){return $R(t,cy)},Xpt=tu?Object.defineProperties:function(t,e){wo(t);for(var n,r=Qp(e),o=Ypt(e),a=o.length,i=0;a>i;)th.f(t,n=o[i++],r[n]);return t},Zpt=$p("document","documentElement"),nL=KR("IE_PROTO"),zD=function(){},rL=function(t){return"<script>"+t+"<\/script>"},oL=function(t){t.write(rL("")),t.close();var e=t.parentWindow.Object;return t=null,e},dy=function(){try{fy=new ActiveXObject("htmlfile")}catch{}var t,e;dy=typeof document<"u"?document.domain&&fy?oL(fy):((e=TD("iframe")).style.display="none",Zpt.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(rL("document.F=Object")),t.close(),t.F):oL(fy);for(var n=cy.length;n--;)delete dy.prototype[cy[n]];return dy()};kD[nL]=!0;var iL,HD,aL=Object.create||function(t,e){var n;return t!==null?(zD.prototype=wo(t),n=new zD,zD.prototype=null,n[nL]=t):n=dy(),e===void 0?n:Xpt(n,e)},Jpt=$t.RegExp,Qpt=Tn(function(){var t=Jpt(".","s");return!(t.dotAll&&t.exec(`
133
+ `)&&t.flags==="s")}),$pt=$t.RegExp,qpt=Tn(function(){var t=$pt("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),tht=ND.get,eht=CD("native-string-replace",String.prototype.replace),py=RegExp.prototype.exec,UD=py,nht=re("".charAt),rht=re("".indexOf),oht=re("".replace),_D=re("".slice),GD=(HD=/b*/g,jn(py,iL=/a/,"a"),jn(py,HD,"a"),iL.lastIndex!==0||HD.lastIndex!==0),uL=eL.BROKEN_CARET,WD=/()??/.exec("")[1]!==void 0;(GD||WD||uL||Qpt||qpt)&&(UD=function(t){var e,n,r,o,a,i,u,s=this,l=tht(s),c=sr(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=jn(UD,f,c),s.lastIndex=f.lastIndex,e;var d=l.groups,p=uL&&s.sticky,m=jn(tL,s),h=s.source,v=0,y=c;if(p&&(m=oht(m,"y",""),rht(m,"g")===-1&&(m+="g"),y=_D(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&nht(c,s.lastIndex-1)!==`
134
+ `)&&(h="(?: "+h+")",y=" "+y,v++),n=new RegExp("^(?:"+h+")",m)),WD&&(n=new RegExp("^"+h+"$(?!\\s)",m)),GD&&(r=s.lastIndex),o=jn(py,p?n:s,y),p?o?(o.input=_D(o.input,v),o[0]=_D(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:GD&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),WD&&o&&o.length>1&&jn(eht,o[0],n,function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(o[a]=void 0)}),o&&d)for(o.groups=i=aL(null),a=0;a<d.length;a++)i[(u=d[a])[0]]=o[u[1]];return o});var oh=UD;ou({target:"RegExp",proto:!0,forced:/./.exec!==oh},{exec:oh});var hy=Array.isArray||function(t){return eu(t)=="Array"},sL=function(){},iht=[],lL=$p("Reflect","construct"),KD=/^\s*(?:class|function)\b/,aht=re(KD.exec),uht=!KD.exec(sL),ih=function(t){if(!ur(t))return!1;try{return lL(sL,iht,t),!0}catch{return!1}},YD=!lL||Tn(function(){var t;return ih(ih.call)||!ih(Object)||!ih(function(){t=!0})||t})?function(t){if(!ur(t))return!1;switch(LD(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return uht||!!aht(KD,FD(t))}:ih,cL=function(t,e,n){var r=OD(e);r in t?th.f(t,r,pD(0,n)):t[r]=n},sht=bo("species"),XD=function(t){return yD>=51||!Tn(function(){var e=[];return(e.constructor={})[sht]=function(){return{foo:1}},e[t](Boolean).foo!==1})},lht=re([].slice),cht=XD("slice"),fht=bo("species"),ZD=$t.Array,dht=Math.max;function Ho(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r,o,a=n.call(t),i=[];try{for(;(e===void 0||e-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function fL(t){var e=t.selection;if(e==null)return!1;var n=Ho(D.nodes(t,{match:function(a){return P.checkNodeType(a,"table-cell")}}),1)[0];if(n){var r=Ho(n,2)[1],o=D.start(t,r);if(Zt.equals(e.anchor,o))return!0}return!1}function dL(t,e){var n,r,o=D.nodes(t,{at:e,match:function(s){return P.getNodeType(s)==="table"}}),a=!1;try{for(var i=function(s){var l=typeof Symbol=="function"&&Symbol.iterator,c=l&&s[l],f=0;if(c)return c.call(s);if(s&&typeof s.length=="number")return{next:function(){return s&&f>=s.length&&(s=void 0),{value:s&&s[f++],done:!s}}};throw new TypeError(l?"Object is not iterable.":"Symbol.iterator is not defined.")}(o),u=i.next();!u.done;u=i.next())u.value,a=!0}catch(s){n={error:s}}finally{try{u&&!u.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return a}ou({target:"Array",proto:!0,forced:!cht},{slice:function(t,e){var n,r,o,a=Qp(this),i=ly(a),u=nh(t,i),s=nh(e===void 0?i:e,i);if(hy(a)&&(n=a.constructor,(YD(n)&&(n===ZD||hy(n.prototype))||hi(n)&&(n=n[fht])===null)&&(n=void 0),n===ZD||n===void 0))return lht(a,u,s);for(r=new(n===void 0?ZD:n)(dht(s-u,0)),o=0;u<s;u++,o++)u in a&&cL(r,o,a[u]);return r.length=o,r}});var pL=re(re.bind),pht=bo("species"),hL=$t.Array,hht=function(t,e){return new(function(n){var r;return hy(n)&&(r=n.constructor,(YD(r)&&(r===hL||hy(r.prototype))||hi(r)&&(r=r[pht])===null)&&(r=void 0)),r===void 0?hL:r}(t))(e===0?0:e)},gL=re([].push),gy=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,a=t==6,i=t==7,u=t==5||a;return function(s,l,c,f){for(var d,p,m=DD(s),h=PR(m),v=function(x,S){return LR(x),S===void 0?x:pL?pL(x,S):function(){return x.apply(S,arguments)}}(l,c),y=ly(h),g=0,w=f||hht,E=e?w(s,y):n||i?w(s,0):void 0;y>g;g++)if((u||g in h)&&(p=v(d=h[g],g,m),t))if(e)E[g]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return g;case 2:gL(E,d)}else switch(t){case 4:return!1;case 7:gL(E,d)}return a?-1:r||o?o:E}},vy={forEach:gy(0),map:gy(1),filter:gy(2),find:gy(5)},ght=vy.map;ou({target:"Array",proto:!0,forced:!XD("map")},{map:function(t){return ght(this,t,arguments.length>1?arguments[1]:void 0)}});var vht=RD?{}.toString:function(){return"[object "+LD(this)+"]"};function my(t){var e=t.children||[];return e.length===0?[]:(e[0]||{}).children||[]}function vL(t){return my(t).every(function(e){return!!e.isHeader})}RD||eh(Object.prototype,"toString",vht,{unsafe:!0});var mht=ID.PROPER,JD=RegExp.prototype,mL=JD.toString,yht=re(tL),bht=Tn(function(){return mL.call({source:"a",flags:"b"})!="/a/b"}),wht=mht&&mL.name!="toString";(bht||wht)&&eh(RegExp.prototype,"toString",function(){var t=wo(this),e=sr(t.source),n=t.flags;return"/"+e+"/"+sr(n===void 0&&FR(JD,t)&&!("flags"in JD)?yht(t):n)},{unsafe:!0});var QD=bo("unscopables"),$D=Array.prototype;$D[QD]==null&&th.f($D,QD,{configurable:!0,value:aL(null)});var Eht=vy.find,yL=!0;"find"in[]&&Array(1).find(function(){yL=!1}),ou({target:"Array",proto:!0,forced:yL},{find:function(t){return Eht(this,t,arguments.length>1?arguments[1]:void 0)}}),$D[QD].find=!0;var qD=Function.prototype,bL=qD.apply,Sht=qD.bind,wL=qD.call,EL=typeof Reflect=="object"&&Reflect.apply||(Sht?wL.bind(bL):function(){return wL.apply(bL,arguments)}),xht=bo("species"),t3=RegExp.prototype,SL=function(t,e,n,r){var o=bo(t),a=!Tn(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),i=a&&!Tn(function(){var l=!1,c=/a/;return t==="split"&&((c={}).constructor={},c.constructor[xht]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!a||!i||n){var u=re(/./[o]),s=e(o,""[t],function(l,c,f,d,p){var m=re(l),h=c.exec;return h===oh||h===t3.exec?a&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:m(f,c,d)}:{done:!1}});eh(String.prototype,t,s[0]),eh(t3,o,s[1])}r&&Nc(t3[o],"sham",!0)},Cht=bo("match"),Dht=$t.TypeError,Oht=bo("species"),Aht=re("".charAt),xL=re("".charCodeAt),Tht=re("".slice),Bht=function(t){return function(e,n){var r,o,a=sr(nu(e)),i=sy(n),u=a.length;return i<0||i>=u?t?"":void 0:(r=xL(a,i))<55296||r>56319||i+1===u||(o=xL(a,i+1))<56320||o>57343?t?Aht(a,i):r:t?Tht(a,i,i+2):o-56320+(r-55296<<10)+65536}},Pht=Bht(!0),CL=function(t,e,n){return e+(n?Pht(t,e).length:1)},Fht=$t.Array,kht=Math.max,DL=function(t,e,n){for(var r=ly(t),o=nh(e,r),a=nh(n===void 0?r:n,r),i=Fht(kht(a-o,0)),u=0;o<a;o++,u++)cL(i,u,t[o]);return i.length=u,i},Nht=$t.TypeError,e3=function(t,e){var n=t.exec;if(ur(n)){var r=jn(n,t,e);return r!==null&&wo(r),r}if(eu(t)==="RegExp")return jn(oh,t,e);throw Nht("RegExp#exec called on incompatible receiver")},jc=eL.UNSUPPORTED_Y,Iht=Math.min,OL=[].push,jht=re(/./.exec),Rc=re(OL),ah=re("".slice);SL("split",function(t,e,n){var r;return r="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(o,a){var i,u,s=sr(nu(this)),l=a===void 0?4294967295:a>>>0;if(l===0)return[];if(o===void 0)return[s];if(!hi(i=o)||!((u=i[Cht])!==void 0?u:eu(i)=="RegExp"))return jn(e,s,o,l);for(var c,f,d,p=[],m=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),h=0,v=new RegExp(o.source,m+"g");(c=jn(oh,v,s))&&!((f=v.lastIndex)>h&&(Rc(p,ah(s,h,c.index)),c.length>1&&c.index<s.length&&EL(OL,p,DL(c,1)),d=c[0].length,h=f,p.length>=l));)v.lastIndex===c.index&&v.lastIndex++;return h===s.length?!d&&jht(v,"")||Rc(p,""):Rc(p,ah(s,h)),p.length>l?DL(p,0,l):p}:"0".split(void 0,0).length?function(o,a){return o===void 0&&a===0?[]:jn(e,this,o,a)}:e,[function(o,a){var i=nu(this),u=o==null?void 0:SD(o,t);return u?jn(u,o,i,a):jn(r,sr(i),o,a)},function(o,a){var i=wo(this),u=sr(o),s=n(r,i,u,a,r!==e);if(s.done)return s.value;var l=function(E,x){var S,C=wo(E).constructor;return C===void 0||(S=wo(C)[Oht])==null?x:function(T){if(YD(T))return T;throw Dht(RR(T)+" is not a constructor")}(S)}(i,RegExp),c=i.unicode,f=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(jc?"g":"y"),d=new l(jc?"^(?:"+i.source+")":i,f),p=a===void 0?4294967295:a>>>0;if(p===0)return[];if(u.length===0)return e3(d,u)===null?[u]:[];for(var m=0,h=0,v=[];h<u.length;){d.lastIndex=jc?0:h;var y,g=e3(d,jc?ah(u,h):u);if(g===null||(y=Iht(jD(d.lastIndex+(jc?h:0)),u.length))===m)h=CL(u,h,c);else{if(Rc(v,ah(u,m,h)),v.length===p)return v;for(var w=1;w<=g.length-1;w++)if(Rc(v,g[w]),v.length===p)return v;h=m=y}}return Rc(v,ah(u,m)),v}]},!!Tn(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),jc);var n3=`
135
+ \v\f\r                 \u2028\u2029\uFEFF`,AL=re("".replace),yy="["+n3+"]",Rht=RegExp("^"+yy+yy+"*"),Lht=RegExp(yy+yy+"*$"),Mht=function(t){return function(e){var n=sr(nu(e));return 1&t&&(n=AL(n,Rht,"")),2&t&&(n=AL(n,Lht,"")),n}},Vht={trim:Mht(3)},zht=ID.PROPER,Hht=Vht.trim;function TL(t){return t.length?t[0].tagName.toLowerCase():""}ou({target:"String",proto:!0,forced:function(t){return Tn(function(){return!!n3[t]()||"​…᠎"[t]()!=="​…᠎"||zht&&n3[t].name!==t})}("trim")},{trim:function(){return Hht(this)}}),ou({global:!0},{globalThis:$t}),ao&&(F.fn.append=ao),ti&&(F.fn.on=ti),wa&&(F.fn.focus=wa),io&&(F.fn.attr=io),qo&&(F.fn.val=qo),ba&&(F.fn.html=ba),Bl&&(F.fn.dataset=Bl),Ol&&(F.fn.addClass=Ol),Al&&(F.fn.removeClass=Al),Nl&&(F.fn.children=Nl),Vv&&(F.fn.each=Vv),kl&&(F.fn.find=kl);var uh=!1,BL=0,PL=0,sh=null,lh=null,ch=F("body");function FL(t){uh=!1,lh=null,sh=null,ch.off("mousemove",kL),ch.off("mouseup",FL)}ch.on("mousedown",function(t){var e=t.target;if((e.tagName==="TH"||e.tagName==="TD")&&e.style.cursor==="col-resize"){e.style.cursor="auto",t.preventDefault(),uh=!0;var n=t.clientX;BL=n;var r=e.getBoundingClientRect().width;PL=r,ch.on("mousemove",kL),ch.on("mouseup",FL)}});var kL=Zu(function(t){if(uh&&lh!=null&&sh!=null){t.preventDefault();var e=t.clientX,n=PL+(e-BL);(n=Math.floor(100*n)/100)<30&&(n=30),_.setNodes(lh,{width:n.toString()},{at:sh})}},100),Uht={type:"table",renderElem:function(t,e,n){var r=function(u,s){if(u.isDisabled())return!1;var l=u.selection;if(l==null||$.isCollapsed(l))return!0;var c=l.anchor,f=l.focus,d=P.findPath(u,s),p=D.start(u,d),m=D.end(u,d),h=Zt.compare(c,m)<=0&&Zt.compare(c,p)>=0,v=Zt.compare(f,m)<=0&&Zt.compare(f,p)>=0;return!!(h&&v&&z.equals(c.path.slice(0,3),f.path.slice(0,3)))}(n,t),o=t.width,a=o===void 0?"auto":o,i=jt("div",{className:"table-container","data-selected":P.isNodeSelected(n,t),on:{mousedown:function(u){if(u.target.tagName==="DIV"&&u.preventDefault(),!n.isDisabled()){var s=P.findPath(n,t),l=D.start(n,s),c=n.selection;c!=null?c.anchor.path[0]!==s[0]&&n.select(l):n.select(l)}}}},jt("table",{width:a,contentEditable:r},jt("colgroup",null,my(t).map(function(u){var s=u.width;return jt("col",{width:s===void 0?"auto":s})})),jt("tbody",null,e)));return i}},_ht={type:"table-row",renderElem:function(t,e,n){return jt("tr",null,e)}},Ght={type:"table-cell",renderElem:function(t,e,n){var r=function(d,p){var m=P.getParentNode(d,p);if(m==null)return!1;var h=P.getParentNode(d,m);return h!=null&&my(h).some(function(v){return v===p})}(n,t),o=t,a=o.colSpan,i=a===void 0?1:a,u=o.rowSpan,s=u===void 0?1:u,l=o.isHeader,c=l!==void 0&&l;if(!r)return jt("td",{colSpan:i,rowSpan:s},e);var f=jt(c?"th":"td",{colSpan:i,rowSpan:s,style:{borderRightWidth:"3px"},on:{mousemove:Zu(function(d){var p=this.elm;if(p!=null){var m=p.getBoundingClientRect(),h=m.left,v=m.width,y=m.top,g=m.height,w=d.clientX,E=d.clientY;uh||(w>h+v-5&&w<h+v&&E>y&&E<y+g?(p.style.cursor="col-resize",lh=n,sh=P.findPath(n,t)):uh||(p.style.cursor="auto",lh=null,sh=null))}},100)}},e);return f}},Wht={selector:"table",preParseHtml:function(t){var e=F(t);if(TL(e)!=="table")return t;var n=e.find("tbody");if(n.length===0)return t;var r=e.find("tr");return e.append(r),n.remove(),e[0]}},Kht=vy.filter;ou({target:"Array",proto:!0,forced:!XD("filter")},{filter:function(t){return Kht(this,t,arguments.length>1?arguments[1]:void 0)}});var Yht=Math.floor,r3=re("".charAt),Xht=re("".replace),o3=re("".slice),Zht=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Jht=/\$([$&'`]|\d{1,2})/g,Qht=function(t,e,n,r,o,a){var i=n+t.length,u=r.length,s=Jht;return o!==void 0&&(o=DD(o),s=Zht),Xht(a,s,function(l,c){var f;switch(r3(c,0)){case"$":return"$";case"&":return t;case"`":return o3(e,0,n);case"'":return o3(e,i);case"<":f=o[o3(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=Yht(d/10);return p===0?l:p<=u?r[p-1]===void 0?r3(c,1):r[p-1]+r3(c,1):l}f=r[d-1]}return f===void 0?"":f})},i3=bo("replace"),$ht=Math.max,qht=Math.min,tgt=re([].concat),a3=re([].push),NL=re("".indexOf),IL=re("".slice),egt="a".replace(/./,"$0")==="$0",jL=!!/./[i3]&&/./[i3]("a","$0")==="";SL("replace",function(t,e,n){var r=jL?"$":"$0";return[function(o,a){var i=nu(this),u=o==null?void 0:SD(o,i3);return u?jn(u,o,i,a):jn(e,sr(i),o,a)},function(o,a){var i=wo(this),u=sr(o);if(typeof a=="string"&&NL(a,r)===-1&&NL(a,"$<")===-1){var s=n(e,i,u,a);if(s.done)return s.value}var l=ur(a);l||(a=sr(a));var c=i.global;if(c){var f=i.unicode;i.lastIndex=0}for(var d=[];;){var p=e3(i,u);if(p===null||(a3(d,p),!c))break;sr(p[0])===""&&(i.lastIndex=CL(u,jD(i.lastIndex),f))}for(var m,h="",v=0,y=0;y<d.length;y++){for(var g=sr((p=d[y])[0]),w=$ht(qht(sy(p.index),u.length),0),E=[],x=1;x<p.length;x++)a3(E,(m=p[x])===void 0?m:String(m));var S=p.groups;if(l){var C=tgt([g],E,w,u);S!==void 0&&a3(C,S);var T=sr(EL(a,void 0,C))}else T=Qht(g,u,w,E,S,a);w>=v&&(h+=IL(u,v,w)+T,v=w+g.length)}return h+IL(u,v)}]},!!Tn(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!egt||jL);var ngt={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=F(t);(e=e.filter(function(u){return!!vt.isText(u)||!!n.isInline(u)})).length===0&&(e=[{text:r.text().replace(/\s+/gm," ")}]);var o=parseInt(r.attr("colSpan")||"1"),a=parseInt(r.attr("rowSpan")||"1"),i=r.attr("width")||"auto";return{type:"table-cell",isHeader:TL(r)==="th",colSpan:o,rowSpan:a,width:i,children:e}}},rgt={selector:"tr:not([data-w-e-type])",parseElemHtml:function(t,e,n){return{type:"table-row",children:e.filter(function(r){return P.getNodeType(r)==="table-cell"})}}},ogt={selector:"table:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=F(t),o="auto";return function(a,i){for(var u="",s=(a.attr("style")||"").split(";"),l=s.length,c=0;c<l;c++){var f=s[c];if(f){var d=f.split(":");d[0].trim()==="width"&&(u=d[1].trim())}}return u}(r)==="100%"&&(o="100%"),r.attr("width")==="100%"&&(o="100%"),{type:"table",width:o,children:e.filter(function(a){return P.getNodeType(a)==="table-row"})}}},igt=function(){function t(){this.title=lt("tableModule.insertTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64v896h1024V64H0z m384 576v-192h256v192h-256z m256 64v192h-256v-192h256z m0-512v192h-256V192h256zM320 192v192H64V192h256z m-256 256h256v192H64v-192z m640 0h256v192h-256v-192z m0-64V192h256v192h-256zM64 704h256v192H64v-192z m640 192v-192h256v192h-256z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!$.isCollapsed(n)||!!P.getSelectedElems(e).some(function(r){var o=P.getNodeType(r);return o==="pre"||o==="table"||o==="list-item"||!!e.isVoid(r)})},t.prototype.getPanelContentElem=function(e){var n=this;if(this.$content)return this.$content[0];for(var r=F('<div class="w-e-panel-content-table"></div>'),o=F("<span>0 &times; 0</span>"),a=F("<table></table>"),i=0;i<10;i++){for(var u=F("<tr></tr>"),s=0;s<10;s++){var l=F("<td></td>");l.attr("data-x",s.toString()),l.attr("data-y",i.toString()),u.append(l),l.on("mouseenter",function(c){var f=c.target;if(f!=null){var d=F(f).dataset(),p=d.x,m=d.y;o[0].innerHTML=p+1+" &times; "+(m+1),a.children().each(function(h){F(h).children().each(function(v){var y=F(v),g=y.dataset(),w=g.x,E=g.y;w<=p&&E<=m?y.addClass("active"):y.removeClass("active")})})}}),l.on("click",function(c){c.preventDefault();var f=c.target;if(f!=null){var d=F(f).dataset(),p=d.x,m=d.y;n.insertTable(e,m+1,p+1)}})}a.append(u)}return r.append(a),r.append(o),this.$content=r,r[0]},t.prototype.insertTable=function(e,n,r){var o=parseInt(n,10),a=parseInt(r,10);if(o&&a&&!(o<=0||a<=0)){P.isSelectedEmptyParagraph(e)&&_.removeNodes(e,{mode:"highest"});var i=function(u,s){for(var l=[],c=0;c<u;c++){for(var f=[],d=0;d<s;d++){var p={type:"table-cell",children:[{text:""}]};c===0&&(p.isHeader=!0),f.push(p)}l.push({type:"table-row",children:f})}return{type:"table",width:"auto",children:l}}(o,a);_.insertNodes(e,i,{mode:"highest"})}},t}(),agt=function(){function t(){this.title=lt("tableModule.deleteTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||P.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,n){this.isDisabled(e)||_.removeNodes(e,{mode:"highest"})},t}(),ugt=function(){function t(){this.title=lt("tableModule.insertRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M707.7888 521.0112h-147.456v-147.456H488.2432v147.456h-147.456v68.8128h147.456v147.456h72.0896v-147.456h147.456zM0 917.504V0h1048.576v917.504H0zM327.68 65.536H65.536v196.608H327.68V65.536z m327.68 0H393.216v196.608h262.144V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 258.8672H65.536v462.0288H983.04V324.4032z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!$.isCollapsed(n)||P.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=Ho(D.nodes(e,{match:function(p){return P.checkNodeType(p,"table-cell")},universal:!0}),1),o=Ho(r[0],2),a=o[0],i=o[1],u=P.getParentNode(e,a),s=(u==null?void 0:u.children.length)||0;if(s!==0){for(var l={type:"table-row",children:[]},c=0;c<s;c++)l.children.push({type:"table-cell",children:[{text:""}]});var f=z.parent(i),d=z.next(f);_.insertNodes(e,l,{at:d})}}},t}(),sgt=function(){function t(){this.title=lt("tableModule.deleteRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M907.6736 586.5472L747.1104 425.984l163.84-163.84-78.6432-78.6432-163.84 163.84L507.904 186.7776 429.2608 262.144l163.84 163.84-167.1168 167.1168 78.6432 78.6432 167.1168-167.1168 160.5632 160.5632 75.3664-78.6432zM0 917.504V0h1048.576v917.504H0z m983.04-327.68h-22.9376l-65.536-65.536H983.04V327.68h-91.7504l65.536-65.536h26.2144V65.536H65.536v196.608h317.8496l65.536 65.536H65.536v196.608h380.1088l-65.536 65.536H65.536v196.608H983.04v-196.608z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!$.isCollapsed(n)||P.getSelectedNodeByType(e,"table-row")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=Ho(D.nodes(e,{match:function(s){return P.checkNodeType(s,"table-row")},universal:!0}),1),o=Ho(r[0],2),a=o[0],i=o[1],u=P.getParentNode(e,a);((u==null?void 0:u.children.length)||0)<=1?_.removeNodes(e,{mode:"highest"}):_.removeNodes(e,{at:i})}},t}(),RL={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},u3=TD("span").classList,LL=u3&&u3.constructor&&u3.constructor.prototype,lgt=LL===Object.prototype?void 0:LL,cgt=vy.forEach,fgt=function(t,e){var n=[].forEach;return!!n&&Tn(function(){n.call(null,function(){throw 1},1)})}(),s3=fgt?[].forEach:function(t){return cgt(this,t,arguments.length>1?arguments[1]:void 0)},ML=function(t){if(t&&t.forEach!==s3)try{Nc(t,"forEach",s3)}catch{t.forEach=s3}};for(var l3 in RL)RL[l3]&&ML($t[l3]&&$t[l3].prototype);ML(lgt);var dgt=function(){function t(){this.title=lt("tableModule.insertCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 193.3312v186.7776H140.9024v91.7504H327.68v186.7776h88.4736V471.8592h190.0544V380.1088H416.1536V193.3312zM0 917.504V0h1048.576v917.504H0zM655.36 65.536H65.536v720.896H655.36V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 262.144h-262.144v196.608h262.144V327.68z m0 262.144h-262.144v196.608h262.144v-196.608z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!$.isCollapsed(n)||P.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=Ho(D.nodes(e,{match:function(l){return P.checkNodeType(l,"table-cell")},universal:!0}),1),o=Ho(r[0],2),a=o[0],i=o[1],u=P.getParentNode(e,a);if(u!=null){var s=P.getParentNode(e,u);s!=null&&(s.children||[]).forEach(function(l,c){St.isElement(l)&&(l.children||[]).forEach(function(f){var d=P.findPath(e,f);if(d.length===i.length&&CR(d.slice(-1),i.slice(-1))){var p={type:"table-cell",children:[{text:""}]};c===0&&vL(s)&&(p.isHeader=!0),_.insertNodes(e,p,{at:d})}})})}}},t}(),pgt=function(){function t(){this.title=lt("tableModule.deleteCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 510.976L393.216 445.44v-13.1072L327.68 366.7968V510.976z m327.68-78.4384l65.536-65.536V507.904L655.36 442.368v-9.8304z m393.216 484.9664V0H0v917.504h1048.576z m-65.536-131.072h-262.144v-52.4288l-13.1072 13.1072-52.4288-52.4288v91.7504H393.216v-91.7504l-52.4288 52.4288-13.1072-13.1072v52.4288H65.536V65.536H327.68v121.2416l36.0448-36.0448 29.4912 29.4912V62.2592h262.144V180.224l49.152-49.152 16.384 16.384V62.2592h262.144V786.432z m-294.912-108.1344l-160.5632-160.5632-167.1168 167.1168-78.6432-78.6432 167.1168-167.1168L288.3584 278.528l78.6432-78.6432 160.5632 160.5632 163.84-163.84 78.6432 78.6432-163.84 163.84 160.5632 160.5632-78.6432 78.6432z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!$.isCollapsed(n)||P.getSelectedNodeByType(e,"table-cell")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=Ho(D.nodes(e,{match:function(c){return P.checkNodeType(c,"table-cell")},universal:!0}),1),o=Ho(r[0],2),a=o[0],i=o[1],u=P.getParentNode(e,a),s=(u==null?void 0:u.children.length)||0;if(!u||s<=1)_.removeNodes(e,{mode:"highest"});else{var l=P.getParentNode(e,u);l!=null&&(l.children||[]).forEach(function(c){St.isElement(c)&&(c.children||[]).forEach(function(f){var d=P.findPath(e,f);d.length===i.length&&CR(d.slice(-1),i.slice(-1))&&_.removeNodes(e,{at:d})})})}}},t}(),hgt=function(){function t(){this.title=lt("tableModule.header"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M704 128l-64 0L384 128 320 128 0 128l0 256 0 64 0 192 0 64 0 256 320 0 64 0 256 0 64 0 320 0 0-256 0-64L1024 448 1024 384 1024 128 704 128zM640 640 384 640 384 448l256 0L640 640zM64 448l256 0 0 192L64 640 64 448zM320 896 64 896l0-192 256 0L320 896zM640 896 384 896l0-192 256 0L640 896zM960 896l-256 0 0-192 256 0L960 896zM960 640l-256 0L704 448l256 0L960 640z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){var n=P.getSelectedNodeByType(e,"table");return n!=null&&vL(n)},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!$.isCollapsed(n)||P.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=!n,o=P.getSelectedNodeByType(e,"table");o!=null&&my(o).forEach(function(a){return _.setNodes(e,{isHeader:r},{at:P.findPath(e,a)})})}},t}(),ggt=function(){function t(){this.title=lt("tableModule.widthAuto"),this.iconSvg='<svg viewBox="0 0 1228 1024"><path d="M862.514337 563.200461H404.581995v121.753478a13.311987 13.311987 0 0 1-6.655993 11.468789 10.23999 10.23999 0 0 1-12.083188-1.433599l-204.799795-179.199821a13.721586 13.721586 0 0 1 0-20.479979l204.799795-179.302221a10.23999 10.23999 0 0 1 12.185588-1.535998 13.209587 13.209587 0 0 1 6.553593 11.673588v115.097485h457.932342V319.693504a11.571188 11.571188 0 0 1 18.841582-10.239989l204.799795 179.19982a13.721586 13.721586 0 0 1 0 20.47998l-204.799795 179.199821a10.23999 10.23999 0 0 1-12.185588 1.535998 13.311987 13.311987 0 0 1-6.655994-11.571188V563.200461zM136.499064 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785H15.155185A15.155185 15.155185 0 0 1 0 1008.844815V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086294a15.155185 15.155185 0 0 1 15.257585 15.155185zM1228.798771 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785h-106.188693a15.155185 15.155185 0 0 1-15.155185-15.052785V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086293A15.155185 15.155185 0 0 1 1228.798771 15.053809z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){var n=P.getSelectedNodeByType(e,"table");return n!=null&&n.width==="100%"},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!$.isCollapsed(n)||P.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r={width:n?"auto":"100%"};_.setNodes(e,r,{mode:"highest"})}},t}(),vgt={renderElems:[Uht,_ht,Ght],elemsToHtml:[{type:"table",elemToHtml:function(t,e){var n=t.width;return'<table style="width: '+(n===void 0?"auto":n)+';"><tbody>'+e+"</tbody></table>"}},{type:"table-row",elemToHtml:function(t,e){return"<tr>"+e+"</tr>"}},{type:"table-cell",elemToHtml:function(t,e){var n=t,r=n.colSpan,o=r===void 0?1:r,a=n.rowSpan,i=a===void 0?1:a,u=n.isHeader,s=u!==void 0&&u,l=n.width,c=s?"th":"td";return"<"+c+' colSpan="'+o+'" rowSpan="'+i+'" width="'+(l===void 0?"auto":l)+'">'+e+"</"+c+">"}}],preParseHtml:[Wht],parseElemsHtml:[ngt,rgt,ogt],menus:[{key:"insertTable",factory:function(){return new igt}},{key:"deleteTable",factory:function(){return new agt}},{key:"insertTableRow",factory:function(){return new ugt}},{key:"deleteTableRow",factory:function(){return new sgt}},{key:"insertTableCol",factory:function(){return new dgt}},{key:"deleteTableCol",factory:function(){return new pgt}},{key:"tableHeader",factory:function(){return new hgt}},{key:"tableFullWidth",factory:function(){return new ggt}}],editorPlugin:function(t){var e=t.insertBreak,n=t.deleteBackward,r=t.deleteForward,o=t.normalizeNode,a=t.insertData,i=t.handleTab,u=t.selectAll,s=t;return s.insertBreak=function(){P.getSelectedNodeByType(s,"table")==null?e():s.insertText(`
136
+ `)},s.deleteBackward=function(l){if(!fL(s)){var c=s.selection;if(c){var f=D.before(s,c);if(f){var d=dL(s,f),p=dL(s,c);if(d&&!p)return}}n(l)}},s.handleTab=function(){var l;if(P.getSelectedNodeByType(s,"table")){var c=D.above(t);P.checkNodeType(c[0],"table-cell")&&_.select(t,c[1]);var f=D.next(t);if(f)f[0]&&f[0].text&&(f=(l=D.above(t,{at:f[1]}))!==null&&l!==void 0?l:f),_.select(t,f[1]);else{var d=s.children||[],p=d.length;if(P.checkNodeType(d[p-1],"table")){var m=P.genEmptyParagraph();_.insertNodes(s,m,{at:[p]}),s.handleTab()}}}else i()},s.deleteForward=function(l){fL(s)||r(l)},s.normalizeNode=function(l){var c=Ho(l,2),f=c[0],d=c[1];if(P.getNodeType(f)!=="table")return o([f,d]);if(P.isLastNode(s,f)){var p=P.genEmptyParagraph();_.insertNodes(s,p,{at:[d[0]+1]})}},s.insertData=function(l){if(P.getSelectedNodeByType(s,"table")!=null){var c=l.getData("text/plain");c===`
137
+ `||/<img[^>]+>/.test(l.getData("text/html"))?a(l):D.insertText(s,c)}else a(l)},s.selectAll=function(){var l=s.selection;if(l!=null){var c=P.getSelectedNodeByType(s,"table-cell");if(c!=null){var f=l.anchor,d=l.focus;if(z.equals(f.path.slice(0,3),d.path.slice(0,3)))if(st.string(c).length!==0){var p=P.findPath(s,c),m={anchor:D.start(s,p),focus:D.end(s,p)};s.select(m)}else u();else u()}else u()}else u()},s}};Or("en",{videoModule:{delete:"Delete",uploadVideo:"Upload video",insertVideo:"Insert video",videoSrc:"Video source",videoSrcPlaceHolder:"Video file url, or third-party <iframe>",videoPoster:"Video poster",videoPosterPlaceHolder:"Poster image url",ok:"Ok",editSize:"Edit size",width:"Width",height:"Height"}}),Or("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",width:"宽度",height:"高度"}});/*! *****************************************************************************
138
+ Copyright (c) Microsoft Corporation.
139
+
140
+ Permission to use, copy, modify, and/or distribute this software for any
141
+ purpose with or without fee is hereby granted.
142
+
143
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
144
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
145
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
146
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
147
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
148
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
149
+ PERFORMANCE OF THIS SOFTWARE.
150
+ ***************************************************************************** */var by=function(){return by=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},by.apply(this,arguments)};function wy(t,e,n,r){return new(n||(n=Promise))(function(o,a){function i(l){try{s(r.next(l))}catch(c){a(c)}}function u(l){try{s(r.throw(l))}catch(c){a(c)}}function s(l){var c;l.done?o(l.value):(c=l.value,c instanceof n?c:new n(function(f){f(c)})).then(i,u)}s((r=r.apply(t,[])).next())})}function Ey(t,e){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(s){return function(l){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||c[0]!==6&&c[0]!==2)){i=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(c[0]===6&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=e.call(t,i)}catch(f){c=[6,f],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([s,l])}}}function Vs(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r,o,a=n.call(t),i=[];try{for(;(e===void 0||e-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function mgt(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=function(o){var a=typeof Symbol=="function"&&Symbol.iterator,i=a&&o[a],u=0;if(i)return i.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&u>=o.length&&(o=void 0),{value:o&&o[u++],done:!o}}};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(o){e[o]=t[o]&&function(a){return new Promise(function(i,u){(function(s,l,c,f){Promise.resolve(f).then(function(d){s({value:d,done:c})},l)})(i,u,(a=t[o](a)).done,a.value)})}}}var VL=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function c3(t){var e={exports:{}};return t(e,e.exports),e.exports}var iu,Sy,xy=function(t){return t&&t.Math==Math&&t},ft=xy(typeof globalThis=="object"&&globalThis)||xy(typeof window=="object"&&window)||xy(typeof self=="object"&&self)||xy(typeof VL=="object"&&VL)||function(){return this}()||Function("return this")(),Ne=function(t){try{return!!t()}catch{return!0}},gi=!Ne(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),fh=Function.prototype.call,Ie=fh.bind?fh.bind(fh):function(){return fh.apply(fh,arguments)},zL={}.propertyIsEnumerable,HL=Object.getOwnPropertyDescriptor,ygt={f:HL&&!zL.call({1:2},1)?function(t){var e=HL(this,t);return!!e&&e.enumerable}:zL},Cy=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},UL=Function.prototype,f3=UL.bind,d3=UL.call,bgt=f3&&f3.bind(d3),Ht=f3?function(t){return t&&bgt(d3,t)}:function(t){return t&&function(){return d3.apply(t,arguments)}},wgt=Ht({}.toString),Egt=Ht("".slice),vi=function(t){return Egt(wgt(t),8,-1)},p3=ft.Object,Sgt=Ht("".split),h3=Ne(function(){return!p3("z").propertyIsEnumerable(0)})?function(t){return vi(t)=="String"?Sgt(t,""):p3(t)}:p3,xgt=ft.TypeError,dh=function(t){if(t==null)throw xgt("Can't call method on "+t);return t},au=function(t){return h3(dh(t))},Ae=function(t){return typeof t=="function"},We=function(t){return typeof t=="object"?t!==null:Ae(t)},Cgt=function(t){return Ae(t)?t:void 0},zs=function(t,e){return arguments.length<2?Cgt(ft[t]):ft[t]&&ft[t][e]},ph=Ht({}.isPrototypeOf),Lc=zs("navigator","userAgent")||"",_L=ft.process,GL=ft.Deno,WL=_L&&_L.versions||GL&&GL.version,KL=WL&&WL.v8;KL&&(Sy=(iu=KL.split("."))[0]>0&&iu[0]<4?1:+(iu[0]+iu[1])),!Sy&&Lc&&(!(iu=Lc.match(/Edge\/(\d+)/))||iu[1]>=74)&&(iu=Lc.match(/Chrome\/(\d+)/))&&(Sy=+iu[1]);var hh=Sy,g3=!!Object.getOwnPropertySymbols&&!Ne(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&hh&&hh<41}),v3=g3&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Dgt=ft.Object,m3=v3?function(t){return typeof t=="symbol"}:function(t){var e=zs("Symbol");return Ae(e)&&ph(e.prototype,Dgt(t))},Ogt=ft.String,Dy=function(t){try{return Ogt(t)}catch{return"Object"}},Agt=ft.TypeError,uu=function(t){if(Ae(t))return t;throw Agt(Dy(t)+" is not a function")},gh=function(t,e){var n=t[e];return n==null?void 0:uu(n)},Tgt=ft.TypeError,Bgt=Object.defineProperty,y3=function(t,e){try{Bgt(ft,t,{value:e,configurable:!0,writable:!0})}catch{ft[t]=e}return e},su=ft["__core-js_shared__"]||y3("__core-js_shared__",{}),b3=c3(function(t){(t.exports=function(e,n){return su[e]||(su[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Pgt=ft.Object,Oy=function(t){return Pgt(dh(t))},Fgt=Ht({}.hasOwnProperty),Bn=Object.hasOwn||function(t,e){return Fgt(Oy(t),e)},kgt=0,Ngt=Math.random(),Igt=Ht(1 .toString),w3=function(t){return"Symbol("+(t===void 0?"":t)+")_"+Igt(++kgt+Ngt,36)},vh=b3("wks"),Hs=ft.Symbol,YL=Hs&&Hs.for,jgt=v3?Hs:Hs&&Hs.withoutSetter||w3,mn=function(t){if(!Bn(vh,t)||!g3&&typeof vh[t]!="string"){var e="Symbol."+t;g3&&Bn(Hs,t)?vh[t]=Hs[t]:vh[t]=v3&&YL?YL(e):jgt(e)}return vh[t]},Rgt=ft.TypeError,Lgt=mn("toPrimitive"),E3=function(t){var e=function(n,r){if(!We(n)||m3(n))return n;var o,a=gh(n,Lgt);if(a){if(o=Ie(a,n,r),!We(o)||m3(o))return o;throw Rgt("Can't convert object to primitive value")}return function(i,u){var s,l;if(Ae(s=i.toString)&&!We(l=Ie(s,i))||Ae(s=i.valueOf)&&!We(l=Ie(s,i)))return l;throw Tgt("Can't convert object to primitive value")}(n)}(t,"string");return m3(e)?e:e+""},S3=ft.document,Mgt=We(S3)&&We(S3.createElement),mh=function(t){return Mgt?S3.createElement(t):{}},XL=!gi&&!Ne(function(){return Object.defineProperty(mh("div"),"a",{get:function(){return 7}}).a!=7}),ZL=Object.getOwnPropertyDescriptor,x3={f:gi?ZL:function(t,e){if(t=au(t),e=E3(e),XL)try{return ZL(t,e)}catch{}if(Bn(t,e))return Cy(!Ie(ygt.f,t,e),t[e])}},Vgt=ft.String,zgt=ft.TypeError,zn=function(t){if(We(t))return t;throw zgt(Vgt(t)+" is not an object")},Hgt=ft.TypeError,JL=Object.defineProperty,Zi={f:gi?JL:function(t,e,n){if(zn(t),e=E3(e),zn(n),XL)try{return JL(t,e,n)}catch{}if("get"in n||"set"in n)throw Hgt("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},lu=gi?function(t,e,n){return Zi.f(t,e,Cy(1,n))}:function(t,e,n){return t[e]=n,t},Ugt=Ht(Function.toString);Ae(su.inspectSource)||(su.inspectSource=function(t){return Ugt(t)});var Ay,yh,Ty,By=su.inspectSource,QL=ft.WeakMap,$L=Ae(QL)&&/native code/.test(By(QL)),qL=b3("keys"),C3=function(t){return qL[t]||(qL[t]=w3(t))},Py={},D3=ft.TypeError,_gt=ft.WeakMap;if($L||su.state){var Us=su.state||(su.state=new _gt),Ggt=Ht(Us.get),tM=Ht(Us.has),Wgt=Ht(Us.set);Ay=function(t,e){if(tM(Us,t))throw new D3("Object already initialized");return e.facade=t,Wgt(Us,t,e),e},yh=function(t){return Ggt(Us,t)||{}},Ty=function(t){return tM(Us,t)}}else{var Mc=C3("state");Py[Mc]=!0,Ay=function(t,e){if(Bn(t,Mc))throw new D3("Object already initialized");return e.facade=t,lu(t,Mc,e),e},yh=function(t){return Bn(t,Mc)?t[Mc]:{}},Ty=function(t){return Bn(t,Mc)}}var Zr={set:Ay,get:yh,has:Ty,enforce:function(t){return Ty(t)?yh(t):Ay(t,{})},getterFor:function(t){return function(e){var n;if(!We(e)||(n=yh(e)).type!==t)throw D3("Incompatible receiver, "+t+" required");return n}}},eM=Function.prototype,Kgt=gi&&Object.getOwnPropertyDescriptor,O3=Bn(eM,"name"),Vc={EXISTS:O3,PROPER:O3&&(function(){}).name==="something",CONFIGURABLE:O3&&(!gi||gi&&Kgt(eM,"name").configurable)},Eo=c3(function(t){var e=Vc.CONFIGURABLE,n=Zr.get,r=Zr.enforce,o=String(String).split("String");(t.exports=function(a,i,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:i;Ae(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Bn(u,"name")||e&&u.name!==p)&&lu(u,"name",p),(l=r(u)).source||(l.source=o.join(typeof p=="string"?p:""))),a!==ft?(c?!d&&a[i]&&(f=!0):delete a[i],f?a[i]=u:lu(a,i,u)):f?a[i]=u:y3(i,u)})(Function.prototype,"toString",function(){return Ae(this)&&n(this).source||By(this)})}),Ygt=Math.ceil,Xgt=Math.floor,Fy=function(t){var e=+t;return e!=e||e===0?0:(e>0?Xgt:Ygt)(e)},Zgt=Math.max,Jgt=Math.min,bh=function(t,e){var n=Fy(t);return n<0?Zgt(n+e,0):Jgt(n,e)},Qgt=Math.min,nM=function(t){return t>0?Qgt(Fy(t),9007199254740991):0},wh=function(t){return nM(t.length)},rM=function(t){return function(e,n,r){var o,a=au(e),i=wh(a),u=bh(r,i);if(t&&n!=n){for(;i>u;)if((o=a[u++])!=o)return!0}else for(;i>u;u++)if((t||u in a)&&a[u]===n)return t||u||0;return!t&&-1}},oM={includes:rM(!0),indexOf:rM(!1)},$gt=oM.indexOf,iM=Ht([].push),aM=function(t,e){var n,r=au(t),o=0,a=[];for(n in r)!Bn(Py,n)&&Bn(r,n)&&iM(a,n);for(;e.length>o;)Bn(r,n=e[o++])&&(~$gt(a,n)||iM(a,n));return a},ky=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],qgt=ky.concat("length","prototype"),Ny={f:Object.getOwnPropertyNames||function(t){return aM(t,qgt)}},tvt={f:Object.getOwnPropertySymbols},evt=Ht([].concat),nvt=zs("Reflect","ownKeys")||function(t){var e=Ny.f(zn(t)),n=tvt.f;return n?evt(e,n(t)):e},rvt=function(t,e){for(var n=nvt(e),r=Zi.f,o=x3.f,a=0;a<n.length;a++){var i=n[a];Bn(t,i)||r(t,i,o(e,i))}},ovt=/#|\.prototype\./,Eh=function(t,e){var n=avt[ivt(t)];return n==svt||n!=uvt&&(Ae(e)?Ne(e):!!e)},ivt=Eh.normalize=function(t){return String(t).replace(ovt,".").toLowerCase()},avt=Eh.data={},uvt=Eh.NATIVE="N",svt=Eh.POLYFILL="P",Iy=Eh,lvt=x3.f,Pr=function(t,e){var n,r,o,a,i,u=t.target,s=t.global,l=t.stat;if(n=s?ft:l?ft[u]||y3(u,{}):(ft[u]||{}).prototype)for(r in e){if(a=e[r],o=t.noTargetGet?(i=lvt(n,r))&&i.value:n[r],!Iy(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof a==typeof o)continue;rvt(a,o)}(t.sham||o&&o.sham)&&lu(a,"sham",!0),Eo(n,r,a,t)}},uM={};uM[mn("toStringTag")]="z";var A3=String(uM)==="[object z]",cvt=mn("toStringTag"),fvt=ft.Object,dvt=vi(function(){return arguments}())=="Arguments",jy=A3?vi:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,a){try{return o[a]}catch{}}(e=fvt(t),cvt))=="string"?n:dvt?vi(e):(r=vi(e))=="Object"&&Ae(e.callee)?"Arguments":r},pvt=ft.String,So=function(t){if(jy(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return pvt(t)},T3=`
151
+ \v\f\r                 \u2028\u2029\uFEFF`,sM=Ht("".replace),Ry="["+T3+"]",hvt=RegExp("^"+Ry+Ry+"*"),gvt=RegExp(Ry+Ry+"*$"),vvt=function(t){return function(e){var n=So(dh(e));return 1&t&&(n=sM(n,hvt,"")),2&t&&(n=sM(n,gvt,"")),n}},mvt={trim:vvt(3)},yvt=Vc.PROPER,bvt=mvt.trim;function lM(t){return t.length?t[0].tagName.toLowerCase():""}function cM(t,e,n){e===void 0&&(e="auto"),n===void 0&&(n="auto");var r=F(t);return r.attr("width",e),r.attr("height",n),r[0].outerHTML}Pr({target:"String",proto:!0,forced:Ne(function(){return!!T3.trim()||"​…᠎".trim()!=="​…᠎"||yvt&&T3.trim.name!=="trim"})},{trim:function(){return bvt(this)}}),Pr({global:!0},{globalThis:ft}),ao&&(F.fn.append=ao),ti&&(F.fn.on=ti),wa&&(F.fn.focus=wa),io&&(F.fn.attr=io),qo&&(F.fn.val=qo),ba&&(F.fn.html=ba),Fl&&(F.fn.parent=Fl),Tl&&(F.fn.hasClass=Tl),jl&&(F.fn.empty=jl);var Ly,wvt={type:"video",renderElem:function(t,e,n){var r,o=t,a=o.src,i=a===void 0?"":a,u=o.poster,s=u===void 0?"":u,l=o.width,c=l===void 0?"auto":l,f=o.height,d=f===void 0?"auto":f,p=P.isNodeSelected(n,t);if(i.trim().indexOf("<iframe ")===0)r=jt("div",{className:"w-e-textarea-video-container","data-selected":p?"true":"",innerHTML:cM(i,c,d)});else{var m=jt("video",{poster:s,controls:!0},jt("source",{src:i,type:"video/mp4"}),`Sorry, your browser doesn't support embedded videos.
152
+ 抱歉,浏览器不支持 video 视频`);c!=="auto"&&(m.data.width=c),d!=="auto"&&(m.data.height=d),r=jt("div",{className:"w-e-textarea-video-container","data-selected":p?"true":""},m)}return Rl("div",{props:{contentEditable:!1},on:{mousedown:function(h){return h.preventDefault()}}},r)}},Evt={type:"video",elemToHtml:function(t,e){var n=t,r=n.src,o=r===void 0?"":r,a=n.poster,i=a===void 0?"":a,u=n.width,s=u===void 0?"auto":u,l=n.height,c=l===void 0?"auto":l,f=`<div data-w-e-type="video" data-w-e-is-void>
153
+ `;return o.trim().indexOf("<iframe ")===0?f+=cM(o,s,c):f+='<video poster="'+i+'" controls="true" width="'+s+'" height="'+c+'"><source src="'+o+'" type="video/mp4"/></video>',f+`
154
+ </div>`}},Svt=Object.keys||function(t){return aM(t,ky)},xvt=gi?Object.defineProperties:function(t,e){zn(t);for(var n,r=au(e),o=Svt(e),a=o.length,i=0;a>i;)Zi.f(t,n=o[i++],r[n]);return t},B3=zs("document","documentElement"),fM=C3("IE_PROTO"),P3=function(){},dM=function(t){return"<script>"+t+"<\/script>"},pM=function(t){t.write(dM("")),t.close();var e=t.parentWindow.Object;return t=null,e},My=function(){try{Ly=new ActiveXObject("htmlfile")}catch{}var t,e;My=typeof document<"u"?document.domain&&Ly?pM(Ly):((e=mh("iframe")).style.display="none",B3.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(dM("document.F=Object")),t.close(),t.F):pM(Ly);for(var n=ky.length;n--;)delete My.prototype[ky[n]];return My()};Py[fM]=!0;var F3=Object.create||function(t,e){var n;return t!==null?(P3.prototype=zn(t),n=new P3,P3.prototype=null,n[fM]=t):n=My(),e===void 0?n:xvt(n,e)},k3=mn("unscopables"),N3=Array.prototype;N3[k3]==null&&Zi.f(N3,k3,{configurable:!0,value:F3(null)});var Sh=function(t){N3[k3][t]=!0},Cvt=oM.includes;Pr({target:"Array",proto:!0},{includes:function(t){return Cvt(this,t,arguments.length>1?arguments[1]:void 0)}}),Sh("includes");var Dvt={selector:"iframe,video,p",preParseHtml:function(t){var e=F(t),n=e;if(lM(e)==="p"){var r=e.children();if(r.length===1){var o=r[0],a=o.tagName.toLowerCase();["iframe","video"].includes(a)&&(n=F(o))}}var i=lM(n);if(i!=="iframe"&&i!=="video"||n.parent().attr("data-w-e-type")==="video")return n[0];var u=F('<div data-w-e-type="video" data-w-e-is-void></div>');return u.append(n),u[0]}},hM=Ht(Ht.bind),xh=function(t,e){return uu(t),e===void 0?t:hM?hM(t,e):function(){return t.apply(e,arguments)}},Vy=Array.isArray||function(t){return vi(t)=="Array"},gM=function(){},Ovt=[],vM=zs("Reflect","construct"),I3=/^\s*(?:class|function)\b/,Avt=Ht(I3.exec),Tvt=!I3.exec(gM),Ch=function(t){if(!Ae(t))return!1;try{return vM(gM,Ovt,t),!0}catch{return!1}},j3=!vM||Ne(function(){var t;return Ch(Ch.call)||!Ch(Object)||!Ch(function(){t=!0})||t})?function(t){if(!Ae(t))return!1;switch(jy(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Tvt||!!Avt(I3,By(t))}:Ch,Bvt=mn("species"),mM=ft.Array,Pvt=function(t,e){return new(function(n){var r;return Vy(n)&&(r=n.constructor,(j3(r)&&(r===mM||Vy(r.prototype))||We(r)&&(r=r[Bvt])===null)&&(r=void 0)),r===void 0?mM:r}(t))(e===0?0:e)},yM=Ht([].push),bM=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,a=t==6,i=t==7,u=t==5||a;return function(s,l,c,f){for(var d,p,m=Oy(s),h=h3(m),v=xh(l,c),y=wh(h),g=0,w=f||Pvt,E=e?w(s,y):n||i?w(s,0):void 0;y>g;g++)if((u||g in h)&&(p=v(d=h[g],g,m),t))if(e)E[g]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return g;case 2:yM(E,d)}else switch(t){case 4:return!1;case 7:yM(E,d)}return a?-1:r||o?o:E}},R3={find:bM(5),findIndex:bM(6)},Fvt=R3.find,wM=!0;"find"in[]&&Array(1).find(function(){wM=!1}),Pr({target:"Array",proto:!0,forced:wM},{find:function(t){return Fvt(this,t,arguments.length>1?arguments[1]:void 0)}}),Sh("find");var kvt=A3?{}.toString:function(){return"[object "+jy(this)+"]"};function EM(t,e,n,r){return e===void 0&&(e=""),n===void 0&&(n="auto"),r===void 0&&(r="auto"),{type:"video",src:t,poster:e,width:n,height:r,children:[{text:""}]}}A3||Eo(Object.prototype,"toString",kvt,{unsafe:!0});var SM,L3,Nvt={selector:'div[data-w-e-type="video"]',parseElemHtml:function(t,e,n){var r=F(t),o="",a="",i="auto",u="auto",s=r.find("iframe");if(s.length>0)return i=s.attr("width")||"auto",u=s.attr("height")||"auto",EM(o=s[0].outerHTML,a,i,u);var l=r.find("video");return(o=l.attr("src")||"")||l.length>0&&(o=l.find("source").attr("src")||""),i=l.attr("width")||"auto",u=l.attr("height")||"auto",EM(o,a=l.attr("poster")||"",i,u)}},xM=function(){var t=zn(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},M3=ft.RegExp,CM=Ne(function(){var t=M3("a","y");return t.lastIndex=2,t.exec("abcd")!=null});CM||Ne(function(){return!M3("a","y").sticky});var Ivt={BROKEN_CARET:CM||Ne(function(){var t=M3("^r","gy");return t.lastIndex=2,t.exec("str")!=null})},jvt=ft.RegExp,Rvt=Ne(function(){var t=jvt(".","s");return!(t.dotAll&&t.exec(`
155
+ `)&&t.flags==="s")}),Lvt=ft.RegExp,Mvt=Ne(function(){var t=Lvt("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),Vvt=Zr.get,zvt=b3("native-string-replace",String.prototype.replace),zy=RegExp.prototype.exec,V3=zy,Hvt=Ht("".charAt),Uvt=Ht("".indexOf),_vt=Ht("".replace),z3=Ht("".slice),H3=(L3=/b*/g,Ie(zy,SM=/a/,"a"),Ie(zy,L3,"a"),SM.lastIndex!==0||L3.lastIndex!==0),DM=Ivt.BROKEN_CARET,U3=/()??/.exec("")[1]!==void 0;(H3||U3||DM||Rvt||Mvt)&&(V3=function(t){var e,n,r,o,a,i,u,s=this,l=Vvt(s),c=So(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=Ie(V3,f,c),s.lastIndex=f.lastIndex,e;var d=l.groups,p=DM&&s.sticky,m=Ie(xM,s),h=s.source,v=0,y=c;if(p&&(m=_vt(m,"y",""),Uvt(m,"g")===-1&&(m+="g"),y=z3(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Hvt(c,s.lastIndex-1)!==`
156
+ `)&&(h="(?: "+h+")",y=" "+y,v++),n=new RegExp("^(?:"+h+")",m)),U3&&(n=new RegExp("^"+h+"$(?!\\s)",m)),H3&&(r=s.lastIndex),o=Ie(zy,p?n:s,y),p?o?(o.input=z3(o.input,v),o[0]=z3(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:H3&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),U3&&o&&o.length>1&&Ie(zvt,o[0],n,function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(o[a]=void 0)}),o&&d)for(o.groups=i=F3(null),a=0;a<d.length;a++)i[(u=d[a])[0]]=o[u[1]];return o});var Hy=V3;Pr({target:"RegExp",proto:!0,forced:/./.exec!==Hy},{exec:Hy});var _3=Function.prototype,OM=_3.apply,Gvt=_3.bind,AM=_3.call,TM=typeof Reflect=="object"&&Reflect.apply||(Gvt?AM.bind(OM):function(){return AM.apply(OM,arguments)}),BM=(mn("species"),RegExp.prototype),Wvt=Ht("".charAt),PM=Ht("".charCodeAt),Kvt=Ht("".slice),Yvt=function(t){return function(e,n){var r,o,a=So(dh(e)),i=Fy(n),u=a.length;return i<0||i>=u?t?"":void 0:(r=PM(a,i))<55296||r>56319||i+1===u||(o=PM(a,i+1))<56320||o>57343?t?Wvt(a,i):r:t?Kvt(a,i,i+2):o-56320+(r-55296<<10)+65536}},FM={charAt:Yvt(!0)},Xvt=FM.charAt,Zvt=function(t,e,n){return e+(n?Xvt(t,e).length:1)},Jvt=Math.floor,G3=Ht("".charAt),Qvt=Ht("".replace),W3=Ht("".slice),$vt=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,qvt=/\$([$&'`]|\d{1,2})/g,tmt=function(t,e,n,r,o,a){var i=n+t.length,u=r.length,s=qvt;return o!==void 0&&(o=Oy(o),s=$vt),Qvt(a,s,function(l,c){var f;switch(G3(c,0)){case"$":return"$";case"&":return t;case"`":return W3(e,0,n);case"'":return W3(e,i);case"<":f=o[W3(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=Jvt(d/10);return p===0?l:p<=u?r[p-1]===void 0?G3(c,1):r[p-1]+G3(c,1):l}f=r[d-1]}return f===void 0?"":f})},emt=ft.TypeError,nmt=function(t,e){var n=t.exec;if(Ae(n)){var r=Ie(n,t,e);return r!==null&&zn(r),r}if(vi(t)==="RegExp")return Ie(Hy,t,e);throw emt("RegExp#exec called on incompatible receiver")},K3=mn("replace"),rmt=Math.max,omt=Math.min,imt=Ht([].concat),Y3=Ht([].push),kM=Ht("".indexOf),NM=Ht("".slice),amt="a".replace(/./,"$0")==="$0",IM=!!/./[K3]&&/./[K3]("a","$0")==="";function jM(t){return t+"-"+A9()}(function(t,e,n,r){var o=mn(t),a=!Ne(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),i=a&&!Ne(function(){var l=!1,c=/a/;return c.exec=function(){return l=!0,null},c[o](""),!l});if(!a||!i||n){var u=Ht(/./[o]),s=function(l,c,f){var d=IM?"$":"$0";return[function(p,m){var h=dh(this),v=p==null?void 0:gh(p,K3);return v?Ie(v,p,h,m):Ie(c,So(h),p,m)},function(p,m){var h=zn(this),v=So(p);if(typeof m=="string"&&kM(m,d)===-1&&kM(m,"$<")===-1){var y=f(c,h,v,m);if(y.done)return y.value}var g=Ae(m);g||(m=So(m));var w=h.global;if(w){var E=h.unicode;h.lastIndex=0}for(var x=[];;){var S=nmt(h,v);if(S===null||(Y3(x,S),!w))break;So(S[0])===""&&(h.lastIndex=Zvt(v,nM(h.lastIndex),E))}for(var C,T="",A=0,k=0;k<x.length;k++){for(var M=So((S=x[k])[0]),H=rmt(omt(Fy(S.index),v.length),0),N=[],j=1;j<S.length;j++)Y3(N,(C=S[j])===void 0?C:String(C));var G=S.groups;if(g){var V=imt([M],N,H,v);G!==void 0&&Y3(V,G);var J=So(TM(m,void 0,V))}else J=tmt(M,v,H,N,G,m);H>=A&&(T+=NM(v,A,H)+J,A=H+M.length)}return T+NM(v,A)}]}(0,""[t],function(l,c,f,d,p){var m=Ht(l),h=c.exec;return h===Hy||h===BM.exec?a&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:m(f,c,d)}:{done:!1}});Eo(String.prototype,t,s[0]),Eo(BM,o,s[1])}})("replace",0,!!Ne(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!amt||IM);var Uy=ft.Promise,_y=function(t,e,n){for(var r in e)Eo(t,r,e[r],n);return t},umt=ft.String,smt=ft.TypeError,zc=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Ht(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch{}return function(r,o){return zn(r),function(a){if(typeof a=="object"||Ae(a))return a;throw smt("Can't set "+umt(a)+" as a prototype")}(o),e?t(r,o):r.__proto__=o,r}}():void 0),lmt=Zi.f,RM=mn("toStringTag"),Gy=function(t,e,n){t&&!Bn(t=n?t:t.prototype,RM)&&lmt(t,RM,{configurable:!0,value:e})},LM=mn("species"),cmt=ft.TypeError,X3=function(t,e){if(ph(e,t))return t;throw cmt("Incorrect invocation")},Hc={},fmt=mn("iterator"),dmt=Array.prototype,pmt=mn("iterator"),MM=function(t){if(t!=null)return gh(t,pmt)||gh(t,"@@iterator")||Hc[jy(t)]},hmt=ft.TypeError,VM=function(t,e,n){var r,o;zn(t);try{if(!(r=gh(t,"return"))){if(e==="throw")throw n;return n}r=Ie(r,t)}catch(a){o=!0,r=a}if(e==="throw")throw n;if(o)throw r;return zn(r),n},gmt=ft.TypeError,Wy=function(t,e){this.stopped=t,this.result=e},zM=Wy.prototype,Ky=function(t,e,n){var r,o,a,i,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),m=!(!n||!n.INTERRUPTED),h=xh(e,f),v=function(g){return r&&VM(r,"normal",g),new Wy(!0,g)},y=function(g){return d?(zn(g),m?h(g[0],g[1],v):h(g[0],g[1])):m?h(g,v):h(g)};if(p)r=t;else{if(!(o=MM(t)))throw gmt(Dy(t)+" is not iterable");if((c=o)!==void 0&&(Hc.Array===c||dmt[fmt]===c)){for(a=0,i=wh(t);i>a;a++)if((u=y(t[a]))&&ph(zM,u))return u;return new Wy(!1)}r=function(g,w){var E=arguments.length<2?MM(g):w;if(uu(E))return zn(Ie(E,g));throw hmt(Dy(g)+" is not iterable")}(t,o)}for(s=r.next;!(l=Ie(s,r)).done;){try{u=y(l.value)}catch(g){VM(r,"throw",g)}if(typeof u=="object"&&u&&ph(zM,u))return u}return new Wy(!1)},HM=mn("iterator"),UM=!1;try{var vmt=0,_M={next:function(){return{done:!!vmt++}},return:function(){UM=!0}};_M[HM]=function(){return this},Array.from(_M,function(){throw 2})}catch{}var Dh,Uc,GM,Z3,WM=function(t,e){if(!UM)return!1;var n=!1;try{var r={};r[HM]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch{}return n},mmt=ft.TypeError,ymt=mn("species"),KM=Ht([].slice),YM=/(?:ipad|iphone|ipod).*applewebkit/i.test(Lc),cu=vi(ft.process)=="process",J3=ft.setImmediate,XM=ft.clearImmediate,bmt=ft.process,Q3=ft.Dispatch,wmt=ft.Function,ZM=ft.MessageChannel,Emt=ft.String,$3=0,Oh={};try{Dh=ft.location}catch{}var q3=function(t){if(Bn(Oh,t)){var e=Oh[t];delete Oh[t],e()}},t6=function(t){return function(){q3(t)}},JM=function(t){q3(t.data)},QM=function(t){ft.postMessage(Emt(t),Dh.protocol+"//"+Dh.host)};J3&&XM||(J3=function(t){var e=KM(arguments,1);return Oh[++$3]=function(){TM(Ae(t)?t:wmt(t),void 0,e)},Uc($3),$3},XM=function(t){delete Oh[t]},cu?Uc=function(t){bmt.nextTick(t6(t))}:Q3&&Q3.now?Uc=function(t){Q3.now(t6(t))}:ZM&&!YM?(Z3=(GM=new ZM).port2,GM.port1.onmessage=JM,Uc=xh(Z3.postMessage,Z3)):ft.addEventListener&&Ae(ft.postMessage)&&!ft.importScripts&&Dh&&Dh.protocol!=="file:"&&!Ne(QM)?(Uc=QM,ft.addEventListener("message",JM,!1)):Uc="onreadystatechange"in mh("script")?function(t){B3.appendChild(mh("script")).onreadystatechange=function(){B3.removeChild(this),q3(t)}}:function(t){setTimeout(t6(t),0)});var Ah,_s,Th,_c,e6,n6,r6,$M,qM={set:J3},Smt=/ipad|iphone|ipod/i.test(Lc)&&ft.Pebble!==void 0,xmt=/web0s(?!.*chrome)/i.test(Lc),Cmt=x3.f,o6=qM.set,tV=ft.MutationObserver||ft.WebKitMutationObserver,eV=ft.document,nV=ft.process,Yy=ft.Promise,rV=Cmt(ft,"queueMicrotask"),oV=rV&&rV.value;oV||(Ah=function(){var t,e;for(cu&&(t=nV.domain)&&t.exit();_s;){e=_s.fn,_s=_s.next;try{e()}catch(n){throw _s?_c():Th=void 0,n}}Th=void 0,t&&t.enter()},YM||cu||xmt||!tV||!eV?!Smt&&Yy&&Yy.resolve?((r6=Yy.resolve(void 0)).constructor=Yy,$M=xh(r6.then,r6),_c=function(){$M(Ah)}):cu?_c=function(){nV.nextTick(Ah)}:(o6=xh(o6,ft),_c=function(){o6(Ah)}):(e6=!0,n6=eV.createTextNode(""),new tV(Ah).observe(n6,{characterData:!0}),_c=function(){n6.data=e6=!e6}));var i6,iV,aV,uV,sV=oV||function(t){var e={fn:t,next:void 0};Th&&(Th.next=e),_s||(_s=e,_c()),Th=e},Dmt=function(t){var e,n;this.promise=new t(function(r,o){if(e!==void 0||n!==void 0)throw TypeError("Bad Promise constructor");e=r,n=o}),this.resolve=uu(e),this.reject=uu(n)},a6={f:function(t){return new Dmt(t)}},u6=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}},Omt=typeof window=="object",lV=qM.set,Amt=mn("species"),Ji="Promise",cV=Zr.getterFor(Ji),Tmt=Zr.set,Bmt=Zr.getterFor(Ji),Gs=Uy&&Uy.prototype,mi=Uy,Bh=Gs,fV=ft.TypeError,s6=ft.document,l6=ft.process,Gc=a6.f,Pmt=Gc,Fmt=!!(s6&&s6.createEvent&&ft.dispatchEvent),dV=Ae(ft.PromiseRejectionEvent),pV=!1,Ph=Iy(Ji,function(){var t=By(mi),e=t!==String(mi);if(!e&&hh===66)return!0;if(hh>=51&&/native code/.test(t))return!1;var n=new mi(function(o){o(1)}),r=function(o){o(function(){},function(){})};return(n.constructor={})[Amt]=r,!(pV=n.then(function(){})instanceof r)||!e&&Omt&&!dV}),kmt=Ph||!WM(function(t){mi.all(t).catch(function(){})}),hV=function(t){var e;return!(!We(t)||!Ae(e=t.then))&&e},c6=function(t,e){if(!t.notified){t.notified=!0;var n=t.reactions;sV(function(){for(var r=t.value,o=t.state==1,a=0;n.length>a;){var i,u,s,l=n[a++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(t.rejection===2&&Imt(t),t.rejection=1),c===!0?i=r:(p&&p.enter(),i=c(r),p&&(p.exit(),s=!0)),i===l.promise?d(fV("Promise-chain cycle")):(u=hV(i))?Ie(u,i,f,d):f(i)):d(r)}catch(m){p&&!s&&p.exit(),d(m)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&Nmt(t)})}},gV=function(t,e,n){var r,o;Fmt?((r=s6.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),ft.dispatchEvent(r)):r={promise:e,reason:n},!dV&&(o=ft["on"+t])?o(r):t==="unhandledrejection"&&function(a,i){var u=ft.console;u&&u.error&&(arguments.length==1?u.error(a):u.error(a,i))}("Unhandled promise rejection",n)},Nmt=function(t){Ie(lV,ft,function(){var e,n=t.facade,r=t.value;if(vV(t)&&(e=u6(function(){cu?l6.emit("unhandledRejection",r,n):gV("unhandledrejection",n,r)}),t.rejection=cu||vV(t)?2:1,e.error))throw e.value})},vV=function(t){return t.rejection!==1&&!t.parent},Imt=function(t){Ie(lV,ft,function(){var e=t.facade;cu?l6.emit("rejectionHandled",e):gV("rejectionhandled",e,t.value)})},Wc=function(t,e,n){return function(r){t(e,r,n)}},Kc=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,c6(t,!0))},f6=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw fV("Promise can't be resolved itself");var r=hV(e);r?sV(function(){var o={done:!1};try{Ie(r,e,Wc(f6,o,t),Wc(Kc,o,t))}catch(a){Kc(o,a,t)}}):(t.value=e,t.state=1,c6(t,!1))}catch(o){Kc({done:!1},o,t)}}};if(Ph&&(Bh=(mi=function(t){X3(this,Bh),uu(t),Ie(i6,this);var e=cV(this);try{t(Wc(f6,e),Wc(Kc,e))}catch(n){Kc(e,n)}}).prototype,(i6=function(t){Tmt(this,{type:Ji,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=_y(Bh,{then:function(t,e){var n=Bmt(this),r=n.reactions,o=Gc(function(a,i){var u,s=zn(a).constructor;return s===void 0||(u=zn(s)[ymt])==null?i:function(l){if(j3(l))return l;throw mmt(Dy(l)+" is not a constructor")}(u)}(this,mi));return o.ok=!Ae(t)||t,o.fail=Ae(e)&&e,o.domain=cu?l6.domain:void 0,n.parent=!0,r[r.length]=o,n.state!=0&&c6(n,!1),o.promise},catch:function(t){return this.then(void 0,t)}}),iV=function(){var t=new i6,e=cV(t);this.promise=t,this.resolve=Wc(f6,e),this.reject=Wc(Kc,e)},a6.f=Gc=function(t){return t===mi||t===aV?new iV(t):Pmt(t)},Ae(Uy)&&Gs!==Object.prototype)){uV=Gs.then,pV||(Eo(Gs,"then",function(t,e){var n=this;return new mi(function(r,o){Ie(uV,n,r,o)}).then(t,e)},{unsafe:!0}),Eo(Gs,"catch",Bh.catch,{unsafe:!0}));try{delete Gs.constructor}catch{}zc&&zc(Gs,Bh)}function Fh(t,e,n){return n===void 0&&(n=""),wy(this,void 0,void 0,function(){var r,o,a,i,u,s,l;return Ey(this,function(c){switch(c.label){case 0:return e?(t.restoreSelection(),r=t.getMenuConfig("insertVideo"),o=r.onInsertedVideo,a=r.checkVideo,i=r.parseVideoSrc,[4,a(e,n)]):[2];case 1:return typeof(u=c.sent())=="string"?(t.alert(u,"error"),[2]):u==null?[2]:[4,i(e)];case 2:return(s=c.sent()).trim().indexOf("<iframe ")!==0&&(s=s.replace(/</g,"&lt;").replace(/>/g,"&gt;")),l={type:"video",src:s,poster:n,children:[{text:""}]},Promise.resolve().then(function(){_.insertNodes(t,l)}),o(l),[2]}})})}function d6(){return jM("w-e-insert-video")}Pr({global:!0,wrap:!0,forced:Ph},{Promise:mi}),Gy(mi,Ji,!1),function(t){var e=zs("Promise"),n=Zi.f;gi&&e&&!e[LM]&&n(e,LM,{configurable:!0,get:function(){return this}})}(),aV=zs(Ji),Pr({target:Ji,stat:!0,forced:Ph},{reject:function(t){var e=Gc(this);return Ie(e.reject,void 0,t),e.promise}}),Pr({target:Ji,stat:!0,forced:Ph},{resolve:function(t){return function(e,n){if(zn(e),We(n)&&n.constructor===e)return n;var r=a6.f(e);return(0,r.resolve)(n),r.promise}(this,t)}}),Pr({target:Ji,stat:!0,forced:kmt},{all:function(t){var e=this,n=Gc(e),r=n.resolve,o=n.reject,a=u6(function(){var i=uu(e.resolve),u=[],s=0,l=1;Ky(t,function(c){var f=s++,d=!1;l++,Ie(i,e,c).then(function(p){d||(d=!0,u[f]=p,--l||r(u))},o)}),--l||r(u)});return a.error&&o(a.value),n.promise},race:function(t){var e=this,n=Gc(e),r=n.reject,o=u6(function(){var a=uu(e.resolve);Ky(t,function(i){Ie(a,e,i).then(n.resolve,r)})});return o.error&&r(o.value),n.promise}});var jmt=function(){function t(){this.title=lt("videoModule.insertVideo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.srcInputId=d6(),this.posterInputId=d6(),this.buttonId=d6()}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!$.isCollapsed(n)||!!P.getSelectedElems(e).some(function(r){var o=P.getNodeType(r);return o==="pre"||o==="list-item"||!!e.isVoid(r)})},t.prototype.getModalPositionNode=function(e){return null},t.prototype.getModalContentElem=function(e){var n=this,r=this,o=r.srcInputId,a=r.posterInputId,i=r.buttonId,u=Vs(_r(lt("videoModule.videoSrc"),o,lt("videoModule.videoSrcPlaceHolder")),2),s=u[0],l=u[1],c=Vs(_r(lt("videoModule.videoPoster"),a,lt("videoModule.videoPosterPlaceHolder")),2),f=c[0],d=c[1],p=F(l),m=F(d),h=Vs(lc(i,lt("videoModule.ok")),1)[0];if(this.$content==null){var v=F("<div></div>");v.on("click","#"+i,function(g){return wy(n,void 0,void 0,function(){var w,E;return Ey(this,function(x){switch(x.label){case 0:return g.preventDefault(),w=v.find("#"+o).val().trim(),E=v.find("#"+a).val().trim(),[4,Fh(e,w,E)];case 1:return x.sent(),e.hidePanelOrModal(),[2]}})})}),this.$content=v}var y=this.$content;return y.empty(),y.append(s),y.append(f),y.append(h),p.val(""),m.val(""),setTimeout(function(){p.focus()}),y[0]},t}(),Rmt=Ht([].join),Lmt=h3!=Object,Mmt=function(t,e){var n=[].join;return!!n&&Ne(function(){n.call(null,",",1)})}();Pr({target:"Array",proto:!0,forced:Lmt||!Mmt},{join:function(t){return Rmt(au(this),t===void 0?",":t)}});var Ws,mV,yV,Vmt=!Ne(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),bV=C3("IE_PROTO"),p6=ft.Object,zmt=p6.prototype,Xy=Vmt?p6.getPrototypeOf:function(t){var e=Oy(t);if(Bn(e,bV))return e[bV];var n=e.constructor;return Ae(n)&&e instanceof n?n.prototype:e instanceof p6?zmt:null},h6=mn("iterator"),wV=!1;[].keys&&("next"in(yV=[].keys())?(mV=Xy(Xy(yV)))!==Object.prototype&&(Ws=mV):wV=!0);var Hmt=Ws==null||Ne(function(){var t={};return Ws[h6].call(t)!==t});Hmt&&(Ws={}),Ae(Ws[h6])||Eo(Ws,h6,function(){return this});var g6={IteratorPrototype:Ws,BUGGY_SAFARI_ITERATORS:wV},Umt=g6.IteratorPrototype,_mt=function(){return this},Gmt=Vc.PROPER,Wmt=Vc.CONFIGURABLE,EV=g6.IteratorPrototype,v6=g6.BUGGY_SAFARI_ITERATORS,kh=mn("iterator"),Kmt=function(){return this},SV=function(t,e,n,r,o,a,i){(function(v,y,g,w){var E=y+" Iterator";v.prototype=F3(Umt,{next:Cy(1,g)}),Gy(v,E,!1),Hc[E]=_mt})(n,e,r);var u,s,l=function(v){if(v===o&&m)return m;if(!v6&&v in d)return d[v];switch(v){case"keys":case"values":case"entries":return function(){return new n(this,v)}}return function(){return new n(this)}},c=e+" Iterator",f=!1,d=t.prototype,p=d[kh]||d["@@iterator"]||o&&d[o],m=!v6&&p||l(o),h=e=="Array"&&d.entries||p;return h&&(u=Xy(h.call(new t)))!==Object.prototype&&u.next&&(Xy(u)!==EV&&(zc?zc(u,EV):Ae(u[kh])||Eo(u,kh,Kmt)),Gy(u,c,!0)),Gmt&&o=="values"&&p&&p.name!=="values"&&(Wmt?lu(d,"name","values"):(f=!0,m=function(){return Ie(p,this)})),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},i||Pr({target:e,proto:!0,forced:v6||f},s)),d[kh]!==m&&Eo(d,kh,m,{name:o}),Hc[e]=m,s},Ymt=Zr.set,Xmt=Zr.getterFor("Array Iterator"),Nh=SV(Array,"Array",function(t,e){Ymt(this,{type:"Array Iterator",target:au(t),index:0,kind:e})},function(){var t=Xmt(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values");Hc.Arguments=Hc.Array,Sh("keys"),Sh("values"),Sh("entries");var Zmt=FM.charAt,Jmt=Zr.set,Qmt=Zr.getterFor("String Iterator");SV(String,"String",function(t){Jmt(this,{type:"String Iterator",string:So(t),index:0})},function(){var t,e=Qmt(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=Zmt(n,r),e.index+=t.length,{value:t,done:!1})});var xV=function(t,e,n){var r=E3(e);r in t?Zi.f(t,r,Cy(0,n)):t[r]=n},$mt=ft.Array,qmt=Math.max,CV=Ny.f,DV=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],t0t={f:function(t){return DV&&vi(t)=="Window"?function(e){try{return CV(e)}catch{return function(r,o,a){for(var i=wh(r),u=bh(void 0,i),s=bh(i,i),l=$mt(qmt(s-u,0)),c=0;u<s;u++,c++)xV(l,c,r[u]);return l.length=c,l}(DV)}}(t):CV(au(t))}},OV=Ne(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),Zy=Object.isExtensible,Ks=Ne(function(){Zy(1)})||OV?function(t){return!!We(t)&&(!OV||vi(t)!="ArrayBuffer")&&(!Zy||Zy(t))}:Zy,e0t=!Ne(function(){return Object.isExtensible(Object.preventExtensions({}))}),m6=c3(function(t){var e=Zi.f,n=!1,r=w3("meta"),o=0,a=function(u){e(u,r,{value:{objectID:"O"+o++,weakData:{}}})},i=t.exports={enable:function(){i.enable=function(){},n=!0;var u=Ny.f,s=Ht([].splice),l={};l[r]=1,u(l).length&&(Ny.f=function(c){for(var f=u(c),d=0,p=f.length;d<p;d++)if(f[d]===r){s(f,d,1);break}return f},Pr({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:t0t.f}))},fastKey:function(u,s){if(!We(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!Bn(u,r)){if(!Ks(u))return"F";if(!s)return"E";a(u)}return u[r].objectID},getWeakData:function(u,s){if(!Bn(u,r)){if(!Ks(u))return!0;if(!s)return!1;a(u)}return u[r].weakData},onFreeze:function(u){return e0t&&n&&Ks(u)&&!Bn(u,r)&&a(u),u}};Py[r]=!0}),Jy=m6.getWeakData,n0t=Zr.set,r0t=Zr.getterFor,o0t=R3.find,i0t=R3.findIndex,a0t=Ht([].splice),u0t=0,Qy=function(t){return t.frozen||(t.frozen=new AV)},AV=function(){this.entries=[]},y6=function(t,e){return o0t(t.entries,function(n){return n[0]===e})};AV.prototype={get:function(t){var e=y6(this,t);if(e)return e[1]},has:function(t){return!!y6(this,t)},set:function(t,e){var n=y6(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=i0t(this.entries,function(n){return n[0]===t});return~e&&a0t(this.entries,e,1),!!~e}};var Ih,TV={getConstructor:function(t,e,n,r){var o=t(function(s,l){X3(s,a),n0t(s,{type:e,id:u0t++,frozen:void 0}),l!=null&&Ky(l,s[r],{that:s,AS_ENTRIES:n})}),a=o.prototype,i=r0t(e),u=function(s,l,c){var f=i(s),d=Jy(zn(l),!0);return d===!0?Qy(f).set(l,c):d[f.id]=c,s};return _y(a,{delete:function(s){var l=i(this);if(!We(s))return!1;var c=Jy(s);return c===!0?Qy(l).delete(s):c&&Bn(c,l.id)&&delete c[l.id]},has:function(s){var l=i(this);if(!We(s))return!1;var c=Jy(s);return c===!0?Qy(l).has(s):c&&Bn(c,l.id)}}),_y(a,n?{get:function(s){var l=i(this);if(We(s)){var c=Jy(s);return c===!0?Qy(l).get(s):c?c[l.id]:void 0}},set:function(s,l){return u(this,s,l)}}:{add:function(s){return u(this,s,!0)}}),o}},$y=Zr.enforce,s0t=!ft.ActiveXObject&&"ActiveXObject"in ft,BV=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},l0t=function(t,e,n){var r=t.indexOf("Map")!==-1,o=t.indexOf("Weak")!==-1,a=r?"set":"add",i=ft[t],u=i&&i.prototype,s=i,l={},c=function(v){var y=Ht(u[v]);Eo(u,v,v=="add"?function(g){return y(this,g===0?0:g),this}:v=="delete"?function(g){return!(o&&!We(g))&&y(this,g===0?0:g)}:v=="get"?function(g){return o&&!We(g)?void 0:y(this,g===0?0:g)}:v=="has"?function(g){return!(o&&!We(g))&&y(this,g===0?0:g)}:function(g,w){return y(this,g===0?0:g,w),this})};if(Iy(t,!Ae(i)||!(o||u.forEach&&!Ne(function(){new i().entries().next()}))))s=n.getConstructor(e,t,r,a),m6.enable();else if(Iy(t,!0)){var f=new s,d=f[a](o?{}:-0,1)!=f,p=Ne(function(){f.has(1)}),m=WM(function(v){new i(v)}),h=!o&&Ne(function(){for(var v=new i,y=5;y--;)v[a](y,y);return!v.has(-0)});m||((s=e(function(v,y){X3(v,u);var g=function(w,E,x){var S,C;return zc&&Ae(S=E.constructor)&&S!==x&&We(C=S.prototype)&&C!==x.prototype&&zc(w,C),w}(new i,v,s);return y!=null&&Ky(y,g[a],{that:g,AS_ENTRIES:r}),g})).prototype=u,u.constructor=s),(p||h)&&(c("delete"),c("has"),r&&c("get")),(h||d)&&c(a),o&&u.clear&&delete u.clear}return l[t]=s,Pr({global:!0,forced:s!=i},l),Gy(s,t),o||n.setStrong(s,t,r),s}("WeakMap",BV,TV);if($L&&s0t){Ih=TV.getConstructor(BV,"WeakMap",!0),m6.enable();var jh=l0t.prototype,PV=Ht(jh.delete),qy=Ht(jh.has),FV=Ht(jh.get),kV=Ht(jh.set);_y(jh,{delete:function(t){if(We(t)&&!Ks(t)){var e=$y(this);return e.frozen||(e.frozen=new Ih),PV(this,t)||e.frozen.delete(t)}return PV(this,t)},has:function(t){if(We(t)&&!Ks(t)){var e=$y(this);return e.frozen||(e.frozen=new Ih),qy(this,t)||e.frozen.has(t)}return qy(this,t)},get:function(t){if(We(t)&&!Ks(t)){var e=$y(this);return e.frozen||(e.frozen=new Ih),qy(this,t)?FV(this,t):e.frozen.get(t)}return FV(this,t)},set:function(t,e){if(We(t)&&!Ks(t)){var n=$y(this);n.frozen||(n.frozen=new Ih),qy(this,t)?kV(this,t,e):n.frozen.set(t,e)}else kV(this,t,e);return this}})}var NV={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},b6=mh("span").classList,IV=b6&&b6.constructor&&b6.constructor.prototype,c0t=IV===Object.prototype?void 0:IV,w6=mn("iterator"),jV=mn("toStringTag"),E6=Nh.values,RV=function(t,e){if(t){if(t[w6]!==E6)try{lu(t,w6,E6)}catch{t[w6]=E6}if(t[jV]||lu(t,jV,e),NV[e]){for(var n in Nh)if(t[n]!==Nh[n])try{lu(t,n,Nh[n])}catch{t[n]=Nh[n]}}}};for(var S6 in NV)RV(ft[S6]&&ft[S6].prototype,S6);RV(c0t,"DOMTokenList");var f0t=Vc.EXISTS,d0t=Zi.f,LV=Function.prototype,p0t=Ht(LV.toString),MV=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,h0t=Ht(MV.exec);gi&&!f0t&&d0t(LV,"name",{configurable:!0,get:function(){try{return h0t(MV,p0t(this))[1]}catch{return""}}});var g0t=mn("species"),v0t=hh>=51||!Ne(function(){var t=[];return(t.constructor={})[g0t]=function(){return{foo:1}},t.slice(Boolean).foo!==1}),m0t=mn("species"),x6=ft.Array,y0t=Math.max;function VV(t){return t.getMenuConfig("uploadVideo")}Pr({target:"Array",proto:!0,forced:!v0t},{slice:function(t,e){var n,r,o,a=au(this),i=wh(a),u=bh(t,i),s=bh(e===void 0?i:e,i);if(Vy(a)&&(n=a.constructor,(j3(n)&&(n===x6||Vy(n.prototype))||We(n)&&(n=n[m0t])===null)&&(n=void 0),n===x6||n===void 0))return KM(a,u,s);for(r=new(n===void 0?x6:n)(y0t(s-u,0)),o=0;u<s;u++,o++)u in a&&xV(r,o,a[u]);return r.length=o,r}});var zV=new WeakMap;function b0t(t,e){return wy(this,void 0,void 0,function(){var n,r,o,a;return Ey(this,function(i){switch(i.label){case 0:return n=function(u){var s=zV.get(u);if(s!=null)return s;var l=VV(u),c=l.onSuccess,f=l.onProgress,d=l.onFailed,p=l.customInsert,m=l.onError;return s=VF(by(by({},l),{onProgress:function(h){u.showProgressBar(h),f&&f(h)},onSuccess:function(h,v){if(p)return p(v,function(T,A){return Fh(u,T,A)}),void c(h,v);var y=v.errno,g=y===void 0?1:y,w=v.data,E=w===void 0?{}:w;if(g===0){var x=E.url,S=x===void 0?"":x,C=E.poster;Fh(u,S,C===void 0?"":C),c(h,v)}else d(h,v)},onError:function(h,v,y){m(h,v,y)}})),zV.set(u,s),s}(t),r=e.name,o=e.type,a=e.size,n.addFile({name:r,type:o,size:a,data:e}),[4,n.upload()];case 1:return i.sent(),[2]}})})}var w0t=function(){function t(){this.title=lt("videoModule.uploadVideo"),this.iconSvg='<svg viewBox="0 0 1056 1024"><path d="M805.902261 521.819882a251.441452 251.441452 0 0 0-251.011972 246.600033 251.051015 251.051015 0 1 0 502.023944 8.823877 253.237463 253.237463 0 0 0-251.011972-255.42391z m59.463561 240.001647v129.898403h-116.701631v-129.898403h-44.041298l101.279368-103.504859 101.279368 103.504859z" p-id="6802"></path><path d="M788.254507 0.000781H99.094092A98.663439 98.663439 0 0 0 0.001171 99.093701v590.067495a98.663439 98.663439 0 0 0 99.092921 99.092921h411.7549a266.434235 266.434235 0 0 1-2.186448-41.815807 275.843767 275.843767 0 0 1 275.180024-270.729042 270.650955 270.650955 0 0 1 103.504859 19.834201V99.093701A101.51363 101.51363 0 0 0 788.254507 0.000781zM295.054441 640.747004V147.507894l394.146189 246.600033z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){var r=this.getMenuConfig(e),o=r.allowedFileTypes,a=o===void 0?[]:o,i=r.customBrowseAndUpload;if(i)i(function(c,f){return Fh(e,c,f)});else{var u="";a.length>0&&(u='accept="'+a.join(", ")+'"');var s=F("body"),l=F('<input type="file" '+u+" multiple/>");l.hide(),s.append(l),l.click(),l.on("change",function(){var c=l[0].files;(function(f,d){var p,m;wy(this,void 0,void 0,function(){var h,v,y,g,w,E;return Ey(this,function(x){switch(x.label){case 0:if(d==null)return[2];h=Array.prototype.slice.call(d),v=VV(f).customUpload,x.label=1;case 1:x.trys.push([1,9,10,15]),y=mgt(h),x.label=2;case 2:return[4,y.next()];case 3:return(g=x.sent()).done?[3,8]:(w=g.value,v?[4,v(w,function(S,C){return Fh(f,S,C)})]:[3,5]);case 4:return x.sent(),[3,7];case 5:return[4,b0t(f,w)];case 6:x.sent(),x.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return E=x.sent(),p={error:E},[3,15];case 10:return x.trys.push([10,,13,14]),g&&!g.done&&(m=y.return)?[4,m.call(y)]:[3,12];case 11:x.sent(),x.label=12;case 12:return[3,14];case 13:if(p)throw p.error;return[7];case 14:return[7];case 15:return[2]}})})})(e,c)})}},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!$.isCollapsed(n)||!!P.getSelectedElems(e).some(function(r){var o=P.getNodeType(r);return o==="pre"||o==="list-item"||!!e.isVoid(r)})},t.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadVideo")},t}(),E0t=Vc.PROPER,C6=RegExp.prototype,HV=C6.toString,S0t=Ht(xM),x0t=Ne(function(){return HV.call({source:"a",flags:"b"})!="/a/b"}),C0t=E0t&&HV.name!="toString";function D6(){return jM("w-e-insert-video")}(x0t||C0t)&&Eo(RegExp.prototype,"toString",function(){var t=zn(this),e=So(t.source),n=t.flags;return"/"+e+"/"+So(n===void 0&&ph(C6,t)&&!("flags"in C6)?S0t(t):n)},{unsafe:!0});var D0t=function(){function t(){this.title=lt("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=D6(),this.heightInputId=D6(),this.buttonId=D6()}return t.prototype.getSelectedVideoNode=function(e){return P.getSelectedNodeByType(e,"video")},t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){},t.prototype.isDisabled=function(e){return e.selection==null||this.getSelectedVideoNode(e)==null},t.prototype.getModalPositionNode=function(e){return this.getSelectedVideoNode(e)},t.prototype.getModalContentElem=function(e){var n=this,r=n.widthInputId,o=n.heightInputId,a=n.buttonId,i=Vs(_r(lt("videoModule.width"),r,"auto"),2),u=i[0],s=F(i[1]),l=Vs(_r(lt("videoModule.height"),o,"auto"),2),c=l[0],f=F(l[1]),d=Vs(lc(a,lt("videoModule.ok")),1)[0];if(this.$content==null){var p=F("<div></div>");p.on("click","#"+a,function(E){E.preventDefault();var x=p.find("#"+r).val().trim(),S=p.find("#"+o).val().trim(),C=parseInt(x),T=parseInt(S),A=C?C.toString():"auto",k=T?T.toString():"auto";e.restoreSelection(),_.setNodes(e,{width:A,height:k},{match:function(M){return P.checkNodeType(M,"video")}}),e.hidePanelOrModal()}),this.$content=p}var m=this.$content;m.empty(),m.append(u),m.append(c),m.append(d);var h=this.getSelectedVideoNode(e);if(h==null)return m[0];var v=h.width,y=v===void 0?"auto":v,g=h.height,w=g===void 0?"auto":g;return s.val(y),f.val(w),setTimeout(function(){s.focus()}),m[0]},t}(),O0t={renderElems:[wvt],elemsToHtml:[Evt],preParseHtml:[Dvt],parseElemsHtml:[Nvt],menus:[{key:"insertVideo",factory:function(){return new jmt},config:{onInsertedVideo:function(t){},checkVideo:function(t,e){return!0},parseVideoSrc:function(t){return t}}},{key:"uploadVideo",factory:function(){return new w0t},config:{server:"",fieldName:"wangeditor-uploaded-video",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["video/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(t){return t},onProgress:function(t){},onSuccess:function(t,e){},onFailed:function(t,e){console.error("'"+t.name+"' upload failed",e)},onError:function(t,e,n){console.error("'"+t.name+" upload error",e,n)}}},{key:"editVideoSize",factory:function(){return new D0t}}],editorPlugin:function(t){var e=t.isVoid,n=t.normalizeNode,r=t;return r.isVoid=function(o){return o.type==="video"||e(o)},r.normalizeNode=function(o){var a=Vs(o,2),i=a[0],u=a[1];return P.getNodeType(i)==="video"&&P.isLastNode(r,i)&&_.insertNodes(r,P.genEmptyParagraph(),{at:[u[0]+1]}),n([i,u])},r}};Or("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),Or("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});var UV=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function O6(t){var e={exports:{}};return t(e,e.exports),e.exports}var fu,t1,e1=function(t){return t&&t.Math==Math&&t},ct=e1(typeof globalThis=="object"&&globalThis)||e1(typeof window=="object"&&window)||e1(typeof self=="object"&&self)||e1(typeof UV=="object"&&UV)||function(){return this}()||Function("return this")(),ze=function(t){try{return!!t()}catch{return!0}},yi=!ze(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Rh=Function.prototype.call,Se=Rh.bind?Rh.bind(Rh):function(){return Rh.apply(Rh,arguments)},_V={}.propertyIsEnumerable,GV=Object.getOwnPropertyDescriptor,A0t={f:GV&&!_V.call({1:2},1)?function(t){var e=GV(this,t);return!!e&&e.enumerable}:_V},n1=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},WV=Function.prototype,A6=WV.bind,T6=WV.call,T0t=A6&&A6.bind(T6),qt=A6?function(t){return t&&T0t(T6,t)}:function(t){return t&&function(){return T6.apply(t,arguments)}},B0t=qt({}.toString),P0t=qt("".slice),Uo=function(t){return P0t(B0t(t),8,-1)},B6=ct.Object,F0t=qt("".split),P6=ze(function(){return!B6("z").propertyIsEnumerable(0)})?function(t){return Uo(t)=="String"?F0t(t,""):B6(t)}:B6,k0t=ct.TypeError,Lh=function(t){if(t==null)throw k0t("Can't call method on "+t);return t},du=function(t){return P6(Lh(t))},Fe=function(t){return typeof t=="function"},He=function(t){return typeof t=="object"?t!==null:Fe(t)},N0t=function(t){return Fe(t)?t:void 0},Ys=function(t,e){return arguments.length<2?N0t(ct[t]):ct[t]&&ct[t][e]},Mh=qt({}.isPrototypeOf),Yc=Ys("navigator","userAgent")||"",KV=ct.process,YV=ct.Deno,XV=KV&&KV.versions||YV&&YV.version,ZV=XV&&XV.v8;ZV&&(t1=(fu=ZV.split("."))[0]>0&&fu[0]<4?1:+(fu[0]+fu[1])),!t1&&Yc&&(!(fu=Yc.match(/Edge\/(\d+)/))||fu[1]>=74)&&(fu=Yc.match(/Chrome\/(\d+)/))&&(t1=+fu[1]);var Vh=t1,F6=!!Object.getOwnPropertySymbols&&!ze(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Vh&&Vh<41}),k6=F6&&!Symbol.sham&&typeof Symbol.iterator=="symbol",I0t=ct.Object,N6=k6?function(t){return typeof t=="symbol"}:function(t){var e=Ys("Symbol");return Fe(e)&&Mh(e.prototype,I0t(t))},j0t=ct.String,r1=function(t){try{return j0t(t)}catch{return"Object"}},R0t=ct.TypeError,pu=function(t){if(Fe(t))return t;throw R0t(r1(t)+" is not a function")},zh=function(t,e){var n=t[e];return n==null?void 0:pu(n)},L0t=ct.TypeError,M0t=Object.defineProperty,I6=function(t,e){try{M0t(ct,t,{value:e,configurable:!0,writable:!0})}catch{ct[t]=e}return e},hu=ct["__core-js_shared__"]||I6("__core-js_shared__",{}),j6=O6(function(t){(t.exports=function(e,n){return hu[e]||(hu[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),V0t=ct.Object,R6=function(t){return V0t(Lh(t))},z0t=qt({}.hasOwnProperty),Pn=Object.hasOwn||function(t,e){return z0t(R6(t),e)},H0t=0,U0t=Math.random(),_0t=qt(1 .toString),L6=function(t){return"Symbol("+(t===void 0?"":t)+")_"+_0t(++H0t+U0t,36)},Hh=j6("wks"),Xs=ct.Symbol,JV=Xs&&Xs.for,G0t=k6?Xs:Xs&&Xs.withoutSetter||L6,yn=function(t){if(!Pn(Hh,t)||!F6&&typeof Hh[t]!="string"){var e="Symbol."+t;F6&&Pn(Xs,t)?Hh[t]=Xs[t]:Hh[t]=k6&&JV?JV(e):G0t(e)}return Hh[t]},W0t=ct.TypeError,K0t=yn("toPrimitive"),M6=function(t){var e=function(n,r){if(!He(n)||N6(n))return n;var o,a=zh(n,K0t);if(a){if(o=Se(a,n,r),!He(o)||N6(o))return o;throw W0t("Can't convert object to primitive value")}return function(i,u){var s,l;if(Fe(s=i.toString)&&!He(l=Se(s,i))||Fe(s=i.valueOf)&&!He(l=Se(s,i)))return l;throw L0t("Can't convert object to primitive value")}(n)}(t,"string");return N6(e)?e:e+""},V6=ct.document,Y0t=He(V6)&&He(V6.createElement),Uh=function(t){return Y0t?V6.createElement(t):{}},QV=!yi&&!ze(function(){return Object.defineProperty(Uh("div"),"a",{get:function(){return 7}}).a!=7}),$V=Object.getOwnPropertyDescriptor,z6={f:yi?$V:function(t,e){if(t=du(t),e=M6(e),QV)try{return $V(t,e)}catch{}if(Pn(t,e))return n1(!Se(A0t.f,t,e),t[e])}},X0t=ct.String,Z0t=ct.TypeError,Hn=function(t){if(He(t))return t;throw Z0t(X0t(t)+" is not an object")},J0t=ct.TypeError,qV=Object.defineProperty,Qi={f:yi?qV:function(t,e,n){if(Hn(t),e=M6(e),Hn(n),QV)try{return qV(t,e,n)}catch{}if("get"in n||"set"in n)throw J0t("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},bi=yi?function(t,e,n){return Qi.f(t,e,n1(1,n))}:function(t,e,n){return t[e]=n,t},Q0t=qt(Function.toString);Fe(hu.inspectSource)||(hu.inspectSource=function(t){return Q0t(t)});var o1,_h,i1,a1=hu.inspectSource,tz=ct.WeakMap,ez=Fe(tz)&&/native code/.test(a1(tz)),nz=j6("keys"),H6=function(t){return nz[t]||(nz[t]=L6(t))},u1={},U6=ct.TypeError,$0t=ct.WeakMap;if(ez||hu.state){var Zs=hu.state||(hu.state=new $0t),q0t=qt(Zs.get),rz=qt(Zs.has),tyt=qt(Zs.set);o1=function(t,e){if(rz(Zs,t))throw new U6("Object already initialized");return e.facade=t,tyt(Zs,t,e),e},_h=function(t){return q0t(Zs,t)||{}},i1=function(t){return rz(Zs,t)}}else{var Xc=H6("state");u1[Xc]=!0,o1=function(t,e){if(Pn(t,Xc))throw new U6("Object already initialized");return e.facade=t,bi(t,Xc,e),e},_h=function(t){return Pn(t,Xc)?t[Xc]:{}},i1=function(t){return Pn(t,Xc)}}var Jr={set:o1,get:_h,has:i1,enforce:function(t){return i1(t)?_h(t):o1(t,{})},getterFor:function(t){return function(e){var n;if(!He(e)||(n=_h(e)).type!==t)throw U6("Incompatible receiver, "+t+" required");return n}}},oz=Function.prototype,eyt=yi&&Object.getOwnPropertyDescriptor,_6=Pn(oz,"name"),Gh={EXISTS:_6,PROPER:_6&&(function(){}).name==="something",CONFIGURABLE:_6&&(!yi||yi&&eyt(oz,"name").configurable)},xo=O6(function(t){var e=Gh.CONFIGURABLE,n=Jr.get,r=Jr.enforce,o=String(String).split("String");(t.exports=function(a,i,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:i;Fe(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Pn(u,"name")||e&&u.name!==p)&&bi(u,"name",p),(l=r(u)).source||(l.source=o.join(typeof p=="string"?p:""))),a!==ct?(c?!d&&a[i]&&(f=!0):delete a[i],f?a[i]=u:bi(a,i,u)):f?a[i]=u:I6(i,u)})(Function.prototype,"toString",function(){return Fe(this)&&n(this).source||a1(this)})}),nyt=Math.ceil,ryt=Math.floor,G6=function(t){var e=+t;return e!=e||e===0?0:(e>0?ryt:nyt)(e)},oyt=Math.max,iyt=Math.min,Wh=function(t,e){var n=G6(t);return n<0?oyt(n+e,0):iyt(n,e)},ayt=Math.min,iz=function(t){return t>0?ayt(G6(t),9007199254740991):0},Kh=function(t){return iz(t.length)},uyt=function(t){return function(e,n,r){var o,a=du(e),i=Kh(a),u=Wh(r,i);if(t&&n!=n){for(;i>u;)if((o=a[u++])!=o)return!0}else for(;i>u;u++)if((t||u in a)&&a[u]===n)return t||u||0;return!t&&-1}},syt=uyt(!1),az=qt([].push),uz=function(t,e){var n,r=du(t),o=0,a=[];for(n in r)!Pn(u1,n)&&Pn(r,n)&&az(a,n);for(;e.length>o;)Pn(r,n=e[o++])&&(~syt(a,n)||az(a,n));return a},s1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],lyt=s1.concat("length","prototype"),l1={f:Object.getOwnPropertyNames||function(t){return uz(t,lyt)}},cyt={f:Object.getOwnPropertySymbols},fyt=qt([].concat),dyt=Ys("Reflect","ownKeys")||function(t){var e=l1.f(Hn(t)),n=cyt.f;return n?fyt(e,n(t)):e},pyt=function(t,e){for(var n=dyt(e),r=Qi.f,o=z6.f,a=0;a<n.length;a++){var i=n[a];Pn(t,i)||r(t,i,o(e,i))}},hyt=/#|\.prototype\./,Yh=function(t,e){var n=vyt[gyt(t)];return n==yyt||n!=myt&&(Fe(e)?ze(e):!!e)},gyt=Yh.normalize=function(t){return String(t).replace(hyt,".").toLowerCase()},vyt=Yh.data={},myt=Yh.NATIVE="N",yyt=Yh.POLYFILL="P",c1=Yh,byt=z6.f,wi=function(t,e){var n,r,o,a,i,u=t.target,s=t.global,l=t.stat;if(n=s?ct:l?ct[u]||I6(u,{}):(ct[u]||{}).prototype)for(r in e){if(a=e[r],o=t.noTargetGet?(i=byt(n,r))&&i.value:n[r],!c1(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof a==typeof o)continue;pyt(a,o)}(t.sham||o&&o.sham)&&bi(a,"sham",!0),xo(n,r,a,t)}},f1=Array.isArray||function(t){return Uo(t)=="Array"},sz={};sz[yn("toStringTag")]="z";var W6=String(sz)==="[object z]",wyt=yn("toStringTag"),Eyt=ct.Object,Syt=Uo(function(){return arguments}())=="Arguments",d1=W6?Uo:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,a){try{return o[a]}catch{}}(e=Eyt(t),wyt))=="string"?n:Syt?Uo(e):(r=Uo(e))=="Object"&&Fe(e.callee)?"Arguments":r},lz=function(){},xyt=[],cz=Ys("Reflect","construct"),K6=/^\s*(?:class|function)\b/,Cyt=qt(K6.exec),Dyt=!K6.exec(lz),Xh=function(t){if(!Fe(t))return!1;try{return cz(lz,xyt,t),!0}catch{return!1}},Y6=!cz||ze(function(){var t;return Xh(Xh.call)||!Xh(Object)||!Xh(function(){t=!0})||t})?function(t){if(!Fe(t))return!1;switch(d1(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Dyt||!!Cyt(K6,a1(t))}:Xh,fz=function(t,e,n){var r=M6(e);r in t?Qi.f(t,r,n1(0,n)):t[r]=n},Oyt=yn("species"),dz=qt([].slice),Ayt=Vh>=51||!ze(function(){var t=[];return(t.constructor={})[Oyt]=function(){return{foo:1}},t.slice(Boolean).foo!==1}),Tyt=yn("species"),X6=ct.Array,Byt=Math.max;wi({target:"Array",proto:!0,forced:!Ayt},{slice:function(t,e){var n,r,o,a=du(this),i=Kh(a),u=Wh(t,i),s=Wh(e===void 0?i:e,i);if(f1(a)&&(n=a.constructor,(Y6(n)&&(n===X6||f1(n.prototype))||He(n)&&(n=n[Tyt])===null)&&(n=void 0),n===X6||n===void 0))return dz(a,u,s);for(r=new(n===void 0?X6:n)(Byt(s-u,0)),o=0;u<s;u++,o++)u in a&&fz(r,o,a[u]);return r.length=o,r}});var Pyt=W6?{}.toString:function(){return"[object "+d1(this)+"]"};W6||xo(Object.prototype,"toString",Pyt,{unsafe:!0});var p1,Fyt=ct.String,gu=function(t){if(d1(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Fyt(t)},pz=function(){var t=Hn(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},Z6=ct.RegExp,J6=ze(function(){var t=Z6("a","y");return t.lastIndex=2,t.exec("abcd")!=null});J6||ze(function(){return!Z6("a","y").sticky});var hz={BROKEN_CARET:J6||ze(function(){var t=Z6("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),UNSUPPORTED_Y:J6},kyt=Object.keys||function(t){return uz(t,s1)},Nyt=yi?Object.defineProperties:function(t,e){Hn(t);for(var n,r=du(e),o=kyt(e),a=o.length,i=0;a>i;)Qi.f(t,n=o[i++],r[n]);return t},Q6=Ys("document","documentElement"),gz=H6("IE_PROTO"),$6=function(){},vz=function(t){return"<script>"+t+"<\/script>"},mz=function(t){t.write(vz("")),t.close();var e=t.parentWindow.Object;return t=null,e},h1=function(){try{p1=new ActiveXObject("htmlfile")}catch{}var t,e;h1=typeof document<"u"?document.domain&&p1?mz(p1):((e=Uh("iframe")).style.display="none",Q6.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(vz("document.F=Object")),t.close(),t.F):mz(p1);for(var n=s1.length;n--;)delete h1.prototype[s1[n]];return h1()};u1[gz]=!0;var yz,q6,t5=Object.create||function(t,e){var n;return t!==null?($6.prototype=Hn(t),n=new $6,$6.prototype=null,n[gz]=t):n=h1(),e===void 0?n:Nyt(n,e)},Iyt=ct.RegExp,jyt=ze(function(){var t=Iyt(".","s");return!(t.dotAll&&t.exec(`
157
+ `)&&t.flags==="s")}),Ryt=ct.RegExp,Lyt=ze(function(){var t=Ryt("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),Myt=Jr.get,Vyt=j6("native-string-replace",String.prototype.replace),g1=RegExp.prototype.exec,e5=g1,zyt=qt("".charAt),Hyt=qt("".indexOf),Uyt=qt("".replace),n5=qt("".slice),r5=(q6=/b*/g,Se(g1,yz=/a/,"a"),Se(g1,q6,"a"),yz.lastIndex!==0||q6.lastIndex!==0),bz=hz.BROKEN_CARET,o5=/()??/.exec("")[1]!==void 0;(r5||o5||bz||jyt||Lyt)&&(e5=function(t){var e,n,r,o,a,i,u,s=this,l=Myt(s),c=gu(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=Se(e5,f,c),s.lastIndex=f.lastIndex,e;var d=l.groups,p=bz&&s.sticky,m=Se(pz,s),h=s.source,v=0,y=c;if(p&&(m=Uyt(m,"y",""),Hyt(m,"g")===-1&&(m+="g"),y=n5(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&zyt(c,s.lastIndex-1)!==`
158
+ `)&&(h="(?: "+h+")",y=" "+y,v++),n=new RegExp("^(?:"+h+")",m)),o5&&(n=new RegExp("^"+h+"$(?!\\s)",m)),r5&&(r=s.lastIndex),o=Se(g1,p?n:s,y),p?o?(o.input=n5(o.input,v),o[0]=n5(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:r5&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),o5&&o&&o.length>1&&Se(Vyt,o[0],n,function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(o[a]=void 0)}),o&&d)for(o.groups=i=t5(null),a=0;a<d.length;a++)i[(u=d[a])[0]]=o[u[1]];return o});var Zh=e5;wi({target:"RegExp",proto:!0,forced:/./.exec!==Zh},{exec:Zh});var i5=Function.prototype,wz=i5.apply,_yt=i5.bind,Ez=i5.call,Sz=typeof Reflect=="object"&&Reflect.apply||(_yt?Ez.bind(wz):function(){return Ez.apply(wz,arguments)}),Gyt=yn("species"),a5=RegExp.prototype,Wyt=yn("match"),Kyt=ct.TypeError,Yyt=yn("species"),xz=function(t,e){var n,r=Hn(t).constructor;return r===void 0||(n=Hn(r)[Yyt])==null?e:function(o){if(Y6(o))return o;throw Kyt(r1(o)+" is not a constructor")}(n)},Xyt=qt("".charAt),Cz=qt("".charCodeAt),Zyt=qt("".slice),Jyt=function(t){return function(e,n){var r,o,a=gu(Lh(e)),i=G6(n),u=a.length;return i<0||i>=u?t?"":void 0:(r=Cz(a,i))<55296||r>56319||i+1===u||(o=Cz(a,i+1))<56320||o>57343?t?Xyt(a,i):r:t?Zyt(a,i,i+2):o-56320+(r-55296<<10)+65536}},Dz={charAt:Jyt(!0)},Qyt=Dz.charAt,$yt=function(t,e,n){return e+(n?Qyt(t,e).length:1)},qyt=ct.Array,t1t=Math.max,u5=function(t,e,n){for(var r=Kh(t),o=Wh(e,r),a=Wh(n===void 0?r:n,r),i=qyt(t1t(a-o,0)),u=0;o<a;o++,u++)fz(i,u,t[o]);return i.length=u,i},e1t=ct.TypeError,Oz=function(t,e){var n=t.exec;if(Fe(n)){var r=Se(n,t,e);return r!==null&&Hn(r),r}if(Uo(t)==="RegExp")return Se(Zh,t,e);throw e1t("RegExp#exec called on incompatible receiver")},Zc=hz.UNSUPPORTED_Y,n1t=Math.min,Az=[].push,r1t=qt(/./.exec),Jc=qt(Az),Jh=qt("".slice);(function(t,e,n,r){var o=yn(t),a=!ze(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),i=a&&!ze(function(){var l=!1,c=/a/;return(c={}).constructor={},c.constructor[Gyt]=function(){return c},c.flags="",c[o]=/./[o],c.exec=function(){return l=!0,null},c[o](""),!l});if(!a||!i||n){var u=qt(/./[o]),s=function(l,c,f){var d;return d="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(p,m){var h,v,y=gu(Lh(this)),g=m===void 0?4294967295:m>>>0;if(g===0)return[];if(p===void 0)return[y];if(!He(h=p)||!((v=h[Wyt])!==void 0?v:Uo(h)=="RegExp"))return Se(c,y,p,g);for(var w,E,x,S=[],C=(p.ignoreCase?"i":"")+(p.multiline?"m":"")+(p.unicode?"u":"")+(p.sticky?"y":""),T=0,A=new RegExp(p.source,C+"g");(w=Se(Zh,A,y))&&!((E=A.lastIndex)>T&&(Jc(S,Jh(y,T,w.index)),w.length>1&&w.index<y.length&&Sz(Az,S,u5(w,1)),x=w[0].length,T=E,S.length>=g));)A.lastIndex===w.index&&A.lastIndex++;return T===y.length?!x&&r1t(A,"")||Jc(S,""):Jc(S,Jh(y,T)),S.length>g?u5(S,0,g):S}:"0".split(void 0,0).length?function(p,m){return p===void 0&&m===0?[]:Se(c,this,p,m)}:c,[function(p,m){var h=Lh(this),v=p==null?void 0:zh(p,l);return v?Se(v,p,h,m):Se(d,gu(h),p,m)},function(p,m){var h=Hn(this),v=gu(p),y=f(d,h,v,m,d!==c);if(y.done)return y.value;var g=xz(h,RegExp),w=h.unicode,E=(h.ignoreCase?"i":"")+(h.multiline?"m":"")+(h.unicode?"u":"")+(Zc?"g":"y"),x=new g(Zc?"^(?:"+h.source+")":h,E),S=m===void 0?4294967295:m>>>0;if(S===0)return[];if(v.length===0)return Oz(x,v)===null?[v]:[];for(var C=0,T=0,A=[];T<v.length;){x.lastIndex=Zc?0:T;var k,M=Oz(x,Zc?Jh(v,T):v);if(M===null||(k=n1t(iz(x.lastIndex+(Zc?T:0)),v.length))===C)T=$yt(v,T,w);else{if(Jc(A,Jh(v,C,T)),A.length===S)return A;for(var H=1;H<=M.length-1;H++)if(Jc(A,M[H]),A.length===S)return A;T=C=k}}return Jc(A,Jh(v,C)),A}]}(o,""[t],function(l,c,f,d,p){var m=qt(l),h=c.exec;return h===Zh||h===a5.exec?a&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:m(f,c,d)}:{done:!1}});xo(String.prototype,t,s[0]),xo(a5,o,s[1])}r&&bi(a5[o],"sham",!0)})("split",0,!!ze(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),Zc);/*! *****************************************************************************
159
+ Copyright (c) Microsoft Corporation.
160
+
161
+ Permission to use, copy, modify, and/or distribute this software for any
162
+ purpose with or without fee is hereby granted.
163
+
164
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
165
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
166
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
167
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
168
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
169
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
170
+ PERFORMANCE OF THIS SOFTWARE.
171
+ ***************************************************************************** */var v1=function(){return v1=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},v1.apply(this,arguments)};function s5(t,e,n,r){return new(n||(n=Promise))(function(o,a){function i(l){try{s(r.next(l))}catch(c){a(c)}}function u(l){try{s(r.throw(l))}catch(c){a(c)}}function s(l){var c;l.done?o(l.value):(c=l.value,c instanceof n?c:new n(function(f){f(c)})).then(i,u)}s((r=r.apply(t,[])).next())})}function l5(t,e){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(s){return function(l){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||c[0]!==6&&c[0]!==2)){i=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(c[0]===6&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=e.call(t,i)}catch(f){c=[6,f],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([s,l])}}}function o1t(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=function(o){var a=typeof Symbol=="function"&&Symbol.iterator,i=a&&o[a],u=0;if(i)return i.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&u>=o.length&&(o=void 0),{value:o&&o[u++],done:!o}}};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(o){e[o]=t[o]&&function(a){return new Promise(function(i,u){(function(s,l,c,f){Promise.resolve(f).then(function(d){s({value:d,done:c})},l)})(i,u,(a=t[o](a)).done,a.value)})}}}var c5=yn("unscopables"),f5=Array.prototype;f5[c5]==null&&Qi.f(f5,c5,{configurable:!0,value:t5(null)});var Js,Tz,Bz,d5=function(t){f5[c5][t]=!0},Qc={},i1t=!ze(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),Pz=H6("IE_PROTO"),p5=ct.Object,a1t=p5.prototype,m1=i1t?p5.getPrototypeOf:function(t){var e=R6(t);if(Pn(e,Pz))return e[Pz];var n=e.constructor;return Fe(n)&&e instanceof n?n.prototype:e instanceof p5?a1t:null},h5=yn("iterator"),Fz=!1;[].keys&&("next"in(Bz=[].keys())?(Tz=m1(m1(Bz)))!==Object.prototype&&(Js=Tz):Fz=!0);var u1t=Js==null||ze(function(){var t={};return Js[h5].call(t)!==t});u1t&&(Js={}),Fe(Js[h5])||xo(Js,h5,function(){return this});var g5={IteratorPrototype:Js,BUGGY_SAFARI_ITERATORS:Fz},s1t=Qi.f,kz=yn("toStringTag"),y1=function(t,e,n){t&&!Pn(t=n?t:t.prototype,kz)&&s1t(t,kz,{configurable:!0,value:e})},l1t=g5.IteratorPrototype,c1t=function(){return this},f1t=ct.String,d1t=ct.TypeError,$c=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=qt(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch{}return function(r,o){return Hn(r),function(a){if(typeof a=="object"||Fe(a))return a;throw d1t("Can't set "+f1t(a)+" as a prototype")}(o),e?t(r,o):r.__proto__=o,r}}():void 0),p1t=Gh.PROPER,h1t=Gh.CONFIGURABLE,Nz=g5.IteratorPrototype,v5=g5.BUGGY_SAFARI_ITERATORS,Qh=yn("iterator"),g1t=function(){return this},Iz=function(t,e,n,r,o,a,i){(function(v,y,g,w){var E=y+" Iterator";v.prototype=t5(l1t,{next:n1(1,g)}),y1(v,E,!1),Qc[E]=c1t})(n,e,r);var u,s,l=function(v){if(v===o&&m)return m;if(!v5&&v in d)return d[v];switch(v){case"keys":case"values":case"entries":return function(){return new n(this,v)}}return function(){return new n(this)}},c=e+" Iterator",f=!1,d=t.prototype,p=d[Qh]||d["@@iterator"]||o&&d[o],m=!v5&&p||l(o),h=e=="Array"&&d.entries||p;return h&&(u=m1(h.call(new t)))!==Object.prototype&&u.next&&(m1(u)!==Nz&&($c?$c(u,Nz):Fe(u[Qh])||xo(u,Qh,g1t)),y1(u,c,!0)),p1t&&o=="values"&&p&&p.name!=="values"&&(h1t?bi(d,"name","values"):(f=!0,m=function(){return Se(p,this)})),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},i||wi({target:e,proto:!0,forced:v5||f},s)),d[Qh]!==m&&xo(d,Qh,m,{name:o}),Qc[e]=m,s},v1t=Jr.set,m1t=Jr.getterFor("Array Iterator"),$h=Iz(Array,"Array",function(t,e){v1t(this,{type:"Array Iterator",target:du(t),index:0,kind:e})},function(){var t=m1t(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values");Qc.Arguments=Qc.Array,d5("keys"),d5("values"),d5("entries");var y1t=Dz.charAt,b1t=Jr.set,w1t=Jr.getterFor("String Iterator");Iz(String,"String",function(t){b1t(this,{type:"String Iterator",string:gu(t),index:0})},function(){var t,e=w1t(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=y1t(n,r),e.index+=t.length,{value:t,done:!1})});var b1=function(t,e,n){for(var r in e)xo(t,r,e[r],n);return t},jz=l1.f,Rz=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],E1t={f:function(t){return Rz&&Uo(t)=="Window"?function(e){try{return jz(e)}catch{return u5(Rz)}}(t):jz(du(t))}},Lz=ze(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),w1=Object.isExtensible,Qs=ze(function(){w1(1)})||Lz?function(t){return!!He(t)&&(!Lz||Uo(t)!="ArrayBuffer")&&(!w1||w1(t))}:w1,S1t=!ze(function(){return Object.isExtensible(Object.preventExtensions({}))}),m5=O6(function(t){var e=Qi.f,n=!1,r=L6("meta"),o=0,a=function(u){e(u,r,{value:{objectID:"O"+o++,weakData:{}}})},i=t.exports={enable:function(){i.enable=function(){},n=!0;var u=l1.f,s=qt([].splice),l={};l[r]=1,u(l).length&&(l1.f=function(c){for(var f=u(c),d=0,p=f.length;d<p;d++)if(f[d]===r){s(f,d,1);break}return f},wi({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:E1t.f}))},fastKey:function(u,s){if(!He(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!Pn(u,r)){if(!Qs(u))return"F";if(!s)return"E";a(u)}return u[r].objectID},getWeakData:function(u,s){if(!Pn(u,r)){if(!Qs(u))return!0;if(!s)return!1;a(u)}return u[r].weakData},onFreeze:function(u){return S1t&&n&&Qs(u)&&!Pn(u,r)&&a(u),u}};u1[r]=!0}),Mz=qt(qt.bind),qh=function(t,e){return pu(t),e===void 0?t:Mz?Mz(t,e):function(){return t.apply(e,arguments)}},x1t=yn("iterator"),C1t=Array.prototype,D1t=yn("iterator"),Vz=function(t){if(t!=null)return zh(t,D1t)||zh(t,"@@iterator")||Qc[d1(t)]},O1t=ct.TypeError,zz=function(t,e,n){var r,o;Hn(t);try{if(!(r=zh(t,"return"))){if(e==="throw")throw n;return n}r=Se(r,t)}catch(a){o=!0,r=a}if(e==="throw")throw n;if(o)throw r;return Hn(r),n},A1t=ct.TypeError,E1=function(t,e){this.stopped=t,this.result=e},Hz=E1.prototype,S1=function(t,e,n){var r,o,a,i,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),m=!(!n||!n.INTERRUPTED),h=qh(e,f),v=function(g){return r&&zz(r,"normal",g),new E1(!0,g)},y=function(g){return d?(Hn(g),m?h(g[0],g[1],v):h(g[0],g[1])):m?h(g,v):h(g)};if(p)r=t;else{if(!(o=Vz(t)))throw A1t(r1(t)+" is not iterable");if((c=o)!==void 0&&(Qc.Array===c||C1t[x1t]===c)){for(a=0,i=Kh(t);i>a;a++)if((u=y(t[a]))&&Mh(Hz,u))return u;return new E1(!1)}r=function(g,w){var E=arguments.length<2?Vz(g):w;if(pu(E))return Hn(Se(E,g));throw O1t(r1(g)+" is not iterable")}(t,o)}for(s=r.next;!(l=Se(s,r)).done;){try{u=y(l.value)}catch(g){zz(r,"throw",g)}if(typeof u=="object"&&u&&Mh(Hz,u))return u}return new E1(!1)},T1t=ct.TypeError,y5=function(t,e){if(Mh(e,t))return t;throw T1t("Incorrect invocation")},Uz=yn("iterator"),_z=!1;try{var B1t=0,Gz={next:function(){return{done:!!B1t++}},return:function(){_z=!0}};Gz[Uz]=function(){return this},Array.from(Gz,function(){throw 2})}catch{}var Wz=function(t,e){if(!_z)return!1;var n=!1;try{var r={};r[Uz]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch{}return n},P1t=yn("species"),Kz=ct.Array,F1t=function(t,e){return new(function(n){var r;return f1(n)&&(r=n.constructor,(Y6(r)&&(r===Kz||f1(r.prototype))||He(r)&&(r=r[P1t])===null)&&(r=void 0)),r===void 0?Kz:r}(t))(e===0?0:e)},Yz=qt([].push),b5=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,a=t==6,i=t==7,u=t==5||a;return function(s,l,c,f){for(var d,p,m=R6(s),h=P6(m),v=qh(l,c),y=Kh(h),g=0,w=f||F1t,E=e?w(s,y):n||i?w(s,0):void 0;y>g;g++)if((u||g in h)&&(p=v(d=h[g],g,m),t))if(e)E[g]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return g;case 2:Yz(E,d)}else switch(t){case 4:return!1;case 7:Yz(E,d)}return a?-1:r||o?o:E}},w5={forEach:b5(0),find:b5(5),findIndex:b5(6)},x1=m5.getWeakData,k1t=Jr.set,N1t=Jr.getterFor,I1t=w5.find,j1t=w5.findIndex,R1t=qt([].splice),L1t=0,C1=function(t){return t.frozen||(t.frozen=new Xz)},Xz=function(){this.entries=[]},E5=function(t,e){return I1t(t.entries,function(n){return n[0]===e})};Xz.prototype={get:function(t){var e=E5(this,t);if(e)return e[1]},has:function(t){return!!E5(this,t)},set:function(t,e){var n=E5(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=j1t(this.entries,function(n){return n[0]===t});return~e&&R1t(this.entries,e,1),!!~e}};var tg,Zz={getConstructor:function(t,e,n,r){var o=t(function(s,l){y5(s,a),k1t(s,{type:e,id:L1t++,frozen:void 0}),l!=null&&S1(l,s[r],{that:s,AS_ENTRIES:n})}),a=o.prototype,i=N1t(e),u=function(s,l,c){var f=i(s),d=x1(Hn(l),!0);return d===!0?C1(f).set(l,c):d[f.id]=c,s};return b1(a,{delete:function(s){var l=i(this);if(!He(s))return!1;var c=x1(s);return c===!0?C1(l).delete(s):c&&Pn(c,l.id)&&delete c[l.id]},has:function(s){var l=i(this);if(!He(s))return!1;var c=x1(s);return c===!0?C1(l).has(s):c&&Pn(c,l.id)}}),b1(a,n?{get:function(s){var l=i(this);if(He(s)){var c=x1(s);return c===!0?C1(l).get(s):c?c[l.id]:void 0}},set:function(s,l){return u(this,s,l)}}:{add:function(s){return u(this,s,!0)}}),o}},D1=Jr.enforce,M1t=!ct.ActiveXObject&&"ActiveXObject"in ct,Jz=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},V1t=function(t,e,n){var r=t.indexOf("Map")!==-1,o=t.indexOf("Weak")!==-1,a=r?"set":"add",i=ct[t],u=i&&i.prototype,s=i,l={},c=function(v){var y=qt(u[v]);xo(u,v,v=="add"?function(g){return y(this,g===0?0:g),this}:v=="delete"?function(g){return!(o&&!He(g))&&y(this,g===0?0:g)}:v=="get"?function(g){return o&&!He(g)?void 0:y(this,g===0?0:g)}:v=="has"?function(g){return!(o&&!He(g))&&y(this,g===0?0:g)}:function(g,w){return y(this,g===0?0:g,w),this})};if(c1(t,!Fe(i)||!(o||u.forEach&&!ze(function(){new i().entries().next()}))))s=n.getConstructor(e,t,r,a),m5.enable();else if(c1(t,!0)){var f=new s,d=f[a](o?{}:-0,1)!=f,p=ze(function(){f.has(1)}),m=Wz(function(v){new i(v)}),h=!o&&ze(function(){for(var v=new i,y=5;y--;)v[a](y,y);return!v.has(-0)});m||((s=e(function(v,y){y5(v,u);var g=function(w,E,x){var S,C;return $c&&Fe(S=E.constructor)&&S!==x&&He(C=S.prototype)&&C!==x.prototype&&$c(w,C),w}(new i,v,s);return y!=null&&S1(y,g[a],{that:g,AS_ENTRIES:r}),g})).prototype=u,u.constructor=s),(p||h)&&(c("delete"),c("has"),r&&c("get")),(h||d)&&c(a),o&&u.clear&&delete u.clear}return l[t]=s,wi({global:!0,forced:s!=i},l),y1(s,t),o||n.setStrong(s,t,r),s}("WeakMap",Jz,Zz);if(ez&&M1t){tg=Zz.getConstructor(Jz,"WeakMap",!0),m5.enable();var eg=V1t.prototype,Qz=qt(eg.delete),O1=qt(eg.has),$z=qt(eg.get),qz=qt(eg.set);b1(eg,{delete:function(t){if(He(t)&&!Qs(t)){var e=D1(this);return e.frozen||(e.frozen=new tg),Qz(this,t)||e.frozen.delete(t)}return Qz(this,t)},has:function(t){if(He(t)&&!Qs(t)){var e=D1(this);return e.frozen||(e.frozen=new tg),O1(this,t)||e.frozen.has(t)}return O1(this,t)},get:function(t){if(He(t)&&!Qs(t)){var e=D1(this);return e.frozen||(e.frozen=new tg),O1(this,t)?$z(this,t):e.frozen.get(t)}return $z(this,t)},set:function(t,e){if(He(t)&&!Qs(t)){var n=D1(this);n.frozen||(n.frozen=new tg),O1(this,t)?qz(this,t,e):n.frozen.set(t,e)}else qz(this,t,e);return this}})}var A1={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},S5=Uh("span").classList,tH=S5&&S5.constructor&&S5.constructor.prototype,eH=tH===Object.prototype?void 0:tH,x5=yn("iterator"),nH=yn("toStringTag"),C5=$h.values,rH=function(t,e){if(t){if(t[x5]!==C5)try{bi(t,x5,C5)}catch{t[x5]=C5}if(t[nH]||bi(t,nH,e),A1[e]){for(var n in $h)if(t[n]!==$h[n])try{bi(t,n,$h[n])}catch{t[n]=$h[n]}}}};for(var D5 in A1)rH(ct[D5]&&ct[D5].prototype,D5);rH(eH,"DOMTokenList");var oH=function(t,e){var n=[][t];return!!n&&ze(function(){n.call(null,e||function(){throw 1},1)})},z1t=w5.forEach,O5=oH("forEach")?[].forEach:function(t){return z1t(this,t,arguments.length>1?arguments[1]:void 0)},iH=function(t){if(t&&t.forEach!==O5)try{bi(t,"forEach",O5)}catch{t.forEach=O5}};for(var A5 in A1)A1[A5]&&iH(ct[A5]&&ct[A5].prototype);iH(eH);var ng,qc,aH,T5,T1=ct.Promise,uH=yn("species"),sH=/(?:ipad|iphone|ipod).*applewebkit/i.test(Yc),vu=Uo(ct.process)=="process",B5=ct.setImmediate,lH=ct.clearImmediate,H1t=ct.process,P5=ct.Dispatch,U1t=ct.Function,cH=ct.MessageChannel,_1t=ct.String,F5=0,rg={};try{ng=ct.location}catch{}var k5=function(t){if(Pn(rg,t)){var e=rg[t];delete rg[t],e()}},N5=function(t){return function(){k5(t)}},fH=function(t){k5(t.data)},dH=function(t){ct.postMessage(_1t(t),ng.protocol+"//"+ng.host)};B5&&lH||(B5=function(t){var e=dz(arguments,1);return rg[++F5]=function(){Sz(Fe(t)?t:U1t(t),void 0,e)},qc(F5),F5},lH=function(t){delete rg[t]},vu?qc=function(t){H1t.nextTick(N5(t))}:P5&&P5.now?qc=function(t){P5.now(N5(t))}:cH&&!sH?(T5=(aH=new cH).port2,aH.port1.onmessage=fH,qc=qh(T5.postMessage,T5)):ct.addEventListener&&Fe(ct.postMessage)&&!ct.importScripts&&ng&&ng.protocol!=="file:"&&!ze(dH)?(qc=dH,ct.addEventListener("message",fH,!1)):qc="onreadystatechange"in Uh("script")?function(t){Q6.appendChild(Uh("script")).onreadystatechange=function(){Q6.removeChild(this),k5(t)}}:function(t){setTimeout(N5(t),0)});var og,$s,ig,tf,I5,j5,R5,pH,hH={set:B5},G1t=/ipad|iphone|ipod/i.test(Yc)&&ct.Pebble!==void 0,W1t=/web0s(?!.*chrome)/i.test(Yc),K1t=z6.f,L5=hH.set,gH=ct.MutationObserver||ct.WebKitMutationObserver,vH=ct.document,mH=ct.process,B1=ct.Promise,yH=K1t(ct,"queueMicrotask"),bH=yH&&yH.value;bH||(og=function(){var t,e;for(vu&&(t=mH.domain)&&t.exit();$s;){e=$s.fn,$s=$s.next;try{e()}catch(n){throw $s?tf():ig=void 0,n}}ig=void 0,t&&t.enter()},sH||vu||W1t||!gH||!vH?!G1t&&B1&&B1.resolve?((R5=B1.resolve(void 0)).constructor=B1,pH=qh(R5.then,R5),tf=function(){pH(og)}):vu?tf=function(){mH.nextTick(og)}:(L5=qh(L5,ct),tf=function(){L5(og)}):(I5=!0,j5=vH.createTextNode(""),new gH(og).observe(j5,{characterData:!0}),tf=function(){j5.data=I5=!I5}));var M5,wH,EH,SH,xH=bH||function(t){var e={fn:t,next:void 0};ig&&(ig.next=e),$s||($s=e,tf()),ig=e},Y1t=function(t){var e,n;this.promise=new t(function(r,o){if(e!==void 0||n!==void 0)throw TypeError("Bad Promise constructor");e=r,n=o}),this.resolve=pu(e),this.reject=pu(n)},V5={f:function(t){return new Y1t(t)}},z5=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}},X1t=typeof window=="object",CH=hH.set,Z1t=yn("species"),$i="Promise",DH=Jr.getterFor($i),J1t=Jr.set,Q1t=Jr.getterFor($i),qs=T1&&T1.prototype,Ei=T1,ag=qs,OH=ct.TypeError,H5=ct.document,U5=ct.process,ef=V5.f,$1t=ef,q1t=!!(H5&&H5.createEvent&&ct.dispatchEvent),AH=Fe(ct.PromiseRejectionEvent),TH=!1,ug=c1($i,function(){var t=a1(Ei),e=t!==String(Ei);if(!e&&Vh===66)return!0;if(Vh>=51&&/native code/.test(t))return!1;var n=new Ei(function(o){o(1)}),r=function(o){o(function(){},function(){})};return(n.constructor={})[Z1t]=r,!(TH=n.then(function(){})instanceof r)||!e&&X1t&&!AH}),tbt=ug||!Wz(function(t){Ei.all(t).catch(function(){})}),BH=function(t){var e;return!(!He(t)||!Fe(e=t.then))&&e},_5=function(t,e){if(!t.notified){t.notified=!0;var n=t.reactions;xH(function(){for(var r=t.value,o=t.state==1,a=0;n.length>a;){var i,u,s,l=n[a++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(t.rejection===2&&nbt(t),t.rejection=1),c===!0?i=r:(p&&p.enter(),i=c(r),p&&(p.exit(),s=!0)),i===l.promise?d(OH("Promise-chain cycle")):(u=BH(i))?Se(u,i,f,d):f(i)):d(r)}catch(m){p&&!s&&p.exit(),d(m)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&ebt(t)})}},PH=function(t,e,n){var r,o;q1t?((r=H5.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),ct.dispatchEvent(r)):r={promise:e,reason:n},!AH&&(o=ct["on"+t])?o(r):t==="unhandledrejection"&&function(a,i){var u=ct.console;u&&u.error&&(arguments.length==1?u.error(a):u.error(a,i))}("Unhandled promise rejection",n)},ebt=function(t){Se(CH,ct,function(){var e,n=t.facade,r=t.value;if(FH(t)&&(e=z5(function(){vu?U5.emit("unhandledRejection",r,n):PH("unhandledrejection",n,r)}),t.rejection=vu||FH(t)?2:1,e.error))throw e.value})},FH=function(t){return t.rejection!==1&&!t.parent},nbt=function(t){Se(CH,ct,function(){var e=t.facade;vu?U5.emit("rejectionHandled",e):PH("rejectionhandled",e,t.value)})},nf=function(t,e,n){return function(r){t(e,r,n)}},rf=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,_5(t,!0))},G5=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw OH("Promise can't be resolved itself");var r=BH(e);r?xH(function(){var o={done:!1};try{Se(r,e,nf(G5,o,t),nf(rf,o,t))}catch(a){rf(o,a,t)}}):(t.value=e,t.state=1,_5(t,!1))}catch(o){rf({done:!1},o,t)}}};if(ug&&(ag=(Ei=function(t){y5(this,ag),pu(t),Se(M5,this);var e=DH(this);try{t(nf(G5,e),nf(rf,e))}catch(n){rf(e,n)}}).prototype,(M5=function(t){J1t(this,{type:$i,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=b1(ag,{then:function(t,e){var n=Q1t(this),r=n.reactions,o=ef(xz(this,Ei));return o.ok=!Fe(t)||t,o.fail=Fe(e)&&e,o.domain=vu?U5.domain:void 0,n.parent=!0,r[r.length]=o,n.state!=0&&_5(n,!1),o.promise},catch:function(t){return this.then(void 0,t)}}),wH=function(){var t=new M5,e=DH(t);this.promise=t,this.resolve=nf(G5,e),this.reject=nf(rf,e)},V5.f=ef=function(t){return t===Ei||t===EH?new wH(t):$1t(t)},Fe(T1)&&qs!==Object.prototype)){SH=qs.then,TH||(xo(qs,"then",function(t,e){var n=this;return new Ei(function(r,o){Se(SH,n,r,o)}).then(t,e)},{unsafe:!0}),xo(qs,"catch",ag.catch,{unsafe:!0}));try{delete qs.constructor}catch{}$c&&$c(qs,ag)}wi({global:!0,wrap:!0,forced:ug},{Promise:Ei}),y1(Ei,$i,!1),function(t){var e=Ys("Promise"),n=Qi.f;yi&&e&&!e[uH]&&n(e,uH,{configurable:!0,get:function(){return this}})}(),EH=Ys($i),wi({target:$i,stat:!0,forced:ug},{reject:function(t){var e=ef(this);return Se(e.reject,void 0,t),e.promise}}),wi({target:$i,stat:!0,forced:ug},{resolve:function(t){return function(e,n){if(Hn(e),He(n)&&n.constructor===e)return n;var r=V5.f(e);return(0,r.resolve)(n),r.promise}(this,t)}}),wi({target:$i,stat:!0,forced:tbt},{all:function(t){var e=this,n=ef(e),r=n.resolve,o=n.reject,a=z5(function(){var i=pu(e.resolve),u=[],s=0,l=1;S1(t,function(c){var f=s++,d=!1;l++,Se(i,e,c).then(function(p){d||(d=!0,u[f]=p,--l||r(u))},o)}),--l||r(u)});return a.error&&o(a.value),n.promise},race:function(t){var e=this,n=ef(e),r=n.reject,o=z5(function(){var a=pu(e.resolve);S1(t,function(i){Se(a,e,i).then(n.resolve,r)})});return o.error&&r(o.value),n.promise}});var rbt=Gh.PROPER,W5=RegExp.prototype,kH=W5.toString,obt=qt(pz),ibt=ze(function(){return kH.call({source:"a",flags:"b"})!="/a/b"}),abt=rbt&&kH.name!="toString";(ibt||abt)&&xo(RegExp.prototype,"toString",function(){var t=Hn(this),e=gu(t.source),n=t.flags;return"/"+e+"/"+gu(n===void 0&&Mh(W5,t)&&!("flags"in W5)?obt(t):n)},{unsafe:!0});var ubt=Gh.EXISTS,sbt=Qi.f,NH=Function.prototype,lbt=qt(NH.toString),IH=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,cbt=qt(IH.exec);yi&&!ubt&&sbt(NH,"name",{configurable:!0,get:function(){try{return cbt(IH,lbt(this))[1]}catch{return""}}});var jH=new WeakMap;function RH(t){return t.getMenuConfig("uploadImage")}function fbt(t,e){return s5(this,void 0,void 0,function(){return l5(this,function(n){return[2,new Promise(function(r){var o=new FileReader;o.readAsDataURL(e),o.onload=function(){var a=o.result;if(a){var i=a.toString(),u=i.indexOf("data:image")===0?"":i;Ss(t,i,e.name,u),r("ok")}}})]})})}function dbt(t,e){return s5(this,void 0,void 0,function(){var n,r,o,a;return l5(this,function(i){switch(i.label){case 0:return n=function(u){var s=jH.get(u);if(s!=null)return s;var l=RH(u),c=l.onSuccess,f=l.onProgress,d=l.onFailed,p=l.customInsert,m=l.onError;return s=VF(v1(v1({},l),{onProgress:function(h){u.showProgressBar(h),f&&f(h)},onSuccess:function(h,v){if(p)return p(v,function(k,M,H){return Ss(u,k,M,H)}),void c(h,v);var y=v.errno,g=y===void 0?1:y,w=v.data,E=w===void 0?{}:w;if(g===0){if(Array.isArray(E))E.forEach(function(k){var M=k.url,H=M===void 0?"":M,N=k.alt,j=N===void 0?"":N,G=k.href;Ss(u,H,j,G===void 0?"":G)});else{var x=E.url,S=x===void 0?"":x,C=E.alt,T=C===void 0?"":C,A=E.href;Ss(u,S,T,A===void 0?"":A)}c(h,v)}else d(h,v)},onError:function(h,v,y){m(h,v,y)}})),jH.set(u,s),s}(t),r=e.name,o=e.type,a=e.size,n.addFile({name:r,type:o,size:a,data:e}),[4,n.upload()];case 1:return i.sent(),[2]}})})}function LH(t,e){var n,r;return s5(this,void 0,void 0,function(){var o,a,i,u,s,l,c,f,d;return l5(this,function(p){switch(p.label){case 0:if(e==null)return[2];o=Array.prototype.slice.call(e),a=RH(t),i=a.customUpload,u=a.base64LimitSize,p.label=1;case 1:p.trys.push([1,11,12,17]),s=o1t(o),p.label=2;case 2:return[4,s.next()];case 3:return(l=p.sent()).done?[3,10]:(c=l.value,f=c.size,u&&f<=u?[4,fbt(t,c)]:[3,5]);case 4:return p.sent(),[3,9];case 5:return i?[4,i(c,function(m,h,v){return Ss(t,m,h,v)})]:[3,7];case 6:return p.sent(),[3,9];case 7:return[4,dbt(t,c)];case 8:p.sent(),p.label=9;case 9:return[3,2];case 10:return[3,17];case 11:return d=p.sent(),n={error:d},[3,17];case 12:return p.trys.push([12,,15,16]),l&&!l.done&&(r=s.return)?[4,r.call(s)]:[3,14];case 13:p.sent(),p.label=14;case 14:return[3,16];case 15:if(n)throw n.error;return[7];case 16:return[7];case 17:return[2]}})})}var pbt=qt([].join),hbt=P6!=Object,gbt=oH("join",",");wi({target:"Array",proto:!0,forced:hbt||!gbt},{join:function(t){return pbt(du(this),t===void 0?",":t)}}),ao&&(F.fn.append=ao),ti&&(F.fn.on=ti),Il&&(F.fn.remove=Il),qo&&(F.fn.val=qo),x9&&(F.fn.click=x9),Pl&&(F.fn.hide=Pl);var vbt=function(){function t(){this.title=lt("uploadImgModule.uploadImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M828.708571 585.045333a48.761905 48.761905 0 0 0-48.737523 48.761905v18.529524l-72.143238-72.167619a135.972571 135.972571 0 0 0-191.585524 0l-34.133334 34.133333-120.880762-120.953905a138.898286 138.898286 0 0 0-191.585523 0l-72.167619 72.167619V292.400762a48.786286 48.786286 0 0 1 48.761904-48.761905h341.23581a48.737524 48.737524 0 0 0 34.474667-83.285333 48.737524 48.737524 0 0 0-34.474667-14.287238H146.236952A146.212571 146.212571 0 0 0 0 292.400762v585.289143A146.358857 146.358857 0 0 0 146.236952 1024h584.996572a146.212571 146.212571 0 0 0 146.236952-146.310095V633.807238a48.786286 48.786286 0 0 0-48.761905-48.761905zM146.261333 926.45181a48.737524 48.737524 0 0 1-48.761904-48.761905v-174.128762l141.409523-141.458286a38.497524 38.497524 0 0 1 53.126096 0l154.526476 154.624 209.627428 209.724953H146.236952z m633.734096-48.761905c-0.073143 9.337905-3.145143 18.383238-8.777143 25.843809l-219.843048-220.94019 34.133333-34.133334a37.546667 37.546667 0 0 1 53.613715 0l140.873143 141.897143V877.714286zM1009.615238 160.231619L863.329524 13.897143a48.737524 48.737524 0 0 0-16.091429-10.24c-11.849143-4.87619-25.161143-4.87619-37.059047 0a48.761905 48.761905 0 0 0-16.067048 10.24l-146.236952 146.334476a49.005714 49.005714 0 0 0 69.217523 69.241905l62.902858-63.390476v272.627809a48.761905 48.761905 0 1 0 97.475047 0V166.083048l62.902857 63.390476a48.737524 48.737524 0 0 0 69.217524 0 48.761905 48.761905 0 0 0 0-69.241905z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return p0(e)},t.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadImage")},t.prototype.exec=function(e,n){var r=this.getMenuConfig(e),o=r.allowedFileTypes,a=o===void 0?[]:o,i=r.customBrowseAndUpload;if(i)i(function(c,f,d){return Ss(e,c,f,d)});else{var u="";a.length>0&&(u='accept="'+a.join(", ")+'"');var s=F("body"),l=F('<input type="file" '+u+" multiple/>");l.hide(),s.append(l),l.click(),l.on("change",function(){var c=l[0].files;LH(e,c)})}},t}(),mbt={menus:[{key:"uploadImage",factory:function(){return new vbt},config:{server:"",fieldName:"wangeditor-uploaded-image",maxFileSize:2097152,maxNumberOfFiles:100,allowedFileTypes:["image/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:1e4,onBeforeUpload:function(t){return t},onProgress:function(t){},onSuccess:function(t,e){},onFailed:function(t,e){console.error("'"+t.name+"' upload failed",e)},onError:function(t,e,n){console.error("'"+t.name+"' upload error",n)},base64LimitSize:0}}],editorPlugin:function(t){var e=t.insertData,n=t;return n.insertData=function(r){if(p0(n))e(r);else if(r.getData("text/plain"))e(r);else{var o=r.files;o.length<=0?e(r):Array.prototype.slice.call(o).some(function(a){return function(i,u){var s=typeof Symbol=="function"&&i[Symbol.iterator];if(!s)return i;var l,c,f=s.call(i),d=[];try{for(;(u===void 0||u-- >0)&&!(l=f.next()).done;)d.push(l.value)}catch(p){c={error:p}}finally{try{l&&!l.done&&(s=f.return)&&s.call(f)}finally{if(c)throw c.error}}return d}(a.type.split("/"),1)[0]==="image"})?LH(t,o):e(r)}},n}};Or("en",{highLightModule:{selectLang:"Language"}}),Or("zh-CN",{highLightModule:{selectLang:"选择语言"}});var P1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function K5(t){var e={exports:{}};return t(e,e.exports),e.exports}var mu,F1,k1=function(t){return t&&t.Math==Math&&t},ee=k1(typeof globalThis=="object"&&globalThis)||k1(typeof window=="object"&&window)||k1(typeof self=="object"&&self)||k1(typeof P1=="object"&&P1)||function(){return this}()||Function("return this")(),ybt=Object.defineProperty,Y5=function(t,e){try{ybt(ee,t,{value:e,configurable:!0,writable:!0})}catch{ee[t]=e}return e},yu=ee["__core-js_shared__"]||Y5("__core-js_shared__",{}),X5=K5(function(t){(t.exports=function(e,n){return yu[e]||(yu[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),MH=Function.prototype,Z5=MH.bind,J5=MH.call,bbt=Z5&&Z5.bind(J5),Ee=Z5?function(t){return t&&bbt(J5,t)}:function(t){return t&&function(){return J5.apply(t,arguments)}},wbt=ee.TypeError,of=function(t){if(t==null)throw wbt("Can't call method on "+t);return t},Ebt=ee.Object,Q5=function(t){return Ebt(of(t))},Sbt=Ee({}.hasOwnProperty),Co=Object.hasOwn||function(t,e){return Sbt(Q5(t),e)},xbt=0,Cbt=Math.random(),Dbt=Ee(1 .toString),VH=function(t){return"Symbol("+(t===void 0?"":t)+")_"+Dbt(++xbt+Cbt,36)},vr=function(t){return typeof t=="function"},Obt=function(t){return vr(t)?t:void 0},sg=function(t,e){return arguments.length<2?Obt(ee[t]):ee[t]&&ee[t][e]},$5=sg("navigator","userAgent")||"",zH=ee.process,HH=ee.Deno,UH=zH&&zH.versions||HH&&HH.version,_H=UH&&UH.v8;_H&&(F1=(mu=_H.split("."))[0]>0&&mu[0]<4?1:+(mu[0]+mu[1])),!F1&&$5&&(!(mu=$5.match(/Edge\/(\d+)/))||mu[1]>=74)&&(mu=$5.match(/Chrome\/(\d+)/))&&(F1=+mu[1]);var GH=F1,Un=function(t){try{return!!t()}catch{return!0}},q5=!!Object.getOwnPropertySymbols&&!Un(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&GH&&GH<41}),t8=q5&&!Symbol.sham&&typeof Symbol.iterator=="symbol",lg=X5("wks"),tl=ee.Symbol,WH=tl&&tl.for,Abt=t8?tl:tl&&tl.withoutSetter||VH,bu=function(t){if(!Co(lg,t)||!q5&&typeof lg[t]!="string"){var e="Symbol."+t;q5&&Co(tl,t)?lg[t]=tl[t]:lg[t]=t8&&WH?WH(e):Abt(e)}return lg[t]},KH={};KH[bu("toStringTag")]="z";var e8=String(KH)==="[object z]",Si=!Un(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),qi=function(t){return typeof t=="object"?t!==null:vr(t)},n8=ee.document,Tbt=qi(n8)&&qi(n8.createElement),r8=function(t){return Tbt?n8.createElement(t):{}},YH=!Si&&!Un(function(){return Object.defineProperty(r8("div"),"a",{get:function(){return 7}}).a!=7}),Bbt=ee.String,Pbt=ee.TypeError,_o=function(t){if(qi(t))return t;throw Pbt(Bbt(t)+" is not an object")},cg=Function.prototype.call,_n=cg.bind?cg.bind(cg):function(){return cg.apply(cg,arguments)},XH=Ee({}.isPrototypeOf),Fbt=ee.Object,o8=t8?function(t){return typeof t=="symbol"}:function(t){var e=sg("Symbol");return vr(e)&&XH(e.prototype,Fbt(t))},kbt=ee.String,ZH=function(t){try{return kbt(t)}catch{return"Object"}},Nbt=ee.TypeError,JH=function(t){if(vr(t))return t;throw Nbt(ZH(t)+" is not a function")},QH=function(t,e){var n=t[e];return n==null?void 0:JH(n)},Ibt=ee.TypeError,jbt=ee.TypeError,Rbt=bu("toPrimitive"),i8=function(t){var e=function(n,r){if(!qi(n)||o8(n))return n;var o,a=QH(n,Rbt);if(a){if(o=_n(a,n,r),!qi(o)||o8(o))return o;throw jbt("Can't convert object to primitive value")}return function(i,u){var s,l;if(vr(s=i.toString)&&!qi(l=_n(s,i))||vr(s=i.valueOf)&&!qi(l=_n(s,i)))return l;throw Ibt("Can't convert object to primitive value")}(n)}(t,"string");return o8(e)?e:e+""},Lbt=ee.TypeError,$H=Object.defineProperty,N1={f:Si?$H:function(t,e,n){if(_o(t),e=i8(e),_o(n),YH)try{return $H(t,e,n)}catch{}if("get"in n||"set"in n)throw Lbt("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},a8=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},af=Si?function(t,e,n){return N1.f(t,e,a8(1,n))}:function(t,e,n){return t[e]=n,t},Mbt=Ee(Function.toString);vr(yu.inspectSource)||(yu.inspectSource=function(t){return Mbt(t)});var u8,I1,s8,l8=yu.inspectSource,qH=ee.WeakMap,Vbt=vr(qH)&&/native code/.test(l8(qH)),tU=X5("keys"),eU=function(t){return tU[t]||(tU[t]=VH(t))},c8={},nU=ee.TypeError,zbt=ee.WeakMap;if(Vbt||yu.state){var el=yu.state||(yu.state=new zbt),Hbt=Ee(el.get),rU=Ee(el.has),Ubt=Ee(el.set);u8=function(t,e){if(rU(el,t))throw new nU("Object already initialized");return e.facade=t,Ubt(el,t,e),e},I1=function(t){return Hbt(el,t)||{}},s8=function(t){return rU(el,t)}}else{var uf=eU("state");c8[uf]=!0,u8=function(t,e){if(Co(t,uf))throw new nU("Object already initialized");return e.facade=t,af(t,uf,e),e},I1=function(t){return Co(t,uf)?t[uf]:{}},s8=function(t){return Co(t,uf)}}var f8={get:I1,enforce:function(t){return s8(t)?I1(t):u8(t,{})}},oU=Function.prototype,_bt=Si&&Object.getOwnPropertyDescriptor,iU=Co(oU,"name"),aU={PROPER:iU&&(function(){}).name==="something",CONFIGURABLE:iU&&(!Si||Si&&_bt(oU,"name").configurable)},fg=K5(function(t){var e=aU.CONFIGURABLE,n=f8.get,r=f8.enforce,o=String(String).split("String");(t.exports=function(a,i,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:i;vr(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Co(u,"name")||e&&u.name!==p)&&af(u,"name",p),(l=r(u)).source||(l.source=o.join(typeof p=="string"?p:""))),a!==ee?(c?!d&&a[i]&&(f=!0):delete a[i],f?a[i]=u:af(a,i,u)):f?a[i]=u:Y5(i,u)})(Function.prototype,"toString",function(){return vr(this)&&n(this).source||l8(this)})}),Gbt=Ee({}.toString),Wbt=Ee("".slice),wu=function(t){return Wbt(Gbt(t),8,-1)},Kbt=bu("toStringTag"),Ybt=ee.Object,Xbt=wu(function(){return arguments}())=="Arguments",d8=e8?wu:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,a){try{return o[a]}catch{}}(e=Ybt(t),Kbt))=="string"?n:Xbt?wu(e):(r=wu(e))=="Object"&&vr(e.callee)?"Arguments":r},Zbt=e8?{}.toString:function(){return"[object "+d8(this)+"]"};e8||fg(Object.prototype,"toString",Zbt,{unsafe:!0});var uU,sU={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},p8=r8("span").classList,lU=p8&&p8.constructor&&p8.constructor.prototype,Jbt=lU===Object.prototype?void 0:lU,cU=Ee(Ee.bind),h8=ee.Object,Qbt=Ee("".split),g8=Un(function(){return!h8("z").propertyIsEnumerable(0)})?function(t){return wu(t)=="String"?Qbt(t,""):h8(t)}:h8,$bt=Math.ceil,qbt=Math.floor,v8=function(t){var e=+t;return e!=e||e===0?0:(e>0?qbt:$bt)(e)},t2t=Math.min,fU=function(t){return t>0?t2t(v8(t),9007199254740991):0},m8=function(t){return fU(t.length)},dU=Array.isArray||function(t){return wu(t)=="Array"},pU=function(){},e2t=[],hU=sg("Reflect","construct"),y8=/^\s*(?:class|function)\b/,n2t=Ee(y8.exec),r2t=!y8.exec(pU),dg=function(t){if(!vr(t))return!1;try{return hU(pU,e2t,t),!0}catch{return!1}},gU=!hU||Un(function(){var t;return dg(dg.call)||!dg(Object)||!dg(function(){t=!0})||t})?function(t){if(!vr(t))return!1;switch(d8(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return r2t||!!n2t(y8,l8(t))}:dg,o2t=bu("species"),vU=ee.Array,i2t=function(t,e){return new(function(n){var r;return dU(n)&&(r=n.constructor,(gU(r)&&(r===vU||dU(r.prototype))||qi(r)&&(r=r[o2t])===null)&&(r=void 0)),r===void 0?vU:r}(t))(e===0?0:e)},mU=Ee([].push),Eu=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,a=t==6,i=t==7,u=t==5||a;return function(s,l,c,f){for(var d,p,m=Q5(s),h=g8(m),v=function(x,S){return JH(x),S===void 0?x:cU?cU(x,S):function(){return x.apply(S,arguments)}}(l,c),y=m8(h),g=0,w=f||i2t,E=e?w(s,y):n||i?w(s,0):void 0;y>g;g++)if((u||g in h)&&(p=v(d=h[g],g,m),t))if(e)E[g]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return g;case 2:mU(E,d)}else switch(t){case 4:return!1;case 7:mU(E,d)}return a?-1:r||o?o:E}},a2t=[Eu(0),Eu(1),Eu(2),Eu(3),Eu(4),Eu(5),Eu(6),Eu(7)][0],b8=(uU=[].forEach)&&Un(function(){uU.call(null,function(){throw 1},1)})?[].forEach:function(t){return a2t(this,t,arguments.length>1?arguments[1]:void 0)},yU=function(t){if(t&&t.forEach!==b8)try{af(t,"forEach",b8)}catch{t.forEach=b8}};for(var w8 in sU)sU[w8]&&yU(ee[w8]&&ee[w8].prototype);yU(Jbt);var bU={}.propertyIsEnumerable,wU=Object.getOwnPropertyDescriptor,EU={f:wU&&!bU.call({1:2},1)?function(t){var e=wU(this,t);return!!e&&e.enumerable}:bU},j1=function(t){return g8(of(t))},SU=Object.getOwnPropertyDescriptor,xU={f:Si?SU:function(t,e){if(t=j1(t),e=i8(e),YH)try{return SU(t,e)}catch{}if(Co(t,e))return a8(!_n(EU.f,t,e),t[e])}},u2t=Math.max,s2t=Math.min,E8=function(t,e){var n=v8(t);return n<0?u2t(n+e,0):s2t(n,e)},l2t=function(t){return function(e,n,r){var o,a=j1(e),i=m8(a),u=E8(r,i);if(t&&n!=n){for(;i>u;)if((o=a[u++])!=o)return!0}else for(;i>u;u++)if((t||u in a)&&a[u]===n)return t||u||0;return!t&&-1}},c2t=l2t(!1),CU=Ee([].push),DU=function(t,e){var n,r=j1(t),o=0,a=[];for(n in r)!Co(c8,n)&&Co(r,n)&&CU(a,n);for(;e.length>o;)Co(r,n=e[o++])&&(~c2t(a,n)||CU(a,n));return a},R1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],f2t=R1.concat("length","prototype"),d2t={f:Object.getOwnPropertyNames||function(t){return DU(t,f2t)}},OU={f:Object.getOwnPropertySymbols},p2t=Ee([].concat),h2t=sg("Reflect","ownKeys")||function(t){var e=d2t.f(_o(t)),n=OU.f;return n?p2t(e,n(t)):e},g2t=function(t,e){for(var n=h2t(e),r=N1.f,o=xU.f,a=0;a<n.length;a++){var i=n[a];Co(t,i)||r(t,i,o(e,i))}},v2t=/#|\.prototype\./,pg=function(t,e){var n=y2t[m2t(t)];return n==w2t||n!=b2t&&(vr(e)?Un(e):!!e)},m2t=pg.normalize=function(t){return String(t).replace(v2t,".").toLowerCase()},y2t=pg.data={},b2t=pg.NATIVE="N",w2t=pg.POLYFILL="P",E2t=pg,S2t=xU.f,L1=function(t,e){var n,r,o,a,i,u=t.target,s=t.global,l=t.stat;if(n=s?ee:l?ee[u]||Y5(u,{}):(ee[u]||{}).prototype)for(r in e){if(a=e[r],o=t.noTargetGet?(i=S2t(n,r))&&i.value:n[r],!E2t(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof a==typeof o)continue;g2t(a,o)}(t.sham||o&&o.sham)&&af(a,"sham",!0),fg(n,r,a,t)}},M1=Object.keys||function(t){return DU(t,R1)},sf=Object.assign,AU=Object.defineProperty,x2t=Ee([].concat),TU=!sf||Un(function(){if(Si&&sf({b:1},sf(AU({},"a",{enumerable:!0,get:function(){AU(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(o){e[o]=o}),sf({},t)[n]!=7||M1(sf({},e)).join("")!=r})?function(t,e){for(var n=Q5(t),r=arguments.length,o=1,a=OU.f,i=EU.f;r>o;)for(var u,s=g8(arguments[o++]),l=a?x2t(M1(s),a(s)):M1(s),c=l.length,f=0;c>f;)u=l[f++],Si&&!_n(i,s,u)||(n[u]=s[u]);return n}:sf;L1({target:"Object",stat:!0,forced:Object.assign!==TU},{assign:TU});var BU=K5(function(t){var e=function(n){var r=/\blang(?:uage)?-([\w-]+)\b/i,o=0,a={},i={manual:n.Prism&&n.Prism.manual,disableWorkerMessageHandler:n.Prism&&n.Prism.disableWorkerMessageHandler,util:{encode:function v(y){return y instanceof u?new u(y.type,v(y.content),y.alias):Array.isArray(y)?y.map(v):y.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(v){return Object.prototype.toString.call(v).slice(8,-1)},objId:function(v){return v.__id||Object.defineProperty(v,"__id",{value:++o}),v.__id},clone:function v(y,g){var w,E;switch(g=g||{},i.util.type(y)){case"Object":if(E=i.util.objId(y),g[E])return g[E];for(var x in w={},g[E]=w,y)y.hasOwnProperty(x)&&(w[x]=v(y[x],g));return w;case"Array":return E=i.util.objId(y),g[E]?g[E]:(w=[],g[E]=w,y.forEach(function(S,C){w[C]=v(S,g)}),w);default:return y}},getLanguage:function(v){for(;v&&!r.test(v.className);)v=v.parentElement;return v?(v.className.match(r)||[,"none"])[1].toLowerCase():"none"},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(w){var v=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(w.stack)||[])[1];if(v){var y=document.getElementsByTagName("script");for(var g in y)if(y[g].src==v)return y[g]}return null}},isActive:function(v,y,g){for(var w="no-"+y;v;){var E=v.classList;if(E.contains(y))return!0;if(E.contains(w))return!1;v=v.parentElement}return!!g}},languages:{plain:a,plaintext:a,text:a,txt:a,extend:function(v,y){var g=i.util.clone(i.languages[v]);for(var w in y)g[w]=y[w];return g},insertBefore:function(v,y,g,w){var E=(w=w||i.languages)[v],x={};for(var S in E)if(E.hasOwnProperty(S)){if(S==y)for(var C in g)g.hasOwnProperty(C)&&(x[C]=g[C]);g.hasOwnProperty(S)||(x[S]=E[S])}var T=w[v];return w[v]=x,i.languages.DFS(i.languages,function(A,k){k===T&&A!=v&&(this[A]=x)}),x},DFS:function v(y,g,w,E){E=E||{};var x=i.util.objId;for(var S in y)if(y.hasOwnProperty(S)){g.call(y,S,y[S],w||S);var C=y[S],T=i.util.type(C);T!=="Object"||E[x(C)]?T!=="Array"||E[x(C)]||(E[x(C)]=!0,v(C,g,S,E)):(E[x(C)]=!0,v(C,g,null,E))}}},plugins:{},highlightAll:function(v,y){i.highlightAllUnder(document,v,y)},highlightAllUnder:function(v,y,g){var w={callback:g,container:v,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};i.hooks.run("before-highlightall",w),w.elements=Array.prototype.slice.apply(w.container.querySelectorAll(w.selector)),i.hooks.run("before-all-elements-highlight",w);for(var E,x=0;E=w.elements[x++];)i.highlightElement(E,y===!0,w.callback)},highlightElement:function(v,y,g){var w=i.util.getLanguage(v),E=i.languages[w];v.className=v.className.replace(r,"").replace(/\s+/g," ")+" language-"+w;var x=v.parentElement;x&&x.nodeName.toLowerCase()==="pre"&&(x.className=x.className.replace(r,"").replace(/\s+/g," ")+" language-"+w);var S={element:v,language:w,grammar:E,code:v.textContent};function C(A){S.highlightedCode=A,i.hooks.run("before-insert",S),S.element.innerHTML=S.highlightedCode,i.hooks.run("after-highlight",S),i.hooks.run("complete",S),g&&g.call(S.element)}if(i.hooks.run("before-sanity-check",S),(x=S.element.parentElement)&&x.nodeName.toLowerCase()==="pre"&&!x.hasAttribute("tabindex")&&x.setAttribute("tabindex","0"),!S.code)return i.hooks.run("complete",S),void(g&&g.call(S.element));if(i.hooks.run("before-highlight",S),S.grammar)if(y&&n.Worker){var T=new Worker(i.filename);T.onmessage=function(A){C(A.data)},T.postMessage(JSON.stringify({language:S.language,code:S.code,immediateClose:!0}))}else C(i.highlight(S.code,S.grammar,S.language));else C(i.util.encode(S.code))},highlight:function(v,y,g){var w={code:v,grammar:y,language:g};return i.hooks.run("before-tokenize",w),w.tokens=i.tokenize(w.code,w.grammar),i.hooks.run("after-tokenize",w),u.stringify(i.util.encode(w.tokens),w.language)},tokenize:function(v,y){var g=y.rest;if(g){for(var w in g)y[w]=g[w];delete y.rest}var E=new c;return f(E,E.head,v),l(v,E,y,E.head,0),function(x){for(var S=[],C=x.head.next;C!==x.tail;)S.push(C.value),C=C.next;return S}(E)},hooks:{all:{},add:function(v,y){var g=i.hooks.all;g[v]=g[v]||[],g[v].push(y)},run:function(v,y){var g=i.hooks.all[v];if(g&&g.length)for(var w,E=0;w=g[E++];)w(y)}},Token:u};function u(v,y,g,w){this.type=v,this.content=y,this.alias=g,this.length=0|(w||"").length}function s(v,y,g,w){v.lastIndex=y;var E=v.exec(g);if(E&&w&&E[1]){var x=E[1].length;E.index+=x,E[0]=E[0].slice(x)}return E}function l(v,y,g,w,E,x){for(var S in g)if(g.hasOwnProperty(S)&&g[S]){var C=g[S];C=Array.isArray(C)?C:[C];for(var T=0;T<C.length;++T){if(x&&x.cause==S+","+T)return;var A=C[T],k=A.inside,M=!!A.lookbehind,H=!!A.greedy,N=A.alias;if(H&&!A.pattern.global){var j=A.pattern.toString().match(/[imsuy]*$/)[0];A.pattern=RegExp(A.pattern.source,j+"g")}for(var G=A.pattern||A,V=w.next,J=E;V!==y.tail&&!(x&&J>=x.reach);J+=V.value.length,V=V.next){var rt=V.value;if(y.length>v.length)return;if(!(rt instanceof u)){var it,W=1;if(H){if(!(it=s(G,J,v,M)))break;var O=it.index,B=it.index+it[0].length,I=J;for(I+=V.value.length;O>=I;)I+=(V=V.next).value.length;if(J=I-=V.value.length,V.value instanceof u)continue;for(var Y=V;Y!==y.tail&&(I<B||typeof Y.value=="string");Y=Y.next)W++,I+=Y.value.length;W--,rt=v.slice(J,I),it.index-=J}else if(!(it=s(G,0,rt,M)))continue;O=it.index;var et=it[0],X=rt.slice(0,O),ot=rt.slice(O+et.length),mt=J+rt.length;x&&mt>x.reach&&(x.reach=mt);var bt=V.prev;if(X&&(bt=f(y,bt,X),J+=X.length),d(y,bt,W),V=f(y,bt,new u(S,k?i.tokenize(et,k):et,N,et)),ot&&f(y,V,ot),W>1){var Pt={cause:S+","+T,reach:mt};l(v,y,g,V.prev,J,Pt),x&&Pt.reach>x.reach&&(x.reach=Pt.reach)}}}}}}function c(){var v={value:null,prev:null,next:null},y={value:null,prev:v,next:null};v.next=y,this.head=v,this.tail=y,this.length=0}function f(v,y,g){var w=y.next,E={value:g,prev:y,next:w};return y.next=E,w.prev=E,v.length++,E}function d(v,y,g){for(var w=y.next,E=0;E<g&&w!==v.tail;E++)w=w.next;y.next=w,w.prev=y,v.length-=E}if(n.Prism=i,u.stringify=function v(y,g){if(typeof y=="string")return y;if(Array.isArray(y)){var w="";return y.forEach(function(T){w+=v(T,g)}),w}var E={type:y.type,content:v(y.content,g),tag:"span",classes:["token",y.type],attributes:{},language:g},x=y.alias;x&&(Array.isArray(x)?Array.prototype.push.apply(E.classes,x):E.classes.push(x)),i.hooks.run("wrap",E);var S="";for(var C in E.attributes)S+=" "+C+'="'+(E.attributes[C]||"").replace(/"/g,"&quot;")+'"';return"<"+E.tag+' class="'+E.classes.join(" ")+'"'+S+">"+E.content+"</"+E.tag+">"},!n.document)return n.addEventListener&&(i.disableWorkerMessageHandler||n.addEventListener("message",function(v){var y=JSON.parse(v.data),g=y.language,w=y.code,E=y.immediateClose;n.postMessage(i.highlight(w,i.languages[g],g)),E&&n.close()},!1)),i;var p=i.util.currentScript();function m(){i.manual||i.highlightAll()}if(p&&(i.filename=p.src,p.hasAttribute("data-manual")&&(i.manual=!0)),!i.manual){var h=document.readyState;h==="loading"||h==="interactive"&&p&&p.defer?document.addEventListener("DOMContentLoaded",m):window.requestAnimationFrame?window.requestAnimationFrame(m):window.setTimeout(m,16)}return i}(typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{});/**
172
+ * Prism: Lightweight, robust, elegant syntax highlighting
173
+ *
174
+ * @license MIT <https://opensource.org/licenses/MIT>
175
+ * @author Lea Verou <https://lea.verou.me>
176
+ * @namespace
177
+ * @public
178
+ */t.exports&&(t.exports=e),P1!==void 0&&(P1.Prism=e),e.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(n){n.type==="entity"&&(n.attributes.title=n.content.replace(/&amp;/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(n,r){var o={};o["language-"+r]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:e.languages[r]},o.cdata=/^<!\[CDATA\[|\]\]>$/i;var a={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:o}};a["language-"+r]={pattern:/[\s\S]+/,inside:e.languages[r]};var i={};i[n]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:a},e.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(n,r){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+n+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[r,"language-"+r],inside:e.languages[r]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml,function(n){var r=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;n.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+r.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+r.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+r.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:r,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},n.languages.css.atrule.inside.rest=n.languages.css;var o=n.languages.markup;o&&(o.tag.addInlined("style","css"),o.tag.addAttribute("style","css"))}(e),e.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},e.languages.javascript=e.languages.extend("clike",{"class-name":[e.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript,function(){if(e!==void 0&&typeof document<"u"){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var n={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},r="data-src-status",o='pre[data-src]:not([data-src-status="loaded"]):not([data-src-status="loading"])',a=/\blang(?:uage)?-([\w-]+)\b/i;e.hooks.add("before-highlightall",function(s){s.selector+=", "+o}),e.hooks.add("before-sanity-check",function(s){var l=s.element;if(l.matches(o)){s.code="",l.setAttribute(r,"loading");var c=l.appendChild(document.createElement("CODE"));c.textContent="Loading…";var f=l.getAttribute("data-src"),d=s.language;if(d==="none"){var p=(/\.(\w+)$/.exec(f)||[,"none"])[1];d=n[p]||p}u(c,d),u(l,d);var m=e.plugins.autoloader;m&&m.loadLanguages(d);var h=new XMLHttpRequest;h.open("GET",f,!0),h.onreadystatechange=function(){h.readyState==4&&(h.status<400&&h.responseText?(l.setAttribute(r,"loaded"),c.textContent=h.responseText,e.highlightElement(c)):(l.setAttribute(r,"failed"),h.status>=400?c.textContent="✖ Error "+h.status+" while fetching file: "+h.statusText:c.textContent="✖ Error: File does not exist or is empty"))},h.send(null)}}),e.plugins.fileHighlight={highlight:function(s){for(var l,c=(s||document).querySelectorAll(o),f=0;l=c[f++];)e.highlightElement(l)}};var i=!1;e.fileHighlight=function(){i||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),i=!0),e.plugins.fileHighlight.highlight.apply(this,arguments)}}function u(s,l){var c=s.className;c=c.replace(a," ")+" language-"+l,s.className=c.replace(/\s+/g," ").trim()}}()});(function(t){var e=t.util.clone(t.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function a(s,l){return s=s.replace(/<S>/g,function(){return n}).replace(/<BRACES>/g,function(){return r}).replace(/<SPREAD>/g,function(){return o}),RegExp(s,l)}o=a(o).source,t.languages.jsx=t.languages.extend("markup",e),t.languages.jsx.tag.pattern=a(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),t.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/i,t.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/i,t.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,t.languages.jsx.tag.inside.comment=e.comment,t.languages.insertBefore("inside","attr-name",{spread:{pattern:a(/<SPREAD>/.source),inside:t.languages.jsx}},t.languages.jsx.tag),t.languages.insertBefore("inside","special-attr",{script:{pattern:a(/=<BRACES>/.source),inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:t.languages.jsx},alias:"language-javascript"}},t.languages.jsx.tag);var i=function(s){return s?typeof s=="string"?s:typeof s.content=="string"?s.content:s.content.map(i).join(""):""},u=function(s){for(var l=[],c=0;c<s.length;c++){var f=s[c],d=!1;if(typeof f!="string"&&(f.type==="tag"&&f.content[0]&&f.content[0].type==="tag"?f.content[0].content[0].content==="</"?l.length>0&&l[l.length-1].tagName===i(f.content[0].content[1])&&l.pop():f.content[f.content.length-1].content==="/>"||l.push({tagName:i(f.content[0].content[1]),openedBraces:0}):l.length>0&&f.type==="punctuation"&&f.content==="{"?l[l.length-1].openedBraces++:l.length>0&&l[l.length-1].openedBraces>0&&f.type==="punctuation"&&f.content==="}"?l[l.length-1].openedBraces--:d=!0),(d||typeof f=="string")&&l.length>0&&l[l.length-1].openedBraces===0){var p=i(f);c<s.length-1&&(typeof s[c+1]=="string"||s[c+1].type==="plain-text")&&(p+=i(s[c+1]),s.splice(c+1,1)),c>0&&(typeof s[c-1]=="string"||s[c-1].type==="plain-text")&&(p=i(s[c-1])+p,s.splice(c-1,1),c--),s[c]=new t.Token("plain-text",p,null,p)}f.content&&typeof f.content!="string"&&u(f.content)}};t.hooks.add("after-tokenize",function(s){s.language!=="jsx"&&s.language!=="tsx"||u(s.tokens)})})(Prism),function(t){t.languages.typescript=t.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:string|Function|any|number|boolean|Array|symbol|console|Promise|unknown|never)\b/}),t.languages.typescript.keyword.push(/\b(?:abstract|as|declare|implements|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete t.languages.typescript.parameter;var e=t.languages.extend("typescript",{});delete e["class-name"],t.languages.typescript["class-name"].inside=e,t.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e}}}}),t.languages.ts=t.languages.typescript}(Prism),Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.replace(/&amp;/,"&"))}),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(t,e){var n={};n["language-"+e]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[e]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+e]={pattern:/[\s\S]+/,inside:Prism.languages[e]};var o={};o[t]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return t}),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(t,e){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[e,"language-"+e],inside:Prism.languages[e]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|iota|nil|true|false)\b/,number:/(?:\b0x[a-f\d]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[-+]?\d+)?)i?/i,operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:bool|byte|complex(?:64|128)|error|float(?:32|64)|rune|string|u?int(?:8|16|32|64)?|uintptr|append|cap|close|complex|copy|delete|imag|len|make|new|panic|print(?:ln)?|real|recover)\b/}),delete Prism.languages.go["class-name"],function(t){var e=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],r=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,o=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,a=/[{}\[\](),:;]/;t.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:e,variable:/\$+(?:\w+\b|(?=\{))/i,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:bool|boolean|int|integer|float|string|object|array)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:bool|int|float|string|object|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*[\w|]\|\s*)(?:null|false)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?[\w|]\|\s*)(?:null|false)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:null|false)\b/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:__halt_compiler|abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|namespace|match|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:r,operator:o,punctuation:a};var i={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:t.languages.php},u=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:i}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:i}}];t.languages.insertBefore("php","variable",{string:u,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:e,string:u,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:r,operator:o,punctuation:a}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),t.hooks.add("before-tokenize",function(s){/<\?/.test(s.code)&&t.languages["markup-templating"].buildPlaceholders(s,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/gi)}),t.hooks.add("after-tokenize",function(s){t.languages["markup-templating"].tokenizePlaceholders(s,"php")})}(Prism),Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:__attribute__|_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}},constant:/\b(?:__FILE__|__LINE__|__DATE__|__TIME__|__TIMESTAMP__|__func__|EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|stdin|stdout|stderr)\b/}),delete Prism.languages.c.boolean,Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},"string-interpolation":{pattern:/(?:f|rf|fr)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|rb|br)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|rb|br)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/im,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:and|as|assert|async|await|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:True|False|None)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?\b/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python,function(t){var e=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};t.languages.java=t.languages.extend("clike",{"class-name":[r,{pattern:RegExp(n+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:r.inside}],keyword:e,function:[t.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),t.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"}}),t.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:e,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return e.source})),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism),function(t){var e=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char8_t|char16_t|char32_t|class|compl|concept|const|consteval|constexpr|constinit|const_cast|continue|co_await|co_return|co_yield|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return e.source});t.languages.cpp=t.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return e.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:e,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:true|false)\b/}),t.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:module|import)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return n})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),t.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t.languages.cpp}}}}),t.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),t.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:t.languages.extend("cpp",{})}}),t.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},t.languages.cpp["base-clause"])}(Prism),function(t){function e(B,I){return B.replace(/<<(\d+)>>/g,function(Y,et){return"(?:"+I[+et]+")"})}function n(B,I,Y){return RegExp(e(B,I),"")}function r(B,I){for(var Y=0;Y<I;Y++)B=B.replace(/<<self>>/g,function(){return"(?:"+B+")"});return B.replace(/<<self>>/g,"[^\\s\\S]")}var o="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",a="class enum interface record struct",i="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",u="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function s(B){return"\\b(?:"+B.trim().replace(/ /g,"|")+")\\b"}var l=s(a),c=RegExp(s(o+" "+a+" "+i+" "+u)),f=s(a+" "+i+" "+u),d=s(o+" "+a+" "+u),p=r(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),m=r(/\((?:[^()]|<<self>>)*\)/.source,2),h=/@?\b[A-Za-z_]\w*\b/.source,v=e(/<<0>>(?:\s*<<1>>)?/.source,[h,p]),y=e(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[f,v]),g=/\[\s*(?:,\s*)*\]/.source,w=e(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[y,g]),E=e(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[p,m,g]),x=e(/\(<<0>>+(?:,<<0>>+)+\)/.source,[E]),S=e(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[x,y,g]),C={keyword:c,punctuation:/[<>()?,.:[\]]/},T=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,A=/"(?:\\.|[^\\"\r\n])*"/.source,k=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;t.languages.csharp=t.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[k]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[A]),lookbehind:!0,greedy:!0},{pattern:RegExp(T),greedy:!0,alias:"character"}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[y]),lookbehind:!0,inside:C},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[h,S]),lookbehind:!0,inside:C},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[h]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[l,v]),lookbehind:!0,inside:C},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[y]),lookbehind:!0,inside:C},{pattern:n(/(\bwhere\s+)<<0>>/.source,[h]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[w]),lookbehind:!0,inside:C},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[S,d,h]),inside:C}],keyword:c,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:ul|lu|[dflmu])?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),t.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),t.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[h]),lookbehind:!0,alias:"punctuation"}}),t.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[h]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|typeof|sizeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[m]),lookbehind:!0,alias:"class-name",inside:C},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[S,y]),inside:C,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[S]),lookbehind:!0,inside:C,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[h,p]),inside:{function:n(/^<<0>>/.source,[h]),generic:{pattern:RegExp(p),alias:"class-name",inside:C}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[l,v,h,S,c.source,m,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[v,m]),lookbehind:!0,greedy:!0,inside:t.languages.csharp},keyword:c,"class-name":{pattern:RegExp(S),greedy:!0,inside:C},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var M=A+"|"+T,H=e(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[M]),N=r(e(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[H]),2),j=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,G=e(/<<0>>(?:\s*\(<<1>>*\))?/.source,[y,N]);t.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[j,G]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[j]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[N]),inside:t.languages.csharp},"class-name":{pattern:RegExp(y),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var V=/:[^}\r\n]+/.source,J=r(e(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[H]),2),rt=e(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[J,V]),it=r(e(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[M]),2),W=e(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[it,V]);function O(B,I){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[B]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[I,V]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:t.languages.csharp}}},string:/[\s\S]+/}}t.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[rt]),lookbehind:!0,greedy:!0,inside:O(rt,J)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[W]),lookbehind:!0,greedy:!0,inside:O(W,it)}]})}(Prism),Prism.languages.dotnet=Prism.languages.cs=Prism.languages.csharp,Prism.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:[^\S\r\n]_[^\S\r\n]*(?:\r\n?|\n)|.)+/i,alias:"comment",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[^\S\r\n]*(?:\d+([/-])\d+\1\d+(?:[^\S\r\n]+(?:\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?))?|\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?)[^\S\r\n]*#/i,alias:"builtin"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:U?[ILS]|[FRD])?/i,boolean:/\b(?:True|False|Nothing)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Until|Xor)\b/i,operator:[/[+\-*/\\^<=>&#@$%!]/,{pattern:/([^\S\r\n])_(?=[^\S\r\n]*[\r\n])/,lookbehind:!0}],punctuation:/[{}().,:?]/},Prism.languages.vb=Prism.languages["visual-basic"],Prism.languages.vba=Prism.languages["visual-basic"],Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:_INSERT|COL)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:S|ING)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:TRUE|FALSE|NULL)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|IN|ILIKE|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(t){t.languages.ruby=t.languages.extend("clike",{comment:[/#.*/,{pattern:/^=begin\s[\s\S]*?^=end/m,greedy:!0}],"class-name":{pattern:/(\b(?:class)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:alias|and|BEGIN|begin|break|case|class|def|define_method|defined|do|each|else|elsif|END|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|protected|private|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/});var e={pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"tag"},rest:t.languages.ruby}};delete t.languages.ruby.function,t.languages.insertBefore("ruby","keyword",{regex:[{pattern:RegExp(/%r/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:e}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:e}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:{pattern:/(^|[^:]):[a-zA-Z_]\w*(?:[?!]|\b)/,lookbehind:!0},"method-definition":{pattern:/(\bdef\s+)[\w.]+/,lookbehind:!0,inside:{function:/\w+$/,rest:t.languages.ruby}}}),t.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Stat|Fixnum|Float|Hash|Integer|IO|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|String|Struct|TMS|Symbol|ThreadGroup|Thread|Time|TrueClass)\b/,constant:/\b[A-Z]\w*(?:[?!]|\b)/}),t.languages.ruby.string=[{pattern:RegExp(/%[qQiIwWxs]?/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"),greedy:!0,inside:{interpolation:e}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:e}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?/}},interpolation:e}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?'|'$/}}}}],t.languages.rb=t.languages.ruby}(Prism),Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:true|false)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:true|false)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift["string-literal"].forEach(function(t){t.inside.interpolation.inside=Prism.languages.swift}),function(t){var e="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+e),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+e),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|x[0-9a-fA-F]{1,2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})/};t.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+e),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+e),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|aptitude|apt-cache|apt-get|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:if|then|else|elif|fi|for|while|in|case|esac|function|select|do|done|until)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|break|cd|continue|eval|exec|exit|export|getopts|hash|pwd|readonly|return|shift|test|times|trap|umask|unset|alias|bind|builtin|caller|command|declare|echo|enable|help|let|local|logout|mapfile|printf|read|readarray|source|type|typeset|ulimit|unalias|set|shopt)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:true|false)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=t.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],a=r.variable[1].inside,i=0;i<o.length;i++)a[o[i]]=t.languages.bash[o[i]];t.languages.shell=t.languages.bash}(Prism),function(t){var e=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(l){return l=l.replace(/<inner>/g,function(){return e}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+l+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return r}),a=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;t.languages.markdown=t.languages.extend("markup",{}),t.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"font-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:t.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+a+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+a+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+a+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:t.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(l){["url","bold","italic","strike","code-snippet"].forEach(function(c){l!==c&&(t.languages.markdown[l].inside.content.inside[c]=t.languages.markdown[c])})}),t.hooks.add("after-tokenize",function(l){l.language!=="markdown"&&l.language!=="md"||function c(f){if(f&&typeof f!="string")for(var d=0,p=f.length;d<p;d++){var m=f[d];if(m.type==="code"){var h=m.content[1],v=m.content[3];if(h&&v&&h.type==="code-language"&&v.type==="code-block"&&typeof h.content=="string"){var y=h.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),g="language-"+(y=(/[a-z][\w-]*/i.exec(y)||[""])[0].toLowerCase());v.alias?typeof v.alias=="string"?v.alias=[v.alias,g]:v.alias.push(g):v.alias=[g]}}else c(m.content)}}(l.tokens)}),t.hooks.add("wrap",function(l){if(l.type==="code-block"){for(var c="",f=0,d=l.classes.length;f<d;f++){var p=l.classes[f],m=/language-(.+)/.exec(p);if(m){c=m[1];break}}var h=t.languages[c];if(h)l.content=t.highlight(function(y){var g=y.replace(i,"");return g.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(w,E){var x;return(E=E.toLowerCase())[0]==="#"?(x=E[1]==="x"?parseInt(E.slice(2),16):Number(E.slice(1)),s(x)):u[E]||w})}(l.content),h,c);else if(c&&c!=="none"&&t.plugins.autoloader){var v="md-"+new Date().valueOf()+"-"+Math.floor(1e16*Math.random());l.attributes.id=v,t.plugins.autoloader.loadLanguages(c,function(){var y=document.getElementById(v);y&&(y.innerHTML=t.highlight(y.textContent,t.languages[c],c))})}}});var i=RegExp(t.languages.markup.tag.pattern.source,"gi"),u={amp:"&",lt:"<",gt:">",quot:'"'},s=String.fromCodePoint||String.fromCharCode;t.languages.md=t.languages.markdown}(Prism),Prism.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/},Prism.languages.groovy=Prism.languages.extend("clike",{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:as|def|in|abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),Prism.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),Prism.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:setup|given|when|then|and|cleanup|expect|where):/}),Prism.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),Prism.hooks.add("wrap",function(t){if(t.language==="groovy"&&t.type==="string"){var e=t.content[0];if(e!="'"){var n=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;e==="$"&&(n=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),t.content=t.content.replace(/&lt;/g,"<").replace(/&amp;/g,"&"),t.content=Prism.highlight(t.content,{expression:{pattern:n,lookbehind:!0,inside:Prism.languages.groovy}}),t.classes.push(e==="/"?"regex":"gstring")}}});var C2t=["comment","prolog","doctype","cdata","punctuation","namespace","property","tag","boolean","number","constant","symbol","deleted","selector","attr-name","string","builtin","inserted","operator","entity","url","string","atrule","attr-value","keyword","function","class-name","regex","important","variable","bold","italic","entity","char"];function PU(t){return typeof t=="string"?t.length:typeof t.content=="string"?t.content.length:t.content.reduce(function(e,n){return e+PU(n)},0)}var V1,D2t=ee.String,ta=function(t){if(d8(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return D2t(t)},FU=function(){var t=_o(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},S8=ee.RegExp,x8=Un(function(){var t=S8("a","y");return t.lastIndex=2,t.exec("abcd")!=null});x8||Un(function(){return!S8("a","y").sticky});var kU={BROKEN_CARET:x8||Un(function(){var t=S8("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),UNSUPPORTED_Y:x8},O2t=Si?Object.defineProperties:function(t,e){_o(t);for(var n,r=j1(e),o=M1(e),a=o.length,i=0;a>i;)N1.f(t,n=o[i++],r[n]);return t},A2t=sg("document","documentElement"),NU=eU("IE_PROTO"),C8=function(){},IU=function(t){return"<script>"+t+"<\/script>"},jU=function(t){t.write(IU("")),t.close();var e=t.parentWindow.Object;return t=null,e},z1=function(){try{V1=new ActiveXObject("htmlfile")}catch{}var t,e;z1=typeof document<"u"?document.domain&&V1?jU(V1):((e=r8("iframe")).style.display="none",A2t.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(IU("document.F=Object")),t.close(),t.F):jU(V1);for(var n=R1.length;n--;)delete z1.prototype[R1[n]];return z1()};c8[NU]=!0;var RU,D8,T2t=Object.create||function(t,e){var n;return t!==null?(C8.prototype=_o(t),n=new C8,C8.prototype=null,n[NU]=t):n=z1(),e===void 0?n:O2t(n,e)},B2t=ee.RegExp,P2t=Un(function(){var t=B2t(".","s");return!(t.dotAll&&t.exec(`
179
+ `)&&t.flags==="s")}),F2t=ee.RegExp,k2t=Un(function(){var t=F2t("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),N2t=f8.get,I2t=X5("native-string-replace",String.prototype.replace),H1=RegExp.prototype.exec,O8=H1,j2t=Ee("".charAt),R2t=Ee("".indexOf),L2t=Ee("".replace),A8=Ee("".slice),T8=(D8=/b*/g,_n(H1,RU=/a/,"a"),_n(H1,D8,"a"),RU.lastIndex!==0||D8.lastIndex!==0),LU=kU.BROKEN_CARET,B8=/()??/.exec("")[1]!==void 0;(T8||B8||LU||P2t||k2t)&&(O8=function(t){var e,n,r,o,a,i,u,s=this,l=N2t(s),c=ta(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=_n(O8,f,c),s.lastIndex=f.lastIndex,e;var d=l.groups,p=LU&&s.sticky,m=_n(FU,s),h=s.source,v=0,y=c;if(p&&(m=L2t(m,"y",""),R2t(m,"g")===-1&&(m+="g"),y=A8(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&j2t(c,s.lastIndex-1)!==`
180
+ `)&&(h="(?: "+h+")",y=" "+y,v++),n=new RegExp("^(?:"+h+")",m)),B8&&(n=new RegExp("^"+h+"$(?!\\s)",m)),T8&&(r=s.lastIndex),o=_n(H1,p?n:s,y),p?o?(o.input=A8(o.input,v),o[0]=A8(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:T8&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),B8&&o&&o.length>1&&_n(I2t,o[0],n,function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(o[a]=void 0)}),o&&d)for(o.groups=i=T2t(null),a=0;a<d.length;a++)i[(u=d[a])[0]]=o[u[1]];return o});var hg=O8;L1({target:"RegExp",proto:!0,forced:/./.exec!==hg},{exec:hg});var P8=Function.prototype,MU=P8.apply,M2t=P8.bind,VU=P8.call,V2t=typeof Reflect=="object"&&Reflect.apply||(M2t?VU.bind(MU):function(){return VU.apply(MU,arguments)}),z2t=bu("species"),F8=RegExp.prototype,H2t=bu("match"),U2t=ee.TypeError,_2t=bu("species"),G2t=Ee("".charAt),zU=Ee("".charCodeAt),W2t=Ee("".slice),K2t=function(t){return function(e,n){var r,o,a=ta(of(e)),i=v8(n),u=a.length;return i<0||i>=u?t?"":void 0:(r=zU(a,i))<55296||r>56319||i+1===u||(o=zU(a,i+1))<56320||o>57343?t?G2t(a,i):r:t?W2t(a,i,i+2):o-56320+(r-55296<<10)+65536}},Y2t=K2t(!0),X2t=function(t,e,n){return e+(n?Y2t(t,e).length:1)},Z2t=ee.Array,J2t=Math.max,HU=function(t,e,n){for(var r,o,a,i,u=m8(t),s=E8(e,u),l=E8(n===void 0?u:n,u),c=Z2t(J2t(l-s,0)),f=0;s<l;s++,f++)r=c,o=f,a=t[s],(i=i8(o))in r?N1.f(r,i,a8(0,a)):r[i]=a;return c.length=f,c},Q2t=ee.TypeError,UU=function(t,e){var n=t.exec;if(vr(n)){var r=_n(n,t,e);return r!==null&&_o(r),r}if(wu(t)==="RegExp")return _n(hg,t,e);throw Q2t("RegExp#exec called on incompatible receiver")},lf=kU.UNSUPPORTED_Y,$2t=Math.min,_U=[].push,q2t=Ee(/./.exec),cf=Ee(_U),gg=Ee("".slice);(function(t,e,n,r){var o=bu(t),a=!Un(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),i=a&&!Un(function(){var l=!1,c=/a/;return(c={}).constructor={},c.constructor[z2t]=function(){return c},c.flags="",c[o]=/./[o],c.exec=function(){return l=!0,null},c[o](""),!l});if(!a||!i||n){var u=Ee(/./[o]),s=function(l,c,f){var d;return d="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(p,m){var h,v,y=ta(of(this)),g=m===void 0?4294967295:m>>>0;if(g===0)return[];if(p===void 0)return[y];if(!qi(h=p)||!((v=h[H2t])!==void 0?v:wu(h)=="RegExp"))return _n(c,y,p,g);for(var w,E,x,S=[],C=(p.ignoreCase?"i":"")+(p.multiline?"m":"")+(p.unicode?"u":"")+(p.sticky?"y":""),T=0,A=new RegExp(p.source,C+"g");(w=_n(hg,A,y))&&!((E=A.lastIndex)>T&&(cf(S,gg(y,T,w.index)),w.length>1&&w.index<y.length&&V2t(_U,S,HU(w,1)),x=w[0].length,T=E,S.length>=g));)A.lastIndex===w.index&&A.lastIndex++;return T===y.length?!x&&q2t(A,"")||cf(S,""):cf(S,gg(y,T)),S.length>g?HU(S,0,g):S}:"0".split(void 0,0).length?function(p,m){return p===void 0&&m===0?[]:_n(c,this,p,m)}:c,[function(p,m){var h=of(this),v=p==null?void 0:QH(p,l);return v?_n(v,p,h,m):_n(d,ta(h),p,m)},function(p,m){var h=_o(this),v=ta(p),y=f(d,h,v,m,d!==c);if(y.done)return y.value;var g=function(N,j){var G,V=_o(N).constructor;return V===void 0||(G=_o(V)[_2t])==null?j:function(J){if(gU(J))return J;throw U2t(ZH(J)+" is not a constructor")}(G)}(h,RegExp),w=h.unicode,E=(h.ignoreCase?"i":"")+(h.multiline?"m":"")+(h.unicode?"u":"")+(lf?"g":"y"),x=new g(lf?"^(?:"+h.source+")":h,E),S=m===void 0?4294967295:m>>>0;if(S===0)return[];if(v.length===0)return UU(x,v)===null?[v]:[];for(var C=0,T=0,A=[];T<v.length;){x.lastIndex=lf?0:T;var k,M=UU(x,lf?gg(v,T):v);if(M===null||(k=$2t(fU(x.lastIndex+(lf?T:0)),v.length))===C)T=X2t(v,T,w);else{if(cf(A,gg(v,C,T)),A.length===S)return A;for(var H=1;H<=M.length-1;H++)if(cf(A,M[H]),A.length===S)return A;T=C=k}}return cf(A,gg(v,C)),A}]}(o,""[t],function(l,c,f,d,p){var m=Ee(l),h=c.exec;return h===hg||h===F8.exec?a&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:m(f,c,d)}:{done:!1}});fg(String.prototype,t,s[0]),fg(F8,o,s[1])}r&&af(F8[o],"sham",!0)})("split",0,!!Un(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),lf),L1({global:!0},{globalThis:ee}),io&&(F.fn.attr=io);var twt=aU.PROPER,k8=RegExp.prototype,GU=k8.toString,ewt=Ee(FU),nwt=Un(function(){return GU.call({source:"a",flags:"b"})!="/a/b"}),rwt=twt&&GU.name!="toString";(nwt||rwt)&&fg(RegExp.prototype,"toString",function(){var t=_o(this),e=ta(t.source),n=t.flags;return"/"+e+"/"+ta(n===void 0&&XH(k8,t)&&!("flags"in k8)?ewt(t):n)},{unsafe:!0});var owt=function(){function t(){this.title=lt("highLightModule.selectLang"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M64 64v896h896V64H64z m487.6 698.8c0 87.2-51.2 127-125.8 127-67.4 0-106.4-34.8-126.4-77l68.6-41.4c13.2 23.4 25.2 43.2 54.2 43.2 27.6 0 45.2-10.8 45.2-53V475.4h84.2v287.4z m199.2 127c-78.2 0-128.8-37.2-153.4-86l68.6-39.6c18 29.4 41.6 51.2 83 51.2 34.8 0 57.2-17.4 57.2-41.6 0-28.8-22.8-39-61.4-56l-21-9c-60.8-25.8-101-58.4-101-127 0-63.2 48.2-111.2 123.2-111.2 53.6 0 92 18.6 119.6 67.4L800 580c-14.4-25.8-30-36-54.2-36-24.6 0-40.2 15.6-40.2 36 0 25.2 15.6 35.4 51.8 51.2l21 9c71.6 30.6 111.8 62 111.8 132.4 0 75.6-59.6 117.2-139.4 117.2z"></path></svg>',this.tag="select",this.width=95,this.selectPanelWidth=115}return t.prototype.getOptions=function(e){var n=[],r=e.getMenuConfig("codeSelectLang").codeLangs,o=r===void 0?[]:r;n.push({text:"plain text",value:""}),o.forEach(function(i){var u=i.text,s=i.value;n.push({text:u,value:s})});var a=this.getValue(e);return n.forEach(function(i){i.value===a?i.selected=!0:delete i.selected}),n},t.prototype.isActive=function(e){return!1},t.prototype.getValue=function(e){var n=this.getSelectCodeElem(e);if(n==null||!St.isElement(n))return"";var r=n.language.toString(),o=e.getMenuConfig("codeSelectLang").codeLangs;return(o===void 0?[]:o).some(function(a){return a.value===r})?r:""},t.prototype.isDisabled=function(e){return e.selection==null||!this.getSelectCodeElem(e)},t.prototype.exec=function(e,n){if(this.getSelectCodeElem(e)!=null){var r={language:n.toString()};_.setNodes(e,r,{match:function(o){return P.checkNodeType(o,"code")}})}},t.prototype.getSelectCodeElem=function(e){var n=P.getSelectedNodeByType(e,"code");if(n==null)return null;var r=P.getParentNode(e,n);return St.isElement(r)?r.type!=="pre"?null:n:null},t}(),iwt={renderStyle:function(t,e){var n=t,r=e,o="";return C2t.forEach(function(a){n[a]&&(o=a)}),o&&function(a,i){a.data==null&&(a.data={});var u=a.data;u.props==null&&(u.props={}),Object.assign(u.props,{className:i})}(r,o="token "+o),r},parseStyleHtml:function(t,e,n){var r=F(t);if(!St.isElement(e)||P.getNodeType(e)!=="code")return e;var o=e,a=r.attr("class")||"";return a.indexOf("language-")===0?o.language=a.split("-")[1]||"":o.language=a.toLowerCase(),o},menus:[{key:"codeSelectLang",factory:function(){return new owt},config:{codeLangs:[{text:"CSS",value:"css"},{text:"HTML",value:"html"},{text:"XML",value:"xml"},{text:"Javascript",value:"javascript"},{text:"Typescript",value:"typescript"},{text:"JSX",value:"jsx"},{text:"Go",value:"go"},{text:"PHP",value:"php"},{text:"C",value:"c"},{text:"Python",value:"python"},{text:"Java",value:"java"},{text:"C++",value:"cpp"},{text:"C#",value:"csharp"},{text:"Visual Basic",value:"visual-basic"},{text:"SQL",value:"sql"},{text:"Ruby",value:"ruby"},{text:"Swift",value:"swift"},{text:"Bash",value:"bash"},{text:"Lua",value:"lua"},{text:"Groovy",value:"groovy"},{text:"Markdown",value:"markdown"}]}}],elemsToHtml:[{type:"code",elemToHtml:function(t,e){var n=t.language,r=n===void 0?"":n;return"<code "+(r?'class="language-'+r+'"':"")+">"+e+"</code>"}}]},awt=/"/g,uwt=Ee("".replace);L1({target:"String",proto:!0,forced:Un(function(){var t="".anchor('"');return t!==t.toLowerCase()||t.split('"').length>3})},{anchor:function(t){return e=t,n=ta(of(this)),r="<a",(r+=' name="'+uwt(ta(e),awt,"&quot;")+'"')+">"+n+"</a>";var e,n,r}});var WU=function(t){var e,n,r,o=function(y,g){var w=typeof Symbol=="function"&&y[Symbol.iterator];if(!w)return y;var E,x,S=w.call(y),C=[];try{for(;(g===void 0||g-- >0)&&!(E=S.next()).done;)C.push(E.value)}catch(T){x={error:T}}finally{try{E&&!E.done&&(w=S.return)&&w.call(S)}finally{if(x)throw x.error}}return C}(t,2),a=o[0],i=o[1],u=[],s=function(y){if(!vt.isText(y))return null;var g=P.getParentNode(null,y);if(g&&P.getNodeType(g)==="code"){var w=P.getParentNode(null,g);if(w&&P.getNodeType(w)==="pre")return g}return null}(a);if(s==null)return u;var l=s.language,c=l===void 0?"":l;if(!c)return u;var f=function(y,g){if(!g)return[];var w=BU.languages[g];return w?BU.tokenize(y.text,w):[]}(a,c),d=0;try{for(var p=function(y){var g=typeof Symbol=="function"&&Symbol.iterator,w=g&&y[g],E=0;if(w)return w.call(y);if(y&&typeof y.length=="number")return{next:function(){return y&&E>=y.length&&(y=void 0),{value:y&&y[E++],done:!y}}};throw new TypeError(g?"Object is not iterable.":"Symbol.iterator is not defined.")}(f),m=p.next();!m.done;m=p.next()){var h=m.value,v=d+PU(h);typeof h!="string"&&u.push(((r={})[h.type]=!0,r.anchor={path:i,offset:d},r.focus={path:i,offset:v},r)),d=v}}catch(y){e={error:y}}finally{try{m&&!m.done&&(n=p.return)&&n.call(p)}finally{if(e)throw e.error}}return u},rn=function(){return rn=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},rn.apply(this,arguments)},Gn=function(){function t(){throw new Error(`不能实例化
181
+ Can not construct a instance`)}return t.setEditorConfig=function(e){e===void 0&&(e={}),this.editorConfig=rn(rn({},this.editorConfig),e)},t.setSimpleEditorConfig=function(e){e===void 0&&(e={}),this.simpleEditorConfig=rn(rn({},this.simpleEditorConfig),e)},t.setToolbarConfig=function(e){e===void 0&&(e={}),this.toolbarConfig=rn(rn({},this.toolbarConfig),e)},t.setSimpleToolbarConfig=function(e){e===void 0&&(e={}),this.simpleToolbarConfig=rn(rn({},this.simpleToolbarConfig),e)},t.registerPlugin=function(e){this.plugins.push(e)},t.registerMenu=function(e,n){(function(r,o){var a=r.key,i=r.factory,u=r.config,s=co(co({},u),o||{});if(Yd[a]!=null)throw new Error("Duplicated key '"+a+"' in menu items");Yd[a]=i,function(l,c){c!=null&&(vP[l]=c)}(a,s)})(e,n)},t.registerRenderElem=function(e){(function(n){var r=n.type,o=n.renderElem;SF[r||""]=o})(e)},t.registerRenderStyle=function(e){(function(n){ux.push(n)})(e)},t.registerElemToHtml=function(e){(function(n){var r=n.type,o=n.elemToHtml;yP[r||""]=o})(e)},t.registerStyleToHtml=function(e){(function(n){TS.push(n)})(e)},t.registerPreParseHtml=function(e){(function(n){qP.push(n)})(e)},t.registerParseElemHtml=function(e){(function(n){var r=n.selector,o=n.parseElemHtml;Mm[r]=o})(e)},t.registerParseStyleHtml=function(e){(function(n){YS.push(n)})(e)},t.registerModule=function(e){nl(e)},t.editorConfig={},t.simpleEditorConfig={},t.toolbarConfig={},t.simpleToolbarConfig={},t.plugins=[],t}();/*! *****************************************************************************
182
+ Copyright (c) Microsoft Corporation.
183
+
184
+ Permission to use, copy, modify, and/or distribute this software for any
185
+ purpose with or without fee is hereby granted.
186
+
187
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
188
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
189
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
190
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
191
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
192
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
193
+ PERFORMANCE OF THIS SOFTWARE.
194
+ ***************************************************************************** */function nl(t){var e=t.menus,n=t.renderElems,r=t.renderStyle,o=t.elemsToHtml,a=t.styleToHtml,i=t.preParseHtml,u=t.parseElemsHtml,s=t.parseStyleHtml,l=t.editorPlugin;e&&e.forEach(function(c){return Gn.registerMenu(c)}),n&&n.forEach(function(c){return Gn.registerRenderElem(c)}),r&&Gn.registerRenderStyle(r),o&&o.forEach(function(c){return Gn.registerElemToHtml(c)}),a&&Gn.registerStyleToHtml(a),i&&i.forEach(function(c){return Gn.registerPreParseHtml(c)}),u&&u.forEach(function(c){return Gn.registerParseElemHtml(c)}),s&&Gn.registerParseStyleHtml(s),l&&Gn.registerPlugin(l)}pct.forEach(function(t){return nl(t)}),nl(Gdt),nl(vgt),nl(O0t),nl(mbt),nl(iwt);var KU='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',YU={link:{menuKeys:["editLink","unLink","viewLink"]},image:{menuKeys:["imageWidth30","imageWidth50","imageWidth100","editImage","viewImageLink","deleteImage"]},pre:{menuKeys:["enter","codeBlock","codeSelectLang"]},table:{menuKeys:["enter","tableHeader","tableFullWidth","insertTableRow","deleteTableRow","insertTableCol","deleteTableCol","deleteTable"]},divider:{menuKeys:["enter"]},video:{menuKeys:["enter","editVideoSize"]}},swt={hoverbarKeys:rn(rn({},YU),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};Gn.setEditorConfig(rn(rn({},swt),{decorate:WU}));var lwt={hoverbarKeys:YU};Gn.setSimpleEditorConfig(rn(rn({},lwt),{decorate:WU}));var cwt={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:lt("editor.more"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M204.8 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M505.6 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M806.4 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path></svg>',menuKeys:["through","code","sup","sub","clearStyle"]},"color","bgColor","|","fontSize","fontFamily","lineHeight","|","bulletedList","numberedList","todo",{key:"group-justify",title:lt("editor.justify"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',menuKeys:["justifyLeft","justifyRight","justifyCenter","justifyJustify"]},{key:"group-indent",title:lt("editor.indent"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',menuKeys:["indent","delIndent"]},"|","emotion","insertLink",{key:"group-image",title:lt("editor.image"),iconSvg:KU,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:lt("editor.video"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',menuKeys:["insertVideo","uploadVideo"]},"insertTable","codeBlock","divider","|","undo","redo","|","fullScreen"]};Gn.setToolbarConfig(cwt);var fwt={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:lt("editor.image"),iconSvg:KU,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};function dwt(t){t===void 0&&(t={});var e=t.selector,n=e===void 0?"":e,r=t.content,o=r===void 0?[]:r,a=t.html,i=t.config,u=i===void 0?{}:i,s=t.mode,l=(s===void 0?"default":s)==="simple"?Gn.simpleEditorConfig:Gn.editorConfig,c=rn(rn({},l.hoverbarKeys||{}),u.hoverbarKeys||{});return vrt({selector:n,config:rn(rn(rn({},l),u),{hoverbarKeys:c}),content:o,html:a,plugins:Gn.plugins})}function pwt(t){var e=t.selector,n=t.editor,r=t.config,o=r===void 0?{}:r,a=t.mode,i=a===void 0?"default":a;if(!e)throw new Error("Cannot find 'selector' when create toolbar");var u=i==="simple"?Gn.simpleToolbarConfig:Gn.toolbarConfig,s=function(l,c){if(l==null)throw new Error("Cannot create toolbar, because editor is null");var f=c.selector,d=c.config,p=d===void 0?{}:d;if(function(v,y){return uF(v,"data-w-e-toolbar",y)}(l,f))throw new Error("Repeated create toolbar by selector '"+f+"'");var m=co({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},p||{}),h=new Ert(f,m);return gS.set(h,l),Bm.set(l,h),h}(n,{selector:e,config:rn(rn({},u),o)});return s}Gn.setSimpleToolbarConfig(fwt);var hwt=Object.defineProperty,gwt=Object.defineProperties,vwt=Object.getOwnPropertyDescriptors,XU=Object.getOwnPropertySymbols,mwt=Object.prototype.hasOwnProperty,ywt=Object.prototype.propertyIsEnumerable,ZU=(t,e,n)=>e in t?hwt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,bwt=(t,e)=>{for(var n in e||(e={}))mwt.call(e,n)&&ZU(t,n,e[n]);if(XU)for(var n of XU(e))ywt.call(e,n)&&ZU(t,n,e[n]);return t},wwt=(t,e)=>gwt(t,vwt(e));function Su(t){let e=`请使用 '@${t}' 事件,不要放在 props 中`;return e+=`
195
+ Please use '@${t}' event instead of props`,e}var JU=(t,e)=>{for(const[n,r]of e)t[n]=r;return t};const Ewt=b.defineComponent({props:{mode:{type:String,default:"default"},defaultContent:{type:Array,default:[]},defaultHtml:{type:String,default:""},defaultConfig:{type:Object,default:{}},modelValue:{type:String,default:""}},setup(t,e){const n=b.ref(null),r=b.shallowRef(null),o=b.ref(""),a=()=>{if(!n.value)return;const u=b.toRaw(t.defaultContent);dwt({selector:n.value,mode:t.mode,content:u||[],html:t.defaultHtml||t.modelValue||"",config:wwt(bwt({},t.defaultConfig),{onCreated(s){if(r.value=s,e.emit("onCreated",s),t.defaultConfig.onCreated){const l=Su("onCreated");throw new Error(l)}},onChange(s){const l=s.getHtml();if(o.value=l,e.emit("update:modelValue",l),e.emit("onChange",s),t.defaultConfig.onChange){const c=Su("onChange");throw new Error(c)}},onDestroyed(s){if(e.emit("onDestroyed",s),t.defaultConfig.onDestroyed){const l=Su("onDestroyed");throw new Error(l)}},onMaxLength(s){if(e.emit("onMaxLength",s),t.defaultConfig.onMaxLength){const l=Su("onMaxLength");throw new Error(l)}},onFocus(s){if(e.emit("onFocus",s),t.defaultConfig.onFocus){const l=Su("onFocus");throw new Error(l)}},onBlur(s){if(e.emit("onBlur",s),t.defaultConfig.onBlur){const l=Su("onBlur");throw new Error(l)}},customAlert(s,l){if(e.emit("customAlert",s,l),t.defaultConfig.customAlert){const c=Su("customAlert");throw new Error(c)}},customPaste:(s,l)=>{if(t.defaultConfig.customPaste){const f=Su("customPaste");throw new Error(f)}let c;return e.emit("customPaste",s,l,f=>{c=f}),c}})})};function i(u){const s=r.value;s!=null&&s.setHtml(u)}return b.onMounted(()=>{a()}),b.watch(()=>t.modelValue,u=>{u!==o.value&&i(u)}),{box:n}}}),Swt={ref:"box",style:{height:"100%"}};function xwt(t,e,n,r,o,a){return b.openBlock(),b.createElementBlock("div",Swt,null,512)}var Cwt=JU(Ewt,[["render",xwt]]);const Dwt=b.defineComponent({props:{editor:{type:Object},mode:{type:String,default:"default"},defaultConfig:{type:Object,default:{}}},setup(t){const e=b.ref(null),n=r=>{if(e.value){if(r==null)throw new Error("Not found instance of Editor when create <Toolbar/> component");P.getToolbar(r)||pwt({editor:r,selector:e.value||"<div></div>",mode:t.mode,config:t.defaultConfig})}};return b.watchEffect(()=>{const{editor:r}=t;r!=null&&n(r)}),{selector:e}}}),Owt={ref:"selector"};function Awt(t,e,n,r,o,a){return b.openBlock(),b.createElementBlock("div",Owt,null,512)}var Twt=JU(Dwt,[["render",Awt]]);const Bwt={class:"rich-text-editor"},U1=Wo(b.defineComponent({__name:"RichTextEditor",props:{modelValue:{default:""},placeholder:{default:"请输入内容..."},height:{default:"400px"},mode:{default:"default"},disabled:{type:Boolean,default:!1},maxLength:{default:1e4},excludeKeys:{default:()=>[]},includeKeys:{default:()=>[]},uploadImgServer:{default:""},uploadVideoServer:{default:""}},emits:["update:modelValue","change","focus","blur","created"],setup(t,{expose:e,emit:n}){const r=t,o=n,a=b.shallowRef(),i=b.ref(""),u=b.computed(()=>typeof r.height=="number"?`${r.height}px`:r.height),s={excludeKeys:r.excludeKeys,insertKeys:{index:0,keys:r.includeKeys}},l={placeholder:r.placeholder,readOnly:r.disabled,maxLength:r.maxLength,MENU_CONF:{uploadImage:{server:r.uploadImgServer,fieldName:"file",maxFileSize:5*1024*1024,allowedFileTypes:["image/*"],meta:{},headers:{},withCredentials:!1,timeout:30*1e3,onBeforeUpload(h){return console.log("onBeforeUpload",h),h},onProgress(h){console.log("onProgress",h)},onSuccess(h,v){console.log("onSuccess",h,v)},onFailed(h,v){console.log("onFailed",h,v)},onError(h,v){console.log("onError",h,v)}},uploadVideo:{server:r.uploadVideoServer,fieldName:"file",maxFileSize:50*1024*1024,allowedFileTypes:["video/*"],meta:{},headers:{},withCredentials:!1,timeout:60*1e3,onBeforeUpload(h){return console.log("onBeforeUpload video",h),h},onProgress(h){console.log("onProgress video",h)},onSuccess(h,v){console.log("onSuccess video",h,v)},onFailed(h,v){console.log("onFailed video",h,v)},onError(h,v){console.log("onError video",h,v)}}}};b.onBeforeUnmount(()=>{const h=a.value;h!=null&&h.destroy()}),b.watch(()=>r.modelValue,h=>{h!==i.value&&(i.value=h||"")},{immediate:!0});const c=h=>{a.value=h,o("created",h)},f=h=>{o("update:modelValue",i.value),o("change",h)},d=()=>{a.value=void 0},p=h=>{o("focus",h)},m=h=>{o("blur",h)};return e({editor:a,getHtml:()=>i.value,getText:()=>{var h;return((h=a.value)==null?void 0:h.getText())||""},isEmpty:()=>{var h;return((h=a.value)==null?void 0:h.isEmpty())||!0},clear:()=>{var h;return(h=a.value)==null?void 0:h.clear()},focus:()=>{var h;return(h=a.value)==null?void 0:h.focus()},blur:()=>{var h;return(h=a.value)==null?void 0:h.blur()},disable:()=>{var h;return(h=a.value)==null?void 0:h.disable()},enable:()=>{var h;return(h=a.value)==null?void 0:h.enable()}}),(h,v)=>(b.openBlock(),b.createElementBlock("div",Bwt,[b.createVNode(b.unref(Twt),{class:"editor-toolbar",editor:a.value,defaultConfig:s,mode:h.mode},null,8,["editor","mode"]),b.createVNode(b.unref(Cwt),{class:"editor-content",style:b.normalizeStyle({height:u.value}),modelValue:i.value,"onUpdate:modelValue":v[0]||(v[0]=y=>i.value=y),defaultConfig:l,mode:h.mode,onOnCreated:c,onOnChange:f,onOnDestroyed:d,onOnFocus:p,onOnBlur:m},null,8,["style","modelValue","mode"])]))}}),[["__scopeId","data-v-760a12a3"]]),Pwt={class:"setting-content"},Fwt={class:"setting-header flex items-center"},kwt={class:"setting-header flex items-center"},Nwt={class:"setting-body"},Iwt={class:"setting-item"},jwt={class:"item-name"},Rwt={class:"drag-handle img-drag-handle"},Lwt={key:0,class:"drag-handle"},Mwt={class:"item-action flex items-center"},Vwt=["onClick"],zwt={key:0,class:"drag-handle"},Hwt={class:"item-action flex items-center"},Uwt=["onClick"],_wt={key:0,class:"drag-handle"},Gwt={class:"item-action flex items-center"},Wwt=["onClick"],Kwt={key:0,class:"drag-handle"},Ywt={class:"item-action flex items-center"},Xwt=["onClick"],Zwt=["src"],Jwt={class:"item-uplaod flex items-center"},Qwt={class:"item-img-list"},$wt={key:0,class:"drag-handle img-drag-handle"},qwt={key:1,class:"item-img-box"},tEt=["src"],eEt={class:"item-right flex-1"},nEt=["onClick"],rEt=["src"],oEt={class:"item-uplaod flex items-center"},iEt=["src"],aEt={class:"item-uplaod flex items-center"},uEt=Wo(b.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(t,{emit:e}){const n=b.ref(!1),r=b.computed(()=>({animation:200,group:"item",disabled:!1,ghostClass:"ghost"})),o=b.computed(()=>({animation:200,group:"buttons",disabled:!1,ghostClass:"ghost"})),a=b.computed(()=>({animation:200,group:"links",disabled:!1,ghostClass:"ghost"})),i=b.computed(()=>({animation:200,group:"categories",disabled:!1,ghostClass:"ghost"})),u=b.computed(()=>({animation:200,group:"images",disabled:!1,ghostClass:"ghost"})),s=x=>x&&x.length>1,l=t,c=e,f=()=>{c("update:show",!1)},d=x=>{const S=l.data;x==="Article"?S.data.push({id:Ue(),type:"Article",data:{title:"",content:"",buttonList:[],linkList:[]}}):x==="Contact"?S.data.push({id:Ue(),type:"Contact",data:{title:"",content:"",categories:[],linkList:[]}}):x==="Image"?S.data.push({id:Ue(),type:"Image",data:{imgSrc:"",caption:"",alt:"",isRound:!1}}):x==="ImageList"?S.data.push({id:Ue(),type:"ImageList",data:{imageList:[]}}):x==="Video"&&S.data.push({id:Ue(),type:"Video",data:{videoSrc:"",imgSrc:""}})},p=x=>{x.push({id:Ue(),text:"查看更多",url:"https://www.baidu.com",isExternal:!1})},m=(x,S)=>{x.splice(x.findIndex(C=>C.id===S),1)},h=x=>{x.push({id:Ue(),text:"查看更多",url:"https://www.baidu.com",isExternal:!1})},v=(x,S)=>{x.splice(x.findIndex(C=>C.id===S),1)},y=x=>{x.push({id:Ue(),text:"分类"})},g=(x,S)=>{x.splice(x.findIndex(C=>C.id===S),1)},w=x=>{x.push({id:Ue(),src:""})},E=(x,S)=>{x.splice(x.findIndex(C=>C===S),1)};return(x,S)=>{const C=b.resolveComponent("a-option"),T=b.resolveComponent("a-select"),A=b.resolveComponent("icon-plus"),k=b.resolveComponent("a-button"),M=b.resolveComponent("a-button-group"),H=b.resolveComponent("icon-drag-arrow"),N=b.resolveComponent("a-input"),j=b.resolveComponent("icon-delete"),G=b.resolveComponent("a-checkbox"),V=b.resolveComponent("a-link"),J=b.resolveComponent("a-upload"),rt=b.resolveComponent("icon-close-circle-fill"),it=b.resolveComponent("a-drawer");return b.openBlock(),b.createBlock(it,{width:500,visible:t.show,footer:!1,onCancel:f,unmountOnClose:""},{title:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(t.data.type)+"组件编辑 ",1)]),default:b.withCtx(()=>[b.createElementVNode("div",Pwt,[b.createElementVNode("div",Fwt,[S[24]||(S[24]=b.createElementVNode("span",{class:"header-title"},"组件宽度",-1)),b.createVNode(T,{modelValue:t.data.width,"onUpdate:modelValue":S[0]||(S[0]=W=>t.data.width=W),placeholder:"请选择","allow-clear":""},{default:b.withCtx(()=>[b.createVNode(C,{value:"default"},{default:b.withCtx(()=>S[20]||(S[20]=[b.createTextVNode("默认")])),_:1,__:[20]}),b.createVNode(C,{value:"small"},{default:b.withCtx(()=>S[21]||(S[21]=[b.createTextVNode("小")])),_:1,__:[21]}),b.createVNode(C,{value:"medium"},{default:b.withCtx(()=>S[22]||(S[22]=[b.createTextVNode("中")])),_:1,__:[22]}),b.createVNode(C,{value:"large"},{default:b.withCtx(()=>S[23]||(S[23]=[b.createTextVNode("大")])),_:1,__:[23]})]),_:1},8,["modelValue"])]),b.createElementVNode("div",kwt,[S[27]||(S[27]=b.createElementVNode("span",{class:"header-title"},"组件背景",-1)),b.createVNode(T,{modelValue:t.data.background,"onUpdate:modelValue":S[1]||(S[1]=W=>t.data.background=W),placeholder:"请选择","allow-clear":""},{default:b.withCtx(()=>[b.createVNode(C,{value:"white"},{default:b.withCtx(()=>S[25]||(S[25]=[b.createTextVNode("白色")])),_:1,__:[25]}),b.createVNode(C,{value:"grey"},{default:b.withCtx(()=>S[26]||(S[26]=[b.createTextVNode("灰色")])),_:1,__:[26]})]),_:1},8,["modelValue"])]),b.createVNode(M,{type:"primary"},{default:b.withCtx(()=>[b.createVNode(k,{size:"mini",onClick:S[2]||(S[2]=W=>d("Article"))},{icon:b.withCtx(()=>[b.createVNode(A)]),default:b.withCtx(()=>[S[28]||(S[28]=b.createTextVNode(" Article "))]),_:1,__:[28]}),b.createVNode(k,{size:"mini",onClick:S[3]||(S[3]=W=>d("Contact"))},{icon:b.withCtx(()=>[b.createVNode(A)]),default:b.withCtx(()=>[S[29]||(S[29]=b.createTextVNode(" Contact "))]),_:1,__:[29]}),b.createVNode(k,{size:"mini",onClick:S[4]||(S[4]=W=>d("Image"))},{icon:b.withCtx(()=>[b.createVNode(A)]),default:b.withCtx(()=>[S[30]||(S[30]=b.createTextVNode(" Image "))]),_:1,__:[30]}),b.createVNode(k,{size:"mini",onClick:S[5]||(S[5]=W=>d("ImageList"))},{icon:b.withCtx(()=>[b.createVNode(A)]),default:b.withCtx(()=>[S[31]||(S[31]=b.createTextVNode(" ImageList "))]),_:1,__:[31]}),b.createVNode(k,{size:"mini",onClick:S[6]||(S[6]=W=>d("Video"))},{icon:b.withCtx(()=>[b.createVNode(A)]),default:b.withCtx(()=>[S[32]||(S[32]=b.createTextVNode(" Video "))]),_:1,__:[32]})]),_:1}),b.createElementVNode("div",Nwt,[b.createVNode(b.unref(fl),b.mergeProps({modelValue:t.data.data,"onUpdate:modelValue":S[17]||(S[17]=W=>t.data.data=W),"component-data":{tag:"div",type:"transition-group",name:n.value?null:"flip-list"}},r.value,{onStart:S[18]||(S[18]=W=>n.value=!0),onEnd:S[19]||(S[19]=W=>n.value=!1),"item-key":"id"}),{item:b.withCtx(({element:W})=>[b.createElementVNode("div",Iwt,[b.createElementVNode("p",jwt,b.toDisplayString(W.type),1),b.createElementVNode("div",Rwt,[b.createVNode(H,{class:"drag-icon"})]),W.type==="Article"?(b.openBlock(),b.createElementBlock(b.Fragment,{key:0},[S[37]||(S[37]=b.createElementVNode("p",{class:"item-title"},"标题",-1)),b.createVNode(N,{modelValue:W.data.title,"onUpdate:modelValue":O=>W.data.title=O,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),S[38]||(S[38]=b.createElementVNode("p",{class:"item-title"},"内容",-1)),b.createVNode(b.unref(U1),{modelValue:W.data.content,"onUpdate:modelValue":O=>W.data.content=O},null,8,["modelValue","onUpdate:modelValue"]),S[39]||(S[39]=b.createElementVNode("p",{class:"item-title"},"按钮",-1)),b.createVNode(b.unref(fl),b.mergeProps({modelValue:W.data.buttonList,"onUpdate:modelValue":O=>W.data.buttonList=O,"component-data":{tag:"div",type:"transition-group",name:n.value?null:"flip-list"}},o.value,{disabled:!s(W.data.buttonList),onStart:S[7]||(S[7]=O=>n.value=!0),onEnd:S[8]||(S[8]=O=>n.value=!1),"item-key":"id"}),{item:b.withCtx(({element:O})=>[(b.openBlock(),b.createElementBlock("div",{class:b.normalizeClass(["item-button draggable-item",{"sortable-disabled":!s(W.data.buttonList)}]),key:O.id},[s(W.data.buttonList)?(b.openBlock(),b.createElementBlock("div",Lwt,[b.createVNode(H,{class:"drag-icon"})])):b.createCommentVNode("",!0),b.createVNode(j,{class:"btn-delete",onClick:B=>m(W.data.buttonList,O.id)},null,8,["onClick"]),b.createVNode(k,{type:"primary"},{default:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(O.text),1)]),_:2},1024),b.createElementVNode("div",Mwt,[b.createVNode(N,{class:"action-text",modelValue:O.text,"onUpdate:modelValue":B=>O.text=B,placeholder:"按钮文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),b.createVNode(N,{modelValue:O.url,"onUpdate:modelValue":B=>O.url=B,placeholder:"按钮链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])]),b.createVNode(G,{"model-value":O.isExternal},{default:b.withCtx(()=>S[33]||(S[33]=[b.createTextVNode("是否外部链接")])),_:2,__:[33]},1032,["model-value"])],2))]),_:2},1040,["modelValue","onUpdate:modelValue","component-data","disabled"]),b.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:O=>p(W.data.buttonList)},[b.createVNode(A),S[34]||(S[34]=b.createElementVNode("span",{class:"btn-text"},"添加按钮",-1))],8,Vwt),S[40]||(S[40]=b.createElementVNode("p",{class:"item-title"},"链接",-1)),b.createVNode(b.unref(fl),b.mergeProps({modelValue:W.data.linkList,"onUpdate:modelValue":O=>W.data.linkList=O,"component-data":{tag:"div",type:"transition-group",name:n.value?null:"flip-list"}},a.value,{disabled:!s(W.data.linkList),onStart:S[9]||(S[9]=O=>n.value=!0),onEnd:S[10]||(S[10]=O=>n.value=!1),"item-key":"id"}),{item:b.withCtx(({element:O})=>[(b.openBlock(),b.createElementBlock("div",{class:b.normalizeClass(["item-button draggable-item",{"sortable-disabled":!s(W.data.linkList)}]),key:O.id},[s(W.data.linkList)?(b.openBlock(),b.createElementBlock("div",zwt,[b.createVNode(H,{class:"drag-icon"})])):b.createCommentVNode("",!0),b.createVNode(j,{class:"btn-delete",onClick:B=>v(W.data.linkList,O.id)},null,8,["onClick"]),b.createVNode(V,{href:"link"},{default:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(O.text),1)]),_:2},1024),b.createElementVNode("div",Hwt,[b.createVNode(N,{class:"action-text",modelValue:O.text,"onUpdate:modelValue":B=>O.text=B,placeholder:"按钮文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),b.createVNode(N,{modelValue:O.url,"onUpdate:modelValue":B=>O.url=B,placeholder:"按钮链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])]),b.createVNode(G,{"model-value":O.isExternal},{default:b.withCtx(()=>S[35]||(S[35]=[b.createTextVNode("是否外部链接")])),_:2,__:[35]},1032,["model-value"])],2))]),_:2},1040,["modelValue","onUpdate:modelValue","component-data","disabled"]),b.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:O=>h(W.data.linkList)},[b.createVNode(A),S[36]||(S[36]=b.createElementVNode("span",{class:"btn-text"},"添加链接",-1))],8,Uwt)],64)):b.createCommentVNode("",!0),W.type==="Contact"?(b.openBlock(),b.createElementBlock(b.Fragment,{key:1},[S[44]||(S[44]=b.createElementVNode("p",{class:"item-title"},"标题",-1)),b.createVNode(N,{modelValue:W.data.title,"onUpdate:modelValue":O=>W.data.title=O,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),S[45]||(S[45]=b.createElementVNode("p",{class:"item-title"},"内容",-1)),b.createVNode(b.unref(U1),{modelValue:W.data.content,"onUpdate:modelValue":O=>W.data.content=O},null,8,["modelValue","onUpdate:modelValue"]),S[46]||(S[46]=b.createElementVNode("p",{class:"item-title"},"分类",-1)),b.createVNode(b.unref(fl),b.mergeProps({modelValue:W.data.categories,"onUpdate:modelValue":O=>W.data.categories=O,"component-data":{tag:"div",type:"transition-group",name:n.value?null:"flip-list"}},i.value,{disabled:!s(W.data.categories),onStart:S[11]||(S[11]=O=>n.value=!0),onEnd:S[12]||(S[12]=O=>n.value=!1),"item-key":"id"}),{item:b.withCtx(({element:O})=>[(b.openBlock(),b.createElementBlock("div",{class:b.normalizeClass(["item-button draggable-item",{"sortable-disabled":!s(W.data.categories)}]),key:O.id},[s(W.data.categories)?(b.openBlock(),b.createElementBlock("div",_wt,[b.createVNode(H,{class:"drag-icon"})])):b.createCommentVNode("",!0),b.createVNode(j,{class:"btn-delete",onClick:B=>g(W.data.categories,O.id)},null,8,["onClick"]),b.createVNode(V,{href:"link"},{default:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(O.text),1)]),_:2},1024),b.createElementVNode("div",Gwt,[b.createVNode(N,{modelValue:O.text,"onUpdate:modelValue":B=>O.text=B,placeholder:"分类名称","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])])],2))]),_:2},1040,["modelValue","onUpdate:modelValue","component-data","disabled"]),b.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:O=>y(W.data.categories)},[b.createVNode(A),S[41]||(S[41]=b.createElementVNode("span",{class:"btn-text"},"添加分类",-1))],8,Wwt),S[47]||(S[47]=b.createElementVNode("p",{class:"item-title"},"链接",-1)),b.createVNode(b.unref(fl),b.mergeProps({modelValue:W.data.linkList,"onUpdate:modelValue":O=>W.data.linkList=O,"component-data":{tag:"div",type:"transition-group",name:n.value?null:"flip-list"}},a.value,{disabled:!s(W.data.linkList),onStart:S[13]||(S[13]=O=>n.value=!0),onEnd:S[14]||(S[14]=O=>n.value=!1),"item-key":"id"}),{item:b.withCtx(({element:O})=>[(b.openBlock(),b.createElementBlock("div",{class:b.normalizeClass(["item-button draggable-item",{"sortable-disabled":!s(W.data.linkList)}]),key:O.id},[s(W.data.linkList)?(b.openBlock(),b.createElementBlock("div",Kwt,[b.createVNode(H,{class:"drag-icon"})])):b.createCommentVNode("",!0),b.createVNode(j,{class:"btn-delete",onClick:B=>v(W.data.linkList,O.id)},null,8,["onClick"]),b.createVNode(V,{href:"link"},{default:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(O.text),1)]),_:2},1024),b.createElementVNode("div",Ywt,[b.createVNode(N,{class:"action-text",modelValue:O.text,"onUpdate:modelValue":B=>O.text=B,placeholder:"按钮文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),b.createVNode(N,{modelValue:O.url,"onUpdate:modelValue":B=>O.url=B,placeholder:"按钮链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])]),b.createVNode(G,{"model-value":O.isExternal},{default:b.withCtx(()=>S[42]||(S[42]=[b.createTextVNode("是否外部链接")])),_:2,__:[42]},1032,["model-value"])],2))]),_:2},1040,["modelValue","onUpdate:modelValue","component-data","disabled"]),b.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:O=>h(W.data.linkList)},[b.createVNode(A),S[43]||(S[43]=b.createElementVNode("span",{class:"btn-text"},"添加链接",-1))],8,Xwt)],64)):b.createCommentVNode("",!0),W.type==="Image"?(b.openBlock(),b.createElementBlock(b.Fragment,{key:2},[b.createElementVNode("img",{class:"item-img",src:W.data.imgSrc},null,8,Zwt),b.createElementVNode("div",Jwt,[b.createVNode(N,{modelValue:W.data.imgSrc,"onUpdate:modelValue":O=>W.data.imgSrc=O,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),b.createVNode(J,{class:"fit-content","show-file-list":!1,action:"/"})]),b.createVNode(N,{class:"mt-10",modelValue:W.data.caption,"onUpdate:modelValue":O=>W.data.caption=O,placeholder:"图片描述","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),b.createVNode(N,{class:"mt-10",modelValue:W.data.alt,"onUpdate:modelValue":O=>W.data.alt=O,placeholder:"图片alt","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),b.createVNode(G,{class:"pt-10","model-value":W.data.isRound},{default:b.withCtx(()=>S[48]||(S[48]=[b.createTextVNode("圆角")])),_:2,__:[48]},1032,["model-value"])],64)):b.createCommentVNode("",!0),W.type==="ImageList"?(b.openBlock(),b.createElementBlock(b.Fragment,{key:3},[S[50]||(S[50]=b.createElementVNode("p",{class:"item-title"},"图片组",-1)),b.createElementVNode("div",Qwt,[b.createVNode(b.unref(fl),b.mergeProps({modelValue:W.data.imageList,"onUpdate:modelValue":O=>W.data.imageList=O,"component-data":{tag:"div",type:"transition-group",name:n.value?null:"flip-list"}},u.value,{disabled:!s(W.data.imageList),onStart:S[15]||(S[15]=O=>n.value=!0),onEnd:S[16]||(S[16]=O=>n.value=!1),"item-key":"id"}),{item:b.withCtx(({element:O})=>[(b.openBlock(),b.createElementBlock("div",{class:b.normalizeClass(["img-list-item flex draggable-item",{"sortable-disabled":!s(W.data.imageList)}]),key:O.id},[s(W.data.imageList)?(b.openBlock(),b.createElementBlock("div",$wt,[b.createVNode(H,{class:"drag-icon"})])):b.createCommentVNode("",!0),O.src?(b.openBlock(),b.createElementBlock("div",qwt,[b.createVNode(rt,{class:"item-img-dlete",onClick:B=>E(W.data.imageList,O.id)},null,8,["onClick"]),b.createElementVNode("img",{class:"item-img small-img",src:O.src},null,8,tEt)])):b.createCommentVNode("",!0),b.createElementVNode("div",eEt,[b.createVNode(N,{style:{"margin-bottom":"12px"},modelValue:O.src,"onUpdate:modelValue":B=>O.src=B,placeholder:"请输入图片路径","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),b.createVNode(J,{"show-file-list":!1,action:"/"})])],2))]),_:2},1040,["modelValue","onUpdate:modelValue","component-data","disabled"])]),b.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:O=>w(W.data.imageList)},[b.createVNode(A),S[49]||(S[49]=b.createElementVNode("span",{class:"btn-text"},"添加图片",-1))],8,nEt)],64)):b.createCommentVNode("",!0),W.type==="Video"?(b.openBlock(),b.createElementBlock(b.Fragment,{key:4},[S[51]||(S[51]=b.createElementVNode("p",{class:"item-title"},"视频",-1)),b.createElementVNode("video",{class:"item-img",src:W.data.videoSrc,controls:""},null,8,rEt),b.createElementVNode("div",oEt,[b.createVNode(N,{modelValue:W.data.videoSrc,"onUpdate:modelValue":O=>W.data.videoSrc=O,placeholder:"请输入视频链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),b.createVNode(J,{class:"fit-content","show-file-list":!1,action:"/"})]),b.createElementVNode("img",{class:"item-img",src:W.data.imgSrc},null,8,iEt),b.createElementVNode("div",aEt,[b.createVNode(N,{modelValue:W.data.imgSrc,"onUpdate:modelValue":O=>W.data.imgSrc=O,placeholder:"视频封面","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),b.createVNode(J,{class:"fit-content","show-file-list":!1,action:"/"})])],64)):b.createCommentVNode("",!0)])]),_:1},16,["modelValue","component-data"])])])]),_:1},8,["visible"])}}}),[["__scopeId","data-v-020d7e27"]]),sEt={class:"operate-page"},lEt={class:"operate-btn flex justify-end"},cEt=Wo(b.defineComponent({__name:"index",props:{show:{type:Boolean,default:!1}},emits:["handleCopy","handleDelete","handleEdit"],setup(t,{emit:e}){const n=e,r=()=>{n("handleCopy")},o=()=>{n("handleDelete")},a=()=>{n("handleEdit")};return(i,u)=>{const s=b.resolveComponent("icon-copy"),l=b.resolveComponent("icon-delete"),c=b.resolveComponent("icon-edit");return b.withDirectives((b.openBlock(),b.createElementBlock("div",sEt,[b.createElementVNode("div",lEt,[b.createElementVNode("div",{class:"btn-item btn-copy flex items-center",onClick:r},[b.createVNode(s),u[0]||(u[0]=b.createElementVNode("span",{class:"btn-text"},"复制",-1))]),b.createElementVNode("div",{class:"btn-item btn-delete flex items-center",onClick:o},[b.createVNode(l),u[1]||(u[1]=b.createElementVNode("span",{class:"btn-text"},"删除",-1))]),b.createElementVNode("div",{class:"btn-item btn-edit flex items-center",onClick:a},[b.createVNode(c),u[2]||(u[2]=b.createElementVNode("span",{class:"btn-text"},"编辑",-1))])])],512)),[[b.vShow,t.show]])}}}),[["__scopeId","data-v-5213869a"]]),fEt={class:"article-list-left"},dEt={class:"article-list-right"},N8=Wo(b.defineComponent({name:"ArticleList",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!1}},emits:["update:modelValue","handleDelete","handleCopy"],setup(t,{emit:e}){const n=t,r=e,o=b.computed(()=>n.modelValue&&n.modelValue.data&&n.modelValue.data.length?n.modelValue.data.some(c=>c.type==="Image"||c.type==="Video"||c.type==="ImageList"):!1),a=()=>{if(n.modelValue&&n.modelValue.id)return;const c={id:Ue(),type:"ArticleList",isPreview:!1,width:"",background:"",data:[{id:Ue(),type:"Article",data:{title:"这里是标题",content:"耀华国际教育学校浙江桐乡校区成立于 2017 年,先进的校园设施确保学 生在安全友好的环境中学习。学校坐落于高桥镇,提供从幼儿阶段至高中 阶段 (K2 至13 年级) 的教育服务,招收2 岁至18 岁本地和外籍学生。",buttonList:[{id:Ue(),text:"查看更多",url:"https://www.baidu.com",isExternal:!1}],linkList:[{id:Ue(),text:"查看更多",url:"https://www.baidu.com",isExternal:!1}]}},{id:Ue(),type:"Image",data:{imgSrc:"https://osswebsite.ycyw.com/media-library/ywies-bj/images/home/ywies-tx.jpg",caption:"",alt:"",isRound:!1}},{id:Ue(),type:"Contact",data:{title:"这里是标题",content:"耀华国际教育学校浙江桐乡校区成立于 2017 年,先进的校园设施确保学 生在安全友好的环境中学习。学校坐落于高桥镇,提供从幼儿阶段至高中 阶段 (K2 至13 年级) 的教育服务,招收2 岁至18 岁本地和外籍学生。",categories:[{id:Ue(),text:"分类1"}],linkList:[{id:Ue(),text:"查看更多",url:"https://www.baidu.com",isExternal:!1}]}},{id:Ue(),type:"ImageList",data:{imageList:[{id:Ue(),src:"https://osswebsite.ycyw.com/media-library/ywies-bj/images/home/ywies-tx.jpg"}]}},{id:Ue(),type:"Video",data:{videoSrc:"http://mpv.videocc.net/4b964bbdf4/3/4b964bbdf481505df84cfd703c4b3043_2.mp4",imgSrc:"https://object.ycyw.com/media-library/ycyw-edu/news/20250628%20HKDSE%20Forum/Cover.jpg"}}]};r("update:modelValue",c)},i=b.ref(!1),u=b.ref(!1),s=()=>{r("handleDelete",n.modelValue.id)},l=()=>{r("handleCopy",n.modelValue)};return a(),(c,f)=>{var m,h;const d=b.resolveComponent("a-col"),p=b.resolveComponent("a-row");return b.openBlock(),b.createElementBlock(b.Fragment,null,[b.createElementVNode("div",{class:"article-list-container",style:b.normalizeStyle({background:(m=t.modelValue)!=null&&m.background?((h=t.modelValue)==null?void 0:h.background)==="white"?"#fff":"#F7F7FA":"transparent"})},[b.createVNode(p,{class:"article-list",onMouseenter:f[2]||(f[2]=v=>i.value=!0),onMouseleave:f[3]||(f[3]=v=>i.value=!1)},{default:b.withCtx(()=>[b.createVNode(d,{sm:{span:24},md:{span:o.value?12:24}},{default:b.withCtx(()=>{var v;return[b.createElementVNode("div",fEt,[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList((v=t.modelValue)==null?void 0:v.data,y=>(b.openBlock(),b.createElementBlock(b.Fragment,{key:y.id},[y.type==="Article"?(b.openBlock(),b.createBlock(p_,{key:0,article:y.data},null,8,["article"])):b.createCommentVNode("",!0),y.type==="Contact"?(b.openBlock(),b.createBlock(b_,{key:1,contact:y.data},null,8,["contact"])):b.createCommentVNode("",!0)],64))),128))])]}),_:1},8,["md"]),o.value?(b.openBlock(),b.createBlock(d,{key:0,sm:{span:24},md:{span:12}},{default:b.withCtx(()=>{var v;return[b.createElementVNode("div",dEt,[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList((v=t.modelValue)==null?void 0:v.data,y=>(b.openBlock(),b.createBlock(P_,{key:y.id,type:y.type,data:y.data,preview:t.modelValue.isPreview},null,8,["type","data","preview"]))),128))])]}),_:1})):b.createCommentVNode("",!0),b.createVNode(cEt,{show:i.value,"onUpdate:show":f[0]||(f[0]=v=>i.value=v),onHandleEdit:f[1]||(f[1]=v=>u.value=!0),onHandleDelete:s,onHandleCopy:l},null,8,["show"])]),_:1})],4),b.createVNode(uEt,{show:u.value,"onUpdate:show":f[4]||(f[4]=v=>u.value=v),data:t.modelValue},null,8,["show","data"])],64)}}}),[["__scopeId","data-v-31f46aef"]]),pEt={class:"hero-slide"},hEt={class:"slide-container"},gEt={key:0,class:"slide-indicators"},vEt=["onClick"],I8=Wo(b.defineComponent({name:"HeroSlide",__name:"index",props:{autoPlayInterval:{default:3e3},showIndicators:{type:Boolean,default:!0},autoPlay:{type:Boolean,default:!0}},emits:["change","click"],setup(t,{emit:e}){const n=t,r=e,o=b.ref(0),a=b.ref([{title:"轮播图标题 1",description:"这是第一张轮播图的描述内容"},{title:"轮播图标题 2",description:"这是第二张轮播图的描述内容"},{title:"轮播图标题 3",description:"这是第三张轮播图的描述内容"}]);let i=null;const u=f=>{o.value=f,r("change",f)},s=()=>{o.value=(o.value+1)%a.value.length,r("change",o.value)},l=()=>{n.autoPlay&&(i=window.setInterval(s,n.autoPlayInterval))},c=()=>{i&&(clearInterval(i),i=null)};return b.onMounted(()=>{l()}),b.onUnmounted(()=>{c()}),(f,d)=>(b.openBlock(),b.createElementBlock("div",pEt,[b.createElementVNode("div",hEt,[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList(a.value,(p,m)=>(b.openBlock(),b.createElementBlock("div",{key:m,class:b.normalizeClass(["slide-item",{active:o.value===m}])},[b.createElementVNode("h2",null,b.toDisplayString(p.title),1),b.createElementVNode("p",null,b.toDisplayString(p.description),1)],2))),128))]),f.showIndicators?(b.openBlock(),b.createElementBlock("div",gEt,[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList(a.value,(p,m)=>(b.openBlock(),b.createElementBlock("span",{key:m,class:b.normalizeClass(["indicator",{active:o.value===m}]),onClick:h=>u(m)},null,10,vEt))),128))])):b.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-4198d280"]]),j8={default:{primaryColor:"#3b82f6",secondaryColor:"#a855f7",fontSize:"14px",fontFamily:"Inter, sans-serif",borderRadius:"6px",spacing:"16px"},dark:{primaryColor:"#60a5fa",secondaryColor:"#c084fc",fontSize:"14px",fontFamily:"Inter, sans-serif",borderRadius:"6px",spacing:"16px"},compact:{primaryColor:"#3b82f6",secondaryColor:"#a855f7",fontSize:"12px",fontFamily:"Inter, sans-serif",borderRadius:"4px",spacing:"12px"},large:{primaryColor:"#3b82f6",secondaryColor:"#a855f7",fontSize:"16px",fontFamily:"Inter, sans-serif",borderRadius:"8px",spacing:"20px"}},Fr=b.ref(j8.default),xi=b.ref(!1);function QU(){const t=m=>{typeof m=="string"?Fr.value={...j8[m]}:Fr.value={...m},r()},e=m=>{Fr.value={...Fr.value,...m},r()},n=()=>{xi.value=!xi.value,document.documentElement.classList.toggle("dark",xi.value)},r=()=>{const m=document.documentElement,h=Fr.value;m.style.setProperty("--theme-primary",h.primaryColor),m.style.setProperty("--theme-secondary",h.secondaryColor),m.style.setProperty("--font-size-default",h.fontSize),m.style.setProperty("--font-family-sans",h.fontFamily),m.style.setProperty("--radius-md",h.borderRadius),m.style.setProperty("--spacing-md",h.spacing)},o=m=>b.computed(()=>m==="primary"?Fr.value.primaryColor:Fr.value.secondaryColor),a=()=>b.computed(()=>Fr.value.fontSize),i=()=>b.computed(()=>Fr.value.fontFamily),u=()=>b.computed(()=>Fr.value.borderRadius),s=()=>b.computed(()=>Fr.value.spacing),l=()=>{t("default"),xi.value=!1,document.documentElement.classList.remove("dark")},c=()=>JSON.stringify(Fr.value,null,2),f=m=>{try{const h=JSON.parse(m);return t(h),!0}catch(h){return console.error("Invalid theme configuration:",h),!1}},d=()=>{const m=localStorage.getItem("officialblock-theme"),h=localStorage.getItem("officialblock-dark-mode");if(m)try{const g=JSON.parse(m);t(g)}catch(g){console.error("Failed to restore theme:",g)}h&&(xi.value=h==="true",document.documentElement.classList.toggle("dark",xi.value));const v=window.matchMedia("(prefers-color-scheme: dark)"),y=g=>{localStorage.getItem("officialblock-dark-mode")||(xi.value=g.matches,document.documentElement.classList.toggle("dark",xi.value))};v.addEventListener("change",y),r()},p=()=>{localStorage.setItem("officialblock-theme",JSON.stringify(Fr.value)),localStorage.setItem("officialblock-dark-mode",xi.value.toString())};return{currentTheme:b.computed(()=>Fr.value),isDarkMode:b.computed(()=>xi.value),themePresets:j8,setTheme:t,updateTheme:e,toggleDarkMode:n,resetTheme:l,exportTheme:c,importTheme:f,initTheme:d,saveTheme:p,getThemeColor:o,getFontSize:a,getFontFamily:i,getBorderRadius:u,getSpacing:s}}class $U{static hexToRgb(e){const n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return n?{r:parseInt(n[1],16),g:parseInt(n[2],16),b:parseInt(n[3],16)}:null}static rgbToHex(e,n,r){return"#"+((1<<24)+(e<<16)+(n<<8)+r).toString(16).slice(1)}static adjustBrightness(e,n){const r=this.hexToRgb(e);if(!r)return e;const o=a=>{const i=Math.round(a*(1+n/100));return Math.max(0,Math.min(255,i))};return this.rgbToHex(o(r.r),o(r.g),o(r.b))}static generateColorScale(e){const n=[50,100,200,300,400,500,600,700,800,900,950],r={};return n.forEach((o,a)=>{let i;o<=500?i=80-a*16:i=-20-(a-5)*12,r[o.toString()]=this.adjustBrightness(e,i)}),r}static getContrastRatio(e,n){const r=s=>{const l=this.hexToRgb(s);if(!l)return 0;const c=f=>{const d=f/255;return d<=.03928?d/12.92:Math.pow((d+.055)/1.055,2.4)};return .2126*c(l.r)+.7152*c(l.g)+.0722*c(l.b)},o=r(e),a=r(n),i=Math.max(o,a),u=Math.min(o,a);return(i+.05)/(u+.05)}static isDarkColor(e){const n=this.hexToRgb(e);return n?(n.r*299+n.g*587+n.b*114)/1e3<128:!1}static getBestTextColor(e){return this.isDarkColor(e)?"#ffffff":"#000000"}static mixColors(e,n,r=.5){const o=this.hexToRgb(e),a=this.hexToRgb(n);if(!o||!a)return e;const i=(u,s)=>Math.round(u*(1-r)+s*r);return this.rgbToHex(i(o.r,a.r),i(o.g,a.g),i(o.b,a.b))}}class mEt{static getCurrentBreakpoint(){const e=window.innerWidth;return e<475?"xs":e<640?"sm":e<768?"md":e<1024?"lg":e<1280?"xl":"2xl"}static isMobile(){return window.innerWidth<768}static isTablet(){const e=window.innerWidth;return e>=768&&e<1024}static isDesktop(){return window.innerWidth>=1024}static onBreakpointChange(e){let n=this.getCurrentBreakpoint();const r=()=>{const o=this.getCurrentBreakpoint();o!==n&&(n=o,e(o))};return window.addEventListener("resize",r),()=>{window.removeEventListener("resize",r)}}}class qU{static animate(e,n,r,o,a=this.easing.easeOutQuad){const i=performance.now();let u;const s=l=>{const c=l-i,f=Math.min(c/r,1),d=a(f),p=e+(n-e)*d;o(p),f<1&&(u=requestAnimationFrame(s))};return u=requestAnimationFrame(s),()=>{u&&cancelAnimationFrame(u)}}static scrollTo(e,n,r=300,o=this.easing.easeOutQuad){return new Promise(a=>{const i=e===window,u=i?window.pageYOffset:e.scrollTop;this.animate(u,n,r,s=>{i?window.scrollTo(0,s):e.scrollTop=s},o),setTimeout(a,r)})}}r_(qU,"easing",{linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>e*(2-e),easeInOutQuad:e=>e<.5?2*e*e:-1+(4-2*e)*e,easeInCubic:e=>e*e*e,easeOutCubic:e=>--e*e*e+1,easeInOutCubic:e=>e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1});class yEt{static setItem(e,n){try{return localStorage.setItem(e,JSON.stringify(n)),!0}catch(r){return console.warn("Failed to save to localStorage:",r),!1}}static getItem(e,n){try{const r=localStorage.getItem(e);return r?JSON.parse(r):n||null}catch(r){return console.warn("Failed to read from localStorage:",r),n||null}}static removeItem(e){try{return localStorage.removeItem(e),!0}catch(n){return console.warn("Failed to remove from localStorage:",n),!1}}static cleanExpired(){const e=Date.now(),n=[];for(let r=0;r<localStorage.length;r++){const o=localStorage.key(r);if(o&&o.startsWith("officialblock-"))try{const a=JSON.parse(localStorage.getItem(o)||"{}");a.expires&&a.expires<e&&n.push(o)}catch{}}n.forEach(r=>localStorage.removeItem(r))}}const bEt={class:"theme-preview"},wEt={class:"preview-content"},EEt={class:"color-preview"},SEt={class:"color-swatches"},xEt={class:"typography-preview"},CEt={class:"font-samples"},DEt={class:"component-preview"},OEt={class:"component-samples"},AEt={class:"sample-group"},TEt={class:"button-group"},BEt={class:"sample-group"},PEt={class:"sample-group"},FEt={class:"sample-group"},kEt={class:"tag-group"},NEt={class:"layout-preview"},IEt={class:"item-header"},jEt={class:"item-info"},REt={class:"item-content"},t_=Wo(b.defineComponent({__name:"ThemePreview",setup(t){const{currentTheme:e}=QU(),n=r=>$U.getBestTextColor(r);return(r,o)=>(b.openBlock(),b.createElementBlock("div",bEt,[o[12]||(o[12]=b.createElementVNode("div",{class:"preview-header"},[b.createElementVNode("h3",null,"主题预览"),b.createElementVNode("p",null,"实时预览当前主题效果")],-1)),b.createElementVNode("div",wEt,[b.createElementVNode("div",EEt,[o[3]||(o[3]=b.createElementVNode("h4",null,"颜色系统",-1)),b.createElementVNode("div",SEt,[b.createElementVNode("div",{class:"color-swatch primary",style:b.normalizeStyle({backgroundColor:b.unref(e).primaryColor})},[b.createElementVNode("span",{style:b.normalizeStyle({color:n(b.unref(e).primaryColor)})}," Primary ",4)],4),b.createElementVNode("div",{class:"color-swatch secondary",style:b.normalizeStyle({backgroundColor:b.unref(e).secondaryColor})},[b.createElementVNode("span",{style:b.normalizeStyle({color:n(b.unref(e).secondaryColor)})}," Secondary ",4)],4),o[0]||(o[0]=b.createElementVNode("div",{class:"color-swatch success"},[b.createElementVNode("span",null,"Success")],-1)),o[1]||(o[1]=b.createElementVNode("div",{class:"color-swatch warning"},[b.createElementVNode("span",null,"Warning")],-1)),o[2]||(o[2]=b.createElementVNode("div",{class:"color-swatch error"},[b.createElementVNode("span",null,"Error")],-1))])]),b.createElementVNode("div",xEt,[o[5]||(o[5]=b.createElementVNode("h4",null,"字体系统",-1)),b.createElementVNode("div",CEt,[b.createElementVNode("div",{class:"font-sample",style:b.normalizeStyle({fontSize:b.unref(e).fontSize,fontFamily:b.unref(e).fontFamily})},[b.createElementVNode("strong",null,"默认字体 ("+b.toDisplayString(b.unref(e).fontSize)+")",1),o[4]||(o[4]=b.createElementVNode("p",null,"这是使用当前主题字体设置的示例文本。The quick brown fox jumps over the lazy dog.",-1))],4)])]),b.createElementVNode("div",DEt,[o[10]||(o[10]=b.createElementVNode("h4",null,"组件预览",-1)),b.createElementVNode("div",OEt,[b.createElementVNode("div",AEt,[o[6]||(o[6]=b.createElementVNode("label",null,"按钮",-1)),b.createElementVNode("div",TEt,[b.createElementVNode("button",{class:"btn btn-primary",style:b.normalizeStyle({backgroundColor:b.unref(e).primaryColor,borderRadius:b.unref(e).borderRadius,fontSize:b.unref(e).fontSize})}," 主要按钮 ",4),b.createElementVNode("button",{class:"btn btn-secondary",style:b.normalizeStyle({backgroundColor:b.unref(e).secondaryColor,borderRadius:b.unref(e).borderRadius,fontSize:b.unref(e).fontSize})}," 次要按钮 ",4),b.createElementVNode("button",{class:"btn btn-outline",style:b.normalizeStyle({borderColor:b.unref(e).primaryColor,color:b.unref(e).primaryColor,borderRadius:b.unref(e).borderRadius,fontSize:b.unref(e).fontSize})}," 轮廓按钮 ",4)])]),b.createElementVNode("div",BEt,[o[7]||(o[7]=b.createElementVNode("label",null,"卡片",-1)),b.createElementVNode("div",{class:"card-sample",style:b.normalizeStyle({borderRadius:b.unref(e).borderRadius,padding:b.unref(e).spacing})},[b.createElementVNode("h5",{style:b.normalizeStyle({fontSize:`calc(${b.unref(e).fontSize} * 1.2)`})}," 卡片标题 ",4),b.createElementVNode("p",{style:b.normalizeStyle({fontSize:b.unref(e).fontSize})}," 这是一个卡片组件的预览示例,展示了当前主题的样式效果。 ",4)],4)]),b.createElementVNode("div",PEt,[o[8]||(o[8]=b.createElementVNode("label",null,"输入框",-1)),b.createElementVNode("input",{type:"text",class:"input-sample",placeholder:"输入框示例",style:b.normalizeStyle({borderRadius:b.unref(e).borderRadius,fontSize:b.unref(e).fontSize,padding:`calc(${b.unref(e).spacing} * 0.5) ${b.unref(e).spacing}`})},null,4)]),b.createElementVNode("div",FEt,[o[9]||(o[9]=b.createElementVNode("label",null,"标签",-1)),b.createElementVNode("div",kEt,[b.createElementVNode("span",{class:"tag tag-primary",style:b.normalizeStyle({backgroundColor:`${b.unref(e).primaryColor}20`,color:b.unref(e).primaryColor,borderRadius:`calc(${b.unref(e).borderRadius} * 0.5)`,fontSize:`calc(${b.unref(e).fontSize} * 0.875)`,padding:`calc(${b.unref(e).spacing} * 0.25) calc(${b.unref(e).spacing} * 0.5)`})}," 主要标签 ",4),b.createElementVNode("span",{class:"tag tag-secondary",style:b.normalizeStyle({backgroundColor:`${b.unref(e).secondaryColor}20`,color:b.unref(e).secondaryColor,borderRadius:`calc(${b.unref(e).borderRadius} * 0.5)`,fontSize:`calc(${b.unref(e).fontSize} * 0.875)`,padding:`calc(${b.unref(e).spacing} * 0.25) calc(${b.unref(e).spacing} * 0.5)`})}," 次要标签 ",4)])])])]),b.createElementVNode("div",NEt,[o[11]||(o[11]=b.createElementVNode("h4",null,"布局预览",-1)),b.createElementVNode("div",{class:"layout-sample",style:b.normalizeStyle({gap:b.unref(e).spacing})},[b.createElementVNode("div",{class:"layout-item",style:b.normalizeStyle({borderRadius:b.unref(e).borderRadius,padding:b.unref(e).spacing})},[b.createElementVNode("div",IEt,[b.createElementVNode("div",{class:"item-avatar",style:b.normalizeStyle({backgroundColor:b.unref(e).primaryColor,borderRadius:b.unref(e).borderRadius})},null,4),b.createElementVNode("div",jEt,[b.createElementVNode("h6",{style:b.normalizeStyle({fontSize:b.unref(e).fontSize})},"用户名称",4),b.createElementVNode("p",{style:b.normalizeStyle({fontSize:`calc(${b.unref(e).fontSize} * 0.875)`})}," 用户描述信息 ",4)])])],4),b.createElementVNode("div",{class:"layout-item",style:b.normalizeStyle({borderRadius:b.unref(e).borderRadius,padding:b.unref(e).spacing})},[b.createElementVNode("div",REt,[b.createElementVNode("h6",{style:b.normalizeStyle({fontSize:b.unref(e).fontSize})},"内容标题",4),b.createElementVNode("p",{style:b.normalizeStyle({fontSize:`calc(${b.unref(e).fontSize} * 0.875)`})}," 这是一段示例内容,用于展示当前主题的布局效果。 ",4)])],4)],4)])])]))}}),[["__scopeId","data-v-8a4e29bd"]]),LEt={install:t=>{t.component("ArticleList",N8)}},MEt={install:t=>{t.component("HeroSlide",I8)}},VEt={install:t=>{t.component("ArticleList",N8),t.component("HeroSlide",I8),t.component("RichTextEditor",U1),t.component("ThemePreview",t_)}};Ye.AnimationUtils=qU,Ye.ArticleList=N8,Ye.ArticleListPlugin=LEt,Ye.HeroSlide=I8,Ye.HeroSlidePlugin=MEt,Ye.ResponsiveUtils=mEt,Ye.RichTextEditor=U1,Ye.StorageUtils=yEt,Ye.ThemePreview=t_,Ye.ThemeUtils=$U,Ye.default=VEt,Ye.useTheme=QU,Object.defineProperties(Ye,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});