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.
- package/README.md +25 -1
- package/dist/official-block.cjs.js +195 -1
- package/dist/official-block.es.js +27230 -72
- package/dist/official-block.umd.js +195 -1
- package/dist/style.css +1 -1
- package/package.json +13 -2
- package/src/App.vue +32 -82
- package/src/components/ArticleList/article.vue +73 -0
- package/src/components/ArticleList/contact.vue +95 -0
- package/src/components/ArticleList/index.vue +220 -46
- package/src/components/ArticleList/setting.vue +709 -0
- package/src/components/Button/index.vue +183 -0
- package/src/components/Media/index.vue +327 -0
- package/src/components/Operate/index.vue +74 -0
- package/src/components/RichTextEditor/RichTextEditor.vue +277 -0
- package/src/components/RichTextEditor/index.ts +7 -0
- package/src/components/ThemePreview/ThemePreview.vue +462 -0
- package/src/components/ThemePreview/index.ts +4 -0
- package/src/components/index.ts +3 -0
- package/src/composables/useTheme.ts +205 -0
- package/src/index.ts +15 -4
- package/src/main.ts +16 -1
- package/src/router/index.ts +96 -0
- package/src/style.css +2 -4
- package/src/styles/editor.scss +649 -0
- package/src/styles/test.scss +20 -0
- package/src/styles/variables.scss +669 -0
- package/src/utils/common.ts +13 -0
- package/src/utils/theme.ts +335 -0
- package/src/views/Layout.vue +250 -0
- package/src/views/NotFound.vue +114 -0
- package/src/views/components/ArticleListDemo.vue +166 -0
- package/src/views/components/DragLimitDemo.vue +573 -0
- package/src/views/components/DragSortDemo.vue +610 -0
- package/src/views/components/HeroSlideDemo.vue +353 -0
- package/src/views/components/RichTextEditorDemo.vue +53 -0
- package/src/views/components/ThemeDemo.vue +477 -0
- package/src/views/guide/Installation.vue +234 -0
- package/src/views/guide/Introduction.vue +174 -0
- package/src/views/guide/QuickStart.vue +265 -0
|
@@ -1 +1,195 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";var oU=Object.defineProperty;var iU=(t,e,r)=>e in t?oU(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var M8=(t,e,r)=>iU(t,typeof e!="symbol"?e+"":e,r);Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const w=require("vue");function Sr(t=16){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let r="";for(let n=0;n<t;n++)r+=e.charAt(Math.floor(Math.random()*e.length));return r}const aU={class:"button-text"},uU={class:"link-text"},sU=w.defineComponent({__name:"index",props:{type:{type:String,default:"button"},data:{type:Object,default:()=>{}}},setup(t){const e=t,r=()=>{window.open(e.data.url,"_blank")};return console.log("data=====",e.data),(n,o)=>t.type==="button"?(w.openBlock(),w.createElementBlock("div",{key:0,class:"button-primary flex-inline flex-center",onClick:r},[w.createElementVNode("span",aU,w.toDisplayString(t.data.text),1),o[0]||(o[0]=w.createElementVNode("span",{class:"button-icon"},null,-1))])):(w.openBlock(),w.createElementBlock("div",{key:1,class:"link-button flex-inline flex-center",onClick:r},[w.createElementVNode("span",uU,w.toDisplayString(t.data.text),1),o[1]||(o[1]=w.createElementVNode("span",{class:"button-icon link-icon"},null,-1))]))}}),Si=(t,e)=>{const r=t.__vccOpts||t;for(const[n,o]of e)r[n]=o;return r},PS=Si(sU,[["__scopeId","data-v-f9e75c11"]]),lU={class:"article-item"},cU={class:"article-item-title"},fU=["innerHTML"],dU={class:"article-item-button"},pU={class:"article-item-link"},hU=w.defineComponent({__name:"article",props:{article:{type:Object,default:()=>{}}},setup(t){return(e,r)=>(w.openBlock(),w.createElementBlock("div",lU,[w.createElementVNode("h4",cU,w.toDisplayString(t.article.title),1),w.createElementVNode("div",{class:"editor-content",innerHTML:t.article.content},null,8,fU),w.createElementVNode("div",dU,[(w.openBlock(!0),w.createElementBlock(w.Fragment,null,w.renderList(t.article.buttonList,n=>(w.openBlock(),w.createBlock(PS,{key:n.id,data:n},null,8,["data"]))),128))]),w.createElementVNode("div",pU,[(w.openBlock(!0),w.createElementBlock(w.Fragment,null,w.renderList(t.article.linkList,n=>(w.openBlock(),w.createBlock(PS,{key:n.id,data:n,type:"link"},null,8,["data"]))),128))])]))}}),gU=Si(hU,[["__scopeId","data-v-7f3f4d15"]]),vU={class:"contact-item"},mU={class:"contact-item-categories"},yU={class:"contact-item-title"},bU=["innerHTML"],wU={class:"contact-item-link"},EU=w.defineComponent({__name:"contact",props:{contact:{type:Object,default:()=>{}}},setup(t){return(e,r)=>(w.openBlock(),w.createElementBlock("div",vU,[w.createElementVNode("div",mU,[(w.openBlock(!0),w.createElementBlock(w.Fragment,null,w.renderList(t.contact.categories,n=>(w.openBlock(),w.createElementBlock("p",{class:"categories",key:n.id},w.toDisplayString(n.text),1))),128))]),w.createElementVNode("h4",yU,w.toDisplayString(t.contact.title),1),w.createElementVNode("div",{class:"editor-content",innerHTML:t.contact.content},null,8,bU),w.createElementVNode("div",wU,[(w.openBlock(!0),w.createElementBlock(w.Fragment,null,w.renderList(t.contact.linkList,n=>(w.openBlock(),w.createBlock(PS,{key:n.id,data:n,type:"link"},null,8,["data"]))),128))])]))}}),SU=Si(EU,[["__scopeId","data-v-e9c9c007"]]),xU={key:0,class:"image-container"},CU={key:0,class:"image-desc"},DU={key:1,class:"video-container flex-inline flex-center"},OU=["src"],AU={class:"video-thumbnail flex flex-center"},TU=["src"],BU={key:2,class:"image-list-container"},PU={key:0,class:"image-preview"},FU={class:"image-list-wrapper"},kU=["src","onClick"],NU=w.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,r=w.ref(),n=w.ref(!1),o=()=>{var y;(y=r.value)==null||y.play(),n.value=!0},a=w.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=w.ref(null),s=w.ref(!1),l=w.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 w.watch(()=>{var y;return(y=e.data)==null?void 0:y.imageList},async()=>{await w.nextTick(),c()}),w.onMounted(()=>{window.addEventListener("resize",c),w.nextTick(c)}),w.onUnmounted(()=>{window.removeEventListener("resize",c)}),(y,g)=>{const b=w.resolveComponent("a-image"),E=w.resolveComponent("icon-caret-right");return w.openBlock(),w.createElementBlock(w.Fragment,null,[t.type==="Image"?(w.openBlock(),w.createElementBlock("div",xU,[w.createVNode(b,{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?(w.openBlock(),w.createElementBlock("p",CU,w.toDisplayString(t.data.caption),1)):w.createCommentVNode("",!0)])):w.createCommentVNode("",!0),t.type==="Video"?(w.openBlock(),w.createElementBlock("div",DU,[w.createElementVNode("video",{class:"video",ref_key:"videoElement",ref:r,src:t.data.videoSrc,controls:""},null,8,OU),n.value?w.createCommentVNode("",!0):(w.openBlock(),w.createElementBlock(w.Fragment,{key:0},[w.createElementVNode("div",AU,[w.createElementVNode("img",{src:t.data.imgSrc},null,8,TU)]),w.createElementVNode("div",{class:"play-button flex flex-center",onClick:o},[w.createVNode(E,{style:{color:"#fff"}})])],64))])):w.createCommentVNode("",!0),t.type==="ImageList"?(w.openBlock(),w.createElementBlock("div",BU,[a.value?(w.openBlock(),w.createElementBlock("div",PU,[w.createVNode(b,{class:"image",src:a.value,preview:t.preview,fit:"contain",width:"100%",height:"100%"},null,8,["src","preview"])])):w.createCommentVNode("",!0),w.createElementVNode("div",FU,[w.withDirectives(w.createElementVNode("div",{class:"thumbnail__nav__prev",onClick:f}," ‹ ",512),[[w.vShow,s.value]]),w.createElementVNode("div",{class:"image-list",ref_key:"imageListRef",ref:u,onScroll:p},[(w.openBlock(!0),w.createElementBlock(w.Fragment,null,w.renderList(t.data.imageList,x=>(w.openBlock(),w.createElementBlock(w.Fragment,{key:x.id},[x.src?(w.openBlock(),w.createElementBlock("img",{key:0,class:"image",src:x.src,onClick:S=>i(x.src)},null,8,kU)):w.createCommentVNode("",!0)],64))),128))],544),w.withDirectives(w.createElementVNode("div",{class:"thumbnail__nav__next",onClick:d}," › ",512),[[w.vShow,l.value]])])])):w.createCommentVNode("",!0)],64)}}}),IU=Si(NU,[["__scopeId","data-v-63d0f133"]]);var jU=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function RU(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function LU(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return t[n]}})}),r}var _I={exports:{}};/**!
|
|
2
|
+
* Sortable 1.14.0
|
|
3
|
+
* @author RubaXa <trash@rubaxa.org>
|
|
4
|
+
* @author owenm <owen23355@gmail.com>
|
|
5
|
+
* @license MIT
|
|
6
|
+
*/function V8(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function hi(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?V8(Object(r),!0).forEach(function(n){MU(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):V8(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function zv(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?zv=function(e){return typeof e}:zv=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zv(t)}function MU(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function vo(){return vo=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},vo.apply(this,arguments)}function VU(t,e){if(t==null)return{};var r={},n=Object.keys(t),o,a;for(a=0;a<n.length;a++)o=n[a],!(e.indexOf(o)>=0)&&(r[o]=t[o]);return r}function $U(t,e){if(t==null)return{};var r=VU(t,e),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(o=0;o<a.length;o++)n=a[o],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function zU(t){return HU(t)||UU(t)||_U(t)||GU()}function HU(t){if(Array.isArray(t))return FS(t)}function UU(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function _U(t,e){if(t){if(typeof t=="string")return FS(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return FS(t,e)}}function FS(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function GU(){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 WU="1.14.0";function Hi(t){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(t)}var Qi=Hi(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Oh=Hi(/Edge/i),$8=Hi(/firefox/i),qd=Hi(/safari/i)&&!Hi(/chrome/i)&&!Hi(/android/i),GI=Hi(/iP(ad|od|hone)/i),KU=Hi(/chrome/i)&&Hi(/android/i),WI={capture:!1,passive:!1};function se(t,e,r){t.addEventListener(e,r,!Qi&&WI)}function ie(t,e,r){t.removeEventListener(e,r,!Qi&&WI)}function O0(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 YU(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function To(t,e,r,n){if(t){r=r||document;do{if(e!=null&&(e[0]===">"?t.parentNode===r&&O0(t,e):O0(t,e))||n&&t===r)return t;if(t===r)break}while(t=YU(t))}return null}var z8=/\s+/g;function qe(t,e,r){if(t&&e)if(t.classList)t.classList[r?"add":"remove"](e);else{var n=(" "+t.className+" ").replace(z8," ").replace(" "+e+" "," ");t.className=(n+(r?" "+e:"")).replace(z8," ")}}function Ot(t,e,r){var n=t&&t.style;if(n){if(r===void 0)return document.defaultView&&document.defaultView.getComputedStyle?r=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(r=t.currentStyle),e===void 0?r:r[e];!(e in n)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),n[e]=r+(typeof r=="string"?"":"px")}}function is(t,e){var r="";if(typeof t=="string")r=t;else do{var n=Ot(t,"transform");n&&n!=="none"&&(r=n+" "+r)}while(!e&&(t=t.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(r)}function KI(t,e,r){if(t){var n=t.getElementsByTagName(e),o=0,a=n.length;if(r)for(;o<a;o++)r(n[o],o);return n}return[]}function ci(){var t=document.scrollingElement;return t||document.documentElement}function Ye(t,e,r,n,o){if(!(!t.getBoundingClientRect&&t!==window)){var a,i,u,s,l,c,f;if(t!==window&&t.parentNode&&t!==ci()?(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||r)&&t!==window&&(o=o||t.parentNode,!Qi))do if(o&&o.getBoundingClientRect&&(Ot(o,"transform")!=="none"||r&&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(n&&t!==window){var p=is(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 H8(t,e,r){for(var n=Fa(t,!0),o=Ye(t)[e];n;){var a=Ye(n)[r],i=void 0;if(i=o>=a,!i)return n;if(n===ci())break;n=Fa(n,!1)}return!1}function gc(t,e,r,n){for(var o=0,a=0,i=t.children;a<i.length;){if(i[a].style.display!=="none"&&i[a]!==jt.ghost&&(n||i[a]!==jt.dragged)&&To(i[a],r.draggable,t,!1)){if(o===e)return i[a];o++}a++}return null}function yD(t,e){for(var r=t.lastElementChild;r&&(r===jt.ghost||Ot(r,"display")==="none"||e&&!O0(r,e));)r=r.previousElementSibling;return r||null}function ir(t,e){var r=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)t.nodeName.toUpperCase()!=="TEMPLATE"&&t!==jt.clone&&(!e||O0(t,e))&&r++;return r}function U8(t){var e=0,r=0,n=ci();if(t)do{var o=is(t),a=o.a,i=o.d;e+=t.scrollLeft*a,r+=t.scrollTop*i}while(t!==n&&(t=t.parentNode));return[e,r]}function XU(t,e){for(var r in t)if(t.hasOwnProperty(r)){for(var n in e)if(e.hasOwnProperty(n)&&e[n]===t[r][n])return Number(r)}return-1}function Fa(t,e){if(!t||!t.getBoundingClientRect)return ci();var r=t,n=!1;do if(r.clientWidth<r.scrollWidth||r.clientHeight<r.scrollHeight){var o=Ot(r);if(r.clientWidth<r.scrollWidth&&(o.overflowX=="auto"||o.overflowX=="scroll")||r.clientHeight<r.scrollHeight&&(o.overflowY=="auto"||o.overflowY=="scroll")){if(!r.getBoundingClientRect||r===document.body)return ci();if(n||e)return r;n=!0}}while(r=r.parentNode);return ci()}function ZU(t,e){if(t&&e)for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return t}function q1(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 tp;function YI(t,e){return function(){if(!tp){var r=arguments,n=this;r.length===1?t.call(n,r[0]):t.apply(n,r),tp=setTimeout(function(){tp=void 0},e)}}}function JU(){clearTimeout(tp),tp=void 0}function XI(t,e,r){t.scrollLeft+=e,t.scrollTop+=r}function bD(t){var e=window.Polymer,r=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):r?r(t).clone(!0)[0]:t.cloneNode(!0)}function _8(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 tb(t){Ot(t,"position",""),Ot(t,"top",""),Ot(t,"left",""),Ot(t,"width",""),Ot(t,"height","")}var on="Sortable"+new Date().getTime();function QU(){var t=[],e;return{captureAnimationState:function(){if(t=[],!!this.options.animation){var n=[].slice.call(this.el.children);n.forEach(function(o){if(!(Ot(o,"display")==="none"||o===jt.ghost)){t.push({target:o,rect:Ye(o)});var a=hi({},t[t.length-1].rect);if(o.thisAnimationDuration){var i=is(o,!0);i&&(a.top-=i.f,a.left-=i.e)}o.fromRect=a}})}},addAnimationState:function(n){t.push(n)},removeAnimationState:function(n){t.splice(XU(t,{target:n}),1)},animateAll:function(n){var o=this;if(!this.options.animation){clearTimeout(e),typeof n=="function"&&n();return}var a=!1,i=0;t.forEach(function(u){var s=0,l=u.target,c=l.fromRect,f=Ye(l),d=l.prevFromRect,p=l.prevToRect,m=u.rect,h=is(l,!0);h&&(f.top-=h.f,f.left-=h.e),l.toRect=f,l.thisAnimationDuration&&q1(d,f)&&!q1(c,f)&&(m.top-f.top)/(m.left-f.left)===(c.top-f.top)/(c.left-f.left)&&(s=t_(m,d,p,o.options)),q1(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 n=="function"&&n()},i):typeof n=="function"&&n(),t=[]},animate:function(n,o,a,i){if(i){Ot(n,"transition",""),Ot(n,"transform","");var u=is(this.el),s=u&&u.a,l=u&&u.d,c=(o.left-a.left)/(s||1),f=(o.top-a.top)/(l||1);n.animatingX=!!c,n.animatingY=!!f,Ot(n,"transform","translate3d("+c+"px,"+f+"px,0)"),this.forRepaintDummy=qU(n),Ot(n,"transition","transform "+i+"ms"+(this.options.easing?" "+this.options.easing:"")),Ot(n,"transform","translate3d(0,0,0)"),typeof n.animated=="number"&&clearTimeout(n.animated),n.animated=setTimeout(function(){Ot(n,"transition",""),Ot(n,"transform",""),n.animated=!1,n.animatingX=!1,n.animatingY=!1},i)}}}}function qU(t){return t.offsetWidth}function t_(t,e,r,n){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-r.top,2)+Math.pow(e.left-r.left,2))*n.animation}var al=[],eb={initializeByDefault:!0},Ah={mount:function(e){for(var r in eb)eb.hasOwnProperty(r)&&!(r in e)&&(e[r]=eb[r]);al.forEach(function(n){if(n.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),al.push(e)},pluginEvent:function(e,r,n){var o=this;this.eventCanceled=!1,n.cancel=function(){o.eventCanceled=!0};var a=e+"Global";al.forEach(function(i){r[i.pluginName]&&(r[i.pluginName][a]&&r[i.pluginName][a](hi({sortable:r},n)),r.options[i.pluginName]&&r[i.pluginName][e]&&r[i.pluginName][e](hi({sortable:r},n)))})},initializePlugins:function(e,r,n,o){al.forEach(function(u){var s=u.pluginName;if(!(!e.options[s]&&!u.initializeByDefault)){var l=new u(e,r,e.options);l.sortable=e,l.options=e.options,e[s]=l,vo(n,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,r){var n={};return al.forEach(function(o){typeof o.eventProperties=="function"&&vo(n,o.eventProperties.call(r[o.pluginName],e))}),n},modifyOption:function(e,r,n){var o;return al.forEach(function(a){e[a.pluginName]&&a.optionListeners&&typeof a.optionListeners[r]=="function"&&(o=a.optionListeners[r].call(e[a.pluginName],n))}),o}};function Vd(t){var e=t.sortable,r=t.rootEl,n=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||r&&r[on],!!e){var h,v=e.options,y="on"+n.charAt(0).toUpperCase()+n.substr(1);window.CustomEvent&&!Qi&&!Oh?h=new CustomEvent(n,{bubbles:!0,cancelable:!0}):(h=document.createEvent("Event"),h.initEvent(n,!0,!0)),h.to=i||r,h.from=u||r,h.item=o||r,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=hi(hi({},m),Ah.getEventProperties(n,e));for(var b in g)h[b]=g[b];r&&r.dispatchEvent(h),v[y]&&v[y].call(e,h)}}var e_=["evt"],yn=function(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=n.evt,a=$U(n,e_);Ah.pluginEvent.bind(jt)(e,r,hi({dragEl:pt,parentEl:nr,ghostEl:Xt,rootEl:Ke,nextEl:Hu,lastDownEl:Hv,cloneEl:or,cloneHidden:Oa,dragStarted:$d,putSortable:Wr,activeSortable:jt.active,originalEvent:o,oldIndex:Xl,oldDraggableIndex:ep,newIndex:Vn,newDraggableIndex:Ca,hideGhostForTarget:qI,unhideGhostForTarget:tj,cloneNowHidden:function(){Oa=!0},cloneNowShown:function(){Oa=!1},dispatchSortableEvent:function(u){dn({sortable:r,name:u,originalEvent:o})}},a))};function dn(t){Vd(hi({putSortable:Wr,cloneEl:or,targetEl:pt,rootEl:Ke,oldIndex:Xl,oldDraggableIndex:ep,newIndex:Vn,newDraggableIndex:Ca},t))}var pt,nr,Xt,Ke,Hu,Hv,or,Oa,Xl,Vn,ep,Ca,Tg,Wr,Hl=!1,A0=!1,T0=[],Au,Oo,rb,nb,G8,W8,$d,ul,rp,np=!1,Bg=!1,Uv,qr,ob=[],kS=!1,B0=[],Uy=typeof document<"u",Pg=GI,K8=Oh||Qi?"cssFloat":"float",r_=Uy&&!KU&&!GI&&"draggable"in document.createElement("div"),ZI=function(){if(Uy){if(Qi)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto",t.style.pointerEvents==="auto"}}(),JI=function(e,r){var n=Ot(e),o=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),a=gc(e,0,r),i=gc(e,1,r),u=a&&Ot(a),s=i&&Ot(i),l=u&&parseInt(u.marginLeft)+parseInt(u.marginRight)+Ye(a).width,c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+Ye(i).width;if(n.display==="flex")return n.flexDirection==="column"||n.flexDirection==="column-reverse"?"vertical":"horizontal";if(n.display==="grid")return n.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&&n[K8]==="none"||i&&n[K8]==="none"&&l+c>o)?"vertical":"horizontal"},n_=function(e,r,n){var o=n?e.left:e.top,a=n?e.right:e.bottom,i=n?e.width:e.height,u=n?r.left:r.top,s=n?r.right:r.bottom,l=n?r.width:r.height;return o===u||a===s||o+i/2===u+l/2},o_=function(e,r){var n;return T0.some(function(o){var a=o[on].options.emptyInsertThreshold;if(!(!a||yD(o))){var i=Ye(o),u=e>=i.left-a&&e<=i.right+a,s=r>=i.top-a&&r<=i.bottom+a;if(u&&s)return n=o}}),n},QI=function(e){function r(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 r(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 n={},o=e.group;(!o||zv(o)!="object")&&(o={name:o}),n.name=o.name,n.checkPull=r(o.pull,!0),n.checkPut=r(o.put),n.revertClone=o.revertClone,e.group=n},qI=function(){!ZI&&Xt&&Ot(Xt,"display","none")},tj=function(){!ZI&&Xt&&Ot(Xt,"display","")};Uy&&document.addEventListener("click",function(t){if(A0)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),A0=!1,!1},!0);var Tu=function(e){if(pt){e=e.touches?e.touches[0]:e;var r=o_(e.clientX,e.clientY);if(r){var n={};for(var o in e)e.hasOwnProperty(o)&&(n[o]=e[o]);n.target=n.rootEl=r,n.preventDefault=void 0,n.stopPropagation=void 0,r[on]._onDragOver(n)}}},i_=function(e){pt&&pt.parentNode[on]._isOutsideThisEl(e.target)};function jt(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=vo({},e),t[on]=this;var r={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 JI(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:jt.supportPointer!==!1&&"PointerEvent"in window&&!qd,emptyInsertThreshold:5};Ah.initializePlugins(this,t,r);for(var n in r)!(n in e)&&(e[n]=r[n]);QI(e);for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this));this.nativeDraggable=e.forceFallback?!1:r_,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)),T0.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),vo(this,QU())}jt.prototype={constructor:jt,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(ul=null)},_getDirection:function(e,r){return typeof this.options.direction=="function"?this.options.direction.call(this,e,r,pt):this.options.direction},_onTapStart:function(e){if(e.cancelable){var r=this,n=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(p_(n),!pt&&!(/mousedown|pointerdown/.test(i)&&e.button!==0||o.disabled)&&!l.isContentEditable&&!(!this.nativeDraggable&&qd&&s&&s.tagName.toUpperCase()==="SELECT")&&(s=To(s,o.draggable,n,!1),!(s&&s.animated)&&Hv!==s)){if(Xl=ir(s),ep=ir(s,o.draggable),typeof c=="function"){if(c.call(this,e,s,this)){dn({sortable:r,rootEl:l,name:"filter",targetEl:s,toEl:n,fromEl:n}),yn("filter",r,{evt:e}),a&&e.cancelable&&e.preventDefault();return}}else if(c&&(c=c.split(",").some(function(f){if(f=To(l,f.trim(),n,!1),f)return dn({sortable:r,rootEl:f,name:"filter",targetEl:s,fromEl:n,toEl:n}),yn("filter",r,{evt:e}),!0}),c)){a&&e.cancelable&&e.preventDefault();return}o.handle&&!To(l,o.handle,n,!1)||this._prepareDragStart(e,u,s)}}},_prepareDragStart:function(e,r,n){var o=this,a=o.el,i=o.options,u=a.ownerDocument,s;if(n&&!pt&&n.parentNode===a){var l=Ye(n);if(Ke=a,pt=n,nr=pt.parentNode,Hu=pt.nextSibling,Hv=n,Tg=i.group,jt.dragged=pt,Au={target:pt,clientX:(r||e).clientX,clientY:(r||e).clientY},G8=Au.clientX-l.left,W8=Au.clientY-l.top,this._lastX=(r||e).clientX,this._lastY=(r||e).clientY,pt.style["will-change"]="all",s=function(){if(yn("delayEnded",o,{evt:e}),jt.eventCanceled){o._onDrop();return}o._disableDelayedDragEvents(),!$8&&o.nativeDraggable&&(pt.draggable=!0),o._triggerDragStart(e,r),dn({sortable:o,name:"choose",originalEvent:e}),qe(pt,i.chosenClass,!0)},i.ignore.split(",").forEach(function(c){KI(pt,c.trim(),ib)}),se(u,"dragover",Tu),se(u,"mousemove",Tu),se(u,"touchmove",Tu),se(u,"mouseup",o._onDrop),se(u,"touchend",o._onDrop),se(u,"touchcancel",o._onDrop),$8&&this.nativeDraggable&&(this.options.touchStartThreshold=4,pt.draggable=!0),yn("delayStart",this,{evt:e}),i.delay&&(!i.delayOnTouchOnly||r)&&(!this.nativeDraggable||!(Oh||Qi))){if(jt.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 r=e.touches?e.touches[0]:e;Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){pt&&ib(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,r){r=r||e.pointerType=="touch"&&e,!this.nativeDraggable||r?this.options.supportPointer?se(document,"pointermove",this._onTouchMove):r?se(document,"touchmove",this._onTouchMove):se(document,"mousemove",this._onTouchMove):(se(pt,"dragend",this),se(Ke,"dragstart",this._onDragStart));try{document.selection?_v(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,r){if(Hl=!1,Ke&&pt){yn("dragStarted",this,{evt:r}),this.nativeDraggable&&se(document,"dragover",i_);var n=this.options;!e&&qe(pt,n.dragClass,!1),qe(pt,n.ghostClass,!0),jt.active=this,e&&this._appendGhost(),dn({sortable:this,name:"start",originalEvent:r})}else this._nulling()},_emulateDragOver:function(){if(Oo){this._lastX=Oo.clientX,this._lastY=Oo.clientY,qI();for(var e=document.elementFromPoint(Oo.clientX,Oo.clientY),r=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(Oo.clientX,Oo.clientY),e!==r);)r=e;if(pt.parentNode[on]._isOutsideThisEl(e),r)do{if(r[on]){var n=void 0;if(n=r[on]._onDragOver({clientX:Oo.clientX,clientY:Oo.clientY,target:e,rootEl:r}),n&&!this.options.dragoverBubble)break}e=r}while(r=r.parentNode);tj()}},_onTouchMove:function(e){if(Au){var r=this.options,n=r.fallbackTolerance,o=r.fallbackOffset,a=e.touches?e.touches[0]:e,i=Xt&&is(Xt,!0),u=Xt&&i&&i.a,s=Xt&&i&&i.d,l=Pg&&qr&&U8(qr),c=(a.clientX-Au.clientX+o.x)/(u||1)+(l?l[0]-ob[0]:0)/(u||1),f=(a.clientY-Au.clientY+o.y)/(s||1)+(l?l[1]-ob[1]:0)/(s||1);if(!jt.active&&!Hl){if(n&&Math.max(Math.abs(a.clientX-this._lastX),Math.abs(a.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(Xt){i?(i.e+=c-(rb||0),i.f+=f-(nb||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),rb=c,nb=f,Oo=a}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!Xt){var e=this.options.fallbackOnBody?document.body:Ke,r=Ye(pt,!0,Pg,!0,e),n=this.options;if(Pg){for(qr=e;Ot(qr,"position")==="static"&&Ot(qr,"transform")==="none"&&qr!==document;)qr=qr.parentNode;qr!==document.body&&qr!==document.documentElement?(qr===document&&(qr=ci()),r.top+=qr.scrollTop,r.left+=qr.scrollLeft):qr=ci(),ob=U8(qr)}Xt=pt.cloneNode(!0),qe(Xt,n.ghostClass,!1),qe(Xt,n.fallbackClass,!0),qe(Xt,n.dragClass,!0),Ot(Xt,"transition",""),Ot(Xt,"transform",""),Ot(Xt,"box-sizing","border-box"),Ot(Xt,"margin",0),Ot(Xt,"top",r.top),Ot(Xt,"left",r.left),Ot(Xt,"width",r.width),Ot(Xt,"height",r.height),Ot(Xt,"opacity","0.8"),Ot(Xt,"position",Pg?"absolute":"fixed"),Ot(Xt,"zIndex","100000"),Ot(Xt,"pointerEvents","none"),jt.ghost=Xt,e.appendChild(Xt),Ot(Xt,"transform-origin",G8/parseInt(Xt.style.width)*100+"% "+W8/parseInt(Xt.style.height)*100+"%")}},_onDragStart:function(e,r){var n=this,o=e.dataTransfer,a=n.options;if(yn("dragStart",this,{evt:e}),jt.eventCanceled){this._onDrop();return}yn("setupClone",this),jt.eventCanceled||(or=bD(pt),or.draggable=!1,or.style["will-change"]="",this._hideClone(),qe(or,this.options.chosenClass,!1),jt.clone=or),n.cloneId=_v(function(){yn("clone",n),!jt.eventCanceled&&(n.options.removeCloneOnHide||Ke.insertBefore(or,pt),n._hideClone(),dn({sortable:n,name:"clone"}))}),!r&&qe(pt,a.dragClass,!0),r?(A0=!0,n._loopId=setInterval(n._emulateDragOver,50)):(ie(document,"mouseup",n._onDrop),ie(document,"touchend",n._onDrop),ie(document,"touchcancel",n._onDrop),o&&(o.effectAllowed="move",a.setData&&a.setData.call(n,o,pt)),se(document,"drop",n),Ot(pt,"transform","translateZ(0)")),Hl=!0,n._dragStartId=_v(n._dragStarted.bind(n,r,e)),se(document,"selectstart",n),$d=!0,qd&&Ot(document.body,"user-select","none")},_onDragOver:function(e){var r=this.el,n=e.target,o,a,i,u=this.options,s=u.group,l=jt.active,c=Tg===s,f=u.sort,d=Wr||l,p,m=this,h=!1;if(kS)return;function v(nt,it){yn(nt,m,hi({evt:e,isOwner:c,axis:p?"vertical":"horizontal",revert:i,dragRect:o,targetRect:a,canSort:f,fromSortable:d,target:n,completed:g,onMove:function(O,B){return Fg(Ke,r,pt,o,O,Ye(O),e,B)},changed:b},it))}function y(){v("dragOverAnimationCapture"),m.captureAnimationState(),m!==d&&d.captureAnimationState()}function g(nt){return v("dragOverCompleted",{insertion:nt}),nt&&(c?l._hideClone():l._showClone(m),m!==d&&(qe(pt,Wr?Wr.options.ghostClass:l.options.ghostClass,!1),qe(pt,u.ghostClass,!0)),Wr!==m&&m!==jt.active?Wr=m:m===jt.active&&Wr&&(Wr=null),d===m&&(m._ignoreWhileAnimating=n),m.animateAll(function(){v("dragOverAnimationComplete"),m._ignoreWhileAnimating=null}),m!==d&&(d.animateAll(),d._ignoreWhileAnimating=null)),(n===pt&&!pt.animated||n===r&&!n.animated)&&(ul=null),!u.dragoverBubble&&!e.rootEl&&n!==document&&(pt.parentNode[on]._isOutsideThisEl(e.target),!nt&&Tu(e)),!u.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),h=!0}function b(){Vn=ir(pt),Ca=ir(pt,u.draggable),dn({sortable:m,name:"change",toEl:r,newIndex:Vn,newDraggableIndex:Ca,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),n=To(n,u.draggable,r,!0),v("dragOver"),jt.eventCanceled)return h;if(pt.contains(e.target)||n.animated&&n.animatingX&&n.animatingY||m._ignoreWhileAnimating===n)return g(!1);if(A0=!1,l&&!u.disabled&&(c?f||(i=nr!==Ke):Wr===this||(this.lastPutMode=Tg.checkPull(this,l,pt,e))&&s.checkPut(this,l,pt,e))){if(p=this._getDirection(e,n)==="vertical",o=Ye(pt),v("dragOverValid"),jt.eventCanceled)return h;if(i)return nr=Ke,y(),this._hideClone(),v("revert"),jt.eventCanceled||(Hu?Ke.insertBefore(pt,Hu):Ke.appendChild(pt)),g(!0);var E=yD(r,u.draggable);if(!E||l_(e,p,this)&&!E.animated){if(E===pt)return g(!1);if(E&&r===e.target&&(n=E),n&&(a=Ye(n)),Fg(Ke,r,pt,o,n,a,e,!!n)!==!1)return y(),r.appendChild(pt),nr=r,b(),g(!0)}else if(E&&s_(e,p,this)){var x=gc(r,0,u,!0);if(x===pt)return g(!1);if(n=x,a=Ye(n),Fg(Ke,r,pt,o,n,a,e,!1)!==!1)return y(),r.insertBefore(pt,x),nr=r,b(),g(!0)}else if(n.parentNode===r){a=Ye(n);var S=0,C,T=pt.parentNode!==r,A=!n_(pt.animated&&pt.toRect||o,n.animated&&n.toRect||a,p),k=p?"top":"left",M=H8(n,"top","top")||H8(pt,"top","top"),$=M?M.scrollTop:void 0;ul!==n&&(C=a[k],np=!1,Bg=!A&&u.invertSwap||T),S=c_(e,n,a,p,A?1:u.swapThreshold,u.invertedSwapThreshold==null?u.swapThreshold:u.invertedSwapThreshold,Bg,ul===n);var N;if(S!==0){var j=ir(pt);do j-=S,N=nr.children[j];while(N&&(Ot(N,"display")==="none"||N===Xt))}if(S===0||N===n)return g(!1);ul=n,rp=S;var _=n.nextElementSibling,V=!1;V=S===1;var Z=Fg(Ke,r,pt,o,n,a,e,V);if(Z!==!1)return(Z===1||Z===-1)&&(V=Z===1),kS=!0,setTimeout(u_,30),y(),V&&!_?r.appendChild(pt):n.parentNode.insertBefore(pt,V?_:n),M&&XI(M,0,$-M.scrollTop),nr=pt.parentNode,C!==void 0&&!Bg&&(Uv=Math.abs(C-Ye(n)[k])),b(),g(!0)}if(r.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",Tu),ie(document,"mousemove",Tu),ie(document,"touchmove",Tu)},_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 r=this.el,n=this.options;if(Vn=ir(pt),Ca=ir(pt,n.draggable),yn("drop",this,{evt:e}),nr=pt&&pt.parentNode,Vn=ir(pt),Ca=ir(pt,n.draggable),jt.eventCanceled){this._nulling();return}Hl=!1,Bg=!1,np=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),NS(this.cloneId),NS(this._dragStartId),this.nativeDraggable&&(ie(document,"drop",this),ie(r,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),qd&&Ot(document.body,"user-select",""),Ot(pt,"transform",""),e&&($d&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),Xt&&Xt.parentNode&&Xt.parentNode.removeChild(Xt),(Ke===nr||Wr&&Wr.lastPutMode!=="clone")&&or&&or.parentNode&&or.parentNode.removeChild(or),pt&&(this.nativeDraggable&&ie(pt,"dragend",this),ib(pt),pt.style["will-change"]="",$d&&!Hl&&qe(pt,Wr?Wr.options.ghostClass:this.options.ghostClass,!1),qe(pt,this.options.chosenClass,!1),dn({sortable:this,name:"unchoose",toEl:nr,newIndex:null,newDraggableIndex:null,originalEvent:e}),Ke!==nr?(Vn>=0&&(dn({rootEl:nr,name:"add",toEl:nr,fromEl:Ke,originalEvent:e}),dn({sortable:this,name:"remove",toEl:nr,originalEvent:e}),dn({rootEl:nr,name:"sort",toEl:nr,fromEl:Ke,originalEvent:e}),dn({sortable:this,name:"sort",toEl:nr,originalEvent:e})),Wr&&Wr.save()):Vn!==Xl&&Vn>=0&&(dn({sortable:this,name:"update",toEl:nr,originalEvent:e}),dn({sortable:this,name:"sort",toEl:nr,originalEvent:e})),jt.active&&((Vn==null||Vn===-1)&&(Vn=Xl,Ca=ep),dn({sortable:this,name:"end",toEl:nr,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){yn("nulling",this),Ke=pt=nr=Xt=Hu=or=Hv=Oa=Au=Oo=$d=Vn=Ca=Xl=ep=ul=rp=Wr=Tg=jt.dragged=jt.ghost=jt.clone=jt.active=null,B0.forEach(function(e){e.checked=!0}),B0.length=rb=nb=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":pt&&(this._onDragOver(e),a_(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],r,n=this.el.children,o=0,a=n.length,i=this.options;o<a;o++)r=n[o],To(r,i.draggable,this.el,!1)&&e.push(r.getAttribute(i.dataIdAttr)||d_(r));return e},sort:function(e,r){var n={},o=this.el;this.toArray().forEach(function(a,i){var u=o.children[i];To(u,this.options.draggable,o,!1)&&(n[a]=u)},this),r&&this.captureAnimationState(),e.forEach(function(a){n[a]&&(o.removeChild(n[a]),o.appendChild(n[a]))}),r&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,r){return To(e,r||this.options.draggable,this.el,!1)},option:function(e,r){var n=this.options;if(r===void 0)return n[e];var o=Ah.modifyOption(this,e,r);typeof o<"u"?n[e]=o:n[e]=r,e==="group"&&QI(n)},destroy:function(){yn("destroy",this);var e=this.el;e[on]=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(r){r.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),T0.splice(T0.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!Oa){if(yn("hideClone",this),jt.eventCanceled)return;Ot(or,"display","none"),this.options.removeCloneOnHide&&or.parentNode&&or.parentNode.removeChild(or),Oa=!0}},_showClone:function(e){if(e.lastPutMode!=="clone"){this._hideClone();return}if(Oa){if(yn("showClone",this),jt.eventCanceled)return;pt.parentNode==Ke&&!this.options.group.revertClone?Ke.insertBefore(or,pt):Hu?Ke.insertBefore(or,Hu):Ke.appendChild(or),this.options.group.revertClone&&this.animate(pt,or),Ot(or,"display",""),Oa=!1}}};function a_(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}function Fg(t,e,r,n,o,a,i,u){var s,l=t[on],c=l.options.onMove,f;return window.CustomEvent&&!Qi&&!Oh?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=r,s.draggedRect=n,s.related=o||e,s.relatedRect=a||Ye(e),s.willInsertAfter=u,s.originalEvent=i,t.dispatchEvent(s),c&&(f=c.call(l,s,i)),f}function ib(t){t.draggable=!1}function u_(){kS=!1}function s_(t,e,r){var n=Ye(gc(r.el,0,r.options,!0)),o=10;return e?t.clientX<n.left-o||t.clientY<n.top&&t.clientX<n.right:t.clientY<n.top-o||t.clientY<n.bottom&&t.clientX<n.left}function l_(t,e,r){var n=Ye(yD(r.el,r.options.draggable)),o=10;return e?t.clientX>n.right+o||t.clientX<=n.right&&t.clientY>n.bottom&&t.clientX>=n.left:t.clientX>n.right&&t.clientY>n.top||t.clientX<=n.right&&t.clientY>n.bottom+o}function c_(t,e,r,n,o,a,i,u){var s=n?t.clientY:t.clientX,l=n?r.height:r.width,c=n?r.top:r.left,f=n?r.bottom:r.right,d=!1;if(!i){if(u&&Uv<l*o){if(!np&&(rp===1?s>c+l*a/2:s<f-l*a/2)&&(np=!0),np)d=!0;else if(rp===1?s<c+Uv:s>f-Uv)return-rp}else if(s>c+l*(1-o)/2&&s<f-l*(1-o)/2)return f_(e)}return d=d||i,d&&(s<c+l*a/2||s>f-l*a/2)?s>c+l/2?1:-1:0}function f_(t){return ir(pt)<ir(t)?1:-1}function d_(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,r=e.length,n=0;r--;)n+=e.charCodeAt(r);return n.toString(36)}function p_(t){B0.length=0;for(var e=t.getElementsByTagName("input"),r=e.length;r--;){var n=e[r];n.checked&&B0.push(n)}}function _v(t){return setTimeout(t,0)}function NS(t){return clearTimeout(t)}Uy&&se(document,"touchmove",function(t){(jt.active||Hl)&&t.cancelable&&t.preventDefault()});jt.utils={on:se,off:ie,css:Ot,find:KI,is:function(e,r){return!!To(e,r,e,!1)},extend:ZU,throttle:YI,closest:To,toggleClass:qe,clone:bD,index:ir,nextTick:_v,cancelNextTick:NS,detectDirection:JI,getChild:gc};jt.get=function(t){return t[on]};jt.mount=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];e[0].constructor===Array&&(e=e[0]),e.forEach(function(n){if(!n.prototype||!n.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(n));n.utils&&(jt.utils=hi(hi({},jt.utils),n.utils)),Ah.mount(n)})};jt.create=function(t,e){return new jt(t,e)};jt.version=WU;var Er=[],zd,IS,jS=!1,ab,ub,P0,Hd;function h_(){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(r){var n=r.originalEvent;this.sortable.nativeDraggable?se(document,"dragover",this._handleAutoScroll):this.options.supportPointer?se(document,"pointermove",this._handleFallbackAutoScroll):n.touches?se(document,"touchmove",this._handleFallbackAutoScroll):se(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(r){var n=r.originalEvent;!this.options.dragOverBubble&&!n.rootEl&&this._handleAutoScroll(n)},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)),Y8(),Gv(),JU()},nulling:function(){P0=IS=zd=jS=Hd=ab=ub=null,Er.length=0},_handleFallbackAutoScroll:function(r){this._handleAutoScroll(r,!0)},_handleAutoScroll:function(r,n){var o=this,a=(r.touches?r.touches[0]:r).clientX,i=(r.touches?r.touches[0]:r).clientY,u=document.elementFromPoint(a,i);if(P0=r,n||this.options.forceAutoScrollFallback||Oh||Qi||qd){sb(r,this.options,u,n);var s=Fa(u,!0);jS&&(!Hd||a!==ab||i!==ub)&&(Hd&&Y8(),Hd=setInterval(function(){var l=Fa(document.elementFromPoint(a,i),!0);l!==s&&(s=l,Gv()),sb(r,o.options,l,n)},10),ab=a,ub=i)}else{if(!this.options.bubbleScroll||Fa(u,!0)===ci()){Gv();return}sb(r,this.options,Fa(u,!1),!1)}}},vo(t,{pluginName:"scroll",initializeByDefault:!0})}function Gv(){Er.forEach(function(t){clearInterval(t.pid)}),Er=[]}function Y8(){clearInterval(Hd)}var sb=YI(function(t,e,r,n){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=ci(),l=!1,c;IS!==r&&(IS=r,Gv(),zd=e.scroll,c=e.scrollFn,zd===!0&&(zd=Fa(r,!0)));var f=0,d=zd;do{var p=d,m=Ye(p),h=m.top,v=m.bottom,y=m.left,g=m.right,b=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=b<C&&(A.overflowX==="auto"||A.overflowX==="scroll"||A.overflowX==="visible"),S=E<T&&(A.overflowY==="auto"||A.overflowY==="scroll"||A.overflowY==="visible")):(x=b<C&&(A.overflowX==="auto"||A.overflowX==="scroll"),S=E<T&&(A.overflowY==="auto"||A.overflowY==="scroll"));var $=x&&(Math.abs(g-o)<=i&&k+b<C)-(Math.abs(y-o)<=i&&!!k),N=S&&(Math.abs(v-a)<=i&&M+E<T)-(Math.abs(h-a)<=i&&!!M);if(!Er[f])for(var j=0;j<=f;j++)Er[j]||(Er[j]={});(Er[f].vx!=$||Er[f].vy!=N||Er[f].el!==p)&&(Er[f].el=p,Er[f].vx=$,Er[f].vy=N,clearInterval(Er[f].pid),($!=0||N!=0)&&(l=!0,Er[f].pid=setInterval((function(){n&&this.layer===0&&jt.active._onTouchMove(P0);var _=Er[this.layer].vy?Er[this.layer].vy*u:0,V=Er[this.layer].vx?Er[this.layer].vx*u:0;typeof c=="function"&&c.call(jt.dragged.parentNode[on],V,_,t,P0,Er[this.layer].el)!=="continue"||XI(Er[this.layer].el,V,_)}).bind({layer:f}),24))),f++}while(e.bubbleScroll&&d!==s&&(d=Fa(d,!1)));jS=l}},30),ej=function(e){var r=e.originalEvent,n=e.putSortable,o=e.dragEl,a=e.activeSortable,i=e.dispatchSortableEvent,u=e.hideGhostForTarget,s=e.unhideGhostForTarget;if(r){var l=n||a;u();var c=r.changedTouches&&r.changedTouches.length?r.changedTouches[0]:r,f=document.elementFromPoint(c.clientX,c.clientY);s(),l&&!l.el.contains(f)&&(i("spill"),this.onSpill({dragEl:o,putSortable:n}))}};function wD(){}wD.prototype={startIndex:null,dragStart:function(e){var r=e.oldDraggableIndex;this.startIndex=r},onSpill:function(e){var r=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var o=gc(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(r,o):this.sortable.el.appendChild(r),this.sortable.animateAll(),n&&n.animateAll()},drop:ej};vo(wD,{pluginName:"revertOnSpill"});function ED(){}ED.prototype={onSpill:function(e){var r=e.dragEl,n=e.putSortable,o=n||this.sortable;o.captureAnimationState(),r.parentNode&&r.parentNode.removeChild(r),o.animateAll()},drop:ej};vo(ED,{pluginName:"removeOnSpill"});var ro;function g_(){function t(){this.defaults={swapClass:"sortable-swap-highlight"}}return t.prototype={dragStart:function(r){var n=r.dragEl;ro=n},dragOverValid:function(r){var n=r.completed,o=r.target,a=r.onMove,i=r.activeSortable,u=r.changed,s=r.cancel;if(i.options.swap){var l=this.sortable.el,c=this.options;if(o&&o!==l){var f=ro;a(o)!==!1?(qe(o,c.swapClass,!0),ro=o):ro=null,f&&f!==ro&&qe(f,c.swapClass,!1)}u(),n(!0),s()}},drop:function(r){var n=r.activeSortable,o=r.putSortable,a=r.dragEl,i=o||this.sortable,u=this.options;ro&&qe(ro,u.swapClass,!1),ro&&(u.swap||o&&o.options.swap)&&a!==ro&&(i.captureAnimationState(),i!==n&&n.captureAnimationState(),v_(a,ro),i.animateAll(),i!==n&&n.animateAll())},nulling:function(){ro=null}},vo(t,{pluginName:"swap",eventProperties:function(){return{swapItem:ro}}})}function v_(t,e){var r=t.parentNode,n=e.parentNode,o,a;!r||!n||r.isEqualNode(e)||n.isEqualNode(t)||(o=ir(t),a=ir(e),r.isEqualNode(n)&&o<a&&a++,r.insertBefore(e,r.children[o]),n.insertBefore(t,n.children[a]))}var Wt=[],Mn=[],gf,Ao,vf=!1,bn=!1,sl=!1,Le,mf,kg;function m_(){function t(e){for(var r in this)r.charAt(0)==="_"&&typeof this[r]=="function"&&(this[r]=this[r].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="";Wt.length&&Ao===e?Wt.forEach(function(u,s){i+=(s?", ":"")+u.textContent}):i=a.textContent,o.setData("Text",i)}}}return t.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(r){var n=r.dragEl;Le=n},delayEnded:function(){this.isMultiDrag=~Wt.indexOf(Le)},setupClone:function(r){var n=r.sortable,o=r.cancel;if(this.isMultiDrag){for(var a=0;a<Wt.length;a++)Mn.push(bD(Wt[a])),Mn[a].sortableIndex=Wt[a].sortableIndex,Mn[a].draggable=!1,Mn[a].style["will-change"]="",qe(Mn[a],this.options.selectedClass,!1),Wt[a]===Le&&qe(Mn[a],this.options.chosenClass,!1);n._hideClone(),o()}},clone:function(r){var n=r.sortable,o=r.rootEl,a=r.dispatchSortableEvent,i=r.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||Wt.length&&Ao===n&&(X8(!0,o),a("clone"),i()))},showClone:function(r){var n=r.cloneNowShown,o=r.rootEl,a=r.cancel;this.isMultiDrag&&(X8(!1,o),Mn.forEach(function(i){Ot(i,"display","")}),n(),kg=!1,a())},hideClone:function(r){var n=this;r.sortable;var o=r.cloneNowHidden,a=r.cancel;this.isMultiDrag&&(Mn.forEach(function(i){Ot(i,"display","none"),n.options.removeCloneOnHide&&i.parentNode&&i.parentNode.removeChild(i)}),o(),kg=!0,a())},dragStartGlobal:function(r){r.sortable,!this.isMultiDrag&&Ao&&Ao.multiDrag._deselectMultiDrag(),Wt.forEach(function(n){n.sortableIndex=ir(n)}),Wt=Wt.sort(function(n,o){return n.sortableIndex-o.sortableIndex}),sl=!0},dragStarted:function(r){var n=this,o=r.sortable;if(this.isMultiDrag){if(this.options.sort&&(o.captureAnimationState(),this.options.animation)){Wt.forEach(function(i){i!==Le&&Ot(i,"position","absolute")});var a=Ye(Le,!1,!0,!0);Wt.forEach(function(i){i!==Le&&_8(i,a)}),bn=!0,vf=!0}o.animateAll(function(){bn=!1,vf=!1,n.options.animation&&Wt.forEach(function(i){tb(i)}),n.options.sort&&Ng()})}},dragOver:function(r){var n=r.target,o=r.completed,a=r.cancel;bn&&~Wt.indexOf(n)&&(o(!1),a())},revert:function(r){var n=r.fromSortable,o=r.rootEl,a=r.sortable,i=r.dragRect;Wt.length>1&&(Wt.forEach(function(u){a.addAnimationState({target:u,rect:bn?Ye(u):i}),tb(u),u.fromRect=i,n.removeAnimationState(u)}),bn=!1,y_(!this.options.removeCloneOnHide,o))},dragOverCompleted:function(r){var n=r.sortable,o=r.isOwner,a=r.insertion,i=r.activeSortable,u=r.parentEl,s=r.putSortable,l=this.options;if(a){if(o&&i._hideClone(),vf=!1,l.animation&&Wt.length>1&&(bn||!o&&!i.options.sort&&!s)){var c=Ye(Le,!1,!0,!0);Wt.forEach(function(d){d!==Le&&(_8(d,c),u.appendChild(d))}),bn=!0}if(!o)if(bn||Ng(),Wt.length>1){var f=kg;i._showClone(n),i.options.animation&&!kg&&f&&Mn.forEach(function(d){i.addAnimationState({target:d,rect:mf}),d.fromRect=mf,d.thisAnimationDuration=null})}else i._showClone(n)}},dragOverAnimationCapture:function(r){var n=r.dragRect,o=r.isOwner,a=r.activeSortable;if(Wt.forEach(function(u){u.thisAnimationDuration=null}),a.options.animation&&!o&&a.multiDrag.isMultiDrag){mf=vo({},n);var i=is(Le,!0);mf.top-=i.f,mf.left-=i.e}},dragOverAnimationComplete:function(){bn&&(bn=!1,Ng())},drop:function(r){var n=r.originalEvent,o=r.rootEl,a=r.parentEl,i=r.sortable,u=r.dispatchSortableEvent,s=r.oldIndex,l=r.putSortable,c=l||this.sortable;if(n){var f=this.options,d=a.children;if(!sl)if(f.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),qe(Le,f.selectedClass,!~Wt.indexOf(Le)),~Wt.indexOf(Le))Wt.splice(Wt.indexOf(Le),1),gf=null,Vd({sortable:i,rootEl:o,name:"deselect",targetEl:Le});else{if(Wt.push(Le),Vd({sortable:i,rootEl:o,name:"select",targetEl:Le}),n.shiftKey&&gf&&i.el.contains(gf)){var p=ir(gf),m=ir(Le);if(~p&&~m&&p!==m){var h,v;for(m>p?(v=p,h=m):(v=m,h=p+1);v<h;v++)~Wt.indexOf(d[v])||(qe(d[v],f.selectedClass,!0),Wt.push(d[v]),Vd({sortable:i,rootEl:o,name:"select",targetEl:d[v]}))}}else gf=Le;Ao=c}if(sl&&this.isMultiDrag){if(bn=!1,(a[on].options.sort||a!==o)&&Wt.length>1){var y=Ye(Le),g=ir(Le,":not(."+this.options.selectedClass+")");if(!vf&&f.animation&&(Le.thisAnimationDuration=null),c.captureAnimationState(),!vf&&(f.animation&&(Le.fromRect=y,Wt.forEach(function(E){if(E.thisAnimationDuration=null,E!==Le){var x=bn?Ye(E):y;E.fromRect=x,c.addAnimationState({target:E,rect:x})}})),Ng(),Wt.forEach(function(E){d[g]?a.insertBefore(E,d[g]):a.appendChild(E),g++}),s===ir(Le))){var b=!1;Wt.forEach(function(E){if(E.sortableIndex!==ir(E)){b=!0;return}}),b&&u("update")}Wt.forEach(function(E){tb(E)}),c.animateAll()}Ao=c}(o===a||l&&l.lastPutMode!=="clone")&&Mn.forEach(function(E){E.parentNode&&E.parentNode.removeChild(E)})}},nullingGlobal:function(){this.isMultiDrag=sl=!1,Mn.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(r){if(!(typeof sl<"u"&&sl)&&Ao===this.sortable&&!(r&&To(r.target,this.options.draggable,this.sortable.el,!1))&&!(r&&r.button!==0))for(;Wt.length;){var n=Wt[0];qe(n,this.options.selectedClass,!1),Wt.shift(),Vd({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:n})}},_checkKeyDown:function(r){r.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(r){r.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},vo(t,{pluginName:"multiDrag",utils:{select:function(r){var n=r.parentNode[on];!n||!n.options.multiDrag||~Wt.indexOf(r)||(Ao&&Ao!==n&&(Ao.multiDrag._deselectMultiDrag(),Ao=n),qe(r,n.options.selectedClass,!0),Wt.push(r))},deselect:function(r){var n=r.parentNode[on],o=Wt.indexOf(r);!n||!n.options.multiDrag||!~o||(qe(r,n.options.selectedClass,!1),Wt.splice(o,1))}},eventProperties:function(){var r=this,n=[],o=[];return Wt.forEach(function(a){n.push({multiDragElement:a,index:a.sortableIndex});var i;bn&&a!==Le?i=-1:bn?i=ir(a,":not(."+r.options.selectedClass+")"):i=ir(a),o.push({multiDragElement:a,index:i})}),{items:zU(Wt),clones:[].concat(Mn),oldIndicies:n,newIndicies:o}},optionListeners:{multiDragKey:function(r){return r=r.toLowerCase(),r==="ctrl"?r="Control":r.length>1&&(r=r.charAt(0).toUpperCase()+r.substr(1)),r}}})}function y_(t,e){Wt.forEach(function(r,n){var o=e.children[r.sortableIndex+(t?Number(n):0)];o?e.insertBefore(r,o):e.appendChild(r)})}function X8(t,e){Mn.forEach(function(r,n){var o=e.children[r.sortableIndex+(t?Number(n):0)];o?e.insertBefore(r,o):e.appendChild(r)})}function Ng(){Wt.forEach(function(t){t!==Le&&t.parentNode&&t.parentNode.removeChild(t)})}jt.mount(new h_);jt.mount(ED,wD);const b_=Object.freeze(Object.defineProperty({__proto__:null,MultiDrag:m_,Sortable:jt,Swap:g_,default:jt},Symbol.toStringTag,{value:"Module"})),w_=LU(b_);(function(t,e){(function(n,o){t.exports=o(w,w_)})(typeof self<"u"?self:jU,function(r,n){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,b,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],b=p(y?x:v+(g?".":"#")+x,m.forced),!b&&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),b=y.flags,E=String(b===void 0&&y instanceof RegExp&&!("flags"in d)?c.call(y):b);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(b){var E=String(f(this));c(b);var x=l(h(arguments.length>1?arguments[1]:void 0,E.length)),S=String(b);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,b=g>1?arguments[1]:void 0,E=b!==void 0,x=p(v),S=0,C,T,A,k,M,$;if(E&&(b=u(b,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++)$=E?l(k,b,[A.value,S],!0):A.value,d(T,S,$);else for(C=f(v.length),T=new y(C);C>S;S++)$=E?b(v[S],S):v[S],d(T,S,$);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,b=/\$([$&'`]|\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,_){var V=d(this),Z=j==null?void 0:j[x];return Z!==void 0?Z.call(j,V,_):S.call(String(V),j,_)},function(N,j){if(!A&&k||typeof j=="string"&&j.indexOf(M)===-1){var _=C(S,N,this,j);if(_.done)return _.value}var V=s(N),Z=String(this),nt=typeof j=="function";nt||(j=String(j));var it=V.global;if(it){var G=V.unicode;V.lastIndex=0}for(var O=[];;){var B=m(V,Z);if(B===null||(O.push(B),!it))break;var I=String(B[0]);I===""&&(V.lastIndex=p(Z,c(V.lastIndex),G))}for(var K="",et=0,Y=0;Y<O.length;Y++){B=O[Y];for(var ot=String(B[0]),mt=h(v(f(B.index),Z.length),0),bt=[],Pt=1;Pt<B.length;Pt++)bt.push(E(B[Pt]));var tt=B.groups;if(nt){var Mt=[ot].concat(bt,mt,Z);tt!==void 0&&Mt.push(tt);var Ct=String(j.apply(void 0,Mt))}else Ct=$(ot,Z,mt,bt,tt,j);mt>=et&&(K+=Z.slice(et,mt)+Ct,et=mt+ot.length)}return K+Z.slice(et)}];function $(N,j,_,V,Z,nt){var it=_+N.length,G=V.length,O=b;return Z!==void 0&&(Z=l(Z),O=g),S.call(nt,O,function(B,I){var K;switch(I.charAt(0)){case"$":return"$";case"&":return N;case"`":return j.slice(0,_);case"'":return j.slice(it);case"<":K=Z[I.slice(1,-1)];break;default:var et=+I;if(et===0)return B;if(et>G){var Y=y(et/10);return Y===0?B:Y<=G?V[Y-1]===void 0?I.charAt(1):V[Y-1]+I.charAt(1):B}K=V[et-1]}return K===void 0?"":K})}})},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,{})},b=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:b}},"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,b){var E=b?!!b.unsafe:!1,x=b?!!b.enumerable:!1,S=b?!!b.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=[],b;v>y;)b=h[y++],(!u||c.call(m,b))&&g.push(d?[b,m[b]]:m[b]);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"),b=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 $;return k!==null?(b[v]=u(k),$=new b,b[v]=null,$[g]=k):$=T(),M===void 0?$:s($,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,b=y.BUGGY_SAFARI_ITERATORS,E=m("iterator"),x="keys",S="values",C="entries",T=function(){return this};o.exports=function(A,k,M,$,N,j,_){s(M,k,$);var V=function(Y){if(Y===N&&O)return O;if(!b&&Y in it)return it[Y];switch(Y){case x:return function(){return new M(this,Y)};case S:return function(){return new M(this,Y)};case C:return function(){return new M(this,Y)}}return function(){return new M(this)}},Z=k+" Iterator",nt=!1,it=A.prototype,G=it[E]||it["@@iterator"]||N&&it[N],O=!b&&G||V(N),B=k=="Array"&&it.entries||G,I,K,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,Z,!0,!0),h&&(v[Z]=T))),N==S&&G&&G.name!==S&&(nt=!0,O=function(){return G.call(this)}),(!h||_)&&it[E]!==O&&d(it,E,O),v[k]=O,N)if(K={values:V(S),keys:j?O:V(x),entries:V(C)},_)for(et in K)(b||nt||!(et in it))&&p(it,et,K[et]);else u({target:k,proto:!0,forced:b||nt},K);return K}},"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,b,E,x=document.getElementsByTagName("script");h===y&&(g=document.documentElement.outerHTML,b=new RegExp("(?:[^\\n]+?\\n){0,"+(v-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),E=g.replace(b,"$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=r},"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,b,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&&(b=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:b),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"),b=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),$=m(M,0),N=0,j,_,V,Z,nt;for(j=-1,V=arguments.length;j<V;j++)if(nt=j===-1?M:arguments[j],C(nt)){if(Z=d(nt.length),N+Z>b)throw TypeError(E);for(_=0;_<Z;_++,N++)_ in nt&&p($,N,nt[_])}else{if(N>=b)throw TypeError(E);p($,N++,nt)}return $.length=N,$}})},"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 b=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))b=c(f,d,S,s(S.length),b,v-1)-1;else{if(b>=9007199254740991)throw TypeError("Exceed the acceptable array length");f[b]=S}b++}E++}return b};o.exports=c},a352:function(o,a){o.exports=n},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,b=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),$=arguments.length,N,j,_,V,Z,nt;if($===0?N=j=0:$===1?(N=0,j=k-M):(N=$-2,j=b(g(l(T),0),k-M)),k+N-j>E)throw TypeError(x);for(_=d(A,j),V=0;V<j;V++)Z=M+V,Z in A&&p(_,V,A[Z]);if(_.length=j,N<j){for(V=M;V<k-j;V++)Z=V+j,nt=V+N,Z in A?A[nt]=A[Z]:delete A[nt];for(V=k;V>k-j+N;V--)delete A[V-1]}else if(N>j)for(V=k-j;V>M;V--)Z=V+j-1,nt=V+N-1,Z in A?A[nt]=A[Z]:delete A[nt];for(V=0;V<N;V++)A[V+M]=arguments[V+2];return A.length=k-j+N,_}})},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"),b=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"),$=i("06cf"),N=i("9bf2"),j=i("d1e7"),_=i("9112"),V=i("6eeb"),Z=i("5692"),nt=i("f772"),it=i("d012"),G=i("90e3"),O=i("b622"),B=i("e538"),I=i("746f"),K=i("d44e"),et=i("69f3"),Y=i("b727").forEach,ot=nt("hidden"),mt="Symbol",bt="prototype",Pt=O("toPrimitive"),tt=et.set,Mt=et.getterFor(mt),Ct=Object[bt],ht=s.Symbol,kt=l("JSON","stringify"),ye=$.f,Vt=N.f,fe=k.f,De=j.f,Be=Z("symbols"),zt=Z("op-symbols"),lr=Z("string-to-symbol-registry"),Ur=Z("symbol-to-string-registry"),Zr=Z("wks"),eo=s.QObject,kn=!eo||!eo[bt]||!eo[bt].findChild,_r=f&&m(function(){return C(Vt({},"a",{get:function(){return Vt(this,"a",{value:7}).a}})).a!=7})?function(Bt,Et,Tt){var Yt=ye(Ct,Et);Yt&&delete Ct[Et],Vt(Bt,Et,Tt),Yt&&Bt!==Ct&&Vt(Ct,Et,Yt)}:Vt,Jr=function(Bt,Et){var Tt=Be[Bt]=C(ht[bt]);return tt(Tt,{type:mt,tag:Bt,description:Et}),f||(Tt.description=Et),Tt},W=p?function(Bt){return typeof Bt=="symbol"}:function(Bt){return Object(Bt)instanceof ht},H=function(Et,Tt,Yt){Et===Ct&&H(zt,Tt,Yt),g(Et);var Ut=x(Tt,!0);return g(Yt),h(Be,Ut)?(Yt.enumerable?(h(Et,ot)&&Et[ot][Ut]&&(Et[ot][Ut]=!1),Yt=C(Yt,{enumerable:S(0,!1)})):(h(Et,ot)||Vt(Et,ot,S(1,{})),Et[ot][Ut]=!0),_r(Et,Ut,Yt)):Vt(Et,Ut,Yt)},X=function(Et,Tt){g(Et);var Yt=E(Tt),Ut=T(Yt).concat(ae(Yt));return Y(Ut,function(Ne){(!f||gt.call(Yt,Ne))&&H(Et,Ne,Yt[Ne])}),Et},rt=function(Et,Tt){return Tt===void 0?C(Et):X(C(Et),Tt)},gt=function(Et){var Tt=x(Et,!0),Yt=De.call(this,Tt);return this===Ct&&h(Be,Tt)&&!h(zt,Tt)?!1:Yt||!h(this,Tt)||!h(Be,Tt)||h(this,ot)&&this[ot][Tt]?Yt:!0},wt=function(Et,Tt){var Yt=E(Et),Ut=x(Tt,!0);if(!(Yt===Ct&&h(Be,Ut)&&!h(zt,Ut))){var Ne=ye(Yt,Ut);return Ne&&h(Be,Ut)&&!(h(Yt,ot)&&Yt[ot][Ut])&&(Ne.enumerable=!0),Ne}},Ft=function(Et){var Tt=fe(E(Et)),Yt=[];return Y(Tt,function(Ut){!h(Be,Ut)&&!h(it,Ut)&&Yt.push(Ut)}),Yt},ae=function(Et){var Tt=Et===Ct,Yt=fe(Tt?zt:E(Et)),Ut=[];return Y(Yt,function(Ne){h(Be,Ne)&&(!Tt||h(Ct,Ne))&&Ut.push(Be[Ne])}),Ut};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=G(Et),Yt=function(Ut){this===Ct&&Yt.call(zt,Ut),h(this,ot)&&h(this[ot],Tt)&&(this[ot][Tt]=!1),_r(this,Tt,S(1,Ut))};return f&&kn&&_r(Ct,Tt,{configurable:!0,set:Yt}),Jr(Tt,Et)},V(ht[bt],"toString",function(){return Mt(this).tag}),V(ht,"withoutSetter",function(Bt){return Jr(G(Bt),Bt)}),j.f=gt,N.f=H,$.f=wt,A.f=k.f=Ft,M.f=ae,B.f=function(Bt){return Jr(O(Bt),Bt)},f&&(Vt(ht[bt],"description",{configurable:!0,get:function(){return Mt(this).description}}),c||V(Ct,"propertyIsEnumerable",gt,{unsafe:!0}))),u({global:!0,wrap:!0,forced:!d,sham:!d},{Symbol:ht}),Y(T(Zr),function(Bt){I(Bt)}),u({target:mt,stat:!0,forced:!d},{for:function(Bt){var Et=String(Bt);if(h(lr,Et))return lr[Et];var Tt=ht(Et);return lr[Et]=Tt,Ur[Tt]=Et,Tt},keyFor:function(Et){if(!W(Et))throw TypeError(Et+" is not a symbol");if(h(Ur,Et))return Ur[Et]},useSetter:function(){kn=!0},useSimple:function(){kn=!1}}),u({target:"Object",stat:!0,forced:!d,sham:!f},{create:rt,defineProperty:H,defineProperties:X,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(b(Et))}}),kt){var Se=!d||m(function(){var Bt=ht();return kt([Bt])!="[null]"||kt({a:Bt})!="{}"||kt(Object(Bt))!="{}"});u({target:"JSON",stat:!0,forced:Se},{stringify:function(Et,Tt,Yt){for(var Ut=[Et],Ne=1,Nn;arguments.length>Ne;)Ut.push(arguments[Ne++]);if(Nn=Tt,!(!y(Tt)&&Et===void 0||W(Et)))return v(Tt)||(Tt=function(In,jn){if(typeof Nn=="function"&&(jn=Nn.call(this,In,jn)),!W(jn))return jn}),Ut[1]=Tt,kt.apply(null,Ut)}})}ht[bt][Pt]||_(ht[bt],Pt,ht[bt].valueOf),K(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 b={length:-1};v?c(b,1,{enumerable:!0,get:d}):b[1]=1,h.call(b,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,b=m==6,E=m==5||b;return function(x,S,C,T){for(var A=l(x),k=s(A),M=u(S,C,3),$=c(k.length),N=0,j=T||f,_=h?j(x,$):v?j(x,0):void 0,V,Z;$>N;N++)if((E||N in k)&&(V=k[N],Z=M(V,N,A),m)){if(h)_[N]=Z;else if(Z)switch(m){case 3:return!0;case 5:return V;case 6:return N;case 2:d.call(_,V)}else if(g)return!1}return b?-1:y||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),b=c(y.length),E=d?b-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:b<=E)throw TypeError("Reduce of empty array with no initial value")}for(;d?E>=0:b>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 b=[];return b.groups={a:"7"},b},"".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=/(?:)/,b=g.exec;g.exec=function(){return b.apply(this,arguments)};var E="ab".split(g);return E.length!==2||E[0]!=="a"||E[1]!=="b"});o.exports=function(g,b,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,_,V,Z){return j.exec===c?C&&!Z?{done:!0,value:A.call(j,_,V)}:{done:!0,value:N.call(_,j,V)}:{done:!1}},{REPLACE_KEEPS_$0:m,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:v}),M=k[0],$=k[1];u(String.prototype,g,M),u(RegExp.prototype,S,b==2?function(N,j){return $.call(N,this,j)}:function(N){return $.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={},b=0,E,x;y.length>b;)x=v(h,E=y[b++]),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,b=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=b?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(W,H,X){return H in W?Object.defineProperty(W,H,{value:X,enumerable:!0,configurable:!0,writable:!0}):W[H]=X,W}function f(W,H){var X=Object.keys(W);if(Object.getOwnPropertySymbols){var rt=Object.getOwnPropertySymbols(W);H&&(rt=rt.filter(function(gt){return Object.getOwnPropertyDescriptor(W,gt).enumerable})),X.push.apply(X,rt)}return X}function d(W){for(var H=1;H<arguments.length;H++){var X=arguments[H]!=null?arguments[H]:{};H%2?f(Object(X),!0).forEach(function(rt){c(W,rt,X[rt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(W,Object.getOwnPropertyDescriptors(X)):f(Object(X)).forEach(function(rt){Object.defineProperty(W,rt,Object.getOwnPropertyDescriptor(X,rt))})}return W}function p(W){if(Array.isArray(W))return W}i("e01a"),i("d28b"),i("e260"),i("d3b7"),i("3ca3"),i("ddb0");function m(W,H){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(W)))){var X=[],rt=!0,gt=!1,wt=void 0;try{for(var Ft=W[Symbol.iterator](),ae;!(rt=(ae=Ft.next()).done)&&(X.push(ae.value),!(H&&X.length===H));rt=!0);}catch(Se){gt=!0,wt=Se}finally{try{!rt&&Ft.return!=null&&Ft.return()}finally{if(gt)throw wt}}return X}}i("a630"),i("fb6a"),i("b0c0"),i("25f0");function h(W,H){(H==null||H>W.length)&&(H=W.length);for(var X=0,rt=new Array(H);X<H;X++)rt[X]=W[X];return rt}function v(W,H){if(W){if(typeof W=="string")return h(W,H);var X=Object.prototype.toString.call(W).slice(8,-1);if(X==="Object"&&W.constructor&&(X=W.constructor.name),X==="Map"||X==="Set")return Array.from(W);if(X==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(X))return h(W,H)}}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(W,H){return p(W)||m(W,H)||v(W,H)||y()}function b(W){if(Array.isArray(W))return h(W)}function E(W){if(typeof Symbol<"u"&&Symbol.iterator in Object(W))return Array.from(W)}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(W){return b(W)||E(W)||v(W)||x()}var C=i("a352"),T=i.n(C);function A(W){W.parentElement!==null&&W.parentElement.removeChild(W)}function k(W,H,X){var rt=X===0?W.children[0]:W.children[X-1].nextSibling;W.insertBefore(H,rt)}var M=i("dbf1");i("13d5"),i("4fad"),i("ac1f"),i("5319");function $(W){var H=Object.create(null);return function(rt){var gt=H[rt];return gt||(H[rt]=W(rt))}}var N=/-(\w)/g,j=$(function(W){return W.replace(N,function(H,X){return X.toUpperCase()})});i("5db7"),i("73d9");var _=["Start","Add","Remove","Update","End"],V=["Choose","Unchoose","Sort","Filter","Clone"],Z=["Move"],nt=[Z,_,V].flatMap(function(W){return W}).map(function(W){return"on".concat(W)}),it={manage:Z,manageAndEmit:_,emit:V};function G(W){return nt.indexOf(W)!==-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(W){return O.includes(W)}function I(W){return["transition-group","TransitionGroup"].includes(W)}function K(W){return["id","class","role","style"].includes(W)||W.startsWith("data-")||W.startsWith("aria-")||W.startsWith("on")}function et(W){return W.reduce(function(H,X){var rt=g(X,2),gt=rt[0],wt=rt[1];return H[gt]=wt,H},{})}function Y(W){var H=W.$attrs,X=W.componentData,rt=X===void 0?{}:X,gt=et(Object.entries(H).filter(function(wt){var Ft=g(wt,2),ae=Ft[0];return Ft[1],K(ae)}));return d(d({},gt),rt)}function ot(W){var H=W.$attrs,X=W.callBackBuilder,rt=et(mt(H));Object.entries(X).forEach(function(wt){var Ft=g(wt,2),ae=Ft[0],Se=Ft[1];it[ae].forEach(function(Bt){rt["on".concat(Bt)]=Se(Bt)})});var gt="[data-draggable]".concat(rt.draggable||"");return d(d({},rt),{},{draggable:gt})}function mt(W){return Object.entries(W).filter(function(H){var X=g(H,2),rt=X[0];return X[1],!K(rt)}).map(function(H){var X=g(H,2),rt=X[0],gt=X[1];return[j(rt),gt]}).filter(function(H){var X=g(H,2),rt=X[0];return X[1],!G(rt)})}i("c740");function bt(W,H){if(!(W instanceof H))throw new TypeError("Cannot call a class as a function")}function Pt(W,H){for(var X=0;X<H.length;X++){var rt=H[X];rt.enumerable=rt.enumerable||!1,rt.configurable=!0,"value"in rt&&(rt.writable=!0),Object.defineProperty(W,rt.key,rt)}}function tt(W,H,X){return H&&Pt(W.prototype,H),W}var Mt=function(H){var X=H.el;return X},Ct=function(H,X){return H.__draggable_context=X},ht=function(H){return H.__draggable_context},kt=function(){function W(H){var X=H.nodes,rt=X.header,gt=X.default,wt=X.footer,Ft=H.root,ae=H.realList;bt(this,W),this.defaultNodes=gt,this.children=[].concat(S(rt),S(gt),S(wt)),this.externalComponent=Ft.externalComponent,this.rootTransition=Ft.transition,this.tag=Ft.tag,this.realList=ae}return tt(W,[{key:"render",value:function(X,rt){var gt=this.tag,wt=this.children,Ft=this._isRootComponent,ae=Ft?{default:function(){return wt}}:wt;return X(gt,rt,ae)}},{key:"updated",value:function(){var X=this.defaultNodes,rt=this.realList;X.forEach(function(gt,wt){Ct(Mt(gt),{element:rt[wt],index:wt})})}},{key:"getUnderlyingVm",value:function(X){return ht(X)}},{key:"getVmIndexFromDomIndex",value:function(X,rt){var gt=this.defaultNodes,wt=gt.length,Ft=rt.children,ae=Ft.item(X);if(ae===null)return wt;var Se=ht(ae);if(Se)return Se.index;if(wt===0)return 0;var Bt=Mt(gt[0]),Et=S(Ft).findIndex(function(Tt){return Tt===Bt});return X<Et?0:wt}},{key:"_isRootComponent",get:function(){return this.externalComponent||this.rootTransition}}]),W}(),ye=i("8bbf");function Vt(W,H){var X=W[H];return X?X():[]}function fe(W){var H=W.$slots,X=W.realList,rt=W.getKey,gt=X||[],wt=["header","footer"].map(function(Tt){return Vt(H,Tt)}),Ft=g(wt,2),ae=Ft[0],Se=Ft[1],Bt=H.item;if(!Bt)throw new Error("draggable element must have an item slot");var Et=gt.flatMap(function(Tt,Yt){return Bt({element:Tt,index:Yt}).map(function(Ut){return Ut.key=rt(Tt),Ut.props=d(d({},Ut.props||{}),{},{"data-draggable":!0}),Ut})});if(Et.length!==gt.length)throw new Error("Item slot must have only one child");return{header:ae,footer:Se,default:Et}}function De(W){var H=I(W),X=!B(W)&&!H;return{transition:H,externalComponent:X,tag:X?Object(ye.resolveComponent)(W):H?ye.TransitionGroup:W}}function Be(W){var H=W.$slots,X=W.tag,rt=W.realList,gt=W.getKey,wt=fe({$slots:H,realList:rt,getKey:gt}),Ft=De(X);return new kt({nodes:wt,root:Ft,realList:rt})}function zt(W,H){var X=this;Object(ye.nextTick)(function(){return X.$emit(W.toLowerCase(),H)})}function lr(W){var H=this;return function(X,rt){if(H.realList!==null)return H["onDrag".concat(W)](X,rt)}}function Ur(W){var H=this,X=lr.call(this,W);return function(rt,gt){X.call(H,rt,gt),zt.call(H,W,rt)}}var Zr=null,eo={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(H){return H}},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},kn=["update:modelValue","change"].concat(S([].concat(S(it.manageAndEmit),S(it.emit)).map(function(W){return W.toLowerCase()}))),_r=Object(ye.defineComponent)({name:"draggable",inheritAttrs:!1,props:eo,emits:kn,data:function(){return{error:!1}},render:function(){try{this.error=!1;var H=this.$slots,X=this.$attrs,rt=this.tag,gt=this.componentData,wt=this.realList,Ft=this.getKey,ae=Be({$slots:H,tag:rt,realList:wt,getKey:Ft});this.componentStructure=ae;var Se=Y({$attrs:X,componentData:gt});return ae.render(ye.h,Se)}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 H=this;if(!this.error){var X=this.$attrs,rt=this.$el,gt=this.componentStructure;gt.updated();var wt=ot({$attrs:X,callBackBuilder:{manageAndEmit:function(Se){return Ur.call(H,Se)},emit:function(Se){return zt.bind(H,Se)},manage:function(Se){return lr.call(H,Se)}}}),Ft=rt.nodeType===1?rt:rt.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 H=this.list;return H||this.modelValue},getKey:function(){var H=this.itemKey;return typeof H=="function"?H:function(X){return X[H]}}},watch:{$attrs:{handler:function(H){var X=this._sortable;X&&mt(H).forEach(function(rt){var gt=g(rt,2),wt=gt[0],Ft=gt[1];X.option(wt,Ft)})},deep:!0}},methods:{getUnderlyingVm:function(H){return this.componentStructure.getUnderlyingVm(H)||null},getUnderlyingPotencialDraggableComponent:function(H){return H.__draggable_component__},emitChanges:function(H){var X=this;Object(ye.nextTick)(function(){return X.$emit("change",H)})},alterList:function(H){if(this.list){H(this.list);return}var X=S(this.modelValue);H(X),this.$emit("update:modelValue",X)},spliceList:function(){var H=arguments,X=function(gt){return gt.splice.apply(gt,S(H))};this.alterList(X)},updatePosition:function(H,X){var rt=function(wt){return wt.splice(X,0,wt.splice(H,1)[0])};this.alterList(rt)},getRelatedContextFromMoveEvent:function(H){var X=H.to,rt=H.related,gt=this.getUnderlyingPotencialDraggableComponent(X);if(!gt)return{component:gt};var wt=gt.realList,Ft={list:wt,component:gt};if(X!==rt&&wt){var ae=gt.getUnderlyingVm(rt)||{};return d(d({},ae),Ft)}return Ft},getVmIndexFromDomIndex:function(H){return this.componentStructure.getVmIndexFromDomIndex(H,this.targetDomElement)},onDragStart:function(H){this.context=this.getUnderlyingVm(H.item),H.item._underlying_vm_=this.clone(this.context.element),Zr=H.item},onDragAdd:function(H){var X=H.item._underlying_vm_;if(X!==void 0){A(H.item);var rt=this.getVmIndexFromDomIndex(H.newIndex);this.spliceList(rt,0,X);var gt={element:X,newIndex:rt};this.emitChanges({added:gt})}},onDragRemove:function(H){if(k(this.$el,H.item,H.oldIndex),H.pullMode==="clone"){A(H.clone);return}var X=this.context,rt=X.index,gt=X.element;this.spliceList(rt,1);var wt={element:gt,oldIndex:rt};this.emitChanges({removed:wt})},onDragUpdate:function(H){A(H.item),k(H.from,H.item,H.oldIndex);var X=this.context.index,rt=this.getVmIndexFromDomIndex(H.newIndex);this.updatePosition(X,rt);var gt={element:this.context.element,oldIndex:X,newIndex:rt};this.emitChanges({moved:gt})},computeFutureIndex:function(H,X){if(!H.element)return 0;var rt=S(X.to.children).filter(function(ae){return ae.style.display!=="none"}),gt=rt.indexOf(X.related),wt=H.component.getVmIndexFromDomIndex(gt),Ft=rt.indexOf(Zr)!==-1;return Ft||!X.willInsertAfter?wt:wt+1},onDragMove:function(H,X){var rt=this.move,gt=this.realList;if(!rt||!gt)return!0;var wt=this.getRelatedContextFromMoveEvent(H),Ft=this.computeFutureIndex(wt,H),ae=d(d({},this.context),{},{futureIndex:Ft}),Se=d(d({},H),{},{relatedContext:wt,draggedContext:ae});return rt(Se,X)},onDragEnd:function(){Zr=null}}}),Jr=_r;a.default=Jr},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}),b=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),$=c(T===void 0?k:T,k),N,j,_;if(l(A)&&(N=A.constructor,typeof N=="function"&&(N===Array||l(N.prototype))?N=void 0:s(N)&&(N=N[b],N===null&&(N=void 0)),N===Array||N===void 0))return E.call(A,M,$);for(j=new(N===void 0?Array:N)(x($-M,0)),_=0;M<$;M++,_++)M in A&&p(j,_,A[M]);return j.length=_,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})})(_I);var E_=_I.exports;const ll=RU(E_);var Fe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function S_(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Ws(t){var e={exports:{}};return t(e,e.exports),e.exports}var aa,Wv,Ig=function(t){return t&&t.Math==Math&&t},Kt=Ig(typeof globalThis=="object"&&globalThis)||Ig(typeof window=="object"&&window)||Ig(typeof self=="object"&&self)||Ig(typeof Fe=="object"&&Fe)||function(){return this}()||Function("return this")(),SD=Function.prototype,Z8=SD.apply,x_=SD.bind,J8=SD.call,rj=typeof Reflect=="object"&&Reflect.apply||(x_?J8.bind(Z8):function(){return J8.apply(Z8,arguments)}),nj=Function.prototype,RS=nj.bind,LS=nj.call,C_=RS&&RS.bind(LS),$e=RS?function(t){return t&&C_(LS,t)}:function(t){return t&&function(){return LS.apply(t,arguments)}},Yr=function(t){return typeof t=="function"},Bn=function(t){try{return!!t()}catch{return!0}},Dn=!Bn(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),yf=Function.prototype.call,_n=yf.bind?yf.bind(yf):function(){return yf.apply(yf,arguments)},Q8={}.propertyIsEnumerable,q8=Object.getOwnPropertyDescriptor,D_=q8&&!Q8.call({1:2},1)?function(t){var e=q8(this,t);return!!e&&e.enumerable}:Q8,xD={f:D_},jo=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},O_=$e({}.toString),A_=$e("".slice),as=function(t){return A_(O_(t),8,-1)},lb=Kt.Object,T_=$e("".split),oj=Bn(function(){return!lb("z").propertyIsEnumerable(0)})?function(t){return as(t)=="String"?T_(t,""):lb(t)}:lb,B_=Kt.TypeError,CD=function(t){if(t==null)throw B_("Can't call method on "+t);return t},xi=function(t){return oj(CD(t))},co=function(t){return typeof t=="object"?t!==null:Yr(t)},Hn={},tO=function(t){return Yr(t)?t:void 0},Gc=function(t,e){return arguments.length<2?tO(Hn[t])||tO(Kt[t]):Hn[t]&&Hn[t][e]||Kt[t]&&Kt[t][e]},Tp=$e({}.isPrototypeOf),cb=Gc("navigator","userAgent")||"",eO=Kt.process,rO=Kt.Deno,nO=eO&&eO.versions||rO&&rO.version,oO=nO&&nO.v8;oO&&(Wv=(aa=oO.split("."))[0]>0&&aa[0]<4?1:+(aa[0]+aa[1])),!Wv&&cb&&(!(aa=cb.match(/Edge\/(\d+)/))||aa[1]>=74)&&(aa=cb.match(/Chrome\/(\d+)/))&&(Wv=+aa[1]);var jg,F0=Wv,Jo=!!Object.getOwnPropertySymbols&&!Bn(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&F0&&F0<41}),DD=Jo&&!Symbol.sham&&typeof Symbol.iterator=="symbol",P_=Kt.Object,rc=DD?function(t){return typeof t=="symbol"}:function(t){var e=Gc("Symbol");return Yr(e)&&Tp(e.prototype,P_(t))},F_=Kt.String,MS=function(t){try{return F_(t)}catch{return"Object"}},k_=Kt.TypeError,OD=function(t){if(Yr(t))return t;throw k_(MS(t)+" is not a function")},k0=function(t,e){var r=t[e];return r==null?void 0:OD(r)},N_=Kt.TypeError,I_=Object.defineProperty,Ma=Kt["__core-js_shared__"]||function(t,e){try{I_(Kt,t,{value:e,configurable:!0,writable:!0})}catch{Kt[t]=e}return e}("__core-js_shared__",{}),Ks=Ws(function(t){(t.exports=function(e,r){return Ma[e]||(Ma[e]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),j_=Kt.Object,Th=function(t){return j_(CD(t))},R_=$e({}.hasOwnProperty),ce=Object.hasOwn||function(t,e){return R_(Th(t),e)},L_=0,M_=Math.random(),V_=$e(1 .toString),N0=function(t){return"Symbol("+(t===void 0?"":t)+")_"+V_(++L_+M_,36)},bf=Ks("wks"),us=Kt.Symbol,iO=us&&us.for,$_=DD?us:us&&us.withoutSetter||N0,cn=function(t){if(!ce(bf,t)||!Jo&&typeof bf[t]!="string"){var e="Symbol."+t;Jo&&ce(us,t)?bf[t]=us[t]:bf[t]=DD&&iO?iO(e):$_(e)}return bf[t]},z_=Kt.TypeError,H_=cn("toPrimitive"),U_=function(t,e){if(!co(t)||rc(t))return t;var r,n=k0(t,H_);if(n){if(r=_n(n,t,e),!co(r)||rc(r))return r;throw z_("Can't convert object to primitive value")}return function(o,a){var i,u;if(Yr(i=o.toString)&&!co(u=_n(i,o))||Yr(i=o.valueOf)&&!co(u=_n(i,o)))return u;throw N_("Can't convert object to primitive value")}(t)},Wc=function(t){var e=U_(t,"string");return rc(e)?e:e+""},VS=Kt.document,__=co(VS)&&co(VS.createElement),ij=function(t){return __?VS.createElement(t):{}},aj=!Dn&&!Bn(function(){return Object.defineProperty(ij("div"),"a",{get:function(){return 7}}).a!=7}),aO=Object.getOwnPropertyDescriptor,G_=Dn?aO:function(t,e){if(t=xi(t),e=Wc(e),aj)try{return aO(t,e)}catch{}if(ce(t,e))return jo(!_n(xD.f,t,e),t[e])},_y={f:G_},W_=/#|\.prototype\./,Bh=function(t,e){var r=Y_[K_(t)];return r==Z_||r!=X_&&(Yr(e)?Bn(e):!!e)},K_=Bh.normalize=function(t){return String(t).replace(W_,".").toLowerCase()},Y_=Bh.data={},X_=Bh.NATIVE="N",Z_=Bh.POLYFILL="P",J_=Bh,uO=$e($e.bind),AD=function(t,e){return OD(t),e===void 0?t:uO?uO(t,e):function(){return t.apply(e,arguments)}},Q_=Kt.String,q_=Kt.TypeError,Kn=function(t){if(co(t))return t;throw q_(Q_(t)+" is not an object")},tG=Kt.TypeError,sO=Object.defineProperty,eG=Dn?sO:function(t,e,r){if(Kn(t),e=Wc(e),Kn(r),aj)try{return sO(t,e,r)}catch{}if("get"in r||"set"in r)throw tG("Accessors not supported");return"value"in r&&(t[e]=r.value),t},mu={f:eG},pn=Dn?function(t,e,r){return mu.f(t,e,jo(1,r))}:function(t,e,r){return t[e]=r,t},rG=_y.f,nG=function(t){var e=function(r,n,o){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(r);case 2:return new t(r,n)}return new t(r,n,o)}return rj(t,this,arguments)};return e.prototype=t.prototype,e},Ii=function(t,e){var r,n,o,a,i,u,s,l,c=t.target,f=t.global,d=t.stat,p=t.proto,m=f?Kt:d?Kt[c]:(Kt[c]||{}).prototype,h=f?Hn:Hn[c]||pn(Hn,c,{})[c],v=h.prototype;for(o in e)r=!J_(f?o:c+(d?".":"#")+o,t.forced)&&m&&ce(m,o),i=h[o],r&&(u=t.noTargetGet?(l=rG(m,o))&&l.value:m[o]),a=r&&u?u:e[o],r&&typeof i==typeof a||(s=t.bind&&r?AD(a,Kt):t.wrap&&r?nG(a):p&&Yr(a)?$e(a):a,(t.sham||a&&a.sham||i&&i.sham)&&pn(s,"sham",!0),pn(h,o,s),p&&(ce(Hn,n=c+"Prototype")||pn(Hn,n,{}),pn(Hn[n],o,a),t.real&&v&&!v[o]&&pn(v,o,a)))},lO=Ks("keys"),Gy=function(t){return lO[t]||(lO[t]=N0(t))},oG=!Bn(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),cO=Gy("IE_PROTO"),$S=Kt.Object,iG=$S.prototype,I0=oG?$S.getPrototypeOf:function(t){var e=Th(t);if(ce(e,cO))return e[cO];var r=e.constructor;return Yr(r)&&e instanceof r?r.prototype:e instanceof $S?iG:null},aG=Kt.String,uG=Kt.TypeError,j0=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=$e(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch{}return function(n,o){return Kn(n),function(a){if(typeof a=="object"||Yr(a))return a;throw uG("Can't set "+aG(a)+" as a prototype")}(o),e?t(n,o):n.__proto__=o,n}}():void 0),sG=Math.ceil,lG=Math.floor,TD=function(t){var e=+t;return e!=e||e===0?0:(e>0?lG:sG)(e)},cG=Math.max,fG=Math.min,zS=function(t,e){var r=TD(t);return r<0?cG(r+e,0):fG(r,e)},dG=Math.min,Ph=function(t){return(e=t.length)>0?dG(TD(e),9007199254740991):0;var e},pG=function(t){return function(e,r,n){var o,a=xi(e),i=Ph(a),u=zS(n,i);if(t&&r!=r){for(;i>u;)if((o=a[u++])!=o)return!0}else for(;i>u;u++)if((t||u in a)&&a[u]===r)return t||u||0;return!t&&-1}},hG={indexOf:pG(!1)},Fh={},gG=hG.indexOf,fO=$e([].push),uj=function(t,e){var r,n=xi(t),o=0,a=[];for(r in n)!ce(Fh,r)&&ce(n,r)&&fO(a,r);for(;e.length>o;)ce(n,r=e[o++])&&(~gG(a,r)||fO(a,r));return a},R0=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],vG=R0.concat("length","prototype"),mG=Object.getOwnPropertyNames||function(t){return uj(t,vG)},BD={f:mG},Kv={f:Object.getOwnPropertySymbols},yG=$e([].concat),bG=Gc("Reflect","ownKeys")||function(t){var e=BD.f(Kn(t)),r=Kv.f;return r?yG(e,r(t)):e},PD=Object.keys||function(t){return uj(t,R0)},wG=Dn?Object.defineProperties:function(t,e){Kn(t);for(var r,n=xi(e),o=PD(e),a=o.length,i=0;a>i;)mu.f(t,r=o[i++],n[r]);return t},EG=Gc("document","documentElement"),sj=Gy("IE_PROTO"),fb=function(){},lj=function(t){return"<script>"+t+"<\/script>"},dO=function(t){t.write(lj("")),t.close();var e=t.parentWindow.Object;return t=null,e},Yv=function(){try{jg=new ActiveXObject("htmlfile")}catch{}var t,e;Yv=typeof document<"u"?document.domain&&jg?dO(jg):((e=ij("iframe")).style.display="none",EG.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(lj("document.F=Object")),t.close(),t.F):dO(jg);for(var r=R0.length;r--;)delete Yv.prototype[R0[r]];return Yv()};Fh[sj]=!0;var Ki=Object.create||function(t,e){var r;return t!==null?(fb.prototype=Kn(t),r=new fb,fb.prototype=null,r[sj]=t):r=Yv(),e===void 0?r:wG(r,e)},HS=function(t,e,r){var n=Wc(e);n in t?mu.f(t,n,jo(0,r)):t[n]=r},SG=Kt.Array,xG=Math.max,cj=function(t,e,r){for(var n=Ph(t),o=zS(e,n),a=zS(n,n),i=SG(xG(a-o,0)),u=0;o<a;o++,u++)HS(i,u,t[o]);return i.length=u,i},CG=$e("".replace),DG=$e("".split),OG=$e([].join),US=String(Error("zxcasd").stack),fj=/\n\s*at [^:]*:[^\n]*/,AG=fj.test(US),TG=/@[^\n]*\n/.test(US)&&!/zxcasd/.test(US),BG=function(t,e){if(typeof t!="string")return t;if(AG)for(;e--;)t=CG(t,fj,"");else if(TG)return OG(cj(DG(t,`
|
|
11
|
+
`),e),`
|
|
12
|
+
`);return t},PG=function(t,e){co(e)&&"cause"in e&&pn(t,"cause",e.cause)},Ui={},FG=cn("iterator"),kG=Array.prototype,dj={};dj[cn("toStringTag")]="z";var FD=String(dj)==="[object z]",NG=cn("toStringTag"),IG=Kt.Object,jG=as(function(){return arguments}())=="Arguments",kh=FD?as:function(t){var e,r,n;return t===void 0?"Undefined":t===null?"Null":typeof(r=function(o,a){try{return o[a]}catch{}}(e=IG(t),NG))=="string"?r:jG?as(e):(n=as(e))=="Object"&&Yr(e.callee)?"Arguments":n},RG=cn("iterator"),pO=function(t){if(t!=null)return k0(t,RG)||k0(t,"@@iterator")||Ui[kh(t)]},LG=Kt.TypeError,hO=function(t,e,r){var n,o;Kn(t);try{if(!(n=k0(t,"return"))){if(e==="throw")throw r;return r}n=_n(n,t)}catch(a){o=!0,n=a}if(e==="throw")throw r;if(o)throw n;return Kn(n),r},MG=Kt.TypeError,Xv=function(t,e){this.stopped=t,this.result=e},gO=Xv.prototype,VG=function(t,e,r){var n,o,a,i,u,s,l,c=r&&r.that,f=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_ITERATOR),p=!(!r||!r.INTERRUPTED),m=AD(e,c),h=function(y){return n&&hO(n,"normal",y),new Xv(!0,y)},v=function(y){return f?(Kn(y),p?m(y[0],y[1],h):m(y[0],y[1])):p?m(y,h):m(y)};if(d)n=t;else{if(!(o=pO(t)))throw MG(MS(t)+" is not iterable");if(function(y){return y!==void 0&&(Ui.Array===y||kG[FG]===y)}(o)){for(a=0,i=Ph(t);i>a;a++)if((u=v(t[a]))&&Tp(gO,u))return u;return new Xv(!1)}n=function(y,g){var b=arguments.length<2?pO(y):g;if(OD(b))return Kn(_n(b,y));throw LG(MS(y)+" is not iterable")}(t,o)}for(s=n.next;!(l=_n(s,n)).done;){try{u=v(l.value)}catch(y){hO(n,"throw",y)}if(typeof u=="object"&&u&&Tp(gO,u))return u}return new Xv(!1)},$G=Kt.String,Bp=function(t){if(kh(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return $G(t)},zG=function(t,e){return t===void 0?arguments.length<2?"":e:Bp(t)},HG=!Bn(function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",jo(1,7)),t.stack!==7)}),UG=cn("toStringTag"),L0=Kt.Error,_G=[].push,Pp=function(t,e){var r,n=arguments.length>2?arguments[2]:void 0,o=Tp(db,this);j0?r=j0(new L0(void 0),o?I0(this):db):(r=o?this:Ki(db),pn(r,UG,"Error")),pn(r,"message",zG(e,"")),HG&&pn(r,"stack",BG(r.stack,1)),PG(r,n);var a=[];return VG(t,_G,{that:a}),pn(r,"errors",a),r};j0?j0(Pp,L0):function(t,e){for(var r=bG(e),n=mu.f,o=_y.f,a=0;a<r.length;a++){var i=r[a];ce(t,i)||n(t,i,o(e,i))}}(Pp,L0);var db=Pp.prototype=Ki(L0.prototype,{constructor:jo(1,Pp),message:jo(1,""),name:jo(1,"AggregateError")});Ii({global:!0},{AggregateError:Pp});var GG=$e(Function.toString);Yr(Ma.inspectSource)||(Ma.inspectSource=function(t){return GG(t)});var M0,op,V0,pj=Ma.inspectSource,vO=Kt.WeakMap,WG=Yr(vO)&&/native code/.test(pj(vO)),_S=Kt.TypeError,KG=Kt.WeakMap;if(WG||Ma.state){var Bu=Ma.state||(Ma.state=new KG),YG=$e(Bu.get),mO=$e(Bu.has),XG=$e(Bu.set);M0=function(t,e){if(mO(Bu,t))throw new _S("Object already initialized");return e.facade=t,XG(Bu,t,e),e},op=function(t){return YG(Bu,t)||{}},V0=function(t){return mO(Bu,t)}}else{var cl=Gy("state");Fh[cl]=!0,M0=function(t,e){if(ce(t,cl))throw new _S("Object already initialized");return e.facade=t,pn(t,cl,e),e},op=function(t){return ce(t,cl)?t[cl]:{}},V0=function(t){return ce(t,cl)}}var ka,yO,bO,Kc={set:M0,get:op,has:V0,enforce:function(t){return V0(t)?op(t):M0(t,{})},getterFor:function(t){return function(e){var r;if(!co(e)||(r=op(e)).type!==t)throw _S("Incompatible receiver, "+t+" required");return r}}},hj=Function.prototype,ZG=Dn&&Object.getOwnPropertyDescriptor,wO=ce(hj,"name"),JG={PROPER:wO&&(function(){}).name==="something",CONFIGURABLE:wO&&(!Dn||Dn&&ZG(hj,"name").configurable)},$0=function(t,e,r,n){pn(t,e,r)},GS=cn("iterator"),gj=!1;[].keys&&("next"in(bO=[].keys())?(yO=I0(I0(bO)))!==Object.prototype&&(ka=yO):gj=!0);var QG=ka==null||Bn(function(){var t={};return ka[GS].call(t)!==t});ka=QG?{}:Ki(ka),Yr(ka[GS])||$0(ka,GS,function(){return this});var vj={IteratorPrototype:ka,BUGGY_SAFARI_ITERATORS:gj},qG=FD?{}.toString:function(){return"[object "+kh(this)+"]"},tW=mu.f,EO=cn("toStringTag"),z0=function(t,e,r,n){if(t){var o=r?t:t.prototype;ce(o,EO)||tW(o,EO,{configurable:!0,value:e}),n&&!FD&&pn(o,"toString",qG)}},eW=vj.IteratorPrototype,rW=function(){return this},nW=JG.PROPER,pb=vj.BUGGY_SAFARI_ITERATORS,oW=cn("iterator"),iW=function(){return this},mj=function(t,e,r,n,o,a,i){(function(v,y,g,b){var E=y+" Iterator";v.prototype=Ki(eW,{next:jo(1,g)}),z0(v,E,!1,!0),Ui[E]=rW})(r,e,n);var u,s,l=function(v){if(v===o&&m)return m;if(!pb&&v in d)return d[v];switch(v){case"keys":case"values":case"entries":return function(){return new r(this,v)}}return function(){return new r(this)}},c=e+" Iterator",f=!1,d=t.prototype,p=d[oW]||d["@@iterator"]||o&&d[o],m=!pb&&p||l(o),h=e=="Array"&&d.entries||p;return h&&(u=I0(h.call(new t)))!==Object.prototype&&u.next&&(z0(u,c,!0,!0),Ui[c]=iW),nW&&o=="values"&&p&&p.name!=="values"&&(f=!0,m=function(){return _n(p,this)}),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},i||Ii({target:e,proto:!0,forced:pb||f},s)),Ui[e]=m,s},aW=Kc.set,uW=Kc.getterFor("Array Iterator");mj(Array,"Array",function(t,e){aW(this,{type:"Array Iterator",target:xi(t),index:0,kind:e})},function(){var t=uW(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}},"values"),Ui.Arguments=Ui.Array;var sW=$e("".charAt),SO=$e("".charCodeAt),lW=$e("".slice),cW=function(t){return function(e,r){var n,o,a=Bp(CD(e)),i=TD(r),u=a.length;return i<0||i>=u?t?"":void 0:(n=SO(a,i))<55296||n>56319||i+1===u||(o=SO(a,i+1))<56320||o>57343?t?sW(a,i):n:t?lW(a,i,i+2):o-56320+(n-55296<<10)+65536}},fW={charAt:cW(!0)}.charAt,dW=Kc.set,pW=Kc.getterFor("String Iterator");mj(String,"String",function(t){dW(this,{type:"String Iterator",string:Bp(t),index:0})},function(){var t,e=pW(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=fW(r,n),e.index+=t.length,{value:t,done:!1})});var hW=Hn.AggregateError,xO=cn("toStringTag");for(var hb 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 CO=Kt[hb],gb=CO&&CO.prototype;gb&&kh(gb)!==xO&&pn(gb,xO,hb),Ui[hb]=Ui.Array}var ua,Zv,gW=hW,Rg=function(t){return t&&t.Math==Math&&t},$t=Rg(typeof globalThis=="object"&&globalThis)||Rg(typeof window=="object"&&window)||Rg(typeof self=="object"&&self)||Rg(typeof Fe=="object"&&Fe)||function(){return this}()||Function("return this")(),$r=function(t){try{return!!t()}catch{return!0}},gi=!$r(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),wf=Function.prototype.call,Kr=wf.bind?wf.bind(wf):function(){return wf.apply(wf,arguments)},DO={}.propertyIsEnumerable,OO=Object.getOwnPropertyDescriptor,vW=OO&&!DO.call({1:2},1)?function(t){var e=OO(this,t);return!!e&&e.enumerable}:DO,mW={f:vW},Va=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},yj=Function.prototype,WS=yj.bind,KS=yj.call,yW=WS&&WS.bind(KS),Oe=WS?function(t){return t&&yW(KS,t)}:function(t){return t&&function(){return KS.apply(t,arguments)}},bW=Oe({}.toString),wW=Oe("".slice),ss=function(t){return wW(bW(t),8,-1)},vb=$t.Object,EW=Oe("".split),bj=$r(function(){return!vb("z").propertyIsEnumerable(0)})?function(t){return ss(t)=="String"?EW(t,""):vb(t)}:vb,SW=$t.TypeError,Wy=function(t){if(t==null)throw SW("Can't call method on "+t);return t},Yc=function(t){return bj(Wy(t))},Ir=function(t){return typeof t=="function"},ni=function(t){return typeof t=="object"?t!==null:Ir(t)},xW=function(t){return Ir(t)?t:void 0},Nh=function(t,e){return arguments.length<2?xW($t[t]):$t[t]&&$t[t][e]},H0=Oe({}.isPrototypeOf),mb=Nh("navigator","userAgent")||"",AO=$t.process,TO=$t.Deno,BO=AO&&AO.versions||TO&&TO.version,PO=BO&&BO.v8;PO&&(Zv=(ua=PO.split("."))[0]>0&&ua[0]<4?1:+(ua[0]+ua[1])),!Zv&&mb&&(!(ua=mb.match(/Edge\/(\d+)/))||ua[1]>=74)&&(ua=mb.match(/Chrome\/(\d+)/))&&(Zv=+ua[1]);var FO=Zv,YS=!!Object.getOwnPropertySymbols&&!$r(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&FO&&FO<41}),kD=YS&&!Symbol.sham&&typeof Symbol.iterator=="symbol",CW=$t.Object,XS=kD?function(t){return typeof t=="symbol"}:function(t){var e=Nh("Symbol");return Ir(e)&&H0(e.prototype,CW(t))},DW=$t.String,ZS=function(t){try{return DW(t)}catch{return"Object"}},OW=$t.TypeError,ND=function(t){if(Ir(t))return t;throw OW(ZS(t)+" is not a function")},Fp=function(t,e){var r=t[e];return r==null?void 0:ND(r)},AW=$t.TypeError,TW=Object.defineProperty,ID=function(t,e){try{TW($t,t,{value:e,configurable:!0,writable:!0})}catch{$t[t]=e}return e},$a=$t["__core-js_shared__"]||ID("__core-js_shared__",{}),jD=Ws(function(t){(t.exports=function(e,r){return $a[e]||($a[e]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),BW=$t.Object,RD=function(t){return BW(Wy(t))},PW=Oe({}.hasOwnProperty),On=Object.hasOwn||function(t,e){return PW(RD(t),e)},FW=0,kW=Math.random(),NW=Oe(1 .toString),wj=function(t){return"Symbol("+(t===void 0?"":t)+")_"+NW(++FW+kW,36)},Ef=jD("wks"),ls=$t.Symbol,kO=ls&&ls.for,IW=kD?ls:ls&&ls.withoutSetter||wj,vn=function(t){if(!On(Ef,t)||!YS&&typeof Ef[t]!="string"){var e="Symbol."+t;YS&&On(ls,t)?Ef[t]=ls[t]:Ef[t]=kD&&kO?kO(e):IW(e)}return Ef[t]},jW=$t.TypeError,RW=vn("toPrimitive"),LW=function(t,e){if(!ni(t)||XS(t))return t;var r,n=Fp(t,RW);if(n){if(r=Kr(n,t,e),!ni(r)||XS(r))return r;throw jW("Can't convert object to primitive value")}return function(o,a){var i,u;if(Ir(i=o.toString)&&!ni(u=Kr(i,o))||Ir(i=o.valueOf)&&!ni(u=Kr(i,o)))return u;throw AW("Can't convert object to primitive value")}(t)},LD=function(t){var e=LW(t,"string");return XS(e)?e:e+""},JS=$t.document,MW=ni(JS)&&ni(JS.createElement),MD=function(t){return MW?JS.createElement(t):{}},Ej=!gi&&!$r(function(){return Object.defineProperty(MD("div"),"a",{get:function(){return 7}}).a!=7}),NO=Object.getOwnPropertyDescriptor,VW=gi?NO:function(t,e){if(t=Yc(t),e=LD(e),Ej)try{return NO(t,e)}catch{}if(On(t,e))return Va(!Kr(mW.f,t,e),t[e])},VD={f:VW},$W=$t.String,zW=$t.TypeError,Yn=function(t){if(ni(t))return t;throw zW($W(t)+" is not an object")},HW=$t.TypeError,IO=Object.defineProperty,UW=gi?IO:function(t,e,r){if(Yn(t),e=LD(e),Yn(r),Ej)try{return IO(t,e,r)}catch{}if("get"in r||"set"in r)throw HW("Accessors not supported");return"value"in r&&(t[e]=r.value),t},Xc={f:UW},xn=gi?function(t,e,r){return Xc.f(t,e,Va(1,r))}:function(t,e,r){return t[e]=r,t},_W=Oe(Function.toString);Ir($a.inspectSource)||($a.inspectSource=function(t){return _W(t)});var U0,ip,_0,$D=$a.inspectSource,jO=$t.WeakMap,GW=Ir(jO)&&/native code/.test($D(jO)),RO=jD("keys"),zD=function(t){return RO[t]||(RO[t]=wj(t))},HD={},QS=$t.TypeError,WW=$t.WeakMap;if(GW||$a.state){var Pu=$a.state||($a.state=new WW),KW=Oe(Pu.get),LO=Oe(Pu.has),YW=Oe(Pu.set);U0=function(t,e){if(LO(Pu,t))throw new QS("Object already initialized");return e.facade=t,YW(Pu,t,e),e},ip=function(t){return KW(Pu,t)||{}},_0=function(t){return LO(Pu,t)}}else{var fl=zD("state");HD[fl]=!0,U0=function(t,e){if(On(t,fl))throw new QS("Object already initialized");return e.facade=t,xn(t,fl,e),e},ip=function(t){return On(t,fl)?t[fl]:{}},_0=function(t){return On(t,fl)}}var Ps={set:U0,get:ip,has:_0,enforce:function(t){return _0(t)?ip(t):U0(t,{})},getterFor:function(t){return function(e){var r;if(!ni(e)||(r=ip(e)).type!==t)throw QS("Incompatible receiver, "+t+" required");return r}}},Sj=Function.prototype,XW=gi&&Object.getOwnPropertyDescriptor,MO=On(Sj,"name"),UD={PROPER:MO&&(function(){}).name==="something",CONFIGURABLE:MO&&(!gi||gi&&XW(Sj,"name").configurable)},Fs=Ws(function(t){var e=UD.CONFIGURABLE,r=Ps.get,n=Ps.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")+"]"),(!On(u,"name")||e&&u.name!==p)&&xn(u,"name",p),(l=n(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:xn(a,i,u)):f?a[i]=u:ID(i,u)})(Function.prototype,"toString",function(){return Ir(this)&&r(this).source||$D(this)})}),ZW=Math.ceil,JW=Math.floor,_D=function(t){var e=+t;return e!=e||e===0?0:(e>0?JW:ZW)(e)},QW=Math.max,qW=Math.min,qS=function(t,e){var r=_D(t);return r<0?QW(r+e,0):qW(r,e)},tK=Math.min,xj=function(t){return t>0?tK(_D(t),9007199254740991):0},Ky=function(t){return xj(t.length)},eK=function(t){return function(e,r,n){var o,a=Yc(e),i=Ky(a),u=qS(n,i);if(t&&r!=r){for(;i>u;)if((o=a[u++])!=o)return!0}else for(;i>u;u++)if((t||u in a)&&a[u]===r)return t||u||0;return!t&&-1}},rK={indexOf:eK(!1)}.indexOf,VO=Oe([].push),Cj=function(t,e){var r,n=Yc(t),o=0,a=[];for(r in n)!On(HD,r)&&On(n,r)&&VO(a,r);for(;e.length>o;)On(n,r=e[o++])&&(~rK(a,r)||VO(a,r));return a},G0=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],nK=G0.concat("length","prototype"),oK=Object.getOwnPropertyNames||function(t){return Cj(t,nK)},iK={f:oK},aK={f:Object.getOwnPropertySymbols},uK=Oe([].concat),sK=Nh("Reflect","ownKeys")||function(t){var e=iK.f(Yn(t)),r=aK.f;return r?uK(e,r(t)):e},Dj=function(t,e){for(var r=sK(e),n=Xc.f,o=VD.f,a=0;a<r.length;a++){var i=r[a];On(t,i)||n(t,i,o(e,i))}},lK=/#|\.prototype\./,Ih=function(t,e){var r=fK[cK(t)];return r==pK||r!=dK&&(Ir(e)?$r(e):!!e)},cK=Ih.normalize=function(t){return String(t).replace(lK,".").toLowerCase()},fK=Ih.data={},dK=Ih.NATIVE="N",pK=Ih.POLYFILL="P",hK=Ih,gK=VD.f,jh=function(t,e){var r,n,o,a,i,u=t.target,s=t.global,l=t.stat;if(r=s?$t:l?$t[u]||ID(u,{}):($t[u]||{}).prototype)for(n in e){if(a=e[n],o=t.noTargetGet?(i=gK(r,n))&&i.value:r[n],!hK(s?n:u+(l?".":"#")+n,t.forced)&&o!==void 0){if(typeof a==typeof o)continue;Dj(a,o)}(t.sham||o&&o.sham)&&xn(a,"sham",!0),Fs(r,n,a,t)}},Oj={};Oj[vn("toStringTag")]="z";var Lg,GD=String(Oj)==="[object z]",vK=vn("toStringTag"),mK=$t.Object,yK=ss(function(){return arguments}())=="Arguments",Yy=GD?ss:function(t){var e,r,n;return t===void 0?"Undefined":t===null?"Null":typeof(r=function(o,a){try{return o[a]}catch{}}(e=mK(t),vK))=="string"?r:yK?ss(e):(n=ss(e))=="Object"&&Ir(e.callee)?"Arguments":n},bK=$t.String,cs=function(t){if(Yy(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return bK(t)},wK=function(){var t=Yn(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},WD=$t.RegExp,Aj=$r(function(){var t=WD("a","y");return t.lastIndex=2,t.exec("abcd")!=null});Aj||$r(function(){return!WD("a","y").sticky});var EK=Aj||$r(function(){var t=WD("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),SK={BROKEN_CARET:EK},xK=Object.keys||function(t){return Cj(t,G0)},CK=gi?Object.defineProperties:function(t,e){Yn(t);for(var r,n=Yc(e),o=xK(e),a=o.length,i=0;a>i;)Xc.f(t,r=o[i++],n[r]);return t},DK=Nh("document","documentElement"),Tj=zD("IE_PROTO"),yb=function(){},Bj=function(t){return"<script>"+t+"<\/script>"},$O=function(t){t.write(Bj("")),t.close();var e=t.parentWindow.Object;return t=null,e},Jv=function(){try{Lg=new ActiveXObject("htmlfile")}catch{}var t,e;Jv=typeof document<"u"?document.domain&&Lg?$O(Lg):((e=MD("iframe")).style.display="none",DK.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(Bj("document.F=Object")),t.close(),t.F):$O(Lg);for(var r=G0.length;r--;)delete Jv.prototype[G0[r]];return Jv()};HD[Tj]=!0;var zO,bb,Rh=Object.create||function(t,e){var r;return t!==null?(yb.prototype=Yn(t),r=new yb,yb.prototype=null,r[Tj]=t):r=Jv(),e===void 0?r:CK(r,e)},OK=$t.RegExp,AK=$r(function(){var t=OK(".","s");return!(t.dotAll&&t.exec(`
|
|
13
|
+
`)&&t.flags==="s")}),TK=$t.RegExp,BK=$r(function(){var t=TK("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),PK=Ps.get,FK=jD("native-string-replace",String.prototype.replace),W0=RegExp.prototype.exec,tx=W0,kK=Oe("".charAt),NK=Oe("".indexOf),IK=Oe("".replace),wb=Oe("".slice),Eb=(bb=/b*/g,Kr(W0,zO=/a/,"a"),Kr(W0,bb,"a"),zO.lastIndex!==0||bb.lastIndex!==0),HO=SK.BROKEN_CARET,Sb=/()??/.exec("")[1]!==void 0;(Eb||Sb||HO||AK||BK)&&(tx=function(t){var e,r,n,o,a,i,u,s=this,l=PK(s),c=cs(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=Kr(tx,f,c),s.lastIndex=f.lastIndex,e;var d=l.groups,p=HO&&s.sticky,m=Kr(wK,s),h=s.source,v=0,y=c;if(p&&(m=IK(m,"y",""),NK(m,"g")===-1&&(m+="g"),y=wb(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&kK(c,s.lastIndex-1)!==`
|
|
14
|
+
`)&&(h="(?: "+h+")",y=" "+y,v++),r=new RegExp("^(?:"+h+")",m)),Sb&&(r=new RegExp("^"+h+"$(?!\\s)",m)),Eb&&(n=s.lastIndex),o=Kr(W0,p?r:s,y),p?o?(o.input=wb(o.input,v),o[0]=wb(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Eb&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),Sb&&o&&o.length>1&&Kr(FK,o[0],r,function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(o[a]=void 0)}),o&&d)for(o.groups=i=Rh(null),a=0;a<d.length;a++)i[(u=d[a])[0]]=o[u[1]];return o});var K0=tx;jh({target:"RegExp",proto:!0,forced:/./.exec!==K0},{exec:K0});var jK=vn("species"),UO=RegExp.prototype,RK=Oe("".charAt),_O=Oe("".charCodeAt),LK=Oe("".slice),MK=function(t){return function(e,r){var n,o,a=cs(Wy(e)),i=_D(r),u=a.length;return i<0||i>=u?t?"":void 0:(n=_O(a,i))<55296||n>56319||i+1===u||(o=_O(a,i+1))<56320||o>57343?t?RK(a,i):n:t?LK(a,i,i+2):o-56320+(n-55296<<10)+65536}},Pj={charAt:MK(!0)},VK=Pj.charAt,$K=function(t,e,r){return e+(r?VK(t,e).length:1)},zK=$t.TypeError,GO=function(t,e){var r=t.exec;if(Ir(r)){var n=Kr(r,t,e);return n!==null&&Yn(n),n}if(ss(t)==="RegExp")return Kr(K0,t,e);throw zK("RegExp#exec called on incompatible receiver")};(function(t,e,r,n){var o=vn(t),a=!$r(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),i=a&&!$r(function(){var l=!1,c=/a/;return t==="split"&&((c={}).constructor={},c.constructor[jK]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!a||!i||r){var u=Oe(/./[o]),s=e(o,""[t],function(l,c,f,d,p){var m=Oe(l),h=c.exec;return h===K0||h===UO.exec?a&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:m(f,c,d)}:{done:!1}});Fs(String.prototype,t,s[0]),Fs(UO,o,s[1])}})("match",function(t,e,r){return[function(n){var o=Wy(this),a=n==null?void 0:Fp(n,t);return a?Kr(a,n,o):new RegExp(n)[t](cs(o))},function(n){var o=Yn(this),a=cs(n),i=r(e,o,a);if(i.done)return i.value;if(!o.global)return GO(o,a);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=GO(o,a))!==null;){var f=cs(s[0]);l[c]=f,f===""&&(o.lastIndex=$K(a,xj(o.lastIndex),u)),c++}return c===0?null:l}]}),jh({global:!0},{globalThis:$t});var HK=!$r(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),WO=zD("IE_PROTO"),ex=$t.Object,UK=ex.prototype,kp=HK?ex.getPrototypeOf:function(t){var e=RD(t);if(On(e,WO))return e[WO];var r=e.constructor;return Ir(r)&&e instanceof r?r.prototype:e instanceof ex?UK:null},_K=$t.String,GK=$t.TypeError,vc=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Oe(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch{}return function(n,o){return Yn(n),function(a){if(typeof a=="object"||Ir(a))return a;throw GK("Can't set "+_K(a)+" as a prototype")}(o),e?t(n,o):n.__proto__=o,n}}():void 0),WK=$t.Array,KK=Math.max,YK=Oe("".replace),XK=Oe("".split),ZK=Oe([].join),rx=String(Error("zxcasd").stack),Fj=/\n\s*at [^:]*:[^\n]*/,JK=Fj.test(rx),QK=/@[^\n]*\n/.test(rx)&&!/zxcasd/.test(rx),qK=function(t,e){if(typeof t!="string")return t;if(JK)for(;e--;)t=YK(t,Fj,"");else if(QK)return ZK(function(r,n,o){for(var a,i,u,s,l=Ky(r),c=qS(n,l),f=qS(l,l),d=WK(KK(f-c,0)),p=0;c<f;c++,p++)a=d,i=p,u=r[c],s=void 0,(s=LD(i))in a?Xc.f(a,s,Va(0,u)):a[s]=u;return d.length=p,d}(XK(t,`
|
|
15
|
+
`),e),`
|
|
16
|
+
`);return t},tY=function(t,e){ni(e)&&"cause"in e&&xn(t,"cause",e.cause)},KO=Oe(Oe.bind),kj=function(t,e){return ND(t),e===void 0?t:KO?KO(t,e):function(){return t.apply(e,arguments)}},mc={},eY=vn("iterator"),rY=Array.prototype,nY=vn("iterator"),YO=function(t){if(t!=null)return Fp(t,nY)||Fp(t,"@@iterator")||mc[Yy(t)]},oY=$t.TypeError,XO=function(t,e,r){var n,o;Yn(t);try{if(!(n=Fp(t,"return"))){if(e==="throw")throw r;return r}n=Kr(n,t)}catch(a){o=!0,n=a}if(e==="throw")throw r;if(o)throw n;return Yn(n),r},iY=$t.TypeError,Qv=function(t,e){this.stopped=t,this.result=e},ZO=Qv.prototype,aY=function(t,e,r){var n,o,a,i,u,s,l,c=r&&r.that,f=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_ITERATOR),p=!(!r||!r.INTERRUPTED),m=kj(e,c),h=function(y){return n&&XO(n,"normal",y),new Qv(!0,y)},v=function(y){return f?(Yn(y),p?m(y[0],y[1],h):m(y[0],y[1])):p?m(y,h):m(y)};if(d)n=t;else{if(!(o=YO(t)))throw iY(ZS(t)+" is not iterable");if(function(y){return y!==void 0&&(mc.Array===y||rY[eY]===y)}(o)){for(a=0,i=Ky(t);i>a;a++)if((u=v(t[a]))&&H0(ZO,u))return u;return new Qv(!1)}n=function(y,g){var b=arguments.length<2?YO(y):g;if(ND(b))return Yn(Kr(b,y));throw oY(ZS(y)+" is not iterable")}(t,o)}for(s=n.next;!(l=Kr(s,n)).done;){try{u=v(l.value)}catch(y){XO(n,"throw",y)}if(typeof u=="object"&&u&&H0(ZO,u))return u}return new Qv(!1)},uY=function(t,e){return t===void 0?arguments.length<2?"":e:cs(t)},sY=!$r(function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",Va(1,7)),t.stack!==7)}),lY=vn("toStringTag"),Y0=$t.Error,cY=[].push,Np=function(t,e){var r,n=arguments.length>2?arguments[2]:void 0,o=H0(xb,this);vc?r=vc(new Y0(void 0),o?kp(this):xb):(r=o?this:Rh(xb),xn(r,lY,"Error")),xn(r,"message",uY(e,"")),sY&&xn(r,"stack",qK(r.stack,1)),tY(r,n);var a=[];return aY(t,cY,{that:a}),xn(r,"errors",a),r};vc?vc(Np,Y0):Dj(Np,Y0);var xb=Np.prototype=Rh(Y0.prototype,{constructor:Va(1,Np),message:Va(1,""),name:Va(1,"AggregateError")});jh({global:!0},{AggregateError:Np});var nx=vn("unscopables"),ox=Array.prototype;ox[nx]==null&&Xc.f(ox,nx,{configurable:!0,value:Rh(null)});var fs,JO,QO,Cb=function(t){ox[nx][t]=!0},ix=vn("iterator"),Nj=!1;[].keys&&("next"in(QO=[].keys())?(JO=kp(kp(QO)))!==Object.prototype&&(fs=JO):Nj=!0);var fY=fs==null||$r(function(){var t={};return fs[ix].call(t)!==t});fY&&(fs={}),Ir(fs[ix])||Fs(fs,ix,function(){return this});var KD={IteratorPrototype:fs,BUGGY_SAFARI_ITERATORS:Nj},dY=Xc.f,qO=vn("toStringTag"),tA=function(t,e,r){t&&!On(t=r?t:t.prototype,qO)&&dY(t,qO,{configurable:!0,value:e})},pY=KD.IteratorPrototype,hY=function(){return this},gY=UD.PROPER,vY=UD.CONFIGURABLE,eA=KD.IteratorPrototype,Db=KD.BUGGY_SAFARI_ITERATORS,Sf=vn("iterator"),mY=function(){return this},Ij=function(t,e,r,n,o,a,i){(function(v,y,g,b){var E=y+" Iterator";v.prototype=Rh(pY,{next:Va(1,g)}),tA(v,E,!1),mc[E]=hY})(r,e,n);var u,s,l=function(v){if(v===o&&m)return m;if(!Db&&v in d)return d[v];switch(v){case"keys":case"values":case"entries":return function(){return new r(this,v)}}return function(){return new r(this)}},c=e+" Iterator",f=!1,d=t.prototype,p=d[Sf]||d["@@iterator"]||o&&d[o],m=!Db&&p||l(o),h=e=="Array"&&d.entries||p;return h&&(u=kp(h.call(new t)))!==Object.prototype&&u.next&&(kp(u)!==eA&&(vc?vc(u,eA):Ir(u[Sf])||Fs(u,Sf,mY)),tA(u,c,!0)),gY&&o=="values"&&p&&p.name!=="values"&&(vY?xn(d,"name","values"):(f=!0,m=function(){return Kr(p,this)})),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},i||jh({target:e,proto:!0,forced:Db||f},s)),d[Sf]!==m&&Fs(d,Sf,m,{name:o}),mc[e]=m,s},yY=Ps.set,bY=Ps.getterFor("Array Iterator"),Ud=Ij(Array,"Array",function(t,e){yY(this,{type:"Array Iterator",target:Yc(t),index:0,kind:e})},function(){var t=bY(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}},"values");mc.Arguments=mc.Array,Cb("keys"),Cb("values"),Cb("entries");var wY=Pj.charAt,EY=Ps.set,SY=Ps.getterFor("String Iterator");Ij(String,"String",function(t){EY(this,{type:"String Iterator",string:cs(t),index:0})},function(){var t,e=SY(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=wY(r,n),e.index+=t.length,{value:t,done:!1})});var Ob,X0={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},Ab=MD("span").classList,rA=Ab&&Ab.constructor&&Ab.constructor.prototype,jj=rA===Object.prototype?void 0:rA,Tb=vn("iterator"),nA=vn("toStringTag"),Bb=Ud.values,Rj=function(t,e){if(t){if(t[Tb]!==Bb)try{xn(t,Tb,Bb)}catch{t[Tb]=Bb}if(t[nA]||xn(t,nA,e),X0[e]){for(var r in Ud)if(t[r]!==Ud[r])try{xn(t,r,Ud[r])}catch{t[r]=Ud[r]}}}};for(var Pb in X0)Rj($t[Pb]&&$t[Pb].prototype,Pb);Rj(jj,"DOMTokenList"),typeof global>"u"?("ActiveXObject"in window&&console.error(`抱歉,wangEditor V5+ 版本开始,不在支持 IE 浏览器
|
|
17
|
+
Sorry, wangEditor V5+ versions do not support IE browser.`),oA(),iA()):global&&(!((Ob=global.navigator)===null||Ob===void 0)&&Ob.userAgent.match("QQBrowser"))&&(oA(),iA());function oA(){typeof globalThis>"u"&&(window.globalThis=window)}function iA(){gW===void 0&&(window.AggregateError=function(t,e){var r=new Error(e);return r.errors=t,r})}var aA,Z0=Array.isArray||function(t){return as(t)=="Array"},Lj=function(){},xY=[],Mj=Gc("Reflect","construct"),YD=/^\s*(?:class|function)\b/,CY=$e(YD.exec),DY=!YD.exec(Lj),xf=function(t){if(!Yr(t))return!1;try{return Mj(Lj,xY,t),!0}catch{return!1}},OY=!Mj||Bn(function(){var t;return xf(xf.call)||!xf(Object)||!xf(function(){t=!0})||t})?function(t){if(!Yr(t))return!1;switch(kh(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return DY||!!CY(YD,pj(t))}:xf,AY=cn("species"),uA=Kt.Array,Vj=function(t,e){return new(function(r){var n;return Z0(r)&&(n=r.constructor,(OY(n)&&(n===uA||Z0(n.prototype))||co(n)&&(n=n[AY])===null)&&(n=void 0)),n===void 0?uA:n}(t))(e===0?0:e)},TY=cn("species"),$j=cn("isConcatSpreadable"),sA=Kt.TypeError,BY=F0>=51||!Bn(function(){var t=[];return t[$j]=!1,t.concat()[0]!==t}),PY=(aA="concat",F0>=51||!Bn(function(){var t=[];return(t.constructor={})[TY]=function(){return{foo:1}},t[aA](Boolean).foo!==1})),FY=function(t){if(!co(t))return!1;var e=t[$j];return e!==void 0?!!e:Z0(t)};Ii({target:"Array",proto:!0,forced:!BY||!PY},{concat:function(t){var e,r,n,o,a,i=Th(this),u=Vj(i,0),s=0;for(e=-1,n=arguments.length;e<n;e++)if(FY(a=e===-1?i:arguments[e])){if(s+(o=Ph(a))>9007199254740991)throw sA("Maximum allowed index exceeded");for(r=0;r<o;r++,s++)r in a&&HS(u,s,a[r])}else{if(s>=9007199254740991)throw sA("Maximum allowed index exceeded");HS(u,s++,a)}return u.length=s,u}});var lA=BD.f,cA=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],zj={f:function(t){return cA&&as(t)=="Window"?function(e){try{return lA(e)}catch{return cj(cA)}}(t):lA(xi(t))}},kY=$e([].slice),XD={f:cn},NY=mu.f,fr=function(t){var e=Hn.Symbol||(Hn.Symbol={});ce(e,t)||NY(e,t,{value:XD.f(t)})},fA=$e([].push),IY=function(t){var e=t==1,r=t==2,n=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=Th(s),h=oj(m),v=AD(l,c),y=Ph(h),g=0,b=f||Vj,E=e?b(s,y):r||i?b(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:fA(E,d)}else switch(t){case 4:return!1;case 7:fA(E,d)}return a?-1:n||o?o:E}},Xy={forEach:IY(0)}.forEach,En=Gy("hidden"),dA=cn("toPrimitive"),jY=Kc.set,pA=Kc.getterFor("Symbol"),ko=Object.prototype,Aa=Kt.Symbol,Na=Aa&&Aa.prototype,hA=Kt.TypeError,Fb=Kt.QObject,Cf=Gc("JSON","stringify"),Hj=_y.f,Ta=mu.f,Uj=zj.f,RY=xD.f,_j=$e([].push),Yi=Ks("symbols"),Lh=Ks("op-symbols"),kb=Ks("string-to-symbol-registry"),Nb=Ks("symbol-to-string-registry"),LY=Ks("wks"),Ib=!Fb||!Fb.prototype||!Fb.prototype.findChild,ax=Dn&&Bn(function(){return Ki(Ta({},"a",{get:function(){return Ta(this,"a",{value:7}).a}})).a!=7})?function(t,e,r){var n=Hj(ko,e);n&&delete ko[e],Ta(t,e,r),n&&t!==ko&&Ta(ko,e,n)}:Ta,jb=function(t,e){var r=Yi[t]=Ki(Na);return jY(r,{type:"Symbol",tag:t,description:e}),Dn||(r.description=e),r},J0=function(t,e,r){t===ko&&J0(Lh,e,r),Kn(t);var n=Wc(e);return Kn(r),ce(Yi,n)?(r.enumerable?(ce(t,En)&&t[En][n]&&(t[En][n]=!1),r=Ki(r,{enumerable:jo(0,!1)})):(ce(t,En)||Ta(t,En,jo(1,{})),t[En][n]=!0),ax(t,n,r)):Ta(t,n,r)},gA=function(t,e){Kn(t);var r=xi(e),n=PD(r).concat(ux(r));return Xy(n,function(o){Dn&&!_n(Gj,r,o)||J0(t,o,r[o])}),t},Gj=function(t){var e=Wc(t),r=_n(RY,this,e);return!(this===ko&&ce(Yi,e)&&!ce(Lh,e))&&(!(r||!ce(this,e)||!ce(Yi,e)||ce(this,En)&&this[En][e])||r)},vA=function(t,e){var r=xi(t),n=Wc(e);if(r!==ko||!ce(Yi,n)||ce(Lh,n)){var o=Hj(r,n);return!o||!ce(Yi,n)||ce(r,En)&&r[En][n]||(o.enumerable=!0),o}},mA=function(t){var e=Uj(xi(t)),r=[];return Xy(e,function(n){ce(Yi,n)||ce(Fh,n)||_j(r,n)}),r},ux=function(t){var e=t===ko,r=Uj(e?Lh:xi(t)),n=[];return Xy(r,function(o){!ce(Yi,o)||e&&!ce(ko,o)||_j(n,Yi[o])}),n};if(Jo||(Na=(Aa=function(){if(Tp(Na,this))throw hA("Symbol is not a constructor");var t=arguments.length&&arguments[0]!==void 0?Bp(arguments[0]):void 0,e=N0(t),r=function(n){this===ko&&_n(r,Lh,n),ce(this,En)&&ce(this[En],e)&&(this[En][e]=!1),ax(this,e,jo(1,n))};return Dn&&Ib&&ax(ko,e,{configurable:!0,set:r}),jb(e,t)}).prototype,$0(Na,"toString",function(){return pA(this).tag}),$0(Aa,"withoutSetter",function(t){return jb(N0(t),t)}),xD.f=Gj,mu.f=J0,_y.f=vA,BD.f=zj.f=mA,Kv.f=ux,XD.f=function(t){return jb(cn(t),t)},Dn&&Ta(Na,"description",{configurable:!0,get:function(){return pA(this).description}})),Ii({global:!0,wrap:!0,forced:!Jo,sham:!Jo},{Symbol:Aa}),Xy(PD(LY),function(t){fr(t)}),Ii({target:"Symbol",stat:!0,forced:!Jo},{for:function(t){var e=Bp(t);if(ce(kb,e))return kb[e];var r=Aa(e);return kb[e]=r,Nb[r]=e,r},keyFor:function(t){if(!rc(t))throw hA(t+" is not a symbol");if(ce(Nb,t))return Nb[t]},useSetter:function(){Ib=!0},useSimple:function(){Ib=!1}}),Ii({target:"Object",stat:!0,forced:!Jo,sham:!Dn},{create:function(t,e){return e===void 0?Ki(t):gA(Ki(t),e)},defineProperty:J0,defineProperties:gA,getOwnPropertyDescriptor:vA}),Ii({target:"Object",stat:!0,forced:!Jo},{getOwnPropertyNames:mA,getOwnPropertySymbols:ux}),Ii({target:"Object",stat:!0,forced:Bn(function(){Kv.f(1)})},{getOwnPropertySymbols:function(t){return Kv.f(Th(t))}}),Cf){var MY=!Jo||Bn(function(){var t=Aa();return Cf([t])!="[null]"||Cf({a:t})!="{}"||Cf(Object(t))!="{}"});Ii({target:"JSON",stat:!0,forced:MY},{stringify:function(t,e,r){var n=kY(arguments),o=e;if((co(e)||t!==void 0)&&!rc(t))return Z0(e)||(e=function(a,i){if(Yr(o)&&(i=_n(o,this,a,i)),!rc(i))return i}),n[1]=e,rj(Cf,null,n)}})}if(!Na[dA]){var VY=Na.valueOf;$0(Na,dA,function(t){return _n(VY,this)})}z0(Aa,"Symbol"),Fh[En]=!0,fr("asyncIterator"),fr("hasInstance"),fr("isConcatSpreadable"),fr("iterator"),fr("match"),fr("matchAll"),fr("replace"),fr("search"),fr("species"),fr("split"),fr("toPrimitive"),fr("toStringTag"),fr("unscopables"),z0(Kt.JSON,"JSON",!0);var $Y=Hn.Symbol;fr("asyncDispose"),fr("dispose"),fr("matcher"),fr("metadata"),fr("observable"),fr("patternMatch"),fr("replaceAll");var Mg=$Y,zY=XD.f("iterator"),HY=Ws(function(t){function e(r){return typeof Mg=="function"&&typeof zY=="symbol"?(t.exports=e=function(n){return typeof n},t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=e=function(n){return n&&typeof Mg=="function"&&n.constructor===Mg&&n!==Mg.prototype?"symbol":typeof n},t.exports.default=t.exports,t.exports.__esModule=!0),e(r)}t.exports=e,t.exports.default=t.exports,t.exports.__esModule=!0}),UY=S_(HY),Wj=VD.f,_Y=$r(function(){Wj(1)});if(jh({target:"Object",stat:!0,forced:!gi||_Y,sham:!gi},{getOwnPropertyDescriptor:function(t,e){return Wj(Yc(t),e)}}),(typeof global>"u"?"undefined":UY(global))==="object"){var GY=Object.getOwnPropertyDescriptor(global,"window");global.window&&!GY.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 yA(t){return Object.prototype.toString.call(t)==="[object Object]"}function rn(t){var e,r;return yA(t)!==!1&&((e=t.constructor)===void 0||yA(r=e.prototype)!==!1&&r.hasOwnProperty("isPrototypeOf")!==!1)}function Fo(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map(function(o){return"'"+o+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function ks(t){return!!t&&!!t[Xn]}function Ns(t){return!!t&&(function(e){if(!e||typeof e!="object")return!1;var r=Object.getPrototypeOf(e);if(r===null)return!0;var n=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===JY}(t)||Array.isArray(t)||!!t[OA]||!!t.constructor[OA]||ZD(t)||JD(t))}function Ip(t,e,r){r===void 0&&(r=!1),yc(t)===0?(r?Object.keys:r3)(t).forEach(function(n){r&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,o){return e(o,n,t)})}function yc(t){var e=t[Xn];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:ZD(t)?2:JD(t)?3:0}function sx(t,e){return yc(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Kj(t,e,r){var n=yc(t);n===2?t.set(e,r):n===3?(t.delete(e),t.add(r)):t[e]=r}function ZD(t){return XY&&t instanceof Map}function JD(t){return ZY&&t instanceof Set}function Uu(t){return t.o||t.t}function QD(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=QY(t);delete e[Xn];for(var r=r3(e),n=0;n<r.length;n++){var o=r[n],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 qD(t,e){return e===void 0&&(e=!1),t3(t)||ks(t)||!Ns(t)||(yc(t)>1&&(t.set=t.add=t.clear=t.delete=WY),Object.freeze(t),e&&Ip(t,function(r,n){return qD(n,!0)},!0)),t}function WY(){Fo(2)}function t3(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function _i(t){var e=qY[t];return e||Fo(18,t),e}function bA(){return jp}function Rb(t,e){e&&(_i("Patches"),t.u=[],t.s=[],t.v=e)}function Q0(t){lx(t),t.p.forEach(KY),t.p=null}function lx(t){t===jp&&(jp=t.l)}function wA(t){return jp={p:[],l:jp,h:t,m:!0,_:0}}function KY(t){var e=t[Xn];e.i===0||e.i===1?e.j():e.O=!0}function Lb(t,e){e._=e.p.length;var r=e.p[0],n=t!==void 0&&t!==r;return e.h.g||_i("ES5").S(e,t,n),n?(r[Xn].P&&(Q0(e),Fo(4)),Ns(t)&&(t=q0(e,t),e.l||tm(e,t)),e.u&&_i("Patches").M(r[Xn],t,e.u,e.s)):t=q0(e,r,[]),Q0(e),e.u&&e.v(e.u,e.s),t!==Yj?t:void 0}function q0(t,e,r){if(t3(e))return e;var n=e[Xn];if(!n)return Ip(e,function(a,i){return EA(t,n,e,a,i,r)},!0),e;if(n.A!==t)return e;if(!n.P)return tm(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=n.i===4||n.i===5?n.o=QD(n.k):n.o;Ip(n.i===3?new Set(o):o,function(a,i){return EA(t,n,o,a,i,r)}),tm(t,o,!1),r&&t.u&&_i("Patches").R(n,r,t.u,t.s)}return n.o}function EA(t,e,r,n,o,a){if(ks(o)){var i=q0(t,o,a&&e&&e.i!==3&&!sx(e.D,n)?a.concat(n):void 0);if(Kj(r,n,i),!ks(i))return;t.m=!1}if(Ns(o)&&!t3(o)){if(!t.h.F&&t._<1)return;q0(t,o),e&&e.A.l||tm(t,o)}}function tm(t,e,r){r===void 0&&(r=!1),t.h.F&&t.m&&qD(e,r)}function Mb(t,e){var r=t[Xn];return(r?Uu(r):t)[e]}function SA(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var n=Object.getOwnPropertyDescriptor(r,e);if(n)return n;r=Object.getPrototypeOf(r)}}function cx(t){t.P||(t.P=!0,t.l&&cx(t.l))}function Vb(t){t.o||(t.o=QD(t.t))}function fx(t,e,r){var n=ZD(e)?_i("MapSet").N(e,r):JD(e)?_i("MapSet").T(e,r):t.g?function(o,a){var i=Array.isArray(o),u={i:i?1:0,A:a?a.A:bA(),P:!1,I:!1,D:{},l:a,t:o,k:null,o:null,j:null,C:!1},s=u,l=qv;i&&(s=[u],l=t0);var c=Proxy.revocable(s,l),f=c.revoke,d=c.proxy;return u.k=d,u.j=f,d}(e,r):_i("ES5").J(e,r);return(r?r.A:bA()).p.push(n),n}function YY(t){return ks(t)||Fo(22,t),function e(r){if(!Ns(r))return r;var n,o=r[Xn],a=yc(r);if(o){if(!o.P&&(o.i<4||!_i("ES5").K(o)))return o.t;o.I=!0,n=xA(r,a),o.I=!1}else n=xA(r,a);return Ip(n,function(i,u){o&&function(s,l){return yc(s)===2?s.get(l):s[l]}(o.t,i)===u||Kj(n,i,e(u))}),a===3?new Set(n):n}(t)}function xA(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return QD(t)}var CA,jp,e3=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",XY=typeof Map<"u",ZY=typeof Set<"u",DA=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Yj=e3?Symbol.for("immer-nothing"):((CA={})["immer-nothing"]=!0,CA),OA=e3?Symbol.for("immer-draftable"):"__$immer_draftable",Xn=e3?Symbol.for("immer-state"):"__$immer_state",JY=""+Object.prototype.constructor,r3=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,QY=Object.getOwnPropertyDescriptors||function(t){var e={};return r3(t).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)}),e},qY={},qv={get:function(t,e){if(e===Xn)return t;var r=Uu(t);if(!sx(r,e))return function(o,a,i){var u,s=SA(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,r,e);var n=r[e];return t.I||!Ns(n)?n:n===Mb(t.t,e)?(Vb(t),t.o[e]=fx(t.A.h,n,t)):n},has:function(t,e){return e in Uu(t)},ownKeys:function(t){return Reflect.ownKeys(Uu(t))},set:function(t,e,r){var n=SA(Uu(t),e);if(n!=null&&n.set)return n.set.call(t.k,r),!0;if(!t.P){var o=Mb(Uu(t),e),a=o==null?void 0:o[Xn];if(a&&a.t===r)return t.o[e]=r,t.D[e]=!1,!0;if(function(i,u){return i===u?i!==0||1/i==1/u:i!=i&&u!=u}(r,o)&&(r!==void 0||sx(t.t,e)))return!0;Vb(t),cx(t)}return t.o[e]===r&&typeof r!="number"&&(r!==void 0||e in t.o)||(t.o[e]=r,t.D[e]=!0,!0)},deleteProperty:function(t,e){return Mb(t.t,e)!==void 0||e in t.t?(t.D[e]=!1,Vb(t),cx(t)):delete t.D[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=Uu(t),n=Reflect.getOwnPropertyDescriptor(r,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:r[e]}},defineProperty:function(){Fo(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Fo(12)}},t0={};Ip(qv,function(t,e){t0[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),t0.deleteProperty=function(t,e){return qv.deleteProperty.call(this,t[0],e)},t0.set=function(t,e,r){return qv.set.call(this,t[0],e,r,t[0])};var tX=function(){function t(r){var n=this;this.g=DA,this.F=!0,this.produce=function(o,a,i){if(typeof o=="function"&&typeof a!="function"){var u=a;a=o;var s=n;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 b;return(b=a).call.apply(b,[m,g].concat(v))})}}var l;if(typeof a!="function"&&Fo(6),i!==void 0&&typeof i!="function"&&Fo(7),Ns(o)){var c=wA(n),f=fx(n,o,void 0),d=!0;try{l=a(f),d=!1}finally{d?Q0(c):lx(c)}return typeof Promise<"u"&&l instanceof Promise?l.then(function(p){return Rb(c,i),Lb(p,c)},function(p){throw Q0(c),p}):(Rb(c,i),Lb(l,c))}if(!o||typeof o!="object")return(l=a(o))===Yj?void 0:(l===void 0&&(l=o),n.F&&qD(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 n.produceWithPatches(s,function(d){return o.apply(void 0,[d].concat(c))})}:[n.produce(o,a,function(s,l){i=s,u=l}),i,u];var i,u},typeof(r==null?void 0:r.useProxies)=="boolean"&&this.setUseProxies(r.useProxies),typeof(r==null?void 0:r.autoFreeze)=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=t.prototype;return e.createDraft=function(r){Ns(r)||Fo(8),ks(r)&&(r=YY(r));var n=wA(this),o=fx(this,r,void 0);return o[Xn].C=!0,lx(n),o},e.finishDraft=function(r,n){var o=(r&&r[Xn]).A;return Rb(o,n),Lb(void 0,o)},e.setAutoFreeze=function(r){this.F=r},e.setUseProxies=function(r){r&&!DA&&Fo(20),this.g=r},e.applyPatches=function(r,n){var o;for(o=n.length-1;o>=0;o--){var a=n[o];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}o>-1&&(n=n.slice(o+1));var i=_i("Patches").$;return ks(r)?i(r,n):this.produce(r,function(u){return i(u,n)})},t}(),$n=new tX,Zy=$n.produce;$n.produceWithPatches.bind($n),$n.setAutoFreeze.bind($n),$n.setUseProxies.bind($n),$n.applyPatches.bind($n);var AA=$n.createDraft.bind($n),TA=$n.finishDraft.bind($n);function Ci(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var em=new WeakMap,Df=new WeakMap,BA=new WeakMap,PA=new WeakMap,FA=new WeakMap,kA=new WeakMap;function NA(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function Vg(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?NA(Object(r),!0).forEach(function(n){Ci(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):NA(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}var eX=()=>{var t={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:e=>{for(var r of D.pathRefs(t))FX.transform(r,e);for(var n of D.pointRefs(t))kX.transform(n,e);for(var o of D.rangeRefs(t))IX.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=em.get(t)||[],l=rX(e);for(var c of s)u(z.transform(c,e));for(var f of l)u(f);em.set(t,i),U.transform(t,e),t.operations.push(e),D.normalize(t),e.type==="set_selection"&&(t.marks=null),Df.get(t)||(Df.set(t,!0),Promise.resolve().then(()=>{Df.set(t,!1),t.onChange(),t.operations=[]}))},addMark:(e,r)=>{var{selection:n}=t;if(n)if(Q.isExpanded(n))U.setNodes(t,{[e]:r},{match:vt.isText,split:!0});else{var o=Vg(Vg({},D.marks(t)||{}),{},{[e]:r});t.marks=o,Df.get(t)||t.onChange()}},deleteBackward:e=>{var{selection:r}=t;r&&Q.isCollapsed(r)&&U.delete(t,{unit:e,reverse:!0})},deleteForward:e=>{var{selection:r}=t;r&&Q.isCollapsed(r)&&U.delete(t,{unit:e})},deleteFragment:e=>{var{selection:r}=t;r&&Q.isExpanded(r)&&U.delete(t,{reverse:e==="backward"})},getFragment:()=>{var{selection:e}=t;return e?st.fragment(t,e):[]},insertBreak:()=>{U.splitNodes(t,{always:!0})},insertFragment:e=>{U.insertFragment(t,e)},insertNode:e=>{U.insertNodes(t,e)},insertText:e=>{var{selection:r,marks:n}=t;if(r){if(n){var o=Vg({text:e},n);U.insertNodes(t,o)}else U.insertText(t,e);t.marks=null}},normalizeNode:e=>{var[r,n]=e;if(!vt.isText(r))if(St.isElement(r)&&r.children.length===0)U.insertNodes(t,{text:""},{at:n.concat(0),voids:!0});else for(var o=!D.isEditor(r)&&St.isElement(r)&&(t.isInline(r)||r.children.length===0||vt.isText(r.children[0])||t.isInline(r.children[0])),a=0,i=0;i<r.children.length;i++,a++){var u=st.get(t,n);if(!vt.isText(u)){var s=r.children[i],l=u.children[a-1],c=i===r.children.length-1;(vt.isText(s)||St.isElement(s)&&t.isInline(s))!==o?(U.removeNodes(t,{at:n.concat(a),voids:!0}),a--):St.isElement(s)?t.isInline(s)&&(l!=null&&vt.isText(l)?c&&(U.insertNodes(t,{text:""},{at:n.concat(a+1),voids:!0}),a++):(U.insertNodes(t,{text:""},{at:n.concat(a),voids:!0}),a++)):l!=null&&vt.isText(l)&&(vt.equals(s,l,{loose:!0})?(U.mergeNodes(t,{at:n.concat(a),voids:!0}),a--):l.text===""?(U.removeNodes(t,{at:n.concat(a-1),voids:!0}),a--):s.text===""&&(U.removeNodes(t,{at:n.concat(a),voids:!0}),a--))}}},removeMark:e=>{var{selection:r}=t;if(r)if(Q.isExpanded(r))U.unsetNodes(t,e,{match:vt.isText,split:!0});else{var n=Vg({},D.marks(t)||{});delete n[e],t.marks=n,Df.get(t)||t.onChange()}}};return t},rX=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:r,path:n}=t,o=z.levels(n),a=vt.isText(r)?[]:Array.from(st.nodes(r),E=>{var[,x]=E;return n.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:b}=t;return[...z.levels(b),z.next(b)];default:return[]}};function Xi(t,e){if(t==null)return{};var r,n,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(n=0;n<a.length;n++)r=a[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var _t,dx=function(t){var e=arguments.length>1&&arguments[1]!==void 0&&arguments[1],r=!e,n=e?uX(t):t,o=_t.None,a=_t.None,i=0,u=null;for(var s of n){var l=s.codePointAt(0);if(!l)break;var c=bX(s,l);if([o,a]=r?[a,c]:[c,o],Zl(o,_t.ZWJ)&&Zl(a,_t.ExtPict)&&!xX(r?t.substring(0,i):t.substring(0,t.length-i))||Zl(o,_t.RI)&&Zl(a,_t.RI)&&!(u=u!==null?!u:!!r||DX(t.substring(0,t.length-i)))||o!==_t.None&&a!==_t.None&&EX(o,a))break;i+=s.length}return i||1},nX=/\s/,oX=/[\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]/,iX=/['\u2018\u2019]/,px=(t,e,r)=>{if(r){var n=t.length-e;return[t.slice(n,t.length),t.slice(0,n)]}return[t.slice(0,e),t.slice(e)]},aX=function t(e,r){var n=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(nX.test(e))return!1;if(iX.test(e)){var o=dx(r,n),[a,i]=px(r,o,n);if(t(a,i,n))return!0}return!oX.test(e)},uX=function*(t){for(var e=t.length-1,r=0;r<t.length;r++){var n=t.charAt(e-r);if(lX(n.charCodeAt(0))){var o=t.charAt(e-r-1);if(sX(o.charCodeAt(0))){yield o+n,r++;continue}}yield n}},sX=t=>t>=55296&&t<=56319,lX=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 cX=/^(?:[\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])$/,fX=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,dX=/^(?:[\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])$/,pX=/^[\u1100-\u115F\uA960-\uA97C]$/,hX=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,gX=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,vX=/^[\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]$/,mX=/^[\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]$/,yX=/^(?:[\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])$/,bX=(t,e)=>{var r=_t.Any;return t.search(cX)!==-1&&(r|=_t.Extend),e===8205&&(r|=_t.ZWJ),e>=127462&&e<=127487&&(r|=_t.RI),t.search(fX)!==-1&&(r|=_t.Prepend),t.search(dX)!==-1&&(r|=_t.SpacingMark),t.search(pX)!==-1&&(r|=_t.L),t.search(hX)!==-1&&(r|=_t.V),t.search(gX)!==-1&&(r|=_t.T),t.search(vX)!==-1&&(r|=_t.LV),t.search(mX)!==-1&&(r|=_t.LVT),t.search(yX)!==-1&&(r|=_t.ExtPict),r};function Zl(t,e){return(t&e)!=0}var wX=[[_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 EX(t,e){return wX.findIndex(r=>Zl(t,r[0])&&Zl(e,r[1]))===-1}var SX=/(?:[\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$/,xX=t=>t.search(SX)!==-1,CX=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,DX=t=>{var e=t.match(CX);return e!==null&&e[0].length/2%2==1},IA=t=>rn(t)&&st.isNodeList(t.children)&&!D.isEditor(t),St={isAncestor:t=>rn(t)&&st.isNodeList(t.children),isElement:IA,isElementList:t=>Array.isArray(t)&&t.every(e=>St.isElement(e)),isElementProps:t=>t.children!==void 0,isElementType:function(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"type";return IA(t)&&t[r]===e},matches(t,e){for(var r in e)if(r!=="children"&&t[r]!==e[r])return!1;return!0}},OX=["text"],AX=["text"];function jA(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function dl(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?jA(Object(r),!0).forEach(function(n){Ci(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):jA(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}var RA=new WeakMap,D={above(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{voids:r=!1,mode:n="lowest",at:o=t.selection,match:a}=e;if(o){var i=D.path(t,o),u=n==="lowest";for(var[s,l]of D.levels(t,{at:i,voids:r,match:a,reverse:u}))if(!vt.isText(s)&&!z.equals(i,l))return[s,l]}},addMark(t,e,r){t.addMark(e,r)},after(t,e){var r,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o={anchor:D.point(t,e,{edge:"end"}),focus:D.end(t,[])},{distance:a=1}=n,i=0;for(var u of D.positions(t,dl(dl({},n),{},{at:o}))){if(i>a)break;i!==0&&(r=u),i++}return r},before(t,e){var r,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o={anchor:D.start(t,[]),focus:D.point(t,e,{edge:"start"})},{distance:a=1}=n,i=0;for(var u of D.positions(t,dl(dl({},n),{},{at:o,reverse:!0}))){if(i>a)break;i!==0&&(r=u),i++}return r},deleteBackward(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:r="character"}=e;t.deleteBackward(r)},deleteForward(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:r="character"}=e;t.deleteForward(r)},deleteFragment(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{direction:r="forward"}=e;t.deleteFragment(r)},edges:(t,e)=>[D.start(t,e),D.end(t,e)],end:(t,e)=>D.point(t,e,{edge:"end"}),first(t,e){var r=D.path(t,e,{edge:"start"});return D.node(t,r)},fragment(t,e){var r=D.range(t,e);return st.fragment(t,r)},hasBlocks:(t,e)=>e.children.some(r=>D.isBlock(t,r)),hasInlines:(t,e)=>e.children.some(r=>vt.isText(r)||D.isInline(t,r)),hasTexts:(t,e)=>e.children.every(r=>vt.isText(r)),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(!rn(t))return!1;var e=RA.get(t);if(e!==void 0)return e;var r=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||rn(t.marks))&&(t.selection===null||Q.isRange(t.selection))&&st.isNodeList(t.children)&&Ia.isOperationList(t.operations);return RA.set(t,r),r},isEnd(t,e,r){var n=D.end(t,r);return Zt.equals(e,n)},isEdge:(t,e,r)=>D.isStart(t,e,r)||D.isEnd(t,e,r),isEmpty(t,e){var{children:r}=e,[n]=r;return r.length===0||r.length===1&&vt.isText(n)&&n.text===""&&!t.isVoid(e)},isInline:(t,e)=>St.isElement(e)&&t.isInline(e),isNormalizing(t){var e=BA.get(t);return e===void 0||e},isStart(t,e,r){if(e.offset!==0)return!1;var n=D.start(t,r);return Zt.equals(e,n)},isVoid:(t,e)=>St.isElement(e)&&t.isVoid(e),last(t,e){var r=D.path(t,e,{edge:"end"});return D.node(t,r)},leaf(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=D.path(t,e,r);return[st.leaf(t,n),n]},*levels(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:r=t.selection,reverse:n=!1,voids:o=!1}=e,{match:a}=e;if(a==null&&(a=()=>!0),r){var i=[],u=D.path(t,r);for(var[s,l]of st.levels(t,u))if(a(s,l)&&(i.push([s,l]),!o&&D.isVoid(t,s)))break;n&&i.reverse(),yield*i}},marks(t){var{marks:e,selection:r}=t;if(!r)return null;if(e)return e;if(Q.isExpanded(r)){var[n]=D.nodes(t,{match:vt.isText});if(n){var[o]=n;return Xi(o,OX)}return{}}var{anchor:a}=r,{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 Xi(u,AX)},next(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:r="lowest",voids:n=!1}=e,{match:o,at:a=t.selection}=e;if(a){var i=D.after(t,a,{voids:n});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:r,voids:n});return c}}},node(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=D.path(t,e,r);return[st.get(t,n),n]},*nodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:r=t.selection,mode:n="all",universal:o=!1,reverse:a=!1,voids:i=!1}=e,{match:u}=e;if(u||(u=()=>!0),r){var s,l;if(TX.isSpan(r))s=r[0],l=r[1];else{var c=D.path(t,r,{edge:"start"}),f=D.path(t,r,{edge:"end"});s=a?f:c,l=a?c:f}var d,p=st.nodes(t,{reverse:a,from:s,to:l,pass:b=>{var[E]=b;return!i&&D.isVoid(t,E)}}),m=[];for(var[h,v]of p){var y=d&&z.compare(v,d[1])===0;if(n!=="highest"||!y){if(u(h,v))if(n==="lowest"&&y)d=[h,v];else{var g=n==="lowest"?d:[h,v];g&&(o?m.push(g):yield g),d=[h,v]}else if(o&&!y&&vt.isText(h))return}}n==="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:r=!1}=e,n=a=>em.get(a)||[];if(D.isNormalizing(t)){if(r){var o=Array.from(st.nodes(t),a=>{var[,i]=a;return i});em.set(t,o)}n(t).length!==0&&D.withoutNormalizing(t,()=>{for(var a of n(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*n(t).length,c=0;n(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=n(t).pop();if(st.has(t,f)){var d=D.node(t,f);t.normalizeNode(d)}c++}})}},parent(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=D.path(t,e,r),o=z.parent(n);return D.node(t,o)},path(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{depth:n,edge:o}=r;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 Q.isRange(e)&&(e=o==="start"?Q.start(e):o==="end"?Q.end(e):z.common(e.anchor.path,e.focus.path)),Zt.isPoint(e)&&(e=e.path),n!=null&&(e=e.slice(0,n)),e},hasPath:(t,e)=>st.has(t,e),pathRef(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:n="forward"}=r,o={current:e,affinity:n,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=PA.get(t);return e||(e=new Set,PA.set(t,e)),e},point(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{edge:n="start"}=r;if(z.isPath(e)){var o;if(n==="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(n," point in the node at path [").concat(e,"] because it has no ").concat(n," text node."));return{path:o,offset:n==="end"?u.text.length:0}}if(Q.isRange(e)){var[s,l]=Q.edges(e);return n==="start"?s:l}return e},pointRef(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:n="forward"}=r,o={current:e,affinity:n,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=FA.get(t);return e||(e=new Set,FA.set(t,e)),e},*positions(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:r=t.selection,unit:n="offset",reverse:o=!1,voids:a=!1}=e;if(r){var i=D.range(t,r),[u,s]=Q.edges(i),l=o?s:u,c=!1,f="",d=0,p=0,m=0;for(var[h,v]of D.nodes(t,{at:r,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 b=z.equals(v,l.path);for(b?(p=o?l.offset:h.text.length-l.offset,m=l.offset):(p=h.text.length,m=o?p:0),(b||c||n==="offset")&&(yield{path:v,offset:m},c=!1);;){if(d===0){if(f==="")break;d=E(f,n,o),f=px(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"?dx(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 $=dx(T,A),[N,j]=px(T,$,A);if(aX(N,j,A))M=!0,k+=$;else{if(M)break;k+=$}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:r="lowest",voids:n=!1}=e,{match:o,at:a=t.selection}=e;if(a){var i=D.before(t,a,{voids:n});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:r,voids:n});return c}}},range:(t,e,r)=>Q.isRange(e)&&!r?e:{anchor:D.start(t,e),focus:D.end(t,r||e)},rangeRef(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:n="forward"}=r,o={current:e,affinity:n,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=kA.get(t);return e||(e=new Set,kA.set(t,e)),e},removeMark(t,e){t.removeMark(e)},setNormalizing(t,e){BA.set(t,e)},start:(t,e)=>D.point(t,e,{edge:"start"}),string(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:n=!1}=r,o=D.range(t,e),[a,i]=Q.edges(o),u="";for(var[s,l]of D.nodes(t,{at:o,match:vt.isText,voids:n})){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 r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:n=!1}=r,[o,a]=Q.edges(e);if(o.offset!==0||a.offset!==0||Q.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:n}))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,dl(dl({},e),{},{match:r=>D.isVoid(t,r)}))},withoutNormalizing(t,e){var r=D.isNormalizing(t);D.setNormalizing(t,!1);try{e()}finally{D.setNormalizing(t,r)}D.normalize(t)}},TX={isSpan:t=>Array.isArray(t)&&t.length===2&&t.every(z.isPath)},BX=["children"],PX=["text"],LA=new WeakMap,st={ancestor(t,e){var r=st.get(t,e);if(vt.isText(r))throw new Error("Cannot get the ancestor node at path [".concat(e,"] because it refers to a text node instead: ").concat(r));return r},*ancestors(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var n of z.ancestors(e,r)){var o=[st.ancestor(t,n),n];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 r=t.children[e];if(r==null)throw new Error("Cannot get child at index `".concat(e,"` in node: ").concat(JSON.stringify(t)));return r},*children(t,e){for(var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{reverse:n=!1}=r,o=st.ancestor(t,e),{children:a}=o,i=n?a.length-1:0;n?i>=0:i<a.length;){var u=st.child(o,i),s=e.concat(i);yield[u,s],i=n?i-1:i+1}},common(t,e,r){var n=z.common(e,r);return[st.get(t,n),n]},descendant(t,e){var r=st.get(t,e);if(D.isEditor(r))throw new Error("Cannot get the descendant node at path [".concat(e,"] because it refers to the root editor node instead: ").concat(r));return r},*descendants(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[r,n]of st.nodes(t,e))n.length!==0&&(yield[r,n])},*elements(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[r,n]of st.nodes(t,e))St.isElement(r)&&(yield[r,n])},extractProps:t=>St.isAncestor(t)?Xi(t,BX):Xi(t,PX),first(t,e){for(var r=e.slice(),n=st.get(t,r);n&&!vt.isText(n)&&n.children.length!==0;)n=n.children[0],r.push(0);return[n,r]},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 r=Zy({children:t.children},n=>{var[o,a]=Q.edges(e),i=st.nodes(n,{reverse:!0,pass:d=>{var[,p]=d;return!Q.includes(e,p)}});for(var[,u]of i){if(!Q.includes(e,u)){var s=st.parent(n,u),l=u[u.length-1];s.children.splice(l,1)}if(z.equals(u,a.path)){var c=st.leaf(n,u);c.text=c.text.slice(0,a.offset)}if(z.equals(u,o.path)){var f=st.leaf(n,u);f.text=f.text.slice(o.offset)}}D.isEditor(n)&&(n.selection=null)});return r.children},get(t,e){for(var r=t,n=0;n<e.length;n++){var o=e[n];if(vt.isText(r)||!r.children[o])throw new Error("Cannot find a descendant at path [".concat(e,"] in node: ").concat(JSON.stringify(t)));r=r.children[o]}return r},has(t,e){for(var r=t,n=0;n<e.length;n++){var o=e[n];if(vt.isText(r)||!r.children[o])return!1;r=r.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=LA.get(t);if(e!==void 0)return e;var r=t.every(n=>st.isNode(n));return LA.set(t,r),r},last(t,e){for(var r=e.slice(),n=st.get(t,r);n&&!vt.isText(n)&&n.children.length!==0;){var o=n.children.length-1;n=n.children[o],r.push(o)}return[n,r]},leaf(t,e){var r=st.get(t,e);if(!vt.isText(r))throw new Error("Cannot get the leaf node at path [".concat(e,"] because it refers to a non-leaf node: ").concat(r));return r},*levels(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var n of z.levels(e,r)){var o=st.get(t,n);yield[o,n]}},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:r,reverse:n=!1}=e,{from:o=[],to:a}=e,i=new Set,u=[],s=t;!a||!(n?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||r!=null&&r([s,u])!==!1){if(u.length===0)break;if(!n){var l=z.next(u);if(st.has(t,l)){u=l,s=st.get(t,u);continue}}n&&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=n?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 r=z.parent(e),n=st.get(t,r);if(vt.isText(n))throw new Error("Cannot get the parent of path [".concat(e,"] because it does not exist in the root."));return n},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[r,n]of st.nodes(t,e))vt.isText(r)&&(yield[r,n])}};function MA(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function yr(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?MA(Object(r),!0).forEach(function(n){Ci(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):MA(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}var Ia={isNodeOperation:t=>Ia.isOperation(t)&&t.type.endsWith("_node"),isOperation(t){if(!rn(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)&&rn(t.properties);case"move_node":return z.isPath(t.path)&&z.isPath(t.newPath);case"set_node":return z.isPath(t.path)&&rn(t.properties)&&rn(t.newProperties);case"set_selection":return t.properties===null&&Q.isRange(t.newProperties)||t.newProperties===null&&Q.isRange(t.properties)||rn(t.properties)&&rn(t.newProperties);case"split_node":return z.isPath(t.path)&&typeof t.position=="number"&&rn(t.properties);default:return!1}},isOperationList:t=>Array.isArray(t)&&t.every(e=>Ia.isOperation(e)),isSelectionOperation:t=>Ia.isOperation(t)&&t.type.endsWith("_selection"),isTextOperation:t=>Ia.isOperation(t)&&t.type.endsWith("_text"),inverse(t){switch(t.type){case"insert_node":return yr(yr({},t),{},{type:"remove_node"});case"insert_text":return yr(yr({},t),{},{type:"remove_text"});case"merge_node":return yr(yr({},t),{},{type:"split_node",path:z.previous(t.path)});case"move_node":var{newPath:e,path:r}=t;if(z.equals(e,r))return t;if(z.isSibling(r,e))return yr(yr({},t),{},{path:e,newPath:r});var n=z.transform(r,t),o=z.transform(z.next(r),t);return yr(yr({},t),{},{path:n,newPath:o});case"remove_node":return yr(yr({},t),{},{type:"insert_node"});case"remove_text":return yr(yr({},t),{},{type:"insert_text"});case"set_node":var{properties:a,newProperties:i}=t;return yr(yr({},t),{},{properties:i,newProperties:a});case"set_selection":var{properties:u,newProperties:s}=t;return yr(yr({},t),{},u==null?{properties:s,newProperties:null}:s==null?{properties:null,newProperties:u}:{properties:s,newProperties:u});case"split_node":return yr(yr({},t),{},{type:"merge_node",path:z.next(t.path)})}}},z={ancestors(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:r=!1}=e,n=z.levels(t,e);return n=r?n.slice(1):n.slice(0,-1)},common(t,e){for(var r=[],n=0;n<t.length&&n<e.length;n++){var o=t[n];if(o!==e[n])break;r.push(o)}return r},compare(t,e){for(var r=Math.min(t.length,e.length),n=0;n<r;n++){if(t[n]<e[n])return-1;if(t[n]>e[n])return 1}return 0},endsAfter(t,e){var r=t.length-1,n=t.slice(0,r),o=e.slice(0,r),a=t[r],i=e[r];return z.equals(n,o)&&a>i},endsAt(t,e){var r=t.length,n=t.slice(0,r),o=e.slice(0,r);return z.equals(n,o)},endsBefore(t,e){var r=t.length-1,n=t.slice(0,r),o=e.slice(0,r),a=t[r],i=e[r];return z.equals(n,o)&&a<i},equals:(t,e)=>t.length===e.length&&t.every((r,n)=>r===e[n]),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 r=t.slice(0,-1),n=e.slice(0,-1);return t[t.length-1]!==e[e.length-1]&&z.equals(r,n)},levels(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:r=!1}=e,n=[],o=0;o<=t.length;o++)n.push(t.slice(0,o));return r&&n.reverse(),n},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 r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Zy(t,n=>{var{affinity:o="forward"}=r;if(t&&(t==null?void 0:t.length)!==0){if(n===null)return null;switch(e.type){case"insert_node":var{path:a}=e;(z.equals(a,n)||z.endsBefore(a,n)||z.isAncestor(a,n))&&(n[a.length-1]+=1);break;case"remove_node":var{path:i}=e;if(z.equals(i,n)||z.isAncestor(i,n))return null;z.endsBefore(i,n)&&(n[i.length-1]-=1);break;case"merge_node":var{path:u,position:s}=e;z.equals(u,n)||z.endsBefore(u,n)?n[u.length-1]-=1:z.isAncestor(u,n)&&(n[u.length-1]-=1,n[u.length]+=s);break;case"split_node":var{path:l,position:c}=e;if(z.equals(l,n)){if(o==="forward")n[n.length-1]+=1;else if(o!=="backward")return null}else z.endsBefore(l,n)?n[l.length-1]+=1:z.isAncestor(l,n)&&t[l.length]>=c&&(n[l.length-1]+=1,n[l.length]-=c);break;case"move_node":var{path:f,newPath:d}=e;if(z.equals(f,d))return;if(z.isAncestor(f,n)||z.equals(f,n)){var p=d.slice();return z.endsBefore(f,d)&&f.length<d.length&&(p[f.length-1]-=1),p.concat(n.slice(f.length))}z.isSibling(f,d)&&(z.isAncestor(d,n)||z.equals(d,n))?z.endsBefore(f,n)?n[f.length-1]-=1:n[f.length-1]+=1:z.endsBefore(d,n)||z.equals(d,n)||z.isAncestor(d,n)?(z.endsBefore(f,n)&&(n[f.length-1]-=1),n[d.length-1]+=1):z.endsBefore(f,n)&&(z.equals(d,n)&&(n[d.length-1]+=1),n[f.length-1]-=1)}}})}},FX={transform(t,e){var{current:r,affinity:n}=t;if(r!=null){var o=z.transform(r,e,{affinity:n});t.current=o,o==null&&t.unref()}}};function VA(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function $A(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?VA(Object(r),!0).forEach(function(n){Ci(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):VA(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}var Zt={compare(t,e){var r=z.compare(t.path,e.path);return r===0?t.offset<e.offset?-1:t.offset>e.offset?1:0:r},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=>rn(t)&&typeof t.offset=="number"&&z.isPath(t.path),transform(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Zy(t,n=>{if(n===null)return null;var{affinity:o="forward"}=r,{path:a,offset:i}=n;switch(e.type){case"insert_node":case"move_node":n.path=z.transform(a,e,r);break;case"insert_text":z.equals(e.path,a)&&e.offset<=i&&(n.offset+=e.text.length);break;case"merge_node":z.equals(e.path,a)&&(n.offset+=e.position),n.path=z.transform(a,e,r);break;case"remove_text":z.equals(e.path,a)&&e.offset<=i&&(n.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;n.path=z.transform(a,e,r);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")&&(n.offset-=e.position,n.path=z.transform(a,e,$A($A({},r),{},{affinity:"forward"})))}else n.path=z.transform(a,e,r)}})}},kX={transform(t,e){var{current:r,affinity:n}=t;if(r!=null){var o=Zt.transform(r,e,{affinity:n});t.current=o,o==null&&t.unref()}}},NX=["anchor","focus"];function zA(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}var Q={edges(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:r=!1}=e,{anchor:n,focus:o}=t;return Q.isBackward(t)===r?[n,o]:[o,n]},end(t){var[,e]=Q.edges(t);return e},equals:(t,e)=>Zt.equals(t.anchor,e.anchor)&&Zt.equals(t.focus,e.focus),includes(t,e){if(Q.isRange(e)){if(Q.includes(t,e.anchor)||Q.includes(t,e.focus))return!0;var[r,n]=Q.edges(t),[o,a]=Q.edges(e);return Zt.isBefore(r,o)&&Zt.isAfter(n,a)}var[i,u]=Q.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 r=Xi(t,NX),[n,o]=Q.edges(t),[a,i]=Q.edges(e),u=Zt.isBefore(n,a)?a:n,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?zA(Object(f),!0).forEach(function(d){Ci(l,d,f[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(f)):zA(Object(f)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(f,d))})}return l}({anchor:u,focus:s},r)},isBackward(t){var{anchor:e,focus:r}=t;return Zt.isAfter(e,r)},isCollapsed(t){var{anchor:e,focus:r}=t;return Zt.equals(e,r)},isExpanded:t=>!Q.isCollapsed(t),isForward:t=>!Q.isBackward(t),isRange:t=>rn(t)&&Zt.isPoint(t.anchor)&&Zt.isPoint(t.focus),*points(t){yield[t.anchor,"anchor"],yield[t.focus,"focus"]},start(t){var[e]=Q.edges(t);return e},transform(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Zy(t,n=>{if(n===null)return null;var o,a,{affinity:i="inward"}=r;if(i==="inward"){var u=Q.isCollapsed(n);Q.isForward(n)?(o="forward",a=u?o:"backward"):(o="backward",a=u?o:"forward")}else i==="outward"?Q.isForward(n)?(o="backward",a="forward"):(o="forward",a="backward"):(o=i,a=i);var s=Zt.transform(n.anchor,e,{affinity:o}),l=Zt.transform(n.focus,e,{affinity:a});if(!s||!l)return null;n.anchor=s,n.focus=l})}},IX={transform(t,e){var{current:r,affinity:n}=t;if(r!=null){var o=Q.transform(r,e,{affinity:n});t.current=o,o==null&&t.unref()}}},Xj=(t,e)=>{for(var r in t){var n=t[r],o=e[r];if(rn(n)&&rn(o)){if(!Xj(n,o))return!1}else if(Array.isArray(n)&&Array.isArray(o)){if(n.length!==o.length)return!1;for(var a=0;a<n.length;a++)if(n[a]!==o[a])return!1}else if(n!==o)return!1}for(var i in e)if(t[i]===void 0&&e[i]!==void 0)return!1;return!0},jX=["text"],RX=["anchor","focus"];function HA(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function Bi(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?HA(Object(r),!0).forEach(function(n){Ci(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):HA(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}var vt={equals(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{loose:n=!1}=r;function o(a){return Xi(a,jX)}return Xj(n?o(t):t,n?o(e):e)},isText:t=>rn(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 r in e)if(r!=="text"&&(!t.hasOwnProperty(r)||t[r]!==e[r]))return!1;return!0},decorations(t,e){var r=[Bi({},t)];for(var n of e){var o=Xi(n,RX),[a,i]=Q.edges(n),u=[],s=0;for(var l of r){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=Bi(Bi({},d),{},{text:d.text.slice(h)}),d=Bi(Bi({},d),{},{text:d.text.slice(0,h)})}if(a.offset>f){var v=a.offset-f;p=Bi(Bi({},d),{},{text:d.text.slice(0,v)}),d=Bi(Bi({},d),{},{text:d.text.slice(v)})}Object.assign(d,o),p&&u.push(p),u.push(d),m&&u.push(m)}}r=u}return r}};function UA(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function Of(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?UA(Object(r),!0).forEach(function(n){Ci(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):UA(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}var LX={transform(t,e){t.children=AA(t.children);var r=t.selection&&AA(t.selection);try{r=((n,o,a)=>{switch(a.type){case"insert_node":var{path:i,node:u}=a,s=st.parent(n,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 Q.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(n,d),v=h.text.slice(0,p),y=h.text.slice(p);if(h.text=v+m+y,o)for(var[g,b]of Q.points(o))o[b]=Zt.transform(g,a);break;case"merge_node":var{path:E}=a,x=st.get(n,E),S=z.previous(E),C=st.get(n,S),T=st.parent(n,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 Q.points(o))o[M]=Zt.transform(k,a);break;case"move_node":var{path:$,newPath:N}=a;if(z.isAncestor($,N))throw new Error("Cannot move a path [".concat($,"] to new path [").concat(N,"] because the destination is inside itself."));var j=st.get(n,$),_=st.parent(n,$),V=$[$.length-1];_.children.splice(V,1);var Z=z.transform($,a),nt=st.get(n,z.parent(Z)),it=Z[Z.length-1];if(nt.children.splice(it,0,j),o)for(var[G,O]of Q.points(o))o[O]=Zt.transform(G,a);break;case"remove_node":var{path:B}=a,I=B[B.length-1];if(st.parent(n,B).children.splice(I,1),o)for(var[K,et]of Q.points(o)){var Y=Zt.transform(K,a);if(o!=null&&Y!=null)o[et]=Y;else{var ot=void 0,mt=void 0;for(var[bt,Pt]of st.texts(n)){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?(K.path=ot[1],K.offset=ot[0].text.length):mt?(K.path=mt[1],K.offset=0):o=null}}break;case"remove_text":var{path:Mt,offset:Ct,text:ht}=a;if(ht.length===0)break;var kt=st.leaf(n,Mt),ye=kt.text.slice(0,Ct),Vt=kt.text.slice(Ct+ht.length);if(kt.text=ye+Vt,o)for(var[fe,De]of Q.points(o))o[De]=Zt.transform(fe,a);break;case"set_node":var{path:Be,properties:zt,newProperties:lr}=a;if(Be.length===0)throw new Error("Cannot set properties on the root node!");var Ur=st.get(n,Be);for(var Zr in lr){if(Zr==="children"||Zr==="text")throw new Error('Cannot set the "'.concat(Zr,'" property of nodes!'));var eo=lr[Zr];eo==null?delete Ur[Zr]:Ur[Zr]=eo}for(var kn in zt)lr.hasOwnProperty(kn)||delete Ur[kn];break;case"set_selection":var{newProperties:_r}=a;if(_r==null)o=_r;else{if(o==null){if(!Q.isRange(_r))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(_r)," when there is no current selection."));o=Of({},_r)}for(var Jr in _r){var W=_r[Jr];if(W==null){if(Jr==="anchor"||Jr==="focus")throw new Error('Cannot remove the "'.concat(Jr,'" selection property'));delete o[Jr]}else o[Jr]=W}}break;case"split_node":var{path:H,position:X,properties:rt}=a;if(H.length===0)throw new Error('Cannot apply a "split_node" operation at path ['.concat(H,"] because the root node cannot be split."));var gt,wt=st.get(n,H),Ft=st.parent(n,H),ae=H[H.length-1];if(vt.isText(wt)){var Se=wt.text.slice(0,X),Bt=wt.text.slice(X);wt.text=Se,gt=Of(Of({},rt),{},{text:Bt})}else{var Et=wt.children.slice(0,X),Tt=wt.children.slice(X);wt.children=Et,gt=Of(Of({},rt),{},{children:Tt})}if(Ft.children.splice(ae+1,0,gt),o)for(var[Yt,Ut]of Q.points(o))o[Ut]=Zt.transform(Yt,a)}return o})(t,r,e)}finally{t.children=TA(t.children),t.selection=r?ks(r)?TA(r):r:null}}},MX=["text"],VX=["children"];function _A(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function GA(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?_A(Object(r),!0).forEach(function(n){Ci(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):_A(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}var $X={insertNodes(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};D.withoutNormalizing(t,()=>{var{hanging:n=!1,voids:o=!1,mode:a="lowest"}=r,{at:i,match:u,select:s}=r;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),Q.isRange(i))if(n||(i=D.unhangRange(t,i)),Q.isCollapsed(i))i=i.anchor;else{var[,c]=Q.edges(i),f=D.pointRef(t,c);U.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);U.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 b of e){var E=y.concat(g);g++,t.apply({type:"insert_node",path:E,node:b}),i=z.next(i)}if(i=z.previous(i),s){var x=D.end(t,i);x&&U.select(t,x)}}}})},liftNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};D.withoutNormalizing(t,()=>{var{at:r=t.selection,mode:n="lowest",voids:o=!1}=e,{match:a}=e;if(a==null&&(a=z.isPath(r)?pl(t,r):b=>D.isBlock(t,b)),r){var i=D.nodes(t,{at:r,match:a,mode:n,voids:o}),u=Array.from(i,b=>{var[,E]=b;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);U.moveNodes(t,{at:l,to:h,voids:o}),U.removeNodes(t,{at:d,voids:o})}else if(p===0)U.moveNodes(t,{at:l,to:d,voids:o});else if(p===m-1){var v=z.next(d);U.moveNodes(t,{at:l,to:v,voids:o})}else{var y=z.next(l),g=z.next(d);U.splitNodes(t,{at:y,voids:o}),U.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:r,at:n=t.selection}=e,{hanging:o=!1,voids:a=!1,mode:i="lowest"}=e;if(n){if(r==null)if(z.isPath(n)){var[u]=D.parent(t,n);r=A=>u.children.includes(A)}else r=A=>D.isBlock(t,A);if(!o&&Q.isRange(n)&&(n=D.unhangRange(t,n)),Q.isRange(n))if(Q.isCollapsed(n))n=n.anchor;else{var[,s]=Q.edges(n),l=D.pointRef(t,s);U.delete(t,{at:n}),n=l.unref(),e.at==null&&U.select(t,n)}var[c]=D.nodes(t,{at:n,match:r,voids:a,mode:i}),f=D.previous(t,{at:n,match:r,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),b=z.common(p,h),E=z.isSibling(p,h),x=Array.from(D.levels(t,{at:p}),A=>{var[k]=A;return k}).slice(b.length).slice(0,-1),S=D.above(t,{at:p,mode:"highest",match:A=>x.includes(A)&&Zj(t,A)}),C=S&&D.pathRef(t,S[1]);if(vt.isText(d)&&vt.isText(m)){var T=Xi(d,MX);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=Xi(d,VX),y=m.children.length,v=T}E||U.moveNodes(t,{at:p,to:g,voids:a}),C&&U.removeNodes(t,{at:C.current,voids:a}),St.isElement(m)&&D.isEmpty(t,m)||vt.isText(m)&&m.text===""&&h[h.length-1]!==0?U.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:r,at:n=t.selection,mode:o="lowest",voids:a=!1}=e,{match:i}=e;if(n){i==null&&(i=z.isPath(n)?pl(t,n):p=>D.isBlock(t,p));var u=D.pathRef(t,r),s=D.nodes(t,{at:n,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:r=!1,voids:n=!1,mode:o="lowest"}=e,{at:a=t.selection,match:i}=e;if(a){i==null&&(i=z.isPath(a)?pl(t,a):d=>D.isBlock(t,d)),!r&&Q.isRange(a)&&(a=D.unhangRange(t,a));var u=D.nodes(t,{at:a,match:i,mode:o,voids:n}),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 r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};D.withoutNormalizing(t,()=>{var{match:n,at:o=t.selection}=r,{hanging:a=!1,mode:i="lowest",split:u=!1,voids:s=!1}=r;if(o){if(n==null&&(n=z.isPath(o)?pl(t,o):x=>D.isBlock(t,x)),!a&&Q.isRange(o)&&(o=D.unhangRange(t,o)),u&&Q.isRange(o)){if(Q.isCollapsed(o)&&D.leaf(t,o.anchor)[0].text.length>0)return;var l=D.rangeRef(t,o,{affinity:"inward"}),[c,f]=Q.edges(o),d=i==="lowest"?"lowest":"highest",p=D.isEnd(t,f,f.path);U.splitNodes(t,{at:f,match:n,mode:d,voids:s,always:!p});var m=D.isStart(t,c,c.path);U.splitNodes(t,{at:c,match:n,mode:d,voids:s,always:!m}),o=l.unref(),r.at==null&&U.select(t,o)}for(var[h,v]of D.nodes(t,{at:o,match:n,mode:i,voids:s})){var y={},g={};if(v.length!==0){var b=!1;for(var E in e)E!=="children"&&E!=="text"&&e[E]!==h[E]&&(b=!0,h.hasOwnProperty(E)&&(y[E]=h[E]),e[E]!=null&&(g[E]=e[E]));b&&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:r="lowest",voids:n=!1}=e,{match:o,at:a=t.selection,height:i=0,always:u=!1}=e;if(o==null&&(o=j=>D.isBlock(t,j)),Q.isRange(a)&&(a=zX(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:r,voids:n});if(d){var p=D.void(t,{at:a,mode:"highest"});if(!n&&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);U.insertNodes(t,{text:""},{at:y,voids:n}),v=D.point(t,y)}a=v,u=!0}i=a.path.length-h.length+1,u=!0}var g=D.pointRef(t,a),b=a.path.length-i,[,E]=d,x=a.path.slice(0,b),S=i===0?a.offset:a.path[b]+0;for(var[C,T]of D.levels(t,{at:x,reverse:!0,voids:n})){var A=!1;if(T.length<E.length||T.length===0||!n&&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 $=st.extractProps(C);t.apply({type:"split_node",path:T,position:S,properties:$})}S=T[T.length-1]+(A||M?1:0)}if(e.at==null){var N=g.current||D.end(t,[]);U.select(t,N)}f.unref(),g.unref()}}})},unsetNodes(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Array.isArray(e)||(e=[e]);var n={};for(var o of e)n[o]=null;U.setNodes(t,n,r)},unwrapNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};D.withoutNormalizing(t,()=>{var{mode:r="lowest",split:n=!1,voids:o=!1}=e,{at:a=t.selection,match:i}=e;if(a){i==null&&(i=z.isPath(a)?pl(t,a):d=>D.isBlock(t,d)),z.isPath(a)&&(a=D.range(t,a));var u=Q.isRange(a)?D.rangeRef(t,a):null,s=D.nodes(t,{at:a,match:i,mode:r,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);n&&u&&(h=Q.intersection(u.current,h)),U.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 r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};D.withoutNormalizing(t,()=>{var{mode:n="lowest",split:o=!1,voids:a=!1}=r,{match:i,at:u=t.selection}=r;if(u){if(i==null&&(i=z.isPath(u)?pl(t,u):t.isInline(e)?v=>D.isInline(t,v)||vt.isText(v):v=>D.isBlock(t,v)),o&&Q.isRange(u)){var[s,l]=Q.edges(u),c=D.rangeRef(t,u,{affinity:"inward"});U.splitNodes(t,{at:l,match:i,voids:a}),U.splitNodes(t,{at:s,match:i,voids:a}),u=c.unref(),r.at==null&&U.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=Q.isRange(u)?Q.intersection(u,D.range(t,d)):u;if(p){var m=Array.from(D.nodes(t,{at:p,match:i,mode:n,voids:a}));if(m.length>0){var h=function(){var[v]=m,y=m[m.length-1],[,g]=v,[,b]=y;if(g.length===0&&b.length===0)return"continue";var E=z.equals(g,b)?z.parent(g):z.common(g,b),x=D.range(t,g,b),S=D.node(t,E),[C]=S,T=E.length+1,A=z.next(b.slice(0,T)),k=GA(GA({},e),{},{children:[]});U.insertNodes(t,k,{at:A,voids:a}),U.moveNodes(t,{at:x,match:M=>St.isAncestor(C)&&C.children.includes(M),to:A.concat(0),voids:a})}();if(h==="continue")continue}}}}})}},Zj=(t,e)=>{if(St.isElement(e)){var r=e;return!!D.isVoid(t,e)||r.children.length===1&&Zj(t,r.children[0])}return!D.isEditor(e)},zX=(t,e)=>{if(Q.isCollapsed(e))return e.anchor;var[,r]=Q.edges(e),n=D.pointRef(t,r);return U.delete(t,{at:e}),n.unref()},pl=(t,e)=>{var[r]=D.node(t,e);return n=>n===r};function WA(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function KA(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?WA(Object(r),!0).forEach(function(n){Ci(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):WA(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}var HX={collapse(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{edge:r="anchor"}=e,{selection:n}=t;if(n){if(r==="anchor")U.select(t,n.anchor);else if(r==="focus")U.select(t,n.focus);else if(r==="start"){var[o]=Q.edges(n);U.select(t,o)}else if(r==="end"){var[,a]=Q.edges(n);U.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:r}=t,{distance:n=1,unit:o="character",reverse:a=!1}=e,{edge:i=null}=e;if(r){i==="start"&&(i=Q.isBackward(r)?"focus":"anchor"),i==="end"&&(i=Q.isBackward(r)?"anchor":"focus");var{anchor:u,focus:s}=r,l={distance:n,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)}U.setSelection(t,c)}},select(t,e){var{selection:r}=t;if(e=D.range(t,e),r)U.setSelection(t,e);else{if(!Q.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:r,newProperties:e})}},setPoint(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{selection:n}=t,{edge:o="both"}=r;if(n){o==="start"&&(o=Q.isBackward(n)?"focus":"anchor"),o==="end"&&(o=Q.isBackward(n)?"anchor":"focus");var{anchor:a,focus:i}=n,u=o==="anchor"?a:i;U.setSelection(t,{[o==="anchor"?"anchor":"focus"]:KA(KA({},u),e)})}},setSelection(t,e){var{selection:r}=t,n={},o={};if(r){for(var a in e)(a==="anchor"&&e.anchor!=null&&!Zt.equals(e.anchor,r.anchor)||a==="focus"&&e.focus!=null&&!Zt.equals(e.focus,r.focus)||a!=="anchor"&&a!=="focus"&&e[a]!==r[a])&&(n[a]=r[a],o[a]=e[a]);Object.keys(n).length>0&&t.apply({type:"set_selection",properties:n,newProperties:o})}}},UX={delete(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};D.withoutNormalizing(t,()=>{var{reverse:r=!1,unit:n="character",distance:o=1,voids:a=!1}=e,{at:i=t.selection,hanging:u=!1}=e;if(i){if(Q.isRange(i)&&Q.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:n,distance:o};i={anchor:i,focus:r?D.before(t,i,c)||D.start(t,[]):D.after(t,i,c)||D.end(t,[])},u=!0}}if(z.isPath(i))U.removeNodes(t,{at:i,voids:a});else if(!Q.isCollapsed(i)){if(!u){var[,f]=Q.edges(i),d=D.end(t,[]);Zt.equals(f,d)||(i=D.unhangRange(t,i,{voids:a}))}var[p,m]=Q.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),b=a?null:D.void(t,{at:p,mode:"highest"}),E=a?null:D.void(t,{at:m,mode:"highest"});if(b){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 $=Array.from(T,mt=>{var[,bt]=mt;return D.pathRef(t,bt)}),N=D.pointRef(t,p),j=D.pointRef(t,m);if(!g&&!b){var _=N.current,[V]=D.leaf(t,_),{path:Z}=_,{offset:nt}=p,it=V.text.slice(nt);it.length>0&&t.apply({type:"remove_text",path:Z,offset:nt,text:it})}for(var G of $){var O=G.unref();U.removeNodes(t,{at:O,voids:a})}if(!E){var B=j.current,[I]=D.leaf(t,B),{path:K}=B,et=g?p.offset:0,Y=I.text.slice(et,m.offset);Y.length>0&&t.apply({type:"remove_text",path:K,offset:et,text:Y})}!g&&y&&j.current&&N.current&&U.mergeNodes(t,{at:j.current,hanging:!0,voids:a});var ot=r?N.unref()||j.unref():j.unref()||N.unref();e.at==null&&ot&&U.select(t,ot)}}})},insertFragment(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};D.withoutNormalizing(t,()=>{var{hanging:n=!1,voids:o=!1}=r,{at:a=t.selection}=r;if(e.length&&a){if(Q.isRange(a))if(n||(a=D.unhangRange(t,a)),Q.isCollapsed(a))a=a.anchor;else{var[,i]=Q.edges(a);if(!o&&D.void(t,{at:i}))return;var u=D.pointRef(t,i);U.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},[]),b=[],E=B=>{var[I,K]=B;return K.length!==0&&(!!m||!(h&&z.isAncestor(K,y)&&St.isElement(I)&&!t.isVoid(I)&&!t.isInline(I))&&!(v&&z.isAncestor(K,g)&&St.isElement(I)&&!t.isVoid(I)&&!t.isInline(I)))};for(var x of st.nodes({children:e},{pass:E}))E(x)&&b.push(x);var S=[],C=[],T=[],A=!0,k=!1;for(var[M]of b)St.isElement(M)&&!t.isInline(M)?(A=!1,k=!0,C.push(M)):A?S.push(M):T.push(M);var[$]=D.nodes(t,{at:a,match:B=>vt.isText(B)||D.isInline(t,B),mode:"highest",voids:o}),[,N]=$,j=D.isStart(t,a,N),_=D.isEnd(t,a,N),V=D.pathRef(t,p?z.next(f):f),Z=D.pathRef(t,_?z.next(N):N),nt=D.pathRef(t,f);U.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&&_?z.next(N):N);if(U.insertNodes(t,S,{at:it.current,match:B=>vt.isText(B)||D.isInline(t,B),mode:"highest",voids:o}),m&&C.length&&U.delete(t,{at:nt.unref(),voids:o}),U.insertNodes(t,C,{at:V.current,match:B=>D.isBlock(t,B),mode:"lowest",voids:o}),U.insertNodes(t,T,{at:Z.current,match:B=>vt.isText(B)||D.isInline(t,B),mode:"highest",voids:o}),!r.at){var G;G=T.length>0?z.previous(Z.current):C.length>0?z.previous(V.current):z.previous(it.current);var O=D.end(t,G);U.select(t,O)}it.unref(),V.unref(),Z.unref()}}})},insertText(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};D.withoutNormalizing(t,()=>{var{voids:n=!1}=r,{at:o=t.selection}=r;if(o){if(z.isPath(o)&&(o=D.range(t,o)),Q.isRange(o))if(Q.isCollapsed(o))o=o.anchor;else{var a=Q.end(o);if(!n&&D.void(t,{at:a}))return;var i=D.pointRef(t,a);U.delete(t,{at:o,voids:n}),o=i.unref(),U.setSelection(t,{anchor:o,focus:o})}if(n||!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 YA(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function $g(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?YA(Object(r),!0).forEach(function(n){Ci(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):YA(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}var U=$g($g($g($g({},LX),$X),HX),UX),hx="[object Map]",gx="[object Set]",_X=/^\[object .+?Constructor\]$/,GX=/^(?:0|[1-9]\d*)$/,WX="[\\ud800-\\udfff]",vx="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",mx="\\ud83c[\\udffb-\\udfff]",Jj="[^\\ud800-\\udfff]",Qj="(?:\\ud83c[\\udde6-\\uddff]){2}",qj="[\\ud800-\\udbff][\\udc00-\\udfff]",XA="(?:"+vx+"|"+mx+")?",KX="[\\ufe0e\\ufe0f]?"+XA+("(?:\\u200d(?:"+[Jj,Qj,qj].join("|")+")[\\ufe0e\\ufe0f]?"+XA+")*"),YX="(?:"+[Jj+vx+"?",vx,Qj,qj,WX].join("|")+")",XX=RegExp(mx+"(?="+mx+")|"+YX+KX,"g"),ZX=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),JX=typeof Fe=="object"&&Fe&&Fe.Object===Object&&Fe,QX=typeof self=="object"&&self&&self.Object===Object&&self,Ys=JX||QX||Function("return this")();function qX(t,e){return function(r,n){for(var o=-1,a=r?r.length:0,i=Array(a);++o<a;)i[o]=n(r[o],o,r);return i}(e,function(r){return t[r]})}function tZ(t){var e=-1,r=Array(t.size);return t.forEach(function(n,o){r[++e]=[o,n]}),r}function eZ(t){var e=-1,r=Array(t.size);return t.forEach(function(n){r[++e]=n}),r}function rZ(t){return function(e){return ZX.test(e)}(t)?function(e){return e.match(XX)||[]}(t):function(e){return e.split("")}(t)}var ZA,JA,nZ=Function.prototype,Jy=Object.prototype,$b=Ys["__core-js_shared__"],QA=function(){var t=/[^.]+$/.exec($b&&$b.keys&&$b.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),tR=nZ.toString,rm=Jy.hasOwnProperty,Mh=Jy.toString,oZ=RegExp("^"+tR.call(rm).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),qA=Ys.Symbol,zb=qA?qA.iterator:void 0,iZ=Jy.propertyIsEnumerable,aZ=(ZA=Object.keys,JA=Object,function(t){return ZA(JA(t))}),yx=Vh(Ys,"DataView"),bx=Vh(Ys,"Map"),wx=Vh(Ys,"Promise"),Ex=Vh(Ys,"Set"),Sx=Vh(Ys,"WeakMap"),uZ=Xs(yx),sZ=Xs(bx),lZ=Xs(wx),cZ=Xs(Ex),fZ=Xs(Sx);function dZ(t,e){var r=eR(t)||function(i){return function(u){return oR(u)&&n3(u)}(i)&&rm.call(i,"callee")&&(!iZ.call(i,"callee")||Mh.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):[],n=r.length,o=!!n;for(var a in t)!rm.call(t,a)||o&&(a=="length"||gZ(a,n))||r.push(a);return r}function pZ(t){if(!nR(t)||function(r){return!!QA&&QA in r}(t))return!1;var e=rR(t)||function(r){var n=!1;if(r!=null&&typeof r.toString!="function")try{n=!!(r+"")}catch{}return n}(t)?oZ:_X;return e.test(Xs(t))}function hZ(t){if(r=(e=t)&&e.constructor,n=typeof r=="function"&&r.prototype||Jy,e!==n)return aZ(t);var e,r,n,o=[];for(var a in Object(t))rm.call(t,a)&&a!="constructor"&&o.push(a);return o}function Vh(t,e){var r=function(n,o){return n==null?void 0:n[o]}(t,e);return pZ(r)?r:void 0}var _u=function(t){return Mh.call(t)};function gZ(t,e){return!!(e=e??9007199254740991)&&(typeof t=="number"||GX.test(t))&&t>-1&&t%1==0&&t<e}function Xs(t){if(t!=null){try{return tR.call(t)}catch{}try{return t+""}catch{}}return""}(yx&&_u(new yx(new ArrayBuffer(1)))!="[object DataView]"||bx&&_u(new bx)!=hx||wx&&_u(wx.resolve())!="[object Promise]"||Ex&&_u(new Ex)!=gx||Sx&&_u(new Sx)!="[object WeakMap]")&&(_u=function(t){var e=Mh.call(t),r=e=="[object Object]"?t.constructor:void 0,n=r?Xs(r):void 0;if(n)switch(n){case uZ:return"[object DataView]";case sZ:return hx;case lZ:return"[object Promise]";case cZ:return gx;case fZ:return"[object WeakMap]"}return e});var eR=Array.isArray;function n3(t){return t!=null&&function(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=9007199254740991}(t.length)&&!rR(t)}function rR(t){var e=nR(t)?Mh.call(t):"";return e=="[object Function]"||e=="[object GeneratorFunction]"}function nR(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function oR(t){return!!t&&typeof t=="object"}function vZ(t){return t?qX(t,function(e){return n3(e)?dZ(e):hZ(e)}(t)):[]}var t7=function(t){if(!t)return[];if(n3(t))return function(r){return typeof r=="string"||!eR(r)&&oR(r)&&Mh.call(r)=="[object String]"}(t)?rZ(t):function(r,n){var o=-1,a=r.length;for(n||(n=Array(a));++o<a;)n[o]=r[o];return n}(t);if(zb&&t[zb])return function(r){for(var n,o=[];!(n=r.next()).done;)o.push(n.value);return o}(t[zb]());var e=_u(t);return(e==hx?tZ:e==gx?eZ:vZ)(t)};function e7(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function o3(t,e){t===void 0&&(t={}),e===void 0&&(e={}),Object.keys(e).forEach(function(r){t[r]===void 0?t[r]=e[r]:e7(e[r])&&e7(t[r])&&Object.keys(e[r]).length>0&&o3(t[r],e[r])})}var iR={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 $h(){var t=typeof document<"u"?document:{};return o3(t,iR),t}var mZ={document:iR,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 Zs(){var t=typeof window<"u"?window:{};return o3(t,mZ),t}function xx(t){return xx=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},xx(t)}function nm(t,e){return nm=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},nm(t,e)}function yZ(){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 Cx(t,e,r){return Cx=yZ()?Reflect.construct:function(n,o,a){var i=[null];i.push.apply(i,o);var u=new(Function.bind.apply(n,i));return a&&nm(u,a.prototype),u},Cx.apply(null,arguments)}function Dx(t){var e=typeof Map=="function"?new Map:void 0;return Dx=function(r){if(r===null||!function(o){return Function.toString.call(o).indexOf("[native code]")!==-1}(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(e!==void 0){if(e.has(r))return e.get(r);e.set(r,n)}function n(){return Cx(r,arguments,xx(this).constructor)}return n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),nm(n,r)},Dx(t)}var ja=function(t){var e,r;function n(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 r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r,n}(Dx(Array));function Qy(t){t===void 0&&(t=[]);var e=[];return t.forEach(function(r){Array.isArray(r)?e.push.apply(e,Qy(r)):e.push(r)}),e}function aR(t,e){return Array.prototype.filter.call(t,e)}function F(t,e){var r=Zs(),n=$h(),o=[];if(!e&&t instanceof ja)return t;if(!t)return new ja(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=n.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||n)}else if(t.nodeType||t===r||t===n)o.push(t);else if(Array.isArray(t)){if(t instanceof ja)return t;o=t}return new ja(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 bc(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=Qy(e.map(function(o){return o.split(" ")}));return this.forEach(function(o){var a;(a=o.classList).add.apply(a,n)}),this}function wc(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=Qy(e.map(function(o){return o.split(" ")}));return this.forEach(function(o){var a;(a=o.classList).remove.apply(a,n)}),this}function Ec(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=Qy(e.map(function(o){return o.split(" ")}));return aR(this,function(o){return n.filter(function(a){return o.classList.contains(a)}).length>0}).length>0}function mo(t,e){if(arguments.length===1&&typeof t=="string")return this[0]?this[0].getAttribute(t):void 0;for(var r=0;r<this.length;r+=1)if(arguments.length===2)this[r].setAttribute(t,e);else for(var n in t)this[r][n]=t[n],this[r].setAttribute(n,t[n]);return this}function om(t){for(var e=0;e<this.length;e+=1)this[e].removeAttribute(t);return this}function Sc(){var t=this[0];if(t){var e,r={};if(t.dataset)for(var n in t.dataset)r[n]=t.dataset[n];else for(var o=0;o<t.attributes.length;o+=1){var a=t.attributes[o];a.name.indexOf("data-")>=0&&(r[e=a.name.split("data-")[1],e.toLowerCase().replace(/-(.)/g,function(u,s){return s.toUpperCase()})]=a.value)}for(var i in r)r[i]==="false"?r[i]=!1:r[i]==="true"?r[i]=!0:parseFloat(r[i])===1*r[i]&&(r[i]*=1);return r}}function vi(t){if(t===void 0){var e=this[0];if(!e)return;if(e.multiple&&e.nodeName.toLowerCase()==="select"){for(var r=[],n=0;n<e.selectedOptions.length;n+=1)r.push(e.selectedOptions[n].value);return r}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 mi(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=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(),b=0;b<g.length;b+=1)F(g[b]).is(o)&&a.apply(g[b],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"&&(n=e[0],a=e[1],i=e[2],o=void 0),i||(i=!1);for(var l,c=n.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 r7(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=e[0],o=e[1],a=e[2],i=e[3];typeof e[1]=="function"&&(n=e[0],a=e[1],i=e[2],o=void 0),i||(i=!1);for(var u=n.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 im(){var t=Zs();return this[0]===t?t.innerWidth:this.length>0?parseFloat(this.css("width")):null}function am(){var t=Zs();return this[0]===t?t.innerHeight:this.length>0?parseFloat(this.css("height")):null}function n7(){if(this.length>0){var t=Zs(),e=$h(),r=this[0],n=r.getBoundingClientRect(),o=e.body,a=r.clientTop||o.clientTop||0,i=r.clientLeft||o.clientLeft||0,u=r===t?t.scrollY:r.scrollTop,s=r===t?t.scrollX:r.scrollLeft;return{top:n.top+u-a,left:n.left+s-i}}return null}function xc(){for(var t=0;t<this.length;t+=1)this[t].style.display="none";return this}function um(){for(var t=Zs(),e=0;e<this.length;e+=1){var r=this[e];r.style.display==="none"&&(r.style.display=""),t.getComputedStyle(r,null).getPropertyValue("display")==="none"&&(r.style.display="block")}return this}function sm(t,e){var r,n=Zs();if(arguments.length===1){if(typeof t!="string"){for(r=0;r<this.length;r+=1)for(var o in t)this[r].style[o]=t[o];return this}if(this[0])return n.getComputedStyle(this[0],null).getPropertyValue(t)}if(arguments.length===2&&typeof t=="string"){for(r=0;r<this.length;r+=1)this[r].style[t]=e;return this}return this}function lm(t){return t?(this.forEach(function(e,r){t.apply(e,[e,r])}),this):this}function o7(t){return F(aR(this,t))}function iu(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 cm(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 i7(t){var e,r,n=Zs(),o=$h(),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),r=0;r<e.length;r+=1)if(e[r]===a)return!0;return!1}if(t===o)return a===o;if(t===n)return a===n;if(t.nodeType||t instanceof ja){for(e=t.nodeType?[t]:t,r=0;r<e.length;r+=1)if(e[r]===a)return!0;return!1}return!1}function yo(){for(var t,e=$h(),r=0;r<arguments.length;r+=1){t=r<0||arguments.length<=r?void 0:arguments[r];for(var n=0;n<this.length;n+=1)if(typeof t=="string"){var o=e.createElement("div");for(o.innerHTML=t;o.firstChild;)this[n].appendChild(o.firstChild)}else if(t instanceof ja)for(var a=0;a<t.length;a+=1)this[n].appendChild(t[a]);else this[n].appendChild(t)}return this}function a7(t){var e,r,n=$h();for(e=0;e<this.length;e+=1)if(typeof t=="string"){var o=n.createElement("div");for(o.innerHTML=t,r=o.childNodes.length-1;r>=0;r-=1)this[e].insertBefore(o.childNodes[r],this[e].childNodes[0])}else if(t instanceof ja)for(r=0;r<t.length;r+=1)this[e].insertBefore(t[r],this[e].childNodes[0]);else this[e].insertBefore(t,this[e].childNodes[0]);return this}function Cc(t){for(var e=[],r=0;r<this.length;r+=1)this[r].parentNode!==null&&(t?F(this[r].parentNode).is(t)&&e.push(this[r].parentNode):e.push(this[r].parentNode));return F(e)}function fm(t){for(var e=[],r=0;r<this.length;r+=1)for(var n=this[r].parentNode;n;)t?F(n).is(t)&&e.push(n):e.push(n),n=n.parentNode;return F(e)}function Dc(t){for(var e=[],r=0;r<this.length;r+=1)for(var n=this[r].querySelectorAll(t),o=0;o<n.length;o+=1)e.push(n[o]);return F(e)}function Oc(t){for(var e=[],r=0;r<this.length;r+=1)for(var n=this[r].children,o=0;o<n.length;o+=1)t&&!F(n[o]).is(t)||e.push(n[o]);return F(e)}function Ac(){for(var t=0;t<this.length;t+=1)this[t].parentNode&&this[t].parentNode.removeChild(this[t]);return this}function Tc(){for(var t=0;t<this.length;t+=1){var e=this[t];if(e.nodeType===1){for(var r=0;r<e.childNodes.length;r+=1)e.childNodes[r].parentNode&&e.childNodes[r].parentNode.removeChild(e.childNodes[r]);e.textContent=""}}return this}F.fn=ja.prototype;var bZ="resize scroll".split(" ");function uR(t){return function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];if(r[0]===void 0){for(var o=0;o<this.length;o+=1)bZ.indexOf(t)<0&&(t in this[o]?this[o][t]():F(this[o]).trigger(t));return this}return this.on.apply(this,[t].concat(r))}}var u7=uR("click"),au=uR("focus"),wZ="[object GeneratorFunction]",EZ=/^(?:0|[1-9]\d*)$/;function SZ(t,e){for(var r=-1,n=t?t.length:0;++r<n&&e(t[r],r,t)!==!1;);return t}var qy=Object.prototype,Ox=qy.hasOwnProperty,sR=qy.toString,xZ=qy.propertyIsEnumerable,CZ=function(t,e){return function(r){return t(e(r))}}(Object.keys,Object);function DZ(t,e){var r=lR(t)||function(i){return function(u){return function(s){return!!s&&typeof s=="object"}(u)&&i3(u)}(i)&&Ox.call(i,"callee")&&(!xZ.call(i,"callee")||sR.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):[],n=r.length,o=!!n;for(var a in t)!Ox.call(t,a)||o&&(a=="length"||BZ(a,n))||r.push(a);return r}var s7,OZ=(s7=function(t,e){return t&&AZ(t,e,PZ)},function(t,e){if(t==null)return t;if(!i3(t))return s7(t,e);for(var r=t.length,n=-1,o=Object(t);++n<r&&e(o[n],n,o)!==!1;);return t}),AZ=function(t){return function(e,r,n){for(var o=-1,a=Object(e),i=n(e),u=i.length;u--;){var s=i[++o];if(r(a[s],s,a)===!1)break}return e}}();function TZ(t){if(r=(e=t)&&e.constructor,n=typeof r=="function"&&r.prototype||qy,e!==n)return CZ(t);var e,r,n,o=[];for(var a in Object(t))Ox.call(t,a)&&a!="constructor"&&o.push(a);return o}function BZ(t,e){return!!(e=e??9007199254740991)&&(typeof t=="number"||EZ.test(t))&&t>-1&&t%1==0&&t<e}var lR=Array.isArray;function i3(t){return t!=null&&function(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=9007199254740991}(t.length)&&!function(e){var r=function(n){var o=typeof n;return!!n&&(o=="object"||o=="function")}(e)?sR.call(e):"";return r=="[object Function]"||r==wZ}(t)}function PZ(t){return i3(t)?DZ(t):TZ(t)}function FZ(t){return t}var a3=function(t,e){return(lR(t)?SZ:OZ)(t,typeof e=="function"?e:FZ)};let cR=(t=21)=>{let e="",r=crypto.getRandomValues(new Uint8Array(t));for(;t--;){let n=63&r[t];e+=n<36?n.toString(36):n<62?(n-26).toString(36).toUpperCase():n<63?"_":"-"}return e};var kZ=/^\s+|\s+$/g,NZ=/^[-+]0x[0-9a-f]+$/i,IZ=/^0b[01]+$/i,jZ=/^0o[0-7]+$/i,RZ=parseInt,LZ=typeof Fe=="object"&&Fe&&Fe.Object===Object&&Fe,MZ=typeof self=="object"&&self&&self.Object===Object&&self,VZ=LZ||MZ||Function("return this")(),$Z=Object.prototype.toString,zZ=Math.max,HZ=Math.min,Hb=function(){return VZ.Date.now()};function UZ(t,e,r){var n,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(b){var E=n,x=o;return n=o=void 0,l=b,i=t.apply(x,E)}function m(b){return l=b,u=setTimeout(v,e),c?p(b):i}function h(b){var E=b-s;return s===void 0||E>=e||E<0||f&&b-l>=a}function v(){var b=Hb();if(h(b))return y(b);u=setTimeout(v,function(E){var x=e-(E-s);return f?HZ(x,a-(E-l)):x}(b))}function y(b){return u=void 0,d&&n?p(b):(n=o=void 0,i)}function g(){var b=Hb(),E=h(b);if(n=arguments,o=this,s=b,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=l7(e)||0,dm(r)&&(c=!!r.leading,a=(f="maxWait"in r)?zZ(l7(r.maxWait)||0,e):a,d="trailing"in r?!!r.trailing:d),g.cancel=function(){u!==void 0&&clearTimeout(u),l=0,n=s=o=u=void 0},g.flush=function(){return u===void 0?i:y(Hb())},g}function dm(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function l7(t){if(typeof t=="number")return t;if(function(n){return typeof n=="symbol"||function(o){return!!o&&typeof o=="object"}(n)&&$Z.call(n)=="[object Symbol]"}(t))return NaN;if(dm(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=dm(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=t.replace(kZ,"");var r=IZ.test(t);return r||jZ.test(t)?RZ(t.slice(2),r?2:8):NZ.test(t)?NaN:+t}var Is=function(t,e,r){var n=!0,o=!0;if(typeof t!="function")throw new TypeError("Expected a function");return dm(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),UZ(t,e,{leading:n,maxWait:e,trailing:o})};const _Z={createElement:function(t,e){return document.createElement(t,e)},createElementNS:function(t,e,r){return document.createElementNS(t,e,r)},createTextNode:function(t){return document.createTextNode(t)},createComment:function(t){return document.createComment(t)},insertBefore:function(t,e,r){t.insertBefore(e,r)},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 Rp(t,e,r,n,o){return{sel:t,data:e,children:r,text:n,elm:o,key:e===void 0?void 0:e.key}}const Ax=Array.isArray;function e0(t){return typeof t=="string"||typeof t=="number"||t instanceof String||t instanceof Number}function Ub(t){return t===void 0}function Ln(t){return t!==void 0}const c7=Rp("",{},[],void 0,void 0);function Af(t,e){var r,n;const o=t.key===e.key,a=((r=t.data)===null||r===void 0?void 0:r.is)===((n=e.data)===null||n===void 0?void 0:n.is);return t.sel===e.sel&&o&&a}function GZ(t,e,r){var n;const o={};for(let a=e;a<=r;++a){const i=(n=t[a])===null||n===void 0?void 0:n.key;i!==void 0&&(o[i]=a)}return o}const WZ=["create","update","remove","destroy","pre","post"];function KZ(t,e){const r={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},n=_Z;for(const f of WZ)for(const d of t){const p=d[f];p!==void 0&&r[f].push(p)}function o(f){const d=f.id?"#"+f.id:"",p=f.getAttribute("class"),m=p?"."+p.split(" ").join("."):"";return Rp(n.tagName(f).toLowerCase()+d+m,{},[],void 0,f)}function a(f,d){return function(){if(--d==0){const p=n.parentNode(f);n.removeChild(p,f)}}}function i(f,d){var p,m;let h,v=f.data;if(v!==void 0){const b=(p=v.hook)===null||p===void 0?void 0:p.init;Ln(b)&&(b(f),v=f.data)}const y=f.children,g=f.sel;if(g==="!")Ub(f.text)&&(f.text=""),f.elm=n.createComment(f.text);else if(g!==void 0){const b=g.indexOf("#"),E=g.indexOf(".",b),x=b>0?b:g.length,S=E>0?E:g.length,C=b!==-1||E!==-1?g.slice(0,Math.min(x,S)):g,T=f.elm=Ln(v)&&Ln(h=v.ns)?n.createElementNS(h,C,v):n.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<r.create.length;++h)r.create[h](c7,f);if(Ax(y))for(h=0;h<y.length;++h){const k=y[h];k!=null&&n.appendChild(T,i(k,d))}else e0(f.text)&&n.appendChild(T,n.createTextNode(f.text));const A=f.data.hook;Ln(A)&&((m=A.create)===null||m===void 0||m.call(A,c7,f),A.insert&&d.push(f))}else f.elm=n.createTextNode(f.text);return f.elm}function u(f,d,p,m,h,v){for(;m<=h;++m){const y=p[m];y!=null&&n.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<r.destroy.length;++h)r.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 b=d[p];if(b!=null)if(Ln(b.sel)){s(b),y=r.remove.length+1,g=a(b.elm,y);for(let x=0;x<r.remove.length;++x)r.remove[x](b,g);const E=(v=(h=b==null?void 0:b.data)===null||h===void 0?void 0:h.hook)===null||v===void 0?void 0:v.remove;Ln(E)?E(b,g):g()}else n.removeChild(f,b.elm)}}function c(f,d,p){var m,h,v,y,g;const b=(m=d.data)===null||m===void 0?void 0:m.hook;(h=b==null?void 0:b.prepatch)===null||h===void 0||h.call(b,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<r.update.length;++C)r.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)}Ub(d.text)?Ln(x)&&Ln(S)?x!==S&&function(C,T,A,k){let M,$,N,j,_=0,V=0,Z=T.length-1,nt=T[0],it=T[Z],G=A.length-1,O=A[0],B=A[G];for(;_<=Z&&V<=G;)nt==null?nt=T[++_]:it==null?it=T[--Z]:O==null?O=A[++V]:B==null?B=A[--G]:Af(nt,O)?(c(nt,O,k),nt=T[++_],O=A[++V]):Af(it,B)?(c(it,B,k),it=T[--Z],B=A[--G]):Af(nt,B)?(c(nt,B,k),n.insertBefore(C,nt.elm,n.nextSibling(it.elm)),nt=T[++_],B=A[--G]):Af(it,O)?(c(it,O,k),n.insertBefore(C,it.elm,nt.elm),it=T[--Z],O=A[++V]):(M===void 0&&(M=GZ(T,_,Z)),$=M[O.key],Ub($)?n.insertBefore(C,i(O,k),nt.elm):(N=T[$],N.sel!==O.sel?n.insertBefore(C,i(O,k),nt.elm):(c(N,O,k),T[$]=void 0,n.insertBefore(C,N.elm,nt.elm))),O=A[++V]);(_<=Z||V<=G)&&(_>Z?(j=A[G+1]==null?null:A[G+1].elm,u(C,j,A,V,G,k)):l(C,T,_,Z))}(E,x,S,p):Ln(S)?(Ln(f.text)&&n.setTextContent(E,""),u(E,null,S,0,S.length-1,p)):Ln(x)?l(E,x,0,x.length-1):Ln(f.text)&&n.setTextContent(E,""):f.text!==d.text&&(Ln(x)&&l(E,x,0,x.length-1),n.setTextContent(E,d.text)),(g=b==null?void 0:b.postpatch)===null||g===void 0||g.call(b,f,d)}}return function(f,d){let p,m,h;const v=[];for(p=0;p<r.pre.length;++p)r.pre[p]();for(function(y){return y.sel!==void 0}(f)||(f=o(f)),Af(f,d)?c(f,d,v):(m=f.elm,h=n.parentNode(m),i(d,v),h!==null&&(n.insertBefore(h,d.elm,n.nextSibling(m)),l(h,[f],0,0))),p=0;p<v.length;++p)v[p].data.hook.insert(v[p]);for(p=0;p<r.post.length;++p)r.post[p]();return d}}function fR(t,e,r){if(t.ns="http://www.w3.org/2000/svg",r!=="foreignObject"&&e!==void 0)for(let n=0;n<e.length;++n){const o=e[n].data;o!==void 0&&fR(o,e[n].children,e[n].sel)}}function Bc(t,e,r){let n,o,a,i={};if(r!==void 0?(e!==null&&(i=e),Ax(r)?n=r:e0(r)?o=r.toString():r&&r.sel&&(n=[r])):e!=null&&(Ax(e)?n=e:e0(e)?o=e.toString():e&&e.sel?n=[e]:i=e),n!==void 0)for(a=0;a<n.length;++a)e0(n[a])&&(n[a]=Rp(void 0,void 0,void 0,n[a],void 0));return t[0]!=="s"||t[1]!=="v"||t[2]!=="g"||t.length!==3&&t[3]!=="."&&t[3]!=="#"||fR(i,n,t),Rp(t,i,n,o,void 0)}function f7(t,e){let r;const n=e.elm;let o=t.data.attrs,a=e.data.attrs;if((o||a)&&o!==a){for(r in o=o||{},a=a||{},a){const i=a[r];o[r]!==i&&(i===!0?n.setAttribute(r,""):i===!1?n.removeAttribute(r):r.charCodeAt(0)!==120?n.setAttribute(r,i):r.charCodeAt(3)===58?n.setAttributeNS("http://www.w3.org/XML/1998/namespace",r,i):r.charCodeAt(5)===58?n.setAttributeNS("http://www.w3.org/1999/xlink",r,i):n.setAttribute(r,i))}for(r in o)r in a||n.removeAttribute(r)}}const YZ={create:f7,update:f7};function d7(t,e){let r,n;const o=e.elm;let a=t.data.class,i=e.data.class;if((a||i)&&a!==i){for(n in a=a||{},i=i||{},a)a[n]&&!Object.prototype.hasOwnProperty.call(i,n)&&o.classList.remove(n);for(n in i)r=i[n],r!==a[n]&&o.classList[r?"add":"remove"](n)}}const XZ={create:d7,update:d7},p7=/[A-Z]/g;function h7(t,e){const r=e.elm;let n,o=t.data.dataset,a=e.data.dataset;if(!o&&!a||o===a)return;o=o||{},a=a||{};const i=r.dataset;for(n in o)a[n]||(i?n in i&&delete i[n]:r.removeAttribute("data-"+n.replace(p7,"-$&").toLowerCase()));for(n in a)o[n]!==a[n]&&(i?i[n]=a[n]:r.setAttribute("data-"+n.replace(p7,"-$&").toLowerCase(),a[n]))}const ZZ={create:h7,update:h7};function dR(t,e,r){if(typeof t=="function")t.call(e,r,e);else if(typeof t=="object")for(let n=0;n<t.length;n++)dR(t[n],e,r)}function JZ(t,e){const r=t.type,n=e.data.on;n&&n[r]&&dR(n[r],e,t)}function _b(t,e){const r=t.data.on,n=t.listener,o=t.elm,a=e&&e.data.on,i=e&&e.elm;let u;if(r!==a){if(r&&n)if(a)for(u in r)a[u]||o.removeEventListener(u,n,!1);else for(u in r)o.removeEventListener(u,n,!1);if(a){const s=e.listener=t.listener||function l(c){JZ(c,l.vnode)};if(s.vnode=e,r)for(u in a)r[u]||i.addEventListener(u,s,!1);else for(u in a)i.addEventListener(u,s,!1)}}}const QZ={create:_b,update:_b,destroy:_b};function g7(t,e){let r,n,o;const a=e.elm;let i=t.data.props,u=e.data.props;if((i||u)&&i!==u)for(r in i=i||{},u=u||{},u)n=u[r],o=i[r],o===n||r==="value"&&a[r]===n||(a[r]=n)}const qZ={create:g7,update:g7},v7=typeof window<"u"&&window.requestAnimationFrame.bind(window)||setTimeout;let Gb=!1;function tJ(t,e,r){(function(n){v7(function(){v7(n)})})(function(){t[e]=r})}function m7(t,e){let r,n;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(n in a)i[n]||(n[0]==="-"&&n[1]==="-"?o.style.removeProperty(n):o.style[n]="");for(n in i)if(r=i[n],n==="delayed"&&i.delayed)for(const s in i.delayed)r=i.delayed[s],u&&r===a.delayed[s]||tJ(o.style,s,r);else n!=="remove"&&r!==a[n]&&(n[0]==="-"&&n[1]==="-"?o.style.setProperty(n,r):o.style[n]=r)}const eJ={pre:function(){Gb=!1},create:m7,update:m7,destroy:function(t){let e,r;const n=t.elm,o=t.data.style;if(o&&(e=o.destroy))for(r in e)n.style[r]=e[r]},remove:function(t,e){const r=t.data.style;if(!r||!r.remove)return void e();let n;Gb||(t.elm.offsetLeft,Gb=!0);const o=t.elm;let a=0;const i=r.remove;let u=0;const s=[];for(n in i)s.push(n),o.style[n]=i[n];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 pR(t,e){for(const r of t)r!=null&&r!==!1&&r!==""&&(Array.isArray(r)?pR(r,e):typeof r=="string"||typeof r=="number"||typeof r=="boolean"?e.push(Rp(void 0,void 0,void 0,String(r),void 0)):e.push(r));return e}function Rt(t,e,...r){const n=pR(r,[]);return typeof t=="function"?t(e,n):n.length===1&&!n[0].sel&&n[0].text?Bc(t,e,n[0].text):Bc(t,e,n)}Rt||(Rt={});var rJ=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,nJ=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,hR="\\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",oJ="[\\ud800-\\udfff]",y7="["+hR+"]",pm="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",gR="\\d+",iJ="[\\u2700-\\u27bf]",vR="[a-z\\xdf-\\xf6\\xf8-\\xff]",mR="[^\\ud800-\\udfff"+hR+gR+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",Tx="\\ud83c[\\udffb-\\udfff]",yR="[^\\ud800-\\udfff]",u3="(?:\\ud83c[\\udde6-\\uddff]){2}",s3="[\\ud800-\\udbff][\\udc00-\\udfff]",Ul="[A-Z\\xc0-\\xd6\\xd8-\\xde]",b7="(?:"+vR+"|"+mR+")",aJ="(?:"+Ul+"|"+mR+")",w7="(?:"+pm+"|"+Tx+")?",bR="[\\ufe0e\\ufe0f]?"+w7+("(?:\\u200d(?:"+[yR,u3,s3].join("|")+")[\\ufe0e\\ufe0f]?"+w7+")*"),uJ="(?:"+[iJ,u3,s3].join("|")+")"+bR,sJ="(?:"+[yR+pm+"?",pm,u3,s3,oJ].join("|")+")",lJ=RegExp("['’]","g"),cJ=RegExp(pm,"g"),fJ=RegExp(Tx+"(?="+Tx+")|"+sJ+bR,"g"),dJ=RegExp([Ul+"?"+vR+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[y7,Ul,"$"].join("|")+")",aJ+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[y7,Ul+b7,"$"].join("|")+")",Ul+"?"+b7+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Ul+"+(?:['’](?:D|LL|M|RE|S|T|VE))?",gR,uJ].join("|"),"g"),pJ=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),hJ=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,gJ=typeof Fe=="object"&&Fe&&Fe.Object===Object&&Fe,vJ=typeof self=="object"&&self&&self.Object===Object&&self,mJ=gJ||vJ||Function("return this")(),Wb,yJ=(Wb={À:"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 Wb==null?void 0:Wb[t]});function wR(t){return pJ.test(t)}function bJ(t){return wR(t)?function(e){return e.match(fJ)||[]}(t):function(e){return e.split("")}(t)}var wJ=Object.prototype.toString,E7=mJ.Symbol,S7=E7?E7.prototype:void 0,x7=S7?S7.toString:void 0;function EJ(t){if(typeof t=="string")return t;if(function(r){return typeof r=="symbol"||function(n){return!!n&&typeof n=="object"}(r)&&wJ.call(r)=="[object Symbol]"}(t))return x7?x7.call(t):"";var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}function SJ(t,e,r){var n=t.length;return r=r===void 0?n:r,!e&&r>=n?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,r)}function r0(t){return t==null?"":EJ(t)}var C7,xJ=(C7=function(t,e,r){return e=e.toLowerCase(),t+(r?CJ(r0(e).toLowerCase()):e)},function(t){return function(e,r,n,o){var a=-1,i=e?e.length:0;for(o;++a<i;)n=r(n,e[a],a,e);return n}(function(e,r,n){return e=r0(e),(r=r)===void 0?function(o){return hJ.test(o)}(e)?function(o){return o.match(dJ)||[]}(e):function(o){return o.match(rJ)||[]}(e):e.match(r)||[]}(function(e){return(e=r0(e))&&e.replace(nJ,yJ).replace(cJ,"")}(t).replace(lJ,"")),C7,"")}),D7,CJ=(D7="toUpperCase",function(t){var e=wR(t=r0(t))?bJ(t):void 0,r=e?e[0]:t.charAt(0),n=e?SJ(e,1).join(""):t.slice(1);return r[D7]()+n});for(var DJ=xJ,OJ=typeof window<"u"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),Kb={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},ER={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:OJ?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},l3={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},zg=1;zg<20;zg++)l3["f"+zg]=111+zg;function SR(t,e,r){e&&!("byKey"in e)&&(r=e,e=null),Array.isArray(t)||(t=[t]);var n=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 Kb)l[Kb[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,b=g.endsWith("?")&&g.length>1;b&&(g=g.slice(0,-1));var E=xR(g),x=Kb[E];if(g.length>1&&!x&&!ER[g]&&!l3[E])throw new TypeError('Unknown modifier: "'+g+'"');f!==1&&x||(s?l.key=E:l.which=AJ(g)),x&&(l[x]=!b||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 n.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 r==null?o:o(r)}function AJ(t){return t=xR(t),l3[t]||t.toUpperCase().charCodeAt(0)}function xR(t){return t=t.toLowerCase(),t=ER[t]||t}var TJ=SR,Yb=function(t,e){return SR(t,{byKey:!0},e)},BJ=/^\s+|\s+$/g,PJ=/^[-+]0x[0-9a-f]+$/i,FJ=/^0b[01]+$/i,kJ=/^0o[0-7]+$/i,NJ=parseInt,IJ=typeof Fe=="object"&&Fe&&Fe.Object===Object&&Fe,jJ=typeof self=="object"&&self&&self.Object===Object&&self,RJ=IJ||jJ||Function("return this")(),LJ=Object.prototype.toString,MJ=Math.max,VJ=Math.min,Xb=function(){return RJ.Date.now()};function Bx(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function O7(t){if(typeof t=="number")return t;if(function(n){return typeof n=="symbol"||function(o){return!!o&&typeof o=="object"}(n)&&LJ.call(n)=="[object Symbol]"}(t))return NaN;if(Bx(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=Bx(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=t.replace(BJ,"");var r=FJ.test(t);return r||kJ.test(t)?NJ(t.slice(2),r?2:8):PJ.test(t)?NaN:+t}var hl,CR=function(t,e,r){var n,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(b){var E=n,x=o;return n=o=void 0,l=b,i=t.apply(x,E)}function m(b){return l=b,u=setTimeout(v,e),c?p(b):i}function h(b){var E=b-s;return s===void 0||E>=e||E<0||f&&b-l>=a}function v(){var b=Xb();if(h(b))return y(b);u=setTimeout(v,function(E){var x=e-(E-s);return f?VJ(x,a-(E-l)):x}(b))}function y(b){return u=void 0,d&&n?p(b):(n=o=void 0,i)}function g(){var b=Xb(),E=h(b);if(n=arguments,o=this,s=b,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=O7(e)||0,Bx(r)&&(c=!!r.leading,a=(f="maxWait"in r)?MJ(O7(r.maxWait)||0,e):a,d="trailing"in r?!!r.trailing:d),g.cancel=function(){u!==void 0&&clearTimeout(u),l=0,n=s=o=u=void 0},g.flush=function(){return u===void 0?i:y(Xb())},g},DR=Ws(function(t,e){var r="__lodash_hash_undefined__",n=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]",b="[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]",$="[object Uint32Array]",N=/\w*$/,j=/^\[object .+?Constructor\]$/,_=/^(?:0|[1-9]\d*)$/,V={};V[o]=V["[object Array]"]=V[g]=V[b]=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[$]=!0,V["[object Error]"]=V[u]=V[y]=!1;var Z=typeof Fe=="object"&&Fe&&Fe.Object===Object&&Fe,nt=typeof self=="object"&&self&&self.Object===Object&&self,it=Z||nt||Function("return this")(),G=e&&!e.nodeType&&e,O=G&&t&&!t.nodeType&&t,B=O&&O.exports===G;function I(R,q){return R.set(q[0],q[1]),R}function K(R,q){return R.add(q),R}function et(R,q,dt,yt){var ue=-1,He=R?R.length:0;for(yt;++ue<He;)dt=q(dt,R[ue],ue,R);return dt}function Y(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,Ct=it["__core-js_shared__"],ht=function(){var R=/[^.]+$/.exec(Ct&&Ct.keys&&Ct.keys.IE_PROTO||"");return R?"Symbol(src)_1."+R:""}(),kt=tt.toString,ye=Mt.hasOwnProperty,Vt=Mt.toString,fe=RegExp("^"+kt.call(ye).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),De=B?it.Buffer:void 0,Be=it.Symbol,zt=it.Uint8Array,lr=mt(Object.getPrototypeOf,Object),Ur=Object.create,Zr=Mt.propertyIsEnumerable,eo=Pt.splice,kn=Object.getOwnPropertySymbols,_r=De?De.isBuffer:void 0,Jr=mt(Object.keys,Object),W=_o(it,"DataView"),H=_o(it,"Map"),X=_o(it,"Promise"),rt=_o(it,"Set"),gt=_o(it,"WeakMap"),wt=_o(Object,"create"),Ft=Wo(W),ae=Wo(H),Se=Wo(X),Bt=Wo(rt),Et=Wo(gt),Tt=Be?Be.prototype:void 0,Yt=Tt?Tt.valueOf:void 0;function Ut(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 Ne(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 Nn(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 In(R){this.__data__=new Ne(R)}function jn(R,q){var dt=L(R)||function(Ie){return function(de){return function(Br){return!!Br&&typeof Br=="object"}(de)&&J(de)}(Ie)&&ye.call(Ie,"callee")&&(!Zr.call(Ie,"callee")||Vt.call(Ie)==o)}(R)?function(Ie,de){for(var Br=-1,Qr=Array(Ie);++Br<Ie;)Qr[Br]=de(Br);return Qr}(R.length,String):[],yt=dt.length,ue=!!yt;for(var He in R)!ye.call(R,He)||ue&&(He=="length"||wg(He,yt))||dt.push(He);return dt}function yg(R,q,dt){var yt=R[q];ye.call(R,q)&&Eg(yt,dt)&&(dt!==void 0||q in R)||(R[q]=dt)}function Rn(R,q){for(var dt=R.length;dt--;)if(Eg(R[dt][0],q))return dt;return-1}function df(R,q,dt,yt,ue,He,Ie){var de;if(yt&&(de=He?yt(R,ue,He,Ie):yt(R)),de!==void 0)return de;if(!xe(R))return R;var Br=L(R);if(Br){if(de=function(It){var be=It.length,cr=It.constructor(be);return be&&typeof It[0]=="string"&&ye.call(It,"index")&&(cr.index=It.index,cr.input=It.input),cr}(R),!q)return function(It,be){var cr=-1,ne=It.length;for(be||(be=Array(ne));++cr<ne;)be[cr]=It[cr];return be}(R,de)}else{var Qr=Go(R),Du=Qr==u||Qr==s;if(ut(R))return function(It,be){if(be)return It.slice();var cr=new It.constructor(It.length);return It.copy(cr),cr}(R,q);if(Qr==f||Qr==o||Du&&!He){if(Y(R))return He?R:{};if(de=function(It){return typeof It.constructor!="function"||na(It)?{}:(be=lr(It),xe(be)?Ur(be):{});var be}(Du?{}:R),!q)return function(It,be){return bg(It,pf(It),be)}(R,function(It,be){return It&&bg(be,te(be),It)}(de,R))}else{if(!V[Qr])return He?R:{};de=function(It,be,cr,ne){var pe=It.constructor;switch(be){case g:return ol(It);case a:case i:return new pe(+It);case b:return function(he,rr){var fn=rr?ol(he.buffer):he.buffer;return new he.constructor(fn,he.byteOffset,he.byteLength)}(It,ne);case E:case x:case S:case C:case T:case A:case k:case M:case $:return function(he,rr){var fn=rr?ol(he.buffer):he.buffer;return new he.constructor(fn,he.byteOffset,he.length)}(It,ne);case l:return function(he,rr,fn){return et(rr?fn(ot(he),!0):ot(he),I,new he.constructor)}(It,ne,cr);case c:case h:return new pe(It);case p:return function(he){var rr=new he.constructor(he.source,N.exec(he));return rr.lastIndex=he.lastIndex,rr}(It);case m:return function(he,rr,fn){return et(rr?fn(bt(he),!0):bt(he),K,new he.constructor)}(It,ne,cr);case v:return function(he){return Yt?Object(Yt.call(he)):{}}(It)}}(R,Qr,df,q)}}Ie||(Ie=new In);var Ti=Ie.get(R);if(Ti)return Ti;if(Ie.set(R,de),!Br)var oa=dt?function(It){return function(be,cr,ne){var pe=cr(be);return L(be)?pe:function(he,rr){for(var fn=-1,mn=rr.length,Do=he.length;++fn<mn;)he[Do+fn]=rr[fn];return he}(pe,ne(be))}(It,te,pf)}(R):te(R);return function(It,be){for(var cr=-1,ne=It?It.length:0;++cr<ne&&be(It[cr],cr,It)!==!1;);}(oa||R,function(It,be){oa&&(It=R[be=It]),yg(de,be,df(It,q,dt,yt,be,R,Ie))}),de}function Oi(R){return!(!xe(R)||function(q){return!!ht&&ht in q}(R))&&(At(R)||Y(R)?fe:j).test(Wo(R))}function ol(R){var q=new R.constructor(R.byteLength);return new zt(q).set(new zt(R)),q}function bg(R,q,dt,yt){dt||(dt={});for(var ue=-1,He=q.length;++ue<He;){var Ie=q[ue],de=void 0;yg(dt,Ie,de===void 0?R[Ie]:de)}return dt}function Ai(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 _o(R,q){var dt=function(yt,ue){return yt==null?void 0:yt[ue]}(R,q);return Oi(dt)?dt:void 0}Ut.prototype.clear=function(){this.__data__=wt?wt(null):{}},Ut.prototype.delete=function(R){return this.has(R)&&delete this.__data__[R]},Ut.prototype.get=function(R){var q=this.__data__;if(wt){var dt=q[R];return dt===r?void 0:dt}return ye.call(q,R)?q[R]:void 0},Ut.prototype.has=function(R){var q=this.__data__;return wt?q[R]!==void 0:ye.call(q,R)},Ut.prototype.set=function(R,q){return this.__data__[R]=wt&&q===void 0?r:q,this},Ne.prototype.clear=function(){this.__data__=[]},Ne.prototype.delete=function(R){var q=this.__data__,dt=Rn(q,R);return!(dt<0)&&(dt==q.length-1?q.pop():eo.call(q,dt,1),!0)},Ne.prototype.get=function(R){var q=this.__data__,dt=Rn(q,R);return dt<0?void 0:q[dt][1]},Ne.prototype.has=function(R){return Rn(this.__data__,R)>-1},Ne.prototype.set=function(R,q){var dt=this.__data__,yt=Rn(dt,R);return yt<0?dt.push([R,q]):dt[yt][1]=q,this},Nn.prototype.clear=function(){this.__data__={hash:new Ut,map:new(H||Ne),string:new Ut}},Nn.prototype.delete=function(R){return Ai(this,R).delete(R)},Nn.prototype.get=function(R){return Ai(this,R).get(R)},Nn.prototype.has=function(R){return Ai(this,R).has(R)},Nn.prototype.set=function(R,q){return Ai(this,R).set(R,q),this},In.prototype.clear=function(){this.__data__=new Ne},In.prototype.delete=function(R){return this.__data__.delete(R)},In.prototype.get=function(R){return this.__data__.get(R)},In.prototype.has=function(R){return this.__data__.has(R)},In.prototype.set=function(R,q){var dt=this.__data__;if(dt instanceof Ne){var yt=dt.__data__;if(!H||yt.length<199)return yt.push([R,q]),this;dt=this.__data__=new Nn(yt)}return dt.set(R,q),this};var pf=kn?mt(kn,Object):function(){return[]},Go=function(R){return Vt.call(R)};function wg(R,q){return!!(q=q??n)&&(typeof R=="number"||_.test(R))&&R>-1&&R%1==0&&R<q}function na(R){var q=R&&R.constructor;return R===(typeof q=="function"&&q.prototype||Mt)}function Wo(R){if(R!=null){try{return kt.call(R)}catch{}try{return R+""}catch{}}return""}function Eg(R,q){return R===q||R!=R&&q!=q}(W&&Go(new W(new ArrayBuffer(1)))!=b||H&&Go(new H)!=l||X&&Go(X.resolve())!=d||rt&&Go(new rt)!=m||gt&&Go(new gt)!=y)&&(Go=function(R){var q=Vt.call(R),dt=q==f?R.constructor:void 0,yt=dt?Wo(dt):void 0;if(yt)switch(yt){case Ft:return b;case ae:return l;case Se:return d;case Bt:return m;case Et:return y}return q});var L=Array.isArray;function J(R){return R!=null&&function(q){return typeof q=="number"&&q>-1&&q%1==0&&q<=n}(R.length)&&!At(R)}var ut=_r||function(){return!1};function At(R){var q=xe(R)?Vt.call(R):"";return q==u||q==s}function xe(R){var q=typeof R;return!!R&&(q=="object"||q=="function")}function te(R){return J(R)?jn(R):function(q){if(!na(q))return Jr(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 df(R,!0,!0)}});function A7(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var $J=0;function zJ(t){return"__private_"+$J+++"_"+t}function HJ(t,e,r){const n=[];return t.forEach(o=>typeof o!="string"?n.push(o):e[Symbol.split](o).forEach((a,i,u)=>{a!==""&&n.push(a),i<u.length-1&&n.push(r)})),n}/**
|
|
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 T7(t,e){const r=/\$/g;let n=[t];if(e==null)return n;for(const o of Object.keys(e))if(o!=="_"){let a=e[o];typeof a=="string"&&(a=r[Symbol.replace](a,"$$$$")),n=HJ(n,new RegExp(`%\\{${o}\\}`,"g"),a)}return n}var OR=(hl=zJ("apply"),class{constructor(t){Object.defineProperty(this,hl,{value:UJ}),this.locale={strings:{},pluralize:e=>e===1?0:1},Array.isArray(t)?t.forEach(A7(this,hl)[hl],this):A7(this,hl)[hl](t)}translate(t,e){return this.translateArray(t,e).join("")}translateArray(t,e){if(!function(n,o){return Object.prototype.hasOwnProperty.call(n,o)}(this.locale.strings,t))throw new Error(`missing string: ${t}`);const r=this.locale.strings[t];if(typeof r=="object"){if(e&&e.smart_count!==void 0)return T7(r[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 T7(r,e)}});function UJ(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 AR=function(){var t={},e=t._fns={};return t.emit=function(r,n,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}(r);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)}(r,l,[n,o,a,i,u,s])},t.on=function(r,n){e[r]||(e[r]=[]),e[r].push(n)},t.once=function(r,n){this.on(r,function o(){n.apply(this,arguments),t.off(r,o)})},t.off=function(r,n){var o=[];if(r&&n)for(var a=this._fns[r],i=0,u=a?a.length:0;i<u;i++)a[i]!==n&&o.push(a[i]);o.length?this._fns[r]=o:delete this._fns[r]},t},_J={nanoid:(t=21)=>{let e="",r=crypto.getRandomValues(new Uint8Array(t));for(;t--;){let n=63&r[t];e+=n<36?n.toString(36):n<62?(n-26).toString(36).toUpperCase():n<63?"_":"-"}return e}},Zb=function(t){if(typeof t!="number"||isNaN(t))throw new TypeError("Expected a number, got "+typeof t);var e=t<0,r=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(e&&(t=-t),t<1)return(e?"-":"")+t+" B";var n=Math.min(Math.floor(Math.log(t)/Math.log(1024)),r.length-1);t=Number(t/Math.pow(1024,n));var o=r[n];return t>=10||t%1==0?(e?"-":"")+t.toFixed(0)+" "+o:(e?"-":"")+t.toFixed(1)+" "+o};function TR(t,e){this.text=t=t||"",this.hasWild=~t.indexOf("*"),this.separator=e,this.parts=t.split(e)}TR.prototype.match=function(t){var e,r,n=!0,o=this.parts,a=o.length;if(typeof t=="string"||t instanceof String)if(this.hasWild||this.text==t){for(r=(t||"").split(this.separator),e=0;n&&e<a;e++)o[e]!=="*"&&(n=e<r.length&&o[e]===r[e]);n=n&&r}else n=!1;else if(typeof t.splice=="function")for(n=[],e=t.length;e--;)this.match(t[e])&&(n[n.length]=t[e]);else if(typeof t=="object")for(var i in n={},t)this.match(i)&&(n[i]=t[i]);return n};var GJ=/[\/\+\.]/,WJ=function(t,e){function r(n){var o=function(a,i,u){var s=new TR(a,u||/[\/\.]/);return i!==void 0?s.match(i):s}(n,t,GJ);return o&&o.length>=2}return e?r(e.split(";")[0]):r},KJ=0;function YJ(t){return"__private_"+KJ+++"_"+t}var Jb=YJ("publish");class BR{constructor(){Object.defineProperty(this,Jb,{value:XJ}),this.state={},this.callbacks=[]}getState(){return this.state}setState(e){const r={...this.state},n={...this.state,...e};this.state=n,function(o,a){if(!Object.prototype.hasOwnProperty.call(o,a))throw new TypeError("attempted to use private field on non-instance");return o}(this,Jb)[Jb](r,n,e)}subscribe(e){return this.callbacks.push(e),()=>{this.callbacks.splice(this.callbacks.indexOf(e),1)}}}function XJ(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];this.callbacks.forEach(n=>{n(...e)})}BR.VERSION="2.0.3";var B7=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)}},P7={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 F7(t){let e="";return t.replace(/[^A-Z0-9]/gi,r=>(e+=`-${function(n){return n.charCodeAt(0).toString(32)}(r)}`,"/"))+e}var ZJ=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 r=e[1];let[n,o]=r.split(".");return n=parseInt(n,10),o=parseInt(o,10),n<15||n===15&&o<15063||n>18||n===18&&o>=18218};function Qb(t){return t<10?`0${t}`:t.toString()}var Hg=function(){const t=new Date;return`${Qb(t.getHours())}:${Qb(t.getMinutes())}:${Qb(t.getSeconds())}`},PR={justErrorsLogger:{debug:()=>{},warn:()=>{},error:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return console.error(`[Uppy] [${Hg()}]`,...e)}},debugLogger:{debug:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return console.debug(`[Uppy] [${Hg()}]`,...e)},warn:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return console.warn(`[Uppy] [${Hg()}]`,...e)},error:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return console.error(`[Uppy] [${Hg()}]`,...e)}}},JJ={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}"}}},FR=_J;let kR,NR;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 QJ=0;function Tr(t){return"__private_"+QJ+++"_"+t}const{nanoid:qJ}=FR,{justErrorsLogger:tQ,debugLogger:eQ}=PR;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 rQ extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}}var Gr=Tr("plugins"),Tf=Tr("storeUnsubscribe"),Pi=Tr("emitter"),Xu=Tr("preProcessors"),Zu=Tr("uploaders"),Ri=Tr("postProcessors"),ap=Tr("checkRestrictions"),qb=Tr("checkMinNumberOfFiles"),Lp=Tr("checkRequiredMetaFieldsOnFile"),t2=Tr("checkRequiredMetaFields"),Pr=Tr("showOrLogErrorAndThrow"),Bf=Tr("assertNewUploadAllowed"),Pf=Tr("checkAndCreateFileStateObject"),Ff=Tr("startIfAutoProceed"),e2=Tr("addListeners"),Po=Tr("updateOnlineStatus"),Fi=Tr("createUpload"),r2=Tr("getUpload"),ts=Tr("removeUpload"),ki=Tr("runUpload");kR=Symbol.for("uppy test: getPlugins"),NR=Symbol.for("uppy test: createUpload");class IR{constructor(e){Object.defineProperty(this,ki,{value:gQ}),Object.defineProperty(this,ts,{value:hQ}),Object.defineProperty(this,r2,{value:pQ}),Object.defineProperty(this,Fi,{value:dQ}),Object.defineProperty(this,e2,{value:fQ}),Object.defineProperty(this,Ff,{value:cQ}),Object.defineProperty(this,Pf,{value:lQ}),Object.defineProperty(this,Bf,{value:sQ}),Object.defineProperty(this,Pr,{value:uQ}),Object.defineProperty(this,t2,{value:aQ}),Object.defineProperty(this,Lp,{value:iQ}),Object.defineProperty(this,qb,{value:oQ}),Object.defineProperty(this,ap,{value:nQ}),Object.defineProperty(this,Gr,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,Tf,{writable:!0,value:void 0}),Object.defineProperty(this,Pi,{writable:!0,value:AR()}),Object.defineProperty(this,Xu,{writable:!0,value:new Set}),Object.defineProperty(this,Zu,{writable:!0,value:new Set}),Object.defineProperty(this,Ri,{writable:!0,value:new Set}),Object.defineProperty(this,Po,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=JJ;const r={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:n=>n,onBeforeUpload:n=>n,store:new BR,logger:tQ,infoTimeout:5e3};if(this.opts={...r,...e,restrictions:{...r.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=eQ),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=Is(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:ZJ(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),xt(this,Tf)[Tf]=this.store.subscribe((n,o,a)=>{this.emit("state-update",n,o,a),this.updateAll(o)}),this.opts.debug&&typeof window<"u"&&(window[this.opts.id]=this),xt(this,e2)[e2]()}emit(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];xt(this,Pi)[Pi].emit(e,...n)}on(e,r){return xt(this,Pi)[Pi].on(e,r),this}once(e,r){return xt(this,Pi)[Pi].once(e,r),this}off(e,r){return xt(this,Pi)[Pi].off(e,r),this}updateAll(e){this.iteratePlugins(r=>{r.update(e)})}setState(e){this.store.setState(e)}getState(){return this.store.getState()}get state(){return this.getState()}setFileState(e,r){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],...r}}})}i18nInit(){const e=new OR([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(r=>{r.setOptions()}),this.setState()}resetProgress(){const e={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},r={...this.getState().files},n={};Object.keys(r).forEach(o=>{const a={...r[o]};a.progress={...a.progress,...e},n[o]=a}),this.setState({files:n,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(e){xt(this,Xu)[Xu].add(e)}removePreProcessor(e){return xt(this,Xu)[Xu].delete(e)}addPostProcessor(e){xt(this,Ri)[Ri].add(e)}removePostProcessor(e){return xt(this,Ri)[Ri].delete(e)}addUploader(e){xt(this,Zu)[Zu].add(e)}removeUploader(e){return xt(this,Zu)[Zu].delete(e)}setMeta(e){const r={...this.getState().meta,...e},n={...this.getState().files};Object.keys(n).forEach(o=>{n[o]={...n[o],meta:{...n[o].meta,...e}}}),this.log("Adding metadata:"),this.log(e),this.setState({meta:r,files:n})}setFileMeta(e,r){const n={...this.getState().files};if(!n[e])return void this.log("Was trying to set metadata for a file that has been removed: ",e);const o={...n[e].meta,...r};n[e]={...n[e],meta:o},this.setState({files:n})}getFile(e){return this.getState().files[e]}getFiles(){const{files:e}=this.getState();return Object.values(e)}getObjectOfFilesPerState(){const{files:e,totalProgress:r,error:n}=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:r===100&&c.length===o.length&&p.length===0,isAllErrored:!!n&&f.length===o.length,isAllPaused:a.length!==0&&l.length===a.length,isUploadInProgress:a.length>0,isSomeGhost:o.some(m=>m.isGhost)}}validateRestrictions(e,r){try{return xt(this,ap)[ap](e,r),{result:!0}}catch(n){return{result:!1,reason:n.message}}}checkIfFileAlreadyExists(e){const{files:r}=this.getState();return!(!r[e]||r[e].isGhost)}addFile(e){xt(this,Bf)[Bf](e);const{files:r}=this.getState();let n=xt(this,Pf)[Pf](r,e);return r[n.id]&&r[n.id].isGhost&&(n={...r[n.id],data:e.data,isGhost:!1},this.log(`Replaced the blob in the restored ghost file: ${n.name}, ${n.id}`)),this.setState({files:{...r,[n.id]:n}}),this.emit("file-added",n),this.emit("files-added",[n]),this.log(`Added file: ${n.name}, ${n.id}, mime type: ${n.type}`),xt(this,Ff)[Ff](),n.id}addFiles(e){xt(this,Bf)[Bf]();const r={...this.getState().files},n=[],o=[];for(let a=0;a<e.length;a++)try{let i=xt(this,Pf)[Pf](r,e[a]);r[i.id]&&r[i.id].isGhost&&(i={...r[i.id],data:e[a].data,isGhost:!1},this.log(`Replaced blob in a ghost file: ${i.name}, ${i.id}`)),r[i.id]=i,n.push(i)}catch(i){i.isRestriction||o.push(i)}if(this.setState({files:r}),n.forEach(a=>{this.emit("file-added",a)}),this.emit("files-added",n),n.length>5?this.log(`Added batch of ${n.length} files`):Object.keys(n).forEach(a=>{this.log(`Added file: ${n[a].name}
|
|
35
|
+
id: ${n[a].id}
|
|
36
|
+
type: ${n[a].type}`)}),n.length>0&&xt(this,Ff)[Ff](),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,r){const{files:n,currentUploads:o}=this.getState(),a={...n},i={...o},u=Object.create(null);function s(f){return u[f]===void 0}e.forEach(f=>{n[f]&&(u[f]=n[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],r)}),c.length>5?this.log(`Removed ${c.length} files`):this.log(`Removed files: ${c.join(", ")}`)}removeFile(e,r){r===void 0&&(r=null),this.removeFiles([e],r)}pauseResume(e){if(!this.getState().capabilities.resumableUploads||this.getFile(e).uploadComplete)return;const r=!this.getFile(e).isPaused;return this.setFileState(e,{isPaused:r}),this.emit("upload-pause",e,r),r}pauseAll(){const e={...this.getState().files};Object.keys(e).filter(r=>!e[r].progress.uploadComplete&&e[r].progress.uploadStarted).forEach(r=>{const n={...e[r],isPaused:!0};e[r]=n}),this.setState({files:e}),this.emit("pause-all")}resumeAll(){const e={...this.getState().files};Object.keys(e).filter(r=>!e[r].progress.uploadComplete&&e[r].progress.uploadStarted).forEach(r=>{const n={...e[r],isPaused:!1,error:null};e[r]=n}),this.setState({files:e}),this.emit("resume-all")}retryAll(){const e={...this.getState().files},r=Object.keys(e).filter(o=>e[o].error);if(r.forEach(o=>{const a={...e[o],isPaused:!1,error:null};e[o]=a}),this.setState({files:e,error:null}),this.emit("retry-all",r),r.length===0)return Promise.resolve({successful:[],failed:[]});const n=xt(this,Fi)[Fi](r,{forceAllowNewUpload:!0});return xt(this,ki)[ki](n)}cancelAll(){this.emit("cancel-all");const{files:e}=this.getState(),r=Object.keys(e);r.length&&this.removeFiles(r,"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 r=xt(this,Fi)[Fi]([e],{forceAllowNewUpload:!0});return xt(this,ki)[ki](r)}reset(){this.cancelAll()}logout(){this.iteratePlugins(e=>{e.provider&&e.provider.logout&&e.provider.logout()})}calculateProgress(e,r){if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const n=Number.isFinite(r.bytesTotal)&&r.bytesTotal>0;this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,bytesUploaded:r.bytesUploaded,bytesTotal:r.bytesTotal,percentage:n?Math.round(r.bytesUploaded/r.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 r=e.filter(s=>s.progress.bytesTotal!=null),n=e.filter(s=>s.progress.bytesTotal==null);if(r.length===0){const s=100*e.length,l=n.reduce((f,d)=>f+d.progress.percentage,0),c=Math.round(l/s*100);return void this.setState({totalProgress:c})}let o=r.reduce((s,l)=>s+l.progress.bytesTotal,0);const a=o/r.length;o+=a*n.length;let i=0;r.forEach(s=>{i+=s.progress.bytesUploaded}),n.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,r){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 n=new e(this,r),o=n.id;if(!o)throw new Error("Your plugin must have an id");if(!n.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}`),n.type in xt(this,Gr)[Gr]?xt(this,Gr)[Gr][n.type].push(n):xt(this,Gr)[Gr][n.type]=[n],n.install(),this}getPlugin(e){for(const r of Object.values(xt(this,Gr)[Gr])){const n=r.find(o=>o.id===e);if(n!=null)return n}}[kR](e){return xt(this,Gr)[Gr][e]}iteratePlugins(e){Object.values(xt(this,Gr)[Gr]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();const r=xt(this,Gr)[Gr][e.type],n=r.findIndex(a=>a.id===e.id);n!==-1&&r.splice(n,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,Tf)[Tf](),this.iteratePlugins(e=>{this.removePlugin(e)}),typeof window<"u"&&window.removeEventListener&&(window.removeEventListener("online",xt(this,Po)[Po]),window.removeEventListener("offline",xt(this,Po)[Po]))}hideInfo(){const{info:e}=this.getState();this.setState({info:e.slice(1)}),this.emit("info-hidden")}info(e,r,n){r===void 0&&(r="info"),n===void 0&&(n=3e3);const o=typeof e=="object";this.setState({info:[...this.getState().info,{type:r,message:o?e.message:e,details:o?e.details:null}]}),setTimeout(()=>this.hideInfo(),n),this.emit("info-visible")}log(e,r){const{logger:n}=this.opts;switch(r){case"error":n.error(e);break;case"warning":n.warn(e);break;default:n.debug(e)}}restore(e){return this.log(`Core: attempting to restore upload "${e}"`),this.getState().currentUploads[e]?xt(this,ki)[ki](e):(xt(this,ts)[ts](e),Promise.reject(new Error("Nonexistent upload")))}[NR](){return xt(this,Fi)[Fi](...arguments)}addResultData(e,r){if(!xt(this,r2)[r2](e))return void this.log(`Not setting result for an upload that has been removed: ${e}`);const{currentUploads:n}=this.getState(),o={...n[e],result:{...n[e].result,...r}};this.setState({currentUploads:{...n,[e]:o}})}upload(){var e;(e=xt(this,Gr)[Gr].uploader)!=null&&e.length||this.log("No uploader type plugins are used","warning");let{files:r}=this.getState();const n=this.opts.onBeforeUpload(r);return n===!1?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(n&&typeof n=="object"&&(r=n,this.setState({files:r})),Promise.resolve().then(()=>{xt(this,qb)[qb](r),xt(this,t2)[t2](r)}).catch(o=>{xt(this,Pr)[Pr](o)}).then(()=>{const{currentUploads:o}=this.getState(),a=Object.values(o).flatMap(s=>s.fileIDs),i=[];Object.keys(r).forEach(s=>{const l=this.getFile(s);l.progress.uploadStarted||a.indexOf(s)!==-1||i.push(l.id)});const u=xt(this,Fi)[Fi](i);return xt(this,ki)[ki](u)}).catch(o=>{xt(this,Pr)[Pr](o,{showInformer:!1})}))}}function nQ(t,e){e===void 0&&(e=this.getFiles());const{maxFileSize:r,minFileSize:n,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&&WJ(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:Zb(o),file:t.name}))}if(r&&t.size!=null&&t.size>r)throw new ei(this.i18n("exceedsSize",{size:Zb(r),file:t.name}));if(n&&t.size!=null&&t.size<n)throw new ei(this.i18n("inferiorSize",{size:Zb(n)}))}function oQ(t){const{minNumberOfFiles:e}=this.opts.restrictions;if(Object.keys(t).length<e)throw new ei(`${this.i18n("youHaveToAtLeastSelectX",{smart_count:e})}`)}function iQ(t){const{requiredMetaFields:e}=this.opts.restrictions,{hasOwnProperty:r}=Object.prototype,n=[],o=[];for(let a=0;a<e.length;a++)if(!r.call(t.meta,e[a])||t.meta[e[a]]===""){const i=new ei(`${this.i18n("missingRequiredMetaFieldOnFile",{fileName:t.name})}`);n.push(i),o.push(e[a]),xt(this,Pr)[Pr](i,{file:t,showInformer:!1,throwErr:!1})}return this.setFileState(t.id,{missingRequiredMetaFields:o}),n}function aQ(t){const e=Object.keys(t).flatMap(r=>{const n=this.getFile(r);return xt(this,Lp)[Lp](n)});if(e.length)throw new rQ(e,`${this.i18n("missingRequiredMetaField")}`)}function uQ(t,e){let{showInformer:r=!0,file:n=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",n,t)):this.log(u,"error"),r&&this.info({message:a,details:i},"error",this.opts.infoTimeout),o)throw typeof t=="object"?t:new Error(t)}function sQ(t){const{allowNewUpload:e}=this.getState();e===!1&&xt(this,Pr)[Pr](new ei(this.i18n("noMoreFilesAllowed")),{file:t})}function lQ(t,e){const r=function(f){var d;if(f.type)return f.type;const p=f.name?(d=B7(f.name).extension)==null?void 0:d.toLowerCase():null;return p&&p in P7?P7[p]:"application/octet-stream"}(e),n=function(f,d){return d.name?d.name:f.split("/")[0]==="image"?`${f.split("/")[0]}.${f.split("/")[1]}`:"noname"}(r,e),o=B7(n).extension,a=!!e.isRemote,i=function(f){let d="uppy";return typeof f.name=="string"&&(d+=`-${F7(f.name.toLowerCase())}`),f.type!==void 0&&(d+=`-${f.type}`),f.meta&&typeof f.meta.relativePath=="string"&&(d+=`-${F7(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:r});if(this.checkIfFileAlreadyExists(i)){const f=new ei(this.i18n("noDuplicates",{fileName:n}));xt(this,Pr)[Pr](f,{file:e})}const u=e.meta||{};u.name=n,u.type=r;const s=Number.isFinite(e.data.size)?e.data.size:null;let l={source:e.source||"",id:i,name:n,extension:o||"",meta:{...this.getState().meta,...u},type:r,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,Pr)[Pr](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,ap)[ap](l,f)}catch(f){xt(this,Pr)[Pr](f,{file:l})}return l}function cQ(){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 fQ(){const t=(e,r,n)=>{let o=e.message||"Unknown error";e.details&&(o+=` ${e.details}`),this.setState({error:o}),r!=null&&r.id in this.getState().files&&this.setFileState(r.id,{error:o,response:n})};this.on("error",t),this.on("upload-error",(e,r,n)=>{if(t(r,e,n),typeof r=="object"&&r.message){const o=new Error(r.message);o.details=r.message,r.details&&(o.details+=` ${r.details}`),o.message=this.i18n("failedToUpload",{file:e.name}),xt(this,Pr)[Pr](o,{throwErr:!1})}else xt(this,Pr)[Pr](r,{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,r)=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const n=this.getFile(e.id).progress;this.setFileState(e.id,{progress:{...n,postprocess:xt(this,Ri)[Ri].size>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:n.bytesTotal},response:r,uploadURL:r.uploadURL,isPaused:!1}),e.size==null&&this.setFileState(e.id,{size:r.bytesUploaded||n.bytesTotal}),this.calculateTotalProgress()}),this.on("preprocess-progress",(e,r)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,preprocess:r}}):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 r={...this.getState().files};r[e.id]={...r[e.id],progress:{...r[e.id].progress}},delete r[e.id].progress.preprocess,this.setState({files:r})}),this.on("postprocess-progress",(e,r)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getState().files[e.id].progress,postprocess:r}}):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 r={...this.getState().files};r[e.id]={...r[e.id],progress:{...r[e.id].progress}},delete r[e.id].progress.postprocess,this.setState({files:r})}),this.on("restored",()=>{this.calculateTotalProgress()}),this.on("dashboard:file-edit-complete",e=>{e&&xt(this,Lp)[Lp](e)}),typeof window<"u"&&window.addEventListener&&(window.addEventListener("online",xt(this,Po)[Po]),window.addEventListener("offline",xt(this,Po)[Po]),setTimeout(xt(this,Po)[Po],3e3))}function dQ(t,e){e===void 0&&(e={});const{forceAllowNewUpload:r=!1}=e,{allowNewUpload:n,currentUploads:o}=this.getState();if(!n&&!r)throw new Error("Cannot create a new upload: already uploading.");const a=qJ();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 pQ(t){const{currentUploads:e}=this.getState();return e[t]}function hQ(t){const e={...this.getState().currentUploads};delete e[t],this.setState({currentUploads:e})}async function gQ(t){let{currentUploads:e}=this.getState(),r=e[t];const n=r.step||0,o=[...xt(this,Xu)[Xu],...xt(this,Zu)[Zu],...xt(this,Ri)[Ri]];try{for(let i=n;i<o.length&&r;i++){const u=o[i],s={...r,step:i};this.setState({currentUploads:{...e,[t]:s}}),await u(s.fileIDs,t),e=this.getState().currentUploads,r=e[t]}}catch(i){throw this.emit("error",i),xt(this,ts)[ts](t),i}if(r){r.fileIDs.forEach(l=>{const c=this.getFile(l);c&&c.progress.postprocess&&this.emit("postprocess-complete",c)});const i=r.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,r=e[t]}let a;return r&&(a=r.result,this.emit("complete",a),xt(this,ts)[ts](t)),a==null&&this.log(`Not setting result for an upload that has been removed: ${t}`),a}IR.VERSION="2.1.3";var jR=IR,vQ=Ws(function(t,e){var r,n,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 K,et,Y,ot={};for(Y in B)Y=="key"?K=B[Y]:Y=="ref"?et=B[Y]:ot[Y]=B[Y];if(arguments.length>2&&(ot.children=arguments.length>3?r.call(arguments,2):I),typeof O=="function"&&O.defaultProps!=null)for(Y in O.defaultProps)ot[Y]===void 0&&(ot[Y]=O.defaultProps[Y]);return v(O,ot,K,et,null)}function v(O,B,I,K,et){var Y={type:O,props:B,key:I,ref:K,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:et??++o};return et==null&&n.vnode!=null&&n.vnode(Y),Y}function y(O){return O.children}function g(O,B){this.props=O,this.context=B}function b(O,B){if(B==null)return O.__?b(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"?b(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!==n.debounceRendering)&&((s=n.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,K,et,Y,ot,mt;B.__d&&(ot=(Y=(I=B).__v).__e,(mt=I.__P)&&(K=[],(et=p({},Y)).__v=Y.__v+1,j(mt,Y,et,I.__n,mt.ownerSVGElement!==void 0,Y.__h!=null?[ot]:null,K,ot??b(Y),Y.__h),_(K,Y),Y.__e!=ot&&E(Y)))})}function C(O,B,I,K,et,Y,ot,mt,bt,Pt){var tt,Mt,Ct,ht,kt,ye,Vt,fe=K&&K.__k||f,De=fe.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,(Ct=fe[tt])===null||Ct&&ht.key==Ct.key&&ht.type===Ct.type)fe[tt]=void 0;else for(Mt=0;Mt<De;Mt++){if((Ct=fe[Mt])&&ht.key==Ct.key&&ht.type===Ct.type){fe[Mt]=void 0;break}Ct=null}j(O,ht,Ct=Ct||c,et,Y,ot,mt,bt,Pt),kt=ht.__e,(Mt=ht.ref)&&Ct.ref!=Mt&&(Vt||(Vt=[]),Ct.ref&&Vt.push(Ct.ref,null,ht),Vt.push(Mt,ht.__c||kt,ht)),kt!=null?(ye==null&&(ye=kt),typeof ht.type=="function"&&ht.__k===Ct.__k?ht.__d=bt=T(ht,bt,O):bt=A(O,ht,Ct,fe,kt,bt),typeof I.type=="function"&&(I.__d=bt)):bt&&Ct.__e==bt&&bt.parentNode!=O&&(bt=b(Ct))}for(I.__e=ye,tt=De;tt--;)fe[tt]!=null&&(typeof I.type=="function"&&fe[tt].__e!=null&&fe[tt].__e==I.__d&&(I.__d=b(K,tt+1)),nt(fe[tt],fe[tt]));if(Vt)for(tt=0;tt<Vt.length;tt++)Z(Vt[tt],Vt[++tt],Vt[++tt])}function T(O,B,I){for(var K,et=O.__k,Y=0;et&&Y<et.length;Y++)(K=et[Y])&&(K.__=O,B=typeof K.type=="function"?T(K,B,I):A(I,K,K,et,K.__e,B));return B}function A(O,B,I,K,et,Y){var ot,mt,bt;if(B.__d!==void 0)ot=B.__d,B.__d=void 0;else if(I==null||et!=Y||et.parentNode==null)t:if(Y==null||Y.parentNode!==O)O.appendChild(et),ot=null;else{for(mt=Y,bt=0;(mt=mt.nextSibling)&&bt<K.length;bt+=2)if(mt==et)break t;O.insertBefore(et,Y),ot=Y}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,K,et){var Y;t:if(B==="style")if(typeof I=="string")O.style.cssText=I;else{if(typeof K=="string"&&(O.style.cssText=K=""),K)for(B in K)I&&B in I||k(O.style,B,"");if(I)for(B in I)K&&I[B]===K[B]||k(O.style,B,I[B])}else if(B[0]==="o"&&B[1]==="n")Y=B!==(B=B.replace(/Capture$/,"")),B=B.toLowerCase()in O?B.toLowerCase().slice(2):B.slice(2),O.l||(O.l={}),O.l[B+Y]=I,I?K||O.addEventListener(B,Y?N:$,Y):O.removeEventListener(B,Y?N:$,Y);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 $(O){this.l[O.type+!1](n.event?n.event(O):O)}function N(O){this.l[O.type+!0](n.event?n.event(O):O)}function j(O,B,I,K,et,Y,ot,mt,bt){var Pt,tt,Mt,Ct,ht,kt,ye,Vt,fe,De,Be,zt=B.type;if(B.constructor!==void 0)return null;I.__h!=null&&(bt=I.__h,mt=B.__e=I.__e,B.__h=null,Y=[mt]),(Pt=n.__b)&&Pt(B);try{t:if(typeof zt=="function"){if(Vt=B.props,fe=(Pt=zt.contextType)&&K[Pt.__c],De=Pt?fe?fe.props.value:Pt.__:K,I.__c?ye=(tt=B.__c=I.__c).__=tt.__E:("prototype"in zt&&zt.prototype.render?B.__c=tt=new zt(Vt,De):(B.__c=tt=new g(Vt,De),tt.constructor=zt,tt.render=it),fe&&fe.sub(tt),tt.props=Vt,tt.state||(tt.state={}),tt.context=De,tt.__n=K,Mt=tt.__d=!0,tt.__h=[]),tt.__s==null&&(tt.__s=tt.state),zt.getDerivedStateFromProps!=null&&(tt.__s==tt.state&&(tt.__s=p({},tt.__s)),p(tt.__s,zt.getDerivedStateFromProps(Vt,tt.__s))),Ct=tt.props,ht=tt.state,Mt)zt.getDerivedStateFromProps==null&&tt.componentWillMount!=null&&tt.componentWillMount(),tt.componentDidMount!=null&&tt.__h.push(tt.componentDidMount);else{if(zt.getDerivedStateFromProps==null&&Vt!==Ct&&tt.componentWillReceiveProps!=null&&tt.componentWillReceiveProps(Vt,De),!tt.__e&&tt.shouldComponentUpdate!=null&&tt.shouldComponentUpdate(Vt,tt.__s,De)===!1||B.__v===I.__v){tt.props=Vt,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(lr){lr&&(lr.__=B)}),tt.__h.length&&ot.push(tt);break t}tt.componentWillUpdate!=null&&tt.componentWillUpdate(Vt,tt.__s,De),tt.componentDidUpdate!=null&&tt.__h.push(function(){tt.componentDidUpdate(Ct,ht,kt)})}tt.context=De,tt.props=Vt,tt.state=tt.__s,(Pt=n.__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&&(K=p(p({},K),tt.getChildContext())),Mt||tt.getSnapshotBeforeUpdate==null||(kt=tt.getSnapshotBeforeUpdate(Ct,ht)),Be=Pt!=null&&Pt.type===y&&Pt.key==null?Pt.props.children:Pt,C(O,Array.isArray(Be)?Be:[Be],B,I,K,et,Y,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 Y==null&&B.__v===I.__v?(B.__k=I.__k,B.__e=I.__e):B.__e=V(I.__e,B,I,K,et,Y,ot,bt);(Pt=n.diffed)&&Pt(B)}catch(lr){B.__v=null,(bt||Y!=null)&&(B.__e=mt,B.__h=!!bt,Y[Y.indexOf(mt)]=null),n.__e(lr,B,I)}}function _(O,B){n.__c&&n.__c(B,O),O.some(function(I){try{O=I.__h,I.__h=[],O.some(function(K){K.call(I)})}catch(K){n.__e(K,I.__v)}})}function V(O,B,I,K,et,Y,ot,mt){var bt,Pt,tt,Mt=I.props,Ct=B.props,ht=B.type,kt=0;if(ht==="svg"&&(et=!0),Y!=null){for(;kt<Y.length;kt++)if((bt=Y[kt])&&"setAttribute"in bt==!!ht&&(ht?bt.localName===ht:bt.nodeType===3)){O=bt,Y[kt]=null;break}}if(O==null){if(ht===null)return document.createTextNode(Ct);O=et?document.createElementNS("http://www.w3.org/2000/svg",ht):document.createElement(ht,Ct.is&&Ct),Y=null,mt=!1}if(ht===null)Mt===Ct||mt&&O.data===Ct||(O.data=Ct);else{if(Y=Y&&r.call(O.childNodes),Pt=(Mt=I.props||c).dangerouslySetInnerHTML,tt=Ct.dangerouslySetInnerHTML,!mt){if(Y!=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,Vt,fe,De,Be){var zt;for(zt in fe)zt==="children"||zt==="key"||zt in Vt||M(ye,zt,null,fe[zt],De);for(zt in Vt)Be&&typeof Vt[zt]!="function"||zt==="children"||zt==="key"||zt==="value"||zt==="checked"||fe[zt]===Vt[zt]||M(ye,zt,Vt[zt],fe[zt],De)}(O,Ct,Mt,et,mt),tt)B.__k=[];else if(kt=B.props.children,C(O,Array.isArray(kt)?kt:[kt],B,I,K,et&&ht!=="foreignObject",Y,ot,Y?Y[0]:I.__k&&b(I,0),mt),Y!=null)for(kt=Y.length;kt--;)Y[kt]!=null&&m(Y[kt]);mt||("value"in Ct&&(kt=Ct.value)!==void 0&&(kt!==Mt.value||kt!==O.value||ht==="progress"&&!kt)&&M(O,"value",kt,Mt.value,!1),"checked"in Ct&&(kt=Ct.checked)!==void 0&&kt!==O.checked&&M(O,"checked",kt,Mt.checked,!1))}return O}function Z(O,B,I){try{typeof O=="function"?O(B):O.current=B}catch(K){n.__e(K,I)}}function nt(O,B,I){var K,et;if(n.unmount&&n.unmount(O),(K=O.ref)&&(K.current&&K.current!==O.__e||Z(K,null,B)),(K=O.__c)!=null){if(K.componentWillUnmount)try{K.componentWillUnmount()}catch(Y){n.__e(Y,B)}K.base=K.__P=null}if(K=O.__k)for(et=0;et<K.length;et++)K[et]&&nt(K[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 G(O,B,I){var K,et,Y;n.__&&n.__(O,B),et=(K=typeof I=="function")?null:I&&I.__k||B.__k,Y=[],j(B,O=(!K&&I||B).__k=h(y,null,[O]),et||c,c,B.ownerSVGElement!==void 0,!K&&I?[I]:et?null:B.firstChild?r.call(B.childNodes):null,Y,!K&&I?I:et?et.__e:B.firstChild,K),_(Y,O)}r=f.slice,n={__e:function(O,B){for(var I,K,et;B=B.__;)if((I=B.__c)&&!I.__)try{if((K=I.constructor)&&K.getDerivedStateFromError!=null&&(I.setState(K.getDerivedStateFromError(O)),et=I.__d),I.componentDidCatch!=null&&(I.componentDidCatch(O),et=I.__d),et)return I.__E=I}catch(Y){O=Y}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 K,et,Y,ot=p({},O.props);for(Y in B)Y=="key"?K=B[Y]:Y=="ref"?et=B[Y]:ot[Y]=B[Y];return arguments.length>2&&(ot.children=arguments.length>3?r.call(arguments,2):I),v(O.type,ot,K||O.key,et||O.ref,null)},e.createContext=function(O,B){var I={__c:B="__cC"+l++,__:O,Consumer:function(K,et){return K.children(et)},Provider:function(K){var et,Y;return this.getChildContext||(et=[],(Y={})[B]=this,this.getChildContext=function(){return Y},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)}}),K.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){G(B,I,O)},e.isValidElement=a,e.options=n,e.render=G,e.toChildArray=function O(B,I){return I=I||[],B==null||typeof B=="boolean"||(Array.isArray(B)?B.some(function(K){O(K,I)}):I.push(B)),I}}),mQ=function(t,e){return e===void 0&&(e=document),typeof t=="string"?e.querySelector(t):((r=t)==null?void 0:r.nodeType)===Node.ELEMENT_NODE?t:null;var r},c3=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 OR([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 k7(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 bQ(t){return"__private_"+yQ+++"_"+t}const{render:N7}=vQ;var kf=bQ("updateUI");class f3 extends c3{constructor(){super(...arguments),Object.defineProperty(this,kf,{writable:!0,value:void 0})}mount(e,r){const n=r.id,o=mQ(e);if(o){this.isTargetDOMEl=!0;const u=document.createDocumentFragment();return k7(this,kf)[kf]=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)&&(N7(this.render(s),u),this.afterUpdate())}),this.uppy.log(`Installing ${n} to a DOM element '${e}'`),this.opts.replaceTargetContent&&(o.innerHTML=""),N7(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 f3)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 ${n} to ${a.id}`),this.parent=a,this.el=a.addTarget(r),this.onMount(),this.el;this.uppy.log(`Not installing ${n}`);let i=`Invalid target option given to ${n}.`;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 r,n;this.el!=null&&((r=(n=k7(this,kf))[kf])==null||r.call(n,e))}unmount(){var e;this.isTargetDOMEl&&((e=this.el)==null||e.remove()),this.onUnmount()}onMount(){}onUnmount(){}}var wQ=f3;const{debugLogger:EQ}=PR;var _d=jR,SQ=jR,xQ=wQ,CQ=c3,DQ=EQ;_d.Uppy=SQ,_d.UIPlugin=xQ,_d.BasePlugin=CQ,_d.debugLogger=DQ;class OQ extends Error{constructor(e,r){r===void 0&&(r=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=r}}var d3=OQ,n2=function(){return fetch(...arguments).catch(t=>{throw t.name==="AbortError"?t:new d3(t)})};class AQ extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}var Ug,sa,Zo,la,I7,TQ=AQ;function Xo(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var BQ=0;function o2(t){return"__private_"+BQ+++"_"+t}async function i2(t){if(t.status===401)throw new TQ;const e=t.json();if(t.status<200||t.status>300){let r=`Failed request with status: ${t.status}. ${t.statusText}`;try{const n=await e;r=n.message?`${r} message: ${n.message}`:r,r=n.requestId?`${r} request-Id: ${n.requestId}`:r}finally{throw new Error(r)}}return e}var j7=(sa=o2("getPostResponseFunc"),Zo=o2("getUrl"),la=o2("errorHandler"),I7=Ug=class RR{constructor(e,r){Object.defineProperty(this,la,{value:FQ}),Object.defineProperty(this,Zo,{value:PQ}),Object.defineProperty(this,sa,{writable:!0,value:n=>o=>n?o:this.onReceiveResponse(o)}),this.uppy=e,this.opts=r,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(),r=this.opts.companionUrl;return(e&&e[r]?e[r]:r).replace(/\/$/,"")}headers(){const e=this.opts.companionHeaders||{};return Promise.resolve({...RR.defaultHeaders,...e})}onReceiveResponse(e){const r=this.uppy.getState().companion||{},n=this.opts.companionUrl,{headers:o}=e;return o.has("i-am")&&o.get("i-am")!==r[n]&&this.uppy.setState({companion:{...r,[n]:o.get("i-am")}}),e}preflight(e){return this.preflightDone?Promise.resolve(this.allowedHeaders.slice()):fetch(Xo(this,Zo)[Zo](e),{method:"OPTIONS"}).then(r=>(r.headers.has("access-control-allow-headers")&&(this.allowedHeaders=r.headers.get("access-control-allow-headers").split(",").map(n=>n.trim().toLowerCase())),this.preflightDone=!0,this.allowedHeaders.slice())).catch(r=>(this.uppy.log(`[CompanionClient] unable to make preflight request ${r}`,"warning"),this.preflightDone=!0,this.allowedHeaders.slice()))}preflightAndHeaders(e){return Promise.all([this.preflight(e),this.headers()]).then(r=>{let[n,o]=r;return Object.keys(o).forEach(a=>{n.includes(a.toLowerCase())||(this.uppy.log(`[CompanionClient] excluding disallowed header ${a}`),delete o[a])}),o})}get(e,r){return this.preflightAndHeaders(e).then(n=>n2(Xo(this,Zo)[Zo](e),{method:"get",headers:n,credentials:this.opts.companionCookiesRule||"same-origin"})).then(Xo(this,sa)[sa](r)).then(i2).catch(Xo(this,la)[la]("get",e))}post(e,r,n){const o="post";return this.preflightAndHeaders(e).then(a=>n2(Xo(this,Zo)[Zo](e),{method:o,headers:a,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(r)})).then(Xo(this,sa)[sa](n)).then(i2).catch(Xo(this,la)[la](o,e))}delete(e,r,n){const o="delete";return this.preflightAndHeaders(e).then(a=>n2(`${this.hostname}/${e}`,{method:o,headers:a,credentials:this.opts.companionCookiesRule||"same-origin",body:r?JSON.stringify(r):null})).then(Xo(this,sa)[sa](n)).then(i2).catch(Xo(this,la)[la](o,e))}},Ug.VERSION="2.0.4",Ug.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":`@uppy/companion-client=${Ug.VERSION}`},I7);function PQ(t){return/^(https?:|)\/\//.test(t)?t:`${this.hostname}/${t}`}function FQ(t,e){return r=>{var n;if((n=r)==null||!n.isAuthError){const o=new Error(`Could not ${t} ${Xo(this,Zo)[Zo](e)}`);o.cause=r,r=o}return Promise.reject(r)}}var kQ={setItem:(t,e)=>new Promise(r=>{localStorage.setItem(t,e),r()}),getItem:t=>Promise.resolve(localStorage.getItem(t)),removeItem:t=>new Promise(e=>{localStorage.removeItem(t),e()})},Ko,ca,no,tn,_g;let R7,L7;function br(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var NQ=0;function Nf(t){return"__private_"+NQ+++"_"+t}var IQ=(Ko=Nf("queued"),ca=Nf("emitter"),no=Nf("isOpen"),tn=Nf("socket"),_g=Nf("handleMessage"),R7=Symbol.for("uppy test: getSocket"),L7=Symbol.for("uppy test: getQueued"),class{constructor(t){Object.defineProperty(this,Ko,{writable:!0,value:[]}),Object.defineProperty(this,ca,{writable:!0,value:AR()}),Object.defineProperty(this,no,{writable:!0,value:!1}),Object.defineProperty(this,tn,{writable:!0,value:void 0}),Object.defineProperty(this,_g,{writable:!0,value:e=>{try{const r=JSON.parse(e.data);this.emit(r.action,r.payload)}catch(r){console.log(r)}}}),this.opts=t,t&&t.autoOpen===!1||this.open()}get isOpen(){return br(this,no)[no]}[R7](){return br(this,tn)[tn]}[L7](){return br(this,Ko)[Ko]}open(){br(this,tn)[tn]=new WebSocket(this.opts.target),br(this,tn)[tn].onopen=()=>{for(br(this,no)[no]=!0;br(this,Ko)[Ko].length>0&&br(this,no)[no];){const t=br(this,Ko)[Ko].shift();this.send(t.action,t.payload)}},br(this,tn)[tn].onclose=()=>{br(this,no)[no]=!1},br(this,tn)[tn].onmessage=br(this,_g)[_g]}close(){var t;(t=br(this,tn)[tn])==null||t.close()}send(t,e){br(this,no)[no]?br(this,tn)[tn].send(JSON.stringify({action:t,payload:e})):br(this,Ko)[Ko].push({action:t,payload:e})}on(t,e){br(this,ca)[ca].on(t,e)}emit(t,e){br(this,ca)[ca].emit(t,e)}once(t,e){br(this,ca)[ca].once(t,e)}}),jQ={RequestClient:j7,Provider:class extends j7{constructor(t,e){super(t,e),this.provider=e.provider,this.id=this.provider,this.name=this.opts.name||(r=>r.split("-").map(n=>n.charAt(0).toUpperCase()+n.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,r]=t;const n={};return r&&(n["uppy-auth-token"]=r),this.companionKeysParams&&(n["uppy-credentials-params"]=btoa(JSON.stringify({params:this.companionKeysParams}))),{...e,...n}})}onReceiveResponse(t){t=super.onReceiveResponse(t);const e=this.uppy.getPlugin(this.pluginId),r=e.getPluginState().authenticated?t.status!==401:t.status<400;return e.setPluginState({authenticated:r}),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,r){if(t.type="acquirer",t.files=[],r&&(t.opts={...r,...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 n=e.companionAllowedHosts;if(!(typeof n=="string"||Array.isArray(n)||n instanceof RegExp))throw new TypeError(`${t.id}: the option "companionAllowedHosts" must be one of string, Array, RegExp`);t.opts.companionAllowedHosts=n}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||kQ}},Socket:IQ},fa,gl,RQ=Is(function(t,e,r){const{progress:n,bytesUploaded:o,bytesTotal:a}=e;n&&(t.uppy.log(`Upload progress: ${n}`),t.uppy.emit("upload-progress",r,{uploader:t,bytesUploaded:o,bytesTotal:a}))},300,{leading:!0,trailing:!0});function If(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var LQ=0;function M7(t){return"__private_"+LQ+++"_"+t}var V7=(fa=M7("emitter"),gl=M7("events"),class{constructor(t){Object.defineProperty(this,fa,{writable:!0,value:void 0}),Object.defineProperty(this,gl,{writable:!0,value:[]}),If(this,fa)[fa]=t}on(t,e){return If(this,gl)[gl].push([t,e]),If(this,fa)[fa].on(t,e)}remove(){for(const[t,e]of If(this,gl)[gl].splice(0))If(this,fa)[fa].off(t,e)}});function oo(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var MQ=0;function t1(t){return"__private_"+MQ+++"_"+t}var Ni=t1("aliveTimer"),Fu=t1("isDone"),jf=t1("onTimedOut"),ku=t1("timeout"),$7=class{constructor(t,e){Object.defineProperty(this,Ni,{writable:!0,value:void 0}),Object.defineProperty(this,Fu,{writable:!0,value:!1}),Object.defineProperty(this,jf,{writable:!0,value:void 0}),Object.defineProperty(this,ku,{writable:!0,value:void 0}),oo(this,ku)[ku]=t,oo(this,jf)[jf]=e}progress(){oo(this,Fu)[Fu]||oo(this,ku)[ku]>0&&(clearTimeout(oo(this,Ni)[Ni]),oo(this,Ni)[Ni]=setTimeout(oo(this,jf)[jf],oo(this,ku)[ku]))}done(){oo(this,Fu)[Fu]||(clearTimeout(oo(this,Ni)[Ni]),oo(this,Ni)[Ni]=null,oo(this,Fu)[Fu]=!0)}};function Cr(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var VQ=0;function Js(t){return"__private_"+VQ+++"_"+t}function $Q(){return new Error("Cancelled")}var zn=Js("activeRequests"),hn=Js("queuedHandlers"),up=Js("call"),Gd=Js("queueNext"),Px=Js("next"),a2=Js("queue"),Fx=Js("dequeue");function zQ(t){Cr(this,zn)[zn]+=1;let e,r=!1;try{e=t()}catch(n){throw Cr(this,zn)[zn]-=1,n}return{abort:()=>{r||(r=!0,Cr(this,zn)[zn]-=1,e(),Cr(this,Gd)[Gd]())},done:()=>{r||(r=!0,Cr(this,zn)[zn]-=1,Cr(this,Gd)[Gd]())}}}function HQ(){queueMicrotask(()=>Cr(this,Px)[Px]())}function UQ(){if(Cr(this,zn)[zn]>=this.limit||Cr(this,hn)[hn].length===0)return;const t=Cr(this,hn)[hn].shift(),e=Cr(this,up)[up](t.fn);t.abort=e.abort,t.done=e.done}function _Q(t,e){e===void 0&&(e={});const r={fn:t,priority:e.priority||0,abort:()=>{Cr(this,Fx)[Fx](r)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},n=Cr(this,hn)[hn].findIndex(o=>r.priority>o.priority);return n===-1?Cr(this,hn)[hn].push(r):Cr(this,hn)[hn].splice(n,0,r),r}function GQ(t){const e=Cr(this,hn)[hn].indexOf(t);e!==-1&&Cr(this,hn)[hn].splice(e,1)}var WQ={RateLimitedQueue:class{constructor(t){Object.defineProperty(this,Fx,{value:GQ}),Object.defineProperty(this,a2,{value:_Q}),Object.defineProperty(this,Px,{value:UQ}),Object.defineProperty(this,Gd,{value:HQ}),Object.defineProperty(this,up,{value:zQ}),Object.defineProperty(this,zn,{writable:!0,value:0}),Object.defineProperty(this,hn,{writable:!0,value:[]}),this.limit=typeof t!="number"||t===0?1/0:t}run(t,e){return Cr(this,zn)[zn]<this.limit?Cr(this,up)[up](t):Cr(this,a2)[a2](t,e)}wrapPromiseFunction(t,e){var r=this;return function(){for(var n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];let i;const u=new Promise((s,l)=>{i=r.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=$Q()}},e)});return u.abort=()=>{i.abort()},u}}},internalRateLimitedQueue:Symbol("__queue")},z7,H7,LR=function(t){return!!t&&(t.readyState!==0&&t.readyState!==4||t.status===0)},KQ={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}};const{nanoid:YQ}=FR,{Provider:XQ,RequestClient:ZQ,Socket:JQ}=jQ,{RateLimitedQueue:QQ,internalRateLimitedQueue:u2}=WQ;function U7(t,e){let r=e;return r||(r=new Error("Upload error")),typeof r=="string"&&(r=new Error(r)),r instanceof Error||(r=Object.assign(new Error("Upload error"),{data:r})),LR(t)?(r=new d3(r,t),r):(r.request=t,r)}function _7(t){return t.data.slice(0,t.data.size,t.meta.type)}var qQ=(H7=z7=class extends c3{constructor(t,e){super(t,e),this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=KQ;const r={formData:!0,fieldName:e.bundle?"files[]":"file",method:"post",metaFields:null,responseUrlFieldName:"url",bundle:!1,headers:{},timeout:3e4,limit:5,withCredentials:!1,responseType:"",getResponseData(n){let o={};try{o=JSON.parse(n)}catch(a){t.log(a)}return o},getResponseError(n,o){let a=new Error("Upload error");return LR(o)&&(a=new d3(a,o)),a},validateStatus:n=>n>=200&&n<300};if(this.opts={...r,...e},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),u2 in this.opts?this.requests=this.opts[u2]:this.requests=new QQ(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:r}=this.opts,n={...this.opts,...e||{},...t.xhrUpload||{},headers:{}};return typeof r=="function"?n.headers=r(t):Object.assign(n.headers,this.opts.headers),e&&Object.assign(n.headers,e.headers),t.xhrUpload&&Object.assign(n.headers,t.xhrUpload.headers),n}addMetadata(t,e,r){(Array.isArray(r.metaFields)?r.metaFields:Object.keys(e)).forEach(n=>{t.append(n,e[n])})}createFormDataUpload(t,e){const r=new FormData;this.addMetadata(r,t.meta,e);const n=_7(t);return t.name?r.append(e.fieldName,n,t.meta.name):r.append(e.fieldName,n),r}createBundledUpload(t,e){const r=new FormData,{meta:n}=this.uppy.getState();return this.addMetadata(r,n,e),t.forEach(o=>{const a=this.getOptions(o),i=_7(o);o.name?r.append(a.fieldName,i,o.name):r.append(a.fieldName,i)}),r}upload(t,e,r){const n=this.getOptions(t);return this.uppy.log(`uploading ${e} of ${r}`),new Promise((o,a)=>{this.uppy.emit("upload-started",t);const i=n.formData?this.createFormDataUpload(t,n):t.data,u=new XMLHttpRequest;this.uploaderEvents[t.id]=new V7(this.uppy);const s=new $7(n.timeout,()=>{u.abort(),c.done();const f=new Error(this.i18n("timedOut",{seconds:Math.ceil(n.timeout/1e3)}));this.uppy.emit("upload-error",t,f),a(f)}),l=YQ();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),n.validateStatus(f.target.status,u.responseText,u)){const h=n.getResponseData(u.responseText,u),v=h[n.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=n.getResponseData(u.responseText,u),p=U7(u,n.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=U7(u,n.getResponseError(u.responseText,u));return this.uppy.emit("upload-error",t,f),a(f)}),u.open(n.method.toUpperCase(),n.endpoint,!0),u.withCredentials=n.withCredentials,n.responseType!==""&&(u.responseType=n.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((r,n)=>{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?XQ:ZQ)(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 JQ({target:`${u}/api/${i}`,autoOpen:!1});this.uploaderEvents[t.id]=new V7(this.uppy),this.onFileRemove(t.id,()=>{s.send("cancel",{}),l.abort(),r(`upload ${t.id} was removed`)}),this.onCancelAll(t.id,()=>{s.send("cancel",{}),l.abort(),r(`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=>RQ(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),r()}),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),n(d)});const l=this.requests.run(()=>(s.open(),t.isPaused&&s.send("pause",{}),()=>s.close()))}).catch(a=>{this.uppy.emit("upload-error",t,a),n(a)})})}uploadBundle(t){return new Promise((e,r)=>{const{endpoint:n}=this.opts,{method:o}=this.opts,a=this.uppy.getState().xhrUpload,i=this.createBundledUpload(t,{...this.opts,...a||{}}),u=new XMLHttpRequest,s=new $7(this.opts.timeout,()=>{u.abort();const c=new Error(this.i18n("timedOut",{seconds:Math.ceil(this.opts.timeout/1e3)}));l(c),r(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),r(f)}),u.addEventListener("error",()=>{s.done();const c=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return l(c),r(c)}),this.uppy.on("cancel-all",()=>{s.done(),u.abort()}),u.open(o.toUpperCase(),n,!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((r,n)=>{const o=parseInt(n,10)+1,a=t.length;return r.error?Promise.reject(new Error(r.error)):r.isRemote?this.uploadRemote(r,o,a):this.upload(r,o,a)});return function(r){const n=[],o=[];function a(u){n.push(u)}function i(u){o.push(u)}return Promise.all(r.map(u=>u.then(a,i))).then(()=>({successful:n,failed:o}))}(e)}onFileRemove(t,e){this.uploaderEvents[t].on("file-removed",r=>{t===r.id&&e(r.id)})}onRetry(t,e){this.uploaderEvents[t].on("upload-retry",r=>{t===r&&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[u2]||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(r=>this.uppy.getFile(r));if(this.opts.bundle){if(e.some(r=>r.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)}},z7.VERSION="2.0.6",H7),G7=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function zh(t){var e={exports:{}};return t(e,e.exports),e.exports}var da,n0,Gg=function(t){return t&&t.Math==Math&&t},at=Gg(typeof globalThis=="object"&&globalThis)||Gg(typeof window=="object"&&window)||Gg(typeof self=="object"&&self)||Gg(typeof G7=="object"&&G7)||function(){return this}()||Function("return this")(),tq=Object.defineProperty,p3=function(t,e){try{tq(at,t,{value:e,configurable:!0,writable:!0})}catch{at[t]=e}return e},za=at["__core-js_shared__"]||p3("__core-js_shared__",{}),h3=zh(function(t){(t.exports=function(e,r){return za[e]||(za[e]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),MR=Function.prototype,kx=MR.bind,Nx=MR.call,eq=kx&&kx.bind(Nx),Dt=kx?function(t){return t&&eq(Nx,t)}:function(t){return t&&function(){return Nx.apply(t,arguments)}},rq=at.TypeError,bo=function(t){if(t==null)throw rq("Can't call method on "+t);return t},nq=at.Object,yu=function(t){return nq(bo(t))},oq=Dt({}.hasOwnProperty),hr=Object.hasOwn||function(t,e){return oq(yu(t),e)},iq=0,aq=Math.random(),uq=Dt(1 .toString),g3=function(t){return"Symbol("+(t===void 0?"":t)+")_"+uq(++iq+aq,36)},Ae=function(t){return typeof t=="function"},sq=function(t){return Ae(t)?t:void 0},Qs=function(t,e){return arguments.length<2?sq(at[t]):at[t]&&at[t][e]},nc=Qs("navigator","userAgent")||"",W7=at.process,K7=at.Deno,Y7=W7&&W7.versions||K7&&K7.version,X7=Y7&&Y7.v8;X7&&(n0=(da=X7.split("."))[0]>0&&da[0]<4?1:+(da[0]+da[1])),!n0&&nc&&(!(da=nc.match(/Edge\/(\d+)/))||da[1]>=74)&&(da=nc.match(/Chrome\/(\d+)/))&&(n0=+da[1]);var Mp=n0,we=function(t){try{return!!t()}catch{return!0}},Ix=!!Object.getOwnPropertySymbols&&!we(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Mp&&Mp<41}),v3=Ix&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Rf=h3("wks"),ds=at.Symbol,Z7=ds&&ds.for,lq=v3?ds:ds&&ds.withoutSetter||g3,Qe=function(t){if(!hr(Rf,t)||!Ix&&typeof Rf[t]!="string"){var e="Symbol."+t;Ix&&hr(ds,t)?Rf[t]=ds[t]:Rf[t]=v3&&Z7?Z7(e):lq(e)}return Rf[t]},VR={};VR[Qe("toStringTag")]="z";var m3=String(VR)==="[object z]",Rr=!we(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Me=function(t){return typeof t=="object"?t!==null:Ae(t)},jx=at.document,cq=Me(jx)&&Me(jx.createElement),Vp=function(t){return cq?jx.createElement(t):{}},$R=!Rr&&!we(function(){return Object.defineProperty(Vp("div"),"a",{get:function(){return 7}}).a!=7}),fq=at.String,dq=at.TypeError,gr=function(t){if(Me(t))return t;throw dq(fq(t)+" is not an object")},Lf=Function.prototype.call,ge=Lf.bind?Lf.bind(Lf):function(){return Lf.apply(Lf,arguments)},js=Dt({}.isPrototypeOf),pq=at.Object,s2=v3?function(t){return typeof t=="symbol"}:function(t){var e=Qs("Symbol");return Ae(e)&&js(e.prototype,pq(t))},hq=at.String,e1=function(t){try{return hq(t)}catch{return"Object"}},gq=at.TypeError,uu=function(t){if(Ae(t))return t;throw gq(e1(t)+" is not a function")},Rs=function(t,e){var r=t[e];return r==null?void 0:uu(r)},vq=at.TypeError,mq=at.TypeError,yq=Qe("toPrimitive"),y3=function(t){var e=function(r,n){if(!Me(r)||s2(r))return r;var o,a=Rs(r,yq);if(a){if(o=ge(a,r,n),!Me(o)||s2(o))return o;throw mq("Can't convert object to primitive value")}return function(i,u){var s,l;if(Ae(s=i.toString)&&!Me(l=ge(s,i))||Ae(s=i.valueOf)&&!Me(l=ge(s,i)))return l;throw vq("Can't convert object to primitive value")}(r)}(t,"string");return s2(e)?e:e+""},bq=at.TypeError,J7=Object.defineProperty,Uo={f:Rr?J7:function(t,e,r){if(gr(t),e=y3(e),gr(r),$R)try{return J7(t,e,r)}catch{}if("get"in r||"set"in r)throw bq("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},r1=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},Ro=Rr?function(t,e,r){return Uo.f(t,e,r1(1,r))}:function(t,e,r){return t[e]=r,t},wq=Dt(Function.toString);Ae(za.inspectSource)||(za.inspectSource=function(t){return wq(t)});var hm,sp,gm,n1=za.inspectSource,Q7=at.WeakMap,zR=Ae(Q7)&&/native code/.test(n1(Q7)),q7=h3("keys"),b3=function(t){return q7[t]||(q7[t]=g3(t))},o1={},Rx=at.TypeError,Eq=at.WeakMap;if(zR||za.state){var Nu=za.state||(za.state=new Eq),Sq=Dt(Nu.get),t9=Dt(Nu.has),xq=Dt(Nu.set);hm=function(t,e){if(t9(Nu,t))throw new Rx("Object already initialized");return e.facade=t,xq(Nu,t,e),e},sp=function(t){return Sq(Nu,t)||{}},gm=function(t){return t9(Nu,t)}}else{var vl=b3("state");o1[vl]=!0,hm=function(t,e){if(hr(t,vl))throw new Rx("Object already initialized");return e.facade=t,Ro(t,vl,e),e},sp=function(t){return hr(t,vl)?t[vl]:{}},gm=function(t){return hr(t,vl)}}var an={set:hm,get:sp,has:gm,enforce:function(t){return gm(t)?sp(t):hm(t,{})},getterFor:function(t){return function(e){var r;if(!Me(e)||(r=sp(e)).type!==t)throw Rx("Incompatible receiver, "+t+" required");return r}}},HR=Function.prototype,Cq=Rr&&Object.getOwnPropertyDescriptor,l2=hr(HR,"name"),Zc={EXISTS:l2,PROPER:l2&&(function(){}).name==="something",CONFIGURABLE:l2&&(!Rr||Rr&&Cq(HR,"name").configurable)},An=zh(function(t){var e=Zc.CONFIGURABLE,r=an.get,n=an.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")+"]"),(!hr(u,"name")||e&&u.name!==p)&&Ro(u,"name",p),(l=n(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:Ro(a,i,u)):f?a[i]=u:p3(i,u)})(Function.prototype,"toString",function(){return Ae(this)&&r(this).source||n1(this)})}),Dq=Dt({}.toString),Oq=Dt("".slice),Lo=function(t){return Oq(Dq(t),8,-1)},Aq=Qe("toStringTag"),Tq=at.Object,Bq=Lo(function(){return arguments}())=="Arguments",i1=m3?Lo:function(t){var e,r,n;return t===void 0?"Undefined":t===null?"Null":typeof(r=function(o,a){try{return o[a]}catch{}}(e=Tq(t),Aq))=="string"?r:Bq?Lo(e):(n=Lo(e))=="Object"&&Ae(e.callee)?"Arguments":n},Pq=m3?{}.toString:function(){return"[object "+i1(this)+"]"};m3||An(Object.prototype,"toString",Pq,{unsafe:!0});var vm={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},c2=Vp("span").classList,e9=c2&&c2.constructor&&c2.constructor.prototype,UR=e9===Object.prototype?void 0:e9,r9=Dt(Dt.bind),Ls=function(t,e){return uu(t),e===void 0?t:r9?r9(t,e):function(){return t.apply(e,arguments)}},f2=at.Object,Fq=Dt("".split),a1=we(function(){return!f2("z").propertyIsEnumerable(0)})?function(t){return Lo(t)=="String"?Fq(t,""):f2(t)}:f2,kq=Math.ceil,Nq=Math.floor,Hh=function(t){var e=+t;return e!=e||e===0?0:(e>0?Nq:kq)(e)},Iq=Math.min,Jc=function(t){return t>0?Iq(Hh(t),9007199254740991):0},qs=function(t){return Jc(t.length)},mm=Array.isArray||function(t){return Lo(t)=="Array"},_R=function(){},jq=[],GR=Qs("Reflect","construct"),w3=/^\s*(?:class|function)\b/,Rq=Dt(w3.exec),Lq=!w3.exec(_R),Mf=function(t){if(!Ae(t))return!1;try{return GR(_R,jq,t),!0}catch{return!1}},u1=!GR||we(function(){var t;return Mf(Mf.call)||!Mf(Object)||!Mf(function(){t=!0})||t})?function(t){if(!Ae(t))return!1;switch(i1(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Lq||!!Rq(w3,n1(t))}:Mf,Mq=Qe("species"),n9=at.Array,WR=function(t,e){return new(function(r){var n;return mm(r)&&(n=r.constructor,(u1(n)&&(n===n9||mm(n.prototype))||Me(n)&&(n=n[Mq])===null)&&(n=void 0)),n===void 0?n9:n}(t))(e===0?0:e)},o9=Dt([].push),Vf=function(t){var e=t==1,r=t==2,n=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=yu(s),h=a1(m),v=Ls(l,c),y=qs(h),g=0,b=f||WR,E=e?b(s,y):r||i?b(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:o9(E,d)}else switch(t){case 4:return!1;case 7:o9(E,d)}return a?-1:n||o?o:E}},Qc={forEach:Vf(0),map:Vf(1),filter:Vf(2),find:Vf(5),findIndex:Vf(6)},KR=function(t,e){var r=[][t];return!!r&&we(function(){r.call(null,e||function(){throw 1},1)})},Vq=Qc.forEach,d2=KR("forEach")?[].forEach:function(t){return Vq(this,t,arguments.length>1?arguments[1]:void 0)},YR=function(t){if(t&&t.forEach!==d2)try{Ro(t,"forEach",d2)}catch{t.forEach=d2}};for(var p2 in vm)vm[p2]&&YR(at[p2]&&at[p2].prototype);YR(UR);var i9={}.propertyIsEnumerable,a9=Object.getOwnPropertyDescriptor,$q=a9&&!i9.call({1:2},1)?function(t){var e=a9(this,t);return!!e&&e.enumerable}:i9,XR={f:$q},bu=function(t){return a1(bo(t))},u9=Object.getOwnPropertyDescriptor,Uh={f:Rr?u9:function(t,e){if(t=bu(t),e=y3(e),$R)try{return u9(t,e)}catch{}if(hr(t,e))return r1(!ge(XR.f,t,e),t[e])}},zq=Math.max,Hq=Math.min,Pc=function(t,e){var r=Hh(t);return r<0?zq(r+e,0):Hq(r,e)},s9=function(t){return function(e,r,n){var o,a=bu(e),i=qs(a),u=Pc(n,i);if(t&&r!=r){for(;i>u;)if((o=a[u++])!=o)return!0}else for(;i>u;u++)if((t||u in a)&&a[u]===r)return t||u||0;return!t&&-1}},ZR={includes:s9(!0),indexOf:s9(!1)},Uq=ZR.indexOf,l9=Dt([].push),JR=function(t,e){var r,n=bu(t),o=0,a=[];for(r in n)!hr(o1,r)&&hr(n,r)&&l9(a,r);for(;e.length>o;)hr(n,r=e[o++])&&(~Uq(a,r)||l9(a,r));return a},ym=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],_q=ym.concat("length","prototype"),$p={f:Object.getOwnPropertyNames||function(t){return JR(t,_q)}},QR={f:Object.getOwnPropertySymbols},Gq=Dt([].concat),Wq=Qs("Reflect","ownKeys")||function(t){var e=$p.f(gr(t)),r=QR.f;return r?Gq(e,r(t)):e},Kq=function(t,e){for(var r=Wq(e),n=Uo.f,o=Uh.f,a=0;a<r.length;a++){var i=r[a];hr(t,i)||n(t,i,o(e,i))}},Yq=/#|\.prototype\./,_h=function(t,e){var r=Zq[Xq(t)];return r==Qq||r!=Jq&&(Ae(e)?we(e):!!e)},Xq=_h.normalize=function(t){return String(t).replace(Yq,".").toLowerCase()},Zq=_h.data={},Jq=_h.NATIVE="N",Qq=_h.POLYFILL="P",zp=_h,qq=Uh.f,Ze=function(t,e){var r,n,o,a,i,u=t.target,s=t.global,l=t.stat;if(r=s?at:l?at[u]||p3(u,{}):(at[u]||{}).prototype)for(n in e){if(a=e[n],o=t.noTargetGet?(i=qq(r,n))&&i.value:r[n],!zp(s?n:u+(l?".":"#")+n,t.forced)&&o!==void 0){if(typeof a==typeof o)continue;Kq(a,o)}(t.sham||o&&o.sham)&&Ro(a,"sham",!0),An(r,n,a,t)}},oc=Object.keys||function(t){return JR(t,ym)},ttt=we(function(){oc(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 c9(t){return Object.prototype.toString.call(t)==="[object Object]"}Ze({target:"Object",stat:!0,forced:ttt},{keys:function(t){return oc(yu(t))}});var ett={isHistory(t){return c9(e=t)!==!1&&((r=e.constructor)===void 0||c9(n=r.prototype)!==!1&&n.hasOwnProperty("isPrototypeOf")!==!1)&&Array.isArray(t.redos)&&Array.isArray(t.undos)&&(t.redos.length===0||Ia.isOperationList(t.redos[0]))&&(t.undos.length===0||Ia.isOperationList(t.undos[0]));var e,r,n}},h2=new WeakMap,g2=new WeakMap,Jl={isHistoryEditor:t=>ett.isHistory(t.history)&&D.isEditor(t),isMerging:t=>g2.get(t),isSaving:t=>h2.get(t),redo(t){t.redo()},undo(t){t.undo()},withoutMerging(t,e){var r=Jl.isMerging(t);g2.set(t,!1),e(),g2.set(t,r)},withoutSaving(t,e){var r=Jl.isSaving(t);h2.set(t,!1),e(),h2.set(t,r)}},rtt=at.String,Pe=function(t){if(i1(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return rtt(t)},E3=function(){var t=gr(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},ntt=Zc.PROPER,Lx=RegExp.prototype,qR=Lx.toString,ott=Dt(E3),itt=we(function(){return qR.call({source:"a",flags:"b"})!="/a/b"}),att=ntt&&qR.name!="toString";(itt||att)&&An(RegExp.prototype,"toString",function(){var t=gr(this),e=Pe(t.source),r=t.flags;return"/"+e+"/"+Pe(r===void 0&&js(Lx,t)&&!("flags"in Lx)?ott(t):r)},{unsafe:!0});var Wg,utt=Rr?Object.defineProperties:function(t,e){gr(t);for(var r,n=bu(e),o=oc(e),a=o.length,i=0;a>i;)Uo.f(t,r=o[i++],n[r]);return t},Mx=Qs("document","documentElement"),tL=b3("IE_PROTO"),v2=function(){},eL=function(t){return"<script>"+t+"<\/script>"},f9=function(t){t.write(eL("")),t.close();var e=t.parentWindow.Object;return t=null,e},o0=function(){try{Wg=new ActiveXObject("htmlfile")}catch{}var t,e;o0=typeof document<"u"?document.domain&&Wg?f9(Wg):((e=Vp("iframe")).style.display="none",Mx.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(eL("document.F=Object")),t.close(),t.F):f9(Wg);for(var r=ym.length;r--;)delete o0.prototype[ym[r]];return o0()};o1[tL]=!0;var s1=Object.create||function(t,e){var r;return t!==null?(v2.prototype=gr(t),r=new v2,v2.prototype=null,r[tL]=t):r=o0(),e===void 0?r:utt(r,e)},Vx=Qe("unscopables"),$x=Array.prototype;$x[Vx]==null&&Uo.f($x,Vx,{configurable:!0,value:s1(null)});var lp=function(t){$x[Vx][t]=!0},stt=ZR.includes;Ze({target:"Array",proto:!0},{includes:function(t){return stt(this,t,arguments.length>1?arguments[1]:void 0)}}),lp("includes");var ltt=Qe("match"),S3=function(t){var e;return Me(t)&&((e=t[ltt])!==void 0?!!e:Lo(t)=="RegExp")},ctt=at.TypeError,x3=function(t){if(S3(t))throw ctt("The method doesn't accept regular expressions");return t},ftt=Qe("match"),C3=function(t){var e=/./;try{"/./"[t](e)}catch{try{return e[ftt]=!1,"/./"[t](e)}catch{}}return!1},dtt=Dt("".indexOf);Ze({target:"String",proto:!0,forced:!C3("includes")},{includes:function(t){return!!~dtt(Pe(bo(this)),Pe(x3(t)),arguments.length>1?arguments[1]:void 0)}});var ptt=/"/g,htt=Dt("".replace);Ze({target:"String",proto:!0,forced:we(function(){var t="".anchor('"');return t!==t.toLowerCase()||t.split('"').length>3})},{anchor:function(t){return e=t,r=Pe(bo(this)),n="<a",(n+=' name="'+htt(Pe(e),ptt,""")+'"')+">"+r+"</a>";var e,r,n}});var zx=function(t,e,r){var n,o;gr(t);try{if(!(n=Rs(t,"return"))){if(e==="throw")throw r;return r}n=ge(n,t)}catch(a){o=!0,n=a}if(e==="throw")throw r;if(o)throw n;return gr(n),r},gtt=function(t,e,r,n){try{return n?e(gr(r)[0],r[1]):e(r)}catch(o){zx(t,"throw",o)}},Fc={},vtt=Qe("iterator"),mtt=Array.prototype,rL=function(t){return t!==void 0&&(Fc.Array===t||mtt[vtt]===t)},Hp=function(t,e,r){var n=y3(e);n in t?Uo.f(t,n,r1(0,r)):t[n]=r},ytt=Qe("iterator"),D3=function(t){if(t!=null)return Rs(t,ytt)||Rs(t,"@@iterator")||Fc[i1(t)]},btt=at.TypeError,nL=function(t,e){var r=arguments.length<2?D3(t):e;if(uu(r))return gr(ge(r,t));throw btt(e1(t)+" is not iterable")},d9=at.Array,oL=Qe("iterator"),iL=!1;try{var wtt=0,p9={next:function(){return{done:!!wtt++}},return:function(){iL=!0}};p9[oL]=function(){return this},Array.from(p9,function(){throw 2})}catch{}var O3=function(t,e){if(!iL)return!1;var r=!1;try{var n={};n[oL]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch{}return r},Ett=!O3(function(t){Array.from(t)});Ze({target:"Array",stat:!0,forced:Ett},{from:function(t){var e=yu(t),r=u1(this),n=arguments.length,o=n>1?arguments[1]:void 0,a=o!==void 0;a&&(o=Ls(o,n>2?arguments[2]:void 0));var i,u,s,l,c,f,d=D3(e),p=0;if(!d||this==d9&&rL(d))for(i=qs(e),u=r?new this(i):d9(i);i>p;p++)f=a?o(e[p],p):e[p],Hp(u,p,f);else for(c=(l=nL(e,d)).next,u=r?new this:[];!(s=ge(c,l)).done;p++)f=a?gtt(l,o,[s.value,p],!0):s.value,Hp(u,p,f);return u.length=p,u}});var ps,h9,g9,Stt=Dt("".charAt),v9=Dt("".charCodeAt),xtt=Dt("".slice),Ctt=function(t){return function(e,r){var n,o,a=Pe(bo(e)),i=Hh(r),u=a.length;return i<0||i>=u?t?"":void 0:(n=v9(a,i))<55296||n>56319||i+1===u||(o=v9(a,i+1))<56320||o>57343?t?Stt(a,i):n:t?xtt(a,i,i+2):o-56320+(n-55296<<10)+65536}},aL={charAt:Ctt(!0)},Dtt=!we(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),m9=b3("IE_PROTO"),Hx=at.Object,Ott=Hx.prototype,bm=Dtt?Hx.getPrototypeOf:function(t){var e=yu(t);if(hr(e,m9))return e[m9];var r=e.constructor;return Ae(r)&&e instanceof r?r.prototype:e instanceof Hx?Ott:null},Ux=Qe("iterator"),uL=!1;[].keys&&("next"in(g9=[].keys())?(h9=bm(bm(g9)))!==Object.prototype&&(ps=h9):uL=!0);var Att=ps==null||we(function(){var t={};return ps[Ux].call(t)!==t});Att&&(ps={}),Ae(ps[Ux])||An(ps,Ux,function(){return this});var A3={IteratorPrototype:ps,BUGGY_SAFARI_ITERATORS:uL},Ttt=Uo.f,y9=Qe("toStringTag"),wm=function(t,e,r){t&&!hr(t=r?t:t.prototype,y9)&&Ttt(t,y9,{configurable:!0,value:e})},Btt=A3.IteratorPrototype,Ptt=function(){return this},Ftt=at.String,ktt=at.TypeError,kc=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Dt(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch{}return function(n,o){return gr(n),function(a){if(typeof a=="object"||Ae(a))return a;throw ktt("Can't set "+Ftt(a)+" as a prototype")}(o),e?t(n,o):n.__proto__=o,n}}():void 0),Ntt=Zc.PROPER,Itt=Zc.CONFIGURABLE,b9=A3.IteratorPrototype,Kg=A3.BUGGY_SAFARI_ITERATORS,$f=Qe("iterator"),jtt=function(){return this},T3=function(t,e,r,n,o,a,i){(function(y,g,b,E){var x=g+" Iterator";y.prototype=s1(Btt,{next:r1(1,b)}),wm(y,x,!1),Fc[x]=Ptt})(r,e,n);var u,s,l,c=function(y){if(y===o&&h)return h;if(!Kg&&y in p)return p[y];switch(y){case"keys":case"values":case"entries":return function(){return new r(this,y)}}return function(){return new r(this)}},f=e+" Iterator",d=!1,p=t.prototype,m=p[$f]||p["@@iterator"]||o&&p[o],h=!Kg&&m||c(o),v=e=="Array"&&p.entries||m;if(v&&(u=bm(v.call(new t)))!==Object.prototype&&u.next&&(bm(u)!==b9&&(kc?kc(u,b9):Ae(u[$f])||An(u,$f,jtt)),wm(u,f,!0)),Ntt&&o=="values"&&m&&m.name!=="values"&&(Itt?Ro(p,"name","values"):(d=!0,h=function(){return ge(m,this)})),o)if(s={values:c("values"),keys:a?h:c("keys"),entries:c("entries")},i)for(l in s)(Kg||d||!(l in p))&&An(p,l,s[l]);else Ze({target:e,proto:!0,forced:Kg||d},s);return p[$f]!==h&&An(p,$f,h,{name:o}),Fc[e]=h,s},Rtt=aL.charAt,Ltt=an.set,Mtt=an.getterFor("String Iterator");T3(String,"String",function(t){Ltt(this,{type:"String Iterator",string:Pe(t),index:0})},function(){var t,e=Mtt(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=Rtt(r,n),e.index+=t.length,{value:t,done:!1})});var m2,Vtt=Uh.f,w9=Dt("".endsWith),$tt=Dt("".slice),ztt=Math.min,sL=C3("endsWith"),Htt=!(sL||(m2=Vtt(String.prototype,"endsWith"),!m2||m2.writable));Ze({target:"String",proto:!0,forced:!Htt&&!sL},{endsWith:function(t){var e=Pe(bo(this));x3(t);var r=arguments.length>1?arguments[1]:void 0,n=e.length,o=r===void 0?n:ztt(Jc(r),n),a=Pe(t);return w9?w9(e,a,o):$tt(e,o-a.length,o)===a}});var Utt=Dt([].join),_tt=a1!=Object,Gtt=KR("join",",");Ze({target:"Array",proto:!0,forced:_tt||!Gtt},{join:function(t){return Utt(bu(this),t===void 0?",":t)}});var Wtt=Qe("species"),l1=function(t){return Mp>=51||!we(function(){var e=[];return(e.constructor={})[Wtt]=function(){return{foo:1}},e[t](Boolean).foo!==1})},Ktt=Qc.map,Ytt=l1("map");Ze({target:"Array",proto:!0,forced:!Ytt},{map:function(t){return Ktt(this,t,arguments.length>1?arguments[1]:void 0)}});var B3=at.RegExp,_x=we(function(){var t=B3("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),Xtt=_x||we(function(){return!B3("a","y").sticky}),c1={BROKEN_CARET:_x||we(function(){var t=B3("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:Xtt,UNSUPPORTED_Y:_x},Ztt=at.RegExp,P3=we(function(){var t=Ztt(".","s");return!(t.dotAll&&t.exec(`
|
|
45
|
+
`)&&t.flags==="s")}),Jtt=at.RegExp,F3=we(function(){var t=Jtt("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),Qtt=an.get,qtt=h3("native-string-replace",String.prototype.replace),Em=RegExp.prototype.exec,Gx=Em,tet=Dt("".charAt),eet=Dt("".indexOf),ret=Dt("".replace),y2=Dt("".slice),b2=function(){var t=/a/,e=/b*/g;return ge(Em,t,"a"),ge(Em,e,"a"),t.lastIndex!==0||e.lastIndex!==0}(),E9=c1.BROKEN_CARET,w2=/()??/.exec("")[1]!==void 0;(b2||w2||E9||P3||F3)&&(Gx=function(t){var e,r,n,o,a,i,u,s=this,l=Qtt(s),c=Pe(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=ge(Gx,f,c),s.lastIndex=f.lastIndex,e;var d=l.groups,p=E9&&s.sticky,m=ge(E3,s),h=s.source,v=0,y=c;if(p&&(m=ret(m,"y",""),eet(m,"g")===-1&&(m+="g"),y=y2(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&tet(c,s.lastIndex-1)!==`
|
|
46
|
+
`)&&(h="(?: "+h+")",y=" "+y,v++),r=new RegExp("^(?:"+h+")",m)),w2&&(r=new RegExp("^"+h+"$(?!\\s)",m)),b2&&(n=s.lastIndex),o=ge(Em,p?r:s,y),p?o?(o.input=y2(o.input,v),o[0]=y2(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:b2&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),w2&&o&&o.length>1&&ge(qtt,o[0],r,function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(o[a]=void 0)}),o&&d)for(o.groups=i=s1(null),a=0;a<d.length;a++)i[(u=d[a])[0]]=o[u[1]];return o});var Up=Gx;Ze({target:"RegExp",proto:!0,forced:/./.exec!==Up},{exec:Up});var k3=Function.prototype,S9=k3.apply,net=k3.bind,x9=k3.call,N3=typeof Reflect=="object"&&Reflect.apply||(net?x9.bind(S9):function(){return x9.apply(S9,arguments)}),oet=Qe("species"),E2=RegExp.prototype,I3=function(t,e,r,n){var o=Qe(t),a=!we(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),i=a&&!we(function(){var l=!1,c=/a/;return t==="split"&&((c={}).constructor={},c.constructor[oet]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!a||!i||r){var u=Dt(/./[o]),s=e(o,""[t],function(l,c,f,d,p){var m=Dt(l),h=c.exec;return h===Up||h===E2.exec?a&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:m(f,c,d)}:{done:!1}});An(String.prototype,t,s[0]),An(E2,o,s[1])}n&&Ro(E2[o],"sham",!0)},iet=aL.charAt,j3=function(t,e,r){return e+(r?iet(t,e).length:1)},aet=Math.floor,S2=Dt("".charAt),uet=Dt("".replace),x2=Dt("".slice),set=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,cet=/\$([$&'`]|\d{1,2})/g,fet=function(t,e,r,n,o,a){var i=r+t.length,u=n.length,s=cet;return o!==void 0&&(o=yu(o),s=set),uet(a,s,function(l,c){var f;switch(S2(c,0)){case"$":return"$";case"&":return t;case"`":return x2(e,0,r);case"'":return x2(e,i);case"<":f=o[x2(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=aet(d/10);return p===0?l:p<=u?n[p-1]===void 0?S2(c,1):n[p-1]+S2(c,1):l}f=n[d-1]}return f===void 0?"":f})},det=at.TypeError,_p=function(t,e){var r=t.exec;if(Ae(r)){var n=ge(r,t,e);return n!==null&&gr(n),n}if(Lo(t)==="RegExp")return ge(Up,t,e);throw det("RegExp#exec called on incompatible receiver")},Wx=Qe("replace"),pet=Math.max,het=Math.min,get=Dt([].concat),C2=Dt([].push),C9=Dt("".indexOf),D9=Dt("".slice),vet="a".replace(/./,"$0")==="$0",O9=!!/./[Wx]&&/./[Wx]("a","$0")==="";I3("replace",function(t,e,r){var n=O9?"$":"$0";return[function(o,a){var i=bo(this),u=o==null?void 0:Rs(o,Wx);return u?ge(u,o,i,a):ge(e,Pe(i),o,a)},function(o,a){var i=gr(this),u=Pe(o);if(typeof a=="string"&&C9(a,n)===-1&&C9(a,"$<")===-1){var s=r(e,i,u,a);if(s.done)return s.value}var l=Ae(a);l||(a=Pe(a));var c=i.global;if(c){var f=i.unicode;i.lastIndex=0}for(var d=[];;){var p=_p(i,u);if(p===null||(C2(d,p),!c))break;Pe(p[0])===""&&(i.lastIndex=j3(u,Jc(i.lastIndex),f))}for(var m,h="",v=0,y=0;y<d.length;y++){for(var g=Pe((p=d[y])[0]),b=pet(het(Hh(p.index),u.length),0),E=[],x=1;x<p.length;x++)C2(E,(m=p[x])===void 0?m:String(m));var S=p.groups;if(l){var C=get([g],E,b,u);S!==void 0&&C2(C,S);var T=Pe(N3(a,void 0,C))}else T=fet(g,u,b,E,S,a);b>=v&&(h+=D9(u,v,b)+T,v=b+g.length)}return h+D9(u,v)}]},!!we(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!vet||O9);/*! *****************************************************************************
|
|
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 Kx=function(t,e){return Kx=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},Kx(t,e)};function qc(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}Kx(t,e),t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var so=function(){return so=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},so.apply(this,arguments)};function lo(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function le(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n,o,a=r.call(t),i=[];try{for(;(e===void 0||e-- >0)&&!(n=a.next()).done;)i.push(n.value)}catch(u){o={error:u}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return i}function Yx(t,e){for(var r=0,n=e.length,o=t.length;r<n;r++,o++)t[o]=e[r];return t}var met=0,A9=function(){this.id=""+met++},yet=an.set,bet=an.getterFor("Array Iterator"),Wd=T3(Array,"Array",function(t,e){yet(this,{type:"Array Iterator",target:bu(t),index:0,kind:e})},function(){var t=bet(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}},"values");Fc.Arguments=Fc.Array,lp("keys"),lp("values"),lp("entries");var Nc=function(t,e,r){for(var n in e)An(t,n,e[n],r);return t},wet=at.Array,Eet=Math.max,Xx=function(t,e,r){for(var n=qs(t),o=Pc(e,n),a=Pc(r===void 0?n:r,n),i=wet(Eet(a-o,0)),u=0;o<a;o++,u++)Hp(i,u,t[o]);return i.length=u,i},T9=$p.f,B9=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],xet={f:function(t){return B9&&Lo(t)=="Window"?function(e){try{return T9(e)}catch{return Xx(B9)}}(t):T9(bu(t))}},P9=we(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),Yg=Object.isExtensible,es=we(function(){Yg(1)})||P9?function(t){return!!Me(t)&&(!P9||Lo(t)!="ArrayBuffer")&&(!Yg||Yg(t))}:Yg,Cet=!we(function(){return Object.isExtensible(Object.preventExtensions({}))}),f1=zh(function(t){var e=Uo.f,r=!1,n=g3("meta"),o=0,a=function(u){e(u,n,{value:{objectID:"O"+o++,weakData:{}}})},i=t.exports={enable:function(){i.enable=function(){},r=!0;var u=$p.f,s=Dt([].splice),l={};l[n]=1,u(l).length&&($p.f=function(c){for(var f=u(c),d=0,p=f.length;d<p;d++)if(f[d]===n){s(f,d,1);break}return f},Ze({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:xet.f}))},fastKey:function(u,s){if(!Me(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!hr(u,n)){if(!es(u))return"F";if(!s)return"E";a(u)}return u[n].objectID},getWeakData:function(u,s){if(!hr(u,n)){if(!es(u))return!0;if(!s)return!1;a(u)}return u[n].weakData},onFreeze:function(u){return Cet&&r&&es(u)&&!hr(u,n)&&a(u),u}};o1[n]=!0}),Det=at.TypeError,i0=function(t,e){this.stopped=t,this.result=e},F9=i0.prototype,Gp=function(t,e,r){var n,o,a,i,u,s,l,c=r&&r.that,f=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_ITERATOR),p=!(!r||!r.INTERRUPTED),m=Ls(e,c),h=function(y){return n&&zx(n,"normal",y),new i0(!0,y)},v=function(y){return f?(gr(y),p?m(y[0],y[1],h):m(y[0],y[1])):p?m(y,h):m(y)};if(d)n=t;else{if(!(o=D3(t)))throw Det(e1(t)+" is not iterable");if(rL(o)){for(a=0,i=qs(t);i>a;a++)if((u=v(t[a]))&&js(F9,u))return u;return new i0(!1)}n=nL(t,o)}for(s=n.next;!(l=ge(s,n)).done;){try{u=v(l.value)}catch(y){zx(n,"throw",y)}if(typeof u=="object"&&u&&js(F9,u))return u}return new i0(!1)},Oet=at.TypeError,d1=function(t,e){if(js(e,t))return t;throw Oet("Incorrect invocation")},lL=function(t,e,r){var n,o;return kc&&Ae(n=e.constructor)&&n!==r&&Me(o=n.prototype)&&o!==r.prototype&&kc(t,o),t},cL=function(t,e,r){var n=t.indexOf("Map")!==-1,o=t.indexOf("Weak")!==-1,a=n?"set":"add",i=at[t],u=i&&i.prototype,s=i,l={},c=function(v){var y=Dt(u[v]);An(u,v,v=="add"?function(g){return y(this,g===0?0:g),this}:v=="delete"?function(g){return!(o&&!Me(g))&&y(this,g===0?0:g)}:v=="get"?function(g){return o&&!Me(g)?void 0:y(this,g===0?0:g)}:v=="has"?function(g){return!(o&&!Me(g))&&y(this,g===0?0:g)}:function(g,b){return y(this,g===0?0:g,b),this})};if(zp(t,!Ae(i)||!(o||u.forEach&&!we(function(){new i().entries().next()}))))s=r.getConstructor(e,t,n,a),f1.enable();else if(zp(t,!0)){var f=new s,d=f[a](o?{}:-0,1)!=f,p=we(function(){f.has(1)}),m=O3(function(v){new i(v)}),h=!o&&we(function(){for(var v=new i,y=5;y--;)v[a](y,y);return!v.has(-0)});m||((s=e(function(v,y){d1(v,u);var g=lL(new i,v,s);return y!=null&&Gp(y,g[a],{that:g,AS_ENTRIES:n}),g})).prototype=u,u.constructor=s),(p||h)&&(c("delete"),c("has"),n&&c("get")),(h||d)&&c(a),o&&u.clear&&delete u.clear}return l[t]=s,Ze({global:!0,forced:s!=i},l),wm(s,t),o||r.setStrong(s,t,n),s},Xg=f1.getWeakData,Aet=an.set,Tet=an.getterFor,Bet=Qc.find,Pet=Qc.findIndex,Fet=Dt([].splice),ket=0,Zg=function(t){return t.frozen||(t.frozen=new fL)},fL=function(){this.entries=[]},D2=function(t,e){return Bet(t.entries,function(r){return r[0]===e})};fL.prototype={get:function(t){var e=D2(this,t);if(e)return e[1]},has:function(t){return!!D2(this,t)},set:function(t,e){var r=D2(this,t);r?r[1]=e:this.entries.push([t,e])},delete:function(t){var e=Pet(this.entries,function(r){return r[0]===t});return~e&&Fet(this.entries,e,1),!!~e}};var zf,dL={getConstructor:function(t,e,r,n){var o=t(function(s,l){d1(s,a),Aet(s,{type:e,id:ket++,frozen:void 0}),l!=null&&Gp(l,s[n],{that:s,AS_ENTRIES:r})}),a=o.prototype,i=Tet(e),u=function(s,l,c){var f=i(s),d=Xg(gr(l),!0);return d===!0?Zg(f).set(l,c):d[f.id]=c,s};return Nc(a,{delete:function(s){var l=i(this);if(!Me(s))return!1;var c=Xg(s);return c===!0?Zg(l).delete(s):c&&hr(c,l.id)&&delete c[l.id]},has:function(s){var l=i(this);if(!Me(s))return!1;var c=Xg(s);return c===!0?Zg(l).has(s):c&&hr(c,l.id)}}),Nc(a,r?{get:function(s){var l=i(this);if(Me(s)){var c=Xg(s);return c===!0?Zg(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}},Jg=an.enforce,Net=!at.ActiveXObject&&"ActiveXObject"in at,pL=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Iet=cL("WeakMap",pL,dL);if(zR&&Net){zf=dL.getConstructor(pL,"WeakMap",!0),f1.enable();var Hf=Iet.prototype,k9=Dt(Hf.delete),Qg=Dt(Hf.has),N9=Dt(Hf.get),I9=Dt(Hf.set);Nc(Hf,{delete:function(t){if(Me(t)&&!es(t)){var e=Jg(this);return e.frozen||(e.frozen=new zf),k9(this,t)||e.frozen.delete(t)}return k9(this,t)},has:function(t){if(Me(t)&&!es(t)){var e=Jg(this);return e.frozen||(e.frozen=new zf),Qg(this,t)||e.frozen.has(t)}return Qg(this,t)},get:function(t){if(Me(t)&&!es(t)){var e=Jg(this);return e.frozen||(e.frozen=new zf),Qg(this,t)?N9(this,t):e.frozen.get(t)}return N9(this,t)},set:function(t,e){if(Me(t)&&!es(t)){var r=Jg(this);r.frozen||(r.frozen=new zf),Qg(this,t)?I9(this,t,e):r.frozen.set(t,e)}else I9(this,t,e);return this}})}var O2=Qe("iterator"),j9=Qe("toStringTag"),A2=Wd.values,hL=function(t,e){if(t){if(t[O2]!==A2)try{Ro(t,O2,A2)}catch{t[O2]=A2}if(t[j9]||Ro(t,j9,e),vm[e]){for(var r in Wd)if(t[r]!==Wd[r])try{Ro(t,r,Wd[r])}catch{t[r]=Wd[r]}}}};for(var T2 in vm)hL(at[T2]&&at[T2].prototype,T2);hL(UR,"DOMTokenList");var Zx=new WeakMap,Jx=new WeakMap,R3=new WeakMap,p1=new WeakMap,Qx=new WeakMap,Sm=new WeakMap,L3=new WeakMap,qx=new WeakMap,a0=new WeakMap,R9=new WeakMap,L9=new WeakMap,M9=new WeakMap,V9=new WeakMap,Wp=new WeakMap,Ic=new WeakMap,M3=new WeakMap,xm=new WeakMap,t4=new WeakMap,Cm=new WeakMap,u0=new WeakMap,gL=new WeakMap,hs=new WeakMap,B2=new WeakMap,$9=new WeakMap,P2=new WeakMap,jet=Qc.find,z9=!0;"find"in[]&&Array(1).find(function(){z9=!1}),Ze({target:"Array",proto:!0,forced:z9},{find:function(t){return jet(this,t,arguments.length>1?arguments[1]:void 0)}}),lp("find"),Ze({global:!0},{globalThis:at});const Ret=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];sm&&(F.fn.css=sm),yo&&(F.fn.append=yo),bc&&(F.fn.addClass=bc),wc&&(F.fn.removeClass=wc),Ec&&(F.fn.hasClass=Ec),mi&&(F.fn.on=mi),au&&(F.fn.focus=au),mo&&(F.fn.attr=mo),om&&(F.fn.removeAttr=om),xc&&(F.fn.hide=xc),um&&(F.fn.show=um),n7&&(F.fn.offset=n7),im&&(F.fn.width=im),am&&(F.fn.height=am),Cc&&(F.fn.parent=Cc),fm&&(F.fn.parents=fm),i7&&(F.fn.is=i7),Sc&&(F.fn.dataset=Sc),vi&&(F.fn.val=vi),cm&&(F.fn.text=cm),iu&&(F.fn.html=iu),Oc&&(F.fn.children=Oc),Ac&&(F.fn.remove=Ac),Dc&&(F.fn.find=Dc),lm&&(F.fn.each=lm),Tc&&(F.fn.empty=Tc);var ri,en,V3=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||null},Bo=function(t){return Ms(t)&&t.nodeType===1},Ms=function(t){var e=V3(t);return!!e&&t instanceof e.Node},H9=function(t){var e=t&&t.anchorNode&&V3(t.anchorNode);return!!e&&t instanceof e.Selection},vL=function(t){return Ms(t)&&t.nodeType===3},e4=function(t){var e,r,n;return(e=window.document.getElementById(t))!==null&&e!==void 0?e:((n=(r=window.document.activeElement)===null||r===void 0?void 0:r.shadowRoot)===null||n===void 0?void 0:n.getElementById(t))||null},mL=function(t,e,r){for(var n,o=t.childNodes,a=o[e],i=e,u=!1,s=!1;(Ms(n=a)&&n.nodeType===8||Bo(a)&&a.childNodes.length===0||Bo(a)&&a.getAttribute("contenteditable")==="false")&&(!u||!s);)i>=o.length?(u=!0,i=e-1,r="backward"):i<0?(s=!0,i=e+1,r="forward"):(a=o[i],e=i,i+=r==="forward"?1:-1);return[a,e]},Let=function(t,e,r){return le(mL(t,e,r),1)[0]},Met=function t(e){var r,n,o="";if(vL(e)&&e.nodeValue)return e.nodeValue;if(Bo(e)){try{for(var a=lo(Array.from(e.childNodes)),i=a.next();!i.done;i=a.next())o+=t(i.value)}catch(s){r={error:s}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}var u=getComputedStyle(e).getPropertyValue("display");u!=="block"&&u!=="list"&&u!=="table-row"&&e.tagName!=="BR"||(o+=`
|
|
60
|
+
`)}return o};function yL(t,e){if(!(t instanceof HTMLElement&&t.dataset.slateVoid==="true"))for(var r=t.childNodes,n=r.length;n--;){var o=r[n],a=o.nodeType;a==3?e(o,t):a!=1&&a!=9&&a!=11||yL(o,e)}}function U9(t){if(t.length===0)return"";var e=t[0];return e.nodeType!==ri.ELEMENT_NODE?"":e.tagName.toLowerCase()}(en=ri||(ri={}))[en.ELEMENT_NODE=1]="ELEMENT_NODE",en[en.TEXT_NODE=3]="TEXT_NODE",en[en.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",en[en.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",en[en.COMMENT_NODE=8]="COMMENT_NODE",en[en.DOCUMENT_NODE=9]="DOCUMENT_NODE",en[en.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",en[en.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE";var r4=typeof navigator<"u"&&/Mac OS X/.test(navigator.userAgent),cp=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),Uf=typeof navigator<"u"&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),Vet=typeof navigator<"u"&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),$et=typeof navigator<"u"&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),n4=typeof navigator<"u"&&/Chrome/i.test(navigator.userAgent),_f=!$et&&!Vet&&typeof globalThis<"u"&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges=="function",P={getWindow:function(t){var e=gL.get(t);if(!e)throw new Error("Unable to find a host window element for this editor");return e},findKey:function(t,e){var r=u0.get(e);return r||(r=new A9,u0.set(e,r)),r},setNewKey:function(t){var e=new A9;u0.set(t,e)},findPath:function(t,e){for(var r=[],n=e;;){var o=Ic.get(n);if(o==null){if(D.isEditor(n))return r;break}var a=Wp.get(n);if(a==null)break;r.unshift(a),n=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),r=e.getRootNode();return(r instanceof Document||r instanceof ShadowRoot)&&r.getSelection!=null?r:e.ownerDocument},getParentNode:function(t,e){return Ic.get(e)||null},getParentsNodes:function(t,e){for(var r=[],n=e;n!==t&&n!=null;){var o=P.getParentNode(t,n);if(o==null)break;r.push(o),n=o}return r},getTopNode:function(t,e){var r=[P.findPath(t,e)[0]];return st.get(t,r)},toDOMNode:function(t,e){var r;if(D.isEditor(e))r=M3.get(t);else{var n=P.findKey(t,e);r=t4.get(n)}if(!r)throw new Error("Cannot resolve a DOM node from Slate node: "+JSON.stringify(e));return r},hasDOMNode:function(t,e,r){r===void 0&&(r={});var n,o=r.editable,a=o!==void 0&&o,i=P.toDOMNode(t,t);try{n=Bo(e)?e:e.parentElement}catch(u){if(!u.message.includes('Permission denied to access property "nodeType"'))throw u}return!!n&&n.closest("[data-slate-editor]")===i&&(!a||n.isContentEditable||!!n.getAttribute("data-slate-zero-width"))},toDOMRange:function(t,e){var r=e.anchor,n=e.focus,o=Q.isBackward(e),a=P.toDOMPoint(t,r),i=Q.isCollapsed(e)?a:P.toDOMPoint(t,n),u=P.getWindow(t).document.createRange(),s=le(o?i:a,2),l=s[0],c=s[1],f=le(o?a:i,2),d=f[0],p=f[1],m=!!(Bo(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),h=!!(Bo(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 r,n,o,a=le(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=lo(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){r={error:v}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}if(!o)throw new Error("Cannot resolve a DOM point from Slate point: "+JSON.stringify(e));return o},toSlateNode:function(t,e){var r=Bo(e)?e:e.parentElement;r&&!r.hasAttribute("data-slate-node")&&(r=r.closest("[data-slate-node]"));var n=r?xm.get(r):null;if(!n)throw new Error("Cannot resolve a Slate node from DOM node: "+r);return n},findEventRange:function(t,e){"nativeEvent"in e&&(e=e.nativeEvent);var r=e.clientX,n=e.clientY,o=e.target;if(r==null||n==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)?r-s.left<s.left+s.width-r:n-s.top<s.top+s.height-n,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(r,n);else{var p=d.caretPositionFromPoint(r,n);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,r){var n,o,a,i,u,s=r.exactMatch,l=r.suppressThrow;if((H9(e)?e.anchorNode:e.startContainer)&&(H9(e)?(n=e.anchorNode,o=e.anchorOffset,a=e.focusNode,i=e.focusOffset,u=n4&&window.document.activeElement&&window.document.activeElement.shadowRoot?e.anchorNode===e.focusNode&&e.anchorOffset===e.focusOffset:e.isCollapsed):(n=e.startContainer,o=e.startOffset,a=e.endContainer,i=e.endOffset,u=e.collapsed)),n==null||a==null||o==null||i==null)throw new Error("Cannot resolve a Slate range from DOM range: "+e);var c=P.toSlatePoint(t,[n,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 Q.isExpanded(d)&&Q.isForward(d)&&Bo(a)&&D.void(t,{at:d.focus,mode:"highest"})&&(d=D.unhangRange(t,d,{voids:!0})),d},toSlatePoint:function(t,e,r){var n,o=r.exactMatch,a=r.suppressThrow,i=le(o?e:function(g){var b,E=le(g,2),x=E[0],S=E[1];if(Bo(x)&&x.childNodes.length){var C=S===x.childNodes.length,T=C?S-1:S;for(x=(b=le(mL(x,T,C?"backward":"forward"),2))[0],C=(T=b[1])<S;Bo(x)&&x.childNodes.length;){var A=C?x.childNodes.length-1:0;x=Let(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();Yx(Yx([],le(t7(v.querySelectorAll("[data-slate-zero-width]")))),le(t7(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")||cp&&(!((n=m.textContent)===null||n===void 0)&&n.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 r=e.anchor,n=e.focus;return D.hasPath(t,r.path)&&D.hasPath(t,n.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,r,n=[],o=D.nodes(t,{universal:!0});try{for(var a=lo(o),i=a.next();!i.done;i=a.next()){var u=le(i.value,1)[0];St.isElement(u)&&n.push(u)}}catch(s){e={error:s}}finally{try{i&&!i.done&&(r=a.return)&&r.call(a)}finally{if(e)throw e.error}}return n},getSelectedNodeByType:function(t,e){var r=this,n=le(D.nodes(t,{match:function(a){return r.checkNodeType(a,e)},universal:!0}),1),o=n[0];return o==null?null:o[0]},getSelectedTextNode:function(t){var e=le(D.nodes(t,{match:function(n){return vt.isText(n)},universal:!0}),1),r=e[0];return r==null?null:r[0]},isNodeSelected:function(t,e){var r=le(D.nodes(t,{match:function(o){return o===e},universal:!0}),1),n=r[0];return n!=null&&le(n,1)[0]===e},isSelectionAtLineEnd:function(t,e){var r=t.selection;return!!r&&(D.isEnd(t,r.anchor,e)||D.isEnd(t,r.focus,e))},getTextarea:function(t){var e=Zx.get(t);if(e==null)throw new Error("Cannot find textarea instance by editor");return e},getToolbar:function(t){return p1.get(t)||null},getHoverbar:function(t){return Sm.get(t)||null},normalizeContent:function(t){t.children.forEach(function(e,r){t.normalizeNode([e,[r]])})},getLeftLengthOfMaxLength:function(t){var e=t.getConfig(),r=e.maxLength,n=e.onMaxLength;if(typeof r!="number"||r<=0)return 1/0;var o=r-t.getText().replace(/\r|\n|(\r\n)/g,"").length;return o<=0&&n&&n(t),o},cleanExposedTexNodeInSelectionBlock:function(t){var e,r,n,o,a=P.getTextarea(t).$textArea,i=a==null?void 0:a[0].childNodes;if(i)try{for(var u=lo(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&&(r=u.return)&&r.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=lo(c),d=f.next();!d.done;d=f.next()){var p=d.value;if(p!=null){var m=p[0];yL(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){n={error:h}}finally{try{d&&!d.done&&(o=f.return)&&o.call(f)}finally{if(n)throw n.error}}},isLastNode:function(t,e){var r=t.children||[];return r[r.length-1]===e},genEmptyParagraph:function(){return{type:"paragraph",children:[{text:""}]}},isSelectedVoidNode:function(t){var e,r,n=D.nodes(t,{match:function(u){return t.isVoid(u)}}),o=0;try{for(var a=lo(n),i=a.next();!i.done;i=a.next())i.value,o++}catch(u){e={error:u}}finally{try{i&&!i.done&&(r=a.return)&&r.call(a)}finally{if(e)throw e.error}}return o>0},isSelectedEmptyParagraph:function(t){var e=t.selection;if(e==null||Q.isExpanded(e))return!1;var r=P.getSelectedNodeByType(t,"paragraph");if(r===null)return!1;var n=r.children;return n.length===1&&(n[0].text===""||void 0)},isEmptyPath:function(t,e){var r=D.node(t,e);if(r==null)return!1;var n=le(r,1)[0].children;return n.length===1&&n[0].text===""}},zet=1,bL={},Kp={},Het=Qc.filter,Uet=l1("filter");Ze({target:"Array",proto:!0,forced:!Uet},{filter:function(t){return Het(this,t,arguments.length>1?arguments[1]:void 0)}});var o4=`
|
|
62
|
+
\v\f\r \u2028\u2029\uFEFF`,_9=Dt("".replace),Dm="["+o4+"]",_et=RegExp("^"+Dm+Dm+"*"),Get=RegExp(Dm+Dm+"*$"),Wet=function(t){return function(e){var r=Pe(bo(e));return 1&t&&(r=_9(r,_et,"")),2&t&&(r=_9(r,Get,"")),r}},Ket={trim:Wet(3)},Yet=Zc.PROPER,Xet=Ket.trim;Ze({target:"String",proto:!0,forced:function(t){return we(function(){return!!o4[t]()||"
"[t]()!=="
"||Yet&&o4[t].name!==t})}("trim")},{trim:function(){return Xet(this)}});var i4=[],wL={};function Zet(t,e,r){var n=r.isInline(t)?"span":"div";return"<"+n+">"+e+"</"+n+">"}var Yp,ml,G9,F2,Om=at.Promise,W9=Qe("species"),$3=function(t){var e=Qs(t),r=Uo.f;Rr&&e&&!e[W9]&&r(e,W9,{configurable:!0,get:function(){return this}})},Jet=at.TypeError,Qet=Qe("species"),EL=function(t,e){var r,n=gr(t).constructor;return n===void 0||(r=gr(n)[Qet])==null?e:function(o){if(u1(o))return o;throw Jet(e1(o)+" is not a constructor")}(r)},SL=Dt([].slice),xL=/(?:ipad|iphone|ipod).*applewebkit/i.test(nc),Ha=Lo(at.process)=="process",a4=at.setImmediate,K9=at.clearImmediate,qet=at.process,k2=at.Dispatch,trt=at.Function,Y9=at.MessageChannel,ert=at.String,N2=0,fp={};try{Yp=at.location}catch{}var z3=function(t){if(hr(fp,t)){var e=fp[t];delete fp[t],e()}},I2=function(t){return function(){z3(t)}},X9=function(t){z3(t.data)},Z9=function(t){at.postMessage(ert(t),Yp.protocol+"//"+Yp.host)};a4&&K9||(a4=function(t){var e=SL(arguments,1);return fp[++N2]=function(){N3(Ae(t)?t:trt(t),void 0,e)},ml(N2),N2},K9=function(t){delete fp[t]},Ha?ml=function(t){qet.nextTick(I2(t))}:k2&&k2.now?ml=function(t){k2.now(I2(t))}:Y9&&!xL?(F2=(G9=new Y9).port2,G9.port1.onmessage=X9,ml=Ls(F2.postMessage,F2)):at.addEventListener&&Ae(at.postMessage)&&!at.importScripts&&Yp&&Yp.protocol!=="file:"&&!we(Z9)?(ml=Z9,at.addEventListener("message",X9,!1)):ml="onreadystatechange"in Vp("script")?function(t){Mx.appendChild(Vp("script")).onreadystatechange=function(){Mx.removeChild(this),z3(t)}}:function(t){setTimeout(I2(t),0)});var Gf,Ju,dp,_l,j2,R2,L2,J9,CL={set:a4},rrt=/ipad|iphone|ipod/i.test(nc)&&at.Pebble!==void 0,nrt=/web0s(?!.*chrome)/i.test(nc),ort=Uh.f,M2=CL.set,Q9=at.MutationObserver||at.WebKitMutationObserver,q9=at.document,tT=at.process,qg=at.Promise,eT=ort(at,"queueMicrotask"),DL=eT&&eT.value;DL||(Gf=function(){var t,e;for(Ha&&(t=tT.domain)&&t.exit();Ju;){e=Ju.fn,Ju=Ju.next;try{e()}catch(r){throw Ju?_l():dp=void 0,r}}dp=void 0,t&&t.enter()},xL||Ha||nrt||!Q9||!q9?!rrt&&qg&&qg.resolve?((L2=qg.resolve(void 0)).constructor=qg,J9=Ls(L2.then,L2),_l=function(){J9(Gf)}):Ha?_l=function(){tT.nextTick(Gf)}:(M2=Ls(M2,at),_l=function(){M2(Gf)}):(j2=!0,R2=q9.createTextNode(""),new Q9(Gf).observe(R2,{characterData:!0}),_l=function(){R2.data=j2=!j2}));var V2,rT,OL,nT,AL=DL||function(t){var e={fn:t,next:void 0};dp&&(dp.next=e),Ju||(Ju=e,_l()),dp=e},irt=function(t){var e,r;this.promise=new t(function(n,o){if(e!==void 0||r!==void 0)throw TypeError("Bad Promise constructor");e=n,r=o}),this.resolve=uu(e),this.reject=uu(r)},H3={f:function(t){return new irt(t)}},u4=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}},art=typeof window=="object",TL=CL.set,urt=Qe("species"),qo="Promise",oT=an.getterFor(qo),srt=an.set,lrt=an.getterFor(qo),Gu=Om&&Om.prototype,oi=Om,Wf=Gu,BL=at.TypeError,s4=at.document,U3=at.process,ic=H3.f,crt=ic,frt=!!(s4&&s4.createEvent&&at.dispatchEvent),PL=Ae(at.PromiseRejectionEvent),FL=!1,pp=zp(qo,function(){var t=n1(oi),e=t!==String(oi);if(!e&&Mp===66)return!0;if(Mp>=51&&/native code/.test(t))return!1;var r=new oi(function(o){o(1)}),n=function(o){o(function(){},function(){})};return(r.constructor={})[urt]=n,!(FL=r.then(function(){})instanceof n)||!e&&art&&!PL}),drt=pp||!O3(function(t){oi.all(t).catch(function(){})}),kL=function(t){var e;return!(!Me(t)||!Ae(e=t.then))&&e},_3=function(t,e){if(!t.notified){t.notified=!0;var r=t.reactions;AL(function(){for(var n=t.value,o=t.state==1,a=0;r.length>a;){var i,u,s,l=r[a++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(t.rejection===2&&hrt(t),t.rejection=1),c===!0?i=n:(p&&p.enter(),i=c(n),p&&(p.exit(),s=!0)),i===l.promise?d(BL("Promise-chain cycle")):(u=kL(i))?ge(u,i,f,d):f(i)):d(n)}catch(m){p&&!s&&p.exit(),d(m)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&prt(t)})}},NL=function(t,e,r){var n,o;frt?((n=s4.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),at.dispatchEvent(n)):n={promise:e,reason:r},!PL&&(o=at["on"+t])?o(n):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",r)},prt=function(t){ge(TL,at,function(){var e,r=t.facade,n=t.value;if(iT(t)&&(e=u4(function(){Ha?U3.emit("unhandledRejection",n,r):NL("unhandledrejection",r,n)}),t.rejection=Ha||iT(t)?2:1,e.error))throw e.value})},iT=function(t){return t.rejection!==1&&!t.parent},hrt=function(t){ge(TL,at,function(){var e=t.facade;Ha?U3.emit("rejectionHandled",e):NL("rejectionhandled",e,t.value)})},Ql=function(t,e,r){return function(n){t(e,n,r)}},ac=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,_3(t,!0))},l4=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw BL("Promise can't be resolved itself");var n=kL(e);n?AL(function(){var o={done:!1};try{ge(n,e,Ql(l4,o,t),Ql(ac,o,t))}catch(a){ac(o,a,t)}}):(t.value=e,t.state=1,_3(t,!1))}catch(o){ac({done:!1},o,t)}}};if(pp&&(Wf=(oi=function(t){d1(this,Wf),uu(t),ge(V2,this);var e=oT(this);try{t(Ql(l4,e),Ql(ac,e))}catch(r){ac(e,r)}}).prototype,(V2=function(t){srt(this,{type:qo,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Nc(Wf,{then:function(t,e){var r=lrt(this),n=r.reactions,o=ic(EL(this,oi));return o.ok=!Ae(t)||t,o.fail=Ae(e)&&e,o.domain=Ha?U3.domain:void 0,r.parent=!0,n[n.length]=o,r.state!=0&&_3(r,!1),o.promise},catch:function(t){return this.then(void 0,t)}}),rT=function(){var t=new V2,e=oT(t);this.promise=t,this.resolve=Ql(l4,e),this.reject=Ql(ac,e)},H3.f=ic=function(t){return t===oi||t===OL?new rT(t):crt(t)},Ae(Om)&&Gu!==Object.prototype)){nT=Gu.then,FL||(An(Gu,"then",function(t,e){var r=this;return new oi(function(n,o){ge(nT,r,n,o)}).then(t,e)},{unsafe:!0}),An(Gu,"catch",Wf.catch,{unsafe:!0}));try{delete Gu.constructor}catch{}kc&&kc(Gu,Wf)}Ze({global:!0,wrap:!0,forced:pp},{Promise:oi}),wm(oi,qo,!1),$3(qo),OL=Qs(qo),Ze({target:qo,stat:!0,forced:pp},{reject:function(t){var e=ic(this);return ge(e.reject,void 0,t),e.promise}}),Ze({target:qo,stat:!0,forced:pp},{resolve:function(t){return function(e,r){if(gr(e),Me(r)&&r.constructor===e)return r;var n=H3.f(e);return(0,n.resolve)(r),n.promise}(this,t)}}),Ze({target:qo,stat:!0,forced:drt},{all:function(t){var e=this,r=ic(e),n=r.resolve,o=r.reject,a=u4(function(){var i=uu(e.resolve),u=[],s=0,l=1;Gp(t,function(c){var f=s++,d=!1;l++,ge(i,e,c).then(function(p){d||(d=!0,u[f]=p,--l||n(u))},o)}),--l||n(u)});return a.error&&o(a.value),r.promise},race:function(t){var e=this,r=ic(e),n=r.reject,o=u4(function(){var a=uu(e.resolve);Gp(t,function(i){ge(a,e,i).then(r.resolve,n)})});return o.error&&n(o.value),r.promise}});var yl=c1.UNSUPPORTED_Y,grt=Math.min,IL=[].push,vrt=Dt(/./.exec),bl=Dt(IL),Kf=Dt("".slice);function wo(t){Promise.resolve().then(t)}function jL(t,e){return St.isElement(t)?function(r,n){var o=r.type,a=o===void 0?"":o,i=r.children,u=i===void 0?[]:i,s=D.isVoid(n,r),l="";s||(l=u.map(function(y){return jL(y,n)}).join(""));var c=function(y){return wL[y]||Zet}(a),f=c(r,l,n),d="";if(d=typeof f=="string"?f:f.html||"",s||i4.forEach(function(y){return d=y(r,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(r,n){var o=r.text;if(o==null)throw new Error("Current node is not slate Text "+JSON.stringify(r));var a=o;a=function(s){return s.replace(/ {2}/g," ").replace(/</g,"<").replace(/>/g,">").replace(/®/g,"®").replace(/©/g,"©").replace(/™/g,"™")}(a);var i=P.getParentsNodes(n,r).some(function(s){return P.getNodeType(s)==="pre"});if(i||(a=a.replace(/\r\n|\r|\n/g,"<br>")),i&&(a=a.replace(/ /g," ")),a===""){var u=P.getParentNode(null,r);if(!u||u.children.length!==0)return a;a="<br>"}return i4.forEach(function(s){return a=s(r,a)}),a}(t,e)}function RL(t){return"w-e-element-"+t}I3("split",function(t,e,r){var n;return n="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(bo(this)),u=a===void 0?4294967295:a>>>0;if(u===0)return[];if(o===void 0)return[i];if(!S3(o))return ge(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=ge(Up,m,i))&&!((l=m.lastIndex)>p&&(bl(f,Kf(i,p,s.index)),s.length>1&&s.index<i.length&&N3(IL,f,Xx(s,1)),c=s[0].length,p=l,f.length>=u));)m.lastIndex===s.index&&m.lastIndex++;return p===i.length?!c&&vrt(m,"")||bl(f,""):bl(f,Kf(i,p)),f.length>u?Xx(f,0,u):f}:"0".split(void 0,0).length?function(o,a){return o===void 0&&a===0?[]:ge(e,this,o,a)}:e,[function(o,a){var i=bo(this),u=o==null?void 0:Rs(o,t);return u?ge(u,o,i,a):ge(n,Pe(i),o,a)},function(o,a){var i=gr(this),u=Pe(o),s=r(n,i,u,a,n!==e);if(s.done)return s.value;var l=EL(i,RegExp),c=i.unicode,f=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(yl?"g":"y"),d=new l(yl?"^(?:"+i.source+")":i,f),p=a===void 0?4294967295:a>>>0;if(p===0)return[];if(u.length===0)return _p(d,u)===null?[u]:[];for(var m=0,h=0,v=[];h<u.length;){d.lastIndex=yl?0:h;var y,g=_p(d,yl?Kf(u,h):u);if(g===null||(y=grt(Jc(d.lastIndex+(yl?h:0)),u.length))===m)h=j3(u,h,c);else{if(bl(v,Kf(u,m,h)),v.length===p)return v;for(var b=1;b<=g.length-1;b++)if(bl(v,g[b]),v.length===p)return v;h=m=y}}return bl(v,Kf(u,m)),v}]},!!we(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return r.length!==2||r[0]!=="a"||r[1]!=="b"}),yl);var aT=function(t,e){var r=(e.top+e.bottom)/2;return t.top<=r&&t.bottom>=r},uT=function(t,e,r){var n=P.toDOMRange(t,e).getBoundingClientRect(),o=P.toDOMRange(t,r).getBoundingClientRect();return aT(n,o)&&aT(o,n)},LL=["span","b","strong","i","em","s","strike","u","font","sub","sup"],ML=[],G3=[],Am={},mrt=Uo.f,yrt=$p.f,brt=an.enforce,wrt=Qe("match"),Vi=at.RegExp,Gl=Vi.prototype,Ert=at.SyntaxError,Srt=Dt(E3),xrt=Dt(Gl.exec),tv=Dt("".charAt),sT=Dt("".replace),lT=Dt("".indexOf),Crt=Dt("".slice),Drt=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,gs=/a/g,$2=/a/g,Ort=new Vi(gs)!==gs,VL=c1.MISSED_STICKY,Art=c1.UNSUPPORTED_Y,Trt=Rr&&(!Ort||VL||P3||F3||we(function(){return $2[wrt]=!1,Vi(gs)!=gs||Vi($2)==$2||Vi(gs,"i")!="/a/i"}));if(zp("RegExp",Trt)){for(var pa=function(t,e){var r,n,o,a,i,u,s=js(Gl,this),l=S3(t),c=e===void 0,f=[],d=t;if(!s&&l&&c&&t.constructor===pa)return t;if((l||js(Gl,t))&&(t=t.source,c&&(e="flags"in d?d.flags:Srt(d))),t=t===void 0?"":Pe(t),e=e===void 0?"":Pe(e),d=t,P3&&"dotAll"in gs&&(n=!!e&&lT(e,"s")>-1)&&(e=sT(e,/s/g,"")),r=e,VL&&"sticky"in gs&&(o=!!e&&lT(e,"y")>-1)&&Art&&(e=sT(e,/y/g,"")),F3&&(a=function(p){for(var m,h=p.length,v=0,y="",g=[],b={},E=!1,x=!1,S=0,C="";v<=h;v++){if((m=tv(p,v))==="\\")m+=tv(p,++v);else if(m==="]")E=!1;else if(!E)switch(!0){case m==="[":E=!0;break;case m==="(":xrt(Drt,Crt(p,v+1))&&(v+=2,x=!0),y+=m,S++;continue;case(m===">"&&x):if(C===""||hr(b,C))throw new Ert("Invalid capture group name");b[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=lL(Vi(t,e),s?this:Gl,pa),(n||o||f.length)&&(u=brt(i),n&&(u.dotAll=!0,u.raw=pa(function(p){for(var m,h=p.length,v=0,y="",g=!1;v<=h;v++)(m=tv(p,v))!=="\\"?g||m!=="."?(m==="["?g=!0:m==="]"&&(g=!1),y+=m):y+="[\\s\\S]":y+=m+tv(p,++v);return y}(t),r)),o&&(u.sticky=!0),f.length&&(u.groups=f)),t!==d)try{Ro(i,"source",d===""?"(?:)":d)}catch{}return i},Brt=function(t){t in pa||mrt(pa,t,{configurable:!0,get:function(){return Vi[t]},set:function(e){Vi[t]=e}})},cT=yrt(Vi),fT=0;cT.length>fT;)Brt(cT[fT++]);Gl.constructor=pa,pa.prototype=Gl,An(at,"RegExp",pa)}$3("RegExp");var Prt=new RegExp(" ","g");function $L(t){return t.replace(Prt," ")}function dT(t,e){var r=t.length;if(r){var n=t[r-1];if(vt.isText(n)){var o=Object.keys(n);if(o.length===1&&o[0]==="text")return n.text=n.text+e,!0}}return!1}function Frt(t,e,r){return{type:"paragraph",children:[{text:F(t).text().replace(/\s+/gm," ")}]}}function z2(t,e){var r=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!==ri.ELEMENT_NODE){if(l.nodeType===ri.TEXT_NODE){var c=l.textContent||"";if(c.trim()===""&&c.indexOf(`
|
|
63
|
+
`)>=0)return;c&&(c=$L(c),dT(u,c)||u.push({text:c}))}}else{if(l.nodeName==="BR")return void(dT(u,`
|
|
64
|
+
`)||u.push({text:`
|
|
65
|
+
`}));var f=W3(F(l),i);Array.isArray(f)?f.forEach(function(d){return u.push(d)}):u.push(f)}}),u)}(t,e),n=function(a){for(var i in Am)if(a[0].matches(i))return Am[i];return Frt}(t),o=n(t[0],r,e);return Array.isArray(o)||(o=[o]),o.forEach(function(a){D.isVoid(e,a)||(r.length===0&&(a.children=[{text:t.text().replace(/\s+/gm," ")}]),G3.forEach(function(i){a=i(t[0],a,e)}))}),o}function H2(t,e){t.parents("pre").length===0&&(t[0].innerHTML=t[0].innerHTML.replace(/\s+/gm," ").replace(/<br>/g,`
|
|
66
|
+
`));var r=t[0].textContent||"";r=function(o){return o.replace(/ /g," ").replace(/</g,"<").replace(/>/g,">").replace(/®/g,"®").replace(/©/g,"©").replace(/™/g,"™").replace(/"/g,'"')}(r);var n={text:r=$L(r)};return G3.forEach(function(o){n=o(t[0],n,e)}),n}function W3(t,e){ML.forEach(function(n){var o=n.selector,a=n.preParseHtml;t[0].matches(o)&&(t=F(a(t[0])))});var r=U9(t);return r==="span"?t.attr("data-w-e-type")?z2(t,e):H2(t,e):r==="code"?U9(t.parent())==="pre"?z2(t,e):H2(t,e):LL.includes(r)?H2(t,e):z2(t,e)}function zL(t,e,r){var n=F(r);return!!n.attr(e)||(n.attr(e,"true"),t.on("destroyed",function(){n.removeAttr(e)}),!1)}function pT(t,e){e===void 0&&(e="");var r=[];e===""&&(e="<p><br></p>"),e.indexOf("<")!==0&&(e=e.split(/\n/).map(function(o){return"<p>"+o+"</p>"}).join(""));var n=F("<div>"+e+"</div>");return Array.from(n.children()).forEach(function(o){var a=W3(F(o),t);Array.isArray(a)?a.forEach(function(i){return r.push(i)}):r.push(a)}),r}var krt=Uo.f,hT=f1.fastKey,gT=an.set,U2=an.getterFor,Nrt={getConstructor:function(t,e,r,n){var o=t(function(l,c){d1(l,a),gT(l,{type:e,index:s1(null),first:void 0,last:void 0,size:0}),Rr||(l.size=0),c!=null&&Gp(c,l[n],{that:l,AS_ENTRIES:r})}),a=o.prototype,i=U2(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=hT(c,!0),key:c,value:f,previous:d=m.last,next:void 0,removed:!1},m.first||(m.first=h),d&&(d.next=h),Rr?m.size++:l.size++,p!=="F"&&(m.index[p]=h)),l},s=function(l,c){var f,d=i(l),p=hT(c);if(p!=="F")return d.index[p];for(f=d.first;f;f=f.next)if(f.key==c)return f};return Nc(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,Rr?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),Rr?f.size--:c.size--}return!!d},forEach:function(l){for(var c,f=i(this),d=Ls(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)}}),Nc(a,r?{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)}}),Rr&&krt(a,"size",{get:function(){return i(this).size}}),o},setStrong:function(t,e,r){var n=e+" Iterator",o=U2(e),a=U2(n);T3(t,e,function(i,u){gT(this,{type:n,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})},r?"entries":"values",!r,!0),$3(e)}};cL("Set",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Nrt);var vT=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function mT(t,e){t.isInline(e)?(t.insertNode(e),e.type==="link"&&t.insertFragment([{text:""}])):U.insertNodes(t,e,{mode:"highest"})}var Irt=function(t){var e=t,r=e.insertText;return e.insertFragment,e.setFragmentData=function(n){var o=e.selection;if(o){var a=le(Q.edges(o),2),i=a[0],u=a[1],s=D.void(e,{at:i.path}),l=D.void(e,{at:u.path});if(!Q.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=le(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
|
+
`:""}),vL(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),b=window.btoa(encodeURIComponent(g));d.setAttribute("data-slate-fragment",b),n.setData("application/x-slate-fragment",b);var E=f.ownerDocument.createElement("div");return E.appendChild(f),E.setAttribute("hidden","true"),f.ownerDocument.body.appendChild(E),n.setData("text/html",E.innerHTML),n.setData("text/plain",Met(E)),f.ownerDocument.body.removeChild(E),n}}},e.insertData=function(n){var o,a,i=n.getData("application/x-slate-fragment");if(i){var u=decodeURIComponent(window.atob(i)),s=JSON.parse(u);e.insertFragment(s)}else{var l=n.getData("text/plain"),c=n.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=lo(f),m=p.next();!m.done;m=p.next()){var h=m.value;d&&U.splitNodes(e,{always:!0}),r(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},Kd=function(t){return t!=null},jrt={object:!0,function:!0,undefined:!0},Rrt=/^\s*class[\s{/}]/,Lrt=Function.prototype.toString,yT=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(r){if(!function(n){return!!Kd(n)&&hasOwnProperty.call(jrt,typeof n)}(r))return!1;try{return!!r.constructor&&r.constructor.prototype===r}catch{return!1}}(e)}(t)&&!Rrt.test(Lrt.call(t))},K3=function(t){return t!=null},Mrt=Object.keys,Vrt=function(){try{return Object.keys("primitive"),!0}catch{return!1}}()?Object.keys:function(t){return Mrt(K3(t)?Object(t):t)},$rt=function(t){if(!K3(t))throw new TypeError("Cannot use null or undefined");return t},zrt=Math.max,bT=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 r,n,o,a=zrt(arguments.length,2);for(t=Object($rt(t)),o=function(i){try{t[i]=e[i]}catch(u){r||(r=u)}},n=1;n<a;++n)Vrt(e=arguments[n]).forEach(o);if(r!==void 0)throw r;return t},Hrt=Array.prototype.forEach,Urt=Object.create,_rt=function(t,e){var r;for(r in t)e[r]=t[r]},wT=function(t){var e=Urt(null);return Hrt.call(arguments,function(r){K3(r)&&_rt(Object(r),e)}),e},_2="razdwatrzy",Grt=String.prototype.indexOf,Yf=typeof _2.contains=="function"&&_2.contains("dwa")===!0&&_2.contains("foo")===!1?String.prototype.contains:function(t){return Grt.call(this,t,arguments[1])>-1},ev=zh(function(t){var e=t.exports=function(r,n){var o,a,i,u,s;return arguments.length<2||typeof r!="string"?(u=n,n=r,r=null):u=arguments[2],Kd(r)?(o=Yf.call(r,"c"),a=Yf.call(r,"e"),i=Yf.call(r,"w")):(o=i=!0,a=!1),s={value:n,configurable:o,enumerable:a,writable:i},u?bT(wT(u),s):s};e.gs=function(r,n,o){var a,i,u,s;return typeof r!="string"?(u=o,o=n,n=r,r=null):u=arguments[3],Kd(n)?yT(n)?Kd(o)?yT(o)||(u=o,o=void 0):o=void 0:(u=n,n=o=void 0):n=void 0,Kd(r)?(a=Yf.call(r,"c"),i=Yf.call(r,"e")):(a=!0,i=!1),s={get:n,set:o,configurable:a,enumerable:i},u?bT(wT(u),s):s}}),G2=function(t){if(typeof t!="function")throw new TypeError(t+" is not a function");return t},Wrt=zh(function(t,e){var r,n,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};r=function(v,y){var g;return G2(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},n=function(v,y){var g,b;return G2(y),b=this,r.call(this,v,g=function(){o.call(b,v,g),l.call(y,this,arguments)}),g.__eeOnceListener__=y,this},o=function(v,y){var g,b,E,x;if(G2(y),!m.call(this,"__ee__"))return this;if(!(g=this.__ee__)[v])return this;if(typeof(b=g[v])=="object")for(x=0;E=b[x];++x)E!==y&&E.__eeOnceListener__!==y||(b.length===2?g[v]=b[x?0:1]:b.splice(x,1));else b!==y&&b.__eeOnceListener__!==y||delete g[v];return this},a=function(v){var y,g,b,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;b=E[y];++y)l.call(b,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:r,once:n,off:o,emit:a},u={on:ev(r),once:ev(n),off:ev(o),emit:ev(a)},s=p({},u),t.exports=e=function(v){return v==null?f(s):p(Object(v),u)},e.methods=i});function rv(t){var e=$9.get(t);return e==null&&(e=Wrt(),$9.set(t,e)),e}var Tm=new WeakMap;function ET(t,e){var r=Tm.get(t);r==null&&(r=new Set,Tm.set(t,r)),r.add(e)}function Krt(t){return Tm.get(t)||new Set}function Yrt(t){Tm.set(t,new Set)}function Y3(t){var e=P.getTextarea(t).$textAreaContainer,r=e.width(),n=e.height(),o=e.offset();return{top:o.top,left:o.left,width:r,height:n}}function X3(t){var e={top:"0",left:"0"},r=t.selection;if(r==null)return e;var n=Y3(t);if(n==null)return e;var o=n.top,a=n.left,i=n.width,u=n.height,s=P.toDOMRange(t,r).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 Z3(t,e,r){r===void 0&&(r="modal");var n={top:"0",left:"0"};if(t.selection==null)return n;var o=St.isElement(e)&&t.isVoid(e),a=St.isElement(e)&&t.isInline(e),i=Cm.get(e);if(i==null)return n;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 $=M.toLowerCase();if(Ret.includes($)||$==="iframe"||$==="video")return k;var N=k.children||[],j=N.length;if(j)for(var _=j-1;_>=0;_--)T.push(N[_])}}return null}(i);if(d!=null){var p=d.getBoundingClientRect();s=p.top,c=p.height}}var m=Y3(t);if(m==null)return n;var h,v=m.top,y=m.left,g=m.width,b=m.height,E={},x=s-v,S=l-y;if(r==="bar")return E.left=S+"px",x>40?E.bottom=b-x+5+"px":E.top=x+c+5+"px",E;if(r==="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>(b-c)/2?E.bottom=b-x+5+"px":((h=x+c)<0&&(h=0),E.top=h+5+"px"),E;throw new Error("type '"+r+"' is invalid")}function c4(t,e){wo(function(){var r=Y3(t);if(r!=null){var n,o=r.top,a=r.left,i=r.width,u=r.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&&(n=p+d-u)>0){var v=e.css("top"),y=parseInt(v.toString())-n;y<0&&(y=0),e.css("top",y+"px")}if(h.indexOf("bottom")>=0&&l<0){var g=e.css("bottom"),b=parseInt(g.toString())-Math.abs(l);e.css("bottom",b+"px")}if(h.indexOf("left")>=0&&(n=m+f-i)>0){var E=e.css("left"),x=parseInt(E.toString())-n;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 Xrt=l1("slice"),Zrt=Qe("species"),W2=at.Array,Jrt=Math.max;Ze({target:"Array",proto:!0,forced:!Xrt},{slice:function(t,e){var r,n,o,a=bu(this),i=qs(a),u=Pc(t,i),s=Pc(e===void 0?i:e,i);if(mm(a)&&(r=a.constructor,(u1(r)&&(r===W2||mm(r.prototype))||Me(r)&&(r=r[Zrt])===null)&&(r=void 0),r===W2||r===void 0))return SL(a,u,s);for(n=new(r===void 0?W2:r)(Jrt(s-u,0)),o=0;u<s;u++,o++)u in a&&Hp(n,o,a[u]);return n.length=o,n}});var Qrt=Uh.f,ST=Dt("".startsWith),qrt=Dt("".slice),tnt=Math.min,HL=C3("startsWith"),ent=!HL&&!!function(){var t=Qrt(String.prototype,"startsWith");return t&&!t.writable}();Ze({target:"String",proto:!0,forced:!ent&&!HL},{startsWith:function(t){var e=Pe(bo(this));x3(t);var r=Jc(tnt(arguments.length>1?arguments[1]:void 0,e.length)),n=Pe(t);return ST?ST(e,n,r):qrt(e,r,r+n.length)===n}});var wl=Object.assign,xT=Object.defineProperty,rnt=Dt([].concat),CT=!wl||we(function(){if(Rr&&wl({b:1},wl(xT({},"a",{enumerable:!0,get:function(){xT(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach(function(o){e[o]=o}),wl({},t)[r]!=7||oc(wl({},e)).join("")!=n})?function(t,e){for(var r=yu(t),n=arguments.length,o=1,a=QR.f,i=XR.f;n>o;)for(var u,s=a1(arguments[o++]),l=a?rnt(oc(s),a(s)):oc(s),c=l.length,f=0;c>f;)u=l[f++],Rr&&!ge(i,s,u)||(r[u]=s[u]);return r}:wl;Ze({target:"Object",stat:!0,forced:Object.assign!==CT},{assign:CT});var nnt=["props","attrs","style","dataset","on","hook"];function UL(t){var e=t.data,r=e===void 0?{}:e,n=t.children,o=n===void 0?[]:n;Object.keys(r).forEach(function(a){var i,u,s=r[a];if(a!=="key"){if(!nnt.includes(a)){if(a.startsWith("data-")){var l=a.slice(5);return l=DJ(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 r[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 r[a]}}else t.key=s}),o.length>0&&o.forEach(function(a){typeof a!="string"&&UL(a)})}var f4=[],_L={};function ont(t,e,r){return Rt(r.isInline(t)?"span":"div",null,e)}function DT(t,e){return e===void 0&&(e=!1),Rt("span",{"data-slate-string":!0},e?t+`
|
|
68
|
+
`:t)}function K2(t,e){return t===void 0&&(t=0),e===void 0&&(e=!1),Rt("span",{"data-slate-zero-width":e?"n":"z","data-slate-length":t},"\uFEFF",e?Rt("br",null):null)}function d4(t,e,r,n){return Wp.set(t,e),Ic.set(t,r),St.isElement(t)?function(o,a){var i,u=P.findKey(a,o),s=a.isInline(o),l=D.isVoid(a,o),c=RL(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 _L[x]||ont}(d);i=l?null:m.map(function(x,S){return d4(x,S,o,a)});var v=h(o,i,a);if(l){f["data-slate-void"]=!0;var y=s?"span":"div",g=le(st.texts(o),1),b=le(g[0],1)[0],E=Rt(y,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},d4(b,0,o,a));v=Rt(y,{style:{position:"relative"}},v,E),Wp.set(b,0),Ic.set(b,o)}return v.data==null&&(v.data={}),Object.assign(v.data,f),l||s||(v=function(x,S){var C=S;return f4.forEach(function(T){C=T(x,S)}),C}(o,v)),wo(function(){var x=e4(c);x!=null&&(t4.set(u,x),Cm.set(o,x),xm.set(x,o))}),v}(t,n):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,b,E,x,S){b===void 0&&(b=!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)?K2(st.string(x).length):C!==""||x.children[x.children.length-1]!==E||S.isInline(x)||D.string(S,A)!==""?C===""?K2():b&&C.slice(-1)===`
|
|
69
|
+
`?DT(C,!0):DT(C):K2(0,!0)}(h,v===f.length-1,o,a,i);return y=function(g,b){var E=b;return f4.forEach(function(x){E=x(g,E)}),E}(h,y),Rt("span",{"data-slate-leaf":!0},y)}),p=function(h){return"w-e-text-"+h}(u.id),m=Rt("span",{"data-slate-node":"text",id:p,key:u.id},d);return wo(function(){var h=e4(p);h!=null&&(t4.set(u,h),Cm.set(o,h),xm.set(h,o))}),m}(t,r,n)}function int(t,e){var r,n=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),Bc("div#"+h,{props:{contentEditable:!v}})}(o,i),l=e.children||[];s.children=l.map(function(h,v){var y=d4(h,v,e,e);return UL(y),y});var c=L9.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);n.append(f),t.$textArea=f,r=f[0],(p=KZ([XZ,qZ,eJ,ZZ,QZ,YZ]))(r,s),L9.set(t,!1),M9.set(t,p)}else{var d=V9.get(t),p=M9.get(t);if(d==null||p==null)return;r=d.elm,p(d,s)}if(r!=null||(r=e4(o))!=null){if((c?u:e.isFocused())&&r.focus({preventScroll:!0}),c){var m=V3(r);m&&gL.set(e,m)}M3.set(e,r),Cm.set(e,r),xm.set(r,e),V9.set(t,s)}}function OT(t){return typeof t=="object"&&t!=null&&t.nodeType===1}function AT(t,e){return(!e||t!=="hidden")&&t!=="visible"&&t!=="clip"}function Y2(t,e){if(t.clientHeight<t.scrollHeight||t.clientWidth<t.scrollWidth){var r=getComputedStyle(t,null);return AT(r.overflowY,e)||AT(r.overflowX,e)||function(n){var o=function(a){if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}}(n);return!!o&&(o.clientHeight<n.scrollHeight||o.clientWidth<n.scrollWidth)}(t)}return!1}function nv(t,e,r,n,o,a,i,u){return a<t&&i>e||a>t&&i<e?0:a<=t&&u<=r||i>=e&&u>=r?a-t-n:i>e&&u<r||a<t&&u>r?i-e+o:0}function TT(t,e){var r=window,n=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(!OT(t))throw new TypeError("Invalid target");for(var l=document.scrollingElement||document.documentElement,c=[],f=t;OT(f)&&s(f);){if((f=f.parentElement)===l){c.push(f);break}f!=null&&f===document.body&&Y2(f)&&!Y2(document.documentElement)||f!=null&&Y2(f,u)&&c.push(f)}for(var d=r.visualViewport?r.visualViewport.width:innerWidth,p=r.visualViewport?r.visualViewport.height:innerHeight,m=window.scrollX||pageXOffset,h=window.scrollY||pageYOffset,v=t.getBoundingClientRect(),y=v.height,g=v.width,b=v.top,E=v.right,x=v.bottom,S=v.left,C=o==="start"||o==="nearest"?b:o==="end"?x:b+y/2,T=a==="center"?S+g/2:a==="end"?E:S,A=[],k=0;k<c.length;k++){var M=c[k],$=M.getBoundingClientRect(),N=$.height,j=$.width,_=$.top,V=$.right,Z=$.bottom,nt=$.left;if(n==="if-needed"&&b>=0&&S>=0&&x<=p&&E<=d&&b>=_&&x<=Z&&S>=nt&&E<=V)return A;var it=getComputedStyle(M),G=parseInt(it.borderLeftWidth,10),O=parseInt(it.borderTopWidth,10),B=parseInt(it.borderRightWidth,10),I=parseInt(it.borderBottomWidth,10),K=0,et=0,Y="offsetWidth"in M?M.offsetWidth-M.clientWidth-G-B:0,ot="offsetHeight"in M?M.offsetHeight-M.clientHeight-O-I:0;if(l===M)K=o==="start"?C:o==="end"?C-p:o==="nearest"?nv(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:nv(m,m+d,d,G,B,m+T,m+T+g,g),K=Math.max(0,K+h),et=Math.max(0,et+m);else{K=o==="start"?C-_-O:o==="end"?C-Z+I+ot:o==="nearest"?nv(_,Z,N,O,I+ot,C,C+y,y):C-(_+N/2)+ot/2,et=a==="start"?T-nt-G:a==="center"?T-(nt+j/2)+Y/2:a==="end"?T-V+B+Y:nv(nt,V,j,G,B+Y,T,T+g,g);var mt=M.scrollLeft,bt=M.scrollTop;C+=bt-(K=Math.max(0,Math.min(bt+K,M.scrollHeight-N+ot))),T+=mt-(et=Math.max(0,Math.min(mt+et,M.scrollWidth-j+Y)))}A.push({el:M,top:K,left:et})}return A}function BT(t){return t===Object(t)&&Object.keys(t).length!==0}function io(t,e){return Ms(e)&&P.hasDOMNode(t,e,{editable:!0})}function PT(t,e){if(t.getConfig().readOnly)return!1;var r=Wl(t,e)&&P.toSlateNode(t,e);return D.isVoid(t,r)}function Wl(t,e){return Ms(e)&&P.hasDOMNode(t,e)}function GL(t,e,r){r===void 0&&(r=!1);var n=e.selection,o=e.getConfig(),a=P.findDocumentOrShadowRoot(e).getSelection();if(a&&(!t.isComposing||r)&&e.isFocused()){var i=a.type!=="None";if(n||i){var u=M3.get(e),s=!1;if(u.contains(a.anchorNode)&&u.contains(a.focusNode)&&(s=!0),i&&s&&n){var l=P.toSlateRange(e,a,{exactMatch:!0,suppressThrow:!0});if(l&&Q.equals(l,n)){var c=!0;if(Q.isCollapsed(n)){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(!n||P.hasRange(e,n)){t.isUpdatingSelection=!0;var h=n&&P.toDOMRange(e,n);if(h){Q.isBackward(n)?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,b){var E=!g.ownerDocument.documentElement.contains(g);if(BT(b)&&typeof b.behavior=="function")return b.behavior(E?[]:TT(g,b));if(!E){var x=function(S){return S===!1?{block:"end",inline:"nearest"}:BT(S)?S:{block:"start",inline:"nearest"}}(b);(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,$=A.left;k.scroll&&T?k.scroll({top:M,left:$,behavior:C}):(k.scrollTop=M,k.scrollLeft=$)})})(TT(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&&cp&&u.focus(),t.isUpdatingSelection=!1})}else e.selection=P.toSlateRange(e,a,{exactMatch:!1,suppressThrow:!1})}}}var X2=new WeakMap,FT=new WeakMap,ant={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"},unt={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"},snt={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},Ue=function(t){var e=ant[t],r=unt[t],n=snt[t],o=e&&Yb(e),a=r&&Yb(r),i=n&&Yb(n);return function(u){return!(!o||!o(u))||!!(r4&&a&&a(u))||!(r4||!i||!i(u))}},We={isBold:Ue("bold"),isCompose:Ue("compose"),isMoveBackward:Ue("moveBackward"),isMoveForward:Ue("moveForward"),isDeleteBackward:Ue("deleteBackward"),isDeleteForward:Ue("deleteForward"),isDeleteLineBackward:Ue("deleteLineBackward"),isDeleteLineForward:Ue("deleteLineForward"),isDeleteWordBackward:Ue("deleteWordBackward"),isDeleteWordForward:Ue("deleteWordForward"),isExtendBackward:Ue("extendBackward"),isExtendForward:Ue("extendForward"),isExtendLineBackward:Ue("extendLineBackward"),isExtendLineForward:Ue("extendLineForward"),isItalic:Ue("italic"),isMoveLineBackward:Ue("moveLineBackward"),isMoveLineForward:Ue("moveLineForward"),isMoveWordBackward:Ue("moveWordBackward"),isMoveWordForward:Ue("moveWordForward"),isRedo:Ue("redo"),isSplitBlock:Ue("splitBlock"),isTransposeCharacter:Ue("transposeCharacter"),isUndo:Ue("undo"),isTab:Ue("tab"),isSelectAll:Ue("selectAll")};function wr(t){t.preventDefault()}var lnt={beforeinput:function(t,e,r){var n=t,o=r.getConfig().readOnly;if(_f&&!o&&io(r,n.target)){var a=r.selection,i=n.inputType,u=n.dataTransfer||n.data||void 0;if(i!=="insertCompositionText"&&i!=="deleteCompositionText"){if(n.preventDefault(),!i.startsWith("delete")||i.startsWith("deleteBy")){var s=le(n.getTargetRanges(),1)[0];if(s){var l=P.toSlateRange(r,s,{exactMatch:!1,suppressThrow:!1});a&&Q.equals(a,l)||U.select(r,l)}}if(a&&Q.isExpanded(a)&&i.startsWith("delete")){var c=i.endsWith("Backward")?"backward":"forward";D.deleteFragment(r,{direction:c})}else switch(i){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":D.deleteFragment(r);break;case"deleteContent":case"deleteContentForward":D.deleteForward(r);break;case"deleteContentBackward":D.deleteBackward(r);break;case"deleteEntireSoftLine":D.deleteBackward(r,{unit:"line"}),D.deleteForward(r,{unit:"line"});break;case"deleteHardLineBackward":D.deleteBackward(r,{unit:"block"});break;case"deleteSoftLineBackward":D.deleteBackward(r,{unit:"line"});break;case"deleteHardLineForward":D.deleteForward(r,{unit:"block"});break;case"deleteSoftLineForward":D.deleteForward(r,{unit:"line"});break;case"deleteWordBackward":D.deleteBackward(r,{unit:"word"});break;case"deleteWordForward":D.deleteForward(r,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":D.insertBreak(r);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if(i==="insertFromPaste"&&!P2.get(r))break;u instanceof DataTransfer?r.insertData(u):typeof u=="string"&&D.insertText(r,u)}}}},blur:function(t,e,r){var n=t,o=e.isUpdatingSelection,a=e.latestElement;if(!r.getConfig().readOnly&&!o&&io(r,n.target)){var i=P.findDocumentOrShadowRoot(r);if(a!==i.activeElement){var u=n.relatedTarget;if(!(u===P.toDOMNode(r,r)||Bo(u)&&u.hasAttribute("data-slate-spacer"))){if(u!=null&&Ms(u)&&P.hasDOMNode(r,u)){var s=P.toSlateNode(r,u);if(St.isElement(s)&&!r.isVoid(s))return}if(Uf){var l=i.getSelection();l==null||l.removeAllRanges()}hs.delete(r)}}}},focus:function(t,e,r){var n=P.toDOMNode(r,r),o=P.findDocumentOrShadowRoot(r);e.latestElement=o.activeElement,cp&&t.target!==n?n.focus():hs.set(r,!0)},click:function(t,e,r){if(!r.getConfig().readOnly&&Wl(r,t.target)&&Ms(t.target)){var n=P.toSlateNode(r,t.target),o=P.findPath(r,n);if(D.hasPath(r,o)&&st.get(r,o)===n){var a=D.start(r,o),i=D.end(r,o),u=D.void(r,{at:a}),s=D.void(r,{at:i});if(u&&s&&z.equals(u[1],s[1])){var l=D.range(r,a);U.select(r,l)}}}},compositionstart:function(t,e,r){if(io(r,t.target)){var n=r.selection;if(n&&Q.isExpanded(n)&&(D.deleteFragment(r),Promise.resolve().then(function(){GL(e,r,!0)})),n&&Q.isCollapsed(n)){var o=P.toDOMRange(r,n).startContainer,a=o.textContent||"";X2.set(r,a),FT.set(r,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,r)}},compositionend:function(t,e,r){var n=t;if(io(r,n.target)){e.isComposing=!1;var o=r.selection;if(o!=null){(n4||cp)&&P.cleanExposedTexNodeInSelectionBlock(r);for(var a=Q.isBackward(o)?o.focus:o.anchor,i=le(D.node(r,[a.path[0]]),1)[0],u=0;u<a.path.length;u++){var s=le(D.node(r,a.path.slice(0,u+1)),1)[0];if(St.isElement(s)&&((Uf||cp)&&s.type==="link"||s.type==="code")){P.setNewKey(i);break}}var l=n.data;if(l){if(r.getConfig().maxLength){var c=P.getLeftLengthOfMaxLength(r);c<l.length?(P.toDOMRange(r,o).startContainer.textContent=X2.get(r)||"",c>0&&D.insertText(r,l.slice(0,c)),e.changeViewState()):D.insertText(r,l)}else D.insertText(r,l);Uf||setTimeout(function(){var f=r.selection;if(f!=null){var d=FT.get(r);d!=null&&P.toDOMRange(r,f).startContainer!==d&&(d.textContent=X2.get(r)||"")}})}}}},compositionupdate:function(t,e,r){io(r,t.target)&&(e.isComposing=!0)},keydown:function(t,e,r){var n=t,o=r.selection;if(!r.getConfig().readOnly&&!e.isComposing&&io(r,n.target)){if(function(i,u){var s=p1.get(i),l=s&&s.getMenus(),c=Sm.get(i),f=c&&c.getMenus(),d=so(so({},l),f);for(var p in d){var m=d[p],h=m.hotkey;if(h&&TJ(h,u)&&!m.isDisabled(i)){var v=m.getValue(i);m.exec(i,v)}}}(r,n),We.isTab(n))return wr(n),void r.handleTab();if(We.isRedo(n))return wr(n),void(typeof r.redo=="function"&&r.redo());if(We.isUndo(n))return wr(n),void(typeof r.undo=="function"&&r.undo());if(We.isMoveLineBackward(n))return wr(n),void U.move(r,{unit:"line",reverse:!0});if(We.isMoveLineForward(n))return wr(n),void U.move(r,{unit:"line"});if(We.isExtendLineBackward(n))return wr(n),void U.move(r,{unit:"line",edge:"focus",reverse:!0});if(We.isExtendLineForward(n))return wr(n),void U.move(r,{unit:"line",edge:"focus"});if(We.isMoveBackward(n))return wr(n),void(o&&Q.isCollapsed(o)?U.move(r,{reverse:!0}):U.collapse(r,{edge:"start"}));if(We.isMoveForward(n))return wr(n),void(o&&Q.isCollapsed(o)?U.move(r):U.collapse(r,{edge:"end"}));if(We.isMoveWordBackward(n))return wr(n),o&&Q.isExpanded(o)&&U.collapse(r,{edge:"focus"}),void U.move(r,{unit:"word",reverse:!0});if(We.isMoveWordForward(n))return wr(n),o&&Q.isExpanded(o)&&U.collapse(r,{edge:"focus"}),void U.move(r,{unit:"word"});if(We.isSelectAll(n))return wr(n),void r.selectAll();if(_f){if((n4||Uf)&&o&&(We.isDeleteBackward(n)||We.isDeleteForward(n))&&Q.isCollapsed(o)){var a=st.parent(r,o.anchor.path);if(St.isElement(a)&&D.isVoid(r,a)&&D.isInline(r,a))return n.preventDefault(),void U.delete(r,{unit:"block"})}}else{if(We.isBold(n)||We.isItalic(n)||We.isTransposeCharacter(n))return void wr(n);if(We.isSplitBlock(n))return wr(n),void D.insertBreak(r);if(We.isDeleteBackward(n))return wr(n),void(o&&Q.isExpanded(o)?D.deleteFragment(r,{direction:"backward"}):D.deleteBackward(r));if(We.isDeleteForward(n))return wr(n),void(o&&Q.isExpanded(o)?D.deleteFragment(r,{direction:"forward"}):D.deleteForward(r));if(We.isDeleteLineBackward(n))return wr(n),void(o&&Q.isExpanded(o)?D.deleteFragment(r,{direction:"backward"}):D.deleteBackward(r,{unit:"line"}));if(We.isDeleteLineForward(n))return wr(n),void(o&&Q.isExpanded(o)?D.deleteFragment(r,{direction:"forward"}):D.deleteForward(r,{unit:"line"}));if(We.isDeleteWordBackward(n))return wr(n),void(o&&Q.isExpanded(o)?D.deleteFragment(r,{direction:"backward"}):D.deleteBackward(r,{unit:"word"}));if(We.isDeleteWordForward(n))return wr(n),void(o&&Q.isExpanded(o)?D.deleteFragment(r,{direction:"forward"}):D.deleteForward(r,{unit:"word"}))}}},keypress:function(t,e,r){if(!_f&&!r.getConfig().readOnly&&io(r,t.target)){t.preventDefault();var n=t.key;D.insertText(r,n)}},copy:function(t,e,r){var n=t;if(io(r,n.target)){n.preventDefault();var o=n.clipboardData;o!=null&&r.setFragmentData(o)}},cut:function(t,e,r){var n=t,o=r.selection;if(!r.getConfig().readOnly&&io(r,n.target)){n.preventDefault();var a=n.clipboardData;if(a!=null&&(r.setFragmentData(a),o))if(Q.isExpanded(o))D.deleteFragment(r);else{var i=st.parent(r,o.anchor.path);D.isVoid(r,i)&&U.delete(r)}}},paste:function(t,e,r){P2.set(r,!0);var n=t;if(!r.getConfig().readOnly&&io(r,n.target)){var o=r.getConfig().customPaste;if(o&&o(r,n)===!1)return void P2.set(r,!1);if(!_f||function(i){return i.clipboardData&&i.clipboardData.getData("text/plain")!==""&&i.clipboardData.types.length===1}(n)){n.preventDefault();var a=n.clipboardData;a!=null&&r.insertData(a)}}},dragover:function(t,e,r){if(Wl(r,t.target)){var n=P.toSlateNode(r,t.target);D.isVoid(r,n)&&t.preventDefault()}},dragstart:function(t,e,r){var n=t;if(Wl(r,n.target)&&!r.getConfig().readOnly){var o=P.toSlateNode(r,n.target),a=P.findPath(r,o);if(D.isVoid(r,o)||D.void(r,{at:a,voids:!0})){var i=D.range(r,a);U.select(r,i)}var u=n.dataTransfer;u!=null&&(e.isDraggingInternally=!0,r.setFragmentData(u))}},dragend:function(t,e,r){var n=t;r.getConfig().readOnly||e.isDraggingInternally&&Wl(r,n.target)&&(e.isDraggingInternally=!1)},drop:function(t,e,r){var n=t,o=n.dataTransfer;if(!r.getConfig().readOnly&&Wl(r,n.target)&&o!=null&&!(_f&&Uf&&o.files.length>0)){n.preventDefault();var a=r.selection,i=P.findEventRange(r,n);U.select(r,i),e.isDraggingInternally&&(a&&U.delete(r,{at:a}),e.isDraggingInternally=!1),r.insertData(o),r.isFocused()||r.focus()}}},cnt=1,fnt=function(){function t(e){var r=this;this.id=cnt++,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=Is(function(){var i=r.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,hs.set(s,!0)):hs.delete(s),!h)return U.deselect(s);var v=h.anchorNode,y=h.focusNode,g=io(s,v)||PT(s,v),b=io(s,y)||PT(s,y);if(g&&b){var E=P.toSlateRange(s,h,{exactMatch:!1,suppressThrow:!1});U.select(s,E)}else U.deselect(s)}})(r,i)},100);var n=F(e);if(n.length===0)throw new Error("Cannot find textarea DOM by selector '"+e+"'");this.$box=n;var o=F('<div class="w-e-text-container"></div>');o.append(this.$progressBar),o.append(this.$maxLengthInfo),n.append(o);var a=F('<div class="w-e-scroll"></div>');o.append(a),this.$scroll=a,this.$textAreaContainer=o,wo(function(){var i=r.editorInstance,u=P.getWindow(i);u.document.addEventListener("selectionchange",r.onDOMSelectionChange),i.on("destroyed",function(){u.document.removeEventListener("selectionchange",r.onDOMSelectionChange)}),o.on("click",function(){return i.hidePanelOrModal()}),i.on("change",r.changeViewState.bind(r));var s=i.getConfig().onChange;s&&i.on("change",function(){return s(i)}),r.onFocusAndOnBlur(),i.on("change",r.changeMaxLengthInfo.bind(r)),r.bindEvent()})}return Object.defineProperty(t.prototype,"editorInstance",{get:function(){var e=Jx.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,r=this.$textArea,n=this.$scroll,o=this.editorInstance;r!=null&&(a3(lnt,function(a,i){r.on(i,function(u){a(u,e,o)})}),o.getConfig().scroll&&(n.css("overflow-y","auto"),n.on("scroll",Is(function(){o.emit("scroll")},100))))},t.prototype.onFocusAndOnBlur=function(){var e=this,r=this.editorInstance,n=r.getConfig(),o=n.onBlur,a=n.onFocus;this.latestEditorSelection=r.selection,r.on("change",function(){e.latestEditorSelection==null&&r.selection!=null?setTimeout(function(){return a&&a(r)}):e.latestEditorSelection!=null&&r.selection==null&&setTimeout(function(){return o&&o(r)}),e.latestEditorSelection=r.selection})},t.prototype.changeMaxLengthInfo=function(){var e=this.editorInstance,r=e.getConfig().maxLength;if(r){var n=r-P.getLeftLengthOfMaxLength(e);this.$maxLengthInfo[0].innerHTML=n+"/"+r}},t.prototype.changeProgress=function(e){var r=this.$progressBar;r.css("width",e+"%"),e>=100&&setTimeout(function(){r.hide(),r.css("width","0"),r.show()},1e3)},t.prototype.changeViewState=function(){var e=this,r=this.editorInstance;int(this,r),function(n,o){var a,i=o.getConfig().placeholder;if(i){var u=o.isEmpty();if(u&&!n.showPlaceholder&&!n.isComposing){if(n.$placeholder==null){var s=F('<div class="w-e-text-placeholder">'+i+"</div>");n.$textAreaContainer.append(s),n.$placeholder=s}return n.$placeholder.show(),void(n.showPlaceholder=!0)}!u&&n.showPlaceholder&&((a=n.$placeholder)===null||a===void 0||a.hide(),n.showPlaceholder=!1)}}(this,r),wo(function(){GL(e,r)})},t.prototype.destroy=function(){this.$textAreaContainer.remove()},t}();function J3(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&&J3(e)}function Q3(){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 WL(){return F('<div class="w-e-bar-divider"></div>')}function KL(t,e,r,n,o){if(o===void 0&&(o=!1),e){if(n){var a=r4?"cmd":"ctrl";n=n.replace("mod",a)}if(o)n&&(t.attr("data-tooltip",n),t.addClass("w-e-menu-tooltip-v5"),t.addClass("tooltip-right"));else{var i=n?r+`
|
|
79
|
+
`+n:r;t.attr("data-tooltip",i),t.addClass("w-e-menu-tooltip-v5")}}}I3("match",function(t,e,r){return[function(n){var o=bo(this),a=n==null?void 0:Rs(n,t);return a?ge(a,n,o):new RegExp(n)[t](Pe(o))},function(n){var o=gr(this),a=Pe(n),i=r(e,o,a);if(i.done)return i.value;if(!o.global)return _p(o,a);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=_p(o,a))!==null;){var f=Pe(s[0]);l[c]=f,f===""&&(o.lastIndex=j3(a,Jc(o.lastIndex),u)),c++}return c===0?null:l}]});var q3=function(){function t(e,r,n){var o=this;n===void 0&&(n=!1),this.$elem=F('<div class="w-e-bar-item"></div>'),this.$button=F('<button type="button"></button>'),this.disabled=!1,this.menu=r;var a=r.tag,i=r.width;if(a!=="button")throw new Error("Invalid tag '"+a+"', expected 'button'");var u=r.title,s=r.hotkey,l=s===void 0?"":s,c=r.iconSvg,f=c===void 0?"":c,d=this.$button;if(f){var p=F(f);J3(p),d.append(p)}else d.text(u);KL(d,f,u,l,n),n&&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),wo(function(){return o.init()})}return t.prototype.init=function(){var e=this;this.setActive(),this.setDisabled(),this.$button.on("click",function(r){r.preventDefault(),Un(e).hidePanelOrModal(),e.disabled||(e.exec(),e.onButtonClick())})},t.prototype.exec=function(){var e=Un(this),r=this.menu,n=r.getValue(e);r.exec(e,n)},t.prototype.setActive=function(){var e=Un(this),r=this.$button,n="active";this.menu.isActive(e)?r.addClass(n):r.removeClass(n)},t.prototype.setDisabled=function(){var e=Un(this),r=this.$button,n=this.menu.isDisabled(e);(e.selection==null||e.isDisabled())&&(n=!0),this.menu.alwaysEnable&&(n=!1);var o="disabled";n?r.addClass(o):r.removeClass(o),this.disabled=n},t.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()},t}(),dnt=function(t){function e(r,n,o){return o===void 0&&(o=!1),t.call(this,r,n,o)||this}return qc(e,t),e.prototype.onButtonClick=function(){},e}(q3),t6=function(){function t(e){this.isShow=!1,this.showTime=0,this.record(e)}return t.prototype.record=function(e){var r=qx.get(e);r==null&&(r=new Set,qx.set(e,r)),r.add(this),a0.set(this,e)},t.prototype.renderContent=function(e){var r=this.$elem;r.empty(),r.append(e);var n=this.genSelfElem();n&&r.append(n)},t.prototype.appendTo=function(e){var r=this.$elem;e.append(r)},t.prototype.show=function(){if(!this.isShow){this.showTime=Date.now(),this.$elem.show(),this.isShow=!0;var e=a0.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=a0.get(this);e&&e.emit("modalOrPanelHide")}},t}(),pnt=function(t){function e(r){var n=t.call(this,r)||this;return n.type="dropPanel",n.$elem=F('<div class="w-e-drop-panel"></div>'),n}return qc(e,t),e.prototype.genSelfElem=function(){return null},e}(t6),hnt=function(t){function e(r,n,o){o===void 0&&(o=!1);var a=t.call(this,r,n,o)||this;if(a.dropPanel=null,a.menu=n,n.showDropPanel){var i=Q3();a.$button.append(i)}return a}return qc(e,t),e.prototype.onButtonClick=function(){this.menu.showDropPanel&&this.handleDropPanel()},e.prototype.handleDropPanel=function(){var r=this.menu;if(r.getPanelContentElem!=null){var n=Un(this);if(this.dropPanel==null){var o=new pnt(n),a=r.getPanelContentElem(n);o.renderContent(a),o.appendTo(this.$elem),o.show(),this.dropPanel=o}else{var i=this.dropPanel;i.isShow?i.hide():(a=r.getPanelContentElem(n),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}(q3),gnt=function(t){function e(r,n){n===void 0&&(n=0);var o=t.call(this,r)||this;o.type="modal",o.$elem=F('<div class="w-e-modal"></div>'),o.width=0,n&&(o.width=n);var a=o.$elem;return a.on("click",function(i){return i.stopPropagation()}),a.on("keyup",function(i){i.code==="Escape"&&(o.hide(),r.restoreSelection())}),o}return qc(e,t),e.prototype.genSelfElem=function(){var r=this,n=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=a0.get(this);return n.on("click",function(){r.hide(),o==null||o.restoreSelection()}),n},e.prototype.setStyle=function(r){var n=this.width,o=this.$elem;o.attr("style",""),n&&o.css("width",n+"px"),o.css(r)},e}(t6);function Gn(t,e,r){var n=F('<label class="babel-container"></label>');n.append("<span>"+t+"</span>");var o=F('<input type="text" id="'+e+'" placeholder="'+(r||"")+'">');return n.append(o),[n[0],o[0]]}function tf(t,e){var r=F('<div class="button-container"></div>'),n=F('<button type="button" id="'+t+'">'+e+"</button>");return r.append(n),[r[0],n[0]]}var vnt=function(t){function e(r,n,o){o===void 0&&(o=!1);var a=t.call(this,r,n,o)||this;return a.$body=F("body"),a.modal=null,a.menu=n,a}return qc(e,t),e.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},e.prototype.getPosition=function(){var r=Un(this),n=this.menu.getModalPositionNode(r);return St.isElement(n)?Z3(r,n,"modal"):X3(r)},e.prototype.handleModal=function(){var r=Un(this),n=this.menu;if(this.modal==null){var o=new gnt(r,n.modalWidth);this.renderAndShowModal(o,!0),this.modal=o}else(o=this.modal).isShow?o.hide():this.renderAndShowModal(o,!1)},e.prototype.renderAndShowModal=function(r,n){n===void 0&&(n=!1);var o=Un(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(r.renderContent(l),s)r.setStyle({left:"0",right:"0"});else{var c=this.getPosition();r.setStyle(c)}n&&(s?r.appendTo(this.$body):r.appendTo(i.$textAreaContainer)),r.show(),s||c4(o,r.$elem),setTimeout(function(){o.blur()})}},e}(q3),mnt=function(t){function e(r,n){var o=t.call(this,r)||this;return o.type="selectList",o.$elem=F('<div class="w-e-select-list"></div>'),n&&o.$elem.css("width",n+"px"),o.$elem.on("click",function(a){a.stopPropagation()}),o}return qc(e,t),e.prototype.renderList=function(r){var n=this.$elem;n.empty();var o=F("<ul></ul>");r.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)}),n.append(o)},e.prototype.genSelfElem=function(){return null},e}(t6),ynt=function(){function t(e,r,n){var o=this;n===void 0&&(n=!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=r.tag,i=r.title,u=r.width,s=r.iconSvg,l=s===void 0?"":s,c=r.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),KL(d,l,i,f,n),this.$elem.append(d),this.menu=r,wo(function(){return o.init()})}return t.prototype.init=function(){var e=this;this.setSelectedValue(),this.$button.on("click",function(r){r.preventDefault(),Un(e).hidePanelOrModal(),e.trigger()})},t.prototype.trigger=function(){var e=this,r=Un(this);if(!r.isDisabled()&&!this.disabled){var n=this.menu;if(this.selectList==null){this.selectList=new mnt(r,n.selectPanelWidth);var o=this.selectList,a=n.getOptions(r);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=n.getOptions(r),o.renderList(a),o.show())}},t.prototype.onChange=function(e){var r=Un(this),n=this.menu;n.exec&&n.exec(r,e)},t.prototype.setSelectedValue=function(){var e=Un(this),r=this.menu,n=r.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}(r.getOptions(e),n.toString()),a=this.$button,i=Q3();a.empty(),a.text(o),a.append(i)},t.prototype.setDisabled=function(){var e=Un(this),r=this.menu.isDisabled(e),n=this.$button;(e.selection==null||e.isDisabled())&&(r=!0);var o="disabled";r?n.addClass(o):n.removeClass(o),this.disabled=r},t.prototype.changeMenuState=function(){this.setSelectedValue(),this.setDisabled()},t}(),kT=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 r=e.key,n=e.iconSvg,o=e.title,a=this.$elem,i=this.$button;if(n){var u=F(n);J3(u),i.append(u)}else i.text(o);i.attr("data-menu-key",r);var s=Q3();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 r=e.$elem;this.$container.append(r)},t.prototype.observe=function(e){var r=this.$container;e.observe(r[0],{childList:!0,subtree:!0,attributes:!0})},t.prototype.createObserver=function(){var e=this,r=this.$container,n=this.$button,o=new MutationObserver(function(){var a=r.find("button"),i=a.length;if(i!==0){var u=0;a.each(function(s){F(s).hasClass("disabled")&&u++}),o.disconnect(),u===i?n.addClass("disabled"):n.removeClass("disabled"),e.observe(o)}});return o},t}(),NT=new WeakMap;function Un(t){var e=L3.get(t);if(e==null)throw new Error("Can not get editor instance");return e}function YL(t,e,r){r===void 0&&(r=!1);var n=NT.get(e);if(n)return n;var o=e.tag;if(o==="button"){var a=e.showDropPanel,i=e.showModal;n=a?new hnt(t,e,r):i?new vnt(t,e,r):new dnt(t,e,r)}if(o==="select"&&(n=new ynt(t,e,r)),n==null)throw new Error("Invalid tag in menu "+JSON.stringify(e));return NT.set(e,n),n}function bnt(t,e){var r=t.selection;return r!=null&&!Q.isCollapsed(r)&&!P.getSelectedElems(t).some(function(n){if(t.isVoid(n))return!0;var o=n.type;return!!["pre","code","table"].includes(o)||void 0})&&!!vt.isText(e)}var wnt=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=CR(function(){var r=e.isShow,n=e.getSelectedNodeAndMenuKeys()||{},o=n.node,a=o===void 0?null:o,i=n.menuKeys,u=i===void 0?[]:i;a!=null&&e.changeItemsState(),a&&St.isElement(a)&&r&&e.isSamePath(a,e.prevSelectedNode)||(e.hideAndClean(),a!=null&&(e.registerItems(u),e.setPosition(a),e.show()),e.prevSelectedNode=a)},200),wo(function(){var r=e.getEditorInstance(),n=e.$elem;n.on("mousedown",function(a){return a.preventDefault()},{passive:!1}),P.getTextarea(r).$textAreaContainer.append(n),r.on("change",e.changeHoverbarState);var o=e.hideAndClean.bind(e);r.on("scroll",o),r.on("fullScreen",o),r.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,r=!1,n=window.innerHeight;n&&n>=360&&n-e[0].getBoundingClientRect().bottom<360&&(r=!0),r?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;wo(function(){e.hoverbarItems.forEach(function(r){r.changeMenuState()})})},t.prototype.registerItems=function(e){var r=this,n=this.$elem;e.forEach(function(o){if(o!=="|")r.registerSingleItem(o);else{var a=WL();n.append(a)}})},t.prototype.registerSingleItem=function(e){var r=this.getEditorInstance(),n=this.menus,o=n[e];if(o==null){var a=Kp[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(),n[e]=o}var i=YL(e,o);this.hoverbarItems.push(i),L3.set(i,r),this.$elem.append(i.$elem)},t.prototype.setPosition=function(e){var r=this.getEditorInstance(),n=this.$elem;if(n.attr("style",""),St.isElement(e)){var o=Z3(r,e,"bar");return n.css(o),void c4(r,n)}if(vt.isText(e))return o=X3(r),n.css(o),void c4(r,n);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 r=this.getHoverbarKeysConf(),n=null,o=[],a=function(u){var s=r[u],l=s.match,c=s.menuKeys,f=c===void 0?[]:c,d=l||function(h,v){return P.checkNodeType(v,u)},p=le(D.nodes(e,{match:function(h){return d(e,h)},universal:!0}),1),m=p[0];if(m!=null)return n=m[0],o=f,"break"};for(var i in r)if(a(i)==="break")break;return n==null||o.length===0?null:{node:n,menuKeys:o}},t.prototype.getEditorInstance=function(){var e=Qx.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,r=e===void 0?{}:e,n=r.text;return n&&n.match==null&&(n.match=bnt),r},t.prototype.isSamePath=function(e,r){if(e==null||r==null)return!1;var n=P.findPath(null,e),o=P.findPath(null,r);return z.equals(n,o)},t.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},t}();function XL(t,e,r,n){if(Wp.set(t,e),Ic.set(t,r),St.isElement(t)){var o=t.children;if((o===void 0?[]:o).forEach(function(u,s){return XL(u,s,t,n)}),D.isVoid(n,t)){var a=le(st.texts(t),1),i=le(a[0],1)[0];Wp.set(i,0),Ic.set(i,t)}}}function Ent(t){var e=t.selector,r=e===void 0?"":e,n=t.config,o=n===void 0?{}:n,a=t.content,i=t.html,u=t.plugins,s=u===void 0?[]:u,l=(y=>{var g=y,{apply:b}=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];Jl.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];Jl.withoutSaving(g,()=>{D.withoutNormalizing(g,()=>{var C=S.map(Ia.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,_)=>!(!_||j.type!=="set_selection"||_.type!=="set_selection"))(E,A),M=Jl.isSaving(g),$=Jl.isMerging(g);if(M==null&&(M=((j,_)=>j.type!=="set_selection"||j.properties!=null&&j.newProperties!=null)(E)),M){if($==null&&($=T!=null&&(x.length!==0||((j,_)=>j.type==="set_selection"||!(!_||j.type!=="insert_text"||_.type!=="insert_text"||j.offset!==_.offset+_.text.length||!z.equals(j.path,_.path))||!(!_||j.type!=="remove_text"||_.type!=="remove_text"||j.offset+j.text.length!==_.offset||!z.equals(j.path,_.path)))(E,A)||k)),T&&$)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=[])}b(E)},g})(function(y){var g=y,b=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?b(C.slice(0,T)):b(C))}else b(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($,N){var j=N.nodeType,_=N.nodeName;return N?j===ri.TEXT_NODE?$+(N.textContent||""):j===ri.ELEMENT_NODE?vT.has(_.toLowerCase())?$:$+(N.textContent||""):$:$},"");A<M.length||S(C,T)}}else S(C,T)},g}(function(y){var g=y;return g.on=function(b,E){var x=rv(g);if(x.on(b,E),b==="destroyed"&&ET(g,E),b!=="destroyed"){var S=function(){return x.off(b,E)};x.on("destroyed",S),ET(g,S)}},g.once=function(b,E){rv(g).once(b,E)},g.off=function(b,E){rv(g).off(b,E)},g.emit=function(b){for(var E=[],x=1;x<arguments.length;x++)E[x-1]=arguments[x];var S=rv(g);S.emit.apply(S,Yx([b],le(E))),b==="destroyed"&&(Krt(g).forEach(function(C){return S.off("destroyed",C)}),Yrt(g))},g}(function(y){var g=y;return g.select=function(b){U.select(g,b)},g.deselect=function(){var b=g.selection,E=P.findDocumentOrShadowRoot(g).getSelection();E&&E.rangeCount>0&&E.removeAllRanges(),b&&U.deselect(y)},g.move=function(b,E){E===void 0&&(E=!1),b&&(b<0||U.move(y,{distance:b,unit:"character",reverse:E}))},g.moveReverse=function(b){g.move(b,!0)},g.restoreSelection=function(){var b=B2.get(g);b!=null&&(g.focus(),U.select(g,b))},g.getSelectionPosition=function(){return X3(g)},g.getNodePosition=function(b){return Z3(g,b)},g.isSelectedAll=function(){var b=g.selection;if(b==null)return!1;var E=le(Q.edges(b),2),x=E[0],S=E[1],C=le(D.edges(g,[]),2),T=C[0],A=C[1];return!(!Zt.equals(x,T)||!Zt.equals(S,A))},g.selectAll=function(){var b=D.start(g,[]),E=D.end(g,[]);U.select(g,{anchor:b,focus:E})},g}(function(y){var g=y,b=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,$,N,j,_,V=[];switch(C.type){case"insert_text":case"remove_text":case"set_node":try{for(var Z=lo(D.levels(g,{at:C.path})),nt=Z.next();!nt.done;nt=Z.next()){var it=le(nt.value,2),G=it[0],O=it[1],B=P.findKey(g,G);V.push([O,B])}}catch(Mt){T={error:Mt}}finally{try{nt&&!nt.done&&(A=Z.return)&&A.call(Z)}finally{if(T)throw T.error}}break;case"insert_node":case"remove_node":case"merge_node":case"split_node":try{for(var I=lo(D.levels(g,{at:z.parent(C.path)})),K=I.next();!K.done;K=I.next()){var et=le(K.value,2);G=et[0],O=et[1],B=P.findKey(g,G),V.push([O,B])}}catch(Mt){k={error:Mt}}finally{try{K&&!K.done&&(M=I.return)&&M.call(I)}finally{if(k)throw k.error}}break;case"move_node":try{for(var Y=lo(D.levels(g,{at:z.common(z.parent(C.path),z.parent(C.newPath))})),ot=Y.next();!ot.done;ot=Y.next()){var mt=le(ot.value,2);G=mt[0],O=mt[1],B=P.findKey(g,G),V.push([O,B])}}catch(Mt){$={error:Mt}}finally{try{ot&&!ot.done&&(N=Y.return)&&N.call(Y)}finally{if($)throw $.error}}}x(C);try{for(var bt=lo(V),Pt=bt.next();!Pt.done;Pt=bt.next()){var tt=le(Pt.value,2);O=tt[0],B=tt[1],G=le(D.node(g,O),1)[0],u0.set(G,B)}}catch(Mt){j={error:Mt}}finally{try{Pt&&!Pt.done&&(_=bt.return)&&_.call(bt)}finally{if(j)throw j.error}}},g.deleteBackward=function(C){if(C!=="line")return S(C);if(y.selection&&Q.isCollapsed(y.selection)){var T=D.above(y,{match:function($){return D.isBlock(y,$)},at:y.selection});if(T){var A=le(T,2)[1],k=D.range(y,A,y.selection.anchor),M=function($,N){var j=D.range($,Q.end(N)),_=Array.from(D.positions($,{at:N})),V=0,Z=_.length,nt=Math.floor(Z/2);if(uT($,D.range($,_[V]),j))return D.range($,_[V],j);if(_.length<2)return D.range($,_[_.length-1],j);for(;nt!==_.length&&nt!==V;)uT($,D.range($,_[nt]),j)?Z=nt:V=nt,nt=Math.floor((V+Z)/2);return D.range($,_[Z],j)}(g,k);Q.isCollapsed(M)||U.delete(y,{at:M})}}},g.onChange=function(){var C=g.selection;C!=null&&B2.set(g,C),g.emit("change"),b()},g.handleTab=function(){g.insertText(" ")},g.getHtml=function(){var C=g.children;return(C===void 0?[]:C).map(function(T){return jL(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=[],$=D.nodes(g,{at:[],universal:!0});try{for(var N=lo($),j=N.next();!j.done;j=N.next()){var _=le(j.value,1)[0];if(St.isElement(_)&&(T?_.type.indexOf(C)>=0:_.type===C)){var V=RL(P.findKey(g,_).id);M.push(so(so({},_),{id:V}))}}}catch(Z){A={error:Z}}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 $=M[0];if($==null||vt.isText($)&&$.text==="")return!0}return!1},g.clear=function(){U.delete(g,{at:{anchor:D.start(g,[]),focus:D.end(g,[])}}),g.children.length===0&&U.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 _=j.nodeType,V=j.nodeName;return _===ri.TEXT_NODE||_===ri.ELEMENT_NODE&&!vT.has(V.toLowerCase())}),k.length!==0){var M=g.selection;if(M!=null){var $=null;P.isSelectedEmptyParagraph(g)&&!T&&($=[M.focus.path[0]]),A.setAttribute("hidden","true"),document.body.appendChild(A);var N=0;k.forEach(function(j){var _=j.nodeType,V=j.nodeName,Z=j.textContent,nt=Z===void 0?"":Z;if(_!==ri.TEXT_NODE)if(V!=="BR"){var it=j,G=!1;if(LL.includes(V.toLowerCase()))G=!0;else for(var O in Am)if(it.matches(O)){G=!0;break}if(G){var B=W3(F(it),g);return Array.isArray(B)?(B.forEach(function(K){return mT(g,K)}),N++):(mT(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(!nt||!nt.trim())return;g.insertNode({text:nt})}}),N&&$&&P.isEmptyPath(g,$)&&U.removeNodes(g,{at:$}),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=pT(g,C);if(U.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 b=[];for(var E in Kp)b.push(E);return b},g.getConfig=function(){var b=R9.get(g);if(b==null)throw new Error("Can not get editor config");return b},g.getMenuConfig=function(b){var E=g.getConfig().MENU_CONF;return(E===void 0?{}:E)[b]||{}},g.alert=function(b,E){E===void 0&&(E="info");var x=g.getConfig().customAlert;x&&x(b,E)},g}(function(y){var g=Irt(eX());return g.id="wangEditor-"+zet++,g.isDestroyed=!1,g.isFullScreen=!1,g.focus=function(b){if(P.toDOMNode(g,g).focus({preventScroll:!0}),hs.set(g,!0),b){var E=D.end(g,[]);U.select(g,E)}else{var x=B2.get(g);x?U.select(g,x):U.select(g,D.start(g,[]))}},g.isFocused=function(){return!!hs.get(g)},g.blur=function(){P.toDOMNode(g,g).blur(),U.deselect(g),hs.set(g,!1)},g.updateView=function(){P.getTextarea(g).changeViewState();var b=P.getToolbar(g);b&&b.changeToolbarState();var E=P.getHoverbar(g);E&&E.changeHoverbarState()},g.destroy=function(){if(!g.isDestroyed){var b=P.getTextarea(g);b.destroy(),Zx.delete(g),Jx.delete(b);var E=P.getToolbar(g);E&&(E.destroy(),p1.delete(g),R3.delete(E));var x=P.getHoverbar(g);x&&(x.destroy(),Sm.delete(g),Qx.delete(x)),g.isDestroyed=!0,g.emit("destroyed")}},g.scrollToElem=function(b){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("#"+b);if(x.length!==0){var S=x[0];if(!P.hasDOMNode(g,S))return E="Element (found by id is '"+b+"') is not in editor DOM",E+=`
|
|
83
|
+
通过 id '`+b+"' 找到的 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(b){b<1||P.getTextarea(g).changeProgress(b)},g.hidePanelOrModal=function(){var b=qx.get(g);b!=null&&b.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(b){return P.toDOMNode(g,b)},g.fullScreen=function(){if(!g.isFullScreen){var b=null,E=P.getToolbar(g);E&&(b=E.$box);var x=P.getTextarea(g).$box.parent();if(b&&b.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 b=P.getTextarea(g).$box.parent();setTimeout(function(){b.removeClass("w-e-full-screen-container"),g.isFullScreen=!1,g.emit("unFullScreen")},200)}},g.getEditableContainer=function(){return P.getTextarea(g).$textAreaContainer[0]},g}()))))));if(r&&function(y,g){return zL(y,"data-w-e-textarea",g)}(l,r))throw new Error("Repeated create editor by selector '"+r+"'");var c=function(y){y===void 0&&(y={});var g=DR(bL),b={},E=y.MENU_CONF,x=E===void 0?{}:E;return a3(g,function(S,C){b[C]=so(so({},S),x[C]||{})}),delete y.MENU_CONF,so({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:b,hoverbarKeys:{},customAlert:function(S,C){window.alert(C+`:
|
|
85
|
+
`+S)}},y)}(o);R9.set(l,c);var f=c.hoverbarKeys,d=f===void 0?{}:f;if(s.forEach(function(y){l=y(l)}),i!=null&&(l.children=pT(l,i)),a&&a.length&&(l.children=a),l.children.length===0&&(l.children=[{type:"paragraph",children:[{text:""}]}]),P.normalizeContent(l),r){var p=new fnt(r);Zx.set(l,p),Jx.set(p,l),p.changeViewState(),wo(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 wnt,Qx.set(m,l),Sm.set(l,m)),l.on("change",function(){l.hidePanelOrModal()}),l.on("scroll",function(){l.hidePanelOrModal()})}else l.children.forEach(function(y,g){return XL(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)}),wo(function(){return l.emit("created")}),l}var Snt=l1("splice"),xnt=at.TypeError,Cnt=Math.max,Dnt=Math.min;Ze({target:"Array",proto:!0,forced:!Snt},{splice:function(t,e){var r,n,o,a,i,u,s=yu(this),l=qs(s),c=Pc(t,l),f=arguments.length;if(f===0?r=n=0:f===1?(r=0,n=l-c):(r=f-2,n=Dnt(Cnt(Hh(e),0),l-c)),l+r-n>9007199254740991)throw xnt("Maximum allowed length exceeded");for(o=WR(s,n),a=0;a<n;a++)(i=c+a)in s&&Hp(o,a,s[i]);if(o.length=n,r<n){for(a=c;a<l-n;a++)u=a+r,(i=a+n)in s?s[u]=s[i]:delete s[u];for(a=l;a>l-n+r;a--)delete s[a-1]}else if(r>n)for(a=l-n;a>c;a--)u=a+r-1,(i=a+n-1)in s?s[u]=s[i]:delete s[u];for(a=0;a<r;a++)s[a+c]=arguments[a+2];return s.length=l-n+r,o}});var Ont=function(){function t(e,r){var n=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=CR(function(){n.toolbarItems.forEach(function(i){i.changeMenuState()})},200),this.config=r;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),wo(function(){n.registerItems(),n.changeToolbarState(),n.getEditorInstance().on("change",n.changeToolbarState)})}return t.prototype.getMenus=function(){return this.menus},t.prototype.getConfig=function(){return this.config},t.prototype.registerItems=function(){var e=this,r="",n=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=DR(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||r==="|")return;var v=WL();return n.append(v),void(r=m)}if(typeof m=="string")return e.registerSingleItem(m,e),void(r=m);e.registerGroup(m),r="group"})},t.prototype.registerGroup=function(e){var r=this,n=this.$toolbar,o=function(l){return new kT(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)||r.registerSingleItem(l,o)}),n.append(o.$elem)},t.prototype.registerSingleItem=function(e,r){var n=this.getEditorInstance(),o=r instanceof kT,a=this.menus,i=a[e];if(i==null){var u=Kp[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=YL(e,i,o);this.toolbarItems.push(s),L3.set(s,n),o?r.appendBarItem(s):r.$toolbar.append(s.$elem)},t.prototype.getEditorInstance=function(){var e=R3.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}(),Ant=Zc.EXISTS,Tnt=Uo.f,ZL=Function.prototype,Bnt=Dt(ZL.toString),JL=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Pnt=Dt(JL.exec);function QL(t){var e=t.server,r=e===void 0?"":e,n=t.fieldName,o=n===void 0?"":n,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,b=t.onBeforeUpload,E=b===void 0?function(N){return N}:b,x=t.onSuccess,S=x===void 0?function(N,j){}:x,C=t.onError,T=C===void 0?function(N,j,_){console.error(N.name+" upload error",j,_)}:C,A=t.onProgress,k=A===void 0?function(N){}:A;if(!r)throw new Error(`Cannot get upload server address
|
|
88
|
+
没有配置上传地址`);if(!o)throw new Error(`Cannot get fieldName
|
|
89
|
+
没有配置 fieldName`);var M=r;d&&(M=function(N,j){var _=le(N.split("#"),2),V=_[0],Z=_[1],nt=[];a3(j,function(G,O){nt.push(O+"="+G)});var it=nt.join("&");return V=V.indexOf("?")>0?V+"&"+it:V+"?"+it,Z?V+"#"+Z:V}(M,c));var $=new _d({onBeforeUpload:E,restrictions:{maxFileSize:i,maxNumberOfFiles:s},meta:c}).use(qQ,{endpoint:M,headers:m,formData:!0,fieldName:o,bundle:!0,withCredentials:v,timeout:g});return $.on("upload-success",function(N,j){var _=j.body,V=_===void 0?{}:_;try{S(N,V)}catch(Z){console.error("wangEditor upload file - onSuccess error",Z)}$.removeFile(N.id)}),$.on("progress",function(N){N<1||k(N)}),$.on("upload-error",function(N,j,_){try{T(N,j,_)}catch(V){console.error("wangEditor upload file - onError error",V)}$.removeFile(N.id)}),$.on("restriction-failed",function(N,j){try{T(N,j)}catch(_){console.error("wangEditor upload file - onError error",_)}$.removeFile(N.id)}),$}function Ua(t){return Ua=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},Ua(t)}function Fnt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function xr(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?Object(arguments[e]):{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&n.push.apply(n,Object.getOwnPropertySymbols(r).filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable})),n.forEach(function(o){Fnt(t,o,r[o])})}return t}function qi(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function IT(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function ta(t,e,r){return e&&IT(t.prototype,e),r&&IT(t,r),t}function Vs(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Xp(t,e){if(e&&(Ua(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 jc(t){return jc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},jc(t)}function p4(t,e){return p4=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},p4(t,e)}function h1(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&&p4(t,e)}Rr&&!Ant&&Tnt(ZL,"name",{configurable:!0,get:function(){try{return Pnt(JL,Bnt(this))[1]}catch{return""}}});var knt={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)}},$i=new(function(){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};qi(this,t),this.init(e,r)}return ta(t,[{key:"init",value:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=e||knt,this.options=r,this.debug=r.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return this.forward(r,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return this.forward(r,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return this.forward(r,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,r,n,o){return o&&!this.debug?null:(typeof e[0]=="string"&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[r](e))}},{key:"create",value:function(e){return new t(this.logger,xr({},{prefix:"".concat(this.prefix,":").concat(e,":")},this.options))}}]),t}()),su=function(){function t(){qi(this,t),this.observers={}}return ta(t,[{key:"on",value:function(e,r){var n=this;return e.split(" ").forEach(function(o){n.observers[o]=n.observers[o]||[],n.observers[o].push(r)}),this}},{key:"off",value:function(e,r){this.observers[e]&&(r?this.observers[e]=this.observers[e].filter(function(n){return n!==r}):delete this.observers[e])}},{key:"emit",value:function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];if(this.observers[e]){var a=[].concat(this.observers[e]);a.forEach(function(u){u.apply(void 0,n)})}if(this.observers["*"]){var i=[].concat(this.observers["*"]);i.forEach(function(u){u.apply(u,[e].concat(n))})}}}]),t}();function Xf(){var t,e,r=new Promise(function(n,o){t=n,e=o});return r.resolve=t,r.reject=e,r}function jT(t){return t==null?"":""+t}function Nnt(t,e,r){t.forEach(function(n){e[n]&&(r[n]=e[n])})}function e6(t,e,r){function n(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=n(a.shift());!t[i]&&r&&(t[i]=new r),t=Object.prototype.hasOwnProperty.call(t,i)?t[i]:{}}return o()?{}:{obj:t,k:n(a.shift())}}function RT(t,e,r){var n=e6(t,e,Object);n.obj[n.k]=r}function Bm(t,e){var r=e6(t,e),n=r.obj,o=r.k;if(n)return n[o]}function LT(t,e,r){var n=Bm(t,r);return n!==void 0?n:Bm(e,r)}function qL(t,e,r){for(var n in e)n!=="__proto__"&&n!=="constructor"&&(n in t?typeof t[n]=="string"||t[n]instanceof String||typeof e[n]=="string"||e[n]instanceof String?r&&(t[n]=e[n]):qL(t[n],e[n],r):t[n]=e[n]);return t}function El(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Int={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function jnt(t){return typeof t=="string"?t.replace(/[&<>"'\/]/g,function(e){return Int[e]}):t}var g1=typeof window<"u"&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function tM(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(t){if(t[e])return t[e];for(var n=e.split(r),o=t,a=0;a<n.length;++a){if(!o||typeof o[n[a]]=="string"&&a+1<n.length)return;if(o[n[a]]===void 0){for(var i=2,u=n.slice(a,a+i).join(r),s=o[u];s===void 0&&n.length>a+i;)i++,s=o[u=n.slice(a,a+i).join(r)];if(s===void 0)return;if(typeof s=="string")return s;if(u&&typeof s[u]=="string")return s[u];var l=n.slice(a+i).join(r);return l?tM(s,l,r):void 0}o=o[n[a]]}return o}}var Rnt=function(t){function e(r){var n,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return qi(this,e),n=Xp(this,jc(e).call(this)),g1&&su.call(Vs(n)),n.data=r||{},n.options=o,n.options.keySeparator===void 0&&(n.options.keySeparator="."),n.options.ignoreJSONStructure===void 0&&(n.options.ignoreJSONStructure=!0),n}return h1(e,su),ta(e,[{key:"addNamespaces",value:function(r){this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}},{key:"removeNamespaces",value:function(r){var n=this.options.ns.indexOf(r);n>-1&&this.options.ns.splice(n,1)}},{key:"getResource",value:function(r,n,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=[r,n];o&&typeof o!="string"&&(s=s.concat(o)),o&&typeof o=="string"&&(s=s.concat(i?o.split(i):o)),r.indexOf(".")>-1&&(s=r.split("."));var l=Bm(this.data,s);return l||!u||typeof o!="string"?l:tM(this.data&&this.data[r]&&this.data[r][n],o,i)}},{key:"addResource",value:function(r,n,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=[r,n];o&&(s=s.concat(u?o.split(u):o)),r.indexOf(".")>-1&&(a=n,n=(s=r.split("."))[1]),this.addNamespaces(n),RT(this.data,s,a),i.silent||this.emit("added",r,n,o,a)}},{key:"addResources",value:function(r,n,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(r,n,i,o[i],{silent:!0});a.silent||this.emit("added",r,n,o)}},{key:"addResourceBundle",value:function(r,n,o,a,i){var u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},s=[r,n];r.indexOf(".")>-1&&(a=o,o=n,n=(s=r.split("."))[1]),this.addNamespaces(n);var l=Bm(this.data,s)||{};a?qL(l,o,i):l=xr({},l,o),RT(this.data,s,l),u.silent||this.emit("added",r,n,o)}},{key:"removeResourceBundle",value:function(r,n){this.hasResourceBundle(r,n)&&delete this.data[r][n],this.removeNamespaces(n),this.emit("removed",r,n)}},{key:"hasResourceBundle",value:function(r,n){return this.getResource(r,n)!==void 0}},{key:"getResourceBundle",value:function(r,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?xr({},{},this.getResource(r,n)):this.getResource(r,n)}},{key:"getDataByLanguage",value:function(r){return this.data[r]}},{key:"toJSON",value:function(){return this.data}}]),e}(),eM={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,e,r,n,o){var a=this;return t.forEach(function(i){a.processors[i]&&(e=a.processors[i].process(e,r,n,o))}),e}},MT={},VT=function(t){function e(r){var n,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return qi(this,e),n=Xp(this,jc(e).call(this)),g1&&su.call(Vs(n)),Nnt(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r,Vs(n)),n.options=o,n.options.keySeparator===void 0&&(n.options.keySeparator="."),n.logger=$i.create("translator"),n}return h1(e,su),ta(e,[{key:"changeLanguage",value:function(r){r&&(this.language=r)}},{key:"exists",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(r==null)return!1;var o=this.resolve(r,n);return o&&o.res!==void 0}},{key:"extractFromKey",value:function(r,n){var o=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;o===void 0&&(o=":");var a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,i=n.ns||this.options.defaultNS;if(o&&r.indexOf(o)>-1){var u=r.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:r,namespaces:i};var s=r.split(o);(o!==a||o===a&&this.options.ns.indexOf(s[0])>-1)&&(i=s.shift()),r=s.join(a)}return typeof i=="string"&&(i=[i]),{key:r,namespaces:i}}},{key:"translate",value:function(r,n,o){var a=this;if(Ua(n)!=="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),r==null)return"";Array.isArray(r)||(r=[String(r)]);var i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,u=this.extractFromKey(r[r.length-1],n),s=u.key,l=u.namespaces,c=l[l.length-1],f=n.lng||this.language,d=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&f.toLowerCase()==="cimode"){if(d){var p=n.nsSeparator||this.options.nsSeparator;return c+p+s}return s}var m=this.resolve(r,n),h=m&&m.res,v=m&&m.usedKey||s,y=m&&m.exactUsedKey||s,g=Object.prototype.toString.apply(h),b=["[object Number]","[object Function]","[object RegExp]"],E=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,x=!this.i18nFormat||this.i18nFormat.handleAsObject,S=typeof h!="string"&&typeof h!="boolean"&&typeof h!="number";if(x&&h&&S&&b.indexOf(g)<0&&(typeof E!="string"||g!=="[object Array]")){if(!n.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,xr({},n,{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,xr({},n,{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,r,n,o));else{var $=!1,N=!1,j=n.count!==void 0&&typeof n.count!="string",_=e.hasDefaultValue(n),V=j?this.pluralResolver.getSuffix(f,n.count):"",Z=n["defaultValue".concat(V)]||n.defaultValue;!this.isValidLookup(h)&&_&&($=!0,h=Z),this.isValidLookup(h)||(N=!0,h=s);var nt=n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,it=nt&&N?void 0:h,G=_&&Z!==h&&this.options.updateMissing;if(N||$||G){if(this.logger.log(G?"updateKey":"missingKey",f,c,s,G?Z:h),i){var O=this.resolve(s,xr({},n,{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,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&I&&I[0])for(var K=0;K<I.length;K++)B.push(I[K]);else this.options.saveMissingTo==="all"?B=this.languageUtils.toResolveHierarchy(n.lng||this.language):B.push(n.lng||this.language);var et=function(Y,ot,mt){a.options.missingKeyHandler?a.options.missingKeyHandler(Y,c,ot,G?mt:it,G,n):a.backendConnector&&a.backendConnector.saveMissing&&a.backendConnector.saveMissing(Y,c,ot,G?mt:it,G,n),a.emit("missingKey",Y,c,ot,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&j?B.forEach(function(Y){a.pluralResolver.getSuffixes(Y).forEach(function(ot){et([Y],s+ot,n["defaultValue".concat(ot)]||Z)})}):et(B,s,Z))}h=this.extendTranslation(h,r,n,m,o),N&&h===s&&this.options.appendNamespaceToMissingKey&&(h="".concat(c,":").concat(s)),(N||$)&&this.options.parseMissingKeyHandler&&(h=this.options.parseMissingKeyHandler(h))}return h}},{key:"extendTranslation",value:function(r,n,o,a,i){var u=this;if(this.i18nFormat&&this.i18nFormat.parse)r=this.i18nFormat.parse(r,o,a.usedLng,a.usedNS,a.usedKey,{resolved:a});else if(!o.skipInterpolation){o.interpolation&&this.interpolator.init(xr({},o,{interpolation:xr({},this.options.interpolation,o.interpolation)}));var s,l=o.interpolation&&o.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(l){var c=r.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=xr({},this.options.interpolation.defaultVariables,f)),r=this.interpolator.interpolate(r,f,o.lng||this.language,o),l){var d=r.match(this.interpolator.nestingRegexp);s<(d&&d.length)&&(o.nest=!1)}o.nest!==!1&&(r=this.interpolator.nest(r,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(n[0])),null):u.translate.apply(u,v.concat([n]))},o)),o.interpolation&&this.interpolator.reset()}var p=o.postProcess||this.options.postProcess,m=typeof p=="string"?[p]:p;return r!=null&&m&&m.length&&o.applyPostProcessor!==!1&&(r=eM.handle(m,r,n,this.options&&this.options.postProcessPassResolved?xr({i18nResolved:a},o):o,this)),r}},{key:"resolve",value:function(r){var n,o,a,i,u,s=this,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return typeof r=="string"&&(r=[r]),r.forEach(function(c){if(!s.isValidLookup(n)){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(n)||(u=y,!MT["".concat(v[0],"-").concat(y)]&&s.utils&&s.utils.hasLoadedNamespace&&!s.utils.hasLoadedNamespace(u)&&(MT["".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(n)){i=g;var b,E,x=d,S=[x];for(s.i18nFormat&&s.i18nFormat.addLookupKeys?s.i18nFormat.addLookupKeys(S,d,g,y,l):(m&&(b=s.pluralResolver.getSuffix(g,l.count)),m&&h&&S.push(x+b),h&&S.push(x+="".concat(s.options.contextSeparator).concat(l.context)),m&&S.push(x+=b));E=S.pop();)s.isValidLookup(n)||(a=E,n=s.getResource(g,y,E,l))}}))})}}),{res:n,usedKey:o,exactUsedKey:a,usedLng:i,usedNS:u}}},{key:"isValidLookup",value:function(r){return!(r===void 0||!this.options.returnNull&&r===null||!this.options.returnEmptyString&&r==="")}},{key:"getResource",value:function(r,n,o){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(r,n,o,a):this.resourceStore.getResource(r,n,o,a)}}],[{key:"hasDefaultValue",value:function(r){var n="defaultValue";for(var o in r)if(Object.prototype.hasOwnProperty.call(r,o)&&n===o.substring(0,n.length)&&r[o]!==void 0)return!0;return!1}}]),e}();function Z2(t){return t.charAt(0).toUpperCase()+t.slice(1)}var Lnt=function(){function t(e){qi(this,t),this.options=e,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=$i.create("languageUtils")}return ta(t,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var r=e.split("-");return r.length===2?null:(r.pop(),r[r.length-1].toLowerCase()==="x"?null:this.formatLanguageCode(r.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var r=e.split("-");return this.formatLanguageCode(r[0])}},{key:"formatLanguageCode",value:function(e){if(typeof e=="string"&&e.indexOf("-")>-1){var r=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map(function(o){return o.toLowerCase()}):n.length===2?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=Z2(n[1].toLowerCase()))):n.length===3&&(n[0]=n[0].toLowerCase(),n[1].length===2&&(n[1]=n[1].toUpperCase()),n[0]!=="sgn"&&n[2].length===2&&(n[2]=n[2].toUpperCase()),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=Z2(n[1].toLowerCase())),r.indexOf(n[2].toLowerCase())>-1&&(n[2]=Z2(n[2].toLowerCase()))),n.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 r,n=this;return e?(e.forEach(function(o){if(!r){var a=n.formatLanguageCode(o);n.options.supportedLngs&&!n.isSupportedCode(a)||(r=a)}}),!r&&this.options.supportedLngs&&e.forEach(function(o){if(!r){var a=n.getLanguagePartFromCode(o);if(n.isSupportedCode(a))return r=a;r=n.options.supportedLngs.find(function(i){if(i.indexOf(a)===0)return i})}}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r):null}},{key:"getFallbackCodes",value:function(e,r){if(!e)return[];if(typeof e=="function"&&(e=e(r)),typeof e=="string"&&(e=[e]),Object.prototype.toString.apply(e)==="[object Array]")return e;if(!r)return e.default||[];var n=e[r];return n||(n=e[this.getScriptPartFromCode(r)]),n||(n=e[this.formatLanguageCode(r)]),n||(n=e[this.getLanguagePartFromCode(r)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,r){var n=this,o=this.getFallbackCodes(r||this.options.fallbackLng||[],e),a=[],i=function(u){u&&(n.isSupportedCode(u)?a.push(u):n.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(n.formatLanguageCode(u))}),a}}]),t}(),Mnt=[{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}],Vnt={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 $nt(){var t={};return Mnt.forEach(function(e){e.lngs.forEach(function(r){t[r]={numbers:e.nr,plurals:Vnt[e.fc]}})}),t}var znt=function(){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};qi(this,t),this.languageUtils=e,this.options=r,this.logger=$i.create("pluralResolver"),this.rules=$nt()}return ta(t,[{key:"addRule",value:function(e,r){this.rules[e]=r}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var r=this.getRule(e);return r&&r.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,r){return this.getSuffixes(e).map(function(n){return r+n})}},{key:"getSuffixes",value:function(e){var r=this,n=this.getRule(e);return n?n.numbers.map(function(o){return r.getSuffix(e,o)}):[]}},{key:"getSuffix",value:function(e,r){var n=this,o=this.getRule(e);if(o){var a=o.noAbs?o.plurals(r):o.plurals(Math.abs(r)),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 n.options.prepend&&i.toString()?n.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}(),Hnt=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};qi(this,t),this.logger=$i.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(r){return r},this.init(e)}return ta(t,[{key:"init",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var r=e.interpolation;this.escape=r.escape!==void 0?r.escape:jnt,this.escapeValue=r.escapeValue===void 0||r.escapeValue,this.useRawValueToEscape=r.useRawValueToEscape!==void 0&&r.useRawValueToEscape,this.prefix=r.prefix?El(r.prefix):r.prefixEscaped||"{{",this.suffix=r.suffix?El(r.suffix):r.suffixEscaped||"}}",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||",",this.unescapePrefix=r.unescapeSuffix?"":r.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":r.unescapeSuffix||"",this.nestingPrefix=r.nestingPrefix?El(r.nestingPrefix):r.nestingPrefixEscaped||El("$t("),this.nestingSuffix=r.nestingSuffix?El(r.nestingSuffix):r.nestingSuffixEscaped||El(")"),this.nestingOptionsSeparator=r.nestingOptionsSeparator?r.nestingOptionsSeparator:r.nestingOptionsSeparator||",",this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.alwaysFormat=r.alwaysFormat!==void 0&&r.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 r="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(r,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,r,n,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=LT(r,l,h);return s.alwaysFormat?s.format(v,void 0,n,xr({},o,r,{interpolationkey:h})):v}var y=h.split(s.formatSeparator),g=y.shift().trim(),b=y.join(s.formatSeparator).trim();return s.format(LT(r,l,g),b,n,xr({},o,r,{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=jT(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,r){var n,o,a=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=xr({},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=xr({},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;n=this.nestingRegexp.exec(e);){var l=[],c=!1;if(n[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(n[1])){var f=n[1].split(this.formatSeparator).map(function(d){return d.trim()});n[1]=f.shift(),l=f,c=!0}if((o=r(s.call(this,n[1].trim(),u),u))&&n[0]===e&&typeof o!="string")return o;typeof o!="string"&&(o=jT(o)),o||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),o=""),c&&(o=l.reduce(function(d,p){return a.format(d,p,i.lng,xr({},i,{interpolationkey:n[1].trim()}))},o.trim())),e=e.replace(n[0],o),this.regexp.lastIndex=0}return e}}]),t}(),Unt=function(t){function e(r,n,o){var a,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return qi(this,e),a=Xp(this,jc(e).call(this)),g1&&su.call(Vs(a)),a.backend=r,a.store=n,a.services=o,a.languageUtils=o.languageUtils,a.options=i,a.logger=$i.create("backendConnector"),a.state={},a.queue=[],a.backend&&a.backend.init&&a.backend.init(o,i.backend,i),a}return h1(e,su),ta(e,[{key:"queueLoad",value:function(r,n,o,a){var i=this,u=[],s=[],l=[],c=[];return r.forEach(function(f){var d=!0;n.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(r,n,o){var a=r.split("|"),i=a[0],u=a[1];n&&this.emit("failedLoading",i,u,n),o&&this.store.addResourceBundle(i,u,o),this.state[r]=n?-1:2;var s={};this.queue.forEach(function(l){(function(c,f,d,p){var m=e6(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,r),n&&l.errors.push(n),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(r,n,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 r.length?this.backend[o](r,n,function(l,c){l&&c&&i<5?setTimeout(function(){a.read.call(a,r,n,o,i+1,2*u,s)},u):s(l,c)}):s(null,{})}},{key:"prepareLoading",value:function(r,n){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 r=="string"&&(r=this.languageUtils.toResolveHierarchy(r)),typeof n=="string"&&(n=[n]);var u=this.queueLoad(r,n,a,i);if(!u.toLoad.length)return u.pending.length||i(),null;u.toLoad.forEach(function(s){o.loadOne(s)})}},{key:"load",value:function(r,n,o){this.prepareLoading(r,n,{},o)}},{key:"reload",value:function(r,n,o){this.prepareLoading(r,n,{reload:!0},o)}},{key:"loadOne",value:function(r){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=r.split("|"),i=a[0],u=a[1];this.read(i,u,"read",void 0,void 0,function(s,l){s&&n.logger.warn("".concat(o,"loading namespace ").concat(u," for language ").concat(i," failed"),s),!s&&l&&n.logger.log("".concat(o,"loaded namespace ").concat(u," for language ").concat(i),l),n.loaded(r,s,l)})}},{key:"saveMissing",value:function(r,n,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(n)?this.logger.warn('did not save key "'.concat(o,'" as the namespace "').concat(n,'" 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(r,n,o,a,null,xr({},u,{isUpdate:i})),r&&r[0]&&this.store.addResource(r[0],n,o,a))}}]),e}();function _nt(){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(Ua(t[1])==="object"&&(e=t[1]),typeof t[1]=="string"&&(e.defaultValue=t[1]),typeof t[2]=="string"&&(e.tDescription=t[2]),Ua(t[2])==="object"||Ua(t[3])==="object"){var r=t[3]||t[2];Object.keys(r).forEach(function(n){e[n]=r[n]})}return e},interpolation:{escapeValue:!0,format:function(t,e,r,n){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function $T(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 ov(){}var Gnt=function(t){function e(){var r,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(qi(this,e),r=Xp(this,jc(e).call(this)),g1&&su.call(Vs(r)),r.options=$T(n),r.services={},r.logger=$i,r.modules={external:[]},o&&!r.isInitialized&&!n.isClone){if(!r.options.initImmediate)return r.init(n,o),Xp(r,Vs(r));setTimeout(function(){r.init(n,o)},0)}return r}return h1(e,su),ta(e,[{key:"init",value:function(){var r=this,n=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 n=="function"&&(o=n,n={}),n.whitelist&&!n.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),n.nonExplicitWhitelist&&!n.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=xr({},_nt(),this.options,$T(n)),this.format=this.options.interpolation.format,o||(o=ov),!this.options.isClone){this.modules.logger?$i.init(a(this.modules.logger),this.options):$i.init(null,this.options);var i=new Lnt(this.options);this.store=new Rnt(this.options.resources,this.options);var u=this.services;u.logger=$i,u.resourceStore=this.store,u.languageUtils=i,u.pluralResolver=new znt(i,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u.interpolator=new Hnt(this.options),u.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},u.backendConnector=new Unt(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];r.emit.apply(r,[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 VT(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];r.emit.apply(r,[p].concat(h))}),this.modules.external.forEach(function(p){p.init&&p.init(r)})}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){r[p]=function(){var m;return(m=r.store)[p].apply(m,arguments)}});var c=["addResource","addResources","addResourceBundle","removeResourceBundle"];c.forEach(function(p){r[p]=function(){var m;return(m=r.store)[p].apply(m,arguments),r}});var f=Xf(),d=function(){var p=function(m,h){r.isInitialized&&!r.initializedStoreOnce&&r.logger.warn("init: i18next is already initialized. You should call init just once!"),r.isInitialized=!0,r.options.isClone||r.logger.log("initialized",r.options),r.emit("initialized",r.options),f.resolve(h),o(m,h)};if(r.languages&&r.options.compatibilityAPI!=="v1"&&!r.isInitialized)return p(null,r.t.bind(r));r.changeLanguage(r.options.lng,p)};return this.options.resources||!this.options.initImmediate?d():setTimeout(d,0),f}},{key:"loadResources",value:function(r){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ov,a=o,i=typeof r=="string"?r:this.language;if(typeof r=="function"&&(a=r),!this.options.resources||this.options.partialBundledLanguages){if(i&&i.toLowerCase()==="cimode")return a();var u=[],s=function(c){c&&n.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(r,n,o){var a=Xf();return r||(r=this.languages),n||(n=this.options.ns),o||(o=ov),this.services.backendConnector.reload(r,n,function(i){a.resolve(),o(i)}),a}},{key:"use",value:function(r){if(!r)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!r.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return r.type==="backend"&&(this.modules.backend=r),(r.type==="logger"||r.log&&r.warn&&r.error)&&(this.modules.logger=r),r.type==="languageDetector"&&(this.modules.languageDetector=r),r.type==="i18nFormat"&&(this.modules.i18nFormat=r),r.type==="postProcessor"&&eM.addPostProcessor(r),r.type==="3rdParty"&&this.modules.external.push(r),this}},{key:"changeLanguage",value:function(r,n){var o=this;this.isLanguageChangingTo=r;var a=Xf();this.emit("languageChanging",r);var i=function(u){r||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)}),n&&n(c,function(){return o.t.apply(o,arguments)})})(l,s)})};return r||!this.services.languageDetector||this.services.languageDetector.async?!r&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(i):i(r):i(this.services.languageDetector.detect()),a}},{key:"getFixedT",value:function(r,n,o){var a=this,i=function u(s,l){var c;if(Ua(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=xr({},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 r=="string"?i.lng=r:i.lngs=r,i.ns=n,i.keyPrefix=o,i}},{key:"t",value:function(){var r;return this.translator&&(r=this.translator).translate.apply(r,arguments)}},{key:"exists",value:function(){var r;return this.translator&&(r=this.translator).exists.apply(r,arguments)}},{key:"setDefaultNamespace",value:function(r){this.options.defaultNS=r}},{key:"hasLoadedNamespace",value:function(r){var n=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=n.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,r)||!this.services.backendConnector.backend||!(!s(a,r)||i&&!s(u,r))}},{key:"loadNamespaces",value:function(r,n){var o=this,a=Xf();return this.options.ns?(typeof r=="string"&&(r=[r]),r.forEach(function(i){o.options.ns.indexOf(i)<0&&o.options.ns.push(i)}),this.loadResources(function(i){a.resolve(),n&&n(i)}),a):(n&&n(),Promise.resolve())}},{key:"loadLanguages",value:function(r,n){var o=Xf();typeof r=="string"&&(r=[r]);var a=this.options.preload||[],i=r.filter(function(u){return a.indexOf(u)<0});return i.length?(this.options.preload=a.concat(i),this.loadResources(function(u){o.resolve(),n&&n(u)}),o):(n&&n(),Promise.resolve())}},{key:"dir",value:function(r){return r||(r=this.languages&&this.languages.length>0?this.languages[0]:this.language),r?["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(r))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new e(r,n)}},{key:"cloneInstance",value:function(){var r=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ov,a=xr({},this.options,n,{isClone:!0}),i=new e(a),u=["store","services","language"];return u.forEach(function(s){i[s]=r[s]}),i.services=xr({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new VT(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}(),Pm=new Gnt;function Pn(t,e){Pm.addResourceBundle(t,"translation",e,!0,!0)}Pm.init({lng:"zh-CN",resources:{}});var lt=Pm.t.bind(Pm);Pn("en",{editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}}),Pn("zh-CN",{editor:{more:"更多",justify:"对齐",indent:"缩进",image:"图片",video:"视频"}});var Wnt=GD?{}.toString:function(){return"[object "+Yy(this)+"]"};GD||Fs(Object.prototype,"toString",Wnt,{unsafe:!0});var zT=Array.isArray||function(t){return ss(t)=="Array"},rM=function(){},Knt=[],nM=Nh("Reflect","construct"),r6=/^\s*(?:class|function)\b/,Ynt=Oe(r6.exec),Xnt=!r6.exec(rM),Zf=function(t){if(!Ir(t))return!1;try{return nM(rM,Knt,t),!0}catch{return!1}},Znt=!nM||$r(function(){var t;return Zf(Zf.call)||!Zf(Object)||!Zf(function(){t=!0})||t})?function(t){if(!Ir(t))return!1;switch(Yy(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Xnt||!!Ynt(r6,$D(t))}:Zf,Jnt=vn("species"),HT=$t.Array,Qnt=function(t,e){return new(function(r){var n;return zT(r)&&(n=r.constructor,(Znt(n)&&(n===HT||zT(n.prototype))||ni(n)&&(n=n[Jnt])===null)&&(n=void 0)),n===void 0?HT:n}(t))(e===0?0:e)},UT=Oe([].push),qnt=function(t){var e=t==1,r=t==2,n=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=RD(s),h=bj(m),v=kj(l,c),y=Ky(h),g=0,b=f||Qnt,E=e?b(s,y):r||i?b(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:UT(E,d)}else switch(t){case 4:return!1;case 7:UT(E,d)}return a?-1:n||o?o:E}},tot={forEach:qnt(0)}.forEach,eot=function(t,e){var r=[][t];return!!r&&$r(function(){r.call(null,e||function(){throw 1},1)})}("forEach"),J2=eot?[].forEach:function(t){return tot(this,t,arguments.length>1?arguments[1]:void 0)},oM=function(t){if(t&&t.forEach!==J2)try{xn(t,"forEach",J2)}catch{t.forEach=J2}};for(var Q2 in X0)X0[Q2]&&oM($t[Q2]&&$t[Q2].prototype);oM(jj),Pn("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"}}),Pn("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 rot={type:"paragraph",renderElem:function(t,e,r){return Rt("p",null,e)}},Fm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function v1(t){var e={exports:{}};return t(e,e.exports),e.exports}var ha,s0,iv=function(t){return t&&t.Math==Math&&t},Gt=iv(typeof globalThis=="object"&&globalThis)||iv(typeof window=="object"&&window)||iv(typeof self=="object"&&self)||iv(typeof Fm=="object"&&Fm)||function(){return this}()||Function("return this")(),Je=function(t){try{return!!t()}catch{return!0}},zo=!Je(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Jf=Function.prototype.call,pr=Jf.bind?Jf.bind(Jf):function(){return Jf.apply(Jf,arguments)},_T={}.propertyIsEnumerable,GT=Object.getOwnPropertyDescriptor,not=GT&&!_T.call({1:2},1)?function(t){var e=GT(this,t);return!!e&&e.enumerable}:_T,iM={f:not},n6=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},aM=Function.prototype,h4=aM.bind,g4=aM.call,oot=h4&&h4.bind(g4),Nt=h4?function(t){return t&&oot(g4,t)}:function(t){return t&&function(){return g4.apply(t,arguments)}},iot=Nt({}.toString),aot=Nt("".slice),_a=function(t){return aot(iot(t),8,-1)},q2=Gt.Object,uot=Nt("".split),m1=Je(function(){return!q2("z").propertyIsEnumerable(0)})?function(t){return _a(t)=="String"?uot(t,""):q2(t)}:q2,sot=Gt.TypeError,Eo=function(t){if(t==null)throw sot("Can't call method on "+t);return t},ef=function(t){return m1(Eo(t))},un=function(t){return typeof t=="function"},ii=function(t){return typeof t=="object"?t!==null:un(t)},lot=function(t){return un(t)?t:void 0},Gh=function(t,e){return arguments.length<2?lot(Gt[t]):Gt[t]&&Gt[t][e]},uM=Nt({}.isPrototypeOf),tw=Gh("navigator","userAgent")||"",WT=Gt.process,KT=Gt.Deno,YT=WT&&WT.versions||KT&&KT.version,XT=YT&&YT.v8;XT&&(s0=(ha=XT.split("."))[0]>0&&ha[0]<4?1:+(ha[0]+ha[1])),!s0&&tw&&(!(ha=tw.match(/Edge\/(\d+)/))||ha[1]>=74)&&(ha=tw.match(/Chrome\/(\d+)/))&&(s0=+ha[1]);var v4=s0,m4=!!Object.getOwnPropertySymbols&&!Je(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&v4&&v4<41}),o6=m4&&!Symbol.sham&&typeof Symbol.iterator=="symbol",cot=Gt.Object,ew=o6?function(t){return typeof t=="symbol"}:function(t){var e=Gh("Symbol");return un(e)&&uM(e.prototype,cot(t))},fot=Gt.String,sM=function(t){try{return fot(t)}catch{return"Object"}},dot=Gt.TypeError,lM=function(t){if(un(t))return t;throw dot(sM(t)+" is not a function")},y1=function(t,e){var r=t[e];return r==null?void 0:lM(r)},pot=Gt.TypeError,hot=Object.defineProperty,i6=function(t,e){try{hot(Gt,t,{value:e,configurable:!0,writable:!0})}catch{Gt[t]=e}return e},Ga=Gt["__core-js_shared__"]||i6("__core-js_shared__",{}),a6=v1(function(t){(t.exports=function(e,r){return Ga[e]||(Ga[e]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),got=Gt.Object,Wh=function(t){return got(Eo(t))},vot=Nt({}.hasOwnProperty),fo=Object.hasOwn||function(t,e){return vot(Wh(t),e)},mot=0,yot=Math.random(),bot=Nt(1 .toString),cM=function(t){return"Symbol("+(t===void 0?"":t)+")_"+bot(++mot+yot,36)},Qf=a6("wks"),vs=Gt.Symbol,ZT=vs&&vs.for,wot=o6?vs:vs&&vs.withoutSetter||cM,qn=function(t){if(!fo(Qf,t)||!m4&&typeof Qf[t]!="string"){var e="Symbol."+t;m4&&fo(vs,t)?Qf[t]=vs[t]:Qf[t]=o6&&ZT?ZT(e):wot(e)}return Qf[t]},Eot=Gt.TypeError,Sot=qn("toPrimitive"),u6=function(t){var e=function(r,n){if(!ii(r)||ew(r))return r;var o,a=y1(r,Sot);if(a){if(o=pr(a,r,n),!ii(o)||ew(o))return o;throw Eot("Can't convert object to primitive value")}return function(i,u){var s,l;if(un(s=i.toString)&&!ii(l=pr(s,i))||un(s=i.valueOf)&&!ii(l=pr(s,i)))return l;throw pot("Can't convert object to primitive value")}(r)}(t,"string");return ew(e)?e:e+""},y4=Gt.document,xot=ii(y4)&&ii(y4.createElement),s6=function(t){return xot?y4.createElement(t):{}},fM=!zo&&!Je(function(){return Object.defineProperty(s6("div"),"a",{get:function(){return 7}}).a!=7}),JT=Object.getOwnPropertyDescriptor,l6={f:zo?JT:function(t,e){if(t=ef(t),e=u6(e),fM)try{return JT(t,e)}catch{}if(fo(t,e))return n6(!pr(iM.f,t,e),t[e])}},Cot=Gt.String,Dot=Gt.TypeError,Wn=function(t){if(ii(t))return t;throw Dot(Cot(t)+" is not an object")},Oot=Gt.TypeError,QT=Object.defineProperty,rf={f:zo?QT:function(t,e,r){if(Wn(t),e=u6(e),Wn(r),fM)try{return QT(t,e,r)}catch{}if("get"in r||"set"in r)throw Oot("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},Rc=zo?function(t,e,r){return rf.f(t,e,n6(1,r))}:function(t,e,r){return t[e]=r,t},Aot=Nt(Function.toString);un(Ga.inspectSource)||(Ga.inspectSource=function(t){return Aot(t)});var b4,km,w4,c6=Ga.inspectSource,qT=Gt.WeakMap,Tot=un(qT)&&/native code/.test(c6(qT)),tB=a6("keys"),dM=function(t){return tB[t]||(tB[t]=cM(t))},f6={},eB=Gt.TypeError,Bot=Gt.WeakMap;if(Tot||Ga.state){var Iu=Ga.state||(Ga.state=new Bot),Pot=Nt(Iu.get),rB=Nt(Iu.has),Fot=Nt(Iu.set);b4=function(t,e){if(rB(Iu,t))throw new eB("Object already initialized");return e.facade=t,Fot(Iu,t,e),e},km=function(t){return Pot(Iu,t)||{}},w4=function(t){return rB(Iu,t)}}else{var Sl=dM("state");f6[Sl]=!0,b4=function(t,e){if(fo(t,Sl))throw new eB("Object already initialized");return e.facade=t,Rc(t,Sl,e),e},km=function(t){return fo(t,Sl)?t[Sl]:{}},w4=function(t){return fo(t,Sl)}}var E4={get:km,enforce:function(t){return w4(t)?km(t):b4(t,{})}},pM=Function.prototype,kot=zo&&Object.getOwnPropertyDescriptor,rw=fo(pM,"name"),b1={EXISTS:rw,PROPER:rw&&(function(){}).name==="something",CONFIGURABLE:rw&&(!zo||zo&&kot(pM,"name").configurable)},Zp=v1(function(t){var e=b1.CONFIGURABLE,r=E4.get,n=E4.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;un(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!fo(u,"name")||e&&u.name!==p)&&Rc(u,"name",p),(l=n(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:Rc(a,i,u)):f?a[i]=u:i6(i,u)})(Function.prototype,"toString",function(){return un(this)&&r(this).source||c6(this)})}),Not=Math.ceil,Iot=Math.floor,nf=function(t){var e=+t;return e!=e||e===0?0:(e>0?Iot:Not)(e)},jot=Math.max,Rot=Math.min,Jp=function(t,e){var r=nf(t);return r<0?jot(r+e,0):Rot(r,e)},Lot=Math.min,Kh=function(t){return t>0?Lot(nf(t),9007199254740991):0},w1=function(t){return Kh(t.length)},nB=function(t){return function(e,r,n){var o,a=ef(e),i=w1(a),u=Jp(n,i);if(t&&r!=r){for(;i>u;)if((o=a[u++])!=o)return!0}else for(;i>u;u++)if((t||u in a)&&a[u]===r)return t||u||0;return!t&&-1}},hM={includes:nB(!0),indexOf:nB(!1)},Mot=hM.indexOf,oB=Nt([].push),gM=function(t,e){var r,n=ef(t),o=0,a=[];for(r in n)!fo(f6,r)&&fo(n,r)&&oB(a,r);for(;e.length>o;)fo(n,r=e[o++])&&(~Mot(a,r)||oB(a,r));return a},Nm=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Vot=Nm.concat("length","prototype"),$ot={f:Object.getOwnPropertyNames||function(t){return gM(t,Vot)}},vM={f:Object.getOwnPropertySymbols},zot=Nt([].concat),Hot=Gh("Reflect","ownKeys")||function(t){var e=$ot.f(Wn(t)),r=vM.f;return r?zot(e,r(t)):e},Uot=function(t,e){for(var r=Hot(e),n=rf.f,o=l6.f,a=0;a<r.length;a++){var i=r[a];fo(t,i)||n(t,i,o(e,i))}},_ot=/#|\.prototype\./,Yh=function(t,e){var r=Wot[Got(t)];return r==Yot||r!=Kot&&(un(e)?Je(e):!!e)},Got=Yh.normalize=function(t){return String(t).replace(_ot,".").toLowerCase()},Wot=Yh.data={},Kot=Yh.NATIVE="N",Yot=Yh.POLYFILL="P",Xot=Yh,Zot=l6.f,kr=function(t,e){var r,n,o,a,i,u=t.target,s=t.global,l=t.stat;if(r=s?Gt:l?Gt[u]||i6(u,{}):(Gt[u]||{}).prototype)for(n in e){if(a=e[n],o=t.noTargetGet?(i=Zot(r,n))&&i.value:r[n],!Xot(s?n:u+(l?".":"#")+n,t.forced)&&o!==void 0){if(typeof a==typeof o)continue;Uot(a,o)}(t.sham||o&&o.sham)&&Rc(a,"sham",!0),Zp(r,n,a,t)}},iB=Nt(Nt.bind),Im=Array.isArray||function(t){return _a(t)=="Array"},mM={};mM[qn("toStringTag")]="z";var d6=String(mM)==="[object z]",Jot=qn("toStringTag"),Qot=Gt.Object,qot=_a(function(){return arguments}())=="Arguments",p6=d6?_a:function(t){var e,r,n;return t===void 0?"Undefined":t===null?"Null":typeof(r=function(o,a){try{return o[a]}catch{}}(e=Qot(t),Jot))=="string"?r:qot?_a(e):(n=_a(e))=="Object"&&un(e.callee)?"Arguments":n},yM=function(){},tit=[],bM=Gh("Reflect","construct"),h6=/^\s*(?:class|function)\b/,eit=Nt(h6.exec),rit=!h6.exec(yM),qf=function(t){if(!un(t))return!1;try{return bM(yM,tit,t),!0}catch{return!1}},g6=!bM||Je(function(){var t;return qf(qf.call)||!qf(Object)||!qf(function(){t=!0})||t})?function(t){if(!un(t))return!1;switch(p6(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return rit||!!eit(h6,c6(t))}:qf,nit=qn("species"),aB=Gt.Array,oit=function(t,e){return new(function(r){var n;return Im(r)&&(n=r.constructor,(g6(n)&&(n===aB||Im(n.prototype))||ii(n)&&(n=n[nit])===null)&&(n=void 0)),n===void 0?aB:n}(t))(e===0?0:e)},uB=Nt([].push),av=function(t){var e=t==1,r=t==2,n=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=Wh(s),h=m1(m),v=function(x,S){return lM(x),S===void 0?x:iB?iB(x,S):function(){return x.apply(S,arguments)}}(l,c),y=w1(h),g=0,b=f||oit,E=e?b(s,y):r||i?b(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:uB(E,d)}else switch(t){case 4:return!1;case 7:uB(E,d)}return a?-1:n||o?o:E}},E1={forEach:av(0),map:av(1),filter:av(2),find:av(5)},iit=qn("species"),v6=function(t){return v4>=51||!Je(function(){var e=[];return(e.constructor={})[iit]=function(){return{foo:1}},e[t](Boolean).foo!==1})},ait=E1.filter;kr({target:"Array",proto:!0,forced:!v6("filter")},{filter:function(t){return ait(this,t,arguments.length>1?arguments[1]:void 0)}});var uit=d6?{}.toString:function(){return"[object "+p6(this)+"]"};d6||Zp(Object.prototype,"toString",uit,{unsafe:!0});var uv,sit=Gt.String,Xe=function(t){if(p6(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return sit(t)},wM=function(){var t=Wn(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},m6=Gt.RegExp,S4=Je(function(){var t=m6("a","y");return t.lastIndex=2,t.exec("abcd")!=null});S4||Je(function(){return!m6("a","y").sticky});var EM={BROKEN_CARET:S4||Je(function(){var t=m6("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),UNSUPPORTED_Y:S4},uc=Object.keys||function(t){return gM(t,Nm)},lit=zo?Object.defineProperties:function(t,e){Wn(t);for(var r,n=ef(e),o=uc(e),a=o.length,i=0;a>i;)rf.f(t,r=o[i++],n[r]);return t},cit=Gh("document","documentElement"),SM=dM("IE_PROTO"),nw=function(){},xM=function(t){return"<script>"+t+"<\/script>"},sB=function(t){t.write(xM("")),t.close();var e=t.parentWindow.Object;return t=null,e},l0=function(){try{uv=new ActiveXObject("htmlfile")}catch{}var t,e;l0=typeof document<"u"?document.domain&&uv?sB(uv):((e=s6("iframe")).style.display="none",cit.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(xM("document.F=Object")),t.close(),t.F):sB(uv);for(var r=Nm.length;r--;)delete l0.prototype[Nm[r]];return l0()};f6[SM]=!0;var lB,ow,CM=Object.create||function(t,e){var r;return t!==null?(nw.prototype=Wn(t),r=new nw,nw.prototype=null,r[SM]=t):r=l0(),e===void 0?r:lit(r,e)},fit=Gt.RegExp,dit=Je(function(){var t=fit(".","s");return!(t.dotAll&&t.exec(`
|
|
90
|
+
`)&&t.flags==="s")}),pit=Gt.RegExp,hit=Je(function(){var t=pit("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),git=E4.get,vit=a6("native-string-replace",String.prototype.replace),jm=RegExp.prototype.exec,x4=jm,mit=Nt("".charAt),yit=Nt("".indexOf),bit=Nt("".replace),iw=Nt("".slice),aw=(ow=/b*/g,pr(jm,lB=/a/,"a"),pr(jm,ow,"a"),lB.lastIndex!==0||ow.lastIndex!==0),cB=EM.BROKEN_CARET,uw=/()??/.exec("")[1]!==void 0;(aw||uw||cB||dit||hit)&&(x4=function(t){var e,r,n,o,a,i,u,s=this,l=git(s),c=Xe(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=pr(x4,f,c),s.lastIndex=f.lastIndex,e;var d=l.groups,p=cB&&s.sticky,m=pr(wM,s),h=s.source,v=0,y=c;if(p&&(m=bit(m,"y",""),yit(m,"g")===-1&&(m+="g"),y=iw(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&mit(c,s.lastIndex-1)!==`
|
|
91
|
+
`)&&(h="(?: "+h+")",y=" "+y,v++),r=new RegExp("^(?:"+h+")",m)),uw&&(r=new RegExp("^"+h+"$(?!\\s)",m)),aw&&(n=s.lastIndex),o=pr(jm,p?r:s,y),p?o?(o.input=iw(o.input,v),o[0]=iw(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:aw&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),uw&&o&&o.length>1&&pr(vit,o[0],r,function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(o[a]=void 0)}),o&&d)for(o.groups=i=CM(null),a=0;a<d.length;a++)i[(u=d[a])[0]]=o[u[1]];return o});var Qp=x4;kr({target:"RegExp",proto:!0,forced:/./.exec!==Qp},{exec:Qp});var y6=Function.prototype,fB=y6.apply,wit=y6.bind,dB=y6.call,DM=typeof Reflect=="object"&&Reflect.apply||(wit?dB.bind(fB):function(){return dB.apply(fB,arguments)}),Eit=qn("species"),sw=RegExp.prototype,b6=function(t,e,r,n){var o=qn(t),a=!Je(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),i=a&&!Je(function(){var l=!1,c=/a/;return t==="split"&&((c={}).constructor={},c.constructor[Eit]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!a||!i||r){var u=Nt(/./[o]),s=e(o,""[t],function(l,c,f,d,p){var m=Nt(l),h=c.exec;return h===Qp||h===sw.exec?a&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:m(f,c,d)}:{done:!1}});Zp(String.prototype,t,s[0]),Zp(sw,o,s[1])}n&&Rc(sw[o],"sham",!0)},Sit=Nt("".charAt),pB=Nt("".charCodeAt),xit=Nt("".slice),Cit=function(t){return function(e,r){var n,o,a=Xe(Eo(e)),i=nf(r),u=a.length;return i<0||i>=u?t?"":void 0:(n=pB(a,i))<55296||n>56319||i+1===u||(o=pB(a,i+1))<56320||o>57343?t?Sit(a,i):n:t?xit(a,i,i+2):o-56320+(n-55296<<10)+65536}},Dit=Cit(!0),w6=function(t,e,r){return e+(r?Dit(t,e).length:1)},Oit=Math.floor,lw=Nt("".charAt),Ait=Nt("".replace),cw=Nt("".slice),Tit=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Bit=/\$([$&'`]|\d{1,2})/g,Pit=function(t,e,r,n,o,a){var i=r+t.length,u=n.length,s=Bit;return o!==void 0&&(o=Wh(o),s=Tit),Ait(a,s,function(l,c){var f;switch(lw(c,0)){case"$":return"$";case"&":return t;case"`":return cw(e,0,r);case"'":return cw(e,i);case"<":f=o[cw(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=Oit(d/10);return p===0?l:p<=u?n[p-1]===void 0?lw(c,1):n[p-1]+lw(c,1):l}f=n[d-1]}return f===void 0?"":f})},Fit=Gt.TypeError,qp=function(t,e){var r=t.exec;if(un(r)){var n=pr(r,t,e);return n!==null&&Wn(n),n}if(_a(t)==="RegExp")return pr(Qp,t,e);throw Fit("RegExp#exec called on incompatible receiver")},C4=qn("replace"),kit=Math.max,Nit=Math.min,Iit=Nt([].concat),fw=Nt([].push),hB=Nt("".indexOf),gB=Nt("".slice),jit="a".replace(/./,"$0")==="$0",vB=!!/./[C4]&&/./[C4]("a","$0")==="";b6("replace",function(t,e,r){var n=vB?"$":"$0";return[function(o,a){var i=Eo(this),u=o==null?void 0:y1(o,C4);return u?pr(u,o,i,a):pr(e,Xe(i),o,a)},function(o,a){var i=Wn(this),u=Xe(o);if(typeof a=="string"&&hB(a,n)===-1&&hB(a,"$<")===-1){var s=r(e,i,u,a);if(s.done)return s.value}var l=un(a);l||(a=Xe(a));var c=i.global;if(c){var f=i.unicode;i.lastIndex=0}for(var d=[];;){var p=qp(i,u);if(p===null||(fw(d,p),!c))break;Xe(p[0])===""&&(i.lastIndex=w6(u,Kh(i.lastIndex),f))}for(var m,h="",v=0,y=0;y<d.length;y++){for(var g=Xe((p=d[y])[0]),b=kit(Nit(nf(p.index),u.length),0),E=[],x=1;x<p.length;x++)fw(E,(m=p[x])===void 0?m:String(m));var S=p.groups;if(l){var C=Iit([g],E,b,u);S!==void 0&&fw(C,S);var T=Xe(DM(a,void 0,C))}else T=Pit(g,u,b,E,S,a);b>=v&&(h+=gB(u,v,b)+T,v=b+g.length)}return h+gB(u,v)}]},!!Je(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!jit||vB);var D4=qn("unscopables"),O4=Array.prototype;O4[D4]==null&&rf.f(O4,D4,{configurable:!0,value:CM(null)});var OM=function(t){O4[D4][t]=!0},Rit=E1.find,mB=!0;"find"in[]&&Array(1).find(function(){mB=!1}),kr({target:"Array",proto:!0,forced:mB},{find:function(t){return Rit(this,t,arguments.length>1?arguments[1]:void 0)}}),OM("find");var Lit=qn("match"),AM=function(t){var e;return ii(t)&&((e=t[Lit])!==void 0?!!e:_a(t)=="RegExp")},Mit=Gt.TypeError,Vit=qn("species"),TM=function(t,e,r){var n=u6(e);n in t?rf.f(t,n,n6(0,r)):t[n]=r},$it=Gt.Array,zit=Math.max,yB=function(t,e,r){for(var n=w1(t),o=Jp(e,n),a=Jp(r===void 0?n:r,n),i=$it(zit(a-o,0)),u=0;o<a;o++,u++)TM(i,u,t[o]);return i.length=u,i},xl=EM.UNSUPPORTED_Y,Hit=Math.min,BM=[].push,Uit=Nt(/./.exec),Cl=Nt(BM),td=Nt("".slice);b6("split",function(t,e,r){var n;return n="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=Xe(Eo(this)),u=a===void 0?4294967295:a>>>0;if(u===0)return[];if(o===void 0)return[i];if(!AM(o))return pr(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=pr(Qp,m,i))&&!((l=m.lastIndex)>p&&(Cl(f,td(i,p,s.index)),s.length>1&&s.index<i.length&&DM(BM,f,yB(s,1)),c=s[0].length,p=l,f.length>=u));)m.lastIndex===s.index&&m.lastIndex++;return p===i.length?!c&&Uit(m,"")||Cl(f,""):Cl(f,td(i,p)),f.length>u?yB(f,0,u):f}:"0".split(void 0,0).length?function(o,a){return o===void 0&&a===0?[]:pr(e,this,o,a)}:e,[function(o,a){var i=Eo(this),u=o==null?void 0:y1(o,t);return u?pr(u,o,i,a):pr(n,Xe(i),o,a)},function(o,a){var i=Wn(this),u=Xe(o),s=r(n,i,u,a,n!==e);if(s.done)return s.value;var l=function(E,x){var S,C=Wn(E).constructor;return C===void 0||(S=Wn(C)[Vit])==null?x:function(T){if(g6(T))return T;throw Mit(sM(T)+" is not a constructor")}(S)}(i,RegExp),c=i.unicode,f=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(xl?"g":"y"),d=new l(xl?"^(?:"+i.source+")":i,f),p=a===void 0?4294967295:a>>>0;if(p===0)return[];if(u.length===0)return qp(d,u)===null?[u]:[];for(var m=0,h=0,v=[];h<u.length;){d.lastIndex=xl?0:h;var y,g=qp(d,xl?td(u,h):u);if(g===null||(y=Hit(Kh(d.lastIndex+(xl?h:0)),u.length))===m)h=w6(u,h,c);else{if(Cl(v,td(u,m,h)),v.length===p)return v;for(var b=1;b<=g.length-1;b++)if(Cl(v,g[b]),v.length===p)return v;h=m=y}}return Cl(v,td(u,m)),v}]},!!Je(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return r.length!==2||r[0]!=="a"||r[1]!=="b"}),xl);var A4=`
|
|
92
|
+
\v\f\r \u2028\u2029\uFEFF`,bB=Nt("".replace),Rm="["+A4+"]",_it=RegExp("^"+Rm+Rm+"*"),Git=RegExp(Rm+Rm+"*$"),Wit=function(t){return function(e){var r=Xe(Eo(e));return 1&t&&(r=bB(r,_it,"")),2&t&&(r=bB(r,Git,"")),r}},Kit={trim:Wit(3)},Yit=b1.PROPER,Xit=Kit.trim;function E6(t){return F("<div>"+t+"</div>").children().filter(function(e){return e.tagName!=="BR"}).length===0}function of(t){return t.length===0?"":t[0].outerHTML}function af(t){return t.length?t[0].tagName.toLowerCase():""}function Mo(t,e){for(var r="",n=(t.attr("style")||"").split(";"),o=n.length,a=0;a<o;a++){var i=n[a];if(i){var u=i.split(":");u[0].trim()===e&&(r=u[1].trim())}}return r}kr({target:"String",proto:!0,forced:Je(function(){return!!A4.trim()||"
".trim()!=="
"||Yit&&A4.trim.name!=="trim"})},{trim:function(){return Xit(this)}}),kr({global:!0},{globalThis:Gt}),sm&&(F.fn.css=sm),yo&&(F.fn.append=yo),a7&&(F.fn.prepend=a7),bc&&(F.fn.addClass=bc),wc&&(F.fn.removeClass=wc),Ec&&(F.fn.hasClass=Ec),mi&&(F.fn.on=mi),r7&&(F.fn.off=r7),au&&(F.fn.focus=au),mo&&(F.fn.attr=mo),om&&(F.fn.removeAttr=om),xc&&(F.fn.hide=xc),um&&(F.fn.show=um),fm&&(F.fn.parents=fm),Sc&&(F.fn.dataset=Sc),vi&&(F.fn.val=vi),cm&&(F.fn.text=cm),iu&&(F.fn.html=iu),Oc&&(F.fn.children=Oc),Ac&&(F.fn.remove=Ac),Dc&&(F.fn.find=Dc),im&&(F.fn.width=im),am&&(F.fn.height=am),o7&&(F.fn.filter=o7),Tc&&(F.fn.empty=Tc);var Zit={selector:"p:not([data-w-e-type])",parseElemHtml:function(t,e,r){var n=F(t);return(e=e.filter(function(o){return!!vt.isText(o)||!!r.isInline(o)})).length===0&&(e=[{text:n.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:e}}},T4=function(t,e){return T4=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},T4(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 r(){this.constructor=t}T4(t,e),t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var lu=function(){return lu=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},lu.apply(this,arguments)};function wu(t,e,r,n){return new(r||(r=Promise))(function(o,a){function i(l){try{s(n.next(l))}catch(c){a(c)}}function u(l){try{s(n.throw(l))}catch(c){a(c)}}function s(l){var c;l.done?o(l.value):(c=l.value,c instanceof r?c:new r(function(f){f(c)})).then(i,u)}s((n=n.apply(t,[])).next())})}function Eu(t,e){var r,n,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(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=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++,n=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],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([s,l])}}}function PM(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function me(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n,o,a=r.call(t),i=[];try{for(;(e===void 0||e-- >0)&&!(n=a.next()).done;)i.push(n.value)}catch(u){o={error:u}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return i}function wB(t){var e=me(D.nodes(t,{match:function(a){return t.children[0]===a},mode:"highest"}),1)[0];if(e==null)return!1;var r=e[0];if(!St.isElement(r)||r.type==="paragraph"||st.string(r)!=="")return!1;var n=r.children,o=n===void 0?[]:n;return!!vt.isText(o[0])&&(U.setNodes(t,{type:"paragraph"}),!0)}var Jit={renderElems:[rot],elemsToHtml:[{type:"paragraph",elemToHtml:function(t,e){return e===""?"<p><br></p>":"<p>"+e+"</p>"}}],parseElemsHtml:[Zit],editorPlugin:function(t){var e=t.deleteBackward,r=t.deleteForward;t.insertText,t.insertBreak;var n=t;return n.deleteBackward=function(o){wB(n)||e(o)},n.deleteForward=function(o){wB(n)||r(o)},n}},Qit=/"/g,qit=Nt("".replace),Yd=function(t,e,r,n){var o=Xe(Eo(t)),a="<"+e;return r!==""&&(a+=" "+r+'="'+qit(Xe(n),Qit,""")+'"'),a+">"+o+"</"+e+">"},Xd=function(t){return Je(function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3})};function dw(t,e){var r=e,n=t,o=n.bold,a=n.italic,i=n.underline;return o&&(r="<strong>"+r+"</strong>"),n.code&&(r="<code>"+r+"</code>"),a&&(r="<em>"+r+"</em>"),i&&(r="<u>"+r+"</u>"),n.through&&(r="<s>"+r+"</s>"),n.sub&&(r="<sub>"+r+"</sub>"),n.sup&&(r="<sup>"+r+"</sup>"),r}function ju(t,e){return t.length!==0&&(!!t[0].matches(e)||t.find(e).length>0)}kr({target:"String",proto:!0,forced:Xd("bold")},{bold:function(){return Yd(this,"b","","")}}),kr({target:"String",proto:!0,forced:Xd("italics")},{italics:function(){return Yd(this,"i","","")}}),kr({target:"String",proto:!0,forced:Xd("sub")},{sub:function(){return Yd(this,"sub","","")}}),kr({target:"String",proto:!0,forced:Xd("sup")},{sup:function(){return Yd(this,"sup","","")}});var EB={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},pw=s6("span").classList,SB=pw&&pw.constructor&&pw.constructor.prototype,tat=SB===Object.prototype?void 0:SB,FM=function(t,e){var r=[][t];return!!r&&Je(function(){r.call(null,e||function(){throw 1},1)})},eat=E1.forEach,hw=FM("forEach")?[].forEach:function(t){return eat(this,t,arguments.length>1?arguments[1]:void 0)},kM=function(t){if(t&&t.forEach!==hw)try{Rc(t,"forEach",hw)}catch{t.forEach=hw}};for(var gw in EB)EB[gw]&&kM(Gt[gw]&&Gt[gw].prototype);function NM(t,e){return t.selection==null||!!me(D.nodes(t,{match:function(r){return P.getNodeType(r)==="pre"||!!D.isVoid(t,r)},universal:!0}),1)[0]}function rat(t,e){Object.keys(e).forEach(function(r){r!=="text"&&D.removeMark(t,r)})}kM(tat),kr({target:"Object",stat:!0,forced:Je(function(){uc(1)})},{keys:function(t){return uc(Wh(t))}});var tl=function(){function t(){this.marksNeedToRemove=[],this.tag="button"}return t.prototype.getValue=function(e){var r=this.mark,n=D.marks(e);return n?n[r]:!!me(D.nodes(e,{match:function(o){return o[r]===!0}}),1)[0]},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(e){return NM(e,this.mark)},t.prototype.exec=function(e,r){var n=this.mark,o=this.marksNeedToRemove;r?e.removeMark(n):(e.addMark(n,!0),o&&o.forEach(function(a){return e.removeMark(a)}))},t}(),nat='<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>',oat='<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>',iat='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',aat='<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>',uat='<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>',IM='<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>',jM='<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>',sat='<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>',lat='<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>',cat='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',fat='<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>',dat='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',pat='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',hat='<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>',gat='<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>',vat='<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>',mat='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',yat='<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>',bat='<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>',wat=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.mark="bold",r.title=lt("textStyle.bold"),r.iconSvg=nat,r.hotkey="mod+b",r}return Ge(e,t),e}(tl),Eat=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.mark="code",r.title=lt("textStyle.code"),r.iconSvg=uat,r.hotkey="mod+e",r}return Ge(e,t),e}(tl),Sat=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.mark="italic",r.title=lt("textStyle.italic"),r.iconSvg=iat,r.hotkey="mod+i",r}return Ge(e,t),e}(tl),xat=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.mark="through",r.title=lt("textStyle.through"),r.iconSvg=aat,r.hotkey="mod+shift+x",r}return Ge(e,t),e}(tl),Cat=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.mark="underline",r.title=lt("textStyle.underline"),r.iconSvg=oat,r.hotkey="mod+u",r}return Ge(e,t),e}(tl),Dat=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.mark="sub",r.marksNeedToRemove=["sup"],r.title=lt("textStyle.sub"),r.iconSvg=bat,r.hotkey="",r}return Ge(e,t),e}(tl),Oat=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.mark="sup",r.marksNeedToRemove=["sub"],r.title=lt("textStyle.sup"),r.iconSvg=yat,r.hotkey="",r}return Ge(e,t),e}(tl),Aat=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 NM(e)},t.prototype.exec=function(e,r){var n,o,a=D.nodes(e,{match:function(s){return vt.isText(s)},universal:!0});try{for(var i=PM(a),u=i.next();!u.done;u=i.next())rat(e,u.value[0])}catch(s){n={error:s}}finally{try{u&&!u.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}},t}(),Tat={renderStyle:function(t,e){var r=t,n=r.bold,o=r.italic,a=r.underline,i=r.code,u=r.through,s=r.sub,l=r.sup,c=e;return n&&(c=Rt("strong",null,c)),i&&(c=Rt("code",null,c)),o&&(c=Rt("em",null,c)),a&&(c=Rt("u",null,c)),u&&(c=Rt("s",null,c)),s&&(c=Rt("sub",null,c)),l&&(c=Rt("sup",null,c)),c},menus:[{key:"bold",factory:function(){return new wat}},{key:"underline",factory:function(){return new Cat}},{key:"italic",factory:function(){return new Sat}},{key:"through",factory:function(){return new xat}},{key:"code",factory:function(){return new Eat}},{key:"sub",factory:function(){return new Dat}},{key:"sup",factory:function(){return new Oat}},{key:"clearStyle",factory:function(){return new Aat}}],styleToHtml:function(t,e){if(!vt.isText(t))return e;if(E6(e))return dw(t,e);var r=F(e);if(af(r)==="br")return dw(t,"<br>");var n=r.html();return n=dw(t,n),r.html(n),of(r)},parseStyleHtml:function(t,e,r){var n=F(t);if(!vt.isText(e))return e;var o=e;return ju(n,"b,strong")&&(o.bold=!0),ju(n,"i,em")&&(o.italic=!0),ju(n,"u")&&(o.underline=!0),ju(n,"s,strike")&&(o.through=!0),ju(n,"sub")&&(o.sub=!0),ju(n,"sup")&&(o.sup=!0),ju(n,"code")&&(o.code=!0),o}};function Xh(t){return function(e,r,n){return Rt("h"+t,null,r)}}var Bat={type:"header1",renderElem:Xh(1)},Pat={type:"header2",renderElem:Xh(2)},Fat={type:"header3",renderElem:Xh(3)},kat={type:"header4",renderElem:Xh(4)},Nat={type:"header5",renderElem:Xh(5)},Iat=b1.PROPER,B4=RegExp.prototype,RM=B4.toString,jat=Nt(wM),Rat=Je(function(){return RM.call({source:"a",flags:"b"})!="/a/b"}),Lat=Iat&&RM.name!="toString";(Rat||Lat)&&Zp(RegExp.prototype,"toString",function(){var t=Wn(this),e=Xe(t.source),r=t.flags;return"/"+e+"/"+Xe(r===void 0&&uM(B4,t)&&!("flags"in B4)?jat(t):r)},{unsafe:!0});var vw,Mat=Gt.TypeError,LM=function(t){if(AM(t))throw Mat("The method doesn't accept regular expressions");return t},Vat=qn("match"),MM=function(t){var e=/./;try{"/./"[t](e)}catch{try{return e[Vat]=!1,"/./"[t](e)}catch{}}return!1},$at=l6.f,xB=Nt("".startsWith),zat=Nt("".slice),Hat=Math.min,CB=MM("startsWith");function VM(t){var e=me(D.nodes(t,{match:function(o){return P.getNodeType(o).startsWith("header")},universal:!0}),1),r=e[0];if(r==null)return"paragraph";var n=me(r,1)[0];return P.getNodeType(n)}function $M(t){return t.selection==null||!me(D.nodes(t,{match:function(e){var r=P.getNodeType(e);return r==="paragraph"||!!r.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function zM(t,e){e&&U.setNodes(t,{type:e})}kr({target:"String",proto:!0,forced:!(!CB&&(vw=$at(String.prototype,"startsWith"),vw&&!vw.writable)||CB)},{startsWith:function(t){var e=Xe(Eo(this));LM(t);var r=Kh(Hat(arguments.length>1?arguments[1]:void 0,e.length)),n=Xe(t);return xB?xB(e,n,r):zat(e,r,r+n.length)===n}});var Uat=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 r=[{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")}],n=this.getValue(e).toString();return r.forEach(function(o){o.value===n?o.selected=!0:delete o.selected}),r},t.prototype.isActive=function(e){return!1},t.prototype.getValue=function(e){return VM(e)},t.prototype.isDisabled=function(e){return $M(e)},t.prototype.exec=function(e,r){zM(e,r.toString())},t}(),Zh=function(){function t(){this.tag="button"}return t.prototype.getValue=function(e){return VM(e)},t.prototype.isActive=function(e){return this.getValue(e)===this.type},t.prototype.isDisabled=function(e){return $M(e)},t.prototype.exec=function(e,r){var n=this.type;zM(e,r===n?"paragraph":n)},t}(),_at=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title="H1",r.type="header1",r}return Ge(e,t),e}(Zh),Gat=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title="H2",r.type="header2",r}return Ge(e,t),e}(Zh),Wat=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title="H3",r.type="header3",r}return Ge(e,t),e}(Zh),Kat=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title="H4",r.type="header4",r}return Ge(e,t),e}(Zh),Yat=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title="H5",r.type="header5",r}return Ge(e,t),e}(Zh),Xat={key:"headerSelect",factory:function(){return new Uat}},Zat={key:"header1",factory:function(){return new _at}},Jat={key:"header2",factory:function(){return new Gat}},Qat={key:"header3",factory:function(){return new Wat}},qat={key:"header4",factory:function(){return new Kat}},tut={key:"header5",factory:function(){return new Yat}};function ed(t){return function(e,r){return"<h"+t+">"+r+"</h"+t+">"}}function rd(t){return function(e,r,n){var o=F(e);return(r=r.filter(function(a){return!!vt.isText(a)||!!n.isInline(a)})).length===0&&(r=[{text:o.text().replace(/\s+/gm," ")}]),{type:"header"+t,children:r}}}var eut={renderElems:[Bat,Pat,Fat,kat,Nat],elemsToHtml:[{type:"header1",elemToHtml:ed(1)},{type:"header2",elemToHtml:ed(2)},{type:"header3",elemToHtml:ed(3)},{type:"header4",elemToHtml:ed(4)},{type:"header5",elemToHtml:ed(5)}],parseElemsHtml:[{selector:"h1:not([data-w-e-type])",parseElemHtml:rd(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:rd(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:rd(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:rd(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:rd(5)}],menus:[Xat,Zat,Jat,Qat,qat,tut],editorPlugin:function(t){var e=t.insertBreak;t.insertNode;var r=t;return r.insertBreak=function(){var n=me(D.nodes(r,{match:function(o){return P.getNodeType(o).startsWith("header")},universal:!0}),1)[0];n&&P.isSelectionAtLineEnd(t,n[1])?U.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):e()},r}},Dl=Object.assign,DB=Object.defineProperty,rut=Nt([].concat),OB=!Dl||Je(function(){if(zo&&Dl({b:1},Dl(DB({},"a",{enumerable:!0,get:function(){DB(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach(function(o){e[o]=o}),Dl({},t)[r]!=7||uc(Dl({},e)).join("")!=n})?function(t,e){for(var r=Wh(t),n=arguments.length,o=1,a=vM.f,i=iM.f;n>o;)for(var u,s=m1(arguments[o++]),l=a?rut(uc(s),a(s)):uc(s),c=l.length,f=0;c>f;)u=l[f++],zo&&!pr(i,s,u)||(r[u]=s[u]);return r}:Dl;function $s(t,e){t.data==null&&(t.data={});var r=t.data;r.style==null&&(r.style={}),Object.assign(r.style,e)}kr({target:"Object",stat:!0,forced:Object.assign!==OB},{assign:OB});var nut={selector:"font",preParseHtml:function(t){var e=F(t);if(af(e)!=="font")return t;var r=e.attr("color")||"";return r&&(e.removeAttr("color"),e.css("color",r)),e[0]}},HM=function(){function t(){this.tag="button",this.showDropPanel=!0,this.$content=null}return t.prototype.exec=function(e,r){},t.prototype.getValue=function(e){var r=this.mark,n=D.marks(e);return n&&n[r]?n[r]:""},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(e){return e.selection==null||!!me(D.nodes(e,{match:function(r){return P.getNodeType(r)==="pre"||!!D.isVoid(e,r)},universal:!0}),1)[0]},t.prototype.getPanelContentElem=function(e){var r=this.mark;if(this.$content==null){var n=F('<ul class="w-e-panel-content-color"></ul>');n.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,r):D.addMark(e,r,f)}}),this.$content=n}var o=this.$content;if(o==null)return document.createElement("ul");o.empty();var a=this.getValue(e),i=e.getMenuConfig(r).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="";r==="color"&&(u=lt("color.default")),r==="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}(),out=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title=lt("color.color"),r.iconSvg=sat,r.mark="color",r}return Ge(e,t),e}(HM),iut=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title=lt("color.bgColor"),r.iconSvg=lat,r.mark="bgColor",r}return Ge(e,t),e}(HM),AB=["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)"],aut={renderStyle:function(t,e){var r=t,n=r.color,o=r.bgColor,a=e;return n&&$s(a,{color:n}),o&&$s(a,{backgroundColor:o}),a},styleToHtml:function(t,e){if(!vt.isText(t))return e;var r,n=t,o=n.color,a=n.bgColor;return o||a?((E6(e)||af(r=F(e))!=="span")&&(r=F("<span>"+e+"</span>")),o&&r.css("color",o),a&&r.css("background-color",a),of(r)):e},preParseHtml:[nut],parseStyleHtml:function(t,e,r){var n=F(t);if(!vt.isText(e))return e;var o=e,a=Mo(n,"color");a&&(o.color=a);var i=Mo(n,"background-color");return i||(i=Mo(n,"background")),i&&(o.bgColor=i),o},menus:[{key:"color",factory:function(){return new out},config:{colors:AB}},{key:"bgColor",factory:function(){return new iut},config:{colors:AB}}]},uut=/^(?:\w+:)?\/\/(\S+)$/,sut=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,lut=/^[^\s\.]+\.\S{2,}$/,cut=hM.includes;function S1(t){return t===void 0&&(t="r"),t+"-"+cR()}function S6(t){return t.replace(/</g,"<").replace(/>/g,">")}function UM(t,e,r,n){return wu(this,void 0,void 0,function(){var o,a;return Eu(this,function(i){switch(i.label){case 0:return(o=e.getMenuConfig(t).checkLink)?[4,o(r,n)]:[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 _M(t,e,r){return wu(this,void 0,void 0,function(){var n;return Eu(this,function(o){switch(o.label){case 0:return(n=e.getMenuConfig(t).parseLinkUrl)?[4,n(r)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,r]}})})}function x6(t){return t.selection==null||!!P.getSelectedElems(t).some(function(e){var r=e.type;return!!t.isVoid(e)||!!["pre","code","link"].includes(r)||void 0})}function mw(t,e){return{type:"link",url:S6(t),children:e?[{text:e}]:[]}}function GM(t,e,r){return wu(this,void 0,void 0,function(){var n,o,a;return Eu(this,function(i){switch(i.label){case 0:return r?(e||(e=r),t.restoreSelection(),x6(t)?[2]:[4,UM("insertLink",t,e,r)]):[2];case 1:return i.sent()?[4,_M("insertLink",t,r)]:[2];case 2:return n=i.sent(),(o=t.selection)==null||(Q.isCollapsed(o)?(t.insertText(" "),a=mw(n,e),U.insertNodes(t,a),t.insertFragment([{text:" "}])):D.string(t,o)!==e?(t.deleteFragment(),a=mw(n,e),U.insertNodes(t,a)):(a=mw(n),U.wrapNodes(t,a,{split:!0}),U.collapse(t,{edge:"end"}))),[2]}})})}kr({target:"Array",proto:!0},{includes:function(t){return cut(this,t,arguments.length>1?arguments[1]:void 0)}}),OM("includes");var fut={type:"link",renderElem:function(t,e,r){var n=t,o=n.url,a=n.target;return Rt("a",{href:o,target:a===void 0?"_blank":a},e)}},dut={selector:"a:not([data-w-e-type])",parseElemHtml:function(t,e,r){var n=F(t);return(e=e.filter(function(o){return!!vt.isText(o)||!!r.isInline(o)})).length===0&&(e=[{text:n.text().replace(/\s+/gm," ")}]),{type:"link",url:n.attr("href")||"",target:n.attr("target")||"",children:e}}};function yw(){return S1("w-e-insert-link")}var put=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=yw(),this.urlInputId=yw(),this.buttonId=yw()}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,r){},t.prototype.isDisabled=function(e){return x6(e)},t.prototype.getModalPositionNode=function(e){return null},t.prototype.getModalContentElem=function(e){var r=e.selection,n=this,o=n.textInputId,a=n.urlInputId,i=n.buttonId,u=me(Gn(lt("link.text"),o),2),s=u[0],l=F(u[1]),c=me(Gn(lt("link.url"),a),2),f=c[0],d=F(c[1]),p=me(tf(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(),b=m.find("#"+a).val();GM(e,g,b),e.hidePanelOrModal()}),this.$content=m}var h=this.$content;if(h.empty(),h.append(s),h.append(f),h.append(p),r==null||Q.isCollapsed(r))l.val("");else{var v=D.string(e,r);l.val(v)}return d.val(""),setTimeout(function(){l.focus()}),h[0]},t}();function TB(){return S1("w-e-update-link")}var hut=function(){function t(){this.title=lt("link.edit"),this.iconSvg=IM,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=TB(),this.buttonId=TB()}return t.prototype.getSelectedLinkElem=function(e){var r=P.getSelectedNodeByType(e,"link");return r??null},t.prototype.getValue=function(e){var r=this.getSelectedLinkElem(e);return r&&r.url||""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,r){},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 r=this.urlInputId,n=this.buttonId,o=me(Gn(lt("link.url"),r),2),a=o[0],i=F(o[1]),u=me(tf(n,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("#"+r).val();(function(h,v,y){wu(this,void 0,void 0,function(){var g,b;return Eu(this,function(E){switch(E.label){case 0:return y?[4,UM("editLink",h,v,y)]:[2];case 1:return E.sent()?[4,_M("editLink",h,y)]:[2];case 2:return g=E.sent(),b={url:S6(g)},U.setNodes(h,b,{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}(),gut=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,r){this.isDisabled(e)||U.unwrapNodes(e,{match:function(n){return P.checkNodeType(n,"link")}})},t}(),vut=function(){function t(){this.title=lt("link.view"),this.iconSvg=jM,this.tag="button"}return t.prototype.getSelectedLinkElem=function(e){var r=P.getSelectedNodeByType(e,"link");return r??null},t.prototype.getValue=function(e){var r=this.getSelectedLinkElem(e);return r&&r.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,r){if(!this.isDisabled(e)){if(!r||typeof r!="string")throw new Error("View link failed, link url is '"+r+"'");window.open(r,"_blank")}},t}(),BB={checkLink:function(t,e){return!0},parseLinkUrl:function(t){return t}},mut={renderElems:[fut],elemsToHtml:[{type:"link",elemToHtml:function(t,e){var r=t,n=r.url,o=r.target;return'<a href="'+n+'" target="'+(o===void 0?"_blank":o)+'">'+e+"</a>"}}],parseElemsHtml:[dut],menus:[{key:"insertLink",factory:function(){return new put},config:BB},{key:"editLink",factory:function(){return new hut},config:BB},{key:"unLink",factory:function(){return new gut}},{key:"viewLink",factory:function(){return new vut}}],editorPlugin:function(t){var e=t.isInline,r=t.insertData,n=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(uut);if(!c)return!1;var f=c[1];return!(!f||!sut.test(f)&&!lut.test(f))}(i)){if(!x6(o)){var u=o.selection;if(u!=null){var s=D.string(o,u);GM(o,s,i)}}}else r(a)},o.normalizeNode=function(a){var i=me(a,2),u=i[0],s=i[1];return P.getNodeType(u)!=="link"?n([u,s]):st.string(u)===""?U.removeNodes(o,{at:s}):n([u,s])},o}},yut=Nt(1 .valueOf),but=Gt.RangeError,wut=Gt.RangeError,WM=Gt.String,KM=Math.floor,P4=Nt(function(t){var e=Xe(Eo(this)),r="",n=nf(t);if(n<0||n==1/0)throw but("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(e+=e))1&n&&(r+=e);return r}),PB=Nt("".slice),nd=Nt(1 .toFixed),ql=function(t,e,r){return e===0?r:e%2==1?ql(t,e-1,r*t):ql(t*t,e/2,r)},Ol=function(t,e,r){for(var n=-1,o=r;++n<6;)o+=e*t[n],t[n]=o%1e7,o=KM(o/1e7)},bw=function(t,e){for(var r=6,n=0;--r>=0;)n+=t[r],t[r]=KM(n/e),n=n%e*1e7},FB=function(t){for(var e=6,r="";--e>=0;)if(r!==""||e===0||t[e]!==0){var n=WM(t[e]);r=r===""?n:r+P4("0",7-n.length)+n}return r};function kB(t,e){return"w-e-image-container-"+P.findKey(t,e).id}kr({target:"Number",proto:!0,forced:Je(function(){return nd(8e-5,3)!=="0.000"||nd(.9,0)!=="1"||nd(1.255,2)!=="1.25"||nd(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!Je(function(){nd({})})},{toFixed:function(t){var e,r,n,o,a=yut(this),i=nf(t),u=[0,0,0,0,0,0],s="",l="0";if(i<0||i>20)throw wut("Incorrect fraction digits");if(a!=a)return"NaN";if(a<=-1e21||a>=1e21)return WM(a);if(a<0&&(s="-",a=-a),a>1e-21)if(r=(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*ql(2,69,1))-69)<0?a*ql(2,-e,1):a/ql(2,e,1),r*=4503599627370496,(e=52-e)>0){for(Ol(u,0,r),n=i;n>=7;)Ol(u,1e7,0),n-=7;for(Ol(u,ql(10,n,1),0),n=e-1;n>=23;)bw(u,1<<23),n-=23;bw(u,1<<n),Ol(u,1,1),bw(u,2),l=FB(u)}else Ol(u,0,r),Ol(u,1<<-e,0),l=FB(u)+P4("0",i);return i>0?s+((o=l.length)<=i?"0."+P4("0",i-o)+l:PB(l,0,o-i)+"."+PB(l,o-i)):s+l}});var Eut={type:"image",renderElem:function(t,e,r){var n=t,o=n.src,a=n.alt,i=a===void 0?"":a,u=n.href,s=u===void 0?"":u,l=n.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(r,t),v={};d&&(v.width="100%"),m&&(v.height="100%");var y=Rt("img",{style:v,src:o,alt:i,"data-href":s}),g=r.isDisabled();return h&&!g?function(b,E,x,S){var C=F("body"),T=kB(b,E),A=S.width,k=S.height,M=0,$=0,N=0,j=!1,_=null;function V(G){_=function(){var I=F("#"+T);if(I.length===0)throw new Error("Cannot find image container elem");return I}(),M=G;var O=_.find("img");if(O.length===0)throw new Error("Cannot find image elem");$=O.width(),N=O.height(),C.on("mousemove",Z),C.on("mouseup",nt);var B=P.getHoverbar(b);B&&B.hideAndClean()}var Z=Is(function(G){G.preventDefault();var O=G.clientX,B=$+(j?M-O:O-M),I=N*(B/$);_!=null&&(B<=15||I<=15||(_.css("width",B+"px"),_.css("height",I+"px")))},100);function nt(G){if(C.off("mousemove",Z),_!=null){var O=_.width().toFixed(2),B=_.height().toFixed(2),I={style:lu(lu({},E.style),{width:O+"px",height:B+"px"})};U.setNodes(b,I,{at:P.findPath(b,E)}),C.off("mouseup",nt)}}var it={};return A&&(it.width=A),k&&(it.height=k),Rt("div",{id:T,style:it,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(G){var O=F(G.target);O.hasClass("w-e-image-dragger")&&(G.preventDefault(),(O.hasClass("left-top")||O.hasClass("left-bottom"))&&(j=!0),V(G.clientX))}}},x,Rt("div",{className:"w-e-image-dragger left-top"}),Rt("div",{className:"w-e-image-dragger right-top"}),Rt("div",{className:"w-e-image-dragger left-bottom"}),Rt("div",{className:"w-e-image-dragger right-bottom"}))}(r,t,y,{width:d,height:m}):function(b,E,x,S){var C=S.width,T=S.height,A={};return C&&(A.width=C),T&&(A.height=T),Rt("div",{id:kB(b,E),style:A,className:"w-e-image-container"},x)}(r,t,y,{width:d,height:m})}},Sut={selector:"img:not([data-w-e-type])",parseElemHtml:function(t,e,r){var n=F(t),o=n.attr("data-href")||"";return o=decodeURIComponent(o),{type:"image",src:n.attr("src")||"",alt:n.attr("alt")||"",href:o,style:{width:Mo(n,"width"),height:Mo(n,"height")},children:[{text:""}]}}};function YM(t,e,r,n,o){return n===void 0&&(n=""),o===void 0&&(o=""),wu(this,void 0,void 0,function(){var a,i;return Eu(this,function(u){switch(u.label){case 0:return(a=e.getMenuConfig(t).checkImage)?[4,a(r,n,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 XM(t,e,r){return wu(this,void 0,void 0,function(){var n;return Eu(this,function(o){switch(o.label){case 0:return(n=e.getMenuConfig(t).parseImageSrc)?[4,n(r)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,r]}})})}function ms(t,e,r,n){return r===void 0&&(r=""),n===void 0&&(n=""),wu(this,void 0,void 0,function(){var o,a,i;return Eu(this,function(u){switch(u.label){case 0:return[4,YM("insertImage",t,e,r,n)];case 1:return u.sent()?[4,XM("insertImage",t,e)]:[2];case 2:return o=u.sent(),a={type:"image",src:S6(o),href:n,alt:r,style:{},children:[{text:""}]},t.selection===null&&t.restoreSelection(),P.getSelectedNodeByType(t,"image")&&t.move(1),x1(t)||(U.insertNodes(t,a),(i=t.getMenuConfig("insertImage").onInsertedImage)&&i(a)),[2]}})})}function x1(t){var e=t.selection;return e==null||!Q.isCollapsed(e)||!!me(D.nodes(t,{match:function(r){var n=P.getNodeType(r);return n==="code"||n==="pre"||n==="link"||n==="list-item"||!!n.startsWith("header")||n==="blockquote"||!!D.isVoid(t,r)},universal:!0}),1)[0]}function sv(){return S1("w-e-insert-image")}var xut=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=sv(),this.altInputId=sv(),this.hrefInputId=sv(),this.buttonId=sv()}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,r){},t.prototype.isDisabled=function(e){return x1(e)},t.prototype.getModalPositionNode=function(e){return null},t.prototype.getModalContentElem=function(e){var r=this,n=this,o=n.srcInputId,a=n.altInputId,i=n.hrefInputId,u=n.buttonId,s=me(Gn(lt("image.src"),o),2),l=s[0],c=F(s[1]),f=me(Gn(lt("image.desc"),a),2),d=f[0],p=F(f[1]),m=me(Gn(lt("image.link"),i),2),h=m[0],v=F(m[1]),y=me(tf(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();r.insertImage(e,x,S,C),e.hidePanelOrModal()}),this.$content=g}var b=this.$content;return b.empty(),b.append(l),b.append(d),b.append(h),b.append(y),c.val(""),p.val(""),v.val(""),setTimeout(function(){c.focus()}),b[0]},t.prototype.insertImage=function(e,r,n,o){n===void 0&&(n=""),o===void 0&&(o=""),r&&(e.restoreSelection(),this.isDisabled(e)||ms(e,r,n,o))},t}(),Cut=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,r){this.isDisabled(e)||U.removeNodes(e,{match:function(n){return P.checkNodeType(n,"image")}})},t}();function lv(){return S1("w-e-edit-image")}var Dut=function(){function t(){this.title=lt("image.edit"),this.iconSvg=IM,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=lv(),this.altInputId=lv(),this.hrefInputId=lv(),this.buttonId=lv()}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,r){},t.prototype.isDisabled=function(e){var r=e.selection;return r==null||!Q.isCollapsed(r)||P.getSelectedNodeByType(e,"image")==null},t.prototype.getModalPositionNode=function(e){return this.getImageNode(e)},t.prototype.getModalContentElem=function(e){var r=this,n=this,o=n.srcInputId,a=n.altInputId,i=n.hrefInputId,u=n.buttonId,s=this.getImageNode(e);if(s==null)throw new Error("Not found selected image node");var l=me(Gn(lt("image.src"),o),2),c=l[0],f=F(l[1]),d=me(Gn(lt("image.desc"),a),2),p=d[0],m=F(d[1]),h=me(Gn(lt("image.link"),i),2),v=h[0],y=F(h[1]),g=me(tf(u,lt("common.ok")),1)[0];if(this.$content==null){var b=F("<div></div>");b.on("click","#"+u,function(M){M.preventDefault();var $=b.find("#"+o).val(),N=b.find("#"+a).val(),j=b.find("#"+i).val();r.updateImage(e,$,N,j),e.hidePanelOrModal()}),this.$content=b}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,r,n,o,a){n===void 0&&(n=""),o===void 0&&(o=""),a===void 0&&(a={}),r&&(e.restoreSelection(),this.isDisabled(e)||function(i,u,s,l,c){s===void 0&&(s=""),l===void 0&&(l=""),c===void 0&&(c={}),wu(this,void 0,void 0,function(){var f,d,p,m,h,v;return Eu(this,function(y){switch(y.label){case 0:return[4,YM("editImage",i,u,s,l)];case 1:return y.sent()?[4,XM("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:lu(lu({},p===void 0?{}:p),c)},U.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,r,n,o,a))},t}(),Out=function(){function t(){this.title=lt("image.viewLink"),this.iconSvg=jM,this.tag="button"}return t.prototype.getValue=function(e){var r=P.getSelectedNodeByType(e,"image");return r&&r.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,r){if(!this.isDisabled(e)){if(!r||typeof r!="string")throw new Error("View image link failed, image.href is '"+r+"'");window.open(r,"_blank")}},t}(),C6=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,r){if(!this.isDisabled(e)){var n=this.getSelectedNode(e);if(n!=null){var o=P.getHoverbar(e);o&&o.hideAndClean();var a=n.style,i={style:lu(lu({},a===void 0?{}:a),{width:this.value,height:""})};U.setNodes(e,i,{match:function(u){return P.checkNodeType(u,"image")}})}}},t}(),Aut=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title="30%",r.value="30%",r}return Ge(e,t),e}(C6),Tut=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title="50%",r.value="50%",r}return Ge(e,t),e}(C6),But=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title="100%",r.value="100%",r}return Ge(e,t),e}(C6),NB={onInsertedImage:function(t){},onUpdatedImage:function(t){},checkImage:function(t,e,r){return!0},parseImageSrc:function(t){return t}},Put={renderElems:[Eut],elemsToHtml:[{type:"image",elemToHtml:function(t,e){var r=t,n=r.src,o=r.alt,a=o===void 0?"":o,i=r.href,u=i===void 0?"":i,s=r.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="'+n+'" alt="'+a+'" data-href="'+u+'" style="'+m+'"/>'}}],parseElemsHtml:[Sut],menus:[{key:"insertImage",factory:function(){return new xut},config:NB},{key:"deleteImage",factory:function(){return new Cut}},{key:"editImage",factory:function(){return new Dut},config:NB},{key:"viewImageLink",factory:function(){return new Out}},{key:"imageWidth30",factory:function(){return new Aut}},{key:"imageWidth50",factory:function(){return new Tut}},{key:"imageWidth100",factory:function(){return new But}}],editorPlugin:function(t){var e=t.isInline,r=t.isVoid;t.insertNode;var n=t;return n.isInline=function(o){return o.type==="image"||e(o)},n.isVoid=function(o){return o.type==="image"||r(o)},n}},Fut={type:"todo",renderElem:function(t,e,r){var n=!1;r.isDisabled()&&(n=!0);var o=Rt("div",{style:{margin:"5px 0"}},Rt("span",{contentEditable:!1,style:{marginRight:"0.5em"}},Rt("input",{type:"checkbox",checked:t.checked,disabled:n,on:{change:function(a){var i=P.findPath(r,t),u={checked:a.target.checked};U.setNodes(r,u,{at:i})}}})),Rt("span",null,e));return o}},kut=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(r){if(D.isVoid(e,r)&&D.isBlock(e,r))return!0;var n=r.type;return!!["pre","table","list-item"].includes(n)||void 0})},t.prototype.exec=function(e,r){var n=this.isActive(e);U.setNodes(e,{type:n?"paragraph":"todo"})},t}(),Nut={selector:'div[data-w-e-type="todo"]',parseElemHtml:function(t,e,r){var n=F(t);(e=e.filter(function(a){return!!vt.isText(a)||!!r.isInline(a)})).length===0&&(e=[{text:n.text().replace(/\s+/gm," ")}]);var o=!1;return n.find('input[type="checkbox"]').attr("checked")!=null&&(o=!0),{type:"todo",checked:o,children:e}}},Iut={renderElems:[Fut],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"),r=F('<div data-w-e-type="todo"></div>'),n=e.find("input[type]");return r.append(n),e.children()[0].remove(),r[0].innerHTML=r[0].innerHTML+e[0].innerHTML,r[0]}}],parseElemsHtml:[Nut],menus:[{key:"todo",factory:function(){return new kut}}],editorPlugin:function(t){var e=t.deleteBackward,r=t;return r.deleteBackward=function(n){var o=t.selection;if(o&&Q.isCollapsed(o)){var a=P.getSelectedNodeByType(t,"todo");if(a&&st.string(a).length===0)return void U.setNodes(t,{type:"paragraph"},{mode:"highest"})}e(n)},r}},jut={type:"blockquote",renderElem:function(t,e,r){return Rt("blockquote",null,e)}},Rut={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(t,e,r){var n=F(t);return(e=e.filter(function(o){return!!vt.isText(o)||!!r.isInline(o)})).length===0&&(e=[{text:n.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:e}}},Lut=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||!me(D.nodes(e,{match:function(r){var n=P.getNodeType(r);return n==="paragraph"||n==="blockquote"},universal:!0,mode:"highest"}),1)[0]},t.prototype.exec=function(e,r){if(!this.isDisabled(e)){var n=this.isActive(e)?"paragraph":"blockquote";U.setNodes(e,{type:n},{mode:"highest"})}},t}(),Mut={key:"blockquote",factory:function(){return new Lut}},Vut=Nt([].slice),$ut=v6("slice"),zut=qn("species"),ww=Gt.Array,Hut=Math.max;kr({target:"Array",proto:!0,forced:!$ut},{slice:function(t,e){var r,n,o,a=ef(this),i=w1(a),u=Jp(t,i),s=Jp(e===void 0?i:e,i);if(Im(a)&&(r=a.constructor,(g6(r)&&(r===ww||Im(r.prototype))||ii(r)&&(r=r[zut])===null)&&(r=void 0),r===ww||r===void 0))return Vut(a,u,s);for(n=new(r===void 0?ww:r)(Hut(s-u,0)),o=0;u<s;u++,o++)u in a&&TM(n,o,a[u]);return n.length=o,n}});var Uut={renderElems:[jut],elemsToHtml:[{type:"blockquote",elemToHtml:function(t,e){return"<blockquote>"+e+"</blockquote>"}}],parseElemsHtml:[Rut],menus:[Mut],editorPlugin:function(t){var e=t.insertBreak,r=t.insertText,n=t;return n.insertBreak=function(){var o=n.selection;if(o==null)return e();var a=me(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 U.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}r(`
|
|
112
|
+
`)},n}},_ut=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,r){},t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||!!me(D.nodes(e,{match:function(r){return P.getNodeType(r)==="pre"||!!D.isVoid(e,r)},universal:!0}),1)[0]},t.prototype.getPanelContentElem=function(e){if(this.$content==null){var r=F('<ul class="w-e-panel-content-emotion"></ul>');r.on("click","li",function(a){var i=a.target;if(i!=null){a.preventDefault();var u=F(i).text();e.insertText(u)}}),this.$content=r}var n=this.$content;if(n==null)return document.createElement("ul");n.empty();var o=e.getMenuConfig("emotion").emotions;return(o===void 0?[]:o).forEach(function(a){var i=F("<li>"+a+"</li>");n.append(i)}),n[0]},t}(),Gut={menus:[{key:"emotion",factory:function(){return new _ut},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},Wut={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},Kut={selector:"font",preParseHtml:function(t){var e=F(t);if(af(e)!=="font")return t;var r=e.attr("size")||"";r&&(e.removeAttr("size"),e.css("font-size",Wut[r]));var n=e.attr("face")||"";return n&&(e.removeAttr("face"),e.css("font-family",n)),e[0]}},Yut=Nt("".indexOf);kr({target:"String",proto:!0,forced:!MM("includes")},{includes:function(t){return!!~Yut(Xe(Eo(this)),Xe(LM(t)),arguments.length>1?arguments[1]:void 0)}});var ga,c0,cv=function(t){return t&&t.Math==Math&&t},Jt=cv(typeof globalThis=="object"&&globalThis)||cv(typeof window=="object"&&window)||cv(typeof self=="object"&&self)||cv(typeof Fm=="object"&&Fm)||function(){return this}()||Function("return this")(),D6=Function.prototype,IB=D6.apply,Xut=D6.bind,jB=D6.call,ZM=typeof Reflect=="object"&&Reflect.apply||(Xut?jB.bind(IB):function(){return jB.apply(IB,arguments)}),JM=Function.prototype,F4=JM.bind,k4=JM.call,Zut=F4&&F4.bind(k4),ur=F4?function(t){return t&&Zut(k4,t)}:function(t){return t&&function(){return k4.apply(t,arguments)}},sn=function(t){return typeof t=="function"},Zn=function(t){try{return!!t()}catch{return!0}},Tn=!Zn(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),od=Function.prototype.call,fi=od.bind?od.bind(od):function(){return od.apply(od,arguments)},RB={}.propertyIsEnumerable,LB=Object.getOwnPropertyDescriptor,Jut=LB&&!RB.call({1:2},1)?function(t){var e=LB(this,t);return!!e&&e.enumerable}:RB,O6={f:Jut},zs=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},Qut=ur({}.toString),qut=ur("".slice),ys=function(t){return qut(Qut(t),8,-1)},Ew=Jt.Object,tst=ur("".split),QM=Zn(function(){return!Ew("z").propertyIsEnumerable(0)})?function(t){return ys(t)=="String"?tst(t,""):Ew(t)}:Ew,est=Jt.TypeError,A6=function(t){if(t==null)throw est("Can't call method on "+t);return t},Di=function(t){return QM(A6(t))},No=function(t){return typeof t=="object"?t!==null:sn(t)},ao={},MB=function(t){return sn(t)?t:void 0},Jh=function(t,e){return arguments.length<2?MB(ao[t])||MB(Jt[t]):ao[t]&&ao[t][e]||Jt[t]&&Jt[t][e]},qM=ur({}.isPrototypeOf),Sw=Jh("navigator","userAgent")||"",VB=Jt.process,$B=Jt.Deno,zB=VB&&VB.versions||$B&&$B.version,HB=zB&&zB.v8;HB&&(c0=(ga=HB.split("."))[0]>0&&ga[0]<4?1:+(ga[0]+ga[1])),!c0&&Sw&&(!(ga=Sw.match(/Edge\/(\d+)/))||ga[1]>=74)&&(ga=Sw.match(/Chrome\/(\d+)/))&&(c0=+ga[1]);var Lm=c0,Qo=!!Object.getOwnPropertySymbols&&!Zn(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Lm&&Lm<41}),T6=Qo&&!Symbol.sham&&typeof Symbol.iterator=="symbol",rst=Jt.Object,sc=T6?function(t){return typeof t=="symbol"}:function(t){var e=Jh("Symbol");return sn(e)&&qM(e.prototype,rst(t))},nst=Jt.String,ost=Jt.TypeError,tV=function(t){if(sn(t))return t;throw ost(function(e){try{return nst(e)}catch{return"Object"}}(t)+" is not a function")},ist=Jt.TypeError,ast=Object.defineProperty,Wa=Jt["__core-js_shared__"]||function(t,e){try{ast(Jt,t,{value:e,configurable:!0,writable:!0})}catch{Jt[t]=e}return e}("__core-js_shared__",{}),el=v1(function(t){(t.exports=function(e,r){return Wa[e]||(Wa[e]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),ust=Jt.Object,Qh=function(t){return ust(A6(t))},sst=ur({}.hasOwnProperty),ve=Object.hasOwn||function(t,e){return sst(Qh(t),e)},lst=0,cst=Math.random(),fst=ur(1 .toString),Mm=function(t){return"Symbol("+(t===void 0?"":t)+")_"+fst(++lst+cst,36)},id=el("wks"),bs=Jt.Symbol,UB=bs&&bs.for,dst=T6?bs:bs&&bs.withoutSetter||Mm,to=function(t){if(!ve(id,t)||!Qo&&typeof id[t]!="string"){var e="Symbol."+t;Qo&&ve(bs,t)?id[t]=bs[t]:id[t]=T6&&UB?UB(e):dst(e)}return id[t]},pst=Jt.TypeError,hst=to("toPrimitive"),uf=function(t){var e=function(r,n){if(!No(r)||sc(r))return r;var o,a,i=(o=r[hst])==null?void 0:tV(o);if(i){if(a=fi(i,r,n),!No(a)||sc(a))return a;throw pst("Can't convert object to primitive value")}return function(u,s){var l,c;if(sn(l=u.toString)&&!No(c=fi(l,u))||sn(l=u.valueOf)&&!No(c=fi(l,u)))return c;throw ist("Can't convert object to primitive value")}(r)}(t,"string");return sc(e)?e:e+""},N4=Jt.document,gst=No(N4)&&No(N4.createElement),eV=function(t){return gst?N4.createElement(t):{}},rV=!Tn&&!Zn(function(){return Object.defineProperty(eV("div"),"a",{get:function(){return 7}}).a!=7}),_B=Object.getOwnPropertyDescriptor,B6={f:Tn?_B:function(t,e){if(t=Di(t),e=uf(e),rV)try{return _B(t,e)}catch{}if(ve(t,e))return zs(!fi(O6.f,t,e),t[e])}},vst=/#|\.prototype\./,qh=function(t,e){var r=yst[mst(t)];return r==wst||r!=bst&&(sn(e)?Zn(e):!!e)},mst=qh.normalize=function(t){return String(t).replace(vst,".").toLowerCase()},yst=qh.data={},bst=qh.NATIVE="N",wst=qh.POLYFILL="P",Est=qh,GB=ur(ur.bind),nV=function(t,e){return tV(t),e===void 0?t:GB?GB(t,e):function(){return t.apply(e,arguments)}},Sst=Jt.String,xst=Jt.TypeError,Hs=function(t){if(No(t))return t;throw xst(Sst(t)+" is not an object")},Cst=Jt.TypeError,WB=Object.defineProperty,rl={f:Tn?WB:function(t,e,r){if(Hs(t),e=uf(e),Hs(r),rV)try{return WB(t,e,r)}catch{}if("get"in r||"set"in r)throw Cst("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},ti=Tn?function(t,e,r){return rl.f(t,e,zs(1,r))}:function(t,e,r){return t[e]=r,t},Dst=B6.f,Ost=function(t){var e=function(r,n,o){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(r);case 2:return new t(r,n)}return new t(r,n,o)}return ZM(t,this,arguments)};return e.prototype=t.prototype,e},Da=function(t,e){var r,n,o,a,i,u,s,l,c=t.target,f=t.global,d=t.stat,p=t.proto,m=f?Jt:d?Jt[c]:(Jt[c]||{}).prototype,h=f?ao:ao[c]||ti(ao,c,{})[c],v=h.prototype;for(o in e)r=!Est(f?o:c+(d?".":"#")+o,t.forced)&&m&&ve(m,o),i=h[o],r&&(u=t.noTargetGet?(l=Dst(m,o))&&l.value:m[o]),a=r&&u?u:e[o],r&&typeof i==typeof a||(s=t.bind&&r?nV(a,Jt):t.wrap&&r?Ost(a):p&&sn(a)?ur(a):a,(t.sham||a&&a.sham||i&&i.sham)&&ti(s,"sham",!0),ti(h,o,s),p&&(ve(ao,n=c+"Prototype")||ti(ao,n,{}),ti(ao[n],o,a),t.real&&v&&!v[o]&&ti(v,o,a)))},Vm=Array.isArray||function(t){return ys(t)=="Array"},Ast=Math.ceil,Tst=Math.floor,P6=function(t){var e=+t;return e!=e||e===0?0:(e>0?Tst:Ast)(e)},Bst=Math.min,C1=function(t){return(e=t.length)>0?Bst(P6(e),9007199254740991):0;var e},I4=function(t,e,r){var n=uf(e);n in t?rl.f(t,n,zs(0,r)):t[n]=r},oV={};oV[to("toStringTag")]="z";var F6=String(oV)==="[object z]",Pst=to("toStringTag"),Fst=Jt.Object,kst=ys(function(){return arguments}())=="Arguments",D1=F6?ys:function(t){var e,r,n;return t===void 0?"Undefined":t===null?"Null":typeof(r=function(o,a){try{return o[a]}catch{}}(e=Fst(t),Pst))=="string"?r:kst?ys(e):(n=ys(e))=="Object"&&sn(e.callee)?"Arguments":n},Nst=ur(Function.toString);sn(Wa.inspectSource)||(Wa.inspectSource=function(t){return Nst(t)});var iV=Wa.inspectSource,aV=function(){},Ist=[],uV=Jh("Reflect","construct"),k6=/^\s*(?:class|function)\b/,jst=ur(k6.exec),Rst=!k6.exec(aV),ad=function(t){if(!sn(t))return!1;try{return uV(aV,Ist,t),!0}catch{return!1}},Lst=!uV||Zn(function(){var t;return ad(ad.call)||!ad(Object)||!ad(function(){t=!0})||t})?function(t){if(!sn(t))return!1;switch(D1(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Rst||!!jst(k6,iV(t))}:ad,Mst=to("species"),KB=Jt.Array,sV=function(t,e){return new(function(r){var n;return Vm(r)&&(n=r.constructor,(Lst(n)&&(n===KB||Vm(n.prototype))||No(n)&&(n=n[Mst])===null)&&(n=void 0)),n===void 0?KB:n}(t))(e===0?0:e)},Vst=to("species"),lV=to("isConcatSpreadable"),YB=Jt.TypeError,$st=Lm>=51||!Zn(function(){var t=[];return t[lV]=!1,t.concat()[0]!==t}),zst=Lm>=51||!Zn(function(){var t=[];return(t.constructor={})[Vst]=function(){return{foo:1}},t.concat(Boolean).foo!==1}),Hst=function(t){if(!No(t))return!1;var e=t[lV];return e!==void 0?!!e:Vm(t)};Da({target:"Array",proto:!0,forced:!$st||!zst},{concat:function(t){var e,r,n,o,a,i=Qh(this),u=sV(i,0),s=0;for(e=-1,n=arguments.length;e<n;e++)if(Hst(a=e===-1?i:arguments[e])){if(s+(o=C1(a))>9007199254740991)throw YB("Maximum allowed index exceeded");for(r=0;r<o;r++,s++)r in a&&I4(u,s,a[r])}else{if(s>=9007199254740991)throw YB("Maximum allowed index exceeded");I4(u,s++,a)}return u.length=s,u}});var fv,Ust=Jt.String,$m=function(t){if(D1(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Ust(t)},_st=Math.max,Gst=Math.min,j4=function(t,e){var r=P6(t);return r<0?_st(r+e,0):Gst(r,e)},Wst=function(t){return function(e,r,n){var o,a=Di(e),i=C1(a),u=j4(n,i);if(t&&r!=r){for(;i>u;)if((o=a[u++])!=o)return!0}else for(;i>u;u++)if((t||u in a)&&a[u]===r)return t||u||0;return!t&&-1}},Kst={indexOf:Wst(!1)},tg={},Yst=Kst.indexOf,XB=ur([].push),cV=function(t,e){var r,n=Di(t),o=0,a=[];for(r in n)!ve(tg,r)&&ve(n,r)&&XB(a,r);for(;e.length>o;)ve(n,r=e[o++])&&(~Yst(a,r)||XB(a,r));return a},zm=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],N6=Object.keys||function(t){return cV(t,zm)},Xst=Tn?Object.defineProperties:function(t,e){Hs(t);for(var r,n=Di(e),o=N6(e),a=o.length,i=0;a>i;)rl.f(t,r=o[i++],n[r]);return t},Zst=Jh("document","documentElement"),ZB=el("keys"),O1=function(t){return ZB[t]||(ZB[t]=Mm(t))},fV=O1("IE_PROTO"),xw=function(){},dV=function(t){return"<script>"+t+"<\/script>"},JB=function(t){t.write(dV("")),t.close();var e=t.parentWindow.Object;return t=null,e},f0=function(){try{fv=new ActiveXObject("htmlfile")}catch{}var t,e;f0=typeof document<"u"?document.domain&&fv?JB(fv):((e=eV("iframe")).style.display="none",Zst.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(dV("document.F=Object")),t.close(),t.F):JB(fv);for(var r=zm.length;r--;)delete f0.prototype[zm[r]];return f0()};tg[fV]=!0;var Hm,hp,Um,Us=Object.create||function(t,e){var r;return t!==null?(xw.prototype=Hs(t),r=new xw,xw.prototype=null,r[fV]=t):r=f0(),e===void 0?r:Xst(r,e)},Jst=zm.concat("length","prototype"),pV={f:Object.getOwnPropertyNames||function(t){return cV(t,Jst)}},Qst=Jt.Array,qst=Math.max,QB=pV.f,qB=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],hV={f:function(t){return qB&&ys(t)=="Window"?function(e){try{return QB(e)}catch{return function(n,o,a){for(var i=C1(n),u=j4(void 0,i),s=j4(i,i),l=Qst(qst(s-u,0)),c=0;u<s;u++,c++)I4(l,c,n[u]);return l.length=c,l}(qB)}}(t):QB(Di(t))}},Cw={f:Object.getOwnPropertySymbols},tlt=ur([].slice),_m=function(t,e,r,n){ti(t,e,r)},I6={f:to},elt=rl.f,dr=function(t){var e=ao.Symbol||(ao.Symbol={});ve(e,t)||elt(e,t,{value:I6.f(t)})},rlt=F6?{}.toString:function(){return"[object "+D1(this)+"]"},nlt=rl.f,tP=to("toStringTag"),Gm=function(t,e,r,n){if(t){var o=r?t:t.prototype;ve(o,tP)||nlt(o,tP,{configurable:!0,value:e}),n&&!F6&&ti(o,"toString",rlt)}},eP=Jt.WeakMap,olt=sn(eP)&&/native code/.test(iV(eP)),R4=Jt.TypeError,ilt=Jt.WeakMap;if(olt||Wa.state){var Ru=Wa.state||(Wa.state=new ilt),alt=ur(Ru.get),rP=ur(Ru.has),ult=ur(Ru.set);Hm=function(t,e){if(rP(Ru,t))throw new R4("Object already initialized");return e.facade=t,ult(Ru,t,e),e},hp=function(t){return alt(Ru,t)||{}},Um=function(t){return rP(Ru,t)}}else{var Al=O1("state");tg[Al]=!0,Hm=function(t,e){if(ve(t,Al))throw new R4("Object already initialized");return e.facade=t,ti(t,Al,e),e},hp=function(t){return ve(t,Al)?t[Al]:{}},Um=function(t){return ve(t,Al)}}var sf={set:Hm,get:hp,has:Um,enforce:function(t){return Um(t)?hp(t):Hm(t,{})},getterFor:function(t){return function(e){var r;if(!No(e)||(r=hp(e)).type!==t)throw R4("Incompatible receiver, "+t+" required");return r}}},nP=ur([].push),va=function(t){var e=t==1,r=t==2,n=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=Qh(s),h=QM(m),v=nV(l,c),y=C1(h),g=0,b=f||sV,E=e?b(s,y):r||i?b(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:nP(E,d)}else switch(t){case 4:return!1;case 7:nP(E,d)}return a?-1:n||o?o:E}},A1=[va(0),va(1),va(2),va(3),va(4),va(5),va(6),va(7)][0],Sn=O1("hidden"),oP=to("toPrimitive"),slt=sf.set,iP=sf.getterFor("Symbol"),Io=Object.prototype,Ba=Jt.Symbol,Ra=Ba&&Ba.prototype,aP=Jt.TypeError,Dw=Jt.QObject,ud=Jh("JSON","stringify"),gV=B6.f,Pa=rl.f,vV=hV.f,llt=O6.f,mV=ur([].push),Zi=el("symbols"),eg=el("op-symbols"),Ow=el("string-to-symbol-registry"),Aw=el("symbol-to-string-registry"),clt=el("wks"),Tw=!Dw||!Dw.prototype||!Dw.prototype.findChild,L4=Tn&&Zn(function(){return Us(Pa({},"a",{get:function(){return Pa(this,"a",{value:7}).a}})).a!=7})?function(t,e,r){var n=gV(Io,e);n&&delete Io[e],Pa(t,e,r),n&&t!==Io&&Pa(Io,e,n)}:Pa,Bw=function(t,e){var r=Zi[t]=Us(Ra);return slt(r,{type:"Symbol",tag:t,description:e}),Tn||(r.description=e),r},Wm=function(t,e,r){t===Io&&Wm(eg,e,r),Hs(t);var n=uf(e);return Hs(r),ve(Zi,n)?(r.enumerable?(ve(t,Sn)&&t[Sn][n]&&(t[Sn][n]=!1),r=Us(r,{enumerable:zs(0,!1)})):(ve(t,Sn)||Pa(t,Sn,zs(1,{})),t[Sn][n]=!0),L4(t,n,r)):Pa(t,n,r)},uP=function(t,e){Hs(t);var r=Di(e),n=N6(r).concat(M4(r));return A1(n,function(o){Tn&&!fi(yV,r,o)||Wm(t,o,r[o])}),t},yV=function(t){var e=uf(t),r=fi(llt,this,e);return!(this===Io&&ve(Zi,e)&&!ve(eg,e))&&(!(r||!ve(this,e)||!ve(Zi,e)||ve(this,Sn)&&this[Sn][e])||r)},sP=function(t,e){var r=Di(t),n=uf(e);if(r!==Io||!ve(Zi,n)||ve(eg,n)){var o=gV(r,n);return!o||!ve(Zi,n)||ve(r,Sn)&&r[Sn][n]||(o.enumerable=!0),o}},lP=function(t){var e=vV(Di(t)),r=[];return A1(e,function(n){ve(Zi,n)||ve(tg,n)||mV(r,n)}),r},M4=function(t){var e=t===Io,r=vV(e?eg:Di(t)),n=[];return A1(r,function(o){!ve(Zi,o)||e&&!ve(Io,o)||mV(n,Zi[o])}),n};if(Qo||(Ra=(Ba=function(){if(qM(Ra,this))throw aP("Symbol is not a constructor");var t=arguments.length&&arguments[0]!==void 0?$m(arguments[0]):void 0,e=Mm(t),r=function(n){this===Io&&fi(r,eg,n),ve(this,Sn)&&ve(this[Sn],e)&&(this[Sn][e]=!1),L4(this,e,zs(1,n))};return Tn&&Tw&&L4(Io,e,{configurable:!0,set:r}),Bw(e,t)}).prototype,_m(Ra,"toString",function(){return iP(this).tag}),_m(Ba,"withoutSetter",function(t){return Bw(Mm(t),t)}),O6.f=yV,rl.f=Wm,B6.f=sP,pV.f=hV.f=lP,Cw.f=M4,I6.f=function(t){return Bw(to(t),t)},Tn&&Pa(Ra,"description",{configurable:!0,get:function(){return iP(this).description}})),Da({global:!0,wrap:!0,forced:!Qo,sham:!Qo},{Symbol:Ba}),A1(N6(clt),function(t){dr(t)}),Da({target:"Symbol",stat:!0,forced:!Qo},{for:function(t){var e=$m(t);if(ve(Ow,e))return Ow[e];var r=Ba(e);return Ow[e]=r,Aw[r]=e,r},keyFor:function(t){if(!sc(t))throw aP(t+" is not a symbol");if(ve(Aw,t))return Aw[t]},useSetter:function(){Tw=!0},useSimple:function(){Tw=!1}}),Da({target:"Object",stat:!0,forced:!Qo,sham:!Tn},{create:function(t,e){return e===void 0?Us(t):uP(Us(t),e)},defineProperty:Wm,defineProperties:uP,getOwnPropertyDescriptor:sP}),Da({target:"Object",stat:!0,forced:!Qo},{getOwnPropertyNames:lP,getOwnPropertySymbols:M4}),Da({target:"Object",stat:!0,forced:Zn(function(){Cw.f(1)})},{getOwnPropertySymbols:function(t){return Cw.f(Qh(t))}}),ud){var flt=!Qo||Zn(function(){var t=Ba();return ud([t])!="[null]"||ud({a:t})!="{}"||ud(Object(t))!="{}"});Da({target:"JSON",stat:!0,forced:flt},{stringify:function(t,e,r){var n=tlt(arguments),o=e;if((No(e)||t!==void 0)&&!sc(t))return Vm(e)||(e=function(a,i){if(sn(o)&&(i=fi(o,this,a,i)),!sc(i))return i}),n[1]=e,ZM(ud,null,n)}})}if(!Ra[oP]){var dlt=Ra.valueOf;_m(Ra,oP,function(t){return fi(dlt,this)})}Gm(Ba,"Symbol"),tg[Sn]=!0,dr("asyncIterator"),dr("hasInstance"),dr("isConcatSpreadable"),dr("iterator"),dr("match"),dr("matchAll"),dr("replace"),dr("search"),dr("species"),dr("split"),dr("toPrimitive"),dr("toStringTag"),dr("unscopables"),Gm(Jt.JSON,"JSON",!0);var La,cP,fP,plt=ao.Symbol,ws={},bV=Function.prototype,hlt=Tn&&Object.getOwnPropertyDescriptor,dP=ve(bV,"name"),glt={PROPER:dP&&(function(){}).name==="something",CONFIGURABLE:dP&&(!Tn||Tn&&hlt(bV,"name").configurable)},vlt=!Zn(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),pP=O1("IE_PROTO"),V4=Jt.Object,mlt=V4.prototype,$4=vlt?V4.getPrototypeOf:function(t){var e=Qh(t);if(ve(e,pP))return e[pP];var r=e.constructor;return sn(r)&&e instanceof r?r.prototype:e instanceof V4?mlt:null},z4=to("iterator"),wV=!1;[].keys&&("next"in(fP=[].keys())?(cP=$4($4(fP)))!==Object.prototype&&(La=cP):wV=!0);var ylt=La==null||Zn(function(){var t={};return La[z4].call(t)!==t});La=ylt?{}:Us(La),sn(La[z4])||_m(La,z4,function(){return this});var EV={IteratorPrototype:La,BUGGY_SAFARI_ITERATORS:wV},blt=EV.IteratorPrototype,wlt=function(){return this};Jt.String,Jt.TypeError,Object.setPrototypeOf||"__proto__"in{}&&function(){var t={};try{ur(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set)(t,[]),t instanceof Array}catch{}}();var Elt=glt.PROPER,Pw=EV.BUGGY_SAFARI_ITERATORS,Slt=to("iterator"),xlt=function(){return this},SV=function(t,e,r,n,o,a,i){(function(v,y,g,b){var E=y+" Iterator";v.prototype=Us(blt,{next:zs(1,g)}),Gm(v,E,!1,!0),ws[E]=wlt})(r,e,n);var u,s,l=function(v){if(v===o&&m)return m;if(!Pw&&v in d)return d[v];switch(v){case"keys":case"values":case"entries":return function(){return new r(this,v)}}return function(){return new r(this)}},c=e+" Iterator",f=!1,d=t.prototype,p=d[Slt]||d["@@iterator"]||o&&d[o],m=!Pw&&p||l(o),h=e=="Array"&&d.entries||p;return h&&(u=$4(h.call(new t)))!==Object.prototype&&u.next&&(Gm(u,c,!0,!0),ws[c]=xlt),Elt&&o=="values"&&p&&p.name!=="values"&&(f=!0,m=function(){return fi(p,this)}),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},i||Da({target:e,proto:!0,forced:Pw||f},s)),ws[e]=m,s},Clt=sf.set,Dlt=sf.getterFor("Array Iterator");SV(Array,"Array",function(t,e){Clt(this,{type:"Array Iterator",target:Di(t),index:0,kind:e})},function(){var t=Dlt(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}},"values"),ws.Arguments=ws.Array;var hP=to("toStringTag");for(var Fw 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 gP=Jt[Fw],kw=gP&&gP.prototype;kw&&D1(kw)!==hP&&ti(kw,hP,Fw),ws[Fw]=ws.Array}var Olt=plt;dr("asyncDispose"),dr("dispose"),dr("matcher"),dr("metadata"),dr("observable"),dr("patternMatch"),dr("replaceAll");var dv=Olt,Alt=ur("".charAt),vP=ur("".charCodeAt),Tlt=ur("".slice),Blt=function(t){return function(e,r){var n,o,a=$m(A6(e)),i=P6(r),u=a.length;return i<0||i>=u?t?"":void 0:(n=vP(a,i))<55296||n>56319||i+1===u||(o=vP(a,i+1))<56320||o>57343?t?Alt(a,i):n:t?Tlt(a,i,i+2):o-56320+(n-55296<<10)+65536}},Plt=Blt(!0),Flt=sf.set,klt=sf.getterFor("String Iterator");SV(String,"String",function(t){Flt(this,{type:"String Iterator",string:$m(t),index:0})},function(){var t,e=klt(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=Plt(r,n),e.index+=t.length,{value:t,done:!1})});var Nlt=I6.f("iterator"),Ilt=v1(function(t){function e(r){return typeof dv=="function"&&typeof Nlt=="symbol"?(t.exports=e=function(n){return typeof n},t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=e=function(n){return n&&typeof dv=="function"&&n.constructor===dv&&n!==dv.prototype?"symbol":typeof n},t.exports.default=t.exports,t.exports.__esModule=!0),e(r)}t.exports=e,t.exports.default=t.exports,t.exports.__esModule=!0}),xV=function(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}(Ilt),jlt=b1.EXISTS,Rlt=rf.f,CV=Function.prototype,Llt=Nt(CV.toString),DV=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Mlt=Nt(DV.exec);zo&&!jlt&&Rlt(CV,"name",{configurable:!0,get:function(){try{return Mlt(DV,Llt(this))[1]}catch{return""}}});var OV=function(){function t(){this.tag="select",this.width=80}return t.prototype.isActive=function(e){return!1},t.prototype.getValue=function(e){var r=this.mark,n=D.marks(e);return n&&n[r]?n[r]:""},t.prototype.isDisabled=function(e){return e.selection==null||(this.mark,!!me(D.nodes(e,{match:function(r){return P.getNodeType(r)==="pre"||!!D.isVoid(e,r)},universal:!0}),1)[0])},t.prototype.exec=function(e,r){var n=this.mark;r?e.addMark(n,r):e.removeMark(n)},t}(),Vlt=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title=lt("fontSize.title"),r.iconSvg=cat,r.mark="fontSize",r}return Ge(e,t),e.prototype.getOptions=function(r){var n=[],o=r.getMenuConfig(this.mark).fontSizeList,a=o===void 0?[]:o;n.push({text:lt("fontSize.default"),value:""}),a.forEach(function(u){if(typeof u=="string")n.push({text:u,value:u});else if(xV(u)==="object"){var s=u.name,l=u.value;n.push({text:s,value:l})}});var i=this.getValue(r);return n.forEach(function(u){u.value===i?u.selected=!0:delete u.selected}),n},e}(OV),$lt=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title=lt("fontFamily.title"),r.iconSvg=fat,r.mark="fontFamily",r.selectPanelWidth=150,r}return Ge(e,t),e.prototype.getOptions=function(r){var n=[],o=r.getMenuConfig(this.mark).fontFamilyList,a=o===void 0?[]:o;n.push({text:lt("fontFamily.default"),value:""}),a.forEach(function(u){if(typeof u=="string")n.push({text:u,value:u,styleForRenderMenuList:{"font-family":u}});else if(xV(u)==="object"){var s=u.name,l=u.value;n.push({text:s,value:l,styleForRenderMenuList:{"font-family":l}})}});var i=this.getValue(r);return n.forEach(function(u){u.value===i?u.selected=!0:delete u.selected}),n},e}(OV),zlt={renderStyle:function(t,e){var r=t,n=r.fontSize,o=r.fontFamily,a=e;return n&&$s(a,{fontSize:n}),o&&$s(a,{fontFamily:o}),a},styleToHtml:function(t,e){if(!vt.isText(t))return e;var r,n=t,o=n.fontSize,a=n.fontFamily;return o||a?((E6(e)||af(r=F(e))!=="span")&&(r=F("<span>"+e+"</span>")),o&&r.css("font-size",o),a&&r.css("font-family",a),of(r)):e},preParseHtml:[Kut],parseStyleHtml:function(t,e,r){var n=F(t);if(!vt.isText(e))return e;var o=e,a=r.getMenuConfig("fontSize").fontSizeList,i=a===void 0?[]:a,u=Mo(n,"font-size"),s=i.find(function(p){return p.value&&p.value===u})||i.includes(u);u&&s&&(o.fontSize=u);var l=r.getMenuConfig("fontFamily").fontFamilyList,c=l===void 0?[]:l,f=Mo(n,"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 Vlt},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 $lt},config:{fontFamilyList:["黑体",{name:"仿宋",value:"仿宋"},"楷体","标楷体","华文仿宋","华文楷体",{name:"宋体",value:"宋体"},"微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},Hlt={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(t){var e=F(t),r=Mo(e,"padding-left");return/\dem/.test(r)&&e.css("text-indent","2em"),/\dpx/.test(r)&&parseInt(r,10)%32==0&&e.css("text-indent","2em"),e[0]}},AV=function(){function t(){this.tag="button"}return t.prototype.getValue=function(e){var r=me(D.nodes(e,{match:function(o){return!!o.indent},universal:!0}),1),n=r[0];return n==null?"":me(n,1)[0].indent||""},t.prototype.isActive=function(e){return!1},t.prototype.getMatchNode=function(e){var r=me(D.nodes(e,{match:function(n){var o=P.getNodeType(n);return o==="paragraph"||!!o.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return r==null?null:r[0]},t}(),Ult=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title=lt("indent.decrease"),r.iconSvg=dat,r}return Ge(e,t),e.prototype.isDisabled=function(r){var n=this.getMatchNode(r);return n==null||!n.indent},e.prototype.exec=function(r,n){U.setNodes(r,{indent:null},{match:function(o){return St.isElement(o)}})},e}(AV),_lt=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title=lt("indent.increase"),r.iconSvg=pat,r}return Ge(e,t),e.prototype.isDisabled=function(r){var n=this.getMatchNode(r);return n==null||!!n.indent},e.prototype.exec=function(r,n){U.setNodes(r,{indent:"2em"},{match:function(o){return St.isElement(o)},mode:"highest"})},e}(AV),Glt={renderStyle:function(t,e){if(!St.isElement(t))return e;var r=t.indent,n=e;return r&&$s(n,{textIndent:r}),n},styleToHtml:function(t,e){if(!St.isElement(t))return e;var r=t.indent;if(!r)return e;var n=F(e);return n.css("text-indent",r),of(n)},preParseHtml:[Hlt],parseStyleHtml:function(t,e,r){var n=F(t);if(!St.isElement(e))return e;var o=e,a=Mo(n,"text-indent"),i=parseInt(a,10);return a&&i>0&&(o.indent=a),o},menus:[{key:"indent",factory:function(){return new _lt}},{key:"delIndent",factory:function(){return new Ult}}]},T1=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 r=me(D.nodes(e,{match:function(n){var o=P.getNodeType(n);return o==="paragraph"||o==="blockquote"||!!o.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return r==null?null:r[0]},t.prototype.isDisabled=function(e){return e.selection==null||!!P.getSelectedElems(e).some(function(r){if(D.isVoid(e,r)&&D.isBlock(e,r))return!0;var n=r.type;return!!["pre","code"].includes(n)||void 0})},t}(),Wlt=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title=lt("justify.left"),r.iconSvg=hat,r}return Ge(e,t),e.prototype.exec=function(r,n){U.setNodes(r,{textAlign:"left"},{match:function(o){return St.isElement(o)&&!r.isInline(o)}})},e}(T1),Klt=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title=lt("justify.right"),r.iconSvg=gat,r}return Ge(e,t),e.prototype.exec=function(r,n){U.setNodes(r,{textAlign:"right"},{match:function(o){return St.isElement(o)&&!r.isInline(o)}})},e}(T1),Ylt=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title=lt("justify.center"),r.iconSvg=vat,r}return Ge(e,t),e.prototype.exec=function(r,n){U.setNodes(r,{textAlign:"center"},{match:function(o){return St.isElement(o)&&!r.isInline(o)}})},e}(T1),Xlt=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title=lt("justify.justify"),r.iconSvg=mat,r}return Ge(e,t),e.prototype.exec=function(r,n){U.setNodes(r,{textAlign:"justify"},{match:function(o){return St.isElement(o)&&!r.isInline(o)}})},e}(T1),Zlt={renderStyle:function(t,e){if(!St.isElement(t))return e;var r=t.textAlign,n=e;return r&&$s(n,{textAlign:r}),n},styleToHtml:function(t,e){if(!St.isElement(t))return e;var r=t.textAlign;if(!r)return e;var n=F(e);return n.css("text-align",r),of(n)},parseStyleHtml:function(t,e,r){var n=F(t);if(!St.isElement(e))return e;var o=e,a=Mo(n,"text-align");return a&&(o.textAlign=a),o},menus:[{key:"justifyLeft",factory:function(){return new Wlt}},{key:"justifyRight",factory:function(){return new Klt}},{key:"justifyCenter",factory:function(){return new Ylt}},{key:"justifyJustify",factory:function(){return new Xlt}}]},Jlt=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 r=[],n=e.getMenuConfig("lineHeight").lineHeightList,o=n===void 0?[]:n;r.push({text:lt("lineHeight.default"),value:""}),o.forEach(function(i){r.push({text:i,value:i})});var a=this.getValue(e);return r.forEach(function(i){i.value===a?i.selected=!0:delete i.selected}),r},t.prototype.getMatchNode=function(e){var r=me(D.nodes(e,{match:function(n){var o=P.getNodeType(n);return!!o.startsWith("header")||!!["paragraph","blockquote","list-item"].includes(o)},universal:!0,mode:"highest"}),1)[0];return r==null?null:r[0]},t.prototype.isActive=function(e){return!1},t.prototype.getValue=function(e){var r=this.getMatchNode(e);return r==null?"":St.isElement(r)&&r.lineHeight||""},t.prototype.isDisabled=function(e){return e.selection==null||this.getMatchNode(e)==null},t.prototype.exec=function(e,r){U.setNodes(e,{lineHeight:r.toString()},{mode:"highest"})},t}(),Qlt={renderStyle:function(t,e){if(!St.isElement(t))return e;var r=t.lineHeight,n=e;return r&&$s(n,{lineHeight:r}),n},styleToHtml:function(t,e){if(!St.isElement(t))return e;var r=t.lineHeight;if(!r)return e;var n=F(e);return n.css("line-height",r),of(n)},parseStyleHtml:function(t,e,r){var n=F(t);if(!St.isElement(e))return e;var o=e,a=r.getMenuConfig("lineHeight").lineHeightList,i=a===void 0?[]:a,u=Mo(n,"line-height");return u&&i.includes(u)&&(o.lineHeight=u),o},menus:[{key:"lineHeight",factory:function(){return new Jlt},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},qlt=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,r){typeof e.redo=="function"&&e.redo()},t}(),tct=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,r){typeof e.undo=="function"&&e.undo()},t}(),ect={menus:[{key:"redo",factory:function(){return new qlt}},{key:"undo",factory:function(){return new tct}}]},rct={type:"divider",renderElem:function(t,e,r){return Bc("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:P.isNodeSelected(r,t)?"true":""},style:{},on:{mousedown:function(n){return n.preventDefault()}}},[Bc("hr")])}},nct=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(r){if(e.isVoid(r))return!0;var n=P.getNodeType(r);return n==="table"||n==="pre"||void 0})},t.prototype.exec=function(e,r){U.insertNodes(e,{type:"divider",children:[{text:""}]},{mode:"highest"})},t}(),oct={renderElems:[rct],elemsToHtml:[{type:"divider",elemToHtml:function(t,e){return"<hr/>"}}],parseElemsHtml:[{selector:"hr:not([data-w-e-type])",parseElemHtml:function(t,e,r){return{type:"divider",children:[{text:""}]}}}],menus:[{key:"divider",factory:function(){return new nct}}],editorPlugin:function(t){var e=t.isVoid,r=t.normalizeNode,n=t;return n.isVoid=function(o){return o.type==="divider"||e(o)},n.normalizeNode=function(o){var a=me(o,2),i=a[0],u=a[1];if(P.getNodeType(i)!=="divider")return r([i,u]);P.isLastNode(n,i)&&U.insertNodes(n,P.genEmptyParagraph(),{at:[u[0]+1]})},n}},ict=E1.map;kr({target:"Array",proto:!0,forced:!v6("map")},{map:function(t){return ict(this,t,arguments.length>1?arguments[1]:void 0)}});var act=Nt([].join),uct=m1!=Object,sct=FM("join",",");kr({target:"Array",proto:!0,forced:uct||!sct},{join:function(t){return act(ef(this),t===void 0?",":t)}});var lct=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 r=P.getSelectedNodeByType(e,"code");if(r==null)return null;var n=P.getParentNode(e,r);return n==null||P.getNodeType(n)!=="pre"?null:r},t.prototype.getValue=function(e){var r=this.getSelectCodeElem(e);return r==null?"":r.language||""},t.prototype.isActive=function(e){return!!this.getSelectCodeElem(e)},t.prototype.isDisabled=function(e){if(e.selection==null)return!0;var r=P.getSelectedElems(e);return!!r.some(function(n){return e.isVoid(n)})||!r.some(function(n){var o=P.getNodeType(n);if(o==="pre"||o==="paragraph")return!0})},t.prototype.exec=function(e,r){this.isActive(e)?this.changeToPlainText(e):this.changeToCodeBlock(e,r.toString())},t.prototype.changeToPlainText=function(e){var r=this.getSelectCodeElem(e);if(r!=null){var n=st.string(r);U.removeNodes(e,{mode:"highest"});var o=n.split(`
|
|
113
|
+
`).map(function(a){return{type:"paragraph",children:[{text:a}]}});U.insertNodes(e,o,{mode:"highest"})}},t.prototype.changeToCodeBlock=function(e,r){var n,o,a=[],i=D.nodes(e,{match:function(f){return e.children.includes(f)},universal:!0});try{for(var u=PM(i),s=u.next();!s.done;s=u.next()){var l=me(s.value,1)[0];l&&a.push(st.string(l))}}catch(f){n={error:f}}finally{try{s&&!s.done&&(o=u.return)&&o.call(u)}finally{if(n)throw n.error}}U.removeNodes(e,{mode:"highest"});var c={type:"pre",children:[{type:"code",language:r,children:[{text:a.join(`
|
|
114
|
+
`)}]}]};U.insertNodes(e,c,{mode:"highest"})},t}(),cct={key:"codeBlock",factory:function(){return new lct}};kr({target:"String",proto:!0,forced:Xd("anchor")},{anchor:function(t){return Yd(this,"a","name",t)}}),b6("match",function(t,e,r){return[function(n){var o=Eo(this),a=n==null?void 0:y1(n,t);return a?pr(a,n,o):new RegExp(n)[t](Xe(o))},function(n){var o=Wn(this),a=Xe(n),i=r(e,o,a);if(i.done)return i.value;if(!o.global)return qp(o,a);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=qp(o,a))!==null;){var f=Xe(s[0]);l[c]=f,f===""&&(o.lastIndex=w6(a,Kh(o.lastIndex),u)),c++}return c===0?null:l}]});var fct={type:"pre",renderElem:function(t,e,r){return Rt("pre",null,e)}},dct={type:"code",renderElem:function(t,e,r){return Rt("code",null,e)}},pct={selector:"pre:not([data-w-e-type])",parseElemHtml:function(t,e,r){var n=F(t);return(e=e.filter(function(o){return P.getNodeType(o)==="code"})).length===0&&(e=[{type:"code",language:"",children:[{text:n[0].textContent||""}]}]),{type:"pre",children:e.filter(function(o){return P.getNodeType(o)==="code"})}}},hct={menus:[cct],editorPlugin:function(t){var e=t.insertBreak,r=t.normalizeNode,n=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=me(a,2),u=i[0],s=i[1],l=P.getNodeType(u);return l==="code"&&s.length<=1&&U.setNodes(o,{type:"paragraph"},{at:s}),l==="pre"&&(P.isLastNode(o,u)&&U.insertNodes(o,P.genEmptyParagraph(),{at:[s[0]+1]}),P.getNodeType(u.children[0])!=="code"&&(U.unwrapNodes(o),U.setNodes(o,{type:"paragraph"},{mode:"highest"}))),r([u,s])},o.insertData=function(a){if(P.getSelectedNodeByType(o,"code")!=null){var i=a.getData("text/plain");D.insertText(o,i)}else n(a)},o},renderElems:[fct,dct],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(af(e)!=="code")return t;var r=e.find("xmp");if(r.length===0)return t;var n=r.text();return r.remove(),e.text(n),e[0]}}],parseElemsHtml:[{selector:"pre:not([data-w-e-type])>code",parseElemHtml:function(t,e,r){return{type:"code",language:"",children:[{text:F(t)[0].textContent||""}]}}},pct]},gct=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,r){e.isFullScreen?e.unFullScreen():e.fullScreen()},t}(),vct={menus:[{key:"fullScreen",factory:function(){return new gct}}]},mct=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 r=e.selection;return r==null||!!Q.isExpanded(r)},t.prototype.exec=function(e,r){var n=e.selection;if(n!=null){var o=[n.anchor.path[0]];U.insertNodes(e,{type:"paragraph",children:[{text:""}]},{at:o}),e.select(D.start(e,o))}},t}(),yct=[Tat,aut,zlt,Glt,Zlt,Qlt,Put,oct,Gut,mut,hct,Uut,eut,Jit,Iut,ect,vct,{menus:[{key:"enter",factory:function(){return new mct}}]}];Pn("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),Pn("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var mP=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function j6(t){var e={exports:{}};return t(e,e.exports),e.exports}var ma,d0,pv=function(t){return t&&t.Math==Math&&t},Lt=pv(typeof globalThis=="object"&&globalThis)||pv(typeof window=="object"&&window)||pv(typeof self=="object"&&self)||pv(typeof mP=="object"&&mP)||function(){return this}()||Function("return this")(),TV=Function.prototype,H4=TV.bind,U4=TV.call,bct=H4&&H4.bind(U4),ee=H4?function(t){return t&&bct(U4,t)}:function(t){return t&&function(){return U4.apply(t,arguments)}},er=function(t){try{return!!t()}catch{return!0}},wct=ee({}.toString),Ect=ee("".slice),Gi=function(t){return Ect(wct(t),8,-1)},Nw=Lt.Object,Sct=ee("".split),BV=er(function(){return!Nw("z").propertyIsEnumerable(0)})?function(t){return Gi(t)=="String"?Sct(t,""):Nw(t)}:Nw,xct=Lt.TypeError,B1=function(t){if(t==null)throw xct("Can't call method on "+t);return t},lf=function(t){return BV(B1(t))},Cct=Object.defineProperty,R6=function(t,e){try{Cct(Lt,t,{value:e,configurable:!0,writable:!0})}catch{Lt[t]=e}return e},Ka=Lt["__core-js_shared__"]||R6("__core-js_shared__",{}),L6=j6(function(t){(t.exports=function(e,r){return Ka[e]||(Ka[e]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Dct=Lt.Object,rg=function(t){return Dct(B1(t))},Oct=ee({}.hasOwnProperty),Nr=Object.hasOwn||function(t,e){return Oct(rg(t),e)},Act=0,Tct=Math.random(),Bct=ee(1 .toString),M6=function(t){return"Symbol("+(t===void 0?"":t)+")_"+Bct(++Act+Tct,36)},sr=function(t){return typeof t=="function"},Pct=function(t){return sr(t)?t:void 0},ng=function(t,e){return arguments.length<2?Pct(Lt[t]):Lt[t]&&Lt[t][e]},Iw=ng("navigator","userAgent")||"",yP=Lt.process,bP=Lt.Deno,wP=yP&&yP.versions||bP&&bP.version,EP=wP&&wP.v8;EP&&(d0=(ma=EP.split("."))[0]>0&&ma[0]<4?1:+(ma[0]+ma[1])),!d0&&Iw&&(!(ma=Iw.match(/Edge\/(\d+)/))||ma[1]>=74)&&(ma=Iw.match(/Chrome\/(\d+)/))&&(d0=+ma[1]);var hv,_4=d0,G4=!!Object.getOwnPropertySymbols&&!er(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&_4&&_4<41}),V6=G4&&!Symbol.sham&&typeof Symbol.iterator=="symbol",sd=L6("wks"),Es=Lt.Symbol,SP=Es&&Es.for,Fct=V6?Es:Es&&Es.withoutSetter||M6,Xr=function(t){if(!Nr(sd,t)||!G4&&typeof sd[t]!="string"){var e="Symbol."+t;G4&&Nr(Es,t)?sd[t]=Es[t]:sd[t]=V6&&SP?SP(e):Fct(e)}return sd[t]},ar=function(t){return typeof t=="object"?t!==null:sr(t)},kct=Lt.String,Nct=Lt.TypeError,Fn=function(t){if(ar(t))return t;throw Nct(kct(t)+" is not an object")},cu=!er(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),W4=Lt.document,Ict=ar(W4)&&ar(W4.createElement),$6=function(t){return Ict?W4.createElement(t):{}},PV=!cu&&!er(function(){return Object.defineProperty($6("div"),"a",{get:function(){return 7}}).a!=7}),ld=Function.prototype.call,Mr=ld.bind?ld.bind(ld):function(){return ld.apply(ld,arguments)},Km=ee({}.isPrototypeOf),jct=Lt.Object,jw=V6?function(t){return typeof t=="symbol"}:function(t){var e=ng("Symbol");return sr(e)&&Km(e.prototype,jct(t))},Rct=Lt.String,K4=function(t){try{return Rct(t)}catch{return"Object"}},Lct=Lt.TypeError,z6=function(t){if(sr(t))return t;throw Lct(K4(t)+" is not a function")},th=function(t,e){var r=t[e];return r==null?void 0:z6(r)},Mct=Lt.TypeError,Vct=Lt.TypeError,$ct=Xr("toPrimitive"),H6=function(t){var e=function(r,n){if(!ar(r)||jw(r))return r;var o,a=th(r,$ct);if(a){if(o=Mr(a,r,n),!ar(o)||jw(o))return o;throw Vct("Can't convert object to primitive value")}return function(i,u){var s,l;if(sr(s=i.toString)&&!ar(l=Mr(s,i))||sr(s=i.valueOf)&&!ar(l=Mr(s,i)))return l;throw Mct("Can't convert object to primitive value")}(r)}(t,"string");return jw(e)?e:e+""},zct=Lt.TypeError,xP=Object.defineProperty,nl={f:cu?xP:function(t,e,r){if(Fn(t),e=H6(e),Fn(r),PV)try{return xP(t,e,r)}catch{}if("get"in r||"set"in r)throw zct("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},Hct=Math.ceil,Uct=Math.floor,og=function(t){var e=+t;return e!=e||e===0?0:(e>0?Uct:Hct)(e)},_ct=Math.max,Gct=Math.min,Y4=function(t,e){var r=og(t);return r<0?_ct(r+e,0):Gct(r,e)},Wct=Math.min,FV=function(t){return t>0?Wct(og(t),9007199254740991):0},cf=function(t){return FV(t.length)},CP=function(t){return function(e,r,n){var o,a=lf(e),i=cf(a),u=Y4(n,i);if(t&&r!=r){for(;i>u;)if((o=a[u++])!=o)return!0}else for(;i>u;u++)if((t||u in a)&&a[u]===r)return t||u||0;return!t&&-1}},kV={includes:CP(!0),indexOf:CP(!1)},P1={},Kct=kV.indexOf,DP=ee([].push),NV=function(t,e){var r,n=lf(t),o=0,a=[];for(r in n)!Nr(P1,r)&&Nr(n,r)&&DP(a,r);for(;e.length>o;)Nr(n,r=e[o++])&&(~Kct(a,r)||DP(a,r));return a},Ym=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Yct=Object.keys||function(t){return NV(t,Ym)},Xct=cu?Object.defineProperties:function(t,e){Fn(t);for(var r,n=lf(e),o=Yct(e),a=o.length,i=0;a>i;)nl.f(t,r=o[i++],n[r]);return t},Zct=ng("document","documentElement"),OP=L6("keys"),U6=function(t){return OP[t]||(OP[t]=M6(t))},IV=U6("IE_PROTO"),Rw=function(){},jV=function(t){return"<script>"+t+"<\/script>"},AP=function(t){t.write(jV("")),t.close();var e=t.parentWindow.Object;return t=null,e},p0=function(){try{hv=new ActiveXObject("htmlfile")}catch{}var t,e;p0=typeof document<"u"?document.domain&&hv?AP(hv):((e=$6("iframe")).style.display="none",Zct.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(jV("document.F=Object")),t.close(),t.F):AP(hv);for(var r=Ym.length;r--;)delete p0.prototype[Ym[r]];return p0()};P1[IV]=!0;var _6=Object.create||function(t,e){var r;return t!==null?(Rw.prototype=Fn(t),r=new Rw,Rw.prototype=null,r[IV]=t):r=p0(),e===void 0?r:Xct(r,e)},X4=Xr("unscopables"),Z4=Array.prototype;Z4[X4]==null&&nl.f(Z4,X4,{configurable:!0,value:_6(null)});var gp=function(t){Z4[X4][t]=!0},Lc={},Jct=ee(Function.toString);sr(Ka.inspectSource)||(Ka.inspectSource=function(t){return Jct(t)});var Xm,vp,Zm,G6=Ka.inspectSource,TP=Lt.WeakMap,RV=sr(TP)&&/native code/.test(G6(TP)),F1=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},Ya=cu?function(t,e,r){return nl.f(t,e,F1(1,r))}:function(t,e,r){return t[e]=r,t},J4=Lt.TypeError,Qct=Lt.WeakMap;if(RV||Ka.state){var Lu=Ka.state||(Ka.state=new Qct),qct=ee(Lu.get),BP=ee(Lu.has),tft=ee(Lu.set);Xm=function(t,e){if(BP(Lu,t))throw new J4("Object already initialized");return e.facade=t,tft(Lu,t,e),e},vp=function(t){return qct(Lu,t)||{}},Zm=function(t){return BP(Lu,t)}}else{var Tl=U6("state");P1[Tl]=!0,Xm=function(t,e){if(Nr(t,Tl))throw new J4("Object already initialized");return e.facade=t,Ya(t,Tl,e),e},vp=function(t){return Nr(t,Tl)?t[Tl]:{}},Zm=function(t){return Nr(t,Tl)}}var Ss,PP,FP,yi={set:Xm,get:vp,has:Zm,enforce:function(t){return Zm(t)?vp(t):Xm(t,{})},getterFor:function(t){return function(e){var r;if(!ar(e)||(r=vp(e)).type!==t)throw J4("Incompatible receiver, "+t+" required");return r}}},kP={}.propertyIsEnumerable,NP=Object.getOwnPropertyDescriptor,eft={f:NP&&!kP.call({1:2},1)?function(t){var e=NP(this,t);return!!e&&e.enumerable}:kP},IP=Object.getOwnPropertyDescriptor,LV={f:cu?IP:function(t,e){if(t=lf(t),e=H6(e),PV)try{return IP(t,e)}catch{}if(Nr(t,e))return F1(!Mr(eft.f,t,e),t[e])}},MV=Function.prototype,rft=cu&&Object.getOwnPropertyDescriptor,jP=Nr(MV,"name"),W6={PROPER:jP&&(function(){}).name==="something",CONFIGURABLE:jP&&(!cu||cu&&rft(MV,"name").configurable)},Ji=j6(function(t){var e=W6.CONFIGURABLE,r=yi.get,n=yi.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;sr(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Nr(u,"name")||e&&u.name!==p)&&Ya(u,"name",p),(l=n(u)).source||(l.source=o.join(typeof p=="string"?p:""))),a!==Lt?(c?!d&&a[i]&&(f=!0):delete a[i],f?a[i]=u:Ya(a,i,u)):f?a[i]=u:R6(i,u)})(Function.prototype,"toString",function(){return sr(this)&&r(this).source||G6(this)})}),nft=Ym.concat("length","prototype"),Jm={f:Object.getOwnPropertyNames||function(t){return NV(t,nft)}},oft={f:Object.getOwnPropertySymbols},ift=ee([].concat),aft=ng("Reflect","ownKeys")||function(t){var e=Jm.f(Fn(t)),r=oft.f;return r?ift(e,r(t)):e},uft=function(t,e){for(var r=aft(e),n=nl.f,o=LV.f,a=0;a<r.length;a++){var i=r[a];Nr(t,i)||n(t,i,o(e,i))}},sft=/#|\.prototype\./,ig=function(t,e){var r=cft[lft(t)];return r==dft||r!=fft&&(sr(e)?er(e):!!e)},lft=ig.normalize=function(t){return String(t).replace(sft,".").toLowerCase()},cft=ig.data={},fft=ig.NATIVE="N",dft=ig.POLYFILL="P",Q4=ig,pft=LV.f,fu=function(t,e){var r,n,o,a,i,u=t.target,s=t.global,l=t.stat;if(r=s?Lt:l?Lt[u]||R6(u,{}):(Lt[u]||{}).prototype)for(n in e){if(a=e[n],o=t.noTargetGet?(i=pft(r,n))&&i.value:r[n],!Q4(s?n:u+(l?".":"#")+n,t.forced)&&o!==void 0){if(typeof a==typeof o)continue;uft(a,o)}(t.sham||o&&o.sham)&&Ya(a,"sham",!0),Ji(r,n,a,t)}},hft=!er(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),RP=U6("IE_PROTO"),q4=Lt.Object,gft=q4.prototype,Qm=hft?q4.getPrototypeOf:function(t){var e=rg(t);if(Nr(e,RP))return e[RP];var r=e.constructor;return sr(r)&&e instanceof r?r.prototype:e instanceof q4?gft:null},tC=Xr("iterator"),VV=!1;[].keys&&("next"in(FP=[].keys())?(PP=Qm(Qm(FP)))!==Object.prototype&&(Ss=PP):VV=!0);var vft=Ss==null||er(function(){var t={};return Ss[tC].call(t)!==t});vft&&(Ss={}),sr(Ss[tC])||Ji(Ss,tC,function(){return this});var K6={IteratorPrototype:Ss,BUGGY_SAFARI_ITERATORS:VV},mft=nl.f,LP=Xr("toStringTag"),eC=function(t,e,r){t&&!Nr(t=r?t:t.prototype,LP)&&mft(t,LP,{configurable:!0,value:e})},yft=K6.IteratorPrototype,bft=function(){return this},wft=Lt.String,Eft=Lt.TypeError,qm=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=ee(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch{}return function(n,o){return Fn(n),function(a){if(typeof a=="object"||sr(a))return a;throw Eft("Can't set "+wft(a)+" as a prototype")}(o),e?t(n,o):n.__proto__=o,n}}():void 0),Sft=W6.PROPER,xft=W6.CONFIGURABLE,MP=K6.IteratorPrototype,Lw=K6.BUGGY_SAFARI_ITERATORS,cd=Xr("iterator"),Cft=function(){return this},$V=function(t,e,r,n,o,a,i){(function(v,y,g,b){var E=y+" Iterator";v.prototype=_6(yft,{next:F1(1,g)}),eC(v,E,!1),Lc[E]=bft})(r,e,n);var u,s,l=function(v){if(v===o&&m)return m;if(!Lw&&v in d)return d[v];switch(v){case"keys":case"values":case"entries":return function(){return new r(this,v)}}return function(){return new r(this)}},c=e+" Iterator",f=!1,d=t.prototype,p=d[cd]||d["@@iterator"]||o&&d[o],m=!Lw&&p||l(o),h=e=="Array"&&d.entries||p;return h&&(u=Qm(h.call(new t)))!==Object.prototype&&u.next&&(Qm(u)!==MP&&(qm?qm(u,MP):sr(u[cd])||Ji(u,cd,Cft)),eC(u,c,!0)),Sft&&o=="values"&&p&&p.name!=="values"&&(xft?Ya(d,"name","values"):(f=!0,m=function(){return Mr(p,this)})),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},i||fu({target:e,proto:!0,forced:Lw||f},s)),d[cd]!==m&&Ji(d,cd,m,{name:o}),Lc[e]=m,s},Dft=yi.set,Oft=yi.getterFor("Array Iterator"),Zd=$V(Array,"Array",function(t,e){Dft(this,{type:"Array Iterator",target:lf(t),index:0,kind:e})},function(){var t=Oft(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}},"values");Lc.Arguments=Lc.Array,gp("keys"),gp("values"),gp("entries");var zV={};zV[Xr("toStringTag")]="z";var Y6=String(zV)==="[object z]",Aft=Xr("toStringTag"),Tft=Lt.Object,Bft=Gi(function(){return arguments}())=="Arguments",k1=Y6?Gi:function(t){var e,r,n;return t===void 0?"Undefined":t===null?"Null":typeof(r=function(o,a){try{return o[a]}catch{}}(e=Tft(t),Aft))=="string"?r:Bft?Gi(e):(n=Gi(e))=="Object"&&sr(e.callee)?"Arguments":n},Pft=Y6?{}.toString:function(){return"[object "+k1(this)+"]"};Y6||Ji(Object.prototype,"toString",Pft,{unsafe:!0});var Fft=Lt.String,ji=function(t){if(k1(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Fft(t)},kft=ee("".charAt),VP=ee("".charCodeAt),Nft=ee("".slice),Ift=function(t){return function(e,r){var n,o,a=ji(B1(e)),i=og(r),u=a.length;return i<0||i>=u?t?"":void 0:(n=VP(a,i))<55296||n>56319||i+1===u||(o=VP(a,i+1))<56320||o>57343?t?kft(a,i):n:t?Nft(a,i,i+2):o-56320+(n-55296<<10)+65536}},HV={charAt:Ift(!0)},jft=HV.charAt,Rft=yi.set,Lft=yi.getterFor("String Iterator");$V(String,"String",function(t){Rft(this,{type:"String Iterator",string:ji(t),index:0})},function(){var t,e=Lft(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=jft(r,n),e.index+=t.length,{value:t,done:!1})});var rC=function(t,e,r){for(var n in e)Ji(t,n,e[n],r);return t},Mft=Lt.Array,Vft=Math.max,$P=Jm.f,zP=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],$ft={f:function(t){return zP&&Gi(t)=="Window"?function(e){try{return $P(e)}catch{return function(n,o,a){for(var i,u,s,l,c=cf(n),f=Y4(void 0,c),d=Y4(c,c),p=Mft(Vft(d-f,0)),m=0;f<d;f++,m++)i=p,u=m,s=n[f],(l=H6(u))in i?nl.f(i,l,F1(0,s)):i[l]=s;return p.length=m,p}(zP)}}(t):$P(lf(t))}},HP=er(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),gv=Object.isExtensible,rs=er(function(){gv(1)})||HP?function(t){return!!ar(t)&&(!HP||Gi(t)!="ArrayBuffer")&&(!gv||gv(t))}:gv,zft=!er(function(){return Object.isExtensible(Object.preventExtensions({}))}),X6=j6(function(t){var e=nl.f,r=!1,n=M6("meta"),o=0,a=function(u){e(u,n,{value:{objectID:"O"+o++,weakData:{}}})},i=t.exports={enable:function(){i.enable=function(){},r=!0;var u=Jm.f,s=ee([].splice),l={};l[n]=1,u(l).length&&(Jm.f=function(c){for(var f=u(c),d=0,p=f.length;d<p;d++)if(f[d]===n){s(f,d,1);break}return f},fu({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:$ft.f}))},fastKey:function(u,s){if(!ar(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!Nr(u,n)){if(!rs(u))return"F";if(!s)return"E";a(u)}return u[n].objectID},getWeakData:function(u,s){if(!Nr(u,n)){if(!rs(u))return!0;if(!s)return!1;a(u)}return u[n].weakData},onFreeze:function(u){return zft&&r&&rs(u)&&!Nr(u,n)&&a(u),u}};P1[n]=!0}),UP=ee(ee.bind),Z6=function(t,e){return z6(t),e===void 0?t:UP?UP(t,e):function(){return t.apply(e,arguments)}},Hft=Xr("iterator"),Uft=Array.prototype,_ft=Xr("iterator"),_P=function(t){if(t!=null)return th(t,_ft)||th(t,"@@iterator")||Lc[k1(t)]},Gft=Lt.TypeError,GP=function(t,e,r){var n,o;Fn(t);try{if(!(n=th(t,"return"))){if(e==="throw")throw r;return r}n=Mr(n,t)}catch(a){o=!0,n=a}if(e==="throw")throw r;if(o)throw n;return Fn(n),r},Wft=Lt.TypeError,h0=function(t,e){this.stopped=t,this.result=e},WP=h0.prototype,UV=function(t,e,r){var n,o,a,i,u,s,l,c,f=r&&r.that,d=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_ITERATOR),m=!(!r||!r.INTERRUPTED),h=Z6(e,f),v=function(g){return n&&GP(n,"normal",g),new h0(!0,g)},y=function(g){return d?(Fn(g),m?h(g[0],g[1],v):h(g[0],g[1])):m?h(g,v):h(g)};if(p)n=t;else{if(!(o=_P(t)))throw Wft(K4(t)+" is not iterable");if((c=o)!==void 0&&(Lc.Array===c||Uft[Hft]===c)){for(a=0,i=cf(t);i>a;a++)if((u=y(t[a]))&&Km(WP,u))return u;return new h0(!1)}n=function(g,b){var E=arguments.length<2?_P(g):b;if(z6(E))return Fn(Mr(E,g));throw Gft(K4(g)+" is not iterable")}(t,o)}for(s=n.next;!(l=Mr(s,n)).done;){try{u=y(l.value)}catch(g){GP(n,"throw",g)}if(typeof u=="object"&&u&&Km(WP,u))return u}return new h0(!1)},Kft=Lt.TypeError,_V=function(t,e){if(Km(e,t))return t;throw Kft("Incorrect invocation")},GV=Xr("iterator"),WV=!1;try{var Yft=0,KP={next:function(){return{done:!!Yft++}},return:function(){WV=!0}};KP[GV]=function(){return this},Array.from(KP,function(){throw 2})}catch{}var nC=Array.isArray||function(t){return Gi(t)=="Array"},KV=function(){},Xft=[],YV=ng("Reflect","construct"),J6=/^\s*(?:class|function)\b/,Zft=ee(J6.exec),Jft=!J6.exec(KV),fd=function(t){if(!sr(t))return!1;try{return YV(KV,Xft,t),!0}catch{return!1}},Qft=!YV||er(function(){var t;return fd(fd.call)||!fd(Object)||!fd(function(){t=!0})||t})?function(t){if(!sr(t))return!1;switch(k1(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Jft||!!Zft(J6,G6(t))}:fd,qft=Xr("species"),YP=Lt.Array,XV=function(t,e){return new(function(r){var n;return nC(r)&&(n=r.constructor,(Qft(n)&&(n===YP||nC(n.prototype))||ar(n)&&(n=n[qft])===null)&&(n=void 0)),n===void 0?YP:n}(t))(e===0?0:e)},XP=ee([].push),Mw=function(t){var e=t==1,r=t==2,n=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=rg(s),h=BV(m),v=Z6(l,c),y=cf(h),g=0,b=f||XV,E=e?b(s,y):r||i?b(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:XP(E,d)}else switch(t){case 4:return!1;case 7:XP(E,d)}return a?-1:n||o?o:E}},Q6={filter:Mw(2),find:Mw(5),findIndex:Mw(6)},vv=X6.getWeakData,tdt=yi.set,edt=yi.getterFor,rdt=Q6.find,ndt=Q6.findIndex,odt=ee([].splice),idt=0,mv=function(t){return t.frozen||(t.frozen=new ZV)},ZV=function(){this.entries=[]},Vw=function(t,e){return rdt(t.entries,function(r){return r[0]===e})};ZV.prototype={get:function(t){var e=Vw(this,t);if(e)return e[1]},has:function(t){return!!Vw(this,t)},set:function(t,e){var r=Vw(this,t);r?r[1]=e:this.entries.push([t,e])},delete:function(t){var e=ndt(this.entries,function(r){return r[0]===t});return~e&&odt(this.entries,e,1),!!~e}};var dd,JV={getConstructor:function(t,e,r,n){var o=t(function(s,l){_V(s,a),tdt(s,{type:e,id:idt++,frozen:void 0}),l!=null&&UV(l,s[n],{that:s,AS_ENTRIES:r})}),a=o.prototype,i=edt(e),u=function(s,l,c){var f=i(s),d=vv(Fn(l),!0);return d===!0?mv(f).set(l,c):d[f.id]=c,s};return rC(a,{delete:function(s){var l=i(this);if(!ar(s))return!1;var c=vv(s);return c===!0?mv(l).delete(s):c&&Nr(c,l.id)&&delete c[l.id]},has:function(s){var l=i(this);if(!ar(s))return!1;var c=vv(s);return c===!0?mv(l).has(s):c&&Nr(c,l.id)}}),rC(a,r?{get:function(s){var l=i(this);if(ar(s)){var c=vv(s);return c===!0?mv(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}},yv=yi.enforce,adt=!Lt.ActiveXObject&&"ActiveXObject"in Lt,QV=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},udt=function(t,e,r){var n=t.indexOf("Map")!==-1,o=t.indexOf("Weak")!==-1,a=n?"set":"add",i=Lt[t],u=i&&i.prototype,s=i,l={},c=function(v){var y=ee(u[v]);Ji(u,v,v=="add"?function(g){return y(this,g===0?0:g),this}:v=="delete"?function(g){return!(o&&!ar(g))&&y(this,g===0?0:g)}:v=="get"?function(g){return o&&!ar(g)?void 0:y(this,g===0?0:g)}:v=="has"?function(g){return!(o&&!ar(g))&&y(this,g===0?0:g)}:function(g,b){return y(this,g===0?0:g,b),this})};if(Q4(t,!sr(i)||!(o||u.forEach&&!er(function(){new i().entries().next()}))))s=r.getConstructor(e,t,n,a),X6.enable();else if(Q4(t,!0)){var f=new s,d=f[a](o?{}:-0,1)!=f,p=er(function(){f.has(1)}),m=function(v,y){if(!WV)return!1;var g=!1;try{var b={};b[GV]=function(){return{next:function(){return{done:g=!0}}}},function(E){new i(E)}(b)}catch{}return g}(),h=!o&&er(function(){for(var v=new i,y=5;y--;)v[a](y,y);return!v.has(-0)});m||((s=e(function(v,y){_V(v,u);var g=function(b,E,x){var S,C;return qm&&sr(S=E.constructor)&&S!==x&&ar(C=S.prototype)&&C!==x.prototype&&qm(b,C),b}(new i,v,s);return y!=null&&UV(y,g[a],{that:g,AS_ENTRIES:n}),g})).prototype=u,u.constructor=s),(p||h)&&(c("delete"),c("has"),n&&c("get")),(h||d)&&c(a),o&&u.clear&&delete u.clear}return l[t]=s,fu({global:!0,forced:s!=i},l),eC(s,t),o||r.setStrong(s,t,n),s}("WeakMap",QV,JV);if(RV&&adt){dd=JV.getConstructor(QV,"WeakMap",!0),X6.enable();var pd=udt.prototype,ZP=ee(pd.delete),bv=ee(pd.has),JP=ee(pd.get),QP=ee(pd.set);rC(pd,{delete:function(t){if(ar(t)&&!rs(t)){var e=yv(this);return e.frozen||(e.frozen=new dd),ZP(this,t)||e.frozen.delete(t)}return ZP(this,t)},has:function(t){if(ar(t)&&!rs(t)){var e=yv(this);return e.frozen||(e.frozen=new dd),bv(this,t)||e.frozen.has(t)}return bv(this,t)},get:function(t){if(ar(t)&&!rs(t)){var e=yv(this);return e.frozen||(e.frozen=new dd),bv(this,t)?JP(this,t):e.frozen.get(t)}return JP(this,t)},set:function(t,e){if(ar(t)&&!rs(t)){var r=yv(this);r.frozen||(r.frozen=new dd),bv(this,t)?QP(this,t,e):r.frozen.set(t,e)}else QP(this,t,e);return this}})}var qV={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},$w=$6("span").classList,qP=$w&&$w.constructor&&$w.constructor.prototype,sdt=qP===Object.prototype?void 0:qP,zw=Xr("iterator"),tF=Xr("toStringTag"),Hw=Zd.values,t$=function(t,e){if(t){if(t[zw]!==Hw)try{Ya(t,zw,Hw)}catch{t[zw]=Hw}if(t[tF]||Ya(t,tF,e),qV[e]){for(var r in Zd)if(t[r]!==Zd[r])try{Ya(t,r,Zd[r])}catch{t[r]=Zd[r]}}}};for(var Uw in qV)t$(Lt[Uw]&&Lt[Uw].prototype,Uw);t$(sdt,"DOMTokenList");var oC=new WeakMap,ldt={type:"list-item",renderElem:function(t,e,r){oC.set(t,r);var n=t,o=n.level,a=o===void 0?0:o,i=n.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 b=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,$=T.ordered;if(M!==m||k<v)break;if(k===v){if($!==g)break;b++}E=T,x=S}return b}(r,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 Rt("div",{style:u},Rt("span",{contentEditable:!1,style:{marginRight:"0.5em",color:c},"data-w-e-reserve":!0},s),Rt("span",null,e))}},iC=function(t,e){return iC=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},iC(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 e$(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}iC(t,e),t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}function eF(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function mp(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n,o,a=r.call(t),i=[];try{for(;(e===void 0||e-- >0)&&!(n=a.next()).done;)i.push(n.value)}catch(u){o={error:u}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return i}function rF(t){return D.nodes(t,{at:t.selection||void 0,match:function(e){return P.findPath(t,e).length===1}})}var cdt=kV.includes;fu({target:"Array",proto:!0},{includes:function(t){return cdt(this,t,arguments.length>1?arguments[1]:void 0)}}),gp("includes");var nF,_w,fdt=function(){var t=Fn(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},q6=Lt.RegExp,r$=er(function(){var t=q6("a","y");return t.lastIndex=2,t.exec("abcd")!=null});r$||er(function(){return!q6("a","y").sticky});var ddt={BROKEN_CARET:r$||er(function(){var t=q6("^r","gy");return t.lastIndex=2,t.exec("str")!=null})},pdt=Lt.RegExp,hdt=er(function(){var t=pdt(".","s");return!(t.dotAll&&t.exec(`
|
|
131
|
+
`)&&t.flags==="s")}),gdt=Lt.RegExp,vdt=er(function(){var t=gdt("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),mdt=yi.get,ydt=L6("native-string-replace",String.prototype.replace),ty=RegExp.prototype.exec,aC=ty,bdt=ee("".charAt),wdt=ee("".indexOf),Edt=ee("".replace),Gw=ee("".slice),Ww=(_w=/b*/g,Mr(ty,nF=/a/,"a"),Mr(ty,_w,"a"),nF.lastIndex!==0||_w.lastIndex!==0),oF=ddt.BROKEN_CARET,Kw=/()??/.exec("")[1]!==void 0;(Ww||Kw||oF||hdt||vdt)&&(aC=function(t){var e,r,n,o,a,i,u,s=this,l=mdt(s),c=ji(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=Mr(aC,f,c),s.lastIndex=f.lastIndex,e;var d=l.groups,p=oF&&s.sticky,m=Mr(fdt,s),h=s.source,v=0,y=c;if(p&&(m=Edt(m,"y",""),wdt(m,"g")===-1&&(m+="g"),y=Gw(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&bdt(c,s.lastIndex-1)!==`
|
|
132
|
+
`)&&(h="(?: "+h+")",y=" "+y,v++),r=new RegExp("^(?:"+h+")",m)),Kw&&(r=new RegExp("^"+h+"$(?!\\s)",m)),Ww&&(n=s.lastIndex),o=Mr(ty,p?r:s,y),p?o?(o.input=Gw(o.input,v),o[0]=Gw(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Ww&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),Kw&&o&&o.length>1&&Mr(ydt,o[0],r,function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(o[a]=void 0)}),o&&d)for(o.groups=i=_6(null),a=0;a<d.length;a++)i[(u=d[a])[0]]=o[u[1]];return o});var ey=aC;fu({target:"RegExp",proto:!0,forced:/./.exec!==ey},{exec:ey});var n$=function(){function t(){this.type="list-item",this.tag="button"}return t.prototype.getListNode=function(e){var r=this.type;return P.getSelectedNodeByType(e,r)},t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){var r=this.getListNode(e);if(r==null)return!1;var n=r.ordered;return(n!==void 0&&n)===this.ordered},t.prototype.isDisabled=function(e){return e.selection==null||!!P.getSelectedElems(e).some(function(r){if(D.isVoid(e,r)&&D.isBlock(e,r))return!0;var n=r.type;return!!["pre","code","table"].includes(n)||void 0})},t.prototype.exec=function(e,r){this.isActive(e)?U.setNodes(e,{type:"paragraph",ordered:void 0,level:void 0}):U.setNodes(e,{type:"list-item",ordered:this.ordered,indent:void 0})},t}(),Sdt='<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>',xdt='<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>',Cdt=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.ordered=!1,r.title=lt("listModule.unOrderedList"),r.iconSvg=Sdt,r}return e$(e,t),e}(n$),Ddt=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.ordered=!0,r.title=lt("listModule.orderedList"),r.iconSvg=xdt,r}return e$(e,t),e}(n$),Odt={key:"bulletedList",factory:function(){return new Cdt}},Adt={key:"numberedList",factory:function(){return new Ddt}},iF=[],Tdt={type:"list-item",elemToHtml:function(t,e){var r="",n="",o=t.ordered,a=o!==void 0&&o?"ol":"ul",i=function(l){var c=oC.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),b=D.node(c,g);if(!b)return 0;var E=mp(b,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++)r+="<"+a+">",iF.push(a);var s=function(l){var c=oC.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),b=D.node(c,g);if(!b)return 0;var E=mp(b,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++)n+="</"+iF.pop()+">";return{html:"<li>"+e+"</li>",prefix:r,suffix:n}}},Bdt=Xr("species"),Pdt=Q6.filter,Fdt=_4>=51||!er(function(){var t=[];return(t.constructor={})[Bdt]=function(){return{foo:1}},t.filter(Boolean).foo!==1});fu({target:"Array",proto:!0,forced:!Fdt},{filter:function(t){return Pdt(this,t,arguments.length>1?arguments[1]:void 0)}});var t5=Function.prototype,aF=t5.apply,kdt=t5.bind,uF=t5.call,Ndt=typeof Reflect=="object"&&Reflect.apply||(kdt?uF.bind(aF):function(){return uF.apply(aF,arguments)}),sF=(Xr("species"),RegExp.prototype),Idt=HV.charAt,jdt=function(t,e,r){return e+(r?Idt(t,e).length:1)},Rdt=Math.floor,Yw=ee("".charAt),Ldt=ee("".replace),Xw=ee("".slice),Mdt=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Vdt=/\$([$&'`]|\d{1,2})/g,$dt=function(t,e,r,n,o,a){var i=r+t.length,u=n.length,s=Vdt;return o!==void 0&&(o=rg(o),s=Mdt),Ldt(a,s,function(l,c){var f;switch(Yw(c,0)){case"$":return"$";case"&":return t;case"`":return Xw(e,0,r);case"'":return Xw(e,i);case"<":f=o[Xw(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=Rdt(d/10);return p===0?l:p<=u?n[p-1]===void 0?Yw(c,1):n[p-1]+Yw(c,1):l}f=n[d-1]}return f===void 0?"":f})},zdt=Lt.TypeError,Hdt=function(t,e){var r=t.exec;if(sr(r)){var n=Mr(r,t,e);return n!==null&&Fn(n),n}if(Gi(t)==="RegExp")return Mr(ey,t,e);throw zdt("RegExp#exec called on incompatible receiver")},uC=Xr("replace"),Udt=Math.max,_dt=Math.min,Gdt=ee([].concat),Zw=ee([].push),lF=ee("".indexOf),cF=ee("".slice),Wdt="a".replace(/./,"$0")==="$0",fF=!!/./[uC]&&/./[uC]("a","$0")==="";(function(t,e,r,n){var o=Xr(t),a=!er(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),i=a&&!er(function(){var l=!1,c=/a/;return c.exec=function(){return l=!0,null},c[o](""),!l});if(!a||!i||r){var u=ee(/./[o]),s=function(l,c,f){var d=fF?"$":"$0";return[function(p,m){var h=B1(this),v=p==null?void 0:th(p,uC);return v?Mr(v,p,h,m):Mr(c,ji(h),p,m)},function(p,m){var h=Fn(this),v=ji(p);if(typeof m=="string"&&lF(m,d)===-1&&lF(m,"$<")===-1){var y=f(c,h,v,m);if(y.done)return y.value}var g=sr(m);g||(m=ji(m));var b=h.global;if(b){var E=h.unicode;h.lastIndex=0}for(var x=[];;){var S=Hdt(h,v);if(S===null||(Zw(x,S),!b))break;ji(S[0])===""&&(h.lastIndex=jdt(v,FV(h.lastIndex),E))}for(var C,T="",A=0,k=0;k<x.length;k++){for(var M=ji((S=x[k])[0]),$=Udt(_dt(og(S.index),v.length),0),N=[],j=1;j<S.length;j++)Zw(N,(C=S[j])===void 0?C:String(C));var _=S.groups;if(g){var V=Gdt([M],N,$,v);_!==void 0&&Zw(V,_);var Z=ji(Ndt(m,void 0,V))}else Z=$dt(M,v,$,N,_,m);$>=A&&(T+=cF(v,A,$)+Z,A=$+M.length)}return T+cF(v,A)}]}(0,""[t],function(l,c,f,d,p){var m=ee(l),h=c.exec;return h===ey||h===sF.exec?a&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:m(f,c,d)}:{done:!1}});Ji(String.prototype,t,s[0]),Ji(sF,o,s[1])}})("replace",0,!!er(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!Wdt||fF);var Kdt=Lt.TypeError,o$=function(t,e,r,n,o,a,i,u){for(var s,l,c=o,f=0,d=!!i&&Z6(i,u);f<n;){if(f in r){if(s=d?d(r[f],f,e):r[f],a>0&&nC(s))l=cf(s),c=o$(t,e,s,l,c,a-1)-1;else{if(c>=9007199254740991)throw Kdt("Exceed the acceptable array length");t[c]=s}c++}f++}return c},Ydt=o$;function Jw(t){return t.length?t[0].tagName.toLowerCase():""}fu({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=rg(this),r=cf(e),n=XV(e,0);return n.length=Ydt(n,e,e,r,0,t===void 0?1:og(t)),n}}),gp("flat"),fu({global:!0},{globalThis:Lt}),yo&&(F.fn.append=yo),mo&&(F.fn.attr=mo),Cc&&(F.fn.parent=Cc);var Xdt={renderElems:[ldt],editorPlugin:function(t){var e=t.deleteBackward,r=t.handleTab,n=t.normalizeNode,o=t;return o.deleteBackward=function(a){var i=o.selection;if(i!=null)if(Q.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?U.setNodes(o,{level:l-1}):U.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(Q.isCollapsed(l)){var c=P.getSelectedNodeByType(o,"list-item");if(c==null)return void r();if(l.focus.offset===0){var f=c.level,d=f===void 0?0:f;return void U.setNodes(o,{level:d+1})}}if(Q.isExpanded(l)){var p=0,m=!1;try{for(var h=eF(rF(o)),v=h.next();!v.done;v=h.next()){var y=mp(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 r();try{for(var g=eF(rF(o)),b=g.next();!b.done;b=g.next()){var E=mp(b.value,2),x=(y=E[0],E[1]),S=y.level;d=S===void 0?0:S,U.setNodes(o,{level:d+1},{at:x})}}catch(C){u={error:C}}finally{try{b&&!b.done&&(s=g.return)&&s.call(g)}finally{if(u)throw u.error}}}else r()}else r()},o.normalizeNode=function(a){var i=mp(a,2),u=i[0],s=i[1],l=P.getNodeType(u);return l!=="bulleted-list"&&l!=="numbered-list"||U.unwrapNodes(o,{at:s}),n([u,s])},o},menus:[Odt,Adt],elemsToHtml:[Tdt],parseElemsHtml:[{selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(t,e,r){return e.flat(1/0)}},{selector:"li:not([data-w-e-type])",parseElemHtml:function(t,e,r){var n=F(t);(e=e.filter(function(i){return!!vt.isText(i)||!!r.isInline(i)})).length===0&&(e=[{text:n.text().replace(/\s+/gm," ")}]);var o=function(i){return Jw(i.parent())==="ol"}(n),a=function(i){for(var u=0,s=i.parent(),l=Jw(s);l==="ul"||l==="ol";)l=Jw(s=s.parent()),u++;return u-1}(n);return{type:"list-item",ordered:o,level:a,children:e}}}]},i$=Ws(function(t,e){var r="__lodash_hash_undefined__",n=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]",b="[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[b]=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 Fe=="object"&&Fe&&Fe.Object===Object&&Fe,A=typeof self=="object"&&self&&self.Object===Object&&self,k=T||A||Function("return this")(),M=e&&!e.nodeType&&e,$=M&&t&&!t.nodeType&&t,N=$&&$.exports===M,j=N&&T.process,_=function(){try{return j&&j.binding&&j.binding("util")}catch{}}(),V=_&&_.isTypedArray;function Z(L,J){for(var ut=-1,At=L==null?0:L.length;++ut<At;)if(J(L[ut],ut,L))return!0;return!1}function nt(L){var J=-1,ut=Array(L.size);return L.forEach(function(At,xe){ut[++J]=[xe,At]}),ut}function it(L){var J=-1,ut=Array(L.size);return L.forEach(function(At){ut[++J]=At}),ut}var G=Array.prototype,O=Function.prototype,B=Object.prototype,I=k["__core-js_shared__"],K=O.toString,et=B.hasOwnProperty,Y=function(){var L=/[^.]+$/.exec(I&&I.keys&&I.keys.IE_PROTO||"");return L?"Symbol(src)_1."+L:""}(),ot=B.toString,mt=RegExp("^"+K.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,Ct=G.splice,ht=Pt?Pt.toStringTag:void 0,kt=Object.getOwnPropertySymbols,ye=bt?bt.isBuffer:void 0,Vt=function(L,J){return function(ut){return L(J(ut))}}(Object.keys,Object),fe=jn(k,"DataView"),De=jn(k,"Map"),Be=jn(k,"Promise"),zt=jn(k,"Set"),lr=jn(k,"WeakMap"),Ur=jn(Object,"create"),Zr=Oi(fe),eo=Oi(De),kn=Oi(Be),_r=Oi(zt),Jr=Oi(lr),W=Pt?Pt.prototype:void 0,H=W?W.valueOf:void 0;function X(L){var J=-1,ut=L==null?0:L.length;for(this.clear();++J<ut;){var At=L[J];this.set(At[0],At[1])}}function rt(L){var J=-1,ut=L==null?0:L.length;for(this.clear();++J<ut;){var At=L[J];this.set(At[0],At[1])}}function gt(L){var J=-1,ut=L==null?0:L.length;for(this.clear();++J<ut;){var At=L[J];this.set(At[0],At[1])}}function wt(L){var J=-1,ut=L==null?0:L.length;for(this.__data__=new gt;++J<ut;)this.add(L[J])}function Ft(L){var J=this.__data__=new rt(L);this.size=J.size}function ae(L,J){var ut=Ai(L),At=!ut&&bg(L),xe=!ut&&!At&&_o(L),te=!ut&&!At&&!xe&&Wo(L),R=ut||At||xe||te,q=R?function(ue,He){for(var Ie=-1,de=Array(ue);++Ie<ue;)de[Ie]=He(Ie);return de}(L.length,String):[],dt=q.length;for(var yt in L)!et.call(L,yt)||R&&(yt=="length"||xe&&(yt=="offset"||yt=="parent")||te&&(yt=="buffer"||yt=="byteLength"||yt=="byteOffset")||df(yt,dt))||q.push(yt);return q}function Se(L,J){for(var ut=L.length;ut--;)if(ol(L[ut][0],J))return ut;return-1}function Bt(L){return L==null?L===void 0?"[object Undefined]":"[object Null]":ht&&ht in Object(L)?function(J){var ut=et.call(J,ht),At=J[ht];try{J[ht]=void 0;var xe=!0}catch{}var te=ot.call(J);return xe&&(ut?J[ht]=At:delete J[ht]),te}(L):function(J){return ot.call(J)}(L)}function Et(L){return na(L)&&Bt(L)==o}function Tt(L,J,ut,At,xe){return L===J||(L==null||J==null||!na(L)&&!na(J)?L!=L&&J!=J:function(te,R,q,dt,yt,ue){var He=Ai(te),Ie=Ai(R),de=He?a:Rn(te),Br=Ie?a:Rn(R),Qr=(de=de==o?d:de)==d,Du=(Br=Br==o?d:Br)==d,Ti=de==Br;if(Ti&&_o(te)){if(!_o(R))return!1;He=!0,Qr=!1}if(Ti&&!Qr)return ue||(ue=new Ft),He||Wo(te)?Ne(te,R,q,dt,yt,ue):function(ne,pe,he,rr,fn,mn,Do){switch(he){case E:if(ne.byteLength!=pe.byteLength||ne.byteOffset!=pe.byteOffset)return!1;ne=ne.buffer,pe=pe.buffer;case b:return!(ne.byteLength!=pe.byteLength||!mn(new tt(ne),new tt(pe)));case i:case u:case f:return ol(+ne,+pe);case s:return ne.name==pe.name&&ne.message==pe.message;case m:case v:return ne==pe+"";case c:var ia=nt;case h:var hf=1&rr;if(ia||(ia=it),ne.size!=pe.size&&!hf)return!1;var Sg=Do.get(ne);if(Sg)return Sg==pe;rr|=2,Do.set(ne,pe);var il=Ne(ia(ne),ia(pe),rr,fn,mn,Do);return Do.delete(ne),il;case y:if(H)return H.call(ne)==H.call(pe)}return!1}(te,R,de,q,dt,yt,ue);if(!(1&q)){var oa=Qr&&et.call(te,"__wrapped__"),It=Du&&et.call(R,"__wrapped__");if(oa||It){var be=oa?te.value():te,cr=It?R.value():R;return ue||(ue=new Ft),yt(be,cr,q,dt,ue)}}return Ti?(ue||(ue=new Ft),function(ne,pe,he,rr,fn,mn){var Do=1&he,ia=Nn(ne),hf=ia.length,Sg=Nn(pe).length;if(hf!=Sg&&!Do)return!1;for(var il=hf;il--;){var Ou=ia[il];if(!(Do?Ou in pe:et.call(pe,Ou)))return!1}var R8=mn.get(ne);if(R8&&mn.get(pe))return R8==pe;var xg=!0;mn.set(ne,pe),mn.set(pe,ne);for(var Q1=Do;++il<hf;){var Cg=ne[Ou=ia[il]],Dg=pe[Ou];if(rr)var L8=Do?rr(Dg,Cg,Ou,pe,ne,mn):rr(Cg,Dg,Ou,ne,pe,mn);if(!(L8===void 0?Cg===Dg||fn(Cg,Dg,he,rr,mn):L8)){xg=!1;break}Q1||(Q1=Ou=="constructor")}if(xg&&!Q1){var Og=ne.constructor,Ag=pe.constructor;Og==Ag||!("constructor"in ne)||!("constructor"in pe)||typeof Og=="function"&&Og instanceof Og&&typeof Ag=="function"&&Ag instanceof Ag||(xg=!1)}return mn.delete(ne),mn.delete(pe),xg}(te,R,q,dt,yt,ue)):!1}(L,J,ut,At,Tt,xe))}function Yt(L){return!(!wg(L)||function(J){return!!Y&&Y in J}(L))&&(pf(L)?mt:x).test(Oi(L))}function Ut(L){if(ut=(J=L)&&J.constructor,At=typeof ut=="function"&&ut.prototype||B,J!==At)return Vt(L);var J,ut,At,xe=[];for(var te in Object(L))et.call(L,te)&&te!="constructor"&&xe.push(te);return xe}function Ne(L,J,ut,At,xe,te){var R=1&ut,q=L.length,dt=J.length;if(q!=dt&&!(R&&dt>q))return!1;var yt=te.get(L);if(yt&&te.get(J))return yt==J;var ue=-1,He=!0,Ie=2&ut?new wt:void 0;for(te.set(L,J),te.set(J,L);++ue<q;){var de=L[ue],Br=J[ue];if(At)var Qr=R?At(Br,de,ue,J,L,te):At(de,Br,ue,L,J,te);if(Qr!==void 0){if(Qr)continue;He=!1;break}if(Ie){if(!Z(J,function(Du,Ti){if(oa=Ti,!Ie.has(oa)&&(de===Du||xe(de,Du,ut,At,te)))return Ie.push(Ti);var oa})){He=!1;break}}else if(de!==Br&&!xe(de,Br,ut,At,te)){He=!1;break}}return te.delete(L),te.delete(J),He}function Nn(L){return function(J,ut,At){var xe=ut(J);return Ai(J)?xe:function(te,R){for(var q=-1,dt=R.length,yt=te.length;++q<dt;)te[yt+q]=R[q];return te}(xe,At(J))}(L,Eg,yg)}function In(L,J){var ut,At,xe=L.__data__;return((At=typeof(ut=J))=="string"||At=="number"||At=="symbol"||At=="boolean"?ut!=="__proto__":ut===null)?xe[typeof J=="string"?"string":"hash"]:xe.map}function jn(L,J){var ut=function(At,xe){return At==null?void 0:At[xe]}(L,J);return Yt(ut)?ut:void 0}X.prototype.clear=function(){this.__data__=Ur?Ur(null):{},this.size=0},X.prototype.delete=function(L){var J=this.has(L)&&delete this.__data__[L];return this.size-=J?1:0,J},X.prototype.get=function(L){var J=this.__data__;if(Ur){var ut=J[L];return ut===r?void 0:ut}return et.call(J,L)?J[L]:void 0},X.prototype.has=function(L){var J=this.__data__;return Ur?J[L]!==void 0:et.call(J,L)},X.prototype.set=function(L,J){var ut=this.__data__;return this.size+=this.has(L)?0:1,ut[L]=Ur&&J===void 0?r:J,this},rt.prototype.clear=function(){this.__data__=[],this.size=0},rt.prototype.delete=function(L){var J=this.__data__,ut=Se(J,L);return!(ut<0)&&(ut==J.length-1?J.pop():Ct.call(J,ut,1),--this.size,!0)},rt.prototype.get=function(L){var J=this.__data__,ut=Se(J,L);return ut<0?void 0:J[ut][1]},rt.prototype.has=function(L){return Se(this.__data__,L)>-1},rt.prototype.set=function(L,J){var ut=this.__data__,At=Se(ut,L);return At<0?(++this.size,ut.push([L,J])):ut[At][1]=J,this},gt.prototype.clear=function(){this.size=0,this.__data__={hash:new X,map:new(De||rt),string:new X}},gt.prototype.delete=function(L){var J=In(this,L).delete(L);return this.size-=J?1:0,J},gt.prototype.get=function(L){return In(this,L).get(L)},gt.prototype.has=function(L){return In(this,L).has(L)},gt.prototype.set=function(L,J){var ut=In(this,L),At=ut.size;return ut.set(L,J),this.size+=ut.size==At?0:1,this},wt.prototype.add=wt.prototype.push=function(L){return this.__data__.set(L,r),this},wt.prototype.has=function(L){return this.__data__.has(L)},Ft.prototype.clear=function(){this.__data__=new rt,this.size=0},Ft.prototype.delete=function(L){var J=this.__data__,ut=J.delete(L);return this.size=J.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,J){var ut=this.__data__;if(ut instanceof rt){var At=ut.__data__;if(!De||At.length<199)return At.push([L,J]),this.size=++ut.size,this;ut=this.__data__=new gt(At)}return ut.set(L,J),this.size=ut.size,this};var yg=kt?function(L){return L==null?[]:(L=Object(L),function(J,ut){for(var At=-1,xe=J==null?0:J.length,te=0,R=[];++At<xe;){var q=J[At];ut(q,At,J)&&(R[te++]=q)}return R}(kt(L),function(J){return Mt.call(L,J)}))}:function(){return[]},Rn=Bt;function df(L,J){return!!(J=J??n)&&(typeof L=="number"||S.test(L))&&L>-1&&L%1==0&&L<J}function Oi(L){if(L!=null){try{return K.call(L)}catch{}try{return L+""}catch{}}return""}function ol(L,J){return L===J||L!=L&&J!=J}(fe&&Rn(new fe(new ArrayBuffer(1)))!=E||De&&Rn(new De)!=c||Be&&Rn(Be.resolve())!=p||zt&&Rn(new zt)!=h||lr&&Rn(new lr)!=g)&&(Rn=function(L){var J=Bt(L),ut=J==d?L.constructor:void 0,At=ut?Oi(ut):"";if(At)switch(At){case Zr:return E;case eo:return c;case kn:return p;case _r:return h;case Jr:return g}return J});var bg=Et(function(){return arguments}())?Et:function(L){return na(L)&&et.call(L,"callee")&&!Mt.call(L,"callee")},Ai=Array.isArray,_o=ye||function(){return!1};function pf(L){if(!wg(L))return!1;var J=Bt(L);return J==l||J=="[object GeneratorFunction]"||J=="[object AsyncFunction]"||J=="[object Proxy]"}function Go(L){return typeof L=="number"&&L>-1&&L%1==0&&L<=n}function wg(L){var J=typeof L;return L!=null&&(J=="object"||J=="function")}function na(L){return L!=null&&typeof L=="object"}var Wo=V?function(L){return function(J){return L(J)}}(V):function(L){return na(L)&&Go(L.length)&&!!C[Bt(L)]};function Eg(L){return(J=L)!=null&&Go(J.length)&&!pf(J)?ae(L):Ut(L);var J}t.exports=function(L,J){return Tt(L,J)}});Pn("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"}}),Pn("zh-CN",{tableModule:{deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"宽度自适应",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头"}});var dF=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function a$(t){var e={exports:{}};return t(e,e.exports),e.exports}var ya,g0,wv=function(t){return t&&t.Math==Math&&t},qt=wv(typeof globalThis=="object"&&globalThis)||wv(typeof window=="object"&&window)||wv(typeof self=="object"&&self)||wv(typeof dF=="object"&&dF)||function(){return this}()||Function("return this")(),Ar=function(t){try{return!!t()}catch{return!0}},du=!Ar(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),hd=Function.prototype.call,Fr=hd.bind?hd.bind(hd):function(){return hd.apply(hd,arguments)},pF={}.propertyIsEnumerable,hF=Object.getOwnPropertyDescriptor,Zdt={f:hF&&!pF.call({1:2},1)?function(t){var e=hF(this,t);return!!e&&e.enumerable}:pF},e5=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},u$=Function.prototype,sC=u$.bind,lC=u$.call,Jdt=sC&&sC.bind(lC),oe=sC?function(t){return t&&Jdt(lC,t)}:function(t){return t&&function(){return lC.apply(t,arguments)}},Qdt=oe({}.toString),qdt=oe("".slice),Xa=function(t){return qdt(Qdt(t),8,-1)},Qw=qt.Object,tpt=oe("".split),s$=Ar(function(){return!Qw("z").propertyIsEnumerable(0)})?function(t){return Xa(t)=="String"?tpt(t,""):Qw(t)}:Qw,ept=qt.TypeError,pu=function(t){if(t==null)throw ept("Can't call method on "+t);return t},ag=function(t){return s$(pu(t))},ln=function(t){return typeof t=="function"},ai=function(t){return typeof t=="object"?t!==null:ln(t)},rpt=function(t){return ln(t)?t:void 0},ug=function(t,e){return arguments.length<2?rpt(qt[t]):qt[t]&&qt[t][e]},l$=oe({}.isPrototypeOf),qw=ug("navigator","userAgent")||"",gF=qt.process,vF=qt.Deno,mF=gF&&gF.versions||vF&&vF.version,yF=mF&&mF.v8;yF&&(g0=(ya=yF.split("."))[0]>0&&ya[0]<4?1:+(ya[0]+ya[1])),!g0&&qw&&(!(ya=qw.match(/Edge\/(\d+)/))||ya[1]>=74)&&(ya=qw.match(/Chrome\/(\d+)/))&&(g0=+ya[1]);var cC=g0,fC=!!Object.getOwnPropertySymbols&&!Ar(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&cC&&cC<41}),r5=fC&&!Symbol.sham&&typeof Symbol.iterator=="symbol",npt=qt.Object,tE=r5?function(t){return typeof t=="symbol"}:function(t){var e=ug("Symbol");return ln(e)&&l$(e.prototype,npt(t))},opt=qt.String,c$=function(t){try{return opt(t)}catch{return"Object"}},ipt=qt.TypeError,f$=function(t){if(ln(t))return t;throw ipt(c$(t)+" is not a function")},n5=function(t,e){var r=t[e];return r==null?void 0:f$(r)},apt=qt.TypeError,upt=Object.defineProperty,o5=function(t,e){try{upt(qt,t,{value:e,configurable:!0,writable:!0})}catch{qt[t]=e}return e},Za=qt["__core-js_shared__"]||o5("__core-js_shared__",{}),i5=a$(function(t){(t.exports=function(e,r){return Za[e]||(Za[e]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),spt=qt.Object,a5=function(t){return spt(pu(t))},lpt=oe({}.hasOwnProperty),po=Object.hasOwn||function(t,e){return lpt(a5(t),e)},cpt=0,fpt=Math.random(),dpt=oe(1 .toString),d$=function(t){return"Symbol("+(t===void 0?"":t)+")_"+dpt(++cpt+fpt,36)},gd=i5("wks"),xs=qt.Symbol,bF=xs&&xs.for,ppt=r5?xs:xs&&xs.withoutSetter||d$,Co=function(t){if(!po(gd,t)||!fC&&typeof gd[t]!="string"){var e="Symbol."+t;fC&&po(xs,t)?gd[t]=xs[t]:gd[t]=r5&&bF?bF(e):ppt(e)}return gd[t]},hpt=qt.TypeError,gpt=Co("toPrimitive"),u5=function(t){var e=function(r,n){if(!ai(r)||tE(r))return r;var o,a=n5(r,gpt);if(a){if(o=Fr(a,r,n),!ai(o)||tE(o))return o;throw hpt("Can't convert object to primitive value")}return function(i,u){var s,l;if(ln(s=i.toString)&&!ai(l=Fr(s,i))||ln(s=i.valueOf)&&!ai(l=Fr(s,i)))return l;throw apt("Can't convert object to primitive value")}(r)}(t,"string");return tE(e)?e:e+""},dC=qt.document,vpt=ai(dC)&&ai(dC.createElement),s5=function(t){return vpt?dC.createElement(t):{}},p$=!du&&!Ar(function(){return Object.defineProperty(s5("div"),"a",{get:function(){return 7}}).a!=7}),wF=Object.getOwnPropertyDescriptor,h$={f:du?wF:function(t,e){if(t=ag(t),e=u5(e),p$)try{return wF(t,e)}catch{}if(po(t,e))return e5(!Fr(Zdt.f,t,e),t[e])}},mpt=qt.String,ypt=qt.TypeError,ho=function(t){if(ai(t))return t;throw ypt(mpt(t)+" is not an object")},bpt=qt.TypeError,EF=Object.defineProperty,sg={f:du?EF:function(t,e,r){if(ho(t),e=u5(e),ho(r),p$)try{return EF(t,e,r)}catch{}if("get"in r||"set"in r)throw bpt("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},Mc=du?function(t,e,r){return sg.f(t,e,e5(1,r))}:function(t,e,r){return t[e]=r,t},wpt=oe(Function.toString);ln(Za.inspectSource)||(Za.inspectSource=function(t){return wpt(t)});var pC,ry,hC,l5=Za.inspectSource,SF=qt.WeakMap,Ept=ln(SF)&&/native code/.test(l5(SF)),xF=i5("keys"),g$=function(t){return xF[t]||(xF[t]=d$(t))},c5={},CF=qt.TypeError,Spt=qt.WeakMap;if(Ept||Za.state){var Mu=Za.state||(Za.state=new Spt),xpt=oe(Mu.get),DF=oe(Mu.has),Cpt=oe(Mu.set);pC=function(t,e){if(DF(Mu,t))throw new CF("Object already initialized");return e.facade=t,Cpt(Mu,t,e),e},ry=function(t){return xpt(Mu,t)||{}},hC=function(t){return DF(Mu,t)}}else{var Bl=g$("state");c5[Bl]=!0,pC=function(t,e){if(po(t,Bl))throw new CF("Object already initialized");return e.facade=t,Mc(t,Bl,e),e},ry=function(t){return po(t,Bl)?t[Bl]:{}},hC=function(t){return po(t,Bl)}}var gC={get:ry,enforce:function(t){return hC(t)?ry(t):pC(t,{})}},v$=Function.prototype,Dpt=du&&Object.getOwnPropertyDescriptor,OF=po(v$,"name"),f5={PROPER:OF&&(function(){}).name==="something",CONFIGURABLE:OF&&(!du||du&&Dpt(v$,"name").configurable)},eh=a$(function(t){var e=f5.CONFIGURABLE,r=gC.get,n=gC.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")+"]"),(!po(u,"name")||e&&u.name!==p)&&Mc(u,"name",p),(l=n(u)).source||(l.source=o.join(typeof p=="string"?p:""))),a!==qt?(c?!d&&a[i]&&(f=!0):delete a[i],f?a[i]=u:Mc(a,i,u)):f?a[i]=u:o5(i,u)})(Function.prototype,"toString",function(){return ln(this)&&r(this).source||l5(this)})}),Opt=Math.ceil,Apt=Math.floor,N1=function(t){var e=+t;return e!=e||e===0?0:(e>0?Apt:Opt)(e)},Tpt=Math.max,Bpt=Math.min,rh=function(t,e){var r=N1(t);return r<0?Tpt(r+e,0):Bpt(r,e)},Ppt=Math.min,d5=function(t){return t>0?Ppt(N1(t),9007199254740991):0},I1=function(t){return d5(t.length)},Fpt=function(t){return function(e,r,n){var o,a=ag(e),i=I1(a),u=rh(n,i);if(t&&r!=r){for(;i>u;)if((o=a[u++])!=o)return!0}else for(;i>u;u++)if((t||u in a)&&a[u]===r)return t||u||0;return!t&&-1}},kpt=Fpt(!1),AF=oe([].push),m$=function(t,e){var r,n=ag(t),o=0,a=[];for(r in n)!po(c5,r)&&po(n,r)&&AF(a,r);for(;e.length>o;)po(n,r=e[o++])&&(~kpt(a,r)||AF(a,r));return a},ny=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Npt=ny.concat("length","prototype"),Ipt={f:Object.getOwnPropertyNames||function(t){return m$(t,Npt)}},jpt={f:Object.getOwnPropertySymbols},Rpt=oe([].concat),Lpt=ug("Reflect","ownKeys")||function(t){var e=Ipt.f(ho(t)),r=jpt.f;return r?Rpt(e,r(t)):e},Mpt=function(t,e){for(var r=Lpt(e),n=sg.f,o=h$.f,a=0;a<r.length;a++){var i=r[a];po(t,i)||n(t,i,o(e,i))}},Vpt=/#|\.prototype\./,lg=function(t,e){var r=zpt[$pt(t)];return r==Upt||r!=Hpt&&(ln(e)?Ar(e):!!e)},$pt=lg.normalize=function(t){return String(t).replace(Vpt,".").toLowerCase()},zpt=lg.data={},Hpt=lg.NATIVE="N",Upt=lg.POLYFILL="P",_pt=lg,Gpt=h$.f,hu=function(t,e){var r,n,o,a,i,u=t.target,s=t.global,l=t.stat;if(r=s?qt:l?qt[u]||o5(u,{}):(qt[u]||{}).prototype)for(n in e){if(a=e[n],o=t.noTargetGet?(i=Gpt(r,n))&&i.value:r[n],!_pt(s?n:u+(l?".":"#")+n,t.forced)&&o!==void 0){if(typeof a==typeof o)continue;Mpt(a,o)}(t.sham||o&&o.sham)&&Mc(a,"sham",!0),eh(r,n,a,t)}},y$={};y$[Co("toStringTag")]="z";var p5=String(y$)==="[object z]",Wpt=Co("toStringTag"),Kpt=qt.Object,Ypt=Xa(function(){return arguments}())=="Arguments",h5=p5?Xa:function(t){var e,r,n;return t===void 0?"Undefined":t===null?"Null":typeof(r=function(o,a){try{return o[a]}catch{}}(e=Kpt(t),Wpt))=="string"?r:Ypt?Xa(e):(n=Xa(e))=="Object"&&ln(e.callee)?"Arguments":n},Xpt=qt.String,nn=function(t){if(h5(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Xpt(t)},Zpt=/"/g,Jpt=oe("".replace);hu({target:"String",proto:!0,forced:Ar(function(){var t="".anchor('"');return t!==t.toLowerCase()||t.split('"').length>3})},{anchor:function(t){return e=t,r=nn(pu(this)),n="<a",(n+=' name="'+Jpt(nn(e),Zpt,""")+'"')+">"+r+"</a>";var e,r,n}});var Ev,b$=function(){var t=ho(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},g5=qt.RegExp,vC=Ar(function(){var t=g5("a","y");return t.lastIndex=2,t.exec("abcd")!=null});vC||Ar(function(){return!g5("a","y").sticky});var w$={BROKEN_CARET:vC||Ar(function(){var t=g5("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),UNSUPPORTED_Y:vC},Qpt=Object.keys||function(t){return m$(t,ny)},qpt=du?Object.defineProperties:function(t,e){ho(t);for(var r,n=ag(e),o=Qpt(e),a=o.length,i=0;a>i;)sg.f(t,r=o[i++],n[r]);return t},tht=ug("document","documentElement"),E$=g$("IE_PROTO"),eE=function(){},S$=function(t){return"<script>"+t+"<\/script>"},TF=function(t){t.write(S$("")),t.close();var e=t.parentWindow.Object;return t=null,e},v0=function(){try{Ev=new ActiveXObject("htmlfile")}catch{}var t,e;v0=typeof document<"u"?document.domain&&Ev?TF(Ev):((e=s5("iframe")).style.display="none",tht.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(S$("document.F=Object")),t.close(),t.F):TF(Ev);for(var r=ny.length;r--;)delete v0.prototype[ny[r]];return v0()};c5[E$]=!0;var BF,rE,x$=Object.create||function(t,e){var r;return t!==null?(eE.prototype=ho(t),r=new eE,eE.prototype=null,r[E$]=t):r=v0(),e===void 0?r:qpt(r,e)},eht=qt.RegExp,rht=Ar(function(){var t=eht(".","s");return!(t.dotAll&&t.exec(`
|
|
133
|
+
`)&&t.flags==="s")}),nht=qt.RegExp,oht=Ar(function(){var t=nht("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),iht=gC.get,aht=i5("native-string-replace",String.prototype.replace),oy=RegExp.prototype.exec,mC=oy,uht=oe("".charAt),sht=oe("".indexOf),lht=oe("".replace),nE=oe("".slice),oE=(rE=/b*/g,Fr(oy,BF=/a/,"a"),Fr(oy,rE,"a"),BF.lastIndex!==0||rE.lastIndex!==0),PF=w$.BROKEN_CARET,iE=/()??/.exec("")[1]!==void 0;(oE||iE||PF||rht||oht)&&(mC=function(t){var e,r,n,o,a,i,u,s=this,l=iht(s),c=nn(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=Fr(mC,f,c),s.lastIndex=f.lastIndex,e;var d=l.groups,p=PF&&s.sticky,m=Fr(b$,s),h=s.source,v=0,y=c;if(p&&(m=lht(m,"y",""),sht(m,"g")===-1&&(m+="g"),y=nE(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&uht(c,s.lastIndex-1)!==`
|
|
134
|
+
`)&&(h="(?: "+h+")",y=" "+y,v++),r=new RegExp("^(?:"+h+")",m)),iE&&(r=new RegExp("^"+h+"$(?!\\s)",m)),oE&&(n=s.lastIndex),o=Fr(oy,p?r:s,y),p?o?(o.input=nE(o.input,v),o[0]=nE(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:oE&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),iE&&o&&o.length>1&&Fr(aht,o[0],r,function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(o[a]=void 0)}),o&&d)for(o.groups=i=x$(null),a=0;a<d.length;a++)i[(u=d[a])[0]]=o[u[1]];return o});var nh=mC;hu({target:"RegExp",proto:!0,forced:/./.exec!==nh},{exec:nh});var iy=Array.isArray||function(t){return Xa(t)=="Array"},C$=function(){},cht=[],D$=ug("Reflect","construct"),v5=/^\s*(?:class|function)\b/,fht=oe(v5.exec),dht=!v5.exec(C$),vd=function(t){if(!ln(t))return!1;try{return D$(C$,cht,t),!0}catch{return!1}},m5=!D$||Ar(function(){var t;return vd(vd.call)||!vd(Object)||!vd(function(){t=!0})||t})?function(t){if(!ln(t))return!1;switch(h5(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return dht||!!fht(v5,l5(t))}:vd,O$=function(t,e,r){var n=u5(e);n in t?sg.f(t,n,e5(0,r)):t[n]=r},pht=Co("species"),y5=function(t){return cC>=51||!Ar(function(){var e=[];return(e.constructor={})[pht]=function(){return{foo:1}},e[t](Boolean).foo!==1})},hht=oe([].slice),ght=y5("slice"),vht=Co("species"),aE=qt.Array,mht=Math.max;function Ho(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n,o,a=r.call(t),i=[];try{for(;(e===void 0||e-- >0)&&!(n=a.next()).done;)i.push(n.value)}catch(u){o={error:u}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return i}function FF(t){var e=t.selection;if(e==null)return!1;var r=Ho(D.nodes(t,{match:function(a){return P.checkNodeType(a,"table-cell")}}),1)[0];if(r){var n=Ho(r,2)[1],o=D.start(t,n);if(Zt.equals(e.anchor,o))return!0}return!1}function kF(t,e){var r,n,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){r={error:s}}finally{try{u&&!u.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return a}hu({target:"Array",proto:!0,forced:!ght},{slice:function(t,e){var r,n,o,a=ag(this),i=I1(a),u=rh(t,i),s=rh(e===void 0?i:e,i);if(iy(a)&&(r=a.constructor,(m5(r)&&(r===aE||iy(r.prototype))||ai(r)&&(r=r[vht])===null)&&(r=void 0),r===aE||r===void 0))return hht(a,u,s);for(n=new(r===void 0?aE:r)(mht(s-u,0)),o=0;u<s;u++,o++)u in a&&O$(n,o,a[u]);return n.length=o,n}});var NF=oe(oe.bind),yht=Co("species"),IF=qt.Array,bht=function(t,e){return new(function(r){var n;return iy(r)&&(n=r.constructor,(m5(n)&&(n===IF||iy(n.prototype))||ai(n)&&(n=n[yht])===null)&&(n=void 0)),n===void 0?IF:n}(t))(e===0?0:e)},jF=oe([].push),Sv=function(t){var e=t==1,r=t==2,n=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=a5(s),h=s$(m),v=function(x,S){return f$(x),S===void 0?x:NF?NF(x,S):function(){return x.apply(S,arguments)}}(l,c),y=I1(h),g=0,b=f||bht,E=e?b(s,y):r||i?b(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:jF(E,d)}else switch(t){case 4:return!1;case 7:jF(E,d)}return a?-1:n||o?o:E}},j1={forEach:Sv(0),map:Sv(1),filter:Sv(2),find:Sv(5)},wht=j1.map;hu({target:"Array",proto:!0,forced:!y5("map")},{map:function(t){return wht(this,t,arguments.length>1?arguments[1]:void 0)}});var Eht=p5?{}.toString:function(){return"[object "+h5(this)+"]"};function R1(t){var e=t.children||[];return e.length===0?[]:(e[0]||{}).children||[]}function A$(t){return R1(t).every(function(e){return!!e.isHeader})}p5||eh(Object.prototype,"toString",Eht,{unsafe:!0});var Sht=f5.PROPER,yC=RegExp.prototype,T$=yC.toString,xht=oe(b$),Cht=Ar(function(){return T$.call({source:"a",flags:"b"})!="/a/b"}),Dht=Sht&&T$.name!="toString";(Cht||Dht)&&eh(RegExp.prototype,"toString",function(){var t=ho(this),e=nn(t.source),r=t.flags;return"/"+e+"/"+nn(r===void 0&&l$(yC,t)&&!("flags"in yC)?xht(t):r)},{unsafe:!0});var bC=Co("unscopables"),wC=Array.prototype;wC[bC]==null&&sg.f(wC,bC,{configurable:!0,value:x$(null)});var Oht=j1.find,RF=!0;"find"in[]&&Array(1).find(function(){RF=!1}),hu({target:"Array",proto:!0,forced:RF},{find:function(t){return Oht(this,t,arguments.length>1?arguments[1]:void 0)}}),wC[bC].find=!0;var b5=Function.prototype,LF=b5.apply,Aht=b5.bind,MF=b5.call,B$=typeof Reflect=="object"&&Reflect.apply||(Aht?MF.bind(LF):function(){return MF.apply(LF,arguments)}),Tht=Co("species"),uE=RegExp.prototype,P$=function(t,e,r,n){var o=Co(t),a=!Ar(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),i=a&&!Ar(function(){var l=!1,c=/a/;return t==="split"&&((c={}).constructor={},c.constructor[Tht]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!a||!i||r){var u=oe(/./[o]),s=e(o,""[t],function(l,c,f,d,p){var m=oe(l),h=c.exec;return h===nh||h===uE.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(uE,o,s[1])}n&&Mc(uE[o],"sham",!0)},Bht=Co("match"),Pht=qt.TypeError,Fht=Co("species"),kht=oe("".charAt),VF=oe("".charCodeAt),Nht=oe("".slice),Iht=function(t){return function(e,r){var n,o,a=nn(pu(e)),i=N1(r),u=a.length;return i<0||i>=u?t?"":void 0:(n=VF(a,i))<55296||n>56319||i+1===u||(o=VF(a,i+1))<56320||o>57343?t?kht(a,i):n:t?Nht(a,i,i+2):o-56320+(n-55296<<10)+65536}},jht=Iht(!0),F$=function(t,e,r){return e+(r?jht(t,e).length:1)},Rht=qt.Array,Lht=Math.max,$F=function(t,e,r){for(var n=I1(t),o=rh(e,n),a=rh(r===void 0?n:r,n),i=Rht(Lht(a-o,0)),u=0;o<a;o++,u++)O$(i,u,t[o]);return i.length=u,i},Mht=qt.TypeError,EC=function(t,e){var r=t.exec;if(ln(r)){var n=Fr(r,t,e);return n!==null&&ho(n),n}if(Xa(t)==="RegExp")return Fr(nh,t,e);throw Mht("RegExp#exec called on incompatible receiver")},Pl=w$.UNSUPPORTED_Y,Vht=Math.min,k$=[].push,$ht=oe(/./.exec),Fl=oe(k$),md=oe("".slice);P$("split",function(t,e,r){var n;return n="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=nn(pu(this)),l=a===void 0?4294967295:a>>>0;if(l===0)return[];if(o===void 0)return[s];if(!ai(i=o)||!((u=i[Bht])!==void 0?u:Xa(i)=="RegExp"))return Fr(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=Fr(nh,v,s))&&!((f=v.lastIndex)>h&&(Fl(p,md(s,h,c.index)),c.length>1&&c.index<s.length&&B$(k$,p,$F(c,1)),d=c[0].length,h=f,p.length>=l));)v.lastIndex===c.index&&v.lastIndex++;return h===s.length?!d&&$ht(v,"")||Fl(p,""):Fl(p,md(s,h)),p.length>l?$F(p,0,l):p}:"0".split(void 0,0).length?function(o,a){return o===void 0&&a===0?[]:Fr(e,this,o,a)}:e,[function(o,a){var i=pu(this),u=o==null?void 0:n5(o,t);return u?Fr(u,o,i,a):Fr(n,nn(i),o,a)},function(o,a){var i=ho(this),u=nn(o),s=r(n,i,u,a,n!==e);if(s.done)return s.value;var l=function(E,x){var S,C=ho(E).constructor;return C===void 0||(S=ho(C)[Fht])==null?x:function(T){if(m5(T))return T;throw Pht(c$(T)+" is not a constructor")}(S)}(i,RegExp),c=i.unicode,f=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(Pl?"g":"y"),d=new l(Pl?"^(?:"+i.source+")":i,f),p=a===void 0?4294967295:a>>>0;if(p===0)return[];if(u.length===0)return EC(d,u)===null?[u]:[];for(var m=0,h=0,v=[];h<u.length;){d.lastIndex=Pl?0:h;var y,g=EC(d,Pl?md(u,h):u);if(g===null||(y=Vht(d5(d.lastIndex+(Pl?h:0)),u.length))===m)h=F$(u,h,c);else{if(Fl(v,md(u,m,h)),v.length===p)return v;for(var b=1;b<=g.length-1;b++)if(Fl(v,g[b]),v.length===p)return v;h=m=y}}return Fl(v,md(u,m)),v}]},!!Ar(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return r.length!==2||r[0]!=="a"||r[1]!=="b"}),Pl);var SC=`
|
|
135
|
+
\v\f\r \u2028\u2029\uFEFF`,zF=oe("".replace),ay="["+SC+"]",zht=RegExp("^"+ay+ay+"*"),Hht=RegExp(ay+ay+"*$"),Uht=function(t){return function(e){var r=nn(pu(e));return 1&t&&(r=zF(r,zht,"")),2&t&&(r=zF(r,Hht,"")),r}},_ht={trim:Uht(3)},Ght=f5.PROPER,Wht=_ht.trim;function N$(t){return t.length?t[0].tagName.toLowerCase():""}hu({target:"String",proto:!0,forced:function(t){return Ar(function(){return!!SC[t]()||"
"[t]()!=="
"||Ght&&SC[t].name!==t})}("trim")},{trim:function(){return Wht(this)}}),hu({global:!0},{globalThis:qt}),yo&&(F.fn.append=yo),mi&&(F.fn.on=mi),au&&(F.fn.focus=au),mo&&(F.fn.attr=mo),vi&&(F.fn.val=vi),iu&&(F.fn.html=iu),Sc&&(F.fn.dataset=Sc),bc&&(F.fn.addClass=bc),wc&&(F.fn.removeClass=wc),Oc&&(F.fn.children=Oc),lm&&(F.fn.each=lm),Dc&&(F.fn.find=Dc);var oh=!1,I$=0,j$=0,ih=null,ah=null,yp=F("body");function R$(t){oh=!1,ah=null,ih=null,yp.off("mousemove",L$),yp.off("mouseup",R$)}yp.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(),oh=!0;var r=t.clientX;I$=r;var n=e.getBoundingClientRect().width;j$=n,yp.on("mousemove",L$),yp.on("mouseup",R$)}});var L$=Is(function(t){if(oh&&ah!=null&&ih!=null){t.preventDefault();var e=t.clientX,r=j$+(e-I$);(r=Math.floor(100*r)/100)<30&&(r=30),U.setNodes(ah,{width:r.toString()},{at:ih})}},100),Kht={type:"table",renderElem:function(t,e,r){var n=function(u,s){if(u.isDisabled())return!1;var l=u.selection;if(l==null||Q.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)))}(r,t),o=t.width,a=o===void 0?"auto":o,i=Rt("div",{className:"table-container","data-selected":P.isNodeSelected(r,t),on:{mousedown:function(u){if(u.target.tagName==="DIV"&&u.preventDefault(),!r.isDisabled()){var s=P.findPath(r,t),l=D.start(r,s),c=r.selection;c!=null?c.anchor.path[0]!==s[0]&&r.select(l):r.select(l)}}}},Rt("table",{width:a,contentEditable:n},Rt("colgroup",null,R1(t).map(function(u){var s=u.width;return Rt("col",{width:s===void 0?"auto":s})})),Rt("tbody",null,e)));return i}},Yht={type:"table-row",renderElem:function(t,e,r){return Rt("tr",null,e)}},Xht={type:"table-cell",renderElem:function(t,e,r){var n=function(d,p){var m=P.getParentNode(d,p);if(m==null)return!1;var h=P.getParentNode(d,m);return h!=null&&R1(h).some(function(v){return v===p})}(r,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(!n)return Rt("td",{colSpan:i,rowSpan:s},e);var f=Rt(c?"th":"td",{colSpan:i,rowSpan:s,style:{borderRightWidth:"3px"},on:{mousemove:Is(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,b=d.clientX,E=d.clientY;oh||(b>h+v-5&&b<h+v&&E>y&&E<y+g?(p.style.cursor="col-resize",ah=r,ih=P.findPath(r,t)):oh||(p.style.cursor="auto",ah=null,ih=null))}},100)}},e);return f}},Zht={selector:"table",preParseHtml:function(t){var e=F(t);if(N$(e)!=="table")return t;var r=e.find("tbody");if(r.length===0)return t;var n=e.find("tr");return e.append(n),r.remove(),e[0]}},Jht=j1.filter;hu({target:"Array",proto:!0,forced:!y5("filter")},{filter:function(t){return Jht(this,t,arguments.length>1?arguments[1]:void 0)}});var Qht=Math.floor,sE=oe("".charAt),qht=oe("".replace),lE=oe("".slice),tgt=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,egt=/\$([$&'`]|\d{1,2})/g,rgt=function(t,e,r,n,o,a){var i=r+t.length,u=n.length,s=egt;return o!==void 0&&(o=a5(o),s=tgt),qht(a,s,function(l,c){var f;switch(sE(c,0)){case"$":return"$";case"&":return t;case"`":return lE(e,0,r);case"'":return lE(e,i);case"<":f=o[lE(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=Qht(d/10);return p===0?l:p<=u?n[p-1]===void 0?sE(c,1):n[p-1]+sE(c,1):l}f=n[d-1]}return f===void 0?"":f})},xC=Co("replace"),ngt=Math.max,ogt=Math.min,igt=oe([].concat),cE=oe([].push),HF=oe("".indexOf),UF=oe("".slice),agt="a".replace(/./,"$0")==="$0",_F=!!/./[xC]&&/./[xC]("a","$0")==="";P$("replace",function(t,e,r){var n=_F?"$":"$0";return[function(o,a){var i=pu(this),u=o==null?void 0:n5(o,xC);return u?Fr(u,o,i,a):Fr(e,nn(i),o,a)},function(o,a){var i=ho(this),u=nn(o);if(typeof a=="string"&&HF(a,n)===-1&&HF(a,"$<")===-1){var s=r(e,i,u,a);if(s.done)return s.value}var l=ln(a);l||(a=nn(a));var c=i.global;if(c){var f=i.unicode;i.lastIndex=0}for(var d=[];;){var p=EC(i,u);if(p===null||(cE(d,p),!c))break;nn(p[0])===""&&(i.lastIndex=F$(u,d5(i.lastIndex),f))}for(var m,h="",v=0,y=0;y<d.length;y++){for(var g=nn((p=d[y])[0]),b=ngt(ogt(N1(p.index),u.length),0),E=[],x=1;x<p.length;x++)cE(E,(m=p[x])===void 0?m:String(m));var S=p.groups;if(l){var C=igt([g],E,b,u);S!==void 0&&cE(C,S);var T=nn(B$(a,void 0,C))}else T=rgt(g,u,b,E,S,a);b>=v&&(h+=UF(u,v,b)+T,v=b+g.length)}return h+UF(u,v)}]},!!Ar(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!agt||_F);var ugt={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(t,e,r){var n=F(t);(e=e.filter(function(u){return!!vt.isText(u)||!!r.isInline(u)})).length===0&&(e=[{text:n.text().replace(/\s+/gm," ")}]);var o=parseInt(n.attr("colSpan")||"1"),a=parseInt(n.attr("rowSpan")||"1"),i=n.attr("width")||"auto";return{type:"table-cell",isHeader:N$(n)==="th",colSpan:o,rowSpan:a,width:i,children:e}}},sgt={selector:"tr:not([data-w-e-type])",parseElemHtml:function(t,e,r){return{type:"table-row",children:e.filter(function(n){return P.getNodeType(n)==="table-cell"})}}},lgt={selector:"table:not([data-w-e-type])",parseElemHtml:function(t,e,r){var n=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}(n)==="100%"&&(o="100%"),n.attr("width")==="100%"&&(o="100%"),{type:"table",width:o,children:e.filter(function(a){return P.getNodeType(a)==="table-row"})}}},cgt=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,r){},t.prototype.isDisabled=function(e){var r=e.selection;return r==null||!Q.isCollapsed(r)||!!P.getSelectedElems(e).some(function(n){var o=P.getNodeType(n);return o==="pre"||o==="table"||o==="list-item"||!!e.isVoid(n)})},t.prototype.getPanelContentElem=function(e){var r=this;if(this.$content)return this.$content[0];for(var n=F('<div class="w-e-panel-content-table"></div>'),o=F("<span>0 × 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+" × "+(m+1),a.children().each(function(h){F(h).children().each(function(v){var y=F(v),g=y.dataset(),b=g.x,E=g.y;b<=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;r.insertTable(e,m+1,p+1)}})}a.append(u)}return n.append(a),n.append(o),this.$content=n,n[0]},t.prototype.insertTable=function(e,r,n){var o=parseInt(r,10),a=parseInt(n,10);if(o&&a&&!(o<=0||a<=0)){P.isSelectedEmptyParagraph(e)&&U.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);U.insertNodes(e,i,{mode:"highest"})}},t}(),fgt=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,r){this.isDisabled(e)||U.removeNodes(e,{mode:"highest"})},t}(),dgt=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 r=e.selection;return r==null||!Q.isCollapsed(r)||P.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,r){if(!this.isDisabled(e)){var n=Ho(D.nodes(e,{match:function(p){return P.checkNodeType(p,"table-cell")},universal:!0}),1),o=Ho(n[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);U.insertNodes(e,l,{at:d})}}},t}(),pgt=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 r=e.selection;return r==null||!Q.isCollapsed(r)||P.getSelectedNodeByType(e,"table-row")==null},t.prototype.exec=function(e,r){if(!this.isDisabled(e)){var n=Ho(D.nodes(e,{match:function(s){return P.checkNodeType(s,"table-row")},universal:!0}),1),o=Ho(n[0],2),a=o[0],i=o[1],u=P.getParentNode(e,a);((u==null?void 0:u.children.length)||0)<=1?U.removeNodes(e,{mode:"highest"}):U.removeNodes(e,{at:i})}},t}(),GF={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},fE=s5("span").classList,WF=fE&&fE.constructor&&fE.constructor.prototype,hgt=WF===Object.prototype?void 0:WF,ggt=j1.forEach,vgt=function(t,e){var r=[].forEach;return!!r&&Ar(function(){r.call(null,function(){throw 1},1)})}(),dE=vgt?[].forEach:function(t){return ggt(this,t,arguments.length>1?arguments[1]:void 0)},M$=function(t){if(t&&t.forEach!==dE)try{Mc(t,"forEach",dE)}catch{t.forEach=dE}};for(var pE in GF)GF[pE]&&M$(qt[pE]&&qt[pE].prototype);M$(hgt);var mgt=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 r=e.selection;return r==null||!Q.isCollapsed(r)||P.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,r){if(!this.isDisabled(e)){var n=Ho(D.nodes(e,{match:function(l){return P.checkNodeType(l,"table-cell")},universal:!0}),1),o=Ho(n[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&&i$(d.slice(-1),i.slice(-1))){var p={type:"table-cell",children:[{text:""}]};c===0&&A$(s)&&(p.isHeader=!0),U.insertNodes(e,p,{at:d})}})})}}},t}(),ygt=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 r=e.selection;return r==null||!Q.isCollapsed(r)||P.getSelectedNodeByType(e,"table-cell")==null},t.prototype.exec=function(e,r){if(!this.isDisabled(e)){var n=Ho(D.nodes(e,{match:function(c){return P.checkNodeType(c,"table-cell")},universal:!0}),1),o=Ho(n[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)U.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&&i$(d.slice(-1),i.slice(-1))&&U.removeNodes(e,{at:d})})})}}},t}(),bgt=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 r=P.getSelectedNodeByType(e,"table");return r!=null&&A$(r)},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(e){var r=e.selection;return r==null||!Q.isCollapsed(r)||P.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,r){if(!this.isDisabled(e)){var n=!r,o=P.getSelectedNodeByType(e,"table");o!=null&&R1(o).forEach(function(a){return U.setNodes(e,{isHeader:n},{at:P.findPath(e,a)})})}},t}(),wgt=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 r=P.getSelectedNodeByType(e,"table");return r!=null&&r.width==="100%"},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(e){var r=e.selection;return r==null||!Q.isCollapsed(r)||P.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,r){if(!this.isDisabled(e)){var n={width:r?"auto":"100%"};U.setNodes(e,n,{mode:"highest"})}},t}(),Egt={renderElems:[Kht,Yht,Xht],elemsToHtml:[{type:"table",elemToHtml:function(t,e){var r=t.width;return'<table style="width: '+(r===void 0?"auto":r)+';"><tbody>'+e+"</tbody></table>"}},{type:"table-row",elemToHtml:function(t,e){return"<tr>"+e+"</tr>"}},{type:"table-cell",elemToHtml:function(t,e){var r=t,n=r.colSpan,o=n===void 0?1:n,a=r.rowSpan,i=a===void 0?1:a,u=r.isHeader,s=u!==void 0&&u,l=r.width,c=s?"th":"td";return"<"+c+' colSpan="'+o+'" rowSpan="'+i+'" width="'+(l===void 0?"auto":l)+'">'+e+"</"+c+">"}}],preParseHtml:[Zht],parseElemsHtml:[ugt,sgt,lgt],menus:[{key:"insertTable",factory:function(){return new cgt}},{key:"deleteTable",factory:function(){return new fgt}},{key:"insertTableRow",factory:function(){return new dgt}},{key:"deleteTableRow",factory:function(){return new pgt}},{key:"insertTableCol",factory:function(){return new mgt}},{key:"deleteTableCol",factory:function(){return new ygt}},{key:"tableHeader",factory:function(){return new bgt}},{key:"tableFullWidth",factory:function(){return new wgt}}],editorPlugin:function(t){var e=t.insertBreak,r=t.deleteBackward,n=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(!FF(s)){var c=s.selection;if(c){var f=D.before(s,c);if(f){var d=kF(s,f),p=kF(s,c);if(d&&!p)return}}r(l)}},s.handleTab=function(){var l;if(P.getSelectedNodeByType(s,"table")){var c=D.above(t);P.checkNodeType(c[0],"table-cell")&&U.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),U.select(t,f[1]);else{var d=s.children||[],p=d.length;if(P.checkNodeType(d[p-1],"table")){var m=P.genEmptyParagraph();U.insertNodes(s,m,{at:[p]}),s.handleTab()}}}else i()},s.deleteForward=function(l){FF(s)||n(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();U.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}};Pn("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"}}),Pn("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 uy=function(){return uy=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},uy.apply(this,arguments)};function L1(t,e,r,n){return new(r||(r=Promise))(function(o,a){function i(l){try{s(n.next(l))}catch(c){a(c)}}function u(l){try{s(n.throw(l))}catch(c){a(c)}}function s(l){var c;l.done?o(l.value):(c=l.value,c instanceof r?c:new r(function(f){f(c)})).then(i,u)}s((n=n.apply(t,[])).next())})}function M1(t,e){var r,n,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(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=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++,n=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],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([s,l])}}}function Cs(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n,o,a=r.call(t),i=[];try{for(;(e===void 0||e-- >0)&&!(n=a.next()).done;)i.push(n.value)}catch(u){o={error:u}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return i}function Sgt(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,r=t[Symbol.asyncIterator];return r?r.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={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(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 KF=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function w5(t){var e={exports:{}};return t(e,e.exports),e.exports}var ba,m0,xv=function(t){return t&&t.Math==Math&&t},ft=xv(typeof globalThis=="object"&&globalThis)||xv(typeof window=="object"&&window)||xv(typeof self=="object"&&self)||xv(typeof KF=="object"&&KF)||function(){return this}()||Function("return this")(),Re=function(t){try{return!!t()}catch{return!0}},bi=!Re(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),yd=Function.prototype.call,je=yd.bind?yd.bind(yd):function(){return yd.apply(yd,arguments)},YF={}.propertyIsEnumerable,XF=Object.getOwnPropertyDescriptor,xgt={f:XF&&!YF.call({1:2},1)?function(t){var e=XF(this,t);return!!e&&e.enumerable}:YF},V1=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},V$=Function.prototype,CC=V$.bind,DC=V$.call,Cgt=CC&&CC.bind(DC),Ht=CC?function(t){return t&&Cgt(DC,t)}:function(t){return t&&function(){return DC.apply(t,arguments)}},Dgt=Ht({}.toString),Ogt=Ht("".slice),di=function(t){return Ogt(Dgt(t),8,-1)},hE=ft.Object,Agt=Ht("".split),E5=Re(function(){return!hE("z").propertyIsEnumerable(0)})?function(t){return di(t)=="String"?Agt(t,""):hE(t)}:hE,Tgt=ft.TypeError,cg=function(t){if(t==null)throw Tgt("Can't call method on "+t);return t},Su=function(t){return E5(cg(t))},Te=function(t){return typeof t=="function"},_e=function(t){return typeof t=="object"?t!==null:Te(t)},Bgt=function(t){return Te(t)?t:void 0},_s=function(t,e){return arguments.length<2?Bgt(ft[t]):ft[t]&&ft[t][e]},uh=Ht({}.isPrototypeOf),lc=_s("navigator","userAgent")||"",ZF=ft.process,JF=ft.Deno,QF=ZF&&ZF.versions||JF&&JF.version,qF=QF&&QF.v8;qF&&(m0=(ba=qF.split("."))[0]>0&&ba[0]<4?1:+(ba[0]+ba[1])),!m0&&lc&&(!(ba=lc.match(/Edge\/(\d+)/))||ba[1]>=74)&&(ba=lc.match(/Chrome\/(\d+)/))&&(m0=+ba[1]);var sh=m0,OC=!!Object.getOwnPropertySymbols&&!Re(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&sh&&sh<41}),S5=OC&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Pgt=ft.Object,gE=S5?function(t){return typeof t=="symbol"}:function(t){var e=_s("Symbol");return Te(e)&&uh(e.prototype,Pgt(t))},Fgt=ft.String,sy=function(t){try{return Fgt(t)}catch{return"Object"}},kgt=ft.TypeError,gu=function(t){if(Te(t))return t;throw kgt(sy(t)+" is not a function")},lh=function(t,e){var r=t[e];return r==null?void 0:gu(r)},Ngt=ft.TypeError,Igt=Object.defineProperty,x5=function(t,e){try{Igt(ft,t,{value:e,configurable:!0,writable:!0})}catch{ft[t]=e}return e},Ja=ft["__core-js_shared__"]||x5("__core-js_shared__",{}),C5=w5(function(t){(t.exports=function(e,r){return Ja[e]||(Ja[e]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),jgt=ft.Object,$1=function(t){return jgt(cg(t))},Rgt=Ht({}.hasOwnProperty),Dr=Object.hasOwn||function(t,e){return Rgt($1(t),e)},Lgt=0,Mgt=Math.random(),Vgt=Ht(1 .toString),D5=function(t){return"Symbol("+(t===void 0?"":t)+")_"+Vgt(++Lgt+Mgt,36)},bd=C5("wks"),Ds=ft.Symbol,tk=Ds&&Ds.for,$gt=S5?Ds:Ds&&Ds.withoutSetter||D5,vr=function(t){if(!Dr(bd,t)||!OC&&typeof bd[t]!="string"){var e="Symbol."+t;OC&&Dr(Ds,t)?bd[t]=Ds[t]:bd[t]=S5&&tk?tk(e):$gt(e)}return bd[t]},zgt=ft.TypeError,Hgt=vr("toPrimitive"),O5=function(t){var e=function(r,n){if(!_e(r)||gE(r))return r;var o,a=lh(r,Hgt);if(a){if(o=je(a,r,n),!_e(o)||gE(o))return o;throw zgt("Can't convert object to primitive value")}return function(i,u){var s,l;if(Te(s=i.toString)&&!_e(l=je(s,i))||Te(s=i.valueOf)&&!_e(l=je(s,i)))return l;throw Ngt("Can't convert object to primitive value")}(r)}(t,"string");return gE(e)?e:e+""},AC=ft.document,Ugt=_e(AC)&&_e(AC.createElement),ch=function(t){return Ugt?AC.createElement(t):{}},$$=!bi&&!Re(function(){return Object.defineProperty(ch("div"),"a",{get:function(){return 7}}).a!=7}),ek=Object.getOwnPropertyDescriptor,A5={f:bi?ek:function(t,e){if(t=Su(t),e=O5(e),$$)try{return ek(t,e)}catch{}if(Dr(t,e))return V1(!je(xgt.f,t,e),t[e])}},_gt=ft.String,Ggt=ft.TypeError,zr=function(t){if(_e(t))return t;throw Ggt(_gt(t)+" is not an object")},Wgt=ft.TypeError,rk=Object.defineProperty,ea={f:bi?rk:function(t,e,r){if(zr(t),e=O5(e),zr(r),$$)try{return rk(t,e,r)}catch{}if("get"in r||"set"in r)throw Wgt("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},Qa=bi?function(t,e,r){return ea.f(t,e,V1(1,r))}:function(t,e,r){return t[e]=r,t},Kgt=Ht(Function.toString);Te(Ja.inspectSource)||(Ja.inspectSource=function(t){return Kgt(t)});var ly,bp,cy,z1=Ja.inspectSource,nk=ft.WeakMap,z$=Te(nk)&&/native code/.test(z1(nk)),ok=C5("keys"),T5=function(t){return ok[t]||(ok[t]=D5(t))},H1={},TC=ft.TypeError,Ygt=ft.WeakMap;if(z$||Ja.state){var Vu=Ja.state||(Ja.state=new Ygt),Xgt=Ht(Vu.get),ik=Ht(Vu.has),Zgt=Ht(Vu.set);ly=function(t,e){if(ik(Vu,t))throw new TC("Object already initialized");return e.facade=t,Zgt(Vu,t,e),e},bp=function(t){return Xgt(Vu,t)||{}},cy=function(t){return ik(Vu,t)}}else{var kl=T5("state");H1[kl]=!0,ly=function(t,e){if(Dr(t,kl))throw new TC("Object already initialized");return e.facade=t,Qa(t,kl,e),e},bp=function(t){return Dr(t,kl)?t[kl]:{}},cy=function(t){return Dr(t,kl)}}var Jn={set:ly,get:bp,has:cy,enforce:function(t){return cy(t)?bp(t):ly(t,{})},getterFor:function(t){return function(e){var r;if(!_e(e)||(r=bp(e)).type!==t)throw TC("Incompatible receiver, "+t+" required");return r}}},H$=Function.prototype,Jgt=bi&&Object.getOwnPropertyDescriptor,vE=Dr(H$,"name"),ff={EXISTS:vE,PROPER:vE&&(function(){}).name==="something",CONFIGURABLE:vE&&(!bi||bi&&Jgt(H$,"name").configurable)},So=w5(function(t){var e=ff.CONFIGURABLE,r=Jn.get,n=Jn.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;Te(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Dr(u,"name")||e&&u.name!==p)&&Qa(u,"name",p),(l=n(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:Qa(a,i,u)):f?a[i]=u:x5(i,u)})(Function.prototype,"toString",function(){return Te(this)&&r(this).source||z1(this)})}),Qgt=Math.ceil,qgt=Math.floor,U1=function(t){var e=+t;return e!=e||e===0?0:(e>0?qgt:Qgt)(e)},tvt=Math.max,evt=Math.min,fh=function(t,e){var r=U1(t);return r<0?tvt(r+e,0):evt(r,e)},rvt=Math.min,U$=function(t){return t>0?rvt(U1(t),9007199254740991):0},fg=function(t){return U$(t.length)},ak=function(t){return function(e,r,n){var o,a=Su(e),i=fg(a),u=fh(n,i);if(t&&r!=r){for(;i>u;)if((o=a[u++])!=o)return!0}else for(;i>u;u++)if((t||u in a)&&a[u]===r)return t||u||0;return!t&&-1}},_$={includes:ak(!0),indexOf:ak(!1)},nvt=_$.indexOf,uk=Ht([].push),G$=function(t,e){var r,n=Su(t),o=0,a=[];for(r in n)!Dr(H1,r)&&Dr(n,r)&&uk(a,r);for(;e.length>o;)Dr(n,r=e[o++])&&(~nvt(a,r)||uk(a,r));return a},fy=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ovt=fy.concat("length","prototype"),dy={f:Object.getOwnPropertyNames||function(t){return G$(t,ovt)}},ivt={f:Object.getOwnPropertySymbols},avt=Ht([].concat),uvt=_s("Reflect","ownKeys")||function(t){var e=dy.f(zr(t)),r=ivt.f;return r?avt(e,r(t)):e},svt=function(t,e){for(var r=uvt(e),n=ea.f,o=A5.f,a=0;a<r.length;a++){var i=r[a];Dr(t,i)||n(t,i,o(e,i))}},lvt=/#|\.prototype\./,dg=function(t,e){var r=fvt[cvt(t)];return r==pvt||r!=dvt&&(Te(e)?Re(e):!!e)},cvt=dg.normalize=function(t){return String(t).replace(lvt,".").toLowerCase()},fvt=dg.data={},dvt=dg.NATIVE="N",pvt=dg.POLYFILL="P",py=dg,hvt=A5.f,Cn=function(t,e){var r,n,o,a,i,u=t.target,s=t.global,l=t.stat;if(r=s?ft:l?ft[u]||x5(u,{}):(ft[u]||{}).prototype)for(n in e){if(a=e[n],o=t.noTargetGet?(i=hvt(r,n))&&i.value:r[n],!py(s?n:u+(l?".":"#")+n,t.forced)&&o!==void 0){if(typeof a==typeof o)continue;svt(a,o)}(t.sham||o&&o.sham)&&Qa(a,"sham",!0),So(r,n,a,t)}},W$={};W$[vr("toStringTag")]="z";var B5=String(W$)==="[object z]",gvt=vr("toStringTag"),vvt=ft.Object,mvt=di(function(){return arguments}())=="Arguments",_1=B5?di:function(t){var e,r,n;return t===void 0?"Undefined":t===null?"Null":typeof(r=function(o,a){try{return o[a]}catch{}}(e=vvt(t),gvt))=="string"?r:mvt?di(e):(n=di(e))=="Object"&&Te(e.callee)?"Arguments":n},yvt=ft.String,uo=function(t){if(_1(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return yvt(t)},BC=`
|
|
151
|
+
\v\f\r \u2028\u2029\uFEFF`,sk=Ht("".replace),hy="["+BC+"]",bvt=RegExp("^"+hy+hy+"*"),wvt=RegExp(hy+hy+"*$"),Evt=function(t){return function(e){var r=uo(cg(e));return 1&t&&(r=sk(r,bvt,"")),2&t&&(r=sk(r,wvt,"")),r}},Svt={trim:Evt(3)},xvt=ff.PROPER,Cvt=Svt.trim;function lk(t){return t.length?t[0].tagName.toLowerCase():""}function K$(t,e,r){e===void 0&&(e="auto"),r===void 0&&(r="auto");var n=F(t);return n.attr("width",e),n.attr("height",r),n[0].outerHTML}Cn({target:"String",proto:!0,forced:Re(function(){return!!BC.trim()||"
".trim()!=="
"||xvt&&BC.trim.name!=="trim"})},{trim:function(){return Cvt(this)}}),Cn({global:!0},{globalThis:ft}),yo&&(F.fn.append=yo),mi&&(F.fn.on=mi),au&&(F.fn.focus=au),mo&&(F.fn.attr=mo),vi&&(F.fn.val=vi),iu&&(F.fn.html=iu),Cc&&(F.fn.parent=Cc),Ec&&(F.fn.hasClass=Ec),Tc&&(F.fn.empty=Tc);var Cv,Dvt={type:"video",renderElem:function(t,e,r){var n,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(r,t);if(i.trim().indexOf("<iframe ")===0)n=Rt("div",{className:"w-e-textarea-video-container","data-selected":p?"true":"",innerHTML:K$(i,c,d)});else{var m=Rt("video",{poster:s,controls:!0},Rt("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),n=Rt("div",{className:"w-e-textarea-video-container","data-selected":p?"true":""},m)}return Bc("div",{props:{contentEditable:!1},on:{mousedown:function(h){return h.preventDefault()}}},n)}},Ovt={type:"video",elemToHtml:function(t,e){var r=t,n=r.src,o=n===void 0?"":n,a=r.poster,i=a===void 0?"":a,u=r.width,s=u===void 0?"auto":u,l=r.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+=K$(o,s,c):f+='<video poster="'+i+'" controls="true" width="'+s+'" height="'+c+'"><source src="'+o+'" type="video/mp4"/></video>',f+`
|
|
154
|
+
</div>`}},Avt=Object.keys||function(t){return G$(t,fy)},Tvt=bi?Object.defineProperties:function(t,e){zr(t);for(var r,n=Su(e),o=Avt(e),a=o.length,i=0;a>i;)ea.f(t,r=o[i++],n[r]);return t},PC=_s("document","documentElement"),Y$=T5("IE_PROTO"),mE=function(){},X$=function(t){return"<script>"+t+"<\/script>"},ck=function(t){t.write(X$("")),t.close();var e=t.parentWindow.Object;return t=null,e},y0=function(){try{Cv=new ActiveXObject("htmlfile")}catch{}var t,e;y0=typeof document<"u"?document.domain&&Cv?ck(Cv):((e=ch("iframe")).style.display="none",PC.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(X$("document.F=Object")),t.close(),t.F):ck(Cv);for(var r=fy.length;r--;)delete y0.prototype[fy[r]];return y0()};H1[Y$]=!0;var P5=Object.create||function(t,e){var r;return t!==null?(mE.prototype=zr(t),r=new mE,mE.prototype=null,r[Y$]=t):r=y0(),e===void 0?r:Tvt(r,e)},FC=vr("unscopables"),kC=Array.prototype;kC[FC]==null&&ea.f(kC,FC,{configurable:!0,value:P5(null)});var wp=function(t){kC[FC][t]=!0},Bvt=_$.includes;Cn({target:"Array",proto:!0},{includes:function(t){return Bvt(this,t,arguments.length>1?arguments[1]:void 0)}}),wp("includes");var Pvt={selector:"iframe,video,p",preParseHtml:function(t){var e=F(t),r=e;if(lk(e)==="p"){var n=e.children();if(n.length===1){var o=n[0],a=o.tagName.toLowerCase();["iframe","video"].includes(a)&&(r=F(o))}}var i=lk(r);if(i!=="iframe"&&i!=="video"||r.parent().attr("data-w-e-type")==="video")return r[0];var u=F('<div data-w-e-type="video" data-w-e-is-void></div>');return u.append(r),u[0]}},fk=Ht(Ht.bind),dh=function(t,e){return gu(t),e===void 0?t:fk?fk(t,e):function(){return t.apply(e,arguments)}},gy=Array.isArray||function(t){return di(t)=="Array"},Z$=function(){},Fvt=[],J$=_s("Reflect","construct"),F5=/^\s*(?:class|function)\b/,kvt=Ht(F5.exec),Nvt=!F5.exec(Z$),wd=function(t){if(!Te(t))return!1;try{return J$(Z$,Fvt,t),!0}catch{return!1}},k5=!J$||Re(function(){var t;return wd(wd.call)||!wd(Object)||!wd(function(){t=!0})||t})?function(t){if(!Te(t))return!1;switch(_1(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Nvt||!!kvt(F5,z1(t))}:wd,Ivt=vr("species"),dk=ft.Array,jvt=function(t,e){return new(function(r){var n;return gy(r)&&(n=r.constructor,(k5(n)&&(n===dk||gy(n.prototype))||_e(n)&&(n=n[Ivt])===null)&&(n=void 0)),n===void 0?dk:n}(t))(e===0?0:e)},pk=Ht([].push),hk=function(t){var e=t==1,r=t==2,n=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=$1(s),h=E5(m),v=dh(l,c),y=fg(h),g=0,b=f||jvt,E=e?b(s,y):r||i?b(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:pk(E,d)}else switch(t){case 4:return!1;case 7:pk(E,d)}return a?-1:n||o?o:E}},N5={find:hk(5),findIndex:hk(6)},Rvt=N5.find,gk=!0;"find"in[]&&Array(1).find(function(){gk=!1}),Cn({target:"Array",proto:!0,forced:gk},{find:function(t){return Rvt(this,t,arguments.length>1?arguments[1]:void 0)}}),wp("find");var Lvt=B5?{}.toString:function(){return"[object "+_1(this)+"]"};function vk(t,e,r,n){return e===void 0&&(e=""),r===void 0&&(r="auto"),n===void 0&&(n="auto"),{type:"video",src:t,poster:e,width:r,height:n,children:[{text:""}]}}B5||So(Object.prototype,"toString",Lvt,{unsafe:!0});var mk,yE,Mvt={selector:'div[data-w-e-type="video"]',parseElemHtml:function(t,e,r){var n=F(t),o="",a="",i="auto",u="auto",s=n.find("iframe");if(s.length>0)return i=s.attr("width")||"auto",u=s.attr("height")||"auto",vk(o=s[0].outerHTML,a,i,u);var l=n.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",vk(o,a=l.attr("poster")||"",i,u)}},Q$=function(){var t=zr(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},I5=ft.RegExp,q$=Re(function(){var t=I5("a","y");return t.lastIndex=2,t.exec("abcd")!=null});q$||Re(function(){return!I5("a","y").sticky});var Vvt={BROKEN_CARET:q$||Re(function(){var t=I5("^r","gy");return t.lastIndex=2,t.exec("str")!=null})},$vt=ft.RegExp,zvt=Re(function(){var t=$vt(".","s");return!(t.dotAll&&t.exec(`
|
|
155
|
+
`)&&t.flags==="s")}),Hvt=ft.RegExp,Uvt=Re(function(){var t=Hvt("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),_vt=Jn.get,Gvt=C5("native-string-replace",String.prototype.replace),vy=RegExp.prototype.exec,NC=vy,Wvt=Ht("".charAt),Kvt=Ht("".indexOf),Yvt=Ht("".replace),bE=Ht("".slice),wE=(yE=/b*/g,je(vy,mk=/a/,"a"),je(vy,yE,"a"),mk.lastIndex!==0||yE.lastIndex!==0),yk=Vvt.BROKEN_CARET,EE=/()??/.exec("")[1]!==void 0;(wE||EE||yk||zvt||Uvt)&&(NC=function(t){var e,r,n,o,a,i,u,s=this,l=_vt(s),c=uo(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=je(NC,f,c),s.lastIndex=f.lastIndex,e;var d=l.groups,p=yk&&s.sticky,m=je(Q$,s),h=s.source,v=0,y=c;if(p&&(m=Yvt(m,"y",""),Kvt(m,"g")===-1&&(m+="g"),y=bE(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Wvt(c,s.lastIndex-1)!==`
|
|
156
|
+
`)&&(h="(?: "+h+")",y=" "+y,v++),r=new RegExp("^(?:"+h+")",m)),EE&&(r=new RegExp("^"+h+"$(?!\\s)",m)),wE&&(n=s.lastIndex),o=je(vy,p?r:s,y),p?o?(o.input=bE(o.input,v),o[0]=bE(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:wE&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),EE&&o&&o.length>1&&je(Gvt,o[0],r,function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(o[a]=void 0)}),o&&d)for(o.groups=i=P5(null),a=0;a<d.length;a++)i[(u=d[a])[0]]=o[u[1]];return o});var my=NC;Cn({target:"RegExp",proto:!0,forced:/./.exec!==my},{exec:my});var j5=Function.prototype,bk=j5.apply,Xvt=j5.bind,wk=j5.call,tz=typeof Reflect=="object"&&Reflect.apply||(Xvt?wk.bind(bk):function(){return wk.apply(bk,arguments)}),Ek=(vr("species"),RegExp.prototype),Zvt=Ht("".charAt),Sk=Ht("".charCodeAt),Jvt=Ht("".slice),Qvt=function(t){return function(e,r){var n,o,a=uo(cg(e)),i=U1(r),u=a.length;return i<0||i>=u?t?"":void 0:(n=Sk(a,i))<55296||n>56319||i+1===u||(o=Sk(a,i+1))<56320||o>57343?t?Zvt(a,i):n:t?Jvt(a,i,i+2):o-56320+(n-55296<<10)+65536}},ez={charAt:Qvt(!0)},qvt=ez.charAt,t0t=function(t,e,r){return e+(r?qvt(t,e).length:1)},e0t=Math.floor,SE=Ht("".charAt),r0t=Ht("".replace),xE=Ht("".slice),n0t=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,o0t=/\$([$&'`]|\d{1,2})/g,i0t=function(t,e,r,n,o,a){var i=r+t.length,u=n.length,s=o0t;return o!==void 0&&(o=$1(o),s=n0t),r0t(a,s,function(l,c){var f;switch(SE(c,0)){case"$":return"$";case"&":return t;case"`":return xE(e,0,r);case"'":return xE(e,i);case"<":f=o[xE(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=e0t(d/10);return p===0?l:p<=u?n[p-1]===void 0?SE(c,1):n[p-1]+SE(c,1):l}f=n[d-1]}return f===void 0?"":f})},a0t=ft.TypeError,u0t=function(t,e){var r=t.exec;if(Te(r)){var n=je(r,t,e);return n!==null&&zr(n),n}if(di(t)==="RegExp")return je(my,t,e);throw a0t("RegExp#exec called on incompatible receiver")},IC=vr("replace"),s0t=Math.max,l0t=Math.min,c0t=Ht([].concat),CE=Ht([].push),xk=Ht("".indexOf),Ck=Ht("".slice),f0t="a".replace(/./,"$0")==="$0",Dk=!!/./[IC]&&/./[IC]("a","$0")==="";function rz(t){return t+"-"+cR()}(function(t,e,r,n){var o=vr(t),a=!Re(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),i=a&&!Re(function(){var l=!1,c=/a/;return c.exec=function(){return l=!0,null},c[o](""),!l});if(!a||!i||r){var u=Ht(/./[o]),s=function(l,c,f){var d=Dk?"$":"$0";return[function(p,m){var h=cg(this),v=p==null?void 0:lh(p,IC);return v?je(v,p,h,m):je(c,uo(h),p,m)},function(p,m){var h=zr(this),v=uo(p);if(typeof m=="string"&&xk(m,d)===-1&&xk(m,"$<")===-1){var y=f(c,h,v,m);if(y.done)return y.value}var g=Te(m);g||(m=uo(m));var b=h.global;if(b){var E=h.unicode;h.lastIndex=0}for(var x=[];;){var S=u0t(h,v);if(S===null||(CE(x,S),!b))break;uo(S[0])===""&&(h.lastIndex=t0t(v,U$(h.lastIndex),E))}for(var C,T="",A=0,k=0;k<x.length;k++){for(var M=uo((S=x[k])[0]),$=s0t(l0t(U1(S.index),v.length),0),N=[],j=1;j<S.length;j++)CE(N,(C=S[j])===void 0?C:String(C));var _=S.groups;if(g){var V=c0t([M],N,$,v);_!==void 0&&CE(V,_);var Z=uo(tz(m,void 0,V))}else Z=i0t(M,v,$,N,_,m);$>=A&&(T+=Ck(v,A,$)+Z,A=$+M.length)}return T+Ck(v,A)}]}(0,""[t],function(l,c,f,d,p){var m=Ht(l),h=c.exec;return h===my||h===Ek.exec?a&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:m(f,c,d)}:{done:!1}});So(String.prototype,t,s[0]),So(Ek,o,s[1])}})("replace",0,!!Re(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!f0t||Dk);var yy=ft.Promise,by=function(t,e,r){for(var n in e)So(t,n,e[n],r);return t},d0t=ft.String,p0t=ft.TypeError,Vc=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Ht(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch{}return function(n,o){return zr(n),function(a){if(typeof a=="object"||Te(a))return a;throw p0t("Can't set "+d0t(a)+" as a prototype")}(o),e?t(n,o):n.__proto__=o,n}}():void 0),h0t=ea.f,Ok=vr("toStringTag"),wy=function(t,e,r){t&&!Dr(t=r?t:t.prototype,Ok)&&h0t(t,Ok,{configurable:!0,value:e})},Ak=vr("species"),g0t=ft.TypeError,R5=function(t,e){if(uh(e,t))return t;throw g0t("Incorrect invocation")},$c={},v0t=vr("iterator"),m0t=Array.prototype,y0t=vr("iterator"),Tk=function(t){if(t!=null)return lh(t,y0t)||lh(t,"@@iterator")||$c[_1(t)]},b0t=ft.TypeError,Bk=function(t,e,r){var n,o;zr(t);try{if(!(n=lh(t,"return"))){if(e==="throw")throw r;return r}n=je(n,t)}catch(a){o=!0,n=a}if(e==="throw")throw r;if(o)throw n;return zr(n),r},w0t=ft.TypeError,b0=function(t,e){this.stopped=t,this.result=e},Pk=b0.prototype,Ey=function(t,e,r){var n,o,a,i,u,s,l,c,f=r&&r.that,d=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_ITERATOR),m=!(!r||!r.INTERRUPTED),h=dh(e,f),v=function(g){return n&&Bk(n,"normal",g),new b0(!0,g)},y=function(g){return d?(zr(g),m?h(g[0],g[1],v):h(g[0],g[1])):m?h(g,v):h(g)};if(p)n=t;else{if(!(o=Tk(t)))throw w0t(sy(t)+" is not iterable");if((c=o)!==void 0&&($c.Array===c||m0t[v0t]===c)){for(a=0,i=fg(t);i>a;a++)if((u=y(t[a]))&&uh(Pk,u))return u;return new b0(!1)}n=function(g,b){var E=arguments.length<2?Tk(g):b;if(gu(E))return zr(je(E,g));throw b0t(sy(g)+" is not iterable")}(t,o)}for(s=n.next;!(l=je(s,n)).done;){try{u=y(l.value)}catch(g){Bk(n,"throw",g)}if(typeof u=="object"&&u&&uh(Pk,u))return u}return new b0(!1)},nz=vr("iterator"),oz=!1;try{var E0t=0,Fk={next:function(){return{done:!!E0t++}},return:function(){oz=!0}};Fk[nz]=function(){return this},Array.from(Fk,function(){throw 2})}catch{}var ph,Nl,kk,DE,iz=function(t,e){if(!oz)return!1;var r=!1;try{var n={};n[nz]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch{}return r},S0t=ft.TypeError,x0t=vr("species"),az=Ht([].slice),uz=/(?:ipad|iphone|ipod).*applewebkit/i.test(lc),qa=di(ft.process)=="process",jC=ft.setImmediate,Nk=ft.clearImmediate,C0t=ft.process,OE=ft.Dispatch,D0t=ft.Function,Ik=ft.MessageChannel,O0t=ft.String,AE=0,Ep={};try{ph=ft.location}catch{}var L5=function(t){if(Dr(Ep,t)){var e=Ep[t];delete Ep[t],e()}},TE=function(t){return function(){L5(t)}},jk=function(t){L5(t.data)},Rk=function(t){ft.postMessage(O0t(t),ph.protocol+"//"+ph.host)};jC&&Nk||(jC=function(t){var e=az(arguments,1);return Ep[++AE]=function(){tz(Te(t)?t:D0t(t),void 0,e)},Nl(AE),AE},Nk=function(t){delete Ep[t]},qa?Nl=function(t){C0t.nextTick(TE(t))}:OE&&OE.now?Nl=function(t){OE.now(TE(t))}:Ik&&!uz?(DE=(kk=new Ik).port2,kk.port1.onmessage=jk,Nl=dh(DE.postMessage,DE)):ft.addEventListener&&Te(ft.postMessage)&&!ft.importScripts&&ph&&ph.protocol!=="file:"&&!Re(Rk)?(Nl=Rk,ft.addEventListener("message",jk,!1)):Nl="onreadystatechange"in ch("script")?function(t){PC.appendChild(ch("script")).onreadystatechange=function(){PC.removeChild(this),L5(t)}}:function(t){setTimeout(TE(t),0)});var Ed,Qu,Sp,Kl,BE,PE,FE,Lk,sz={set:jC},A0t=/ipad|iphone|ipod/i.test(lc)&&ft.Pebble!==void 0,T0t=/web0s(?!.*chrome)/i.test(lc),B0t=A5.f,kE=sz.set,Mk=ft.MutationObserver||ft.WebKitMutationObserver,Vk=ft.document,$k=ft.process,Dv=ft.Promise,zk=B0t(ft,"queueMicrotask"),lz=zk&&zk.value;lz||(Ed=function(){var t,e;for(qa&&(t=$k.domain)&&t.exit();Qu;){e=Qu.fn,Qu=Qu.next;try{e()}catch(r){throw Qu?Kl():Sp=void 0,r}}Sp=void 0,t&&t.enter()},uz||qa||T0t||!Mk||!Vk?!A0t&&Dv&&Dv.resolve?((FE=Dv.resolve(void 0)).constructor=Dv,Lk=dh(FE.then,FE),Kl=function(){Lk(Ed)}):qa?Kl=function(){$k.nextTick(Ed)}:(kE=dh(kE,ft),Kl=function(){kE(Ed)}):(BE=!0,PE=Vk.createTextNode(""),new Mk(Ed).observe(PE,{characterData:!0}),Kl=function(){PE.data=BE=!BE}));var NE,Hk,cz,Uk,fz=lz||function(t){var e={fn:t,next:void 0};Sp&&(Sp.next=e),Qu||(Qu=e,Kl()),Sp=e},P0t=function(t){var e,r;this.promise=new t(function(n,o){if(e!==void 0||r!==void 0)throw TypeError("Bad Promise constructor");e=n,r=o}),this.resolve=gu(e),this.reject=gu(r)},M5={f:function(t){return new P0t(t)}},RC=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}},F0t=typeof window=="object",dz=sz.set,k0t=vr("species"),Li="Promise",_k=Jn.getterFor(Li),N0t=Jn.set,I0t=Jn.getterFor(Li),Wu=yy&&yy.prototype,ui=yy,Sd=Wu,pz=ft.TypeError,LC=ft.document,V5=ft.process,cc=M5.f,j0t=cc,R0t=!!(LC&&LC.createEvent&&ft.dispatchEvent),hz=Te(ft.PromiseRejectionEvent),gz=!1,xp=py(Li,function(){var t=z1(ui),e=t!==String(ui);if(!e&&sh===66)return!0;if(sh>=51&&/native code/.test(t))return!1;var r=new ui(function(o){o(1)}),n=function(o){o(function(){},function(){})};return(r.constructor={})[k0t]=n,!(gz=r.then(function(){})instanceof n)||!e&&F0t&&!hz}),L0t=xp||!iz(function(t){ui.all(t).catch(function(){})}),vz=function(t){var e;return!(!_e(t)||!Te(e=t.then))&&e},$5=function(t,e){if(!t.notified){t.notified=!0;var r=t.reactions;fz(function(){for(var n=t.value,o=t.state==1,a=0;r.length>a;){var i,u,s,l=r[a++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(t.rejection===2&&V0t(t),t.rejection=1),c===!0?i=n:(p&&p.enter(),i=c(n),p&&(p.exit(),s=!0)),i===l.promise?d(pz("Promise-chain cycle")):(u=vz(i))?je(u,i,f,d):f(i)):d(n)}catch(m){p&&!s&&p.exit(),d(m)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&M0t(t)})}},mz=function(t,e,r){var n,o;R0t?((n=LC.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),ft.dispatchEvent(n)):n={promise:e,reason:r},!hz&&(o=ft["on"+t])?o(n):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",r)},M0t=function(t){je(dz,ft,function(){var e,r=t.facade,n=t.value;if(Gk(t)&&(e=RC(function(){qa?V5.emit("unhandledRejection",n,r):mz("unhandledrejection",r,n)}),t.rejection=qa||Gk(t)?2:1,e.error))throw e.value})},Gk=function(t){return t.rejection!==1&&!t.parent},V0t=function(t){je(dz,ft,function(){var e=t.facade;qa?V5.emit("rejectionHandled",e):mz("rejectionhandled",e,t.value)})},tc=function(t,e,r){return function(n){t(e,n,r)}},fc=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,$5(t,!0))},MC=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw pz("Promise can't be resolved itself");var n=vz(e);n?fz(function(){var o={done:!1};try{je(n,e,tc(MC,o,t),tc(fc,o,t))}catch(a){fc(o,a,t)}}):(t.value=e,t.state=1,$5(t,!1))}catch(o){fc({done:!1},o,t)}}};if(xp&&(Sd=(ui=function(t){R5(this,Sd),gu(t),je(NE,this);var e=_k(this);try{t(tc(MC,e),tc(fc,e))}catch(r){fc(e,r)}}).prototype,(NE=function(t){N0t(this,{type:Li,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=by(Sd,{then:function(t,e){var r=I0t(this),n=r.reactions,o=cc(function(a,i){var u,s=zr(a).constructor;return s===void 0||(u=zr(s)[x0t])==null?i:function(l){if(k5(l))return l;throw S0t(sy(l)+" is not a constructor")}(u)}(this,ui));return o.ok=!Te(t)||t,o.fail=Te(e)&&e,o.domain=qa?V5.domain:void 0,r.parent=!0,n[n.length]=o,r.state!=0&&$5(r,!1),o.promise},catch:function(t){return this.then(void 0,t)}}),Hk=function(){var t=new NE,e=_k(t);this.promise=t,this.resolve=tc(MC,e),this.reject=tc(fc,e)},M5.f=cc=function(t){return t===ui||t===cz?new Hk(t):j0t(t)},Te(yy)&&Wu!==Object.prototype)){Uk=Wu.then,gz||(So(Wu,"then",function(t,e){var r=this;return new ui(function(n,o){je(Uk,r,n,o)}).then(t,e)},{unsafe:!0}),So(Wu,"catch",Sd.catch,{unsafe:!0}));try{delete Wu.constructor}catch{}Vc&&Vc(Wu,Sd)}function hh(t,e,r){return r===void 0&&(r=""),L1(this,void 0,void 0,function(){var n,o,a,i,u,s,l;return M1(this,function(c){switch(c.label){case 0:return e?(t.restoreSelection(),n=t.getMenuConfig("insertVideo"),o=n.onInsertedVideo,a=n.checkVideo,i=n.parseVideoSrc,[4,a(e,r)]):[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,"<").replace(/>/g,">")),l={type:"video",src:s,poster:r,children:[{text:""}]},Promise.resolve().then(function(){U.insertNodes(t,l)}),o(l),[2]}})})}function IE(){return rz("w-e-insert-video")}Cn({global:!0,wrap:!0,forced:xp},{Promise:ui}),wy(ui,Li,!1),function(t){var e=_s("Promise"),r=ea.f;bi&&e&&!e[Ak]&&r(e,Ak,{configurable:!0,get:function(){return this}})}(),cz=_s(Li),Cn({target:Li,stat:!0,forced:xp},{reject:function(t){var e=cc(this);return je(e.reject,void 0,t),e.promise}}),Cn({target:Li,stat:!0,forced:xp},{resolve:function(t){return function(e,r){if(zr(e),_e(r)&&r.constructor===e)return r;var n=M5.f(e);return(0,n.resolve)(r),n.promise}(this,t)}}),Cn({target:Li,stat:!0,forced:L0t},{all:function(t){var e=this,r=cc(e),n=r.resolve,o=r.reject,a=RC(function(){var i=gu(e.resolve),u=[],s=0,l=1;Ey(t,function(c){var f=s++,d=!1;l++,je(i,e,c).then(function(p){d||(d=!0,u[f]=p,--l||n(u))},o)}),--l||n(u)});return a.error&&o(a.value),r.promise},race:function(t){var e=this,r=cc(e),n=r.reject,o=RC(function(){var a=gu(e.resolve);Ey(t,function(i){je(a,e,i).then(r.resolve,n)})});return o.error&&n(o.value),r.promise}});var $0t=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=IE(),this.posterInputId=IE(),this.buttonId=IE()}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,r){},t.prototype.isDisabled=function(e){var r=e.selection;return r==null||!Q.isCollapsed(r)||!!P.getSelectedElems(e).some(function(n){var o=P.getNodeType(n);return o==="pre"||o==="list-item"||!!e.isVoid(n)})},t.prototype.getModalPositionNode=function(e){return null},t.prototype.getModalContentElem=function(e){var r=this,n=this,o=n.srcInputId,a=n.posterInputId,i=n.buttonId,u=Cs(Gn(lt("videoModule.videoSrc"),o,lt("videoModule.videoSrcPlaceHolder")),2),s=u[0],l=u[1],c=Cs(Gn(lt("videoModule.videoPoster"),a,lt("videoModule.videoPosterPlaceHolder")),2),f=c[0],d=c[1],p=F(l),m=F(d),h=Cs(tf(i,lt("videoModule.ok")),1)[0];if(this.$content==null){var v=F("<div></div>");v.on("click","#"+i,function(g){return L1(r,void 0,void 0,function(){var b,E;return M1(this,function(x){switch(x.label){case 0:return g.preventDefault(),b=v.find("#"+o).val().trim(),E=v.find("#"+a).val().trim(),[4,hh(e,b,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}(),z0t=Ht([].join),H0t=E5!=Object,U0t=function(t,e){var r=[].join;return!!r&&Re(function(){r.call(null,",",1)})}();Cn({target:"Array",proto:!0,forced:H0t||!U0t},{join:function(t){return z0t(Su(this),t===void 0?",":t)}});var Os,Wk,Kk,_0t=!Re(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),Yk=T5("IE_PROTO"),VC=ft.Object,G0t=VC.prototype,Sy=_0t?VC.getPrototypeOf:function(t){var e=$1(t);if(Dr(e,Yk))return e[Yk];var r=e.constructor;return Te(r)&&e instanceof r?r.prototype:e instanceof VC?G0t:null},$C=vr("iterator"),yz=!1;[].keys&&("next"in(Kk=[].keys())?(Wk=Sy(Sy(Kk)))!==Object.prototype&&(Os=Wk):yz=!0);var W0t=Os==null||Re(function(){var t={};return Os[$C].call(t)!==t});W0t&&(Os={}),Te(Os[$C])||So(Os,$C,function(){return this});var z5={IteratorPrototype:Os,BUGGY_SAFARI_ITERATORS:yz},K0t=z5.IteratorPrototype,Y0t=function(){return this},X0t=ff.PROPER,Z0t=ff.CONFIGURABLE,Xk=z5.IteratorPrototype,jE=z5.BUGGY_SAFARI_ITERATORS,xd=vr("iterator"),J0t=function(){return this},bz=function(t,e,r,n,o,a,i){(function(v,y,g,b){var E=y+" Iterator";v.prototype=P5(K0t,{next:V1(1,g)}),wy(v,E,!1),$c[E]=Y0t})(r,e,n);var u,s,l=function(v){if(v===o&&m)return m;if(!jE&&v in d)return d[v];switch(v){case"keys":case"values":case"entries":return function(){return new r(this,v)}}return function(){return new r(this)}},c=e+" Iterator",f=!1,d=t.prototype,p=d[xd]||d["@@iterator"]||o&&d[o],m=!jE&&p||l(o),h=e=="Array"&&d.entries||p;return h&&(u=Sy(h.call(new t)))!==Object.prototype&&u.next&&(Sy(u)!==Xk&&(Vc?Vc(u,Xk):Te(u[xd])||So(u,xd,J0t)),wy(u,c,!0)),X0t&&o=="values"&&p&&p.name!=="values"&&(Z0t?Qa(d,"name","values"):(f=!0,m=function(){return je(p,this)})),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},i||Cn({target:e,proto:!0,forced:jE||f},s)),d[xd]!==m&&So(d,xd,m,{name:o}),$c[e]=m,s},Q0t=Jn.set,q0t=Jn.getterFor("Array Iterator"),Jd=bz(Array,"Array",function(t,e){Q0t(this,{type:"Array Iterator",target:Su(t),index:0,kind:e})},function(){var t=q0t(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}},"values");$c.Arguments=$c.Array,wp("keys"),wp("values"),wp("entries");var tmt=ez.charAt,emt=Jn.set,rmt=Jn.getterFor("String Iterator");bz(String,"String",function(t){emt(this,{type:"String Iterator",string:uo(t),index:0})},function(){var t,e=rmt(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=tmt(r,n),e.index+=t.length,{value:t,done:!1})});var wz=function(t,e,r){var n=O5(e);n in t?ea.f(t,n,V1(0,r)):t[n]=r},nmt=ft.Array,omt=Math.max,Zk=dy.f,Jk=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],imt={f:function(t){return Jk&&di(t)=="Window"?function(e){try{return Zk(e)}catch{return function(n,o,a){for(var i=fg(n),u=fh(void 0,i),s=fh(i,i),l=nmt(omt(s-u,0)),c=0;u<s;u++,c++)wz(l,c,n[u]);return l.length=c,l}(Jk)}}(t):Zk(Su(t))}},Qk=Re(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),Ov=Object.isExtensible,ns=Re(function(){Ov(1)})||Qk?function(t){return!!_e(t)&&(!Qk||di(t)!="ArrayBuffer")&&(!Ov||Ov(t))}:Ov,amt=!Re(function(){return Object.isExtensible(Object.preventExtensions({}))}),H5=w5(function(t){var e=ea.f,r=!1,n=D5("meta"),o=0,a=function(u){e(u,n,{value:{objectID:"O"+o++,weakData:{}}})},i=t.exports={enable:function(){i.enable=function(){},r=!0;var u=dy.f,s=Ht([].splice),l={};l[n]=1,u(l).length&&(dy.f=function(c){for(var f=u(c),d=0,p=f.length;d<p;d++)if(f[d]===n){s(f,d,1);break}return f},Cn({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:imt.f}))},fastKey:function(u,s){if(!_e(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!Dr(u,n)){if(!ns(u))return"F";if(!s)return"E";a(u)}return u[n].objectID},getWeakData:function(u,s){if(!Dr(u,n)){if(!ns(u))return!0;if(!s)return!1;a(u)}return u[n].weakData},onFreeze:function(u){return amt&&r&&ns(u)&&!Dr(u,n)&&a(u),u}};H1[n]=!0}),Av=H5.getWeakData,umt=Jn.set,smt=Jn.getterFor,lmt=N5.find,cmt=N5.findIndex,fmt=Ht([].splice),dmt=0,Tv=function(t){return t.frozen||(t.frozen=new Ez)},Ez=function(){this.entries=[]},RE=function(t,e){return lmt(t.entries,function(r){return r[0]===e})};Ez.prototype={get:function(t){var e=RE(this,t);if(e)return e[1]},has:function(t){return!!RE(this,t)},set:function(t,e){var r=RE(this,t);r?r[1]=e:this.entries.push([t,e])},delete:function(t){var e=cmt(this.entries,function(r){return r[0]===t});return~e&&fmt(this.entries,e,1),!!~e}};var Cd,Sz={getConstructor:function(t,e,r,n){var o=t(function(s,l){R5(s,a),umt(s,{type:e,id:dmt++,frozen:void 0}),l!=null&&Ey(l,s[n],{that:s,AS_ENTRIES:r})}),a=o.prototype,i=smt(e),u=function(s,l,c){var f=i(s),d=Av(zr(l),!0);return d===!0?Tv(f).set(l,c):d[f.id]=c,s};return by(a,{delete:function(s){var l=i(this);if(!_e(s))return!1;var c=Av(s);return c===!0?Tv(l).delete(s):c&&Dr(c,l.id)&&delete c[l.id]},has:function(s){var l=i(this);if(!_e(s))return!1;var c=Av(s);return c===!0?Tv(l).has(s):c&&Dr(c,l.id)}}),by(a,r?{get:function(s){var l=i(this);if(_e(s)){var c=Av(s);return c===!0?Tv(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}},Bv=Jn.enforce,pmt=!ft.ActiveXObject&&"ActiveXObject"in ft,xz=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},hmt=function(t,e,r){var n=t.indexOf("Map")!==-1,o=t.indexOf("Weak")!==-1,a=n?"set":"add",i=ft[t],u=i&&i.prototype,s=i,l={},c=function(v){var y=Ht(u[v]);So(u,v,v=="add"?function(g){return y(this,g===0?0:g),this}:v=="delete"?function(g){return!(o&&!_e(g))&&y(this,g===0?0:g)}:v=="get"?function(g){return o&&!_e(g)?void 0:y(this,g===0?0:g)}:v=="has"?function(g){return!(o&&!_e(g))&&y(this,g===0?0:g)}:function(g,b){return y(this,g===0?0:g,b),this})};if(py(t,!Te(i)||!(o||u.forEach&&!Re(function(){new i().entries().next()}))))s=r.getConstructor(e,t,n,a),H5.enable();else if(py(t,!0)){var f=new s,d=f[a](o?{}:-0,1)!=f,p=Re(function(){f.has(1)}),m=iz(function(v){new i(v)}),h=!o&&Re(function(){for(var v=new i,y=5;y--;)v[a](y,y);return!v.has(-0)});m||((s=e(function(v,y){R5(v,u);var g=function(b,E,x){var S,C;return Vc&&Te(S=E.constructor)&&S!==x&&_e(C=S.prototype)&&C!==x.prototype&&Vc(b,C),b}(new i,v,s);return y!=null&&Ey(y,g[a],{that:g,AS_ENTRIES:n}),g})).prototype=u,u.constructor=s),(p||h)&&(c("delete"),c("has"),n&&c("get")),(h||d)&&c(a),o&&u.clear&&delete u.clear}return l[t]=s,Cn({global:!0,forced:s!=i},l),wy(s,t),o||r.setStrong(s,t,n),s}("WeakMap",xz,Sz);if(z$&&pmt){Cd=Sz.getConstructor(xz,"WeakMap",!0),H5.enable();var Dd=hmt.prototype,qk=Ht(Dd.delete),Pv=Ht(Dd.has),tN=Ht(Dd.get),eN=Ht(Dd.set);by(Dd,{delete:function(t){if(_e(t)&&!ns(t)){var e=Bv(this);return e.frozen||(e.frozen=new Cd),qk(this,t)||e.frozen.delete(t)}return qk(this,t)},has:function(t){if(_e(t)&&!ns(t)){var e=Bv(this);return e.frozen||(e.frozen=new Cd),Pv(this,t)||e.frozen.has(t)}return Pv(this,t)},get:function(t){if(_e(t)&&!ns(t)){var e=Bv(this);return e.frozen||(e.frozen=new Cd),Pv(this,t)?tN(this,t):e.frozen.get(t)}return tN(this,t)},set:function(t,e){if(_e(t)&&!ns(t)){var r=Bv(this);r.frozen||(r.frozen=new Cd),Pv(this,t)?eN(this,t,e):r.frozen.set(t,e)}else eN(this,t,e);return this}})}var Cz={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},LE=ch("span").classList,rN=LE&&LE.constructor&&LE.constructor.prototype,gmt=rN===Object.prototype?void 0:rN,ME=vr("iterator"),nN=vr("toStringTag"),VE=Jd.values,Dz=function(t,e){if(t){if(t[ME]!==VE)try{Qa(t,ME,VE)}catch{t[ME]=VE}if(t[nN]||Qa(t,nN,e),Cz[e]){for(var r in Jd)if(t[r]!==Jd[r])try{Qa(t,r,Jd[r])}catch{t[r]=Jd[r]}}}};for(var $E in Cz)Dz(ft[$E]&&ft[$E].prototype,$E);Dz(gmt,"DOMTokenList");var vmt=ff.EXISTS,mmt=ea.f,Oz=Function.prototype,ymt=Ht(Oz.toString),Az=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,bmt=Ht(Az.exec);bi&&!vmt&&mmt(Oz,"name",{configurable:!0,get:function(){try{return bmt(Az,ymt(this))[1]}catch{return""}}});var wmt=vr("species"),Emt=sh>=51||!Re(function(){var t=[];return(t.constructor={})[wmt]=function(){return{foo:1}},t.slice(Boolean).foo!==1}),Smt=vr("species"),zE=ft.Array,xmt=Math.max;function Tz(t){return t.getMenuConfig("uploadVideo")}Cn({target:"Array",proto:!0,forced:!Emt},{slice:function(t,e){var r,n,o,a=Su(this),i=fg(a),u=fh(t,i),s=fh(e===void 0?i:e,i);if(gy(a)&&(r=a.constructor,(k5(r)&&(r===zE||gy(r.prototype))||_e(r)&&(r=r[Smt])===null)&&(r=void 0),r===zE||r===void 0))return az(a,u,s);for(n=new(r===void 0?zE:r)(xmt(s-u,0)),o=0;u<s;u++,o++)u in a&&wz(n,o,a[u]);return n.length=o,n}});var oN=new WeakMap;function Cmt(t,e){return L1(this,void 0,void 0,function(){var r,n,o,a;return M1(this,function(i){switch(i.label){case 0:return r=function(u){var s=oN.get(u);if(s!=null)return s;var l=Tz(u),c=l.onSuccess,f=l.onProgress,d=l.onFailed,p=l.customInsert,m=l.onError;return s=QL(uy(uy({},l),{onProgress:function(h){u.showProgressBar(h),f&&f(h)},onSuccess:function(h,v){if(p)return p(v,function(T,A){return hh(u,T,A)}),void c(h,v);var y=v.errno,g=y===void 0?1:y,b=v.data,E=b===void 0?{}:b;if(g===0){var x=E.url,S=x===void 0?"":x,C=E.poster;hh(u,S,C===void 0?"":C),c(h,v)}else d(h,v)},onError:function(h,v,y){m(h,v,y)}})),oN.set(u,s),s}(t),n=e.name,o=e.type,a=e.size,r.addFile({name:n,type:o,size:a,data:e}),[4,r.upload()];case 1:return i.sent(),[2]}})})}var Dmt=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,r){var n=this.getMenuConfig(e),o=n.allowedFileTypes,a=o===void 0?[]:o,i=n.customBrowseAndUpload;if(i)i(function(c,f){return hh(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;L1(this,void 0,void 0,function(){var h,v,y,g,b,E;return M1(this,function(x){switch(x.label){case 0:if(d==null)return[2];h=Array.prototype.slice.call(d),v=Tz(f).customUpload,x.label=1;case 1:x.trys.push([1,9,10,15]),y=Sgt(h),x.label=2;case 2:return[4,y.next()];case 3:return(g=x.sent()).done?[3,8]:(b=g.value,v?[4,v(b,function(S,C){return hh(f,S,C)})]:[3,5]);case 4:return x.sent(),[3,7];case 5:return[4,Cmt(f,b)];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 r=e.selection;return r==null||!Q.isCollapsed(r)||!!P.getSelectedElems(e).some(function(n){var o=P.getNodeType(n);return o==="pre"||o==="list-item"||!!e.isVoid(n)})},t.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadVideo")},t}(),Omt=ff.PROPER,zC=RegExp.prototype,Bz=zC.toString,Amt=Ht(Q$),Tmt=Re(function(){return Bz.call({source:"a",flags:"b"})!="/a/b"}),Bmt=Omt&&Bz.name!="toString";function HE(){return rz("w-e-insert-video")}(Tmt||Bmt)&&So(RegExp.prototype,"toString",function(){var t=zr(this),e=uo(t.source),r=t.flags;return"/"+e+"/"+uo(r===void 0&&uh(zC,t)&&!("flags"in zC)?Amt(t):r)},{unsafe:!0});var Pmt=function(){function t(){this.title=lt("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=HE(),this.heightInputId=HE(),this.buttonId=HE()}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,r){},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 r=this,n=r.widthInputId,o=r.heightInputId,a=r.buttonId,i=Cs(Gn(lt("videoModule.width"),n,"auto"),2),u=i[0],s=F(i[1]),l=Cs(Gn(lt("videoModule.height"),o,"auto"),2),c=l[0],f=F(l[1]),d=Cs(tf(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("#"+n).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(),U.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,b=g===void 0?"auto":g;return s.val(y),f.val(b),setTimeout(function(){s.focus()}),m[0]},t}(),Fmt={renderElems:[Dvt],elemsToHtml:[Ovt],preParseHtml:[Pvt],parseElemsHtml:[Mvt],menus:[{key:"insertVideo",factory:function(){return new $0t},config:{onInsertedVideo:function(t){},checkVideo:function(t,e){return!0},parseVideoSrc:function(t){return t}}},{key:"uploadVideo",factory:function(){return new Dmt},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,r){console.error("'"+t.name+" upload error",e,r)}}},{key:"editVideoSize",factory:function(){return new Pmt}}],editorPlugin:function(t){var e=t.isVoid,r=t.normalizeNode,n=t;return n.isVoid=function(o){return o.type==="video"||e(o)},n.normalizeNode=function(o){var a=Cs(o,2),i=a[0],u=a[1];return P.getNodeType(i)==="video"&&P.isLastNode(n,i)&&U.insertNodes(n,P.genEmptyParagraph(),{at:[u[0]+1]}),r([i,u])},n}};Pn("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),Pn("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});var iN=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function U5(t){var e={exports:{}};return t(e,e.exports),e.exports}var wa,w0,Fv=function(t){return t&&t.Math==Math&&t},ct=Fv(typeof globalThis=="object"&&globalThis)||Fv(typeof window=="object"&&window)||Fv(typeof self=="object"&&self)||Fv(typeof iN=="object"&&iN)||function(){return this}()||Function("return this")(),ze=function(t){try{return!!t()}catch{return!0}},wi=!ze(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Od=Function.prototype.call,Ce=Od.bind?Od.bind(Od):function(){return Od.apply(Od,arguments)},aN={}.propertyIsEnumerable,uN=Object.getOwnPropertyDescriptor,kmt={f:uN&&!aN.call({1:2},1)?function(t){var e=uN(this,t);return!!e&&e.enumerable}:aN},G1=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},Pz=Function.prototype,HC=Pz.bind,UC=Pz.call,Nmt=HC&&HC.bind(UC),Qt=HC?function(t){return t&&Nmt(UC,t)}:function(t){return t&&function(){return UC.apply(t,arguments)}},Imt=Qt({}.toString),jmt=Qt("".slice),Vo=function(t){return jmt(Imt(t),8,-1)},UE=ct.Object,Rmt=Qt("".split),_5=ze(function(){return!UE("z").propertyIsEnumerable(0)})?function(t){return Vo(t)=="String"?Rmt(t,""):UE(t)}:UE,Lmt=ct.TypeError,gh=function(t){if(t==null)throw Lmt("Can't call method on "+t);return t},xu=function(t){return _5(gh(t))},ke=function(t){return typeof t=="function"},Ve=function(t){return typeof t=="object"?t!==null:ke(t)},Mmt=function(t){return ke(t)?t:void 0},Gs=function(t,e){return arguments.length<2?Mmt(ct[t]):ct[t]&&ct[t][e]},vh=Qt({}.isPrototypeOf),dc=Gs("navigator","userAgent")||"",sN=ct.process,lN=ct.Deno,cN=sN&&sN.versions||lN&&lN.version,fN=cN&&cN.v8;fN&&(w0=(wa=fN.split("."))[0]>0&&wa[0]<4?1:+(wa[0]+wa[1])),!w0&&dc&&(!(wa=dc.match(/Edge\/(\d+)/))||wa[1]>=74)&&(wa=dc.match(/Chrome\/(\d+)/))&&(w0=+wa[1]);var mh=w0,_C=!!Object.getOwnPropertySymbols&&!ze(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&mh&&mh<41}),G5=_C&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Vmt=ct.Object,_E=G5?function(t){return typeof t=="symbol"}:function(t){var e=Gs("Symbol");return ke(e)&&vh(e.prototype,Vmt(t))},$mt=ct.String,xy=function(t){try{return $mt(t)}catch{return"Object"}},zmt=ct.TypeError,vu=function(t){if(ke(t))return t;throw zmt(xy(t)+" is not a function")},yh=function(t,e){var r=t[e];return r==null?void 0:vu(r)},Hmt=ct.TypeError,Umt=Object.defineProperty,W5=function(t,e){try{Umt(ct,t,{value:e,configurable:!0,writable:!0})}catch{ct[t]=e}return e},tu=ct["__core-js_shared__"]||W5("__core-js_shared__",{}),K5=U5(function(t){(t.exports=function(e,r){return tu[e]||(tu[e]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),_mt=ct.Object,Y5=function(t){return _mt(gh(t))},Gmt=Qt({}.hasOwnProperty),Or=Object.hasOwn||function(t,e){return Gmt(Y5(t),e)},Wmt=0,Kmt=Math.random(),Ymt=Qt(1 .toString),X5=function(t){return"Symbol("+(t===void 0?"":t)+")_"+Ymt(++Wmt+Kmt,36)},Ad=K5("wks"),As=ct.Symbol,dN=As&&As.for,Xmt=G5?As:As&&As.withoutSetter||X5,mr=function(t){if(!Or(Ad,t)||!_C&&typeof Ad[t]!="string"){var e="Symbol."+t;_C&&Or(As,t)?Ad[t]=As[t]:Ad[t]=G5&&dN?dN(e):Xmt(e)}return Ad[t]},Zmt=ct.TypeError,Jmt=mr("toPrimitive"),Z5=function(t){var e=function(r,n){if(!Ve(r)||_E(r))return r;var o,a=yh(r,Jmt);if(a){if(o=Ce(a,r,n),!Ve(o)||_E(o))return o;throw Zmt("Can't convert object to primitive value")}return function(i,u){var s,l;if(ke(s=i.toString)&&!Ve(l=Ce(s,i))||ke(s=i.valueOf)&&!Ve(l=Ce(s,i)))return l;throw Hmt("Can't convert object to primitive value")}(r)}(t,"string");return _E(e)?e:e+""},GC=ct.document,Qmt=Ve(GC)&&Ve(GC.createElement),bh=function(t){return Qmt?GC.createElement(t):{}},Fz=!wi&&!ze(function(){return Object.defineProperty(bh("div"),"a",{get:function(){return 7}}).a!=7}),pN=Object.getOwnPropertyDescriptor,J5={f:wi?pN:function(t,e){if(t=xu(t),e=Z5(e),Fz)try{return pN(t,e)}catch{}if(Or(t,e))return G1(!Ce(kmt.f,t,e),t[e])}},qmt=ct.String,tyt=ct.TypeError,Hr=function(t){if(Ve(t))return t;throw tyt(qmt(t)+" is not an object")},eyt=ct.TypeError,hN=Object.defineProperty,ra={f:wi?hN:function(t,e,r){if(Hr(t),e=Z5(e),Hr(r),Fz)try{return hN(t,e,r)}catch{}if("get"in r||"set"in r)throw eyt("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},pi=wi?function(t,e,r){return ra.f(t,e,G1(1,r))}:function(t,e,r){return t[e]=r,t},ryt=Qt(Function.toString);ke(tu.inspectSource)||(tu.inspectSource=function(t){return ryt(t)});var Cy,Cp,Dy,W1=tu.inspectSource,gN=ct.WeakMap,kz=ke(gN)&&/native code/.test(W1(gN)),vN=K5("keys"),Q5=function(t){return vN[t]||(vN[t]=X5(t))},K1={},WC=ct.TypeError,nyt=ct.WeakMap;if(kz||tu.state){var $u=tu.state||(tu.state=new nyt),oyt=Qt($u.get),mN=Qt($u.has),iyt=Qt($u.set);Cy=function(t,e){if(mN($u,t))throw new WC("Object already initialized");return e.facade=t,iyt($u,t,e),e},Cp=function(t){return oyt($u,t)||{}},Dy=function(t){return mN($u,t)}}else{var Il=Q5("state");K1[Il]=!0,Cy=function(t,e){if(Or(t,Il))throw new WC("Object already initialized");return e.facade=t,pi(t,Il,e),e},Cp=function(t){return Or(t,Il)?t[Il]:{}},Dy=function(t){return Or(t,Il)}}var Qn={set:Cy,get:Cp,has:Dy,enforce:function(t){return Dy(t)?Cp(t):Cy(t,{})},getterFor:function(t){return function(e){var r;if(!Ve(e)||(r=Cp(e)).type!==t)throw WC("Incompatible receiver, "+t+" required");return r}}},Nz=Function.prototype,ayt=wi&&Object.getOwnPropertyDescriptor,GE=Or(Nz,"name"),pg={EXISTS:GE,PROPER:GE&&(function(){}).name==="something",CONFIGURABLE:GE&&(!wi||wi&&ayt(Nz,"name").configurable)},xo=U5(function(t){var e=pg.CONFIGURABLE,r=Qn.get,n=Qn.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;ke(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Or(u,"name")||e&&u.name!==p)&&pi(u,"name",p),(l=n(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:pi(a,i,u)):f?a[i]=u:W5(i,u)})(Function.prototype,"toString",function(){return ke(this)&&r(this).source||W1(this)})}),uyt=Math.ceil,syt=Math.floor,q5=function(t){var e=+t;return e!=e||e===0?0:(e>0?syt:uyt)(e)},lyt=Math.max,cyt=Math.min,wh=function(t,e){var r=q5(t);return r<0?lyt(r+e,0):cyt(r,e)},fyt=Math.min,Iz=function(t){return t>0?fyt(q5(t),9007199254740991):0},hg=function(t){return Iz(t.length)},dyt=function(t){return function(e,r,n){var o,a=xu(e),i=hg(a),u=wh(n,i);if(t&&r!=r){for(;i>u;)if((o=a[u++])!=o)return!0}else for(;i>u;u++)if((t||u in a)&&a[u]===r)return t||u||0;return!t&&-1}},pyt=dyt(!1),yN=Qt([].push),jz=function(t,e){var r,n=xu(t),o=0,a=[];for(r in n)!Or(K1,r)&&Or(n,r)&&yN(a,r);for(;e.length>o;)Or(n,r=e[o++])&&(~pyt(a,r)||yN(a,r));return a},Oy=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],hyt=Oy.concat("length","prototype"),Ay={f:Object.getOwnPropertyNames||function(t){return jz(t,hyt)}},gyt={f:Object.getOwnPropertySymbols},vyt=Qt([].concat),myt=Gs("Reflect","ownKeys")||function(t){var e=Ay.f(Hr(t)),r=gyt.f;return r?vyt(e,r(t)):e},yyt=function(t,e){for(var r=myt(e),n=ra.f,o=J5.f,a=0;a<r.length;a++){var i=r[a];Or(t,i)||n(t,i,o(e,i))}},byt=/#|\.prototype\./,gg=function(t,e){var r=Eyt[wyt(t)];return r==xyt||r!=Syt&&(ke(e)?ze(e):!!e)},wyt=gg.normalize=function(t){return String(t).replace(byt,".").toLowerCase()},Eyt=gg.data={},Syt=gg.NATIVE="N",xyt=gg.POLYFILL="P",Ty=gg,Cyt=J5.f,si=function(t,e){var r,n,o,a,i,u=t.target,s=t.global,l=t.stat;if(r=s?ct:l?ct[u]||W5(u,{}):(ct[u]||{}).prototype)for(n in e){if(a=e[n],o=t.noTargetGet?(i=Cyt(r,n))&&i.value:r[n],!Ty(s?n:u+(l?".":"#")+n,t.forced)&&o!==void 0){if(typeof a==typeof o)continue;yyt(a,o)}(t.sham||o&&o.sham)&&pi(a,"sham",!0),xo(r,n,a,t)}},By=Array.isArray||function(t){return Vo(t)=="Array"},Rz={};Rz[mr("toStringTag")]="z";var t8=String(Rz)==="[object z]",Dyt=mr("toStringTag"),Oyt=ct.Object,Ayt=Vo(function(){return arguments}())=="Arguments",Y1=t8?Vo:function(t){var e,r,n;return t===void 0?"Undefined":t===null?"Null":typeof(r=function(o,a){try{return o[a]}catch{}}(e=Oyt(t),Dyt))=="string"?r:Ayt?Vo(e):(n=Vo(e))=="Object"&&ke(e.callee)?"Arguments":n},Lz=function(){},Tyt=[],Mz=Gs("Reflect","construct"),e8=/^\s*(?:class|function)\b/,Byt=Qt(e8.exec),Pyt=!e8.exec(Lz),Td=function(t){if(!ke(t))return!1;try{return Mz(Lz,Tyt,t),!0}catch{return!1}},r8=!Mz||ze(function(){var t;return Td(Td.call)||!Td(Object)||!Td(function(){t=!0})||t})?function(t){if(!ke(t))return!1;switch(Y1(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Pyt||!!Byt(e8,W1(t))}:Td,Vz=function(t,e,r){var n=Z5(e);n in t?ra.f(t,n,G1(0,r)):t[n]=r},Fyt=mr("species"),$z=Qt([].slice),kyt=mh>=51||!ze(function(){var t=[];return(t.constructor={})[Fyt]=function(){return{foo:1}},t.slice(Boolean).foo!==1}),Nyt=mr("species"),WE=ct.Array,Iyt=Math.max;si({target:"Array",proto:!0,forced:!kyt},{slice:function(t,e){var r,n,o,a=xu(this),i=hg(a),u=wh(t,i),s=wh(e===void 0?i:e,i);if(By(a)&&(r=a.constructor,(r8(r)&&(r===WE||By(r.prototype))||Ve(r)&&(r=r[Nyt])===null)&&(r=void 0),r===WE||r===void 0))return $z(a,u,s);for(n=new(r===void 0?WE:r)(Iyt(s-u,0)),o=0;u<s;u++,o++)u in a&&Vz(n,o,a[u]);return n.length=o,n}});var jyt=t8?{}.toString:function(){return"[object "+Y1(this)+"]"};t8||xo(Object.prototype,"toString",jyt,{unsafe:!0});var kv,Ryt=ct.String,eu=function(t){if(Y1(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Ryt(t)},zz=function(){var t=Hr(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},n8=ct.RegExp,KC=ze(function(){var t=n8("a","y");return t.lastIndex=2,t.exec("abcd")!=null});KC||ze(function(){return!n8("a","y").sticky});var Hz={BROKEN_CARET:KC||ze(function(){var t=n8("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),UNSUPPORTED_Y:KC},Lyt=Object.keys||function(t){return jz(t,Oy)},Myt=wi?Object.defineProperties:function(t,e){Hr(t);for(var r,n=xu(e),o=Lyt(e),a=o.length,i=0;a>i;)ra.f(t,r=o[i++],n[r]);return t},YC=Gs("document","documentElement"),Uz=Q5("IE_PROTO"),KE=function(){},_z=function(t){return"<script>"+t+"<\/script>"},bN=function(t){t.write(_z("")),t.close();var e=t.parentWindow.Object;return t=null,e},E0=function(){try{kv=new ActiveXObject("htmlfile")}catch{}var t,e;E0=typeof document<"u"?document.domain&&kv?bN(kv):((e=bh("iframe")).style.display="none",YC.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(_z("document.F=Object")),t.close(),t.F):bN(kv);for(var r=Oy.length;r--;)delete E0.prototype[Oy[r]];return E0()};K1[Uz]=!0;var wN,YE,o8=Object.create||function(t,e){var r;return t!==null?(KE.prototype=Hr(t),r=new KE,KE.prototype=null,r[Uz]=t):r=E0(),e===void 0?r:Myt(r,e)},Vyt=ct.RegExp,$yt=ze(function(){var t=Vyt(".","s");return!(t.dotAll&&t.exec(`
|
|
157
|
+
`)&&t.flags==="s")}),zyt=ct.RegExp,Hyt=ze(function(){var t=zyt("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),Uyt=Qn.get,_yt=K5("native-string-replace",String.prototype.replace),Py=RegExp.prototype.exec,XC=Py,Gyt=Qt("".charAt),Wyt=Qt("".indexOf),Kyt=Qt("".replace),XE=Qt("".slice),ZE=(YE=/b*/g,Ce(Py,wN=/a/,"a"),Ce(Py,YE,"a"),wN.lastIndex!==0||YE.lastIndex!==0),EN=Hz.BROKEN_CARET,JE=/()??/.exec("")[1]!==void 0;(ZE||JE||EN||$yt||Hyt)&&(XC=function(t){var e,r,n,o,a,i,u,s=this,l=Uyt(s),c=eu(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=Ce(XC,f,c),s.lastIndex=f.lastIndex,e;var d=l.groups,p=EN&&s.sticky,m=Ce(zz,s),h=s.source,v=0,y=c;if(p&&(m=Kyt(m,"y",""),Wyt(m,"g")===-1&&(m+="g"),y=XE(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Gyt(c,s.lastIndex-1)!==`
|
|
158
|
+
`)&&(h="(?: "+h+")",y=" "+y,v++),r=new RegExp("^(?:"+h+")",m)),JE&&(r=new RegExp("^"+h+"$(?!\\s)",m)),ZE&&(n=s.lastIndex),o=Ce(Py,p?r: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:n),JE&&o&&o.length>1&&Ce(_yt,o[0],r,function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(o[a]=void 0)}),o&&d)for(o.groups=i=o8(null),a=0;a<d.length;a++)i[(u=d[a])[0]]=o[u[1]];return o});var Eh=XC;si({target:"RegExp",proto:!0,forced:/./.exec!==Eh},{exec:Eh});var i8=Function.prototype,SN=i8.apply,Yyt=i8.bind,xN=i8.call,Gz=typeof Reflect=="object"&&Reflect.apply||(Yyt?xN.bind(SN):function(){return xN.apply(SN,arguments)}),Xyt=mr("species"),QE=RegExp.prototype,Zyt=mr("match"),Jyt=ct.TypeError,Qyt=mr("species"),Wz=function(t,e){var r,n=Hr(t).constructor;return n===void 0||(r=Hr(n)[Qyt])==null?e:function(o){if(r8(o))return o;throw Jyt(xy(o)+" is not a constructor")}(r)},qyt=Qt("".charAt),CN=Qt("".charCodeAt),t1t=Qt("".slice),e1t=function(t){return function(e,r){var n,o,a=eu(gh(e)),i=q5(r),u=a.length;return i<0||i>=u?t?"":void 0:(n=CN(a,i))<55296||n>56319||i+1===u||(o=CN(a,i+1))<56320||o>57343?t?qyt(a,i):n:t?t1t(a,i,i+2):o-56320+(n-55296<<10)+65536}},Kz={charAt:e1t(!0)},r1t=Kz.charAt,n1t=function(t,e,r){return e+(r?r1t(t,e).length:1)},o1t=ct.Array,i1t=Math.max,ZC=function(t,e,r){for(var n=hg(t),o=wh(e,n),a=wh(r===void 0?n:r,n),i=o1t(i1t(a-o,0)),u=0;o<a;o++,u++)Vz(i,u,t[o]);return i.length=u,i},a1t=ct.TypeError,DN=function(t,e){var r=t.exec;if(ke(r)){var n=Ce(r,t,e);return n!==null&&Hr(n),n}if(Vo(t)==="RegExp")return Ce(Eh,t,e);throw a1t("RegExp#exec called on incompatible receiver")},jl=Hz.UNSUPPORTED_Y,u1t=Math.min,Yz=[].push,s1t=Qt(/./.exec),Rl=Qt(Yz),Bd=Qt("".slice);(function(t,e,r,n){var o=mr(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[Xyt]=function(){return c},c.flags="",c[o]=/./[o],c.exec=function(){return l=!0,null},c[o](""),!l});if(!a||!i||r){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=eu(gh(this)),g=m===void 0?4294967295:m>>>0;if(g===0)return[];if(p===void 0)return[y];if(!Ve(h=p)||!((v=h[Zyt])!==void 0?v:Vo(h)=="RegExp"))return Ce(c,y,p,g);for(var b,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");(b=Ce(Eh,A,y))&&!((E=A.lastIndex)>T&&(Rl(S,Bd(y,T,b.index)),b.length>1&&b.index<y.length&&Gz(Yz,S,ZC(b,1)),x=b[0].length,T=E,S.length>=g));)A.lastIndex===b.index&&A.lastIndex++;return T===y.length?!x&&s1t(A,"")||Rl(S,""):Rl(S,Bd(y,T)),S.length>g?ZC(S,0,g):S}:"0".split(void 0,0).length?function(p,m){return p===void 0&&m===0?[]:Ce(c,this,p,m)}:c,[function(p,m){var h=gh(this),v=p==null?void 0:yh(p,l);return v?Ce(v,p,h,m):Ce(d,eu(h),p,m)},function(p,m){var h=Hr(this),v=eu(p),y=f(d,h,v,m,d!==c);if(y.done)return y.value;var g=Wz(h,RegExp),b=h.unicode,E=(h.ignoreCase?"i":"")+(h.multiline?"m":"")+(h.unicode?"u":"")+(jl?"g":"y"),x=new g(jl?"^(?:"+h.source+")":h,E),S=m===void 0?4294967295:m>>>0;if(S===0)return[];if(v.length===0)return DN(x,v)===null?[v]:[];for(var C=0,T=0,A=[];T<v.length;){x.lastIndex=jl?0:T;var k,M=DN(x,jl?Bd(v,T):v);if(M===null||(k=u1t(Iz(x.lastIndex+(jl?T:0)),v.length))===C)T=n1t(v,T,b);else{if(Rl(A,Bd(v,C,T)),A.length===S)return A;for(var $=1;$<=M.length-1;$++)if(Rl(A,M[$]),A.length===S)return A;T=C=k}}return Rl(A,Bd(v,C)),A}]}(o,""[t],function(l,c,f,d,p){var m=Qt(l),h=c.exec;return h===Eh||h===QE.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(QE,o,s[1])}n&&pi(QE[o],"sham",!0)})("split",0,!!ze(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return r.length!==2||r[0]!=="a"||r[1]!=="b"}),jl);/*! *****************************************************************************
|
|
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 Fy=function(){return Fy=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Fy.apply(this,arguments)};function a8(t,e,r,n){return new(r||(r=Promise))(function(o,a){function i(l){try{s(n.next(l))}catch(c){a(c)}}function u(l){try{s(n.throw(l))}catch(c){a(c)}}function s(l){var c;l.done?o(l.value):(c=l.value,c instanceof r?c:new r(function(f){f(c)})).then(i,u)}s((n=n.apply(t,[])).next())})}function u8(t,e){var r,n,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(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=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++,n=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],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([s,l])}}}function l1t(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,r=t[Symbol.asyncIterator];return r?r.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={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(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 JC=mr("unscopables"),QC=Array.prototype;QC[JC]==null&&ra.f(QC,JC,{configurable:!0,value:o8(null)});var Ts,ON,AN,qE=function(t){QC[JC][t]=!0},zc={},c1t=!ze(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),TN=Q5("IE_PROTO"),qC=ct.Object,f1t=qC.prototype,ky=c1t?qC.getPrototypeOf:function(t){var e=Y5(t);if(Or(e,TN))return e[TN];var r=e.constructor;return ke(r)&&e instanceof r?r.prototype:e instanceof qC?f1t:null},tD=mr("iterator"),Xz=!1;[].keys&&("next"in(AN=[].keys())?(ON=ky(ky(AN)))!==Object.prototype&&(Ts=ON):Xz=!0);var d1t=Ts==null||ze(function(){var t={};return Ts[tD].call(t)!==t});d1t&&(Ts={}),ke(Ts[tD])||xo(Ts,tD,function(){return this});var s8={IteratorPrototype:Ts,BUGGY_SAFARI_ITERATORS:Xz},p1t=ra.f,BN=mr("toStringTag"),Ny=function(t,e,r){t&&!Or(t=r?t:t.prototype,BN)&&p1t(t,BN,{configurable:!0,value:e})},h1t=s8.IteratorPrototype,g1t=function(){return this},v1t=ct.String,m1t=ct.TypeError,Hc=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Qt(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch{}return function(n,o){return Hr(n),function(a){if(typeof a=="object"||ke(a))return a;throw m1t("Can't set "+v1t(a)+" as a prototype")}(o),e?t(n,o):n.__proto__=o,n}}():void 0),y1t=pg.PROPER,b1t=pg.CONFIGURABLE,PN=s8.IteratorPrototype,tS=s8.BUGGY_SAFARI_ITERATORS,Pd=mr("iterator"),w1t=function(){return this},Zz=function(t,e,r,n,o,a,i){(function(v,y,g,b){var E=y+" Iterator";v.prototype=o8(h1t,{next:G1(1,g)}),Ny(v,E,!1),zc[E]=g1t})(r,e,n);var u,s,l=function(v){if(v===o&&m)return m;if(!tS&&v in d)return d[v];switch(v){case"keys":case"values":case"entries":return function(){return new r(this,v)}}return function(){return new r(this)}},c=e+" Iterator",f=!1,d=t.prototype,p=d[Pd]||d["@@iterator"]||o&&d[o],m=!tS&&p||l(o),h=e=="Array"&&d.entries||p;return h&&(u=ky(h.call(new t)))!==Object.prototype&&u.next&&(ky(u)!==PN&&(Hc?Hc(u,PN):ke(u[Pd])||xo(u,Pd,w1t)),Ny(u,c,!0)),y1t&&o=="values"&&p&&p.name!=="values"&&(b1t?pi(d,"name","values"):(f=!0,m=function(){return Ce(p,this)})),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},i||si({target:e,proto:!0,forced:tS||f},s)),d[Pd]!==m&&xo(d,Pd,m,{name:o}),zc[e]=m,s},E1t=Qn.set,S1t=Qn.getterFor("Array Iterator"),Qd=Zz(Array,"Array",function(t,e){E1t(this,{type:"Array Iterator",target:xu(t),index:0,kind:e})},function(){var t=S1t(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}},"values");zc.Arguments=zc.Array,qE("keys"),qE("values"),qE("entries");var x1t=Kz.charAt,C1t=Qn.set,D1t=Qn.getterFor("String Iterator");Zz(String,"String",function(t){C1t(this,{type:"String Iterator",string:eu(t),index:0})},function(){var t,e=D1t(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=x1t(r,n),e.index+=t.length,{value:t,done:!1})});var Iy=function(t,e,r){for(var n in e)xo(t,n,e[n],r);return t},FN=Ay.f,kN=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],O1t={f:function(t){return kN&&Vo(t)=="Window"?function(e){try{return FN(e)}catch{return ZC(kN)}}(t):FN(xu(t))}},NN=ze(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),Nv=Object.isExtensible,os=ze(function(){Nv(1)})||NN?function(t){return!!Ve(t)&&(!NN||Vo(t)!="ArrayBuffer")&&(!Nv||Nv(t))}:Nv,A1t=!ze(function(){return Object.isExtensible(Object.preventExtensions({}))}),l8=U5(function(t){var e=ra.f,r=!1,n=X5("meta"),o=0,a=function(u){e(u,n,{value:{objectID:"O"+o++,weakData:{}}})},i=t.exports={enable:function(){i.enable=function(){},r=!0;var u=Ay.f,s=Qt([].splice),l={};l[n]=1,u(l).length&&(Ay.f=function(c){for(var f=u(c),d=0,p=f.length;d<p;d++)if(f[d]===n){s(f,d,1);break}return f},si({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:O1t.f}))},fastKey:function(u,s){if(!Ve(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!Or(u,n)){if(!os(u))return"F";if(!s)return"E";a(u)}return u[n].objectID},getWeakData:function(u,s){if(!Or(u,n)){if(!os(u))return!0;if(!s)return!1;a(u)}return u[n].weakData},onFreeze:function(u){return A1t&&r&&os(u)&&!Or(u,n)&&a(u),u}};K1[n]=!0}),IN=Qt(Qt.bind),Sh=function(t,e){return vu(t),e===void 0?t:IN?IN(t,e):function(){return t.apply(e,arguments)}},T1t=mr("iterator"),B1t=Array.prototype,P1t=mr("iterator"),jN=function(t){if(t!=null)return yh(t,P1t)||yh(t,"@@iterator")||zc[Y1(t)]},F1t=ct.TypeError,RN=function(t,e,r){var n,o;Hr(t);try{if(!(n=yh(t,"return"))){if(e==="throw")throw r;return r}n=Ce(n,t)}catch(a){o=!0,n=a}if(e==="throw")throw r;if(o)throw n;return Hr(n),r},k1t=ct.TypeError,S0=function(t,e){this.stopped=t,this.result=e},LN=S0.prototype,jy=function(t,e,r){var n,o,a,i,u,s,l,c,f=r&&r.that,d=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_ITERATOR),m=!(!r||!r.INTERRUPTED),h=Sh(e,f),v=function(g){return n&&RN(n,"normal",g),new S0(!0,g)},y=function(g){return d?(Hr(g),m?h(g[0],g[1],v):h(g[0],g[1])):m?h(g,v):h(g)};if(p)n=t;else{if(!(o=jN(t)))throw k1t(xy(t)+" is not iterable");if((c=o)!==void 0&&(zc.Array===c||B1t[T1t]===c)){for(a=0,i=hg(t);i>a;a++)if((u=y(t[a]))&&vh(LN,u))return u;return new S0(!1)}n=function(g,b){var E=arguments.length<2?jN(g):b;if(vu(E))return Hr(Ce(E,g));throw F1t(xy(g)+" is not iterable")}(t,o)}for(s=n.next;!(l=Ce(s,n)).done;){try{u=y(l.value)}catch(g){RN(n,"throw",g)}if(typeof u=="object"&&u&&vh(LN,u))return u}return new S0(!1)},N1t=ct.TypeError,c8=function(t,e){if(vh(e,t))return t;throw N1t("Incorrect invocation")},Jz=mr("iterator"),Qz=!1;try{var I1t=0,MN={next:function(){return{done:!!I1t++}},return:function(){Qz=!0}};MN[Jz]=function(){return this},Array.from(MN,function(){throw 2})}catch{}var qz=function(t,e){if(!Qz)return!1;var r=!1;try{var n={};n[Jz]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch{}return r},j1t=mr("species"),VN=ct.Array,R1t=function(t,e){return new(function(r){var n;return By(r)&&(n=r.constructor,(r8(n)&&(n===VN||By(n.prototype))||Ve(n)&&(n=n[j1t])===null)&&(n=void 0)),n===void 0?VN:n}(t))(e===0?0:e)},$N=Qt([].push),eS=function(t){var e=t==1,r=t==2,n=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=Y5(s),h=_5(m),v=Sh(l,c),y=hg(h),g=0,b=f||R1t,E=e?b(s,y):r||i?b(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:$N(E,d)}else switch(t){case 4:return!1;case 7:$N(E,d)}return a?-1:n||o?o:E}},f8={forEach:eS(0),find:eS(5),findIndex:eS(6)},Iv=l8.getWeakData,L1t=Qn.set,M1t=Qn.getterFor,V1t=f8.find,$1t=f8.findIndex,z1t=Qt([].splice),H1t=0,jv=function(t){return t.frozen||(t.frozen=new tH)},tH=function(){this.entries=[]},rS=function(t,e){return V1t(t.entries,function(r){return r[0]===e})};tH.prototype={get:function(t){var e=rS(this,t);if(e)return e[1]},has:function(t){return!!rS(this,t)},set:function(t,e){var r=rS(this,t);r?r[1]=e:this.entries.push([t,e])},delete:function(t){var e=$1t(this.entries,function(r){return r[0]===t});return~e&&z1t(this.entries,e,1),!!~e}};var Fd,eH={getConstructor:function(t,e,r,n){var o=t(function(s,l){c8(s,a),L1t(s,{type:e,id:H1t++,frozen:void 0}),l!=null&&jy(l,s[n],{that:s,AS_ENTRIES:r})}),a=o.prototype,i=M1t(e),u=function(s,l,c){var f=i(s),d=Iv(Hr(l),!0);return d===!0?jv(f).set(l,c):d[f.id]=c,s};return Iy(a,{delete:function(s){var l=i(this);if(!Ve(s))return!1;var c=Iv(s);return c===!0?jv(l).delete(s):c&&Or(c,l.id)&&delete c[l.id]},has:function(s){var l=i(this);if(!Ve(s))return!1;var c=Iv(s);return c===!0?jv(l).has(s):c&&Or(c,l.id)}}),Iy(a,r?{get:function(s){var l=i(this);if(Ve(s)){var c=Iv(s);return c===!0?jv(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}},Rv=Qn.enforce,U1t=!ct.ActiveXObject&&"ActiveXObject"in ct,rH=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},_1t=function(t,e,r){var n=t.indexOf("Map")!==-1,o=t.indexOf("Weak")!==-1,a=n?"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&&!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,b){return y(this,g===0?0:g,b),this})};if(Ty(t,!ke(i)||!(o||u.forEach&&!ze(function(){new i().entries().next()}))))s=r.getConstructor(e,t,n,a),l8.enable();else if(Ty(t,!0)){var f=new s,d=f[a](o?{}:-0,1)!=f,p=ze(function(){f.has(1)}),m=qz(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){c8(v,u);var g=function(b,E,x){var S,C;return Hc&&ke(S=E.constructor)&&S!==x&&Ve(C=S.prototype)&&C!==x.prototype&&Hc(b,C),b}(new i,v,s);return y!=null&&jy(y,g[a],{that:g,AS_ENTRIES:n}),g})).prototype=u,u.constructor=s),(p||h)&&(c("delete"),c("has"),n&&c("get")),(h||d)&&c(a),o&&u.clear&&delete u.clear}return l[t]=s,si({global:!0,forced:s!=i},l),Ny(s,t),o||r.setStrong(s,t,n),s}("WeakMap",rH,eH);if(kz&&U1t){Fd=eH.getConstructor(rH,"WeakMap",!0),l8.enable();var kd=_1t.prototype,zN=Qt(kd.delete),Lv=Qt(kd.has),HN=Qt(kd.get),UN=Qt(kd.set);Iy(kd,{delete:function(t){if(Ve(t)&&!os(t)){var e=Rv(this);return e.frozen||(e.frozen=new Fd),zN(this,t)||e.frozen.delete(t)}return zN(this,t)},has:function(t){if(Ve(t)&&!os(t)){var e=Rv(this);return e.frozen||(e.frozen=new Fd),Lv(this,t)||e.frozen.has(t)}return Lv(this,t)},get:function(t){if(Ve(t)&&!os(t)){var e=Rv(this);return e.frozen||(e.frozen=new Fd),Lv(this,t)?HN(this,t):e.frozen.get(t)}return HN(this,t)},set:function(t,e){if(Ve(t)&&!os(t)){var r=Rv(this);r.frozen||(r.frozen=new Fd),Lv(this,t)?UN(this,t,e):r.frozen.set(t,e)}else UN(this,t,e);return this}})}var Ry={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},nS=bh("span").classList,_N=nS&&nS.constructor&&nS.constructor.prototype,nH=_N===Object.prototype?void 0:_N,oS=mr("iterator"),GN=mr("toStringTag"),iS=Qd.values,oH=function(t,e){if(t){if(t[oS]!==iS)try{pi(t,oS,iS)}catch{t[oS]=iS}if(t[GN]||pi(t,GN,e),Ry[e]){for(var r in Qd)if(t[r]!==Qd[r])try{pi(t,r,Qd[r])}catch{t[r]=Qd[r]}}}};for(var aS in Ry)oH(ct[aS]&&ct[aS].prototype,aS);oH(nH,"DOMTokenList");var iH=function(t,e){var r=[][t];return!!r&&ze(function(){r.call(null,e||function(){throw 1},1)})},G1t=f8.forEach,uS=iH("forEach")?[].forEach:function(t){return G1t(this,t,arguments.length>1?arguments[1]:void 0)},aH=function(t){if(t&&t.forEach!==uS)try{pi(t,"forEach",uS)}catch{t.forEach=uS}};for(var sS in Ry)Ry[sS]&&aH(ct[sS]&&ct[sS].prototype);aH(nH);var xh,Ll,WN,lS,Ly=ct.Promise,KN=mr("species"),uH=/(?:ipad|iphone|ipod).*applewebkit/i.test(dc),ru=Vo(ct.process)=="process",eD=ct.setImmediate,YN=ct.clearImmediate,W1t=ct.process,cS=ct.Dispatch,K1t=ct.Function,XN=ct.MessageChannel,Y1t=ct.String,fS=0,Dp={};try{xh=ct.location}catch{}var d8=function(t){if(Or(Dp,t)){var e=Dp[t];delete Dp[t],e()}},dS=function(t){return function(){d8(t)}},ZN=function(t){d8(t.data)},JN=function(t){ct.postMessage(Y1t(t),xh.protocol+"//"+xh.host)};eD&&YN||(eD=function(t){var e=$z(arguments,1);return Dp[++fS]=function(){Gz(ke(t)?t:K1t(t),void 0,e)},Ll(fS),fS},YN=function(t){delete Dp[t]},ru?Ll=function(t){W1t.nextTick(dS(t))}:cS&&cS.now?Ll=function(t){cS.now(dS(t))}:XN&&!uH?(lS=(WN=new XN).port2,WN.port1.onmessage=ZN,Ll=Sh(lS.postMessage,lS)):ct.addEventListener&&ke(ct.postMessage)&&!ct.importScripts&&xh&&xh.protocol!=="file:"&&!ze(JN)?(Ll=JN,ct.addEventListener("message",ZN,!1)):Ll="onreadystatechange"in bh("script")?function(t){YC.appendChild(bh("script")).onreadystatechange=function(){YC.removeChild(this),d8(t)}}:function(t){setTimeout(dS(t),0)});var Nd,qu,Op,Yl,pS,hS,gS,QN,sH={set:eD},X1t=/ipad|iphone|ipod/i.test(dc)&&ct.Pebble!==void 0,Z1t=/web0s(?!.*chrome)/i.test(dc),J1t=J5.f,vS=sH.set,qN=ct.MutationObserver||ct.WebKitMutationObserver,tI=ct.document,eI=ct.process,Mv=ct.Promise,rI=J1t(ct,"queueMicrotask"),lH=rI&&rI.value;lH||(Nd=function(){var t,e;for(ru&&(t=eI.domain)&&t.exit();qu;){e=qu.fn,qu=qu.next;try{e()}catch(r){throw qu?Yl():Op=void 0,r}}Op=void 0,t&&t.enter()},uH||ru||Z1t||!qN||!tI?!X1t&&Mv&&Mv.resolve?((gS=Mv.resolve(void 0)).constructor=Mv,QN=Sh(gS.then,gS),Yl=function(){QN(Nd)}):ru?Yl=function(){eI.nextTick(Nd)}:(vS=Sh(vS,ct),Yl=function(){vS(Nd)}):(pS=!0,hS=tI.createTextNode(""),new qN(Nd).observe(hS,{characterData:!0}),Yl=function(){hS.data=pS=!pS}));var mS,nI,cH,oI,fH=lH||function(t){var e={fn:t,next:void 0};Op&&(Op.next=e),qu||(qu=e,Yl()),Op=e},Q1t=function(t){var e,r;this.promise=new t(function(n,o){if(e!==void 0||r!==void 0)throw TypeError("Bad Promise constructor");e=n,r=o}),this.resolve=vu(e),this.reject=vu(r)},p8={f:function(t){return new Q1t(t)}},rD=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}},q1t=typeof window=="object",dH=sH.set,tbt=mr("species"),Mi="Promise",iI=Qn.getterFor(Mi),ebt=Qn.set,rbt=Qn.getterFor(Mi),Ku=Ly&&Ly.prototype,li=Ly,Id=Ku,pH=ct.TypeError,nD=ct.document,h8=ct.process,pc=p8.f,nbt=pc,obt=!!(nD&&nD.createEvent&&ct.dispatchEvent),hH=ke(ct.PromiseRejectionEvent),gH=!1,Ap=Ty(Mi,function(){var t=W1(li),e=t!==String(li);if(!e&&mh===66)return!0;if(mh>=51&&/native code/.test(t))return!1;var r=new li(function(o){o(1)}),n=function(o){o(function(){},function(){})};return(r.constructor={})[tbt]=n,!(gH=r.then(function(){})instanceof n)||!e&&q1t&&!hH}),ibt=Ap||!qz(function(t){li.all(t).catch(function(){})}),vH=function(t){var e;return!(!Ve(t)||!ke(e=t.then))&&e},g8=function(t,e){if(!t.notified){t.notified=!0;var r=t.reactions;fH(function(){for(var n=t.value,o=t.state==1,a=0;r.length>a;){var i,u,s,l=r[a++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(t.rejection===2&&ubt(t),t.rejection=1),c===!0?i=n:(p&&p.enter(),i=c(n),p&&(p.exit(),s=!0)),i===l.promise?d(pH("Promise-chain cycle")):(u=vH(i))?Ce(u,i,f,d):f(i)):d(n)}catch(m){p&&!s&&p.exit(),d(m)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&abt(t)})}},mH=function(t,e,r){var n,o;obt?((n=nD.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),ct.dispatchEvent(n)):n={promise:e,reason:r},!hH&&(o=ct["on"+t])?o(n):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",r)},abt=function(t){Ce(dH,ct,function(){var e,r=t.facade,n=t.value;if(aI(t)&&(e=rD(function(){ru?h8.emit("unhandledRejection",n,r):mH("unhandledrejection",r,n)}),t.rejection=ru||aI(t)?2:1,e.error))throw e.value})},aI=function(t){return t.rejection!==1&&!t.parent},ubt=function(t){Ce(dH,ct,function(){var e=t.facade;ru?h8.emit("rejectionHandled",e):mH("rejectionhandled",e,t.value)})},ec=function(t,e,r){return function(n){t(e,n,r)}},hc=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,g8(t,!0))},oD=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw pH("Promise can't be resolved itself");var n=vH(e);n?fH(function(){var o={done:!1};try{Ce(n,e,ec(oD,o,t),ec(hc,o,t))}catch(a){hc(o,a,t)}}):(t.value=e,t.state=1,g8(t,!1))}catch(o){hc({done:!1},o,t)}}};if(Ap&&(Id=(li=function(t){c8(this,Id),vu(t),Ce(mS,this);var e=iI(this);try{t(ec(oD,e),ec(hc,e))}catch(r){hc(e,r)}}).prototype,(mS=function(t){ebt(this,{type:Mi,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Iy(Id,{then:function(t,e){var r=rbt(this),n=r.reactions,o=pc(Wz(this,li));return o.ok=!ke(t)||t,o.fail=ke(e)&&e,o.domain=ru?h8.domain:void 0,r.parent=!0,n[n.length]=o,r.state!=0&&g8(r,!1),o.promise},catch:function(t){return this.then(void 0,t)}}),nI=function(){var t=new mS,e=iI(t);this.promise=t,this.resolve=ec(oD,e),this.reject=ec(hc,e)},p8.f=pc=function(t){return t===li||t===cH?new nI(t):nbt(t)},ke(Ly)&&Ku!==Object.prototype)){oI=Ku.then,gH||(xo(Ku,"then",function(t,e){var r=this;return new li(function(n,o){Ce(oI,r,n,o)}).then(t,e)},{unsafe:!0}),xo(Ku,"catch",Id.catch,{unsafe:!0}));try{delete Ku.constructor}catch{}Hc&&Hc(Ku,Id)}si({global:!0,wrap:!0,forced:Ap},{Promise:li}),Ny(li,Mi,!1),function(t){var e=Gs("Promise"),r=ra.f;wi&&e&&!e[KN]&&r(e,KN,{configurable:!0,get:function(){return this}})}(),cH=Gs(Mi),si({target:Mi,stat:!0,forced:Ap},{reject:function(t){var e=pc(this);return Ce(e.reject,void 0,t),e.promise}}),si({target:Mi,stat:!0,forced:Ap},{resolve:function(t){return function(e,r){if(Hr(e),Ve(r)&&r.constructor===e)return r;var n=p8.f(e);return(0,n.resolve)(r),n.promise}(this,t)}}),si({target:Mi,stat:!0,forced:ibt},{all:function(t){var e=this,r=pc(e),n=r.resolve,o=r.reject,a=rD(function(){var i=vu(e.resolve),u=[],s=0,l=1;jy(t,function(c){var f=s++,d=!1;l++,Ce(i,e,c).then(function(p){d||(d=!0,u[f]=p,--l||n(u))},o)}),--l||n(u)});return a.error&&o(a.value),r.promise},race:function(t){var e=this,r=pc(e),n=r.reject,o=rD(function(){var a=vu(e.resolve);jy(t,function(i){Ce(a,e,i).then(r.resolve,n)})});return o.error&&n(o.value),r.promise}});var sbt=pg.PROPER,iD=RegExp.prototype,yH=iD.toString,lbt=Qt(zz),cbt=ze(function(){return yH.call({source:"a",flags:"b"})!="/a/b"}),fbt=sbt&&yH.name!="toString";(cbt||fbt)&&xo(RegExp.prototype,"toString",function(){var t=Hr(this),e=eu(t.source),r=t.flags;return"/"+e+"/"+eu(r===void 0&&vh(iD,t)&&!("flags"in iD)?lbt(t):r)},{unsafe:!0});var dbt=pg.EXISTS,pbt=ra.f,bH=Function.prototype,hbt=Qt(bH.toString),wH=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,gbt=Qt(wH.exec);wi&&!dbt&&pbt(bH,"name",{configurable:!0,get:function(){try{return gbt(wH,hbt(this))[1]}catch{return""}}});var uI=new WeakMap;function EH(t){return t.getMenuConfig("uploadImage")}function vbt(t,e){return a8(this,void 0,void 0,function(){return u8(this,function(r){return[2,new Promise(function(n){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;ms(t,i,e.name,u),n("ok")}}})]})})}function mbt(t,e){return a8(this,void 0,void 0,function(){var r,n,o,a;return u8(this,function(i){switch(i.label){case 0:return r=function(u){var s=uI.get(u);if(s!=null)return s;var l=EH(u),c=l.onSuccess,f=l.onProgress,d=l.onFailed,p=l.customInsert,m=l.onError;return s=QL(Fy(Fy({},l),{onProgress:function(h){u.showProgressBar(h),f&&f(h)},onSuccess:function(h,v){if(p)return p(v,function(k,M,$){return ms(u,k,M,$)}),void c(h,v);var y=v.errno,g=y===void 0?1:y,b=v.data,E=b===void 0?{}:b;if(g===0){if(Array.isArray(E))E.forEach(function(k){var M=k.url,$=M===void 0?"":M,N=k.alt,j=N===void 0?"":N,_=k.href;ms(u,$,j,_===void 0?"":_)});else{var x=E.url,S=x===void 0?"":x,C=E.alt,T=C===void 0?"":C,A=E.href;ms(u,S,T,A===void 0?"":A)}c(h,v)}else d(h,v)},onError:function(h,v,y){m(h,v,y)}})),uI.set(u,s),s}(t),n=e.name,o=e.type,a=e.size,r.addFile({name:n,type:o,size:a,data:e}),[4,r.upload()];case 1:return i.sent(),[2]}})})}function SH(t,e){var r,n;return a8(this,void 0,void 0,function(){var o,a,i,u,s,l,c,f,d;return u8(this,function(p){switch(p.label){case 0:if(e==null)return[2];o=Array.prototype.slice.call(e),a=EH(t),i=a.customUpload,u=a.base64LimitSize,p.label=1;case 1:p.trys.push([1,11,12,17]),s=l1t(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,vbt(t,c)]:[3,5]);case 4:return p.sent(),[3,9];case 5:return i?[4,i(c,function(m,h,v){return ms(t,m,h,v)})]:[3,7];case 6:return p.sent(),[3,9];case 7:return[4,mbt(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(),r={error:d},[3,17];case 12:return p.trys.push([12,,15,16]),l&&!l.done&&(n=s.return)?[4,n.call(s)]:[3,14];case 13:p.sent(),p.label=14;case 14:return[3,16];case 15:if(r)throw r.error;return[7];case 16:return[7];case 17:return[2]}})})}var ybt=Qt([].join),bbt=_5!=Object,wbt=iH("join",",");si({target:"Array",proto:!0,forced:bbt||!wbt},{join:function(t){return ybt(xu(this),t===void 0?",":t)}}),yo&&(F.fn.append=yo),mi&&(F.fn.on=mi),Ac&&(F.fn.remove=Ac),vi&&(F.fn.val=vi),u7&&(F.fn.click=u7),xc&&(F.fn.hide=xc);var Ebt=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 x1(e)},t.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadImage")},t.prototype.exec=function(e,r){var n=this.getMenuConfig(e),o=n.allowedFileTypes,a=o===void 0?[]:o,i=n.customBrowseAndUpload;if(i)i(function(c,f,d){return ms(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;SH(e,c)})}},t}(),Sbt={menus:[{key:"uploadImage",factory:function(){return new Ebt},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,r){console.error("'"+t.name+"' upload error",r)},base64LimitSize:0}}],editorPlugin:function(t){var e=t.insertData,r=t;return r.insertData=function(n){if(x1(r))e(n);else if(n.getData("text/plain"))e(n);else{var o=n.files;o.length<=0?e(n):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"})?SH(t,o):e(n)}},r}};Pn("en",{highLightModule:{selectLang:"Language"}}),Pn("zh-CN",{highLightModule:{selectLang:"选择语言"}});var My=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function v8(t){var e={exports:{}};return t(e,e.exports),e.exports}var Ea,x0,Vv=function(t){return t&&t.Math==Math&&t},re=Vv(typeof globalThis=="object"&&globalThis)||Vv(typeof window=="object"&&window)||Vv(typeof self=="object"&&self)||Vv(typeof My=="object"&&My)||function(){return this}()||Function("return this")(),xbt=Object.defineProperty,m8=function(t,e){try{xbt(re,t,{value:e,configurable:!0,writable:!0})}catch{re[t]=e}return e},nu=re["__core-js_shared__"]||m8("__core-js_shared__",{}),y8=v8(function(t){(t.exports=function(e,r){return nu[e]||(nu[e]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),xH=Function.prototype,aD=xH.bind,uD=xH.call,Cbt=aD&&aD.bind(uD),Ee=aD?function(t){return t&&Cbt(uD,t)}:function(t){return t&&function(){return uD.apply(t,arguments)}},Dbt=re.TypeError,Uc=function(t){if(t==null)throw Dbt("Can't call method on "+t);return t},Obt=re.Object,b8=function(t){return Obt(Uc(t))},Abt=Ee({}.hasOwnProperty),go=Object.hasOwn||function(t,e){return Abt(b8(t),e)},Tbt=0,Bbt=Math.random(),Pbt=Ee(1 .toString),CH=function(t){return"Symbol("+(t===void 0?"":t)+")_"+Pbt(++Tbt+Bbt,36)},gn=function(t){return typeof t=="function"},Fbt=function(t){return gn(t)?t:void 0},vg=function(t,e){return arguments.length<2?Fbt(re[t]):re[t]&&re[t][e]},yS=vg("navigator","userAgent")||"",sI=re.process,lI=re.Deno,cI=sI&&sI.versions||lI&&lI.version,fI=cI&&cI.v8;fI&&(x0=(Ea=fI.split("."))[0]>0&&Ea[0]<4?1:+(Ea[0]+Ea[1])),!x0&&yS&&(!(Ea=yS.match(/Edge\/(\d+)/))||Ea[1]>=74)&&(Ea=yS.match(/Chrome\/(\d+)/))&&(x0=+Ea[1]);var dI=x0,Vr=function(t){try{return!!t()}catch{return!0}},sD=!!Object.getOwnPropertySymbols&&!Vr(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&dI&&dI<41}),w8=sD&&!Symbol.sham&&typeof Symbol.iterator=="symbol",jd=y8("wks"),Bs=re.Symbol,pI=Bs&&Bs.for,kbt=w8?Bs:Bs&&Bs.withoutSetter||CH,Cu=function(t){if(!go(jd,t)||!sD&&typeof jd[t]!="string"){var e="Symbol."+t;sD&&go(Bs,t)?jd[t]=Bs[t]:jd[t]=w8&&pI?pI(e):kbt(e)}return jd[t]},DH={};DH[Cu("toStringTag")]="z";var E8=String(DH)==="[object z]",Ei=!Vr(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),zi=function(t){return typeof t=="object"?t!==null:gn(t)},lD=re.document,Nbt=zi(lD)&&zi(lD.createElement),S8=function(t){return Nbt?lD.createElement(t):{}},OH=!Ei&&!Vr(function(){return Object.defineProperty(S8("div"),"a",{get:function(){return 7}}).a!=7}),Ibt=re.String,jbt=re.TypeError,$o=function(t){if(zi(t))return t;throw jbt(Ibt(t)+" is not an object")},Rd=Function.prototype.call,Lr=Rd.bind?Rd.bind(Rd):function(){return Rd.apply(Rd,arguments)},AH=Ee({}.isPrototypeOf),Rbt=re.Object,bS=w8?function(t){return typeof t=="symbol"}:function(t){var e=vg("Symbol");return gn(e)&&AH(e.prototype,Rbt(t))},Lbt=re.String,TH=function(t){try{return Lbt(t)}catch{return"Object"}},Mbt=re.TypeError,BH=function(t){if(gn(t))return t;throw Mbt(TH(t)+" is not a function")},PH=function(t,e){var r=t[e];return r==null?void 0:BH(r)},Vbt=re.TypeError,$bt=re.TypeError,zbt=Cu("toPrimitive"),x8=function(t){var e=function(r,n){if(!zi(r)||bS(r))return r;var o,a=PH(r,zbt);if(a){if(o=Lr(a,r,n),!zi(o)||bS(o))return o;throw $bt("Can't convert object to primitive value")}return function(i,u){var s,l;if(gn(s=i.toString)&&!zi(l=Lr(s,i))||gn(s=i.valueOf)&&!zi(l=Lr(s,i)))return l;throw Vbt("Can't convert object to primitive value")}(r)}(t,"string");return bS(e)?e:e+""},Hbt=re.TypeError,hI=Object.defineProperty,X1={f:Ei?hI:function(t,e,r){if($o(t),e=x8(e),$o(r),OH)try{return hI(t,e,r)}catch{}if("get"in r||"set"in r)throw Hbt("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},C8=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},_c=Ei?function(t,e,r){return X1.f(t,e,C8(1,r))}:function(t,e,r){return t[e]=r,t},Ubt=Ee(Function.toString);gn(nu.inspectSource)||(nu.inspectSource=function(t){return Ubt(t)});var cD,Vy,fD,D8=nu.inspectSource,gI=re.WeakMap,_bt=gn(gI)&&/native code/.test(D8(gI)),vI=y8("keys"),FH=function(t){return vI[t]||(vI[t]=CH(t))},O8={},mI=re.TypeError,Gbt=re.WeakMap;if(_bt||nu.state){var zu=nu.state||(nu.state=new Gbt),Wbt=Ee(zu.get),yI=Ee(zu.has),Kbt=Ee(zu.set);cD=function(t,e){if(yI(zu,t))throw new mI("Object already initialized");return e.facade=t,Kbt(zu,t,e),e},Vy=function(t){return Wbt(zu,t)||{}},fD=function(t){return yI(zu,t)}}else{var Ml=FH("state");O8[Ml]=!0,cD=function(t,e){if(go(t,Ml))throw new mI("Object already initialized");return e.facade=t,_c(t,Ml,e),e},Vy=function(t){return go(t,Ml)?t[Ml]:{}},fD=function(t){return go(t,Ml)}}var dD={get:Vy,enforce:function(t){return fD(t)?Vy(t):cD(t,{})}},kH=Function.prototype,Ybt=Ei&&Object.getOwnPropertyDescriptor,bI=go(kH,"name"),NH={PROPER:bI&&(function(){}).name==="something",CONFIGURABLE:bI&&(!Ei||Ei&&Ybt(kH,"name").configurable)},Ch=v8(function(t){var e=NH.CONFIGURABLE,r=dD.get,n=dD.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;gn(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!go(u,"name")||e&&u.name!==p)&&_c(u,"name",p),(l=n(u)).source||(l.source=o.join(typeof p=="string"?p:""))),a!==re?(c?!d&&a[i]&&(f=!0):delete a[i],f?a[i]=u:_c(a,i,u)):f?a[i]=u:m8(i,u)})(Function.prototype,"toString",function(){return gn(this)&&r(this).source||D8(this)})}),Xbt=Ee({}.toString),Zbt=Ee("".slice),ou=function(t){return Zbt(Xbt(t),8,-1)},Jbt=Cu("toStringTag"),Qbt=re.Object,qbt=ou(function(){return arguments}())=="Arguments",A8=E8?ou:function(t){var e,r,n;return t===void 0?"Undefined":t===null?"Null":typeof(r=function(o,a){try{return o[a]}catch{}}(e=Qbt(t),Jbt))=="string"?r:qbt?ou(e):(n=ou(e))=="Object"&&gn(e.callee)?"Arguments":n},t2t=E8?{}.toString:function(){return"[object "+A8(this)+"]"};E8||Ch(Object.prototype,"toString",t2t,{unsafe:!0});var wI,EI={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},wS=S8("span").classList,SI=wS&&wS.constructor&&wS.constructor.prototype,e2t=SI===Object.prototype?void 0:SI,xI=Ee(Ee.bind),ES=re.Object,r2t=Ee("".split),T8=Vr(function(){return!ES("z").propertyIsEnumerable(0)})?function(t){return ou(t)=="String"?r2t(t,""):ES(t)}:ES,n2t=Math.ceil,o2t=Math.floor,B8=function(t){var e=+t;return e!=e||e===0?0:(e>0?o2t:n2t)(e)},i2t=Math.min,IH=function(t){return t>0?i2t(B8(t),9007199254740991):0},P8=function(t){return IH(t.length)},CI=Array.isArray||function(t){return ou(t)=="Array"},jH=function(){},a2t=[],RH=vg("Reflect","construct"),F8=/^\s*(?:class|function)\b/,u2t=Ee(F8.exec),s2t=!F8.exec(jH),Ld=function(t){if(!gn(t))return!1;try{return RH(jH,a2t,t),!0}catch{return!1}},LH=!RH||Vr(function(){var t;return Ld(Ld.call)||!Ld(Object)||!Ld(function(){t=!0})||t})?function(t){if(!gn(t))return!1;switch(A8(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return s2t||!!u2t(F8,D8(t))}:Ld,l2t=Cu("species"),DI=re.Array,c2t=function(t,e){return new(function(r){var n;return CI(r)&&(n=r.constructor,(LH(n)&&(n===DI||CI(n.prototype))||zi(n)&&(n=n[l2t])===null)&&(n=void 0)),n===void 0?DI:n}(t))(e===0?0:e)},OI=Ee([].push),Sa=function(t){var e=t==1,r=t==2,n=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=b8(s),h=T8(m),v=function(x,S){return BH(x),S===void 0?x:xI?xI(x,S):function(){return x.apply(S,arguments)}}(l,c),y=P8(h),g=0,b=f||c2t,E=e?b(s,y):r||i?b(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:OI(E,d)}else switch(t){case 4:return!1;case 7:OI(E,d)}return a?-1:n||o?o:E}},f2t=[Sa(0),Sa(1),Sa(2),Sa(3),Sa(4),Sa(5),Sa(6),Sa(7)][0],SS=(wI=[].forEach)&&Vr(function(){wI.call(null,function(){throw 1},1)})?[].forEach:function(t){return f2t(this,t,arguments.length>1?arguments[1]:void 0)},MH=function(t){if(t&&t.forEach!==SS)try{_c(t,"forEach",SS)}catch{t.forEach=SS}};for(var xS in EI)EI[xS]&&MH(re[xS]&&re[xS].prototype);MH(e2t);var AI={}.propertyIsEnumerable,TI=Object.getOwnPropertyDescriptor,VH={f:TI&&!AI.call({1:2},1)?function(t){var e=TI(this,t);return!!e&&e.enumerable}:AI},Z1=function(t){return T8(Uc(t))},BI=Object.getOwnPropertyDescriptor,$H={f:Ei?BI:function(t,e){if(t=Z1(t),e=x8(e),OH)try{return BI(t,e)}catch{}if(go(t,e))return C8(!Lr(VH.f,t,e),t[e])}},d2t=Math.max,p2t=Math.min,pD=function(t,e){var r=B8(t);return r<0?d2t(r+e,0):p2t(r,e)},h2t=function(t){return function(e,r,n){var o,a=Z1(e),i=P8(a),u=pD(n,i);if(t&&r!=r){for(;i>u;)if((o=a[u++])!=o)return!0}else for(;i>u;u++)if((t||u in a)&&a[u]===r)return t||u||0;return!t&&-1}},g2t=h2t(!1),PI=Ee([].push),zH=function(t,e){var r,n=Z1(t),o=0,a=[];for(r in n)!go(O8,r)&&go(n,r)&&PI(a,r);for(;e.length>o;)go(n,r=e[o++])&&(~g2t(a,r)||PI(a,r));return a},$y=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],v2t=$y.concat("length","prototype"),m2t={f:Object.getOwnPropertyNames||function(t){return zH(t,v2t)}},HH={f:Object.getOwnPropertySymbols},y2t=Ee([].concat),b2t=vg("Reflect","ownKeys")||function(t){var e=m2t.f($o(t)),r=HH.f;return r?y2t(e,r(t)):e},w2t=function(t,e){for(var r=b2t(e),n=X1.f,o=$H.f,a=0;a<r.length;a++){var i=r[a];go(t,i)||n(t,i,o(e,i))}},E2t=/#|\.prototype\./,mg=function(t,e){var r=x2t[S2t(t)];return r==D2t||r!=C2t&&(gn(e)?Vr(e):!!e)},S2t=mg.normalize=function(t){return String(t).replace(E2t,".").toLowerCase()},x2t=mg.data={},C2t=mg.NATIVE="N",D2t=mg.POLYFILL="P",O2t=mg,A2t=$H.f,J1=function(t,e){var r,n,o,a,i,u=t.target,s=t.global,l=t.stat;if(r=s?re:l?re[u]||m8(u,{}):(re[u]||{}).prototype)for(n in e){if(a=e[n],o=t.noTargetGet?(i=A2t(r,n))&&i.value:r[n],!O2t(s?n:u+(l?".":"#")+n,t.forced)&&o!==void 0){if(typeof a==typeof o)continue;w2t(a,o)}(t.sham||o&&o.sham)&&_c(a,"sham",!0),Ch(r,n,a,t)}},C0=Object.keys||function(t){return zH(t,$y)},Vl=Object.assign,FI=Object.defineProperty,T2t=Ee([].concat),kI=!Vl||Vr(function(){if(Ei&&Vl({b:1},Vl(FI({},"a",{enumerable:!0,get:function(){FI(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach(function(o){e[o]=o}),Vl({},t)[r]!=7||C0(Vl({},e)).join("")!=n})?function(t,e){for(var r=b8(t),n=arguments.length,o=1,a=HH.f,i=VH.f;n>o;)for(var u,s=T8(arguments[o++]),l=a?T2t(C0(s),a(s)):C0(s),c=l.length,f=0;c>f;)u=l[f++],Ei&&!Lr(i,s,u)||(r[u]=s[u]);return r}:Vl;J1({target:"Object",stat:!0,forced:Object.assign!==kI},{assign:kI});var NI=v8(function(t){var e=function(r){var n=/\blang(?:uage)?-([\w-]+)\b/i,o=0,a={},i={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.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,"&").replace(/</g,"<").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 b,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 b={},g[E]=b,y)y.hasOwnProperty(x)&&(b[x]=v(y[x],g));return b;case"Array":return E=i.util.objId(y),g[E]?g[E]:(b=[],g[E]=b,y.forEach(function(S,C){b[C]=v(S,g)}),b);default:return y}},getLanguage:function(v){for(;v&&!n.test(v.className);)v=v.parentElement;return v?(v.className.match(n)||[,"none"])[1].toLowerCase():"none"},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(b){var v=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(b.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 b="no-"+y;v;){var E=v.classList;if(E.contains(y))return!0;if(E.contains(b))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 b in y)g[b]=y[b];return g},insertBefore:function(v,y,g,b){var E=(b=b||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=b[v];return b[v]=x,i.languages.DFS(i.languages,function(A,k){k===T&&A!=v&&(this[A]=x)}),x},DFS:function v(y,g,b,E){E=E||{};var x=i.util.objId;for(var S in y)if(y.hasOwnProperty(S)){g.call(y,S,y[S],b||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 b={callback:g,container:v,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};i.hooks.run("before-highlightall",b),b.elements=Array.prototype.slice.apply(b.container.querySelectorAll(b.selector)),i.hooks.run("before-all-elements-highlight",b);for(var E,x=0;E=b.elements[x++];)i.highlightElement(E,y===!0,b.callback)},highlightElement:function(v,y,g){var b=i.util.getLanguage(v),E=i.languages[b];v.className=v.className.replace(n,"").replace(/\s+/g," ")+" language-"+b;var x=v.parentElement;x&&x.nodeName.toLowerCase()==="pre"&&(x.className=x.className.replace(n,"").replace(/\s+/g," ")+" language-"+b);var S={element:v,language:b,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&&r.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 b={code:v,grammar:y,language:g};return i.hooks.run("before-tokenize",b),b.tokens=i.tokenize(b.code,b.grammar),i.hooks.run("after-tokenize",b),u.stringify(i.util.encode(b.tokens),b.language)},tokenize:function(v,y){var g=y.rest;if(g){for(var b in g)y[b]=g[b];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 b,E=0;b=g[E++];)b(y)}},Token:u};function u(v,y,g,b){this.type=v,this.content=y,this.alias=g,this.length=0|(b||"").length}function s(v,y,g,b){v.lastIndex=y;var E=v.exec(g);if(E&&b&&E[1]){var x=E[1].length;E.index+=x,E[0]=E[0].slice(x)}return E}function l(v,y,g,b,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,$=!!A.greedy,N=A.alias;if($&&!A.pattern.global){var j=A.pattern.toString().match(/[imsuy]*$/)[0];A.pattern=RegExp(A.pattern.source,j+"g")}for(var _=A.pattern||A,V=b.next,Z=E;V!==y.tail&&!(x&&Z>=x.reach);Z+=V.value.length,V=V.next){var nt=V.value;if(y.length>v.length)return;if(!(nt instanceof u)){var it,G=1;if($){if(!(it=s(_,Z,v,M)))break;var O=it.index,B=it.index+it[0].length,I=Z;for(I+=V.value.length;O>=I;)I+=(V=V.next).value.length;if(Z=I-=V.value.length,V.value instanceof u)continue;for(var K=V;K!==y.tail&&(I<B||typeof K.value=="string");K=K.next)G++,I+=K.value.length;G--,nt=v.slice(Z,I),it.index-=Z}else if(!(it=s(_,0,nt,M)))continue;O=it.index;var et=it[0],Y=nt.slice(0,O),ot=nt.slice(O+et.length),mt=Z+nt.length;x&&mt>x.reach&&(x.reach=mt);var bt=V.prev;if(Y&&(bt=f(y,bt,Y),Z+=Y.length),d(y,bt,G),V=f(y,bt,new u(S,k?i.tokenize(et,k):et,N,et)),ot&&f(y,V,ot),G>1){var Pt={cause:S+","+T,reach:mt};l(v,y,g,V.prev,Z,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 b=y.next,E={value:g,prev:y,next:b};return y.next=E,b.prev=E,v.length++,E}function d(v,y,g){for(var b=y.next,E=0;E<g&&b!==v.tail;E++)b=b.next;y.next=b,b.prev=y,v.length-=E}if(r.Prism=i,u.stringify=function v(y,g){if(typeof y=="string")return y;if(Array.isArray(y)){var b="";return y.forEach(function(T){b+=v(T,g)}),b}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,""")+'"';return"<"+E.tag+' class="'+E.classes.join(" ")+'"'+S+">"+E.content+"</"+E.tag+">"},!r.document)return r.addEventListener&&(i.disableWorkerMessageHandler||r.addEventListener("message",function(v){var y=JSON.parse(v.data),g=y.language,b=y.code,E=y.immediateClose;r.postMessage(i.highlight(b,i.languages[g],g)),E&&r.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),My!==void 0&&(My.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(r){r.type==="entity"&&(r.attributes.title=r.content.replace(/&/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(r,n){var o={};o["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:e.languages[n]},o.cdata=/^<!\[CDATA\[|\]\]>$/i;var a={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:o}};a["language-"+n]={pattern:/[\s\S]+/,inside:e.languages[n]};var i={};i[r]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return r}),"i"),lookbehind:!0,greedy:!0,inside:a},e.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(r,n){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+r+")"+/\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:[n,"language-"+n],inside:e.languages[n]},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(r){var n=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;r.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\\((?:"+n.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+n.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+n.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:n,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:/[(){};:,]/},r.languages.css.atrule.inside.rest=r.languages.css;var o=r.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 r={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},n="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(n,"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=r[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(n,"loaded"),c.textContent=h.responseText,e.highlightElement(c)):(l.setAttribute(n,"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),r=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,n=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function a(s,l){return s=s.replace(/<S>/g,function(){return r}).replace(/<BRACES>/g,function(){return n}).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(/&/,"&"))}),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(t,e){var r={};r["language-"+e]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[e]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var n={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};n["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:n},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]*?\*\/|\/\/.*|#(?!\[).*/,r=[{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*\()/],n=/\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:r,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:n,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:r,number:n,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://,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/,r=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,n={pattern:RegExp(r+/[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":[n,{pattern:RegExp(r+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:n.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":n,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/,r=/\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 r})+")"),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(K,et){return"(?:"+I[+et]+")"})}function r(B,I,K){return RegExp(e(B,I),"")}function n(B,I){for(var K=0;K<I;K++)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=n(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),m=n(/\((?:[^()]|<<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,b=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:r(/(^|[^$\\])<<0>>/.source,[k]),lookbehind:!0,greedy:!0},{pattern:r(/(^|[^@$\\])<<0>>/.source,[A]),lookbehind:!0,greedy:!0},{pattern:RegExp(T),greedy:!0,alias:"character"}],"class-name":[{pattern:r(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[y]),lookbehind:!0,inside:C},{pattern:r(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[h,S]),lookbehind:!0,inside:C},{pattern:r(/(\busing\s+)<<0>>(?=\s*=)/.source,[h]),lookbehind:!0},{pattern:r(/(\b<<0>>\s+)<<1>>/.source,[l,v]),lookbehind:!0,inside:C},{pattern:r(/(\bcatch\s*\(\s*)<<0>>/.source,[y]),lookbehind:!0,inside:C},{pattern:r(/(\bwhere\s+)<<0>>/.source,[h]),lookbehind:!0},{pattern:r(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[b]),lookbehind:!0,inside:C},{pattern:r(/\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:r(/([(,]\s*)<<0>>(?=\s*:)/.source,[h]),lookbehind:!0,alias:"punctuation"}}),t.languages.insertBefore("csharp","class-name",{namespace:{pattern:r(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[h]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:r(/(\b(?:default|typeof|sizeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[m]),lookbehind:!0,alias:"class-name",inside:C},"return-type":{pattern:r(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[S,y]),inside:C,alias:"class-name"},"constructor-invocation":{pattern:r(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[S]),lookbehind:!0,inside:C,alias:"class-name"},"generic-method":{pattern:r(/<<0>>\s*<<1>>(?=\s*\()/.source,[h,p]),inside:{function:r(/^<<0>>/.source,[h]),generic:{pattern:RegExp(p),alias:"class-name",inside:C}}},"type-list":{pattern:r(/\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:r(/(^(?!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,$=e(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[M]),N=n(e(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[$]),2),j=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,_=e(/<<0>>(?:\s*\(<<1>>*\))?/.source,[y,N]);t.languages.insertBefore("csharp","class-name",{attribute:{pattern:r(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[j,_]),lookbehind:!0,greedy:!0,inside:{target:{pattern:r(/^<<0>>(?=\s*:)/.source,[j]),alias:"keyword"},"attribute-arguments":{pattern:r(/\(<<0>>*\)/.source,[N]),inside:t.languages.csharp},"class-name":{pattern:RegExp(y),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var V=/:[^}\r\n]+/.source,Z=n(e(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[$]),2),nt=e(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[Z,V]),it=n(e(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[M]),2),G=e(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[it,V]);function O(B,I){return{interpolation:{pattern:r(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[B]),lookbehind:!0,inside:{"format-string":{pattern:r(/(^\{(?:(?![}:])<<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:r(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[nt]),lookbehind:!0,greedy:!0,inside:O(nt,Z)},{pattern:r(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[G]),lookbehind:!0,greedy:!0,inside:O(G,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",r={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},n={bash:r,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:n},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:r}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:n},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:n.entity}}],environment:{pattern:RegExp("\\$?"+e),alias:"constant"},variable:n.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}},r.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=n.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 r(l){return l=l.replace(/<inner>/g,function(){return e}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+l+")")}var n=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return n}),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(n),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(n),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:r(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:r(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:r(/(~~?)(?:(?!~)<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:r(/!?\[(?:(?!\])<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(b,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]||b})}(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 r=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;e==="$"&&(r=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),t.content=t.content.replace(/</g,"<").replace(/&/g,"&"),t.content=Prism.highlight(t.content,{expression:{pattern:r,lookbehind:!0,inside:Prism.languages.groovy}}),t.classes.push(e==="/"?"regex":"gstring")}}});var B2t=["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 UH(t){return typeof t=="string"?t.length:typeof t.content=="string"?t.content.length:t.content.reduce(function(e,r){return e+UH(r)},0)}var $v,P2t=re.String,Wi=function(t){if(A8(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return P2t(t)},_H=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},k8=re.RegExp,hD=Vr(function(){var t=k8("a","y");return t.lastIndex=2,t.exec("abcd")!=null});hD||Vr(function(){return!k8("a","y").sticky});var GH={BROKEN_CARET:hD||Vr(function(){var t=k8("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),UNSUPPORTED_Y:hD},F2t=Ei?Object.defineProperties:function(t,e){$o(t);for(var r,n=Z1(e),o=C0(e),a=o.length,i=0;a>i;)X1.f(t,r=o[i++],n[r]);return t},k2t=vg("document","documentElement"),WH=FH("IE_PROTO"),CS=function(){},KH=function(t){return"<script>"+t+"<\/script>"},II=function(t){t.write(KH("")),t.close();var e=t.parentWindow.Object;return t=null,e},D0=function(){try{$v=new ActiveXObject("htmlfile")}catch{}var t,e;D0=typeof document<"u"?document.domain&&$v?II($v):((e=S8("iframe")).style.display="none",k2t.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(KH("document.F=Object")),t.close(),t.F):II($v);for(var r=$y.length;r--;)delete D0.prototype[$y[r]];return D0()};O8[WH]=!0;var jI,DS,N2t=Object.create||function(t,e){var r;return t!==null?(CS.prototype=$o(t),r=new CS,CS.prototype=null,r[WH]=t):r=D0(),e===void 0?r:F2t(r,e)},I2t=re.RegExp,j2t=Vr(function(){var t=I2t(".","s");return!(t.dotAll&&t.exec(`
|
|
179
|
+
`)&&t.flags==="s")}),R2t=re.RegExp,L2t=Vr(function(){var t=R2t("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),M2t=dD.get,V2t=y8("native-string-replace",String.prototype.replace),zy=RegExp.prototype.exec,gD=zy,$2t=Ee("".charAt),z2t=Ee("".indexOf),H2t=Ee("".replace),OS=Ee("".slice),AS=(DS=/b*/g,Lr(zy,jI=/a/,"a"),Lr(zy,DS,"a"),jI.lastIndex!==0||DS.lastIndex!==0),RI=GH.BROKEN_CARET,TS=/()??/.exec("")[1]!==void 0;(AS||TS||RI||j2t||L2t)&&(gD=function(t){var e,r,n,o,a,i,u,s=this,l=M2t(s),c=Wi(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=Lr(gD,f,c),s.lastIndex=f.lastIndex,e;var d=l.groups,p=RI&&s.sticky,m=Lr(_H,s),h=s.source,v=0,y=c;if(p&&(m=H2t(m,"y",""),z2t(m,"g")===-1&&(m+="g"),y=OS(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&$2t(c,s.lastIndex-1)!==`
|
|
180
|
+
`)&&(h="(?: "+h+")",y=" "+y,v++),r=new RegExp("^(?:"+h+")",m)),TS&&(r=new RegExp("^"+h+"$(?!\\s)",m)),AS&&(n=s.lastIndex),o=Lr(zy,p?r:s,y),p?o?(o.input=OS(o.input,v),o[0]=OS(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:AS&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),TS&&o&&o.length>1&&Lr(V2t,o[0],r,function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(o[a]=void 0)}),o&&d)for(o.groups=i=N2t(null),a=0;a<d.length;a++)i[(u=d[a])[0]]=o[u[1]];return o});var Dh=gD;J1({target:"RegExp",proto:!0,forced:/./.exec!==Dh},{exec:Dh});var N8=Function.prototype,LI=N8.apply,U2t=N8.bind,MI=N8.call,_2t=typeof Reflect=="object"&&Reflect.apply||(U2t?MI.bind(LI):function(){return MI.apply(LI,arguments)}),G2t=Cu("species"),BS=RegExp.prototype,W2t=Cu("match"),K2t=re.TypeError,Y2t=Cu("species"),X2t=Ee("".charAt),VI=Ee("".charCodeAt),Z2t=Ee("".slice),J2t=function(t){return function(e,r){var n,o,a=Wi(Uc(e)),i=B8(r),u=a.length;return i<0||i>=u?t?"":void 0:(n=VI(a,i))<55296||n>56319||i+1===u||(o=VI(a,i+1))<56320||o>57343?t?X2t(a,i):n:t?Z2t(a,i,i+2):o-56320+(n-55296<<10)+65536}},Q2t=J2t(!0),q2t=function(t,e,r){return e+(r?Q2t(t,e).length:1)},twt=re.Array,ewt=Math.max,$I=function(t,e,r){for(var n,o,a,i,u=P8(t),s=pD(e,u),l=pD(r===void 0?u:r,u),c=twt(ewt(l-s,0)),f=0;s<l;s++,f++)n=c,o=f,a=t[s],(i=x8(o))in n?X1.f(n,i,C8(0,a)):n[i]=a;return c.length=f,c},rwt=re.TypeError,zI=function(t,e){var r=t.exec;if(gn(r)){var n=Lr(r,t,e);return n!==null&&$o(n),n}if(ou(t)==="RegExp")return Lr(Dh,t,e);throw rwt("RegExp#exec called on incompatible receiver")},$l=GH.UNSUPPORTED_Y,nwt=Math.min,YH=[].push,owt=Ee(/./.exec),zl=Ee(YH),Md=Ee("".slice);(function(t,e,r,n){var o=Cu(t),a=!Vr(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),i=a&&!Vr(function(){var l=!1,c=/a/;return(c={}).constructor={},c.constructor[G2t]=function(){return c},c.flags="",c[o]=/./[o],c.exec=function(){return l=!0,null},c[o](""),!l});if(!a||!i||r){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=Wi(Uc(this)),g=m===void 0?4294967295:m>>>0;if(g===0)return[];if(p===void 0)return[y];if(!zi(h=p)||!((v=h[W2t])!==void 0?v:ou(h)=="RegExp"))return Lr(c,y,p,g);for(var b,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");(b=Lr(Dh,A,y))&&!((E=A.lastIndex)>T&&(zl(S,Md(y,T,b.index)),b.length>1&&b.index<y.length&&_2t(YH,S,$I(b,1)),x=b[0].length,T=E,S.length>=g));)A.lastIndex===b.index&&A.lastIndex++;return T===y.length?!x&&owt(A,"")||zl(S,""):zl(S,Md(y,T)),S.length>g?$I(S,0,g):S}:"0".split(void 0,0).length?function(p,m){return p===void 0&&m===0?[]:Lr(c,this,p,m)}:c,[function(p,m){var h=Uc(this),v=p==null?void 0:PH(p,l);return v?Lr(v,p,h,m):Lr(d,Wi(h),p,m)},function(p,m){var h=$o(this),v=Wi(p),y=f(d,h,v,m,d!==c);if(y.done)return y.value;var g=function(N,j){var _,V=$o(N).constructor;return V===void 0||(_=$o(V)[Y2t])==null?j:function(Z){if(LH(Z))return Z;throw K2t(TH(Z)+" is not a constructor")}(_)}(h,RegExp),b=h.unicode,E=(h.ignoreCase?"i":"")+(h.multiline?"m":"")+(h.unicode?"u":"")+($l?"g":"y"),x=new g($l?"^(?:"+h.source+")":h,E),S=m===void 0?4294967295:m>>>0;if(S===0)return[];if(v.length===0)return zI(x,v)===null?[v]:[];for(var C=0,T=0,A=[];T<v.length;){x.lastIndex=$l?0:T;var k,M=zI(x,$l?Md(v,T):v);if(M===null||(k=nwt(IH(x.lastIndex+($l?T:0)),v.length))===C)T=q2t(v,T,b);else{if(zl(A,Md(v,C,T)),A.length===S)return A;for(var $=1;$<=M.length-1;$++)if(zl(A,M[$]),A.length===S)return A;T=C=k}}return zl(A,Md(v,C)),A}]}(o,""[t],function(l,c,f,d,p){var m=Ee(l),h=c.exec;return h===Dh||h===BS.exec?a&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:m(f,c,d)}:{done:!1}});Ch(String.prototype,t,s[0]),Ch(BS,o,s[1])}n&&_c(BS[o],"sham",!0)})("split",0,!!Vr(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return r.length!==2||r[0]!=="a"||r[1]!=="b"}),$l),J1({global:!0},{globalThis:re}),mo&&(F.fn.attr=mo);var iwt=NH.PROPER,vD=RegExp.prototype,XH=vD.toString,awt=Ee(_H),uwt=Vr(function(){return XH.call({source:"a",flags:"b"})!="/a/b"}),swt=iwt&&XH.name!="toString";(uwt||swt)&&Ch(RegExp.prototype,"toString",function(){var t=$o(this),e=Wi(t.source),r=t.flags;return"/"+e+"/"+Wi(r===void 0&&AH(vD,t)&&!("flags"in vD)?awt(t):r)},{unsafe:!0});var lwt=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 r=[],n=e.getMenuConfig("codeSelectLang").codeLangs,o=n===void 0?[]:n;r.push({text:"plain text",value:""}),o.forEach(function(i){var u=i.text,s=i.value;r.push({text:u,value:s})});var a=this.getValue(e);return r.forEach(function(i){i.value===a?i.selected=!0:delete i.selected}),r},t.prototype.isActive=function(e){return!1},t.prototype.getValue=function(e){var r=this.getSelectCodeElem(e);if(r==null||!St.isElement(r))return"";var n=r.language.toString(),o=e.getMenuConfig("codeSelectLang").codeLangs;return(o===void 0?[]:o).some(function(a){return a.value===n})?n:""},t.prototype.isDisabled=function(e){return e.selection==null||!this.getSelectCodeElem(e)},t.prototype.exec=function(e,r){if(this.getSelectCodeElem(e)!=null){var n={language:r.toString()};U.setNodes(e,n,{match:function(o){return P.checkNodeType(o,"code")}})}},t.prototype.getSelectCodeElem=function(e){var r=P.getSelectedNodeByType(e,"code");if(r==null)return null;var n=P.getParentNode(e,r);return St.isElement(n)?n.type!=="pre"?null:r:null},t}(),cwt={renderStyle:function(t,e){var r=t,n=e,o="";return B2t.forEach(function(a){r[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})}(n,o="token "+o),n},parseStyleHtml:function(t,e,r){var n=F(t);if(!St.isElement(e)||P.getNodeType(e)!=="code")return e;var o=e,a=n.attr("class")||"";return a.indexOf("language-")===0?o.language=a.split("-")[1]||"":o.language=a.toLowerCase(),o},menus:[{key:"codeSelectLang",factory:function(){return new lwt},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 r=t.language,n=r===void 0?"":r;return"<code "+(n?'class="language-'+n+'"':"")+">"+e+"</code>"}}]},fwt=/"/g,dwt=Ee("".replace);J1({target:"String",proto:!0,forced:Vr(function(){var t="".anchor('"');return t!==t.toLowerCase()||t.split('"').length>3})},{anchor:function(t){return e=t,r=Wi(Uc(this)),n="<a",(n+=' name="'+dwt(Wi(e),fwt,""")+'"')+">"+r+"</a>";var e,r,n}});var ZH=function(t){var e,r,n,o=function(y,g){var b=typeof Symbol=="function"&&y[Symbol.iterator];if(!b)return y;var E,x,S=b.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&&(b=S.return)&&b.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 b=P.getParentNode(null,g);if(b&&P.getNodeType(b)==="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 b=NI.languages[g];return b?NI.tokenize(y.text,b):[]}(a,c),d=0;try{for(var p=function(y){var g=typeof Symbol=="function"&&Symbol.iterator,b=g&&y[g],E=0;if(b)return b.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+UH(h);typeof h!="string"&&u.push(((n={})[h.type]=!0,n.anchor={path:i,offset:d},n.focus={path:i,offset:v},n)),d=v}}catch(y){e={error:y}}finally{try{m&&!m.done&&(r=p.return)&&r.call(p)}finally{if(e)throw e.error}}return u},tr=function(){return tr=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},tr.apply(this,arguments)},jr=function(){function t(){throw new Error(`不能实例化
|
|
181
|
+
Can not construct a instance`)}return t.setEditorConfig=function(e){e===void 0&&(e={}),this.editorConfig=tr(tr({},this.editorConfig),e)},t.setSimpleEditorConfig=function(e){e===void 0&&(e={}),this.simpleEditorConfig=tr(tr({},this.simpleEditorConfig),e)},t.setToolbarConfig=function(e){e===void 0&&(e={}),this.toolbarConfig=tr(tr({},this.toolbarConfig),e)},t.setSimpleToolbarConfig=function(e){e===void 0&&(e={}),this.simpleToolbarConfig=tr(tr({},this.simpleToolbarConfig),e)},t.registerPlugin=function(e){this.plugins.push(e)},t.registerMenu=function(e,r){(function(n,o){var a=n.key,i=n.factory,u=n.config,s=so(so({},u),o||{});if(Kp[a]!=null)throw new Error("Duplicated key '"+a+"' in menu items");Kp[a]=i,function(l,c){c!=null&&(bL[l]=c)}(a,s)})(e,r)},t.registerRenderElem=function(e){(function(r){var n=r.type,o=r.renderElem;_L[n||""]=o})(e)},t.registerRenderStyle=function(e){(function(r){f4.push(r)})(e)},t.registerElemToHtml=function(e){(function(r){var n=r.type,o=r.elemToHtml;wL[n||""]=o})(e)},t.registerStyleToHtml=function(e){(function(r){i4.push(r)})(e)},t.registerPreParseHtml=function(e){(function(r){ML.push(r)})(e)},t.registerParseElemHtml=function(e){(function(r){var n=r.selector,o=r.parseElemHtml;Am[n]=o})(e)},t.registerParseStyleHtml=function(e){(function(r){G3.push(r)})(e)},t.registerModule=function(e){Yu(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 Yu(t){var e=t.menus,r=t.renderElems,n=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 jr.registerMenu(c)}),r&&r.forEach(function(c){return jr.registerRenderElem(c)}),n&&jr.registerRenderStyle(n),o&&o.forEach(function(c){return jr.registerElemToHtml(c)}),a&&jr.registerStyleToHtml(a),i&&i.forEach(function(c){return jr.registerPreParseHtml(c)}),u&&u.forEach(function(c){return jr.registerParseElemHtml(c)}),s&&jr.registerParseStyleHtml(s),l&&jr.registerPlugin(l)}yct.forEach(function(t){return Yu(t)}),Yu(Xdt),Yu(Egt),Yu(Fmt),Yu(Sbt),Yu(cwt);var JH='<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>',QH={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"]}},pwt={hoverbarKeys:tr(tr({},QH),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};jr.setEditorConfig(tr(tr({},pwt),{decorate:ZH}));var hwt={hoverbarKeys:QH};jr.setSimpleEditorConfig(tr(tr({},hwt),{decorate:ZH}));var gwt={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:JH,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"]};jr.setToolbarConfig(gwt);var vwt={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:JH,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};function mwt(t){t===void 0&&(t={});var e=t.selector,r=e===void 0?"":e,n=t.content,o=n===void 0?[]:n,a=t.html,i=t.config,u=i===void 0?{}:i,s=t.mode,l=(s===void 0?"default":s)==="simple"?jr.simpleEditorConfig:jr.editorConfig,c=tr(tr({},l.hoverbarKeys||{}),u.hoverbarKeys||{});return Ent({selector:r,config:tr(tr(tr({},l),u),{hoverbarKeys:c}),content:o,html:a,plugins:jr.plugins})}function ywt(t){var e=t.selector,r=t.editor,n=t.config,o=n===void 0?{}:n,a=t.mode,i=a===void 0?"default":a;if(!e)throw new Error("Cannot find 'selector' when create toolbar");var u=i==="simple"?jr.simpleToolbarConfig:jr.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 zL(v,"data-w-e-toolbar",y)}(l,f))throw new Error("Repeated create toolbar by selector '"+f+"'");var m=so({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},p||{}),h=new Ont(f,m);return R3.set(h,l),p1.set(l,h),h}(r,{selector:e,config:tr(tr({},u),o)});return s}jr.setSimpleToolbarConfig(vwt);var bwt=Object.defineProperty,wwt=Object.defineProperties,Ewt=Object.getOwnPropertyDescriptors,HI=Object.getOwnPropertySymbols,Swt=Object.prototype.hasOwnProperty,xwt=Object.prototype.propertyIsEnumerable,UI=(t,e,r)=>e in t?bwt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Cwt=(t,e)=>{for(var r in e||(e={}))Swt.call(e,r)&&UI(t,r,e[r]);if(HI)for(var r of HI(e))xwt.call(e,r)&&UI(t,r,e[r]);return t},Dwt=(t,e)=>wwt(t,Ewt(e));function xa(t){let e=`请使用 '@${t}' 事件,不要放在 props 中`;return e+=`
|
|
195
|
+
Please use '@${t}' event instead of props`,e}var qH=(t,e)=>{for(const[r,n]of e)t[r]=n;return t};const Owt=w.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 r=w.ref(null),n=w.shallowRef(null),o=w.ref(""),a=()=>{if(!r.value)return;const u=w.toRaw(t.defaultContent);mwt({selector:r.value,mode:t.mode,content:u||[],html:t.defaultHtml||t.modelValue||"",config:Dwt(Cwt({},t.defaultConfig),{onCreated(s){if(n.value=s,e.emit("onCreated",s),t.defaultConfig.onCreated){const l=xa("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=xa("onChange");throw new Error(c)}},onDestroyed(s){if(e.emit("onDestroyed",s),t.defaultConfig.onDestroyed){const l=xa("onDestroyed");throw new Error(l)}},onMaxLength(s){if(e.emit("onMaxLength",s),t.defaultConfig.onMaxLength){const l=xa("onMaxLength");throw new Error(l)}},onFocus(s){if(e.emit("onFocus",s),t.defaultConfig.onFocus){const l=xa("onFocus");throw new Error(l)}},onBlur(s){if(e.emit("onBlur",s),t.defaultConfig.onBlur){const l=xa("onBlur");throw new Error(l)}},customAlert(s,l){if(e.emit("customAlert",s,l),t.defaultConfig.customAlert){const c=xa("customAlert");throw new Error(c)}},customPaste:(s,l)=>{if(t.defaultConfig.customPaste){const f=xa("customPaste");throw new Error(f)}let c;return e.emit("customPaste",s,l,f=>{c=f}),c}})})};function i(u){const s=n.value;s!=null&&s.setHtml(u)}return w.onMounted(()=>{a()}),w.watch(()=>t.modelValue,u=>{u!==o.value&&i(u)}),{box:r}}}),Awt={ref:"box",style:{height:"100%"}};function Twt(t,e,r,n,o,a){return w.openBlock(),w.createElementBlock("div",Awt,null,512)}var Bwt=qH(Owt,[["render",Twt]]);const Pwt=w.defineComponent({props:{editor:{type:Object},mode:{type:String,default:"default"},defaultConfig:{type:Object,default:{}}},setup(t){const e=w.ref(null),r=n=>{if(e.value){if(n==null)throw new Error("Not found instance of Editor when create <Toolbar/> component");P.getToolbar(n)||ywt({editor:n,selector:e.value||"<div></div>",mode:t.mode,config:t.defaultConfig})}};return w.watchEffect(()=>{const{editor:n}=t;n!=null&&r(n)}),{selector:e}}}),Fwt={ref:"selector"};function kwt(t,e,r,n,o,a){return w.openBlock(),w.createElementBlock("div",Fwt,null,512)}var Nwt=qH(Pwt,[["render",kwt]]);const Iwt={class:"rich-text-editor"},jwt=w.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:r}){const n=t,o=r,a=w.shallowRef(),i=w.ref(""),u=w.computed(()=>typeof n.height=="number"?`${n.height}px`:n.height),s={excludeKeys:n.excludeKeys,insertKeys:{index:0,keys:n.includeKeys}},l={placeholder:n.placeholder,readOnly:n.disabled,maxLength:n.maxLength,MENU_CONF:{uploadImage:{server:n.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:n.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)}}}};w.onBeforeUnmount(()=>{const h=a.value;h!=null&&h.destroy()}),w.watch(()=>n.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)=>(w.openBlock(),w.createElementBlock("div",Iwt,[w.createVNode(w.unref(Nwt),{class:"editor-toolbar",editor:a.value,defaultConfig:s,mode:h.mode},null,8,["editor","mode"]),w.createVNode(w.unref(Bwt),{class:"editor-content",style:w.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"])]))}}),Hy=Si(jwt,[["__scopeId","data-v-760a12a3"]]),Rwt={class:"setting-content"},Lwt={class:"setting-header flex items-center"},Mwt={class:"setting-header flex items-center"},Vwt={class:"setting-body"},$wt={class:"setting-item"},zwt={class:"item-name"},Hwt={class:"drag-handle img-drag-handle"},Uwt={key:0,class:"drag-handle"},_wt={class:"item-action flex items-center"},Gwt=["onClick"],Wwt={key:0,class:"drag-handle"},Kwt={class:"item-action flex items-center"},Ywt=["onClick"],Xwt={key:0,class:"drag-handle"},Zwt={class:"item-action flex items-center"},Jwt=["onClick"],Qwt={key:0,class:"drag-handle"},qwt={class:"item-action flex items-center"},tEt=["onClick"],eEt=["src"],rEt={class:"item-uplaod flex items-center"},nEt={class:"item-img-list"},oEt={key:0,class:"drag-handle img-drag-handle"},iEt={key:1,class:"item-img-box"},aEt=["src"],uEt={class:"item-right flex-1"},sEt=["onClick"],lEt=["src"],cEt={class:"item-uplaod flex items-center"},fEt=["src"],dEt={class:"item-uplaod flex items-center"},pEt=w.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(t,{emit:e}){const r=w.ref(!1),n=w.computed(()=>({animation:200,group:"item",disabled:!1,ghostClass:"ghost"})),o=w.computed(()=>({animation:200,group:"buttons",disabled:!1,ghostClass:"ghost"})),a=w.computed(()=>({animation:200,group:"links",disabled:!1,ghostClass:"ghost"})),i=w.computed(()=>({animation:200,group:"categories",disabled:!1,ghostClass:"ghost"})),u=w.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:Sr(),type:"Article",data:{title:"",content:"",buttonList:[],linkList:[]}}):x==="Contact"?S.data.push({id:Sr(),type:"Contact",data:{title:"",content:"",categories:[],linkList:[]}}):x==="Image"?S.data.push({id:Sr(),type:"Image",data:{imgSrc:"",caption:"",alt:"",isRound:!1}}):x==="ImageList"?S.data.push({id:Sr(),type:"ImageList",data:{imageList:[]}}):x==="Video"&&S.data.push({id:Sr(),type:"Video",data:{videoSrc:"",imgSrc:""}})},p=x=>{x.push({id:Sr(),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:Sr(),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:Sr(),text:"分类"})},g=(x,S)=>{x.splice(x.findIndex(C=>C.id===S),1)},b=x=>{x.push({id:Sr(),src:""})},E=(x,S)=>{x.splice(x.findIndex(C=>C===S),1)};return(x,S)=>{const C=w.resolveComponent("a-option"),T=w.resolveComponent("a-select"),A=w.resolveComponent("icon-plus"),k=w.resolveComponent("a-button"),M=w.resolveComponent("a-button-group"),$=w.resolveComponent("icon-drag-arrow"),N=w.resolveComponent("a-input"),j=w.resolveComponent("icon-delete"),_=w.resolveComponent("a-checkbox"),V=w.resolveComponent("a-link"),Z=w.resolveComponent("a-upload"),nt=w.resolveComponent("icon-close-circle-fill"),it=w.resolveComponent("a-drawer");return w.openBlock(),w.createBlock(it,{width:500,visible:t.show,footer:!1,onCancel:f,unmountOnClose:""},{title:w.withCtx(()=>[w.createTextVNode(w.toDisplayString(t.data.type)+"组件编辑 ",1)]),default:w.withCtx(()=>[w.createElementVNode("div",Rwt,[w.createElementVNode("div",Lwt,[S[24]||(S[24]=w.createElementVNode("span",{class:"header-title"},"组件宽度",-1)),w.createVNode(T,{modelValue:t.data.width,"onUpdate:modelValue":S[0]||(S[0]=G=>t.data.width=G),placeholder:"请选择","allow-clear":""},{default:w.withCtx(()=>[w.createVNode(C,{value:"default"},{default:w.withCtx(()=>S[20]||(S[20]=[w.createTextVNode("默认")])),_:1,__:[20]}),w.createVNode(C,{value:"small"},{default:w.withCtx(()=>S[21]||(S[21]=[w.createTextVNode("小")])),_:1,__:[21]}),w.createVNode(C,{value:"medium"},{default:w.withCtx(()=>S[22]||(S[22]=[w.createTextVNode("中")])),_:1,__:[22]}),w.createVNode(C,{value:"large"},{default:w.withCtx(()=>S[23]||(S[23]=[w.createTextVNode("大")])),_:1,__:[23]})]),_:1},8,["modelValue"])]),w.createElementVNode("div",Mwt,[S[27]||(S[27]=w.createElementVNode("span",{class:"header-title"},"组件背景",-1)),w.createVNode(T,{modelValue:t.data.background,"onUpdate:modelValue":S[1]||(S[1]=G=>t.data.background=G),placeholder:"请选择","allow-clear":""},{default:w.withCtx(()=>[w.createVNode(C,{value:"white"},{default:w.withCtx(()=>S[25]||(S[25]=[w.createTextVNode("白色")])),_:1,__:[25]}),w.createVNode(C,{value:"grey"},{default:w.withCtx(()=>S[26]||(S[26]=[w.createTextVNode("灰色")])),_:1,__:[26]})]),_:1},8,["modelValue"])]),w.createVNode(M,{type:"primary"},{default:w.withCtx(()=>[w.createVNode(k,{size:"mini",onClick:S[2]||(S[2]=G=>d("Article"))},{icon:w.withCtx(()=>[w.createVNode(A)]),default:w.withCtx(()=>[S[28]||(S[28]=w.createTextVNode(" Article "))]),_:1,__:[28]}),w.createVNode(k,{size:"mini",onClick:S[3]||(S[3]=G=>d("Contact"))},{icon:w.withCtx(()=>[w.createVNode(A)]),default:w.withCtx(()=>[S[29]||(S[29]=w.createTextVNode(" Contact "))]),_:1,__:[29]}),w.createVNode(k,{size:"mini",onClick:S[4]||(S[4]=G=>d("Image"))},{icon:w.withCtx(()=>[w.createVNode(A)]),default:w.withCtx(()=>[S[30]||(S[30]=w.createTextVNode(" Image "))]),_:1,__:[30]}),w.createVNode(k,{size:"mini",onClick:S[5]||(S[5]=G=>d("ImageList"))},{icon:w.withCtx(()=>[w.createVNode(A)]),default:w.withCtx(()=>[S[31]||(S[31]=w.createTextVNode(" ImageList "))]),_:1,__:[31]}),w.createVNode(k,{size:"mini",onClick:S[6]||(S[6]=G=>d("Video"))},{icon:w.withCtx(()=>[w.createVNode(A)]),default:w.withCtx(()=>[S[32]||(S[32]=w.createTextVNode(" Video "))]),_:1,__:[32]})]),_:1}),w.createElementVNode("div",Vwt,[w.createVNode(w.unref(ll),w.mergeProps({modelValue:t.data.data,"onUpdate:modelValue":S[17]||(S[17]=G=>t.data.data=G),"component-data":{tag:"div",type:"transition-group",name:r.value?null:"flip-list"}},n.value,{onStart:S[18]||(S[18]=G=>r.value=!0),onEnd:S[19]||(S[19]=G=>r.value=!1),"item-key":"id"}),{item:w.withCtx(({element:G})=>[w.createElementVNode("div",$wt,[w.createElementVNode("p",zwt,w.toDisplayString(G.type),1),w.createElementVNode("div",Hwt,[w.createVNode($,{class:"drag-icon"})]),G.type==="Article"?(w.openBlock(),w.createElementBlock(w.Fragment,{key:0},[S[37]||(S[37]=w.createElementVNode("p",{class:"item-title"},"标题",-1)),w.createVNode(N,{modelValue:G.data.title,"onUpdate:modelValue":O=>G.data.title=O,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),S[38]||(S[38]=w.createElementVNode("p",{class:"item-title"},"内容",-1)),w.createVNode(w.unref(Hy),{modelValue:G.data.content,"onUpdate:modelValue":O=>G.data.content=O},null,8,["modelValue","onUpdate:modelValue"]),S[39]||(S[39]=w.createElementVNode("p",{class:"item-title"},"按钮",-1)),w.createVNode(w.unref(ll),w.mergeProps({modelValue:G.data.buttonList,"onUpdate:modelValue":O=>G.data.buttonList=O,"component-data":{tag:"div",type:"transition-group",name:r.value?null:"flip-list"}},o.value,{disabled:!s(G.data.buttonList),onStart:S[7]||(S[7]=O=>r.value=!0),onEnd:S[8]||(S[8]=O=>r.value=!1),"item-key":"id"}),{item:w.withCtx(({element:O})=>[(w.openBlock(),w.createElementBlock("div",{class:w.normalizeClass(["item-button draggable-item",{"sortable-disabled":!s(G.data.buttonList)}]),key:O.id},[s(G.data.buttonList)?(w.openBlock(),w.createElementBlock("div",Uwt,[w.createVNode($,{class:"drag-icon"})])):w.createCommentVNode("",!0),w.createVNode(j,{class:"btn-delete",onClick:B=>m(G.data.buttonList,O.id)},null,8,["onClick"]),w.createVNode(k,{type:"primary"},{default:w.withCtx(()=>[w.createTextVNode(w.toDisplayString(O.text),1)]),_:2},1024),w.createElementVNode("div",_wt,[w.createVNode(N,{class:"action-text",modelValue:O.text,"onUpdate:modelValue":B=>O.text=B,placeholder:"按钮文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),w.createVNode(N,{modelValue:O.url,"onUpdate:modelValue":B=>O.url=B,placeholder:"按钮链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])]),w.createVNode(_,{"model-value":O.isExternal},{default:w.withCtx(()=>S[33]||(S[33]=[w.createTextVNode("是否外部链接")])),_:2,__:[33]},1032,["model-value"])],2))]),_:2},1040,["modelValue","onUpdate:modelValue","component-data","disabled"]),w.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:O=>p(G.data.buttonList)},[w.createVNode(A),S[34]||(S[34]=w.createElementVNode("span",{class:"btn-text"},"添加按钮",-1))],8,Gwt),S[40]||(S[40]=w.createElementVNode("p",{class:"item-title"},"链接",-1)),w.createVNode(w.unref(ll),w.mergeProps({modelValue:G.data.linkList,"onUpdate:modelValue":O=>G.data.linkList=O,"component-data":{tag:"div",type:"transition-group",name:r.value?null:"flip-list"}},a.value,{disabled:!s(G.data.linkList),onStart:S[9]||(S[9]=O=>r.value=!0),onEnd:S[10]||(S[10]=O=>r.value=!1),"item-key":"id"}),{item:w.withCtx(({element:O})=>[(w.openBlock(),w.createElementBlock("div",{class:w.normalizeClass(["item-button draggable-item",{"sortable-disabled":!s(G.data.linkList)}]),key:O.id},[s(G.data.linkList)?(w.openBlock(),w.createElementBlock("div",Wwt,[w.createVNode($,{class:"drag-icon"})])):w.createCommentVNode("",!0),w.createVNode(j,{class:"btn-delete",onClick:B=>v(G.data.linkList,O.id)},null,8,["onClick"]),w.createVNode(V,{href:"link"},{default:w.withCtx(()=>[w.createTextVNode(w.toDisplayString(O.text),1)]),_:2},1024),w.createElementVNode("div",Kwt,[w.createVNode(N,{class:"action-text",modelValue:O.text,"onUpdate:modelValue":B=>O.text=B,placeholder:"按钮文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),w.createVNode(N,{modelValue:O.url,"onUpdate:modelValue":B=>O.url=B,placeholder:"按钮链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])]),w.createVNode(_,{"model-value":O.isExternal},{default:w.withCtx(()=>S[35]||(S[35]=[w.createTextVNode("是否外部链接")])),_:2,__:[35]},1032,["model-value"])],2))]),_:2},1040,["modelValue","onUpdate:modelValue","component-data","disabled"]),w.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:O=>h(G.data.linkList)},[w.createVNode(A),S[36]||(S[36]=w.createElementVNode("span",{class:"btn-text"},"添加链接",-1))],8,Ywt)],64)):w.createCommentVNode("",!0),G.type==="Contact"?(w.openBlock(),w.createElementBlock(w.Fragment,{key:1},[S[44]||(S[44]=w.createElementVNode("p",{class:"item-title"},"标题",-1)),w.createVNode(N,{modelValue:G.data.title,"onUpdate:modelValue":O=>G.data.title=O,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),S[45]||(S[45]=w.createElementVNode("p",{class:"item-title"},"内容",-1)),w.createVNode(w.unref(Hy),{modelValue:G.data.content,"onUpdate:modelValue":O=>G.data.content=O},null,8,["modelValue","onUpdate:modelValue"]),S[46]||(S[46]=w.createElementVNode("p",{class:"item-title"},"分类",-1)),w.createVNode(w.unref(ll),w.mergeProps({modelValue:G.data.categories,"onUpdate:modelValue":O=>G.data.categories=O,"component-data":{tag:"div",type:"transition-group",name:r.value?null:"flip-list"}},i.value,{disabled:!s(G.data.categories),onStart:S[11]||(S[11]=O=>r.value=!0),onEnd:S[12]||(S[12]=O=>r.value=!1),"item-key":"id"}),{item:w.withCtx(({element:O})=>[(w.openBlock(),w.createElementBlock("div",{class:w.normalizeClass(["item-button draggable-item",{"sortable-disabled":!s(G.data.categories)}]),key:O.id},[s(G.data.categories)?(w.openBlock(),w.createElementBlock("div",Xwt,[w.createVNode($,{class:"drag-icon"})])):w.createCommentVNode("",!0),w.createVNode(j,{class:"btn-delete",onClick:B=>g(G.data.categories,O.id)},null,8,["onClick"]),w.createVNode(V,{href:"link"},{default:w.withCtx(()=>[w.createTextVNode(w.toDisplayString(O.text),1)]),_:2},1024),w.createElementVNode("div",Zwt,[w.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"]),w.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:O=>y(G.data.categories)},[w.createVNode(A),S[41]||(S[41]=w.createElementVNode("span",{class:"btn-text"},"添加分类",-1))],8,Jwt),S[47]||(S[47]=w.createElementVNode("p",{class:"item-title"},"链接",-1)),w.createVNode(w.unref(ll),w.mergeProps({modelValue:G.data.linkList,"onUpdate:modelValue":O=>G.data.linkList=O,"component-data":{tag:"div",type:"transition-group",name:r.value?null:"flip-list"}},a.value,{disabled:!s(G.data.linkList),onStart:S[13]||(S[13]=O=>r.value=!0),onEnd:S[14]||(S[14]=O=>r.value=!1),"item-key":"id"}),{item:w.withCtx(({element:O})=>[(w.openBlock(),w.createElementBlock("div",{class:w.normalizeClass(["item-button draggable-item",{"sortable-disabled":!s(G.data.linkList)}]),key:O.id},[s(G.data.linkList)?(w.openBlock(),w.createElementBlock("div",Qwt,[w.createVNode($,{class:"drag-icon"})])):w.createCommentVNode("",!0),w.createVNode(j,{class:"btn-delete",onClick:B=>v(G.data.linkList,O.id)},null,8,["onClick"]),w.createVNode(V,{href:"link"},{default:w.withCtx(()=>[w.createTextVNode(w.toDisplayString(O.text),1)]),_:2},1024),w.createElementVNode("div",qwt,[w.createVNode(N,{class:"action-text",modelValue:O.text,"onUpdate:modelValue":B=>O.text=B,placeholder:"按钮文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),w.createVNode(N,{modelValue:O.url,"onUpdate:modelValue":B=>O.url=B,placeholder:"按钮链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])]),w.createVNode(_,{"model-value":O.isExternal},{default:w.withCtx(()=>S[42]||(S[42]=[w.createTextVNode("是否外部链接")])),_:2,__:[42]},1032,["model-value"])],2))]),_:2},1040,["modelValue","onUpdate:modelValue","component-data","disabled"]),w.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:O=>h(G.data.linkList)},[w.createVNode(A),S[43]||(S[43]=w.createElementVNode("span",{class:"btn-text"},"添加链接",-1))],8,tEt)],64)):w.createCommentVNode("",!0),G.type==="Image"?(w.openBlock(),w.createElementBlock(w.Fragment,{key:2},[w.createElementVNode("img",{class:"item-img",src:G.data.imgSrc},null,8,eEt),w.createElementVNode("div",rEt,[w.createVNode(N,{modelValue:G.data.imgSrc,"onUpdate:modelValue":O=>G.data.imgSrc=O,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),w.createVNode(Z,{class:"fit-content","show-file-list":!1,action:"/"})]),w.createVNode(N,{class:"mt-10",modelValue:G.data.caption,"onUpdate:modelValue":O=>G.data.caption=O,placeholder:"图片描述","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),w.createVNode(N,{class:"mt-10",modelValue:G.data.alt,"onUpdate:modelValue":O=>G.data.alt=O,placeholder:"图片alt","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),w.createVNode(_,{class:"pt-10","model-value":G.data.isRound},{default:w.withCtx(()=>S[48]||(S[48]=[w.createTextVNode("圆角")])),_:2,__:[48]},1032,["model-value"])],64)):w.createCommentVNode("",!0),G.type==="ImageList"?(w.openBlock(),w.createElementBlock(w.Fragment,{key:3},[S[50]||(S[50]=w.createElementVNode("p",{class:"item-title"},"图片组",-1)),w.createElementVNode("div",nEt,[w.createVNode(w.unref(ll),w.mergeProps({modelValue:G.data.imageList,"onUpdate:modelValue":O=>G.data.imageList=O,"component-data":{tag:"div",type:"transition-group",name:r.value?null:"flip-list"}},u.value,{disabled:!s(G.data.imageList),onStart:S[15]||(S[15]=O=>r.value=!0),onEnd:S[16]||(S[16]=O=>r.value=!1),"item-key":"id"}),{item:w.withCtx(({element:O})=>[(w.openBlock(),w.createElementBlock("div",{class:w.normalizeClass(["img-list-item flex draggable-item",{"sortable-disabled":!s(G.data.imageList)}]),key:O.id},[s(G.data.imageList)?(w.openBlock(),w.createElementBlock("div",oEt,[w.createVNode($,{class:"drag-icon"})])):w.createCommentVNode("",!0),O.src?(w.openBlock(),w.createElementBlock("div",iEt,[w.createVNode(nt,{class:"item-img-dlete",onClick:B=>E(G.data.imageList,O.id)},null,8,["onClick"]),w.createElementVNode("img",{class:"item-img small-img",src:O.src},null,8,aEt)])):w.createCommentVNode("",!0),w.createElementVNode("div",uEt,[w.createVNode(N,{style:{"margin-bottom":"12px"},modelValue:O.src,"onUpdate:modelValue":B=>O.src=B,placeholder:"请输入图片路径","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),w.createVNode(Z,{"show-file-list":!1,action:"/"})])],2))]),_:2},1040,["modelValue","onUpdate:modelValue","component-data","disabled"])]),w.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:O=>b(G.data.imageList)},[w.createVNode(A),S[49]||(S[49]=w.createElementVNode("span",{class:"btn-text"},"添加图片",-1))],8,sEt)],64)):w.createCommentVNode("",!0),G.type==="Video"?(w.openBlock(),w.createElementBlock(w.Fragment,{key:4},[S[51]||(S[51]=w.createElementVNode("p",{class:"item-title"},"视频",-1)),w.createElementVNode("video",{class:"item-img",src:G.data.videoSrc,controls:""},null,8,lEt),w.createElementVNode("div",cEt,[w.createVNode(N,{modelValue:G.data.videoSrc,"onUpdate:modelValue":O=>G.data.videoSrc=O,placeholder:"请输入视频链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),w.createVNode(Z,{class:"fit-content","show-file-list":!1,action:"/"})]),w.createElementVNode("img",{class:"item-img",src:G.data.imgSrc},null,8,fEt),w.createElementVNode("div",dEt,[w.createVNode(N,{modelValue:G.data.imgSrc,"onUpdate:modelValue":O=>G.data.imgSrc=O,placeholder:"视频封面","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),w.createVNode(Z,{class:"fit-content","show-file-list":!1,action:"/"})])],64)):w.createCommentVNode("",!0)])]),_:1},16,["modelValue","component-data"])])])]),_:1},8,["visible"])}}}),hEt=Si(pEt,[["__scopeId","data-v-020d7e27"]]),gEt={class:"operate-page"},vEt={class:"operate-btn flex justify-end"},mEt=w.defineComponent({__name:"index",props:{show:{type:Boolean,default:!1}},emits:["handleCopy","handleDelete","handleEdit"],setup(t,{emit:e}){const r=e,n=()=>{r("handleCopy")},o=()=>{r("handleDelete")},a=()=>{r("handleEdit")};return(i,u)=>{const s=w.resolveComponent("icon-copy"),l=w.resolveComponent("icon-delete"),c=w.resolveComponent("icon-edit");return w.withDirectives((w.openBlock(),w.createElementBlock("div",gEt,[w.createElementVNode("div",vEt,[w.createElementVNode("div",{class:"btn-item btn-copy flex items-center",onClick:n},[w.createVNode(s),u[0]||(u[0]=w.createElementVNode("span",{class:"btn-text"},"复制",-1))]),w.createElementVNode("div",{class:"btn-item btn-delete flex items-center",onClick:o},[w.createVNode(l),u[1]||(u[1]=w.createElementVNode("span",{class:"btn-text"},"删除",-1))]),w.createElementVNode("div",{class:"btn-item btn-edit flex items-center",onClick:a},[w.createVNode(c),u[2]||(u[2]=w.createElementVNode("span",{class:"btn-text"},"编辑",-1))])])],512)),[[w.vShow,t.show]])}}}),yEt=Si(mEt,[["__scopeId","data-v-5213869a"]]),bEt={class:"article-list-left"},wEt={class:"article-list-right"},EEt=w.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 r=t,n=e,o=w.computed(()=>r.modelValue&&r.modelValue.data&&r.modelValue.data.length?r.modelValue.data.some(c=>c.type==="Image"||c.type==="Video"||c.type==="ImageList"):!1),a=()=>{if(r.modelValue&&r.modelValue.id)return;const c={id:Sr(),type:"ArticleList",isPreview:!1,width:"",background:"",data:[{id:Sr(),type:"Article",data:{title:"这里是标题",content:"耀华国际教育学校浙江桐乡校区成立于 2017 年,先进的校园设施确保学 生在安全友好的环境中学习。学校坐落于高桥镇,提供从幼儿阶段至高中 阶段 (K2 至13 年级) 的教育服务,招收2 岁至18 岁本地和外籍学生。",buttonList:[{id:Sr(),text:"查看更多",url:"https://www.baidu.com",isExternal:!1}],linkList:[{id:Sr(),text:"查看更多",url:"https://www.baidu.com",isExternal:!1}]}},{id:Sr(),type:"Image",data:{imgSrc:"https://osswebsite.ycyw.com/media-library/ywies-bj/images/home/ywies-tx.jpg",caption:"",alt:"",isRound:!1}},{id:Sr(),type:"Contact",data:{title:"这里是标题",content:"耀华国际教育学校浙江桐乡校区成立于 2017 年,先进的校园设施确保学 生在安全友好的环境中学习。学校坐落于高桥镇,提供从幼儿阶段至高中 阶段 (K2 至13 年级) 的教育服务,招收2 岁至18 岁本地和外籍学生。",categories:[{id:Sr(),text:"分类1"}],linkList:[{id:Sr(),text:"查看更多",url:"https://www.baidu.com",isExternal:!1}]}},{id:Sr(),type:"ImageList",data:{imageList:[{id:Sr(),src:"https://osswebsite.ycyw.com/media-library/ywies-bj/images/home/ywies-tx.jpg"}]}},{id:Sr(),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"}}]};n("update:modelValue",c)},i=w.ref(!1),u=w.ref(!1),s=()=>{n("handleDelete",r.modelValue.id)},l=()=>{n("handleCopy",r.modelValue)};return a(),(c,f)=>{var m,h;const d=w.resolveComponent("a-col"),p=w.resolveComponent("a-row");return w.openBlock(),w.createElementBlock(w.Fragment,null,[w.createElementVNode("div",{class:"article-list-container",style:w.normalizeStyle({background:(m=t.modelValue)!=null&&m.background?((h=t.modelValue)==null?void 0:h.background)==="white"?"#fff":"#F7F7FA":"transparent"})},[w.createVNode(p,{class:"article-list",onMouseenter:f[2]||(f[2]=v=>i.value=!0),onMouseleave:f[3]||(f[3]=v=>i.value=!1)},{default:w.withCtx(()=>[w.createVNode(d,{sm:{span:24},md:{span:o.value?12:24}},{default:w.withCtx(()=>{var v;return[w.createElementVNode("div",bEt,[(w.openBlock(!0),w.createElementBlock(w.Fragment,null,w.renderList((v=t.modelValue)==null?void 0:v.data,y=>(w.openBlock(),w.createElementBlock(w.Fragment,{key:y.id},[y.type==="Article"?(w.openBlock(),w.createBlock(gU,{key:0,article:y.data},null,8,["article"])):w.createCommentVNode("",!0),y.type==="Contact"?(w.openBlock(),w.createBlock(SU,{key:1,contact:y.data},null,8,["contact"])):w.createCommentVNode("",!0)],64))),128))])]}),_:1},8,["md"]),o.value?(w.openBlock(),w.createBlock(d,{key:0,sm:{span:24},md:{span:12}},{default:w.withCtx(()=>{var v;return[w.createElementVNode("div",wEt,[(w.openBlock(!0),w.createElementBlock(w.Fragment,null,w.renderList((v=t.modelValue)==null?void 0:v.data,y=>(w.openBlock(),w.createBlock(IU,{key:y.id,type:y.type,data:y.data,preview:t.modelValue.isPreview},null,8,["type","data","preview"]))),128))])]}),_:1})):w.createCommentVNode("",!0),w.createVNode(yEt,{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),w.createVNode(hEt,{show:u.value,"onUpdate:show":f[4]||(f[4]=v=>u.value=v),data:t.modelValue},null,8,["show","data"])],64)}}}),I8=Si(EEt,[["__scopeId","data-v-31f46aef"]]),SEt={class:"hero-slide"},xEt={class:"slide-container"},CEt={key:0,class:"slide-indicators"},DEt=["onClick"],OEt=w.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 r=t,n=e,o=w.ref(0),a=w.ref([{title:"轮播图标题 1",description:"这是第一张轮播图的描述内容"},{title:"轮播图标题 2",description:"这是第二张轮播图的描述内容"},{title:"轮播图标题 3",description:"这是第三张轮播图的描述内容"}]);let i=null;const u=f=>{o.value=f,n("change",f)},s=()=>{o.value=(o.value+1)%a.value.length,n("change",o.value)},l=()=>{r.autoPlay&&(i=window.setInterval(s,r.autoPlayInterval))},c=()=>{i&&(clearInterval(i),i=null)};return w.onMounted(()=>{l()}),w.onUnmounted(()=>{c()}),(f,d)=>(w.openBlock(),w.createElementBlock("div",SEt,[w.createElementVNode("div",xEt,[(w.openBlock(!0),w.createElementBlock(w.Fragment,null,w.renderList(a.value,(p,m)=>(w.openBlock(),w.createElementBlock("div",{key:m,class:w.normalizeClass(["slide-item",{active:o.value===m}])},[w.createElementVNode("h2",null,w.toDisplayString(p.title),1),w.createElementVNode("p",null,w.toDisplayString(p.description),1)],2))),128))]),f.showIndicators?(w.openBlock(),w.createElementBlock("div",CEt,[(w.openBlock(!0),w.createElementBlock(w.Fragment,null,w.renderList(a.value,(p,m)=>(w.openBlock(),w.createElementBlock("span",{key:m,class:w.normalizeClass(["indicator",{active:o.value===m}]),onClick:h=>u(m)},null,10,DEt))),128))])):w.createCommentVNode("",!0)]))}}),j8=Si(OEt,[["__scopeId","data-v-4198d280"]]),mD={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"}},wn=w.ref(mD.default),Yo=w.ref(!1);function tU(){const t=m=>{typeof m=="string"?wn.value={...mD[m]}:wn.value={...m},n()},e=m=>{wn.value={...wn.value,...m},n()},r=()=>{Yo.value=!Yo.value,document.documentElement.classList.toggle("dark",Yo.value)},n=()=>{const m=document.documentElement,h=wn.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=>w.computed(()=>m==="primary"?wn.value.primaryColor:wn.value.secondaryColor),a=()=>w.computed(()=>wn.value.fontSize),i=()=>w.computed(()=>wn.value.fontFamily),u=()=>w.computed(()=>wn.value.borderRadius),s=()=>w.computed(()=>wn.value.spacing),l=()=>{t("default"),Yo.value=!1,document.documentElement.classList.remove("dark")},c=()=>JSON.stringify(wn.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&&(Yo.value=h==="true",document.documentElement.classList.toggle("dark",Yo.value));const v=window.matchMedia("(prefers-color-scheme: dark)"),y=g=>{localStorage.getItem("officialblock-dark-mode")||(Yo.value=g.matches,document.documentElement.classList.toggle("dark",Yo.value))};v.addEventListener("change",y),n()},p=()=>{localStorage.setItem("officialblock-theme",JSON.stringify(wn.value)),localStorage.setItem("officialblock-dark-mode",Yo.value.toString())};return{currentTheme:w.computed(()=>wn.value),isDarkMode:w.computed(()=>Yo.value),themePresets:mD,setTheme:t,updateTheme:e,toggleDarkMode:r,resetTheme:l,exportTheme:c,importTheme:f,initTheme:d,saveTheme:p,getThemeColor:o,getFontSize:a,getFontFamily:i,getBorderRadius:u,getSpacing:s}}class eU{static hexToRgb(e){const r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return r?{r:parseInt(r[1],16),g:parseInt(r[2],16),b:parseInt(r[3],16)}:null}static rgbToHex(e,r,n){return"#"+((1<<24)+(e<<16)+(r<<8)+n).toString(16).slice(1)}static adjustBrightness(e,r){const n=this.hexToRgb(e);if(!n)return e;const o=a=>{const i=Math.round(a*(1+r/100));return Math.max(0,Math.min(255,i))};return this.rgbToHex(o(n.r),o(n.g),o(n.b))}static generateColorScale(e){const r=[50,100,200,300,400,500,600,700,800,900,950],n={};return r.forEach((o,a)=>{let i;o<=500?i=80-a*16:i=-20-(a-5)*12,n[o.toString()]=this.adjustBrightness(e,i)}),n}static getContrastRatio(e,r){const n=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=n(e),a=n(r),i=Math.max(o,a),u=Math.min(o,a);return(i+.05)/(u+.05)}static isDarkColor(e){const r=this.hexToRgb(e);return r?(r.r*299+r.g*587+r.b*114)/1e3<128:!1}static getBestTextColor(e){return this.isDarkColor(e)?"#ffffff":"#000000"}static mixColors(e,r,n=.5){const o=this.hexToRgb(e),a=this.hexToRgb(r);if(!o||!a)return e;const i=(u,s)=>Math.round(u*(1-n)+s*n);return this.rgbToHex(i(o.r,a.r),i(o.g,a.g),i(o.b,a.b))}}class AEt{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 r=this.getCurrentBreakpoint();const n=()=>{const o=this.getCurrentBreakpoint();o!==r&&(r=o,e(o))};return window.addEventListener("resize",n),()=>{window.removeEventListener("resize",n)}}}class rU{static animate(e,r,n,o,a=this.easing.easeOutQuad){const i=performance.now();let u;const s=l=>{const c=l-i,f=Math.min(c/n,1),d=a(f),p=e+(r-e)*d;o(p),f<1&&(u=requestAnimationFrame(s))};return u=requestAnimationFrame(s),()=>{u&&cancelAnimationFrame(u)}}static scrollTo(e,r,n=300,o=this.easing.easeOutQuad){return new Promise(a=>{const i=e===window,u=i?window.pageYOffset:e.scrollTop;this.animate(u,r,n,s=>{i?window.scrollTo(0,s):e.scrollTop=s},o),setTimeout(a,n)})}}M8(rU,"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 TEt{static setItem(e,r){try{return localStorage.setItem(e,JSON.stringify(r)),!0}catch(n){return console.warn("Failed to save to localStorage:",n),!1}}static getItem(e,r){try{const n=localStorage.getItem(e);return n?JSON.parse(n):r||null}catch(n){return console.warn("Failed to read from localStorage:",n),r||null}}static removeItem(e){try{return localStorage.removeItem(e),!0}catch(r){return console.warn("Failed to remove from localStorage:",r),!1}}static cleanExpired(){const e=Date.now(),r=[];for(let n=0;n<localStorage.length;n++){const o=localStorage.key(n);if(o&&o.startsWith("officialblock-"))try{const a=JSON.parse(localStorage.getItem(o)||"{}");a.expires&&a.expires<e&&r.push(o)}catch{}}r.forEach(n=>localStorage.removeItem(n))}}const BEt={class:"theme-preview"},PEt={class:"preview-content"},FEt={class:"color-preview"},kEt={class:"color-swatches"},NEt={class:"typography-preview"},IEt={class:"font-samples"},jEt={class:"component-preview"},REt={class:"component-samples"},LEt={class:"sample-group"},MEt={class:"button-group"},VEt={class:"sample-group"},$Et={class:"sample-group"},zEt={class:"sample-group"},HEt={class:"tag-group"},UEt={class:"layout-preview"},_Et={class:"item-header"},GEt={class:"item-info"},WEt={class:"item-content"},KEt=w.defineComponent({__name:"ThemePreview",setup(t){const{currentTheme:e}=tU(),r=n=>eU.getBestTextColor(n);return(n,o)=>(w.openBlock(),w.createElementBlock("div",BEt,[o[12]||(o[12]=w.createElementVNode("div",{class:"preview-header"},[w.createElementVNode("h3",null,"主题预览"),w.createElementVNode("p",null,"实时预览当前主题效果")],-1)),w.createElementVNode("div",PEt,[w.createElementVNode("div",FEt,[o[3]||(o[3]=w.createElementVNode("h4",null,"颜色系统",-1)),w.createElementVNode("div",kEt,[w.createElementVNode("div",{class:"color-swatch primary",style:w.normalizeStyle({backgroundColor:w.unref(e).primaryColor})},[w.createElementVNode("span",{style:w.normalizeStyle({color:r(w.unref(e).primaryColor)})}," Primary ",4)],4),w.createElementVNode("div",{class:"color-swatch secondary",style:w.normalizeStyle({backgroundColor:w.unref(e).secondaryColor})},[w.createElementVNode("span",{style:w.normalizeStyle({color:r(w.unref(e).secondaryColor)})}," Secondary ",4)],4),o[0]||(o[0]=w.createElementVNode("div",{class:"color-swatch success"},[w.createElementVNode("span",null,"Success")],-1)),o[1]||(o[1]=w.createElementVNode("div",{class:"color-swatch warning"},[w.createElementVNode("span",null,"Warning")],-1)),o[2]||(o[2]=w.createElementVNode("div",{class:"color-swatch error"},[w.createElementVNode("span",null,"Error")],-1))])]),w.createElementVNode("div",NEt,[o[5]||(o[5]=w.createElementVNode("h4",null,"字体系统",-1)),w.createElementVNode("div",IEt,[w.createElementVNode("div",{class:"font-sample",style:w.normalizeStyle({fontSize:w.unref(e).fontSize,fontFamily:w.unref(e).fontFamily})},[w.createElementVNode("strong",null,"默认字体 ("+w.toDisplayString(w.unref(e).fontSize)+")",1),o[4]||(o[4]=w.createElementVNode("p",null,"这是使用当前主题字体设置的示例文本。The quick brown fox jumps over the lazy dog.",-1))],4)])]),w.createElementVNode("div",jEt,[o[10]||(o[10]=w.createElementVNode("h4",null,"组件预览",-1)),w.createElementVNode("div",REt,[w.createElementVNode("div",LEt,[o[6]||(o[6]=w.createElementVNode("label",null,"按钮",-1)),w.createElementVNode("div",MEt,[w.createElementVNode("button",{class:"btn btn-primary",style:w.normalizeStyle({backgroundColor:w.unref(e).primaryColor,borderRadius:w.unref(e).borderRadius,fontSize:w.unref(e).fontSize})}," 主要按钮 ",4),w.createElementVNode("button",{class:"btn btn-secondary",style:w.normalizeStyle({backgroundColor:w.unref(e).secondaryColor,borderRadius:w.unref(e).borderRadius,fontSize:w.unref(e).fontSize})}," 次要按钮 ",4),w.createElementVNode("button",{class:"btn btn-outline",style:w.normalizeStyle({borderColor:w.unref(e).primaryColor,color:w.unref(e).primaryColor,borderRadius:w.unref(e).borderRadius,fontSize:w.unref(e).fontSize})}," 轮廓按钮 ",4)])]),w.createElementVNode("div",VEt,[o[7]||(o[7]=w.createElementVNode("label",null,"卡片",-1)),w.createElementVNode("div",{class:"card-sample",style:w.normalizeStyle({borderRadius:w.unref(e).borderRadius,padding:w.unref(e).spacing})},[w.createElementVNode("h5",{style:w.normalizeStyle({fontSize:`calc(${w.unref(e).fontSize} * 1.2)`})}," 卡片标题 ",4),w.createElementVNode("p",{style:w.normalizeStyle({fontSize:w.unref(e).fontSize})}," 这是一个卡片组件的预览示例,展示了当前主题的样式效果。 ",4)],4)]),w.createElementVNode("div",$Et,[o[8]||(o[8]=w.createElementVNode("label",null,"输入框",-1)),w.createElementVNode("input",{type:"text",class:"input-sample",placeholder:"输入框示例",style:w.normalizeStyle({borderRadius:w.unref(e).borderRadius,fontSize:w.unref(e).fontSize,padding:`calc(${w.unref(e).spacing} * 0.5) ${w.unref(e).spacing}`})},null,4)]),w.createElementVNode("div",zEt,[o[9]||(o[9]=w.createElementVNode("label",null,"标签",-1)),w.createElementVNode("div",HEt,[w.createElementVNode("span",{class:"tag tag-primary",style:w.normalizeStyle({backgroundColor:`${w.unref(e).primaryColor}20`,color:w.unref(e).primaryColor,borderRadius:`calc(${w.unref(e).borderRadius} * 0.5)`,fontSize:`calc(${w.unref(e).fontSize} * 0.875)`,padding:`calc(${w.unref(e).spacing} * 0.25) calc(${w.unref(e).spacing} * 0.5)`})}," 主要标签 ",4),w.createElementVNode("span",{class:"tag tag-secondary",style:w.normalizeStyle({backgroundColor:`${w.unref(e).secondaryColor}20`,color:w.unref(e).secondaryColor,borderRadius:`calc(${w.unref(e).borderRadius} * 0.5)`,fontSize:`calc(${w.unref(e).fontSize} * 0.875)`,padding:`calc(${w.unref(e).spacing} * 0.25) calc(${w.unref(e).spacing} * 0.5)`})}," 次要标签 ",4)])])])]),w.createElementVNode("div",UEt,[o[11]||(o[11]=w.createElementVNode("h4",null,"布局预览",-1)),w.createElementVNode("div",{class:"layout-sample",style:w.normalizeStyle({gap:w.unref(e).spacing})},[w.createElementVNode("div",{class:"layout-item",style:w.normalizeStyle({borderRadius:w.unref(e).borderRadius,padding:w.unref(e).spacing})},[w.createElementVNode("div",_Et,[w.createElementVNode("div",{class:"item-avatar",style:w.normalizeStyle({backgroundColor:w.unref(e).primaryColor,borderRadius:w.unref(e).borderRadius})},null,4),w.createElementVNode("div",GEt,[w.createElementVNode("h6",{style:w.normalizeStyle({fontSize:w.unref(e).fontSize})},"用户名称",4),w.createElementVNode("p",{style:w.normalizeStyle({fontSize:`calc(${w.unref(e).fontSize} * 0.875)`})}," 用户描述信息 ",4)])])],4),w.createElementVNode("div",{class:"layout-item",style:w.normalizeStyle({borderRadius:w.unref(e).borderRadius,padding:w.unref(e).spacing})},[w.createElementVNode("div",WEt,[w.createElementVNode("h6",{style:w.normalizeStyle({fontSize:w.unref(e).fontSize})},"内容标题",4),w.createElementVNode("p",{style:w.normalizeStyle({fontSize:`calc(${w.unref(e).fontSize} * 0.875)`})}," 这是一段示例内容,用于展示当前主题的布局效果。 ",4)])],4)],4)])])]))}}),nU=Si(KEt,[["__scopeId","data-v-8a4e29bd"]]),YEt={install:t=>{t.component("ArticleList",I8)}},XEt={install:t=>{t.component("HeroSlide",j8)}},ZEt={install:t=>{t.component("ArticleList",I8),t.component("HeroSlide",j8),t.component("RichTextEditor",Hy),t.component("ThemePreview",nU)}};exports.AnimationUtils=rU;exports.ArticleList=I8;exports.ArticleListPlugin=YEt;exports.HeroSlide=j8;exports.HeroSlidePlugin=XEt;exports.ResponsiveUtils=AEt;exports.RichTextEditor=Hy;exports.StorageUtils=TEt;exports.ThemePreview=nU;exports.ThemeUtils=eU;exports.default=ZEt;exports.useTheme=tU;
|