index.17025809710413.js 822 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. import{M as e,r as t,N as n,a as r,w as o,O as i,P as a,c as u,d as s,u as l,Q as c,o as f,R as d,k as p,j as h,F as g,_ as v,S as y,U as m,J as b,b as w,e as E,f as x,m as D,l as C,i as S,V as A,h as O,W as k,g as B,v as F,n as T,t as _,X as P,T as j,Y as I,Z as N,$ as L,a0 as R}from"./index.1702580971041.js";var M={exports:{}},z={},$={exports:{}},H={};function V(){var e={"align-content":!1,"align-items":!1,"align-self":!1,"alignment-adjust":!1,"alignment-baseline":!1,all:!1,"anchor-point":!1,animation:!1,"animation-delay":!1,"animation-direction":!1,"animation-duration":!1,"animation-fill-mode":!1,"animation-iteration-count":!1,"animation-name":!1,"animation-play-state":!1,"animation-timing-function":!1,azimuth:!1,"backface-visibility":!1,background:!0,"background-attachment":!0,"background-clip":!0,"background-color":!0,"background-image":!0,"background-origin":!0,"background-position":!0,"background-repeat":!0,"background-size":!0,"baseline-shift":!1,binding:!1,bleed:!1,"bookmark-label":!1,"bookmark-level":!1,"bookmark-state":!1,border:!0,"border-bottom":!0,"border-bottom-color":!0,"border-bottom-left-radius":!0,"border-bottom-right-radius":!0,"border-bottom-style":!0,"border-bottom-width":!0,"border-collapse":!0,"border-color":!0,"border-image":!0,"border-image-outset":!0,"border-image-repeat":!0,"border-image-slice":!0,"border-image-source":!0,"border-image-width":!0,"border-left":!0,"border-left-color":!0,"border-left-style":!0,"border-left-width":!0,"border-radius":!0,"border-right":!0,"border-right-color":!0,"border-right-style":!0,"border-right-width":!0,"border-spacing":!0,"border-style":!0,"border-top":!0,"border-top-color":!0,"border-top-left-radius":!0,"border-top-right-radius":!0,"border-top-style":!0,"border-top-width":!0,"border-width":!0,bottom:!1,"box-decoration-break":!0,"box-shadow":!0,"box-sizing":!0,"box-snap":!0,"box-suppress":!0,"break-after":!0,"break-before":!0,"break-inside":!0,"caption-side":!1,chains:!1,clear:!0,clip:!1,"clip-path":!1,"clip-rule":!1,color:!0,"color-interpolation-filters":!0,"column-count":!1,"column-fill":!1,"column-gap":!1,"column-rule":!1,"column-rule-color":!1,"column-rule-style":!1,"column-rule-width":!1,"column-span":!1,"column-width":!1,columns:!1,contain:!1,content:!1,"counter-increment":!1,"counter-reset":!1,"counter-set":!1,crop:!1,cue:!1,"cue-after":!1,"cue-before":!1,cursor:!1,direction:!1,display:!0,"display-inside":!0,"display-list":!0,"display-outside":!0,"dominant-baseline":!1,elevation:!1,"empty-cells":!1,filter:!1,flex:!1,"flex-basis":!1,"flex-direction":!1,"flex-flow":!1,"flex-grow":!1,"flex-shrink":!1,"flex-wrap":!1,float:!1,"float-offset":!1,"flood-color":!1,"flood-opacity":!1,"flow-from":!1,"flow-into":!1,font:!0,"font-family":!0,"font-feature-settings":!0,"font-kerning":!0,"font-language-override":!0,"font-size":!0,"font-size-adjust":!0,"font-stretch":!0,"font-style":!0,"font-synthesis":!0,"font-variant":!0,"font-variant-alternates":!0,"font-variant-caps":!0,"font-variant-east-asian":!0,"font-variant-ligatures":!0,"font-variant-numeric":!0,"font-variant-position":!0,"font-weight":!0,grid:!1,"grid-area":!1,"grid-auto-columns":!1,"grid-auto-flow":!1,"grid-auto-rows":!1,"grid-column":!1,"grid-column-end":!1,"grid-column-start":!1,"grid-row":!1,"grid-row-end":!1,"grid-row-start":!1,"grid-template":!1,"grid-template-areas":!1,"grid-template-columns":!1,"grid-template-rows":!1,"hanging-punctuation":!1,height:!0,hyphens:!1,icon:!1,"image-orientation":!1,"image-resolution":!1,"ime-mode":!1,"initial-letters":!1,"inline-box-align":!1,"justify-content":!1,"justify-items":!1,"justify-self":!1,left:!1,"letter-spacing":!0,"lighting-color":!0,"line-box-contain":!1,"line-break":!1,"line-grid":!1,"line-height":!1,"line-snap":!1,"line-stacking":!1,"line-stacking-ruby":!1,"line-stacking-shift":!1,"line-stacking-strategy":!1,"list-style":!0,"list-style-image":!0,"list-style-position":!0,"list-style-type":!0,margin:!0,"margin-bottom":!0,"margin-left":!0,"margin-right":!0,"margin-top":!0,"marker-offset":!1,"marker-side":!1,marks:!1,mask:!1,"mask-box":!1,"mask-box-outset":!1,"mask-box-repeat":!1,"mask-box-slice":!1,"mask-box-source":!1,"mask-box-width":!1,"mask-clip":!1,"mask-image":!1,"mask-origin":!1,"mask-position":!1,"mask-repeat":!1,"mask-size":!1,"mask-source-type":!1,"mask-type":!1,"max-height":!0,"max-lines":!1,"max-width":!0,"min-height":!0,"min-width":!0,"move-to":!1,"nav-down":!1,"nav-index":!1,"nav-left":!1,"nav-right":!1,"nav-up":!1,"object-fit":!1,"object-position":!1,opacity:!1,order:!1,orphans:!1,outline:!1,"outline-color":!1,"outline-offset":!1,"outline-style":!1,"outline-width":!1,overflow:!1,"overflow-wrap":!1,"overflow-x":!1,"overflow-y":!1,padding:!0,"padding-bottom":!0,"padding-left":!0,"padding-right":!0,"padding-top":!0,page:!1,"page-break-after":!1,"page-break-before":!1,"page-break-inside":!1,"page-policy":!1,pause:!1,"pause-after":!1,"pause-before":!1,perspective:!1,"perspective-origin":!1,pitch:!1,"pitch-range":!1,"play-during":!1,position:!1,"presentation-level":!1,quotes:!1,"region-fragment":!1,resize:!1,rest:!1,"rest-after":!1,"rest-before":!1,richness:!1,right:!1,rotation:!1,"rotation-point":!1,"ruby-align":!1,"ruby-merge":!1,"ruby-position":!1,"shape-image-threshold":!1,"shape-outside":!1,"shape-margin":!1,size:!1,speak:!1,"speak-as":!1,"speak-header":!1,"speak-numeral":!1,"speak-punctuation":!1,"speech-rate":!1,stress:!1,"string-set":!1,"tab-size":!1,"table-layout":!1,"text-align":!0,"text-align-last":!0,"text-combine-upright":!0,"text-decoration":!0,"text-decoration-color":!0,"text-decoration-line":!0,"text-decoration-skip":!0,"text-decoration-style":!0,"text-emphasis":!0,"text-emphasis-color":!0,"text-emphasis-position":!0,"text-emphasis-style":!0,"text-height":!0,"text-indent":!0,"text-justify":!0,"text-orientation":!0,"text-overflow":!0,"text-shadow":!0,"text-space-collapse":!0,"text-transform":!0,"text-underline-position":!0,"text-wrap":!0,top:!1,transform:!1,"transform-origin":!1,"transform-style":!1,transition:!1,"transition-delay":!1,"transition-duration":!1,"transition-property":!1,"transition-timing-function":!1,"unicode-bidi":!1,"vertical-align":!1,visibility:!1,"voice-balance":!1,"voice-duration":!1,"voice-family":!1,"voice-pitch":!1,"voice-range":!1,"voice-rate":!1,"voice-stress":!1,"voice-volume":!1,volume:!1,"white-space":!1,widows:!1,width:!0,"will-change":!1,"word-break":!0,"word-spacing":!0,"word-wrap":!0,"wrap-flow":!1,"wrap-through":!1,"writing-mode":!1,"z-index":!1};return e}var U=/javascript\s*\:/gim;H.whiteList=V(),H.getDefaultWhiteList=V,H.onAttr=function(e,t,n){},H.onIgnoreAttr=function(e,t,n){},H.safeAttrValue=function(e,t){return U.test(t)?"":t};var W={indexOf:function(e,t){var n,r;if(Array.prototype.indexOf)return e.indexOf(t);for(n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},forEach:function(e,t,n){var r,o;if(Array.prototype.forEach)return e.forEach(t,n);for(r=0,o=e.length;r<o;r++)t.call(n,e[r],r,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(e){return String.prototype.trimRight?e.trimRight():e.replace(/(\s*$)/g,"")}},G=W;var q=function(e,t){";"!==(e=G.trimRight(e))[e.length-1]&&(e+=";");var n=e.length,r=!1,o=0,i=0,a="";function u(){if(!r){var n=G.trim(e.slice(o,i)),u=n.indexOf(":");if(-1!==u){var s=G.trim(n.slice(0,u)),l=G.trim(n.slice(u+1));if(s){var c=t(o,a.length,s,l,n);c&&(a+=c+"; ")}}}o=i+1}for(;i<n;i++){var s=e[i];if("/"===s&&"*"===e[i+1]){var l=e.indexOf("*/",i+2);if(-1===l)break;o=(i=l+1)+1,r=!1}else"("===s?r=!0:")"===s?r=!1:";"===s?r||u():"\n"===s&&u()}return G.trim(a)},K=H,X=q;function Y(e){return null==e}function Z(e){e=function(e){var t={};for(var n in e)t[n]=e[n];return t}(e||{}),e.whiteList=e.whiteList||K.whiteList,e.onAttr=e.onAttr||K.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||K.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||K.safeAttrValue,this.options=e}Z.prototype.process=function(e){if(!(e=(e=e||"").toString()))return"";var t=this.options,n=t.whiteList,r=t.onAttr,o=t.onIgnoreAttr,i=t.safeAttrValue;return X(e,(function(e,t,a,u,s){var l=n[a],c=!1;if(!0===l?c=l:"function"==typeof l?c=l(u):l instanceof RegExp&&(c=l.test(u)),!0!==c&&(c=!1),u=i(a,u)){var f,d={position:t,sourcePosition:e,source:s,isWhite:c};return c?Y(f=r(a,u,d))?a+":"+u:f:Y(f=o(a,u,d))?void 0:f}}))};var J=Z;!function(e,t){var n=H,r=J;for(var o in(t=e.exports=function(e,t){return new r(t).process(e)}).FilterCSS=r,n)t[o]=n[o];"undefined"!=typeof window&&(window.filterCSS=e.exports)}($,$.exports);var Q={indexOf:function(e,t){var n,r;if(Array.prototype.indexOf)return e.indexOf(t);for(n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},forEach:function(e,t,n){var r,o;if(Array.prototype.forEach)return e.forEach(t,n);for(r=0,o=e.length;r<o;r++)t.call(n,e[r],r,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(e){var t=/\s|\n|\t/.exec(e);return t?t.index:-1}},ee=$.exports.FilterCSS,te=$.exports.getDefaultWhiteList,ne=Q;function re(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}var oe=new ee;function ie(e){return e.replace(ae,"&lt;").replace(ue,"&gt;")}var ae=/</g,ue=/>/g,se=/"/g,le=/&quot;/g,ce=/&#([a-zA-Z0-9]*);?/gim,fe=/&colon;?/gim,de=/&newline;?/gim,pe=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,he=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,ge=/u\s*r\s*l\s*\(.*/gi;function ve(e){return e.replace(se,"&quot;")}function ye(e){return e.replace(le,'"')}function me(e){return e.replace(ce,(function(e,t){return"x"===t[0]||"X"===t[0]?String.fromCharCode(parseInt(t.substr(1),16)):String.fromCharCode(parseInt(t,10))}))}function be(e){return e.replace(fe,":").replace(de," ")}function we(e){for(var t="",n=0,r=e.length;n<r;n++)t+=e.charCodeAt(n)<32?" ":e.charAt(n);return ne.trim(t)}function Ee(e){return e=we(e=be(e=me(e=ye(e))))}function xe(e){return e=ie(e=ve(e))}z.whiteList={a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]},z.getDefaultWhiteList=re,z.onTag=function(e,t,n){},z.onIgnoreTag=function(e,t,n){},z.onTagAttr=function(e,t,n){},z.onIgnoreTagAttr=function(e,t,n){},z.safeAttrValue=function(e,t,n,r){if(n=Ee(n),"href"===t||"src"===t){if("#"===(n=ne.trim(n)))return"#";if("http://"!==n.substr(0,7)&&"https://"!==n.substr(0,8)&&"mailto:"!==n.substr(0,7)&&"tel:"!==n.substr(0,4)&&"data:image/"!==n.substr(0,11)&&"ftp://"!==n.substr(0,6)&&"./"!==n.substr(0,2)&&"../"!==n.substr(0,3)&&"#"!==n[0]&&"/"!==n[0])return""}else if("background"===t){if(pe.lastIndex=0,pe.test(n))return""}else if("style"===t){if(he.lastIndex=0,he.test(n))return"";if(ge.lastIndex=0,ge.test(n)&&(pe.lastIndex=0,pe.test(n)))return"";!1!==r&&(n=(r=r||oe).process(n))}return n=xe(n)},z.escapeHtml=ie,z.escapeQuote=ve,z.unescapeQuote=ye,z.escapeHtmlEntities=me,z.escapeDangerHtml5Entities=be,z.clearNonPrintableCharacter=we,z.friendlyAttrValue=Ee,z.escapeAttrValue=xe,z.onIgnoreTagStripAll=function(){return""},z.StripTagBody=function(e,t){"function"!=typeof t&&(t=function(){});var n=!Array.isArray(e),r=[],o=!1;return{onIgnoreTag:function(i,a,u){if(function(t){return!!n||-1!==ne.indexOf(e,t)}(i)){if(u.isClosing){var s="[/removed]",l=u.position+s.length;return r.push([!1!==o?o:u.position,l]),o=!1,s}return o||(o=u.position),"[removed]"}return t(i,a,u)},remove:function(e){var t="",n=0;return ne.forEach(r,(function(r){t+=e.slice(n,r[0]),n=r[1]})),t+=e.slice(n)}}},z.stripCommentTag=function(e){for(var t="",n=0;n<e.length;){var r=e.indexOf("\x3c!--",n);if(-1===r){t+=e.slice(n);break}t+=e.slice(n,r);var o=e.indexOf("--\x3e",r);if(-1===o)break;n=o+3}return t},z.stripBlankChar=function(e){var t=e.split("");return(t=t.filter((function(e){var t=e.charCodeAt(0);return 127!==t&&(!(t<=31)||(10===t||13===t))}))).join("")},z.cssFilter=oe,z.getDefaultCSSWhiteList=te;var De={},Ce=Q;function Se(e){var t,n=Ce.spaceIndex(e);return t=-1===n?e.slice(1,-1):e.slice(1,n+1),"/"===(t=Ce.trim(t).toLowerCase()).slice(0,1)&&(t=t.slice(1)),"/"===t.slice(-1)&&(t=t.slice(0,-1)),t}function Ae(e){return"</"===e.slice(0,2)}var Oe=/[^a-zA-Z0-9\\_:.-]/gim;function ke(e,t){for(;t<e.length;t++){var n=e[t];if(" "!==n)return"="===n?t:-1}}function Be(e,t){for(;t<e.length;t++){var n=e[t];if(" "!==n)return"'"===n||'"'===n?t:-1}}function Fe(e,t){for(;t>0;t--){var n=e[t];if(" "!==n)return"="===n?t:-1}}function Te(e){return function(e){return'"'===e[0]&&'"'===e[e.length-1]||"'"===e[0]&&"'"===e[e.length-1]}(e)?e.substr(1,e.length-2):e}De.parseTag=function(e,t,n){var r="",o=0,i=!1,a=!1,u=0,s=e.length,l="",c="";e:for(u=0;u<s;u++){var f=e.charAt(u);if(!1===i){if("<"===f){i=u;continue}}else if(!1===a){if("<"===f){r+=n(e.slice(o,u)),i=u,o=u;continue}if(">"===f||u===s-1){r+=n(e.slice(o,i)),l=Se(c=e.slice(i,u+1)),r+=t(i,r.length,l,c,Ae(c)),o=u+1,i=!1;continue}if('"'===f||"'"===f)for(var d=1,p=e.charAt(u-d);""===p.trim()||"="===p;){if("="===p){a=f;continue e}p=e.charAt(u-++d)}}else if(f===a){a=!1;continue}}return o<s&&(r+=n(e.substr(o))),r},De.parseAttr=function(e,t){var n=0,r=0,o=[],i=!1,a=e.length;function u(e,n){if(!((e=(e=Ce.trim(e)).replace(Oe,"").toLowerCase()).length<1)){var r=t(e,n||"");r&&o.push(r)}}for(var s=0;s<a;s++){var l,c=e.charAt(s);if(!1!==i||"="!==c)if(!1===i||s!==r)if(/\s|\n|\t/.test(c)){if(e=e.replace(/\s|\n|\t/g," "),!1===i){if(-1===(l=ke(e,s))){u(Ce.trim(e.slice(n,s))),i=!1,n=s+1;continue}s=l-1;continue}if(-1===(l=Fe(e,s-1))){u(i,Te(Ce.trim(e.slice(n,s)))),i=!1,n=s+1;continue}}else;else{if(-1===(l=e.indexOf(c,s+1)))break;u(i,Ce.trim(e.slice(r+1,l))),i=!1,n=(s=l)+1}else i=e.slice(n,s),n=s+1,r='"'===e.charAt(n)||"'"===e.charAt(n)?n:Be(e,s+1)}return n<e.length&&(!1===i?u(e.slice(n)):u(i,Te(Ce.trim(e.slice(n))))),Ce.trim(o.join(" "))};var _e=$.exports.FilterCSS,Pe=z,je=De,Ie=je.parseTag,Ne=je.parseAttr,Le=Q;function Re(e){return null==e}function Me(e){e=function(e){var t={};for(var n in e)t[n]=e[n];return t}(e||{}),e.stripIgnoreTag&&(e.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),e.onIgnoreTag=Pe.onIgnoreTagStripAll),e.whiteList||e.allowList?e.whiteList=function(e){var t={};for(var n in e)Array.isArray(e[n])?t[n.toLowerCase()]=e[n].map((function(e){return e.toLowerCase()})):t[n.toLowerCase()]=e[n];return t}(e.whiteList||e.allowList):e.whiteList=Pe.whiteList,e.onTag=e.onTag||Pe.onTag,e.onTagAttr=e.onTagAttr||Pe.onTagAttr,e.onIgnoreTag=e.onIgnoreTag||Pe.onIgnoreTag,e.onIgnoreTagAttr=e.onIgnoreTagAttr||Pe.onIgnoreTagAttr,e.safeAttrValue=e.safeAttrValue||Pe.safeAttrValue,e.escapeHtml=e.escapeHtml||Pe.escapeHtml,this.options=e,!1===e.css?this.cssFilter=!1:(e.css=e.css||{},this.cssFilter=new _e(e.css))}Me.prototype.process=function(e){if(!(e=(e=e||"").toString()))return"";var t=this.options,n=t.whiteList,r=t.onTag,o=t.onIgnoreTag,i=t.onTagAttr,a=t.onIgnoreTagAttr,u=t.safeAttrValue,s=t.escapeHtml,l=this.cssFilter;t.stripBlankChar&&(e=Pe.stripBlankChar(e)),t.allowCommentTag||(e=Pe.stripCommentTag(e));var c=!1;t.stripIgnoreTagBody&&(c=Pe.StripTagBody(t.stripIgnoreTagBody,o),o=c.onIgnoreTag);var f=Ie(e,(function(e,t,c,f,d){var p={sourcePosition:e,position:t,isClosing:d,isWhite:Object.prototype.hasOwnProperty.call(n,c)},h=r(c,f,p);if(!Re(h))return h;if(p.isWhite){if(p.isClosing)return"</"+c+">";var g=function(e){var t=Le.spaceIndex(e);if(-1===t)return{html:"",closing:"/"===e[e.length-2]};var n="/"===(e=Le.trim(e.slice(t+1,-1)))[e.length-1];return n&&(e=Le.trim(e.slice(0,-1))),{html:e,closing:n}}(f),v=n[c],y=Ne(g.html,(function(e,t){var n=-1!==Le.indexOf(v,e),r=i(c,e,t,n);return Re(r)?n?(t=u(c,e,t,l))?e+'="'+t+'"':e:Re(r=a(c,e,t,n))?void 0:r:r}));return f="<"+c,y&&(f+=" "+y),g.closing&&(f+=" /"),f+=">"}return Re(h=o(c,f,p))?s(f):h}),s);return c&&(f=c.remove(f)),f};var ze=Me;!function(e,t){var n=z,r=De,o=ze;function i(e,t){return new o(t).process(e)}(t=e.exports=i).filterXSS=i,t.FilterXSS=o,function(){for(var e in n)t[e]=n[e];for(var o in r)t[o]=r[o]}(),"undefined"!=typeof window&&(window.filterXSS=e.exports),"undefined"!=typeof self&&"undefined"!=typeof DedicatedWorkerGlobalScope&&self instanceof DedicatedWorkerGlobalScope&&(self.filterXSS=e.exports)}(M,M.exports);var $e=M.exports;var He="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Ve(e){var t={exports:{}};return e(t,t.exports),t.exports}var Ue,We,Ge=function(e){return e&&e.Math==Math&&e},qe=Ge("object"==typeof globalThis&&globalThis)||Ge("object"==typeof window&&window)||Ge("object"==typeof self&&self)||Ge("object"==typeof He&&He)||function(){return this}()||Function("return this")(),Ke=Function.prototype,Xe=Ke.apply,Ye=Ke.bind,Ze=Ke.call,Je="object"==typeof Reflect&&Reflect.apply||(Ye?Ze.bind(Xe):function(){return Ze.apply(Xe,arguments)}),Qe=Function.prototype,et=Qe.bind,tt=Qe.call,nt=et&&et.bind(tt),rt=et?function(e){return e&&nt(tt,e)}:function(e){return e&&function(){return tt.apply(e,arguments)}},ot=function(e){return"function"==typeof e},it=function(e){try{return!!e()}catch(t){return!0}},at=!it((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),ut=Function.prototype.call,st=ut.bind?ut.bind(ut):function(){return ut.apply(ut,arguments)},lt={}.propertyIsEnumerable,ct=Object.getOwnPropertyDescriptor,ft=ct&&!lt.call({1:2},1)?function(e){var t=ct(this,e);return!!t&&t.enumerable}:lt,dt={f:ft},pt=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},ht=rt({}.toString),gt=rt("".slice),vt=function(e){return gt(ht(e),8,-1)},yt=qe.Object,mt=rt("".split),bt=it((function(){return!yt("z").propertyIsEnumerable(0)}))?function(e){return"String"==vt(e)?mt(e,""):yt(e)}:yt,wt=qe.TypeError,Et=function(e){if(null==e)throw wt("Can't call method on "+e);return e},xt=function(e){return bt(Et(e))},Dt=function(e){return"object"==typeof e?null!==e:ot(e)},Ct={},St=function(e){return ot(e)?e:void 0},At=function(e,t){return arguments.length<2?St(Ct[e])||St(qe[e]):Ct[e]&&Ct[e][t]||qe[e]&&qe[e][t]},Ot=rt({}.isPrototypeOf),kt=At("navigator","userAgent")||"",Bt=qe.process,Ft=qe.Deno,Tt=Bt&&Bt.versions||Ft&&Ft.version,_t=Tt&&Tt.v8;_t&&(We=(Ue=_t.split("."))[0]>0&&Ue[0]<4?1:+(Ue[0]+Ue[1])),!We&&kt&&(!(Ue=kt.match(/Edge\/(\d+)/))||Ue[1]>=74)&&(Ue=kt.match(/Chrome\/(\d+)/))&&(We=+Ue[1]);var Pt,jt=We,It=!!Object.getOwnPropertySymbols&&!it((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&jt&&jt<41})),Nt=It&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Lt=qe.Object,Rt=Nt?function(e){return"symbol"==typeof e}:function(e){var t=At("Symbol");return ot(t)&&Ot(t.prototype,Lt(e))},Mt=qe.String,zt=function(e){try{return Mt(e)}catch(t){return"Object"}},$t=qe.TypeError,Ht=function(e){if(ot(e))return e;throw $t(zt(e)+" is not a function")},Vt=function(e,t){var n=e[t];return null==n?void 0:Ht(n)},Ut=qe.TypeError,Wt=Object.defineProperty,Gt=qe["__core-js_shared__"]||function(e,t){try{Wt(qe,e,{value:t,configurable:!0,writable:!0})}catch(Qj){qe[e]=t}return t}("__core-js_shared__",{}),qt=Ve((function(e){(e.exports=function(e,t){return Gt[e]||(Gt[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Kt=qe.Object,Xt=function(e){return Kt(Et(e))},Yt=rt({}.hasOwnProperty),Zt=Object.hasOwn||function(e,t){return Yt(Xt(e),t)},Jt=0,Qt=Math.random(),en=rt(1..toString),tn=function(e){return"Symbol("+(void 0===e?"":e)+")_"+en(++Jt+Qt,36)},nn=qt("wks"),rn=qe.Symbol,on=rn&&rn.for,an=Nt?rn:rn&&rn.withoutSetter||tn,un=function(e){if(!Zt(nn,e)||!It&&"string"!=typeof nn[e]){var t="Symbol."+e;It&&Zt(rn,e)?nn[e]=rn[e]:nn[e]=Nt&&on?on(t):an(t)}return nn[e]},sn=qe.TypeError,ln=un("toPrimitive"),cn=function(e){var t=function(e,t){if(!Dt(e)||Rt(e))return e;var n,r=Vt(e,ln);if(r){if(void 0===t&&(t="default"),n=st(r,e,t),!Dt(n)||Rt(n))return n;throw sn("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&ot(n=e.toString)&&!Dt(r=st(n,e)))return r;if(ot(n=e.valueOf)&&!Dt(r=st(n,e)))return r;if("string"!==t&&ot(n=e.toString)&&!Dt(r=st(n,e)))return r;throw Ut("Can't convert object to primitive value")}(e,t)}(e,"string");return Rt(t)?t:t+""},fn=qe.document,dn=Dt(fn)&&Dt(fn.createElement),pn=function(e){return dn?fn.createElement(e):{}},hn=!at&&!it((function(){return 7!=Object.defineProperty(pn("div"),"a",{get:function(){return 7}}).a})),gn=Object.getOwnPropertyDescriptor,vn=at?gn:function(e,t){if(e=xt(e),t=cn(t),hn)try{return gn(e,t)}catch(n){}if(Zt(e,t))return pt(!st(dt.f,e,t),e[t])},yn={f:vn},mn=/#|\.prototype\./,bn=function(e,t){var n=En[wn(e)];return n==Dn||n!=xn&&(ot(t)?it(t):!!t)},wn=bn.normalize=function(e){return String(e).replace(mn,".").toLowerCase()},En=bn.data={},xn=bn.NATIVE="N",Dn=bn.POLYFILL="P",Cn=bn,Sn=rt(rt.bind),An=function(e,t){return Ht(e),void 0===t?e:Sn?Sn(e,t):function(){return e.apply(t,arguments)}},On=qe.String,kn=qe.TypeError,Bn=function(e){if(Dt(e))return e;throw kn(On(e)+" is not an object")},Fn=qe.TypeError,Tn=Object.defineProperty,_n=at?Tn:function(e,t,n){if(Bn(e),t=cn(t),Bn(n),hn)try{return Tn(e,t,n)}catch(r){}if("get"in n||"set"in n)throw Fn("Accessors not supported");return"value"in n&&(e[t]=n.value),e},Pn={f:_n},jn=at?function(e,t,n){return Pn.f(e,t,pt(1,n))}:function(e,t,n){return e[t]=n,e},In=yn.f,Nn=function(e){var t=function(n,r,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,o)}return Je(e,this,arguments)};return t.prototype=e.prototype,t},Ln=function(e,t){var n,r,o,i,a,u,s,l,c=e.target,f=e.global,d=e.stat,p=e.proto,h=f?qe:d?qe[c]:(qe[c]||{}).prototype,g=f?Ct:Ct[c]||jn(Ct,c,{})[c],v=g.prototype;for(o in t)n=!Cn(f?o:c+(d?".":"#")+o,e.forced)&&h&&Zt(h,o),a=g[o],n&&(u=e.noTargetGet?(l=In(h,o))&&l.value:h[o]),i=n&&u?u:t[o],n&&typeof a==typeof i||(s=e.bind&&n?An(i,qe):e.wrap&&n?Nn(i):p&&ot(i)?rt(i):i,(e.sham||i&&i.sham||a&&a.sham)&&jn(s,"sham",!0),jn(g,o,s),p&&(Zt(Ct,r=c+"Prototype")||jn(Ct,r,{}),jn(Ct[r],o,i),e.real&&v&&!v[o]&&jn(v,o,i)))},Rn=qt("keys"),Mn=function(e){return Rn[e]||(Rn[e]=tn(e))},zn=!it((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),$n=Mn("IE_PROTO"),Hn=qe.Object,Vn=Hn.prototype,Un=zn?Hn.getPrototypeOf:function(e){var t=Xt(e);if(Zt(t,$n))return t[$n];var n=t.constructor;return ot(n)&&t instanceof n?n.prototype:t instanceof Hn?Vn:null},Wn=qe.String,Gn=qe.TypeError,qn=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=rt(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(n,r){return Bn(n),function(e){if("object"==typeof e||ot(e))return e;throw Gn("Can't set "+Wn(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),Kn=Math.ceil,Xn=Math.floor,Yn=function(e){var t=+e;return t!=t||0===t?0:(t>0?Xn:Kn)(t)},Zn=Math.max,Jn=Math.min,Qn=function(e,t){var n=Yn(e);return n<0?Zn(n+t,0):Jn(n,t)},er=Math.min,tr=function(e){return(t=e.length)>0?er(Yn(t),9007199254740991):0;var t},nr=function(e){return function(t,n,r){var o,i=xt(t),a=tr(i),u=Qn(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},rr={includes:nr(!0),indexOf:nr(!1)},or={},ir=rr.indexOf,ar=rt([].push),ur=function(e,t){var n,r=xt(e),o=0,i=[];for(n in r)!Zt(or,n)&&Zt(r,n)&&ar(i,n);for(;t.length>o;)Zt(r,n=t[o++])&&(~ir(i,n)||ar(i,n));return i},sr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],lr=sr.concat("length","prototype"),cr=Object.getOwnPropertyNames||function(e){return ur(e,lr)},fr={f:cr},dr={f:Object.getOwnPropertySymbols},pr=rt([].concat),hr=At("Reflect","ownKeys")||function(e){var t=fr.f(Bn(e)),n=dr.f;return n?pr(t,n(e)):t},gr=Object.keys||function(e){return ur(e,sr)},vr=at?Object.defineProperties:function(e,t){Bn(e);for(var n,r=xt(t),o=gr(t),i=o.length,a=0;i>a;)Pn.f(e,n=o[a++],r[n]);return e},yr=At("document","documentElement"),mr=Mn("IE_PROTO"),br=function(){},wr=function(e){return"<script>"+e+"<\/script>"},Er=function(e){e.write(wr("")),e.close();var t=e.parentWindow.Object;return e=null,t},xr=function(){try{Pt=new ActiveXObject("htmlfile")}catch(r){}var e,t;xr="undefined"!=typeof document?document.domain&&Pt?Er(Pt):((t=pn("iframe")).style.display="none",yr.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(wr("document.F=Object")),e.close(),e.F):Er(Pt);for(var n=sr.length;n--;)delete xr.prototype[sr[n]];return xr()};or[mr]=!0;var Dr=Object.create||function(e,t){var n;return null!==e?(br.prototype=Bn(e),n=new br,br.prototype=null,n[mr]=e):n=xr(),void 0===t?n:vr(n,t)},Cr=function(e,t,n){var r=cn(t);r in e?Pn.f(e,r,pt(0,n)):e[r]=n},Sr=qe.Array,Ar=Math.max,Or=function(e,t,n){for(var r=tr(e),o=Qn(t,r),i=Qn(void 0===n?r:n,r),a=Sr(Ar(i-o,0)),u=0;o<i;o++,u++)Cr(a,u,e[o]);return a.length=u,a},kr=rt("".replace),Br=rt("".split),Fr=rt([].join),Tr=String(Error("zxcasd").stack),_r=/\n\s*at [^:]*:[^\n]*/,Pr=_r.test(Tr),jr=/@[^\n]*\n/.test(Tr)&&!/zxcasd/.test(Tr),Ir=function(e,t){if("string"!=typeof e)return e;if(Pr)for(;t--;)e=kr(e,_r,"");else if(jr)return Fr(Or(Br(e,"\n"),t),"\n");return e},Nr=function(e,t){Dt(t)&&"cause"in t&&jn(e,"cause",t.cause)},Lr={},Rr=un("iterator"),Mr=Array.prototype,zr={};zr[un("toStringTag")]="z";var $r="[object z]"===String(zr),Hr=un("toStringTag"),Vr=qe.Object,Ur="Arguments"==vt(function(){return arguments}()),Wr=$r?vt:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=Vr(e),Hr))?n:Ur?vt(t):"Object"==(r=vt(t))&&ot(t.callee)?"Arguments":r},Gr=un("iterator"),qr=function(e){if(null!=e)return Vt(e,Gr)||Vt(e,"@@iterator")||Lr[Wr(e)]},Kr=qe.TypeError,Xr=function(e,t,n){var r,o;Bn(e);try{if(!(r=Vt(e,"return"))){if("throw"===t)throw n;return n}r=st(r,e)}catch(i){o=!0,r=i}if("throw"===t)throw n;if(o)throw r;return Bn(r),n},Yr=qe.TypeError,Zr=function(e,t){this.stopped=e,this.result=t},Jr=Zr.prototype,Qr=function(e,t,n){var r,o,i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),g=An(t,f),v=function(e){return r&&Xr(r,"normal",e),new Zr(!0,e)},y=function(e){return d?(Bn(e),h?g(e[0],e[1],v):g(e[0],e[1])):h?g(e,v):g(e)};if(p)r=e;else{if(!(o=qr(e)))throw Yr(zt(e)+" is not iterable");if(void 0!==(c=o)&&(Lr.Array===c||Mr[Rr]===c)){for(i=0,a=tr(e);a>i;i++)if((u=y(e[i]))&&Ot(Jr,u))return u;return new Zr(!1)}r=function(e,t){var n=arguments.length<2?qr(e):t;if(Ht(n))return Bn(st(n,e));throw Kr(zt(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=st(s,r)).done;){try{u=y(l.value)}catch(c){Xr(r,"throw",c)}if("object"==typeof u&&u&&Ot(Jr,u))return u}return new Zr(!1)},eo=qe.String,to=function(e){if("Symbol"===Wr(e))throw TypeError("Cannot convert a Symbol value to a string");return eo(e)},no=function(e,t){return void 0===e?arguments.length<2?"":t:to(e)},ro=!it((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",pt(1,7)),7!==e.stack)})),oo=un("toStringTag"),io=qe.Error,ao=[].push,uo=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=Ot(so,this);qn?n=qn(new io(void 0),o?Un(this):so):(n=o?this:Dr(so),jn(n,oo,"Error")),jn(n,"message",no(t,"")),ro&&jn(n,"stack",Ir(n.stack,1)),Nr(n,r);var i=[];return Qr(e,ao,{that:i}),jn(n,"errors",i),n};qn?qn(uo,io):function(e,t){for(var n=hr(t),r=Pn.f,o=yn.f,i=0;i<n.length;i++){var a=n[i];Zt(e,a)||r(e,a,o(t,a))}}(uo,io);var so=uo.prototype=Dr(io.prototype,{constructor:pt(1,uo),message:pt(1,""),name:pt(1,"AggregateError")});Ln({global:!0},{AggregateError:uo});var lo=rt(Function.toString);ot(Gt.inspectSource)||(Gt.inspectSource=function(e){return lo(e)});var co,fo,po,ho=Gt.inspectSource,go=qe.WeakMap,vo=ot(go)&&/native code/.test(ho(go)),yo=qe.TypeError,mo=qe.WeakMap;if(vo||Gt.state){var bo=Gt.state||(Gt.state=new mo),wo=rt(bo.get),Eo=rt(bo.has),xo=rt(bo.set);co=function(e,t){if(Eo(bo,e))throw new yo("Object already initialized");return t.facade=e,xo(bo,e,t),t},fo=function(e){return wo(bo,e)||{}},po=function(e){return Eo(bo,e)}}else{var Do=Mn("state");or[Do]=!0,co=function(e,t){if(Zt(e,Do))throw new yo("Object already initialized");return t.facade=e,jn(e,Do,t),t},fo=function(e){return Zt(e,Do)?e[Do]:{}},po=function(e){return Zt(e,Do)}}var Co,So,Ao,Oo={set:co,get:fo,has:po,enforce:function(e){return po(e)?fo(e):co(e,{})},getterFor:function(e){return function(t){var n;if(!Dt(t)||(n=fo(t)).type!==e)throw yo("Incompatible receiver, "+e+" required");return n}}},ko=Function.prototype,Bo=at&&Object.getOwnPropertyDescriptor,Fo=Zt(ko,"name"),To={EXISTS:Fo,PROPER:Fo&&"something"===function(){}.name,CONFIGURABLE:Fo&&(!at||at&&Bo(ko,"name").configurable)},_o=function(e,t,n,r){r&&r.enumerable?e[t]=n:jn(e,t,n)},Po=un("iterator"),jo=!1;[].keys&&("next"in(Ao=[].keys())?(So=Un(Un(Ao)))!==Object.prototype&&(Co=So):jo=!0);var Io=null==Co||it((function(){var e={};return Co[Po].call(e)!==e}));Co=Io?{}:Dr(Co),ot(Co[Po])||_o(Co,Po,(function(){return this}));var No={IteratorPrototype:Co,BUGGY_SAFARI_ITERATORS:jo},Lo=$r?{}.toString:function(){return"[object "+Wr(this)+"]"},Ro=Pn.f,Mo=un("toStringTag"),zo=function(e,t,n,r){if(e){var o=n?e:e.prototype;Zt(o,Mo)||Ro(o,Mo,{configurable:!0,value:t}),r&&!$r&&jn(o,"toString",Lo)}},$o=No.IteratorPrototype,Ho=function(){return this},Vo=To.PROPER,Uo=No.BUGGY_SAFARI_ITERATORS,Wo=un("iterator"),Go=function(){return this},qo=function(e,t,n,r,o,i,a){var u,s,l;s=r,l=t+" Iterator",(u=n).prototype=Dr($o,{next:pt(1,s)}),zo(u,l,!1,!0),Lr[l]=Ho;var c,f,d,p=function(e){if(e===o&&m)return m;if(!Uo&&e in v)return v[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},h=t+" Iterator",g=!1,v=e.prototype,y=v[Wo]||v["@@iterator"]||o&&v[o],m=!Uo&&y||p(o),b="Array"==t&&v.entries||y;if(b&&(c=Un(b.call(new e)))!==Object.prototype&&c.next&&(zo(c,h,!0,!0),Lr[h]=Go),Vo&&"values"==o&&y&&"values"!==y.name&&(g=!0,m=function(){return st(y,this)}),o)if(f={values:p("values"),keys:i?m:p("keys"),entries:p("entries")},a)for(d in f)(Uo||g||!(d in v))&&_o(v,d,f[d]);else Ln({target:t,proto:!0,forced:Uo||g},f);return a&&v[Wo]!==m&&_o(v,Wo,m,{name:o}),Lr[t]=m,f},Ko=Oo.set,Xo=Oo.getterFor("Array Iterator");qo(Array,"Array",(function(e,t){Ko(this,{type:"Array Iterator",target:xt(e),index:0,kind:t})}),(function(){var e=Xo(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),Lr.Arguments=Lr.Array;var Yo=rt("".charAt),Zo=rt("".charCodeAt),Jo=rt("".slice),Qo=function(e){return function(t,n){var r,o,i=to(Et(t)),a=Yn(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=Zo(i,a))<55296||r>56319||a+1===u||(o=Zo(i,a+1))<56320||o>57343?e?Yo(i,a):r:e?Jo(i,a,a+2):o-56320+(r-55296<<10)+65536}},ei=(Qo(!1),Qo(!0)),ti=Oo.set,ni=Oo.getterFor("String Iterator");qo(String,"String",(function(e){ti(this,{type:"String Iterator",string:to(e),index:0})}),(function(){var e,t=ni(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=ei(n,r),t.index+=e.length,{value:e,done:!1})}));var ri=Ct.AggregateError,oi=un("toStringTag");for(var ii 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 ai=qe[ii],ui=ai&&ai.prototype;ui&&Wr(ui)!==oi&&jn(ui,oi,ii),Lr[ii]=Lr.Array}var si,li,ci=ri,fi=function(e){return e&&e.Math==Math&&e},di=fi("object"==typeof globalThis&&globalThis)||fi("object"==typeof window&&window)||fi("object"==typeof self&&self)||fi("object"==typeof He&&He)||function(){return this}()||Function("return this")(),pi=function(e){try{return!!e()}catch(t){return!0}},hi=!pi((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),gi=Function.prototype.call,vi=gi.bind?gi.bind(gi):function(){return gi.apply(gi,arguments)},yi={}.propertyIsEnumerable,mi=Object.getOwnPropertyDescriptor,bi=mi&&!yi.call({1:2},1)?function(e){var t=mi(this,e);return!!t&&t.enumerable}:yi,wi={f:bi},Ei=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},xi=Function.prototype,Di=xi.bind,Ci=xi.call,Si=Di&&Di.bind(Ci),Ai=Di?function(e){return e&&Si(Ci,e)}:function(e){return e&&function(){return Ci.apply(e,arguments)}},Oi=Ai({}.toString),ki=Ai("".slice),Bi=function(e){return ki(Oi(e),8,-1)},Fi=di.Object,Ti=Ai("".split),_i=pi((function(){return!Fi("z").propertyIsEnumerable(0)}))?function(e){return"String"==Bi(e)?Ti(e,""):Fi(e)}:Fi,Pi=di.TypeError,ji=function(e){if(null==e)throw Pi("Can't call method on "+e);return e},Ii=function(e){return _i(ji(e))},Ni=function(e){return"function"==typeof e},Li=function(e){return"object"==typeof e?null!==e:Ni(e)},Ri=function(e){return Ni(e)?e:void 0},Mi=function(e,t){return arguments.length<2?Ri(di[e]):di[e]&&di[e][t]},zi=Ai({}.isPrototypeOf),$i=Mi("navigator","userAgent")||"",Hi=di.process,Vi=di.Deno,Ui=Hi&&Hi.versions||Vi&&Vi.version,Wi=Ui&&Ui.v8;Wi&&(li=(si=Wi.split("."))[0]>0&&si[0]<4?1:+(si[0]+si[1])),!li&&$i&&(!(si=$i.match(/Edge\/(\d+)/))||si[1]>=74)&&(si=$i.match(/Chrome\/(\d+)/))&&(li=+si[1]);var Gi=li,qi=!!Object.getOwnPropertySymbols&&!pi((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Gi&&Gi<41})),Ki=qi&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Xi=di.Object,Yi=Ki?function(e){return"symbol"==typeof e}:function(e){var t=Mi("Symbol");return Ni(t)&&zi(t.prototype,Xi(e))},Zi=di.String,Ji=function(e){try{return Zi(e)}catch(t){return"Object"}},Qi=di.TypeError,ea=function(e){if(Ni(e))return e;throw Qi(Ji(e)+" is not a function")},ta=function(e,t){var n=e[t];return null==n?void 0:ea(n)},na=di.TypeError,ra=Object.defineProperty,oa=function(e,t){try{ra(di,e,{value:t,configurable:!0,writable:!0})}catch(Qj){di[e]=t}return t},ia=di["__core-js_shared__"]||oa("__core-js_shared__",{}),aa=Ve((function(e){(e.exports=function(e,t){return ia[e]||(ia[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),ua=di.Object,sa=function(e){return ua(ji(e))},la=Ai({}.hasOwnProperty),ca=Object.hasOwn||function(e,t){return la(sa(e),t)},fa=0,da=Math.random(),pa=Ai(1..toString),ha=function(e){return"Symbol("+(void 0===e?"":e)+")_"+pa(++fa+da,36)},ga=aa("wks"),va=di.Symbol,ya=va&&va.for,ma=Ki?va:va&&va.withoutSetter||ha,ba=function(e){if(!ca(ga,e)||!qi&&"string"!=typeof ga[e]){var t="Symbol."+e;qi&&ca(va,e)?ga[e]=va[e]:ga[e]=Ki&&ya?ya(t):ma(t)}return ga[e]},wa=di.TypeError,Ea=ba("toPrimitive"),xa=function(e){var t=function(e,t){if(!Li(e)||Yi(e))return e;var n,r=ta(e,Ea);if(r){if(void 0===t&&(t="default"),n=vi(r,e,t),!Li(n)||Yi(n))return n;throw wa("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&Ni(n=e.toString)&&!Li(r=vi(n,e)))return r;if(Ni(n=e.valueOf)&&!Li(r=vi(n,e)))return r;if("string"!==t&&Ni(n=e.toString)&&!Li(r=vi(n,e)))return r;throw na("Can't convert object to primitive value")}(e,t)}(e,"string");return Yi(t)?t:t+""},Da=di.document,Ca=Li(Da)&&Li(Da.createElement),Sa=function(e){return Ca?Da.createElement(e):{}},Aa=!hi&&!pi((function(){return 7!=Object.defineProperty(Sa("div"),"a",{get:function(){return 7}}).a})),Oa=Object.getOwnPropertyDescriptor,ka=hi?Oa:function(e,t){if(e=Ii(e),t=xa(t),Aa)try{return Oa(e,t)}catch(n){}if(ca(e,t))return Ei(!vi(wi.f,e,t),e[t])},Ba={f:ka},Fa=di.String,Ta=di.TypeError,_a=function(e){if(Li(e))return e;throw Ta(Fa(e)+" is not an object")},Pa=di.TypeError,ja=Object.defineProperty,Ia=hi?ja:function(e,t,n){if(_a(e),t=xa(t),_a(n),Aa)try{return ja(e,t,n)}catch(r){}if("get"in n||"set"in n)throw Pa("Accessors not supported");return"value"in n&&(e[t]=n.value),e},Na={f:Ia},La=hi?function(e,t,n){return Na.f(e,t,Ei(1,n))}:function(e,t,n){return e[t]=n,e},Ra=Ai(Function.toString);Ni(ia.inspectSource)||(ia.inspectSource=function(e){return Ra(e)});var Ma,za,$a,Ha=ia.inspectSource,Va=di.WeakMap,Ua=Ni(Va)&&/native code/.test(Ha(Va)),Wa=aa("keys"),Ga=function(e){return Wa[e]||(Wa[e]=ha(e))},qa={},Ka=di.TypeError,Xa=di.WeakMap;if(Ua||ia.state){var Ya=ia.state||(ia.state=new Xa),Za=Ai(Ya.get),Ja=Ai(Ya.has),Qa=Ai(Ya.set);Ma=function(e,t){if(Ja(Ya,e))throw new Ka("Object already initialized");return t.facade=e,Qa(Ya,e,t),t},za=function(e){return Za(Ya,e)||{}},$a=function(e){return Ja(Ya,e)}}else{var eu=Ga("state");qa[eu]=!0,Ma=function(e,t){if(ca(e,eu))throw new Ka("Object already initialized");return t.facade=e,La(e,eu,t),t},za=function(e){return ca(e,eu)?e[eu]:{}},$a=function(e){return ca(e,eu)}}var tu={set:Ma,get:za,has:$a,enforce:function(e){return $a(e)?za(e):Ma(e,{})},getterFor:function(e){return function(t){var n;if(!Li(t)||(n=za(t)).type!==e)throw Ka("Incompatible receiver, "+e+" required");return n}}},nu=Function.prototype,ru=hi&&Object.getOwnPropertyDescriptor,ou=ca(nu,"name"),iu={EXISTS:ou,PROPER:ou&&"something"===function(){}.name,CONFIGURABLE:ou&&(!hi||hi&&ru(nu,"name").configurable)},au=Ve((function(e){var t=iu.CONFIGURABLE,n=tu.get,r=tu.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;Ni(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!ca(i,"name")||t&&i.name!==f)&&La(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==di?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:La(e,n,i)):l?e[n]=i:oa(n,i)})(Function.prototype,"toString",(function(){return Ni(this)&&n(this).source||Ha(this)}))})),uu=Math.ceil,su=Math.floor,lu=function(e){var t=+e;return t!=t||0===t?0:(t>0?su:uu)(t)},cu=Math.max,fu=Math.min,du=function(e,t){var n=lu(e);return n<0?cu(n+t,0):fu(n,t)},pu=Math.min,hu=function(e){return e>0?pu(lu(e),9007199254740991):0},gu=function(e){return hu(e.length)},vu=function(e){return function(t,n,r){var o,i=Ii(t),a=gu(i),u=du(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},yu=(vu(!0),vu(!1)),mu=Ai([].push),bu=function(e,t){var n,r=Ii(e),o=0,i=[];for(n in r)!ca(qa,n)&&ca(r,n)&&mu(i,n);for(;t.length>o;)ca(r,n=t[o++])&&(~yu(i,n)||mu(i,n));return i},wu=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Eu=wu.concat("length","prototype"),xu=Object.getOwnPropertyNames||function(e){return bu(e,Eu)},Du={f:xu},Cu={f:Object.getOwnPropertySymbols},Su=Ai([].concat),Au=Mi("Reflect","ownKeys")||function(e){var t=Du.f(_a(e)),n=Cu.f;return n?Su(t,n(e)):t},Ou=function(e,t){for(var n=Au(t),r=Na.f,o=Ba.f,i=0;i<n.length;i++){var a=n[i];ca(e,a)||r(e,a,o(t,a))}},ku=/#|\.prototype\./,Bu=function(e,t){var n=Tu[Fu(e)];return n==Pu||n!=_u&&(Ni(t)?pi(t):!!t)},Fu=Bu.normalize=function(e){return String(e).replace(ku,".").toLowerCase()},Tu=Bu.data={},_u=Bu.NATIVE="N",Pu=Bu.POLYFILL="P",ju=Bu,Iu=Ba.f,Nu=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?di:l?di[u]||oa(u,{}):(di[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Iu(n,r))&&a.value:n[r],!ju(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Ou(i,o)}(e.sham||o&&o.sham)&&La(i,"sham",!0),au(n,r,i,e)}},Lu={};Lu[ba("toStringTag")]="z";var Ru,Mu="[object z]"===String(Lu),zu=ba("toStringTag"),$u=di.Object,Hu="Arguments"==Bi(function(){return arguments}()),Vu=Mu?Bi:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=$u(e),zu))?n:Hu?Bi(t):"Object"==(r=Bi(t))&&Ni(t.callee)?"Arguments":r},Uu=di.String,Wu=function(e){if("Symbol"===Vu(e))throw TypeError("Cannot convert a Symbol value to a string");return Uu(e)},Gu=function(){var e=_a(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},qu=di.RegExp,Ku=pi((function(){var e=qu("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),Xu=Ku||pi((function(){return!qu("a","y").sticky})),Yu=Ku||pi((function(){var e=qu("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),Zu={BROKEN_CARET:Yu,MISSED_STICKY:Xu,UNSUPPORTED_Y:Ku},Ju=Object.keys||function(e){return bu(e,wu)},Qu=hi?Object.defineProperties:function(e,t){_a(e);for(var n,r=Ii(t),o=Ju(t),i=o.length,a=0;i>a;)Na.f(e,n=o[a++],r[n]);return e},es=Mi("document","documentElement"),ts=Ga("IE_PROTO"),ns=function(){},rs=function(e){return"<script>"+e+"<\/script>"},os=function(e){e.write(rs("")),e.close();var t=e.parentWindow.Object;return e=null,t},is=function(){try{Ru=new ActiveXObject("htmlfile")}catch(r){}var e,t;is="undefined"!=typeof document?document.domain&&Ru?os(Ru):((t=Sa("iframe")).style.display="none",es.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(rs("document.F=Object")),e.close(),e.F):os(Ru);for(var n=wu.length;n--;)delete is.prototype[wu[n]];return is()};qa[ts]=!0;var as,us,ss=Object.create||function(e,t){var n;return null!==e?(ns.prototype=_a(e),n=new ns,ns.prototype=null,n[ts]=e):n=is(),void 0===t?n:Qu(n,t)},ls=di.RegExp,cs=pi((function(){var e=ls(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),fs=di.RegExp,ds=pi((function(){var e=fs("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),ps=tu.get,hs=aa("native-string-replace",String.prototype.replace),gs=RegExp.prototype.exec,vs=gs,ys=Ai("".charAt),ms=Ai("".indexOf),bs=Ai("".replace),ws=Ai("".slice),Es=(us=/b*/g,vi(gs,as=/a/,"a"),vi(gs,us,"a"),0!==as.lastIndex||0!==us.lastIndex),xs=Zu.BROKEN_CARET,Ds=void 0!==/()??/.exec("")[1];(Es||Ds||xs||cs||ds)&&(vs=function(e){var t,n,r,o,i,a,u,s=this,l=ps(s),c=Wu(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=vi(vs,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=xs&&s.sticky,h=vi(Gu,s),g=s.source,v=0,y=c;if(p&&(h=bs(h,"y",""),-1===ms(h,"g")&&(h+="g"),y=ws(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==ys(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),Ds&&(n=new RegExp("^"+g+"$(?!\\s)",h)),Es&&(r=s.lastIndex),o=vi(gs,p?n:s,y),p?o?(o.input=ws(o.input,v),o[0]=ws(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Es&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Ds&&o&&o.length>1&&vi(hs,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=ss(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Cs=vs;Nu({target:"RegExp",proto:!0,forced:/./.exec!==Cs},{exec:Cs});ba("species");var Ss=RegExp.prototype,As=Ai("".charAt),Os=Ai("".charCodeAt),ks=Ai("".slice),Bs=function(e){return function(t,n){var r,o,i=Wu(ji(t)),a=lu(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=Os(i,a))<55296||r>56319||a+1===u||(o=Os(i,a+1))<56320||o>57343?e?As(i,a):r:e?ks(i,a,a+2):o-56320+(r-55296<<10)+65536}},Fs={codeAt:Bs(!1),charAt:Bs(!0)},Ts=Fs.charAt,_s=function(e,t,n){return t+(n?Ts(e,t).length:1)},Ps=di.TypeError,js=function(e,t){var n=e.exec;if(Ni(n)){var r=vi(n,e,t);return null!==r&&_a(r),r}if("RegExp"===Bi(e))return vi(Cs,e,t);throw Ps("RegExp#exec called on incompatible receiver")};!function(e,t,n,r){var o=ba(e),i=!pi((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!pi((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[o](""),!e}));if(!i||!a){var u=Ai(/./[o]),s=function(e,t,n){return[function(t){var n=ji(this),r=null==t?void 0:ta(t,e);return r?vi(r,t,n):new RegExp(t)[e](Wu(n))},function(e){var r=_a(this),o=Wu(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return js(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],l=0;null!==(u=js(r,o));){var c=Wu(u[0]);s[l]=c,""===c&&(r.lastIndex=_s(o,hu(r.lastIndex),a)),l++}return 0===l?null:s}]}(o,""[e],(function(e,t,n,r,o){var a=Ai(e),s=t.exec;return s===Cs||s===Ss.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));au(String.prototype,e,s[0]),au(Ss,o,s[1])}}("match"),Nu({global:!0},{globalThis:di});var Is=!pi((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Ns=Ga("IE_PROTO"),Ls=di.Object,Rs=Ls.prototype,Ms=Is?Ls.getPrototypeOf:function(e){var t=sa(e);if(ca(t,Ns))return t[Ns];var n=t.constructor;return Ni(n)&&t instanceof n?n.prototype:t instanceof Ls?Rs:null},zs=di.String,$s=di.TypeError,Hs=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Ai(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(n,r){return _a(n),function(e){if("object"==typeof e||Ni(e))return e;throw $s("Can't set "+zs(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),Vs=di.Array,Us=Math.max,Ws=Ai("".replace),Gs=Ai("".split),qs=Ai([].join),Ks=String(Error("zxcasd").stack),Xs=/\n\s*at [^:]*:[^\n]*/,Ys=Xs.test(Ks),Zs=/@[^\n]*\n/.test(Ks)&&!/zxcasd/.test(Ks),Js=function(e,t){if("string"!=typeof e)return e;if(Ys)for(;t--;)e=Ws(e,Xs,"");else if(Zs)return qs(function(e,t,n){for(var r,o,i,a,u=gu(e),s=du(t,u),l=du(u,u),c=Vs(Us(l-s,0)),f=0;s<l;s++,f++)r=c,o=f,i=e[s],void 0,(a=xa(o))in r?Na.f(r,a,Ei(0,i)):r[a]=i;return c.length=f,c}(Gs(e,"\n"),t),"\n");return e},Qs=function(e,t){Li(t)&&"cause"in t&&La(e,"cause",t.cause)},el=Ai(Ai.bind),tl=function(e,t){return ea(e),void 0===t?e:el?el(e,t):function(){return e.apply(t,arguments)}},nl={},rl=ba("iterator"),ol=Array.prototype,il=ba("iterator"),al=function(e){if(null!=e)return ta(e,il)||ta(e,"@@iterator")||nl[Vu(e)]},ul=di.TypeError,sl=function(e,t,n){var r,o;_a(e);try{if(!(r=ta(e,"return"))){if("throw"===t)throw n;return n}r=vi(r,e)}catch(i){o=!0,r=i}if("throw"===t)throw n;if(o)throw r;return _a(r),n},ll=di.TypeError,cl=function(e,t){this.stopped=e,this.result=t},fl=cl.prototype,dl=function(e,t,n){var r,o,i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),g=tl(t,f),v=function(e){return r&&sl(r,"normal",e),new cl(!0,e)},y=function(e){return d?(_a(e),h?g(e[0],e[1],v):g(e[0],e[1])):h?g(e,v):g(e)};if(p)r=e;else{if(!(o=al(e)))throw ll(Ji(e)+" is not iterable");if(void 0!==(c=o)&&(nl.Array===c||ol[rl]===c)){for(i=0,a=gu(e);a>i;i++)if((u=y(e[i]))&&zi(fl,u))return u;return new cl(!1)}r=function(e,t){var n=arguments.length<2?al(e):t;if(ea(n))return _a(vi(n,e));throw ul(Ji(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=vi(s,r)).done;){try{u=y(l.value)}catch(c){sl(r,"throw",c)}if("object"==typeof u&&u&&zi(fl,u))return u}return new cl(!1)},pl=function(e,t){return void 0===e?arguments.length<2?"":t:Wu(e)},hl=!pi((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Ei(1,7)),7!==e.stack)})),gl=ba("toStringTag"),vl=di.Error,yl=[].push,ml=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=zi(bl,this);Hs?n=Hs(new vl(void 0),o?Ms(this):bl):(n=o?this:ss(bl),La(n,gl,"Error")),La(n,"message",pl(t,"")),hl&&La(n,"stack",Js(n.stack,1)),Qs(n,r);var i=[];return dl(e,yl,{that:i}),La(n,"errors",i),n};Hs?Hs(ml,vl):Ou(ml,vl);var bl=ml.prototype=ss(vl.prototype,{constructor:Ei(1,ml),message:Ei(1,""),name:Ei(1,"AggregateError")});Nu({global:!0},{AggregateError:ml});var wl=ba("unscopables"),El=Array.prototype;null==El[wl]&&Na.f(El,wl,{configurable:!0,value:ss(null)});var xl,Dl,Cl,Sl=function(e){El[wl][e]=!0},Al=ba("iterator"),Ol=!1;[].keys&&("next"in(Cl=[].keys())?(Dl=Ms(Ms(Cl)))!==Object.prototype&&(xl=Dl):Ol=!0);var kl=null==xl||pi((function(){var e={};return xl[Al].call(e)!==e}));kl&&(xl={}),Ni(xl[Al])||au(xl,Al,(function(){return this}));var Bl={IteratorPrototype:xl,BUGGY_SAFARI_ITERATORS:Ol},Fl=Na.f,Tl=ba("toStringTag"),_l=function(e,t,n){e&&!ca(e=n?e:e.prototype,Tl)&&Fl(e,Tl,{configurable:!0,value:t})},Pl=Bl.IteratorPrototype,jl=function(){return this},Il=iu.PROPER,Nl=iu.CONFIGURABLE,Ll=Bl.IteratorPrototype,Rl=Bl.BUGGY_SAFARI_ITERATORS,Ml=ba("iterator"),zl=function(){return this},$l=function(e,t,n,r,o,i,a){var u,s,l;s=r,l=t+" Iterator",(u=n).prototype=ss(Pl,{next:Ei(1,s)}),_l(u,l,!1),nl[l]=jl;var c,f,d,p=function(e){if(e===o&&m)return m;if(!Rl&&e in v)return v[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},h=t+" Iterator",g=!1,v=e.prototype,y=v[Ml]||v["@@iterator"]||o&&v[o],m=!Rl&&y||p(o),b="Array"==t&&v.entries||y;if(b&&(c=Ms(b.call(new e)))!==Object.prototype&&c.next&&(Ms(c)!==Ll&&(Hs?Hs(c,Ll):Ni(c[Ml])||au(c,Ml,zl)),_l(c,h,!0)),Il&&"values"==o&&y&&"values"!==y.name&&(Nl?La(v,"name","values"):(g=!0,m=function(){return vi(y,this)})),o)if(f={values:p("values"),keys:i?m:p("keys"),entries:p("entries")},a)for(d in f)(Rl||g||!(d in v))&&au(v,d,f[d]);else Nu({target:t,proto:!0,forced:Rl||g},f);return v[Ml]!==m&&au(v,Ml,m,{name:o}),nl[t]=m,f},Hl=tu.set,Vl=tu.getterFor("Array Iterator"),Ul=$l(Array,"Array",(function(e,t){Hl(this,{type:"Array Iterator",target:Ii(e),index:0,kind:t})}),(function(){var e=Vl(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");nl.Arguments=nl.Array,Sl("keys"),Sl("values"),Sl("entries");var Wl=Fs.charAt,Gl=tu.set,ql=tu.getterFor("String Iterator");$l(String,"String",(function(e){Gl(this,{type:"String Iterator",string:Wu(e),index:0})}),(function(){var e,t=ql(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Wl(n,r),t.index+=e.length,{value:e,done:!1})}));var Kl,Xl={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},Yl=Sa("span").classList,Zl=Yl&&Yl.constructor&&Yl.constructor.prototype,Jl=Zl===Object.prototype?void 0:Zl,Ql=ba("iterator"),ec=ba("toStringTag"),tc=Ul.values,nc=function(e,t){if(e){if(e[Ql]!==tc)try{La(e,Ql,tc)}catch(r){e[Ql]=tc}if(e[ec]||La(e,ec,t),Xl[t])for(var n in Ul)if(e[n]!==Ul[n])try{La(e,n,Ul[n])}catch(r){e[n]=Ul[n]}}};for(var rc in Xl)nc(di[rc]&&di[rc].prototype,rc);function oc(){"undefined"==typeof globalThis&&(window.globalThis=window)}function ic(){void 0===ci&&(window.AggregateError=function(e,t){var n=new Error(t);return n.errors=e,n})}nc(Jl,"DOMTokenList"),"undefined"==typeof global?("ActiveXObject"in window&&console.error("抱歉,wangEditor V5+ 版本开始,不在支持 IE 浏览器\n Sorry, wangEditor V5+ versions do not support IE browser."),oc(),ic()):global&&(null===(Kl=global.navigator)||void 0===Kl?void 0:Kl.userAgent.match("QQBrowser"))&&(oc(),ic());var ac=Array.isArray||function(e){return"Array"==vt(e)},uc=function(){},sc=[],lc=At("Reflect","construct"),cc=/^\s*(?:class|function)\b/,fc=rt(cc.exec),dc=!cc.exec(uc),pc=function(e){if(!ot(e))return!1;try{return lc(uc,sc,e),!0}catch(t){return!1}},hc=!lc||it((function(){var e;return pc(pc.call)||!pc(Object)||!pc((function(){e=!0}))||e}))?function(e){if(!ot(e))return!1;switch(Wr(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return dc||!!fc(cc,ho(e))}:pc,gc=un("species"),vc=qe.Array,yc=function(e,t){return new(ac(n=e)&&(r=n.constructor,(hc(r)&&(r===vc||ac(r.prototype))||Dt(r)&&null===(r=r[gc]))&&(r=void 0)),void 0===r?vc:r)(0===t?0:t);var n,r},mc=un("species"),bc=un("isConcatSpreadable"),wc=qe.TypeError,Ec=jt>=51||!it((function(){var e=[];return e[bc]=!1,e.concat()[0]!==e})),xc=("concat",jt>=51||!it((function(){var e=[];return(e.constructor={})[mc]=function(){return{foo:1}},1!==e.concat(Boolean).foo}))),Dc=function(e){if(!Dt(e))return!1;var t=e[bc];return void 0!==t?!!t:ac(e)};Ln({target:"Array",proto:!0,forced:!Ec||!xc},{concat:function(e){var t,n,r,o,i,a=Xt(this),u=yc(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(Dc(i=-1===t?a:arguments[t])){if(s+(o=tr(i))>9007199254740991)throw wc("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&Cr(u,s,i[n])}else{if(s>=9007199254740991)throw wc("Maximum allowed index exceeded");Cr(u,s++,i)}return u.length=s,u}});var Cc=fr.f,Sc="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Ac={f:function(e){return Sc&&"Window"==vt(e)?function(e){try{return Cc(e)}catch(t){return Or(Sc)}}(e):Cc(xt(e))}},Oc=rt([].slice),kc={f:un},Bc=Pn.f,Fc=function(e){var t=Ct.Symbol||(Ct.Symbol={});Zt(t,e)||Bc(t,e,{value:kc.f(e)})},Tc=rt([].push),_c=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=Xt(s),g=bt(h),v=An(l,c),y=tr(g),m=0,b=f||yc,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:Tc(w,d)}else switch(e){case 4:return!1;case 7:Tc(w,d)}return i?-1:r||o?o:w}},Pc=[_c(0),_c(1),_c(2),_c(3),_c(4),_c(5),_c(6),_c(7)][0],jc=Mn("hidden"),Ic=un("toPrimitive"),Nc=Oo.set,Lc=Oo.getterFor("Symbol"),Rc=Object.prototype,Mc=qe.Symbol,zc=Mc&&Mc.prototype,$c=qe.TypeError,Hc=qe.QObject,Vc=At("JSON","stringify"),Uc=yn.f,Wc=Pn.f,Gc=Ac.f,qc=dt.f,Kc=rt([].push),Xc=qt("symbols"),Yc=qt("op-symbols"),Zc=qt("string-to-symbol-registry"),Jc=qt("symbol-to-string-registry"),Qc=qt("wks"),ef=!Hc||!Hc.prototype||!Hc.prototype.findChild,tf=at&&it((function(){return 7!=Dr(Wc({},"a",{get:function(){return Wc(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=Uc(Rc,t);r&&delete Rc[t],Wc(e,t,n),r&&e!==Rc&&Wc(Rc,t,r)}:Wc,nf=function(e,t){var n=Xc[e]=Dr(zc);return Nc(n,{type:"Symbol",tag:e,description:t}),at||(n.description=t),n},rf=function(e,t,n){e===Rc&&rf(Yc,t,n),Bn(e);var r=cn(t);return Bn(n),Zt(Xc,r)?(n.enumerable?(Zt(e,jc)&&e[jc][r]&&(e[jc][r]=!1),n=Dr(n,{enumerable:pt(0,!1)})):(Zt(e,jc)||Wc(e,jc,pt(1,{})),e[jc][r]=!0),tf(e,r,n)):Wc(e,r,n)},of=function(e,t){Bn(e);var n=xt(t),r=gr(n).concat(lf(n));return Pc(r,(function(t){at&&!st(af,n,t)||rf(e,t,n[t])})),e},af=function(e){var t=cn(e),n=st(qc,this,t);return!(this===Rc&&Zt(Xc,t)&&!Zt(Yc,t))&&(!(n||!Zt(this,t)||!Zt(Xc,t)||Zt(this,jc)&&this[jc][t])||n)},uf=function(e,t){var n=xt(e),r=cn(t);if(n!==Rc||!Zt(Xc,r)||Zt(Yc,r)){var o=Uc(n,r);return!o||!Zt(Xc,r)||Zt(n,jc)&&n[jc][r]||(o.enumerable=!0),o}},sf=function(e){var t=Gc(xt(e)),n=[];return Pc(t,(function(e){Zt(Xc,e)||Zt(or,e)||Kc(n,e)})),n},lf=function(e){var t=e===Rc,n=Gc(t?Yc:xt(e)),r=[];return Pc(n,(function(e){!Zt(Xc,e)||t&&!Zt(Rc,e)||Kc(r,Xc[e])})),r};if(It||(zc=(Mc=function(){if(Ot(zc,this))throw $c("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?to(arguments[0]):void 0,t=tn(e),n=function(e){this===Rc&&st(n,Yc,e),Zt(this,jc)&&Zt(this[jc],t)&&(this[jc][t]=!1),tf(this,t,pt(1,e))};return at&&ef&&tf(Rc,t,{configurable:!0,set:n}),nf(t,e)}).prototype,_o(zc,"toString",(function(){return Lc(this).tag})),_o(Mc,"withoutSetter",(function(e){return nf(tn(e),e)})),dt.f=af,Pn.f=rf,yn.f=uf,fr.f=Ac.f=sf,dr.f=lf,kc.f=function(e){return nf(un(e),e)},at&&Wc(zc,"description",{configurable:!0,get:function(){return Lc(this).description}})),Ln({global:!0,wrap:!0,forced:!It,sham:!It},{Symbol:Mc}),Pc(gr(Qc),(function(e){Fc(e)})),Ln({target:"Symbol",stat:!0,forced:!It},{for:function(e){var t=to(e);if(Zt(Zc,t))return Zc[t];var n=Mc(t);return Zc[t]=n,Jc[n]=t,n},keyFor:function(e){if(!Rt(e))throw $c(e+" is not a symbol");if(Zt(Jc,e))return Jc[e]},useSetter:function(){ef=!0},useSimple:function(){ef=!1}}),Ln({target:"Object",stat:!0,forced:!It,sham:!at},{create:function(e,t){return void 0===t?Dr(e):of(Dr(e),t)},defineProperty:rf,defineProperties:of,getOwnPropertyDescriptor:uf}),Ln({target:"Object",stat:!0,forced:!It},{getOwnPropertyNames:sf,getOwnPropertySymbols:lf}),Ln({target:"Object",stat:!0,forced:it((function(){dr.f(1)}))},{getOwnPropertySymbols:function(e){return dr.f(Xt(e))}}),Vc){var cf=!It||it((function(){var e=Mc();return"[null]"!=Vc([e])||"{}"!=Vc({a:e})||"{}"!=Vc(Object(e))}));Ln({target:"JSON",stat:!0,forced:cf},{stringify:function(e,t,n){var r=Oc(arguments),o=t;if((Dt(t)||void 0!==e)&&!Rt(e))return ac(t)||(t=function(e,t){if(ot(o)&&(t=st(o,this,e,t)),!Rt(t))return t}),r[1]=t,Je(Vc,null,r)}})}if(!zc[Ic]){var ff=zc.valueOf;_o(zc,Ic,(function(e){return st(ff,this)}))}zo(Mc,"Symbol"),or[jc]=!0,Fc("asyncIterator"),Fc("hasInstance"),Fc("isConcatSpreadable"),Fc("iterator"),Fc("match"),Fc("matchAll"),Fc("replace"),Fc("search"),Fc("species"),Fc("split"),Fc("toPrimitive"),Fc("toStringTag"),Fc("unscopables"),zo(qe.JSON,"JSON",!0);var df=Ct.Symbol;Fc("asyncDispose"),Fc("dispose"),Fc("matcher"),Fc("metadata"),Fc("observable"),Fc("patternMatch"),Fc("replaceAll");var pf,hf=df,gf=kc.f("iterator"),vf=Ve((function(e){function t(n){return"function"==typeof hf&&"symbol"==typeof gf?(e.exports=t=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(e){return e&&"function"==typeof hf&&e.constructor===hf&&e!==hf.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0})),yf=(pf=vf)&&pf.__esModule&&Object.prototype.hasOwnProperty.call(pf,"default")?pf.default:pf,mf=Ba.f,bf=pi((function(){mf(1)}));if(Nu({target:"Object",stat:!0,forced:!hi||bf,sham:!hi},{getOwnPropertyDescriptor:function(e,t){return mf(Ii(e),t)}}),"object"===("undefined"==typeof global?"undefined":yf(global))){var wf=Object.getOwnPropertyDescriptor(global,"window");global.window&&!wf.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(e){return nodeCrypto.randomFillSync(e)}}),null!=global.document&&null==global.document.getElementsByTagName&&(global.document.getElementsByTagName=function(){return[]})}
  2. /*!
  3. * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
  4. *
  5. * Copyright (c) 2014-2017, Jon Schlinkert.
  6. * Released under the MIT License.
  7. */function Ef(e){return"[object Object]"===Object.prototype.toString.call(e)}function xf(e){var t,n;return!1!==Ef(e)&&(void 0===(t=e.constructor)||!1!==Ef(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}function Df(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Cf(e){return!!e&&!!e[sd]}function Sf(e){return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===ld}(e)||Array.isArray(e)||!!e[ud]||!!e.constructor[ud]||Ff(e)||Tf(e))}function Af(e,t,n){void 0===n&&(n=!1),0===Of(e)?(n?Object.keys:cd)(e).forEach((function(r){n&&"symbol"==typeof r||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function Of(e){var t=e[sd];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Ff(e)?2:Tf(e)?3:0}function kf(e,t){return 2===Of(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Bf(e,t,n){var r=Of(e);2===r?e.set(t,n):3===r?(e.delete(t),e.add(n)):e[t]=n}function Ff(e){return rd&&e instanceof Map}function Tf(e){return od&&e instanceof Set}function _f(e){return e.o||e.t}function Pf(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=fd(e);delete t[sd];for(var n=cd(t),r=0;r<n.length;r++){var o=n[r],i=t[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function jf(e,t){return void 0===t&&(t=!1),Nf(e)||Cf(e)||!Sf(e)||(Of(e)>1&&(e.set=e.add=e.clear=e.delete=If),Object.freeze(e),t&&Af(e,(function(e,t){return jf(t,!0)}),!0)),e}function If(){Df(2)}function Nf(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function Lf(e){var t=dd[e];return t||Df(18,e),t}function Rf(){return td}function Mf(e,t){t&&(Lf("Patches"),e.u=[],e.s=[],e.v=t)}function zf(e){$f(e),e.p.forEach(Vf),e.p=null}function $f(e){e===td&&(td=e.l)}function Hf(e){return td={p:[],l:td,h:e,m:!0,_:0}}function Vf(e){var t=e[sd];0===t.i||1===t.i?t.j():t.O=!0}function Uf(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.g||Lf("ES5").S(t,e,r),r?(n[sd].P&&(zf(t),Df(4)),Sf(e)&&(e=Wf(t,e),t.l||qf(t,e)),t.u&&Lf("Patches").M(n[sd],e,t.u,t.s)):e=Wf(t,n,[]),zf(t),t.u&&t.v(t.u,t.s),e!==ad?e:void 0}function Wf(e,t,n){if(Nf(t))return t;var r=t[sd];if(!r)return Af(t,(function(o,i){return Gf(e,r,t,o,i,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return qf(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=Pf(r.k):r.o;Af(3===r.i?new Set(o):o,(function(t,i){return Gf(e,r,o,t,i,n)})),qf(e,o,!1),n&&e.u&&Lf("Patches").R(r,n,e.u,e.s)}return r.o}function Gf(e,t,n,r,o,i){if(Cf(o)){var a=Wf(e,o,i&&t&&3!==t.i&&!kf(t.D,r)?i.concat(r):void 0);if(Bf(n,r,a),!Cf(a))return;e.m=!1}if(Sf(o)&&!Nf(o)){if(!e.h.F&&e._<1)return;Wf(e,o),t&&t.A.l||qf(e,o)}}function qf(e,t,n){void 0===n&&(n=!1),e.h.F&&e.m&&jf(t,n)}function Kf(e,t){var n=e[sd];return(n?_f(n):e)[t]}function Xf(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function Yf(e){e.P||(e.P=!0,e.l&&Yf(e.l))}function Zf(e){e.o||(e.o=Pf(e.t))}function Jf(e,t,n){var r=Ff(t)?Lf("MapSet").N(t,n):Tf(t)?Lf("MapSet").T(t,n):e.g?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:Rf(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=r,i=pd;n&&(o=[r],i=hd);var a=Proxy.revocable(o,i),u=a.revoke,s=a.proxy;return r.k=s,r.j=u,s}(t,n):Lf("ES5").J(t,n);return(n?n.A:Rf()).p.push(r),r}function Qf(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Pf(e)}var ed,td,nd="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),rd="undefined"!=typeof Map,od="undefined"!=typeof Set,id="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,ad=nd?Symbol.for("immer-nothing"):((ed={})["immer-nothing"]=!0,ed),ud=nd?Symbol.for("immer-draftable"):"__$immer_draftable",sd=nd?Symbol.for("immer-state"):"__$immer_state",ld=""+Object.prototype.constructor,cd="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,fd=Object.getOwnPropertyDescriptors||function(e){var t={};return cd(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},dd={},pd={get:function(e,t){if(t===sd)return e;var n=_f(e);if(!kf(n,t))return function(e,t,n){var r,o=Xf(t,n);return o?"value"in o?o.value:null===(r=o.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!Sf(r)?r:r===Kf(e.t,t)?(Zf(e),e.o[t]=Jf(e.A.h,r,e)):r},has:function(e,t){return t in _f(e)},ownKeys:function(e){return Reflect.ownKeys(_f(e))},set:function(e,t,n){var r,o,i=Xf(_f(e),t);if(null==i?void 0:i.set)return i.set.call(e.k,n),!0;if(!e.P){var a=Kf(_f(e),t),u=null==a?void 0:a[sd];if(u&&u.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(((r=n)===(o=a)?0!==r||1/r==1/o:r!=r&&o!=o)&&(void 0!==n||kf(e.t,t)))return!0;Zf(e),Yf(e)}return e.o[t]===n&&"number"!=typeof n&&(void 0!==n||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return void 0!==Kf(e.t,t)||t in e.t?(e.D[t]=!1,Zf(e),Yf(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=_f(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){Df(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Df(12)}},hd={};Af(pd,(function(e,t){hd[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),hd.deleteProperty=function(e,t){return pd.deleteProperty.call(this,e[0],t)},hd.set=function(e,t,n){return pd.set.call(this,e[0],t,n,e[0])};var gd=function(){function e(e){var t=this;this.g=id,this.F=!0,this.produce=function(e,n,r){if("function"==typeof e&&"function"!=typeof n){var o=n;n=e;var i=t;return function(e){var t=this;void 0===e&&(e=o);for(var r=arguments.length,a=Array(r>1?r-1:0),u=1;u<r;u++)a[u-1]=arguments[u];return i.produce(e,(function(e){var r;return(r=n).call.apply(r,[t,e].concat(a))}))}}var a;if("function"!=typeof n&&Df(6),void 0!==r&&"function"!=typeof r&&Df(7),Sf(e)){var u=Hf(t),s=Jf(t,e,void 0),l=!0;try{a=n(s),l=!1}finally{l?zf(u):$f(u)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(e){return Mf(u,r),Uf(e,u)}),(function(e){throw zf(u),e})):(Mf(u,r),Uf(a,u))}if(!e||"object"!=typeof e){if((a=n(e))===ad)return;return void 0===a&&(a=e),t.F&&jf(a,!0),a}Df(21,e)},this.produceWithPatches=function(e,n){return"function"==typeof e?function(n){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return t.produceWithPatches(n,(function(t){return e.apply(void 0,[t].concat(o))}))}:[t.produce(e,n,(function(e,t){r=e,o=t})),r,o];var r,o},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){Sf(e)||Df(8),Cf(e)&&(e=function(e){return Cf(e)||Df(22,e),function e(t){if(!Sf(t))return t;var n,r=t[sd],o=Of(t);if(r){if(!r.P&&(r.i<4||!Lf("ES5").K(r)))return r.t;r.I=!0,n=Qf(t,o),r.I=!1}else n=Qf(t,o);return Af(n,(function(t,o){var i,a;r&&(a=t,(2===Of(i=r.t)?i.get(a):i[a])===o)||Bf(n,t,e(o))})),3===o?new Set(n):n}(e)}(e));var t=Hf(this),n=Jf(this,e,void 0);return n[sd].C=!0,$f(t),n},t.finishDraft=function(e,t){var n=(e&&e[sd]).A;return Mf(n,t),Uf(void 0,n)},t.setAutoFreeze=function(e){this.F=e},t.setUseProxies=function(e){e&&!id&&Df(20),this.g=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var o=Lf("Patches").$;return Cf(e)?o(e,t):this.produce(e,(function(e){return o(e,t)}))},e}(),vd=new gd,yd=vd.produce;vd.produceWithPatches.bind(vd),vd.setAutoFreeze.bind(vd),vd.setUseProxies.bind(vd),vd.applyPatches.bind(vd);var md=vd.createDraft.bind(vd),bd=vd.finishDraft.bind(vd);function wd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ed=new WeakMap,xd=new WeakMap,Dd=new WeakMap,Cd=new WeakMap,Sd=new WeakMap,Ad=new WeakMap;function Od(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Od(Object(n),!0).forEach((function(t){wd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Od(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Bd=e=>{switch(e.type){case"insert_text":case"remove_text":case"set_node":var{path:t}=e;return wp.levels(t);case"insert_node":var{node:n,path:r}=e;return[...wp.levels(r),...Ip.isText(n)?[]:Array.from(vp.nodes(n),(e=>{var[,t]=e;return r.concat(t)}))];case"merge_node":var{path:o}=e;return[...wp.ancestors(o),wp.previous(o)];case"move_node":var{path:i,newPath:a}=e;if(wp.equals(i,a))return[];var u=[],s=[];for(var l of wp.ancestors(i)){var c=wp.transform(l,e);u.push(c)}for(var f of wp.ancestors(a)){var d=wp.transform(f,e);s.push(d)}var p=s[s.length-1],h=a[a.length-1],g=p.concat(h);return[...u,...s,g];case"remove_node":var{path:v}=e;return[...wp.ancestors(v)];case"split_node":var{path:y}=e;return[...wp.levels(y),wp.next(y)];default:return[]}};function Fd(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Td,_d=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!t,r=t?Rd(e):e,o=Td.None,i=Td.None,a=0,u=null;for(var s of r){var l=s.codePointAt(0);if(!l)break;var c=Yd(s,l);if([o,i]=n?[i,c]:[c,o],Zd(o,Td.ZWJ)&&Zd(i,Td.ExtPict)&&!tp(n?e.substring(0,a):e.substring(0,e.length-a)))break;if(Zd(o,Td.RI)&&Zd(i,Td.RI)&&!(u=null!==u?!u:!!n||rp(e.substring(0,e.length-a))))break;if(o!==Td.None&&i!==Td.None&&Qd(o,i))break;a+=s.length}return a||1},Pd=/\s/,jd=/[\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]/,Id=/['\u2018\u2019]/,Nd=(e,t,n)=>{if(n){var r=e.length-t;return[e.slice(r,e.length),e.slice(0,r)]}return[e.slice(0,t),e.slice(t)]},Ld=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(Pd.test(t))return!1;if(Id.test(t)){var o=_d(n,r),[i,a]=Nd(n,o,r);if(e(i,a,r))return!0}return!jd.test(t)},Rd=function*(e){for(var t=e.length-1,n=0;n<e.length;n++){var r=e.charAt(t-n);if(zd(r.charCodeAt(0))){var o=e.charAt(t-n-1);if(Md(o.charCodeAt(0))){yield o+r,n++;continue}}yield r}},Md=e=>e>=55296&&e<=56319,zd=e=>e>=56320&&e<=57343;!function(e){e[e.None=0]="None",e[e.Extend=1]="Extend",e[e.ZWJ=2]="ZWJ",e[e.RI=4]="RI",e[e.Prepend=8]="Prepend",e[e.SpacingMark=16]="SpacingMark",e[e.L=32]="L",e[e.V=64]="V",e[e.T=128]="T",e[e.LV=256]="LV",e[e.LVT=512]="LVT",e[e.ExtPict=1024]="ExtPict",e[e.Any=2048]="Any"}(Td||(Td={}));var $d=/^(?:[\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])$/,Hd=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,Vd=/^(?:[\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])$/,Ud=/^[\u1100-\u115F\uA960-\uA97C]$/,Wd=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,Gd=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,qd=/^[\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]$/,Kd=/^[\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]$/,Xd=/^(?:[\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])$/,Yd=(e,t)=>{var n=Td.Any;return-1!==e.search($d)&&(n|=Td.Extend),8205===t&&(n|=Td.ZWJ),t>=127462&&t<=127487&&(n|=Td.RI),-1!==e.search(Hd)&&(n|=Td.Prepend),-1!==e.search(Vd)&&(n|=Td.SpacingMark),-1!==e.search(Ud)&&(n|=Td.L),-1!==e.search(Wd)&&(n|=Td.V),-1!==e.search(Gd)&&(n|=Td.T),-1!==e.search(qd)&&(n|=Td.LV),-1!==e.search(Kd)&&(n|=Td.LVT),-1!==e.search(Xd)&&(n|=Td.ExtPict),n};function Zd(e,t){return 0!=(e&t)}var Jd=[[Td.L,Td.L|Td.V|Td.LV|Td.LVT],[Td.LV|Td.V,Td.V|Td.T],[Td.LVT|Td.T,Td.T],[Td.Any,Td.Extend|Td.ZWJ],[Td.Any,Td.SpacingMark],[Td.Prepend,Td.Any],[Td.ZWJ,Td.ExtPict],[Td.RI,Td.RI]];function Qd(e,t){return-1===Jd.findIndex((n=>Zd(e,n[0])&&Zd(t,n[1])))}var ep=/(?:[\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$/,tp=e=>-1!==e.search(ep),np=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,rp=e=>{var t=e.match(np);return null!==t&&t[0].length/2%2==1},op=e=>xf(e)&&vp.isNodeList(e.children)&&!fp.isEditor(e),ip={isAncestor:e=>xf(e)&&vp.isNodeList(e.children),isElement:op,isElementList:e=>Array.isArray(e)&&e.every((e=>ip.isElement(e))),isElementProps:e=>void 0!==e.children,isElementType:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"type";return op(e)&&e[n]===t},matches(e,t){for(var n in t)if("children"!==n&&e[n]!==t[n])return!1;return!0}},ap=["text"],up=["text"];function sp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function lp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sp(Object(n),!0).forEach((function(t){wd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var cp=new WeakMap,fp={above(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{voids:n=!1,mode:r="lowest",at:o=e.selection,match:i}=t;if(o){var a=fp.path(e,o),u="lowest"===r;for(var[s,l]of fp.levels(e,{at:a,voids:n,match:i,reverse:u}))if(!Ip.isText(s)&&!wp.equals(a,l))return[s,l]}},addMark(e,t,n){e.addMark(t,n)},after(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o={anchor:fp.point(e,t,{edge:"end"}),focus:fp.end(e,[])},{distance:i=1}=r,a=0;for(var u of fp.positions(e,lp(lp({},r),{},{at:o}))){if(a>i)break;0!==a&&(n=u),a++}return n},before(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o={anchor:fp.start(e,[]),focus:fp.point(e,t,{edge:"start"})},{distance:i=1}=r,a=0;for(var u of fp.positions(e,lp(lp({},r),{},{at:o,reverse:!0}))){if(a>i)break;0!==a&&(n=u),a++}return n},deleteBackward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteBackward(n)},deleteForward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteForward(n)},deleteFragment(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{direction:n="forward"}=t;e.deleteFragment(n)},edges:(e,t)=>[fp.start(e,t),fp.end(e,t)],end:(e,t)=>fp.point(e,t,{edge:"end"}),first(e,t){var n=fp.path(e,t,{edge:"start"});return fp.node(e,n)},fragment(e,t){var n=fp.range(e,t);return vp.fragment(e,n)},hasBlocks:(e,t)=>t.children.some((t=>fp.isBlock(e,t))),hasInlines:(e,t)=>t.children.some((t=>Ip.isText(t)||fp.isInline(e,t))),hasTexts:(e,t)=>t.children.every((e=>Ip.isText(e))),insertBreak(e){e.insertBreak()},insertFragment(e,t){e.insertFragment(t)},insertNode(e,t){e.insertNode(t)},insertText(e,t){e.insertText(t)},isBlock:(e,t)=>ip.isElement(t)&&!e.isInline(t),isEditor(e){if(!xf(e))return!1;var t=cp.get(e);if(void 0!==t)return t;var n="function"==typeof e.addMark&&"function"==typeof e.apply&&"function"==typeof e.deleteBackward&&"function"==typeof e.deleteForward&&"function"==typeof e.deleteFragment&&"function"==typeof e.insertBreak&&"function"==typeof e.insertFragment&&"function"==typeof e.insertNode&&"function"==typeof e.insertText&&"function"==typeof e.isInline&&"function"==typeof e.isVoid&&"function"==typeof e.normalizeNode&&"function"==typeof e.onChange&&"function"==typeof e.removeMark&&(null===e.marks||xf(e.marks))&&(null===e.selection||kp.isRange(e.selection))&&vp.isNodeList(e.children)&&bp.isOperationList(e.operations);return cp.set(e,n),n},isEnd(e,t,n){var r=fp.end(e,n);return Cp.equals(t,r)},isEdge:(e,t,n)=>fp.isStart(e,t,n)||fp.isEnd(e,t,n),isEmpty(e,t){var{children:n}=t,[r]=n;return 0===n.length||1===n.length&&Ip.isText(r)&&""===r.text&&!e.isVoid(t)},isInline:(e,t)=>ip.isElement(t)&&e.isInline(t),isNormalizing(e){var t=Dd.get(e);return void 0===t||t},isStart(e,t,n){if(0!==t.offset)return!1;var r=fp.start(e,n);return Cp.equals(t,r)},isVoid:(e,t)=>ip.isElement(t)&&e.isVoid(t),last(e,t){var n=fp.path(e,t,{edge:"end"});return fp.node(e,n)},leaf(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=fp.path(e,t,n);return[vp.leaf(e,r),r]},*levels(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,reverse:r=!1,voids:o=!1}=t,{match:i}=t;if(null==i&&(i=()=>!0),n){var a=[],u=fp.path(e,n);for(var[s,l]of vp.levels(e,u))if(i(s,l)&&(a.push([s,l]),!o&&fp.isVoid(e,s)))break;r&&a.reverse(),yield*a}},marks(e){var{marks:t,selection:n}=e;if(!n)return null;if(t)return t;if(kp.isExpanded(n)){var[r]=fp.nodes(e,{match:Ip.isText});if(r){var[o]=r;return Fd(o,ap)}return{}}var{anchor:i}=n,{path:a}=i,[u]=fp.leaf(e,a);if(0===i.offset){var s=fp.previous(e,{at:a,match:Ip.isText}),l=fp.above(e,{match:t=>fp.isBlock(e,t)});if(s&&l){var[c,f]=s,[,d]=l;wp.isAncestor(d,f)&&(u=c)}}return Fd(u,up)},next(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection}=t;if(i){var a=fp.after(e,i,{voids:r});if(a){var[,u]=fp.last(e,[]),s=[a.path,u];if(wp.isPath(i)&&0===i.length)throw new Error("Cannot get the next node from the root node!");if(null==o)if(wp.isPath(i)){var[l]=fp.parent(e,i);o=e=>l.children.includes(e)}else o=()=>!0;var[c]=fp.nodes(e,{at:s,match:o,mode:n,voids:r});return c}}},node(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=fp.path(e,t,n);return[vp.get(e,r),r]},*nodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,mode:r="all",universal:o=!1,reverse:i=!1,voids:a=!1}=t,{match:u}=t;if(u||(u=()=>!0),n){var s,l;if(dp.isSpan(n))s=n[0],l=n[1];else{var c=fp.path(e,n,{edge:"start"}),f=fp.path(e,n,{edge:"end"});s=i?f:c,l=i?c:f}var d,p=vp.nodes(e,{reverse:i,from:s,to:l,pass:t=>{var[n]=t;return!a&&fp.isVoid(e,n)}}),h=[];for(var[g,v]of p){var y=d&&0===wp.compare(v,d[1]);if("highest"!==r||!y)if(u(g,v))if("lowest"===r&&y)d=[g,v];else{var m="lowest"===r?d:[g,v];m&&(o?h.push(m):yield m),d=[g,v]}else if(o&&!y&&Ip.isText(g))return}"lowest"===r&&d&&(o?h.push(d):yield d),o&&(yield*h)}},normalize(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{force:n=!1}=t,r=e=>Ed.get(e)||[];if(fp.isNormalizing(e)){if(n){var o=Array.from(vp.nodes(e),(e=>{var[,t]=e;return t}));Ed.set(e,o)}0!==r(e).length&&fp.withoutNormalizing(e,(()=>{for(var t of r(e))if(vp.has(e,t)){var n=fp.node(e,t),[o,i]=n;ip.isElement(o)&&0===o.children.length&&e.normalizeNode(n)}for(var a=42*r(e).length,u=0;0!==r(e).length;){if(u>a)throw new Error("\n Could not completely normalize the editor after ".concat(a," iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.\n "));var s=r(e).pop();if(vp.has(e,s)){var l=fp.node(e,s);e.normalizeNode(l)}u++}}))}},parent(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=fp.path(e,t,n),o=wp.parent(r);return fp.node(e,o)},path(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{depth:r,edge:o}=n;if(wp.isPath(t))if("start"===o){var[,i]=vp.first(e,t);t=i}else if("end"===o){var[,a]=vp.last(e,t);t=a}return kp.isRange(t)&&(t="start"===o?kp.start(t):"end"===o?kp.end(t):wp.common(t.anchor.path,t.focus.path)),Cp.isPoint(t)&&(t=t.path),null!=r&&(t=t.slice(0,r)),t},hasPath:(e,t)=>vp.has(e,t),pathRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return fp.pathRefs(e).delete(o),o.current=null,t}};return fp.pathRefs(e).add(o),o},pathRefs(e){var t=Cd.get(e);return t||(t=new Set,Cd.set(e,t)),t},point(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{edge:r="start"}=n;if(wp.isPath(t)){var o;if("end"===r){var[,i]=vp.last(e,t);o=i}else{var[,a]=vp.first(e,t);o=a}var u=vp.get(e,o);if(!Ip.isText(u))throw new Error("Cannot get the ".concat(r," point in the node at path [").concat(t,"] because it has no ").concat(r," text node."));return{path:o,offset:"end"===r?u.text.length:0}}if(kp.isRange(t)){var[s,l]=kp.edges(t);return"start"===r?s:l}return t},pointRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return fp.pointRefs(e).delete(o),o.current=null,t}};return fp.pointRefs(e).add(o),o},pointRefs(e){var t=Sd.get(e);return t||(t=new Set,Sd.set(e,t)),t},*positions(e){var t,n,r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:i=e.selection,unit:a="offset",reverse:u=!1,voids:s=!1}=o;if(i){var l=fp.range(e,i),[c,f]=kp.edges(l),d=u?f:c,p=!1,h="",g=0,v=0,y=0;for(var[m,b]of fp.nodes(e,{at:i,reverse:u,voids:s})){if(ip.isElement(m)){if(!s&&e.isVoid(m)){yield fp.start(e,b);continue}if(e.isInline(m))continue;if(fp.hasInlines(e,m)){var w=wp.isAncestor(b,f.path)?f:fp.end(e,b),E=wp.isAncestor(b,c.path)?c:fp.start(e,b);h=fp.string(e,{anchor:E,focus:w},{voids:s}),p=!0}}if(Ip.isText(m)){var x=wp.equals(b,d.path);for(x?(v=u?d.offset:m.text.length-d.offset,y=d.offset):(v=m.text.length,y=u?v:0),(x||p||"offset"===a)&&(yield{path:b,offset:y},p=!1);;){if(0===g){if(""===h)break;t=h,r=u,g="character"===(n=a)?_d(t,r):"word"===n?function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=0,r=!1;e.length>0;){var o=_d(e,t),[i,a]=Nd(e,o,t);if(Ld(i,a,t))r=!0,n+=o;else{if(r)break;n+=o}e=a}return n}(t,r):"line"===n||"block"===n?t.length:1,h=Nd(h,g,u)[1]}if(y=u?y-g:y+g,(v-=g)<0){g=-v;break}g=0,yield{path:b,offset:y}}}}}},previous(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection}=t;if(i){var a=fp.before(e,i,{voids:r});if(a){var[,u]=fp.first(e,[]),s=[a.path,u];if(wp.isPath(i)&&0===i.length)throw new Error("Cannot get the previous node from the root node!");if(null==o)if(wp.isPath(i)){var[l]=fp.parent(e,i);o=e=>l.children.includes(e)}else o=()=>!0;var[c]=fp.nodes(e,{reverse:!0,at:s,match:o,mode:n,voids:r});return c}}},range:(e,t,n)=>kp.isRange(t)&&!n?t:{anchor:fp.start(e,t),focus:fp.end(e,n||t)},rangeRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return fp.rangeRefs(e).delete(o),o.current=null,t}};return fp.rangeRefs(e).add(o),o},rangeRefs(e){var t=Ad.get(e);return t||(t=new Set,Ad.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){Dd.set(e,t)},start:(e,t)=>fp.point(e,t,{edge:"start"}),string(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,o=fp.range(e,t),[i,a]=kp.edges(o),u="";for(var[s,l]of fp.nodes(e,{at:o,match:Ip.isText,voids:r})){var c=s.text;wp.equals(l,a.path)&&(c=c.slice(0,a.offset)),wp.equals(l,i.path)&&(c=c.slice(i.offset)),u+=c}return u},unhangRange(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,[o,i]=kp.edges(t);if(0!==o.offset||0!==i.offset||kp.isCollapsed(t))return t;var a=fp.above(e,{at:i,match:t=>fp.isBlock(e,t)}),u=a?a[1]:[],s={anchor:fp.start(e,[]),focus:i},l=!0;for(var[c,f]of fp.nodes(e,{at:s,match:Ip.isText,reverse:!0,voids:r}))if(l)l=!1;else if(""!==c.text||wp.isBefore(f,u)){i={path:f,offset:c.text.length};break}return{anchor:o,focus:i}},void(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return fp.above(e,lp(lp({},t),{},{match:t=>fp.isVoid(e,t)}))},withoutNormalizing(e,t){var n=fp.isNormalizing(e);fp.setNormalizing(e,!1);try{t()}finally{fp.setNormalizing(e,n)}fp.normalize(e)}},dp={isSpan:e=>Array.isArray(e)&&2===e.length&&e.every(wp.isPath)},pp=["children"],hp=["text"],gp=new WeakMap,vp={ancestor(e,t){var n=vp.get(e,t);if(Ip.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(n));return n},*ancestors(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var r of wp.ancestors(t,n)){var o=[vp.ancestor(e,r),r];yield o}},child(e,t){if(Ip.isText(e))throw new Error("Cannot get the child of a text node: ".concat(JSON.stringify(e)));var n=e.children[t];if(null==n)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(JSON.stringify(e)));return n},*children(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{reverse:r=!1}=n,o=vp.ancestor(e,t),{children:i}=o,a=r?i.length-1:0;r?a>=0:a<i.length;){var u=vp.child(o,a),s=t.concat(a);yield[u,s],a=r?a-1:a+1}},common(e,t,n){var r=wp.common(t,n);return[vp.get(e,r),r]},descendant(e,t){var n=vp.get(e,t);if(fp.isEditor(n))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(n));return n},*descendants(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of vp.nodes(e,t))0!==r.length&&(yield[n,r])},*elements(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of vp.nodes(e,t))ip.isElement(n)&&(yield[n,r])},extractProps:e=>ip.isAncestor(e)?Fd(e,pp):Fd(e,hp),first(e,t){for(var n=t.slice(),r=vp.get(e,n);r&&!Ip.isText(r)&&0!==r.children.length;)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(Ip.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(e)));var n=yd({children:e.children},(e=>{var[n,r]=kp.edges(t),o=vp.nodes(e,{reverse:!0,pass:e=>{var[,n]=e;return!kp.includes(t,n)}});for(var[,i]of o){if(!kp.includes(t,i)){var a=vp.parent(e,i),u=i[i.length-1];a.children.splice(u,1)}if(wp.equals(i,r.path)){var s=vp.leaf(e,i);s.text=s.text.slice(0,r.offset)}if(wp.equals(i,n.path)){var l=vp.leaf(e,i);l.text=l.text.slice(n.offset)}}fp.isEditor(e)&&(e.selection=null)}));return n.children},get(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(Ip.isText(n)||!n.children[o])throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(JSON.stringify(e)));n=n.children[o]}return n},has(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(Ip.isText(n)||!n.children[o])return!1;n=n.children[o]}return!0},isNode:e=>Ip.isText(e)||ip.isElement(e)||fp.isEditor(e),isNodeList(e){if(!Array.isArray(e))return!1;var t=gp.get(e);if(void 0!==t)return t;var n=e.every((e=>vp.isNode(e)));return gp.set(e,n),n},last(e,t){for(var n=t.slice(),r=vp.get(e,n);r&&!Ip.isText(r)&&0!==r.children.length;){var o=r.children.length-1;r=r.children[o],n.push(o)}return[r,n]},leaf(e,t){var n=vp.get(e,t);if(!Ip.isText(n))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(n));return n},*levels(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var r of wp.levels(t,n)){var o=vp.get(e,r);yield[o,r]}},matches:(e,t)=>ip.isElement(e)&&ip.isElementProps(t)&&ip.matches(e,t)||Ip.isText(e)&&Ip.isTextProps(t)&&Ip.matches(e,t),*nodes(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{pass:n,reverse:r=!1}=t,{from:o=[],to:i}=t,a=new Set,u=[],s=e;!i||!(r?wp.isBefore(u,i):wp.isAfter(u,i));)if(a.has(s)||(yield[s,u]),a.has(s)||Ip.isText(s)||0===s.children.length||null!=n&&!1!==n([s,u])){if(0===u.length)break;if(!r){var l=wp.next(u);if(vp.has(e,l)){u=l,s=vp.get(e,u);continue}}r&&0!==u[u.length-1]?(u=wp.previous(u),s=vp.get(e,u)):(u=wp.parent(u),s=vp.get(e,u),a.add(s))}else{a.add(s);var c=r?s.children.length-1:0;wp.isAncestor(u,o)&&(c=o[u.length]),u=u.concat(c),s=vp.get(e,u)}},parent(e,t){var n=wp.parent(t),r=vp.get(e,n);if(Ip.isText(r))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return r},string:e=>Ip.isText(e)?e.text:e.children.map(vp.string).join(""),*texts(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of vp.nodes(e,t))Ip.isText(n)&&(yield[n,r])}};function yp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yp(Object(n),!0).forEach((function(t){wd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var bp={isNodeOperation:e=>bp.isOperation(e)&&e.type.endsWith("_node"),isOperation(e){if(!xf(e))return!1;switch(e.type){case"insert_node":case"remove_node":return wp.isPath(e.path)&&vp.isNode(e.node);case"insert_text":case"remove_text":return"number"==typeof e.offset&&"string"==typeof e.text&&wp.isPath(e.path);case"merge_node":return"number"==typeof e.position&&wp.isPath(e.path)&&xf(e.properties);case"move_node":return wp.isPath(e.path)&&wp.isPath(e.newPath);case"set_node":return wp.isPath(e.path)&&xf(e.properties)&&xf(e.newProperties);case"set_selection":return null===e.properties&&kp.isRange(e.newProperties)||null===e.newProperties&&kp.isRange(e.properties)||xf(e.properties)&&xf(e.newProperties);case"split_node":return wp.isPath(e.path)&&"number"==typeof e.position&&xf(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&e.every((e=>bp.isOperation(e))),isSelectionOperation:e=>bp.isOperation(e)&&e.type.endsWith("_selection"),isTextOperation:e=>bp.isOperation(e)&&e.type.endsWith("_text"),inverse(e){switch(e.type){case"insert_node":return mp(mp({},e),{},{type:"remove_node"});case"insert_text":return mp(mp({},e),{},{type:"remove_text"});case"merge_node":return mp(mp({},e),{},{type:"split_node",path:wp.previous(e.path)});case"move_node":var{newPath:t,path:n}=e;if(wp.equals(t,n))return e;if(wp.isSibling(n,t))return mp(mp({},e),{},{path:t,newPath:n});var r=wp.transform(n,e),o=wp.transform(wp.next(n),e);return mp(mp({},e),{},{path:r,newPath:o});case"remove_node":return mp(mp({},e),{},{type:"insert_node"});case"remove_text":return mp(mp({},e),{},{type:"insert_text"});case"set_node":var{properties:i,newProperties:a}=e;return mp(mp({},e),{},{properties:a,newProperties:i});case"set_selection":var{properties:u,newProperties:s}=e;return mp(mp({},e),{},null==u?{properties:s,newProperties:null}:null==s?{properties:null,newProperties:u}:{properties:s,newProperties:u});case"split_node":return mp(mp({},e),{},{type:"merge_node",path:wp.next(e.path)})}}},wp={ancestors(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=wp.levels(e,t);return n?r.slice(1):r.slice(0,-1)},common(e,t){for(var n=[],r=0;r<e.length&&r<t.length;r++){var o=e[r];if(o!==t[r])break;n.push(o)}return n},compare(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++){if(e[r]<t[r])return-1;if(e[r]>t[r])return 1}return 0},endsAfter(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),i=e[n],a=t[n];return wp.equals(r,o)&&i>a},endsAt(e,t){var n=e.length,r=e.slice(0,n),o=t.slice(0,n);return wp.equals(r,o)},endsBefore(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),i=e[n],a=t[n];return wp.equals(r,o)&&i<a},equals:(e,t)=>e.length===t.length&&e.every(((e,n)=>e===t[n])),hasPrevious:e=>e[e.length-1]>0,isAfter:(e,t)=>1===wp.compare(e,t),isAncestor:(e,t)=>e.length<t.length&&0===wp.compare(e,t),isBefore:(e,t)=>-1===wp.compare(e,t),isChild:(e,t)=>e.length===t.length+1&&0===wp.compare(e,t),isCommon:(e,t)=>e.length<=t.length&&0===wp.compare(e,t),isDescendant:(e,t)=>e.length>t.length&&0===wp.compare(e,t),isParent:(e,t)=>e.length+1===t.length&&0===wp.compare(e,t),isPath:e=>Array.isArray(e)&&(0===e.length||"number"==typeof e[0]),isSibling(e,t){if(e.length!==t.length)return!1;var n=e.slice(0,-1),r=t.slice(0,-1);return e[e.length-1]!==t[t.length-1]&&wp.equals(n,r)},levels(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=[],o=0;o<=e.length;o++)r.push(e.slice(0,o));return n&&r.reverse(),r},next(e){if(0===e.length)throw new Error("Cannot get the next path of a root path [".concat(e,"], because it has no next index."));var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},parent(e){if(0===e.length)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(0===e.length)throw new Error("Cannot get the previous path of a root path [".concat(e,"], because it has no previous index."));var t=e[e.length-1];if(t<=0)throw new Error("Cannot get the previous path of a first child path [".concat(e,"] because it would result in a negative index."));return e.slice(0,-1).concat(t-1)},relative(e,t){if(!wp.isAncestor(t,e)&&!wp.equals(e,t))throw new Error("Cannot get the relative path of [".concat(e,"] inside ancestor [").concat(t,"], because it is not above or equal to the path."));return e.slice(t.length)},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return yd(e,(r=>{var{affinity:o="forward"}=n;if(e&&0!==(null==e?void 0:e.length)){if(null===r)return null;switch(t.type){case"insert_node":var{path:i}=t;(wp.equals(i,r)||wp.endsBefore(i,r)||wp.isAncestor(i,r))&&(r[i.length-1]+=1);break;case"remove_node":var{path:a}=t;if(wp.equals(a,r)||wp.isAncestor(a,r))return null;wp.endsBefore(a,r)&&(r[a.length-1]-=1);break;case"merge_node":var{path:u,position:s}=t;wp.equals(u,r)||wp.endsBefore(u,r)?r[u.length-1]-=1:wp.isAncestor(u,r)&&(r[u.length-1]-=1,r[u.length]+=s);break;case"split_node":var{path:l,position:c}=t;if(wp.equals(l,r)){if("forward"===o)r[r.length-1]+=1;else if("backward"!==o)return null}else wp.endsBefore(l,r)?r[l.length-1]+=1:wp.isAncestor(l,r)&&e[l.length]>=c&&(r[l.length-1]+=1,r[l.length]-=c);break;case"move_node":var{path:f,newPath:d}=t;if(wp.equals(f,d))return;if(wp.isAncestor(f,r)||wp.equals(f,r)){var p=d.slice();return wp.endsBefore(f,d)&&f.length<d.length&&(p[f.length-1]-=1),p.concat(r.slice(f.length))}wp.isSibling(f,d)&&(wp.isAncestor(d,r)||wp.equals(d,r))?wp.endsBefore(f,r)?r[f.length-1]-=1:r[f.length-1]+=1:wp.endsBefore(d,r)||wp.equals(d,r)||wp.isAncestor(d,r)?(wp.endsBefore(f,r)&&(r[f.length-1]-=1),r[d.length-1]+=1):wp.endsBefore(f,r)&&(wp.equals(d,r)&&(r[d.length-1]+=1),r[f.length-1]-=1)}}}))}},Ep={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=wp.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}};function xp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Dp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xp(Object(n),!0).forEach((function(t){wd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Cp={compare(e,t){var n=wp.compare(e.path,t.path);return 0===n?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter:(e,t)=>1===Cp.compare(e,t),isBefore:(e,t)=>-1===Cp.compare(e,t),equals:(e,t)=>e.offset===t.offset&&wp.equals(e.path,t.path),isPoint:e=>xf(e)&&"number"==typeof e.offset&&wp.isPath(e.path),transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return yd(e,(e=>{if(null===e)return null;var{affinity:r="forward"}=n,{path:o,offset:i}=e;switch(t.type){case"insert_node":case"move_node":e.path=wp.transform(o,t,n);break;case"insert_text":wp.equals(t.path,o)&&t.offset<=i&&(e.offset+=t.text.length);break;case"merge_node":wp.equals(t.path,o)&&(e.offset+=t.position),e.path=wp.transform(o,t,n);break;case"remove_text":wp.equals(t.path,o)&&t.offset<=i&&(e.offset-=Math.min(i-t.offset,t.text.length));break;case"remove_node":if(wp.equals(t.path,o)||wp.isAncestor(t.path,o))return null;e.path=wp.transform(o,t,n);break;case"split_node":if(wp.equals(t.path,o)){if(t.position===i&&null==r)return null;(t.position<i||t.position===i&&"forward"===r)&&(e.offset-=t.position,e.path=wp.transform(o,t,Dp(Dp({},n),{},{affinity:"forward"})))}else e.path=wp.transform(o,t,n)}}))}},Sp={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=Cp.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}},Ap=["anchor","focus"];function Op(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var kp={edges(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:o}=e;return kp.isBackward(e)===n?[r,o]:[o,r]},end(e){var[,t]=kp.edges(e);return t},equals:(e,t)=>Cp.equals(e.anchor,t.anchor)&&Cp.equals(e.focus,t.focus),includes(e,t){if(kp.isRange(t)){if(kp.includes(e,t.anchor)||kp.includes(e,t.focus))return!0;var[n,r]=kp.edges(e),[o,i]=kp.edges(t);return Cp.isBefore(n,o)&&Cp.isAfter(r,i)}var[a,u]=kp.edges(e),s=!1,l=!1;return Cp.isPoint(t)?(s=Cp.compare(t,a)>=0,l=Cp.compare(t,u)<=0):(s=wp.compare(t,a.path)>=0,l=wp.compare(t,u.path)<=0),s&&l},intersection(e,t){var n=Fd(e,Ap),[r,o]=kp.edges(e),[i,a]=kp.edges(t),u=Cp.isBefore(r,i)?i:r,s=Cp.isBefore(o,a)?o:a;return Cp.isBefore(s,u)?null:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Op(Object(n),!0).forEach((function(t){wd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Op(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({anchor:u,focus:s},n)},isBackward(e){var{anchor:t,focus:n}=e;return Cp.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return Cp.equals(t,n)},isExpanded:e=>!kp.isCollapsed(e),isForward:e=>!kp.isBackward(e),isRange:e=>xf(e)&&Cp.isPoint(e.anchor)&&Cp.isPoint(e.focus),*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=kp.edges(e);return t},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return yd(e,(e=>{if(null===e)return null;var r,o,{affinity:i="inward"}=n;if("inward"===i){var a=kp.isCollapsed(e);kp.isForward(e)?(r="forward",o=a?r:"backward"):(r="backward",o=a?r:"forward")}else"outward"===i?kp.isForward(e)?(r="backward",o="forward"):(r="forward",o="backward"):(r=i,o=i);var u=Cp.transform(e.anchor,t,{affinity:r}),s=Cp.transform(e.focus,t,{affinity:o});if(!u||!s)return null;e.anchor=u,e.focus=s}))}},Bp={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=kp.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}},Fp=(e,t)=>{for(var n in e){var r=e[n],o=t[n];if(xf(r)&&xf(o)){if(!Fp(r,o))return!1}else if(Array.isArray(r)&&Array.isArray(o)){if(r.length!==o.length)return!1;for(var i=0;i<r.length;i++)if(r[i]!==o[i])return!1}else if(r!==o)return!1}for(var a in t)if(void 0===e[a]&&void 0!==t[a])return!1;return!0},Tp=["text"],_p=["anchor","focus"];function Pp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pp(Object(n),!0).forEach((function(t){wd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ip={equals(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{loose:r=!1}=n;function o(e){return Fd(e,Tp)}return Fp(r?o(e):e,r?o(t):t)},isText:e=>xf(e)&&"string"==typeof e.text,isTextList:e=>Array.isArray(e)&&e.every((e=>Ip.isText(e))),isTextProps:e=>void 0!==e.text,matches(e,t){for(var n in t)if("text"!==n&&(!e.hasOwnProperty(n)||e[n]!==t[n]))return!1;return!0},decorations(e,t){var n=[jp({},e)];for(var r of t){var o=Fd(r,_p),[i,a]=kp.edges(r),u=[],s=0;for(var l of n){var{length:c}=l.text,f=s;if(s+=c,i.offset<=f&&a.offset>=s)Object.assign(l,o),u.push(l);else if(i.offset!==a.offset&&(i.offset===s||a.offset===f)||i.offset>s||a.offset<f||a.offset===f&&0!==f)u.push(l);else{var d=l,p=void 0,h=void 0;if(a.offset<s){var g=a.offset-f;h=jp(jp({},d),{},{text:d.text.slice(g)}),d=jp(jp({},d),{},{text:d.text.slice(0,g)})}if(i.offset>f){var v=i.offset-f;p=jp(jp({},d),{},{text:d.text.slice(0,v)}),d=jp(jp({},d),{},{text:d.text.slice(v)})}Object.assign(d,o),p&&u.push(p),u.push(d),h&&u.push(h)}}n=u}return n}};function Np(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Lp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Np(Object(n),!0).forEach((function(t){wd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Np(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Rp={transform(e,t){e.children=md(e.children);var n=e.selection&&md(e.selection);try{n=((e,t,n)=>{switch(n.type){case"insert_node":var{path:r,node:o}=n,i=vp.parent(e,r),a=r[r.length-1];if(a>i.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(r,"] because the destination is past the end of the node."));if(i.children.splice(a,0,o),t)for(var[u,s]of kp.points(t))t[s]=Cp.transform(u,n);break;case"insert_text":var{path:l,offset:c,text:f}=n;if(0===f.length)break;var d=vp.leaf(e,l),p=d.text.slice(0,c),h=d.text.slice(c);if(d.text=p+f+h,t)for(var[g,v]of kp.points(t))t[v]=Cp.transform(g,n);break;case"merge_node":var{path:y}=n,m=vp.get(e,y),b=wp.previous(y),w=vp.get(e,b),E=vp.parent(e,y),x=y[y.length-1];if(Ip.isText(m)&&Ip.isText(w))w.text+=m.text;else{if(Ip.isText(m)||Ip.isText(w))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(y,"] to nodes of different interfaces: ").concat(m," ").concat(w));w.children.push(...m.children)}if(E.children.splice(x,1),t)for(var[D,C]of kp.points(t))t[C]=Cp.transform(D,n);break;case"move_node":var{path:S,newPath:A}=n;if(wp.isAncestor(S,A))throw new Error("Cannot move a path [".concat(S,"] to new path [").concat(A,"] because the destination is inside itself."));var O=vp.get(e,S),k=vp.parent(e,S),B=S[S.length-1];k.children.splice(B,1);var F=wp.transform(S,n),T=vp.get(e,wp.parent(F)),_=F[F.length-1];if(T.children.splice(_,0,O),t)for(var[P,j]of kp.points(t))t[j]=Cp.transform(P,n);break;case"remove_node":var{path:I}=n,N=I[I.length-1];if(vp.parent(e,I).children.splice(N,1),t)for(var[L,R]of kp.points(t)){var M=Cp.transform(L,n);if(null!=t&&null!=M)t[R]=M;else{var z=void 0,$=void 0;for(var[H,V]of vp.texts(e)){if(-1!==wp.compare(V,I)){$=[H,V];break}z=[H,V]}var U=!1;z&&$&&(U=wp.equals($[1],I)?!wp.hasPrevious($[1]):wp.common(z[1],I).length<wp.common($[1],I).length),z&&!U?(L.path=z[1],L.offset=z[0].text.length):$?(L.path=$[1],L.offset=0):t=null}}break;case"remove_text":var{path:W,offset:G,text:q}=n;if(0===q.length)break;var K=vp.leaf(e,W),X=K.text.slice(0,G),Y=K.text.slice(G+q.length);if(K.text=X+Y,t)for(var[Z,J]of kp.points(t))t[J]=Cp.transform(Z,n);break;case"set_node":var{path:Q,properties:ee,newProperties:te}=n;if(0===Q.length)throw new Error("Cannot set properties on the root node!");var ne=vp.get(e,Q);for(var re in te){if("children"===re||"text"===re)throw new Error('Cannot set the "'.concat(re,'" property of nodes!'));var oe=te[re];null==oe?delete ne[re]:ne[re]=oe}for(var ie in ee)te.hasOwnProperty(ie)||delete ne[ie];break;case"set_selection":var{newProperties:ae}=n;if(null==ae)t=ae;else{if(null==t){if(!kp.isRange(ae))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(ae)," when there is no current selection."));t=Lp({},ae)}for(var ue in ae){var se=ae[ue];if(null==se){if("anchor"===ue||"focus"===ue)throw new Error('Cannot remove the "'.concat(ue,'" selection property'));delete t[ue]}else t[ue]=se}}break;case"split_node":var{path:le,position:ce,properties:fe}=n;if(0===le.length)throw new Error('Cannot apply a "split_node" operation at path ['.concat(le,"] because the root node cannot be split."));var de,pe=vp.get(e,le),he=vp.parent(e,le),ge=le[le.length-1];if(Ip.isText(pe)){var ve=pe.text.slice(0,ce),ye=pe.text.slice(ce);pe.text=ve,de=Lp(Lp({},fe),{},{text:ye})}else{var me=pe.children.slice(0,ce),be=pe.children.slice(ce);pe.children=me,de=Lp(Lp({},fe),{},{children:be})}if(he.children.splice(ge+1,0,de),t)for(var[we,Ee]of kp.points(t))t[Ee]=Cp.transform(we,n)}return t})(e,n,t)}finally{e.children=bd(e.children),e.selection=n?Cf(n)?bd(n):n:null}}},Mp=["text"],zp=["children"];function $p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Hp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$p(Object(n),!0).forEach((function(t){wd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Vp={insertNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};fp.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:o=!1,mode:i="lowest"}=n,{at:a,match:u,select:s}=n;if(vp.isNode(t)&&(t=[t]),0!==t.length){var[l]=t;if(a||(a=e.selection?e.selection:e.children.length>0?fp.end(e,[]):[0],s=!0),null==s&&(s=!1),kp.isRange(a))if(r||(a=fp.unhangRange(e,a)),kp.isCollapsed(a))a=a.anchor;else{var[,c]=kp.edges(a),f=fp.pointRef(e,c);Qp.delete(e,{at:a}),a=f.unref()}if(Cp.isPoint(a)){null==u&&(u=Ip.isText(l)?e=>Ip.isText(e):e.isInline(l)?t=>Ip.isText(t)||fp.isInline(e,t):t=>fp.isBlock(e,t));var[d]=fp.nodes(e,{at:a.path,match:u,mode:i,voids:o});if(!d)return;var[,p]=d,h=fp.pathRef(e,p),g=fp.isEnd(e,a,p);Qp.splitNodes(e,{at:a,match:u,mode:i,voids:o});var v=h.unref();a=g?wp.next(v):v}var y=wp.parent(a),m=a[a.length-1];if(o||!fp.void(e,{at:y})){for(var b of t){var w=y.concat(m);m++,e.apply({type:"insert_node",path:w,node:b}),a=wp.next(a)}if(a=wp.previous(a),s){var E=fp.end(e,a);E&&Qp.select(e,E)}}}}))},liftNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};fp.withoutNormalizing(e,(()=>{var{at:n=e.selection,mode:r="lowest",voids:o=!1}=t,{match:i}=t;if(null==i&&(i=wp.isPath(n)?Gp(e,n):t=>fp.isBlock(e,t)),n){var a=fp.nodes(e,{at:n,match:i,mode:r,voids:o}),u=Array.from(a,(t=>{var[,n]=t;return fp.pathRef(e,n)}));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=fp.node(e,wp.parent(l)),[f,d]=c,p=l[l.length-1],{length:h}=f.children;if(1===h){var g=wp.next(d);Qp.moveNodes(e,{at:l,to:g,voids:o}),Qp.removeNodes(e,{at:d,voids:o})}else if(0===p)Qp.moveNodes(e,{at:l,to:d,voids:o});else if(p===h-1){var v=wp.next(d);Qp.moveNodes(e,{at:l,to:v,voids:o})}else{var y=wp.next(l),m=wp.next(d);Qp.splitNodes(e,{at:y,voids:o}),Qp.moveNodes(e,{at:l,to:m,voids:o})}}}}))},mergeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};fp.withoutNormalizing(e,(()=>{var{match:n,at:r=e.selection}=t,{hanging:o=!1,voids:i=!1,mode:a="lowest"}=t;if(r){if(null==n)if(wp.isPath(r)){var[u]=fp.parent(e,r);n=e=>u.children.includes(e)}else n=t=>fp.isBlock(e,t);if(!o&&kp.isRange(r)&&(r=fp.unhangRange(e,r)),kp.isRange(r))if(kp.isCollapsed(r))r=r.anchor;else{var[,s]=kp.edges(r),l=fp.pointRef(e,s);Qp.delete(e,{at:r}),r=l.unref(),null==t.at&&Qp.select(e,r)}var[c]=fp.nodes(e,{at:r,match:n,voids:i,mode:a}),f=fp.previous(e,{at:r,match:n,voids:i,mode:a});if(c&&f){var[d,p]=c,[h,g]=f;if(0!==p.length&&0!==g.length){var v,y,m=wp.next(g),b=wp.common(p,g),w=wp.isSibling(p,g),E=Array.from(fp.levels(e,{at:p}),(e=>{var[t]=e;return t})).slice(b.length).slice(0,-1),x=fp.above(e,{at:p,mode:"highest",match:t=>E.includes(t)&&Up(e,t)}),D=x&&fp.pathRef(e,x[1]);if(Ip.isText(d)&&Ip.isText(h)){var C=Fd(d,Mp);y=h.text.length,v=C}else{if(!ip.isElement(d)||!ip.isElement(h))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(h)));C=Fd(d,zp),y=h.children.length,v=C}w||Qp.moveNodes(e,{at:p,to:m,voids:i}),D&&Qp.removeNodes(e,{at:D.current,voids:i}),ip.isElement(h)&&fp.isEmpty(e,h)||Ip.isText(h)&&""===h.text&&0!==g[g.length-1]?Qp.removeNodes(e,{at:g,voids:i}):e.apply({type:"merge_node",path:m,position:y,properties:v}),D&&D.unref()}}}}))},moveNodes(e,t){fp.withoutNormalizing(e,(()=>{var{to:n,at:r=e.selection,mode:o="lowest",voids:i=!1}=t,{match:a}=t;if(r){null==a&&(a=wp.isPath(r)?Gp(e,r):t=>fp.isBlock(e,t));var u=fp.pathRef(e,n),s=fp.nodes(e,{at:r,match:a,mode:o,voids:i}),l=Array.from(s,(t=>{var[,n]=t;return fp.pathRef(e,n)}));for(var c of l){var f=c.unref(),d=u.current;0!==f.length&&e.apply({type:"move_node",path:f,newPath:d}),u.current&&wp.isSibling(d,f)&&wp.isAfter(d,f)&&(u.current=wp.next(u.current))}u.unref()}}))},removeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};fp.withoutNormalizing(e,(()=>{var{hanging:n=!1,voids:r=!1,mode:o="lowest"}=t,{at:i=e.selection,match:a}=t;if(i){null==a&&(a=wp.isPath(i)?Gp(e,i):t=>fp.isBlock(e,t)),!n&&kp.isRange(i)&&(i=fp.unhangRange(e,i));var u=fp.nodes(e,{at:i,match:a,mode:o,voids:r}),s=Array.from(u,(t=>{var[,n]=t;return fp.pathRef(e,n)}));for(var l of s){var c=l.unref();if(c){var[f]=fp.node(e,c);e.apply({type:"remove_node",path:c,node:f})}}}}))},setNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};fp.withoutNormalizing(e,(()=>{var{match:r,at:o=e.selection}=n,{hanging:i=!1,mode:a="lowest",split:u=!1,voids:s=!1}=n;if(o){if(null==r&&(r=wp.isPath(o)?Gp(e,o):t=>fp.isBlock(e,t)),!i&&kp.isRange(o)&&(o=fp.unhangRange(e,o)),u&&kp.isRange(o)){if(kp.isCollapsed(o)&&fp.leaf(e,o.anchor)[0].text.length>0)return;var l=fp.rangeRef(e,o,{affinity:"inward"}),[c,f]=kp.edges(o),d="lowest"===a?"lowest":"highest",p=fp.isEnd(e,f,f.path);Qp.splitNodes(e,{at:f,match:r,mode:d,voids:s,always:!p});var h=fp.isStart(e,c,c.path);Qp.splitNodes(e,{at:c,match:r,mode:d,voids:s,always:!h}),o=l.unref(),null==n.at&&Qp.select(e,o)}for(var[g,v]of fp.nodes(e,{at:o,match:r,mode:a,voids:s})){var y={},m={};if(0!==v.length){var b=!1;for(var w in t)"children"!==w&&"text"!==w&&t[w]!==g[w]&&(b=!0,g.hasOwnProperty(w)&&(y[w]=g[w]),null!=t[w]&&(m[w]=t[w]));b&&e.apply({type:"set_node",path:v,properties:y,newProperties:m})}}}}))},splitNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};fp.withoutNormalizing(e,(()=>{var{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection,height:a=0,always:u=!1}=t;if(null==o&&(o=t=>fp.isBlock(e,t)),kp.isRange(i)&&(i=Wp(e,i)),wp.isPath(i)){var s=i,l=fp.point(e,s),[c]=fp.parent(e,s);o=e=>e===c,a=l.path.length-s.length+1,i=l,u=!0}if(i){var f=fp.pointRef(e,i,{affinity:"backward"}),[d]=fp.nodes(e,{at:i,match:o,mode:n,voids:r});if(d){var p=fp.void(e,{at:i,mode:"highest"});if(!r&&p){var[h,g]=p;if(ip.isElement(h)&&e.isInline(h)){var v=fp.after(e,g);if(!v){var y=wp.next(g);Qp.insertNodes(e,{text:""},{at:y,voids:r}),v=fp.point(e,y)}i=v,u=!0}a=i.path.length-g.length+1,u=!0}var m=fp.pointRef(e,i),b=i.path.length-a,[,w]=d,E=i.path.slice(0,b),x=0===a?i.offset:i.path[b]+0;for(var[D,C]of fp.levels(e,{at:E,reverse:!0,voids:r})){var S=!1;if(C.length<w.length||0===C.length||!r&&fp.isVoid(e,D))break;var A=f.current,O=fp.isEnd(e,A,C);if(u||!f||!fp.isEdge(e,A,C)){S=!0;var k=vp.extractProps(D);e.apply({type:"split_node",path:C,position:x,properties:k})}x=C[C.length-1]+(S||O?1:0)}if(null==t.at){var B=m.current||fp.end(e,[]);Qp.select(e,B)}f.unref(),m.unref()}}}))},unsetNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Array.isArray(t)||(t=[t]);var r={};for(var o of t)r[o]=null;Qp.setNodes(e,r,n)},unwrapNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};fp.withoutNormalizing(e,(()=>{var{mode:n="lowest",split:r=!1,voids:o=!1}=t,{at:i=e.selection,match:a}=t;if(i){null==a&&(a=wp.isPath(i)?Gp(e,i):t=>fp.isBlock(e,t)),wp.isPath(i)&&(i=fp.range(e,i));var u=kp.isRange(i)?fp.rangeRef(e,i):null,s=fp.nodes(e,{at:i,match:a,mode:n,voids:o}),l=Array.from(s,(t=>{var[,n]=t;return fp.pathRef(e,n)})).reverse(),c=function(t){var n=t.unref(),[i]=fp.node(e,n),a=fp.range(e,n);r&&u&&(a=kp.intersection(u.current,a)),Qp.liftNodes(e,{at:a,match:e=>ip.isAncestor(i)&&i.children.includes(e),voids:o})};for(var f of l)c(f);u&&u.unref()}}))},wrapNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};fp.withoutNormalizing(e,(()=>{var{mode:r="lowest",split:o=!1,voids:i=!1}=n,{match:a,at:u=e.selection}=n;if(u){if(null==a&&(a=wp.isPath(u)?Gp(e,u):e.isInline(t)?t=>fp.isInline(e,t)||Ip.isText(t):t=>fp.isBlock(e,t)),o&&kp.isRange(u)){var[s,l]=kp.edges(u),c=fp.rangeRef(e,u,{affinity:"inward"});Qp.splitNodes(e,{at:l,match:a,voids:i}),Qp.splitNodes(e,{at:s,match:a,voids:i}),u=c.unref(),null==n.at&&Qp.select(e,u)}var f=Array.from(fp.nodes(e,{at:u,match:e.isInline(t)?t=>fp.isBlock(e,t):e=>fp.isEditor(e),mode:"lowest",voids:i}));for(var[,d]of f){var p=kp.isRange(u)?kp.intersection(u,fp.range(e,d)):u;if(p){var h=Array.from(fp.nodes(e,{at:p,match:a,mode:r,voids:i}));if(h.length>0)if("continue"===function(){var[n]=h,r=h[h.length-1],[,o]=n,[,a]=r;if(0===o.length&&0===a.length)return"continue";var u=wp.equals(o,a)?wp.parent(o):wp.common(o,a),s=fp.range(e,o,a),l=fp.node(e,u),[c]=l,f=u.length+1,d=wp.next(a.slice(0,f)),p=Hp(Hp({},t),{},{children:[]});Qp.insertNodes(e,p,{at:d,voids:i}),Qp.moveNodes(e,{at:s,match:e=>ip.isAncestor(c)&&c.children.includes(e),to:d.concat(0),voids:i})}())continue}}}}))}},Up=(e,t)=>{if(ip.isElement(t)){var n=t;return!!fp.isVoid(e,t)||1===n.children.length&&Up(e,n.children[0])}return!fp.isEditor(t)},Wp=(e,t)=>{if(kp.isCollapsed(t))return t.anchor;var[,n]=kp.edges(t),r=fp.pointRef(e,n);return Qp.delete(e,{at:t}),r.unref()},Gp=(e,t)=>{var[n]=fp.node(e,t);return e=>e===n};function qp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Kp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qp(Object(n),!0).forEach((function(t){wd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Xp={collapse(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{edge:n="anchor"}=t,{selection:r}=e;if(r)if("anchor"===n)Qp.select(e,r.anchor);else if("focus"===n)Qp.select(e,r.focus);else if("start"===n){var[o]=kp.edges(r);Qp.select(e,o)}else if("end"===n){var[,i]=kp.edges(r);Qp.select(e,i)}},deselect(e){var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},move(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{selection:n}=e,{distance:r=1,unit:o="character",reverse:i=!1}=t,{edge:a=null}=t;if(n){"start"===a&&(a=kp.isBackward(n)?"focus":"anchor"),"end"===a&&(a=kp.isBackward(n)?"anchor":"focus");var{anchor:u,focus:s}=n,l={distance:r,unit:o},c={};if(null==a||"anchor"===a){var f=i?fp.before(e,u,l):fp.after(e,u,l);f&&(c.anchor=f)}if(null==a||"focus"===a){var d=i?fp.before(e,s,l):fp.after(e,s,l);d&&(c.focus=d)}Qp.setSelection(e,c)}},select(e,t){var{selection:n}=e;if(t=fp.range(e,t),n)Qp.setSelection(e,t);else{if(!kp.isRange(t))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(t)));e.apply({type:"set_selection",properties:n,newProperties:t})}},setPoint(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{selection:r}=e,{edge:o="both"}=n;if(r){"start"===o&&(o=kp.isBackward(r)?"focus":"anchor"),"end"===o&&(o=kp.isBackward(r)?"anchor":"focus");var{anchor:i,focus:a}=r,u="anchor"===o?i:a;Qp.setSelection(e,{["anchor"===o?"anchor":"focus"]:Kp(Kp({},u),t)})}},setSelection(e,t){var{selection:n}=e,r={},o={};if(n){for(var i in t)("anchor"===i&&null!=t.anchor&&!Cp.equals(t.anchor,n.anchor)||"focus"===i&&null!=t.focus&&!Cp.equals(t.focus,n.focus)||"anchor"!==i&&"focus"!==i&&t[i]!==n[i])&&(r[i]=n[i],o[i]=t[i]);Object.keys(r).length>0&&e.apply({type:"set_selection",properties:r,newProperties:o})}}},Yp={delete(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};fp.withoutNormalizing(e,(()=>{var{reverse:n=!1,unit:r="character",distance:o=1,voids:i=!1}=t,{at:a=e.selection,hanging:u=!1}=t;if(a){if(kp.isRange(a)&&kp.isCollapsed(a)&&(a=a.anchor),Cp.isPoint(a)){var s=fp.void(e,{at:a,mode:"highest"});if(!i&&s){var[,l]=s;a=l}else{var c={unit:r,distance:o};a={anchor:a,focus:n?fp.before(e,a,c)||fp.start(e,[]):fp.after(e,a,c)||fp.end(e,[])},u=!0}}if(wp.isPath(a))Qp.removeNodes(e,{at:a,voids:i});else if(!kp.isCollapsed(a)){if(!u){var[,f]=kp.edges(a),d=fp.end(e,[]);Cp.equals(f,d)||(a=fp.unhangRange(e,a,{voids:i}))}var[p,h]=kp.edges(a),g=fp.above(e,{match:t=>fp.isBlock(e,t),at:p,voids:i}),v=fp.above(e,{match:t=>fp.isBlock(e,t),at:h,voids:i}),y=g&&v&&!wp.equals(g[1],v[1]),m=wp.equals(p.path,h.path),b=i?null:fp.void(e,{at:p,mode:"highest"}),w=i?null:fp.void(e,{at:h,mode:"highest"});if(b){var E=fp.before(e,p);E&&g&&wp.isAncestor(g[1],E.path)&&(p=E)}if(w){var x=fp.after(e,h);x&&v&&wp.isAncestor(v[1],x.path)&&(h=x)}var D,C=[];for(var S of fp.nodes(e,{at:a,voids:i})){var[A,O]=S;D&&0===wp.compare(O,D)||(!i&&fp.isVoid(e,A)||!wp.isCommon(O,p.path)&&!wp.isCommon(O,h.path))&&(C.push(S),D=O)}var k=Array.from(C,(t=>{var[,n]=t;return fp.pathRef(e,n)})),B=fp.pointRef(e,p),F=fp.pointRef(e,h);if(!m&&!b){var T=B.current,[_]=fp.leaf(e,T),{path:P}=T,{offset:j}=p,I=_.text.slice(j);I.length>0&&e.apply({type:"remove_text",path:P,offset:j,text:I})}for(var N of k){var L=N.unref();Qp.removeNodes(e,{at:L,voids:i})}if(!w){var R=F.current,[M]=fp.leaf(e,R),{path:z}=R,$=m?p.offset:0,H=M.text.slice($,h.offset);H.length>0&&e.apply({type:"remove_text",path:z,offset:$,text:H})}!m&&y&&F.current&&B.current&&Qp.mergeNodes(e,{at:F.current,hanging:!0,voids:i});var V=n?B.unref()||F.unref():F.unref()||B.unref();null==t.at&&V&&Qp.select(e,V)}}}))},insertFragment(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};fp.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:o=!1}=n,{at:i=e.selection}=n;if(t.length&&i){if(kp.isRange(i))if(r||(i=fp.unhangRange(e,i)),kp.isCollapsed(i))i=i.anchor;else{var[,a]=kp.edges(i);if(!o&&fp.void(e,{at:a}))return;var u=fp.pointRef(e,a);Qp.delete(e,{at:i}),i=u.unref()}else wp.isPath(i)&&(i=fp.start(e,i));if(o||!fp.void(e,{at:i})){var s=fp.above(e,{at:i,match:t=>fp.isInline(e,t),mode:"highest",voids:o});if(s){var[,l]=s;fp.isEnd(e,i,l)?i=fp.after(e,l):fp.isStart(e,i,l)&&(i=fp.before(e,l))}var c=fp.above(e,{match:t=>fp.isBlock(e,t),at:i,voids:o}),[,f]=c,d=fp.isStart(e,i,f),p=fp.isEnd(e,i,f),h=d&&p,g=!d||d&&p,v=!p,[,y]=vp.first({children:t},[]),[,m]=vp.last({children:t},[]),b=[],w=t=>{var[n,r]=t;return!(0===r.length||!h&&(g&&wp.isAncestor(r,y)&&ip.isElement(n)&&!e.isVoid(n)&&!e.isInline(n)||v&&wp.isAncestor(r,m)&&ip.isElement(n)&&!e.isVoid(n)&&!e.isInline(n)))};for(var E of vp.nodes({children:t},{pass:w}))w(E)&&b.push(E);var x=[],D=[],C=[],S=!0,A=!1;for(var[O]of b)ip.isElement(O)&&!e.isInline(O)?(S=!1,A=!0,D.push(O)):S?x.push(O):C.push(O);var[k]=fp.nodes(e,{at:i,match:t=>Ip.isText(t)||fp.isInline(e,t),mode:"highest",voids:o}),[,B]=k,F=fp.isStart(e,i,B),T=fp.isEnd(e,i,B),_=fp.pathRef(e,p?wp.next(f):f),P=fp.pathRef(e,T?wp.next(B):B),j=fp.pathRef(e,f);Qp.splitNodes(e,{at:i,match:t=>A?fp.isBlock(e,t):Ip.isText(t)||fp.isInline(e,t),mode:A?"lowest":"highest",voids:o});var I=fp.pathRef(e,!F||F&&T?wp.next(B):B);if(Qp.insertNodes(e,x,{at:I.current,match:t=>Ip.isText(t)||fp.isInline(e,t),mode:"highest",voids:o}),h&&D.length&&Qp.delete(e,{at:j.unref(),voids:o}),Qp.insertNodes(e,D,{at:_.current,match:t=>fp.isBlock(e,t),mode:"lowest",voids:o}),Qp.insertNodes(e,C,{at:P.current,match:t=>Ip.isText(t)||fp.isInline(e,t),mode:"highest",voids:o}),!n.at){var N;N=C.length>0?wp.previous(P.current):D.length>0?wp.previous(_.current):wp.previous(I.current);var L=fp.end(e,N);Qp.select(e,L)}I.unref(),_.unref(),P.unref()}}}))},insertText(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};fp.withoutNormalizing(e,(()=>{var{voids:r=!1}=n,{at:o=e.selection}=n;if(o){if(wp.isPath(o)&&(o=fp.range(e,o)),kp.isRange(o))if(kp.isCollapsed(o))o=o.anchor;else{var i=kp.end(o);if(!r&&fp.void(e,{at:i}))return;var a=fp.pointRef(e,i);Qp.delete(e,{at:o,voids:r}),o=a.unref(),Qp.setSelection(e,{anchor:o,focus:o})}if(r||!fp.void(e,{at:o})){var{path:u,offset:s}=o;t.length>0&&e.apply({type:"insert_text",path:u,offset:s,text:t})}}}))}};function Zp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Jp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zp(Object(n),!0).forEach((function(t){wd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Qp=Jp(Jp(Jp(Jp({},Rp),Vp),Xp),Yp),eh="[object Map]",th="[object Set]",nh=/^\[object .+?Constructor\]$/,rh=/^(?:0|[1-9]\d*)$/,oh="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",ih="\\ud83c[\\udffb-\\udfff]",ah="[^\\ud800-\\udfff]",uh="(?:\\ud83c[\\udde6-\\uddff]){2}",sh="[\\ud800-\\udbff][\\udc00-\\udfff]",lh="(?:"+oh+"|"+ih+")?",ch="[\\ufe0e\\ufe0f]?"+lh+"(?:\\u200d(?:"+[ah,uh,sh].join("|")+")[\\ufe0e\\ufe0f]?"+lh+")*",fh="(?:"+[ah+oh+"?",oh,uh,sh,"[\\ud800-\\udfff]"].join("|")+")",dh=RegExp(ih+"(?="+ih+")|"+fh+ch,"g"),ph=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),hh="object"==typeof He&&He&&He.Object===Object&&He,gh="object"==typeof self&&self&&self.Object===Object&&self,vh=hh||gh||Function("return this")();function yh(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function mh(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var bh,wh,Eh=Function.prototype,xh=Object.prototype,Dh=vh["__core-js_shared__"],Ch=function(){var e=/[^.]+$/.exec(Dh&&Dh.keys&&Dh.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Sh=Eh.toString,Ah=xh.hasOwnProperty,Oh=xh.toString,kh=RegExp("^"+Sh.call(Ah).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Bh=vh.Symbol,Fh=Bh?Bh.iterator:void 0,Th=xh.propertyIsEnumerable,_h=(bh=Object.keys,wh=Object,function(e){return bh(wh(e))}),Ph=Vh(vh,"DataView"),jh=Vh(vh,"Map"),Ih=Vh(vh,"Promise"),Nh=Vh(vh,"Set"),Lh=Vh(vh,"WeakMap"),Rh=Gh(Ph),Mh=Gh(jh),zh=Gh(Ih),$h=Gh(Nh),Hh=Gh(Lh);function Vh(e,t){var n,r,o=(r=t,null==(n=e)?void 0:n[r]);return function(e){if(!Yh(e)||(t=e,Ch&&Ch in t))return!1;var t,n=Xh(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}(e)?kh:nh;return n.test(Gh(e))}(o)?o:void 0}var Uh=function(e){return Oh.call(e)};function Wh(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||rh.test(e))&&e>-1&&e%1==0&&e<t}function Gh(e){if(null!=e){try{return Sh.call(e)}catch(t){}try{return e+""}catch(t){}}return""}(Ph&&"[object DataView]"!=Uh(new Ph(new ArrayBuffer(1)))||jh&&Uh(new jh)!=eh||Ih&&"[object Promise]"!=Uh(Ih.resolve())||Nh&&Uh(new Nh)!=th||Lh&&"[object WeakMap]"!=Uh(new Lh))&&(Uh=function(e){var t=Oh.call(e),n="[object Object]"==t?e.constructor:void 0,r=n?Gh(n):void 0;if(r)switch(r){case Rh:return"[object DataView]";case Mh:return eh;case zh:return"[object Promise]";case $h:return th;case Hh:return"[object WeakMap]"}return t});var qh=Array.isArray;function Kh(e){return null!=e&&("number"==typeof(t=e.length)&&t>-1&&t%1==0&&t<=9007199254740991)&&!Xh(e);var t}function Xh(e){var t=Yh(e)?Oh.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function Yh(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Zh(e){return!!e&&"object"==typeof e}function Jh(e){return e?function(e,t){return function(e,t){for(var n=-1,r=e?e.length:0,o=Array(r);++n<r;)o[n]=t(e[n]);return o}(t,(function(t){return e[t]}))}(e,Kh(t=e)?function(e,t){var n,r,o=qh(e)||Zh(r=n=e)&&Kh(r)&&Ah.call(n,"callee")&&(!Th.call(n,"callee")||"[object Arguments]"==Oh.call(n))?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],i=o.length,a=!!i;for(var u in e)!t&&!Ah.call(e,u)||a&&("length"==u||Wh(u,i))||o.push(u);return o}(t):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||xh))return _h(e);var t,n,r=[];for(var o in Object(e))Ah.call(e,o)&&"constructor"!=o&&r.push(o);return r}(t)):[];var t}var Qh=function(e){if(!e)return[];if(Kh(e))return"string"==typeof(t=e)||!qh(t)&&Zh(t)&&"[object String]"==Oh.call(t)?function(e){return t=e,ph.test(t)?function(e){return e.match(dh)||[]}(e):function(e){return e.split("")}(e);var t}(e):function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(e);var t;if(Fh&&e[Fh])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Fh]());var n=Uh(e);return(n==eh?yh:n==th?mh:Jh)(e)};function eg(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function tg(e,t){void 0===e&&(e={}),void 0===t&&(t={}),Object.keys(t).forEach((function(n){void 0===e[n]?e[n]=t[n]:eg(t[n])&&eg(e[n])&&Object.keys(t[n]).length>0&&tg(e[n],t[n])}))}var ng={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 rg(){var e="undefined"!=typeof document?document:{};return tg(e,ng),e}var og={document:ng,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(e){return"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0)},cancelAnimationFrame:function(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function ig(){var e="undefined"!=typeof window?window:{};return tg(e,og),e}function ag(e){return(ag=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ug(e,t){return(ug=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function sg(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(pf){return!1}}function lg(e,t,n){return lg=sg()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&ug(o,n.prototype),o},lg.apply(null,arguments)}function cg(e){var t="function"==typeof Map?new Map:void 0;return cg=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return lg(e,arguments,ag(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),ug(r,e)},cg(e)}var fg=function(e){var t,n;function r(t){var n,r,o;return r=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n=e.call.apply(e,[this].concat(t))||this),o=r.__proto__,Object.defineProperty(r,"__proto__",{get:function(){return o},set:function(e){o.__proto__=e}}),n}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(cg(Array));function dg(e){void 0===e&&(e=[]);var t=[];return e.forEach((function(e){Array.isArray(e)?t.push.apply(t,dg(e)):t.push(e)})),t}function pg(e,t){return Array.prototype.filter.call(e,t)}function hg(e,t){var n=ig(),r=rg(),o=[];if(!t&&e instanceof fg)return e;if(!e)return new fg(o);if("string"==typeof e){var i=e.trim();if(i.indexOf("<")>=0&&i.indexOf(">")>=0){var a="div";0===i.indexOf("<li")&&(a="ul"),0===i.indexOf("<tr")&&(a="tbody"),0!==i.indexOf("<td")&&0!==i.indexOf("<th")||(a="tr"),0===i.indexOf("<tbody")&&(a="table"),0===i.indexOf("<option")&&(a="select");var u=r.createElement(a);u.innerHTML=i;for(var s=0;s<u.childNodes.length;s+=1)o.push(u.childNodes[s])}else o=function(e,t){if("string"!=typeof e)return[e];for(var n=[],r=t.querySelectorAll(e),o=0;o<r.length;o+=1)n.push(r[o]);return n}(e.trim(),t||r)}else if(e.nodeType||e===n||e===r)o.push(e);else if(Array.isArray(e)){if(e instanceof fg)return e;o=e}return new fg(function(e){for(var t=[],n=0;n<e.length;n+=1)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(o))}function gg(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=dg(t.map((function(e){return e.split(" ")})));return this.forEach((function(e){var t;(t=e.classList).add.apply(t,r)})),this}function vg(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=dg(t.map((function(e){return e.split(" ")})));return this.forEach((function(e){var t;(t=e.classList).remove.apply(t,r)})),this}function yg(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=dg(t.map((function(e){return e.split(" ")})));return pg(this,(function(e){return r.filter((function(t){return e.classList.contains(t)})).length>0})).length>0}function mg(e,t){if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(var n=0;n<this.length;n+=1)if(2===arguments.length)this[n].setAttribute(e,t);else for(var r in e)this[n][r]=e[r],this[n].setAttribute(r,e[r]);return this}function bg(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function wg(){var e=this[0];if(e){var t,n={};if(e.dataset)for(var r in e.dataset)n[r]=e.dataset[r];else for(var o=0;o<e.attributes.length;o+=1){var i=e.attributes[o];i.name.indexOf("data-")>=0&&(n[(t=i.name.split("data-")[1],t.toLowerCase().replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=i.value)}for(var a in n)"false"===n[a]?n[a]=!1:"true"===n[a]?n[a]=!0:parseFloat(n[a])===1*n[a]&&(n[a]*=1);return n}}function Eg(e){if(void 0===e){var t=this[0];if(!t)return;if(t.multiple&&"select"===t.nodeName.toLowerCase()){for(var n=[],r=0;r<t.selectedOptions.length;r+=1)n.push(t.selectedOptions[r].value);return n}return t.value}for(var o=0;o<this.length;o+=1){var i=this[o];if(Array.isArray(e)&&i.multiple&&"select"===i.nodeName.toLowerCase())for(var a=0;a<i.options.length;a+=1)i.options[a].selected=e.indexOf(i.options[a].value)>=0;else i.value=e}return this}function xg(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=t[2],a=t[3];function u(e){var t=e.target;if(t){var n=e.target.dom7EventData||[];if(n.indexOf(e)<0&&n.unshift(e),hg(t).is(o))i.apply(t,n);else for(var r=hg(t).parents(),a=0;a<r.length;a+=1)hg(r[a]).is(o)&&i.apply(r[a],n)}}function s(e){var t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),i.apply(this,t)}"function"==typeof t[1]&&(r=t[0],i=t[1],a=t[2],o=void 0),a||(a=!1);for(var l,c=r.split(" "),f=0;f<this.length;f+=1){var d=this[f];if(o)for(l=0;l<c.length;l+=1){var p=c[l];d.dom7LiveListeners||(d.dom7LiveListeners={}),d.dom7LiveListeners[p]||(d.dom7LiveListeners[p]=[]),d.dom7LiveListeners[p].push({listener:i,proxyListener:u}),d.addEventListener(p,u,a)}else for(l=0;l<c.length;l+=1){var h=c[l];d.dom7Listeners||(d.dom7Listeners={}),d.dom7Listeners[h]||(d.dom7Listeners[h]=[]),d.dom7Listeners[h].push({listener:i,proxyListener:s}),d.addEventListener(h,s,a)}}return this}function Dg(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=t[2],a=t[3];"function"==typeof t[1]&&(r=t[0],i=t[1],a=t[2],o=void 0),a||(a=!1);for(var u=r.split(" "),s=0;s<u.length;s+=1)for(var l=u[s],c=0;c<this.length;c+=1){var f=this[c],d=void 0;if(!o&&f.dom7Listeners?d=f.dom7Listeners[l]:o&&f.dom7LiveListeners&&(d=f.dom7LiveListeners[l]),d&&d.length)for(var p=d.length-1;p>=0;p-=1){var h=d[p];i&&h.listener===i||i&&h.listener&&h.listener.dom7proxy&&h.listener.dom7proxy===i?(f.removeEventListener(l,h.proxyListener,a),d.splice(p,1)):i||(f.removeEventListener(l,h.proxyListener,a),d.splice(p,1))}}return this}function Cg(){var e=ig();return this[0]===e?e.innerWidth:this.length>0?parseFloat(this.css("width")):null}function Sg(){var e=ig();return this[0]===e?e.innerHeight:this.length>0?parseFloat(this.css("height")):null}function Ag(){if(this.length>0){var e=ig(),t=rg(),n=this[0],r=n.getBoundingClientRect(),o=t.body,i=n.clientTop||o.clientTop||0,a=n.clientLeft||o.clientLeft||0,u=n===e?e.scrollY:n.scrollTop,s=n===e?e.scrollX:n.scrollLeft;return{top:r.top+u-i,left:r.left+s-a}}return null}function Og(){for(var e=0;e<this.length;e+=1)this[e].style.display="none";return this}function kg(){for(var e=ig(),t=0;t<this.length;t+=1){var n=this[t];"none"===n.style.display&&(n.style.display=""),"none"===e.getComputedStyle(n,null).getPropertyValue("display")&&(n.style.display="block")}return this}function Bg(e,t){var n,r=ig();if(1===arguments.length){if("string"!=typeof e){for(n=0;n<this.length;n+=1)for(var o in e)this[n].style[o]=e[o];return this}if(this[0])return r.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e){for(n=0;n<this.length;n+=1)this[n].style[e]=t;return this}return this}function Fg(e){return e?(this.forEach((function(t,n){e.apply(t,[t,n])})),this):this}function Tg(e){return hg(pg(this,e))}function _g(e){if(void 0===e)return this[0]?this[0].innerHTML:null;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this}function Pg(e){if(void 0===e)return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this}function jg(e){var t,n,r=ig(),o=rg(),i=this[0];if(!i||void 0===e)return!1;if("string"==typeof e){if(i.matches)return i.matches(e);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(e);if(i.msMatchesSelector)return i.msMatchesSelector(e);for(t=hg(e),n=0;n<t.length;n+=1)if(t[n]===i)return!0;return!1}if(e===o)return i===o;if(e===r)return i===r;if(e.nodeType||e instanceof fg){for(t=e.nodeType?[e]:e,n=0;n<t.length;n+=1)if(t[n]===i)return!0;return!1}return!1}function Ig(){for(var e,t=rg(),n=0;n<arguments.length;n+=1){e=n<0||arguments.length<=n?void 0:arguments[n];for(var r=0;r<this.length;r+=1)if("string"==typeof e){var o=t.createElement("div");for(o.innerHTML=e;o.firstChild;)this[r].appendChild(o.firstChild)}else if(e instanceof fg)for(var i=0;i<e.length;i+=1)this[r].appendChild(e[i]);else this[r].appendChild(e)}return this}function Ng(e){var t,n,r=rg();for(t=0;t<this.length;t+=1)if("string"==typeof e){var o=r.createElement("div");for(o.innerHTML=e,n=o.childNodes.length-1;n>=0;n-=1)this[t].insertBefore(o.childNodes[n],this[t].childNodes[0])}else if(e instanceof fg)for(n=0;n<e.length;n+=1)this[t].insertBefore(e[n],this[t].childNodes[0]);else this[t].insertBefore(e,this[t].childNodes[0]);return this}function Lg(e){for(var t=[],n=0;n<this.length;n+=1)null!==this[n].parentNode&&(e?hg(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return hg(t)}function Rg(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].parentNode;r;)e?hg(r).is(e)&&t.push(r):t.push(r),r=r.parentNode;return hg(t)}function Mg(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].querySelectorAll(e),o=0;o<r.length;o+=1)t.push(r[o]);return hg(t)}function zg(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].children,o=0;o<r.length;o+=1)e&&!hg(r[o]).is(e)||t.push(r[o]);return hg(t)}function $g(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function Hg(){for(var e=0;e<this.length;e+=1){var t=this[e];if(1===t.nodeType){for(var n=0;n<t.childNodes.length;n+=1)t.childNodes[n].parentNode&&t.childNodes[n].parentNode.removeChild(t.childNodes[n]);t.textContent=""}}return this}hg.fn=fg.prototype;var Vg="resize scroll".split(" ");function Ug(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(void 0===n[0]){for(var o=0;o<this.length;o+=1)Vg.indexOf(e)<0&&(e in this[o]?this[o][e]():hg(this[o]).trigger(e));return this}return this.on.apply(this,[e].concat(n))}}var Wg=Ug("click"),Gg=Ug("focus"),qg=/^(?:0|[1-9]\d*)$/;function Kg(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););return e}var Xg=Object.prototype,Yg=Xg.hasOwnProperty,Zg=Xg.toString,Jg=Xg.propertyIsEnumerable,Qg=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object);var ev,tv=(ev=function(e,t){return e&&nv(e,t,av)},function(e,t){if(null==e)return e;if(!iv(e))return ev(e,t);for(var n=e.length,r=-1,o=Object(e);++r<n&&!1!==t(o[r],r,o););return e}),nv=function(e,t,n){for(var r=-1,o=Object(e),i=n(e),a=i.length;a--;){var u=i[++r];if(!1===t(o[u],u,o))break}return e};function rv(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||qg.test(e))&&e>-1&&e%1==0&&e<t}var ov=Array.isArray;function iv(e){return null!=e&&("number"==typeof(t=e.length)&&t>-1&&t%1==0&&t<=9007199254740991)&&!function(e){var t,n,r=(n=typeof(t=e),!t||"object"!=n&&"function"!=n?"":Zg.call(e));return"[object Function]"==r||"[object GeneratorFunction]"==r}(e);var t}function av(e){return iv(e)?function(e,t){var n,r,o,i=ov(e)||(o=r=n=e)&&"object"==typeof o&&iv(r)&&Yg.call(n,"callee")&&(!Jg.call(n,"callee")||"[object Arguments]"==Zg.call(n))?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],a=i.length,u=!!a;for(var s in e)!t&&!Yg.call(e,s)||u&&("length"==s||rv(s,a))||i.push(s);return i}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||Xg))return Qg(e);var t,n,r=[];for(var o in Object(e))Yg.call(e,o)&&"constructor"!=o&&r.push(o);return r}(e)}function uv(e){return e}var sv=function(e,t){return(ov(e)?Kg:tv)(e,"function"==typeof t?t:uv)};let lv=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t};var cv=/^\s+|\s+$/g,fv=/^[-+]0x[0-9a-f]+$/i,dv=/^0b[01]+$/i,pv=/^0o[0-7]+$/i,hv=parseInt,gv="object"==typeof He&&He&&He.Object===Object&&He,vv="object"==typeof self&&self&&self.Object===Object&&self,yv=gv||vv||Function("return this")(),mv=Object.prototype.toString,bv=Math.max,wv=Math.min,Ev=function(){return yv.Date.now()};function xv(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Dv(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||(n=t)&&"object"==typeof n&&"[object Symbol]"==mv.call(t))return NaN;var t,n;if(xv(e)){var r="function"==typeof e.valueOf?e.valueOf():e;e=xv(r)?r+"":r}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(cv,"");var o=dv.test(e);return o||pv.test(e)?hv(e.slice(2),o?2:8):fv.test(e)?NaN:+e}var Cv=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return xv(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),function(e,t,n){var r,o,i,a,u,s,l=0,c=!1,f=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,i=o;return r=o=void 0,l=t,a=e.apply(i,n)}function h(e){return l=e,u=setTimeout(v,t),c?p(e):a}function g(e){var n=e-s;return void 0===s||n>=t||n<0||f&&e-l>=i}function v(){var e,n,r=Ev();if(g(r))return y(r);u=setTimeout(v,(n=t-((e=r)-s),f?wv(n,i-(e-l)):n))}function y(e){return u=void 0,d&&r?p(e):(r=o=void 0,a)}function m(){var e=Ev(),n=g(e);if(r=arguments,o=this,s=e,n){if(void 0===u)return h(s);if(f)return u=setTimeout(v,t),p(s)}return void 0===u&&(u=setTimeout(v,t)),a}return t=Dv(t)||0,xv(n)&&(c=!!n.leading,i=(f="maxWait"in n)?bv(Dv(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),m.cancel=function(){void 0!==u&&clearTimeout(u),l=0,r=s=o=u=void 0},m.flush=function(){return void 0===u?a:y(Ev())},m}(e,t,{leading:r,maxWait:t,trailing:o})};const Sv={createElement:function(e,t){return document.createElement(e,t)},createElementNS:function(e,t,n){return document.createElementNS(e,t,n)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,n){e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},getTextContent:function(e){return e.textContent},isElement:function(e){return 1===e.nodeType},isText:function(e){return 3===e.nodeType},isComment:function(e){return 8===e.nodeType}};function Av(e,t,n,r,o){return{sel:e,data:t,children:n,text:r,elm:o,key:void 0===t?void 0:t.key}}const Ov=Array.isArray;function kv(e){return"string"==typeof e||"number"==typeof e||e instanceof String||e instanceof Number}function Bv(e){return void 0===e}function Fv(e){return void 0!==e}const Tv=Av("",{},[],void 0,void 0);function _v(e,t){var n,r;const o=e.key===t.key,i=(null===(n=e.data)||void 0===n?void 0:n.is)===(null===(r=t.data)||void 0===r?void 0:r.is);return e.sel===t.sel&&o&&i}function Pv(e,t,n){var r;const o={};for(let i=t;i<=n;++i){const t=null===(r=e[i])||void 0===r?void 0:r.key;void 0!==t&&(o[t]=i)}return o}const jv=["create","update","remove","destroy","pre","post"];function Iv(e,t){const n={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},r=void 0!==t?t:Sv;for(const c of jv)for(const t of e){const e=t[c];void 0!==e&&n[c].push(e)}function o(e,t){return function(){if(0==--t){const t=r.parentNode(e);r.removeChild(t,e)}}}function i(e,t){var o,a;let u,s=e.data;if(void 0!==s){const t=null===(o=s.hook)||void 0===o?void 0:o.init;Fv(t)&&(t(e),s=e.data)}const l=e.children,c=e.sel;if("!"===c)Bv(e.text)&&(e.text=""),e.elm=r.createComment(e.text);else if(void 0!==c){const o=c.indexOf("#"),f=c.indexOf(".",o),d=o>0?o:c.length,p=f>0?f:c.length,h=-1!==o||-1!==f?c.slice(0,Math.min(d,p)):c,g=e.elm=Fv(s)&&Fv(u=s.ns)?r.createElementNS(u,h,s):r.createElement(h,s);for(d<p&&g.setAttribute("id",c.slice(d+1,p)),f>0&&g.setAttribute("class",c.slice(p+1).replace(/\./g," ")),u=0;u<n.create.length;++u)n.create[u](Tv,e);if(Ov(l))for(u=0;u<l.length;++u){const e=l[u];null!=e&&r.appendChild(g,i(e,t))}else kv(e.text)&&r.appendChild(g,r.createTextNode(e.text));const v=e.data.hook;Fv(v)&&(null===(a=v.create)||void 0===a||a.call(v,Tv,e),v.insert&&t.push(e))}else e.elm=r.createTextNode(e.text);return e.elm}function a(e,t,n,o,a,u){for(;o<=a;++o){const a=n[o];null!=a&&r.insertBefore(e,i(a,u),t)}}function u(e){var t,r;const o=e.data;if(void 0!==o){null===(r=null===(t=null==o?void 0:o.hook)||void 0===t?void 0:t.destroy)||void 0===r||r.call(t,e);for(let t=0;t<n.destroy.length;++t)n.destroy[t](e);if(void 0!==e.children)for(let t=0;t<e.children.length;++t){const n=e.children[t];null!=n&&"string"!=typeof n&&u(n)}}}function s(e,t,i,a){for(var s,l;i<=a;++i){let a,c;const f=t[i];if(null!=f)if(Fv(f.sel)){u(f),a=n.remove.length+1,c=o(f.elm,a);for(let t=0;t<n.remove.length;++t)n.remove[t](f,c);const e=null===(l=null===(s=null==f?void 0:f.data)||void 0===s?void 0:s.hook)||void 0===l?void 0:l.remove;Fv(e)?e(f,c):c()}else r.removeChild(e,f.elm)}}function l(e,t,o){var u,c,f,d,p;const h=null===(u=t.data)||void 0===u?void 0:u.hook;null===(c=null==h?void 0:h.prepatch)||void 0===c||c.call(h,e,t);const g=t.elm=e.elm,v=e.children,y=t.children;if(e!==t){if(void 0!==t.data){for(let r=0;r<n.update.length;++r)n.update[r](e,t);null===(d=null===(f=t.data.hook)||void 0===f?void 0:f.update)||void 0===d||d.call(f,e,t)}Bv(t.text)?Fv(v)&&Fv(y)?v!==y&&function(e,t,n,o){let u,c,f,d,p=0,h=0,g=t.length-1,v=t[0],y=t[g],m=n.length-1,b=n[0],w=n[m];for(;p<=g&&h<=m;)null==v?v=t[++p]:null==y?y=t[--g]:null==b?b=n[++h]:null==w?w=n[--m]:_v(v,b)?(l(v,b,o),v=t[++p],b=n[++h]):_v(y,w)?(l(y,w,o),y=t[--g],w=n[--m]):_v(v,w)?(l(v,w,o),r.insertBefore(e,v.elm,r.nextSibling(y.elm)),v=t[++p],w=n[--m]):_v(y,b)?(l(y,b,o),r.insertBefore(e,y.elm,v.elm),y=t[--g],b=n[++h]):(void 0===u&&(u=Pv(t,p,g)),c=u[b.key],Bv(c)?r.insertBefore(e,i(b,o),v.elm):(f=t[c],f.sel!==b.sel?r.insertBefore(e,i(b,o),v.elm):(l(f,b,o),t[c]=void 0,r.insertBefore(e,f.elm,v.elm))),b=n[++h]);(p<=g||h<=m)&&(p>g?(d=null==n[m+1]?null:n[m+1].elm,a(e,d,n,h,m,o)):s(e,t,p,g))}(g,v,y,o):Fv(y)?(Fv(e.text)&&r.setTextContent(g,""),a(g,null,y,0,y.length-1,o)):Fv(v)?s(g,v,0,v.length-1):Fv(e.text)&&r.setTextContent(g,""):e.text!==t.text&&(Fv(v)&&s(g,v,0,v.length-1),r.setTextContent(g,t.text)),null===(p=null==h?void 0:h.postpatch)||void 0===p||p.call(h,e,t)}}return function(e,t){let o,a,u;const c=[];for(o=0;o<n.pre.length;++o)n.pre[o]();for(void 0!==e.sel||(e=function(e){const t=e.id?"#"+e.id:"",n=e.getAttribute("class"),o=n?"."+n.split(" ").join("."):"";return Av(r.tagName(e).toLowerCase()+t+o,{},[],void 0,e)}(e)),_v(e,t)?l(e,t,c):(a=e.elm,u=r.parentNode(a),i(t,c),null!==u&&(r.insertBefore(u,t.elm,r.nextSibling(a)),s(u,[e],0,0))),o=0;o<c.length;++o)c[o].data.hook.insert(c[o]);for(o=0;o<n.post.length;++o)n.post[o]();return t}}function Nv(e,t,n){if(e.ns="http://www.w3.org/2000/svg","foreignObject"!==n&&void 0!==t)for(let r=0;r<t.length;++r){const e=t[r].data;void 0!==e&&Nv(e,t[r].children,t[r].sel)}}function Lv(e,t,n){let r,o,i,a={};if(void 0!==n?(null!==t&&(a=t),Ov(n)?r=n:kv(n)?o=n.toString():n&&n.sel&&(r=[n])):null!=t&&(Ov(t)?r=t:kv(t)?o=t.toString():t&&t.sel?r=[t]:a=t),void 0!==r)for(i=0;i<r.length;++i)kv(r[i])&&(r[i]=Av(void 0,void 0,void 0,r[i],void 0));return"s"!==e[0]||"v"!==e[1]||"g"!==e[2]||3!==e.length&&"."!==e[3]&&"#"!==e[3]||Nv(a,r,e),Av(e,a,r,o,void 0)}function Rv(e,t){let n;const r=t.elm;let o=e.data.attrs,i=t.data.attrs;if((o||i)&&o!==i){for(n in o=o||{},i=i||{},i){const e=i[n];o[n]!==e&&(!0===e?r.setAttribute(n,""):!1===e?r.removeAttribute(n):120!==n.charCodeAt(0)?r.setAttribute(n,e):58===n.charCodeAt(3)?r.setAttributeNS("http://www.w3.org/XML/1998/namespace",n,e):58===n.charCodeAt(5)?r.setAttributeNS("http://www.w3.org/1999/xlink",n,e):r.setAttribute(n,e))}for(n in o)n in i||r.removeAttribute(n)}}const Mv={create:Rv,update:Rv};function zv(e,t){let n,r;const o=t.elm;let i=e.data.class,a=t.data.class;if((i||a)&&i!==a){for(r in i=i||{},a=a||{},i)i[r]&&!Object.prototype.hasOwnProperty.call(a,r)&&o.classList.remove(r);for(r in a)n=a[r],n!==i[r]&&o.classList[n?"add":"remove"](r)}}const $v={create:zv,update:zv},Hv=/[A-Z]/g;function Vv(e,t){const n=t.elm;let r,o=e.data.dataset,i=t.data.dataset;if(!o&&!i)return;if(o===i)return;o=o||{},i=i||{};const a=n.dataset;for(r in o)i[r]||(a?r in a&&delete a[r]:n.removeAttribute("data-"+r.replace(Hv,"-$&").toLowerCase()));for(r in i)o[r]!==i[r]&&(a?a[r]=i[r]:n.setAttribute("data-"+r.replace(Hv,"-$&").toLowerCase(),i[r]))}const Uv={create:Vv,update:Vv};function Wv(e,t,n){if("function"==typeof e)e.call(t,n,t);else if("object"==typeof e)for(let r=0;r<e.length;r++)Wv(e[r],t,n)}function Gv(e,t){const n=e.type,r=t.data.on;r&&r[n]&&Wv(r[n],t,e)}function qv(e,t){const n=e.data.on,r=e.listener,o=e.elm,i=t&&t.data.on,a=t&&t.elm;let u;if(n!==i){if(n&&r)if(i)for(u in n)i[u]||o.removeEventListener(u,r,!1);else for(u in n)o.removeEventListener(u,r,!1);if(i){const r=t.listener=e.listener||function e(t){Gv(t,e.vnode)};if(r.vnode=t,n)for(u in i)n[u]||a.addEventListener(u,r,!1);else for(u in i)a.addEventListener(u,r,!1)}}}const Kv={create:qv,update:qv,destroy:qv};function Xv(e,t){let n,r,o;const i=t.elm;let a=e.data.props,u=t.data.props;if((a||u)&&a!==u)for(n in a=a||{},u=u||{},u)r=u[n],o=a[n],o===r||"value"===n&&i[n]===r||(i[n]=r)}const Yv={create:Xv,update:Xv},Zv="undefined"!=typeof window&&window.requestAnimationFrame.bind(window)||setTimeout;let Jv=!1;function Qv(e,t,n){var r;r=function(){e[t]=n},Zv((function(){Zv(r)}))}function ey(e,t){let n,r;const o=t.elm;let i=e.data.style,a=t.data.style;if(!i&&!a)return;if(i===a)return;i=i||{},a=a||{};const u="delayed"in i;for(r in i)a[r]||("-"===r[0]&&"-"===r[1]?o.style.removeProperty(r):o.style[r]="");for(r in a)if(n=a[r],"delayed"===r&&a.delayed)for(const e in a.delayed)n=a.delayed[e],u&&n===i.delayed[e]||Qv(o.style,e,n);else"remove"!==r&&n!==i[r]&&("-"===r[0]&&"-"===r[1]?o.style.setProperty(r,n):o.style[r]=n)}const ty={pre:function(){Jv=!1},create:ey,update:ey,destroy:function(e){let t,n;const r=e.elm,o=e.data.style;if(o&&(t=o.destroy))for(n in t)r.style[n]=t[n]},remove:function(e,t){const n=e.data.style;if(!n||!n.remove)return void t();let r;Jv||(e.elm.offsetLeft,Jv=!0);const o=e.elm;let i=0;const a=n.remove;let u=0;const s=[];for(r in a)s.push(r),o.style[r]=a[r];const l=getComputedStyle(o)["transition-property"].split(", ");for(;i<l.length;++i)-1!==s.indexOf(l[i])&&u++;o.addEventListener("transitionend",(function(e){e.target===o&&--u,0===u&&t()}))}};function ny(e,t){for(const n of e)null!=n&&!1!==n&&""!==n&&(Array.isArray(n)?ny(n,t):"string"==typeof n||"number"==typeof n||"boolean"==typeof n?t.push(Av(void 0,void 0,void 0,String(n),void 0)):t.push(n));return t}function ry(e,t,...n){const r=ny(n,[]);return"function"==typeof e?e(t,r):1===r.length&&!r[0].sel&&r[0].text?Lv(e,t,r[0].text):Lv(e,t,r)}ry||(ry={});var oy,iy=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ay=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,uy="\\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",sy="["+uy+"]",ly="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",cy="\\d+",fy="[a-z\\xdf-\\xf6\\xf8-\\xff]",dy="[^\\ud800-\\udfff"+uy+cy+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",py="\\ud83c[\\udffb-\\udfff]",hy="[^\\ud800-\\udfff]",gy="(?:\\ud83c[\\udde6-\\uddff]){2}",vy="[\\ud800-\\udbff][\\udc00-\\udfff]",yy="[A-Z\\xc0-\\xd6\\xd8-\\xde]",my="(?:"+fy+"|"+dy+")",by="(?:"+yy+"|"+dy+")",wy="(?:"+ly+"|"+py+")?",Ey="[\\ufe0e\\ufe0f]?"+wy+"(?:\\u200d(?:"+[hy,gy,vy].join("|")+")[\\ufe0e\\ufe0f]?"+wy+")*",xy="(?:"+["[\\u2700-\\u27bf]",gy,vy].join("|")+")"+Ey,Dy="(?:"+[hy+ly+"?",ly,gy,vy,"[\\ud800-\\udfff]"].join("|")+")",Cy=RegExp("['’]","g"),Sy=RegExp(ly,"g"),Ay=RegExp(py+"(?="+py+")|"+Dy+Ey,"g"),Oy=RegExp([yy+"?"+fy+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[sy,yy,"$"].join("|")+")",by+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[sy,yy+my,"$"].join("|")+")",yy+"?"+my+"+(?:['’](?:d|ll|m|re|s|t|ve))?",yy+"+(?:['’](?:D|LL|M|RE|S|T|VE))?",cy,xy].join("|"),"g"),ky=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),By=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Fy="object"==typeof He&&He&&He.Object===Object&&He,Ty="object"==typeof self&&self&&self.Object===Object&&self,_y=Fy||Ty||Function("return this")(),Py=(oy={"À":"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(e){return null==oy?void 0:oy[e]});function jy(e){return ky.test(e)}var Iy=Object.prototype.toString,Ny=_y.Symbol,Ly=Ny?Ny.prototype:void 0,Ry=Ly?Ly.toString:void 0;function My(e){return null==e?"":function(e){if("string"==typeof e)return e;if("symbol"==typeof(t=e)||(n=t)&&"object"==typeof n&&"[object Symbol]"==Iy.call(t))return Ry?Ry.call(e):"";var t,n,r=e+"";return"0"==r&&1/e==-1/0?"-0":r}(e)}for(var zy,$y=(zy=function(e,t,n){return t=t.toLowerCase(),e+(n?Hy(My(t).toLowerCase()):t)},function(e){return function(e,t,n,r){for(var o=-1,i=e?e.length:0;++o<i;)n=t(n,e[o],o,e);return n}(function(e,t,n){return e=My(e),void 0===t?(r=e,By.test(r)?function(e){return e.match(Oy)||[]}(e):function(e){return e.match(iy)||[]}(e)):e.match(t)||[];var r}((t=e,(t=My(t))&&t.replace(ay,Py).replace(Sy,"")).replace(Cy,"")),zy,"");var t}),Hy=("toUpperCase",function(e){var t=jy(e=My(e))?function(e){return jy(e)?e.match(Ay)||[]:(t=e,t.split(""));var t}(e):void 0,n=t?t[0]:e.charAt(0),r=t?function(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}(e,t,n)}(t,1).join(""):e.slice(1);return n.toUpperCase()+r}),Vy=$y,Uy="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),Wy={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},Gy={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:Uy?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},qy={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},Ky=1;Ky<20;Ky++)qy["f"+Ky]=111+Ky;function Xy(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map((function(e){return function(e,t){var n=t&&t.byKey,r={},o=(e=e.replace("++","+add")).split("+"),i=o.length;for(var a in Wy)r[Wy[a]]=!1;var u=!0,s=!1,l=void 0;try{for(var c,f=o[Symbol.iterator]();!(u=(c=f.next()).done);u=!0){var d=c.value,p=d.endsWith("?")&&d.length>1;p&&(d=d.slice(0,-1));var h=Zy(d),g=Wy[h];if(d.length>1&&!g&&!Gy[d]&&!qy[h])throw new TypeError('Unknown modifier: "'+d+'"');1!==i&&g||(n?r.key=h:r.which=Yy(d)),g&&(r[g]=!p||null)}}catch(v){s=!0,l=v}finally{try{!u&&f.return&&f.return()}finally{if(s)throw l}}return r}(e,t)})),o=function(e){return r.some((function(t){return function(e,t){for(var n in e){var r=e[n],o=void 0;if(null!=r&&(null!=(o="key"===n&&null!=t.key?t.key.toLowerCase():"which"===n?91===r&&93===t.which?91:t.which:t[n])||!1!==r)&&o!==r)return!1}return!0}(t,e)}))};return null==n?o:o(n)}function Yy(e){return e=Zy(e),qy[e]||e.toUpperCase().charCodeAt(0)}function Zy(e){return e=e.toLowerCase(),Gy[e]||e}var Jy=Xy,Qy=function(e,t){return Xy(e,{byKey:!0},t)},em=/^\s+|\s+$/g,tm=/^[-+]0x[0-9a-f]+$/i,nm=/^0b[01]+$/i,rm=/^0o[0-7]+$/i,om=parseInt,im="object"==typeof He&&He&&He.Object===Object&&He,am="object"==typeof self&&self&&self.Object===Object&&self,um=im||am||Function("return this")(),sm=Object.prototype.toString,lm=Math.max,cm=Math.min,fm=function(){return um.Date.now()};function dm(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function pm(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||(n=t)&&"object"==typeof n&&"[object Symbol]"==sm.call(t))return NaN;var t,n;if(dm(e)){var r="function"==typeof e.valueOf?e.valueOf():e;e=dm(r)?r+"":r}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(em,"");var o=nm.test(e);return o||rm.test(e)?om(e.slice(2),o?2:8):tm.test(e)?NaN:+e}var hm,gm=function(e,t,n){var r,o,i,a,u,s,l=0,c=!1,f=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,i=o;return r=o=void 0,l=t,a=e.apply(i,n)}function h(e){return l=e,u=setTimeout(v,t),c?p(e):a}function g(e){var n=e-s;return void 0===s||n>=t||n<0||f&&e-l>=i}function v(){var e,n,r=fm();if(g(r))return y(r);u=setTimeout(v,(n=t-((e=r)-s),f?cm(n,i-(e-l)):n))}function y(e){return u=void 0,d&&r?p(e):(r=o=void 0,a)}function m(){var e=fm(),n=g(e);if(r=arguments,o=this,s=e,n){if(void 0===u)return h(s);if(f)return u=setTimeout(v,t),p(s)}return void 0===u&&(u=setTimeout(v,t)),a}return t=pm(t)||0,dm(n)&&(c=!!n.leading,i=(f="maxWait"in n)?lm(pm(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),m.cancel=function(){void 0!==u&&clearTimeout(u),l=0,r=s=o=u=void 0},m.flush=function(){return void 0===u?a:y(fm())},m},vm=Ve((function(e,t){var n="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",i="[object Boolean]",a="[object Date]",u="[object Function]",s="[object GeneratorFunction]",l="[object Map]",c="[object Number]",f="[object Object]",d="[object Promise]",p="[object RegExp]",h="[object Set]",g="[object String]",v="[object Symbol]",y="[object WeakMap]",m="[object ArrayBuffer]",b="[object DataView]",w="[object Float32Array]",E="[object Float64Array]",x="[object Int8Array]",D="[object Int16Array]",C="[object Int32Array]",S="[object Uint8Array]",A="[object Uint8ClampedArray]",O="[object Uint16Array]",k="[object Uint32Array]",B=/\w*$/,F=/^\[object .+?Constructor\]$/,T=/^(?:0|[1-9]\d*)$/,_={};_[o]=_["[object Array]"]=_[m]=_[b]=_[i]=_[a]=_[w]=_[E]=_[x]=_[D]=_[C]=_[l]=_[c]=_[f]=_[p]=_[h]=_[g]=_[v]=_[S]=_[A]=_[O]=_[k]=!0,_["[object Error]"]=_[u]=_[y]=!1;var P="object"==typeof He&&He&&He.Object===Object&&He,j="object"==typeof self&&self&&self.Object===Object&&self,I=P||j||Function("return this")(),N=t&&!t.nodeType&&t,L=N&&e&&!e.nodeType&&e,R=L&&L.exports===N;function M(e,t){return e.set(t[0],t[1]),e}function z(e,t){return e.add(t),e}function $(e,t,n,r){var o=-1,i=e?e.length:0;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function H(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}function V(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function U(e,t){return function(n){return e(t(n))}}function W(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var G=Array.prototype,q=Function.prototype,K=Object.prototype,X=I["__core-js_shared__"],Y=function(){var e=/[^.]+$/.exec(X&&X.keys&&X.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Z=q.toString,J=K.hasOwnProperty,Q=K.toString,ee=RegExp("^"+Z.call(J).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),te=R?I.Buffer:void 0,ne=I.Symbol,re=I.Uint8Array,oe=U(Object.getPrototypeOf,Object),ie=Object.create,ae=K.propertyIsEnumerable,ue=G.splice,se=Object.getOwnPropertySymbols,le=te?te.isBuffer:void 0,ce=U(Object.keys,Object),fe=je(I,"DataView"),de=je(I,"Map"),pe=je(I,"Promise"),he=je(I,"Set"),ge=je(I,"WeakMap"),ve=je(Object,"create"),ye=Me(fe),me=Me(de),be=Me(pe),we=Me(he),Ee=Me(ge),xe=ne?ne.prototype:void 0,De=xe?xe.valueOf:void 0;function Ce(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Se(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ae(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Oe(e){this.__data__=new Se(e)}function ke(e,t,n){var r=e[t];J.call(e,t)&&ze(r,n)&&(void 0!==n||t in e)||(e[t]=n)}function Be(e,t){for(var n=e.length;n--;)if(ze(e[n][0],t))return n;return-1}function Fe(e,t,n,r,d,y,F){var T;if(r&&(T=y?r(e,d,y,F):r(e)),void 0!==T)return T;if(!Ge(e))return e;var P,j,I,N=$e(e);if(N){if(j=(P=e).length,I=P.constructor(j),j&&"string"==typeof P[0]&&J.call(P,"index")&&(I.index=P.index,I.input=P.input),T=I,!t)return function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(e,T)}else{var L=Ne(e),R=L==u||L==s;if(Ue(e))return function(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}(e,t);if(L==f||L==o||R&&!y){if(H(e))return y?e:{};if(T=function(e){return"function"!=typeof e.constructor||Re(e)?{}:Ge(t=oe(e))?ie(t):{};var t}(R?{}:e),!t)return function(e,t){return _e(e,Ie(e),t)}(e,function(e,t){return e&&_e(t,qe(t),e)}(T,e))}else{if(!_[L])return y?e:{};T=function(e,t,n,r){var o,u,s=e.constructor;switch(t){case m:return Te(e);case i:case a:return new s(+e);case b:return o=e,u=r?Te(o.buffer):o.buffer,new o.constructor(u,o.byteOffset,o.byteLength);case w:case E:case x:case D:case C:case S:case A:case O:case k:return function(e,t){var n=t?Te(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,r);case l:return function(e,t,n){return $(t?n(V(e),!0):V(e),M,new e.constructor)}(e,r,n);case c:case g:return new s(e);case p:return function(e){var t=new e.constructor(e.source,B.exec(e));return t.lastIndex=e.lastIndex,t}(e);case h:return function(e,t,n){return $(t?n(W(e),!0):W(e),z,new e.constructor)}(e,r,n);case v:return function(e){return De?Object(De.call(e)):{}}(e)}}(e,L,Fe,t)}}F||(F=new Oe);var U=F.get(e);if(U)return U;if(F.set(e,T),!N)var G=n?function(e){return function(e,t,n){var r=t(e);return $e(e)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(e))}(e,qe,Ie)}(e):qe(e);return function(o,i){for(var a=-1,u=o?o.length:0;++a<u&&!1!==(s=o[a],l=a,G&&(s=e[l=s]),void ke(T,l,Fe(s,t,n,r,l,e,F))););var s,l}(G||e),T}function Te(e){var t=new e.constructor(e.byteLength);return new re(t).set(new re(e)),t}function _e(e,t,n,r){n||(n={});for(var o=-1,i=t.length;++o<i;){var a=t[o],u=r?r(n[a],e[a],a,n,e):void 0;ke(n,a,void 0===u?e[a]:u)}return n}function Pe(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function je(e,t){var n,r,o=(r=t,null==(n=e)?void 0:n[r]);return function(e){return!(!Ge(e)||(t=e,Y&&Y in t))&&(We(e)||H(e)?ee:F).test(Me(e));var t}(o)?o:void 0}Ce.prototype.clear=function(){this.__data__=ve?ve(null):{}},Ce.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Ce.prototype.get=function(e){var t=this.__data__;if(ve){var r=t[e];return r===n?void 0:r}return J.call(t,e)?t[e]:void 0},Ce.prototype.has=function(e){var t=this.__data__;return ve?void 0!==t[e]:J.call(t,e)},Ce.prototype.set=function(e,t){return this.__data__[e]=ve&&void 0===t?n:t,this},Se.prototype.clear=function(){this.__data__=[]},Se.prototype.delete=function(e){var t=this.__data__,n=Be(t,e);return!(n<0||(n==t.length-1?t.pop():ue.call(t,n,1),0))},Se.prototype.get=function(e){var t=this.__data__,n=Be(t,e);return n<0?void 0:t[n][1]},Se.prototype.has=function(e){return Be(this.__data__,e)>-1},Se.prototype.set=function(e,t){var n=this.__data__,r=Be(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},Ae.prototype.clear=function(){this.__data__={hash:new Ce,map:new(de||Se),string:new Ce}},Ae.prototype.delete=function(e){return Pe(this,e).delete(e)},Ae.prototype.get=function(e){return Pe(this,e).get(e)},Ae.prototype.has=function(e){return Pe(this,e).has(e)},Ae.prototype.set=function(e,t){return Pe(this,e).set(e,t),this},Oe.prototype.clear=function(){this.__data__=new Se},Oe.prototype.delete=function(e){return this.__data__.delete(e)},Oe.prototype.get=function(e){return this.__data__.get(e)},Oe.prototype.has=function(e){return this.__data__.has(e)},Oe.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Se){var r=n.__data__;if(!de||r.length<199)return r.push([e,t]),this;n=this.__data__=new Ae(r)}return n.set(e,t),this};var Ie=se?U(se,Object):function(){return[]},Ne=function(e){return Q.call(e)};function Le(e,t){return!!(t=null==t?r:t)&&("number"==typeof e||T.test(e))&&e>-1&&e%1==0&&e<t}function Re(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||K)}function Me(e){if(null!=e){try{return Z.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function ze(e,t){return e===t||e!=e&&t!=t}(fe&&Ne(new fe(new ArrayBuffer(1)))!=b||de&&Ne(new de)!=l||pe&&Ne(pe.resolve())!=d||he&&Ne(new he)!=h||ge&&Ne(new ge)!=y)&&(Ne=function(e){var t=Q.call(e),n=t==f?e.constructor:void 0,r=n?Me(n):void 0;if(r)switch(r){case ye:return b;case me:return l;case be:return d;case we:return h;case Ee:return y}return t});var $e=Array.isArray;function Ve(e){return null!=e&&("number"==typeof(t=e.length)&&t>-1&&t%1==0&&t<=r)&&!We(e);var t}var Ue=le||function(){return!1};function We(e){var t=Ge(e)?Q.call(e):"";return t==u||t==s}function Ge(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function qe(e){return Ve(e)?function(e,t){var n,r,i,a=$e(e)||(i=r=n=e)&&"object"==typeof i&&Ve(r)&&J.call(n,"callee")&&(!ae.call(n,"callee")||Q.call(n)==o)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],u=a.length,s=!!u;for(var l in e)!t&&!J.call(e,l)||s&&("length"==l||Le(l,u))||a.push(l);return a}(e):function(e){if(!Re(e))return ce(e);var t=[];for(var n in Object(e))J.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}e.exports=function(e){return Fe(e,!0,!0)}}));function ym(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var mm=0;function bm(e,t,n){const r=[];return e.forEach((e=>"string"!=typeof e?r.push(e):t[Symbol.split](e).forEach(((e,t,o)=>{""!==e&&r.push(e),t<o.length-1&&r.push(n)})))),r
  8. /**
  9. * Takes a string with placeholder variables like `%{smart_count} file selected`
  10. * and replaces it with values from options `{smart_count: 5}`
  11. *
  12. * @license https://github.com/airbnb/polyglot.js/blob/master/LICENSE
  13. * taken from https://github.com/airbnb/polyglot.js/blob/master/lib/polyglot.js#L299
  14. *
  15. * @param {string} phrase that needs interpolation, with placeholders
  16. * @param {object} options with values that will be used to replace placeholders
  17. * @returns {any[]} interpolated
  18. */}function wm(e,t){const n=/\$/g;let r=[e];if(null==t)return r;for(const o of Object.keys(t))if("_"!==o){let e=t[o];"string"==typeof e&&(e=n[Symbol.replace](e,"$$$$")),r=bm(r,new RegExp(`%\\{${o}\\}`,"g"),e)}return r}var Em=(hm=function(e){return"__private_"+mm+++"_"+e}("apply"),class{constructor(e){Object.defineProperty(this,hm,{value:xm}),this.locale={strings:{},pluralize:e=>1===e?0:1},Array.isArray(e)?e.forEach(ym(this,hm)[hm],this):ym(this,hm)[hm](e)}translate(e,t){return this.translateArray(e,t).join("")}translateArray(e,t){if(n=this.locale.strings,r=e,!Object.prototype.hasOwnProperty.call(n,r))throw new Error(`missing string: ${e}`);var n,r;const o=this.locale.strings[e];if("object"==typeof o){if(t&&void 0!==t.smart_count)return wm(o[this.locale.pluralize(t.smart_count)],t);throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}return wm(o,t)}});function xm(e){if(null==e||!e.strings)return;const t=this.locale;this.locale={...t,strings:{...t.strings,...e.strings}},this.locale.pluralize=e.pluralize||t.pluralize}var Dm=function(){var e={},t=e._fns={};return e.emit=function(e,n,r,o,i,a,u){var s=function(e){for(var n=t[e]?t[e]:[],r=e.indexOf(":"),o=-1===r?[e]:[e.substring(0,r),e.substring(r+1)],i=Object.keys(t),a=0,u=i.length;a<u;a++){var s=i[a];if("*"===s&&(n=n.concat(t[s])),2===o.length&&o[0]===s){n=n.concat(t[s]);break}}return n}(e);s.length&&function(e,t,n){for(var r=0,o=t.length;r<o&&t[r];r++)t[r].event=e,t[r].apply(t[r],n)}(e,s,[n,r,o,i,a,u])},e.on=function(e,n){t[e]||(t[e]=[]),t[e].push(n)},e.once=function(t,n){this.on(t,(function r(){n.apply(this,arguments),e.off(t,r)}))},e.off=function(e,t){var n=[];if(e&&t)for(var r=this._fns[e],o=0,i=r?r.length:0;o<i;o++)r[o]!==t&&n.push(r[o]);n.length?this._fns[e]=n:delete this._fns[e]},e};let{urlAlphabet:Cm}={urlAlphabet:"useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"},Sm=e=>crypto.getRandomValues(new Uint8Array(e)),Am=(e,t,n)=>{let r=(2<<Math.log(e.length-1)/Math.LN2)-1,o=-~(1.6*r*t/e.length);return()=>{let i="";for(;;){let a=n(o),u=o;for(;u--;)if(i+=e[a[u]&r]||"",i.length===t)return i}}};var Om={nanoid:(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t},customAlphabet:(e,t)=>Am(e,t,Sm),customRandom:Am,urlAlphabet:Cm,random:Sm},km=function(e){if("number"!=typeof e||isNaN(e))throw new TypeError("Expected a number, got "+typeof e);var t=e<0,n=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(t&&(e=-e),e<1)return(t?"-":"")+e+" B";var r=Math.min(Math.floor(Math.log(e)/Math.log(1024)),n.length-1);e=Number(e/Math.pow(1024,r));var o=n[r];return e>=10||e%1==0?(t?"-":"")+e.toFixed(0)+" "+o:(t?"-":"")+e.toFixed(1)+" "+o};function Bm(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}Bm.prototype.match=function(e){var t,n,r=!0,o=this.parts,i=o.length;if("string"==typeof e||e instanceof String)if(this.hasWild||this.text==e){for(n=(e||"").split(this.separator),t=0;r&&t<i;t++)"*"!==o[t]&&(r=t<n.length&&o[t]===n[t]);r=r&&n}else r=!1;else if("function"==typeof e.splice)for(r=[],t=e.length;t--;)this.match(e[t])&&(r[r.length]=e[t]);else if("object"==typeof e)for(var a in r={},e)this.match(a)&&(r[a]=e[a]);return r};var Fm=/[\/\+\.]/,Tm=0;var _m=function(e){return"__private_"+Tm+++"_"+e}("publish");class Pm{constructor(){Object.defineProperty(this,_m,{value:jm}),this.state={},this.callbacks=[]}getState(){return this.state}setState(e){const t={...this.state},n={...this.state,...e};this.state=n,function(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}(this,_m)[_m](t,n,e)}subscribe(e){return this.callbacks.push(e),()=>{this.callbacks.splice(this.callbacks.indexOf(e),1)}}}function jm(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.callbacks.forEach((e=>{e(...t)}))}Pm.VERSION="2.0.3";var Im=function(e){const t=e.lastIndexOf(".");return-1===t||t===e.length-1?{name:e,extension:void 0}:{name:e.slice(0,t),extension:e.slice(t+1)}},Nm={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 Lm(e){let t="";return e.replace(/[^A-Z0-9]/gi,(e=>{return t+=`-${n=e,n.charCodeAt(0).toString(32)}`,"/";var n}))+t}var Rm=function(e){if(null==e&&(e="undefined"!=typeof navigator?navigator.userAgent:null),!e)return!0;const t=/Edge\/(\d+\.\d+)/.exec(e);if(!t)return!0;const n=t[1];let[r,o]=n.split(".");return r=parseInt(r,10),o=parseInt(o,10),r<15||15===r&&o<15063||r>18||18===r&&o>=18218};function Mm(e){return e<10?`0${e}`:e.toString()}var zm=function(){const e=new Date;return`${Mm(e.getHours())}:${Mm(e.getMinutes())}:${Mm(e.getSeconds())}`},$m={justErrorsLogger:{debug:()=>{},warn:()=>{},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error(`[Uppy] [${zm()}]`,...t)}},debugLogger:{debug:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.debug(`[Uppy] [${zm()}]`,...t)},warn:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.warn(`[Uppy] [${zm()}]`,...t)},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error(`[Uppy] [${zm()}]`,...t)}}},Hm={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}"}}},Vm=Om;let Um,Wm;function Gm(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var qm=0;function Km(e){return"__private_"+qm+++"_"+e}const{nanoid:Xm}=Vm,{justErrorsLogger:Ym,debugLogger:Zm}=$m;class Jm extends Error{constructor(){super(...arguments),this.isRestriction=!0}}"undefined"==typeof AggregateError&&(globalThis.AggregateError=class extends Error{constructor(e,t){super(t),this.errors=e}});class Qm extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}}var eb=Km("plugins"),tb=Km("storeUnsubscribe"),nb=Km("emitter"),rb=Km("preProcessors"),ob=Km("uploaders"),ib=Km("postProcessors"),ab=Km("checkRestrictions"),ub=Km("checkMinNumberOfFiles"),sb=Km("checkRequiredMetaFieldsOnFile"),lb=Km("checkRequiredMetaFields"),cb=Km("showOrLogErrorAndThrow"),fb=Km("assertNewUploadAllowed"),db=Km("checkAndCreateFileStateObject"),pb=Km("startIfAutoProceed"),hb=Km("addListeners"),gb=Km("updateOnlineStatus"),vb=Km("createUpload"),yb=Km("getUpload"),mb=Km("removeUpload"),bb=Km("runUpload");Um=Symbol.for("uppy test: getPlugins"),Wm=Symbol.for("uppy test: createUpload");class wb{constructor(e){Object.defineProperty(this,bb,{value:Pb}),Object.defineProperty(this,mb,{value:_b}),Object.defineProperty(this,yb,{value:Tb}),Object.defineProperty(this,vb,{value:Fb}),Object.defineProperty(this,hb,{value:Bb}),Object.defineProperty(this,pb,{value:kb}),Object.defineProperty(this,db,{value:Ob}),Object.defineProperty(this,fb,{value:Ab}),Object.defineProperty(this,cb,{value:Sb}),Object.defineProperty(this,lb,{value:Cb}),Object.defineProperty(this,sb,{value:Db}),Object.defineProperty(this,ub,{value:xb}),Object.defineProperty(this,ab,{value:Eb}),Object.defineProperty(this,eb,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,tb,{writable:!0,value:void 0}),Object.defineProperty(this,nb,{writable:!0,value:Dm()}),Object.defineProperty(this,rb,{writable:!0,value:new Set}),Object.defineProperty(this,ob,{writable:!0,value:new Set}),Object.defineProperty(this,ib,{writable:!0,value:new Set}),Object.defineProperty(this,gb,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=Hm;const t={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:e=>e,onBeforeUpload:e=>e,store:new Pm,logger:Ym,infoTimeout:5e3};if(this.opts={...t,...e,restrictions:{...t.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=Zm),this.log(`Using Core v${this.constructor.VERSION}`),this.opts.restrictions.allowedFileTypes&&null!==this.opts.restrictions.allowedFileTypes&&!Array.isArray(this.opts.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");this.i18nInit(),this.calculateProgress=Cv(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:Rm(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),Gm(this,tb)[tb]=this.store.subscribe(((e,t,n)=>{this.emit("state-update",e,t,n),this.updateAll(t)})),this.opts.debug&&"undefined"!=typeof window&&(window[this.opts.id]=this),Gm(this,hb)[hb]()}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];Gm(this,nb)[nb].emit(e,...n)}on(e,t){return Gm(this,nb)[nb].on(e,t),this}once(e,t){return Gm(this,nb)[nb].once(e,t),this}off(e,t){return Gm(this,nb)[nb].off(e,t),this}updateAll(e){this.iteratePlugins((t=>{t.update(e)}))}setState(e){this.store.setState(e)}getState(){return this.store.getState()}get state(){return this.getState()}setFileState(e,t){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],...t}}})}i18nInit(){const e=new Em([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((e=>{e.setOptions()})),this.setState()}resetProgress(){const e={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},t={...this.getState().files},n={};Object.keys(t).forEach((r=>{const o={...t[r]};o.progress={...o.progress,...e},n[r]=o})),this.setState({files:n,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(e){Gm(this,rb)[rb].add(e)}removePreProcessor(e){return Gm(this,rb)[rb].delete(e)}addPostProcessor(e){Gm(this,ib)[ib].add(e)}removePostProcessor(e){return Gm(this,ib)[ib].delete(e)}addUploader(e){Gm(this,ob)[ob].add(e)}removeUploader(e){return Gm(this,ob)[ob].delete(e)}setMeta(e){const t={...this.getState().meta,...e},n={...this.getState().files};Object.keys(n).forEach((t=>{n[t]={...n[t],meta:{...n[t].meta,...e}}})),this.log("Adding metadata:"),this.log(e),this.setState({meta:t,files:n})}setFileMeta(e,t){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 r={...n[e].meta,...t};n[e]={...n[e],meta:r},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:t,error:n}=this.getState(),r=Object.values(e),o=r.filter((e=>{let{progress:t}=e;return!t.uploadComplete&&t.uploadStarted})),i=r.filter((e=>!e.progress.uploadStarted)),a=r.filter((e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess)),u=r.filter((e=>e.progress.uploadStarted)),s=r.filter((e=>e.isPaused)),l=r.filter((e=>e.progress.uploadComplete)),c=r.filter((e=>e.error)),f=o.filter((e=>!e.isPaused)),d=r.filter((e=>e.progress.preprocess||e.progress.postprocess));return{newFiles:i,startedFiles:a,uploadStartedFiles:u,pausedFiles:s,completeFiles:l,erroredFiles:c,inProgressFiles:o,inProgressNotPausedFiles:f,processingFiles:d,isUploadStarted:u.length>0,isAllComplete:100===t&&l.length===r.length&&0===d.length,isAllErrored:!!n&&c.length===r.length,isAllPaused:0!==o.length&&s.length===o.length,isUploadInProgress:o.length>0,isSomeGhost:r.some((e=>e.isGhost))}}validateRestrictions(e,t){try{return Gm(this,ab)[ab](e,t),{result:!0}}catch(n){return{result:!1,reason:n.message}}}checkIfFileAlreadyExists(e){const{files:t}=this.getState();return!(!t[e]||t[e].isGhost)}addFile(e){Gm(this,fb)[fb](e);const{files:t}=this.getState();let n=Gm(this,db)[db](t,e);return t[n.id]&&t[n.id].isGhost&&(n={...t[n.id],data:e.data,isGhost:!1},this.log(`Replaced the blob in the restored ghost file: ${n.name}, ${n.id}`)),this.setState({files:{...t,[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}`),Gm(this,pb)[pb](),n.id}addFiles(e){Gm(this,fb)[fb]();const t={...this.getState().files},n=[],r=[];for(let i=0;i<e.length;i++)try{let r=Gm(this,db)[db](t,e[i]);t[r.id]&&t[r.id].isGhost&&(r={...t[r.id],data:e[i].data,isGhost:!1},this.log(`Replaced blob in a ghost file: ${r.name}, ${r.id}`)),t[r.id]=r,n.push(r)}catch(o){o.isRestriction||r.push(o)}if(this.setState({files:t}),n.forEach((e=>{this.emit("file-added",e)})),this.emit("files-added",n),n.length>5?this.log(`Added batch of ${n.length} files`):Object.keys(n).forEach((e=>{this.log(`Added file: ${n[e].name}\n id: ${n[e].id}\n type: ${n[e].type}`)})),n.length>0&&Gm(this,pb)[pb](),r.length>0){let e="Multiple errors occurred while adding files:\n";if(r.forEach((t=>{e+=`\n * ${t.message}`})),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:r.length}),details:e},"error",this.opts.infoTimeout),"function"==typeof AggregateError)throw new AggregateError(r,e);{const t=new Error(e);throw t.errors=r,t}}}removeFiles(e,t){const{files:n,currentUploads:r}=this.getState(),o={...n},i={...r},a=Object.create(null);function u(e){return void 0===a[e]}e.forEach((e=>{n[e]&&(a[e]=n[e],delete o[e])})),Object.keys(i).forEach((e=>{const t=r[e].fileIDs.filter(u);0!==t.length?i[e]={...r[e],fileIDs:t}:delete i[e]}));const s={currentUploads:i,files:o};0===Object.keys(o).length&&(s.allowNewUpload=!0,s.error=null,s.recoveredState=null),this.setState(s),this.calculateTotalProgress();const l=Object.keys(a);l.forEach((e=>{this.emit("file-removed",a[e],t)})),l.length>5?this.log(`Removed ${l.length} files`):this.log(`Removed files: ${l.join(", ")}`)}removeFile(e,t){void 0===t&&(t=null),this.removeFiles([e],t)}pauseResume(e){if(!this.getState().capabilities.resumableUploads||this.getFile(e).uploadComplete)return;const t=!this.getFile(e).isPaused;return this.setFileState(e,{isPaused:t}),this.emit("upload-pause",e,t),t}pauseAll(){const e={...this.getState().files};Object.keys(e).filter((t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted)).forEach((t=>{const n={...e[t],isPaused:!0};e[t]=n})),this.setState({files:e}),this.emit("pause-all")}resumeAll(){const e={...this.getState().files};Object.keys(e).filter((t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted)).forEach((t=>{const n={...e[t],isPaused:!1,error:null};e[t]=n})),this.setState({files:e}),this.emit("resume-all")}retryAll(){const e={...this.getState().files},t=Object.keys(e).filter((t=>e[t].error));if(t.forEach((t=>{const n={...e[t],isPaused:!1,error:null};e[t]=n})),this.setState({files:e,error:null}),this.emit("retry-all",t),0===t.length)return Promise.resolve({successful:[],failed:[]});const n=Gm(this,vb)[vb](t,{forceAllowNewUpload:!0});return Gm(this,bb)[bb](n)}cancelAll(){this.emit("cancel-all");const{files:e}=this.getState(),t=Object.keys(e);t.length&&this.removeFiles(t,"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 t=Gm(this,vb)[vb]([e],{forceAllowNewUpload:!0});return Gm(this,bb)[bb](t)}reset(){this.cancelAll()}logout(){this.iteratePlugins((e=>{e.provider&&e.provider.logout&&e.provider.logout()}))}calculateProgress(e,t){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(t.bytesTotal)&&t.bytesTotal>0;this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,bytesUploaded:t.bytesUploaded,bytesTotal:t.bytesTotal,percentage:n?Math.round(t.bytesUploaded/t.bytesTotal*100):0}}),this.calculateTotalProgress()}calculateTotalProgress(){const e=this.getFiles().filter((e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess));if(0===e.length)return this.emit("progress",0),void this.setState({totalProgress:0});const t=e.filter((e=>null!=e.progress.bytesTotal)),n=e.filter((e=>null==e.progress.bytesTotal));if(0===t.length){const t=100*e.length,r=n.reduce(((e,t)=>e+t.progress.percentage),0),o=Math.round(r/t*100);return void this.setState({totalProgress:o})}let r=t.reduce(((e,t)=>e+t.progress.bytesTotal),0);const o=r/t.length;r+=o*n.length;let i=0;t.forEach((e=>{i+=e.progress.bytesUploaded})),n.forEach((e=>{i+=o*(e.progress.percentage||0)/100}));let a=0===r?0:Math.round(i/r*100);a>100&&(a=100),this.setState({totalProgress:a}),this.emit("progress",a)}updateOnlineStatus(){void 0===window.navigator.onLine||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,t){if("function"!=typeof e)throw new TypeError(`Expected a plugin class, but got ${null===e?"null":typeof e}. Please verify that the plugin was imported and spelled correctly.`);const n=new e(this,t),r=n.id;if(!r)throw new Error("Your plugin must have an id");if(!n.type)throw new Error("Your plugin must have a type");const o=this.getPlugin(r);if(o){const e=`Already found a plugin named '${o.id}'. Tried to use: '${r}'.\nUppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(e)}return e.VERSION&&this.log(`Using ${r} v${e.VERSION}`),n.type in Gm(this,eb)[eb]?Gm(this,eb)[eb][n.type].push(n):Gm(this,eb)[eb][n.type]=[n],n.install(),this}getPlugin(e){for(const t of Object.values(Gm(this,eb)[eb])){const n=t.find((t=>t.id===e));if(null!=n)return n}}[Um](e){return Gm(this,eb)[eb][e]}iteratePlugins(e){Object.values(Gm(this,eb)[eb]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();const t=Gm(this,eb)[eb][e.type],n=t.findIndex((t=>t.id===e.id));-1!==n&&t.splice(n,1);const r={plugins:{...this.getState().plugins,[e.id]:void 0}};this.setState(r)}close(){this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.reset(),Gm(this,tb)[tb](),this.iteratePlugins((e=>{this.removePlugin(e)})),"undefined"!=typeof window&&window.removeEventListener&&(window.removeEventListener("online",Gm(this,gb)[gb]),window.removeEventListener("offline",Gm(this,gb)[gb]))}hideInfo(){const{info:e}=this.getState();this.setState({info:e.slice(1)}),this.emit("info-hidden")}info(e,t,n){void 0===t&&(t="info"),void 0===n&&(n=3e3);const r="object"==typeof e;this.setState({info:[...this.getState().info,{type:t,message:r?e.message:e,details:r?e.details:null}]}),setTimeout((()=>this.hideInfo()),n),this.emit("info-visible")}log(e,t){const{logger:n}=this.opts;switch(t){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]?Gm(this,bb)[bb](e):(Gm(this,mb)[mb](e),Promise.reject(new Error("Nonexistent upload")))}[Wm](){return Gm(this,vb)[vb](...arguments)}addResultData(e,t){if(!Gm(this,yb)[yb](e))return void this.log(`Not setting result for an upload that has been removed: ${e}`);const{currentUploads:n}=this.getState(),r={...n[e],result:{...n[e].result,...t}};this.setState({currentUploads:{...n,[e]:r}})}upload(){var e;null!=(e=Gm(this,eb)[eb].uploader)&&e.length||this.log("No uploader type plugins are used","warning");let{files:t}=this.getState();const n=this.opts.onBeforeUpload(t);return!1===n?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(n&&"object"==typeof n&&(t=n,this.setState({files:t})),Promise.resolve().then((()=>{Gm(this,ub)[ub](t),Gm(this,lb)[lb](t)})).catch((e=>{Gm(this,cb)[cb](e)})).then((()=>{const{currentUploads:e}=this.getState(),n=Object.values(e).flatMap((e=>e.fileIDs)),r=[];Object.keys(t).forEach((e=>{const t=this.getFile(e);t.progress.uploadStarted||-1!==n.indexOf(e)||r.push(t.id)}));const o=Gm(this,vb)[vb](r);return Gm(this,bb)[bb](o)})).catch((e=>{Gm(this,cb)[cb](e,{showInformer:!1})})))}}function Eb(e,t){void 0===t&&(t=this.getFiles());const{maxFileSize:n,minFileSize:r,maxTotalFileSize:o,maxNumberOfFiles:i,allowedFileTypes:a}=this.opts.restrictions;if(i&&t.length+1>i)throw new Jm(`${this.i18n("youCanOnlyUploadX",{smart_count:i})}`);if(a&&!a.some((t=>t.indexOf("/")>-1?!!e.type&&function(e,t){function n(t){var n=function(e,t,n){var r=new Bm(e,Fm);return void 0!==t?r.match(t):r}(t,e);return n&&n.length>=2}return t?n(t.split(";")[0]):n}(e.type.replace(/;.*?$/,""),t):!("."!==t[0]||!e.extension)&&e.extension.toLowerCase()===t.substr(1).toLowerCase()))){const e=a.join(", ");throw new Jm(this.i18n("youCanOnlyUploadFileTypes",{types:e}))}if(o&&null!=e.size){let n=0;if(n+=e.size,t.forEach((e=>{n+=e.size})),n>o)throw new Jm(this.i18n("exceedsSize",{size:km(o),file:e.name}))}if(n&&null!=e.size&&e.size>n)throw new Jm(this.i18n("exceedsSize",{size:km(n),file:e.name}));if(r&&null!=e.size&&e.size<r)throw new Jm(this.i18n("inferiorSize",{size:km(r)}))}function xb(e){const{minNumberOfFiles:t}=this.opts.restrictions;if(Object.keys(e).length<t)throw new Jm(`${this.i18n("youHaveToAtLeastSelectX",{smart_count:t})}`)}function Db(e){const{requiredMetaFields:t}=this.opts.restrictions,{hasOwnProperty:n}=Object.prototype,r=[],o=[];for(let i=0;i<t.length;i++)if(!n.call(e.meta,t[i])||""===e.meta[t[i]]){const n=new Jm(`${this.i18n("missingRequiredMetaFieldOnFile",{fileName:e.name})}`);r.push(n),o.push(t[i]),Gm(this,cb)[cb](n,{file:e,showInformer:!1,throwErr:!1})}return this.setFileState(e.id,{missingRequiredMetaFields:o}),r}function Cb(e){const t=Object.keys(e).flatMap((e=>{const t=this.getFile(e);return Gm(this,sb)[sb](t)}));if(t.length)throw new Qm(t,`${this.i18n("missingRequiredMetaField")}`)}function Sb(e,t){let{showInformer:n=!0,file:r=null,throwErr:o=!0}=void 0===t?{}:t;const i="object"==typeof e?e.message:e,a="object"==typeof e&&e.details?e.details:"";let u=i;if(a&&(u+=` ${a}`),e.isRestriction?(this.log(u),this.emit("restriction-failed",r,e)):this.log(u,"error"),n&&this.info({message:i,details:a},"error",this.opts.infoTimeout),o)throw"object"==typeof e?e:new Error(e)}function Ab(e){const{allowNewUpload:t}=this.getState();!1===t&&Gm(this,cb)[cb](new Jm(this.i18n("noMoreFilesAllowed")),{file:e})}function Ob(e,t){const n=function(e){var t;if(e.type)return e.type;const n=e.name?null==(t=Im(e.name).extension)?void 0:t.toLowerCase():null;return n&&n in Nm?Nm[n]:"application/octet-stream"}(t),r=(u=n,(s=t).name?s.name:"image"===u.split("/")[0]?`${u.split("/")[0]}.${u.split("/")[1]}`:"noname"),o=Im(r).extension,i=Boolean(t.isRemote),a=function(e){let t="uppy";return"string"==typeof e.name&&(t+=`-${Lm(e.name.toLowerCase())}`),void 0!==e.type&&(t+=`-${e.type}`),e.meta&&"string"==typeof e.meta.relativePath&&(t+=`-${Lm(e.meta.relativePath.toLowerCase())}`),void 0!==e.data.size&&(t+=`-${e.data.size}`),void 0!==e.data.lastModified&&(t+=`-${e.data.lastModified}`),t}({...t,type:n});var u,s;if(this.checkIfFileAlreadyExists(a)){const e=new Jm(this.i18n("noDuplicates",{fileName:r}));Gm(this,cb)[cb](e,{file:t})}const l=t.meta||{};l.name=r,l.type=n;const c=Number.isFinite(t.data.size)?t.data.size:null;let f={source:t.source||"",id:a,name:r,extension:o||"",meta:{...this.getState().meta,...l},type:n,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:c,uploadComplete:!1,uploadStarted:null},size:c,isRemote:i,remote:t.remote||"",preview:t.preview};const d=this.opts.onBeforeFileAdded(f,e);!1===d?Gm(this,cb)[cb](new Jm("Cannot add the file because onBeforeFileAdded returned false."),{showInformer:!1,fileDescriptor:t}):"object"==typeof d&&null!==d&&(f=d);try{const t=Object.keys(e).map((t=>e[t]));Gm(this,ab)[ab](f,t)}catch(u){Gm(this,cb)[cb](u,{file:f})}return f}function kb(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout((()=>{this.scheduledAutoProceed=null,this.upload().catch((e=>{e.isRestriction||this.log(e.stack||e.message||e)}))}),4))}function Bb(){const e=(e,t,n)=>{let r=e.message||"Unknown error";e.details&&(r+=` ${e.details}`),this.setState({error:r}),null!=t&&t.id in this.getState().files&&this.setFileState(t.id,{error:r,response:n})};this.on("error",e),this.on("upload-error",((t,n,r)=>{if(e(n,t,r),"object"==typeof n&&n.message){const e=new Error(n.message);e.details=n.message,n.details&&(e.details+=` ${n.details}`),e.message=this.i18n("failedToUpload",{file:t.name}),Gm(this,cb)[cb](e,{throwErr:!1})}else Gm(this,cb)[cb](n,{throwErr:!1})})),this.on("upload",(()=>{this.setState({error:null})})),this.on("upload-started",(e=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:e.size}}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)})),this.on("upload-progress",this.calculateProgress),this.on("upload-success",((e,t)=>{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:Gm(this,ib)[ib].size>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:n.bytesTotal},response:t,uploadURL:t.uploadURL,isPaused:!1}),null==e.size&&this.setFileState(e.id,{size:t.bytesUploaded||n.bytesTotal}),this.calculateTotalProgress()})),this.on("preprocess-progress",((e,t)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,preprocess:t}}):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 t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.preprocess,this.setState({files:t})})),this.on("postprocess-progress",((e,t)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getState().files[e.id].progress,postprocess:t}}):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 t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.postprocess,this.setState({files:t})})),this.on("restored",(()=>{this.calculateTotalProgress()})),this.on("dashboard:file-edit-complete",(e=>{e&&Gm(this,sb)[sb](e)})),"undefined"!=typeof window&&window.addEventListener&&(window.addEventListener("online",Gm(this,gb)[gb]),window.addEventListener("offline",Gm(this,gb)[gb]),setTimeout(Gm(this,gb)[gb],3e3))}function Fb(e,t){void 0===t&&(t={});const{forceAllowNewUpload:n=!1}=t,{allowNewUpload:r,currentUploads:o}=this.getState();if(!r&&!n)throw new Error("Cannot create a new upload: already uploading.");const i=Xm();return this.emit("upload",{id:i,fileIDs:e}),this.setState({allowNewUpload:!1!==this.opts.allowMultipleUploadBatches&&!1!==this.opts.allowMultipleUploads,currentUploads:{...o,[i]:{fileIDs:e,step:0,result:{}}}}),i}function Tb(e){const{currentUploads:t}=this.getState();return t[e]}function _b(e){const t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function Pb(e){let{currentUploads:t}=this.getState(),n=t[e];const r=n.step||0,o=[...Gm(this,rb)[rb],...Gm(this,ob)[ob],...Gm(this,ib)[ib]];try{for(let i=r;i<o.length&&n;i++){const r=o[i],a={...n,step:i};this.setState({currentUploads:{...t,[e]:a}}),await r(a.fileIDs,e),t=this.getState().currentUploads,n=t[e]}}catch(a){throw this.emit("error",a),Gm(this,mb)[mb](e),a}if(n){n.fileIDs.forEach((e=>{const t=this.getFile(e);t&&t.progress.postprocess&&this.emit("postprocess-complete",t)}));const r=n.fileIDs.map((e=>this.getFile(e))),o=r.filter((e=>!e.error)),i=r.filter((e=>e.error));await this.addResultData(e,{successful:o,failed:i,uploadID:e}),t=this.getState().currentUploads,n=t[e]}let i;return n&&(i=n.result,this.emit("complete",i),Gm(this,mb)[mb](e)),null==i&&this.log(`Not setting result for an upload that has been removed: ${e}`),i}wb.VERSION="2.1.3";var jb=wb,Ib=Ve((function(e,t){var n,r,o,i,a,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(e,t){for(var n in t)e[n]=t[n];return e}function h(e){var t=e.parentNode;t&&t.removeChild(e)}function g(e,t,r){var o,i,a,u={};for(a in t)"key"==a?o=t[a]:"ref"==a?i=t[a]:u[a]=t[a];if(arguments.length>2&&(u.children=arguments.length>3?n.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===u[a]&&(u[a]=e.defaultProps[a]);return v(e,u,o,i,null)}function v(e,t,n,i,a){var u={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==a?++o:a};return null==a&&null!=r.vnode&&r.vnode(u),u}function y(e){return e.children}function m(e,t){this.props=e,this.context=t}function b(e,t){if(null==t)return e.__?b(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?b(e):null}function w(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return w(e)}}function E(e){(!e.__d&&(e.__d=!0)&&a.push(e)&&!x.__r++||s!==r.debounceRendering)&&((s=r.debounceRendering)||u)(x)}function x(){for(var e;x.__r=a.length;)e=a.sort((function(e,t){return e.__v.__b-t.__v.__b})),a=[],e.some((function(e){var t,n,r,o,i,a;e.__d&&(i=(o=(t=e).__v).__e,(a=t.__P)&&(n=[],(r=p({},o)).__v=o.__v+1,F(a,o,r,t.__n,void 0!==a.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?b(o):i,o.__h),T(n,o),o.__e!=i&&w(o)))}))}function D(e,t,n,r,o,i,a,u,s,l){var d,p,h,g,m,w,E,x=r&&r.__k||f,D=x.length;for(n.__k=[],d=0;d<t.length;d++)if(null!=(g=n.__k[d]=null==(g=t[d])||"boolean"==typeof g?null:"string"==typeof g||"number"==typeof g||"bigint"==typeof g?v(null,g,null,null,g):Array.isArray(g)?v(y,{children:g},null,null,null):g.__b>0?v(g.type,g.props,g.key,null,g.__v):g)){if(g.__=n,g.__b=n.__b+1,null===(h=x[d])||h&&g.key==h.key&&g.type===h.type)x[d]=void 0;else for(p=0;p<D;p++){if((h=x[p])&&g.key==h.key&&g.type===h.type){x[p]=void 0;break}h=null}F(e,g,h=h||c,o,i,a,u,s,l),m=g.__e,(p=g.ref)&&h.ref!=p&&(E||(E=[]),h.ref&&E.push(h.ref,null,g),E.push(p,g.__c||m,g)),null!=m?(null==w&&(w=m),"function"==typeof g.type&&g.__k===h.__k?g.__d=s=C(g,s,e):s=S(e,g,h,x,m,s),"function"==typeof n.type&&(n.__d=s)):s&&h.__e==s&&s.parentNode!=e&&(s=b(h))}for(n.__e=w,d=D;d--;)null!=x[d]&&("function"==typeof n.type&&null!=x[d].__e&&x[d].__e==n.__d&&(n.__d=b(r,d+1)),P(x[d],x[d]));if(E)for(d=0;d<E.length;d++)_(E[d],E[++d],E[++d])}function C(e,t,n){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,t="function"==typeof r.type?C(r,t,n):S(n,r,r,o,r.__e,t));return t}function S(e,t,n,r,o,i){var a,u,s;if(void 0!==t.__d)a=t.__d,t.__d=void 0;else if(null==n||o!=i||null==o.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(o),a=null;else{for(u=i,s=0;(u=u.nextSibling)&&s<r.length;s+=2)if(u==o)break e;e.insertBefore(o,i),a=i}return void 0!==a?a:o.nextSibling}function A(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||d.test(t)?n:n+"px"}function O(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||A(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||A(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?B:k,i):e.removeEventListener(t,i?B:k,i);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(a){}"function"==typeof n||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function k(e){this.l[e.type+!1](r.event?r.event(e):e)}function B(e){this.l[e.type+!0](r.event?r.event(e):e)}function F(e,t,o,i,a,u,s,l,f){var d,g,v,w,E,x,C,S,A,k,B,F=t.type;if(void 0!==t.constructor)return null;null!=o.__h&&(f=o.__h,l=t.__e=o.__e,t.__h=null,u=[l]),(d=r.__b)&&d(t);try{e:if("function"==typeof F){if(S=t.props,A=(d=F.contextType)&&i[d.__c],k=d?A?A.props.value:d.__:i,o.__c?C=(g=t.__c=o.__c).__=g.__E:("prototype"in F&&F.prototype.render?t.__c=g=new F(S,k):(t.__c=g=new m(S,k),g.constructor=F,g.render=j),A&&A.sub(g),g.props=S,g.state||(g.state={}),g.context=k,g.__n=i,v=g.__d=!0,g.__h=[]),null==g.__s&&(g.__s=g.state),null!=F.getDerivedStateFromProps&&(g.__s==g.state&&(g.__s=p({},g.__s)),p(g.__s,F.getDerivedStateFromProps(S,g.__s))),w=g.props,E=g.state,v)null==F.getDerivedStateFromProps&&null!=g.componentWillMount&&g.componentWillMount(),null!=g.componentDidMount&&g.__h.push(g.componentDidMount);else{if(null==F.getDerivedStateFromProps&&S!==w&&null!=g.componentWillReceiveProps&&g.componentWillReceiveProps(S,k),!g.__e&&null!=g.shouldComponentUpdate&&!1===g.shouldComponentUpdate(S,g.__s,k)||t.__v===o.__v){g.props=S,g.state=g.__s,t.__v!==o.__v&&(g.__d=!1),g.__v=t,t.__e=o.__e,t.__k=o.__k,t.__k.forEach((function(e){e&&(e.__=t)})),g.__h.length&&s.push(g);break e}null!=g.componentWillUpdate&&g.componentWillUpdate(S,g.__s,k),null!=g.componentDidUpdate&&g.__h.push((function(){g.componentDidUpdate(w,E,x)}))}g.context=k,g.props=S,g.state=g.__s,(d=r.__r)&&d(t),g.__d=!1,g.__v=t,g.__P=e,d=g.render(g.props,g.state,g.context),g.state=g.__s,null!=g.getChildContext&&(i=p(p({},i),g.getChildContext())),v||null==g.getSnapshotBeforeUpdate||(x=g.getSnapshotBeforeUpdate(w,E)),B=null!=d&&d.type===y&&null==d.key?d.props.children:d,D(e,Array.isArray(B)?B:[B],t,o,i,a,u,s,l,f),g.base=t.__e,t.__h=null,g.__h.length&&s.push(g),C&&(g.__E=g.__=null),g.__e=!1}else null==u&&t.__v===o.__v?(t.__k=o.__k,t.__e=o.__e):t.__e=function(e,t,r,o,i,a,u,s){var l,f,d,p=r.props,g=t.props,v=t.type,y=0;if("svg"===v&&(i=!0),null!=a)for(;y<a.length;y++)if((l=a[y])&&"setAttribute"in l==!!v&&(v?l.localName===v:3===l.nodeType)){e=l,a[y]=null;break}if(null==e){if(null===v)return document.createTextNode(g);e=i?document.createElementNS("http://www.w3.org/2000/svg",v):document.createElement(v,g.is&&g),a=null,s=!1}if(null===v)p===g||s&&e.data===g||(e.data=g);else{if(a=a&&n.call(e.childNodes),f=(p=r.props||c).dangerouslySetInnerHTML,d=g.dangerouslySetInnerHTML,!s){if(null!=a)for(p={},y=0;y<e.attributes.length;y++)p[e.attributes[y].name]=e.attributes[y].value;(d||f)&&(d&&(f&&d.__html==f.__html||d.__html===e.innerHTML)||(e.innerHTML=d&&d.__html||""))}if(function(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||O(e,i,null,n[i],r);for(i in t)o&&"function"!=typeof t[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===t[i]||O(e,i,t[i],n[i],r)}(e,g,p,i,s),d)t.__k=[];else if(y=t.props.children,D(e,Array.isArray(y)?y:[y],t,r,o,i&&"foreignObject"!==v,a,u,a?a[0]:r.__k&&b(r,0),s),null!=a)for(y=a.length;y--;)null!=a[y]&&h(a[y]);s||("value"in g&&void 0!==(y=g.value)&&(y!==p.value||y!==e.value||"progress"===v&&!y)&&O(e,"value",y,p.value,!1),"checked"in g&&void 0!==(y=g.checked)&&y!==e.checked&&O(e,"checked",y,p.checked,!1))}return e}(o.__e,t,o,i,a,u,s,f);(d=r.diffed)&&d(t)}catch(T){t.__v=null,(f||null!=u)&&(t.__e=l,t.__h=!!f,u[u.indexOf(l)]=null),r.__e(T,t,o)}}function T(e,t){r.__c&&r.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(n){r.__e(n,t.__v)}}))}function _(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(o){r.__e(o,n)}}function P(e,t,n){var o,i;if(r.unmount&&r.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||_(o,null,t)),null!=(o=e.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(a){r.__e(a,t)}o.base=o.__P=null}if(o=e.__k)for(i=0;i<o.length;i++)o[i]&&P(o[i],t,"function"!=typeof e.type);n||null==e.__e||h(e.__e),e.__e=e.__d=void 0}function j(e,t,n){return this.constructor(e,n)}function I(e,t,o){var i,a,u;r.__&&r.__(e,t),a=(i="function"==typeof o)?null:o&&o.__k||t.__k,u=[],F(t,e=(!i&&o||t).__k=g(y,null,[e]),a||c,c,void 0!==t.ownerSVGElement,!i&&o?[o]:a?null:t.firstChild?n.call(t.childNodes):null,u,!i&&o?o:a?a.__e:t.firstChild,i),T(u,e)}n=f.slice,r={__e:function(e,t){for(var n,r,o;t=t.__;)if((n=t.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(e)),o=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e),o=n.__d),o)return n.__E=n}catch(i){e=i}throw e}},o=0,i=function(e){return null!=e&&void 0===e.constructor},m.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=p({},this.state),"function"==typeof e&&(e=e(p({},n),this.props)),e&&p(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),E(this))},m.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),E(this))},m.prototype.render=y,a=[],u="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,x.__r=0,l=0,t.Component=m,t.Fragment=y,t.cloneElement=function(e,t,r){var o,i,a,u=p({},e.props);for(a in t)"key"==a?o=t[a]:"ref"==a?i=t[a]:u[a]=t[a];return arguments.length>2&&(u.children=arguments.length>3?n.call(arguments,2):r),v(e.type,u,o||e.key,i||e.ref,null)},t.createContext=function(e,t){var n={__c:t="__cC"+l++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(E)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n},t.createElement=g,t.createRef=function(){return{current:null}},t.h=g,t.hydrate=function e(t,n){I(t,n,e)},t.isValidElement=i,t.options=r,t.render=I,t.toChildArray=function e(t,n){return n=n||[],null==t||"boolean"==typeof t||(Array.isArray(t)?t.some((function(t){e(t,n)})):n.push(t)),n}})),Nb=class{constructor(e,t){void 0===t&&(t={}),this.uppy=e,this.opts=t}getPluginState(){const{plugins:e}=this.uppy.getState();return e[this.id]||{}}setPluginState(e){const{plugins:t}=this.uppy.getState();this.uppy.setState({plugins:{...t,[this.id]:{...t[this.id],...e}}})}setOptions(e){this.opts={...this.opts,...e},this.setPluginState(),this.i18nInit()}i18nInit(){const e=new Em([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),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 Lb(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Rb=0;const{render:Mb}=Ib;var zb=function(e){return"__private_"+Rb+++"_"+e}("updateUI");class $b extends Nb{constructor(){super(...arguments),Object.defineProperty(this,zb,{writable:!0,value:void 0})}mount(e,t){const n=t.id,r=function(e,t){return void 0===t&&(t=document),"string"==typeof e?t.querySelector(e):(null==(n=e)?void 0:n.nodeType)===Node.ELEMENT_NODE?e:null;var n}(e);if(r){this.isTargetDOMEl=!0;const t=document.createDocumentFragment();return Lb(this,zb)[zb]=function(e){let t=null,n=null;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=o,t||(t=Promise.resolve().then((()=>(t=null,e(...n))))),t}}((e=>{this.uppy.getPlugin(this.id)&&(Mb(this.render(e),t),this.afterUpdate())})),this.uppy.log(`Installing ${n} to a DOM element '${e}'`),this.opts.replaceTargetContent&&(r.innerHTML=""),Mb(this.render(this.uppy.getState()),t),this.el=t.firstElementChild,r.appendChild(t),this.onMount(),this.el}let o;if("object"==typeof e&&e instanceof $b)o=e;else if("function"==typeof e){const t=e;this.uppy.iteratePlugins((e=>{if(e instanceof t)return o=e,!1}))}if(o)return this.uppy.log(`Installing ${n} to ${o.id}`),this.parent=o,this.el=o.addTarget(t),this.onMount(),this.el;this.uppy.log(`Not installing ${n}`);let i=`Invalid target option given to ${n}.`;throw i+="function"==typeof e?" 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 t,n;null!=this.el&&(null==(t=(n=Lb(this,zb))[zb])||t.call(n,e))}unmount(){var e;this.isTargetDOMEl&&(null==(e=this.el)||e.remove()),this.onUnmount()}onMount(){}onUnmount(){}}var Hb=$b;const{debugLogger:Vb}=$m;var Ub=jb,Wb=jb,Gb=Hb,qb=Nb,Kb=Vb;Ub.Uppy=Wb,Ub.UIPlugin=Gb,Ub.BasePlugin=qb,Ub.debugLogger=Kb;class Xb extends Error{constructor(e,t){void 0===t&&(t=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=t}}var Yb=Xb,Zb=function(){return fetch(...arguments).catch((e=>{throw"AbortError"===e.name?e:new Yb(e)}))};class Jb extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}var Qb,ew,tw,nw,rw,ow=Jb;function iw(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var aw=0;function uw(e){return"__private_"+aw+++"_"+e}async function sw(e){if(401===e.status)throw new ow;const t=e.json();if(e.status<200||e.status>300){let n=`Failed request with status: ${e.status}. ${e.statusText}`;try{const e=await t;n=e.message?`${n} message: ${e.message}`:n,n=e.requestId?`${n} request-Id: ${e.requestId}`:n}finally{throw new Error(n)}}return t}var lw=(ew=uw("getPostResponseFunc"),tw=uw("getUrl"),nw=uw("errorHandler"),rw=Qb=class e{constructor(e,t){Object.defineProperty(this,nw,{value:fw}),Object.defineProperty(this,tw,{value:cw}),Object.defineProperty(this,ew,{writable:!0,value:e=>t=>e?t:this.onReceiveResponse(t)}),this.uppy=e,this.opts=t,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(),t=this.opts.companionUrl;return(e&&e[t]?e[t]:t).replace(/\/$/,"")}headers(){const t=this.opts.companionHeaders||{};return Promise.resolve({...e.defaultHeaders,...t})}onReceiveResponse(e){const t=this.uppy.getState().companion||{},n=this.opts.companionUrl,{headers:r}=e;return r.has("i-am")&&r.get("i-am")!==t[n]&&this.uppy.setState({companion:{...t,[n]:r.get("i-am")}}),e}preflight(e){return this.preflightDone?Promise.resolve(this.allowedHeaders.slice()):fetch(iw(this,tw)[tw](e),{method:"OPTIONS"}).then((e=>(e.headers.has("access-control-allow-headers")&&(this.allowedHeaders=e.headers.get("access-control-allow-headers").split(",").map((e=>e.trim().toLowerCase()))),this.preflightDone=!0,this.allowedHeaders.slice()))).catch((e=>(this.uppy.log(`[CompanionClient] unable to make preflight request ${e}`,"warning"),this.preflightDone=!0,this.allowedHeaders.slice())))}preflightAndHeaders(e){return Promise.all([this.preflight(e),this.headers()]).then((e=>{let[t,n]=e;return Object.keys(n).forEach((e=>{t.includes(e.toLowerCase())||(this.uppy.log(`[CompanionClient] excluding disallowed header ${e}`),delete n[e])})),n}))}get(e,t){return this.preflightAndHeaders(e).then((t=>Zb(iw(this,tw)[tw](e),{method:"get",headers:t,credentials:this.opts.companionCookiesRule||"same-origin"}))).then(iw(this,ew)[ew](t)).then(sw).catch(iw(this,nw)[nw]("get",e))}post(e,t,n){const r="post";return this.preflightAndHeaders(e).then((n=>Zb(iw(this,tw)[tw](e),{method:r,headers:n,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(t)}))).then(iw(this,ew)[ew](n)).then(sw).catch(iw(this,nw)[nw](r,e))}delete(e,t,n){const r="delete";return this.preflightAndHeaders(e).then((n=>Zb(`${this.hostname}/${e}`,{method:r,headers:n,credentials:this.opts.companionCookiesRule||"same-origin",body:t?JSON.stringify(t):null}))).then(iw(this,ew)[ew](n)).then(sw).catch(iw(this,nw)[nw](r,e))}},Qb.VERSION="2.0.4",Qb.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":`@uppy/companion-client=${Qb.VERSION}`},rw);function cw(e){return/^(https?:|)\/\//.test(e)?e:`${this.hostname}/${e}`}function fw(e,t){return n=>{var r;if(null==(r=n)||!r.isAuthError){const r=new Error(`Could not ${e} ${iw(this,tw)[tw](t)}`);r.cause=n,n=r}return Promise.reject(n)}}var dw,pw,hw,gw,vw,yw={setItem:(e,t)=>new Promise((n=>{localStorage.setItem(e,t),n()})),getItem:e=>Promise.resolve(localStorage.getItem(e)),removeItem:e=>new Promise((t=>{localStorage.removeItem(e),t()}))};let mw,bw;function ww(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Ew=0;function xw(e){return"__private_"+Ew+++"_"+e}var Dw,Cw,Sw=(dw=xw("queued"),pw=xw("emitter"),hw=xw("isOpen"),gw=xw("socket"),vw=xw("handleMessage"),mw=Symbol.for("uppy test: getSocket"),bw=Symbol.for("uppy test: getQueued"),class{constructor(e){Object.defineProperty(this,dw,{writable:!0,value:[]}),Object.defineProperty(this,pw,{writable:!0,value:Dm()}),Object.defineProperty(this,hw,{writable:!0,value:!1}),Object.defineProperty(this,gw,{writable:!0,value:void 0}),Object.defineProperty(this,vw,{writable:!0,value:e=>{try{const t=JSON.parse(e.data);this.emit(t.action,t.payload)}catch(t){console.log(t)}}}),this.opts=e,e&&!1===e.autoOpen||this.open()}get isOpen(){return ww(this,hw)[hw]}[mw](){return ww(this,gw)[gw]}[bw](){return ww(this,dw)[dw]}open(){ww(this,gw)[gw]=new WebSocket(this.opts.target),ww(this,gw)[gw].onopen=()=>{for(ww(this,hw)[hw]=!0;ww(this,dw)[dw].length>0&&ww(this,hw)[hw];){const e=ww(this,dw)[dw].shift();this.send(e.action,e.payload)}},ww(this,gw)[gw].onclose=()=>{ww(this,hw)[hw]=!1},ww(this,gw)[gw].onmessage=ww(this,vw)[vw]}close(){var e;null==(e=ww(this,gw)[gw])||e.close()}send(e,t){ww(this,hw)[hw]?ww(this,gw)[gw].send(JSON.stringify({action:e,payload:t})):ww(this,dw)[dw].push({action:e,payload:t})}on(e,t){ww(this,pw)[pw].on(e,t)}emit(e,t){ww(this,pw)[pw].emit(e,t)}once(e,t){ww(this,pw)[pw].once(e,t)}}),Aw={RequestClient:lw,Provider:class extends lw{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||(e=>this.id.split("-").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(" "))(),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((e=>{let[t,n]=e;const r={};return n&&(r["uppy-auth-token"]=n),this.companionKeysParams&&(r["uppy-credentials-params"]=btoa(JSON.stringify({params:this.companionKeysParams}))),{...t,...r}}))}onReceiveResponse(e){e=super.onReceiveResponse(e);const t=this.uppy.getPlugin(this.pluginId),n=t.getPluginState().authenticated?401!==e.status:e.status<400;return t.setPluginState({authenticated:n}),e}setAuthToken(e){return this.uppy.getPlugin(this.pluginId).storage.setItem(this.tokenKey,e)}getAuthToken(){return this.uppy.getPlugin(this.pluginId).storage.getItem(this.tokenKey)}authUrl(e){return void 0===e&&(e={}),this.preAuthToken&&(e.uppyPreAuthToken=this.preAuthToken),`${this.hostname}/${this.id}/connect?${new URLSearchParams(e)}`}fileUrl(e){return`${this.hostname}/${this.id}/get/${e}`}fetchPreAuthToken(){return this.companionKeysParams?this.post(`${this.id}/preauth/`,{params:this.companionKeysParams}).then((e=>{this.preAuthToken=e.token})).catch((e=>{this.uppy.log(`[CompanionClient] unable to fetch preAuthToken ${e}`,"warning")})):Promise.resolve()}list(e){return this.get(`${this.id}/list/${e||""}`)}logout(){return this.get(`${this.id}/logout`).then((e=>Promise.all([e,this.uppy.getPlugin(this.pluginId).storage.removeItem(this.tokenKey)]))).then((e=>{let[t]=e;return t}))}static initPlugin(e,t,n){if(e.type="acquirer",e.files=[],n&&(e.opts={...n,...t}),t.serverUrl||t.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(t.companionAllowedHosts){const n=t.companionAllowedHosts;if(!("string"==typeof n||Array.isArray(n)||n instanceof RegExp))throw new TypeError(`${e.id}: the option "companionAllowedHosts" must be one of string, Array, RegExp`);e.opts.companionAllowedHosts=n}else/^(?!https?:\/\/).*$/i.test(t.companionUrl)?e.opts.companionAllowedHosts=`https://${t.companionUrl.replace(/^\/\//,"")}`:e.opts.companionAllowedHosts=new URL(t.companionUrl).origin;e.storage=e.opts.storage||yw}},SearchProvider:class extends lw{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||(e=>this.id.split("-").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(" "))(),this.pluginId=this.opts.pluginId}fileUrl(e){return`${this.hostname}/search/${this.id}/get/${e}`}search(e,t){return t=t?`&${t}`:"",this.get(`search/${this.id}/list?q=${encodeURIComponent(e)}${t}`)}},Socket:Sw},Ow=Cv((function(e,t,n){const{progress:r,bytesUploaded:o,bytesTotal:i}=t;r&&(e.uppy.log(`Upload progress: ${r}`),e.uppy.emit("upload-progress",n,{uploader:e,bytesUploaded:o,bytesTotal:i}))}),300,{leading:!0,trailing:!0});function kw(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Bw=0;function Fw(e){return"__private_"+Bw+++"_"+e}var Tw=(Dw=Fw("emitter"),Cw=Fw("events"),class{constructor(e){Object.defineProperty(this,Dw,{writable:!0,value:void 0}),Object.defineProperty(this,Cw,{writable:!0,value:[]}),kw(this,Dw)[Dw]=e}on(e,t){return kw(this,Cw)[Cw].push([e,t]),kw(this,Dw)[Dw].on(e,t)}remove(){for(const[e,t]of kw(this,Cw)[Cw].splice(0))kw(this,Dw)[Dw].off(e,t)}});function _w(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Pw=0;function jw(e){return"__private_"+Pw+++"_"+e}var Iw=jw("aliveTimer"),Nw=jw("isDone"),Lw=jw("onTimedOut"),Rw=jw("timeout"),Mw=class{constructor(e,t){Object.defineProperty(this,Iw,{writable:!0,value:void 0}),Object.defineProperty(this,Nw,{writable:!0,value:!1}),Object.defineProperty(this,Lw,{writable:!0,value:void 0}),Object.defineProperty(this,Rw,{writable:!0,value:void 0}),_w(this,Rw)[Rw]=e,_w(this,Lw)[Lw]=t}progress(){_w(this,Nw)[Nw]||_w(this,Rw)[Rw]>0&&(clearTimeout(_w(this,Iw)[Iw]),_w(this,Iw)[Iw]=setTimeout(_w(this,Lw)[Lw],_w(this,Rw)[Rw]))}done(){_w(this,Nw)[Nw]||(clearTimeout(_w(this,Iw)[Iw]),_w(this,Iw)[Iw]=null,_w(this,Nw)[Nw]=!0)}};function zw(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var $w=0;function Hw(e){return"__private_"+$w+++"_"+e}function Vw(){return new Error("Cancelled")}var Uw=Hw("activeRequests"),Ww=Hw("queuedHandlers"),Gw=Hw("call"),qw=Hw("queueNext"),Kw=Hw("next"),Xw=Hw("queue"),Yw=Hw("dequeue");function Zw(e){zw(this,Uw)[Uw]+=1;let t,n=!1;try{t=e()}catch(r){throw zw(this,Uw)[Uw]-=1,r}return{abort:()=>{n||(n=!0,zw(this,Uw)[Uw]-=1,t(),zw(this,qw)[qw]())},done:()=>{n||(n=!0,zw(this,Uw)[Uw]-=1,zw(this,qw)[qw]())}}}function Jw(){queueMicrotask((()=>zw(this,Kw)[Kw]()))}function Qw(){if(zw(this,Uw)[Uw]>=this.limit)return;if(0===zw(this,Ww)[Ww].length)return;const e=zw(this,Ww)[Ww].shift(),t=zw(this,Gw)[Gw](e.fn);e.abort=t.abort,e.done=t.done}function eE(e,t){void 0===t&&(t={});const n={fn:e,priority:t.priority||0,abort:()=>{zw(this,Yw)[Yw](n)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},r=zw(this,Ww)[Ww].findIndex((e=>n.priority>e.priority));return-1===r?zw(this,Ww)[Ww].push(n):zw(this,Ww)[Ww].splice(r,0,n),n}function tE(e){const t=zw(this,Ww)[Ww].indexOf(e);-1!==t&&zw(this,Ww)[Ww].splice(t,1)}var nE,rE,oE={RateLimitedQueue:class{constructor(e){Object.defineProperty(this,Yw,{value:tE}),Object.defineProperty(this,Xw,{value:eE}),Object.defineProperty(this,Kw,{value:Qw}),Object.defineProperty(this,qw,{value:Jw}),Object.defineProperty(this,Gw,{value:Zw}),Object.defineProperty(this,Uw,{writable:!0,value:0}),Object.defineProperty(this,Ww,{writable:!0,value:[]}),this.limit="number"!=typeof e||0===e?1/0:e}run(e,t){return zw(this,Uw)[Uw]<this.limit?zw(this,Gw)[Gw](e):zw(this,Xw)[Xw](e,t)}wrapPromiseFunction(e,t){var n=this;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];let a;const u=new Promise(((r,i)=>{a=n.run((()=>{let t,n;try{n=Promise.resolve(e(...o))}catch(u){n=Promise.reject(u)}return n.then((e=>{t?i(t):(a.done(),r(e))}),(e=>{t?i(t):(a.done(),i(e))})),()=>{t=Vw()}}),t)}));return u.abort=()=>{a.abort()},u}}},internalRateLimitedQueue:Symbol("__queue")},iE=function(e){return!!e&&(0!==e.readyState&&4!==e.readyState||0===e.status)},aE={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}};const{nanoid:uE}=Vm,{Provider:sE,RequestClient:lE,Socket:cE}=Aw,{RateLimitedQueue:fE,internalRateLimitedQueue:dE}=oE;function pE(e,t){let n=t;return n||(n=new Error("Upload error")),"string"==typeof n&&(n=new Error(n)),n instanceof Error||(n=Object.assign(new Error("Upload error"),{data:n})),iE(e)?(n=new Yb(n,e),n):(n.request=e,n)}function hE(e){return e.data.slice(0,e.data.size,e.meta.type)}var gE=(rE=nE=class extends Nb{constructor(e,t){super(e,t),this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=aE;const n={formData:!0,fieldName:t.bundle?"files[]":"file",method:"post",metaFields:null,responseUrlFieldName:"url",bundle:!1,headers:{},timeout:3e4,limit:5,withCredentials:!1,responseType:"",getResponseData(t){let n={};try{n=JSON.parse(t)}catch(r){e.log(r)}return n},getResponseError(e,t){let n=new Error("Upload error");return iE(t)&&(n=new Yb(n,t)),n},validateStatus:e=>e>=200&&e<300};if(this.opts={...n,...t},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),dE in this.opts?this.requests=this.opts[dE]:this.requests=new fE(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(e){const t=this.uppy.getState().xhrUpload,{headers:n}=this.opts,r={...this.opts,...t||{},...e.xhrUpload||{},headers:{}};return"function"==typeof n?r.headers=n(e):Object.assign(r.headers,this.opts.headers),t&&Object.assign(r.headers,t.headers),e.xhrUpload&&Object.assign(r.headers,e.xhrUpload.headers),r}addMetadata(e,t,n){(Array.isArray(n.metaFields)?n.metaFields:Object.keys(t)).forEach((n=>{e.append(n,t[n])}))}createFormDataUpload(e,t){const n=new FormData;this.addMetadata(n,e.meta,t);const r=hE(e);return e.name?n.append(t.fieldName,r,e.meta.name):n.append(t.fieldName,r),n}createBundledUpload(e,t){const n=new FormData,{meta:r}=this.uppy.getState();return this.addMetadata(n,r,t),e.forEach((e=>{const t=this.getOptions(e),r=hE(e);e.name?n.append(t.fieldName,r,e.name):n.append(t.fieldName,r)})),n}upload(e,t,n){const r=this.getOptions(e);return this.uppy.log(`uploading ${t} of ${n}`),new Promise(((t,n)=>{this.uppy.emit("upload-started",e);const o=r.formData?this.createFormDataUpload(e,r):e.data,i=new XMLHttpRequest;this.uploaderEvents[e.id]=new Tw(this.uppy);const a=new Mw(r.timeout,(()=>{i.abort(),s.done();const t=new Error(this.i18n("timedOut",{seconds:Math.ceil(r.timeout/1e3)}));this.uppy.emit("upload-error",e,t),n(t)})),u=uE();i.upload.addEventListener("loadstart",(()=>{this.uppy.log(`[XHRUpload] ${u} started`)})),i.upload.addEventListener("progress",(t=>{this.uppy.log(`[XHRUpload] ${u} progress: ${t.loaded} / ${t.total}`),a.progress(),t.lengthComputable&&this.uppy.emit("upload-progress",e,{uploader:this,bytesUploaded:t.loaded,bytesTotal:t.total})})),i.addEventListener("load",(o=>{if(this.uppy.log(`[XHRUpload] ${u} finished`),a.done(),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r.validateStatus(o.target.status,i.responseText,i)){const n=r.getResponseData(i.responseText,i),a=n[r.responseUrlFieldName],u={status:o.target.status,body:n,uploadURL:a};return this.uppy.emit("upload-success",e,u),a&&this.uppy.log(`Download ${e.name} from ${a}`),t(e)}const l=r.getResponseData(i.responseText,i),c=pE(i,r.getResponseError(i.responseText,i)),f={status:o.target.status,body:l};return this.uppy.emit("upload-error",e,c,f),n(c)})),i.addEventListener("error",(()=>{this.uppy.log(`[XHRUpload] ${u} errored`),a.done(),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null);const t=pE(i,r.getResponseError(i.responseText,i));return this.uppy.emit("upload-error",e,t),n(t)})),i.open(r.method.toUpperCase(),r.endpoint,!0),i.withCredentials=r.withCredentials,""!==r.responseType&&(i.responseType=r.responseType);const s=this.requests.run((()=>{this.uppy.emit("upload-started",e);const t=this.getOptions(e);return Object.keys(t.headers).forEach((e=>{i.setRequestHeader(e,t.headers[e])})),i.send(o),()=>{a.done(),i.abort()}}));this.onFileRemove(e.id,(()=>{s.abort(),n(new Error("File removed"))})),this.onCancelAll(e.id,(()=>{s.abort(),n(new Error("Upload cancelled"))}))}))}uploadRemote(e){const t=this.getOptions(e);return new Promise(((n,r)=>{this.uppy.emit("upload-started",e);const o={};(Array.isArray(t.metaFields)?t.metaFields:Object.keys(e.meta)).forEach((t=>{o[t]=e.meta[t]})),new(e.remote.providerOptions.provider?sE:lE)(this.uppy,e.remote.providerOptions).post(e.remote.url,{...e.remote.body,endpoint:t.endpoint,size:e.data.size,fieldname:t.fieldName,metadata:o,httpMethod:t.method,useFormData:t.formData,headers:t.headers}).then((o=>{const{token:i}=o,a=function(e){const t=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(e)[1];return`${/^http:\/\//i.test(e)?"ws":"wss"}://${t}`}(e.remote.companionUrl),u=new cE({target:`${a}/api/${i}`,autoOpen:!1});this.uploaderEvents[e.id]=new Tw(this.uppy),this.onFileRemove(e.id,(()=>{u.send("cancel",{}),s.abort(),n(`upload ${e.id} was removed`)})),this.onCancelAll(e.id,(()=>{u.send("cancel",{}),s.abort(),n(`upload ${e.id} was canceled`)})),this.onRetry(e.id,(()=>{u.send("pause",{}),u.send("resume",{})})),this.onRetryAll(e.id,(()=>{u.send("pause",{}),u.send("resume",{})})),u.on("progress",(t=>Ow(this,t,e))),u.on("success",(r=>{const o=t.getResponseData(r.response.responseText,r.response),i=o[t.responseUrlFieldName],a={status:r.response.status,body:o,uploadURL:i};return this.uppy.emit("upload-success",e,a),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),n()})),u.on("error",(n=>{const o=n.response,i=o?t.getResponseError(o.responseText,o):Object.assign(new Error(n.error.message),{cause:n.error});this.uppy.emit("upload-error",e,i),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r(i)}));const s=this.requests.run((()=>(u.open(),e.isPaused&&u.send("pause",{}),()=>u.close())))})).catch((t=>{this.uppy.emit("upload-error",e,t),r(t)}))}))}uploadBundle(e){return new Promise(((t,n)=>{const{endpoint:r}=this.opts,{method:o}=this.opts,i=this.uppy.getState().xhrUpload,a=this.createBundledUpload(e,{...this.opts,...i||{}}),u=new XMLHttpRequest,s=new Mw(this.opts.timeout,(()=>{u.abort();const e=new Error(this.i18n("timedOut",{seconds:Math.ceil(this.opts.timeout/1e3)}));l(e),n(e)})),l=t=>{e.forEach((e=>{this.uppy.emit("upload-error",e,t)}))};u.upload.addEventListener("loadstart",(()=>{this.uppy.log("[XHRUpload] started uploading bundle"),s.progress()})),u.upload.addEventListener("progress",(t=>{s.progress(),t.lengthComputable&&e.forEach((e=>{this.uppy.emit("upload-progress",e,{uploader:this,bytesUploaded:t.loaded/t.total*e.size,bytesTotal:e.size})}))})),u.addEventListener("load",(r=>{if(s.done(),this.opts.validateStatus(r.target.status,u.responseText,u)){const n=this.opts.getResponseData(u.responseText,u),o={status:r.target.status,body:n};return e.forEach((e=>{this.uppy.emit("upload-success",e,o)})),t()}const o=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return o.request=u,l(o),n(o)})),u.addEventListener("error",(()=>{s.done();const e=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return l(e),n(e)})),this.uppy.on("cancel-all",(()=>{s.done(),u.abort()})),u.open(o.toUpperCase(),r,!0),u.withCredentials=this.opts.withCredentials,""!==this.opts.responseType&&(u.responseType=this.opts.responseType),Object.keys(this.opts.headers).forEach((e=>{u.setRequestHeader(e,this.opts.headers[e])})),u.send(a),e.forEach((e=>{this.uppy.emit("upload-started",e)}))}))}uploadFiles(e){const t=e.map(((t,n)=>{const r=parseInt(n,10)+1,o=e.length;return t.error?Promise.reject(new Error(t.error)):t.isRemote?this.uploadRemote(t,r,o):this.upload(t,r,o)}));return function(e){const t=[],n=[];function r(e){t.push(e)}function o(e){n.push(e)}return Promise.all(e.map((e=>e.then(r,o)))).then((()=>({successful:t,failed:n})))}(t)}onFileRemove(e,t){this.uploaderEvents[e].on("file-removed",(n=>{e===n.id&&t(n.id)}))}onRetry(e,t){this.uploaderEvents[e].on("upload-retry",(n=>{e===n&&t()}))}onRetryAll(e,t){this.uploaderEvents[e].on("retry-all",(()=>{this.uppy.getFile(e)&&t()}))}onCancelAll(e,t){this.uploaderEvents[e].on("cancel-all",(()=>{this.uppy.getFile(e)&&t()}))}handleUpload(e){if(0===e.length)return this.uppy.log("[XHRUpload] No files to upload!"),Promise.resolve();0!==this.opts.limit||this.opts[dE]||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 t=e.map((e=>this.uppy.getFile(e)));if(this.opts.bundle){if(t.some((e=>e.isRemote)))throw new Error("Can’t upload remote files when the `bundle: true` option is set");if("function"==typeof this.opts.headers)throw new TypeError("`headers` may not be a function when the `bundle: true` option is set");return this.uploadBundle(t)}return this.uploadFiles(t).then((()=>null))}install(){if(this.opts.bundle){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!1}})}this.uppy.addUploader(this.handleUpload)}uninstall(){if(this.opts.bundle){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!0}})}this.uppy.removeUploader(this.handleUpload)}},nE.VERSION="2.0.6",rE),vE="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function yE(e){var t={exports:{}};return e(t,t.exports),t.exports}var mE,bE,wE=function(e){return e&&e.Math==Math&&e},EE=wE("object"==typeof globalThis&&globalThis)||wE("object"==typeof window&&window)||wE("object"==typeof self&&self)||wE("object"==typeof vE&&vE)||function(){return this}()||Function("return this")(),xE=Object.defineProperty,DE=function(e,t){try{xE(EE,e,{value:t,configurable:!0,writable:!0})}catch(Qj){EE[e]=t}return t},CE=EE["__core-js_shared__"]||DE("__core-js_shared__",{}),SE=yE((function(e){(e.exports=function(e,t){return CE[e]||(CE[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),AE=Function.prototype,OE=AE.bind,kE=AE.call,BE=OE&&OE.bind(kE),FE=OE?function(e){return e&&BE(kE,e)}:function(e){return e&&function(){return kE.apply(e,arguments)}},TE=EE.TypeError,_E=function(e){if(null==e)throw TE("Can't call method on "+e);return e},PE=EE.Object,jE=function(e){return PE(_E(e))},IE=FE({}.hasOwnProperty),NE=Object.hasOwn||function(e,t){return IE(jE(e),t)},LE=0,RE=Math.random(),ME=FE(1..toString),zE=function(e){return"Symbol("+(void 0===e?"":e)+")_"+ME(++LE+RE,36)},$E=function(e){return"function"==typeof e},HE=function(e){return $E(e)?e:void 0},VE=function(e,t){return arguments.length<2?HE(EE[e]):EE[e]&&EE[e][t]},UE=VE("navigator","userAgent")||"",WE=EE.process,GE=EE.Deno,qE=WE&&WE.versions||GE&&GE.version,KE=qE&&qE.v8;KE&&(bE=(mE=KE.split("."))[0]>0&&mE[0]<4?1:+(mE[0]+mE[1])),!bE&&UE&&(!(mE=UE.match(/Edge\/(\d+)/))||mE[1]>=74)&&(mE=UE.match(/Chrome\/(\d+)/))&&(bE=+mE[1]);var XE=bE,YE=function(e){try{return!!e()}catch(t){return!0}},ZE=!!Object.getOwnPropertySymbols&&!YE((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&XE&&XE<41})),JE=ZE&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,QE=SE("wks"),ex=EE.Symbol,tx=ex&&ex.for,nx=JE?ex:ex&&ex.withoutSetter||zE,rx=function(e){if(!NE(QE,e)||!ZE&&"string"!=typeof QE[e]){var t="Symbol."+e;ZE&&NE(ex,e)?QE[e]=ex[e]:QE[e]=JE&&tx?tx(t):nx(t)}return QE[e]},ox={};ox[rx("toStringTag")]="z";var ix="[object z]"===String(ox),ax=!YE((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),ux=function(e){return"object"==typeof e?null!==e:$E(e)},sx=EE.document,lx=ux(sx)&&ux(sx.createElement),cx=function(e){return lx?sx.createElement(e):{}},fx=!ax&&!YE((function(){return 7!=Object.defineProperty(cx("div"),"a",{get:function(){return 7}}).a})),dx=EE.String,px=EE.TypeError,hx=function(e){if(ux(e))return e;throw px(dx(e)+" is not an object")},gx=Function.prototype.call,vx=gx.bind?gx.bind(gx):function(){return gx.apply(gx,arguments)},yx=FE({}.isPrototypeOf),mx=EE.Object,bx=JE?function(e){return"symbol"==typeof e}:function(e){var t=VE("Symbol");return $E(t)&&yx(t.prototype,mx(e))},wx=EE.String,Ex=function(e){try{return wx(e)}catch(t){return"Object"}},xx=EE.TypeError,Dx=function(e){if($E(e))return e;throw xx(Ex(e)+" is not a function")},Cx=function(e,t){var n=e[t];return null==n?void 0:Dx(n)},Sx=EE.TypeError,Ax=EE.TypeError,Ox=rx("toPrimitive"),kx=function(e){var t=function(e,t){if(!ux(e)||bx(e))return e;var n,r=Cx(e,Ox);if(r){if(void 0===t&&(t="default"),n=vx(r,e,t),!ux(n)||bx(n))return n;throw Ax("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&$E(n=e.toString)&&!ux(r=vx(n,e)))return r;if($E(n=e.valueOf)&&!ux(r=vx(n,e)))return r;if("string"!==t&&$E(n=e.toString)&&!ux(r=vx(n,e)))return r;throw Sx("Can't convert object to primitive value")}(e,t)}(e,"string");return bx(t)?t:t+""},Bx=EE.TypeError,Fx=Object.defineProperty,Tx={f:ax?Fx:function(e,t,n){if(hx(e),t=kx(t),hx(n),fx)try{return Fx(e,t,n)}catch(r){}if("get"in n||"set"in n)throw Bx("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},_x=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Px=ax?function(e,t,n){return Tx.f(e,t,_x(1,n))}:function(e,t,n){return e[t]=n,e},jx=FE(Function.toString);$E(CE.inspectSource)||(CE.inspectSource=function(e){return jx(e)});var Ix,Nx,Lx,Rx=CE.inspectSource,Mx=EE.WeakMap,zx=$E(Mx)&&/native code/.test(Rx(Mx)),$x=SE("keys"),Hx=function(e){return $x[e]||($x[e]=zE(e))},Vx={},Ux=EE.TypeError,Wx=EE.WeakMap;if(zx||CE.state){var Gx=CE.state||(CE.state=new Wx),qx=FE(Gx.get),Kx=FE(Gx.has),Xx=FE(Gx.set);Ix=function(e,t){if(Kx(Gx,e))throw new Ux("Object already initialized");return t.facade=e,Xx(Gx,e,t),t},Nx=function(e){return qx(Gx,e)||{}},Lx=function(e){return Kx(Gx,e)}}else{var Yx=Hx("state");Vx[Yx]=!0,Ix=function(e,t){if(NE(e,Yx))throw new Ux("Object already initialized");return t.facade=e,Px(e,Yx,t),t},Nx=function(e){return NE(e,Yx)?e[Yx]:{}},Lx=function(e){return NE(e,Yx)}}var Zx={set:Ix,get:Nx,has:Lx,enforce:function(e){return Lx(e)?Nx(e):Ix(e,{})},getterFor:function(e){return function(t){var n;if(!ux(t)||(n=Nx(t)).type!==e)throw Ux("Incompatible receiver, "+e+" required");return n}}},Jx=Function.prototype,Qx=ax&&Object.getOwnPropertyDescriptor,eD=NE(Jx,"name"),tD={EXISTS:eD,PROPER:eD&&"something"===function(){}.name,CONFIGURABLE:eD&&(!ax||ax&&Qx(Jx,"name").configurable)},nD=yE((function(e){var t=tD.CONFIGURABLE,n=Zx.get,r=Zx.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;$E(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!NE(i,"name")||t&&i.name!==f)&&Px(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==EE?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:Px(e,n,i)):l?e[n]=i:DE(n,i)})(Function.prototype,"toString",(function(){return $E(this)&&n(this).source||Rx(this)}))})),rD=FE({}.toString),oD=FE("".slice),iD=function(e){return oD(rD(e),8,-1)},aD=rx("toStringTag"),uD=EE.Object,sD="Arguments"==iD(function(){return arguments}()),lD=ix?iD:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=uD(e),aD))?n:sD?iD(t):"Object"==(r=iD(t))&&$E(t.callee)?"Arguments":r},cD=ix?{}.toString:function(){return"[object "+lD(this)+"]"};ix||nD(Object.prototype,"toString",cD,{unsafe:!0});var fD={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},dD=cx("span").classList,pD=dD&&dD.constructor&&dD.constructor.prototype,hD=pD===Object.prototype?void 0:pD,gD=FE(FE.bind),vD=function(e,t){return Dx(e),void 0===t?e:gD?gD(e,t):function(){return e.apply(t,arguments)}},yD=EE.Object,mD=FE("".split),bD=YE((function(){return!yD("z").propertyIsEnumerable(0)}))?function(e){return"String"==iD(e)?mD(e,""):yD(e)}:yD,wD=Math.ceil,ED=Math.floor,xD=function(e){var t=+e;return t!=t||0===t?0:(t>0?ED:wD)(t)},DD=Math.min,CD=function(e){return e>0?DD(xD(e),9007199254740991):0},SD=function(e){return CD(e.length)},AD=Array.isArray||function(e){return"Array"==iD(e)},OD=function(){},kD=[],BD=VE("Reflect","construct"),FD=/^\s*(?:class|function)\b/,TD=FE(FD.exec),_D=!FD.exec(OD),PD=function(e){if(!$E(e))return!1;try{return BD(OD,kD,e),!0}catch(t){return!1}},jD=!BD||YE((function(){var e;return PD(PD.call)||!PD(Object)||!PD((function(){e=!0}))||e}))?function(e){if(!$E(e))return!1;switch(lD(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return _D||!!TD(FD,Rx(e))}:PD,ID=rx("species"),ND=EE.Array,LD=function(e,t){return new(AD(n=e)&&(r=n.constructor,(jD(r)&&(r===ND||AD(r.prototype))||ux(r)&&null===(r=r[ID]))&&(r=void 0)),void 0===r?ND:r)(0===t?0:t);var n,r},RD=FE([].push),MD=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=jE(s),g=bD(h),v=vD(l,c),y=SD(g),m=0,b=f||LD,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:RD(w,d)}else switch(e){case 4:return!1;case 7:RD(w,d)}return i?-1:r||o?o:w}},zD={forEach:MD(0),map:MD(1),filter:MD(2),some:MD(3),every:MD(4),find:MD(5),findIndex:MD(6),filterReject:MD(7)},$D=function(e,t){var n=[][e];return!!n&&YE((function(){n.call(null,t||function(){throw 1},1)}))},HD=zD.forEach,VD=$D("forEach")?[].forEach:function(e){return HD(this,e,arguments.length>1?arguments[1]:void 0)},UD=function(e){if(e&&e.forEach!==VD)try{Px(e,"forEach",VD)}catch(t){e.forEach=VD}};for(var WD in fD)fD[WD]&&UD(EE[WD]&&EE[WD].prototype);UD(hD);var GD={}.propertyIsEnumerable,qD=Object.getOwnPropertyDescriptor,KD=qD&&!GD.call({1:2},1)?function(e){var t=qD(this,e);return!!t&&t.enumerable}:GD,XD={f:KD},YD=function(e){return bD(_E(e))},ZD=Object.getOwnPropertyDescriptor,JD={f:ax?ZD:function(e,t){if(e=YD(e),t=kx(t),fx)try{return ZD(e,t)}catch(n){}if(NE(e,t))return _x(!vx(XD.f,e,t),e[t])}},QD=Math.max,eC=Math.min,tC=function(e,t){var n=xD(e);return n<0?QD(n+t,0):eC(n,t)},nC=function(e){return function(t,n,r){var o,i=YD(t),a=SD(i),u=tC(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},rC={includes:nC(!0),indexOf:nC(!1)},oC=rC.indexOf,iC=FE([].push),aC=function(e,t){var n,r=YD(e),o=0,i=[];for(n in r)!NE(Vx,n)&&NE(r,n)&&iC(i,n);for(;t.length>o;)NE(r,n=t[o++])&&(~oC(i,n)||iC(i,n));return i},uC=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],sC=uC.concat("length","prototype"),lC={f:Object.getOwnPropertyNames||function(e){return aC(e,sC)}},cC={f:Object.getOwnPropertySymbols},fC=FE([].concat),dC=VE("Reflect","ownKeys")||function(e){var t=lC.f(hx(e)),n=cC.f;return n?fC(t,n(e)):t},pC=function(e,t){for(var n=dC(t),r=Tx.f,o=JD.f,i=0;i<n.length;i++){var a=n[i];NE(e,a)||r(e,a,o(t,a))}},hC=/#|\.prototype\./,gC=function(e,t){var n=yC[vC(e)];return n==bC||n!=mC&&($E(t)?YE(t):!!t)},vC=gC.normalize=function(e){return String(e).replace(hC,".").toLowerCase()},yC=gC.data={},mC=gC.NATIVE="N",bC=gC.POLYFILL="P",wC=gC,EC=JD.f,xC=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?EE:l?EE[u]||DE(u,{}):(EE[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=EC(n,r))&&a.value:n[r],!wC(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;pC(i,o)}(e.sham||o&&o.sham)&&Px(i,"sham",!0),nD(n,r,i,e)}},DC=Object.keys||function(e){return aC(e,uC)},CC=YE((function(){DC(1)}));
  19. /*!
  20. * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
  21. *
  22. * Copyright (c) 2014-2017, Jon Schlinkert.
  23. * Released under the MIT License.
  24. */function SC(e){return"[object Object]"===Object.prototype.toString.call(e)}xC({target:"Object",stat:!0,forced:CC},{keys:function(e){return DC(jE(e))}});var AC={isHistory(e){return!1!==SC(t=e)&&(void 0===(n=t.constructor)||!1!==SC(r=n.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(0===e.redos.length||bp.isOperationList(e.redos[0]))&&(0===e.undos.length||bp.isOperationList(e.undos[0]));var t,n,r}},OC=new WeakMap,kC=new WeakMap,BC={isHistoryEditor:e=>AC.isHistory(e.history)&&fp.isEditor(e),isMerging:e=>kC.get(e),isSaving:e=>OC.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=BC.isMerging(e);kC.set(e,!1),t(),kC.set(e,n)},withoutSaving(e,t){var n=BC.isSaving(e);OC.set(e,!1),t(),OC.set(e,n)}},FC=EE.String,TC=function(e){if("Symbol"===lD(e))throw TypeError("Cannot convert a Symbol value to a string");return FC(e)},_C=function(){var e=hx(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},PC=tD.PROPER,jC=RegExp.prototype,IC=jC.toString,NC=FE(_C),LC=YE((function(){return"/a/b"!=IC.call({source:"a",flags:"b"})})),RC=PC&&"toString"!=IC.name;(LC||RC)&&nD(RegExp.prototype,"toString",(function(){var e=hx(this),t=TC(e.source),n=e.flags;return"/"+t+"/"+TC(void 0===n&&yx(jC,e)&&!("flags"in jC)?NC(e):n)}),{unsafe:!0});var MC,zC=ax?Object.defineProperties:function(e,t){hx(e);for(var n,r=YD(t),o=DC(t),i=o.length,a=0;i>a;)Tx.f(e,n=o[a++],r[n]);return e},$C=VE("document","documentElement"),HC=Hx("IE_PROTO"),VC=function(){},UC=function(e){return"<script>"+e+"<\/script>"},WC=function(e){e.write(UC("")),e.close();var t=e.parentWindow.Object;return e=null,t},GC=function(){try{MC=new ActiveXObject("htmlfile")}catch(r){}var e,t;GC="undefined"!=typeof document?document.domain&&MC?WC(MC):((t=cx("iframe")).style.display="none",$C.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(UC("document.F=Object")),e.close(),e.F):WC(MC);for(var n=uC.length;n--;)delete GC.prototype[uC[n]];return GC()};Vx[HC]=!0;var qC=Object.create||function(e,t){var n;return null!==e?(VC.prototype=hx(e),n=new VC,VC.prototype=null,n[HC]=e):n=GC(),void 0===t?n:zC(n,t)},KC=rx("unscopables"),XC=Array.prototype;null==XC[KC]&&Tx.f(XC,KC,{configurable:!0,value:qC(null)});var YC=function(e){XC[KC][e]=!0},ZC=rC.includes;xC({target:"Array",proto:!0},{includes:function(e){return ZC(this,e,arguments.length>1?arguments[1]:void 0)}}),YC("includes");var JC=rx("match"),QC=function(e){var t;return ux(e)&&(void 0!==(t=e[JC])?!!t:"RegExp"==iD(e))},eS=EE.TypeError,tS=function(e){if(QC(e))throw eS("The method doesn't accept regular expressions");return e},nS=rx("match"),rS=function(e){var t=/./;try{"/./"[e](t)}catch(Qj){try{return t[nS]=!1,"/./"[e](t)}catch(n){}}return!1},oS=FE("".indexOf);xC({target:"String",proto:!0,forced:!rS("includes")},{includes:function(e){return!!~oS(TC(_E(this)),TC(tS(e)),arguments.length>1?arguments[1]:void 0)}});var iS=/"/g,aS=FE("".replace);xC({target:"String",proto:!0,forced:YE((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=TC(_E(this)),r="<a",(r+=' name="'+aS(TC(t),iS,"&quot;")+'"')+">"+n+"</a>";var t,n,r}});var uS=function(e,t,n){var r,o;hx(e);try{if(!(r=Cx(e,"return"))){if("throw"===t)throw n;return n}r=vx(r,e)}catch(i){o=!0,r=i}if("throw"===t)throw n;if(o)throw r;return hx(r),n},sS=function(e,t,n,r){try{return r?t(hx(n)[0],n[1]):t(n)}catch(o){uS(e,"throw",o)}},lS={},cS=rx("iterator"),fS=Array.prototype,dS=function(e){return void 0!==e&&(lS.Array===e||fS[cS]===e)},pS=function(e,t,n){var r=kx(t);r in e?Tx.f(e,r,_x(0,n)):e[r]=n},hS=rx("iterator"),gS=function(e){if(null!=e)return Cx(e,hS)||Cx(e,"@@iterator")||lS[lD(e)]},vS=EE.TypeError,yS=function(e,t){var n=arguments.length<2?gS(e):t;if(Dx(n))return hx(vx(n,e));throw vS(Ex(e)+" is not iterable")},mS=EE.Array,bS=rx("iterator"),wS=!1;try{var ES=0,xS={next:function(){return{done:!!ES++}},return:function(){wS=!0}};xS[bS]=function(){return this},Array.from(xS,(function(){throw 2}))}catch(Ume){}var DS=function(e,t){if(!t&&!wS)return!1;var n=!1;try{var r={};r[bS]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(o){}return n},CS=!DS((function(e){Array.from(e)}));xC({target:"Array",stat:!0,forced:CS},{from:function(e){var t=jE(e),n=jD(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=void 0!==o;i&&(o=vD(o,r>2?arguments[2]:void 0));var a,u,s,l,c,f,d=gS(t),p=0;if(!d||this==mS&&dS(d))for(a=SD(t),u=n?new this(a):mS(a);a>p;p++)f=i?o(t[p],p):t[p],pS(u,p,f);else for(c=(l=yS(t,d)).next,u=n?new this:[];!(s=vx(c,l)).done;p++)f=i?sS(l,o,[s.value,p],!0):s.value,pS(u,p,f);return u.length=p,u}});var SS,AS,OS,kS=FE("".charAt),BS=FE("".charCodeAt),FS=FE("".slice),TS=function(e){return function(t,n){var r,o,i=TC(_E(t)),a=xD(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=BS(i,a))<55296||r>56319||a+1===u||(o=BS(i,a+1))<56320||o>57343?e?kS(i,a):r:e?FS(i,a,a+2):o-56320+(r-55296<<10)+65536}},_S={codeAt:TS(!1),charAt:TS(!0)},PS=!YE((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),jS=Hx("IE_PROTO"),IS=EE.Object,NS=IS.prototype,LS=PS?IS.getPrototypeOf:function(e){var t=jE(e);if(NE(t,jS))return t[jS];var n=t.constructor;return $E(n)&&t instanceof n?n.prototype:t instanceof IS?NS:null},RS=rx("iterator"),MS=!1;[].keys&&("next"in(OS=[].keys())?(AS=LS(LS(OS)))!==Object.prototype&&(SS=AS):MS=!0);var zS=null==SS||YE((function(){var e={};return SS[RS].call(e)!==e}));zS&&(SS={}),$E(SS[RS])||nD(SS,RS,(function(){return this}));var $S={IteratorPrototype:SS,BUGGY_SAFARI_ITERATORS:MS},HS=Tx.f,VS=rx("toStringTag"),US=function(e,t,n){e&&!NE(e=n?e:e.prototype,VS)&&HS(e,VS,{configurable:!0,value:t})},WS=$S.IteratorPrototype,GS=function(){return this},qS=EE.String,KS=EE.TypeError,XS=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=FE(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(n,r){return hx(n),function(e){if("object"==typeof e||$E(e))return e;throw KS("Can't set "+qS(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),YS=tD.PROPER,ZS=tD.CONFIGURABLE,JS=$S.IteratorPrototype,QS=$S.BUGGY_SAFARI_ITERATORS,eA=rx("iterator"),tA=function(){return this},nA=function(e,t,n,r,o,i,a){var u,s,l;s=r,l=t+" Iterator",(u=n).prototype=qC(WS,{next:_x(1,s)}),US(u,l,!1),lS[l]=GS;var c,f,d,p=function(e){if(e===o&&m)return m;if(!QS&&e in v)return v[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},h=t+" Iterator",g=!1,v=e.prototype,y=v[eA]||v["@@iterator"]||o&&v[o],m=!QS&&y||p(o),b="Array"==t&&v.entries||y;if(b&&(c=LS(b.call(new e)))!==Object.prototype&&c.next&&(LS(c)!==JS&&(XS?XS(c,JS):$E(c[eA])||nD(c,eA,tA)),US(c,h,!0)),YS&&"values"==o&&y&&"values"!==y.name&&(ZS?Px(v,"name","values"):(g=!0,m=function(){return vx(y,this)})),o)if(f={values:p("values"),keys:i?m:p("keys"),entries:p("entries")},a)for(d in f)(QS||g||!(d in v))&&nD(v,d,f[d]);else xC({target:t,proto:!0,forced:QS||g},f);return v[eA]!==m&&nD(v,eA,m,{name:o}),lS[t]=m,f},rA=_S.charAt,oA=Zx.set,iA=Zx.getterFor("String Iterator");nA(String,"String",(function(e){oA(this,{type:"String Iterator",string:TC(e),index:0})}),(function(){var e,t=iA(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=rA(n,r),t.index+=e.length,{value:e,done:!1})}));var aA,uA=JD.f,sA=FE("".endsWith),lA=FE("".slice),cA=Math.min,fA=rS("endsWith"),dA=!(fA||(aA=uA(String.prototype,"endsWith"),!aA||aA.writable));xC({target:"String",proto:!0,forced:!dA&&!fA},{endsWith:function(e){var t=TC(_E(this));tS(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,o=void 0===n?r:cA(CD(n),r),i=TC(e);return sA?sA(t,i,o):lA(t,o-i.length,o)===i}});var pA=FE([].join),hA=bD!=Object,gA=$D("join",",");xC({target:"Array",proto:!0,forced:hA||!gA},{join:function(e){return pA(YD(this),void 0===e?",":e)}});var vA=rx("species"),yA=function(e){return XE>=51||!YE((function(){var t=[];return(t.constructor={})[vA]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},mA=zD.map,bA=yA("map");xC({target:"Array",proto:!0,forced:!bA},{map:function(e){return mA(this,e,arguments.length>1?arguments[1]:void 0)}});var wA=EE.RegExp,EA=YE((function(){var e=wA("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),xA=EA||YE((function(){return!wA("a","y").sticky})),DA={BROKEN_CARET:EA||YE((function(){var e=wA("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:xA,UNSUPPORTED_Y:EA},CA=EE.RegExp,SA=YE((function(){var e=CA(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),AA=EE.RegExp,OA=YE((function(){var e=AA("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),kA=Zx.get,BA=SE("native-string-replace",String.prototype.replace),FA=RegExp.prototype.exec,TA=FA,_A=FE("".charAt),PA=FE("".indexOf),jA=FE("".replace),IA=FE("".slice),NA=function(){var e=/a/,t=/b*/g;return vx(FA,e,"a"),vx(FA,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),LA=DA.BROKEN_CARET,RA=void 0!==/()??/.exec("")[1];(NA||RA||LA||SA||OA)&&(TA=function(e){var t,n,r,o,i,a,u,s=this,l=kA(s),c=TC(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=vx(TA,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=LA&&s.sticky,h=vx(_C,s),g=s.source,v=0,y=c;if(p&&(h=jA(h,"y",""),-1===PA(h,"g")&&(h+="g"),y=IA(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==_A(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),RA&&(n=new RegExp("^"+g+"$(?!\\s)",h)),NA&&(r=s.lastIndex),o=vx(FA,p?n:s,y),p?o?(o.input=IA(o.input,v),o[0]=IA(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:NA&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),RA&&o&&o.length>1&&vx(BA,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=qC(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var MA=TA;xC({target:"RegExp",proto:!0,forced:/./.exec!==MA},{exec:MA});var zA=Function.prototype,$A=zA.apply,HA=zA.bind,VA=zA.call,UA="object"==typeof Reflect&&Reflect.apply||(HA?VA.bind($A):function(){return VA.apply($A,arguments)}),WA=rx("species"),GA=RegExp.prototype,qA=function(e,t,n,r){var o=rx(e),i=!YE((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!YE((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[WA]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=FE(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=FE(e),s=t.exec;return s===MA||s===GA.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));nD(String.prototype,e,s[0]),nD(GA,o,s[1])}r&&Px(GA[o],"sham",!0)},KA=_S.charAt,XA=function(e,t,n){return t+(n?KA(e,t).length:1)},YA=Math.floor,ZA=FE("".charAt),JA=FE("".replace),QA=FE("".slice),eO=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,tO=/\$([$&'`]|\d{1,2})/g,nO=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=tO;return void 0!==o&&(o=jE(o),s=eO),JA(i,s,(function(i,s){var l;switch(ZA(s,0)){case"$":return"$";case"&":return e;case"`":return QA(t,0,n);case"'":return QA(t,a);case"<":l=o[QA(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=YA(c/10);return 0===f?i:f<=u?void 0===r[f-1]?ZA(s,1):r[f-1]+ZA(s,1):i}l=r[c-1]}return void 0===l?"":l}))},rO=EE.TypeError,oO=function(e,t){var n=e.exec;if($E(n)){var r=vx(n,e,t);return null!==r&&hx(r),r}if("RegExp"===iD(e))return vx(MA,e,t);throw rO("RegExp#exec called on incompatible receiver")},iO=rx("replace"),aO=Math.max,uO=Math.min,sO=FE([].concat),lO=FE([].push),cO=FE("".indexOf),fO=FE("".slice),dO="$0"==="a".replace(/./,"$0"),pO=!!/./[iO]&&""===/./[iO]("a","$0");qA("replace",(function(e,t,n){var r=pO?"$":"$0";return[function(e,n){var r=_E(this),o=null==e?void 0:Cx(e,iO);return o?vx(o,e,r,n):vx(t,TC(r),e,n)},function(e,o){var i=hx(this),a=TC(e);if("string"==typeof o&&-1===cO(o,r)&&-1===cO(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=$E(o);s||(o=TC(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=oO(i,a);if(null===d)break;if(lO(f,d),!l)break;""===TC(d[0])&&(i.lastIndex=XA(a,CD(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var y=TC((d=f[v])[0]),m=aO(uO(xD(d.index),a.length),0),b=[],w=1;w<d.length;w++)lO(b,void 0===(p=d[w])?p:String(p));var E=d.groups;if(s){var x=sO([y],b,m,a);void 0!==E&&lO(x,E);var D=TC(UA(o,void 0,x))}else D=nO(y,a,m,b,E,o);m>=g&&(h+=fO(a,g,m)+D,g=m+y.length)}return h+fO(a,g)}]}),!!YE((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!dO||pO);
  25. /*! *****************************************************************************
  26. Copyright (c) Microsoft Corporation.
  27. Permission to use, copy, modify, and/or distribute this software for any
  28. purpose with or without fee is hereby granted.
  29. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  30. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  31. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  32. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  33. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  34. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  35. PERFORMANCE OF THIS SOFTWARE.
  36. ***************************************************************************** */
  37. var hO=function(e,t){return(hO=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function gO(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}hO(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var vO=function(){return vO=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},vO.apply(this,arguments)};function yO(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function mO(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function bO(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}var wO=0,EO=function(){this.id=""+wO++},xO=Zx.set,DO=Zx.getterFor("Array Iterator"),CO=nA(Array,"Array",(function(e,t){xO(this,{type:"Array Iterator",target:YD(e),index:0,kind:t})}),(function(){var e=DO(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");lS.Arguments=lS.Array,YC("keys"),YC("values"),YC("entries");var SO=function(e,t,n){for(var r in t)nD(e,r,t[r],n);return e},AO=EE.Array,OO=Math.max,kO=function(e,t,n){for(var r=SD(e),o=tC(t,r),i=tC(void 0===n?r:n,r),a=AO(OO(i-o,0)),u=0;o<i;o++,u++)pS(a,u,e[o]);return a.length=u,a},BO=lC.f,FO="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],TO={f:function(e){return FO&&"Window"==iD(e)?function(e){try{return BO(e)}catch(t){return kO(FO)}}(e):BO(YD(e))}},_O=YE((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),PO=Object.isExtensible,jO=YE((function(){PO(1)}))||_O?function(e){return!!ux(e)&&(!_O||"ArrayBuffer"!=iD(e))&&(!PO||PO(e))}:PO,IO=!YE((function(){return Object.isExtensible(Object.preventExtensions({}))})),NO=yE((function(e){var t=Tx.f,n=!1,r=zE("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=lC.f,t=FE([].splice),o={};o[r]=1,e(o).length&&(lC.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t(o,i,1);break}return o},xC({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:TO.f}))},fastKey:function(e,t){if(!ux(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!NE(e,r)){if(!jO(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!NE(e,r)){if(!jO(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return IO&&n&&jO(e)&&!NE(e,r)&&i(e),e}};Vx[r]=!0})),LO=EE.TypeError,RO=function(e,t){this.stopped=e,this.result=t},MO=RO.prototype,zO=function(e,t,n){var r,o,i,a,u,s,l,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),h=vD(t,c),g=function(e){return r&&uS(r,"normal",e),new RO(!0,e)},v=function(e){return f?(hx(e),p?h(e[0],e[1],g):h(e[0],e[1])):p?h(e,g):h(e)};if(d)r=e;else{if(!(o=gS(e)))throw LO(Ex(e)+" is not iterable");if(dS(o)){for(i=0,a=SD(e);a>i;i++)if((u=v(e[i]))&&yx(MO,u))return u;return new RO(!1)}r=yS(e,o)}for(s=r.next;!(l=vx(s,r)).done;){try{u=v(l.value)}catch(y){uS(r,"throw",y)}if("object"==typeof u&&u&&yx(MO,u))return u}return new RO(!1)},$O=EE.TypeError,HO=function(e,t){if(yx(t,e))return e;throw $O("Incorrect invocation")},VO=function(e,t,n){var r,o;return XS&&$E(r=t.constructor)&&r!==n&&ux(o=r.prototype)&&o!==n.prototype&&XS(e,o),e},UO=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=EE[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=FE(u[e]);nD(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!ux(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!ux(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!ux(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(wC(e,!$E(a)||!(o||u.forEach&&!YE((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),NO.enable();else if(wC(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=YE((function(){f.has(1)})),h=DS((function(e){new a(e)})),g=!o&&YE((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){HO(e,u);var n=VO(new a,e,s);return null!=t&&zO(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=s),(p||g)&&(c("delete"),c("has"),r&&c("get")),(g||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,xC({global:!0,forced:s!=a},l),US(s,e),o||n.setStrong(s,e,r),s},WO=NO.getWeakData,GO=Zx.set,qO=Zx.getterFor,KO=zD.find,XO=zD.findIndex,YO=FE([].splice),ZO=0,JO=function(e){return e.frozen||(e.frozen=new QO)},QO=function(){this.entries=[]},ek=function(e,t){return KO(e.entries,(function(e){return e[0]===t}))};QO.prototype={get:function(e){var t=ek(this,e);if(t)return t[1]},has:function(e){return!!ek(this,e)},set:function(e,t){var n=ek(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=XO(this.entries,(function(t){return t[0]===e}));return~t&&YO(this.entries,t,1),!!~t}};var tk,nk={getConstructor:function(e,t,n,r){var o=e((function(e,o){HO(e,i),GO(e,{type:t,id:ZO++,frozen:void 0}),null!=o&&zO(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=qO(t),u=function(e,t,n){var r=a(e),o=WO(hx(t),!0);return!0===o?JO(r).set(t,n):o[r.id]=n,e};return SO(i,{delete:function(e){var t=a(this);if(!ux(e))return!1;var n=WO(e);return!0===n?JO(t).delete(e):n&&NE(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!ux(e))return!1;var n=WO(e);return!0===n?JO(t).has(e):n&&NE(n,t.id)}}),SO(i,n?{get:function(e){var t=a(this);if(ux(e)){var n=WO(e);return!0===n?JO(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},rk=Zx.enforce,ok=!EE.ActiveXObject&&"ActiveXObject"in EE,ik=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},ak=UO("WeakMap",ik,nk);if(zx&&ok){tk=nk.getConstructor(ik,"WeakMap",!0),NO.enable();var uk=ak.prototype,sk=FE(uk.delete),lk=FE(uk.has),ck=FE(uk.get),fk=FE(uk.set);SO(uk,{delete:function(e){if(ux(e)&&!jO(e)){var t=rk(this);return t.frozen||(t.frozen=new tk),sk(this,e)||t.frozen.delete(e)}return sk(this,e)},has:function(e){if(ux(e)&&!jO(e)){var t=rk(this);return t.frozen||(t.frozen=new tk),lk(this,e)||t.frozen.has(e)}return lk(this,e)},get:function(e){if(ux(e)&&!jO(e)){var t=rk(this);return t.frozen||(t.frozen=new tk),lk(this,e)?ck(this,e):t.frozen.get(e)}return ck(this,e)},set:function(e,t){if(ux(e)&&!jO(e)){var n=rk(this);n.frozen||(n.frozen=new tk),lk(this,e)?fk(this,e,t):n.frozen.set(e,t)}else fk(this,e,t);return this}})}var dk=rx("iterator"),pk=rx("toStringTag"),hk=CO.values,gk=function(e,t){if(e){if(e[dk]!==hk)try{Px(e,dk,hk)}catch(r){e[dk]=hk}if(e[pk]||Px(e,pk,t),fD[t])for(var n in CO)if(e[n]!==CO[n])try{Px(e,n,CO[n])}catch(r){e[n]=CO[n]}}};for(var vk in fD)gk(EE[vk]&&EE[vk].prototype,vk);gk(hD,"DOMTokenList");var yk=new WeakMap,mk=new WeakMap,bk=new WeakMap,wk=new WeakMap,Ek=new WeakMap,xk=new WeakMap,Dk=new WeakMap,Ck=new WeakMap,Sk=new WeakMap,Ak=new WeakMap,Ok=new WeakMap,kk=new WeakMap,Bk=new WeakMap,Fk=new WeakMap,Tk=new WeakMap,_k=new WeakMap,Pk=new WeakMap,jk=new WeakMap,Ik=new WeakMap,Nk=new WeakMap,Lk=new WeakMap,Rk=new WeakMap,Mk=new WeakMap,zk=new WeakMap,$k=new WeakMap,Hk=zD.find,Vk=!0;"find"in[]&&Array(1).find((function(){Vk=!1})),xC({target:"Array",proto:!0,forced:Vk},{find:function(e){return Hk(this,e,arguments.length>1?arguments[1]:void 0)}}),YC("find"),xC({global:!0},{globalThis:EE});const Uk=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];Bg&&(hg.fn.css=Bg),Ig&&(hg.fn.append=Ig),gg&&(hg.fn.addClass=gg),vg&&(hg.fn.removeClass=vg),yg&&(hg.fn.hasClass=yg),xg&&(hg.fn.on=xg),Gg&&(hg.fn.focus=Gg),mg&&(hg.fn.attr=mg),bg&&(hg.fn.removeAttr=bg),Og&&(hg.fn.hide=Og),kg&&(hg.fn.show=kg),Ag&&(hg.fn.offset=Ag),Cg&&(hg.fn.width=Cg),Sg&&(hg.fn.height=Sg),Lg&&(hg.fn.parent=Lg),Rg&&(hg.fn.parents=Rg),jg&&(hg.fn.is=jg),wg&&(hg.fn.dataset=wg),Eg&&(hg.fn.val=Eg),Pg&&(hg.fn.text=Pg),_g&&(hg.fn.html=_g),zg&&(hg.fn.children=zg),$g&&(hg.fn.remove=$g),Mg&&(hg.fn.find=Mg),Fg&&(hg.fn.each=Fg),Hg&&(hg.fn.empty=Hg);var Wk,Gk,qk=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||null},Kk=function(e){return Xk(e)&&1===e.nodeType},Xk=function(e){var t=qk(e);return!!t&&e instanceof t.Node},Yk=function(e){var t=e&&e.anchorNode&&qk(e.anchorNode);return!!t&&e instanceof t.Selection},Zk=function(e){return Xk(e)&&3===e.nodeType},Jk=function(e){var t,n,r;return null!==(t=window.document.getElementById(e))&&void 0!==t?t:(null===(r=null===(n=window.document.activeElement)||void 0===n?void 0:n.shadowRoot)||void 0===r?void 0:r.getElementById(e))||null},Qk=function(e,t,n){for(var r,o=e.childNodes,i=o[t],a=t,u=!1,s=!1;(Xk(r=i)&&8===r.nodeType||Kk(i)&&0===i.childNodes.length||Kk(i)&&"false"===i.getAttribute("contenteditable"))&&(!u||!s);)a>=o.length?(u=!0,a=t-1,n="backward"):a<0?(s=!0,a=t+1,n="forward"):(i=o[a],t=a,a+="forward"===n?1:-1);return[i,t]},eB=function(e,t,n){return mO(Qk(e,t,n),1)[0]},tB=function e(t){var n,r,o="";if(Zk(t)&&t.nodeValue)return t.nodeValue;if(Kk(t)){try{for(var i=yO(Array.from(t.childNodes)),a=i.next();!a.done;a=i.next())o+=e(a.value)}catch(pf){n={error:pf}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}var u=getComputedStyle(t).getPropertyValue("display");"block"!==u&&"list"!==u&&"table-row"!==u&&"BR"!==t.tagName||(o+="\n")}return o};function nB(e,t){if(!(e instanceof HTMLElement&&"true"===e.dataset.slateVoid))for(var n=e.childNodes,r=n.length;r--;){var o=n[r],i=o.nodeType;3==i?t(o,e):1!=i&&9!=i&&11!=i||nB(o,t)}}function rB(e){if(0===e.length)return"";var t=e[0];return t.nodeType!==Wk.ELEMENT_NODE?"":t.tagName.toLowerCase()}(Gk=Wk||(Wk={}))[Gk.ELEMENT_NODE=1]="ELEMENT_NODE",Gk[Gk.TEXT_NODE=3]="TEXT_NODE",Gk[Gk.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",Gk[Gk.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",Gk[Gk.COMMENT_NODE=8]="COMMENT_NODE",Gk[Gk.DOCUMENT_NODE=9]="DOCUMENT_NODE",Gk[Gk.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",Gk[Gk.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE",void 0!==globalThis.navigator&&void 0!==globalThis.window&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&globalThis.window.MSStream;var oB="undefined"!=typeof navigator&&/Mac OS X/.test(navigator.userAgent),iB="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent);"undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent);var aB="undefined"!=typeof navigator&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),uB="undefined"!=typeof navigator&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),sB="undefined"!=typeof navigator&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),lB="undefined"!=typeof navigator&&/Chrome/i.test(navigator.userAgent);"undefined"!=typeof navigator&&/.*QQBrowser/.test(navigator.userAgent);var cB=!sB&&!uB&&"undefined"!=typeof globalThis&&globalThis.InputEvent&&"function"==typeof globalThis.InputEvent.prototype.getTargetRanges,fB={getWindow:function(e){var t=Lk.get(e);if(!t)throw new Error("Unable to find a host window element for this editor");return t},findKey:function(e,t){var n=Nk.get(t);return n||(n=new EO,Nk.set(t,n)),n},setNewKey:function(e){var t=new EO;Nk.set(e,t)},findPath:function(e,t){for(var n=[],r=t;;){var o=Tk.get(r);if(null==o){if(fp.isEditor(r))return n;break}var i=Fk.get(r);if(null==i)break;n.unshift(i),r=o}throw new Error("Unable to find the path for Slate node: "+JSON.stringify(t))},findDocumentOrShadowRoot:function(e){if(e.isDestroyed)return window.document;var t=fB.toDOMNode(e,e),n=t.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&null!=n.getSelection?n:t.ownerDocument},getParentNode:function(e,t){return Tk.get(t)||null},getParentsNodes:function(e,t){for(var n=[],r=t;r!==e&&null!=r;){var o=fB.getParentNode(e,r);if(null==o)break;n.push(o),r=o}return n},getTopNode:function(e,t){var n=[fB.findPath(e,t)[0]];return vp.get(e,n)},toDOMNode:function(e,t){var n;if(fp.isEditor(t))n=_k.get(e);else{var r=fB.findKey(e,t);n=jk.get(r)}if(!n)throw new Error("Cannot resolve a DOM node from Slate node: "+JSON.stringify(t));return n},hasDOMNode:function(e,t,n){void 0===n&&(n={});var r,o=n.editable,i=void 0!==o&&o,a=fB.toDOMNode(e,e);try{r=Kk(t)?t:t.parentElement}catch(u){if(!u.message.includes('Permission denied to access property "nodeType"'))throw u}return!!r&&r.closest("[data-slate-editor]")===a&&(!i||r.isContentEditable||!!r.getAttribute("data-slate-zero-width"))},toDOMRange:function(e,t){var n=t.anchor,r=t.focus,o=kp.isBackward(t),i=fB.toDOMPoint(e,n),a=kp.isCollapsed(t)?i:fB.toDOMPoint(e,r),u=fB.getWindow(e).document.createRange(),s=mO(o?a:i,2),l=s[0],c=s[1],f=mO(o?i:a,2),d=f[0],p=f[1],h=!!(Kk(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),g=!!(Kk(d)?d:d.parentElement).getAttribute("data-slate-zero-width");return u.setStart(l,h?1:c),u.setEnd(d,g?1:p),u},toDOMPoint:function(e,t){var n,r,o,i=mO(fp.node(e,t.path),1)[0],a=fB.toDOMNode(e,i);fp.void(e,{at:t})&&(t={path:t.path,offset:0});var u=Array.from(a.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),s=0;try{for(var l=yO(u),c=l.next();!c.done;c=l.next()){var f=c.value,d=f.childNodes[0];if(null!=d&&null!=d.textContent){var p=d.textContent.length,h=f.getAttribute("data-slate-length"),g=s+(null==h?p:parseInt(h,10));if(t.offset<=g){o=[d,Math.min(p,Math.max(0,t.offset-s))];break}s=g}}}catch(v){n={error:v}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}if(!o)throw new Error("Cannot resolve a DOM point from Slate point: "+JSON.stringify(t));return o},toSlateNode:function(e,t){var n=Kk(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?Pk.get(n):null;if(!r)throw new Error("Cannot resolve a Slate node from DOM node: "+n);return r},findEventRange:function(e,t){"nativeEvent"in t&&(t=t.nativeEvent);var n=t.clientX,r=t.clientY,o=t.target;if(null==n||null==r)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);var i,a=fB.toSlateNode(e,t.target),u=fB.findPath(e,a);if(fp.isVoid(e,a)){var s=o.getBoundingClientRect(),l=e.isInline(a)?n-s.left<s.left+s.width-n:r-s.top<s.top+s.height-r,c=fp.point(e,u,{edge:l?"start":"end"}),f=l?fp.before(e,c):fp.after(e,c);if(f)return fp.range(e,f)}var d=this.getWindow(e).document;if(d.caretRangeFromPoint)i=d.caretRangeFromPoint(n,r);else{var p=d.caretPositionFromPoint(n,r);p&&((i=d.createRange()).setStart(p.offsetNode,p.offset),i.setEnd(p.offsetNode,p.offset))}if(!i)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);return fB.toSlateRange(e,i,{exactMatch:!1,suppressThrow:!1})},toSlateRange:function(e,t,n){var r,o,i,a,u,s=n.exactMatch,l=n.suppressThrow;if((Yk(t)?t.anchorNode:t.startContainer)&&(Yk(t)?(r=t.anchorNode,o=t.anchorOffset,i=t.focusNode,a=t.focusOffset,u=lB&&window.document.activeElement&&window.document.activeElement.shadowRoot?t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:t.isCollapsed):(r=t.startContainer,o=t.startOffset,i=t.endContainer,a=t.endOffset,u=t.collapsed)),null==r||null==i||null==o||null==a)throw new Error("Cannot resolve a Slate range from DOM range: "+t);var c=fB.toSlatePoint(e,[r,o],{exactMatch:s,suppressThrow:l});if(!c)return null;var f=u?c:fB.toSlatePoint(e,[i,a],{exactMatch:s,suppressThrow:l});if(!f)return null;var d={anchor:c,focus:f};return kp.isExpanded(d)&&kp.isForward(d)&&Kk(i)&&fp.void(e,{at:d.focus,mode:"highest"})&&(d=fp.unhangRange(e,d,{voids:!0})),d},toSlatePoint:function(e,t,n){var r,o=n.exactMatch,i=n.suppressThrow,a=mO(o?t:function(e){var t,n=mO(e,2),r=n[0],o=n[1];if(Kk(r)&&r.childNodes.length){var i=o===r.childNodes.length,a=i?o-1:o;for(r=(t=mO(Qk(r,a,i?"backward":"forward"),2))[0],i=(a=t[1])<o;Kk(r)&&r.childNodes.length;){var u=i?r.childNodes.length-1:0;r=eB(r,u,i?"backward":"forward")}o=i&&null!=r.textContent?r.textContent.length:0}return[r,o]}(t),2),u=a[0],s=a[1],l=u.parentNode,c=null,f=0;if(l){var d=l.closest('[data-slate-void="true"]'),p=l.closest("[data-slate-leaf]"),h=null;if(p){c=p.closest('[data-slate-node="text"]');var g=fB.getWindow(e).document.createRange();g.setStart(c,0),g.setEnd(u,s);var v=g.cloneContents();bO(bO([],mO(Qh(v.querySelectorAll("[data-slate-zero-width]")))),mO(Qh(v.querySelectorAll("[contenteditable=false]")))).forEach((function(e){e.parentNode.removeChild(e)})),f=v.textContent.length,h=c}else d&&((p=d.querySelector("[data-slate-leaf]"))?(c=p.closest('[data-slate-node="text"]'),f=(h=p).textContent.length,h.querySelectorAll("[data-slate-zero-width]").forEach((function(e){f-=e.textContent.length}))):f=1);h&&f===h.textContent.length&&(l.hasAttribute("data-slate-zero-width")||iB&&(null===(r=h.textContent)||void 0===r?void 0:r.endsWith("\n")))&&f--}if(!c){if(i)return null;throw new Error("Cannot resolve a Slate point from DOM point: "+t)}var y=fB.toSlateNode(e,c);return{path:fB.findPath(e,y),offset:f}},hasRange:function(e,t){var n=t.anchor,r=t.focus;return fp.hasPath(e,n.path)&&fp.hasPath(e,r.path)},getNodeType:function(e){return ip.isElement(e)?e.type:""},checkNodeType:function(e,t){return this.getNodeType(e)===t},getNodesStr:function(e){return e.map((function(e){return vp.string(e)})).join("")},getSelectedElems:function(e){var t,n,r=[],o=fp.nodes(e,{universal:!0});try{for(var i=yO(o),a=i.next();!a.done;a=i.next()){var u=mO(a.value,1)[0];ip.isElement(u)&&r.push(u)}}catch(s){t={error:s}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r},getSelectedNodeByType:function(e,t){var n=this,r=mO(fp.nodes(e,{match:function(e){return n.checkNodeType(e,t)},universal:!0}),1)[0];return null==r?null:r[0]},getSelectedTextNode:function(e){var t=mO(fp.nodes(e,{match:function(e){return Ip.isText(e)},universal:!0}),1)[0];return null==t?null:t[0]},isNodeSelected:function(e,t){var n=mO(fp.nodes(e,{match:function(e){return e===t},universal:!0}),1)[0];return null!=n&&mO(n,1)[0]===t},isSelectionAtLineEnd:function(e,t){var n=e.selection;return!!n&&(fp.isEnd(e,n.anchor,t)||fp.isEnd(e,n.focus,t))},getTextarea:function(e){var t=yk.get(e);if(null==t)throw new Error("Cannot find textarea instance by editor");return t},getToolbar:function(e){return wk.get(e)||null},getHoverbar:function(e){return xk.get(e)||null},normalizeContent:function(e){e.children.forEach((function(t,n){e.normalizeNode([t,[n]])}))},getLeftLengthOfMaxLength:function(e){var t=e.getConfig(),n=t.maxLength,r=t.onMaxLength;if("number"!=typeof n||n<=0)return 1/0;var o=n-e.getText().replace(/\r|\n|(\r\n)/g,"").length;return o<=0&&r&&r(e),o},cleanExposedTexNodeInSelectionBlock:function(e){var t,n,r,o,i=fB.getTextarea(e).$textArea,a=null==i?void 0:i[0].childNodes;if(a)try{for(var u=yO(Array.from(a)),s=u.next();!s.done;s=u.next()){var l=s.value;if(3!==l.nodeType)break;l.remove()}}catch(g){t={error:g}}finally{try{s&&!s.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}var c=fp.nodes(e,{match:function(t){return!(!ip.isElement(t)||e.isInline(t))},universal:!0});try{for(var f=yO(c),d=f.next();!d.done;d=f.next()){var p=d.value;if(null!=p){var h=p[0];nB(fB.toDOMNode(e,h),(function(e,t){var n=hg(t);n.attr("data-slate-string")||n.attr("data-slate-zero-width")||n.attr("data-w-e-reserve")||t.removeChild(e)}))}}}catch(g){r={error:g}}finally{try{d&&!d.done&&(o=f.return)&&o.call(f)}finally{if(r)throw r.error}}},isLastNode:function(e,t){var n=e.children||[];return n[n.length-1]===t},genEmptyParagraph:function(){return{type:"paragraph",children:[{text:""}]}},isSelectedVoidNode:function(e){var t,n,r=fp.nodes(e,{match:function(t){return e.isVoid(t)}}),o=0;try{for(var i=yO(r),a=i.next();!a.done;a=i.next())a.value,o++}catch(u){t={error:u}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return o>0},isSelectedEmptyParagraph:function(e){var t=e.selection;if(null==t)return!1;if(kp.isExpanded(t))return!1;var n=fB.getSelectedNodeByType(e,"paragraph");if(null===n)return!1;var r=n.children;return 1===r.length&&(""===r[0].text||void 0)},isEmptyPath:function(e,t){var n=fp.node(e,t);if(null==n)return!1;var r=mO(n,1)[0].children;return 1===r.length&&""===r[0].text}},dB=1,pB={},hB={},gB=zD.filter,vB=yA("filter");xC({target:"Array",proto:!0,forced:!vB},{filter:function(e){return gB(this,e,arguments.length>1?arguments[1]:void 0)}});var yB="\t\n\v\f\r                 \u2028\u2029\ufeff",mB=FE("".replace),bB="["+yB+"]",wB=RegExp("^"+bB+bB+"*"),EB=RegExp(bB+bB+"*$"),xB=function(e){return function(t){var n=TC(_E(t));return 1&e&&(n=mB(n,wB,"")),2&e&&(n=mB(n,EB,"")),n}},DB={start:xB(1),end:xB(2),trim:xB(3)},CB=tD.PROPER,SB=DB.trim;xC({target:"String",proto:!0,forced:function(e){return YE((function(){return!!yB.trim()||"​…᠎"!=="​…᠎".trim()||CB&&yB.trim.name!==e}))}("trim")},{trim:function(){return SB(this)}});var AB=[],OB={};function kB(e,t,n){var r=n.isInline(e)?"span":"div";return"<"+r+">"+t+"</"+r+">"}var BB,FB,TB,_B,PB=EE.Promise,jB=rx("species"),IB=function(e){var t=VE(e),n=Tx.f;ax&&t&&!t[jB]&&n(t,jB,{configurable:!0,get:function(){return this}})},NB=EE.TypeError,LB=rx("species"),RB=function(e,t){var n,r=hx(e).constructor;return void 0===r||null==(n=hx(r)[LB])?t:function(e){if(jD(e))return e;throw NB(Ex(e)+" is not a constructor")}(n)},MB=FE([].slice),zB=/(?:ipad|iphone|ipod).*applewebkit/i.test(UE),$B="process"==iD(EE.process),HB=EE.setImmediate,VB=EE.clearImmediate,UB=EE.process,WB=EE.Dispatch,GB=EE.Function,qB=EE.MessageChannel,KB=EE.String,XB=0,YB={};try{BB=EE.location}catch(Ume){}var ZB=function(e){if(NE(YB,e)){var t=YB[e];delete YB[e],t()}},JB=function(e){return function(){ZB(e)}},QB=function(e){ZB(e.data)},eF=function(e){EE.postMessage(KB(e),BB.protocol+"//"+BB.host)};HB&&VB||(HB=function(e){var t=MB(arguments,1);return YB[++XB]=function(){UA($E(e)?e:GB(e),void 0,t)},FB(XB),XB},VB=function(e){delete YB[e]},$B?FB=function(e){UB.nextTick(JB(e))}:WB&&WB.now?FB=function(e){WB.now(JB(e))}:qB&&!zB?(_B=(TB=new qB).port2,TB.port1.onmessage=QB,FB=vD(_B.postMessage,_B)):EE.addEventListener&&$E(EE.postMessage)&&!EE.importScripts&&BB&&"file:"!==BB.protocol&&!YE(eF)?(FB=eF,EE.addEventListener("message",QB,!1)):FB="onreadystatechange"in cx("script")?function(e){$C.appendChild(cx("script")).onreadystatechange=function(){$C.removeChild(this),ZB(e)}}:function(e){setTimeout(JB(e),0)});var tF,nF,rF,oF,iF,aF,uF,sF,lF={set:HB,clear:VB},cF=/ipad|iphone|ipod/i.test(UE)&&void 0!==EE.Pebble,fF=/web0s(?!.*chrome)/i.test(UE),dF=JD.f,pF=lF.set,hF=EE.MutationObserver||EE.WebKitMutationObserver,gF=EE.document,vF=EE.process,yF=EE.Promise,mF=dF(EE,"queueMicrotask"),bF=mF&&mF.value;bF||(tF=function(){var e,t;for($B&&(e=vF.domain)&&e.exit();nF;){t=nF.fn,nF=nF.next;try{t()}catch(n){throw nF?oF():rF=void 0,n}}rF=void 0,e&&e.enter()},zB||$B||fF||!hF||!gF?!cF&&yF&&yF.resolve?((uF=yF.resolve(void 0)).constructor=yF,sF=vD(uF.then,uF),oF=function(){sF(tF)}):$B?oF=function(){vF.nextTick(tF)}:(pF=vD(pF,EE),oF=function(){pF(tF)}):(iF=!0,aF=gF.createTextNode(""),new hF(tF).observe(aF,{characterData:!0}),oF=function(){aF.data=iF=!iF}));var wF,EF,xF,DF,CF=bF||function(e){var t={fn:e,next:void 0};rF&&(rF.next=t),nF||(nF=t,oF()),rF=t},SF=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=Dx(t),this.reject=Dx(n)},AF={f:function(e){return new SF(e)}},OF=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},kF="object"==typeof window,BF=lF.set,FF=rx("species"),TF="Promise",_F=Zx.getterFor(TF),PF=Zx.set,jF=Zx.getterFor(TF),IF=PB&&PB.prototype,NF=PB,LF=IF,RF=EE.TypeError,MF=EE.document,zF=EE.process,$F=AF.f,HF=$F,VF=!!(MF&&MF.createEvent&&EE.dispatchEvent),UF=$E(EE.PromiseRejectionEvent),WF=!1,GF=wC(TF,(function(){var e=Rx(NF),t=e!==String(NF);if(!t&&66===XE)return!0;if(XE>=51&&/native code/.test(e))return!1;var n=new NF((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[FF]=r,!(WF=n.then((function(){}))instanceof r)||!t&&kF&&!UF})),qF=GF||!DS((function(e){NF.all(e).catch((function(){}))})),KF=function(e){var t;return!(!ux(e)||!$E(t=e.then))&&t},XF=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;CF((function(){for(var r=e.value,o=1==e.state,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(2===e.rejection&&QF(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(RF("Promise-chain cycle")):(u=KF(a))?vx(u,a,f,d):f(a)):d(r)}catch(h){p&&!s&&p.exit(),d(h)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&ZF(e)}))}},YF=function(e,t,n){var r,o;VF?((r=MF.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),EE.dispatchEvent(r)):r={promise:t,reason:n},!UF&&(o=EE["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=EE.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},ZF=function(e){vx(BF,EE,(function(){var t,n=e.facade,r=e.value;if(JF(e)&&(t=OF((function(){$B?zF.emit("unhandledRejection",r,n):YF("unhandledrejection",n,r)})),e.rejection=$B||JF(e)?2:1,t.error))throw t.value}))},JF=function(e){return 1!==e.rejection&&!e.parent},QF=function(e){vx(BF,EE,(function(){var t=e.facade;$B?zF.emit("rejectionHandled",t):YF("rejectionhandled",t,e.value)}))},eT=function(e,t,n){return function(r){e(t,r,n)}},tT=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,XF(e,!0))},nT=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw RF("Promise can't be resolved itself");var r=KF(t);r?CF((function(){var n={done:!1};try{vx(r,t,eT(nT,n,e),eT(tT,n,e))}catch(o){tT(n,o,e)}})):(e.value=t,e.state=1,XF(e,!1))}catch(o){tT({done:!1},o,e)}}};if(GF&&(LF=(NF=function(e){HO(this,LF),Dx(e),vx(wF,this);var t=_F(this);try{e(eT(nT,t),eT(tT,t))}catch(n){tT(t,n)}}).prototype,(wF=function(e){PF(this,{type:TF,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=SO(LF,{then:function(e,t){var n=jF(this),r=n.reactions,o=$F(RB(this,NF));return o.ok=!$E(e)||e,o.fail=$E(t)&&t,o.domain=$B?zF.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&XF(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),EF=function(){var e=new wF,t=_F(e);this.promise=e,this.resolve=eT(nT,t),this.reject=eT(tT,t)},AF.f=$F=function(e){return e===NF||e===xF?new EF(e):HF(e)},$E(PB)&&IF!==Object.prototype)){DF=IF.then,WF||(nD(IF,"then",(function(e,t){var n=this;return new NF((function(e,t){vx(DF,n,e,t)})).then(e,t)}),{unsafe:!0}),nD(IF,"catch",LF.catch,{unsafe:!0}));try{delete IF.constructor}catch(Ume){}XS&&XS(IF,LF)}xC({global:!0,wrap:!0,forced:GF},{Promise:NF}),US(NF,TF,!1),IB(TF),xF=VE(TF),xC({target:TF,stat:!0,forced:GF},{reject:function(e){var t=$F(this);return vx(t.reject,void 0,e),t.promise}}),xC({target:TF,stat:!0,forced:GF},{resolve:function(e){return function(e,t){if(hx(e),ux(t)&&t.constructor===e)return t;var n=AF.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),xC({target:TF,stat:!0,forced:qF},{all:function(e){var t=this,n=$F(t),r=n.resolve,o=n.reject,i=OF((function(){var n=Dx(t.resolve),i=[],a=0,u=1;zO(e,(function(e){var s=a++,l=!1;u++,vx(n,t,e).then((function(e){l||(l=!0,i[s]=e,--u||r(i))}),o)})),--u||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=$F(t),r=n.reject,o=OF((function(){var o=Dx(t.resolve);zO(e,(function(e){vx(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var rT=DA.UNSUPPORTED_Y,oT=Math.min,iT=[].push,aT=FE(/./.exec),uT=FE(iT),sT=FE("".slice);function lT(e){Promise.resolve().then(e)}function cT(e,t){return ip.isElement(e)?function(e,t){var n=e.type,r=void 0===n?"":n,o=e.children,i=void 0===o?[]:o,a=fp.isVoid(t,e),u="";a||(u=i.map((function(e){return cT(e,t)})).join(""));var s=(OB[r]||kB)(e,u,t),l="";if(l="string"==typeof s?s:s.html||"",a||AB.forEach((function(t){return l=t(e,l)})),"string"==typeof s)return l;var c=s.prefix,f=void 0===c?"":c,d=s.suffix,p=void 0===d?"":d;return f&&(l=f+l),p&&(l+=p),l}(e,t):function(e,t){var n=e.text;if(null==n)throw new Error("Current node is not slate Text "+JSON.stringify(e));var r=n;r=r.replace(/ {2}/g," &nbsp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/®/g,"&reg;").replace(/©/g,"&copy;").replace(/™/g,"&trade;");var o=fB.getParentsNodes(t,e).some((function(e){return"pre"===fB.getNodeType(e)}));if(o||(r=r.replace(/\r\n|\r|\n/g,"<br>")),o&&(r=r.replace(/&nbsp;/g," ")),""===r){var i=fB.getParentNode(null,e);if(!i||0!==i.children.length)return r;r="<br>"}return AB.forEach((function(t){return r=t(e,r)})),r}(e,t)}function fT(e){return"w-e-element-"+e}qA("split",(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=TC(_E(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!QC(e))return vx(t,r,e,o);for(var i,a,u,s=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),c=0,f=new RegExp(e.source,l+"g");(i=vx(MA,f,r))&&!((a=f.lastIndex)>c&&(uT(s,sT(r,c,i.index)),i.length>1&&i.index<r.length&&UA(iT,s,kO(i,1)),u=i[0].length,c=a,s.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return c===r.length?!u&&aT(f,"")||uT(s,""):uT(s,sT(r,c)),s.length>o?kO(s,0,o):s}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:vx(t,this,e,n)}:t,[function(t,n){var o=_E(this),i=null==t?void 0:Cx(t,e);return i?vx(i,t,o,n):vx(r,TC(o),t,n)},function(e,o){var i=hx(this),a=TC(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=RB(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(rT?"g":"y"),f=new s(rT?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===oO(f,a)?[a]:[];for(var p=0,h=0,g=[];h<a.length;){f.lastIndex=rT?0:h;var v,y=oO(f,rT?sT(a,h):a);if(null===y||(v=oT(CD(f.lastIndex+(rT?h:0)),a.length))===p)h=XA(a,h,l);else{if(uT(g,sT(a,p,h)),g.length===d)return g;for(var m=1;m<=y.length-1;m++)if(uT(g,y[m]),g.length===d)return g;h=p=v}}return uT(g,sT(a,p)),g}]}),!!YE((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),rT);var dT=function(e,t){var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},pT=function(e,t,n){var r=fB.toDOMRange(e,t).getBoundingClientRect(),o=fB.toDOMRange(e,n).getBoundingClientRect();return dT(r,o)&&dT(o,r)},hT=["span","b","strong","i","em","s","strike","u","font","sub","sup"],gT=[],vT=[],yT={},mT=Tx.f,bT=lC.f,wT=Zx.enforce,ET=rx("match"),xT=EE.RegExp,DT=xT.prototype,CT=EE.SyntaxError,ST=FE(_C),AT=FE(DT.exec),OT=FE("".charAt),kT=FE("".replace),BT=FE("".indexOf),FT=FE("".slice),TT=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,_T=/a/g,PT=/a/g,jT=new xT(_T)!==_T,IT=DA.MISSED_STICKY,NT=DA.UNSUPPORTED_Y,LT=ax&&(!jT||IT||SA||OA||YE((function(){return PT[ET]=!1,xT(_T)!=_T||xT(PT)==PT||"/a/i"!=xT(_T,"i")})));if(wC("RegExp",LT)){for(var RT=function(e,t){var n,r,o,i,a,u,s=yx(DT,this),l=QC(e),c=void 0===t,f=[],d=e;if(!s&&l&&c&&e.constructor===RT)return e;if((l||yx(DT,e))&&(e=e.source,c&&(t="flags"in d?d.flags:ST(d))),e=void 0===e?"":TC(e),t=void 0===t?"":TC(t),d=e,SA&&"dotAll"in _T&&(r=!!t&&BT(t,"s")>-1)&&(t=kT(t,/s/g,"")),n=t,IT&&"sticky"in _T&&(o=!!t&&BT(t,"y")>-1)&&NT&&(t=kT(t,/y/g,"")),OA&&(e=(i=function(e){for(var t,n=e.length,r=0,o="",i=[],a={},u=!1,s=!1,l=0,c="";r<=n;r++){if("\\"===(t=OT(e,r)))t+=OT(e,++r);else if("]"===t)u=!1;else if(!u)switch(!0){case"["===t:u=!0;break;case"("===t:AT(TT,FT(e,r+1))&&(r+=2,s=!0),o+=t,l++;continue;case">"===t&&s:if(""===c||NE(a,c))throw new CT("Invalid capture group name");a[c]=!0,i[i.length]=[c,l],s=!1,c="";continue}s?c+=t:o+=t}return[o,i]}(e))[0],f=i[1]),a=VO(xT(e,t),s?this:DT,RT),(r||o||f.length)&&(u=wT(a),r&&(u.dotAll=!0,u.raw=RT(function(e){for(var t,n=e.length,r=0,o="",i=!1;r<=n;r++)"\\"!==(t=OT(e,r))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),o+=t):o+="[\\s\\S]":o+=t+OT(e,++r);return o}(e),n)),o&&(u.sticky=!0),f.length&&(u.groups=f)),e!==d)try{Px(a,"source",""===d?"(?:)":d)}catch(p){}return a},MT=function(e){e in RT||mT(RT,e,{configurable:!0,get:function(){return xT[e]},set:function(t){xT[e]=t}})},zT=bT(xT),$T=0;zT.length>$T;)MT(zT[$T++]);DT.constructor=RT,RT.prototype=DT,nD(EE,"RegExp",RT)}IB("RegExp");var HT=new RegExp(String.fromCharCode(160),"g");function VT(e){return e.replace(HT," ")}function UT(e,t){var n=e.length;if(n){var r=e[n-1];if(Ip.isText(r)){var o=Object.keys(r);if(1===o.length&&"text"===o[0])return r.text=r.text+t,!0}}return!1}function WT(e,t,n){return{type:"paragraph",children:[{text:hg(e).text().replace(/\s+/gm," ")}]}}function GT(e,t){var n=function(e,t){var n=[];if(null!=e.attr("data-w-e-is-void"))return n;var r=e[0].childNodes;return 1===r.length&&"BR"===r[0].nodeName?(n.push({text:""}),n):(r.forEach((function(e){if(e.nodeType!==Wk.ELEMENT_NODE)if(e.nodeType!==Wk.TEXT_NODE);else{var r=e.textContent||"";if(""===r.trim()&&r.indexOf("\n")>=0)return;r&&(r=VT(r),UT(n,r)||n.push({text:r}))}else{if("BR"===e.nodeName)return void(UT(n,"\n")||n.push({text:"\n"}));var o=KT(hg(e),t);Array.isArray(o)?o.forEach((function(e){return n.push(e)})):n.push(o)}})),n)}(e,t),r=function(e){for(var t in yT)if(e[0].matches(t))return yT[t];return WT}(e)(e[0],n,t);return Array.isArray(r)||(r=[r]),r.forEach((function(r){fp.isVoid(t,r)||(0===n.length&&(r.children=[{text:e.text().replace(/\s+/gm," ")}]),vT.forEach((function(n){r=n(e[0],r,t)})))})),r}function qT(e,t){0===e.parents("pre").length&&(e[0].innerHTML=e[0].innerHTML.replace(/\s+/gm," ").replace(/<br>/g,"\n"));var n=e[0].textContent||"",r={text:n=VT(n=n.replace(/&nbsp;/g," ").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&reg;/g,"®").replace(/&copy;/g,"©").replace(/&trade;/g,"™").replace(/&quot;/g,'"'))};return vT.forEach((function(n){r=n(e[0],r,t)})),r}function KT(e,t){gT.forEach((function(t){var n=t.selector,r=t.preParseHtml;e[0].matches(n)&&(e=hg(r(e[0])))}));var n=rB(e);return"span"===n?e.attr("data-w-e-type")?GT(e,t):qT(e,t):"code"===n?"pre"===rB(e.parent())?GT(e,t):qT(e,t):hT.includes(n)?qT(e,t):GT(e,t)}function XT(e,t,n){var r=hg(n);return!!r.attr(t)||(r.attr(t,"true"),e.on("destroyed",(function(){r.removeAttr(t)})),!1)}function YT(e,t){void 0===t&&(t="");var n=[];""===t&&(t="<p><br></p>"),0!==t.indexOf("<")&&(t=t.split(/\n/).map((function(e){return"<p>"+e+"</p>"})).join(""));var r=hg("<div>"+t+"</div>");return Array.from(r.children()).forEach((function(t){var r=KT(hg(t),e);Array.isArray(r)?r.forEach((function(e){return n.push(e)})):n.push(r)})),n}var ZT=Tx.f,JT=NO.fastKey,QT=Zx.set,e_=Zx.getterFor,t_={getConstructor:function(e,t,n,r){var o=e((function(e,o){HO(e,i),QT(e,{type:t,index:qC(null),first:void 0,last:void 0,size:0}),ax||(e.size=0),null!=o&&zO(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=e_(t),u=function(e,t,n){var r,o,i=a(e),u=s(e,t);return u?u.value=n:(i.last=u={index:o=JT(t,!0),key:t,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=u),r&&(r.next=u),ax?i.size++:e.size++,"F"!==o&&(i.index[o]=u)),e},s=function(e,t){var n,r=a(e),o=JT(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return SO(i,{clear:function(){for(var e=a(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,ax?e.size=0:this.size=0},delete:function(e){var t=this,n=a(t),r=s(t,e);if(r){var o=r.next,i=r.previous;delete n.index[r.index],r.removed=!0,i&&(i.next=o),o&&(o.previous=i),n.first==r&&(n.first=o),n.last==r&&(n.last=i),ax?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=a(this),r=vD(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!s(this,e)}}),SO(i,n?{get:function(e){var t=s(this,e);return t&&t.value},set:function(e,t){return u(this,0===e?0:e,t)}}:{add:function(e){return u(this,e=0===e?0:e,e)}}),ax&&ZT(i,"size",{get:function(){return a(this).size}}),o},setStrong:function(e,t,n){var r=t+" Iterator",o=e_(t),i=e_(r);nA(e,t,(function(e,t){QT(this,{type:r,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),IB(t)}};UO("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),t_);var n_=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function r_(e,t){e.isInline(t)?(e.insertNode(t),"link"===t.type&&e.insertFragment([{text:""}])):Qp.insertNodes(e,t,{mode:"highest"})}var o_=function(e){var t=e,n=t.insertText;return t.insertFragment,t.setFragmentData=function(e){var n=t.selection;if(n){var r=mO(kp.edges(n),2),o=r[0],i=r[1],a=fp.void(t,{at:o.path}),u=fp.void(t,{at:i.path});if(!kp.isCollapsed(n)||a){var s=fB.toDOMRange(t,n),l=s.cloneContents(),c=l.childNodes[0];if(l.childNodes.forEach((function(e){e.textContent&&""!==e.textContent.trim()&&(c=e)})),u){var f=mO(u,1)[0],d=s.cloneRange(),p=fB.toDOMNode(t,f);d.setEndAfter(p),l=d.cloneContents()}if(a&&(c=l.querySelector("[data-slate-spacer]")),Array.from(l.querySelectorAll("[data-slate-zero-width]")).forEach((function(e){var t="n"===e.getAttribute("data-slate-zero-width");e.textContent=t?"\n":""})),Zk(c)){var h=c.ownerDocument.createElement("span");h.style.whiteSpace="pre",h.appendChild(c),l.appendChild(h),c=h}var g=t.getFragment(),v=JSON.stringify(g),y=window.btoa(encodeURIComponent(v));c.setAttribute("data-slate-fragment",y),e.setData("application/x-slate-fragment",y);var m=l.ownerDocument.createElement("div");return m.appendChild(l),m.setAttribute("hidden","true"),l.ownerDocument.body.appendChild(m),e.setData("text/html",m.innerHTML),e.setData("text/plain",tB(m)),l.ownerDocument.body.removeChild(m),e}}},t.insertData=function(e){var r,o,i=e.getData("application/x-slate-fragment");if(i){var a=decodeURIComponent(window.atob(i)),u=JSON.parse(a);t.insertFragment(u)}else{var s=e.getData("text/plain"),l=e.getData("text/html");if(l)t.dangerouslyInsertHtml(l);else if(s){var c=s.split(/\r\n|\r|\n/),f=!1;try{for(var d=yO(c),p=d.next();!p.done;p=d.next()){var h=p.value;f&&Qp.splitNodes(t,{always:!0}),n(h),f=!0}}catch(g){r={error:g}}finally{try{p&&!p.done&&(o=d.return)&&o.call(d)}finally{if(r)throw r.error}}}}},t},i_=function(e){return null!=e},a_={object:!0,function:!0,undefined:!0},u_=/^\s*class[\s{/}]/,s_=Function.prototype.toString,l_=function(e){return!!function(e){if("function"!=typeof e)return!1;if(!hasOwnProperty.call(e,"length"))return!1;try{if("number"!=typeof e.length)return!1;if("function"!=typeof e.call)return!1;if("function"!=typeof e.apply)return!1}catch(t){return!1}return!function(e){if(!i_(t=e)||!hasOwnProperty.call(a_,typeof t))return!1;var t;try{return!!e.constructor&&e.constructor.prototype===e}catch(t){return!1}}(e)}(e)&&!u_.test(s_.call(e))},c_=function(e){return null!=e},f_=Object.keys,d_=function(){try{return Object.keys("primitive"),!0}catch(pf){return!1}}()?Object.keys:function(e){return f_(c_(e)?Object(e):e)},p_=function(e){if(!c_(e))throw new TypeError("Cannot use null or undefined");return e},h_=Math.max,g_=function(){var e,t=Object.assign;return"function"==typeof t&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}()?Object.assign:function(e,t){var n,r,o,i=h_(arguments.length,2);for(e=Object(p_(e)),o=function(r){try{e[r]=t[r]}catch(o){n||(n=o)}},r=1;r<i;++r)d_(t=arguments[r]).forEach(o);if(void 0!==n)throw n;return e},v_=Array.prototype.forEach,y_=Object.create,m_=function(e,t){var n;for(n in e)t[n]=e[n]},b_=function(e){var t=y_(null);return v_.call(arguments,(function(e){c_(e)&&m_(Object(e),t)})),t},w_="razdwatrzy",E_=String.prototype.indexOf,x_="function"==typeof w_.contains&&!0===w_.contains("dwa")&&!1===w_.contains("foo")?String.prototype.contains:function(e){return E_.call(this,e,arguments[1])>-1},D_=yE((function(e){var t=e.exports=function(e,t){var n,r,o,i,a;return arguments.length<2||"string"!=typeof e?(i=t,t=e,e=null):i=arguments[2],i_(e)?(n=x_.call(e,"c"),r=x_.call(e,"e"),o=x_.call(e,"w")):(n=o=!0,r=!1),a={value:t,configurable:n,enumerable:r,writable:o},i?g_(b_(i),a):a};t.gs=function(e,t,n){var r,o,i,a;return"string"!=typeof e?(i=n,n=t,t=e,e=null):i=arguments[3],i_(t)?l_(t)?i_(n)?l_(n)||(i=n,n=void 0):n=void 0:(i=t,t=n=void 0):t=void 0,i_(e)?(r=x_.call(e,"c"),o=x_.call(e,"e")):(r=!0,o=!1),a={get:t,set:n,configurable:r,enumerable:o},i?g_(b_(i),a):a}})),C_=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e},S_=yE((function(e,t){var n,r,o,i,a,u,s,l=Function.prototype.apply,c=Function.prototype.call,f=Object.create,d=Object.defineProperty,p=Object.defineProperties,h=Object.prototype.hasOwnProperty,g={configurable:!0,enumerable:!1,writable:!0};r=function(e,t){var r,i;return C_(t),i=this,n.call(this,e,r=function(){o.call(i,e,r),l.call(t,this,arguments)}),r.__eeOnceListener__=t,this},i=function(e){var t,n,r,o,i;if(h.call(this,"__ee__")&&(o=this.__ee__[e]))if("object"==typeof o){for(n=arguments.length,i=new Array(n-1),t=1;t<n;++t)i[t-1]=arguments[t];for(o=o.slice(),t=0;r=o[t];++t)l.call(r,this,i)}else switch(arguments.length){case 1:c.call(o,this);break;case 2:c.call(o,this,arguments[1]);break;case 3:c.call(o,this,arguments[1],arguments[2]);break;default:for(n=arguments.length,i=new Array(n-1),t=1;t<n;++t)i[t-1]=arguments[t];l.call(o,this,i)}},a={on:n=function(e,t){var n;return C_(t),h.call(this,"__ee__")?n=this.__ee__:(n=g.value=f(null),d(this,"__ee__",g),g.value=null),n[e]?"object"==typeof n[e]?n[e].push(t):n[e]=[n[e],t]:n[e]=t,this},once:r,off:o=function(e,t){var n,r,o,i;if(C_(t),!h.call(this,"__ee__"))return this;if(!(n=this.__ee__)[e])return this;if("object"==typeof(r=n[e]))for(i=0;o=r[i];++i)o!==t&&o.__eeOnceListener__!==t||(2===r.length?n[e]=r[i?0:1]:r.splice(i,1));else r!==t&&r.__eeOnceListener__!==t||delete n[e];return this},emit:i},u={on:D_(n),once:D_(r),off:D_(o),emit:D_(i)},s=p({},u),e.exports=t=function(e){return null==e?f(s):p(Object(e),u)},t.methods=a}));function A_(e){var t=zk.get(e);return null==t&&(t=S_(),zk.set(e,t)),t}var O_=new WeakMap;function k_(e,t){var n=O_.get(e);null==n&&(n=new Set,O_.set(e,n)),n.add(t)}function B_(e){return O_.get(e)||new Set}function F_(e){O_.set(e,new Set)}function T_(e){var t=fB.getTextarea(e).$textAreaContainer,n=t.width(),r=t.height(),o=t.offset();return{top:o.top,left:o.left,width:n,height:r}}function __(e){var t={top:"0",left:"0"},n=e.selection;if(null==n)return t;var r=T_(e);if(null==r)return t;var o=r.top,i=r.left,a=r.width,u=r.height,s=fB.toDOMRange(e,n).getClientRects()[0];if(null==s)return t;s.width;var l=s.height,c={},f=s.top-o,d=s.left-i;if(d>a/2){var p=a-d;c.right=p+5+"px"}else c.left=d+5+"px";if(f>u/2){var h=u-f;c.bottom=h+5+"px"}else{var g=f+l;g<0&&(g=0),c.top=g+5+"px"}return c}function P_(e,t,n){void 0===n&&(n="modal");var r={top:"0",left:"0"};if(null==e.selection)return r;var o=ip.isElement(t)&&e.isVoid(t),i=ip.isElement(t)&&e.isInline(t),a=Ik.get(t);if(null==a)return r;var u=a.getBoundingClientRect(),s=u.top,l=u.left,c=u.height,f=u.width;if(o){var d=function(e){var t=[];t.push(e);for(var n=0;t.length>0;){var r=t.pop();if(null==r)break;if(++n>1e4)break;var o=r.nodeName;if(1===r.nodeType){var i=o.toLowerCase();if(Uk.includes(i)||"iframe"===i||"video"===i)return r;var a=r.children||[],u=a.length;if(u)for(var s=u-1;s>=0;s--)t.push(a[s])}}return null}(a);if(null!=d){var p=d.getBoundingClientRect();s=p.top,c=p.height}}var h=T_(e);if(null==h)return r;var g,v=h.top,y=h.left,m=h.width,b=h.height,w={},E=s-v,x=l-y;if("bar"===n)return w.left=x+"px",E>40?w.bottom=b-E+5+"px":w.top=E+c+5+"px",w;if("modal"===n)return o?i?x>(m-f)/2?w.right=m-x+5+"px":w.left=x+f+5+"px":w.left="20px":w.left=x+"px",o?((g=E)<0&&(g=0),w.top=g+"px"):E>(b-c)/2?w.bottom=b-E+5+"px":((g=E+c)<0&&(g=0),w.top=g+5+"px"),w;throw new Error("type '"+n+"' is invalid")}function j_(e,t){lT((function(){var n=T_(e);if(null!=n){var r,o=n.top,i=n.left,a=n.width,u=n.height,s=t.offset(),l=s.top,c=s.left,f=t.width(),d=t.height(),p=l-o,h=c-i,g=t.attr("style");if(g.indexOf("top")>=0&&(r=p+d-u)>0){var v=t.css("top"),y=parseInt(v.toString())-r;y<0&&(y=0),t.css("top",y+"px")}if(g.indexOf("bottom")>=0&&l<0){var m=t.css("bottom"),b=parseInt(m.toString())-Math.abs(l);t.css("bottom",b+"px")}if(g.indexOf("left")>=0&&(r=h+f-a)>0){var w=t.css("left"),E=parseInt(w.toString())-r;E<0&&(E=0),t.css("left",E+"px")}if(g.indexOf("right")>=0&&c<0){var x=t.css("right"),D=parseInt(x.toString())-Math.abs(c);t.css("right",D+"px")}}}))}var I_=yA("slice"),N_=rx("species"),L_=EE.Array,R_=Math.max;xC({target:"Array",proto:!0,forced:!I_},{slice:function(e,t){var n,r,o,i=YD(this),a=SD(i),u=tC(e,a),s=tC(void 0===t?a:t,a);if(AD(i)&&(n=i.constructor,(jD(n)&&(n===L_||AD(n.prototype))||ux(n)&&null===(n=n[N_]))&&(n=void 0),n===L_||void 0===n))return MB(i,u,s);for(r=new(void 0===n?L_:n)(R_(s-u,0)),o=0;u<s;u++,o++)u in i&&pS(r,o,i[u]);return r.length=o,r}});var M_=JD.f,z_=FE("".startsWith),$_=FE("".slice),H_=Math.min,V_=rS("startsWith"),U_=!V_&&!!function(){var e=M_(String.prototype,"startsWith");return e&&!e.writable}();xC({target:"String",proto:!0,forced:!U_&&!V_},{startsWith:function(e){var t=TC(_E(this));tS(e);var n=CD(H_(arguments.length>1?arguments[1]:void 0,t.length)),r=TC(e);return z_?z_(t,r,n):$_(t,n,n+r.length)===r}});var W_=Object.assign,G_=Object.defineProperty,q_=FE([].concat),K_=!W_||YE((function(){if(ax&&1!==W_({b:1},W_(G_({},"a",{enumerable:!0,get:function(){G_(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=W_({},e)[n]||DC(W_({},t)).join("")!=r}))?function(e,t){for(var n=jE(e),r=arguments.length,o=1,i=cC.f,a=XD.f;r>o;)for(var u,s=bD(arguments[o++]),l=i?q_(DC(s),i(s)):DC(s),c=l.length,f=0;c>f;)u=l[f++],ax&&!vx(a,s,u)||(n[u]=s[u]);return n}:W_;xC({target:"Object",stat:!0,forced:Object.assign!==K_},{assign:K_});var X_=["props","attrs","style","dataset","on","hook"];function Y_(e){var t=e.data,n=void 0===t?{}:t,r=e.children,o=void 0===r?[]:r;Object.keys(n).forEach((function(t){var r,o,i=n[t];if("key"!==t){if(!X_.includes(t)){if(t.startsWith("data-")){var a=t.slice(5);return a=Vy(a),function(e,t){null==e.data&&(e.data={});var n=e.data;null==n.dataset&&(n.dataset={}),Object.assign(n.dataset,t)}(e,((r={})[a]=i,r)),void delete n[t]}!function(e,t){null==e.data&&(e.data={});var n=e.data;null==n.props&&(n.props={}),Object.assign(n.props,t)}(e,(o={},o[t]=i,o)),delete n[t]}}else e.key=i})),o.length>0&&o.forEach((function(e){"string"!=typeof e&&Y_(e)}))}var Z_=[],J_={};function Q_(e,t,n){return ry(n.isInline(e)?"span":"div",null,t)}function eP(e,t){return void 0===t&&(t=!1),ry("span",{"data-slate-string":!0},t?e+"\n":e)}function tP(e,t){return void 0===e&&(e=0),void 0===t&&(t=!1),ry("span",{"data-slate-zero-width":t?"n":"z","data-slate-length":e},"\ufeff",t?ry("br",null):null)}function nP(e,t,n,r){return Fk.set(e,t),Tk.set(e,n),ip.isElement(e)?function(e,t){var n,r=fB.findKey(t,e),o=t.isInline(e),i=fp.isVoid(t,e),a=fT(r.id),u={id:a,key:r.id,"data-slate-node":"element","data-slate-inline":o},s=e.type,l=e.children,c=void 0===l?[]:l,f=J_[s]||Q_;n=i?null:c.map((function(n,r){return nP(n,r,e,t)}));var d=f(e,n,t);if(i){u["data-slate-void"]=!0;var p=o?"span":"div",h=mO(vp.texts(e),1),g=mO(h[0],1)[0],v=ry(p,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},nP(g,0,e,t));d=ry(p,{style:{position:"relative"}},d,v),Fk.set(g,0),Tk.set(g,e)}return null==d.data&&(d.data={}),Object.assign(d.data,u),i||o||(d=function(e,t){var n=t;return Z_.forEach((function(r){n=r(e,t)})),n}(e,d)),lT((function(){var t=Jk(a);null!=t&&(jk.set(r,t),Ik.set(e,t),Pk.set(t,e))})),d}(e,r):function(e,t,n){if(null==e.text)throw new Error("Current node is not slate Text "+JSON.stringify(e));var r=fB.findKey(n,e),o=n.getConfig().decorate;if(null==o)throw new Error("Can not get config.decorate");var i=fB.findPath(n,e),a=o([e,i]),u=Ip.decorations(e,a),s=u.map((function(r,o){var i,a,s=function(e,t,n,r,o){void 0===t&&(t=!1);var i=e.text,a=fB.findPath(o,n),u=wp.parent(a);if(fp.isEditor(r))throw new Error("Text node "+JSON.stringify(n)+" parent is Editor");return o.isVoid(r)?tP(vp.string(r).length):""!==i||r.children[r.children.length-1]!==n||o.isInline(r)||""!==fp.string(o,u)?""===i?tP():t&&"\n"===i.slice(-1)?eP(i,!0):eP(i):tP(0,!0)}(r,o===u.length-1,e,t,n);return i=r,a=s,Z_.forEach((function(e){a=e(i,a)})),ry("span",{"data-slate-leaf":!0},s=a)})),l="w-e-text-"+r.id,c=ry("span",{"data-slate-node":"text",id:l,key:r.id},s);return lT((function(){var t=Jk(l);null!=t&&(jk.set(r,t),Ik.set(e,t),Pk.set(t,e))})),c}(e,n,r)}function rP(e,t){var n,r=e.$scroll,o="w-e-textarea-"+e.id,i=t.getConfig(),a=i.readOnly,u=i.autoFocus,s=function(e,t){return void 0===t&&(t=!1),Lv("div#"+e,{props:{contentEditable:!t}})}(o,a),l=t.children||[];s.children=l.map((function(e,n){var r=nP(e,n,t,t);return Y_(r),r}));var c=Ok.get(e);if(null==c&&(c=!0),c){var f=function(e,t){return hg('<div\n id="'+e+'"\n data-slate-editor\n data-slate-node="value"\n suppressContentEditableWarning\n role="textarea"\n spellCheck="true"\n autoCorrect="true"\n autoCapitalize="true"\n ></div>')}(o);r.append(f),e.$textArea=f,n=f[0],(p=Iv([$v,Yv,ty,Uv,Kv,Mv]))(n,s),Ok.set(e,!1),kk.set(e,p)}else{var d=Bk.get(e),p=kk.get(e);if(null==d||null==p)return;n=d.elm,p(d,s)}if(null!=n||null!=(n=Jk(o))){if((c?u:t.isFocused())&&n.focus({preventScroll:!0}),c){var h=qk(n);h&&Lk.set(t,h)}_k.set(t,n),Ik.set(t,n),Pk.set(n,t),Bk.set(e,s)}}function oP(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function iP(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function aP(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return iP(n.overflowY,t)||iP(n.overflowX,t)||!!(o=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(t){return null}}(r=e))&&(o.clientHeight<r.scrollHeight||o.clientWidth<r.scrollWidth)}var r,o;return!1}function uP(e,t,n,r,o,i,a,u){return i<e&&a>t||i>e&&a<t?0:i<=e&&u<=n||a>=t&&u>=n?i-e-r:a>t&&u<n||i<e&&u>n?a-t+o:0}function sP(e,t){var n=window,r=t.scrollMode,o=t.block,i=t.inline,a=t.boundary,u=t.skipOverflowHiddenElements,s="function"==typeof a?a:function(e){return e!==a};if(!oP(e))throw new TypeError("Invalid target");for(var l=document.scrollingElement||document.documentElement,c=[],f=e;oP(f)&&s(f);){if((f=f.parentElement)===l){c.push(f);break}null!=f&&f===document.body&&aP(f)&&!aP(document.documentElement)||null!=f&&aP(f,u)&&c.push(f)}for(var d=n.visualViewport?n.visualViewport.width:innerWidth,p=n.visualViewport?n.visualViewport.height:innerHeight,h=window.scrollX||pageXOffset,g=window.scrollY||pageYOffset,v=e.getBoundingClientRect(),y=v.height,m=v.width,b=v.top,w=v.right,E=v.bottom,x=v.left,D="start"===o||"nearest"===o?b:"end"===o?E:b+y/2,C="center"===i?x+m/2:"end"===i?w:x,S=[],A=0;A<c.length;A++){var O=c[A],k=O.getBoundingClientRect(),B=k.height,F=k.width,T=k.top,_=k.right,P=k.bottom,j=k.left;if("if-needed"===r&&b>=0&&x>=0&&E<=p&&w<=d&&b>=T&&E<=P&&x>=j&&w<=_)return S;var I=getComputedStyle(O),N=parseInt(I.borderLeftWidth,10),L=parseInt(I.borderTopWidth,10),R=parseInt(I.borderRightWidth,10),M=parseInt(I.borderBottomWidth,10),z=0,$=0,H="offsetWidth"in O?O.offsetWidth-O.clientWidth-N-R:0,V="offsetHeight"in O?O.offsetHeight-O.clientHeight-L-M:0;if(l===O)z="start"===o?D:"end"===o?D-p:"nearest"===o?uP(g,g+p,p,L,M,g+D,g+D+y,y):D-p/2,$="start"===i?C:"center"===i?C-d/2:"end"===i?C-d:uP(h,h+d,d,N,R,h+C,h+C+m,m),z=Math.max(0,z+g),$=Math.max(0,$+h);else{z="start"===o?D-T-L:"end"===o?D-P+M+V:"nearest"===o?uP(T,P,B,L,M+V,D,D+y,y):D-(T+B/2)+V/2,$="start"===i?C-j-N:"center"===i?C-(j+F/2)+H/2:"end"===i?C-_+R+H:uP(j,_,F,N,R+H,C,C+m,m);var U=O.scrollLeft,W=O.scrollTop;D+=W-(z=Math.max(0,Math.min(W+z,O.scrollHeight-B+V))),C+=U-($=Math.max(0,Math.min(U+$,O.scrollWidth-F+H)))}S.push({el:O,top:z,left:$})}return S}function lP(e){return e===Object(e)&&0!==Object.keys(e).length}function cP(e,t){return Xk(t)&&fB.hasDOMNode(e,t,{editable:!0})}function fP(e,t){if(e.getConfig().readOnly)return!1;var n=dP(e,t)&&fB.toSlateNode(e,t);return fp.isVoid(e,n)}function dP(e,t){return Xk(t)&&fB.hasDOMNode(e,t)}function pP(e,t,n){void 0===n&&(n=!1);var r=t.selection,o=t.getConfig(),i=fB.findDocumentOrShadowRoot(t).getSelection();if(i&&(!e.isComposing||n)&&t.isFocused()){var a="None"!==i.type;if(r||a){var u=_k.get(t),s=!1;if(u.contains(i.anchorNode)&&u.contains(i.focusNode)&&(s=!0),a&&s&&r){var l=fB.toSlateRange(t,i,{exactMatch:!0,suppressThrow:!0});if(l&&kp.equals(l,r)){var c=!0;if(kp.isCollapsed(r)){var f=i.anchorNode,d=i.anchorOffset;if(f===u){var p=u.childNodes,h=void 0;(h=p[d])&&h.matches("table")&&(c=!1),(h=p[d-1])&&h.matches("table")&&(c=!1)}}if(c)return}}if(!r||fB.hasRange(t,r)){e.isUpdatingSelection=!0;var g=r&&fB.toDOMRange(t,r);if(g){kp.isBackward(r)?i.setBaseAndExtent(g.endContainer,g.endOffset,g.startContainer,g.startOffset):i.setBaseAndExtent(g.startContainer,g.startOffset,g.endContainer,g.endOffset);var v=g.startContainer.parentElement;if(!v.closest("[data-slate-spacer]")){v.getBoundingClientRect=g.getBoundingClientRect.bind(g);var y=document.body;(function(e,t){var n,r=!e.ownerDocument.documentElement.contains(e);if(lP(t)&&"function"==typeof t.behavior)return t.behavior(r?[]:sP(e,t));if(!r){var o=!1===(n=t)?{block:"end",inline:"nearest"}:lP(n)?n:{block:"start",inline:"nearest"};!function(e,t){void 0===t&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach((function(e){var r=e.el,o=e.top,i=e.left;r.scroll&&n?r.scroll({top:o,left:i,behavior:t}):(r.scrollTop=o,r.scrollLeft=i)}))}(sP(e,o),o.behavior)}})(v,{scrollMode:"if-needed",boundary:o.scroll?u.parentElement:y,block:"end",behavior:"smooth"}),delete v.getBoundingClientRect}}else i.removeAllRanges();setTimeout((function(){g&&iB&&u.focus(),e.isUpdatingSelection=!1}))}else t.selection=fB.toSlateRange(t,i,{exactMatch:!1,suppressThrow:!1})}}}var hP=new WeakMap,gP=new WeakMap,vP={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"},yP={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"},mP={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},bP=function(e){var t=vP[e],n=yP[e],r=mP[e],o=t&&Qy(t),i=n&&Qy(n),a=r&&Qy(r);return function(e){return!(!o||!o(e))||!!(oB&&i&&i(e))||!(oB||!a||!a(e))}},wP={isBold:bP("bold"),isCompose:bP("compose"),isMoveBackward:bP("moveBackward"),isMoveForward:bP("moveForward"),isDeleteBackward:bP("deleteBackward"),isDeleteForward:bP("deleteForward"),isDeleteLineBackward:bP("deleteLineBackward"),isDeleteLineForward:bP("deleteLineForward"),isDeleteWordBackward:bP("deleteWordBackward"),isDeleteWordForward:bP("deleteWordForward"),isExtendBackward:bP("extendBackward"),isExtendForward:bP("extendForward"),isExtendLineBackward:bP("extendLineBackward"),isExtendLineForward:bP("extendLineForward"),isItalic:bP("italic"),isMoveLineBackward:bP("moveLineBackward"),isMoveLineForward:bP("moveLineForward"),isMoveWordBackward:bP("moveWordBackward"),isMoveWordForward:bP("moveWordForward"),isRedo:bP("redo"),isSplitBlock:bP("splitBlock"),isTransposeCharacter:bP("transposeCharacter"),isUndo:bP("undo"),isTab:bP("tab"),isSelectAll:bP("selectAll")};function EP(e){e.preventDefault()}var xP={beforeinput:function(e,t,n){var r=e,o=n.getConfig().readOnly;if(cB&&!o&&cP(n,r.target)){var i=n.selection,a=r.inputType,u=r.dataTransfer||r.data||void 0;if("insertCompositionText"!==a&&"deleteCompositionText"!==a){if(r.preventDefault(),!a.startsWith("delete")||a.startsWith("deleteBy")){var s=mO(r.getTargetRanges(),1)[0];if(s){var l=fB.toSlateRange(n,s,{exactMatch:!1,suppressThrow:!1});i&&kp.equals(i,l)||Qp.select(n,l)}}if(i&&kp.isExpanded(i)&&a.startsWith("delete")){var c=a.endsWith("Backward")?"backward":"forward";fp.deleteFragment(n,{direction:c})}else switch(a){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":fp.deleteFragment(n);break;case"deleteContent":case"deleteContentForward":fp.deleteForward(n);break;case"deleteContentBackward":fp.deleteBackward(n);break;case"deleteEntireSoftLine":fp.deleteBackward(n,{unit:"line"}),fp.deleteForward(n,{unit:"line"});break;case"deleteHardLineBackward":fp.deleteBackward(n,{unit:"block"});break;case"deleteSoftLineBackward":fp.deleteBackward(n,{unit:"line"});break;case"deleteHardLineForward":fp.deleteForward(n,{unit:"block"});break;case"deleteSoftLineForward":fp.deleteForward(n,{unit:"line"});break;case"deleteWordBackward":fp.deleteBackward(n,{unit:"word"});break;case"deleteWordForward":fp.deleteForward(n,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":fp.insertBreak(n);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if("insertFromPaste"===a&&!$k.get(n))break;u instanceof DataTransfer?n.insertData(u):"string"==typeof u&&fp.insertText(n,u)}}}},blur:function(e,t,n){var r=e,o=t.isUpdatingSelection,i=t.latestElement;if(!n.getConfig().readOnly&&!o&&cP(n,r.target)){var a=fB.findDocumentOrShadowRoot(n);if(i!==a.activeElement){var u=r.relatedTarget;if(!(u===fB.toDOMNode(n,n)||Kk(u)&&u.hasAttribute("data-slate-spacer"))){if(null!=u&&Xk(u)&&fB.hasDOMNode(n,u)){var s=fB.toSlateNode(n,u);if(ip.isElement(s)&&!n.isVoid(s))return}if(aB){var l=a.getSelection();null==l||l.removeAllRanges()}Rk.delete(n)}}}},focus:function(e,t,n){var r=fB.toDOMNode(n,n),o=fB.findDocumentOrShadowRoot(n);t.latestElement=o.activeElement,iB&&e.target!==r?r.focus():Rk.set(n,!0)},click:function(e,t,n){if(!n.getConfig().readOnly&&dP(n,e.target)&&Xk(e.target)){var r=fB.toSlateNode(n,e.target),o=fB.findPath(n,r);if(fp.hasPath(n,o)&&vp.get(n,o)===r){var i=fp.start(n,o),a=fp.end(n,o),u=fp.void(n,{at:i}),s=fp.void(n,{at:a});if(u&&s&&wp.equals(u[1],s[1])){var l=fp.range(n,i);Qp.select(n,l)}}}},compositionstart:function(e,t,n){if(cP(n,e.target)){var r=n.selection;if(r&&kp.isExpanded(r)&&(fp.deleteFragment(n),Promise.resolve().then((function(){pP(t,n,!0)}))),r&&kp.isCollapsed(r)){var o=fB.toDOMRange(n,r).startContainer,i=o.textContent||"";hP.set(n,i),gP.set(n,o)}t.isComposing=!0,a=t,(u=n).getConfig().placeholder&&u.isEmpty()&&a.showPlaceholder&&(null===(s=a.$placeholder)||void 0===s||s.hide(),a.showPlaceholder=!1)}var a,u,s},compositionend:function(e,t,n){var r=e;if(cP(n,r.target)){t.isComposing=!1;var o=n.selection;if(null!=o){(lB||iB)&&fB.cleanExposedTexNodeInSelectionBlock(n);for(var i=kp.isBackward(o)?o.focus:o.anchor,a=mO(fp.node(n,[i.path[0]]),1)[0],u=0;u<i.path.length;u++){var s=mO(fp.node(n,i.path.slice(0,u+1)),1)[0];if(ip.isElement(s)&&((aB||iB)&&"link"===s.type||"code"===s.type)){fB.setNewKey(a);break}}var l=r.data;if(l){if(n.getConfig().maxLength){var c=fB.getLeftLengthOfMaxLength(n);c<l.length?(fB.toDOMRange(n,o).startContainer.textContent=hP.get(n)||"",c>0&&fp.insertText(n,l.slice(0,c)),t.changeViewState()):fp.insertText(n,l)}else fp.insertText(n,l);aB||setTimeout((function(){var e=n.selection;if(null!=e){var t=gP.get(n);null!=t&&fB.toDOMRange(n,e).startContainer!==t&&(t.textContent=hP.get(n)||"")}}))}}}},compositionupdate:function(e,t,n){cP(n,e.target)&&(t.isComposing=!0)},keydown:function(e,t,n){var r=e,o=n.selection;if(!n.getConfig().readOnly&&!t.isComposing&&cP(n,r.target)){if(function(e,t){var n=wk.get(e),r=n&&n.getMenus(),o=xk.get(e),i=o&&o.getMenus(),a=vO(vO({},r),i);for(var u in a){var s=a[u],l=s.hotkey;if(l&&Jy(l,t)&&!s.isDisabled(e)){var c=s.getValue(e);s.exec(e,c)}}}(n,r),wP.isTab(r))return EP(r),void n.handleTab();if(wP.isRedo(r))return EP(r),void("function"==typeof n.redo&&n.redo());if(wP.isUndo(r))return EP(r),void("function"==typeof n.undo&&n.undo());if(wP.isMoveLineBackward(r))return EP(r),void Qp.move(n,{unit:"line",reverse:!0});if(wP.isMoveLineForward(r))return EP(r),void Qp.move(n,{unit:"line"});if(wP.isExtendLineBackward(r))return EP(r),void Qp.move(n,{unit:"line",edge:"focus",reverse:!0});if(wP.isExtendLineForward(r))return EP(r),void Qp.move(n,{unit:"line",edge:"focus"});if(wP.isMoveBackward(r))return EP(r),void(o&&kp.isCollapsed(o)?Qp.move(n,{reverse:!0}):Qp.collapse(n,{edge:"start"}));if(wP.isMoveForward(r))return EP(r),void(o&&kp.isCollapsed(o)?Qp.move(n):Qp.collapse(n,{edge:"end"}));if(wP.isMoveWordBackward(r))return EP(r),o&&kp.isExpanded(o)&&Qp.collapse(n,{edge:"focus"}),void Qp.move(n,{unit:"word",reverse:!0});if(wP.isMoveWordForward(r))return EP(r),o&&kp.isExpanded(o)&&Qp.collapse(n,{edge:"focus"}),void Qp.move(n,{unit:"word"});if(wP.isSelectAll(r))return EP(r),void n.selectAll();if(cB){if((lB||aB)&&o&&(wP.isDeleteBackward(r)||wP.isDeleteForward(r))&&kp.isCollapsed(o)){var i=vp.parent(n,o.anchor.path);if(ip.isElement(i)&&fp.isVoid(n,i)&&fp.isInline(n,i))return r.preventDefault(),void Qp.delete(n,{unit:"block"})}}else{if(wP.isBold(r)||wP.isItalic(r)||wP.isTransposeCharacter(r))return void EP(r);if(wP.isSplitBlock(r))return EP(r),void fp.insertBreak(n);if(wP.isDeleteBackward(r))return EP(r),void(o&&kp.isExpanded(o)?fp.deleteFragment(n,{direction:"backward"}):fp.deleteBackward(n));if(wP.isDeleteForward(r))return EP(r),void(o&&kp.isExpanded(o)?fp.deleteFragment(n,{direction:"forward"}):fp.deleteForward(n));if(wP.isDeleteLineBackward(r))return EP(r),void(o&&kp.isExpanded(o)?fp.deleteFragment(n,{direction:"backward"}):fp.deleteBackward(n,{unit:"line"}));if(wP.isDeleteLineForward(r))return EP(r),void(o&&kp.isExpanded(o)?fp.deleteFragment(n,{direction:"forward"}):fp.deleteForward(n,{unit:"line"}));if(wP.isDeleteWordBackward(r))return EP(r),void(o&&kp.isExpanded(o)?fp.deleteFragment(n,{direction:"backward"}):fp.deleteBackward(n,{unit:"word"}));if(wP.isDeleteWordForward(r))return EP(r),void(o&&kp.isExpanded(o)?fp.deleteFragment(n,{direction:"forward"}):fp.deleteForward(n,{unit:"word"}))}}},keypress:function(e,t,n){if(!cB&&!n.getConfig().readOnly&&cP(n,e.target)){e.preventDefault();var r=e.key;fp.insertText(n,r)}},copy:function(e,t,n){var r=e;if(cP(n,r.target)){r.preventDefault();var o=r.clipboardData;null!=o&&n.setFragmentData(o)}},cut:function(e,t,n){var r=e,o=n.selection;if(!n.getConfig().readOnly&&cP(n,r.target)){r.preventDefault();var i=r.clipboardData;if(null!=i&&(n.setFragmentData(i),o))if(kp.isExpanded(o))fp.deleteFragment(n);else{var a=vp.parent(n,o.anchor.path);fp.isVoid(n,a)&&Qp.delete(n)}}},paste:function(e,t,n){$k.set(n,!0);var r,o=e;if(!n.getConfig().readOnly&&cP(n,o.target)){var i=n.getConfig().customPaste;if(i&&!1===i(n,o))return void $k.set(n,!1);if(!cB||(r=o).clipboardData&&""!==r.clipboardData.getData("text/plain")&&1===r.clipboardData.types.length){o.preventDefault();var a=o.clipboardData;null!=a&&n.insertData(a)}}},dragover:function(e,t,n){if(dP(n,e.target)){var r=fB.toSlateNode(n,e.target);fp.isVoid(n,r)&&e.preventDefault()}},dragstart:function(e,t,n){var r=e;if(dP(n,r.target)&&!n.getConfig().readOnly){var o=fB.toSlateNode(n,r.target),i=fB.findPath(n,o);if(fp.isVoid(n,o)||fp.void(n,{at:i,voids:!0})){var a=fp.range(n,i);Qp.select(n,a)}var u=r.dataTransfer;null!=u&&(t.isDraggingInternally=!0,n.setFragmentData(u))}},dragend:function(e,t,n){var r=e;n.getConfig().readOnly||t.isDraggingInternally&&dP(n,r.target)&&(t.isDraggingInternally=!1)},drop:function(e,t,n){var r=e,o=r.dataTransfer;if(!n.getConfig().readOnly&&dP(n,r.target)&&null!=o&&!(cB&&aB&&o.files.length>0)){r.preventDefault();var i=n.selection,a=fB.findEventRange(n,r);Qp.select(n,a),t.isDraggingInternally&&(i&&Qp.delete(n,{at:i}),t.isDraggingInternally=!1),n.insertData(o),n.isFocused()||n.focus()}}},DP=1,CP=function(){function e(e){var t=this;this.id=DP++,this.$textArea=null,this.$progressBar=hg('<div class="w-e-progress-bar"></div>'),this.$maxLengthInfo=hg('<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=Cv((function(){var e=t.editorInstance;!function(e,t){var n=e.isComposing,r=e.isUpdatingSelection,o=e.isDraggingInternally;if(!(t.getConfig().readOnly||n||r||o)){var i=fB.findDocumentOrShadowRoot(t),a=i.activeElement,u=fB.toDOMNode(t,t),s=i.getSelection();if(a===u?(e.latestElement=a,Rk.set(t,!0)):Rk.delete(t),!s)return Qp.deselect(t);var l=s.anchorNode,c=s.focusNode,f=cP(t,l)||fP(t,l),d=cP(t,c)||fP(t,c);if(f&&d){var p=fB.toSlateRange(t,s,{exactMatch:!1,suppressThrow:!1});Qp.select(t,p)}else Qp.deselect(t)}}(t,e)}),100);var n=hg(e);if(0===n.length)throw new Error("Cannot find textarea DOM by selector '"+e+"'");this.$box=n;var r=hg('<div class="w-e-text-container"></div>');r.append(this.$progressBar),r.append(this.$maxLengthInfo),n.append(r);var o=hg('<div class="w-e-scroll"></div>');r.append(o),this.$scroll=o,this.$textAreaContainer=r,lT((function(){var e=t.editorInstance,n=fB.getWindow(e);n.document.addEventListener("selectionchange",t.onDOMSelectionChange),e.on("destroyed",(function(){n.document.removeEventListener("selectionchange",t.onDOMSelectionChange)})),r.on("click",(function(){return e.hidePanelOrModal()})),e.on("change",t.changeViewState.bind(t));var o=e.getConfig().onChange;o&&e.on("change",(function(){return o(e)})),t.onFocusAndOnBlur(),e.on("change",t.changeMaxLengthInfo.bind(t)),t.bindEvent()}))}return Object.defineProperty(e.prototype,"editorInstance",{get:function(){var e=mk.get(this);if(null==e)throw new Error("Can not get editor instance");return e},enumerable:!1,configurable:!0}),e.prototype.bindEvent=function(){var e=this,t=this.$textArea,n=this.$scroll,r=this.editorInstance;null!=t&&(sv(xP,(function(n,o){t.on(o,(function(t){n(t,e,r)}))})),r.getConfig().scroll&&(n.css("overflow-y","auto"),n.on("scroll",Cv((function(){r.emit("scroll")}),100))))},e.prototype.onFocusAndOnBlur=function(){var e=this,t=this.editorInstance,n=t.getConfig(),r=n.onBlur,o=n.onFocus;this.latestEditorSelection=t.selection,t.on("change",(function(){null==e.latestEditorSelection&&null!=t.selection?setTimeout((function(){return o&&o(t)})):null!=e.latestEditorSelection&&null==t.selection&&setTimeout((function(){return r&&r(t)})),e.latestEditorSelection=t.selection}))},e.prototype.changeMaxLengthInfo=function(){var e=this.editorInstance,t=e.getConfig().maxLength;if(t){var n=t-fB.getLeftLengthOfMaxLength(e);this.$maxLengthInfo[0].innerHTML=n+"/"+t}},e.prototype.changeProgress=function(e){var t=this.$progressBar;t.css("width",e+"%"),e>=100&&setTimeout((function(){t.hide(),t.css("width","0"),t.show()}),1e3)},e.prototype.changeViewState=function(){var e=this,t=this.editorInstance;rP(this,t),function(e,t){var n,r=t.getConfig().placeholder;if(r){var o=t.isEmpty();if(o&&!e.showPlaceholder&&!e.isComposing){if(null==e.$placeholder){var i=hg('<div class="w-e-text-placeholder">'+r+"</div>");e.$textAreaContainer.append(i),e.$placeholder=i}return e.$placeholder.show(),void(e.showPlaceholder=!0)}!o&&e.showPlaceholder&&(null===(n=e.$placeholder)||void 0===n||n.hide(),e.showPlaceholder=!1)}}(this,t),lT((function(){pP(e,t)}))},e.prototype.destroy=function(){this.$textAreaContainer.remove()},e}();function SP(e){e.removeAttr("width"),e.removeAttr("height"),e.removeAttr("fill"),e.removeAttr("class"),e.removeAttr("t"),e.removeAttr("p-id");var t=e.children();t.length&&SP(t)}function AP(){return hg('<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 OP(){return hg('<div class="w-e-bar-divider"></div>')}function kP(e,t,n,r,o){if(void 0===o&&(o=!1),t){if(r){var i=oB?"cmd":"ctrl";r=r.replace("mod",i)}if(o)r&&(e.attr("data-tooltip",r),e.addClass("w-e-menu-tooltip-v5"),e.addClass("tooltip-right"));else{var a=r?n+"\n"+r:n;e.attr("data-tooltip",a),e.addClass("w-e-menu-tooltip-v5")}}}qA("match",(function(e,t,n){return[function(t){var n=_E(this),r=null==t?void 0:Cx(t,e);return r?vx(r,t,n):new RegExp(t)[e](TC(n))},function(e){var r=hx(this),o=TC(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return oO(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],l=0;null!==(u=oO(r,o));){var c=TC(u[0]);s[l]=c,""===c&&(r.lastIndex=XA(o,CD(r.lastIndex),a)),l++}return 0===l?null:s}]}));var BP=function(){function e(e,t,n){var r=this;void 0===n&&(n=!1),this.$elem=hg('<div class="w-e-bar-item"></div>'),this.$button=hg('<button type="button"></button>'),this.disabled=!1,this.menu=t;var o=t.tag,i=t.width;if("button"!==o)throw new Error("Invalid tag '"+o+"', expected 'button'");var a=t.title,u=t.hotkey,s=void 0===u?"":u,l=t.iconSvg,c=void 0===l?"":l,f=this.$button;if(c){var d=hg(c);SP(d),f.append(d)}else f.text(a);kP(f,c,a,s,n),n&&c&&f.append(hg('<span class="title">'+a+"</span>")),i&&f.css("width",i+"px"),f.attr("data-menu-key",e),this.$elem.append(f),lT((function(){return r.init()}))}return e.prototype.init=function(){var e=this;this.setActive(),this.setDisabled(),this.$button.on("click",(function(t){t.preventDefault(),HP(e).hidePanelOrModal(),e.disabled||(e.exec(),e.onButtonClick())}))},e.prototype.exec=function(){var e=HP(this),t=this.menu,n=t.getValue(e);t.exec(e,n)},e.prototype.setActive=function(){var e=HP(this),t=this.$button,n="active";this.menu.isActive(e)?t.addClass(n):t.removeClass(n)},e.prototype.setDisabled=function(){var e=HP(this),t=this.$button,n=this.menu.isDisabled(e);(null==e.selection||e.isDisabled())&&(n=!0),this.menu.alwaysEnable&&(n=!1);var r="disabled";n?t.addClass(r):t.removeClass(r),this.disabled=n},e.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()},e}(),FP=function(e){function t(t,n,r){return void 0===r&&(r=!1),e.call(this,t,n,r)||this}return gO(t,e),t.prototype.onButtonClick=function(){},t}(BP),TP=function(){function e(e){this.isShow=!1,this.showTime=0,this.record(e)}return e.prototype.record=function(e){var t=Ck.get(e);null==t&&(t=new Set,Ck.set(e,t)),t.add(this),Sk.set(this,e)},e.prototype.renderContent=function(e){var t=this.$elem;t.empty(),t.append(e);var n=this.genSelfElem();n&&t.append(n)},e.prototype.appendTo=function(e){var t=this.$elem;e.append(t)},e.prototype.show=function(){if(!this.isShow){this.showTime=Date.now(),this.$elem.show(),this.isShow=!0;var e=Sk.get(this);e&&e.emit("modalOrPanelShow",this)}},e.prototype.hide=function(){if(this.isShow&&!(Date.now()-this.showTime<200)){this.$elem.hide(),this.isShow=!1;var e=Sk.get(this);e&&e.emit("modalOrPanelHide")}},e}(),_P=function(e){function t(t){var n=e.call(this,t)||this;return n.type="dropPanel",n.$elem=hg('<div class="w-e-drop-panel"></div>'),n}return gO(t,e),t.prototype.genSelfElem=function(){return null},t}(TP),PP=function(e){function t(t,n,r){void 0===r&&(r=!1);var o=e.call(this,t,n,r)||this;if(o.dropPanel=null,o.menu=n,n.showDropPanel){var i=AP();o.$button.append(i)}return o}return gO(t,e),t.prototype.onButtonClick=function(){this.menu.showDropPanel&&this.handleDropPanel()},t.prototype.handleDropPanel=function(){var e=this.menu;if(null!=e.getPanelContentElem){var t=HP(this);if(null==this.dropPanel){var n=new _P(t),r=e.getPanelContentElem(t);n.renderContent(r),n.appendTo(this.$elem),n.show(),this.dropPanel=n}else{var o=this.dropPanel;o.isShow?o.hide():(r=e.getPanelContentElem(t),o.renderContent(r),o.show())}var i=this.dropPanel;if(i.isShow){var a=this.$elem,u=a.offset().left,s=a.parents(".w-e-bar");u-s.offset().left>=s.width()/2?i.$elem.css({left:"none",right:"0"}):i.$elem.css({left:"0",right:"none"})}}},t}(BP),jP=function(e){function t(t,n){void 0===n&&(n=0);var r=e.call(this,t)||this;r.type="modal",r.$elem=hg('<div class="w-e-modal"></div>'),r.width=0,n&&(r.width=n);var o=r.$elem;return o.on("click",(function(e){return e.stopPropagation()})),o.on("keyup",(function(e){"Escape"===e.code&&(r.hide(),t.restoreSelection())})),r}return gO(t,e),t.prototype.genSelfElem=function(){var e=this,t=hg('<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>'),n=Sk.get(this);return t.on("click",(function(){e.hide(),null==n||n.restoreSelection()})),t},t.prototype.setStyle=function(e){var t=this.width,n=this.$elem;n.attr("style",""),t&&n.css("width",t+"px"),n.css(e)},t}(TP);function IP(e,t,n){var r=hg('<label class="babel-container"></label>');r.append("<span>"+e+"</span>");var o=hg('<input type="text" id="'+t+'" placeholder="'+(n||"")+'">');return r.append(o),[r[0],o[0]]}function NP(e,t){var n=hg('<div class="button-container"></div>'),r=hg('<button type="button" id="'+e+'">'+t+"</button>");return n.append(r),[n[0],r[0]]}var LP=function(e){function t(t,n,r){void 0===r&&(r=!1);var o=e.call(this,t,n,r)||this;return o.$body=hg("body"),o.modal=null,o.menu=n,o}return gO(t,e),t.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},t.prototype.getPosition=function(){var e=HP(this),t=this.menu.getModalPositionNode(e);return ip.isElement(t)?P_(e,t,"modal"):__(e)},t.prototype.handleModal=function(){var e=HP(this),t=this.menu;if(null==this.modal){var n=new jP(e,t.modalWidth);this.renderAndShowModal(n,!0),this.modal=n}else(n=this.modal).isShow?n.hide():this.renderAndShowModal(n,!1)},t.prototype.renderAndShowModal=function(e,t){void 0===t&&(t=!1);var n=HP(this),r=this.menu;if(null!=r.getModalContentElem){var o=fB.getTextarea(n),i=fB.getToolbar(n),a=((null==i?void 0:i.getConfig())||{}).modalAppendToBody,u=r.getModalContentElem(n);if(e.renderContent(u),a)e.setStyle({left:"0",right:"0"});else{var s=this.getPosition();e.setStyle(s)}t&&(a?e.appendTo(this.$body):e.appendTo(o.$textAreaContainer)),e.show(),a||j_(n,e.$elem),setTimeout((function(){n.blur()}))}},t}(BP),RP=function(e){function t(t,n){var r=e.call(this,t)||this;return r.type="selectList",r.$elem=hg('<div class="w-e-select-list"></div>'),n&&r.$elem.css("width",n+"px"),r.$elem.on("click",(function(e){e.stopPropagation()})),r}return gO(t,e),t.prototype.renderList=function(e){var t=this.$elem;t.empty();var n=hg("<ul></ul>");e.forEach((function(e){var t=e.value,r=e.text,o=e.selected,i=e.styleForRenderMenuList,a=hg('<li data-value="'+t+'"></li>');if(i&&a.css(i),o){var u=hg('<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>');a.append(u),a.addClass("selected")}a.append(hg('<span data-value="'+t+'">'+r+"</span>")),a.attr("title",r),n.append(a)})),t.append(n)},t.prototype.genSelfElem=function(){return null},t}(TP),MP=function(){function e(e,t,n){var r=this;void 0===n&&(n=!1),this.$elem=hg('<div class="w-e-bar-item"></div>'),this.$button=hg('<button type="button" class="select-button"></button>'),this.disabled=!1,this.selectList=null;var o=t.tag,i=t.title,a=t.width,u=t.iconSvg,s=void 0===u?"":u,l=t.hotkey,c=void 0===l?"":l;if("select"!==o)throw new Error("Invalid tag '"+o+"', expected 'select'");var f=this.$button;a&&f.css("width",a+"px"),f.attr("data-menu-key",e),kP(f,s,i,c,n),this.$elem.append(f),this.menu=t,lT((function(){return r.init()}))}return e.prototype.init=function(){var e=this;this.setSelectedValue(),this.$button.on("click",(function(t){t.preventDefault(),HP(e).hidePanelOrModal(),e.trigger()}))},e.prototype.trigger=function(){var e=this,t=HP(this);if(!t.isDisabled()&&!this.disabled){var n=this.menu;if(null==this.selectList){this.selectList=new RP(t,n.selectPanelWidth);var r=this.selectList,o=n.getOptions(t);r.renderList(o),r.appendTo(this.$elem),r.show(),r.$elem.on("click","li",(function(t){var n=t.target;if(null!=n){t.preventDefault();var r=hg(n).attr("data-value");e.onChange(r)}}))}else(r=this.selectList).isShow?r.hide():(o=n.getOptions(t),r.renderList(o),r.show())}},e.prototype.onChange=function(e){var t=HP(this),n=this.menu;n.exec&&n.exec(t,e)},e.prototype.setSelectedValue=function(){var e=HP(this),t=this.menu,n=t.getValue(e),r=function(e,t){for(var n=e.length,r="",o=0;o<n;o++){var i=e[o];if(i.value===t){r=i.text;break}}return r}(t.getOptions(e),n.toString()),o=this.$button,i=AP();o.empty(),o.text(r),o.append(i)},e.prototype.setDisabled=function(){var e=HP(this),t=this.menu.isDisabled(e),n=this.$button;(null==e.selection||e.isDisabled())&&(t=!0);var r="disabled";t?n.addClass(r):n.removeClass(r),this.disabled=t},e.prototype.changeMenuState=function(){this.setSelectedValue(),this.setDisabled()},e}(),zP=function(){function e(e){this.$elem=hg('<div class="w-e-bar-item w-e-bar-item-group"></div>'),this.$container=hg('<div class="w-e-bar-item-menus-container"></div>'),this.$button=hg('<button type="button"></button>');var t=e.key,n=e.iconSvg,r=e.title,o=this.$elem,i=this.$button;if(n){var a=hg(n);SP(a),i.append(a)}else i.text(r);i.attr("data-menu-key",t);var u=AP();i.append(u),o.append(i);var s=this.$container;o.append(s);var l=this.createObserver();this.observe(l)}return e.prototype.appendBarItem=function(e){var t=e.$elem;this.$container.append(t)},e.prototype.observe=function(e){var t=this.$container;e.observe(t[0],{childList:!0,subtree:!0,attributes:!0})},e.prototype.createObserver=function(){var e=this,t=this.$container,n=this.$button,r=new MutationObserver((function(){var o=t.find("button"),i=o.length;if(0!==i){var a=0;o.each((function(e){hg(e).hasClass("disabled")&&a++})),r.disconnect(),a===i?n.addClass("disabled"):n.removeClass("disabled"),e.observe(r)}}));return r},e}(),$P=new WeakMap;function HP(e){var t=Dk.get(e);if(null==t)throw new Error("Can not get editor instance");return t}function VP(e,t,n){void 0===n&&(n=!1);var r=$P.get(t);if(r)return r;var o=t.tag;if("button"===o){var i=t.showDropPanel,a=t.showModal;r=i?new PP(e,t,n):a?new LP(e,t,n):new FP(e,t,n)}if("select"===o&&(r=new MP(e,t,n)),null==r)throw new Error("Invalid tag in menu "+JSON.stringify(t));return $P.set(t,r),r}function UP(e,t){var n=e.selection;return null!=n&&!kp.isCollapsed(n)&&!fB.getSelectedElems(e).some((function(t){if(e.isVoid(t))return!0;var n=t.type;return!!["pre","code","table"].includes(n)||void 0}))&&!!Ip.isText(t)}var WP=function(){function e(){var e=this;this.$elem=hg('<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=gm((function(){var t=e.isShow,n=e.getSelectedNodeAndMenuKeys()||{},r=n.node,o=void 0===r?null:r,i=n.menuKeys,a=void 0===i?[]:i;null!=o&&e.changeItemsState(),o&&ip.isElement(o)&&t&&e.isSamePath(o,e.prevSelectedNode)||(e.hideAndClean(),null!=o&&(e.registerItems(a),e.setPosition(o),e.show()),e.prevSelectedNode=o)}),200),lT((function(){var t=e.getEditorInstance(),n=e.$elem;n.on("mousedown",(function(e){return e.preventDefault()}),{passive:!1}),fB.getTextarea(t).$textAreaContainer.append(n),t.on("change",e.changeHoverbarState);var r=e.hideAndClean.bind(e);t.on("scroll",r),t.on("fullScreen",r),t.on("unFullScreen",r)}))}return e.prototype.getMenus=function(){return this.menus},e.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},e.prototype.checkPositionBottom=function(){var e=this.$elem,t=!1,n=window.innerHeight;n&&n>=360&&n-e[0].getBoundingClientRect().bottom<360&&(t=!0),t?e.addClass("w-e-bar-bottom"):e.removeClass("w-e-bar-bottom")},e.prototype.show=function(){this.$elem.removeClass("w-e-bar-hidden").addClass("w-e-bar-show"),this.isShow=!0,this.checkPositionBottom()},e.prototype.changeItemsState=function(){var e=this;lT((function(){e.hoverbarItems.forEach((function(e){e.changeMenuState()}))}))},e.prototype.registerItems=function(e){var t=this,n=this.$elem;e.forEach((function(e){if("|"!==e)t.registerSingleItem(e);else{var r=OP();n.append(r)}}))},e.prototype.registerSingleItem=function(e){var t=this.getEditorInstance(),n=this.menus,r=n[e];if(null==r){var o=hB[e];if(null==o)throw new Error("Not found menu item factory by key '"+e+"'");if("function"!=typeof o)throw new Error("Menu item factory (key='"+e+"') is not a function");r=o(),n[e]=r}var i=VP(e,r);this.hoverbarItems.push(i),Dk.set(i,t),this.$elem.append(i.$elem)},e.prototype.setPosition=function(e){var t=this.getEditorInstance(),n=this.$elem;if(n.attr("style",""),ip.isElement(e)){var r=P_(t,e,"bar");return n.css(r),void j_(t,n)}if(Ip.isText(e))return r=__(t),n.css(r),void j_(t,n);throw new Error("hoverbar.setPosition error, current selected node is not elem nor text")},e.prototype.getSelectedNodeAndMenuKeys=function(){var e=this.getEditorInstance();if(null==e.selection)return null;var t=this.getHoverbarKeysConf(),n=null,r=[],o=function(o){var i=t[o],a=i.match,u=i.menuKeys,s=void 0===u?[]:u,l=a||function(e,t){return fB.checkNodeType(t,o)},c=mO(fp.nodes(e,{match:function(t){return l(e,t)},universal:!0}),1)[0];if(null!=c)return n=c[0],r=s,"break"};for(var i in t)if("break"===o(i))break;return null==n||0===r.length?null:{node:n,menuKeys:r}},e.prototype.getEditorInstance=function(){var e=Ek.get(this);if(null==e)throw new Error("Can not get editor instance");return e},e.prototype.getHoverbarKeysConf=function(){var e=this.getEditorInstance().getConfig().hoverbarKeys,t=void 0===e?{}:e,n=t.text;return n&&null==n.match&&(n.match=UP),t},e.prototype.isSamePath=function(e,t){if(null==e||null==t)return!1;var n=fB.findPath(null,e),r=fB.findPath(null,t);return wp.equals(n,r)},e.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},e}();function GP(e,t,n,r){if(Fk.set(e,t),Tk.set(e,n),ip.isElement(e)){var o=e.children;if((void 0===o?[]:o).forEach((function(t,n){return GP(t,n,e,r)})),fp.isVoid(r,e)){var i=mO(vp.texts(e),1),a=mO(i[0],1)[0];Fk.set(a,0),Tk.set(a,e)}}}function qP(e){var t,n=e.selector,r=void 0===n?"":n,o=e.config,i=void 0===o?{}:o,a=e.content,u=e.html,s=e.plugins,l=void 0===s?[]:s,c=(e=>{var t=e,{apply:n}=t;return t.history={undos:[],redos:[]},t.redo=()=>{var{history:e}=t,{redos:n}=e;if(n.length>0){var r=n[n.length-1];BC.withoutSaving(t,(()=>{fp.withoutNormalizing(t,(()=>{for(var e of r)t.apply(e)}))})),e.redos.pop(),e.undos.push(r)}},t.undo=()=>{var{history:e}=t,{undos:n}=e;if(n.length>0){var r=n[n.length-1];BC.withoutSaving(t,(()=>{fp.withoutNormalizing(t,(()=>{var e=r.map(bp.inverse).reverse();for(var n of e)t.apply(n)}))})),e.redos.push(r),e.undos.pop()}},t.apply=e=>{var r,o,{operations:i,history:a}=t,{undos:u}=a,s=u[u.length-1],l=s&&s[s.length-1],c=(r=e,!(!(o=l)||"set_selection"!==r.type||"set_selection"!==o.type)),f=BC.isSaving(t),d=BC.isMerging(t);if(null==f&&(f=((e,t)=>"set_selection"!==e.type||null!=e.properties&&null!=e.newProperties)(e)),f){if(null==d&&(d=null!=s&&(0!==i.length||((e,t)=>"set_selection"===e.type||!(!t||"insert_text"!==e.type||"insert_text"!==t.type||e.offset!==t.offset+t.text.length||!wp.equals(e.path,t.path))||!(!t||"remove_text"!==e.type||"remove_text"!==t.type||e.offset+e.text.length!==t.offset||!wp.equals(e.path,t.path)))(e,l)||c)),s&&d)c&&s.pop(),s.push(e);else{var p=[e];u.push(p)}for(;u.length>100;)u.shift();(e=>"set_selection"!==e.type)(e)&&(a.redos=[])}n(e)},t})(function(e){var t=e,n=t.insertText,r=t.insertNode,o=t.insertFragment,i=t.dangerouslyInsertHtml;return t.insertText=function(e){if(t.getConfig().maxLength){var r=fB.getLeftLengthOfMaxLength(t);r<=0||(r<e.length?n(e.slice(0,r)):n(e))}else n(e)},t.insertNode=function(e){if(t.getConfig().maxLength){var n=fB.getLeftLengthOfMaxLength(t);n<=0||n<vp.string(e).length||r(e)}else r(e)},t.insertFragment=function(e){if(t.getConfig().maxLength)if(1!==e.length)e.forEach((function(e){t.insertNode(e)}));else{var n=e[0];if(fB.getLeftLengthOfMaxLength(t)<vp.string(n).length)return;o(e)}else o(e)},t.dangerouslyInsertHtml=function(e,n){if(void 0===e&&(e=""),void 0===n&&(n=!1),e)if(t.getConfig().maxLength){var r=fB.getLeftLengthOfMaxLength(t);if(!(r<=0)){var o=document.createElement("div");o.innerHTML=e,r<Array.from(o.childNodes).reduce((function(e,t){var n=t.nodeType,r=t.nodeName;return t?n===Wk.TEXT_NODE?e+(t.textContent||""):n===Wk.ELEMENT_NODE?n_.has(r.toLowerCase())?e:e+(t.textContent||""):e:e}),"").length||i(e,n)}}else i(e,n)},t}(function(e){var t=e;return t.on=function(e,n){var r=A_(t);if(r.on(e,n),"destroyed"===e&&k_(t,n),"destroyed"!==e){var o=function(){return r.off(e,n)};r.on("destroyed",o),k_(t,o)}},t.once=function(e,n){A_(t).once(e,n)},t.off=function(e,n){A_(t).off(e,n)},t.emit=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=A_(t);o.emit.apply(o,bO([e],mO(n))),"destroyed"===e&&(B_(t).forEach((function(e){return o.off("destroyed",e)})),F_(t))},t}(function(e){var t=e;return t.select=function(e){Qp.select(t,e)},t.deselect=function(){var n=t.selection,r=fB.findDocumentOrShadowRoot(t).getSelection();r&&r.rangeCount>0&&r.removeAllRanges(),n&&Qp.deselect(e)},t.move=function(t,n){void 0===n&&(n=!1),t&&(t<0||Qp.move(e,{distance:t,unit:"character",reverse:n}))},t.moveReverse=function(e){t.move(e,!0)},t.restoreSelection=function(){var e=Mk.get(t);null!=e&&(t.focus(),Qp.select(t,e))},t.getSelectionPosition=function(){return __(t)},t.getNodePosition=function(e){return P_(t,e)},t.isSelectedAll=function(){var e=t.selection;if(null==e)return!1;var n=mO(kp.edges(e),2),r=n[0],o=n[1],i=mO(fp.edges(t,[]),2),a=i[0],u=i[1];return!(!Cp.equals(r,a)||!Cp.equals(o,u))},t.selectAll=function(){var e=fp.start(t,[]),n=fp.end(t,[]);Qp.select(t,{anchor:e,focus:n})},t}(function(e){var t=e,n=t.onChange,r=t.insertText,o=t.apply,i=t.deleteBackward;return t.insertText=function(e){t.getConfig().readOnly||r(e)},t.apply=function(e){var n,r,i,a,u,s,l,c,f=[];switch(e.type){case"insert_text":case"remove_text":case"set_node":try{for(var d=yO(fp.levels(t,{at:e.path})),p=d.next();!p.done;p=d.next()){var h=mO(p.value,2),g=h[0],v=h[1],y=fB.findKey(t,g);f.push([v,y])}}catch(O){n={error:O}}finally{try{p&&!p.done&&(r=d.return)&&r.call(d)}finally{if(n)throw n.error}}break;case"insert_node":case"remove_node":case"merge_node":case"split_node":try{for(var m=yO(fp.levels(t,{at:wp.parent(e.path)})),b=m.next();!b.done;b=m.next()){var w=mO(b.value,2);g=w[0],v=w[1],y=fB.findKey(t,g),f.push([v,y])}}catch(O){i={error:O}}finally{try{b&&!b.done&&(a=m.return)&&a.call(m)}finally{if(i)throw i.error}}break;case"move_node":try{for(var E=yO(fp.levels(t,{at:wp.common(wp.parent(e.path),wp.parent(e.newPath))})),x=E.next();!x.done;x=E.next()){var D=mO(x.value,2);g=D[0],v=D[1],y=fB.findKey(t,g),f.push([v,y])}}catch(O){u={error:O}}finally{try{x&&!x.done&&(s=E.return)&&s.call(E)}finally{if(u)throw u.error}}}o(e);try{for(var C=yO(f),S=C.next();!S.done;S=C.next()){var A=mO(S.value,2);v=A[0],y=A[1],g=mO(fp.node(t,v),1)[0],Nk.set(g,y)}}catch(O){l={error:O}}finally{try{S&&!S.done&&(c=C.return)&&c.call(C)}finally{if(l)throw l.error}}},t.deleteBackward=function(n){if("line"!==n)return i(n);if(e.selection&&kp.isCollapsed(e.selection)){var r=fp.above(e,{match:function(t){return fp.isBlock(e,t)},at:e.selection});if(r){var o=mO(r,2)[1],a=fp.range(e,o,e.selection.anchor),u=function(e,t){var n=fp.range(e,kp.end(t)),r=Array.from(fp.positions(e,{at:t})),o=0,i=r.length,a=Math.floor(i/2);if(pT(e,fp.range(e,r[o]),n))return fp.range(e,r[o],n);if(r.length<2)return fp.range(e,r[r.length-1],n);for(;a!==r.length&&a!==o;)pT(e,fp.range(e,r[a]),n)?i=a:o=a,a=Math.floor((o+i)/2);return fp.range(e,r[i],n)}(t,a);kp.isCollapsed(u)||Qp.delete(e,{at:u})}}},t.onChange=function(){var e=t.selection;null!=e&&Mk.set(t,e),t.emit("change"),n()},t.handleTab=function(){t.insertText(" ")},t.getHtml=function(){var e=t.children;return(void 0===e?[]:e).map((function(e){return cT(e,t)})).join("")},t.getText=function(){var e=t.children;return(void 0===e?[]:e).map((function(e){return vp.string(e)})).join("\n")},t.getSelectionText=function(){var n=t.selection;return null==n?"":fp.string(e,n)},t.getElemsByType=function(e,n){var r,o;void 0===n&&(n=!1);var i=[],a=fp.nodes(t,{at:[],universal:!0});try{for(var u=yO(a),s=u.next();!s.done;s=u.next()){var l=mO(s.value,1)[0];if(ip.isElement(l)&&(n?l.type.indexOf(e)>=0:l.type===e)){var c=fT(fB.findKey(t,l).id);i.push(vO(vO({},l),{id:c}))}}}catch(f){r={error:f}}finally{try{s&&!s.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}return i},t.getElemsByTypePrefix=function(e){return t.getElemsByType(e,!0)},t.isEmpty=function(){var e=t.children,n=void 0===e?[]:e;if(n.length>1)return!1;var r=n[0];if(null==r)return!0;if(ip.isElement(r)&&"paragraph"===r.type){var o=r.children,i=void 0===o?[]:o;if(i.length>1)return!1;var a=i[0];if(null==a)return!0;if(Ip.isText(a)&&""===a.text)return!0}return!1},t.clear=function(){Qp.delete(t,{at:{anchor:fp.start(t,[]),focus:fp.end(t,[])}}),0===t.children.length&&Qp.insertNodes(t,[{type:"paragraph",children:[{text:""}]}])},t.getParentNode=function(e){return fB.getParentNode(t,e)},t.dangerouslyInsertHtml=function(e,n){if(void 0===e&&(e=""),void 0===n&&(n=!1),e){var r=document.createElement("div");r.innerHTML=e;var o=Array.from(r.childNodes);if(0!==(o=o.filter((function(e){var t=e.nodeType,n=e.nodeName;return t===Wk.TEXT_NODE||t===Wk.ELEMENT_NODE&&!n_.has(n.toLowerCase())}))).length){var i=t.selection;if(null!=i){var a=null;fB.isSelectedEmptyParagraph(t)&&!n&&(a=[i.focus.path[0]]),r.setAttribute("hidden","true"),document.body.appendChild(r);var u=0;o.forEach((function(e){var n=e.nodeType,r=e.nodeName,o=e.textContent,i=void 0===o?"":o;if(n!==Wk.TEXT_NODE)if("BR"!==r){var a=e,s=!1;if(hT.includes(r.toLowerCase()))s=!0;else for(var l in yT)if(a.matches(l)){s=!0;break}if(s){var c=KT(hg(a),t);return Array.isArray(c)?(c.forEach((function(e){return r_(t,e)})),u++):(r_(t,c),u++),void(fB.isSelectedVoidNode(t)&&t.move(1))}var f=window.getComputedStyle(a).display;fB.isSelectedEmptyParagraph(t)||f.indexOf("inline")<0&&t.insertBreak(),t.dangerouslyInsertHtml(a.innerHTML,!0)}else t.insertText("\n");else{if(!i||!i.trim())return;t.insertNode({text:i})}})),u&&a&&fB.isEmptyPath(t,a)&&Qp.removeNodes(t,{at:a}),r.remove()}}}},t.setHtml=function(e){void 0===e&&(e="");var n=t.isDisabled(),r=t.isFocused(),o=JSON.stringify(t.selection);t.enable(),t.focus(),t.clear();var i=YT(t,e);if(Qp.insertFragment(t,i),r||(t.deselect(),t.blur()),n&&(t.deselect(),t.disable()),t.isFocused())try{t.select(JSON.parse(o))}catch(a){t.select(fp.start(t,[]))}},t}(function(e){var t=e;return t.getAllMenuKeys=function(){var e=[];for(var t in hB)e.push(t);return e},t.getConfig=function(){var e=Ak.get(t);if(null==e)throw new Error("Can not get editor config");return e},t.getMenuConfig=function(e){var n=t.getConfig().MENU_CONF;return(void 0===n?{}:n)[e]||{}},t.alert=function(e,n){void 0===n&&(n="info");var r=t.getConfig().customAlert;r&&r(e,n)},t}((t=o_((()=>{var e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:t=>{for(var n of fp.pathRefs(e))Ep.transform(n,t);for(var r of fp.pointRefs(e))Sp.transform(r,t);for(var o of fp.rangeRefs(e))Bp.transform(o,t);var i=new Set,a=[],u=e=>{if(e){var t=e.join(",");i.has(t)||(i.add(t),a.push(e))}},s=Ed.get(e)||[],l=Bd(t);for(var c of s)u(wp.transform(c,t));for(var f of l)u(f);Ed.set(e,a),Qp.transform(e,t),e.operations.push(t),fp.normalize(e),"set_selection"===t.type&&(e.marks=null),xd.get(e)||(xd.set(e,!0),Promise.resolve().then((()=>{xd.set(e,!1),e.onChange(),e.operations=[]})))},addMark:(t,n)=>{var{selection:r}=e;if(r)if(kp.isExpanded(r))Qp.setNodes(e,{[t]:n},{match:Ip.isText,split:!0});else{var o=kd(kd({},fp.marks(e)||{}),{},{[t]:n});e.marks=o,xd.get(e)||e.onChange()}},deleteBackward:t=>{var{selection:n}=e;n&&kp.isCollapsed(n)&&Qp.delete(e,{unit:t,reverse:!0})},deleteForward:t=>{var{selection:n}=e;n&&kp.isCollapsed(n)&&Qp.delete(e,{unit:t})},deleteFragment:t=>{var{selection:n}=e;n&&kp.isExpanded(n)&&Qp.delete(e,{reverse:"backward"===t})},getFragment:()=>{var{selection:t}=e;return t?vp.fragment(e,t):[]},insertBreak:()=>{Qp.splitNodes(e,{always:!0})},insertFragment:t=>{Qp.insertFragment(e,t)},insertNode:t=>{Qp.insertNodes(e,t)},insertText:t=>{var{selection:n,marks:r}=e;if(n){if(r){var o=kd({text:t},r);Qp.insertNodes(e,o)}else Qp.insertText(e,t);e.marks=null}},normalizeNode:t=>{var[n,r]=t;if(!Ip.isText(n))if(ip.isElement(n)&&0===n.children.length)Qp.insertNodes(e,{text:""},{at:r.concat(0),voids:!0});else for(var o=!fp.isEditor(n)&&ip.isElement(n)&&(e.isInline(n)||0===n.children.length||Ip.isText(n.children[0])||e.isInline(n.children[0])),i=0,a=0;a<n.children.length;a++,i++){var u=vp.get(e,r);if(!Ip.isText(u)){var s=n.children[a],l=u.children[i-1],c=a===n.children.length-1;(Ip.isText(s)||ip.isElement(s)&&e.isInline(s))!==o?(Qp.removeNodes(e,{at:r.concat(i),voids:!0}),i--):ip.isElement(s)?e.isInline(s)&&(null!=l&&Ip.isText(l)?c&&(Qp.insertNodes(e,{text:""},{at:r.concat(i+1),voids:!0}),i++):(Qp.insertNodes(e,{text:""},{at:r.concat(i),voids:!0}),i++)):null!=l&&Ip.isText(l)&&(Ip.equals(s,l,{loose:!0})?(Qp.mergeNodes(e,{at:r.concat(i),voids:!0}),i--):""===l.text?(Qp.removeNodes(e,{at:r.concat(i-1),voids:!0}),i--):""===s.text&&(Qp.removeNodes(e,{at:r.concat(i),voids:!0}),i--))}}},removeMark:t=>{var{selection:n}=e;if(n)if(kp.isExpanded(n))Qp.unsetNodes(e,t,{match:Ip.isText,split:!0});else{var r=kd({},fp.marks(e)||{});delete r[t],e.marks=r,xd.get(e)||e.onChange()}}};return e})()),t.id="wangEditor-"+dB++,t.isDestroyed=!1,t.isFullScreen=!1,t.focus=function(e){if(fB.toDOMNode(t,t).focus({preventScroll:!0}),Rk.set(t,!0),e){var n=fp.end(t,[]);Qp.select(t,n)}else{var r=Mk.get(t);r?Qp.select(t,r):Qp.select(t,fp.start(t,[]))}},t.isFocused=function(){return!!Rk.get(t)},t.blur=function(){fB.toDOMNode(t,t).blur(),Qp.deselect(t),Rk.set(t,!1)},t.updateView=function(){fB.getTextarea(t).changeViewState();var e=fB.getToolbar(t);e&&e.changeToolbarState();var n=fB.getHoverbar(t);n&&n.changeHoverbarState()},t.destroy=function(){if(!t.isDestroyed){var e=fB.getTextarea(t);e.destroy(),yk.delete(t),mk.delete(e);var n=fB.getToolbar(t);n&&(n.destroy(),wk.delete(t),bk.delete(n));var r=fB.getHoverbar(t);r&&(r.destroy(),xk.delete(t),Ek.delete(r)),t.isDestroyed=!0,t.emit("destroyed")}},t.scrollToElem=function(e){if(!t.getConfig().scroll){var n="编辑器禁用了 scroll ,编辑器内容无法滚动,请自行实现该功能";return n+="\nYou has disabled editor scroll, please do this yourself",void console.warn(n)}var r=hg("#"+e);if(0!==r.length){var o=r[0];if(!fB.hasDOMNode(t,o))return n="Element (found by id is '"+e+"') is not in editor DOM",n+="\n 通过 id '"+e+"' 找到的 element 不在 editor DOM 之内",void console.error(n,o);var i=fB.getTextarea(t),a=i.$textAreaContainer,u=i.$scroll,s=r.offset().top,l=a.offset().top;u[0].scrollBy({top:s-l,behavior:"smooth"})}},t.showProgressBar=function(e){e<1||fB.getTextarea(t).changeProgress(e)},t.hidePanelOrModal=function(){var e=Ck.get(t);null!=e&&e.forEach((function(e){return e.hide()}))},t.enable=function(){t.getConfig().readOnly=!1,t.updateView()},t.disable=function(){t.getConfig().readOnly=!0,t.updateView()},t.isDisabled=function(){return t.getConfig().readOnly},t.toDOMNode=function(e){return fB.toDOMNode(t,e)},t.fullScreen=function(){if(!t.isFullScreen){var e=null,n=fB.getToolbar(t);n&&(e=n.$box);var r=fB.getTextarea(t).$box.parent();if(e&&e.parent()[0]!==r[0])throw new Error("Can not set full screen, cause toolbar DOM parent is not equal to textarea DOM parent\n不能设置全屏,因为 toolbar DOM 父节点和 textarea DOM 父节点不一致");r.addClass("w-e-full-screen-container");var o=r.css("z-index");r.attr("data-z-index",o.toString()),t.isFullScreen=!0,t.emit("fullScreen")}},t.unFullScreen=function(){if(t.isFullScreen){var e=fB.getTextarea(t).$box.parent();setTimeout((function(){e.removeClass("w-e-full-screen-container"),t.isFullScreen=!1,t.emit("unFullScreen")}),200)}},t.getEditableContainer=function(){return fB.getTextarea(t).$textAreaContainer[0]},t)))))));if(r&&function(e,t){return XT(e,"data-w-e-textarea",t)}(c,r))throw new Error("Repeated create editor by selector '"+r+"'");var f=function(e){void 0===e&&(e={});var t=vm(pB),n={},r=e.MENU_CONF,o=void 0===r?{}:r;return sv(t,(function(e,t){n[t]=vO(vO({},e),o[t]||{})})),delete e.MENU_CONF,vO({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:n,hoverbarKeys:{},customAlert:function(e,t){window.alert(t+":\n"+e)}},e)}(i);Ak.set(c,f);var d=f.hoverbarKeys,p=void 0===d?{}:d;if(l.forEach((function(e){c=e(c)})),null!=u&&(c.children=YT(c,u)),a&&a.length&&(c.children=a),0===c.children.length&&(c.children=[{type:"paragraph",children:[{text:""}]}]),fB.normalizeContent(c),r){var h=new CP(r);yk.set(c,h),mk.set(h,c),h.changeViewState(),lT((function(){var e=h.$scroll;null!=e&&e.height()<300&&console.warn("编辑区域高度 < 300px 这可能会导致 modal hoverbar 定位异常\nTextarea height < 300px . This may be cause modal and hoverbar position error",e)}));var g=void 0;Object.keys(p).length>0&&(g=new WP,Ek.set(g,c),xk.set(c,g)),c.on("change",(function(){c.hidePanelOrModal()})),c.on("scroll",(function(){c.hidePanelOrModal()}))}else c.children.forEach((function(e,t){return GP(e,t,c,c)}));var v=f.onCreated,y=f.onDestroyed;return v&&c.on("created",(function(){return v(c)})),y&&c.on("destroyed",(function(){return y(c)})),lT((function(){return c.emit("created")})),c}var KP=yA("splice"),XP=EE.TypeError,YP=Math.max,ZP=Math.min;xC({target:"Array",proto:!0,forced:!KP},{splice:function(e,t){var n,r,o,i,a,u,s=jE(this),l=SD(s),c=tC(e,l),f=arguments.length;if(0===f?n=r=0:1===f?(n=0,r=l-c):(n=f-2,r=ZP(YP(xD(t),0),l-c)),l+n-r>9007199254740991)throw XP("Maximum allowed length exceeded");for(o=LD(s,r),i=0;i<r;i++)(a=c+i)in s&&pS(o,i,s[a]);if(o.length=r,n<r){for(i=c;i<l-r;i++)u=i+n,(a=i+r)in s?s[u]=s[a]:delete s[u];for(i=l;i>l-r+n;i--)delete s[i-1]}else if(n>r)for(i=l-r;i>c;i--)u=i+n-1,(a=i+r-1)in s?s[u]=s[a]:delete s[u];for(i=0;i<n;i++)s[i+c]=arguments[i+2];return s.length=l-r+n,o}});var JP=function(){function e(e,t){var n=this;this.$toolbar=hg('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=gm((function(){n.toolbarItems.forEach((function(e){e.changeMenuState()}))}),200),this.config=t;var r=hg(e);if(0===r.length)throw new Error("Cannot find toolbar DOM by selector '"+e+"'");this.$box=r;var o=this.$toolbar;o.on("mousedown",(function(e){return e.preventDefault()}),{passive:!1}),r.append(o),lT((function(){n.registerItems(),n.changeToolbarState(),n.getEditorInstance().on("change",n.changeToolbarState)}))}return e.prototype.getMenus=function(){return this.menus},e.prototype.getConfig=function(){return this.config},e.prototype.registerItems=function(){var e=this,t="",n=this.$toolbar,r=this.config,o=r.toolbarKeys,i=void 0===o?[]:o,a=r.insertKeys,u=void 0===a?{index:0,keys:[]}:a,s=r.excludeKeys,l=void 0===s?[]:s,c=vm(i);u.keys.length>0&&("string"==typeof u.keys&&(u.keys=[u.keys]),u.keys.forEach((function(e,t){c.splice(u.index+t,0,e)})));var f=c.filter((function(e){if("string"==typeof e){if(l.includes(e))return!1}else if(l.includes(e.key))return!1;return!0})),d=f.length;f.forEach((function(r,o){if("|"===r){if(0===o)return;if(o+1===d)return;if("|"===t)return;var i=OP();return n.append(i),void(t=r)}if("string"==typeof r)return e.registerSingleItem(r,e),void(t=r);e.registerGroup(r),t="group"}))},e.prototype.registerGroup=function(e){var t=this,n=this.$toolbar,r=new zP(e),o=e.menuKeys,i=void 0===o?[]:o,a=this.config.excludeKeys,u=void 0===a?[]:a;i.forEach((function(e){u.includes(e)||t.registerSingleItem(e,r)})),n.append(r.$elem)},e.prototype.registerSingleItem=function(e,t){var n=this.getEditorInstance(),r=t instanceof zP,o=this.menus,i=o[e];if(null==i){var a=hB[e];if(null==a)throw new Error("Not found menu item factory by key '"+e+"'");if("function"!=typeof a)throw new Error("Menu item factory (key='"+e+"') is not a function");i=a(),o[e]=i}else console.warn("Duplicated toolbar menu key '"+e+"'\n重复注册了菜单栏 menu '"+e+"'");var u=VP(e,i,r);this.toolbarItems.push(u),Dk.set(u,n),r?t.appendBarItem(u):t.$toolbar.append(u.$elem)},e.prototype.getEditorInstance=function(){var e=bk.get(this);if(null==e)throw new Error("Can not get editor instance");return e},e.prototype.destroy=function(){this.$toolbar.remove(),this.menus={},this.toolbarItems=[]},e}(),QP=tD.EXISTS,ej=Tx.f,tj=Function.prototype,nj=FE(tj.toString),rj=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,oj=FE(rj.exec);function ij(e){var t=e.server,n=void 0===t?"":t,r=e.fieldName,o=void 0===r?"":r,i=e.maxFileSize,a=void 0===i?10485760:i,u=e.maxNumberOfFiles,s=void 0===u?100:u,l=e.meta,c=void 0===l?{}:l,f=e.metaWithUrl,d=void 0!==f&&f,p=e.headers,h=void 0===p?{}:p,g=e.withCredentials,v=void 0!==g&&g,y=e.timeout,m=void 0===y?1e4:y,b=e.onBeforeUpload,w=void 0===b?function(e){return e}:b,E=e.onSuccess,x=void 0===E?function(e,t){}:E,D=e.onError,C=void 0===D?function(e,t,n){console.error(e.name+" upload error",t,n)}:D,S=e.onProgress,A=void 0===S?function(e){}:S;if(!n)throw new Error("Cannot get upload server address\n没有配置上传地址");if(!o)throw new Error("Cannot get fieldName\n没有配置 fieldName");var O=n;d&&(O=function(e,t){var n=mO(e.split("#"),2),r=n[0],o=n[1],i=[];sv(t,(function(e,t){i.push(t+"="+e)}));var a=i.join("&");return r=r.indexOf("?")>0?r+"&"+a:r+"?"+a,o?r+"#"+o:r}(O,c));var k=new Ub({onBeforeUpload:w,restrictions:{maxFileSize:a,maxNumberOfFiles:s},meta:c}).use(gE,{endpoint:O,headers:h,formData:!0,fieldName:o,bundle:!0,withCredentials:v,timeout:m});return k.on("upload-success",(function(e,t){var n=t.body,r=void 0===n?{}:n;try{x(e,r)}catch(o){console.error("wangEditor upload file - onSuccess error",o)}k.removeFile(e.id)})),k.on("progress",(function(e){e<1||A(e)})),k.on("upload-error",(function(e,t,n){try{C(e,t,n)}catch(r){console.error("wangEditor upload file - onError error",r)}k.removeFile(e.id)})),k.on("restriction-failed",(function(e,t){try{C(e,t)}catch(n){console.error("wangEditor upload file - onError error",n)}k.removeFile(e.id)})),k}function aj(e){return(aj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function uj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){uj(e,t,n[t])}))}return e}function lj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cj(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function fj(e,t,n){return t&&cj(e.prototype,t),n&&cj(e,n),e}function dj(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pj(e,t){if(t&&("object"===aj(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return dj(e)}function hj(e){return(hj=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function gj(e,t){return(gj=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function vj(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&gj(e,t)}ax&&!QP&&ej(tj,"name",{configurable:!0,get:function(){try{return oj(rj,nj(this))[1]}catch(pf){return""}}});var yj={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},mj=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};lj(this,e),this.init(t,n)}return fj(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||yj,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,sj({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),bj=function(){function e(){lj(this,e),this.observers={}}return fj(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach((function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(this.observers[e]){var o=[].concat(this.observers[e]);o.forEach((function(e){e.apply(void 0,n)}))}if(this.observers["*"]){var i=[].concat(this.observers["*"]);i.forEach((function(t){t.apply(t,[e].concat(n))}))}}}]),e}();function wj(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function Ej(e){return null==e?"":""+e}function xj(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}function Dj(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=r(i.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return o()?{}:{obj:e,k:r(i.shift())}}function Cj(e,t,n){var r=Dj(e,t,Object);r.obj[r.k]=n}function Sj(e,t){var n=Dj(e,t),r=n.obj,o=n.k;if(r)return r[o]}function Aj(e,t,n){var r=Sj(e,n);return void 0!==r?r:Sj(t,n)}function Oj(e,t,n){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):Oj(e[r],t[r],n):e[r]=t[r]);return e}function kj(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Bj={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function Fj(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return Bj[e]})):e}var Tj="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function _j(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),o=e,i=0;i<r.length;++i){if(!o)return;if("string"==typeof o[r[i]]&&i+1<r.length)return;if(void 0===o[r[i]]){for(var a=2,u=r.slice(i,i+a).join(n),s=o[u];void 0===s&&r.length>i+a;)a++,s=o[u=r.slice(i,i+a).join(n)];if(void 0===s)return;if("string"==typeof s)return s;if(u&&"string"==typeof s[u])return s[u];var l=r.slice(i+a).join(n);return l?_j(s,l,n):void 0}o=o[r[i]]}return o}}var Pj=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return lj(this,t),n=pj(this,hj(t).call(this)),Tj&&bj.call(dj(n)),n.data=e||{},n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),void 0===n.options.ignoreJSONStructure&&(n.options.ignoreJSONStructure=!0),n}return vj(t,bj),fj(t,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];n&&"string"!=typeof n&&(a=a.concat(n)),n&&"string"==typeof n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(a=e.split("."));var u=Sj(this.data,a);return u||!i||"string"!=typeof n?u:_j(this.data&&this.data[e]&&this.data[e][t],n,o)}},{key:"addResource",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(r=t,t=(a=e.split("."))[1]),this.addNamespaces(t),Cj(this.data,a,r),o.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in n)"string"!=typeof n[o]&&"[object Array]"!==Object.prototype.toString.apply(n[o])||this.addResource(e,t,o,n[o],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(a=e.split("."))[1]),this.addNamespaces(t);var u=Sj(this.data,a)||{};r?Oj(u,n,o):u=sj({},u,n),Cj(this.data,a,u),i.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?sj({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),t}(),jj={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,o){var i=this;return e.forEach((function(e){i.processors[e]&&(t=i.processors[e].process(t,n,r,o))})),t}},Ij={},Nj=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return lj(this,t),n=pj(this,hj(t).call(this)),Tj&&bj.call(dj(n)),xj(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,dj(n)),n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=mj.create("translator"),n}return vj(t,bj),fj(t,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS;if(n&&e.indexOf(n)>-1){var i=e.match(this.interpolator.nestingRegexp);if(i&&i.length>0)return{key:e,namespaces:o};var a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(o=a.shift()),e=a.join(r)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}},{key:"translate",value:function(e,n,r){var o=this;if("object"!==aj(n)&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var i=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,a=this.extractFromKey(e[e.length-1],n),u=a.key,s=a.namespaces,l=s[s.length-1],c=n.lng||this.language,f=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&"cimode"===c.toLowerCase()){if(f){var d=n.nsSeparator||this.options.nsSeparator;return l+d+u}return u}var p=this.resolve(e,n),h=p&&p.res,g=p&&p.usedKey||u,v=p&&p.exactUsedKey||u,y=Object.prototype.toString.apply(h),m=["[object Number]","[object Function]","[object RegExp]"],b=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,w=!this.i18nFormat||this.i18nFormat.handleAsObject,E="string"!=typeof h&&"boolean"!=typeof h&&"number"!=typeof h;if(w&&h&&E&&m.indexOf(y)<0&&("string"!=typeof b||"[object Array]"!==y)){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(g,h,sj({},n,{ns:s})):"key '".concat(u," (").concat(this.language,")' returned an object instead of string.");if(i){var x="[object Array]"===y,D=x?[]:{},C=x?v:g;for(var S in h)if(Object.prototype.hasOwnProperty.call(h,S)){var A="".concat(C).concat(i).concat(S);D[S]=this.translate(A,sj({},n,{joinArrays:!1,ns:s})),D[S]===A&&(D[S]=h[S])}h=D}}else if(w&&"string"==typeof b&&"[object Array]"===y)(h=h.join(b))&&(h=this.extendTranslation(h,e,n,r));else{var O=!1,k=!1,B=void 0!==n.count&&"string"!=typeof n.count,F=t.hasDefaultValue(n),T=B?this.pluralResolver.getSuffix(c,n.count):"",_=n["defaultValue".concat(T)]||n.defaultValue;!this.isValidLookup(h)&&F&&(O=!0,h=_),this.isValidLookup(h)||(k=!0,h=u);var P=n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,j=P&&k?void 0:h,I=F&&_!==h&&this.options.updateMissing;if(k||O||I){if(this.logger.log(I?"updateKey":"missingKey",c,l,u,I?_:h),i){var N=this.resolve(u,sj({},n,{keySeparator:!1}));N&&N.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 L=[],R=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&R&&R[0])for(var M=0;M<R.length;M++)L.push(R[M]);else"all"===this.options.saveMissingTo?L=this.languageUtils.toResolveHierarchy(n.lng||this.language):L.push(n.lng||this.language);var z=function(e,t,r){o.options.missingKeyHandler?o.options.missingKeyHandler(e,l,t,I?r:j,I,n):o.backendConnector&&o.backendConnector.saveMissing&&o.backendConnector.saveMissing(e,l,t,I?r:j,I,n),o.emit("missingKey",e,l,t,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&B?L.forEach((function(e){o.pluralResolver.getSuffixes(e).forEach((function(t){z([e],u+t,n["defaultValue".concat(t)]||_)}))})):z(L,u,_))}h=this.extendTranslation(h,e,n,p,r),k&&h===u&&this.options.appendNamespaceToMissingKey&&(h="".concat(l,":").concat(u)),(k||O)&&this.options.parseMissingKeyHandler&&(h=this.options.parseMissingKeyHandler(h))}return h}},{key:"extendTranslation",value:function(e,t,n,r,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,n,r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(sj({},n,{interpolation:sj({},this.options.interpolation,n.interpolation)}));var a,u=n.interpolation&&n.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(u){var s=e.match(this.interpolator.nestingRegexp);a=s&&s.length}var l=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(l=sj({},this.options.interpolation.defaultVariables,l)),e=this.interpolator.interpolate(e,l,n.lng||this.language,n),u){var c=e.match(this.interpolator.nestingRegexp);a<(c&&c.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return o&&o[0]===r[0]&&!n.context?(i.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null):i.translate.apply(i,r.concat([t]))}),n)),n.interpolation&&this.interpolator.reset()}var f=n.postProcess||this.options.postProcess,d="string"==typeof f?[f]:f;return null!=e&&d&&d.length&&!1!==n.applyPostProcessor&&(e=jj.handle(d,e,t,this.options&&this.options.postProcessPassResolved?sj({i18nResolved:r},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,r,o,i,a=this,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var s=a.extractFromKey(e,u),l=s.key;n=l;var c=s.namespaces;a.options.fallbackNS&&(c=c.concat(a.options.fallbackNS));var f=void 0!==u.count&&"string"!=typeof u.count,d=void 0!==u.context&&("string"==typeof u.context||"number"==typeof u.context)&&""!==u.context,p=u.lngs?u.lngs:a.languageUtils.toResolveHierarchy(u.lng||a.language,u.fallbackLng);c.forEach((function(e){a.isValidLookup(t)||(i=e,!Ij["".concat(p[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(Ij["".concat(p[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(p.join(", "),'" won\'t get resolved as namespace "').concat(i,'" 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!!!")),p.forEach((function(n){if(!a.isValidLookup(t)){o=n;var i,s,c=l,p=[c];for(a.i18nFormat&&a.i18nFormat.addLookupKeys?a.i18nFormat.addLookupKeys(p,l,n,e,u):(f&&(i=a.pluralResolver.getSuffix(n,u.count)),f&&d&&p.push(c+i),d&&p.push(c+="".concat(a.options.contextSeparator).concat(u.context)),f&&p.push(c+=i));s=p.pop();)a.isValidLookup(t)||(r=s,t=a.getResource(n,e,s,u))}})))}))}})),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:i}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}]),t}();function Lj(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Rj=function(){function e(t){lj(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=mj.create("languageUtils")}return fj(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=Lj(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=Lj(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=Lj(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("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach((function(e){if(!t){var r=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(r)||(t=r)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find((function(e){if(0===e.indexOf(r))return e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[],i=function(e){e&&(n.isSupportedCode(e)?o.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),r.forEach((function(e){o.indexOf(e)<0&&i(n.formatLanguageCode(e))})),o}}]),e}(),Mj=[{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}],zj={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}};function $j(){var e={};return Mj.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:zj[t.fc]}}))})),e}var Hj=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};lj(this,e),this.languageUtils=t,this.options=n,this.logger=mj.create("pluralResolver"),this.rules=$j()}return fj(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=this.getRule(e);return t&&t.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){return this.getSuffixes(e).map((function(e){return t+e}))}},{key:"getSuffixes",value:function(e){var t=this,n=this.getRule(e);return n?n.numbers.map((function(n){return t.getSuffix(e,n)})):[]}},{key:"getSuffix",value:function(e,t){var n=this,r=this.getRule(e);if(r){var o=r.noAbs?r.plurals(t):r.plurals(Math.abs(t)),i=r.numbers[o];this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var a=function(){return n.options.prepend&&i.toString()?n.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?"_plural_".concat(i.toString()):a():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]?a():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),e}(),Vj=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};lj(this,e),this.logger=mj.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return fj(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:Fj,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?kj(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?kj(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?kj(t.nestingPrefix):t.nestingPrefixEscaped||kj("$t("),this.nestingSuffix=t.nestingSuffix?kj(t.nestingSuffix):t.nestingSuffixEscaped||kj(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.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 t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var o,i,a,u=this,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function l(e){return e.replace(/\$/g,"$$$$")}var c=function(e){if(e.indexOf(u.formatSeparator)<0){var o=Aj(t,s,e);return u.alwaysFormat?u.format(o,void 0,n,sj({},r,t,{interpolationkey:e})):o}var i=e.split(u.formatSeparator),a=i.shift().trim(),l=i.join(u.formatSeparator).trim();return u.format(Aj(t,s,a),l,n,sj({},r,t,{interpolationkey:a}))};this.resetRegExp();var f=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,d=r&&r.interpolation&&r.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return l(e)}},{regex:this.regexp,safeValue:function(e){return u.escapeValue?l(u.escape(e)):l(e)}}].forEach((function(t){for(a=0;o=t.regex.exec(e);){if(void 0===(i=c(o[1].trim())))if("function"==typeof f){var n=f(e,o,r);i="string"==typeof n?n:""}else{if(d){i=o[0];continue}u.logger.warn("missed to pass in variable ".concat(o[1]," for interpolating ").concat(e)),i=""}else"string"==typeof i||u.useRawValueToEscape||(i=Ej(i));var s=t.safeValue(i);if(e=e.replace(o[0],s),d?(t.regex.lastIndex+=s.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,++a>=u.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,r,o=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=sj({},i);function u(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),o="{".concat(r[1]);e=r[0],o=(o=this.interpolate(o,a)).replace(/'/g,'"');try{a=JSON.parse(o),t&&(a=sj({},t,a))}catch(i){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),i),"".concat(e).concat(n).concat(o)}return delete a.defaultValue,e}for(a.applyPostProcessor=!1,delete a.defaultValue;n=this.nestingRegexp.exec(e);){var s=[],l=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var c=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=c.shift(),s=c,l=!0}if((r=t(u.call(this,n[1].trim(),a),a))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=Ej(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),l&&(r=s.reduce((function(e,t){return o.format(e,t,i.lng,sj({},i,{interpolationkey:n[1].trim()}))}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}(),Uj=function(e){function t(e,n,r){var o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return lj(this,t),o=pj(this,hj(t).call(this)),Tj&&bj.call(dj(o)),o.backend=e,o.store=n,o.services=r,o.languageUtils=r.languageUtils,o.options=i,o.logger=mj.create("backendConnector"),o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(r,i.backend,i),o}return vj(t,bj),fj(t,[{key:"queueLoad",value:function(e,t,n,r){var o=this,i=[],a=[],u=[],s=[];return e.forEach((function(e){var r=!0;t.forEach((function(t){var u="".concat(e,"|").concat(t);!n.reload&&o.store.hasResourceBundle(e,t)?o.state[u]=2:o.state[u]<0||(1===o.state[u]?a.indexOf(u)<0&&a.push(u):(o.state[u]=1,r=!1,a.indexOf(u)<0&&a.push(u),i.indexOf(u)<0&&i.push(u),s.indexOf(t)<0&&s.push(t)))})),r||u.push(e)})),(i.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:r}),{toLoad:i,pending:a,toLoadLanguages:u,toLoadNamespaces:s}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),n&&this.store.addResourceBundle(o,i,n),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(n){var r,u,s,l,c;r=n.loaded,u=i,s=Dj(r,[o],Object),l=s.obj,c=s.k,l[c]=l[c]||[],l[c].push(u),function(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}(n.pending,e),t&&n.errors.push(t),0!==n.pending.length||n.done||(Object.keys(n.loaded).forEach((function(e){a[e]||(a[e]=[]),n.loaded[e].length&&n.loaded[e].forEach((function(t){a[e].indexOf(t)<0&&a[e].push(t)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[n](e,t,(function(u,s){u&&s&&o<5?setTimeout((function(){r.read.call(r,e,t,n,o+1,2*i,a)}),i):a(u,s)})):a(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=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."),o&&o();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var i=this.queueLoad(e,t,r,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),o=r[0],i=r[1];this.read(o,i,"read",void 0,void 0,(function(r,a){r&&t.logger.warn("".concat(n,"loading namespace ").concat(i," for language ").concat(o," failed"),r),!r&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(i," for language ").concat(o),a),t.loaded(e,r,a)}))}},{key:"saveMissing",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" 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!!!"):null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,sj({},i,{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),t}();function Wj(){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(e){var t={};if("object"===aj(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===aj(e[2])||"object"===aj(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function Gj(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function qj(){}var Kj=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(lj(this,t),e=pj(this,hj(t).call(this)),Tj&&bj.call(dj(e)),e.options=Gj(n),e.services={},e.logger=mj,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),pj(e,dj(e));setTimeout((function(){e.init(n,r)}),0)}return e}return vj(t,bj),fj(t,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;function r(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof t&&(n=t,t={}),t.whitelist&&!t.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),t.nonExplicitWhitelist&&!t.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=sj({},Wj(),this.options,Gj(t)),this.format=this.options.interpolation.format,n||(n=qj),!this.options.isClone){this.modules.logger?mj.init(r(this.modules.logger),this.options):mj.init(null,this.options);var o=new Rj(this.options);this.store=new Pj(this.options.resources,this.options);var i=this.services;i.logger=mj,i.resourceStore=this.store,i.languageUtils=o,i.pluralResolver=new Hj(o,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),i.interpolator=new Vj(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new Uj(r(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.languageDetector&&(i.languageDetector=r(this.modules.languageDetector),i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=r(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new Nj(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var a=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);a.length>0&&"dev"!==a[0]&&(this.options.lng=a[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var u=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];u.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}));var s=["addResource","addResources","addResourceBundle","removeResourceBundle"];s.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var l=wj(),c=function(){var t=function(t,r){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),l.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),l}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:qj,r=n,o="string"==typeof e?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(o&&"cimode"===o.toLowerCase())return r();var i=[],a=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){i.indexOf(e)<0&&i.push(e)}))};if(o)a(o);else{var u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.forEach((function(e){return a(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return a(e)})),this.services.backendConnector.load(i,this.options.ns,r)}else r(null)}},{key:"reloadResources",value:function(e,t,n){var r=wj();return e||(e=this.languages),t||(t=this.options.ns),n||(n=qj),this.services.backendConnector.reload(e,t,(function(e){r.resolve(),n(e)})),r}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&jj.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=wj();this.emit("languageChanging",e);var o=function(o){e||o||!n.services.languageDetector||(o=[]);var i="string"==typeof o?o:n.services.languageUtils.getBestMatchFromCodes(o);i&&(n.language||(n.language=i,n.languages=n.services.languageUtils.toResolveHierarchy(i)),n.translator.language||n.translator.changeLanguage(i),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(i)),n.loadResources(i,(function(e){var o,a;o=e,(a=i)?(n.language=a,n.languages=n.services.languageUtils.toResolveHierarchy(a),n.translator.changeLanguage(a),n.isLanguageChangingTo=void 0,n.emit("languageChanged",a),n.logger.log("languageChanged",a)):n.isLanguageChangingTo=void 0,r.resolve((function(){return n.t.apply(n,arguments)})),t&&t(o,(function(){return n.t.apply(n,arguments)}))}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t,n){var r=this,o=function e(t,o){var i;if("object"!==aj(o)){for(var a=arguments.length,u=new Array(a>2?a-2:0),s=2;s<a;s++)u[s-2]=arguments[s];i=r.options.overloadTranslationOptionHandler([t,o].concat(u))}else i=sj({},o);i.lng=i.lng||e.lng,i.lngs=i.lngs||e.lngs,i.ns=i.ns||e.ns;var l=r.options.keySeparator||".",c=n?"".concat(n).concat(l).concat(t):t;return r.t(c,i)};return"string"==typeof e?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=n,o}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?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 r=this.languages[0],o=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};if(n.precheck){var u=n.precheck(this,a);if(void 0!==u)return u}return!!this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||!(!a(r,e)||o&&!a(i,e))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=wj();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=wj();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],o=e.filter((function(e){return r.indexOf(e)<0}));return o.length?(this.options.preload=r.concat(o),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){return e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),e?["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(e))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new t(e,n)}},{key:"cloneInstance",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:qj,o=sj({},this.options,n,{isClone:!0}),i=new t(o),a=["store","services","language"];return a.forEach((function(t){i[t]=e[t]})),i.services=sj({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new Nj(i.services,i.options),i.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];i.emit.apply(i,[e].concat(n))})),i.init(o,r),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}}}]),t}(),Xj=new Kj;function Yj(e,t){Xj.addResourceBundle(e,"translation",t,!0,!0)}Xj.init({lng:"zh-CN",resources:{}});var Zj=Xj.t.bind(Xj);Yj("en",{editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}}),Yj("zh-CN",{editor:{more:"更多",justify:"对齐",indent:"缩进",image:"图片",video:"视频"}});var Jj=Mu?{}.toString:function(){return"[object "+Vu(this)+"]"};Mu||au(Object.prototype,"toString",Jj,{unsafe:!0});var Qj,eI=Array.isArray||function(e){return"Array"==Bi(e)},tI=function(){},nI=[],rI=Mi("Reflect","construct"),oI=/^\s*(?:class|function)\b/,iI=Ai(oI.exec),aI=!oI.exec(tI),uI=function(e){if(!Ni(e))return!1;try{return rI(tI,nI,e),!0}catch(t){return!1}},sI=!rI||pi((function(){var e;return uI(uI.call)||!uI(Object)||!uI((function(){e=!0}))||e}))?function(e){if(!Ni(e))return!1;switch(Vu(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return aI||!!iI(oI,Ha(e))}:uI,lI=ba("species"),cI=di.Array,fI=function(e,t){return new(eI(n=e)&&(r=n.constructor,(sI(r)&&(r===cI||eI(r.prototype))||Li(r)&&null===(r=r[lI]))&&(r=void 0)),void 0===r?cI:r)(0===t?0:t);var n,r},dI=Ai([].push),pI=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=sa(s),g=_i(h),v=tl(l,c),y=gu(g),m=0,b=f||fI,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:dI(w,d)}else switch(e){case 4:return!1;case 7:dI(w,d)}return i?-1:r||o?o:w}},hI=[pI(0),pI(1),pI(2),pI(3),pI(4),pI(5),pI(6),pI(7)][0],gI=!!(Qj=[].forEach)&&pi((function(){Qj.call(null,(function(){throw 1}),1)}))?[].forEach:function(e){return hI(this,e,arguments.length>1?arguments[1]:void 0)},vI=function(e){if(e&&e.forEach!==gI)try{La(e,"forEach",gI)}catch(t){e.forEach=gI}};for(var yI in Xl)Xl[yI]&&vI(di[yI]&&di[yI].prototype);vI(Jl),Yj("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"}}),Yj("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 mI={type:"paragraph",renderElem:function(e,t,n){return ry("p",null,t)}},bI="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function wI(e){var t={exports:{}};return e(t,t.exports),t.exports}var EI,xI,DI=function(e){return e&&e.Math==Math&&e},CI=DI("object"==typeof globalThis&&globalThis)||DI("object"==typeof window&&window)||DI("object"==typeof self&&self)||DI("object"==typeof bI&&bI)||function(){return this}()||Function("return this")(),SI=function(e){try{return!!e()}catch(t){return!0}},AI=!SI((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),OI=Function.prototype.call,kI=OI.bind?OI.bind(OI):function(){return OI.apply(OI,arguments)},BI={}.propertyIsEnumerable,FI=Object.getOwnPropertyDescriptor,TI=FI&&!BI.call({1:2},1)?function(e){var t=FI(this,e);return!!t&&t.enumerable}:BI,_I={f:TI},PI=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},jI=Function.prototype,II=jI.bind,NI=jI.call,LI=II&&II.bind(NI),RI=II?function(e){return e&&LI(NI,e)}:function(e){return e&&function(){return NI.apply(e,arguments)}},MI=RI({}.toString),zI=RI("".slice),$I=function(e){return zI(MI(e),8,-1)},HI=CI.Object,VI=RI("".split),UI=SI((function(){return!HI("z").propertyIsEnumerable(0)}))?function(e){return"String"==$I(e)?VI(e,""):HI(e)}:HI,WI=CI.TypeError,GI=function(e){if(null==e)throw WI("Can't call method on "+e);return e},qI=function(e){return UI(GI(e))},KI=function(e){return"function"==typeof e},XI=function(e){return"object"==typeof e?null!==e:KI(e)},YI=function(e){return KI(e)?e:void 0},ZI=function(e,t){return arguments.length<2?YI(CI[e]):CI[e]&&CI[e][t]},JI=RI({}.isPrototypeOf),QI=ZI("navigator","userAgent")||"",eN=CI.process,tN=CI.Deno,nN=eN&&eN.versions||tN&&tN.version,rN=nN&&nN.v8;rN&&(xI=(EI=rN.split("."))[0]>0&&EI[0]<4?1:+(EI[0]+EI[1])),!xI&&QI&&(!(EI=QI.match(/Edge\/(\d+)/))||EI[1]>=74)&&(EI=QI.match(/Chrome\/(\d+)/))&&(xI=+EI[1]);var oN=xI,iN=!!Object.getOwnPropertySymbols&&!SI((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&oN&&oN<41})),aN=iN&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,uN=CI.Object,sN=aN?function(e){return"symbol"==typeof e}:function(e){var t=ZI("Symbol");return KI(t)&&JI(t.prototype,uN(e))},lN=CI.String,cN=function(e){try{return lN(e)}catch(t){return"Object"}},fN=CI.TypeError,dN=function(e){if(KI(e))return e;throw fN(cN(e)+" is not a function")},pN=function(e,t){var n=e[t];return null==n?void 0:dN(n)},hN=CI.TypeError,gN=Object.defineProperty,vN=function(e,t){try{gN(CI,e,{value:t,configurable:!0,writable:!0})}catch(Qj){CI[e]=t}return t},yN=CI["__core-js_shared__"]||vN("__core-js_shared__",{}),mN=wI((function(e){(e.exports=function(e,t){return yN[e]||(yN[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),bN=CI.Object,wN=function(e){return bN(GI(e))},EN=RI({}.hasOwnProperty),xN=Object.hasOwn||function(e,t){return EN(wN(e),t)},DN=0,CN=Math.random(),SN=RI(1..toString),AN=function(e){return"Symbol("+(void 0===e?"":e)+")_"+SN(++DN+CN,36)},ON=mN("wks"),kN=CI.Symbol,BN=kN&&kN.for,FN=aN?kN:kN&&kN.withoutSetter||AN,TN=function(e){if(!xN(ON,e)||!iN&&"string"!=typeof ON[e]){var t="Symbol."+e;iN&&xN(kN,e)?ON[e]=kN[e]:ON[e]=aN&&BN?BN(t):FN(t)}return ON[e]},_N=CI.TypeError,PN=TN("toPrimitive"),jN=function(e){var t=function(e,t){if(!XI(e)||sN(e))return e;var n,r=pN(e,PN);if(r){if(void 0===t&&(t="default"),n=kI(r,e,t),!XI(n)||sN(n))return n;throw _N("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&KI(n=e.toString)&&!XI(r=kI(n,e)))return r;if(KI(n=e.valueOf)&&!XI(r=kI(n,e)))return r;if("string"!==t&&KI(n=e.toString)&&!XI(r=kI(n,e)))return r;throw hN("Can't convert object to primitive value")}(e,t)}(e,"string");return sN(t)?t:t+""},IN=CI.document,NN=XI(IN)&&XI(IN.createElement),LN=function(e){return NN?IN.createElement(e):{}},RN=!AI&&!SI((function(){return 7!=Object.defineProperty(LN("div"),"a",{get:function(){return 7}}).a})),MN=Object.getOwnPropertyDescriptor,zN={f:AI?MN:function(e,t){if(e=qI(e),t=jN(t),RN)try{return MN(e,t)}catch(n){}if(xN(e,t))return PI(!kI(_I.f,e,t),e[t])}},$N=CI.String,HN=CI.TypeError,VN=function(e){if(XI(e))return e;throw HN($N(e)+" is not an object")},UN=CI.TypeError,WN=Object.defineProperty,GN={f:AI?WN:function(e,t,n){if(VN(e),t=jN(t),VN(n),RN)try{return WN(e,t,n)}catch(r){}if("get"in n||"set"in n)throw UN("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},qN=AI?function(e,t,n){return GN.f(e,t,PI(1,n))}:function(e,t,n){return e[t]=n,e},KN=RI(Function.toString);KI(yN.inspectSource)||(yN.inspectSource=function(e){return KN(e)});var XN,YN,ZN,JN=yN.inspectSource,QN=CI.WeakMap,eL=KI(QN)&&/native code/.test(JN(QN)),tL=mN("keys"),nL=function(e){return tL[e]||(tL[e]=AN(e))},rL={},oL=CI.TypeError,iL=CI.WeakMap;if(eL||yN.state){var aL=yN.state||(yN.state=new iL),uL=RI(aL.get),sL=RI(aL.has),lL=RI(aL.set);XN=function(e,t){if(sL(aL,e))throw new oL("Object already initialized");return t.facade=e,lL(aL,e,t),t},YN=function(e){return uL(aL,e)||{}},ZN=function(e){return sL(aL,e)}}else{var cL=nL("state");rL[cL]=!0,XN=function(e,t){if(xN(e,cL))throw new oL("Object already initialized");return t.facade=e,qN(e,cL,t),t},YN=function(e){return xN(e,cL)?e[cL]:{}},ZN=function(e){return xN(e,cL)}}var fL={set:XN,get:YN,has:ZN,enforce:function(e){return ZN(e)?YN(e):XN(e,{})},getterFor:function(e){return function(t){var n;if(!XI(t)||(n=YN(t)).type!==e)throw oL("Incompatible receiver, "+e+" required");return n}}},dL=Function.prototype,pL=AI&&Object.getOwnPropertyDescriptor,hL=xN(dL,"name"),gL={EXISTS:hL,PROPER:hL&&"something"===function(){}.name,CONFIGURABLE:hL&&(!AI||AI&&pL(dL,"name").configurable)},vL=wI((function(e){var t=gL.CONFIGURABLE,n=fL.get,r=fL.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;KI(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!xN(i,"name")||t&&i.name!==f)&&qN(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==CI?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:qN(e,n,i)):l?e[n]=i:vN(n,i)})(Function.prototype,"toString",(function(){return KI(this)&&n(this).source||JN(this)}))})),yL=Math.ceil,mL=Math.floor,bL=function(e){var t=+e;return t!=t||0===t?0:(t>0?mL:yL)(t)},wL=Math.max,EL=Math.min,xL=function(e,t){var n=bL(e);return n<0?wL(n+t,0):EL(n,t)},DL=Math.min,CL=function(e){return e>0?DL(bL(e),9007199254740991):0},SL=function(e){return CL(e.length)},AL=function(e){return function(t,n,r){var o,i=qI(t),a=SL(i),u=xL(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},OL={includes:AL(!0),indexOf:AL(!1)},kL=OL.indexOf,BL=RI([].push),FL=function(e,t){var n,r=qI(e),o=0,i=[];for(n in r)!xN(rL,n)&&xN(r,n)&&BL(i,n);for(;t.length>o;)xN(r,n=t[o++])&&(~kL(i,n)||BL(i,n));return i},TL=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],_L=TL.concat("length","prototype"),PL={f:Object.getOwnPropertyNames||function(e){return FL(e,_L)}},jL={f:Object.getOwnPropertySymbols},IL=RI([].concat),NL=ZI("Reflect","ownKeys")||function(e){var t=PL.f(VN(e)),n=jL.f;return n?IL(t,n(e)):t},LL=function(e,t){for(var n=NL(t),r=GN.f,o=zN.f,i=0;i<n.length;i++){var a=n[i];xN(e,a)||r(e,a,o(t,a))}},RL=/#|\.prototype\./,ML=function(e,t){var n=$L[zL(e)];return n==VL||n!=HL&&(KI(t)?SI(t):!!t)},zL=ML.normalize=function(e){return String(e).replace(RL,".").toLowerCase()},$L=ML.data={},HL=ML.NATIVE="N",VL=ML.POLYFILL="P",UL=ML,WL=zN.f,GL=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?CI:l?CI[u]||vN(u,{}):(CI[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=WL(n,r))&&a.value:n[r],!UL(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;LL(i,o)}(e.sham||o&&o.sham)&&qN(i,"sham",!0),vL(n,r,i,e)}},qL=RI(RI.bind),KL=Array.isArray||function(e){return"Array"==$I(e)},XL={};XL[TN("toStringTag")]="z";var YL="[object z]"===String(XL),ZL=TN("toStringTag"),JL=CI.Object,QL="Arguments"==$I(function(){return arguments}()),eR=YL?$I:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=JL(e),ZL))?n:QL?$I(t):"Object"==(r=$I(t))&&KI(t.callee)?"Arguments":r},tR=function(){},nR=[],rR=ZI("Reflect","construct"),oR=/^\s*(?:class|function)\b/,iR=RI(oR.exec),aR=!oR.exec(tR),uR=function(e){if(!KI(e))return!1;try{return rR(tR,nR,e),!0}catch(t){return!1}},sR=!rR||SI((function(){var e;return uR(uR.call)||!uR(Object)||!uR((function(){e=!0}))||e}))?function(e){if(!KI(e))return!1;switch(eR(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return aR||!!iR(oR,JN(e))}:uR,lR=TN("species"),cR=CI.Array,fR=function(e,t){return new(KL(n=e)&&(r=n.constructor,(sR(r)&&(r===cR||KL(r.prototype))||XI(r)&&null===(r=r[lR]))&&(r=void 0)),void 0===r?cR:r)(0===t?0:t);var n,r},dR=RI([].push),pR=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=wN(s),g=UI(h),v=function(e,t){return dN(e),void 0===t?e:qL?qL(e,t):function(){return e.apply(t,arguments)}}(l,c),y=SL(g),m=0,b=f||fR,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:dR(w,d)}else switch(e){case 4:return!1;case 7:dR(w,d)}return i?-1:r||o?o:w}},hR={forEach:pR(0),map:pR(1),filter:pR(2),some:pR(3),every:pR(4),find:pR(5),findIndex:pR(6),filterReject:pR(7)},gR=TN("species"),vR=function(e){return oN>=51||!SI((function(){var t=[];return(t.constructor={})[gR]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},yR=hR.filter;GL({target:"Array",proto:!0,forced:!vR("filter")},{filter:function(e){return yR(this,e,arguments.length>1?arguments[1]:void 0)}});var mR=YL?{}.toString:function(){return"[object "+eR(this)+"]"};YL||vL(Object.prototype,"toString",mR,{unsafe:!0});var bR,wR=CI.String,ER=function(e){if("Symbol"===eR(e))throw TypeError("Cannot convert a Symbol value to a string");return wR(e)},xR=function(){var e=VN(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},DR=CI.RegExp,CR=SI((function(){var e=DR("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),SR=CR||SI((function(){return!DR("a","y").sticky})),AR={BROKEN_CARET:CR||SI((function(){var e=DR("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:SR,UNSUPPORTED_Y:CR},OR=Object.keys||function(e){return FL(e,TL)},kR=AI?Object.defineProperties:function(e,t){VN(e);for(var n,r=qI(t),o=OR(t),i=o.length,a=0;i>a;)GN.f(e,n=o[a++],r[n]);return e},BR=ZI("document","documentElement"),FR=nL("IE_PROTO"),TR=function(){},_R=function(e){return"<script>"+e+"<\/script>"},PR=function(e){e.write(_R("")),e.close();var t=e.parentWindow.Object;return e=null,t},jR=function(){try{bR=new ActiveXObject("htmlfile")}catch(r){}var e,t;jR="undefined"!=typeof document?document.domain&&bR?PR(bR):((t=LN("iframe")).style.display="none",BR.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(_R("document.F=Object")),e.close(),e.F):PR(bR);for(var n=TL.length;n--;)delete jR.prototype[TL[n]];return jR()};rL[FR]=!0;var IR,NR,LR=Object.create||function(e,t){var n;return null!==e?(TR.prototype=VN(e),n=new TR,TR.prototype=null,n[FR]=e):n=jR(),void 0===t?n:kR(n,t)},RR=CI.RegExp,MR=SI((function(){var e=RR(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),zR=CI.RegExp,$R=SI((function(){var e=zR("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),HR=fL.get,VR=mN("native-string-replace",String.prototype.replace),UR=RegExp.prototype.exec,WR=UR,GR=RI("".charAt),qR=RI("".indexOf),KR=RI("".replace),XR=RI("".slice),YR=(NR=/b*/g,kI(UR,IR=/a/,"a"),kI(UR,NR,"a"),0!==IR.lastIndex||0!==NR.lastIndex),ZR=AR.BROKEN_CARET,JR=void 0!==/()??/.exec("")[1];(YR||JR||ZR||MR||$R)&&(WR=function(e){var t,n,r,o,i,a,u,s=this,l=HR(s),c=ER(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=kI(WR,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=ZR&&s.sticky,h=kI(xR,s),g=s.source,v=0,y=c;if(p&&(h=KR(h,"y",""),-1===qR(h,"g")&&(h+="g"),y=XR(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==GR(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),JR&&(n=new RegExp("^"+g+"$(?!\\s)",h)),YR&&(r=s.lastIndex),o=kI(UR,p?n:s,y),p?o?(o.input=XR(o.input,v),o[0]=XR(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:YR&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),JR&&o&&o.length>1&&kI(VR,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=LR(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var QR=WR;GL({target:"RegExp",proto:!0,forced:/./.exec!==QR},{exec:QR});var eM=Function.prototype,tM=eM.apply,nM=eM.bind,rM=eM.call,oM="object"==typeof Reflect&&Reflect.apply||(nM?rM.bind(tM):function(){return rM.apply(tM,arguments)}),iM=TN("species"),aM=RegExp.prototype,uM=function(e,t,n,r){var o=TN(e),i=!SI((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!SI((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[iM]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=RI(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=RI(e),s=t.exec;return s===QR||s===aM.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));vL(String.prototype,e,s[0]),vL(aM,o,s[1])}r&&qN(aM[o],"sham",!0)},sM=RI("".charAt),lM=RI("".charCodeAt),cM=RI("".slice),fM=function(e){return function(t,n){var r,o,i=ER(GI(t)),a=bL(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=lM(i,a))<55296||r>56319||a+1===u||(o=lM(i,a+1))<56320||o>57343?e?sM(i,a):r:e?cM(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0),dM=function(e,t,n){return t+(n?fM(e,t).length:1)},pM=Math.floor,hM=RI("".charAt),gM=RI("".replace),vM=RI("".slice),yM=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,mM=/\$([$&'`]|\d{1,2})/g,bM=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=mM;return void 0!==o&&(o=wN(o),s=yM),gM(i,s,(function(i,s){var l;switch(hM(s,0)){case"$":return"$";case"&":return e;case"`":return vM(t,0,n);case"'":return vM(t,a);case"<":l=o[vM(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=pM(c/10);return 0===f?i:f<=u?void 0===r[f-1]?hM(s,1):r[f-1]+hM(s,1):i}l=r[c-1]}return void 0===l?"":l}))},wM=CI.TypeError,EM=function(e,t){var n=e.exec;if(KI(n)){var r=kI(n,e,t);return null!==r&&VN(r),r}if("RegExp"===$I(e))return kI(QR,e,t);throw wM("RegExp#exec called on incompatible receiver")},xM=TN("replace"),DM=Math.max,CM=Math.min,SM=RI([].concat),AM=RI([].push),OM=RI("".indexOf),kM=RI("".slice),BM="$0"==="a".replace(/./,"$0"),FM=!!/./[xM]&&""===/./[xM]("a","$0");uM("replace",(function(e,t,n){var r=FM?"$":"$0";return[function(e,n){var r=GI(this),o=null==e?void 0:pN(e,xM);return o?kI(o,e,r,n):kI(t,ER(r),e,n)},function(e,o){var i=VN(this),a=ER(e);if("string"==typeof o&&-1===OM(o,r)&&-1===OM(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=KI(o);s||(o=ER(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=EM(i,a);if(null===d)break;if(AM(f,d),!l)break;""===ER(d[0])&&(i.lastIndex=dM(a,CL(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var y=ER((d=f[v])[0]),m=DM(CM(bL(d.index),a.length),0),b=[],w=1;w<d.length;w++)AM(b,void 0===(p=d[w])?p:String(p));var E=d.groups;if(s){var x=SM([y],b,m,a);void 0!==E&&AM(x,E);var D=ER(oM(o,void 0,x))}else D=bM(y,a,m,b,E,o);m>=g&&(h+=kM(a,g,m)+D,g=m+y.length)}return h+kM(a,g)}]}),!!SI((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!BM||FM);var TM=TN("unscopables"),_M=Array.prototype;null==_M[TM]&&GN.f(_M,TM,{configurable:!0,value:LR(null)});var PM=function(e){_M[TM][e]=!0},jM=hR.find,IM=!0;"find"in[]&&Array(1).find((function(){IM=!1})),GL({target:"Array",proto:!0,forced:IM},{find:function(e){return jM(this,e,arguments.length>1?arguments[1]:void 0)}}),PM("find");var NM=TN("match"),LM=function(e){var t;return XI(e)&&(void 0!==(t=e[NM])?!!t:"RegExp"==$I(e))},RM=CI.TypeError,MM=TN("species"),zM=function(e,t,n){var r=jN(t);r in e?GN.f(e,r,PI(0,n)):e[r]=n},$M=CI.Array,HM=Math.max,VM=function(e,t,n){for(var r=SL(e),o=xL(t,r),i=xL(void 0===n?r:n,r),a=$M(HM(i-o,0)),u=0;o<i;o++,u++)zM(a,u,e[o]);return a.length=u,a},UM=AR.UNSUPPORTED_Y,WM=Math.min,GM=[].push,qM=RI(/./.exec),KM=RI(GM),XM=RI("".slice);uM("split",(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=ER(GI(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!LM(e))return kI(t,r,e,o);for(var i,a,u,s=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),c=0,f=new RegExp(e.source,l+"g");(i=kI(QR,f,r))&&!((a=f.lastIndex)>c&&(KM(s,XM(r,c,i.index)),i.length>1&&i.index<r.length&&oM(GM,s,VM(i,1)),u=i[0].length,c=a,s.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return c===r.length?!u&&qM(f,"")||KM(s,""):KM(s,XM(r,c)),s.length>o?VM(s,0,o):s}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:kI(t,this,e,n)}:t,[function(t,n){var o=GI(this),i=null==t?void 0:pN(t,e);return i?kI(i,t,o,n):kI(r,ER(o),t,n)},function(e,o){var i=VN(this),a=ER(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s,l,c,f=(s=RegExp,void 0===(c=VN(i).constructor)||null==(l=VN(c)[MM])?s:function(e){if(sR(e))return e;throw RM(cN(e)+" is not a constructor")}(l)),d=i.unicode,p=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(UM?"g":"y"),h=new f(UM?"^(?:"+i.source+")":i,p),g=void 0===o?4294967295:o>>>0;if(0===g)return[];if(0===a.length)return null===EM(h,a)?[a]:[];for(var v=0,y=0,m=[];y<a.length;){h.lastIndex=UM?0:y;var b,w=EM(h,UM?XM(a,y):a);if(null===w||(b=WM(CL(h.lastIndex+(UM?y:0)),a.length))===v)y=dM(a,y,d);else{if(KM(m,XM(a,v,y)),m.length===g)return m;for(var E=1;E<=w.length-1;E++)if(KM(m,w[E]),m.length===g)return m;y=v=b}}return KM(m,XM(a,v)),m}]}),!!SI((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),UM);var YM="\t\n\v\f\r                 \u2028\u2029\ufeff",ZM=RI("".replace),JM="["+YM+"]",QM=RegExp("^"+JM+JM+"*"),ez=RegExp(JM+JM+"*$"),tz=function(e){return function(t){var n=ER(GI(t));return 1&e&&(n=ZM(n,QM,"")),2&e&&(n=ZM(n,ez,"")),n}},nz={start:tz(1),end:tz(2),trim:tz(3)},rz=gL.PROPER,oz=nz.trim;function iz(e){return 0===hg("<div>"+e+"</div>").children().filter((function(e){return"BR"!==e.tagName})).length}function az(e){return 0===e.length?"":e[0].outerHTML}function uz(e){return e.length?e[0].tagName.toLowerCase():""}function sz(e,t){for(var n="",r=(e.attr("style")||"").split(";"),o=r.length,i=0;i<o;i++){var a=r[i];if(a){var u=a.split(":");u[0].trim()===t&&(n=u[1].trim())}}return n}GL({target:"String",proto:!0,forced:SI((function(){return!!YM.trim()||"​…᠎"!=="​…᠎".trim()||rz&&"trim"!==YM.trim.name}))},{trim:function(){return oz(this)}}),GL({global:!0},{globalThis:CI}),Bg&&(hg.fn.css=Bg),Ig&&(hg.fn.append=Ig),Ng&&(hg.fn.prepend=Ng),gg&&(hg.fn.addClass=gg),vg&&(hg.fn.removeClass=vg),yg&&(hg.fn.hasClass=yg),xg&&(hg.fn.on=xg),Dg&&(hg.fn.off=Dg),Gg&&(hg.fn.focus=Gg),mg&&(hg.fn.attr=mg),bg&&(hg.fn.removeAttr=bg),Og&&(hg.fn.hide=Og),kg&&(hg.fn.show=kg),Rg&&(hg.fn.parents=Rg),wg&&(hg.fn.dataset=wg),Eg&&(hg.fn.val=Eg),Pg&&(hg.fn.text=Pg),_g&&(hg.fn.html=_g),zg&&(hg.fn.children=zg),$g&&(hg.fn.remove=$g),Mg&&(hg.fn.find=Mg),Cg&&(hg.fn.width=Cg),Sg&&(hg.fn.height=Sg),Tg&&(hg.fn.filter=Tg),Hg&&(hg.fn.empty=Hg);var lz={selector:"p:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=hg(e);return 0===(t=t.filter((function(e){return!!Ip.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:t}}},cz=function(e,t){return cz=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},cz(e,t);
  38. /*! *****************************************************************************
  39. Copyright (c) Microsoft Corporation.
  40. Permission to use, copy, modify, and/or distribute this software for any
  41. purpose with or without fee is hereby granted.
  42. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  43. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  44. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  45. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  46. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  47. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  48. PERFORMANCE OF THIS SOFTWARE.
  49. ***************************************************************************** */};function fz(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}cz(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var dz=function(){return dz=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},dz.apply(this,arguments)};function pz(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(t){i(t)}}function u(e){try{s(r.throw(e))}catch(t){i(t)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))}function hz(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(u){i=[6,u],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}function gz(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function vz(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function yz(e){var t=vz(fp.nodes(e,{match:function(t){return e.children[0]===t},mode:"highest"}),1)[0];if(null==t)return!1;var n=t[0];if(!ip.isElement(n))return!1;if("paragraph"===n.type)return!1;if(""!==vp.string(n))return!1;var r=n.children,o=void 0===r?[]:r;return!!Ip.isText(o[0])&&(Qp.setNodes(e,{type:"paragraph"}),!0)}var mz={renderElems:[mI],elemsToHtml:[{type:"paragraph",elemToHtml:function(e,t){return""===t?"<p><br></p>":"<p>"+t+"</p>"}}],parseElemsHtml:[lz],editorPlugin:function(e){var t=e.deleteBackward,n=e.deleteForward;e.insertText,e.insertBreak;var r=e;return r.deleteBackward=function(e){yz(r)||t(e)},r.deleteForward=function(e){yz(r)||n(e)},r}},bz=/"/g,wz=RI("".replace),Ez=function(e,t,n,r){var o=ER(GI(e)),i="<"+t;return""!==n&&(i+=" "+n+'="'+wz(ER(r),bz,"&quot;")+'"'),i+">"+o+"</"+t+">"},xz=function(e){return SI((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))};function Dz(e,t){var n=t,r=e,o=r.bold,i=r.italic,a=r.underline;return o&&(n="<strong>"+n+"</strong>"),r.code&&(n="<code>"+n+"</code>"),i&&(n="<em>"+n+"</em>"),a&&(n="<u>"+n+"</u>"),r.through&&(n="<s>"+n+"</s>"),r.sub&&(n="<sub>"+n+"</sub>"),r.sup&&(n="<sup>"+n+"</sup>"),n}function Cz(e,t){return 0!==e.length&&(!!e[0].matches(t)||e.find(t).length>0)}GL({target:"String",proto:!0,forced:xz("bold")},{bold:function(){return Ez(this,"b","","")}}),GL({target:"String",proto:!0,forced:xz("italics")},{italics:function(){return Ez(this,"i","","")}}),GL({target:"String",proto:!0,forced:xz("sub")},{sub:function(){return Ez(this,"sub","","")}}),GL({target:"String",proto:!0,forced:xz("sup")},{sup:function(){return Ez(this,"sup","","")}});var Sz={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},Az=LN("span").classList,Oz=Az&&Az.constructor&&Az.constructor.prototype,kz=Oz===Object.prototype?void 0:Oz,Bz=function(e,t){var n=[][e];return!!n&&SI((function(){n.call(null,t||function(){throw 1},1)}))},Fz=hR.forEach,Tz=Bz("forEach")?[].forEach:function(e){return Fz(this,e,arguments.length>1?arguments[1]:void 0)},_z=function(e){if(e&&e.forEach!==Tz)try{qN(e,"forEach",Tz)}catch(t){e.forEach=Tz}};for(var Pz in Sz)Sz[Pz]&&_z(CI[Pz]&&CI[Pz].prototype);function jz(e,t){return null==e.selection||!!vz(fp.nodes(e,{match:function(t){return"pre"===fB.getNodeType(t)||!!fp.isVoid(e,t)},universal:!0}),1)[0]}function Iz(e,t){Object.keys(t).forEach((function(t){"text"!==t&&fp.removeMark(e,t)}))}_z(kz),GL({target:"Object",stat:!0,forced:SI((function(){OR(1)}))},{keys:function(e){return OR(wN(e))}});var Nz=function(){function e(){this.marksNeedToRemove=[],this.tag="button"}return e.prototype.getValue=function(e){var t=this.mark,n=fp.marks(e);return n?n[t]:!!vz(fp.nodes(e,{match:function(e){return!0===e[t]}}),1)[0]},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){return jz(e,this.mark)},e.prototype.exec=function(e,t){var n=this.mark,r=this.marksNeedToRemove;t?e.removeMark(n):(e.addMark(n,!0),r&&r.forEach((function(t){return e.removeMark(t)})))},e}(),Lz='<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>',Rz='<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>',Mz='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',zz='<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>',$z='<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>',Hz='<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>',Vz='<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>',Uz='<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>',Wz='<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>',Gz='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',qz='<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>',Kz='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',Xz='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',Yz='<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>',Zz='<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>',Jz='<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>',Qz='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',e$='<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>',t$='<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>',n$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="bold",t.title=Zj("textStyle.bold"),t.iconSvg=Lz,t.hotkey="mod+b",t}return fz(t,e),t}(Nz),r$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="code",t.title=Zj("textStyle.code"),t.iconSvg=$z,t.hotkey="mod+e",t}return fz(t,e),t}(Nz),o$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="italic",t.title=Zj("textStyle.italic"),t.iconSvg=Mz,t.hotkey="mod+i",t}return fz(t,e),t}(Nz),i$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="through",t.title=Zj("textStyle.through"),t.iconSvg=zz,t.hotkey="mod+shift+x",t}return fz(t,e),t}(Nz),a$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="underline",t.title=Zj("textStyle.underline"),t.iconSvg=Rz,t.hotkey="mod+u",t}return fz(t,e),t}(Nz),u$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="sub",t.marksNeedToRemove=["sup"],t.title=Zj("textStyle.sub"),t.iconSvg=t$,t.hotkey="",t}return fz(t,e),t}(Nz),s$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="sup",t.marksNeedToRemove=["sub"],t.title=Zj("textStyle.sup"),t.iconSvg=e$,t.hotkey="",t}return fz(t,e),t}(Nz),l$=function(){function e(){this.title=Zj("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 e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return jz(e)},e.prototype.exec=function(e,t){var n,r,o=fp.nodes(e,{match:function(e){return Ip.isText(e)},universal:!0});try{for(var i=gz(o),a=i.next();!a.done;a=i.next())Iz(e,a.value[0])}catch(u){n={error:u}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},e}(),c$={renderStyle:function(e,t){var n=e,r=n.bold,o=n.italic,i=n.underline,a=n.code,u=n.through,s=n.sub,l=n.sup,c=t;return r&&(c=ry("strong",null,c)),a&&(c=ry("code",null,c)),o&&(c=ry("em",null,c)),i&&(c=ry("u",null,c)),u&&(c=ry("s",null,c)),s&&(c=ry("sub",null,c)),l&&(c=ry("sup",null,c)),c},menus:[{key:"bold",factory:function(){return new n$}},{key:"underline",factory:function(){return new a$}},{key:"italic",factory:function(){return new o$}},{key:"through",factory:function(){return new i$}},{key:"code",factory:function(){return new r$}},{key:"sub",factory:function(){return new u$}},{key:"sup",factory:function(){return new s$}},{key:"clearStyle",factory:function(){return new l$}}],styleToHtml:function(e,t){if(!Ip.isText(e))return t;if(iz(t))return Dz(e,t);var n=hg(t);if("br"===uz(n))return Dz(e,"<br>");var r=n.html();return r=Dz(e,r),n.html(r),az(n)},parseStyleHtml:function(e,t,n){var r=hg(e);if(!Ip.isText(t))return t;var o=t;return Cz(r,"b,strong")&&(o.bold=!0),Cz(r,"i,em")&&(o.italic=!0),Cz(r,"u")&&(o.underline=!0),Cz(r,"s,strike")&&(o.through=!0),Cz(r,"sub")&&(o.sub=!0),Cz(r,"sup")&&(o.sup=!0),Cz(r,"code")&&(o.code=!0),o}};function f$(e){return function(t,n,r){return ry("h"+e,null,n)}}var d$={type:"header1",renderElem:f$(1)},p$={type:"header2",renderElem:f$(2)},h$={type:"header3",renderElem:f$(3)},g$={type:"header4",renderElem:f$(4)},v$={type:"header5",renderElem:f$(5)},y$=gL.PROPER,m$=RegExp.prototype,b$=m$.toString,w$=RI(xR),E$=SI((function(){return"/a/b"!=b$.call({source:"a",flags:"b"})})),x$=y$&&"toString"!=b$.name;(E$||x$)&&vL(RegExp.prototype,"toString",(function(){var e=VN(this),t=ER(e.source),n=e.flags;return"/"+t+"/"+ER(void 0===n&&JI(m$,e)&&!("flags"in m$)?w$(e):n)}),{unsafe:!0});var D$,C$=CI.TypeError,S$=function(e){if(LM(e))throw C$("The method doesn't accept regular expressions");return e},A$=TN("match"),O$=function(e){var t=/./;try{"/./"[e](t)}catch(Qj){try{return t[A$]=!1,"/./"[e](t)}catch(n){}}return!1},k$=zN.f,B$=RI("".startsWith),F$=RI("".slice),T$=Math.min,_$=O$("startsWith");function P$(e){var t=vz(fp.nodes(e,{match:function(e){return fB.getNodeType(e).startsWith("header")},universal:!0}),1)[0];if(null==t)return"paragraph";var n=vz(t,1)[0];return fB.getNodeType(n)}function j$(e){return null==e.selection||!vz(fp.nodes(e,{match:function(e){var t=fB.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function I$(e,t){t&&Qp.setNodes(e,{type:t})}GL({target:"String",proto:!0,forced:!(!_$&&(D$=k$(String.prototype,"startsWith"),D$&&!D$.writable)||_$)},{startsWith:function(e){var t=ER(GI(this));S$(e);var n=CL(T$(arguments.length>1?arguments[1]:void 0,t.length)),r=ER(e);return B$?B$(t,r,n):F$(t,n,n+r.length)===r}});var N$=function(){function e(){this.title=Zj("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 e.prototype.getOptions=function(e){var t=[{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:Zj("header.text")}],n=this.getValue(e).toString();return t.forEach((function(e){e.value===n?e.selected=!0:delete e.selected})),t},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){return P$(e)},e.prototype.isDisabled=function(e){return j$(e)},e.prototype.exec=function(e,t){I$(e,t.toString())},e}(),L$=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return P$(e)},e.prototype.isActive=function(e){return this.getValue(e)===this.type},e.prototype.isDisabled=function(e){return j$(e)},e.prototype.exec=function(e,t){var n=this.type;I$(e,t===n?"paragraph":n)},e}(),R$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H1",t.type="header1",t}return fz(t,e),t}(L$),M$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H2",t.type="header2",t}return fz(t,e),t}(L$),z$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H3",t.type="header3",t}return fz(t,e),t}(L$),$$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H4",t.type="header4",t}return fz(t,e),t}(L$),H$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H5",t.type="header5",t}return fz(t,e),t}(L$),V$={key:"headerSelect",factory:function(){return new N$}},U$={key:"header1",factory:function(){return new R$}},W$={key:"header2",factory:function(){return new M$}},G$={key:"header3",factory:function(){return new z$}},q$={key:"header4",factory:function(){return new $$}},K$={key:"header5",factory:function(){return new H$}};function X$(e){return function(t,n){return"<h"+e+">"+n+"</h"+e+">"}}function Y$(e){return function(t,n,r){var o=hg(t);return 0===(n=n.filter((function(e){return!!Ip.isText(e)||!!r.isInline(e)}))).length&&(n=[{text:o.text().replace(/\s+/gm," ")}]),{type:"header"+e,children:n}}}var Z$={renderElems:[d$,p$,h$,g$,v$],elemsToHtml:[{type:"header1",elemToHtml:X$(1)},{type:"header2",elemToHtml:X$(2)},{type:"header3",elemToHtml:X$(3)},{type:"header4",elemToHtml:X$(4)},{type:"header5",elemToHtml:X$(5)}],parseElemsHtml:[{selector:"h1:not([data-w-e-type])",parseElemHtml:Y$(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:Y$(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:Y$(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:Y$(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:Y$(5)}],menus:[V$,U$,W$,G$,q$,K$],editorPlugin:function(e){var t=e.insertBreak;e.insertNode;var n=e;return n.insertBreak=function(){var r=vz(fp.nodes(n,{match:function(e){return fB.getNodeType(e).startsWith("header")},universal:!0}),1)[0];r&&fB.isSelectionAtLineEnd(e,r[1])?Qp.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):t()},n}},J$=Object.assign,Q$=Object.defineProperty,eH=RI([].concat),tH=!J$||SI((function(){if(AI&&1!==J$({b:1},J$(Q$({},"a",{enumerable:!0,get:function(){Q$(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=J$({},e)[n]||OR(J$({},t)).join("")!=r}))?function(e,t){for(var n=wN(e),r=arguments.length,o=1,i=jL.f,a=_I.f;r>o;)for(var u,s=UI(arguments[o++]),l=i?eH(OR(s),i(s)):OR(s),c=l.length,f=0;c>f;)u=l[f++],AI&&!kI(a,s,u)||(n[u]=s[u]);return n}:J$;function nH(e,t){null==e.data&&(e.data={});var n=e.data;null==n.style&&(n.style={}),Object.assign(n.style,t)}GL({target:"Object",stat:!0,forced:Object.assign!==tH},{assign:tH});var rH={selector:"font",preParseHtml:function(e){var t=hg(e);if("font"!==uz(t))return e;var n=t.attr("color")||"";return n&&(t.removeAttr("color"),t.css("color",n)),t[0]}},oH=function(){function e(){this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(e,t){},e.prototype.getValue=function(e){var t=this.mark,n=fp.marks(e);return n&&n[t]?n[t]:""},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){return null==e.selection||!!vz(fp.nodes(e,{match:function(t){return"pre"===fB.getNodeType(t)||!!fp.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){var t=this.mark;if(null==this.$content){var n=hg('<ul class="w-e-panel-content-color"></ul>');n.on("click","li",(function(n){var r=n.target;if(null!=r&&(n.preventDefault(),null!=e.selection)){var o=hg(r).attr("data-value");"0"===o?fp.removeMark(e,t):fp.addMark(e,t,o)}})),this.$content=n}var r=this.$content;if(null==r)return document.createElement("ul");r.empty();var o=this.getValue(e),i=e.getMenuConfig(t).colors;(void 0===i?[]:i).forEach((function(e){var t=hg('<div class="color-block" data-value="'+e+'"></div>');t.css("background-color",e);var n=hg('<li data-value="'+e+'"></li>');o===e&&n.addClass("active"),n.append(t),r.append(n)}));var a="";"color"===t&&(a=Zj("color.default")),"bgColor"===t&&(a=Zj("color.clear"));var u=hg('\n <li data-value="0" class="clear">\n <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>\n '+a+"\n </li>\n ");return r.prepend(u),r[0]},e}(),iH=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Zj("color.color"),t.iconSvg=Uz,t.mark="color",t}return fz(t,e),t}(oH),aH=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Zj("color.bgColor"),t.iconSvg=Wz,t.mark="bgColor",t}return fz(t,e),t}(oH),uH=["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)"],sH={renderStyle:function(e,t){var n=e,r=n.color,o=n.bgColor,i=t;return r&&nH(i,{color:r}),o&&nH(i,{backgroundColor:o}),i},styleToHtml:function(e,t){if(!Ip.isText(e))return t;var n,r=e,o=r.color,i=r.bgColor;return o||i?((iz(t)||"span"!==uz(n=hg(t)))&&(n=hg("<span>"+t+"</span>")),o&&n.css("color",o),i&&n.css("background-color",i),az(n)):t},preParseHtml:[rH],parseStyleHtml:function(e,t,n){var r=hg(e);if(!Ip.isText(t))return t;var o=t,i=sz(r,"color");i&&(o.color=i);var a=sz(r,"background-color");return a||(a=sz(r,"background")),a&&(o.bgColor=a),o},menus:[{key:"color",factory:function(){return new iH},config:{colors:uH}},{key:"bgColor",factory:function(){return new aH},config:{colors:uH}}]},lH=/^(?:\w+:)?\/\/(\S+)$/,cH=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,fH=/^[^\s\.]+\.\S{2,}$/,dH=OL.includes;function pH(e){return void 0===e&&(e="r"),e+"-"+lv()}function hH(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;")}function gH(e,t,n,r){return pz(this,void 0,void 0,(function(){var o,i;return hz(this,(function(a){switch(a.label){case 0:return(o=t.getMenuConfig(e).checkLink)?[4,o(n,r)]:[3,2];case 1:if("string"==typeof(i=a.sent()))return t.alert(i,"error"),[2,!1];if(null==i)return[2,!1];a.label=2;case 2:return[2,!0]}}))}))}function vH(e,t,n){return pz(this,void 0,void 0,(function(){var r;return hz(this,(function(o){switch(o.label){case 0:return(r=t.getMenuConfig(e).parseLinkUrl)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}}))}))}function yH(e){return null==e.selection||!!fB.getSelectedElems(e).some((function(t){var n=t.type;return!!e.isVoid(t)||!!["pre","code","link"].includes(n)||void 0}))}function mH(e,t){return{type:"link",url:hH(e),children:t?[{text:t}]:[]}}function bH(e,t,n){return pz(this,void 0,void 0,(function(){var r,o,i;return hz(this,(function(a){switch(a.label){case 0:return n?(t||(t=n),e.restoreSelection(),yH(e)?[2]:[4,gH("insertLink",e,t,n)]):[2];case 1:return a.sent()?[4,vH("insertLink",e,n)]:[2];case 2:return r=a.sent(),null==(o=e.selection)||(kp.isCollapsed(o)?(e.insertText(" "),i=mH(r,t),Qp.insertNodes(e,i),e.insertFragment([{text:" "}])):fp.string(e,o)!==t?(e.deleteFragment(),i=mH(r,t),Qp.insertNodes(e,i)):(i=mH(r),Qp.wrapNodes(e,i,{split:!0}),Qp.collapse(e,{edge:"end"}))),[2]}}))}))}GL({target:"Array",proto:!0},{includes:function(e){return dH(this,e,arguments.length>1?arguments[1]:void 0)}}),PM("includes");var wH={type:"link",renderElem:function(e,t,n){var r=e,o=r.url,i=r.target;return ry("a",{href:o,target:void 0===i?"_blank":i},t)}},EH={selector:"a:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=hg(e);return 0===(t=t.filter((function(e){return!!Ip.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"link",url:r.attr("href")||"",target:r.attr("target")||"",children:t}}};function xH(){return pH("w-e-insert-link")}var DH=function(){function e(){this.title=Zj("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=xH(),this.urlInputId=xH(),this.buttonId=xH()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return yH(e)},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=e.selection,n=this,r=n.textInputId,o=n.urlInputId,i=n.buttonId,a=vz(IP(Zj("link.text"),r),2),u=a[0],s=hg(a[1]),l=vz(IP(Zj("link.url"),o),2),c=l[0],f=hg(l[1]),d=vz(NP(i,Zj("common.ok")),1)[0];if(null==this.$content){var p=hg("<div></div>");p.on("click","#"+i,(function(t){t.preventDefault();var n=p.find("#"+r).val(),i=p.find("#"+o).val();bH(e,n,i),e.hidePanelOrModal()})),this.$content=p}var h=this.$content;if(h.empty(),h.append(u),h.append(c),h.append(d),null==t||kp.isCollapsed(t))s.val("");else{var g=fp.string(e,t);s.val(g)}return f.val(""),setTimeout((function(){s.focus()})),h[0]},e}();function CH(){return pH("w-e-update-link")}var SH=function(){function e(){this.title=Zj("link.edit"),this.iconSvg=Hz,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=CH(),this.buttonId=CH()}return e.prototype.getSelectedLinkElem=function(e){var t=fB.getSelectedNodeByType(e,"link");return null==t?null:t},e.prototype.getValue=function(e){var t=this.getSelectedLinkElem(e);return t&&t.url||""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedLinkElem(e)},e.prototype.getModalPositionNode=function(e){return fB.getSelectedNodeByType(e,"link")},e.prototype.getModalContentElem=function(e){var t=this.urlInputId,n=this.buttonId,r=vz(IP(Zj("link.url"),t),2),o=r[0],i=hg(r[1]),a=vz(NP(n,Zj("common.ok")),1)[0];if(null==this.$content){var u=hg("<div></div>");u.on("click","button",(function(n){n.preventDefault(),e.restoreSelection();var r=fB.getSelectedNodeByType(e,"link"),o=r?vp.string(r):"",i=u.find("#"+t).val();!function(e,t,n){pz(this,void 0,void 0,(function(){var r,o;return hz(this,(function(i){switch(i.label){case 0:return n?[4,gH("editLink",e,t,n)]:[2];case 1:return i.sent()?[4,vH("editLink",e,n)]:[2];case 2:return r=i.sent(),o={url:hH(r)},Qp.setNodes(e,o,{match:function(e){return fB.checkNodeType(e,"link")}}),[2]}}))}))}(e,o,i),e.hidePanelOrModal()})),this.$content=u}var s=this.$content;s.empty(),s.append(o),s.append(a);var l=this.getValue(e);return i.val(l),setTimeout((function(){i.focus()})),s[0]},e}(),AH=function(){function e(){this.title=Zj("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 e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==fB.getSelectedNodeByType(e,"link")},e.prototype.exec=function(e,t){this.isDisabled(e)||Qp.unwrapNodes(e,{match:function(e){return fB.checkNodeType(e,"link")}})},e}(),OH=function(){function e(){this.title=Zj("link.view"),this.iconSvg=Vz,this.tag="button"}return e.prototype.getSelectedLinkElem=function(e){var t=fB.getSelectedNodeByType(e,"link");return null==t?null:t},e.prototype.getValue=function(e){var t=this.getSelectedLinkElem(e);return t&&t.url||""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedLinkElem(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){if(!t||"string"!=typeof t)throw new Error("View link failed, link url is '"+t+"'");window.open(t,"_blank")}},e}(),kH={checkLink:function(e,t){return!0},parseLinkUrl:function(e){return e}},BH={renderElems:[wH],elemsToHtml:[{type:"link",elemToHtml:function(e,t){var n=e,r=n.url,o=n.target;return'<a href="'+r+'" target="'+(void 0===o?"_blank":o)+'">'+t+"</a>"}}],parseElemsHtml:[EH],menus:[{key:"insertLink",factory:function(){return new DH},config:kH},{key:"editLink",factory:function(){return new SH},config:kH},{key:"unLink",factory:function(){return new AH}},{key:"viewLink",factory:function(){return new OH}}],editorPlugin:function(e){var t=e.isInline,n=e.insertData,r=e.normalizeNode;e.insertNode,e.insertText;var o=e;return o.isInline=function(e){return"link"===e.type||t(e)},o.insertData=function(e){var t=e.getData("text/plain");if(function(e){if("string"!=typeof e)return!1;var t=e.match(lH);if(!t)return!1;var n=t[1];return!(!n||!cH.test(n)&&!fH.test(n))}(t)){if(!yH(o)){var r=o.selection;if(null!=r){var i=fp.string(o,r);bH(o,i,t)}}}else n(e)},o.normalizeNode=function(e){var t=vz(e,2),n=t[0],i=t[1];return"link"!==fB.getNodeType(n)?r([n,i]):""===vp.string(n)?Qp.removeNodes(o,{at:i}):r([n,i])},o}},FH=RI(1..valueOf),TH=CI.RangeError,_H=CI.RangeError,PH=CI.String,jH=Math.floor,IH=RI((function(e){var t=ER(GI(this)),n="",r=bL(e);if(r<0||r==1/0)throw TH("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n})),NH=RI("".slice),LH=RI(1..toFixed),RH=function(e,t,n){return 0===t?n:t%2==1?RH(e,t-1,n*e):RH(e*e,t/2,n)},MH=function(e,t,n){for(var r=-1,o=n;++r<6;)o+=t*e[r],e[r]=o%1e7,o=jH(o/1e7)},zH=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=jH(r/t),r=r%t*1e7},$H=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var r=PH(e[t]);n=""===n?r:n+IH("0",7-r.length)+r}return n};function HH(e,t){return"w-e-image-container-"+fB.findKey(e,t).id}GL({target:"Number",proto:!0,forced:SI((function(){return"0.000"!==LH(8e-5,3)||"1"!==LH(.9,0)||"1.25"!==LH(1.255,2)||"1000000000000000128"!==LH(0xde0b6b3a7640080,0)}))||!SI((function(){LH({})}))},{toFixed:function(e){var t,n,r,o,i=FH(this),a=bL(e),u=[0,0,0,0,0,0],s="",l="0";if(a<0||a>20)throw _H("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return PH(i);if(i<0&&(s="-",i=-i),i>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(i*RH(2,69,1))-69)<0?i*RH(2,-t,1):i/RH(2,t,1),n*=4503599627370496,(t=52-t)>0){for(MH(u,0,n),r=a;r>=7;)MH(u,1e7,0),r-=7;for(MH(u,RH(10,r,1),0),r=t-1;r>=23;)zH(u,1<<23),r-=23;zH(u,1<<r),MH(u,1,1),zH(u,2),l=$H(u)}else MH(u,0,n),MH(u,1<<-t,0),l=$H(u)+IH("0",a);return a>0?s+((o=l.length)<=a?"0."+IH("0",a-o)+l:NH(l,0,o-a)+"."+NH(l,o-a)):s+l}});var VH={type:"image",renderElem:function(e,t,n){var r=e,o=r.src,i=r.alt,a=void 0===i?"":i,u=r.href,s=void 0===u?"":u,l=r.style,c=void 0===l?{}:l,f=c.width,d=void 0===f?"":f,p=c.height,h=void 0===p?"":p,g=fB.isNodeSelected(n,e),v={};d&&(v.width="100%"),h&&(v.height="100%");var y,m,b,w,E,x,D,C=ry("img",{style:v,src:o,alt:a,"data-href":s}),S=n.isDisabled();return g&&!S?function(e,t,n,r){var o=hg("body"),i=HH(e,t),a=r.width,u=r.height,s=0,l=0,c=0,f=!1,d=null;var p=Cv((function(e){e.preventDefault();var t=e.clientX,n=l+(f?s-t:t-s),r=c*(n/l);null!=d&&(n<=15||r<=15||(d.css("width",n+"px"),d.css("height",r+"px")))}),100);function h(n){if(o.off("mousemove",p),null!=d){var r=d.width().toFixed(2),i=d.height().toFixed(2),a={style:dz(dz({},t.style),{width:r+"px",height:i+"px"})};Qp.setNodes(e,a,{at:fB.findPath(e,t)}),o.off("mouseup",h)}}var g={};return a&&(g.width=a),u&&(g.height=u),ry("div",{id:i,style:g,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(t){var n=hg(t.target);n.hasClass("w-e-image-dragger")&&(t.preventDefault(),(n.hasClass("left-top")||n.hasClass("left-bottom"))&&(f=!0),function(t){d=function(){var e=hg("#"+i);if(0===e.length)throw new Error("Cannot find image container elem");return e}(),s=t;var n=d.find("img");if(0===n.length)throw new Error("Cannot find image elem");l=n.width(),c=n.height(),o.on("mousemove",p),o.on("mouseup",h);var r=fB.getHoverbar(e);r&&r.hideAndClean()}(t.clientX))}}},n,ry("div",{className:"w-e-image-dragger left-top"}),ry("div",{className:"w-e-image-dragger right-top"}),ry("div",{className:"w-e-image-dragger left-bottom"}),ry("div",{className:"w-e-image-dragger right-bottom"}))}(n,e,C,{width:d,height:h}):(y=n,m=e,b=C,x=(w={width:d,height:h}).height,D={},(E=w.width)&&(D.width=E),x&&(D.height=x),ry("div",{id:HH(y,m),style:D,className:"w-e-image-container"},b))}},UH={selector:"img:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=hg(e),o=r.attr("data-href")||"";return o=decodeURIComponent(o),{type:"image",src:r.attr("src")||"",alt:r.attr("alt")||"",href:o,style:{width:sz(r,"width"),height:sz(r,"height")},children:[{text:""}]}}};function WH(e,t,n,r,o){return void 0===r&&(r=""),void 0===o&&(o=""),pz(this,void 0,void 0,(function(){var i,a;return hz(this,(function(u){switch(u.label){case 0:return(i=t.getMenuConfig(e).checkImage)?[4,i(n,r,o)]:[3,2];case 1:if("string"==typeof(a=u.sent()))return t.alert(a,"error"),[2,!1];if(null==a)return[2,!1];u.label=2;case 2:return[2,!0]}}))}))}function GH(e,t,n){return pz(this,void 0,void 0,(function(){var r;return hz(this,(function(o){switch(o.label){case 0:return(r=t.getMenuConfig(e).parseImageSrc)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}}))}))}function qH(e,t,n,r){return void 0===n&&(n=""),void 0===r&&(r=""),pz(this,void 0,void 0,(function(){var o,i,a;return hz(this,(function(u){switch(u.label){case 0:return[4,WH("insertImage",e,t,n,r)];case 1:return u.sent()?[4,GH("insertImage",e,t)]:[2];case 2:return o=u.sent(),i={type:"image",src:hH(o),href:r,alt:n,style:{},children:[{text:""}]},null===e.selection&&e.restoreSelection(),fB.getSelectedNodeByType(e,"image")&&e.move(1),KH(e)||(Qp.insertNodes(e,i),(a=e.getMenuConfig("insertImage").onInsertedImage)&&a(i)),[2]}}))}))}function KH(e){var t=e.selection;return null==t||!kp.isCollapsed(t)||!!vz(fp.nodes(e,{match:function(t){var n=fB.getNodeType(t);return"code"===n||"pre"===n||"link"===n||"list-item"===n||!!n.startsWith("header")||"blockquote"===n||!!fp.isVoid(e,t)},universal:!0}),1)[0]}function XH(){return pH("w-e-insert-image")}var YH=function(){function e(){this.title=Zj("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=XH(),this.altInputId=XH(),this.hrefInputId=XH(),this.buttonId=XH()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return KH(e)},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.altInputId,i=n.hrefInputId,a=n.buttonId,u=vz(IP(Zj("image.src"),r),2),s=u[0],l=hg(u[1]),c=vz(IP(Zj("image.desc"),o),2),f=c[0],d=hg(c[1]),p=vz(IP(Zj("image.link"),i),2),h=p[0],g=hg(p[1]),v=vz(NP(a,Zj("common.ok")),1)[0];if(null==this.$content){var y=hg("<div></div>");y.on("click","#"+a,(function(n){n.preventDefault();var a=y.find("#"+r).val().trim(),u=y.find("#"+o).val().trim(),s=y.find("#"+i).val().trim();t.insertImage(e,a,u,s),e.hidePanelOrModal()})),this.$content=y}var m=this.$content;return m.empty(),m.append(s),m.append(f),m.append(h),m.append(v),l.val(""),d.val(""),g.val(""),setTimeout((function(){l.focus()})),m[0]},e.prototype.insertImage=function(e,t,n,r){void 0===n&&(n=""),void 0===r&&(r=""),t&&(e.restoreSelection(),this.isDisabled(e)||qH(e,t,n,r))},e}(),ZH=function(){function e(){this.title=Zj("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 e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==fB.getSelectedNodeByType(e,"image")},e.prototype.exec=function(e,t){this.isDisabled(e)||Qp.removeNodes(e,{match:function(e){return fB.checkNodeType(e,"image")}})},e}();function JH(){return pH("w-e-edit-image")}var QH=function(){function e(){this.title=Zj("image.edit"),this.iconSvg=Hz,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=JH(),this.altInputId=JH(),this.hrefInputId=JH(),this.buttonId=JH()}return e.prototype.getValue=function(e){return""},e.prototype.getImageNode=function(e){return fB.getSelectedNodeByType(e,"image")},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!kp.isCollapsed(t)||null==fB.getSelectedNodeByType(e,"image")},e.prototype.getModalPositionNode=function(e){return this.getImageNode(e)},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.altInputId,i=n.hrefInputId,a=n.buttonId,u=this.getImageNode(e);if(null==u)throw new Error("Not found selected image node");var s=vz(IP(Zj("image.src"),r),2),l=s[0],c=hg(s[1]),f=vz(IP(Zj("image.desc"),o),2),d=f[0],p=hg(f[1]),h=vz(IP(Zj("image.link"),i),2),g=h[0],v=hg(h[1]),y=vz(NP(a,Zj("common.ok")),1)[0];if(null==this.$content){var m=hg("<div></div>");m.on("click","#"+a,(function(n){n.preventDefault();var a=m.find("#"+r).val(),u=m.find("#"+o).val(),s=m.find("#"+i).val();t.updateImage(e,a,u,s),e.hidePanelOrModal()})),this.$content=m}var b=this.$content;b.empty(),b.append(l),b.append(d),b.append(g),b.append(y);var w=u,E=w.src,x=w.alt,D=void 0===x?"":x,C=w.href,S=void 0===C?"":C;return c.val(E),p.val(D),v.val(S),setTimeout((function(){c.focus()})),b[0]},e.prototype.updateImage=function(e,t,n,r,o){void 0===n&&(n=""),void 0===r&&(r=""),void 0===o&&(o={}),t&&(e.restoreSelection(),this.isDisabled(e)||function(e,t,n,r,o){void 0===n&&(n=""),void 0===r&&(r=""),void 0===o&&(o={}),pz(this,void 0,void 0,(function(){var i,a,u,s,l,c;return hz(this,(function(f){switch(f.label){case 0:return[4,WH("editImage",e,t,n,r)];case 1:return f.sent()?[4,GH("editImage",e,t)]:[2];case 2:return i=f.sent(),null==(a=fB.getSelectedNodeByType(e,"image"))||(u=a.style,s={src:i,alt:n,href:r,style:dz(dz({},void 0===u?{}:u),o)},Qp.setNodes(e,s,{match:function(e){return fB.checkNodeType(e,"image")}}),l=fB.getSelectedNodeByType(e,"image"),(c=e.getMenuConfig("editImage").onUpdatedImage)&&c(l)),[2]}}))}))}(e,t,n,r,o))},e}(),eV=function(){function e(){this.title=Zj("image.viewLink"),this.iconSvg=Vz,this.tag="button"}return e.prototype.getValue=function(e){var t=fB.getSelectedNodeByType(e,"image");return t&&t.href||""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||!this.getValue(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){if(!t||"string"!=typeof t)throw new Error("View image link failed, image.href is '"+t+"'");window.open(t,"_blank")}},e}(),tV=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.getSelectedNode=function(e){return fB.getSelectedNodeByType(e,"image")},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedNode(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=this.getSelectedNode(e);if(null!=n){var r=fB.getHoverbar(e);r&&r.hideAndClean();var o=n.style,i={style:dz(dz({},void 0===o?{}:o),{width:this.value,height:""})};Qp.setNodes(e,i,{match:function(e){return fB.checkNodeType(e,"image")}})}}},e}(),nV=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="30%",t.value="30%",t}return fz(t,e),t}(tV),rV=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="50%",t.value="50%",t}return fz(t,e),t}(tV),oV=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="100%",t.value="100%",t}return fz(t,e),t}(tV),iV={onInsertedImage:function(e){},onUpdatedImage:function(e){},checkImage:function(e,t,n){return!0},parseImageSrc:function(e){return e}},aV={renderElems:[VH],elemsToHtml:[{type:"image",elemToHtml:function(e,t){var n=e,r=n.src,o=n.alt,i=void 0===o?"":o,a=n.href,u=void 0===a?"":a,s=n.style,l=void 0===s?{}:s,c=l.width,f=void 0===c?"":c,d=l.height,p=void 0===d?"":d,h="";return f&&(h+="width: "+f+";"),p&&(h+="height: "+p+";"),'<img src="'+r+'" alt="'+i+'" data-href="'+u+'" style="'+h+'"/>'}}],parseElemsHtml:[UH],menus:[{key:"insertImage",factory:function(){return new YH},config:iV},{key:"deleteImage",factory:function(){return new ZH}},{key:"editImage",factory:function(){return new QH},config:iV},{key:"viewImageLink",factory:function(){return new eV}},{key:"imageWidth30",factory:function(){return new nV}},{key:"imageWidth50",factory:function(){return new rV}},{key:"imageWidth100",factory:function(){return new oV}}],editorPlugin:function(e){var t=e.isInline,n=e.isVoid;e.insertNode;var r=e;return r.isInline=function(e){return"image"===e.type||t(e)},r.isVoid=function(e){return"image"===e.type||n(e)},r}},uV={type:"todo",renderElem:function(e,t,n){var r=!1;return n.isDisabled()&&(r=!0),ry("div",{style:{margin:"5px 0"}},ry("span",{contentEditable:!1,style:{marginRight:"0.5em"}},ry("input",{type:"checkbox",checked:e.checked,disabled:r,on:{change:function(t){var r=fB.findPath(n,e),o={checked:t.target.checked};Qp.setNodes(n,o,{at:r})}}})),ry("span",null,t))}},sV=function(){function e(){this.title=Zj("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 e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!!fB.getSelectedNodeByType(e,"todo")},e.prototype.isDisabled=function(e){return null==e.selection||!!fB.getSelectedElems(e).some((function(t){if(fp.isVoid(e,t)&&fp.isBlock(e,t))return!0;var n=t.type;return!!["pre","table","list-item"].includes(n)||void 0}))},e.prototype.exec=function(e,t){var n=this.isActive(e);Qp.setNodes(e,{type:n?"paragraph":"todo"})},e}(),lV={selector:'div[data-w-e-type="todo"]',parseElemHtml:function(e,t,n){var r=hg(e);0===(t=t.filter((function(e){return!!Ip.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=!1;return null!=r.find('input[type="checkbox"]').attr("checked")&&(o=!0),{type:"todo",checked:o,children:t}}},cV={renderElems:[uV],elemsToHtml:[{type:"todo",elemToHtml:function(e,t){return'<div data-w-e-type="todo"><input type="checkbox" disabled '+(e.checked?"checked":"")+">"+t+"</div>"}}],preParseHtml:[{selector:"ul.w-e-todo",preParseHtml:function(e){var t=hg(e).find("li"),n=hg('<div data-w-e-type="todo"></div>'),r=t.find("input[type]");return n.append(r),t.children()[0].remove(),n[0].innerHTML=n[0].innerHTML+t[0].innerHTML,n[0]}}],parseElemsHtml:[lV],menus:[{key:"todo",factory:function(){return new sV}}],editorPlugin:function(e){var t=e.deleteBackward,n=e;return n.deleteBackward=function(n){var r=e.selection;if(r&&kp.isCollapsed(r)){var o=fB.getSelectedNodeByType(e,"todo");if(o&&0===vp.string(o).length)return void Qp.setNodes(e,{type:"paragraph"},{mode:"highest"})}t(n)},n}},fV={type:"blockquote",renderElem:function(e,t,n){return ry("blockquote",null,t)}},dV={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=hg(e);return 0===(t=t.filter((function(e){return!!Ip.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:t}}},pV=function(){function e(){this.title=Zj("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 e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!!fB.getSelectedNodeByType(e,"blockquote")},e.prototype.isDisabled=function(e){return null==e.selection||!vz(fp.nodes(e,{match:function(e){var t=fB.getNodeType(e);return"paragraph"===t||"blockquote"===t},universal:!0,mode:"highest"}),1)[0]},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=this.isActive(e)?"paragraph":"blockquote";Qp.setNodes(e,{type:n},{mode:"highest"})}},e}(),hV={key:"blockquote",factory:function(){return new pV}},gV=RI([].slice),vV=vR("slice"),yV=TN("species"),mV=CI.Array,bV=Math.max;GL({target:"Array",proto:!0,forced:!vV},{slice:function(e,t){var n,r,o,i=qI(this),a=SL(i),u=xL(e,a),s=xL(void 0===t?a:t,a);if(KL(i)&&(n=i.constructor,(sR(n)&&(n===mV||KL(n.prototype))||XI(n)&&null===(n=n[yV]))&&(n=void 0),n===mV||void 0===n))return gV(i,u,s);for(r=new(void 0===n?mV:n)(bV(s-u,0)),o=0;u<s;u++,o++)u in i&&zM(r,o,i[u]);return r.length=o,r}});var wV={renderElems:[fV],elemsToHtml:[{type:"blockquote",elemToHtml:function(e,t){return"<blockquote>"+t+"</blockquote>"}}],parseElemsHtml:[dV],menus:[hV],editorPlugin:function(e){var t=e.insertBreak,n=e.insertText,r=e;return r.insertBreak=function(){var o=r.selection;if(null==o)return t();var i=vz(fp.nodes(e,{match:function(e){return fB.checkNodeType(e,"blockquote")},universal:!0}),1)[0];if(!i)return t();var a=i[0],u=fB.findPath(e,a),s=fp.end(e,u);if(Cp.equals(s,o.focus)){var l=vp.string(a);if(l&&"\n"===l.slice(-1))return e.deleteBackward("character"),void Qp.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}n("\n")},r}},EV=function(){function e(){this.title=Zj("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 e.prototype.exec=function(e,t){},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||!!vz(fp.nodes(e,{match:function(t){return"pre"===fB.getNodeType(t)||!!fp.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){if(null==this.$content){var t=hg('<ul class="w-e-panel-content-emotion"></ul>');t.on("click","li",(function(t){var n=t.target;if(null!=n){t.preventDefault();var r=hg(n).text();e.insertText(r)}})),this.$content=t}var n=this.$content;if(null==n)return document.createElement("ul");n.empty();var r=e.getMenuConfig("emotion").emotions;return(void 0===r?[]:r).forEach((function(e){var t=hg("<li>"+e+"</li>");n.append(t)})),n[0]},e}(),xV={menus:[{key:"emotion",factory:function(){return new EV},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},DV={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},CV={selector:"font",preParseHtml:function(e){var t=hg(e);if("font"!==uz(t))return e;var n=t.attr("size")||"";n&&(t.removeAttr("size"),t.css("font-size",DV[n]));var r=t.attr("face")||"";return r&&(t.removeAttr("face"),t.css("font-family",r)),t[0]}},SV=RI("".indexOf);GL({target:"String",proto:!0,forced:!O$("includes")},{includes:function(e){return!!~SV(ER(GI(this)),ER(S$(e)),arguments.length>1?arguments[1]:void 0)}});var AV,OV,kV=function(e){return e&&e.Math==Math&&e},BV=kV("object"==typeof globalThis&&globalThis)||kV("object"==typeof window&&window)||kV("object"==typeof self&&self)||kV("object"==typeof bI&&bI)||function(){return this}()||Function("return this")(),FV=Function.prototype,TV=FV.apply,_V=FV.bind,PV=FV.call,jV="object"==typeof Reflect&&Reflect.apply||(_V?PV.bind(TV):function(){return PV.apply(TV,arguments)}),IV=Function.prototype,NV=IV.bind,LV=IV.call,RV=NV&&NV.bind(LV),MV=NV?function(e){return e&&RV(LV,e)}:function(e){return e&&function(){return LV.apply(e,arguments)}},zV=function(e){return"function"==typeof e},$V=function(e){try{return!!e()}catch(t){return!0}},HV=!$V((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),VV=Function.prototype.call,UV=VV.bind?VV.bind(VV):function(){return VV.apply(VV,arguments)},WV={}.propertyIsEnumerable,GV=Object.getOwnPropertyDescriptor,qV=GV&&!WV.call({1:2},1)?function(e){var t=GV(this,e);return!!t&&t.enumerable}:WV,KV={f:qV},XV=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},YV=MV({}.toString),ZV=MV("".slice),JV=function(e){return ZV(YV(e),8,-1)},QV=BV.Object,eU=MV("".split),tU=$V((function(){return!QV("z").propertyIsEnumerable(0)}))?function(e){return"String"==JV(e)?eU(e,""):QV(e)}:QV,nU=BV.TypeError,rU=function(e){if(null==e)throw nU("Can't call method on "+e);return e},oU=function(e){return tU(rU(e))},iU=function(e){return"object"==typeof e?null!==e:zV(e)},aU={},uU=function(e){return zV(e)?e:void 0},sU=function(e,t){return arguments.length<2?uU(aU[e])||uU(BV[e]):aU[e]&&aU[e][t]||BV[e]&&BV[e][t]},lU=MV({}.isPrototypeOf),cU=sU("navigator","userAgent")||"",fU=BV.process,dU=BV.Deno,pU=fU&&fU.versions||dU&&dU.version,hU=pU&&pU.v8;hU&&(OV=(AV=hU.split("."))[0]>0&&AV[0]<4?1:+(AV[0]+AV[1])),!OV&&cU&&(!(AV=cU.match(/Edge\/(\d+)/))||AV[1]>=74)&&(AV=cU.match(/Chrome\/(\d+)/))&&(OV=+AV[1]);var gU=OV,vU=!!Object.getOwnPropertySymbols&&!$V((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&gU&&gU<41})),yU=vU&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,mU=BV.Object,bU=yU?function(e){return"symbol"==typeof e}:function(e){var t=sU("Symbol");return zV(t)&&lU(t.prototype,mU(e))},wU=BV.String,EU=BV.TypeError,xU=function(e){if(zV(e))return e;throw EU(function(e){try{return wU(e)}catch(t){return"Object"}}(e)+" is not a function")},DU=BV.TypeError,CU=Object.defineProperty,SU=BV["__core-js_shared__"]||function(e,t){try{CU(BV,e,{value:t,configurable:!0,writable:!0})}catch(Qj){BV[e]=t}return t}("__core-js_shared__",{}),AU=wI((function(e){(e.exports=function(e,t){return SU[e]||(SU[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),OU=BV.Object,kU=function(e){return OU(rU(e))},BU=MV({}.hasOwnProperty),FU=Object.hasOwn||function(e,t){return BU(kU(e),t)},TU=0,_U=Math.random(),PU=MV(1..toString),jU=function(e){return"Symbol("+(void 0===e?"":e)+")_"+PU(++TU+_U,36)},IU=AU("wks"),NU=BV.Symbol,LU=NU&&NU.for,RU=yU?NU:NU&&NU.withoutSetter||jU,MU=function(e){if(!FU(IU,e)||!vU&&"string"!=typeof IU[e]){var t="Symbol."+e;vU&&FU(NU,e)?IU[e]=NU[e]:IU[e]=yU&&LU?LU(t):RU(t)}return IU[e]},zU=BV.TypeError,$U=MU("toPrimitive"),HU=function(e){var t=function(e,t){if(!iU(e)||bU(e))return e;var n,r,o=null==(n=e[$U])?void 0:xU(n);if(o){if(void 0===t&&(t="default"),r=UV(o,e,t),!iU(r)||bU(r))return r;throw zU("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&zV(n=e.toString)&&!iU(r=UV(n,e)))return r;if(zV(n=e.valueOf)&&!iU(r=UV(n,e)))return r;if("string"!==t&&zV(n=e.toString)&&!iU(r=UV(n,e)))return r;throw DU("Can't convert object to primitive value")}(e,t)}(e,"string");return bU(t)?t:t+""},VU=BV.document,UU=iU(VU)&&iU(VU.createElement),WU=function(e){return UU?VU.createElement(e):{}},GU=!HV&&!$V((function(){return 7!=Object.defineProperty(WU("div"),"a",{get:function(){return 7}}).a})),qU=Object.getOwnPropertyDescriptor,KU={f:HV?qU:function(e,t){if(e=oU(e),t=HU(t),GU)try{return qU(e,t)}catch(n){}if(FU(e,t))return XV(!UV(KV.f,e,t),e[t])}},XU=/#|\.prototype\./,YU=function(e,t){var n=JU[ZU(e)];return n==eW||n!=QU&&(zV(t)?$V(t):!!t)},ZU=YU.normalize=function(e){return String(e).replace(XU,".").toLowerCase()},JU=YU.data={},QU=YU.NATIVE="N",eW=YU.POLYFILL="P",tW=YU,nW=MV(MV.bind),rW=function(e,t){return xU(e),void 0===t?e:nW?nW(e,t):function(){return e.apply(t,arguments)}},oW=BV.String,iW=BV.TypeError,aW=function(e){if(iU(e))return e;throw iW(oW(e)+" is not an object")},uW=BV.TypeError,sW=Object.defineProperty,lW={f:HV?sW:function(e,t,n){if(aW(e),t=HU(t),aW(n),GU)try{return sW(e,t,n)}catch(r){}if("get"in n||"set"in n)throw uW("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},cW=HV?function(e,t,n){return lW.f(e,t,XV(1,n))}:function(e,t,n){return e[t]=n,e},fW=KU.f,dW=function(e){var t=function(n,r,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,o)}return jV(e,this,arguments)};return t.prototype=e.prototype,t},pW=function(e,t){var n,r,o,i,a,u,s,l,c=e.target,f=e.global,d=e.stat,p=e.proto,h=f?BV:d?BV[c]:(BV[c]||{}).prototype,g=f?aU:aU[c]||cW(aU,c,{})[c],v=g.prototype;for(o in t)n=!tW(f?o:c+(d?".":"#")+o,e.forced)&&h&&FU(h,o),a=g[o],n&&(u=e.noTargetGet?(l=fW(h,o))&&l.value:h[o]),i=n&&u?u:t[o],n&&typeof a==typeof i||(s=e.bind&&n?rW(i,BV):e.wrap&&n?dW(i):p&&zV(i)?MV(i):i,(e.sham||i&&i.sham||a&&a.sham)&&cW(s,"sham",!0),cW(g,o,s),p&&(FU(aU,r=c+"Prototype")||cW(aU,r,{}),cW(aU[r],o,i),e.real&&v&&!v[o]&&cW(v,o,i)))},hW=Array.isArray||function(e){return"Array"==JV(e)},gW=Math.ceil,vW=Math.floor,yW=function(e){var t=+e;return t!=t||0===t?0:(t>0?vW:gW)(t)},mW=Math.min,bW=function(e){return(t=e.length)>0?mW(yW(t),9007199254740991):0;var t},wW=function(e,t,n){var r=HU(t);r in e?lW.f(e,r,XV(0,n)):e[r]=n},EW={};EW[MU("toStringTag")]="z";var xW="[object z]"===String(EW),DW=MU("toStringTag"),CW=BV.Object,SW="Arguments"==JV(function(){return arguments}()),AW=xW?JV:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=CW(e),DW))?n:SW?JV(t):"Object"==(r=JV(t))&&zV(t.callee)?"Arguments":r},OW=MV(Function.toString);zV(SU.inspectSource)||(SU.inspectSource=function(e){return OW(e)});var kW=SU.inspectSource,BW=function(){},FW=[],TW=sU("Reflect","construct"),_W=/^\s*(?:class|function)\b/,PW=MV(_W.exec),jW=!_W.exec(BW),IW=function(e){if(!zV(e))return!1;try{return TW(BW,FW,e),!0}catch(t){return!1}},NW=!TW||$V((function(){var e;return IW(IW.call)||!IW(Object)||!IW((function(){e=!0}))||e}))?function(e){if(!zV(e))return!1;switch(AW(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return jW||!!PW(_W,kW(e))}:IW,LW=MU("species"),RW=BV.Array,MW=function(e,t){return new(hW(n=e)&&(r=n.constructor,(NW(r)&&(r===RW||hW(r.prototype))||iU(r)&&null===(r=r[LW]))&&(r=void 0)),void 0===r?RW:r)(0===t?0:t);var n,r},zW=MU("species"),$W=MU("isConcatSpreadable"),HW=BV.TypeError,VW=gU>=51||!$V((function(){var e=[];return e[$W]=!1,e.concat()[0]!==e})),UW=gU>=51||!$V((function(){var e=[];return(e.constructor={})[zW]=function(){return{foo:1}},1!==e.concat(Boolean).foo})),WW=function(e){if(!iU(e))return!1;var t=e[$W];return void 0!==t?!!t:hW(e)};pW({target:"Array",proto:!0,forced:!VW||!UW},{concat:function(e){var t,n,r,o,i,a=kU(this),u=MW(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(WW(i=-1===t?a:arguments[t])){if(s+(o=bW(i))>9007199254740991)throw HW("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&wW(u,s,i[n])}else{if(s>=9007199254740991)throw HW("Maximum allowed index exceeded");wW(u,s++,i)}return u.length=s,u}});var GW,qW=BV.String,KW=function(e){if("Symbol"===AW(e))throw TypeError("Cannot convert a Symbol value to a string");return qW(e)},XW=Math.max,YW=Math.min,ZW=function(e,t){var n=yW(e);return n<0?XW(n+t,0):YW(n,t)},JW=function(e){return function(t,n,r){var o,i=oU(t),a=bW(i),u=ZW(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},QW={includes:JW(!0),indexOf:JW(!1)},eG={},tG=QW.indexOf,nG=MV([].push),rG=function(e,t){var n,r=oU(e),o=0,i=[];for(n in r)!FU(eG,n)&&FU(r,n)&&nG(i,n);for(;t.length>o;)FU(r,n=t[o++])&&(~tG(i,n)||nG(i,n));return i},oG=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],iG=Object.keys||function(e){return rG(e,oG)},aG=HV?Object.defineProperties:function(e,t){aW(e);for(var n,r=oU(t),o=iG(t),i=o.length,a=0;i>a;)lW.f(e,n=o[a++],r[n]);return e},uG=sU("document","documentElement"),sG=AU("keys"),lG=function(e){return sG[e]||(sG[e]=jU(e))},cG=lG("IE_PROTO"),fG=function(){},dG=function(e){return"<script>"+e+"<\/script>"},pG=function(e){e.write(dG("")),e.close();var t=e.parentWindow.Object;return e=null,t},hG=function(){try{GW=new ActiveXObject("htmlfile")}catch(r){}var e,t;hG="undefined"!=typeof document?document.domain&&GW?pG(GW):((t=WU("iframe")).style.display="none",uG.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(dG("document.F=Object")),e.close(),e.F):pG(GW);for(var n=oG.length;n--;)delete hG.prototype[oG[n]];return hG()};eG[cG]=!0;var gG,vG,yG,mG=Object.create||function(e,t){var n;return null!==e?(fG.prototype=aW(e),n=new fG,fG.prototype=null,n[cG]=e):n=hG(),void 0===t?n:aG(n,t)},bG=oG.concat("length","prototype"),wG={f:Object.getOwnPropertyNames||function(e){return rG(e,bG)}},EG=BV.Array,xG=Math.max,DG=wG.f,CG="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],SG={f:function(e){return CG&&"Window"==JV(e)?function(e){try{return DG(e)}catch(t){return function(e,t,n){for(var r=bW(e),o=ZW(void 0,r),i=ZW(r,r),a=EG(xG(i-o,0)),u=0;o<i;o++,u++)wW(a,u,e[o]);return a.length=u,a}(CG)}}(e):DG(oU(e))}},AG={f:Object.getOwnPropertySymbols},OG=MV([].slice),kG=function(e,t,n,r){r&&r.enumerable?e[t]=n:cW(e,t,n)},BG={f:MU},FG=lW.f,TG=function(e){var t=aU.Symbol||(aU.Symbol={});FU(t,e)||FG(t,e,{value:BG.f(e)})},_G=xW?{}.toString:function(){return"[object "+AW(this)+"]"},PG=lW.f,jG=MU("toStringTag"),IG=function(e,t,n,r){if(e){var o=n?e:e.prototype;FU(o,jG)||PG(o,jG,{configurable:!0,value:t}),r&&!xW&&cW(o,"toString",_G)}},NG=BV.WeakMap,LG=zV(NG)&&/native code/.test(kW(NG)),RG=BV.TypeError,MG=BV.WeakMap;if(LG||SU.state){var zG=SU.state||(SU.state=new MG),$G=MV(zG.get),HG=MV(zG.has),VG=MV(zG.set);gG=function(e,t){if(HG(zG,e))throw new RG("Object already initialized");return t.facade=e,VG(zG,e,t),t},vG=function(e){return $G(zG,e)||{}},yG=function(e){return HG(zG,e)}}else{var UG=lG("state");eG[UG]=!0,gG=function(e,t){if(FU(e,UG))throw new RG("Object already initialized");return t.facade=e,cW(e,UG,t),t},vG=function(e){return FU(e,UG)?e[UG]:{}},yG=function(e){return FU(e,UG)}}var WG={set:gG,get:vG,has:yG,enforce:function(e){return yG(e)?vG(e):gG(e,{})},getterFor:function(e){return function(t){var n;if(!iU(t)||(n=vG(t)).type!==e)throw RG("Incompatible receiver, "+e+" required");return n}}},GG=MV([].push),qG=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=kU(s),g=tU(h),v=rW(l,c),y=bW(g),m=0,b=f||MW,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:GG(w,d)}else switch(e){case 4:return!1;case 7:GG(w,d)}return i?-1:r||o?o:w}},KG=[qG(0),qG(1),qG(2),qG(3),qG(4),qG(5),qG(6),qG(7)][0],XG=lG("hidden"),YG=MU("toPrimitive"),ZG=WG.set,JG=WG.getterFor("Symbol"),QG=Object.prototype,eq=BV.Symbol,tq=eq&&eq.prototype,nq=BV.TypeError,rq=BV.QObject,oq=sU("JSON","stringify"),iq=KU.f,aq=lW.f,uq=SG.f,sq=KV.f,lq=MV([].push),cq=AU("symbols"),fq=AU("op-symbols"),dq=AU("string-to-symbol-registry"),pq=AU("symbol-to-string-registry"),hq=AU("wks"),gq=!rq||!rq.prototype||!rq.prototype.findChild,vq=HV&&$V((function(){return 7!=mG(aq({},"a",{get:function(){return aq(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=iq(QG,t);r&&delete QG[t],aq(e,t,n),r&&e!==QG&&aq(QG,t,r)}:aq,yq=function(e,t){var n=cq[e]=mG(tq);return ZG(n,{type:"Symbol",tag:e,description:t}),HV||(n.description=t),n},mq=function(e,t,n){e===QG&&mq(fq,t,n),aW(e);var r=HU(t);return aW(n),FU(cq,r)?(n.enumerable?(FU(e,XG)&&e[XG][r]&&(e[XG][r]=!1),n=mG(n,{enumerable:XV(0,!1)})):(FU(e,XG)||aq(e,XG,XV(1,{})),e[XG][r]=!0),vq(e,r,n)):aq(e,r,n)},bq=function(e,t){aW(e);var n=oU(t),r=iG(n).concat(Dq(n));return KG(r,(function(t){HV&&!UV(wq,n,t)||mq(e,t,n[t])})),e},wq=function(e){var t=HU(e),n=UV(sq,this,t);return!(this===QG&&FU(cq,t)&&!FU(fq,t))&&(!(n||!FU(this,t)||!FU(cq,t)||FU(this,XG)&&this[XG][t])||n)},Eq=function(e,t){var n=oU(e),r=HU(t);if(n!==QG||!FU(cq,r)||FU(fq,r)){var o=iq(n,r);return!o||!FU(cq,r)||FU(n,XG)&&n[XG][r]||(o.enumerable=!0),o}},xq=function(e){var t=uq(oU(e)),n=[];return KG(t,(function(e){FU(cq,e)||FU(eG,e)||lq(n,e)})),n},Dq=function(e){var t=e===QG,n=uq(t?fq:oU(e)),r=[];return KG(n,(function(e){!FU(cq,e)||t&&!FU(QG,e)||lq(r,cq[e])})),r};if(vU||(tq=(eq=function(){if(lU(tq,this))throw nq("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?KW(arguments[0]):void 0,t=jU(e),n=function(e){this===QG&&UV(n,fq,e),FU(this,XG)&&FU(this[XG],t)&&(this[XG][t]=!1),vq(this,t,XV(1,e))};return HV&&gq&&vq(QG,t,{configurable:!0,set:n}),yq(t,e)}).prototype,kG(tq,"toString",(function(){return JG(this).tag})),kG(eq,"withoutSetter",(function(e){return yq(jU(e),e)})),KV.f=wq,lW.f=mq,KU.f=Eq,wG.f=SG.f=xq,AG.f=Dq,BG.f=function(e){return yq(MU(e),e)},HV&&aq(tq,"description",{configurable:!0,get:function(){return JG(this).description}})),pW({global:!0,wrap:!0,forced:!vU,sham:!vU},{Symbol:eq}),KG(iG(hq),(function(e){TG(e)})),pW({target:"Symbol",stat:!0,forced:!vU},{for:function(e){var t=KW(e);if(FU(dq,t))return dq[t];var n=eq(t);return dq[t]=n,pq[n]=t,n},keyFor:function(e){if(!bU(e))throw nq(e+" is not a symbol");if(FU(pq,e))return pq[e]},useSetter:function(){gq=!0},useSimple:function(){gq=!1}}),pW({target:"Object",stat:!0,forced:!vU,sham:!HV},{create:function(e,t){return void 0===t?mG(e):bq(mG(e),t)},defineProperty:mq,defineProperties:bq,getOwnPropertyDescriptor:Eq}),pW({target:"Object",stat:!0,forced:!vU},{getOwnPropertyNames:xq,getOwnPropertySymbols:Dq}),pW({target:"Object",stat:!0,forced:$V((function(){AG.f(1)}))},{getOwnPropertySymbols:function(e){return AG.f(kU(e))}}),oq){var Cq=!vU||$V((function(){var e=eq();return"[null]"!=oq([e])||"{}"!=oq({a:e})||"{}"!=oq(Object(e))}));pW({target:"JSON",stat:!0,forced:Cq},{stringify:function(e,t,n){var r=OG(arguments),o=t;if((iU(t)||void 0!==e)&&!bU(e))return hW(t)||(t=function(e,t){if(zV(o)&&(t=UV(o,this,e,t)),!bU(t))return t}),r[1]=t,jV(oq,null,r)}})}if(!tq[YG]){var Sq=tq.valueOf;kG(tq,YG,(function(e){return UV(Sq,this)}))}IG(eq,"Symbol"),eG[XG]=!0,TG("asyncIterator"),TG("hasInstance"),TG("isConcatSpreadable"),TG("iterator"),TG("match"),TG("matchAll"),TG("replace"),TG("search"),TG("species"),TG("split"),TG("toPrimitive"),TG("toStringTag"),TG("unscopables"),IG(BV.JSON,"JSON",!0);var Aq,Oq,kq,Bq=aU.Symbol,Fq={},Tq=Function.prototype,_q=HV&&Object.getOwnPropertyDescriptor,Pq=FU(Tq,"name"),jq={EXISTS:Pq,PROPER:Pq&&"something"===function(){}.name,CONFIGURABLE:Pq&&(!HV||HV&&_q(Tq,"name").configurable)},Iq=!$V((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Nq=lG("IE_PROTO"),Lq=BV.Object,Rq=Lq.prototype,Mq=Iq?Lq.getPrototypeOf:function(e){var t=kU(e);if(FU(t,Nq))return t[Nq];var n=t.constructor;return zV(n)&&t instanceof n?n.prototype:t instanceof Lq?Rq:null},zq=MU("iterator"),$q=!1;[].keys&&("next"in(kq=[].keys())?(Oq=Mq(Mq(kq)))!==Object.prototype&&(Aq=Oq):$q=!0);var Hq=null==Aq||$V((function(){var e={};return Aq[zq].call(e)!==e}));Aq=Hq?{}:mG(Aq),zV(Aq[zq])||kG(Aq,zq,(function(){return this}));var Vq={IteratorPrototype:Aq,BUGGY_SAFARI_ITERATORS:$q},Uq=Vq.IteratorPrototype,Wq=function(){return this};BV.String,BV.TypeError,Object.setPrototypeOf||"__proto__"in{}&&function(){var e={};try{MV(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set)(e,[])}catch(t){}}();var Gq=jq.PROPER,qq=Vq.BUGGY_SAFARI_ITERATORS,Kq=MU("iterator"),Xq=function(){return this},Yq=function(e,t,n,r,o,i,a){var u,s,l;s=r,l=t+" Iterator",(u=n).prototype=mG(Uq,{next:XV(1,s)}),IG(u,l,!1,!0),Fq[l]=Wq;var c,f,d,p=function(e){if(e===o&&m)return m;if(!qq&&e in v)return v[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},h=t+" Iterator",g=!1,v=e.prototype,y=v[Kq]||v["@@iterator"]||o&&v[o],m=!qq&&y||p(o),b="Array"==t&&v.entries||y;if(b&&(c=Mq(b.call(new e)))!==Object.prototype&&c.next&&(IG(c,h,!0,!0),Fq[h]=Xq),Gq&&"values"==o&&y&&"values"!==y.name&&(g=!0,m=function(){return UV(y,this)}),o)if(f={values:p("values"),keys:i?m:p("keys"),entries:p("entries")},a)for(d in f)(qq||g||!(d in v))&&kG(v,d,f[d]);else pW({target:t,proto:!0,forced:qq||g},f);return a&&v[Kq]!==m&&kG(v,Kq,m,{name:o}),Fq[t]=m,f},Zq=WG.set,Jq=WG.getterFor("Array Iterator");Yq(Array,"Array",(function(e,t){Zq(this,{type:"Array Iterator",target:oU(e),index:0,kind:t})}),(function(){var e=Jq(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),Fq.Arguments=Fq.Array;var Qq=MU("toStringTag");for(var eK 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 tK=BV[eK],nK=tK&&tK.prototype;nK&&AW(nK)!==Qq&&cW(nK,Qq,eK),Fq[eK]=Fq.Array}var rK=Bq;TG("asyncDispose"),TG("dispose"),TG("matcher"),TG("metadata"),TG("observable"),TG("patternMatch"),TG("replaceAll");var oK=rK,iK=MV("".charAt),aK=MV("".charCodeAt),uK=MV("".slice),sK=function(e){return function(t,n){var r,o,i=KW(rU(t)),a=yW(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=aK(i,a))<55296||r>56319||a+1===u||(o=aK(i,a+1))<56320||o>57343?e?iK(i,a):r:e?uK(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0),lK=WG.set,cK=WG.getterFor("String Iterator");Yq(String,"String",(function(e){lK(this,{type:"String Iterator",string:KW(e),index:0})}),(function(){var e,t=cK(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=sK(n,r),t.index+=e.length,{value:e,done:!1})}));var fK=BG.f("iterator"),dK=wI((function(e){function t(n){return"function"==typeof oK&&"symbol"==typeof fK?(e.exports=t=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(e){return e&&"function"==typeof oK&&e.constructor===oK&&e!==oK.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0})),pK=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(dK),hK=gL.EXISTS,gK=GN.f,vK=Function.prototype,yK=RI(vK.toString),mK=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,bK=RI(mK.exec);AI&&!hK&&gK(vK,"name",{configurable:!0,get:function(){try{return bK(mK,yK(this))[1]}catch(pf){return""}}});var wK=function(){function e(){this.tag="select",this.width=80}return e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.mark,n=fp.marks(e);return n&&n[t]?n[t]:""},e.prototype.isDisabled=function(e){return null==e.selection||(this.mark,!!vz(fp.nodes(e,{match:function(t){return"pre"===fB.getNodeType(t)||!!fp.isVoid(e,t)},universal:!0}),1)[0])},e.prototype.exec=function(e,t){var n=this.mark;t?e.addMark(n,t):e.removeMark(n)},e}(),EK=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Zj("fontSize.title"),t.iconSvg=Gz,t.mark="fontSize",t}return fz(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontSizeList,r=void 0===n?[]:n;t.push({text:Zj("fontSize.default"),value:""}),r.forEach((function(e){if("string"==typeof e)t.push({text:e,value:e});else if("object"===pK(e)){var n=e.name,r=e.value;t.push({text:n,value:r})}}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},t}(wK),xK=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Zj("fontFamily.title"),t.iconSvg=qz,t.mark="fontFamily",t.selectPanelWidth=150,t}return fz(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontFamilyList,r=void 0===n?[]:n;t.push({text:Zj("fontFamily.default"),value:""}),r.forEach((function(e){if("string"==typeof e)t.push({text:e,value:e,styleForRenderMenuList:{"font-family":e}});else if("object"===pK(e)){var n=e.name,r=e.value;t.push({text:n,value:r,styleForRenderMenuList:{"font-family":r}})}}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},t}(wK),DK={renderStyle:function(e,t){var n=e,r=n.fontSize,o=n.fontFamily,i=t;return r&&nH(i,{fontSize:r}),o&&nH(i,{fontFamily:o}),i},styleToHtml:function(e,t){if(!Ip.isText(e))return t;var n,r=e,o=r.fontSize,i=r.fontFamily;return o||i?((iz(t)||"span"!==uz(n=hg(t)))&&(n=hg("<span>"+t+"</span>")),o&&n.css("font-size",o),i&&n.css("font-family",i),az(n)):t},preParseHtml:[CV],parseStyleHtml:function(e,t,n){var r=hg(e);if(!Ip.isText(t))return t;var o=t,i=n.getMenuConfig("fontSize").fontSizeList,a=void 0===i?[]:i,u=sz(r,"font-size"),s=a.find((function(e){return e.value&&e.value===u}))||a.includes(u);u&&s&&(o.fontSize=u);var l=n.getMenuConfig("fontFamily").fontFamilyList,c=void 0===l?[]:l,f=sz(r,"font-family").replace(/"/g,""),d=c.find((function(e){return e.value&&e.value===f}))||c.includes(f);return f&&d&&(o.fontFamily=f),o},menus:[{key:"fontSize",factory:function(){return new EK},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 xK},config:{fontFamilyList:["黑体",{name:"仿宋",value:"仿宋"},"楷体","标楷体","华文仿宋","华文楷体",{name:"宋体",value:"宋体"},"微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},CK={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(e){var t=hg(e),n=sz(t,"padding-left");return/\dem/.test(n)&&t.css("text-indent","2em"),/\dpx/.test(n)&&parseInt(n,10)%32==0&&t.css("text-indent","2em"),t[0]}},SK=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){var t=vz(fp.nodes(e,{match:function(e){return!!e.indent},universal:!0}),1)[0];return null==t?"":vz(t,1)[0].indent||""},e.prototype.isActive=function(e){return!1},e.prototype.getMatchNode=function(e){var t=vz(fp.nodes(e,{match:function(e){var t=fB.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e}(),AK=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Zj("indent.decrease"),t.iconSvg=Kz,t}return fz(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return null==t||!t.indent},t.prototype.exec=function(e,t){Qp.setNodes(e,{indent:null},{match:function(e){return ip.isElement(e)}})},t}(SK),OK=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Zj("indent.increase"),t.iconSvg=Xz,t}return fz(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return null==t||!!t.indent},t.prototype.exec=function(e,t){Qp.setNodes(e,{indent:"2em"},{match:function(e){return ip.isElement(e)},mode:"highest"})},t}(SK),kK={renderStyle:function(e,t){if(!ip.isElement(e))return t;var n=e.indent,r=t;return n&&nH(r,{textIndent:n}),r},styleToHtml:function(e,t){if(!ip.isElement(e))return t;var n=e.indent;if(!n)return t;var r=hg(t);return r.css("text-indent",n),az(r)},preParseHtml:[CK],parseStyleHtml:function(e,t,n){var r=hg(e);if(!ip.isElement(t))return t;var o=t,i=sz(r,"text-indent"),a=parseInt(i,10);return i&&a>0&&(o.indent=i),o},menus:[{key:"indent",factory:function(){return new OK}},{key:"delIndent",factory:function(){return new AK}}]},BK=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.getMatchNode=function(e){var t=vz(fp.nodes(e,{match:function(e){var t=fB.getNodeType(e);return"paragraph"===t||"blockquote"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e.prototype.isDisabled=function(e){return null==e.selection||!!fB.getSelectedElems(e).some((function(t){if(fp.isVoid(e,t)&&fp.isBlock(e,t))return!0;var n=t.type;return!!["pre","code"].includes(n)||void 0}))},e}(),FK=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Zj("justify.left"),t.iconSvg=Yz,t}return fz(t,e),t.prototype.exec=function(e,t){Qp.setNodes(e,{textAlign:"left"},{match:function(t){return ip.isElement(t)&&!e.isInline(t)}})},t}(BK),TK=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Zj("justify.right"),t.iconSvg=Zz,t}return fz(t,e),t.prototype.exec=function(e,t){Qp.setNodes(e,{textAlign:"right"},{match:function(t){return ip.isElement(t)&&!e.isInline(t)}})},t}(BK),_K=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Zj("justify.center"),t.iconSvg=Jz,t}return fz(t,e),t.prototype.exec=function(e,t){Qp.setNodes(e,{textAlign:"center"},{match:function(t){return ip.isElement(t)&&!e.isInline(t)}})},t}(BK),PK=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Zj("justify.justify"),t.iconSvg=Qz,t}return fz(t,e),t.prototype.exec=function(e,t){Qp.setNodes(e,{textAlign:"justify"},{match:function(t){return ip.isElement(t)&&!e.isInline(t)}})},t}(BK),jK={renderStyle:function(e,t){if(!ip.isElement(e))return t;var n=e.textAlign,r=t;return n&&nH(r,{textAlign:n}),r},styleToHtml:function(e,t){if(!ip.isElement(e))return t;var n=e.textAlign;if(!n)return t;var r=hg(t);return r.css("text-align",n),az(r)},parseStyleHtml:function(e,t,n){var r=hg(e);if(!ip.isElement(t))return t;var o=t,i=sz(r,"text-align");return i&&(o.textAlign=i),o},menus:[{key:"justifyLeft",factory:function(){return new FK}},{key:"justifyRight",factory:function(){return new TK}},{key:"justifyCenter",factory:function(){return new _K}},{key:"justifyJustify",factory:function(){return new PK}}]},IK=function(){function e(){this.title=Zj("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 e.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig("lineHeight").lineHeightList,r=void 0===n?[]:n;t.push({text:Zj("lineHeight.default"),value:""}),r.forEach((function(e){t.push({text:e,value:e})}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},e.prototype.getMatchNode=function(e){var t=vz(fp.nodes(e,{match:function(e){var t=fB.getNodeType(e);return!!t.startsWith("header")||!!["paragraph","blockquote","list-item"].includes(t)},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.getMatchNode(e);return null==t?"":ip.isElement(t)&&t.lineHeight||""},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getMatchNode(e)},e.prototype.exec=function(e,t){Qp.setNodes(e,{lineHeight:t.toString()},{mode:"highest"})},e}(),NK={renderStyle:function(e,t){if(!ip.isElement(e))return t;var n=e.lineHeight,r=t;return n&&nH(r,{lineHeight:n}),r},styleToHtml:function(e,t){if(!ip.isElement(e))return t;var n=e.lineHeight;if(!n)return t;var r=hg(t);return r.css("line-height",n),az(r)},parseStyleHtml:function(e,t,n){var r=hg(e);if(!ip.isElement(t))return t;var o=t,i=n.getMenuConfig("lineHeight").lineHeightList,a=void 0===i?[]:i,u=sz(r,"line-height");return u&&a.includes(u)&&(o.lineHeight=u),o},menus:[{key:"lineHeight",factory:function(){return new IK},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},LK=function(){function e(){this.title=Zj("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 e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection},e.prototype.exec=function(e,t){"function"==typeof e.redo&&e.redo()},e}(),RK=function(){function e(){this.title=Zj("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 e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection},e.prototype.exec=function(e,t){"function"==typeof e.undo&&e.undo()},e}(),MK={menus:[{key:"redo",factory:function(){return new LK}},{key:"undo",factory:function(){return new RK}}]},zK={type:"divider",renderElem:function(e,t,n){return Lv("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:fB.isNodeSelected(n,e)?"true":""},style:{},on:{mousedown:function(e){return e.preventDefault()}}},[Lv("hr")])}},$K=function(){function e(){this.title=Zj("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 e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||!!fB.getSelectedElems(e).some((function(t){if(e.isVoid(t))return!0;var n=fB.getNodeType(t);return"table"===n||"pre"===n||void 0}))},e.prototype.exec=function(e,t){Qp.insertNodes(e,{type:"divider",children:[{text:""}]},{mode:"highest"})},e}(),HK={renderElems:[zK],elemsToHtml:[{type:"divider",elemToHtml:function(e,t){return"<hr/>"}}],parseElemsHtml:[{selector:"hr:not([data-w-e-type])",parseElemHtml:function(e,t,n){return{type:"divider",children:[{text:""}]}}}],menus:[{key:"divider",factory:function(){return new $K}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(e){return"divider"===e.type||t(e)},r.normalizeNode=function(e){var t=vz(e,2),o=t[0],i=t[1];if("divider"!==fB.getNodeType(o))return n([o,i]);fB.isLastNode(r,o)&&Qp.insertNodes(r,fB.genEmptyParagraph(),{at:[i[0]+1]})},r}},VK=hR.map;GL({target:"Array",proto:!0,forced:!vR("map")},{map:function(e){return VK(this,e,arguments.length>1?arguments[1]:void 0)}});var UK=RI([].join),WK=UI!=Object,GK=Bz("join",",");GL({target:"Array",proto:!0,forced:WK||!GK},{join:function(e){return UK(qI(this),void 0===e?",":e)}});var qK=function(){function e(){this.title=Zj("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 e.prototype.getSelectCodeElem=function(e){var t=fB.getSelectedNodeByType(e,"code");if(null==t)return null;var n=fB.getParentNode(e,t);return null==n||"pre"!==fB.getNodeType(n)?null:t},e.prototype.getValue=function(e){var t=this.getSelectCodeElem(e);return null==t?"":t.language||""},e.prototype.isActive=function(e){return!!this.getSelectCodeElem(e)},e.prototype.isDisabled=function(e){if(null==e.selection)return!0;var t=fB.getSelectedElems(e);return!!t.some((function(t){return e.isVoid(t)}))||!t.some((function(e){var t=fB.getNodeType(e);if("pre"===t||"paragraph"===t)return!0}))},e.prototype.exec=function(e,t){this.isActive(e)?this.changeToPlainText(e):this.changeToCodeBlock(e,t.toString())},e.prototype.changeToPlainText=function(e){var t=this.getSelectCodeElem(e);if(null!=t){var n=vp.string(t);Qp.removeNodes(e,{mode:"highest"});var r=n.split("\n").map((function(e){return{type:"paragraph",children:[{text:e}]}}));Qp.insertNodes(e,r,{mode:"highest"})}},e.prototype.changeToCodeBlock=function(e,t){var n,r,o=[],i=fp.nodes(e,{match:function(t){return e.children.includes(t)},universal:!0});try{for(var a=gz(i),u=a.next();!u.done;u=a.next()){var s=vz(u.value,1)[0];s&&o.push(vp.string(s))}}catch(c){n={error:c}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}Qp.removeNodes(e,{mode:"highest"});var l={type:"pre",children:[{type:"code",language:t,children:[{text:o.join("\n")}]}]};Qp.insertNodes(e,l,{mode:"highest"})},e}(),KK={key:"codeBlock",factory:function(){return new qK}};GL({target:"String",proto:!0,forced:xz("anchor")},{anchor:function(e){return Ez(this,"a","name",e)}}),uM("match",(function(e,t,n){return[function(t){var n=GI(this),r=null==t?void 0:pN(t,e);return r?kI(r,t,n):new RegExp(t)[e](ER(n))},function(e){var r=VN(this),o=ER(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return EM(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],l=0;null!==(u=EM(r,o));){var c=ER(u[0]);s[l]=c,""===c&&(r.lastIndex=dM(o,CL(r.lastIndex),a)),l++}return 0===l?null:s}]}));var XK={selector:"pre:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=hg(e);return 0===(t=t.filter((function(e){return"code"===fB.getNodeType(e)}))).length&&(t=[{type:"code",language:"",children:[{text:r[0].textContent||""}]}]),{type:"pre",children:t.filter((function(e){return"code"===fB.getNodeType(e)}))}}},YK={menus:[KK],editorPlugin:function(e){var t=e.insertBreak,n=e.normalizeNode,r=e.insertData;e.insertNode;var o=e;return o.insertBreak=function(){var e=fB.getSelectedNodeByType(o,"code");if(null!=e){var n=function(e,t){var n=t.selection;if(null==n)return"";var r=vp.string(e),o=n.anchor.offset,i=r.slice(0,o).split("\n"),a=i.length;return 0===a?"":i[a-1]}(e,o);if(n){var r=n.match(/^\s+/);if(null!=r&&null!=r[0]){var i=r[0];return void o.insertText("\n"+i)}}o.insertText("\n")}else t()},o.normalizeNode=function(e){var t=vz(e,2),r=t[0],i=t[1],a=fB.getNodeType(r);return"code"===a&&i.length<=1&&Qp.setNodes(o,{type:"paragraph"},{at:i}),"pre"===a&&(fB.isLastNode(o,r)&&Qp.insertNodes(o,fB.genEmptyParagraph(),{at:[i[0]+1]}),"code"!==fB.getNodeType(r.children[0])&&(Qp.unwrapNodes(o),Qp.setNodes(o,{type:"paragraph"},{mode:"highest"}))),n([r,i])},o.insertData=function(e){if(null!=fB.getSelectedNodeByType(o,"code")){var t=e.getData("text/plain");fp.insertText(o,t)}else r(e)},o},renderElems:[{type:"pre",renderElem:function(e,t,n){return ry("pre",null,t)}},{type:"code",renderElem:function(e,t,n){return ry("code",null,t)}}],elemsToHtml:[{type:"code",elemToHtml:function(e,t){return"<code>"+t+"</code>"}},{type:"pre",elemToHtml:function(e,t){return"<pre>"+t+"</pre>"}}],preParseHtml:[{selector:"pre>code",preParseHtml:function(e){var t=hg(e);if("code"!==uz(t))return e;var n=t.find("xmp");if(0===n.length)return e;var r=n.text();return n.remove(),t.text(r),t[0]}}],parseElemsHtml:[{selector:"pre:not([data-w-e-type])>code",parseElemHtml:function(e,t,n){return{type:"code",language:"",children:[{text:hg(e)[0].textContent||""}]}}},XK]},ZK=function(){function e(){this.title=Zj("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 e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return e.isFullScreen},e.prototype.isDisabled=function(e){return!1},e.prototype.exec=function(e,t){e.isFullScreen?e.unFullScreen():e.fullScreen()},e}(),JK={menus:[{key:"fullScreen",factory:function(){return new ZK}}]},QK=function(){function e(){this.title=Zj("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 e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!!kp.isExpanded(t)},e.prototype.exec=function(e,t){var n=e.selection;if(null!=n){var r=[n.anchor.path[0]];Qp.insertNodes(e,{type:"paragraph",children:[{text:""}]},{at:r}),e.select(fp.start(e,r))}},e}(),eX=[c$,sH,DK,kK,jK,NK,aV,HK,xV,BH,YK,wV,Z$,mz,cV,MK,JK,{menus:[{key:"enter",factory:function(){return new QK}}]}];Yj("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),Yj("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var tX="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function nX(e){var t={exports:{}};return e(t,t.exports),t.exports}var rX,oX,iX=function(e){return e&&e.Math==Math&&e},aX=iX("object"==typeof globalThis&&globalThis)||iX("object"==typeof window&&window)||iX("object"==typeof self&&self)||iX("object"==typeof tX&&tX)||function(){return this}()||Function("return this")(),uX=Function.prototype,sX=uX.bind,lX=uX.call,cX=sX&&sX.bind(lX),fX=sX?function(e){return e&&cX(lX,e)}:function(e){return e&&function(){return lX.apply(e,arguments)}},dX=function(e){try{return!!e()}catch(t){return!0}},pX=fX({}.toString),hX=fX("".slice),gX=function(e){return hX(pX(e),8,-1)},vX=aX.Object,yX=fX("".split),mX=dX((function(){return!vX("z").propertyIsEnumerable(0)}))?function(e){return"String"==gX(e)?yX(e,""):vX(e)}:vX,bX=aX.TypeError,wX=function(e){if(null==e)throw bX("Can't call method on "+e);return e},EX=function(e){return mX(wX(e))},xX=Object.defineProperty,DX=function(e,t){try{xX(aX,e,{value:t,configurable:!0,writable:!0})}catch(Qj){aX[e]=t}return t},CX=aX["__core-js_shared__"]||DX("__core-js_shared__",{}),SX=nX((function(e){(e.exports=function(e,t){return CX[e]||(CX[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),AX=aX.Object,OX=function(e){return AX(wX(e))},kX=fX({}.hasOwnProperty),BX=Object.hasOwn||function(e,t){return kX(OX(e),t)},FX=0,TX=Math.random(),_X=fX(1..toString),PX=function(e){return"Symbol("+(void 0===e?"":e)+")_"+_X(++FX+TX,36)},jX=function(e){return"function"==typeof e},IX=function(e){return jX(e)?e:void 0},NX=function(e,t){return arguments.length<2?IX(aX[e]):aX[e]&&aX[e][t]},LX=NX("navigator","userAgent")||"",RX=aX.process,MX=aX.Deno,zX=RX&&RX.versions||MX&&MX.version,$X=zX&&zX.v8;$X&&(oX=(rX=$X.split("."))[0]>0&&rX[0]<4?1:+(rX[0]+rX[1])),!oX&&LX&&(!(rX=LX.match(/Edge\/(\d+)/))||rX[1]>=74)&&(rX=LX.match(/Chrome\/(\d+)/))&&(oX=+rX[1]);var HX,VX=oX,UX=!!Object.getOwnPropertySymbols&&!dX((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&VX&&VX<41})),WX=UX&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,GX=SX("wks"),qX=aX.Symbol,KX=qX&&qX.for,XX=WX?qX:qX&&qX.withoutSetter||PX,YX=function(e){if(!BX(GX,e)||!UX&&"string"!=typeof GX[e]){var t="Symbol."+e;UX&&BX(qX,e)?GX[e]=qX[e]:GX[e]=WX&&KX?KX(t):XX(t)}return GX[e]},ZX=function(e){return"object"==typeof e?null!==e:jX(e)},JX=aX.String,QX=aX.TypeError,eY=function(e){if(ZX(e))return e;throw QX(JX(e)+" is not an object")},tY=!dX((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),nY=aX.document,rY=ZX(nY)&&ZX(nY.createElement),oY=function(e){return rY?nY.createElement(e):{}},iY=!tY&&!dX((function(){return 7!=Object.defineProperty(oY("div"),"a",{get:function(){return 7}}).a})),aY=Function.prototype.call,uY=aY.bind?aY.bind(aY):function(){return aY.apply(aY,arguments)},sY=fX({}.isPrototypeOf),lY=aX.Object,cY=WX?function(e){return"symbol"==typeof e}:function(e){var t=NX("Symbol");return jX(t)&&sY(t.prototype,lY(e))},fY=aX.String,dY=function(e){try{return fY(e)}catch(t){return"Object"}},pY=aX.TypeError,hY=function(e){if(jX(e))return e;throw pY(dY(e)+" is not a function")},gY=function(e,t){var n=e[t];return null==n?void 0:hY(n)},vY=aX.TypeError,yY=aX.TypeError,mY=YX("toPrimitive"),bY=function(e){var t=function(e,t){if(!ZX(e)||cY(e))return e;var n,r=gY(e,mY);if(r){if(void 0===t&&(t="default"),n=uY(r,e,t),!ZX(n)||cY(n))return n;throw yY("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&jX(n=e.toString)&&!ZX(r=uY(n,e)))return r;if(jX(n=e.valueOf)&&!ZX(r=uY(n,e)))return r;if("string"!==t&&jX(n=e.toString)&&!ZX(r=uY(n,e)))return r;throw vY("Can't convert object to primitive value")}(e,t)}(e,"string");return cY(t)?t:t+""},wY=aX.TypeError,EY=Object.defineProperty,xY={f:tY?EY:function(e,t,n){if(eY(e),t=bY(t),eY(n),iY)try{return EY(e,t,n)}catch(r){}if("get"in n||"set"in n)throw wY("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},DY=Math.ceil,CY=Math.floor,SY=function(e){var t=+e;return t!=t||0===t?0:(t>0?CY:DY)(t)},AY=Math.max,OY=Math.min,kY=function(e,t){var n=SY(e);return n<0?AY(n+t,0):OY(n,t)},BY=Math.min,FY=function(e){return e>0?BY(SY(e),9007199254740991):0},TY=function(e){return FY(e.length)},_Y=function(e){return function(t,n,r){var o,i=EX(t),a=TY(i),u=kY(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},PY={includes:_Y(!0),indexOf:_Y(!1)},jY={},IY=PY.indexOf,NY=fX([].push),LY=function(e,t){var n,r=EX(e),o=0,i=[];for(n in r)!BX(jY,n)&&BX(r,n)&&NY(i,n);for(;t.length>o;)BX(r,n=t[o++])&&(~IY(i,n)||NY(i,n));return i},RY=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],MY=Object.keys||function(e){return LY(e,RY)},zY=tY?Object.defineProperties:function(e,t){eY(e);for(var n,r=EX(t),o=MY(t),i=o.length,a=0;i>a;)xY.f(e,n=o[a++],r[n]);return e},$Y=NX("document","documentElement"),HY=SX("keys"),VY=function(e){return HY[e]||(HY[e]=PX(e))},UY=VY("IE_PROTO"),WY=function(){},GY=function(e){return"<script>"+e+"<\/script>"},qY=function(e){e.write(GY("")),e.close();var t=e.parentWindow.Object;return e=null,t},KY=function(){try{HX=new ActiveXObject("htmlfile")}catch(r){}var e,t;KY="undefined"!=typeof document?document.domain&&HX?qY(HX):((t=oY("iframe")).style.display="none",$Y.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(GY("document.F=Object")),e.close(),e.F):qY(HX);for(var n=RY.length;n--;)delete KY.prototype[RY[n]];return KY()};jY[UY]=!0;var XY=Object.create||function(e,t){var n;return null!==e?(WY.prototype=eY(e),n=new WY,WY.prototype=null,n[UY]=e):n=KY(),void 0===t?n:zY(n,t)},YY=YX("unscopables"),ZY=Array.prototype;null==ZY[YY]&&xY.f(ZY,YY,{configurable:!0,value:XY(null)});var JY=function(e){ZY[YY][e]=!0},QY={},eZ=fX(Function.toString);jX(CX.inspectSource)||(CX.inspectSource=function(e){return eZ(e)});var tZ,nZ,rZ,oZ=CX.inspectSource,iZ=aX.WeakMap,aZ=jX(iZ)&&/native code/.test(oZ(iZ)),uZ=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},sZ=tY?function(e,t,n){return xY.f(e,t,uZ(1,n))}:function(e,t,n){return e[t]=n,e},lZ=aX.TypeError,cZ=aX.WeakMap;if(aZ||CX.state){var fZ=CX.state||(CX.state=new cZ),dZ=fX(fZ.get),pZ=fX(fZ.has),hZ=fX(fZ.set);tZ=function(e,t){if(pZ(fZ,e))throw new lZ("Object already initialized");return t.facade=e,hZ(fZ,e,t),t},nZ=function(e){return dZ(fZ,e)||{}},rZ=function(e){return pZ(fZ,e)}}else{var gZ=VY("state");jY[gZ]=!0,tZ=function(e,t){if(BX(e,gZ))throw new lZ("Object already initialized");return t.facade=e,sZ(e,gZ,t),t},nZ=function(e){return BX(e,gZ)?e[gZ]:{}},rZ=function(e){return BX(e,gZ)}}var vZ,yZ,mZ,bZ={set:tZ,get:nZ,has:rZ,enforce:function(e){return rZ(e)?nZ(e):tZ(e,{})},getterFor:function(e){return function(t){var n;if(!ZX(t)||(n=nZ(t)).type!==e)throw lZ("Incompatible receiver, "+e+" required");return n}}},wZ={}.propertyIsEnumerable,EZ=Object.getOwnPropertyDescriptor,xZ={f:EZ&&!wZ.call({1:2},1)?function(e){var t=EZ(this,e);return!!t&&t.enumerable}:wZ},DZ=Object.getOwnPropertyDescriptor,CZ={f:tY?DZ:function(e,t){if(e=EX(e),t=bY(t),iY)try{return DZ(e,t)}catch(n){}if(BX(e,t))return uZ(!uY(xZ.f,e,t),e[t])}},SZ=Function.prototype,AZ=tY&&Object.getOwnPropertyDescriptor,OZ=BX(SZ,"name"),kZ={EXISTS:OZ,PROPER:OZ&&"something"===function(){}.name,CONFIGURABLE:OZ&&(!tY||tY&&AZ(SZ,"name").configurable)},BZ=nX((function(e){var t=kZ.CONFIGURABLE,n=bZ.get,r=bZ.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;jX(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!BX(i,"name")||t&&i.name!==f)&&sZ(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==aX?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:sZ(e,n,i)):l?e[n]=i:DX(n,i)})(Function.prototype,"toString",(function(){return jX(this)&&n(this).source||oZ(this)}))})),FZ=RY.concat("length","prototype"),TZ={f:Object.getOwnPropertyNames||function(e){return LY(e,FZ)}},_Z={f:Object.getOwnPropertySymbols},PZ=fX([].concat),jZ=NX("Reflect","ownKeys")||function(e){var t=TZ.f(eY(e)),n=_Z.f;return n?PZ(t,n(e)):t},IZ=function(e,t){for(var n=jZ(t),r=xY.f,o=CZ.f,i=0;i<n.length;i++){var a=n[i];BX(e,a)||r(e,a,o(t,a))}},NZ=/#|\.prototype\./,LZ=function(e,t){var n=MZ[RZ(e)];return n==$Z||n!=zZ&&(jX(t)?dX(t):!!t)},RZ=LZ.normalize=function(e){return String(e).replace(NZ,".").toLowerCase()},MZ=LZ.data={},zZ=LZ.NATIVE="N",$Z=LZ.POLYFILL="P",HZ=LZ,VZ=CZ.f,UZ=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?aX:l?aX[u]||DX(u,{}):(aX[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=VZ(n,r))&&a.value:n[r],!HZ(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;IZ(i,o)}(e.sham||o&&o.sham)&&sZ(i,"sham",!0),BZ(n,r,i,e)}},WZ=!dX((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),GZ=VY("IE_PROTO"),qZ=aX.Object,KZ=qZ.prototype,XZ=WZ?qZ.getPrototypeOf:function(e){var t=OX(e);if(BX(t,GZ))return t[GZ];var n=t.constructor;return jX(n)&&t instanceof n?n.prototype:t instanceof qZ?KZ:null},YZ=YX("iterator"),ZZ=!1;[].keys&&("next"in(mZ=[].keys())?(yZ=XZ(XZ(mZ)))!==Object.prototype&&(vZ=yZ):ZZ=!0);var JZ=null==vZ||dX((function(){var e={};return vZ[YZ].call(e)!==e}));JZ&&(vZ={}),jX(vZ[YZ])||BZ(vZ,YZ,(function(){return this}));var QZ={IteratorPrototype:vZ,BUGGY_SAFARI_ITERATORS:ZZ},eJ=xY.f,tJ=YX("toStringTag"),nJ=function(e,t,n){e&&!BX(e=n?e:e.prototype,tJ)&&eJ(e,tJ,{configurable:!0,value:t})},rJ=QZ.IteratorPrototype,oJ=function(){return this},iJ=aX.String,aJ=aX.TypeError,uJ=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=fX(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(n,r){return eY(n),function(e){if("object"==typeof e||jX(e))return e;throw aJ("Can't set "+iJ(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),sJ=kZ.PROPER,lJ=kZ.CONFIGURABLE,cJ=QZ.IteratorPrototype,fJ=QZ.BUGGY_SAFARI_ITERATORS,dJ=YX("iterator"),pJ=function(){return this},hJ=function(e,t,n,r,o,i,a){var u,s,l;s=r,l=t+" Iterator",(u=n).prototype=XY(rJ,{next:uZ(1,s)}),nJ(u,l,!1),QY[l]=oJ;var c,f,d,p=function(e){if(e===o&&m)return m;if(!fJ&&e in v)return v[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},h=t+" Iterator",g=!1,v=e.prototype,y=v[dJ]||v["@@iterator"]||o&&v[o],m=!fJ&&y||p(o),b="Array"==t&&v.entries||y;if(b&&(c=XZ(b.call(new e)))!==Object.prototype&&c.next&&(XZ(c)!==cJ&&(uJ?uJ(c,cJ):jX(c[dJ])||BZ(c,dJ,pJ)),nJ(c,h,!0)),sJ&&"values"==o&&y&&"values"!==y.name&&(lJ?sZ(v,"name","values"):(g=!0,m=function(){return uY(y,this)})),o)if(f={values:p("values"),keys:i?m:p("keys"),entries:p("entries")},a)for(d in f)(fJ||g||!(d in v))&&BZ(v,d,f[d]);else UZ({target:t,proto:!0,forced:fJ||g},f);return v[dJ]!==m&&BZ(v,dJ,m,{name:o}),QY[t]=m,f},gJ=bZ.set,vJ=bZ.getterFor("Array Iterator"),yJ=hJ(Array,"Array",(function(e,t){gJ(this,{type:"Array Iterator",target:EX(e),index:0,kind:t})}),(function(){var e=vJ(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");QY.Arguments=QY.Array,JY("keys"),JY("values"),JY("entries");var mJ={};mJ[YX("toStringTag")]="z";var bJ="[object z]"===String(mJ),wJ=YX("toStringTag"),EJ=aX.Object,xJ="Arguments"==gX(function(){return arguments}()),DJ=bJ?gX:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=EJ(e),wJ))?n:xJ?gX(t):"Object"==(r=gX(t))&&jX(t.callee)?"Arguments":r},CJ=bJ?{}.toString:function(){return"[object "+DJ(this)+"]"};bJ||BZ(Object.prototype,"toString",CJ,{unsafe:!0});var SJ=aX.String,AJ=function(e){if("Symbol"===DJ(e))throw TypeError("Cannot convert a Symbol value to a string");return SJ(e)},OJ=fX("".charAt),kJ=fX("".charCodeAt),BJ=fX("".slice),FJ=function(e){return function(t,n){var r,o,i=AJ(wX(t)),a=SY(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=kJ(i,a))<55296||r>56319||a+1===u||(o=kJ(i,a+1))<56320||o>57343?e?OJ(i,a):r:e?BJ(i,a,a+2):o-56320+(r-55296<<10)+65536}},TJ={codeAt:FJ(!1),charAt:FJ(!0)},_J=TJ.charAt,PJ=bZ.set,jJ=bZ.getterFor("String Iterator");hJ(String,"String",(function(e){PJ(this,{type:"String Iterator",string:AJ(e),index:0})}),(function(){var e,t=jJ(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=_J(n,r),t.index+=e.length,{value:e,done:!1})}));var IJ=function(e,t,n){for(var r in t)BZ(e,r,t[r],n);return e},NJ=aX.Array,LJ=Math.max,RJ=TZ.f,MJ="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],zJ={f:function(e){return MJ&&"Window"==gX(e)?function(e){try{return RJ(e)}catch(t){return function(e,t,n){for(var r,o,i,a,u=TY(e),s=kY(void 0,u),l=kY(u,u),c=NJ(LJ(l-s,0)),f=0;s<l;s++,f++)r=c,o=f,i=e[s],(a=bY(o))in r?xY.f(r,a,uZ(0,i)):r[a]=i;return c.length=f,c}(MJ)}}(e):RJ(EX(e))}},$J=dX((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),HJ=Object.isExtensible,VJ=dX((function(){HJ(1)}))||$J?function(e){return!!ZX(e)&&(!$J||"ArrayBuffer"!=gX(e))&&(!HJ||HJ(e))}:HJ,UJ=!dX((function(){return Object.isExtensible(Object.preventExtensions({}))})),WJ=nX((function(e){var t=xY.f,n=!1,r=PX("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=TZ.f,t=fX([].splice),o={};o[r]=1,e(o).length&&(TZ.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t(o,i,1);break}return o},UZ({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:zJ.f}))},fastKey:function(e,t){if(!ZX(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!BX(e,r)){if(!VJ(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!BX(e,r)){if(!VJ(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return UJ&&n&&VJ(e)&&!BX(e,r)&&i(e),e}};jY[r]=!0})),GJ=fX(fX.bind),qJ=function(e,t){return hY(e),void 0===t?e:GJ?GJ(e,t):function(){return e.apply(t,arguments)}},KJ=YX("iterator"),XJ=Array.prototype,YJ=YX("iterator"),ZJ=function(e){if(null!=e)return gY(e,YJ)||gY(e,"@@iterator")||QY[DJ(e)]},JJ=aX.TypeError,QJ=function(e,t,n){var r,o;eY(e);try{if(!(r=gY(e,"return"))){if("throw"===t)throw n;return n}r=uY(r,e)}catch(i){o=!0,r=i}if("throw"===t)throw n;if(o)throw r;return eY(r),n},eQ=aX.TypeError,tQ=function(e,t){this.stopped=e,this.result=t},nQ=tQ.prototype,rQ=function(e,t,n){var r,o,i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),g=qJ(t,f),v=function(e){return r&&QJ(r,"normal",e),new tQ(!0,e)},y=function(e){return d?(eY(e),h?g(e[0],e[1],v):g(e[0],e[1])):h?g(e,v):g(e)};if(p)r=e;else{if(!(o=ZJ(e)))throw eQ(dY(e)+" is not iterable");if(void 0!==(c=o)&&(QY.Array===c||XJ[KJ]===c)){for(i=0,a=TY(e);a>i;i++)if((u=y(e[i]))&&sY(nQ,u))return u;return new tQ(!1)}r=function(e,t){var n=arguments.length<2?ZJ(e):t;if(hY(n))return eY(uY(n,e));throw JJ(dY(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=uY(s,r)).done;){try{u=y(l.value)}catch(m){QJ(r,"throw",m)}if("object"==typeof u&&u&&sY(nQ,u))return u}return new tQ(!1)},oQ=aX.TypeError,iQ=function(e,t){if(sY(t,e))return e;throw oQ("Incorrect invocation")},aQ=YX("iterator"),uQ=!1;try{var sQ=0,lQ={next:function(){return{done:!!sQ++}},return:function(){uQ=!0}};lQ[aQ]=function(){return this},Array.from(lQ,(function(){throw 2}))}catch(Wme){}var cQ=Array.isArray||function(e){return"Array"==gX(e)},fQ=function(){},dQ=[],pQ=NX("Reflect","construct"),hQ=/^\s*(?:class|function)\b/,gQ=fX(hQ.exec),vQ=!hQ.exec(fQ),yQ=function(e){if(!jX(e))return!1;try{return pQ(fQ,dQ,e),!0}catch(t){return!1}},mQ=!pQ||dX((function(){var e;return yQ(yQ.call)||!yQ(Object)||!yQ((function(){e=!0}))||e}))?function(e){if(!jX(e))return!1;switch(DJ(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return vQ||!!gQ(hQ,oZ(e))}:yQ,bQ=YX("species"),wQ=aX.Array,EQ=function(e,t){return new(cQ(n=e)&&(r=n.constructor,(mQ(r)&&(r===wQ||cQ(r.prototype))||ZX(r)&&null===(r=r[bQ]))&&(r=void 0)),void 0===r?wQ:r)(0===t?0:t);var n,r},xQ=fX([].push),DQ=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=OX(s),g=mX(h),v=qJ(l,c),y=TY(g),m=0,b=f||EQ,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:xQ(w,d)}else switch(e){case 4:return!1;case 7:xQ(w,d)}return i?-1:r||o?o:w}},CQ={forEach:DQ(0),map:DQ(1),filter:DQ(2),some:DQ(3),every:DQ(4),find:DQ(5),findIndex:DQ(6),filterReject:DQ(7)},SQ=WJ.getWeakData,AQ=bZ.set,OQ=bZ.getterFor,kQ=CQ.find,BQ=CQ.findIndex,FQ=fX([].splice),TQ=0,_Q=function(e){return e.frozen||(e.frozen=new PQ)},PQ=function(){this.entries=[]},jQ=function(e,t){return kQ(e.entries,(function(e){return e[0]===t}))};PQ.prototype={get:function(e){var t=jQ(this,e);if(t)return t[1]},has:function(e){return!!jQ(this,e)},set:function(e,t){var n=jQ(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=BQ(this.entries,(function(t){return t[0]===e}));return~t&&FQ(this.entries,t,1),!!~t}};var IQ,NQ={getConstructor:function(e,t,n,r){var o=e((function(e,o){iQ(e,i),AQ(e,{type:t,id:TQ++,frozen:void 0}),null!=o&&rQ(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=OQ(t),u=function(e,t,n){var r=a(e),o=SQ(eY(t),!0);return!0===o?_Q(r).set(t,n):o[r.id]=n,e};return IJ(i,{delete:function(e){var t=a(this);if(!ZX(e))return!1;var n=SQ(e);return!0===n?_Q(t).delete(e):n&&BX(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!ZX(e))return!1;var n=SQ(e);return!0===n?_Q(t).has(e):n&&BX(n,t.id)}}),IJ(i,n?{get:function(e){var t=a(this);if(ZX(e)){var n=SQ(e);return!0===n?_Q(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},LQ=bZ.enforce,RQ=!aX.ActiveXObject&&"ActiveXObject"in aX,MQ=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},zQ=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=aX[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=fX(u[e]);BZ(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!ZX(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!ZX(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!ZX(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(HZ(e,!jX(a)||!(o||u.forEach&&!dX((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),WJ.enable();else if(HZ(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=dX((function(){f.has(1)})),h=function(e,t){if(!uQ)return!1;var n=!1;try{var r={};r[aQ]=function(){return{next:function(){return{done:n=!0}}}},new a(r)}catch(o){}return n}(),g=!o&&dX((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){iQ(e,u);var n,o,l,c,f,d=(n=new a,o=e,l=s,uJ&&jX(c=o.constructor)&&c!==l&&ZX(f=c.prototype)&&f!==l.prototype&&uJ(n,f),n);return null!=t&&rQ(t,d[i],{that:d,AS_ENTRIES:r}),d}))).prototype=u,u.constructor=s),(p||g)&&(c("delete"),c("has"),r&&c("get")),(g||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,UZ({global:!0,forced:s!=a},l),nJ(s,e),o||n.setStrong(s,e,r),s}("WeakMap",MQ,NQ);if(aZ&&RQ){IQ=NQ.getConstructor(MQ,"WeakMap",!0),WJ.enable();var $Q=zQ.prototype,HQ=fX($Q.delete),VQ=fX($Q.has),UQ=fX($Q.get),WQ=fX($Q.set);IJ($Q,{delete:function(e){if(ZX(e)&&!VJ(e)){var t=LQ(this);return t.frozen||(t.frozen=new IQ),HQ(this,e)||t.frozen.delete(e)}return HQ(this,e)},has:function(e){if(ZX(e)&&!VJ(e)){var t=LQ(this);return t.frozen||(t.frozen=new IQ),VQ(this,e)||t.frozen.has(e)}return VQ(this,e)},get:function(e){if(ZX(e)&&!VJ(e)){var t=LQ(this);return t.frozen||(t.frozen=new IQ),VQ(this,e)?UQ(this,e):t.frozen.get(e)}return UQ(this,e)},set:function(e,t){if(ZX(e)&&!VJ(e)){var n=LQ(this);n.frozen||(n.frozen=new IQ),VQ(this,e)?WQ(this,e,t):n.frozen.set(e,t)}else WQ(this,e,t);return this}})}var GQ={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},qQ=oY("span").classList,KQ=qQ&&qQ.constructor&&qQ.constructor.prototype,XQ=KQ===Object.prototype?void 0:KQ,YQ=YX("iterator"),ZQ=YX("toStringTag"),JQ=yJ.values,QQ=function(e,t){if(e){if(e[YQ]!==JQ)try{sZ(e,YQ,JQ)}catch(r){e[YQ]=JQ}if(e[ZQ]||sZ(e,ZQ,t),GQ[t])for(var n in yJ)if(e[n]!==yJ[n])try{sZ(e,n,yJ[n])}catch(r){e[n]=yJ[n]}}};for(var e0 in GQ)QQ(aX[e0]&&aX[e0].prototype,e0);QQ(XQ,"DOMTokenList");var t0=new WeakMap,n0={type:"list-item",renderElem:function(e,t,n){t0.set(e,n);var r=e,o=r.level,i=void 0===o?0:o,a=r.ordered,u={margin:"5px 0 5px "+20*i+"px"},s="";void 0!==a&&a?s=function(e,t){var n=t,r=n.type,o=n.level,i=void 0===o?0:o,a=n.ordered,u=void 0!==a&&a;if(!u)return-1;var s=1,l=t,c=fB.findPath(e,l);if(0===c[0])return 1;for(;c[0]>0;){var f=wp.previous(c),d=fp.node(e,f);if(null==d)break;var p=d[0],h=p.level,g=void 0===h?0:h,v=p.type,y=p.ordered;if(v!==r)break;if(g<i)break;if(g===i){if(y!==u)break;s++}l=p,c=f}return s}(n,e)+".":s=function(e){void 0===e&&(e=0);var t="";switch(e){case 0:t="•";break;case 1:t="◦";break;default:t="▪"}return t}(i);return ry("div",{style:u},ry("span",{contentEditable:!1,style:{marginRight:"0.5em",color:function(e){var t,n=e.children||[],r=n.length;if(0===r)return"";for(var o=0;o<r&&!t;o++){var i=n[o];Ip.isText(i)&&(t=i)}return null==t?"":t.color||""}(e)},"data-w-e-reserve":!0},s),ry("span",null,t))}},r0=function(e,t){return r0=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r0(e,t);
  50. /*! *****************************************************************************
  51. Copyright (c) Microsoft Corporation.
  52. Permission to use, copy, modify, and/or distribute this software for any
  53. purpose with or without fee is hereby granted.
  54. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  55. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  56. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  57. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  58. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  59. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  60. PERFORMANCE OF THIS SOFTWARE.
  61. ***************************************************************************** */};function o0(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r0(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function i0(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function a0(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function u0(e){return fp.nodes(e,{at:e.selection||void 0,match:function(t){return 1===fB.findPath(e,t).length}})}var s0=PY.includes;UZ({target:"Array",proto:!0},{includes:function(e){return s0(this,e,arguments.length>1?arguments[1]:void 0)}}),JY("includes");var l0,c0,f0=function(){var e=eY(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},d0=aX.RegExp,p0=dX((function(){var e=d0("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),h0=p0||dX((function(){return!d0("a","y").sticky})),g0={BROKEN_CARET:p0||dX((function(){var e=d0("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:h0,UNSUPPORTED_Y:p0},v0=aX.RegExp,y0=dX((function(){var e=v0(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),m0=aX.RegExp,b0=dX((function(){var e=m0("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),w0=bZ.get,E0=SX("native-string-replace",String.prototype.replace),x0=RegExp.prototype.exec,D0=x0,C0=fX("".charAt),S0=fX("".indexOf),A0=fX("".replace),O0=fX("".slice),k0=(c0=/b*/g,uY(x0,l0=/a/,"a"),uY(x0,c0,"a"),0!==l0.lastIndex||0!==c0.lastIndex),B0=g0.BROKEN_CARET,F0=void 0!==/()??/.exec("")[1];(k0||F0||B0||y0||b0)&&(D0=function(e){var t,n,r,o,i,a,u,s=this,l=w0(s),c=AJ(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=uY(D0,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=B0&&s.sticky,h=uY(f0,s),g=s.source,v=0,y=c;if(p&&(h=A0(h,"y",""),-1===S0(h,"g")&&(h+="g"),y=O0(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==C0(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),F0&&(n=new RegExp("^"+g+"$(?!\\s)",h)),k0&&(r=s.lastIndex),o=uY(x0,p?n:s,y),p?o?(o.input=O0(o.input,v),o[0]=O0(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:k0&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),F0&&o&&o.length>1&&uY(E0,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=XY(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var T0=D0;UZ({target:"RegExp",proto:!0,forced:/./.exec!==T0},{exec:T0});var _0=function(){function e(){this.type="list-item",this.tag="button"}return e.prototype.getListNode=function(e){var t=this.type;return fB.getSelectedNodeByType(e,t)},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){var t=this.getListNode(e);if(null==t)return!1;var n=t.ordered;return(void 0!==n&&n)===this.ordered},e.prototype.isDisabled=function(e){return null==e.selection||!!fB.getSelectedElems(e).some((function(t){if(fp.isVoid(e,t)&&fp.isBlock(e,t))return!0;var n=t.type;return!!["pre","code","table"].includes(n)||void 0}))},e.prototype.exec=function(e,t){this.isActive(e)?Qp.setNodes(e,{type:"paragraph",ordered:void 0,level:void 0}):Qp.setNodes(e,{type:"list-item",ordered:this.ordered,indent:void 0})},e}(),P0='<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>',j0='<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>',I0=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ordered=!1,t.title=Zj("listModule.unOrderedList"),t.iconSvg=P0,t}return o0(t,e),t}(_0),N0=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ordered=!0,t.title=Zj("listModule.orderedList"),t.iconSvg=j0,t}return o0(t,e),t}(_0),L0={key:"bulletedList",factory:function(){return new I0}},R0={key:"numberedList",factory:function(){return new N0}},M0=[],z0={type:"list-item",elemToHtml:function(e,t){var n="",r="",o=e.ordered,i=void 0!==o&&o?"ol":"ul",a=function(e){var t=t0.get(e);if(null==t)return 0;var n=e,r=n.type,o=n.ordered,i=void 0!==o&&o,a=n.level,u=void 0===a?0:a,s=fB.findPath(t,e);if(0===s[0])return u+1;var l=wp.previous(s),c=fp.node(t,l);if(!c)return 0;var f=a0(c,1)[0];if(fB.getNodeType(f)!==r)return u+1;var d=f,p=d.ordered,h=void 0!==p&&p,g=d.level,v=void 0===g?0:g;return v<u?u-v:v>u?0:v===u?h===i?0:1:0}(e);if(a>0)for(var u=0;u<a;u++)n+="<"+i+">",M0.push(i);var s=function(e){var t=t0.get(e);if(null==t)return 0;var n=e,r=n.type,o=n.ordered,i=void 0!==o&&o,a=n.level,u=void 0===a?0:a,s=fB.findPath(t,e);if(s[0]===t.children.length-1)return u+1;var l=wp.next(s),c=fp.node(t,l);if(!c)return 0;var f=a0(c,1)[0];if(fB.getNodeType(f)!==r)return u+1;var d=f,p=d.ordered,h=void 0!==p&&p,g=d.level,v=void 0===g?0:g;return v<u?u-v:v>u?0:v===u?h===i?0:1:0}(e);if(s>0)for(u=0;u<s;u++)r+="</"+M0.pop()+">";return{html:"<li>"+t+"</li>",prefix:n,suffix:r}}},$0=YX("species"),H0=CQ.filter,V0=VX>=51||!dX((function(){var e=[];return(e.constructor={})[$0]=function(){return{foo:1}},1!==e.filter(Boolean).foo}));UZ({target:"Array",proto:!0,forced:!V0},{filter:function(e){return H0(this,e,arguments.length>1?arguments[1]:void 0)}});var U0=Function.prototype,W0=U0.apply,G0=U0.bind,q0=U0.call,K0="object"==typeof Reflect&&Reflect.apply||(G0?q0.bind(W0):function(){return q0.apply(W0,arguments)}),X0=(YX("species"),RegExp.prototype),Y0=TJ.charAt,Z0=function(e,t,n){return t+(n?Y0(e,t).length:1)},J0=Math.floor,Q0=fX("".charAt),e1=fX("".replace),t1=fX("".slice),n1=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,r1=/\$([$&'`]|\d{1,2})/g,o1=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=r1;return void 0!==o&&(o=OX(o),s=n1),e1(i,s,(function(i,s){var l;switch(Q0(s,0)){case"$":return"$";case"&":return e;case"`":return t1(t,0,n);case"'":return t1(t,a);case"<":l=o[t1(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=J0(c/10);return 0===f?i:f<=u?void 0===r[f-1]?Q0(s,1):r[f-1]+Q0(s,1):i}l=r[c-1]}return void 0===l?"":l}))},i1=aX.TypeError,a1=function(e,t){var n=e.exec;if(jX(n)){var r=uY(n,e,t);return null!==r&&eY(r),r}if("RegExp"===gX(e))return uY(T0,e,t);throw i1("RegExp#exec called on incompatible receiver")},u1=YX("replace"),s1=Math.max,l1=Math.min,c1=fX([].concat),f1=fX([].push),d1=fX("".indexOf),p1=fX("".slice),h1="$0"==="a".replace(/./,"$0"),g1=!!/./[u1]&&""===/./[u1]("a","$0");!function(e,t,n,r){var o,i,a=YX(e),u=!dX((function(){var t={};return t[a]=function(){return 7},7!=""[e](t)})),s=u&&!dX((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[a](""),!e}));if(!u||!s||n){var l=fX(/./[a]),c=(o=""[e],i=g1?"$":"$0",[function(e,t){var n=wX(this),r=null==e?void 0:gY(e,u1);return r?uY(r,e,n,t):uY(o,AJ(n),e,t)},function(e,t){var n=eY(this),r=AJ(e);if("string"==typeof t&&-1===d1(t,i)&&-1===d1(t,"$<")){var a=function(e,t,n,r,o){var i=fX(e),a=t.exec;return a===T0||a===X0.exec?u&&!o?{done:!0,value:l(t,n,r)}:{done:!0,value:i(n,t,r)}:{done:!1}}(o,n,r,t);if(a.done)return a.value}var s=jX(t);s||(t=AJ(t));var c=n.global;if(c){var f=n.unicode;n.lastIndex=0}for(var d=[];;){var p=a1(n,r);if(null===p)break;if(f1(d,p),!c)break;""===AJ(p[0])&&(n.lastIndex=Z0(r,FY(n.lastIndex),f))}for(var h,g="",v=0,y=0;y<d.length;y++){for(var m=AJ((p=d[y])[0]),b=s1(l1(SY(p.index),r.length),0),w=[],E=1;E<p.length;E++)f1(w,void 0===(h=p[E])?h:String(h));var x=p.groups;if(s){var D=c1([m],w,b,r);void 0!==x&&f1(D,x);var C=AJ(K0(t,void 0,D))}else C=o1(m,r,b,w,x,t);b>=v&&(g+=p1(r,v,b)+C,v=b+m.length)}return g+p1(r,v)}]);BZ(String.prototype,e,c[0]),BZ(X0,a,c[1])}}("replace",0,!!dX((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!h1||g1);var v1=aX.TypeError,y1=function(e,t,n,r,o,i,a,u){for(var s,l,c=o,f=0,d=!!a&&qJ(a,u);f<r;){if(f in n){if(s=d?d(n[f],f,t):n[f],i>0&&cQ(s))l=TY(s),c=y1(e,t,s,l,c,i-1)-1;else{if(c>=9007199254740991)throw v1("Exceed the acceptable array length");e[c]=s}c++}f++}return c},m1=y1;function b1(e){return e.length?e[0].tagName.toLowerCase():""}UZ({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=OX(this),n=TY(t),r=EQ(t,0);return r.length=m1(r,t,t,n,0,void 0===e?1:SY(e)),r}}),JY("flat"),UZ({global:!0},{globalThis:aX}),Ig&&(hg.fn.append=Ig),mg&&(hg.fn.attr=mg),Lg&&(hg.fn.parent=Lg);var w1={renderElems:[n0],editorPlugin:function(e){var t=e.deleteBackward,n=e.handleTab,r=e.normalizeNode,o=e;return o.deleteBackward=function(e){var n=o.selection;if(null!=n)if(kp.isExpanded(n))t(e);else{var r=fB.getSelectedNodeByType(o,"list-item");if(null!=r)if(0!==n.focus.offset)t(e);else{var i=r.level,a=void 0===i?0:i;a>0?Qp.setNodes(o,{level:a-1}):Qp.setNodes(o,{type:"paragraph",ordered:void 0,level:void 0})}else t(e)}else t(e)},o.handleTab=function(){var e,t,r,i,a=o.selection;if(null!=a){if(kp.isCollapsed(a)){var u=fB.getSelectedNodeByType(o,"list-item");if(null==u)return void n();if(0===a.focus.offset){var s=u.level,l=void 0===s?0:s;return void Qp.setNodes(o,{level:l+1})}}if(kp.isExpanded(a)){var c=0,f=!1;try{for(var d=i0(u0(o)),p=d.next();!p.done;p=d.next()){var h=a0(p.value,1)[0];"list-item"===fB.getNodeType(h)?c++:f=!0}}catch(w){e={error:w}}finally{try{p&&!p.done&&(t=d.return)&&t.call(d)}finally{if(e)throw e.error}}if(f||c<=1)return void n();try{for(var g=i0(u0(o)),v=g.next();!v.done;v=g.next()){var y=a0(v.value,2),m=(h=y[0],y[1]),b=h.level;l=void 0===b?0:b,Qp.setNodes(o,{level:l+1},{at:m})}}catch(E){r={error:E}}finally{try{v&&!v.done&&(i=g.return)&&i.call(g)}finally{if(r)throw r.error}}}else n()}else n()},o.normalizeNode=function(e){var t=a0(e,2),n=t[0],i=t[1],a=fB.getNodeType(n);return"bulleted-list"!==a&&"numbered-list"!==a||Qp.unwrapNodes(o,{at:i}),r([n,i])},o},menus:[L0,R0],elemsToHtml:[z0],parseElemsHtml:[{selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(e,t,n){return t.flat(1/0)}},{selector:"li:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=hg(e);0===(t=t.filter((function(e){return!!Ip.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o="ol"===b1(r.parent()),i=function(e){for(var t=0,n=e.parent(),r=b1(n);"ul"===r||"ol"===r;)r=b1(n=n.parent()),t++;return t-1}(r);return{type:"list-item",ordered:o,level:i,children:t}}}]},E1=Ve((function(e,t){var n="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",i="[object Array]",a="[object Boolean]",u="[object Date]",s="[object Error]",l="[object Function]",c="[object Map]",f="[object Number]",d="[object Object]",p="[object Promise]",h="[object RegExp]",g="[object Set]",v="[object String]",y="[object WeakMap]",m="[object ArrayBuffer]",b="[object DataView]",w=/^\[object .+?Constructor\]$/,E=/^(?:0|[1-9]\d*)$/,x={};x["[object Float32Array]"]=x["[object Float64Array]"]=x["[object Int8Array]"]=x["[object Int16Array]"]=x["[object Int32Array]"]=x["[object Uint8Array]"]=x["[object Uint8ClampedArray]"]=x["[object Uint16Array]"]=x["[object Uint32Array]"]=!0,x[o]=x[i]=x[m]=x[a]=x[b]=x[u]=x[s]=x[l]=x[c]=x[f]=x[d]=x[h]=x[g]=x[v]=x[y]=!1;var D="object"==typeof He&&He&&He.Object===Object&&He,C="object"==typeof self&&self&&self.Object===Object&&self,S=D||C||Function("return this")(),A=t&&!t.nodeType&&t,O=A&&e&&!e.nodeType&&e,k=O&&O.exports===A,B=k&&D.process,F=function(){try{return B&&B.binding&&B.binding("util")}catch(pf){}}(),T=F&&F.isTypedArray;function _(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function P(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function j(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var I=Array.prototype,N=Function.prototype,L=Object.prototype,R=S["__core-js_shared__"],M=N.toString,z=L.hasOwnProperty,$=function(){var e=/[^.]+$/.exec(R&&R.keys&&R.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),H=L.toString,V=RegExp("^"+M.call(z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),U=k?S.Buffer:void 0,W=S.Symbol,G=S.Uint8Array,q=L.propertyIsEnumerable,K=I.splice,X=W?W.toStringTag:void 0,Y=Object.getOwnPropertySymbols,Z=U?U.isBuffer:void 0,J=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),Q=Ce(S,"DataView"),ee=Ce(S,"Map"),te=Ce(S,"Promise"),ne=Ce(S,"Set"),re=Ce(S,"WeakMap"),oe=Ce(Object,"create"),ie=ke(Q),ae=ke(ee),ue=ke(te),se=ke(ne),le=ke(re),ce=W?W.prototype:void 0,fe=ce?ce.valueOf:void 0;function de(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function pe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function he(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ge(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new he;++t<n;)this.add(e[t])}function ve(e){var t=this.__data__=new pe(e);this.size=t.size}function ye(e,t){for(var n=e.length;n--;)if(Be(e[n][0],t))return n;return-1}function me(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":X&&X in Object(e)?function(e){var t=z.call(e,X),n=e[X];try{e[X]=void 0;var r=!0}catch(i){}var o=H.call(e);return r&&(t?e[X]=n:delete e[X]),o}(e):(t=e,H.call(t));var t}function be(e){return Ne(e)&&me(e)==o}function we(e,t,n,r,l){return e===t||(null==e||null==t||!Ne(e)&&!Ne(t)?e!=e&&t!=t:function(e,t,n,r,l,p){var y=Te(e),w=Te(t),E=y?i:Ae(e),x=w?i:Ae(t),D=(E=E==o?d:E)==d,C=(x=x==o?d:x)==d,S=E==x;if(S&&_e(e)){if(!_e(t))return!1;y=!0,D=!1}if(S&&!D)return p||(p=new ve),y||Le(e)?Ee(e,t,n,r,l,p):function(e,t,n,r,o,i,l){switch(n){case b:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case m:return!(e.byteLength!=t.byteLength||!i(new G(e),new G(t)));case a:case u:case f:return Be(+e,+t);case s:return e.name==t.name&&e.message==t.message;case h:case v:return e==t+"";case c:var d=P;case g:var p=1&r;if(d||(d=j),e.size!=t.size&&!p)return!1;var y=l.get(e);if(y)return y==t;r|=2,l.set(e,t);var w=Ee(d(e),d(t),r,o,i,l);return l.delete(e),w;case"[object Symbol]":if(fe)return fe.call(e)==fe.call(t)}return!1}(e,t,E,n,r,l,p);if(!(1&n)){var A=D&&z.call(e,"__wrapped__"),O=C&&z.call(t,"__wrapped__");if(A||O){var k=A?e.value():e,B=O?t.value():t;return p||(p=new ve),l(k,B,n,r,p)}}return!!S&&(p||(p=new ve),function(e,t,n,r,o,i){var a=1&n,u=xe(e),s=u.length;if(s!=xe(t).length&&!a)return!1;for(var l=s;l--;){var c=u[l];if(!(a?c in t:z.call(t,c)))return!1}var f=i.get(e);if(f&&i.get(t))return f==t;var d=!0;i.set(e,t),i.set(t,e);for(var p=a;++l<s;){var h=e[c=u[l]],g=t[c];if(r)var v=a?r(g,h,c,t,e,i):r(h,g,c,e,t,i);if(!(void 0===v?h===g||o(h,g,n,r,i):v)){d=!1;break}p||(p="constructor"==c)}if(d&&!p){var y=e.constructor,m=t.constructor;y==m||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof m&&m instanceof m||(d=!1)}return i.delete(e),i.delete(t),d}(e,t,n,r,l,p))}(e,t,n,r,we,l))}function Ee(e,t,n,r,o,i){var a=1&n,u=e.length,s=t.length;if(u!=s&&!(a&&s>u))return!1;var l=i.get(e);if(l&&i.get(t))return l==t;var c=-1,f=!0,d=2&n?new ge:void 0;for(i.set(e,t),i.set(t,e);++c<u;){var p=e[c],h=t[c];if(r)var g=a?r(h,p,c,t,e,i):r(p,h,c,e,t,i);if(void 0!==g){if(g)continue;f=!1;break}if(d){if(!_(t,(function(e,t){if(a=t,!d.has(a)&&(p===e||o(p,e,n,r,i)))return d.push(t);var a}))){f=!1;break}}else if(p!==h&&!o(p,h,n,r,i)){f=!1;break}}return i.delete(e),i.delete(t),f}function xe(e){return n=Se,r=Re(t=e),Te(t)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(t));var t,n,r}function De(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function Ce(e,t){var n,r,o=(r=t,null==(n=e)?void 0:n[r]);return function(e){return!(!Ie(e)||(t=e,$&&$ in t))&&(Pe(e)?V:w).test(ke(e));var t}(o)?o:void 0}de.prototype.clear=function(){this.__data__=oe?oe(null):{},this.size=0},de.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},de.prototype.get=function(e){var t=this.__data__;if(oe){var r=t[e];return r===n?void 0:r}return z.call(t,e)?t[e]:void 0},de.prototype.has=function(e){var t=this.__data__;return oe?void 0!==t[e]:z.call(t,e)},de.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=oe&&void 0===t?n:t,this},pe.prototype.clear=function(){this.__data__=[],this.size=0},pe.prototype.delete=function(e){var t=this.__data__,n=ye(t,e);return!(n<0||(n==t.length-1?t.pop():K.call(t,n,1),--this.size,0))},pe.prototype.get=function(e){var t=this.__data__,n=ye(t,e);return n<0?void 0:t[n][1]},pe.prototype.has=function(e){return ye(this.__data__,e)>-1},pe.prototype.set=function(e,t){var n=this.__data__,r=ye(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},he.prototype.clear=function(){this.size=0,this.__data__={hash:new de,map:new(ee||pe),string:new de}},he.prototype.delete=function(e){var t=De(this,e).delete(e);return this.size-=t?1:0,t},he.prototype.get=function(e){return De(this,e).get(e)},he.prototype.has=function(e){return De(this,e).has(e)},he.prototype.set=function(e,t){var n=De(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},ge.prototype.add=ge.prototype.push=function(e){return this.__data__.set(e,n),this},ge.prototype.has=function(e){return this.__data__.has(e)},ve.prototype.clear=function(){this.__data__=new pe,this.size=0},ve.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ve.prototype.get=function(e){return this.__data__.get(e)},ve.prototype.has=function(e){return this.__data__.has(e)},ve.prototype.set=function(e,t){var n=this.__data__;if(n instanceof pe){var r=n.__data__;if(!ee||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new he(r)}return n.set(e,t),this.size=n.size,this};var Se=Y?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a)&&(i[o++]=a)}return i}(Y(e),(function(t){return q.call(e,t)})))}:function(){return[]},Ae=me;function Oe(e,t){return!!(t=null==t?r:t)&&("number"==typeof e||E.test(e))&&e>-1&&e%1==0&&e<t}function ke(e){if(null!=e){try{return M.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Be(e,t){return e===t||e!=e&&t!=t}(Q&&Ae(new Q(new ArrayBuffer(1)))!=b||ee&&Ae(new ee)!=c||te&&Ae(te.resolve())!=p||ne&&Ae(new ne)!=g||re&&Ae(new re)!=y)&&(Ae=function(e){var t=me(e),n=t==d?e.constructor:void 0,r=n?ke(n):"";if(r)switch(r){case ie:return b;case ae:return c;case ue:return p;case se:return g;case le:return y}return t});var Fe=be(function(){return arguments}())?be:function(e){return Ne(e)&&z.call(e,"callee")&&!q.call(e,"callee")},Te=Array.isArray,_e=Z||function(){return!1};function Pe(e){if(!Ie(e))return!1;var t=me(e);return t==l||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function je(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}function Ie(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ne(e){return null!=e&&"object"==typeof e}var Le=T?function(e){return function(t){return e(t)}}(T):function(e){return Ne(e)&&je(e.length)&&!!x[me(e)]};function Re(e){return null!=(t=e)&&je(t.length)&&!Pe(t)?function(e,t){var n=Te(e),r=!n&&Fe(e),o=!n&&!r&&_e(e),i=!n&&!r&&!o&&Le(e),a=n||r||o||i,u=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],s=u.length;for(var l in e)!t&&!z.call(e,l)||a&&("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Oe(l,s))||u.push(l);return u}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||L))return J(e);var t,n,r=[];for(var o in Object(e))z.call(e,o)&&"constructor"!=o&&r.push(o);return r}(e);var t}e.exports=function(e,t){return we(e,t)}}));Yj("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"}}),Yj("zh-CN",{tableModule:{deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"宽度自适应",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头"}});var x1="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function D1(e){var t={exports:{}};return e(t,t.exports),t.exports}var C1,S1,A1=function(e){return e&&e.Math==Math&&e},O1=A1("object"==typeof globalThis&&globalThis)||A1("object"==typeof window&&window)||A1("object"==typeof self&&self)||A1("object"==typeof x1&&x1)||function(){return this}()||Function("return this")(),k1=function(e){try{return!!e()}catch(t){return!0}},B1=!k1((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),F1=Function.prototype.call,T1=F1.bind?F1.bind(F1):function(){return F1.apply(F1,arguments)},_1={}.propertyIsEnumerable,P1=Object.getOwnPropertyDescriptor,j1={f:P1&&!_1.call({1:2},1)?function(e){var t=P1(this,e);return!!t&&t.enumerable}:_1},I1=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},N1=Function.prototype,L1=N1.bind,R1=N1.call,M1=L1&&L1.bind(R1),z1=L1?function(e){return e&&M1(R1,e)}:function(e){return e&&function(){return R1.apply(e,arguments)}},$1=z1({}.toString),H1=z1("".slice),V1=function(e){return H1($1(e),8,-1)},U1=O1.Object,W1=z1("".split),G1=k1((function(){return!U1("z").propertyIsEnumerable(0)}))?function(e){return"String"==V1(e)?W1(e,""):U1(e)}:U1,q1=O1.TypeError,K1=function(e){if(null==e)throw q1("Can't call method on "+e);return e},X1=function(e){return G1(K1(e))},Y1=function(e){return"function"==typeof e},Z1=function(e){return"object"==typeof e?null!==e:Y1(e)},J1=function(e){return Y1(e)?e:void 0},Q1=function(e,t){return arguments.length<2?J1(O1[e]):O1[e]&&O1[e][t]},e2=z1({}.isPrototypeOf),t2=Q1("navigator","userAgent")||"",n2=O1.process,r2=O1.Deno,o2=n2&&n2.versions||r2&&r2.version,i2=o2&&o2.v8;i2&&(S1=(C1=i2.split("."))[0]>0&&C1[0]<4?1:+(C1[0]+C1[1])),!S1&&t2&&(!(C1=t2.match(/Edge\/(\d+)/))||C1[1]>=74)&&(C1=t2.match(/Chrome\/(\d+)/))&&(S1=+C1[1]);var a2=S1,u2=!!Object.getOwnPropertySymbols&&!k1((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&a2&&a2<41})),s2=u2&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,l2=O1.Object,c2=s2?function(e){return"symbol"==typeof e}:function(e){var t=Q1("Symbol");return Y1(t)&&e2(t.prototype,l2(e))},f2=O1.String,d2=function(e){try{return f2(e)}catch(t){return"Object"}},p2=O1.TypeError,h2=function(e){if(Y1(e))return e;throw p2(d2(e)+" is not a function")},g2=function(e,t){var n=e[t];return null==n?void 0:h2(n)},v2=O1.TypeError,y2=Object.defineProperty,m2=function(e,t){try{y2(O1,e,{value:t,configurable:!0,writable:!0})}catch(Qj){O1[e]=t}return t},b2=O1["__core-js_shared__"]||m2("__core-js_shared__",{}),w2=D1((function(e){(e.exports=function(e,t){return b2[e]||(b2[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),E2=O1.Object,x2=function(e){return E2(K1(e))},D2=z1({}.hasOwnProperty),C2=Object.hasOwn||function(e,t){return D2(x2(e),t)},S2=0,A2=Math.random(),O2=z1(1..toString),k2=function(e){return"Symbol("+(void 0===e?"":e)+")_"+O2(++S2+A2,36)},B2=w2("wks"),F2=O1.Symbol,T2=F2&&F2.for,_2=s2?F2:F2&&F2.withoutSetter||k2,P2=function(e){if(!C2(B2,e)||!u2&&"string"!=typeof B2[e]){var t="Symbol."+e;u2&&C2(F2,e)?B2[e]=F2[e]:B2[e]=s2&&T2?T2(t):_2(t)}return B2[e]},j2=O1.TypeError,I2=P2("toPrimitive"),N2=function(e){var t=function(e,t){if(!Z1(e)||c2(e))return e;var n,r=g2(e,I2);if(r){if(void 0===t&&(t="default"),n=T1(r,e,t),!Z1(n)||c2(n))return n;throw j2("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&Y1(n=e.toString)&&!Z1(r=T1(n,e)))return r;if(Y1(n=e.valueOf)&&!Z1(r=T1(n,e)))return r;if("string"!==t&&Y1(n=e.toString)&&!Z1(r=T1(n,e)))return r;throw v2("Can't convert object to primitive value")}(e,t)}(e,"string");return c2(t)?t:t+""},L2=O1.document,R2=Z1(L2)&&Z1(L2.createElement),M2=function(e){return R2?L2.createElement(e):{}},z2=!B1&&!k1((function(){return 7!=Object.defineProperty(M2("div"),"a",{get:function(){return 7}}).a})),$2=Object.getOwnPropertyDescriptor,H2={f:B1?$2:function(e,t){if(e=X1(e),t=N2(t),z2)try{return $2(e,t)}catch(n){}if(C2(e,t))return I1(!T1(j1.f,e,t),e[t])}},V2=O1.String,U2=O1.TypeError,W2=function(e){if(Z1(e))return e;throw U2(V2(e)+" is not an object")},G2=O1.TypeError,q2=Object.defineProperty,K2={f:B1?q2:function(e,t,n){if(W2(e),t=N2(t),W2(n),z2)try{return q2(e,t,n)}catch(r){}if("get"in n||"set"in n)throw G2("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},X2=B1?function(e,t,n){return K2.f(e,t,I1(1,n))}:function(e,t,n){return e[t]=n,e},Y2=z1(Function.toString);Y1(b2.inspectSource)||(b2.inspectSource=function(e){return Y2(e)});var Z2,J2,Q2,e4=b2.inspectSource,t4=O1.WeakMap,n4=Y1(t4)&&/native code/.test(e4(t4)),r4=w2("keys"),o4=function(e){return r4[e]||(r4[e]=k2(e))},i4={},a4=O1.TypeError,u4=O1.WeakMap;if(n4||b2.state){var s4=b2.state||(b2.state=new u4),l4=z1(s4.get),c4=z1(s4.has),f4=z1(s4.set);Z2=function(e,t){if(c4(s4,e))throw new a4("Object already initialized");return t.facade=e,f4(s4,e,t),t},J2=function(e){return l4(s4,e)||{}},Q2=function(e){return c4(s4,e)}}else{var d4=o4("state");i4[d4]=!0,Z2=function(e,t){if(C2(e,d4))throw new a4("Object already initialized");return t.facade=e,X2(e,d4,t),t},J2=function(e){return C2(e,d4)?e[d4]:{}},Q2=function(e){return C2(e,d4)}}var p4={set:Z2,get:J2,has:Q2,enforce:function(e){return Q2(e)?J2(e):Z2(e,{})},getterFor:function(e){return function(t){var n;if(!Z1(t)||(n=J2(t)).type!==e)throw a4("Incompatible receiver, "+e+" required");return n}}},h4=Function.prototype,g4=B1&&Object.getOwnPropertyDescriptor,v4=C2(h4,"name"),y4={EXISTS:v4,PROPER:v4&&"something"===function(){}.name,CONFIGURABLE:v4&&(!B1||B1&&g4(h4,"name").configurable)},m4=D1((function(e){var t=y4.CONFIGURABLE,n=p4.get,r=p4.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;Y1(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!C2(i,"name")||t&&i.name!==f)&&X2(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==O1?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:X2(e,n,i)):l?e[n]=i:m2(n,i)})(Function.prototype,"toString",(function(){return Y1(this)&&n(this).source||e4(this)}))})),b4=Math.ceil,w4=Math.floor,E4=function(e){var t=+e;return t!=t||0===t?0:(t>0?w4:b4)(t)},x4=Math.max,D4=Math.min,C4=function(e,t){var n=E4(e);return n<0?x4(n+t,0):D4(n,t)},S4=Math.min,A4=function(e){return e>0?S4(E4(e),9007199254740991):0},O4=function(e){return A4(e.length)},k4=function(e){return function(t,n,r){var o,i=X1(t),a=O4(i),u=C4(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}}(!1),B4=z1([].push),F4=function(e,t){var n,r=X1(e),o=0,i=[];for(n in r)!C2(i4,n)&&C2(r,n)&&B4(i,n);for(;t.length>o;)C2(r,n=t[o++])&&(~k4(i,n)||B4(i,n));return i},T4=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],_4=T4.concat("length","prototype"),P4={f:Object.getOwnPropertyNames||function(e){return F4(e,_4)}},j4={f:Object.getOwnPropertySymbols},I4=z1([].concat),N4=Q1("Reflect","ownKeys")||function(e){var t=P4.f(W2(e)),n=j4.f;return n?I4(t,n(e)):t},L4=function(e,t){for(var n=N4(t),r=K2.f,o=H2.f,i=0;i<n.length;i++){var a=n[i];C2(e,a)||r(e,a,o(t,a))}},R4=/#|\.prototype\./,M4=function(e,t){var n=$4[z4(e)];return n==V4||n!=H4&&(Y1(t)?k1(t):!!t)},z4=M4.normalize=function(e){return String(e).replace(R4,".").toLowerCase()},$4=M4.data={},H4=M4.NATIVE="N",V4=M4.POLYFILL="P",U4=M4,W4=H2.f,G4=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?O1:l?O1[u]||m2(u,{}):(O1[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=W4(n,r))&&a.value:n[r],!U4(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;L4(i,o)}(e.sham||o&&o.sham)&&X2(i,"sham",!0),m4(n,r,i,e)}},q4={};q4[P2("toStringTag")]="z";var K4="[object z]"===String(q4),X4=P2("toStringTag"),Y4=O1.Object,Z4="Arguments"==V1(function(){return arguments}()),J4=K4?V1:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=Y4(e),X4))?n:Z4?V1(t):"Object"==(r=V1(t))&&Y1(t.callee)?"Arguments":r},Q4=O1.String,e6=function(e){if("Symbol"===J4(e))throw TypeError("Cannot convert a Symbol value to a string");return Q4(e)},t6=/"/g,n6=z1("".replace);G4({target:"String",proto:!0,forced:k1((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=e6(K1(this)),r="<a",(r+=' name="'+n6(e6(t),t6,"&quot;")+'"')+">"+n+"</a>";var t,n,r}});var r6,o6=function(){var e=W2(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},i6=O1.RegExp,a6=k1((function(){var e=i6("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),u6=a6||k1((function(){return!i6("a","y").sticky})),s6={BROKEN_CARET:a6||k1((function(){var e=i6("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:u6,UNSUPPORTED_Y:a6},l6=Object.keys||function(e){return F4(e,T4)},c6=B1?Object.defineProperties:function(e,t){W2(e);for(var n,r=X1(t),o=l6(t),i=o.length,a=0;i>a;)K2.f(e,n=o[a++],r[n]);return e},f6=Q1("document","documentElement"),d6=o4("IE_PROTO"),p6=function(){},h6=function(e){return"<script>"+e+"<\/script>"},g6=function(e){e.write(h6("")),e.close();var t=e.parentWindow.Object;return e=null,t},v6=function(){try{r6=new ActiveXObject("htmlfile")}catch(r){}var e,t;v6="undefined"!=typeof document?document.domain&&r6?g6(r6):((t=M2("iframe")).style.display="none",f6.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(h6("document.F=Object")),e.close(),e.F):g6(r6);for(var n=T4.length;n--;)delete v6.prototype[T4[n]];return v6()};i4[d6]=!0;var y6,m6,b6=Object.create||function(e,t){var n;return null!==e?(p6.prototype=W2(e),n=new p6,p6.prototype=null,n[d6]=e):n=v6(),void 0===t?n:c6(n,t)},w6=O1.RegExp,E6=k1((function(){var e=w6(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),x6=O1.RegExp,D6=k1((function(){var e=x6("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),C6=p4.get,S6=w2("native-string-replace",String.prototype.replace),A6=RegExp.prototype.exec,O6=A6,k6=z1("".charAt),B6=z1("".indexOf),F6=z1("".replace),T6=z1("".slice),_6=(m6=/b*/g,T1(A6,y6=/a/,"a"),T1(A6,m6,"a"),0!==y6.lastIndex||0!==m6.lastIndex),P6=s6.BROKEN_CARET,j6=void 0!==/()??/.exec("")[1];(_6||j6||P6||E6||D6)&&(O6=function(e){var t,n,r,o,i,a,u,s=this,l=C6(s),c=e6(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=T1(O6,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=P6&&s.sticky,h=T1(o6,s),g=s.source,v=0,y=c;if(p&&(h=F6(h,"y",""),-1===B6(h,"g")&&(h+="g"),y=T6(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==k6(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),j6&&(n=new RegExp("^"+g+"$(?!\\s)",h)),_6&&(r=s.lastIndex),o=T1(A6,p?n:s,y),p?o?(o.input=T6(o.input,v),o[0]=T6(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:_6&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),j6&&o&&o.length>1&&T1(S6,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=b6(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var I6=O6;G4({target:"RegExp",proto:!0,forced:/./.exec!==I6},{exec:I6});var N6=Array.isArray||function(e){return"Array"==V1(e)},L6=function(){},R6=[],M6=Q1("Reflect","construct"),z6=/^\s*(?:class|function)\b/,$6=z1(z6.exec),H6=!z6.exec(L6),V6=function(e){if(!Y1(e))return!1;try{return M6(L6,R6,e),!0}catch(t){return!1}},U6=!M6||k1((function(){var e;return V6(V6.call)||!V6(Object)||!V6((function(){e=!0}))||e}))?function(e){if(!Y1(e))return!1;switch(J4(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return H6||!!$6(z6,e4(e))}:V6,W6=function(e,t,n){var r=N2(t);r in e?K2.f(e,r,I1(0,n)):e[r]=n},G6=P2("species"),q6=function(e){return a2>=51||!k1((function(){var t=[];return(t.constructor={})[G6]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},K6=z1([].slice),X6=q6("slice"),Y6=P2("species"),Z6=O1.Array,J6=Math.max;function Q6(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function e3(e){var t=e.selection;if(null==t)return!1;var n=Q6(fp.nodes(e,{match:function(e){return fB.checkNodeType(e,"table-cell")}}),1)[0];if(n){var r=Q6(n,2)[1],o=fp.start(e,r);if(Cp.equals(t.anchor,o))return!0}return!1}function t3(e,t){var n,r,o=fp.nodes(e,{at:t,match:function(e){return"table"===fB.getNodeType(e)}}),i=!1;try{for(var a=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(o),u=a.next();!u.done;u=a.next())u.value,i=!0}catch(s){n={error:s}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return i}G4({target:"Array",proto:!0,forced:!X6},{slice:function(e,t){var n,r,o,i=X1(this),a=O4(i),u=C4(e,a),s=C4(void 0===t?a:t,a);if(N6(i)&&(n=i.constructor,(U6(n)&&(n===Z6||N6(n.prototype))||Z1(n)&&null===(n=n[Y6]))&&(n=void 0),n===Z6||void 0===n))return K6(i,u,s);for(r=new(void 0===n?Z6:n)(J6(s-u,0)),o=0;u<s;u++,o++)u in i&&W6(r,o,i[u]);return r.length=o,r}});var n3=z1(z1.bind),r3=P2("species"),o3=O1.Array,i3=function(e,t){return new(N6(n=e)&&(r=n.constructor,(U6(r)&&(r===o3||N6(r.prototype))||Z1(r)&&null===(r=r[r3]))&&(r=void 0)),void 0===r?o3:r)(0===t?0:t);var n,r},a3=z1([].push),u3=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=x2(s),g=G1(h),v=function(e,t){return h2(e),void 0===t?e:n3?n3(e,t):function(){return e.apply(t,arguments)}}(l,c),y=O4(g),m=0,b=f||i3,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:a3(w,d)}else switch(e){case 4:return!1;case 7:a3(w,d)}return i?-1:r||o?o:w}},s3={forEach:u3(0),map:u3(1),filter:u3(2),some:u3(3),every:u3(4),find:u3(5),findIndex:u3(6),filterReject:u3(7)},l3=s3.map;G4({target:"Array",proto:!0,forced:!q6("map")},{map:function(e){return l3(this,e,arguments.length>1?arguments[1]:void 0)}});var c3=K4?{}.toString:function(){return"[object "+J4(this)+"]"};function f3(e){var t=e.children||[];return 0===t.length?[]:(t[0]||{}).children||[]}function d3(e){return f3(e).every((function(e){return!!e.isHeader}))}K4||m4(Object.prototype,"toString",c3,{unsafe:!0});var p3=y4.PROPER,h3=RegExp.prototype,g3=h3.toString,v3=z1(o6),y3=k1((function(){return"/a/b"!=g3.call({source:"a",flags:"b"})})),m3=p3&&"toString"!=g3.name;(y3||m3)&&m4(RegExp.prototype,"toString",(function(){var e=W2(this),t=e6(e.source),n=e.flags;return"/"+t+"/"+e6(void 0===n&&e2(h3,e)&&!("flags"in h3)?v3(e):n)}),{unsafe:!0});var b3=P2("unscopables"),w3=Array.prototype;null==w3[b3]&&K2.f(w3,b3,{configurable:!0,value:b6(null)});var E3=s3.find,x3=!0;"find"in[]&&Array(1).find((function(){x3=!1})),G4({target:"Array",proto:!0,forced:x3},{find:function(e){return E3(this,e,arguments.length>1?arguments[1]:void 0)}}),w3[b3].find=!0;var D3=Function.prototype,C3=D3.apply,S3=D3.bind,A3=D3.call,O3="object"==typeof Reflect&&Reflect.apply||(S3?A3.bind(C3):function(){return A3.apply(C3,arguments)}),k3=P2("species"),B3=RegExp.prototype,F3=function(e,t,n,r){var o=P2(e),i=!k1((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!k1((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[k3]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=z1(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=z1(e),s=t.exec;return s===I6||s===B3.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));m4(String.prototype,e,s[0]),m4(B3,o,s[1])}r&&X2(B3[o],"sham",!0)},T3=P2("match"),_3=O1.TypeError,P3=P2("species"),j3=z1("".charAt),I3=z1("".charCodeAt),N3=z1("".slice),L3=function(e){return function(t,n){var r,o,i=e6(K1(t)),a=E4(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=I3(i,a))<55296||r>56319||a+1===u||(o=I3(i,a+1))<56320||o>57343?e?j3(i,a):r:e?N3(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0),R3=function(e,t,n){return t+(n?L3(e,t).length:1)},M3=O1.Array,z3=Math.max,$3=function(e,t,n){for(var r=O4(e),o=C4(t,r),i=C4(void 0===n?r:n,r),a=M3(z3(i-o,0)),u=0;o<i;o++,u++)W6(a,u,e[o]);return a.length=u,a},H3=O1.TypeError,V3=function(e,t){var n=e.exec;if(Y1(n)){var r=T1(n,e,t);return null!==r&&W2(r),r}if("RegExp"===V1(e))return T1(I6,e,t);throw H3("RegExp#exec called on incompatible receiver")},U3=s6.UNSUPPORTED_Y,W3=Math.min,G3=[].push,q3=z1(/./.exec),K3=z1(G3),X3=z1("".slice);F3("split",(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r,o,i=e6(K1(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!Z1(r=e)||!(void 0!==(o=r[T3])?o:"RegExp"==V1(r)))return T1(t,i,e,a);for(var u,s,l,c=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,p=new RegExp(e.source,f+"g");(u=T1(I6,p,i))&&!((s=p.lastIndex)>d&&(K3(c,X3(i,d,u.index)),u.length>1&&u.index<i.length&&O3(G3,c,$3(u,1)),l=u[0].length,d=s,c.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return d===i.length?!l&&q3(p,"")||K3(c,""):K3(c,X3(i,d)),c.length>a?$3(c,0,a):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:T1(t,this,e,n)}:t,[function(t,n){var o=K1(this),i=null==t?void 0:g2(t,e);return i?T1(i,t,o,n):T1(r,e6(o),t,n)},function(e,o){var i=W2(this),a=e6(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s,l,c,f=(s=RegExp,void 0===(c=W2(i).constructor)||null==(l=W2(c)[P3])?s:function(e){if(U6(e))return e;throw _3(d2(e)+" is not a constructor")}(l)),d=i.unicode,p=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(U3?"g":"y"),h=new f(U3?"^(?:"+i.source+")":i,p),g=void 0===o?4294967295:o>>>0;if(0===g)return[];if(0===a.length)return null===V3(h,a)?[a]:[];for(var v=0,y=0,m=[];y<a.length;){h.lastIndex=U3?0:y;var b,w=V3(h,U3?X3(a,y):a);if(null===w||(b=W3(A4(h.lastIndex+(U3?y:0)),a.length))===v)y=R3(a,y,d);else{if(K3(m,X3(a,v,y)),m.length===g)return m;for(var E=1;E<=w.length-1;E++)if(K3(m,w[E]),m.length===g)return m;y=v=b}}return K3(m,X3(a,v)),m}]}),!!k1((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),U3);var Y3="\t\n\v\f\r                 \u2028\u2029\ufeff",Z3=z1("".replace),J3="["+Y3+"]",Q3=RegExp("^"+J3+J3+"*"),e5=RegExp(J3+J3+"*$"),t5=function(e){return function(t){var n=e6(K1(t));return 1&e&&(n=Z3(n,Q3,"")),2&e&&(n=Z3(n,e5,"")),n}},n5={start:t5(1),end:t5(2),trim:t5(3)},r5=y4.PROPER,o5=n5.trim;function i5(e){return e.length?e[0].tagName.toLowerCase():""}G4({target:"String",proto:!0,forced:function(e){return k1((function(){return!!Y3.trim()||"​…᠎"!=="​…᠎".trim()||r5&&Y3.trim.name!==e}))}("trim")},{trim:function(){return o5(this)}}),G4({global:!0},{globalThis:O1}),Ig&&(hg.fn.append=Ig),xg&&(hg.fn.on=xg),Gg&&(hg.fn.focus=Gg),mg&&(hg.fn.attr=mg),Eg&&(hg.fn.val=Eg),_g&&(hg.fn.html=_g),wg&&(hg.fn.dataset=wg),gg&&(hg.fn.addClass=gg),vg&&(hg.fn.removeClass=vg),zg&&(hg.fn.children=zg),Fg&&(hg.fn.each=Fg),Mg&&(hg.fn.find=Mg);var a5=!1,u5=0,s5=0,l5=null,c5=null,f5=hg("body");function d5(e){a5=!1,c5=null,l5=null,f5.off("mousemove",p5),f5.off("mouseup",d5)}f5.on("mousedown",(function(e){var t=e.target;if(("TH"===t.tagName||"TD"===t.tagName)&&"col-resize"===t.style.cursor){t.style.cursor="auto",e.preventDefault(),a5=!0;var n=e.clientX;u5=n;var r=t.getBoundingClientRect().width;s5=r,f5.on("mousemove",p5),f5.on("mouseup",d5)}}));var p5=Cv((function(e){if(a5&&null!=c5&&null!=l5){e.preventDefault();var t=e.clientX,n=s5+(t-u5);(n=Math.floor(100*n)/100)<30&&(n=30),Qp.setNodes(c5,{width:n.toString()},{at:l5})}}),100),h5={type:"table",renderElem:function(e,t,n){var r=function(e,t){if(e.isDisabled())return!1;var n=e.selection;if(null==n)return!0;if(kp.isCollapsed(n))return!0;var r=n.anchor,o=n.focus,i=fB.findPath(e,t),a=fp.start(e,i),u=fp.end(e,i),s=Cp.compare(r,u)<=0&&Cp.compare(r,a)>=0,l=Cp.compare(o,u)<=0&&Cp.compare(o,a)>=0;return!!(s&&l&&wp.equals(r.path.slice(0,3),o.path.slice(0,3)))}(n,e),o=e.width,i=void 0===o?"auto":o;return ry("div",{className:"table-container","data-selected":fB.isNodeSelected(n,e),on:{mousedown:function(t){if("DIV"===t.target.tagName&&t.preventDefault(),!n.isDisabled()){var r=fB.findPath(n,e),o=fp.start(n,r),i=n.selection;null!=i?i.anchor.path[0]!==r[0]&&n.select(o):n.select(o)}}}},ry("table",{width:i,contentEditable:r},ry("colgroup",null,f3(e).map((function(e){var t=e.width;return ry("col",{width:void 0===t?"auto":t})}))),ry("tbody",null,t)))}},g5={type:"table-row",renderElem:function(e,t,n){return ry("tr",null,t)}},v5={type:"table-cell",renderElem:function(e,t,n){var r=function(e,t){var n=fB.getParentNode(e,t);if(null==n)return!1;var r=fB.getParentNode(e,n);return null!=r&&f3(r).some((function(e){return e===t}))}(n,e),o=e,i=o.colSpan,a=void 0===i?1:i,u=o.rowSpan,s=void 0===u?1:u,l=o.isHeader;return r?ry(void 0!==l&&l?"th":"td",{colSpan:a,rowSpan:s,style:{borderRightWidth:"3px"},on:{mousemove:Cv((function(t){var r=this.elm;if(null!=r){var o=r.getBoundingClientRect(),i=o.left,a=o.width,u=o.top,s=o.height,l=t.clientX,c=t.clientY;a5||(l>i+a-5&&l<i+a&&c>u&&c<u+s?(r.style.cursor="col-resize",c5=n,l5=fB.findPath(n,e)):a5||(r.style.cursor="auto",c5=null,l5=null))}}),100)}},t):ry("td",{colSpan:a,rowSpan:s},t)}},y5={selector:"table",preParseHtml:function(e){var t=hg(e);if("table"!==i5(t))return e;var n=t.find("tbody");if(0===n.length)return e;var r=t.find("tr");return t.append(r),n.remove(),t[0]}},m5=s3.filter;G4({target:"Array",proto:!0,forced:!q6("filter")},{filter:function(e){return m5(this,e,arguments.length>1?arguments[1]:void 0)}});var b5=Math.floor,w5=z1("".charAt),E5=z1("".replace),x5=z1("".slice),D5=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,C5=/\$([$&'`]|\d{1,2})/g,S5=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=C5;return void 0!==o&&(o=x2(o),s=D5),E5(i,s,(function(i,s){var l;switch(w5(s,0)){case"$":return"$";case"&":return e;case"`":return x5(t,0,n);case"'":return x5(t,a);case"<":l=o[x5(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=b5(c/10);return 0===f?i:f<=u?void 0===r[f-1]?w5(s,1):r[f-1]+w5(s,1):i}l=r[c-1]}return void 0===l?"":l}))},A5=P2("replace"),O5=Math.max,k5=Math.min,B5=z1([].concat),F5=z1([].push),T5=z1("".indexOf),_5=z1("".slice),P5="$0"==="a".replace(/./,"$0"),j5=!!/./[A5]&&""===/./[A5]("a","$0");F3("replace",(function(e,t,n){var r=j5?"$":"$0";return[function(e,n){var r=K1(this),o=null==e?void 0:g2(e,A5);return o?T1(o,e,r,n):T1(t,e6(r),e,n)},function(e,o){var i=W2(this),a=e6(e);if("string"==typeof o&&-1===T5(o,r)&&-1===T5(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=Y1(o);s||(o=e6(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=V3(i,a);if(null===d)break;if(F5(f,d),!l)break;""===e6(d[0])&&(i.lastIndex=R3(a,A4(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var y=e6((d=f[v])[0]),m=O5(k5(E4(d.index),a.length),0),b=[],w=1;w<d.length;w++)F5(b,void 0===(p=d[w])?p:String(p));var E=d.groups;if(s){var x=B5([y],b,m,a);void 0!==E&&F5(x,E);var D=e6(O3(o,void 0,x))}else D=S5(y,a,m,b,E,o);m>=g&&(h+=_5(a,g,m)+D,g=m+y.length)}return h+_5(a,g)}]}),!!k1((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!P5||j5);var I5={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=hg(e);0===(t=t.filter((function(e){return!!Ip.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=parseInt(r.attr("colSpan")||"1"),i=parseInt(r.attr("rowSpan")||"1"),a=r.attr("width")||"auto";return{type:"table-cell",isHeader:"th"===i5(r),colSpan:o,rowSpan:i,width:a,children:t}}},N5={selector:"tr:not([data-w-e-type])",parseElemHtml:function(e,t,n){return{type:"table-row",children:t.filter((function(e){return"table-cell"===fB.getNodeType(e)}))}}},L5={selector:"table:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=hg(e),o="auto";return"100%"===function(e,t){for(var n="",r=(e.attr("style")||"").split(";"),o=r.length,i=0;i<o;i++){var a=r[i];if(a){var u=a.split(":");"width"===u[0].trim()&&(n=u[1].trim())}}return n}(r)&&(o="100%"),"100%"===r.attr("width")&&(o="100%"),{type:"table",width:o,children:t.filter((function(e){return"table-row"===fB.getNodeType(e)}))}}},R5=function(){function e(){this.title=Zj("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 e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!kp.isCollapsed(t)||!!fB.getSelectedElems(e).some((function(t){var n=fB.getNodeType(t);return"pre"===n||"table"===n||"list-item"===n||!!e.isVoid(t)}))},e.prototype.getPanelContentElem=function(e){var t=this;if(this.$content)return this.$content[0];for(var n=hg('<div class="w-e-panel-content-table"></div>'),r=hg("<span>0 &times; 0</span>"),o=hg("<table></table>"),i=0;i<10;i++){for(var a=hg("<tr></tr>"),u=0;u<10;u++){var s=hg("<td></td>");s.attr("data-x",u.toString()),s.attr("data-y",i.toString()),a.append(s),s.on("mouseenter",(function(e){var t=e.target;if(null!=t){var n=hg(t).dataset(),i=n.x,a=n.y;r[0].innerHTML=i+1+" &times; "+(a+1),o.children().each((function(e){hg(e).children().each((function(e){var t=hg(e),n=t.dataset(),r=n.x,o=n.y;r<=i&&o<=a?t.addClass("active"):t.removeClass("active")}))}))}})),s.on("click",(function(n){n.preventDefault();var r=n.target;if(null!=r){var o=hg(r).dataset(),i=o.x,a=o.y;t.insertTable(e,a+1,i+1)}}))}o.append(a)}return n.append(o),n.append(r),this.$content=n,n[0]},e.prototype.insertTable=function(e,t,n){var r=parseInt(t,10),o=parseInt(n,10);if(r&&o&&!(r<=0||o<=0)){fB.isSelectedEmptyParagraph(e)&&Qp.removeNodes(e,{mode:"highest"});var i=function(e,t){for(var n=[],r=0;r<e;r++){for(var o=[],i=0;i<t;i++){var a={type:"table-cell",children:[{text:""}]};0===r&&(a.isHeader=!0),o.push(a)}n.push({type:"table-row",children:o})}return{type:"table",width:"auto",children:n}}(r,o);Qp.insertNodes(e,i,{mode:"highest"})}},e}(),M5=function(){function e(){this.title=Zj("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 e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==fB.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){this.isDisabled(e)||Qp.removeNodes(e,{mode:"highest"})},e}(),z5=function(){function e(){this.title=Zj("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 e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!kp.isCollapsed(t)||null==fB.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=Q6(fp.nodes(e,{match:function(e){return fB.checkNodeType(e,"table-cell")},universal:!0}),1),r=Q6(n[0],2),o=r[0],i=r[1],a=fB.getParentNode(e,o),u=(null==a?void 0:a.children.length)||0;if(0!==u){for(var s={type:"table-row",children:[]},l=0;l<u;l++)s.children.push({type:"table-cell",children:[{text:""}]});var c=wp.parent(i),f=wp.next(c);Qp.insertNodes(e,s,{at:f})}}},e}(),$5=function(){function e(){this.title=Zj("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 e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!kp.isCollapsed(t)||null==fB.getSelectedNodeByType(e,"table-row")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=Q6(fp.nodes(e,{match:function(e){return fB.checkNodeType(e,"table-row")},universal:!0}),1),r=Q6(n[0],2),o=r[0],i=r[1],a=fB.getParentNode(e,o);((null==a?void 0:a.children.length)||0)<=1?Qp.removeNodes(e,{mode:"highest"}):Qp.removeNodes(e,{at:i})}},e}(),H5={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},V5=M2("span").classList,U5=V5&&V5.constructor&&V5.constructor.prototype,W5=U5===Object.prototype?void 0:U5,G5=s3.forEach,q5=function(e,t){var n=[].forEach;return!!n&&k1((function(){n.call(null,(function(){throw 1}),1)}))}(),K5=q5?[].forEach:function(e){return G5(this,e,arguments.length>1?arguments[1]:void 0)},X5=function(e){if(e&&e.forEach!==K5)try{X2(e,"forEach",K5)}catch(t){e.forEach=K5}};for(var Y5 in H5)H5[Y5]&&X5(O1[Y5]&&O1[Y5].prototype);X5(W5);var Z5=function(){function e(){this.title=Zj("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 e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!kp.isCollapsed(t)||null==fB.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=Q6(fp.nodes(e,{match:function(e){return fB.checkNodeType(e,"table-cell")},universal:!0}),1),r=Q6(n[0],2),o=r[0],i=r[1],a=fB.getParentNode(e,o);if(null!=a){var u=fB.getParentNode(e,a);null!=u&&(u.children||[]).forEach((function(t,n){ip.isElement(t)&&(t.children||[]).forEach((function(t){var r=fB.findPath(e,t);if(r.length===i.length&&E1(r.slice(-1),i.slice(-1))){var o={type:"table-cell",children:[{text:""}]};0===n&&d3(u)&&(o.isHeader=!0),Qp.insertNodes(e,o,{at:r})}}))}))}}},e}(),J5=function(){function e(){this.title=Zj("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 e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!kp.isCollapsed(t)||null==fB.getSelectedNodeByType(e,"table-cell")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=Q6(fp.nodes(e,{match:function(e){return fB.checkNodeType(e,"table-cell")},universal:!0}),1),r=Q6(n[0],2),o=r[0],i=r[1],a=fB.getParentNode(e,o),u=(null==a?void 0:a.children.length)||0;if(!a||u<=1)Qp.removeNodes(e,{mode:"highest"});else{var s=fB.getParentNode(e,a);null!=s&&(s.children||[]).forEach((function(t){ip.isElement(t)&&(t.children||[]).forEach((function(t){var n=fB.findPath(e,t);n.length===i.length&&E1(n.slice(-1),i.slice(-1))&&Qp.removeNodes(e,{at:n})}))}))}}},e}(),Q5=function(){function e(){this.title=Zj("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 e.prototype.getValue=function(e){var t=fB.getSelectedNodeByType(e,"table");return null!=t&&d3(t)},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!kp.isCollapsed(t)||null==fB.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=!t,r=fB.getSelectedNodeByType(e,"table");null!=r&&f3(r).forEach((function(t){return Qp.setNodes(e,{isHeader:n},{at:fB.findPath(e,t)})}))}},e}(),e8=function(){function e(){this.title=Zj("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 e.prototype.getValue=function(e){var t=fB.getSelectedNodeByType(e,"table");return null!=t&&"100%"===t.width},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!kp.isCollapsed(t)||null==fB.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n={width:t?"auto":"100%"};Qp.setNodes(e,n,{mode:"highest"})}},e}(),t8={renderElems:[h5,g5,v5],elemsToHtml:[{type:"table",elemToHtml:function(e,t){var n=e.width;return'<table style="width: '+(void 0===n?"auto":n)+';"><tbody>'+t+"</tbody></table>"}},{type:"table-row",elemToHtml:function(e,t){return"<tr>"+t+"</tr>"}},{type:"table-cell",elemToHtml:function(e,t){var n=e,r=n.colSpan,o=void 0===r?1:r,i=n.rowSpan,a=void 0===i?1:i,u=n.isHeader,s=void 0!==u&&u,l=n.width,c=s?"th":"td";return"<"+c+' colSpan="'+o+'" rowSpan="'+a+'" width="'+(void 0===l?"auto":l)+'">'+t+"</"+c+">"}}],preParseHtml:[y5],parseElemsHtml:[I5,N5,L5],menus:[{key:"insertTable",factory:function(){return new R5}},{key:"deleteTable",factory:function(){return new M5}},{key:"insertTableRow",factory:function(){return new z5}},{key:"deleteTableRow",factory:function(){return new $5}},{key:"insertTableCol",factory:function(){return new Z5}},{key:"deleteTableCol",factory:function(){return new J5}},{key:"tableHeader",factory:function(){return new Q5}},{key:"tableFullWidth",factory:function(){return new e8}}],editorPlugin:function(e){var t=e.insertBreak,n=e.deleteBackward,r=e.deleteForward,o=e.normalizeNode,i=e.insertData,a=e.handleTab,u=e.selectAll,s=e;return s.insertBreak=function(){null==fB.getSelectedNodeByType(s,"table")?t():s.insertText("\n")},s.deleteBackward=function(e){if(!e3(s)){var t=s.selection;if(t){var r=fp.before(s,t);if(r){var o=t3(s,r),i=t3(s,t);if(o&&!i)return}}n(e)}},s.handleTab=function(){var t;if(fB.getSelectedNodeByType(s,"table")){var n=fp.above(e);fB.checkNodeType(n[0],"table-cell")&&Qp.select(e,n[1]);var r=fp.next(e);if(r)r[0]&&r[0].text&&(r=null!==(t=fp.above(e,{at:r[1]}))&&void 0!==t?t:r),Qp.select(e,r[1]);else{var o=s.children||[],i=o.length;if(fB.checkNodeType(o[i-1],"table")){var u=fB.genEmptyParagraph();Qp.insertNodes(s,u,{at:[i]}),s.handleTab()}}}else a()},s.deleteForward=function(e){e3(s)||r(e)},s.normalizeNode=function(e){var t=Q6(e,2),n=t[0],r=t[1];if("table"!==fB.getNodeType(n))return o([n,r]);if(fB.isLastNode(s,n)){var i=fB.genEmptyParagraph();Qp.insertNodes(s,i,{at:[r[0]+1]})}},s.insertData=function(e){if(null!=fB.getSelectedNodeByType(s,"table")){var t=e.getData("text/plain");"\n"===t||/<img[^>]+>/.test(e.getData("text/html"))?i(e):fp.insertText(s,t)}else i(e)},s.selectAll=function(){var e=s.selection;if(null!=e){var t=fB.getSelectedNodeByType(s,"table-cell");if(null!=t){var n=e.anchor,r=e.focus;if(wp.equals(n.path.slice(0,3),r.path.slice(0,3)))if(0!==vp.string(t).length){var o=fB.findPath(s,t),i={anchor:fp.start(s,o),focus:fp.end(s,o)};s.select(i)}else u();else u()}else u()}else u()},s}};Yj("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"}}),Yj("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",width:"宽度",height:"高度"}});
  62. /*! *****************************************************************************
  63. Copyright (c) Microsoft Corporation.
  64. Permission to use, copy, modify, and/or distribute this software for any
  65. purpose with or without fee is hereby granted.
  66. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  67. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  68. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  69. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  70. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  71. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  72. PERFORMANCE OF THIS SOFTWARE.
  73. ***************************************************************************** */
  74. var n8=function(){return n8=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n8.apply(this,arguments)};function r8(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(t){i(t)}}function u(e){try{s(r.throw(e))}catch(t){i(t)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))}function o8(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(u){i=[6,u],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}function i8(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}var a8="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function u8(e){var t={exports:{}};return e(t,t.exports),t.exports}var s8,l8,c8=function(e){return e&&e.Math==Math&&e},f8=c8("object"==typeof globalThis&&globalThis)||c8("object"==typeof window&&window)||c8("object"==typeof self&&self)||c8("object"==typeof a8&&a8)||function(){return this}()||Function("return this")(),d8=function(e){try{return!!e()}catch(t){return!0}},p8=!d8((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),h8=Function.prototype.call,g8=h8.bind?h8.bind(h8):function(){return h8.apply(h8,arguments)},v8={}.propertyIsEnumerable,y8=Object.getOwnPropertyDescriptor,m8={f:y8&&!v8.call({1:2},1)?function(e){var t=y8(this,e);return!!t&&t.enumerable}:v8},b8=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},w8=Function.prototype,E8=w8.bind,x8=w8.call,D8=E8&&E8.bind(x8),C8=E8?function(e){return e&&D8(x8,e)}:function(e){return e&&function(){return x8.apply(e,arguments)}},S8=C8({}.toString),A8=C8("".slice),O8=function(e){return A8(S8(e),8,-1)},k8=f8.Object,B8=C8("".split),F8=d8((function(){return!k8("z").propertyIsEnumerable(0)}))?function(e){return"String"==O8(e)?B8(e,""):k8(e)}:k8,T8=f8.TypeError,_8=function(e){if(null==e)throw T8("Can't call method on "+e);return e},P8=function(e){return F8(_8(e))},j8=function(e){return"function"==typeof e},I8=function(e){return"object"==typeof e?null!==e:j8(e)},N8=function(e){return j8(e)?e:void 0},L8=function(e,t){return arguments.length<2?N8(f8[e]):f8[e]&&f8[e][t]},R8=C8({}.isPrototypeOf),M8=L8("navigator","userAgent")||"",z8=f8.process,$8=f8.Deno,H8=z8&&z8.versions||$8&&$8.version,V8=H8&&H8.v8;V8&&(l8=(s8=V8.split("."))[0]>0&&s8[0]<4?1:+(s8[0]+s8[1])),!l8&&M8&&(!(s8=M8.match(/Edge\/(\d+)/))||s8[1]>=74)&&(s8=M8.match(/Chrome\/(\d+)/))&&(l8=+s8[1]);var U8=l8,W8=!!Object.getOwnPropertySymbols&&!d8((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&U8&&U8<41})),G8=W8&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,q8=f8.Object,K8=G8?function(e){return"symbol"==typeof e}:function(e){var t=L8("Symbol");return j8(t)&&R8(t.prototype,q8(e))},X8=f8.String,Y8=function(e){try{return X8(e)}catch(t){return"Object"}},Z8=f8.TypeError,J8=function(e){if(j8(e))return e;throw Z8(Y8(e)+" is not a function")},Q8=function(e,t){var n=e[t];return null==n?void 0:J8(n)},e7=f8.TypeError,t7=Object.defineProperty,n7=function(e,t){try{t7(f8,e,{value:t,configurable:!0,writable:!0})}catch(Qj){f8[e]=t}return t},r7=f8["__core-js_shared__"]||n7("__core-js_shared__",{}),o7=u8((function(e){(e.exports=function(e,t){return r7[e]||(r7[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),i7=f8.Object,a7=function(e){return i7(_8(e))},u7=C8({}.hasOwnProperty),s7=Object.hasOwn||function(e,t){return u7(a7(e),t)},l7=0,c7=Math.random(),f7=C8(1..toString),d7=function(e){return"Symbol("+(void 0===e?"":e)+")_"+f7(++l7+c7,36)},p7=o7("wks"),h7=f8.Symbol,g7=h7&&h7.for,v7=G8?h7:h7&&h7.withoutSetter||d7,y7=function(e){if(!s7(p7,e)||!W8&&"string"!=typeof p7[e]){var t="Symbol."+e;W8&&s7(h7,e)?p7[e]=h7[e]:p7[e]=G8&&g7?g7(t):v7(t)}return p7[e]},m7=f8.TypeError,b7=y7("toPrimitive"),w7=function(e){var t=function(e,t){if(!I8(e)||K8(e))return e;var n,r=Q8(e,b7);if(r){if(void 0===t&&(t="default"),n=g8(r,e,t),!I8(n)||K8(n))return n;throw m7("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&j8(n=e.toString)&&!I8(r=g8(n,e)))return r;if(j8(n=e.valueOf)&&!I8(r=g8(n,e)))return r;if("string"!==t&&j8(n=e.toString)&&!I8(r=g8(n,e)))return r;throw e7("Can't convert object to primitive value")}(e,t)}(e,"string");return K8(t)?t:t+""},E7=f8.document,x7=I8(E7)&&I8(E7.createElement),D7=function(e){return x7?E7.createElement(e):{}},C7=!p8&&!d8((function(){return 7!=Object.defineProperty(D7("div"),"a",{get:function(){return 7}}).a})),S7=Object.getOwnPropertyDescriptor,A7={f:p8?S7:function(e,t){if(e=P8(e),t=w7(t),C7)try{return S7(e,t)}catch(n){}if(s7(e,t))return b8(!g8(m8.f,e,t),e[t])}},O7=f8.String,k7=f8.TypeError,B7=function(e){if(I8(e))return e;throw k7(O7(e)+" is not an object")},F7=f8.TypeError,T7=Object.defineProperty,_7={f:p8?T7:function(e,t,n){if(B7(e),t=w7(t),B7(n),C7)try{return T7(e,t,n)}catch(r){}if("get"in n||"set"in n)throw F7("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},P7=p8?function(e,t,n){return _7.f(e,t,b8(1,n))}:function(e,t,n){return e[t]=n,e},j7=C8(Function.toString);j8(r7.inspectSource)||(r7.inspectSource=function(e){return j7(e)});var I7,N7,L7,R7=r7.inspectSource,M7=f8.WeakMap,z7=j8(M7)&&/native code/.test(R7(M7)),$7=o7("keys"),H7=function(e){return $7[e]||($7[e]=d7(e))},V7={},U7=f8.TypeError,W7=f8.WeakMap;if(z7||r7.state){var G7=r7.state||(r7.state=new W7),q7=C8(G7.get),K7=C8(G7.has),X7=C8(G7.set);I7=function(e,t){if(K7(G7,e))throw new U7("Object already initialized");return t.facade=e,X7(G7,e,t),t},N7=function(e){return q7(G7,e)||{}},L7=function(e){return K7(G7,e)}}else{var Y7=H7("state");V7[Y7]=!0,I7=function(e,t){if(s7(e,Y7))throw new U7("Object already initialized");return t.facade=e,P7(e,Y7,t),t},N7=function(e){return s7(e,Y7)?e[Y7]:{}},L7=function(e){return s7(e,Y7)}}var Z7={set:I7,get:N7,has:L7,enforce:function(e){return L7(e)?N7(e):I7(e,{})},getterFor:function(e){return function(t){var n;if(!I8(t)||(n=N7(t)).type!==e)throw U7("Incompatible receiver, "+e+" required");return n}}},J7=Function.prototype,Q7=p8&&Object.getOwnPropertyDescriptor,e9=s7(J7,"name"),t9={EXISTS:e9,PROPER:e9&&"something"===function(){}.name,CONFIGURABLE:e9&&(!p8||p8&&Q7(J7,"name").configurable)},n9=u8((function(e){var t=t9.CONFIGURABLE,n=Z7.get,r=Z7.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;j8(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!s7(i,"name")||t&&i.name!==f)&&P7(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==f8?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:P7(e,n,i)):l?e[n]=i:n7(n,i)})(Function.prototype,"toString",(function(){return j8(this)&&n(this).source||R7(this)}))})),r9=Math.ceil,o9=Math.floor,i9=function(e){var t=+e;return t!=t||0===t?0:(t>0?o9:r9)(t)},a9=Math.max,u9=Math.min,s9=function(e,t){var n=i9(e);return n<0?a9(n+t,0):u9(n,t)},l9=Math.min,c9=function(e){return e>0?l9(i9(e),9007199254740991):0},f9=function(e){return c9(e.length)},d9=function(e){return function(t,n,r){var o,i=P8(t),a=f9(i),u=s9(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},p9={includes:d9(!0),indexOf:d9(!1)},h9=p9.indexOf,g9=C8([].push),v9=function(e,t){var n,r=P8(e),o=0,i=[];for(n in r)!s7(V7,n)&&s7(r,n)&&g9(i,n);for(;t.length>o;)s7(r,n=t[o++])&&(~h9(i,n)||g9(i,n));return i},y9=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],m9=y9.concat("length","prototype"),b9={f:Object.getOwnPropertyNames||function(e){return v9(e,m9)}},w9={f:Object.getOwnPropertySymbols},E9=C8([].concat),x9=L8("Reflect","ownKeys")||function(e){var t=b9.f(B7(e)),n=w9.f;return n?E9(t,n(e)):t},D9=function(e,t){for(var n=x9(t),r=_7.f,o=A7.f,i=0;i<n.length;i++){var a=n[i];s7(e,a)||r(e,a,o(t,a))}},C9=/#|\.prototype\./,S9=function(e,t){var n=O9[A9(e)];return n==B9||n!=k9&&(j8(t)?d8(t):!!t)},A9=S9.normalize=function(e){return String(e).replace(C9,".").toLowerCase()},O9=S9.data={},k9=S9.NATIVE="N",B9=S9.POLYFILL="P",F9=S9,T9=A7.f,_9=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?f8:l?f8[u]||n7(u,{}):(f8[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=T9(n,r))&&a.value:n[r],!F9(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;D9(i,o)}(e.sham||o&&o.sham)&&P7(i,"sham",!0),n9(n,r,i,e)}},P9={};P9[y7("toStringTag")]="z";var j9="[object z]"===String(P9),I9=y7("toStringTag"),N9=f8.Object,L9="Arguments"==O8(function(){return arguments}()),R9=j9?O8:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=N9(e),I9))?n:L9?O8(t):"Object"==(r=O8(t))&&j8(t.callee)?"Arguments":r},M9=f8.String,z9=function(e){if("Symbol"===R9(e))throw TypeError("Cannot convert a Symbol value to a string");return M9(e)},$9="\t\n\v\f\r                 \u2028\u2029\ufeff",H9=C8("".replace),V9="["+$9+"]",U9=RegExp("^"+V9+V9+"*"),W9=RegExp(V9+V9+"*$"),G9=function(e){return function(t){var n=z9(_8(t));return 1&e&&(n=H9(n,U9,"")),2&e&&(n=H9(n,W9,"")),n}},q9={start:G9(1),end:G9(2),trim:G9(3)},K9=t9.PROPER,X9=q9.trim;function Y9(e){return e.length?e[0].tagName.toLowerCase():""}function Z9(e,t,n){void 0===t&&(t="auto"),void 0===n&&(n="auto");var r=hg(e);return r.attr("width",t),r.attr("height",n),r[0].outerHTML}_9({target:"String",proto:!0,forced:d8((function(){return!!$9.trim()||"​…᠎"!=="​…᠎".trim()||K9&&"trim"!==$9.trim.name}))},{trim:function(){return X9(this)}}),_9({global:!0},{globalThis:f8}),Ig&&(hg.fn.append=Ig),xg&&(hg.fn.on=xg),Gg&&(hg.fn.focus=Gg),mg&&(hg.fn.attr=mg),Eg&&(hg.fn.val=Eg),_g&&(hg.fn.html=_g),Lg&&(hg.fn.parent=Lg),yg&&(hg.fn.hasClass=yg),Hg&&(hg.fn.empty=Hg);var J9,Q9={type:"video",renderElem:function(e,t,n){var r,o=e,i=o.src,a=void 0===i?"":i,u=o.poster,s=void 0===u?"":u,l=o.width,c=void 0===l?"auto":l,f=o.height,d=void 0===f?"auto":f,p=fB.isNodeSelected(n,e);if(0===a.trim().indexOf("<iframe "))r=ry("div",{className:"w-e-textarea-video-container","data-selected":p?"true":"",innerHTML:Z9(a,c,d)});else{var h=ry("video",{poster:s,controls:!0},ry("source",{src:a,type:"video/mp4"}),"Sorry, your browser doesn't support embedded videos.\n 抱歉,浏览器不支持 video 视频");"auto"!==c&&(h.data.width=c),"auto"!==d&&(h.data.height=d),r=ry("div",{className:"w-e-textarea-video-container","data-selected":p?"true":""},h)}return Lv("div",{props:{contentEditable:!1},on:{mousedown:function(e){return e.preventDefault()}}},r)}},eee={type:"video",elemToHtml:function(e,t){var n=e,r=n.src,o=void 0===r?"":r,i=n.poster,a=void 0===i?"":i,u=n.width,s=void 0===u?"auto":u,l=n.height,c=void 0===l?"auto":l,f='<div data-w-e-type="video" data-w-e-is-void>\n';return 0===o.trim().indexOf("<iframe ")?f+=Z9(o,s,c):f+='<video poster="'+a+'" controls="true" width="'+s+'" height="'+c+'"><source src="'+o+'" type="video/mp4"/></video>',f+"\n</div>"}},tee=Object.keys||function(e){return v9(e,y9)},nee=p8?Object.defineProperties:function(e,t){B7(e);for(var n,r=P8(t),o=tee(t),i=o.length,a=0;i>a;)_7.f(e,n=o[a++],r[n]);return e},ree=L8("document","documentElement"),oee=H7("IE_PROTO"),iee=function(){},aee=function(e){return"<script>"+e+"<\/script>"},uee=function(e){e.write(aee("")),e.close();var t=e.parentWindow.Object;return e=null,t},see=function(){try{J9=new ActiveXObject("htmlfile")}catch(r){}var e,t;see="undefined"!=typeof document?document.domain&&J9?uee(J9):((t=D7("iframe")).style.display="none",ree.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(aee("document.F=Object")),e.close(),e.F):uee(J9);for(var n=y9.length;n--;)delete see.prototype[y9[n]];return see()};V7[oee]=!0;var lee=Object.create||function(e,t){var n;return null!==e?(iee.prototype=B7(e),n=new iee,iee.prototype=null,n[oee]=e):n=see(),void 0===t?n:nee(n,t)},cee=y7("unscopables"),fee=Array.prototype;null==fee[cee]&&_7.f(fee,cee,{configurable:!0,value:lee(null)});var dee=function(e){fee[cee][e]=!0},pee=p9.includes;_9({target:"Array",proto:!0},{includes:function(e){return pee(this,e,arguments.length>1?arguments[1]:void 0)}}),dee("includes");var hee={selector:"iframe,video,p",preParseHtml:function(e){var t=hg(e),n=t;if("p"===Y9(t)){var r=t.children();if(1===r.length){var o=r[0],i=o.tagName.toLowerCase();["iframe","video"].includes(i)&&(n=hg(o))}}var a=Y9(n);if("iframe"!==a&&"video"!==a)return n[0];if("video"===n.parent().attr("data-w-e-type"))return n[0];var u=hg('<div data-w-e-type="video" data-w-e-is-void></div>');return u.append(n),u[0]}},gee=C8(C8.bind),vee=function(e,t){return J8(e),void 0===t?e:gee?gee(e,t):function(){return e.apply(t,arguments)}},yee=Array.isArray||function(e){return"Array"==O8(e)},mee=function(){},bee=[],wee=L8("Reflect","construct"),Eee=/^\s*(?:class|function)\b/,xee=C8(Eee.exec),Dee=!Eee.exec(mee),Cee=function(e){if(!j8(e))return!1;try{return wee(mee,bee,e),!0}catch(t){return!1}},See=!wee||d8((function(){var e;return Cee(Cee.call)||!Cee(Object)||!Cee((function(){e=!0}))||e}))?function(e){if(!j8(e))return!1;switch(R9(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Dee||!!xee(Eee,R7(e))}:Cee,Aee=y7("species"),Oee=f8.Array,kee=function(e,t){return new(yee(n=e)&&(r=n.constructor,(See(r)&&(r===Oee||yee(r.prototype))||I8(r)&&null===(r=r[Aee]))&&(r=void 0)),void 0===r?Oee:r)(0===t?0:t);var n,r},Bee=C8([].push),Fee=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=a7(s),g=F8(h),v=vee(l,c),y=f9(g),m=0,b=f||kee,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:Bee(w,d)}else switch(e){case 4:return!1;case 7:Bee(w,d)}return i?-1:r||o?o:w}},Tee={forEach:Fee(0),map:Fee(1),filter:Fee(2),some:Fee(3),every:Fee(4),find:Fee(5),findIndex:Fee(6),filterReject:Fee(7)},_ee=Tee.find,Pee=!0;"find"in[]&&Array(1).find((function(){Pee=!1})),_9({target:"Array",proto:!0,forced:Pee},{find:function(e){return _ee(this,e,arguments.length>1?arguments[1]:void 0)}}),dee("find");var jee=j9?{}.toString:function(){return"[object "+R9(this)+"]"};function Iee(e,t,n,r){return void 0===t&&(t=""),void 0===n&&(n="auto"),void 0===r&&(r="auto"),{type:"video",src:e,poster:t,width:n,height:r,children:[{text:""}]}}j9||n9(Object.prototype,"toString",jee,{unsafe:!0});var Nee,Lee,Ree={selector:'div[data-w-e-type="video"]',parseElemHtml:function(e,t,n){var r=hg(e),o="",i="",a="auto",u="auto",s=r.find("iframe");if(s.length>0)return a=s.attr("width")||"auto",u=s.attr("height")||"auto",Iee(o=s[0].outerHTML,i,a,u);var l=r.find("video");return(o=l.attr("src")||"")||l.length>0&&(o=l.find("source").attr("src")||""),a=l.attr("width")||"auto",u=l.attr("height")||"auto",Iee(o,i=l.attr("poster")||"",a,u)}},Mee=function(){var e=B7(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},zee=f8.RegExp,$ee=d8((function(){var e=zee("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),Hee=$ee||d8((function(){return!zee("a","y").sticky})),Vee={BROKEN_CARET:$ee||d8((function(){var e=zee("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:Hee,UNSUPPORTED_Y:$ee},Uee=f8.RegExp,Wee=d8((function(){var e=Uee(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Gee=f8.RegExp,qee=d8((function(){var e=Gee("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Kee=Z7.get,Xee=o7("native-string-replace",String.prototype.replace),Yee=RegExp.prototype.exec,Zee=Yee,Jee=C8("".charAt),Qee=C8("".indexOf),ete=C8("".replace),tte=C8("".slice),nte=(Lee=/b*/g,g8(Yee,Nee=/a/,"a"),g8(Yee,Lee,"a"),0!==Nee.lastIndex||0!==Lee.lastIndex),rte=Vee.BROKEN_CARET,ote=void 0!==/()??/.exec("")[1];(nte||ote||rte||Wee||qee)&&(Zee=function(e){var t,n,r,o,i,a,u,s=this,l=Kee(s),c=z9(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=g8(Zee,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=rte&&s.sticky,h=g8(Mee,s),g=s.source,v=0,y=c;if(p&&(h=ete(h,"y",""),-1===Qee(h,"g")&&(h+="g"),y=tte(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==Jee(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),ote&&(n=new RegExp("^"+g+"$(?!\\s)",h)),nte&&(r=s.lastIndex),o=g8(Yee,p?n:s,y),p?o?(o.input=tte(o.input,v),o[0]=tte(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:nte&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),ote&&o&&o.length>1&&g8(Xee,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=lee(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var ite=Zee;_9({target:"RegExp",proto:!0,forced:/./.exec!==ite},{exec:ite});var ate=Function.prototype,ute=ate.apply,ste=ate.bind,lte=ate.call,cte="object"==typeof Reflect&&Reflect.apply||(ste?lte.bind(ute):function(){return lte.apply(ute,arguments)}),fte=(y7("species"),RegExp.prototype),dte=C8("".charAt),pte=C8("".charCodeAt),hte=C8("".slice),gte=function(e){return function(t,n){var r,o,i=z9(_8(t)),a=i9(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=pte(i,a))<55296||r>56319||a+1===u||(o=pte(i,a+1))<56320||o>57343?e?dte(i,a):r:e?hte(i,a,a+2):o-56320+(r-55296<<10)+65536}},vte={codeAt:gte(!1),charAt:gte(!0)},yte=vte.charAt,mte=function(e,t,n){return t+(n?yte(e,t).length:1)},bte=Math.floor,wte=C8("".charAt),Ete=C8("".replace),xte=C8("".slice),Dte=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Cte=/\$([$&'`]|\d{1,2})/g,Ste=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=Cte;return void 0!==o&&(o=a7(o),s=Dte),Ete(i,s,(function(i,s){var l;switch(wte(s,0)){case"$":return"$";case"&":return e;case"`":return xte(t,0,n);case"'":return xte(t,a);case"<":l=o[xte(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=bte(c/10);return 0===f?i:f<=u?void 0===r[f-1]?wte(s,1):r[f-1]+wte(s,1):i}l=r[c-1]}return void 0===l?"":l}))},Ate=f8.TypeError,Ote=function(e,t){var n=e.exec;if(j8(n)){var r=g8(n,e,t);return null!==r&&B7(r),r}if("RegExp"===O8(e))return g8(ite,e,t);throw Ate("RegExp#exec called on incompatible receiver")},kte=y7("replace"),Bte=Math.max,Fte=Math.min,Tte=C8([].concat),_te=C8([].push),Pte=C8("".indexOf),jte=C8("".slice),Ite="$0"==="a".replace(/./,"$0"),Nte=!!/./[kte]&&""===/./[kte]("a","$0");function Lte(e){return void 0===e&&(e="r"),e+"-"+lv()}!function(e,t,n,r){var o,i,a=y7(e),u=!d8((function(){var t={};return t[a]=function(){return 7},7!=""[e](t)})),s=u&&!d8((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[a](""),!e}));if(!u||!s||n){var l=C8(/./[a]),c=(o=""[e],i=Nte?"$":"$0",[function(e,t){var n=_8(this),r=null==e?void 0:Q8(e,kte);return r?g8(r,e,n,t):g8(o,z9(n),e,t)},function(e,t){var n=B7(this),r=z9(e);if("string"==typeof t&&-1===Pte(t,i)&&-1===Pte(t,"$<")){var a=function(e,t,n,r,o){var i=C8(e),a=t.exec;return a===ite||a===fte.exec?u&&!o?{done:!0,value:l(t,n,r)}:{done:!0,value:i(n,t,r)}:{done:!1}}(o,n,r,t);if(a.done)return a.value}var s=j8(t);s||(t=z9(t));var c=n.global;if(c){var f=n.unicode;n.lastIndex=0}for(var d=[];;){var p=Ote(n,r);if(null===p)break;if(_te(d,p),!c)break;""===z9(p[0])&&(n.lastIndex=mte(r,c9(n.lastIndex),f))}for(var h,g="",v=0,y=0;y<d.length;y++){for(var m=z9((p=d[y])[0]),b=Bte(Fte(i9(p.index),r.length),0),w=[],E=1;E<p.length;E++)_te(w,void 0===(h=p[E])?h:String(h));var x=p.groups;if(s){var D=Tte([m],w,b,r);void 0!==x&&_te(D,x);var C=z9(cte(t,void 0,D))}else C=Ste(m,r,b,w,x,t);b>=v&&(g+=jte(r,v,b)+C,v=b+m.length)}return g+jte(r,v)}]);n9(String.prototype,e,c[0]),n9(fte,a,c[1])}}("replace",0,!!d8((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!Ite||Nte);var Rte=f8.Promise,Mte=function(e,t,n){for(var r in t)n9(e,r,t[r],n);return e},zte=f8.String,$te=f8.TypeError,Hte=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=C8(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(n,r){return B7(n),function(e){if("object"==typeof e||j8(e))return e;throw $te("Can't set "+zte(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),Vte=_7.f,Ute=y7("toStringTag"),Wte=function(e,t,n){e&&!s7(e=n?e:e.prototype,Ute)&&Vte(e,Ute,{configurable:!0,value:t})},Gte=y7("species"),qte=f8.TypeError,Kte=function(e,t){if(R8(t,e))return e;throw qte("Incorrect invocation")},Xte={},Yte=y7("iterator"),Zte=Array.prototype,Jte=y7("iterator"),Qte=function(e){if(null!=e)return Q8(e,Jte)||Q8(e,"@@iterator")||Xte[R9(e)]},ene=f8.TypeError,tne=function(e,t,n){var r,o;B7(e);try{if(!(r=Q8(e,"return"))){if("throw"===t)throw n;return n}r=g8(r,e)}catch(i){o=!0,r=i}if("throw"===t)throw n;if(o)throw r;return B7(r),n},nne=f8.TypeError,rne=function(e,t){this.stopped=e,this.result=t},one=rne.prototype,ine=function(e,t,n){var r,o,i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),g=vee(t,f),v=function(e){return r&&tne(r,"normal",e),new rne(!0,e)},y=function(e){return d?(B7(e),h?g(e[0],e[1],v):g(e[0],e[1])):h?g(e,v):g(e)};if(p)r=e;else{if(!(o=Qte(e)))throw nne(Y8(e)+" is not iterable");if(void 0!==(c=o)&&(Xte.Array===c||Zte[Yte]===c)){for(i=0,a=f9(e);a>i;i++)if((u=y(e[i]))&&R8(one,u))return u;return new rne(!1)}r=function(e,t){var n=arguments.length<2?Qte(e):t;if(J8(n))return B7(g8(n,e));throw ene(Y8(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=g8(s,r)).done;){try{u=y(l.value)}catch(m){tne(r,"throw",m)}if("object"==typeof u&&u&&R8(one,u))return u}return new rne(!1)},ane=y7("iterator"),une=!1;try{var sne=0,lne={next:function(){return{done:!!sne++}},return:function(){une=!0}};lne[ane]=function(){return this},Array.from(lne,(function(){throw 2}))}catch(Wme){}var cne,fne,dne,pne,hne=function(e,t){if(!t&&!une)return!1;var n=!1;try{var r={};r[ane]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(o){}return n},gne=f8.TypeError,vne=y7("species"),yne=C8([].slice),mne=/(?:ipad|iphone|ipod).*applewebkit/i.test(M8),bne="process"==O8(f8.process),wne=f8.setImmediate,Ene=f8.clearImmediate,xne=f8.process,Dne=f8.Dispatch,Cne=f8.Function,Sne=f8.MessageChannel,Ane=f8.String,One=0,kne={};try{cne=f8.location}catch(Wme){}var Bne=function(e){if(s7(kne,e)){var t=kne[e];delete kne[e],t()}},Fne=function(e){return function(){Bne(e)}},Tne=function(e){Bne(e.data)},_ne=function(e){f8.postMessage(Ane(e),cne.protocol+"//"+cne.host)};wne&&Ene||(wne=function(e){var t=yne(arguments,1);return kne[++One]=function(){cte(j8(e)?e:Cne(e),void 0,t)},fne(One),One},Ene=function(e){delete kne[e]},bne?fne=function(e){xne.nextTick(Fne(e))}:Dne&&Dne.now?fne=function(e){Dne.now(Fne(e))}:Sne&&!mne?(pne=(dne=new Sne).port2,dne.port1.onmessage=Tne,fne=vee(pne.postMessage,pne)):f8.addEventListener&&j8(f8.postMessage)&&!f8.importScripts&&cne&&"file:"!==cne.protocol&&!d8(_ne)?(fne=_ne,f8.addEventListener("message",Tne,!1)):fne="onreadystatechange"in D7("script")?function(e){ree.appendChild(D7("script")).onreadystatechange=function(){ree.removeChild(this),Bne(e)}}:function(e){setTimeout(Fne(e),0)});var Pne,jne,Ine,Nne,Lne,Rne,Mne,zne,$ne={set:wne,clear:Ene},Hne=/ipad|iphone|ipod/i.test(M8)&&void 0!==f8.Pebble,Vne=/web0s(?!.*chrome)/i.test(M8),Une=A7.f,Wne=$ne.set,Gne=f8.MutationObserver||f8.WebKitMutationObserver,qne=f8.document,Kne=f8.process,Xne=f8.Promise,Yne=Une(f8,"queueMicrotask"),Zne=Yne&&Yne.value;Zne||(Pne=function(){var e,t;for(bne&&(e=Kne.domain)&&e.exit();jne;){t=jne.fn,jne=jne.next;try{t()}catch(n){throw jne?Nne():Ine=void 0,n}}Ine=void 0,e&&e.enter()},mne||bne||Vne||!Gne||!qne?!Hne&&Xne&&Xne.resolve?((Mne=Xne.resolve(void 0)).constructor=Xne,zne=vee(Mne.then,Mne),Nne=function(){zne(Pne)}):bne?Nne=function(){Kne.nextTick(Pne)}:(Wne=vee(Wne,f8),Nne=function(){Wne(Pne)}):(Lne=!0,Rne=qne.createTextNode(""),new Gne(Pne).observe(Rne,{characterData:!0}),Nne=function(){Rne.data=Lne=!Lne}));var Jne,Qne,ere,tre,nre=Zne||function(e){var t={fn:e,next:void 0};Ine&&(Ine.next=t),jne||(jne=t,Nne()),Ine=t},rre=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=J8(t),this.reject=J8(n)},ore={f:function(e){return new rre(e)}},ire=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},are="object"==typeof window,ure=$ne.set,sre=y7("species"),lre="Promise",cre=Z7.getterFor(lre),fre=Z7.set,dre=Z7.getterFor(lre),pre=Rte&&Rte.prototype,hre=Rte,gre=pre,vre=f8.TypeError,yre=f8.document,mre=f8.process,bre=ore.f,wre=bre,Ere=!!(yre&&yre.createEvent&&f8.dispatchEvent),xre=j8(f8.PromiseRejectionEvent),Dre=!1,Cre=F9(lre,(function(){var e=R7(hre),t=e!==String(hre);if(!t&&66===U8)return!0;if(U8>=51&&/native code/.test(e))return!1;var n=new hre((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[sre]=r,!(Dre=n.then((function(){}))instanceof r)||!t&&are&&!xre})),Sre=Cre||!hne((function(e){hre.all(e).catch((function(){}))})),Are=function(e){var t;return!(!I8(e)||!j8(t=e.then))&&t},Ore=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;nre((function(){for(var r=e.value,o=1==e.state,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(2===e.rejection&&Tre(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(vre("Promise-chain cycle")):(u=Are(a))?g8(u,a,f,d):f(a)):d(r)}catch(h){p&&!s&&p.exit(),d(h)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&Bre(e)}))}},kre=function(e,t,n){var r,o;Ere?((r=yre.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),f8.dispatchEvent(r)):r={promise:t,reason:n},!xre&&(o=f8["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=f8.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},Bre=function(e){g8(ure,f8,(function(){var t,n=e.facade,r=e.value;if(Fre(e)&&(t=ire((function(){bne?mre.emit("unhandledRejection",r,n):kre("unhandledrejection",n,r)})),e.rejection=bne||Fre(e)?2:1,t.error))throw t.value}))},Fre=function(e){return 1!==e.rejection&&!e.parent},Tre=function(e){g8(ure,f8,(function(){var t=e.facade;bne?mre.emit("rejectionHandled",t):kre("rejectionhandled",t,e.value)}))},_re=function(e,t,n){return function(r){e(t,r,n)}},Pre=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Ore(e,!0))},jre=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw vre("Promise can't be resolved itself");var r=Are(t);r?nre((function(){var n={done:!1};try{g8(r,t,_re(jre,n,e),_re(Pre,n,e))}catch(o){Pre(n,o,e)}})):(e.value=t,e.state=1,Ore(e,!1))}catch(o){Pre({done:!1},o,e)}}};if(Cre&&(gre=(hre=function(e){Kte(this,gre),J8(e),g8(Jne,this);var t=cre(this);try{e(_re(jre,t),_re(Pre,t))}catch(n){Pre(t,n)}}).prototype,(Jne=function(e){fre(this,{type:lre,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Mte(gre,{then:function(e,t){var n,r,o,i=dre(this),a=i.reactions,u=bre((n=hre,void 0===(o=B7(this).constructor)||null==(r=B7(o)[vne])?n:function(e){if(See(e))return e;throw gne(Y8(e)+" is not a constructor")}(r)));return u.ok=!j8(e)||e,u.fail=j8(t)&&t,u.domain=bne?mre.domain:void 0,i.parent=!0,a[a.length]=u,0!=i.state&&Ore(i,!1),u.promise},catch:function(e){return this.then(void 0,e)}}),Qne=function(){var e=new Jne,t=cre(e);this.promise=e,this.resolve=_re(jre,t),this.reject=_re(Pre,t)},ore.f=bre=function(e){return e===hre||e===ere?new Qne(e):wre(e)},j8(Rte)&&pre!==Object.prototype)){tre=pre.then,Dre||(n9(pre,"then",(function(e,t){var n=this;return new hre((function(e,t){g8(tre,n,e,t)})).then(e,t)}),{unsafe:!0}),n9(pre,"catch",gre.catch,{unsafe:!0}));try{delete pre.constructor}catch(Wme){}Hte&&Hte(pre,gre)}function Ire(e,t,n){return void 0===n&&(n=""),r8(this,void 0,void 0,(function(){var r,o,i,a,u,s,l;return o8(this,(function(c){switch(c.label){case 0:return t?(e.restoreSelection(),r=e.getMenuConfig("insertVideo"),o=r.onInsertedVideo,i=r.checkVideo,a=r.parseVideoSrc,[4,i(t,n)]):[2];case 1:return"string"==typeof(u=c.sent())?(e.alert(u,"error"),[2]):null==u?[2]:[4,a(t)];case 2:return 0!==(s=c.sent()).trim().indexOf("<iframe ")&&(s=s.replace(/</g,"&lt;").replace(/>/g,"&gt;")),l={type:"video",src:s,poster:n,children:[{text:""}]},Promise.resolve().then((function(){Qp.insertNodes(e,l)})),o(l),[2]}}))}))}function Nre(){return Lte("w-e-insert-video")}_9({global:!0,wrap:!0,forced:Cre},{Promise:hre}),Wte(hre,lre,!1),function(e){var t=L8("Promise"),n=_7.f;p8&&t&&!t[Gte]&&n(t,Gte,{configurable:!0,get:function(){return this}})}(),ere=L8(lre),_9({target:lre,stat:!0,forced:Cre},{reject:function(e){var t=bre(this);return g8(t.reject,void 0,e),t.promise}}),_9({target:lre,stat:!0,forced:Cre},{resolve:function(e){return function(e,t){if(B7(e),I8(t)&&t.constructor===e)return t;var n=ore.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),_9({target:lre,stat:!0,forced:Sre},{all:function(e){var t=this,n=bre(t),r=n.resolve,o=n.reject,i=ire((function(){var n=J8(t.resolve),i=[],a=0,u=1;ine(e,(function(e){var s=a++,l=!1;u++,g8(n,t,e).then((function(e){l||(l=!0,i[s]=e,--u||r(i))}),o)})),--u||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=bre(t),r=n.reject,o=ire((function(){var o=J8(t.resolve);ine(e,(function(e){g8(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var Lre=function(){function e(){this.title=Zj("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=Nre(),this.posterInputId=Nre(),this.buttonId=Nre()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!kp.isCollapsed(t)||!!fB.getSelectedElems(e).some((function(t){var n=fB.getNodeType(t);return"pre"===n||"list-item"===n||!!e.isVoid(t)}))},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.posterInputId,i=n.buttonId,a=i8(IP(Zj("videoModule.videoSrc"),r,Zj("videoModule.videoSrcPlaceHolder")),2),u=a[0],s=a[1],l=i8(IP(Zj("videoModule.videoPoster"),o,Zj("videoModule.videoPosterPlaceHolder")),2),c=l[0],f=l[1],d=hg(s),p=hg(f),h=i8(NP(i,Zj("videoModule.ok")),1)[0];if(null==this.$content){var g=hg("<div></div>");g.on("click","#"+i,(function(n){return r8(t,void 0,void 0,(function(){var t,i;return o8(this,(function(a){switch(a.label){case 0:return n.preventDefault(),t=g.find("#"+r).val().trim(),i=g.find("#"+o).val().trim(),[4,Ire(e,t,i)];case 1:return a.sent(),e.hidePanelOrModal(),[2]}}))}))})),this.$content=g}var v=this.$content;return v.empty(),v.append(u),v.append(c),v.append(h),d.val(""),p.val(""),setTimeout((function(){d.focus()})),v[0]},e}(),Rre=C8([].join),Mre=F8!=Object,zre=function(e,t){var n=[].join;return!!n&&d8((function(){n.call(null,",",1)}))}();_9({target:"Array",proto:!0,forced:Mre||!zre},{join:function(e){return Rre(P8(this),void 0===e?",":e)}});var $re,Hre,Vre,Ure=!d8((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Wre=H7("IE_PROTO"),Gre=f8.Object,qre=Gre.prototype,Kre=Ure?Gre.getPrototypeOf:function(e){var t=a7(e);if(s7(t,Wre))return t[Wre];var n=t.constructor;return j8(n)&&t instanceof n?n.prototype:t instanceof Gre?qre:null},Xre=y7("iterator"),Yre=!1;[].keys&&("next"in(Vre=[].keys())?(Hre=Kre(Kre(Vre)))!==Object.prototype&&($re=Hre):Yre=!0);var Zre=null==$re||d8((function(){var e={};return $re[Xre].call(e)!==e}));Zre&&($re={}),j8($re[Xre])||n9($re,Xre,(function(){return this}));var Jre={IteratorPrototype:$re,BUGGY_SAFARI_ITERATORS:Yre},Qre=Jre.IteratorPrototype,eoe=function(){return this},toe=t9.PROPER,noe=t9.CONFIGURABLE,roe=Jre.IteratorPrototype,ooe=Jre.BUGGY_SAFARI_ITERATORS,ioe=y7("iterator"),aoe=function(){return this},uoe=function(e,t,n,r,o,i,a){var u,s,l;s=r,l=t+" Iterator",(u=n).prototype=lee(Qre,{next:b8(1,s)}),Wte(u,l,!1),Xte[l]=eoe;var c,f,d,p=function(e){if(e===o&&m)return m;if(!ooe&&e in v)return v[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},h=t+" Iterator",g=!1,v=e.prototype,y=v[ioe]||v["@@iterator"]||o&&v[o],m=!ooe&&y||p(o),b="Array"==t&&v.entries||y;if(b&&(c=Kre(b.call(new e)))!==Object.prototype&&c.next&&(Kre(c)!==roe&&(Hte?Hte(c,roe):j8(c[ioe])||n9(c,ioe,aoe)),Wte(c,h,!0)),toe&&"values"==o&&y&&"values"!==y.name&&(noe?P7(v,"name","values"):(g=!0,m=function(){return g8(y,this)})),o)if(f={values:p("values"),keys:i?m:p("keys"),entries:p("entries")},a)for(d in f)(ooe||g||!(d in v))&&n9(v,d,f[d]);else _9({target:t,proto:!0,forced:ooe||g},f);return v[ioe]!==m&&n9(v,ioe,m,{name:o}),Xte[t]=m,f},soe=Z7.set,loe=Z7.getterFor("Array Iterator"),coe=uoe(Array,"Array",(function(e,t){soe(this,{type:"Array Iterator",target:P8(e),index:0,kind:t})}),(function(){var e=loe(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");Xte.Arguments=Xte.Array,dee("keys"),dee("values"),dee("entries");var foe=vte.charAt,doe=Z7.set,poe=Z7.getterFor("String Iterator");uoe(String,"String",(function(e){doe(this,{type:"String Iterator",string:z9(e),index:0})}),(function(){var e,t=poe(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=foe(n,r),t.index+=e.length,{value:e,done:!1})}));var hoe=function(e,t,n){var r=w7(t);r in e?_7.f(e,r,b8(0,n)):e[r]=n},goe=f8.Array,voe=Math.max,yoe=b9.f,moe="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],boe={f:function(e){return moe&&"Window"==O8(e)?function(e){try{return yoe(e)}catch(t){return function(e,t,n){for(var r=f9(e),o=s9(void 0,r),i=s9(r,r),a=goe(voe(i-o,0)),u=0;o<i;o++,u++)hoe(a,u,e[o]);return a.length=u,a}(moe)}}(e):yoe(P8(e))}},woe=d8((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),Eoe=Object.isExtensible,xoe=d8((function(){Eoe(1)}))||woe?function(e){return!!I8(e)&&(!woe||"ArrayBuffer"!=O8(e))&&(!Eoe||Eoe(e))}:Eoe,Doe=!d8((function(){return Object.isExtensible(Object.preventExtensions({}))})),Coe=u8((function(e){var t=_7.f,n=!1,r=d7("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=b9.f,t=C8([].splice),o={};o[r]=1,e(o).length&&(b9.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t(o,i,1);break}return o},_9({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:boe.f}))},fastKey:function(e,t){if(!I8(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!s7(e,r)){if(!xoe(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!s7(e,r)){if(!xoe(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return Doe&&n&&xoe(e)&&!s7(e,r)&&i(e),e}};V7[r]=!0})),Soe=Coe.getWeakData,Aoe=Z7.set,Ooe=Z7.getterFor,koe=Tee.find,Boe=Tee.findIndex,Foe=C8([].splice),Toe=0,_oe=function(e){return e.frozen||(e.frozen=new Poe)},Poe=function(){this.entries=[]},joe=function(e,t){return koe(e.entries,(function(e){return e[0]===t}))};Poe.prototype={get:function(e){var t=joe(this,e);if(t)return t[1]},has:function(e){return!!joe(this,e)},set:function(e,t){var n=joe(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=Boe(this.entries,(function(t){return t[0]===e}));return~t&&Foe(this.entries,t,1),!!~t}};var Ioe,Noe={getConstructor:function(e,t,n,r){var o=e((function(e,o){Kte(e,i),Aoe(e,{type:t,id:Toe++,frozen:void 0}),null!=o&&ine(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=Ooe(t),u=function(e,t,n){var r=a(e),o=Soe(B7(t),!0);return!0===o?_oe(r).set(t,n):o[r.id]=n,e};return Mte(i,{delete:function(e){var t=a(this);if(!I8(e))return!1;var n=Soe(e);return!0===n?_oe(t).delete(e):n&&s7(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!I8(e))return!1;var n=Soe(e);return!0===n?_oe(t).has(e):n&&s7(n,t.id)}}),Mte(i,n?{get:function(e){var t=a(this);if(I8(e)){var n=Soe(e);return!0===n?_oe(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},Loe=Z7.enforce,Roe=!f8.ActiveXObject&&"ActiveXObject"in f8,Moe=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},zoe=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=f8[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=C8(u[e]);n9(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!I8(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!I8(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!I8(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(F9(e,!j8(a)||!(o||u.forEach&&!d8((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),Coe.enable();else if(F9(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=d8((function(){f.has(1)})),h=hne((function(e){new a(e)})),g=!o&&d8((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){Kte(e,u);var n,o,l,c,f,d=(n=new a,o=e,l=s,Hte&&j8(c=o.constructor)&&c!==l&&I8(f=c.prototype)&&f!==l.prototype&&Hte(n,f),n);return null!=t&&ine(t,d[i],{that:d,AS_ENTRIES:r}),d}))).prototype=u,u.constructor=s),(p||g)&&(c("delete"),c("has"),r&&c("get")),(g||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,_9({global:!0,forced:s!=a},l),Wte(s,e),o||n.setStrong(s,e,r),s}("WeakMap",Moe,Noe);if(z7&&Roe){Ioe=Noe.getConstructor(Moe,"WeakMap",!0),Coe.enable();var $oe=zoe.prototype,Hoe=C8($oe.delete),Voe=C8($oe.has),Uoe=C8($oe.get),Woe=C8($oe.set);Mte($oe,{delete:function(e){if(I8(e)&&!xoe(e)){var t=Loe(this);return t.frozen||(t.frozen=new Ioe),Hoe(this,e)||t.frozen.delete(e)}return Hoe(this,e)},has:function(e){if(I8(e)&&!xoe(e)){var t=Loe(this);return t.frozen||(t.frozen=new Ioe),Voe(this,e)||t.frozen.has(e)}return Voe(this,e)},get:function(e){if(I8(e)&&!xoe(e)){var t=Loe(this);return t.frozen||(t.frozen=new Ioe),Voe(this,e)?Uoe(this,e):t.frozen.get(e)}return Uoe(this,e)},set:function(e,t){if(I8(e)&&!xoe(e)){var n=Loe(this);n.frozen||(n.frozen=new Ioe),Voe(this,e)?Woe(this,e,t):n.frozen.set(e,t)}else Woe(this,e,t);return this}})}var Goe={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},qoe=D7("span").classList,Koe=qoe&&qoe.constructor&&qoe.constructor.prototype,Xoe=Koe===Object.prototype?void 0:Koe,Yoe=y7("iterator"),Zoe=y7("toStringTag"),Joe=coe.values,Qoe=function(e,t){if(e){if(e[Yoe]!==Joe)try{P7(e,Yoe,Joe)}catch(r){e[Yoe]=Joe}if(e[Zoe]||P7(e,Zoe,t),Goe[t])for(var n in coe)if(e[n]!==coe[n])try{P7(e,n,coe[n])}catch(r){e[n]=coe[n]}}};for(var eie in Goe)Qoe(f8[eie]&&f8[eie].prototype,eie);Qoe(Xoe,"DOMTokenList");var tie=t9.EXISTS,nie=_7.f,rie=Function.prototype,oie=C8(rie.toString),iie=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,aie=C8(iie.exec);p8&&!tie&&nie(rie,"name",{configurable:!0,get:function(){try{return aie(iie,oie(this))[1]}catch(pf){return""}}});var uie=y7("species"),sie=U8>=51||!d8((function(){var e=[];return(e.constructor={})[uie]=function(){return{foo:1}},1!==e.slice(Boolean).foo})),lie=y7("species"),cie=f8.Array,fie=Math.max;function die(e){return e.getMenuConfig("uploadVideo")}_9({target:"Array",proto:!0,forced:!sie},{slice:function(e,t){var n,r,o,i=P8(this),a=f9(i),u=s9(e,a),s=s9(void 0===t?a:t,a);if(yee(i)&&(n=i.constructor,(See(n)&&(n===cie||yee(n.prototype))||I8(n)&&null===(n=n[lie]))&&(n=void 0),n===cie||void 0===n))return yne(i,u,s);for(r=new(void 0===n?cie:n)(fie(s-u,0)),o=0;u<s;u++,o++)u in i&&hoe(r,o,i[u]);return r.length=o,r}});var pie=new WeakMap;function hie(e,t){return r8(this,void 0,void 0,(function(){var n,r,o,i;return o8(this,(function(a){switch(a.label){case 0:return n=function(e){var t=pie.get(e);if(null!=t)return t;var n=die(e),r=n.onSuccess,o=n.onProgress,i=n.onFailed,a=n.customInsert,u=n.onError;return t=ij(n8(n8({},n),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,n){if(a)return a(n,(function(t,n){return Ire(e,t,n)})),void r(t,n);var o=n.errno,u=void 0===o?1:o,s=n.data,l=void 0===s?{}:s;if(0===u){var c=l.url,f=void 0===c?"":c,d=l.poster;Ire(e,f,void 0===d?"":d),r(t,n)}else i(t,n)},onError:function(e,t,n){u(e,t,n)}})),pie.set(e,t),t}(e),r=t.name,o=t.type,i=t.size,n.addFile({name:r,type:o,size:i,data:t}),[4,n.upload()];case 1:return a.sent(),[2]}}))}))}var gie=function(){function e(){this.title=Zj("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 e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){var n=this.getMenuConfig(e),r=n.allowedFileTypes,o=void 0===r?[]:r,i=n.customBrowseAndUpload;if(i)i((function(t,n){return Ire(e,t,n)}));else{var a="";o.length>0&&(a='accept="'+o.join(", ")+'"');var u=hg("body"),s=hg('<input type="file" '+a+" multiple/>");s.hide(),u.append(s),s.click(),s.on("change",(function(){var t=s[0].files;!function(e,t){var n,r;r8(this,void 0,void 0,(function(){var o,i,a,u,s,l;return o8(this,(function(c){switch(c.label){case 0:if(null==t)return[2];o=Array.prototype.slice.call(t),i=die(e).customUpload,c.label=1;case 1:c.trys.push([1,9,10,15]),a=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){var i,a,u,s;i=r,a=o,u=(t=e[n](t)).done,s=t.value,Promise.resolve(s).then((function(e){i({value:e,done:u})}),a)}))}}}(o),c.label=2;case 2:return[4,a.next()];case 3:return(u=c.sent()).done?[3,8]:(s=u.value,i?[4,i(s,(function(t,n){return Ire(e,t,n)}))]:[3,5]);case 4:return c.sent(),[3,7];case 5:return[4,hie(e,s)];case 6:c.sent(),c.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return l=c.sent(),n={error:l},[3,15];case 10:return c.trys.push([10,,13,14]),u&&!u.done&&(r=a.return)?[4,r.call(a)]:[3,12];case 11:c.sent(),c.label=12;case 12:return[3,14];case 13:if(n)throw n.error;return[7];case 14:return[7];case 15:return[2]}}))}))}(e,t)}))}},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!kp.isCollapsed(t)||!!fB.getSelectedElems(e).some((function(t){var n=fB.getNodeType(t);return"pre"===n||"list-item"===n||!!e.isVoid(t)}))},e.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadVideo")},e}(),vie=t9.PROPER,yie=RegExp.prototype,mie=yie.toString,bie=C8(Mee),wie=d8((function(){return"/a/b"!=mie.call({source:"a",flags:"b"})})),Eie=vie&&"toString"!=mie.name;function xie(){return Lte("w-e-insert-video")}(wie||Eie)&&n9(RegExp.prototype,"toString",(function(){var e=B7(this),t=z9(e.source),n=e.flags;return"/"+t+"/"+z9(void 0===n&&R8(yie,e)&&!("flags"in yie)?bie(e):n)}),{unsafe:!0});var Die=function(){function e(){this.title=Zj("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=xie(),this.heightInputId=xie(),this.buttonId=xie()}return e.prototype.getSelectedVideoNode=function(e){return fB.getSelectedNodeByType(e,"video")},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedVideoNode(e)},e.prototype.getModalPositionNode=function(e){return this.getSelectedVideoNode(e)},e.prototype.getModalContentElem=function(e){var t=this,n=t.widthInputId,r=t.heightInputId,o=t.buttonId,i=i8(IP(Zj("videoModule.width"),n,"auto"),2),a=i[0],u=hg(i[1]),s=i8(IP(Zj("videoModule.height"),r,"auto"),2),l=s[0],c=hg(s[1]),f=i8(NP(o,Zj("videoModule.ok")),1)[0];if(null==this.$content){var d=hg("<div></div>");d.on("click","#"+o,(function(t){t.preventDefault();var o=d.find("#"+n).val().trim(),i=d.find("#"+r).val().trim(),a=parseInt(o),u=parseInt(i),s=a?a.toString():"auto",l=u?u.toString():"auto";e.restoreSelection(),Qp.setNodes(e,{width:s,height:l},{match:function(e){return fB.checkNodeType(e,"video")}}),e.hidePanelOrModal()})),this.$content=d}var p=this.$content;p.empty(),p.append(a),p.append(l),p.append(f);var h=this.getSelectedVideoNode(e);if(null==h)return p[0];var g=h.width,v=void 0===g?"auto":g,y=h.height,m=void 0===y?"auto":y;return u.val(v),c.val(m),setTimeout((function(){u.focus()})),p[0]},e}(),Cie={renderElems:[Q9],elemsToHtml:[eee],preParseHtml:[hee],parseElemsHtml:[Ree],menus:[{key:"insertVideo",factory:function(){return new Lre},config:{onInsertedVideo:function(e){},checkVideo:function(e,t){return!0},parseVideoSrc:function(e){return e}}},{key:"uploadVideo",factory:function(){return new gie},config:{server:"",fieldName:"wangeditor-uploaded-video",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["video/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){console.error("'"+e.name+"' upload failed",t)},onError:function(e,t,n){console.error("'"+e.name+" upload error",t,n)}}},{key:"editVideoSize",factory:function(){return new Die}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(e){return"video"===e.type||t(e)},r.normalizeNode=function(e){var t=i8(e,2),o=t[0],i=t[1];return"video"===fB.getNodeType(o)&&fB.isLastNode(r,o)&&Qp.insertNodes(r,fB.genEmptyParagraph(),{at:[i[0]+1]}),n([o,i])},r}};Yj("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),Yj("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});var Sie="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Aie(e){var t={exports:{}};return e(t,t.exports),t.exports}var Oie,kie,Bie=function(e){return e&&e.Math==Math&&e},Fie=Bie("object"==typeof globalThis&&globalThis)||Bie("object"==typeof window&&window)||Bie("object"==typeof self&&self)||Bie("object"==typeof Sie&&Sie)||function(){return this}()||Function("return this")(),Tie=function(e){try{return!!e()}catch(t){return!0}},_ie=!Tie((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Pie=Function.prototype.call,jie=Pie.bind?Pie.bind(Pie):function(){return Pie.apply(Pie,arguments)},Iie={}.propertyIsEnumerable,Nie=Object.getOwnPropertyDescriptor,Lie={f:Nie&&!Iie.call({1:2},1)?function(e){var t=Nie(this,e);return!!t&&t.enumerable}:Iie},Rie=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Mie=Function.prototype,zie=Mie.bind,$ie=Mie.call,Hie=zie&&zie.bind($ie),Vie=zie?function(e){return e&&Hie($ie,e)}:function(e){return e&&function(){return $ie.apply(e,arguments)}},Uie=Vie({}.toString),Wie=Vie("".slice),Gie=function(e){return Wie(Uie(e),8,-1)},qie=Fie.Object,Kie=Vie("".split),Xie=Tie((function(){return!qie("z").propertyIsEnumerable(0)}))?function(e){return"String"==Gie(e)?Kie(e,""):qie(e)}:qie,Yie=Fie.TypeError,Zie=function(e){if(null==e)throw Yie("Can't call method on "+e);return e},Jie=function(e){return Xie(Zie(e))},Qie=function(e){return"function"==typeof e},eae=function(e){return"object"==typeof e?null!==e:Qie(e)},tae=function(e){return Qie(e)?e:void 0},nae=function(e,t){return arguments.length<2?tae(Fie[e]):Fie[e]&&Fie[e][t]},rae=Vie({}.isPrototypeOf),oae=nae("navigator","userAgent")||"",iae=Fie.process,aae=Fie.Deno,uae=iae&&iae.versions||aae&&aae.version,sae=uae&&uae.v8;sae&&(kie=(Oie=sae.split("."))[0]>0&&Oie[0]<4?1:+(Oie[0]+Oie[1])),!kie&&oae&&(!(Oie=oae.match(/Edge\/(\d+)/))||Oie[1]>=74)&&(Oie=oae.match(/Chrome\/(\d+)/))&&(kie=+Oie[1]);var lae=kie,cae=!!Object.getOwnPropertySymbols&&!Tie((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&lae&&lae<41})),fae=cae&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,dae=Fie.Object,pae=fae?function(e){return"symbol"==typeof e}:function(e){var t=nae("Symbol");return Qie(t)&&rae(t.prototype,dae(e))},hae=Fie.String,gae=function(e){try{return hae(e)}catch(t){return"Object"}},vae=Fie.TypeError,yae=function(e){if(Qie(e))return e;throw vae(gae(e)+" is not a function")},mae=function(e,t){var n=e[t];return null==n?void 0:yae(n)},bae=Fie.TypeError,wae=Object.defineProperty,Eae=function(e,t){try{wae(Fie,e,{value:t,configurable:!0,writable:!0})}catch(Qj){Fie[e]=t}return t},xae=Fie["__core-js_shared__"]||Eae("__core-js_shared__",{}),Dae=Aie((function(e){(e.exports=function(e,t){return xae[e]||(xae[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Cae=Fie.Object,Sae=function(e){return Cae(Zie(e))},Aae=Vie({}.hasOwnProperty),Oae=Object.hasOwn||function(e,t){return Aae(Sae(e),t)},kae=0,Bae=Math.random(),Fae=Vie(1..toString),Tae=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Fae(++kae+Bae,36)},_ae=Dae("wks"),Pae=Fie.Symbol,jae=Pae&&Pae.for,Iae=fae?Pae:Pae&&Pae.withoutSetter||Tae,Nae=function(e){if(!Oae(_ae,e)||!cae&&"string"!=typeof _ae[e]){var t="Symbol."+e;cae&&Oae(Pae,e)?_ae[e]=Pae[e]:_ae[e]=fae&&jae?jae(t):Iae(t)}return _ae[e]},Lae=Fie.TypeError,Rae=Nae("toPrimitive"),Mae=function(e){var t=function(e,t){if(!eae(e)||pae(e))return e;var n,r=mae(e,Rae);if(r){if(void 0===t&&(t="default"),n=jie(r,e,t),!eae(n)||pae(n))return n;throw Lae("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&Qie(n=e.toString)&&!eae(r=jie(n,e)))return r;if(Qie(n=e.valueOf)&&!eae(r=jie(n,e)))return r;if("string"!==t&&Qie(n=e.toString)&&!eae(r=jie(n,e)))return r;throw bae("Can't convert object to primitive value")}(e,t)}(e,"string");return pae(t)?t:t+""},zae=Fie.document,$ae=eae(zae)&&eae(zae.createElement),Hae=function(e){return $ae?zae.createElement(e):{}},Vae=!_ie&&!Tie((function(){return 7!=Object.defineProperty(Hae("div"),"a",{get:function(){return 7}}).a})),Uae=Object.getOwnPropertyDescriptor,Wae={f:_ie?Uae:function(e,t){if(e=Jie(e),t=Mae(t),Vae)try{return Uae(e,t)}catch(n){}if(Oae(e,t))return Rie(!jie(Lie.f,e,t),e[t])}},Gae=Fie.String,qae=Fie.TypeError,Kae=function(e){if(eae(e))return e;throw qae(Gae(e)+" is not an object")},Xae=Fie.TypeError,Yae=Object.defineProperty,Zae={f:_ie?Yae:function(e,t,n){if(Kae(e),t=Mae(t),Kae(n),Vae)try{return Yae(e,t,n)}catch(r){}if("get"in n||"set"in n)throw Xae("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Jae=_ie?function(e,t,n){return Zae.f(e,t,Rie(1,n))}:function(e,t,n){return e[t]=n,e},Qae=Vie(Function.toString);Qie(xae.inspectSource)||(xae.inspectSource=function(e){return Qae(e)});var eue,tue,nue,rue=xae.inspectSource,oue=Fie.WeakMap,iue=Qie(oue)&&/native code/.test(rue(oue)),aue=Dae("keys"),uue=function(e){return aue[e]||(aue[e]=Tae(e))},sue={},lue=Fie.TypeError,cue=Fie.WeakMap;if(iue||xae.state){var fue=xae.state||(xae.state=new cue),due=Vie(fue.get),pue=Vie(fue.has),hue=Vie(fue.set);eue=function(e,t){if(pue(fue,e))throw new lue("Object already initialized");return t.facade=e,hue(fue,e,t),t},tue=function(e){return due(fue,e)||{}},nue=function(e){return pue(fue,e)}}else{var gue=uue("state");sue[gue]=!0,eue=function(e,t){if(Oae(e,gue))throw new lue("Object already initialized");return t.facade=e,Jae(e,gue,t),t},tue=function(e){return Oae(e,gue)?e[gue]:{}},nue=function(e){return Oae(e,gue)}}var vue={set:eue,get:tue,has:nue,enforce:function(e){return nue(e)?tue(e):eue(e,{})},getterFor:function(e){return function(t){var n;if(!eae(t)||(n=tue(t)).type!==e)throw lue("Incompatible receiver, "+e+" required");return n}}},yue=Function.prototype,mue=_ie&&Object.getOwnPropertyDescriptor,bue=Oae(yue,"name"),wue={EXISTS:bue,PROPER:bue&&"something"===function(){}.name,CONFIGURABLE:bue&&(!_ie||_ie&&mue(yue,"name").configurable)},Eue=Aie((function(e){var t=wue.CONFIGURABLE,n=vue.get,r=vue.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;Qie(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Oae(i,"name")||t&&i.name!==f)&&Jae(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==Fie?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:Jae(e,n,i)):l?e[n]=i:Eae(n,i)})(Function.prototype,"toString",(function(){return Qie(this)&&n(this).source||rue(this)}))})),xue=Math.ceil,Due=Math.floor,Cue=function(e){var t=+e;return t!=t||0===t?0:(t>0?Due:xue)(t)},Sue=Math.max,Aue=Math.min,Oue=function(e,t){var n=Cue(e);return n<0?Sue(n+t,0):Aue(n,t)},kue=Math.min,Bue=function(e){return e>0?kue(Cue(e),9007199254740991):0},Fue=function(e){return Bue(e.length)},Tue=function(e){return function(t,n,r){var o,i=Jie(t),a=Fue(i),u=Oue(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}}(!1),_ue=Vie([].push),Pue=function(e,t){var n,r=Jie(e),o=0,i=[];for(n in r)!Oae(sue,n)&&Oae(r,n)&&_ue(i,n);for(;t.length>o;)Oae(r,n=t[o++])&&(~Tue(i,n)||_ue(i,n));return i},jue=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Iue=jue.concat("length","prototype"),Nue={f:Object.getOwnPropertyNames||function(e){return Pue(e,Iue)}},Lue={f:Object.getOwnPropertySymbols},Rue=Vie([].concat),Mue=nae("Reflect","ownKeys")||function(e){var t=Nue.f(Kae(e)),n=Lue.f;return n?Rue(t,n(e)):t},zue=function(e,t){for(var n=Mue(t),r=Zae.f,o=Wae.f,i=0;i<n.length;i++){var a=n[i];Oae(e,a)||r(e,a,o(t,a))}},$ue=/#|\.prototype\./,Hue=function(e,t){var n=Uue[Vue(e)];return n==Gue||n!=Wue&&(Qie(t)?Tie(t):!!t)},Vue=Hue.normalize=function(e){return String(e).replace($ue,".").toLowerCase()},Uue=Hue.data={},Wue=Hue.NATIVE="N",Gue=Hue.POLYFILL="P",que=Hue,Kue=Wae.f,Xue=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?Fie:l?Fie[u]||Eae(u,{}):(Fie[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Kue(n,r))&&a.value:n[r],!que(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;zue(i,o)}(e.sham||o&&o.sham)&&Jae(i,"sham",!0),Eue(n,r,i,e)}},Yue=Array.isArray||function(e){return"Array"==Gie(e)},Zue={};Zue[Nae("toStringTag")]="z";var Jue="[object z]"===String(Zue),Que=Nae("toStringTag"),ese=Fie.Object,tse="Arguments"==Gie(function(){return arguments}()),nse=Jue?Gie:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=ese(e),Que))?n:tse?Gie(t):"Object"==(r=Gie(t))&&Qie(t.callee)?"Arguments":r},rse=function(){},ose=[],ise=nae("Reflect","construct"),ase=/^\s*(?:class|function)\b/,use=Vie(ase.exec),sse=!ase.exec(rse),lse=function(e){if(!Qie(e))return!1;try{return ise(rse,ose,e),!0}catch(t){return!1}},cse=!ise||Tie((function(){var e;return lse(lse.call)||!lse(Object)||!lse((function(){e=!0}))||e}))?function(e){if(!Qie(e))return!1;switch(nse(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return sse||!!use(ase,rue(e))}:lse,fse=function(e,t,n){var r=Mae(t);r in e?Zae.f(e,r,Rie(0,n)):e[r]=n},dse=Nae("species"),pse=Vie([].slice),hse=lae>=51||!Tie((function(){var e=[];return(e.constructor={})[dse]=function(){return{foo:1}},1!==e.slice(Boolean).foo})),gse=Nae("species"),vse=Fie.Array,yse=Math.max;Xue({target:"Array",proto:!0,forced:!hse},{slice:function(e,t){var n,r,o,i=Jie(this),a=Fue(i),u=Oue(e,a),s=Oue(void 0===t?a:t,a);if(Yue(i)&&(n=i.constructor,(cse(n)&&(n===vse||Yue(n.prototype))||eae(n)&&null===(n=n[gse]))&&(n=void 0),n===vse||void 0===n))return pse(i,u,s);for(r=new(void 0===n?vse:n)(yse(s-u,0)),o=0;u<s;u++,o++)u in i&&fse(r,o,i[u]);return r.length=o,r}});var mse=Jue?{}.toString:function(){return"[object "+nse(this)+"]"};Jue||Eue(Object.prototype,"toString",mse,{unsafe:!0});var bse,wse=Fie.String,Ese=function(e){if("Symbol"===nse(e))throw TypeError("Cannot convert a Symbol value to a string");return wse(e)},xse=function(){var e=Kae(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},Dse=Fie.RegExp,Cse=Tie((function(){var e=Dse("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),Sse=Cse||Tie((function(){return!Dse("a","y").sticky})),Ase={BROKEN_CARET:Cse||Tie((function(){var e=Dse("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:Sse,UNSUPPORTED_Y:Cse},Ose=Object.keys||function(e){return Pue(e,jue)},kse=_ie?Object.defineProperties:function(e,t){Kae(e);for(var n,r=Jie(t),o=Ose(t),i=o.length,a=0;i>a;)Zae.f(e,n=o[a++],r[n]);return e},Bse=nae("document","documentElement"),Fse=uue("IE_PROTO"),Tse=function(){},_se=function(e){return"<script>"+e+"<\/script>"},Pse=function(e){e.write(_se("")),e.close();var t=e.parentWindow.Object;return e=null,t},jse=function(){try{bse=new ActiveXObject("htmlfile")}catch(r){}var e,t;jse="undefined"!=typeof document?document.domain&&bse?Pse(bse):((t=Hae("iframe")).style.display="none",Bse.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(_se("document.F=Object")),e.close(),e.F):Pse(bse);for(var n=jue.length;n--;)delete jse.prototype[jue[n]];return jse()};sue[Fse]=!0;var Ise,Nse,Lse=Object.create||function(e,t){var n;return null!==e?(Tse.prototype=Kae(e),n=new Tse,Tse.prototype=null,n[Fse]=e):n=jse(),void 0===t?n:kse(n,t)},Rse=Fie.RegExp,Mse=Tie((function(){var e=Rse(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),zse=Fie.RegExp,$se=Tie((function(){var e=zse("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Hse=vue.get,Vse=Dae("native-string-replace",String.prototype.replace),Use=RegExp.prototype.exec,Wse=Use,Gse=Vie("".charAt),qse=Vie("".indexOf),Kse=Vie("".replace),Xse=Vie("".slice),Yse=(Nse=/b*/g,jie(Use,Ise=/a/,"a"),jie(Use,Nse,"a"),0!==Ise.lastIndex||0!==Nse.lastIndex),Zse=Ase.BROKEN_CARET,Jse=void 0!==/()??/.exec("")[1];(Yse||Jse||Zse||Mse||$se)&&(Wse=function(e){var t,n,r,o,i,a,u,s=this,l=Hse(s),c=Ese(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=jie(Wse,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=Zse&&s.sticky,h=jie(xse,s),g=s.source,v=0,y=c;if(p&&(h=Kse(h,"y",""),-1===qse(h,"g")&&(h+="g"),y=Xse(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==Gse(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),Jse&&(n=new RegExp("^"+g+"$(?!\\s)",h)),Yse&&(r=s.lastIndex),o=jie(Use,p?n:s,y),p?o?(o.input=Xse(o.input,v),o[0]=Xse(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Yse&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Jse&&o&&o.length>1&&jie(Vse,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=Lse(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Qse=Wse;Xue({target:"RegExp",proto:!0,forced:/./.exec!==Qse},{exec:Qse});var ele=Function.prototype,tle=ele.apply,nle=ele.bind,rle=ele.call,ole="object"==typeof Reflect&&Reflect.apply||(nle?rle.bind(tle):function(){return rle.apply(tle,arguments)}),ile=Nae("species"),ale=RegExp.prototype,ule=Nae("match"),sle=Fie.TypeError,lle=Nae("species"),cle=function(e,t){var n,r=Kae(e).constructor;return void 0===r||null==(n=Kae(r)[lle])?t:function(e){if(cse(e))return e;throw sle(gae(e)+" is not a constructor")}(n)},fle=Vie("".charAt),dle=Vie("".charCodeAt),ple=Vie("".slice),hle=function(e){return function(t,n){var r,o,i=Ese(Zie(t)),a=Cue(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=dle(i,a))<55296||r>56319||a+1===u||(o=dle(i,a+1))<56320||o>57343?e?fle(i,a):r:e?ple(i,a,a+2):o-56320+(r-55296<<10)+65536}},gle={codeAt:hle(!1),charAt:hle(!0)},vle=gle.charAt,yle=function(e,t,n){return t+(n?vle(e,t).length:1)},mle=Fie.Array,ble=Math.max,wle=function(e,t,n){for(var r=Fue(e),o=Oue(t,r),i=Oue(void 0===n?r:n,r),a=mle(ble(i-o,0)),u=0;o<i;o++,u++)fse(a,u,e[o]);return a.length=u,a},Ele=Fie.TypeError,xle=function(e,t){var n=e.exec;if(Qie(n)){var r=jie(n,e,t);return null!==r&&Kae(r),r}if("RegExp"===Gie(e))return jie(Qse,e,t);throw Ele("RegExp#exec called on incompatible receiver")},Dle=Ase.UNSUPPORTED_Y,Cle=Math.min,Sle=[].push,Ale=Vie(/./.exec),Ole=Vie(Sle),kle=Vie("".slice);!function(e,t,n,r){var o,i,a,u=Nae(e),s=!Tie((function(){var t={};return t[u]=function(){return 7},7!=""[e](t)})),l=s&&!Tie((function(){var e=!1,t=/a/;return(t={}).constructor={},t.constructor[ile]=function(){return t},t.flags="",t[u]=/./[u],t.exec=function(){return e=!0,null},t[u](""),!e}));if(!s||!l||n){var c=Vie(/./[u]),f=(o=u,i=""[e],a="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,t){var n,r,o=Ese(Zie(this)),a=void 0===t?4294967295:t>>>0;if(0===a)return[];if(void 0===e)return[o];if(!eae(n=e)||!(void 0!==(r=n[ule])?r:"RegExp"==Gie(n)))return jie(i,o,e,a);for(var u,s,l,c=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,p=new RegExp(e.source,f+"g");(u=jie(Qse,p,o))&&!((s=p.lastIndex)>d&&(Ole(c,kle(o,d,u.index)),u.length>1&&u.index<o.length&&ole(Sle,c,wle(u,1)),l=u[0].length,d=s,c.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return d===o.length?!l&&Ale(p,"")||Ole(c,""):Ole(c,kle(o,d)),c.length>a?wle(c,0,a):c}:"0".split(void 0,0).length?function(e,t){return void 0===e&&0===t?[]:jie(i,this,e,t)}:i,[function(e,t){var n=Zie(this),r=null==e?void 0:mae(e,o);return r?jie(r,e,n,t):jie(a,Ese(n),e,t)},function(e,t){var n=Kae(this),r=Ese(e),o=function(e,t,n,r,o){var i=Vie(e),a=t.exec;return a===Qse||a===ale.exec?s&&!o?{done:!0,value:c(t,n,r)}:{done:!0,value:i(n,t,r)}:{done:!1}}(a,n,r,t,a!==i);if(o.done)return o.value;var u=cle(n,RegExp),l=n.unicode,f=(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.unicode?"u":"")+(Dle?"g":"y"),d=new u(Dle?"^(?:"+n.source+")":n,f),p=void 0===t?4294967295:t>>>0;if(0===p)return[];if(0===r.length)return null===xle(d,r)?[r]:[];for(var h=0,g=0,v=[];g<r.length;){d.lastIndex=Dle?0:g;var y,m=xle(d,Dle?kle(r,g):r);if(null===m||(y=Cle(Bue(d.lastIndex+(Dle?g:0)),r.length))===h)g=yle(r,g,l);else{if(Ole(v,kle(r,h,g)),v.length===p)return v;for(var b=1;b<=m.length-1;b++)if(Ole(v,m[b]),v.length===p)return v;g=h=y}}return Ole(v,kle(r,h)),v}]);Eue(String.prototype,e,f[0]),Eue(ale,u,f[1])}r&&Jae(ale[u],"sham",!0)}("split",0,!!Tie((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),Dle);
  75. /*! *****************************************************************************
  76. Copyright (c) Microsoft Corporation.
  77. Permission to use, copy, modify, and/or distribute this software for any
  78. purpose with or without fee is hereby granted.
  79. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  80. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  81. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  82. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  83. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  84. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  85. PERFORMANCE OF THIS SOFTWARE.
  86. ***************************************************************************** */
  87. var Ble=function(){return Ble=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ble.apply(this,arguments)};function Fle(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(t){i(t)}}function u(e){try{s(r.throw(e))}catch(t){i(t)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))}function Tle(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(u){i=[6,u],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}var _le=Nae("unscopables"),Ple=Array.prototype;null==Ple[_le]&&Zae.f(Ple,_le,{configurable:!0,value:Lse(null)});var jle,Ile,Nle,Lle=function(e){Ple[_le][e]=!0},Rle={},Mle=!Tie((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),zle=uue("IE_PROTO"),$le=Fie.Object,Hle=$le.prototype,Vle=Mle?$le.getPrototypeOf:function(e){var t=Sae(e);if(Oae(t,zle))return t[zle];var n=t.constructor;return Qie(n)&&t instanceof n?n.prototype:t instanceof $le?Hle:null},Ule=Nae("iterator"),Wle=!1;[].keys&&("next"in(Nle=[].keys())?(Ile=Vle(Vle(Nle)))!==Object.prototype&&(jle=Ile):Wle=!0);var Gle=null==jle||Tie((function(){var e={};return jle[Ule].call(e)!==e}));Gle&&(jle={}),Qie(jle[Ule])||Eue(jle,Ule,(function(){return this}));var qle={IteratorPrototype:jle,BUGGY_SAFARI_ITERATORS:Wle},Kle=Zae.f,Xle=Nae("toStringTag"),Yle=function(e,t,n){e&&!Oae(e=n?e:e.prototype,Xle)&&Kle(e,Xle,{configurable:!0,value:t})},Zle=qle.IteratorPrototype,Jle=function(){return this},Qle=Fie.String,ece=Fie.TypeError,tce=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Vie(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(n,r){return Kae(n),function(e){if("object"==typeof e||Qie(e))return e;throw ece("Can't set "+Qle(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),nce=wue.PROPER,rce=wue.CONFIGURABLE,oce=qle.IteratorPrototype,ice=qle.BUGGY_SAFARI_ITERATORS,ace=Nae("iterator"),uce=function(){return this},sce=function(e,t,n,r,o,i,a){var u,s,l;s=r,l=t+" Iterator",(u=n).prototype=Lse(Zle,{next:Rie(1,s)}),Yle(u,l,!1),Rle[l]=Jle;var c,f,d,p=function(e){if(e===o&&m)return m;if(!ice&&e in v)return v[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},h=t+" Iterator",g=!1,v=e.prototype,y=v[ace]||v["@@iterator"]||o&&v[o],m=!ice&&y||p(o),b="Array"==t&&v.entries||y;if(b&&(c=Vle(b.call(new e)))!==Object.prototype&&c.next&&(Vle(c)!==oce&&(tce?tce(c,oce):Qie(c[ace])||Eue(c,ace,uce)),Yle(c,h,!0)),nce&&"values"==o&&y&&"values"!==y.name&&(rce?Jae(v,"name","values"):(g=!0,m=function(){return jie(y,this)})),o)if(f={values:p("values"),keys:i?m:p("keys"),entries:p("entries")},a)for(d in f)(ice||g||!(d in v))&&Eue(v,d,f[d]);else Xue({target:t,proto:!0,forced:ice||g},f);return v[ace]!==m&&Eue(v,ace,m,{name:o}),Rle[t]=m,f},lce=vue.set,cce=vue.getterFor("Array Iterator"),fce=sce(Array,"Array",(function(e,t){lce(this,{type:"Array Iterator",target:Jie(e),index:0,kind:t})}),(function(){var e=cce(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");Rle.Arguments=Rle.Array,Lle("keys"),Lle("values"),Lle("entries");var dce=gle.charAt,pce=vue.set,hce=vue.getterFor("String Iterator");sce(String,"String",(function(e){pce(this,{type:"String Iterator",string:Ese(e),index:0})}),(function(){var e,t=hce(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=dce(n,r),t.index+=e.length,{value:e,done:!1})}));var gce=function(e,t,n){for(var r in t)Eue(e,r,t[r],n);return e},vce=Nue.f,yce="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],mce={f:function(e){return yce&&"Window"==Gie(e)?function(e){try{return vce(e)}catch(t){return wle(yce)}}(e):vce(Jie(e))}},bce=Tie((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),wce=Object.isExtensible,Ece=Tie((function(){wce(1)}))||bce?function(e){return!!eae(e)&&(!bce||"ArrayBuffer"!=Gie(e))&&(!wce||wce(e))}:wce,xce=!Tie((function(){return Object.isExtensible(Object.preventExtensions({}))})),Dce=Aie((function(e){var t=Zae.f,n=!1,r=Tae("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=Nue.f,t=Vie([].splice),o={};o[r]=1,e(o).length&&(Nue.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t(o,i,1);break}return o},Xue({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:mce.f}))},fastKey:function(e,t){if(!eae(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!Oae(e,r)){if(!Ece(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!Oae(e,r)){if(!Ece(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return xce&&n&&Ece(e)&&!Oae(e,r)&&i(e),e}};sue[r]=!0})),Cce=Vie(Vie.bind),Sce=function(e,t){return yae(e),void 0===t?e:Cce?Cce(e,t):function(){return e.apply(t,arguments)}},Ace=Nae("iterator"),Oce=Array.prototype,kce=Nae("iterator"),Bce=function(e){if(null!=e)return mae(e,kce)||mae(e,"@@iterator")||Rle[nse(e)]},Fce=Fie.TypeError,Tce=function(e,t,n){var r,o;Kae(e);try{if(!(r=mae(e,"return"))){if("throw"===t)throw n;return n}r=jie(r,e)}catch(i){o=!0,r=i}if("throw"===t)throw n;if(o)throw r;return Kae(r),n},_ce=Fie.TypeError,Pce=function(e,t){this.stopped=e,this.result=t},jce=Pce.prototype,Ice=function(e,t,n){var r,o,i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),g=Sce(t,f),v=function(e){return r&&Tce(r,"normal",e),new Pce(!0,e)},y=function(e){return d?(Kae(e),h?g(e[0],e[1],v):g(e[0],e[1])):h?g(e,v):g(e)};if(p)r=e;else{if(!(o=Bce(e)))throw _ce(gae(e)+" is not iterable");if(void 0!==(c=o)&&(Rle.Array===c||Oce[Ace]===c)){for(i=0,a=Fue(e);a>i;i++)if((u=y(e[i]))&&rae(jce,u))return u;return new Pce(!1)}r=function(e,t){var n=arguments.length<2?Bce(e):t;if(yae(n))return Kae(jie(n,e));throw Fce(gae(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=jie(s,r)).done;){try{u=y(l.value)}catch(m){Tce(r,"throw",m)}if("object"==typeof u&&u&&rae(jce,u))return u}return new Pce(!1)},Nce=Fie.TypeError,Lce=function(e,t){if(rae(t,e))return e;throw Nce("Incorrect invocation")},Rce=Nae("iterator"),Mce=!1;try{var zce=0,$ce={next:function(){return{done:!!zce++}},return:function(){Mce=!0}};$ce[Rce]=function(){return this},Array.from($ce,(function(){throw 2}))}catch(Wme){}var Hce=function(e,t){if(!t&&!Mce)return!1;var n=!1;try{var r={};r[Rce]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(o){}return n},Vce=Nae("species"),Uce=Fie.Array,Wce=function(e,t){return new(Yue(n=e)&&(r=n.constructor,(cse(r)&&(r===Uce||Yue(r.prototype))||eae(r)&&null===(r=r[Vce]))&&(r=void 0)),void 0===r?Uce:r)(0===t?0:t);var n,r},Gce=Vie([].push),qce=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=Sae(s),g=Xie(h),v=Sce(l,c),y=Fue(g),m=0,b=f||Wce,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:Gce(w,d)}else switch(e){case 4:return!1;case 7:Gce(w,d)}return i?-1:r||o?o:w}},Kce={forEach:qce(0),map:qce(1),filter:qce(2),some:qce(3),every:qce(4),find:qce(5),findIndex:qce(6),filterReject:qce(7)},Xce=Dce.getWeakData,Yce=vue.set,Zce=vue.getterFor,Jce=Kce.find,Qce=Kce.findIndex,efe=Vie([].splice),tfe=0,nfe=function(e){return e.frozen||(e.frozen=new rfe)},rfe=function(){this.entries=[]},ofe=function(e,t){return Jce(e.entries,(function(e){return e[0]===t}))};rfe.prototype={get:function(e){var t=ofe(this,e);if(t)return t[1]},has:function(e){return!!ofe(this,e)},set:function(e,t){var n=ofe(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=Qce(this.entries,(function(t){return t[0]===e}));return~t&&efe(this.entries,t,1),!!~t}};var ife,afe={getConstructor:function(e,t,n,r){var o=e((function(e,o){Lce(e,i),Yce(e,{type:t,id:tfe++,frozen:void 0}),null!=o&&Ice(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=Zce(t),u=function(e,t,n){var r=a(e),o=Xce(Kae(t),!0);return!0===o?nfe(r).set(t,n):o[r.id]=n,e};return gce(i,{delete:function(e){var t=a(this);if(!eae(e))return!1;var n=Xce(e);return!0===n?nfe(t).delete(e):n&&Oae(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!eae(e))return!1;var n=Xce(e);return!0===n?nfe(t).has(e):n&&Oae(n,t.id)}}),gce(i,n?{get:function(e){var t=a(this);if(eae(e)){var n=Xce(e);return!0===n?nfe(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},ufe=vue.enforce,sfe=!Fie.ActiveXObject&&"ActiveXObject"in Fie,lfe=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},cfe=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=Fie[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=Vie(u[e]);Eue(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!eae(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!eae(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!eae(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(que(e,!Qie(a)||!(o||u.forEach&&!Tie((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),Dce.enable();else if(que(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=Tie((function(){f.has(1)})),h=Hce((function(e){new a(e)})),g=!o&&Tie((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){Lce(e,u);var n,o,l,c,f,d=(n=new a,o=e,l=s,tce&&Qie(c=o.constructor)&&c!==l&&eae(f=c.prototype)&&f!==l.prototype&&tce(n,f),n);return null!=t&&Ice(t,d[i],{that:d,AS_ENTRIES:r}),d}))).prototype=u,u.constructor=s),(p||g)&&(c("delete"),c("has"),r&&c("get")),(g||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,Xue({global:!0,forced:s!=a},l),Yle(s,e),o||n.setStrong(s,e,r),s}("WeakMap",lfe,afe);if(iue&&sfe){ife=afe.getConstructor(lfe,"WeakMap",!0),Dce.enable();var ffe=cfe.prototype,dfe=Vie(ffe.delete),pfe=Vie(ffe.has),hfe=Vie(ffe.get),gfe=Vie(ffe.set);gce(ffe,{delete:function(e){if(eae(e)&&!Ece(e)){var t=ufe(this);return t.frozen||(t.frozen=new ife),dfe(this,e)||t.frozen.delete(e)}return dfe(this,e)},has:function(e){if(eae(e)&&!Ece(e)){var t=ufe(this);return t.frozen||(t.frozen=new ife),pfe(this,e)||t.frozen.has(e)}return pfe(this,e)},get:function(e){if(eae(e)&&!Ece(e)){var t=ufe(this);return t.frozen||(t.frozen=new ife),pfe(this,e)?hfe(this,e):t.frozen.get(e)}return hfe(this,e)},set:function(e,t){if(eae(e)&&!Ece(e)){var n=ufe(this);n.frozen||(n.frozen=new ife),pfe(this,e)?gfe(this,e,t):n.frozen.set(e,t)}else gfe(this,e,t);return this}})}var vfe={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},yfe=Hae("span").classList,mfe=yfe&&yfe.constructor&&yfe.constructor.prototype,bfe=mfe===Object.prototype?void 0:mfe,wfe=Nae("iterator"),Efe=Nae("toStringTag"),xfe=fce.values,Dfe=function(e,t){if(e){if(e[wfe]!==xfe)try{Jae(e,wfe,xfe)}catch(r){e[wfe]=xfe}if(e[Efe]||Jae(e,Efe,t),vfe[t])for(var n in fce)if(e[n]!==fce[n])try{Jae(e,n,fce[n])}catch(r){e[n]=fce[n]}}};for(var Cfe in vfe)Dfe(Fie[Cfe]&&Fie[Cfe].prototype,Cfe);Dfe(bfe,"DOMTokenList");var Sfe=function(e,t){var n=[][e];return!!n&&Tie((function(){n.call(null,t||function(){throw 1},1)}))},Afe=Kce.forEach,Ofe=Sfe("forEach")?[].forEach:function(e){return Afe(this,e,arguments.length>1?arguments[1]:void 0)},kfe=function(e){if(e&&e.forEach!==Ofe)try{Jae(e,"forEach",Ofe)}catch(t){e.forEach=Ofe}};for(var Bfe in vfe)vfe[Bfe]&&kfe(Fie[Bfe]&&Fie[Bfe].prototype);kfe(bfe);var Ffe,Tfe,_fe,Pfe,jfe=Fie.Promise,Ife=Nae("species"),Nfe=/(?:ipad|iphone|ipod).*applewebkit/i.test(oae),Lfe="process"==Gie(Fie.process),Rfe=Fie.setImmediate,Mfe=Fie.clearImmediate,zfe=Fie.process,$fe=Fie.Dispatch,Hfe=Fie.Function,Vfe=Fie.MessageChannel,Ufe=Fie.String,Wfe=0,Gfe={};try{Ffe=Fie.location}catch(Wme){}var qfe=function(e){if(Oae(Gfe,e)){var t=Gfe[e];delete Gfe[e],t()}},Kfe=function(e){return function(){qfe(e)}},Xfe=function(e){qfe(e.data)},Yfe=function(e){Fie.postMessage(Ufe(e),Ffe.protocol+"//"+Ffe.host)};Rfe&&Mfe||(Rfe=function(e){var t=pse(arguments,1);return Gfe[++Wfe]=function(){ole(Qie(e)?e:Hfe(e),void 0,t)},Tfe(Wfe),Wfe},Mfe=function(e){delete Gfe[e]},Lfe?Tfe=function(e){zfe.nextTick(Kfe(e))}:$fe&&$fe.now?Tfe=function(e){$fe.now(Kfe(e))}:Vfe&&!Nfe?(Pfe=(_fe=new Vfe).port2,_fe.port1.onmessage=Xfe,Tfe=Sce(Pfe.postMessage,Pfe)):Fie.addEventListener&&Qie(Fie.postMessage)&&!Fie.importScripts&&Ffe&&"file:"!==Ffe.protocol&&!Tie(Yfe)?(Tfe=Yfe,Fie.addEventListener("message",Xfe,!1)):Tfe="onreadystatechange"in Hae("script")?function(e){Bse.appendChild(Hae("script")).onreadystatechange=function(){Bse.removeChild(this),qfe(e)}}:function(e){setTimeout(Kfe(e),0)});var Zfe,Jfe,Qfe,ede,tde,nde,rde,ode,ide={set:Rfe,clear:Mfe},ade=/ipad|iphone|ipod/i.test(oae)&&void 0!==Fie.Pebble,ude=/web0s(?!.*chrome)/i.test(oae),sde=Wae.f,lde=ide.set,cde=Fie.MutationObserver||Fie.WebKitMutationObserver,fde=Fie.document,dde=Fie.process,pde=Fie.Promise,hde=sde(Fie,"queueMicrotask"),gde=hde&&hde.value;gde||(Zfe=function(){var e,t;for(Lfe&&(e=dde.domain)&&e.exit();Jfe;){t=Jfe.fn,Jfe=Jfe.next;try{t()}catch(n){throw Jfe?ede():Qfe=void 0,n}}Qfe=void 0,e&&e.enter()},Nfe||Lfe||ude||!cde||!fde?!ade&&pde&&pde.resolve?((rde=pde.resolve(void 0)).constructor=pde,ode=Sce(rde.then,rde),ede=function(){ode(Zfe)}):Lfe?ede=function(){dde.nextTick(Zfe)}:(lde=Sce(lde,Fie),ede=function(){lde(Zfe)}):(tde=!0,nde=fde.createTextNode(""),new cde(Zfe).observe(nde,{characterData:!0}),ede=function(){nde.data=tde=!tde}));var vde,yde,mde,bde,wde=gde||function(e){var t={fn:e,next:void 0};Qfe&&(Qfe.next=t),Jfe||(Jfe=t,ede()),Qfe=t},Ede=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=yae(t),this.reject=yae(n)},xde={f:function(e){return new Ede(e)}},Dde=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},Cde="object"==typeof window,Sde=ide.set,Ade=Nae("species"),Ode="Promise",kde=vue.getterFor(Ode),Bde=vue.set,Fde=vue.getterFor(Ode),Tde=jfe&&jfe.prototype,_de=jfe,Pde=Tde,jde=Fie.TypeError,Ide=Fie.document,Nde=Fie.process,Lde=xde.f,Rde=Lde,Mde=!!(Ide&&Ide.createEvent&&Fie.dispatchEvent),zde=Qie(Fie.PromiseRejectionEvent),$de=!1,Hde=que(Ode,(function(){var e=rue(_de),t=e!==String(_de);if(!t&&66===lae)return!0;if(lae>=51&&/native code/.test(e))return!1;var n=new _de((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[Ade]=r,!($de=n.then((function(){}))instanceof r)||!t&&Cde&&!zde})),Vde=Hde||!Hce((function(e){_de.all(e).catch((function(){}))})),Ude=function(e){var t;return!(!eae(e)||!Qie(t=e.then))&&t},Wde=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;wde((function(){for(var r=e.value,o=1==e.state,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(2===e.rejection&&Xde(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(jde("Promise-chain cycle")):(u=Ude(a))?jie(u,a,f,d):f(a)):d(r)}catch(h){p&&!s&&p.exit(),d(h)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&qde(e)}))}},Gde=function(e,t,n){var r,o;Mde?((r=Ide.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),Fie.dispatchEvent(r)):r={promise:t,reason:n},!zde&&(o=Fie["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=Fie.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},qde=function(e){jie(Sde,Fie,(function(){var t,n=e.facade,r=e.value;if(Kde(e)&&(t=Dde((function(){Lfe?Nde.emit("unhandledRejection",r,n):Gde("unhandledrejection",n,r)})),e.rejection=Lfe||Kde(e)?2:1,t.error))throw t.value}))},Kde=function(e){return 1!==e.rejection&&!e.parent},Xde=function(e){jie(Sde,Fie,(function(){var t=e.facade;Lfe?Nde.emit("rejectionHandled",t):Gde("rejectionhandled",t,e.value)}))},Yde=function(e,t,n){return function(r){e(t,r,n)}},Zde=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Wde(e,!0))},Jde=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw jde("Promise can't be resolved itself");var r=Ude(t);r?wde((function(){var n={done:!1};try{jie(r,t,Yde(Jde,n,e),Yde(Zde,n,e))}catch(o){Zde(n,o,e)}})):(e.value=t,e.state=1,Wde(e,!1))}catch(o){Zde({done:!1},o,e)}}};if(Hde&&(Pde=(_de=function(e){Lce(this,Pde),yae(e),jie(vde,this);var t=kde(this);try{e(Yde(Jde,t),Yde(Zde,t))}catch(n){Zde(t,n)}}).prototype,(vde=function(e){Bde(this,{type:Ode,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=gce(Pde,{then:function(e,t){var n=Fde(this),r=n.reactions,o=Lde(cle(this,_de));return o.ok=!Qie(e)||e,o.fail=Qie(t)&&t,o.domain=Lfe?Nde.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&Wde(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),yde=function(){var e=new vde,t=kde(e);this.promise=e,this.resolve=Yde(Jde,t),this.reject=Yde(Zde,t)},xde.f=Lde=function(e){return e===_de||e===mde?new yde(e):Rde(e)},Qie(jfe)&&Tde!==Object.prototype)){bde=Tde.then,$de||(Eue(Tde,"then",(function(e,t){var n=this;return new _de((function(e,t){jie(bde,n,e,t)})).then(e,t)}),{unsafe:!0}),Eue(Tde,"catch",Pde.catch,{unsafe:!0}));try{delete Tde.constructor}catch(Wme){}tce&&tce(Tde,Pde)}Xue({global:!0,wrap:!0,forced:Hde},{Promise:_de}),Yle(_de,Ode,!1),function(e){var t=nae("Promise"),n=Zae.f;_ie&&t&&!t[Ife]&&n(t,Ife,{configurable:!0,get:function(){return this}})}(),mde=nae(Ode),Xue({target:Ode,stat:!0,forced:Hde},{reject:function(e){var t=Lde(this);return jie(t.reject,void 0,e),t.promise}}),Xue({target:Ode,stat:!0,forced:Hde},{resolve:function(e){return function(e,t){if(Kae(e),eae(t)&&t.constructor===e)return t;var n=xde.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),Xue({target:Ode,stat:!0,forced:Vde},{all:function(e){var t=this,n=Lde(t),r=n.resolve,o=n.reject,i=Dde((function(){var n=yae(t.resolve),i=[],a=0,u=1;Ice(e,(function(e){var s=a++,l=!1;u++,jie(n,t,e).then((function(e){l||(l=!0,i[s]=e,--u||r(i))}),o)})),--u||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=Lde(t),r=n.reject,o=Dde((function(){var o=yae(t.resolve);Ice(e,(function(e){jie(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var Qde=wue.PROPER,epe=RegExp.prototype,tpe=epe.toString,npe=Vie(xse),rpe=Tie((function(){return"/a/b"!=tpe.call({source:"a",flags:"b"})})),ope=Qde&&"toString"!=tpe.name;(rpe||ope)&&Eue(RegExp.prototype,"toString",(function(){var e=Kae(this),t=Ese(e.source),n=e.flags;return"/"+t+"/"+Ese(void 0===n&&rae(epe,e)&&!("flags"in epe)?npe(e):n)}),{unsafe:!0});var ipe=wue.EXISTS,ape=Zae.f,upe=Function.prototype,spe=Vie(upe.toString),lpe=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,cpe=Vie(lpe.exec);_ie&&!ipe&&ape(upe,"name",{configurable:!0,get:function(){try{return cpe(lpe,spe(this))[1]}catch(pf){return""}}});var fpe=new WeakMap;function dpe(e){return e.getMenuConfig("uploadImage")}function ppe(e,t){return Fle(this,void 0,void 0,(function(){return Tle(this,(function(n){return[2,new Promise((function(n){var r=new FileReader;r.readAsDataURL(t),r.onload=function(){var o=r.result;if(o){var i=o.toString(),a=0===i.indexOf("data:image")?"":i;qH(e,i,t.name,a),n("ok")}}}))]}))}))}function hpe(e,t){return Fle(this,void 0,void 0,(function(){var n,r,o,i;return Tle(this,(function(a){switch(a.label){case 0:return n=function(e){var t=fpe.get(e);if(null!=t)return t;var n=dpe(e),r=n.onSuccess,o=n.onProgress,i=n.onFailed,a=n.customInsert,u=n.onError;return t=ij(Ble(Ble({},n),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,n){if(a)return a(n,(function(t,n,r){return qH(e,t,n,r)})),void r(t,n);var o=n.errno,u=void 0===o?1:o,s=n.data,l=void 0===s?{}:s;if(0===u){if(Array.isArray(l))l.forEach((function(t){var n=t.url,r=void 0===n?"":n,o=t.alt,i=void 0===o?"":o,a=t.href;qH(e,r,i,void 0===a?"":a)}));else{var c=l.url,f=void 0===c?"":c,d=l.alt,p=void 0===d?"":d,h=l.href;qH(e,f,p,void 0===h?"":h)}r(t,n)}else i(t,n)},onError:function(e,t,n){u(e,t,n)}})),fpe.set(e,t),t}(e),r=t.name,o=t.type,i=t.size,n.addFile({name:r,type:o,size:i,data:t}),[4,n.upload()];case 1:return a.sent(),[2]}}))}))}function gpe(e,t){var n,r;return Fle(this,void 0,void 0,(function(){var o,i,a,u,s,l,c,f,d;return Tle(this,(function(p){switch(p.label){case 0:if(null==t)return[2];o=Array.prototype.slice.call(t),i=dpe(e),a=i.customUpload,u=i.base64LimitSize,p.label=1;case 1:p.trys.push([1,11,12,17]),s=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){var i,a,u,s;i=r,a=o,u=(t=e[n](t)).done,s=t.value,Promise.resolve(s).then((function(e){i({value:e,done:u})}),a)}))}}}(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,ppe(e,c)]:[3,5]);case 4:return p.sent(),[3,9];case 5:return a?[4,a(c,(function(t,n,r){return qH(e,t,n,r)}))]:[3,7];case 6:return p.sent(),[3,9];case 7:return[4,hpe(e,c)];case 8:p.sent(),p.label=9;case 9:return[3,2];case 10:return[3,17];case 11:return d=p.sent(),n={error:d},[3,17];case 12:return p.trys.push([12,,15,16]),l&&!l.done&&(r=s.return)?[4,r.call(s)]:[3,14];case 13:p.sent(),p.label=14;case 14:return[3,16];case 15:if(n)throw n.error;return[7];case 16:return[7];case 17:return[2]}}))}))}var vpe=Vie([].join),ype=Xie!=Object,mpe=Sfe("join",",");Xue({target:"Array",proto:!0,forced:ype||!mpe},{join:function(e){return vpe(Jie(this),void 0===e?",":e)}}),Ig&&(hg.fn.append=Ig),xg&&(hg.fn.on=xg),$g&&(hg.fn.remove=$g),Eg&&(hg.fn.val=Eg),Wg&&(hg.fn.click=Wg),Og&&(hg.fn.hide=Og);var bpe=function(){function e(){this.title=Zj("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 e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return KH(e)},e.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadImage")},e.prototype.exec=function(e,t){var n=this.getMenuConfig(e),r=n.allowedFileTypes,o=void 0===r?[]:r,i=n.customBrowseAndUpload;if(i)i((function(t,n,r){return qH(e,t,n,r)}));else{var a="";o.length>0&&(a='accept="'+o.join(", ")+'"');var u=hg("body"),s=hg('<input type="file" '+a+" multiple/>");s.hide(),u.append(s),s.click(),s.on("change",(function(){var t=s[0].files;gpe(e,t)}))}},e}(),wpe={menus:[{key:"uploadImage",factory:function(){return new bpe},config:{server:"",fieldName:"wangeditor-uploaded-image",maxFileSize:2097152,maxNumberOfFiles:100,allowedFileTypes:["image/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:1e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){console.error("'"+e.name+"' upload failed",t)},onError:function(e,t,n){console.error("'"+e.name+"' upload error",n)},base64LimitSize:0}}],editorPlugin:function(e){var t=e.insertData,n=e;return n.insertData=function(r){if(KH(n))t(r);else if(r.getData("text/plain"))t(r);else{var o=r.files;o.length<=0?t(r):Array.prototype.slice.call(o).some((function(e){return"image"===function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}(e.type.split("/"),1)[0]}))?gpe(e,o):t(r)}},n}};Yj("en",{highLightModule:{selectLang:"Language"}}),Yj("zh-CN",{highLightModule:{selectLang:"选择语言"}});var Epe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function xpe(e){var t={exports:{}};return e(t,t.exports),t.exports}var Dpe,Cpe,Spe=function(e){return e&&e.Math==Math&&e},Ape=Spe("object"==typeof globalThis&&globalThis)||Spe("object"==typeof window&&window)||Spe("object"==typeof self&&self)||Spe("object"==typeof Epe&&Epe)||function(){return this}()||Function("return this")(),Ope=Object.defineProperty,kpe=function(e,t){try{Ope(Ape,e,{value:t,configurable:!0,writable:!0})}catch(Qj){Ape[e]=t}return t},Bpe=Ape["__core-js_shared__"]||kpe("__core-js_shared__",{}),Fpe=xpe((function(e){(e.exports=function(e,t){return Bpe[e]||(Bpe[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Tpe=Function.prototype,_pe=Tpe.bind,Ppe=Tpe.call,jpe=_pe&&_pe.bind(Ppe),Ipe=_pe?function(e){return e&&jpe(Ppe,e)}:function(e){return e&&function(){return Ppe.apply(e,arguments)}},Npe=Ape.TypeError,Lpe=function(e){if(null==e)throw Npe("Can't call method on "+e);return e},Rpe=Ape.Object,Mpe=function(e){return Rpe(Lpe(e))},zpe=Ipe({}.hasOwnProperty),$pe=Object.hasOwn||function(e,t){return zpe(Mpe(e),t)},Hpe=0,Vpe=Math.random(),Upe=Ipe(1..toString),Wpe=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Upe(++Hpe+Vpe,36)},Gpe=function(e){return"function"==typeof e},qpe=function(e){return Gpe(e)?e:void 0},Kpe=function(e,t){return arguments.length<2?qpe(Ape[e]):Ape[e]&&Ape[e][t]},Xpe=Kpe("navigator","userAgent")||"",Ype=Ape.process,Zpe=Ape.Deno,Jpe=Ype&&Ype.versions||Zpe&&Zpe.version,Qpe=Jpe&&Jpe.v8;Qpe&&(Cpe=(Dpe=Qpe.split("."))[0]>0&&Dpe[0]<4?1:+(Dpe[0]+Dpe[1])),!Cpe&&Xpe&&(!(Dpe=Xpe.match(/Edge\/(\d+)/))||Dpe[1]>=74)&&(Dpe=Xpe.match(/Chrome\/(\d+)/))&&(Cpe=+Dpe[1]);var ehe=Cpe,the=function(e){try{return!!e()}catch(t){return!0}},nhe=!!Object.getOwnPropertySymbols&&!the((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ehe&&ehe<41})),rhe=nhe&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ohe=Fpe("wks"),ihe=Ape.Symbol,ahe=ihe&&ihe.for,uhe=rhe?ihe:ihe&&ihe.withoutSetter||Wpe,she=function(e){if(!$pe(ohe,e)||!nhe&&"string"!=typeof ohe[e]){var t="Symbol."+e;nhe&&$pe(ihe,e)?ohe[e]=ihe[e]:ohe[e]=rhe&&ahe?ahe(t):uhe(t)}return ohe[e]},lhe={};lhe[she("toStringTag")]="z";var che="[object z]"===String(lhe),fhe=!the((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),dhe=function(e){return"object"==typeof e?null!==e:Gpe(e)},phe=Ape.document,hhe=dhe(phe)&&dhe(phe.createElement),ghe=function(e){return hhe?phe.createElement(e):{}},vhe=!fhe&&!the((function(){return 7!=Object.defineProperty(ghe("div"),"a",{get:function(){return 7}}).a})),yhe=Ape.String,mhe=Ape.TypeError,bhe=function(e){if(dhe(e))return e;throw mhe(yhe(e)+" is not an object")},whe=Function.prototype.call,Ehe=whe.bind?whe.bind(whe):function(){return whe.apply(whe,arguments)},xhe=Ipe({}.isPrototypeOf),Dhe=Ape.Object,Che=rhe?function(e){return"symbol"==typeof e}:function(e){var t=Kpe("Symbol");return Gpe(t)&&xhe(t.prototype,Dhe(e))},She=Ape.String,Ahe=function(e){try{return She(e)}catch(t){return"Object"}},Ohe=Ape.TypeError,khe=function(e){if(Gpe(e))return e;throw Ohe(Ahe(e)+" is not a function")},Bhe=function(e,t){var n=e[t];return null==n?void 0:khe(n)},Fhe=Ape.TypeError,The=Ape.TypeError,_he=she("toPrimitive"),Phe=function(e){var t=function(e,t){if(!dhe(e)||Che(e))return e;var n,r=Bhe(e,_he);if(r){if(void 0===t&&(t="default"),n=Ehe(r,e,t),!dhe(n)||Che(n))return n;throw The("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&Gpe(n=e.toString)&&!dhe(r=Ehe(n,e)))return r;if(Gpe(n=e.valueOf)&&!dhe(r=Ehe(n,e)))return r;if("string"!==t&&Gpe(n=e.toString)&&!dhe(r=Ehe(n,e)))return r;throw Fhe("Can't convert object to primitive value")}(e,t)}(e,"string");return Che(t)?t:t+""},jhe=Ape.TypeError,Ihe=Object.defineProperty,Nhe={f:fhe?Ihe:function(e,t,n){if(bhe(e),t=Phe(t),bhe(n),vhe)try{return Ihe(e,t,n)}catch(r){}if("get"in n||"set"in n)throw jhe("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Lhe=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Rhe=fhe?function(e,t,n){return Nhe.f(e,t,Lhe(1,n))}:function(e,t,n){return e[t]=n,e},Mhe=Ipe(Function.toString);Gpe(Bpe.inspectSource)||(Bpe.inspectSource=function(e){return Mhe(e)});var zhe,$he,Hhe,Vhe=Bpe.inspectSource,Uhe=Ape.WeakMap,Whe=Gpe(Uhe)&&/native code/.test(Vhe(Uhe)),Ghe=Fpe("keys"),qhe=function(e){return Ghe[e]||(Ghe[e]=Wpe(e))},Khe={},Xhe=Ape.TypeError,Yhe=Ape.WeakMap;if(Whe||Bpe.state){var Zhe=Bpe.state||(Bpe.state=new Yhe),Jhe=Ipe(Zhe.get),Qhe=Ipe(Zhe.has),ege=Ipe(Zhe.set);zhe=function(e,t){if(Qhe(Zhe,e))throw new Xhe("Object already initialized");return t.facade=e,ege(Zhe,e,t),t},$he=function(e){return Jhe(Zhe,e)||{}},Hhe=function(e){return Qhe(Zhe,e)}}else{var tge=qhe("state");Khe[tge]=!0,zhe=function(e,t){if($pe(e,tge))throw new Xhe("Object already initialized");return t.facade=e,Rhe(e,tge,t),t},$he=function(e){return $pe(e,tge)?e[tge]:{}},Hhe=function(e){return $pe(e,tge)}}var nge={set:zhe,get:$he,has:Hhe,enforce:function(e){return Hhe(e)?$he(e):zhe(e,{})},getterFor:function(e){return function(t){var n;if(!dhe(t)||(n=$he(t)).type!==e)throw Xhe("Incompatible receiver, "+e+" required");return n}}},rge=Function.prototype,oge=fhe&&Object.getOwnPropertyDescriptor,ige=$pe(rge,"name"),age={EXISTS:ige,PROPER:ige&&"something"===function(){}.name,CONFIGURABLE:ige&&(!fhe||fhe&&oge(rge,"name").configurable)},uge=xpe((function(e){var t=age.CONFIGURABLE,n=nge.get,r=nge.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;Gpe(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!$pe(i,"name")||t&&i.name!==f)&&Rhe(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==Ape?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:Rhe(e,n,i)):l?e[n]=i:kpe(n,i)})(Function.prototype,"toString",(function(){return Gpe(this)&&n(this).source||Vhe(this)}))})),sge=Ipe({}.toString),lge=Ipe("".slice),cge=function(e){return lge(sge(e),8,-1)},fge=she("toStringTag"),dge=Ape.Object,pge="Arguments"==cge(function(){return arguments}()),hge=che?cge:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=dge(e),fge))?n:pge?cge(t):"Object"==(r=cge(t))&&Gpe(t.callee)?"Arguments":r},gge=che?{}.toString:function(){return"[object "+hge(this)+"]"};che||uge(Object.prototype,"toString",gge,{unsafe:!0});var vge,yge={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},mge=ghe("span").classList,bge=mge&&mge.constructor&&mge.constructor.prototype,wge=bge===Object.prototype?void 0:bge,Ege=Ipe(Ipe.bind),xge=Ape.Object,Dge=Ipe("".split),Cge=the((function(){return!xge("z").propertyIsEnumerable(0)}))?function(e){return"String"==cge(e)?Dge(e,""):xge(e)}:xge,Sge=Math.ceil,Age=Math.floor,Oge=function(e){var t=+e;return t!=t||0===t?0:(t>0?Age:Sge)(t)},kge=Math.min,Bge=function(e){return e>0?kge(Oge(e),9007199254740991):0},Fge=function(e){return Bge(e.length)},Tge=Array.isArray||function(e){return"Array"==cge(e)},_ge=function(){},Pge=[],jge=Kpe("Reflect","construct"),Ige=/^\s*(?:class|function)\b/,Nge=Ipe(Ige.exec),Lge=!Ige.exec(_ge),Rge=function(e){if(!Gpe(e))return!1;try{return jge(_ge,Pge,e),!0}catch(t){return!1}},Mge=!jge||the((function(){var e;return Rge(Rge.call)||!Rge(Object)||!Rge((function(){e=!0}))||e}))?function(e){if(!Gpe(e))return!1;switch(hge(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Lge||!!Nge(Ige,Vhe(e))}:Rge,zge=she("species"),$ge=Ape.Array,Hge=function(e,t){return new(Tge(n=e)&&(r=n.constructor,(Mge(r)&&(r===$ge||Tge(r.prototype))||dhe(r)&&null===(r=r[zge]))&&(r=void 0)),void 0===r?$ge:r)(0===t?0:t);var n,r},Vge=Ipe([].push),Uge=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=Mpe(s),g=Cge(h),v=function(e,t){return khe(e),void 0===t?e:Ege?Ege(e,t):function(){return e.apply(t,arguments)}}(l,c),y=Fge(g),m=0,b=f||Hge,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:Vge(w,d)}else switch(e){case 4:return!1;case 7:Vge(w,d)}return i?-1:r||o?o:w}},Wge=[Uge(0),Uge(1),Uge(2),Uge(3),Uge(4),Uge(5),Uge(6),Uge(7)][0],Gge=(vge=[].forEach)&&the((function(){vge.call(null,(function(){throw 1}),1)}))?[].forEach:function(e){return Wge(this,e,arguments.length>1?arguments[1]:void 0)},qge=function(e){if(e&&e.forEach!==Gge)try{Rhe(e,"forEach",Gge)}catch(t){e.forEach=Gge}};for(var Kge in yge)yge[Kge]&&qge(Ape[Kge]&&Ape[Kge].prototype);qge(wge);var Xge={}.propertyIsEnumerable,Yge=Object.getOwnPropertyDescriptor,Zge={f:Yge&&!Xge.call({1:2},1)?function(e){var t=Yge(this,e);return!!t&&t.enumerable}:Xge},Jge=function(e){return Cge(Lpe(e))},Qge=Object.getOwnPropertyDescriptor,eve={f:fhe?Qge:function(e,t){if(e=Jge(e),t=Phe(t),vhe)try{return Qge(e,t)}catch(n){}if($pe(e,t))return Lhe(!Ehe(Zge.f,e,t),e[t])}},tve=Math.max,nve=Math.min,rve=function(e,t){var n=Oge(e);return n<0?tve(n+t,0):nve(n,t)},ove=function(e){return function(t,n,r){var o,i=Jge(t),a=Fge(i),u=rve(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}}(!1),ive=Ipe([].push),ave=function(e,t){var n,r=Jge(e),o=0,i=[];for(n in r)!$pe(Khe,n)&&$pe(r,n)&&ive(i,n);for(;t.length>o;)$pe(r,n=t[o++])&&(~ove(i,n)||ive(i,n));return i},uve=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],sve=uve.concat("length","prototype"),lve={f:Object.getOwnPropertyNames||function(e){return ave(e,sve)}},cve={f:Object.getOwnPropertySymbols},fve=Ipe([].concat),dve=Kpe("Reflect","ownKeys")||function(e){var t=lve.f(bhe(e)),n=cve.f;return n?fve(t,n(e)):t},pve=function(e,t){for(var n=dve(t),r=Nhe.f,o=eve.f,i=0;i<n.length;i++){var a=n[i];$pe(e,a)||r(e,a,o(t,a))}},hve=/#|\.prototype\./,gve=function(e,t){var n=yve[vve(e)];return n==bve||n!=mve&&(Gpe(t)?the(t):!!t)},vve=gve.normalize=function(e){return String(e).replace(hve,".").toLowerCase()},yve=gve.data={},mve=gve.NATIVE="N",bve=gve.POLYFILL="P",wve=gve,Eve=eve.f,xve=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?Ape:l?Ape[u]||kpe(u,{}):(Ape[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Eve(n,r))&&a.value:n[r],!wve(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;pve(i,o)}(e.sham||o&&o.sham)&&Rhe(i,"sham",!0),uge(n,r,i,e)}},Dve=Object.keys||function(e){return ave(e,uve)},Cve=Object.assign,Sve=Object.defineProperty,Ave=Ipe([].concat),Ove=!Cve||the((function(){if(fhe&&1!==Cve({b:1},Cve(Sve({},"a",{enumerable:!0,get:function(){Sve(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=Cve({},e)[n]||Dve(Cve({},t)).join("")!=r}))?function(e,t){for(var n=Mpe(e),r=arguments.length,o=1,i=cve.f,a=Zge.f;r>o;)for(var u,s=Cge(arguments[o++]),l=i?Ave(Dve(s),i(s)):Dve(s),c=l.length,f=0;c>f;)u=l[f++],fhe&&!Ehe(a,s,u)||(n[u]=s[u]);return n}:Cve;xve({target:"Object",stat:!0,forced:Object.assign!==Ove},{assign:Ove});var kve=xpe((function(e){var t=function(e){var t=/\blang(?:uage)?-([\w-]+)\b/i,n=0,r={},o={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof i?new i(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function e(t,n){var r,i;switch(n=n||{},o.util.type(t)){case"Object":if(i=o.util.objId(t),n[i])return n[i];for(var a in r={},n[i]=r,t)t.hasOwnProperty(a)&&(r[a]=e(t[a],n));return r;case"Array":return i=o.util.objId(t),n[i]?n[i]:(r=[],n[i]=r,t.forEach((function(t,o){r[o]=e(t,n)})),r);default:return t}},getLanguage:function(e){for(;e&&!t.test(e.className);)e=e.parentElement;return e?(e.className.match(t)||[,"none"])[1].toLowerCase():"none"},currentScript:function(){if("undefined"==typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var r="no-"+t;e;){var o=e.classList;if(o.contains(t))return!0;if(o.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=o.util.clone(o.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){var i=(r=r||o.languages)[e],a={};for(var u in i)if(i.hasOwnProperty(u)){if(u==t)for(var s in n)n.hasOwnProperty(s)&&(a[s]=n[s]);n.hasOwnProperty(u)||(a[u]=i[u])}var l=r[e];return r[e]=a,o.languages.DFS(o.languages,(function(t,n){n===l&&t!=e&&(this[t]=a)})),a},DFS:function e(t,n,r,i){i=i||{};var a=o.util.objId;for(var u in t)if(t.hasOwnProperty(u)){n.call(t,u,t[u],r||u);var s=t[u],l=o.util.type(s);"Object"!==l||i[a(s)]?"Array"!==l||i[a(s)]||(i[a(s)]=!0,e(s,n,u,i)):(i[a(s)]=!0,e(s,n,null,i))}}},plugins:{},highlightAll:function(e,t){o.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};o.hooks.run("before-highlightall",r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),o.hooks.run("before-all-elements-highlight",r);for(var i,a=0;i=r.elements[a++];)o.highlightElement(i,!0===t,r.callback)},highlightElement:function(n,r,i){var a=o.util.getLanguage(n),u=o.languages[a];n.className=n.className.replace(t,"").replace(/\s+/g," ")+" language-"+a;var s=n.parentElement;s&&"pre"===s.nodeName.toLowerCase()&&(s.className=s.className.replace(t,"").replace(/\s+/g," ")+" language-"+a);var l={element:n,language:a,grammar:u,code:n.textContent};function c(e){l.highlightedCode=e,o.hooks.run("before-insert",l),l.element.innerHTML=l.highlightedCode,o.hooks.run("after-highlight",l),o.hooks.run("complete",l),i&&i.call(l.element)}if(o.hooks.run("before-sanity-check",l),(s=l.element.parentElement)&&"pre"===s.nodeName.toLowerCase()&&!s.hasAttribute("tabindex")&&s.setAttribute("tabindex","0"),!l.code)return o.hooks.run("complete",l),void(i&&i.call(l.element));if(o.hooks.run("before-highlight",l),l.grammar)if(r&&e.Worker){var f=new Worker(o.filename);f.onmessage=function(e){c(e.data)},f.postMessage(JSON.stringify({language:l.language,code:l.code,immediateClose:!0}))}else c(o.highlight(l.code,l.grammar,l.language));else c(o.util.encode(l.code))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};return o.hooks.run("before-tokenize",r),r.tokens=o.tokenize(r.code,r.grammar),o.hooks.run("after-tokenize",r),i.stringify(o.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var o=new s;return l(o,o.head,e),u(e,o,t,o.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(o)},hooks:{all:{},add:function(e,t){var n=o.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=o.hooks.all[e];if(n&&n.length)for(var r,i=0;r=n[i++];)r(t)}},Token:i};function i(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function a(e,t,n,r){e.lastIndex=t;var o=e.exec(n);if(o&&r&&o[1]){var i=o[1].length;o.index+=i,o[0]=o[0].slice(i)}return o}function u(e,t,n,r,s,f){for(var d in n)if(n.hasOwnProperty(d)&&n[d]){var p=n[d];p=Array.isArray(p)?p:[p];for(var h=0;h<p.length;++h){if(f&&f.cause==d+","+h)return;var g=p[h],v=g.inside,y=!!g.lookbehind,m=!!g.greedy,b=g.alias;if(m&&!g.pattern.global){var w=g.pattern.toString().match(/[imsuy]*$/)[0];g.pattern=RegExp(g.pattern.source,w+"g")}for(var E=g.pattern||g,x=r.next,D=s;x!==t.tail&&!(f&&D>=f.reach);D+=x.value.length,x=x.next){var C=x.value;if(t.length>e.length)return;if(!(C instanceof i)){var S,A=1;if(m){if(!(S=a(E,D,e,y)))break;var O=S.index,k=S.index+S[0].length,B=D;for(B+=x.value.length;O>=B;)B+=(x=x.next).value.length;if(D=B-=x.value.length,x.value instanceof i)continue;for(var F=x;F!==t.tail&&(B<k||"string"==typeof F.value);F=F.next)A++,B+=F.value.length;A--,C=e.slice(D,B),S.index-=D}else if(!(S=a(E,0,C,y)))continue;O=S.index;var T=S[0],_=C.slice(0,O),P=C.slice(O+T.length),j=D+C.length;f&&j>f.reach&&(f.reach=j);var I=x.prev;if(_&&(I=l(t,I,_),D+=_.length),c(t,I,A),x=l(t,I,new i(d,v?o.tokenize(T,v):T,b,T)),P&&l(t,x,P),A>1){var N={cause:d+","+h,reach:j};u(e,t,n,x.prev,D,N),f&&N.reach>f.reach&&(f.reach=N.reach)}}}}}}function s(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function l(e,t,n){var r=t.next,o={value:n,prev:t,next:r};return t.next=o,r.prev=o,e.length++,o}function c(e,t,n){for(var r=t.next,o=0;o<n&&r!==e.tail;o++)r=r.next;t.next=r,r.prev=t,e.length-=o}if(e.Prism=o,i.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var r="";return t.forEach((function(t){r+=e(t,n)})),r}var i={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},a=t.alias;a&&(Array.isArray(a)?Array.prototype.push.apply(i.classes,a):i.classes.push(a)),o.hooks.run("wrap",i);var u="";for(var s in i.attributes)u+=" "+s+'="'+(i.attributes[s]||"").replace(/"/g,"&quot;")+'"';return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+u+">"+i.content+"</"+i.tag+">"},!e.document)return e.addEventListener?(o.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),r=n.language,i=n.code,a=n.immediateClose;e.postMessage(o.highlight(i,o.languages[r],r)),a&&e.close()}),!1),o):o;var f=o.util.currentScript();function d(){o.manual||o.highlightAll()}if(f&&(o.filename=f.src,f.hasAttribute("data-manual")&&(o.manual=!0)),!o.manual){var p=document.readyState;"loading"===p||"interactive"===p&&f&&f.defer?document.addEventListener("DOMContentLoaded",d):window.requestAnimationFrame?window.requestAnimationFrame(d):window.setTimeout(d,16)}return o}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});
  88. /**
  89. * Prism: Lightweight, robust, elegant syntax highlighting
  90. *
  91. * @license MIT <https://opensource.org/licenses/MIT>
  92. * @author Lea Verou <https://lea.verou.me>
  93. * @namespace
  94. * @public
  95. */e.exports&&(e.exports=t),void 0!==Epe&&(Epe.Prism=t),t.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]},t.languages.markup.tag.inside["attr-value"].inside.entity=t.languages.markup.entity,t.languages.markup.doctype.inside["internal-subset"].inside=t.languages.markup,t.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))})),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(e,n){var r={};r["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[n]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var o={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};o["language-"+n]={pattern:/[\s\S]+/,inside:t.languages[n]};var i={};i[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:o},t.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(e,n){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\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:t.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),t.languages.html=t.languages.markup,t.languages.mathml=t.languages.markup,t.languages.svg=t.languages.markup,t.languages.xml=t.languages.extend("markup",{}),t.languages.ssml=t.languages.xml,t.languages.atom=t.languages.xml,t.languages.rss=t.languages.xml,function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.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\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,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:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(t),t.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:/[{}[\];(),.:]/},t.languages.javascript=t.languages.extend("clike",{"class-name":[t.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}|\?\?=?|\?\.?|[~:]/}),t.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,t.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:t.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:t.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:t.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:t.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:t.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),t.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:t.languages.javascript}},string:/[\s\S]+/}}}),t.languages.markup&&(t.languages.markup.tag.addInlined("script","javascript"),t.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")),t.languages.js=t.languages.javascript,function(){if(void 0!==t&&"undefined"!=typeof document){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},n="data-src-status",r='pre[data-src]:not([data-src-status="loaded"]):not([data-src-status="loading"])',o=/\blang(?:uage)?-([\w-]+)\b/i;t.hooks.add("before-highlightall",(function(e){e.selector+=", "+r})),t.hooks.add("before-sanity-check",(function(o){var i=o.element;if(i.matches(r)){o.code="",i.setAttribute(n,"loading");var u=i.appendChild(document.createElement("CODE"));u.textContent="Loading…";var s=i.getAttribute("data-src"),l=o.language;if("none"===l){var c=(/\.(\w+)$/.exec(s)||[,"none"])[1];l=e[c]||c}a(u,l),a(i,l);var f=t.plugins.autoloader;f&&f.loadLanguages(l);var d=new XMLHttpRequest;d.open("GET",s,!0),d.onreadystatechange=function(){4==d.readyState&&(d.status<400&&d.responseText?(i.setAttribute(n,"loaded"),u.textContent=d.responseText,t.highlightElement(u)):(i.setAttribute(n,"failed"),d.status>=400?u.textContent="✖ Error "+d.status+" while fetching file: "+d.statusText:u.textContent="✖ Error: File does not exist or is empty"))},d.send(null)}})),t.plugins.fileHighlight={highlight:function(e){for(var n,o=(e||document).querySelectorAll(r),i=0;n=o[i++];)t.highlightElement(n)}};var i=!1;t.fileHighlight=function(){i||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),i=!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}}function a(e,t){var n=e.className;n=n.replace(o," ")+" language-"+t,e.className=n.replace(/\s+/g," ").trim()}}()}));!function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(e,t){return e=e.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return o})),RegExp(e,t)}o=i(o).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/i,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/i,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:i(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx},alias:"language-javascript"}},e.languages.jsx.tag);var a=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(a).join(""):""},u=function(t){for(var n=[],r=0;r<t.length;r++){var o=t[r],i=!1;if("string"!=typeof o&&("tag"===o.type&&o.content[0]&&"tag"===o.content[0].type?"</"===o.content[0].content[0].content?n.length>0&&n[n.length-1].tagName===a(o.content[0].content[1])&&n.pop():"/>"===o.content[o.content.length-1].content||n.push({tagName:a(o.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===o.type&&"{"===o.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===o.type&&"}"===o.content?n[n.length-1].openedBraces--:i=!0),(i||"string"==typeof o)&&n.length>0&&0===n[n.length-1].openedBraces){var s=a(o);r<t.length-1&&("string"==typeof t[r+1]||"plain-text"===t[r+1].type)&&(s+=a(t[r+1]),t.splice(r+1,1)),r>0&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(s=a(t[r-1])+s,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",s,null,s)}o.content&&"string"!=typeof o.content&&u(o.content)}};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||u(e.tokens)}))}(Prism),function(e){e.languages.typescript=e.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/}),e.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 e.languages.typescript.parameter;var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.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:t}}}}),e.languages.ts=e.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(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))})),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\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:[t,"language-"+t],inside:Prism.languages[t]},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(e){var t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],r=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,o=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,i=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:t,variable:/\$+(?:\w+\b|(?=\{))/i,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:bool|boolean|int|integer|float|string|object|array)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:bool|int|float|string|object|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*[\w|]\|\s*)(?:null|false)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?[\w|]\|\s*)(?:null|false)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:null|false)\b/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:__halt_compiler|abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|namespace|match|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:r,operator:o,punctuation:i};var a={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.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:a}},{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:a}}];e.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:t,string:u,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:r,operator:o,punctuation:i}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",(function(t){/<\?/.test(t.code)&&e.languages["markup-templating"].buildPlaceholders(t,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/gi)})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"php")}))}(Prism),Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:__attribute__|_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}},constant:/\b(?:__FILE__|__LINE__|__DATE__|__TIME__|__TIMESTAMP__|__func__|EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|stdin|stdout|stderr)\b/}),delete Prism.languages.c.boolean,Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},"string-interpolation":{pattern:/(?:f|rf|fr)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|rb|br)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|rb|br)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/im,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:and|as|assert|async|await|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:True|False|None)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?\b/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python,function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{"class-name":[r,{pattern:RegExp(n+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:r.inside}],keyword:t,function:[e.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}}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,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 t.source}))),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism),function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char8_t|char16_t|char32_t|class|compl|concept|const|consteval|constexpr|constinit|const_cast|continue|co_await|co_return|co_yield|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return t.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:t,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/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:module|import)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.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:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(Prism),function(e){function t(e,t){return e.replace(/<<(\d+)>>/g,(function(e,n){return"(?:"+t[+n]+")"}))}function n(e,n,r){return RegExp(t(e,n),r||"")}function r(e,t){for(var n=0;n<t;n++)e=e.replace(/<<self>>/g,(function(){return"(?:"+e+")"}));return e.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",i="class enum interface record struct",a="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(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var l=s(i),c=RegExp(s(o+" "+i+" "+a+" "+u)),f=s(i+" "+a+" "+u),d=s(o+" "+i+" "+u),p=r(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),h=r(/\((?:[^()]|<<self>>)*\)/.source,2),g=/@?\b[A-Za-z_]\w*\b/.source,v=t(/<<0>>(?:\s*<<1>>)?/.source,[g,p]),y=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[f,v]),m=/\[\s*(?:,\s*)*\]/.source,b=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[y,m]),w=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[p,h,m]),E=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[w]),x=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[E,y,m]),D={keyword:c,punctuation:/[<>()?,.:[\]]/},C=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,S=/"(?:\\.|[^\\"\r\n])*"/.source,A=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[A]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[S]),lookbehind:!0,greedy:!0},{pattern:RegExp(C),greedy:!0,alias:"character"}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[y]),lookbehind:!0,inside:D},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[g,x]),lookbehind:!0,inside:D},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[g]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[l,v]),lookbehind:!0,inside:D},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[y]),lookbehind:!0,inside:D},{pattern:n(/(\bwhere\s+)<<0>>/.source,[g]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[b]),lookbehind:!0,inside:D},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[x,d,g]),inside:D}],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:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[g]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[g]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|typeof|sizeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[h]),lookbehind:!0,alias:"class-name",inside:D},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[x,y]),inside:D,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[x]),lookbehind:!0,inside:D,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[g,p]),inside:{function:n(/^<<0>>/.source,[g]),generic:{pattern:RegExp(p),alias:"class-name",inside:D}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[l,v,g,x,c.source,h,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[v,h]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:c,"class-name":{pattern:RegExp(x),greedy:!0,inside:D},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 O=S+"|"+C,k=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[O]),B=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[k]),2),F=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,T=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[y,B]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[F,T]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[F]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[B]),inside:e.languages.csharp},"class-name":{pattern:RegExp(y),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var _=/:[^}\r\n]+/.source,P=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[k]),2),j=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[P,_]),I=r(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[O]),2),N=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[I,_]);function L(t,r){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[t]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[r,_]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[j]),lookbehind:!0,greedy:!0,inside:L(j,P)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[N]),lookbehind:!0,greedy:!0,inside:L(N,I)}]})}(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(e){e.languages.ruby=e.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 t={pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"tag"},rest:e.languages.ruby}};delete e.languages.ruby.function,e.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:t}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:t}}],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:e.languages.ruby}}}),e.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)/}),e.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:t}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:t}},{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:t}},{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:/^<<[-~]?'|'$/}}}}],e.languages.rb=e.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]*"+/(?:![ \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(e){e.inside.interpolation.inside=Prism.languages.swift})),function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),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("(\\{)"+t),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})/};e.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;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|aptitude|apt-cache|apt-get|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:if|then|else|elif|fi|for|while|in|case|esac|function|select|do|done|until)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|break|cd|continue|eval|exec|exit|export|getopts|hash|pwd|readonly|return|shift|test|times|trap|umask|unset|alias|bind|builtin|caller|command|declare|echo|enable|help|let|local|logout|mapfile|printf|read|readarray|source|type|typeset|ulimit|unalias|set|shopt)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:true|false)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],i=r.variable[1].inside,a=0;a<o.length;a++)i[o[a]]=e.languages.bash[o[a]];e.languages.shell=e.languages.bash}(Prism),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.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:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+i+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+i+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var o=t[n];if("code"===o.type){var i=o.content[1],a=o.content[3];if(i&&a&&"code-language"===i.type&&"code-block"===a.type&&"string"==typeof i.content){var u=i.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),s="language-"+(u=(/[a-z][\w-]*/i.exec(u)||[""])[0].toLowerCase());a.alias?"string"==typeof a.alias?a.alias=[a.alias,s]:a.alias.push(s):a.alias=[s]}}else e(o.content)}}(e.tokens)})),e.hooks.add("wrap",(function(t){if("code-block"===t.type){for(var n="",r=0,o=t.classes.length;r<o;r++){var i=t.classes[r],l=/language-(.+)/.exec(i);if(l){n=l[1];break}}var c=e.languages[n];if(c)t.content=e.highlight(t.content.replace(a,"").replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;return"#"===(t=t.toLowerCase())[0]?(n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),s(n)):u[t]||e})),c,n);else if(n&&"none"!==n&&e.plugins.autoloader){var f="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random());t.attributes.id=f,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(f);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))}))}}}));var a=RegExp(e.languages.markup.tag.pattern.source,"gi"),u={amp:"&",lt:"<",gt:">",quot:'"'},s=String.fromCodePoint||String.fromCharCode;e.languages.md=e.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(e){if("groovy"===e.language&&"string"===e.type){var t=e.content[0];if("'"!=t){var n=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;"$"===t&&(n=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),e.content=e.content.replace(/&lt;/g,"<").replace(/&amp;/g,"&"),e.content=Prism.highlight(e.content,{expression:{pattern:n,lookbehind:!0,inside:Prism.languages.groovy}}),e.classes.push("/"===t?"regex":"gstring")}}}));var Bve=["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 Fve(e){return"string"==typeof e?e.length:"string"==typeof e.content?e.content.length:e.content.reduce((function(e,t){return e+Fve(t)}),0)}var Tve,_ve=Ape.String,Pve=function(e){if("Symbol"===hge(e))throw TypeError("Cannot convert a Symbol value to a string");return _ve(e)},jve=function(){var e=bhe(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},Ive=Ape.RegExp,Nve=the((function(){var e=Ive("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),Lve=Nve||the((function(){return!Ive("a","y").sticky})),Rve={BROKEN_CARET:Nve||the((function(){var e=Ive("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:Lve,UNSUPPORTED_Y:Nve},Mve=fhe?Object.defineProperties:function(e,t){bhe(e);for(var n,r=Jge(t),o=Dve(t),i=o.length,a=0;i>a;)Nhe.f(e,n=o[a++],r[n]);return e},zve=Kpe("document","documentElement"),$ve=qhe("IE_PROTO"),Hve=function(){},Vve=function(e){return"<script>"+e+"<\/script>"},Uve=function(e){e.write(Vve("")),e.close();var t=e.parentWindow.Object;return e=null,t},Wve=function(){try{Tve=new ActiveXObject("htmlfile")}catch(r){}var e,t;Wve="undefined"!=typeof document?document.domain&&Tve?Uve(Tve):((t=ghe("iframe")).style.display="none",zve.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Vve("document.F=Object")),e.close(),e.F):Uve(Tve);for(var n=uve.length;n--;)delete Wve.prototype[uve[n]];return Wve()};Khe[$ve]=!0;var Gve,qve,Kve=Object.create||function(e,t){var n;return null!==e?(Hve.prototype=bhe(e),n=new Hve,Hve.prototype=null,n[$ve]=e):n=Wve(),void 0===t?n:Mve(n,t)},Xve=Ape.RegExp,Yve=the((function(){var e=Xve(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Zve=Ape.RegExp,Jve=the((function(){var e=Zve("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Qve=nge.get,eye=Fpe("native-string-replace",String.prototype.replace),tye=RegExp.prototype.exec,nye=tye,rye=Ipe("".charAt),oye=Ipe("".indexOf),iye=Ipe("".replace),aye=Ipe("".slice),uye=(qve=/b*/g,Ehe(tye,Gve=/a/,"a"),Ehe(tye,qve,"a"),0!==Gve.lastIndex||0!==qve.lastIndex),sye=Rve.BROKEN_CARET,lye=void 0!==/()??/.exec("")[1];(uye||lye||sye||Yve||Jve)&&(nye=function(e){var t,n,r,o,i,a,u,s=this,l=Qve(s),c=Pve(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Ehe(nye,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=sye&&s.sticky,h=Ehe(jve,s),g=s.source,v=0,y=c;if(p&&(h=iye(h,"y",""),-1===oye(h,"g")&&(h+="g"),y=aye(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==rye(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),lye&&(n=new RegExp("^"+g+"$(?!\\s)",h)),uye&&(r=s.lastIndex),o=Ehe(tye,p?n:s,y),p?o?(o.input=aye(o.input,v),o[0]=aye(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:uye&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),lye&&o&&o.length>1&&Ehe(eye,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=Kve(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var cye=nye;xve({target:"RegExp",proto:!0,forced:/./.exec!==cye},{exec:cye});var fye=Function.prototype,dye=fye.apply,pye=fye.bind,hye=fye.call,gye="object"==typeof Reflect&&Reflect.apply||(pye?hye.bind(dye):function(){return hye.apply(dye,arguments)}),vye=she("species"),yye=RegExp.prototype,mye=she("match"),bye=Ape.TypeError,wye=she("species"),Eye=Ipe("".charAt),xye=Ipe("".charCodeAt),Dye=Ipe("".slice),Cye=function(e){return function(t,n){var r,o,i=Pve(Lpe(t)),a=Oge(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=xye(i,a))<55296||r>56319||a+1===u||(o=xye(i,a+1))<56320||o>57343?e?Eye(i,a):r:e?Dye(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0),Sye=function(e,t,n){return t+(n?Cye(e,t).length:1)},Aye=Ape.Array,Oye=Math.max,kye=function(e,t,n){for(var r,o,i,a,u=Fge(e),s=rve(t,u),l=rve(void 0===n?u:n,u),c=Aye(Oye(l-s,0)),f=0;s<l;s++,f++)r=c,o=f,i=e[s],(a=Phe(o))in r?Nhe.f(r,a,Lhe(0,i)):r[a]=i;return c.length=f,c},Bye=Ape.TypeError,Fye=function(e,t){var n=e.exec;if(Gpe(n)){var r=Ehe(n,e,t);return null!==r&&bhe(r),r}if("RegExp"===cge(e))return Ehe(cye,e,t);throw Bye("RegExp#exec called on incompatible receiver")},Tye=Rve.UNSUPPORTED_Y,_ye=Math.min,Pye=[].push,jye=Ipe(/./.exec),Iye=Ipe(Pye),Nye=Ipe("".slice);!function(e,t,n,r){var o,i,a,u=she(e),s=!the((function(){var t={};return t[u]=function(){return 7},7!=""[e](t)})),l=s&&!the((function(){var e=!1,t=/a/;return(t={}).constructor={},t.constructor[vye]=function(){return t},t.flags="",t[u]=/./[u],t.exec=function(){return e=!0,null},t[u](""),!e}));if(!s||!l||n){var c=Ipe(/./[u]),f=(o=u,i=""[e],a="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,t){var n,r,o=Pve(Lpe(this)),a=void 0===t?4294967295:t>>>0;if(0===a)return[];if(void 0===e)return[o];if(!dhe(n=e)||!(void 0!==(r=n[mye])?r:"RegExp"==cge(n)))return Ehe(i,o,e,a);for(var u,s,l,c=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,p=new RegExp(e.source,f+"g");(u=Ehe(cye,p,o))&&!((s=p.lastIndex)>d&&(Iye(c,Nye(o,d,u.index)),u.length>1&&u.index<o.length&&gye(Pye,c,kye(u,1)),l=u[0].length,d=s,c.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return d===o.length?!l&&jye(p,"")||Iye(c,""):Iye(c,Nye(o,d)),c.length>a?kye(c,0,a):c}:"0".split(void 0,0).length?function(e,t){return void 0===e&&0===t?[]:Ehe(i,this,e,t)}:i,[function(e,t){var n=Lpe(this),r=null==e?void 0:Bhe(e,o);return r?Ehe(r,e,n,t):Ehe(a,Pve(n),e,t)},function(e,t){var n=bhe(this),r=Pve(e),o=function(e,t,n,r,o){var i=Ipe(e),a=t.exec;return a===cye||a===yye.exec?s&&!o?{done:!0,value:c(t,n,r)}:{done:!0,value:i(n,t,r)}:{done:!1}}(a,n,r,t,a!==i);if(o.done)return o.value;var u,l,f,d=(u=RegExp,void 0===(f=bhe(n).constructor)||null==(l=bhe(f)[wye])?u:function(e){if(Mge(e))return e;throw bye(Ahe(e)+" is not a constructor")}(l)),p=n.unicode,h=(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.unicode?"u":"")+(Tye?"g":"y"),g=new d(Tye?"^(?:"+n.source+")":n,h),v=void 0===t?4294967295:t>>>0;if(0===v)return[];if(0===r.length)return null===Fye(g,r)?[r]:[];for(var y=0,m=0,b=[];m<r.length;){g.lastIndex=Tye?0:m;var w,E=Fye(g,Tye?Nye(r,m):r);if(null===E||(w=_ye(Bge(g.lastIndex+(Tye?m:0)),r.length))===y)m=Sye(r,m,p);else{if(Iye(b,Nye(r,y,m)),b.length===v)return b;for(var x=1;x<=E.length-1;x++)if(Iye(b,E[x]),b.length===v)return b;m=y=w}}return Iye(b,Nye(r,y)),b}]);uge(String.prototype,e,f[0]),uge(yye,u,f[1])}r&&Rhe(yye[u],"sham",!0)}("split",0,!!the((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),Tye),xve({global:!0},{globalThis:Ape}),mg&&(hg.fn.attr=mg);var Lye=age.PROPER,Rye=RegExp.prototype,Mye=Rye.toString,zye=Ipe(jve),$ye=the((function(){return"/a/b"!=Mye.call({source:"a",flags:"b"})})),Hye=Lye&&"toString"!=Mye.name;($ye||Hye)&&uge(RegExp.prototype,"toString",(function(){var e=bhe(this),t=Pve(e.source),n=e.flags;return"/"+t+"/"+Pve(void 0===n&&xhe(Rye,e)&&!("flags"in Rye)?zye(e):n)}),{unsafe:!0});var Vye=function(){function e(){this.title=Zj("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 e.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig("codeSelectLang").codeLangs,r=void 0===n?[]:n;t.push({text:"plain text",value:""}),r.forEach((function(e){var n=e.text,r=e.value;t.push({text:n,value:r})}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.getSelectCodeElem(e);if(null==t)return"";if(!ip.isElement(t))return"";var n=t.language.toString(),r=e.getMenuConfig("codeSelectLang").codeLangs;return(void 0===r?[]:r).some((function(e){return e.value===n}))?n:""},e.prototype.isDisabled=function(e){return null==e.selection||!this.getSelectCodeElem(e)},e.prototype.exec=function(e,t){if(null!=this.getSelectCodeElem(e)){var n={language:t.toString()};Qp.setNodes(e,n,{match:function(e){return fB.checkNodeType(e,"code")}})}},e.prototype.getSelectCodeElem=function(e){var t=fB.getSelectedNodeByType(e,"code");if(null==t)return null;var n=fB.getParentNode(e,t);return ip.isElement(n)?"pre"!==n.type?null:t:null},e}(),Uye={renderStyle:function(e,t){var n=e,r=t,o="";return Bve.forEach((function(e){n[e]&&(o=e)})),o&&function(e,t){null==e.data&&(e.data={});var n=e.data;null==n.props&&(n.props={}),Object.assign(n.props,{className:t})}(r,o="token "+o),r},parseStyleHtml:function(e,t,n){var r=hg(e);if(!ip.isElement(t))return t;if("code"!==fB.getNodeType(t))return t;var o=t,i=r.attr("class")||"";return 0===i.indexOf("language-")?o.language=i.split("-")[1]||"":o.language=i.toLowerCase(),o},menus:[{key:"codeSelectLang",factory:function(){return new Vye},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(e,t){var n=e.language,r=void 0===n?"":n;return"<code "+(r?'class="language-'+r+'"':"")+">"+t+"</code>"}}]},Wye=/"/g,Gye=Ipe("".replace);xve({target:"String",proto:!0,forced:the((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=Pve(Lpe(this)),r="<a",(r+=' name="'+Gye(Pve(t),Wye,"&quot;")+'"')+">"+n+"</a>";var t,n,r}});var qye=function(e){var t,n,r,o=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}(e,2),i=o[0],a=o[1],u=[],s=function(e){if(!Ip.isText(e))return null;var t=fB.getParentNode(null,e);if(t&&"code"===fB.getNodeType(t)){var n=fB.getParentNode(null,t);if(n&&"pre"===fB.getNodeType(n))return t}return null}(i);if(null==s)return u;var l=s.language,c=void 0===l?"":l;if(!c)return u;var f=function(e,t){if(!t)return[];var n=kve.languages[t];return n?kve.tokenize(e.text,n):[]}(i,c),d=0;try{for(var p=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(f),h=p.next();!h.done;h=p.next()){var g=h.value,v=d+Fve(g);"string"!=typeof g&&u.push(((r={})[g.type]=!0,r.anchor={path:a,offset:d},r.focus={path:a,offset:v},r)),d=v}}catch(y){t={error:y}}finally{try{h&&!h.done&&(n=p.return)&&n.call(p)}finally{if(t)throw t.error}}return u},Kye=function(){return Kye=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Kye.apply(this,arguments)},Xye=function(){function e(){throw new Error("不能实例化\nCan not construct a instance")}return e.setEditorConfig=function(e){void 0===e&&(e={}),this.editorConfig=Kye(Kye({},this.editorConfig),e)},e.setSimpleEditorConfig=function(e){void 0===e&&(e={}),this.simpleEditorConfig=Kye(Kye({},this.simpleEditorConfig),e)},e.setToolbarConfig=function(e){void 0===e&&(e={}),this.toolbarConfig=Kye(Kye({},this.toolbarConfig),e)},e.setSimpleToolbarConfig=function(e){void 0===e&&(e={}),this.simpleToolbarConfig=Kye(Kye({},this.simpleToolbarConfig),e)},e.registerPlugin=function(e){this.plugins.push(e)},e.registerMenu=function(e,t){!function(e,t){var n,r,o=e.key,i=e.factory,a=e.config,u=vO(vO({},a),t||{});if(null!=hB[o])throw new Error("Duplicated key '"+o+"' in menu items");hB[o]=i,n=o,null!=(r=u)&&(pB[n]=r)}(e,t)},e.registerRenderElem=function(e){!function(e){var t=e.type,n=e.renderElem;J_[t||""]=n}(e)},e.registerRenderStyle=function(e){var t;t=e,Z_.push(t)},e.registerElemToHtml=function(e){!function(e){var t=e.type,n=e.elemToHtml;OB[t||""]=n}(e)},e.registerStyleToHtml=function(e){var t;t=e,AB.push(t)},e.registerPreParseHtml=function(e){var t;t=e,gT.push(t)},e.registerParseElemHtml=function(e){!function(e){var t=e.selector,n=e.parseElemHtml;yT[t]=n}(e)},e.registerParseStyleHtml=function(e){var t;t=e,vT.push(t)},e.registerModule=function(e){Yye(e)},e.editorConfig={},e.simpleEditorConfig={},e.toolbarConfig={},e.simpleToolbarConfig={},e.plugins=[],e}();
  96. /*! *****************************************************************************
  97. Copyright (c) Microsoft Corporation.
  98. Permission to use, copy, modify, and/or distribute this software for any
  99. purpose with or without fee is hereby granted.
  100. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  101. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  102. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  103. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  104. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  105. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  106. PERFORMANCE OF THIS SOFTWARE.
  107. ***************************************************************************** */function Yye(e){var t=e.menus,n=e.renderElems,r=e.renderStyle,o=e.elemsToHtml,i=e.styleToHtml,a=e.preParseHtml,u=e.parseElemsHtml,s=e.parseStyleHtml,l=e.editorPlugin;t&&t.forEach((function(e){return Xye.registerMenu(e)})),n&&n.forEach((function(e){return Xye.registerRenderElem(e)})),r&&Xye.registerRenderStyle(r),o&&o.forEach((function(e){return Xye.registerElemToHtml(e)})),i&&Xye.registerStyleToHtml(i),a&&a.forEach((function(e){return Xye.registerPreParseHtml(e)})),u&&u.forEach((function(e){return Xye.registerParseElemHtml(e)})),s&&Xye.registerParseStyleHtml(s),l&&Xye.registerPlugin(l)}eX.forEach((function(e){return Yye(e)})),Yye(w1),Yye(t8),Yye(Cie),Yye(wpe),Yye(Uye);var Zye='<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>',Jye={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"]}},Qye={hoverbarKeys:Kye(Kye({},Jye),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};Xye.setEditorConfig(Kye(Kye({},Qye),{decorate:qye}));var eme={hoverbarKeys:Jye};Xye.setSimpleEditorConfig(Kye(Kye({},eme),{decorate:qye}));var tme={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:Zj("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:Zj("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:Zj("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:Zj("editor.image"),iconSvg:Zye,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:Zj("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"]};Xye.setToolbarConfig(tme);var nme={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:Zj("editor.image"),iconSvg:Zye,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};Xye.setSimpleToolbarConfig(nme);var rme=Object.defineProperty,ome=Object.defineProperties,ime=Object.getOwnPropertyDescriptors,ame=Object.getOwnPropertySymbols,ume=Object.prototype.hasOwnProperty,sme=Object.prototype.propertyIsEnumerable,lme=(e,t,n)=>t in e?rme(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,cme=(e,t)=>{for(var n in t||(t={}))ume.call(t,n)&&lme(e,n,t[n]);if(ame)for(var n of ame(t))sme.call(t,n)&&lme(e,n,t[n]);return e},fme=(e,t)=>ome(e,ime(t));function dme(e){let t=`请使用 '@${e}' 事件,不要放在 props 中`;return t+=`\nPlease use '@${e}' event instead of props`,t}var pme=(e,t)=>{for(const[n,r]of t)e[n]=r;return e};const hme=e({props:{mode:{type:String,default:"default"},defaultContent:{type:Array,default:[]},defaultHtml:{type:String,default:""},defaultConfig:{type:Object,default:{}},modelValue:{type:String,default:""}},setup(e,i){const u=t(null),s=n(null),l=t(""),c=()=>{if(!u.value)return;const t=a(e.defaultContent);!function(e){void 0===e&&(e={});var t=e.selector,n=void 0===t?"":t,r=e.content,o=void 0===r?[]:r,i=e.html,a=e.config,u=void 0===a?{}:a,s=e.mode,l="simple"===(void 0===s?"default":s)?Xye.simpleEditorConfig:Xye.editorConfig,c=Kye(Kye({},l.hoverbarKeys||{}),u.hoverbarKeys||{});qP({selector:n,config:Kye(Kye(Kye({},l),u),{hoverbarKeys:c}),content:o,html:i,plugins:Xye.plugins})}({selector:u.value,mode:e.mode,content:t||[],html:e.defaultHtml||e.modelValue||"",config:fme(cme({},e.defaultConfig),{onCreated(t){if(s.value=t,i.emit("onCreated",t),e.defaultConfig.onCreated){const e=dme("onCreated");throw new Error(e)}},onChange(t){const n=t.getHtml();if(l.value=n,i.emit("update:modelValue",n),i.emit("onChange",t),e.defaultConfig.onChange){const e=dme("onChange");throw new Error(e)}},onDestroyed(t){if(i.emit("onDestroyed",t),e.defaultConfig.onDestroyed){const e=dme("onDestroyed");throw new Error(e)}},onMaxLength(t){if(i.emit("onMaxLength",t),e.defaultConfig.onMaxLength){const e=dme("onMaxLength");throw new Error(e)}},onFocus(t){if(i.emit("onFocus",t),e.defaultConfig.onFocus){const e=dme("onFocus");throw new Error(e)}},onBlur(t){if(i.emit("onBlur",t),e.defaultConfig.onBlur){const e=dme("onBlur");throw new Error(e)}},customAlert(t,n){if(i.emit("customAlert",t,n),e.defaultConfig.customAlert){const e=dme("customAlert");throw new Error(e)}},customPaste:(t,n)=>{if(e.defaultConfig.customPaste){const e=dme("customPaste");throw new Error(e)}let r;return i.emit("customPaste",t,n,(e=>{r=e})),r}})})};return r((()=>{c()})),o((()=>e.modelValue),(e=>{e!==l.value&&function(e){const t=s.value;null!=t&&t.setHtml(e)}(e)})),{box:u}}}),gme={ref:"box",style:{height:"100%"}};var vme=pme(hme,[["render",function(e,t,n,r,o,i){return u(),s("div",gme,null,512)}]]);const yme=e({props:{editor:{type:Object},mode:{type:String,default:"default"},defaultConfig:{type:Object,default:{}}},setup(e){const n=t(null),r=t=>{if(n.value){if(null==t)throw new Error("Not found instance of Editor when create <Toolbar/> component");fB.getToolbar(t)||function(e){var t=e.selector,n=e.editor,r=e.config,o=void 0===r?{}:r,i=e.mode,a=void 0===i?"default":i;if(!t)throw new Error("Cannot find 'selector' when create toolbar");var u="simple"===a?Xye.simpleToolbarConfig:Xye.toolbarConfig;(function(e,t){if(null==e)throw new Error("Cannot create toolbar, because editor is null");var n=t.selector,r=t.config,o=void 0===r?{}:r;if(XT(e,"data-w-e-toolbar",n))throw new Error("Repeated create toolbar by selector '"+n+"'");var i=vO({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},o||{}),a=new JP(n,i);bk.set(a,e),wk.set(e,a)})(n,{selector:t,config:Kye(Kye({},u),o)})}({editor:t,selector:n.value||"<div></div>",mode:e.mode,config:e.defaultConfig})}};return i((()=>{const{editor:t}=e;null!=t&&r(t)})),{selector:n}}}),mme={ref:"selector"};var bme=pme(yme,[["render",function(e,t,n,r,o,i){return u(),s("div",mme,null,512)}]]);const wme={__name:"wangEditor",props:["modelValue"],setup(e,{emit:r}){const i=e,a=l(),v=n(),y="default",m=t(i.modelValue),b={excludeKeys:["headerSelect","group-video","emotion","fontFamily","insertImage","undo","redo","todo","fullScreen"]},w={MENU_CONF:{uploadImage:{fieldName:"file",maxNumberOfFiles:10,allowedFileTypes:["image/*"],server:c+a.state.site.upload,customInsert(e,t){t(e.data.url)}}},placeholder:"请输入内容..."},E=e=>{v.value=e};return o(m,(e=>{r("update:modelValue",e)})),f((()=>{try{const e=v.value;if(null==e)return;e.destroy()}catch(pf){}})),d((()=>{try{const e=v.value;if(null==e)return;e.destroy()}catch(pf){}})),(e,t)=>(u(),s(g,null,[p(h(bme),{editor:h(v),defaultConfig:b,mode:y},null,8,["editor"]),p(h(vme),{class:"editorDiv",modelValue:m.value,"onUpdate:modelValue":t[0]||(t[0]=e=>m.value=e),defaultConfig:w,mode:y,onOnCreated:E},null,8,["modelValue"])],64))}};const Eme=e=>(L("data-v-71ecad58"),e=e(),R(),e),xme={class:"flex w-full noteApp"},Dme={class:"h-full noteApp-left mt-4"},Cme={class:"pb-4 bg-white sticky top-0 z-20 flex justify-center"},Sme={key:0},Ame=["onClick"],Ome={class:"overflow-ellipsis whitespace-nowrap overflow-hidden font-bold noteApp-title"},kme={class:"flex items-center mt-2"},Bme={class:"noteApp-time ml-2"},Fme=["onClick"],Tme=[Eme((()=>E("svg",{width:"24",height:"24",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[E("path",{d:"M24.0605 10L24.0239 38",stroke:"#fff","stroke-width":"4","stroke-linecap":"round","stroke-linejoin":"round"}),E("path",{d:"M10 24L38 24",stroke:"#fff","stroke-width":"4","stroke-linecap":"round","stroke-linejoin":"round"})],-1)))],_me={class:"px-2 w-full noteApp-context"},Pme={key:0,class:"mt-4"},jme={class:"mb-4"},Ime={key:0,class:"flex flex-col",style:{height:"calc(100vh - 80px)"}},Nme={class:"noteApp-edit-footer flex",style:{height:"30px","margin-top":"10px"}},Lme={class:"flex items-center gap-4 ml-4"},Rme=["onClick"],Mme={class:"ml-auto"},zme={key:1,class:"flex justify-center flex-col items-center h-full"},$me=[Eme((()=>E("img",{style:{transform:"translateX(-90px)"},src:"/dist/assets/wiki.1702580971041.png",alt:""},null,-1))),Eme((()=>E("b",{style:{transform:"translateX(-90px)"},class:"mt-6 text-2xl"},"请选择文档或创建文档",-1)))],Hme={__name:"index",setup(e){const n=t(""),o=t(!1),i=t([]),a=t(""),l=t(""),c={text:"",id:"",user_id:"",title:"",create_time:"",update_time:"",weight:0},f=t(c);r((async()=>{window.addEventListener("keydown",(async function(e){const t=e.ctrlKey||e.metaKey,n="s"===e.key;t&&n&&(e.preventDefault(),await d())}));const e=await y({url:"/note/get?sort=desc"});1===e.code&&(i.value=e.data,i.value.length>0&&await M(i.value[0]))}));const d=async()=>{if(!f.value.id)return;let e=Object.assign({},f.value);if(e.text=l.value,0===e.title.length){let t=document.createElement("div");t.innerHTML=l.value,e.title=t.innerText.slice(0,50)}const{title:t=!1}=i.value.find((e=>e.id===f.value.id));if(t===f.value.title&&e.text===f.value.text)return;const n=await y({url:"/note/add",method:"post",data:e}),r=i.value.findIndex((t=>t.id===e.id));i.value[r]=Object.assign({},null==n?void 0:n.data),f.value=null==n?void 0:n.data,m.success("已保存最新内容")};let v=!1;const L=async()=>{if(v)return;v=!0;let e={title:"",text:""};try{const t=await y({url:"/note/add",method:"post",data:e});if(0===t.code)return void m.warning(t.msg);i.value.unshift(t.data),await M(i.value[0]),f.value=t.data,n.value=""}catch(pf){}setTimeout((()=>{v=!1}),2e3)};let R=!1;const M=async e=>{e.id!==f.value.id&&(R||(R=!0,a.value=e.id,o.value=!1,await b((async()=>{try{(e=Object.assign(c,e)).text=await y({url:"/note/getText?id="+e.id}),f.value=e,l.value=((e,t=[])=>{const n=["p","a","img","font","span","b","blockquote","code","h1","h2","h3","h4","h5","h6","hr","br","s","i","u","strike","div","strong","pre","code","pre","table","th","tr","td","colgroup","col"];t.length>0&&t.forEach((e=>{n.push(e)}));const r=["color","size","style","href","src","class"];let o={};for(let i=0;i<n.length;i++)o[n[i]]=r;return $e(e,{whiteList:o})})(e.text),o.value=!0}catch(pf){console.log("错误",pf.message)}await b((()=>{setTimeout((()=>{R=!1}),300)}))}))))};return(e,t)=>{const r=w("el-input"),v=w("el-icon"),m=w("el-button");return u(),s("div",xme,[E("div",Dme,[E("div",Cme,[p(r,{placeholder:"标题快捷搜索","suffix-icon":h(k),modelValue:n.value,"onUpdate:modelValue":t[0]||(t[0]=e=>n.value=e),clearable:"",class:"w-4/5"},null,8,["suffix-icon","modelValue"])]),0!==i.value.length?(u(),s("div",Sme,[(u(!0),s(g,null,x(i.value,(e=>(u(),B(j,{key:e.id},{default:O((()=>[S(E("div",{class:T(["w-full noteApp-item",{"noteApp-listSelect":a.value===e.id}]),onClick:t=>M(e)},[E("div",Ome,_(e.title||"新建笔记"),1),E("div",kme,[(null==e?void 0:e.weight)>0?(u(),s("div",{key:0,class:T(`note-weight weight-${e.weight}`)},null,2)):D("",!0),E("div",Bme,_(null==e?void 0:e.update_time),1),a.value===e.id?(u(),B(v,{key:1,class:"hover:text-blue-400 ml-auto",title:"删除笔记",onClick:C((t=>(async e=>{try{await N.confirm("删除将无法恢复,是否删除?","温馨提示",{confirmButtonText:"删除",cancelButtonText:"取消",type:"warning"}),await y({url:"/note/del?id="+e});const t=i.value.findIndex((t=>t.id===e));i.value.splice(t,1),e===f.value.id&&(f.value=Object.assign({},c))}catch(pf){}})(e.id)),["stop"]),size:"15px",color:"#999999"},{default:O((()=>[p(h(P))])),_:2},1032,["onClick"])):D("",!0)])],10,Ame),[[F,e.title.includes(n.value)||!e.title]])])),_:2},1024)))),128))])):D("",!0),E("div",{class:"addNote",onClick:C(L,["stop"]),title:"新建笔记"},Tme,8,Fme)]),E("div",_me,[o.value?(u(),s("div",Pme,[E("div",jme,[S(E("input",{"onUpdate:modelValue":t[1]||(t[1]=e=>f.value.title=e),id:"noteAppTitle",maxlength:"50",placeholder:"请设置标题吧"},null,512),[[A,f.value.title]])]),o.value&&f.value.id?(u(),s("div",Ime,[p(wme,{modelValue:l.value,"onUpdate:modelValue":t[2]||(t[2]=e=>l.value=e)},null,8,["modelValue"]),E("div",Nme,[E("div",Lme,[(u(),s(g,null,x(7,(e=>E("div",{onClick:t=>(async e=>{f.value.weight=e,await y({url:"/note/setWeight",method:"post",data:{id:f.value.id,weight:e}}),i.value.forEach((t=>{t.id===a.value&&(t.weight=e)}))})(e-1),class:T(`note-weight maxWeight weight-${e-1} ${e-1===f.value.weight?"selWeight":""}`)},null,10,Rme))),64))]),E("div",Mme,[p(m,{size:"default",class:"w-24",onClick:d,type:"primary",title:"(Ctrl/Command) + S"},{default:O((()=>[I("保存 ")])),_:1})])])])):D("",!0)])):(u(),s("div",zme,$me))])])}}};var Vme=v(Hme,[["__scopeId","data-v-71ecad58"]]);export{Vme as default};