123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119 |
- import{Q as e,r as t,R as n,a as r,w as o,S as i,U as a,c as u,d as s,u as l,V as c,o as f,W as d,k as p,j as h,F as g,_ as v,X as y,Y as m,K as b,b as w,e as E,f as x,m as D,l as C,i as S,Z as A,h as O,$ as k,g as B,v as F,n as T,x as _,a0 as P,T as j,a1 as I,a2 as N,D as L,E as R}from"./index.1706520491627.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,"<").replace(ue,">")}var ae=/</g,ue=/>/g,se=/"/g,le=/"/g,ce=/&#([a-zA-Z0-9]*);?/gim,fe=/:?/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,""")}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;const He=(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","tbody","thead","colgroup","col","th","tr","td","colgroup","col","ul","li","ol"];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})};var Ve="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Ue(e){var t={exports:{}};return e(t,t.exports),t.exports}var We,Ge,qe=function(e){return e&&e.Math==Math&&e},Ke=qe("object"==typeof globalThis&&globalThis)||qe("object"==typeof window&&window)||qe("object"==typeof self&&self)||qe("object"==typeof Ve&&Ve)||function(){return this}()||Function("return this")(),Xe=Function.prototype,Ye=Xe.apply,Ze=Xe.bind,Je=Xe.call,Qe="object"==typeof Reflect&&Reflect.apply||(Ze?Je.bind(Ye):function(){return Je.apply(Ye,arguments)}),et=Function.prototype,tt=et.bind,nt=et.call,rt=tt&&tt.bind(nt),ot=tt?function(e){return e&&rt(nt,e)}:function(e){return e&&function(){return nt.apply(e,arguments)}},it=function(e){return"function"==typeof e},at=function(e){try{return!!e()}catch(t){return!0}},ut=!at((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),st=Function.prototype.call,lt=st.bind?st.bind(st):function(){return st.apply(st,arguments)},ct={}.propertyIsEnumerable,ft=Object.getOwnPropertyDescriptor,dt=ft&&!ct.call({1:2},1)?function(e){var t=ft(this,e);return!!t&&t.enumerable}:ct,pt={f:dt},ht=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},gt=ot({}.toString),vt=ot("".slice),yt=function(e){return vt(gt(e),8,-1)},mt=Ke.Object,bt=ot("".split),wt=at((function(){return!mt("z").propertyIsEnumerable(0)}))?function(e){return"String"==yt(e)?bt(e,""):mt(e)}:mt,Et=Ke.TypeError,xt=function(e){if(null==e)throw Et("Can't call method on "+e);return e},Dt=function(e){return wt(xt(e))},Ct=function(e){return"object"==typeof e?null!==e:it(e)},St={},At=function(e){return it(e)?e:void 0},Ot=function(e,t){return arguments.length<2?At(St[e])||At(Ke[e]):St[e]&&St[e][t]||Ke[e]&&Ke[e][t]},kt=ot({}.isPrototypeOf),Bt=Ot("navigator","userAgent")||"",Ft=Ke.process,Tt=Ke.Deno,_t=Ft&&Ft.versions||Tt&&Tt.version,Pt=_t&&_t.v8;Pt&&(Ge=(We=Pt.split("."))[0]>0&&We[0]<4?1:+(We[0]+We[1])),!Ge&&Bt&&(!(We=Bt.match(/Edge\/(\d+)/))||We[1]>=74)&&(We=Bt.match(/Chrome\/(\d+)/))&&(Ge=+We[1]);var jt,It=Ge,Nt=!!Object.getOwnPropertySymbols&&!at((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&It&&It<41})),Lt=Nt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Rt=Ke.Object,Mt=Lt?function(e){return"symbol"==typeof e}:function(e){var t=Ot("Symbol");return it(t)&&kt(t.prototype,Rt(e))},zt=Ke.String,$t=function(e){try{return zt(e)}catch(t){return"Object"}},Ht=Ke.TypeError,Vt=function(e){if(it(e))return e;throw Ht($t(e)+" is not a function")},Ut=function(e,t){var n=e[t];return null==n?void 0:Vt(n)},Wt=Ke.TypeError,Gt=Object.defineProperty,qt=Ke["__core-js_shared__"]||function(e,t){try{Gt(Ke,e,{value:t,configurable:!0,writable:!0})}catch(eI){Ke[e]=t}return t}("__core-js_shared__",{}),Kt=Ue((function(e){(e.exports=function(e,t){return qt[e]||(qt[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Xt=Ke.Object,Yt=function(e){return Xt(xt(e))},Zt=ot({}.hasOwnProperty),Jt=Object.hasOwn||function(e,t){return Zt(Yt(e),t)},Qt=0,en=Math.random(),tn=ot(1..toString),nn=function(e){return"Symbol("+(void 0===e?"":e)+")_"+tn(++Qt+en,36)},rn=Kt("wks"),on=Ke.Symbol,an=on&&on.for,un=Lt?on:on&&on.withoutSetter||nn,sn=function(e){if(!Jt(rn,e)||!Nt&&"string"!=typeof rn[e]){var t="Symbol."+e;Nt&&Jt(on,e)?rn[e]=on[e]:rn[e]=Lt&&an?an(t):un(t)}return rn[e]},ln=Ke.TypeError,cn=sn("toPrimitive"),fn=function(e){var t=function(e,t){if(!Ct(e)||Mt(e))return e;var n,r=Ut(e,cn);if(r){if(void 0===t&&(t="default"),n=lt(r,e,t),!Ct(n)||Mt(n))return n;throw ln("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&it(n=e.toString)&&!Ct(r=lt(n,e)))return r;if(it(n=e.valueOf)&&!Ct(r=lt(n,e)))return r;if("string"!==t&&it(n=e.toString)&&!Ct(r=lt(n,e)))return r;throw Wt("Can't convert object to primitive value")}(e,t)}(e,"string");return Mt(t)?t:t+""},dn=Ke.document,pn=Ct(dn)&&Ct(dn.createElement),hn=function(e){return pn?dn.createElement(e):{}},gn=!ut&&!at((function(){return 7!=Object.defineProperty(hn("div"),"a",{get:function(){return 7}}).a})),vn=Object.getOwnPropertyDescriptor,yn=ut?vn:function(e,t){if(e=Dt(e),t=fn(t),gn)try{return vn(e,t)}catch(n){}if(Jt(e,t))return ht(!lt(pt.f,e,t),e[t])},mn={f:yn},bn=/#|\.prototype\./,wn=function(e,t){var n=xn[En(e)];return n==Cn||n!=Dn&&(it(t)?at(t):!!t)},En=wn.normalize=function(e){return String(e).replace(bn,".").toLowerCase()},xn=wn.data={},Dn=wn.NATIVE="N",Cn=wn.POLYFILL="P",Sn=wn,An=ot(ot.bind),On=function(e,t){return Vt(e),void 0===t?e:An?An(e,t):function(){return e.apply(t,arguments)}},kn=Ke.String,Bn=Ke.TypeError,Fn=function(e){if(Ct(e))return e;throw Bn(kn(e)+" is not an object")},Tn=Ke.TypeError,_n=Object.defineProperty,Pn=ut?_n:function(e,t,n){if(Fn(e),t=fn(t),Fn(n),gn)try{return _n(e,t,n)}catch(r){}if("get"in n||"set"in n)throw Tn("Accessors not supported");return"value"in n&&(e[t]=n.value),e},jn={f:Pn},In=ut?function(e,t,n){return jn.f(e,t,ht(1,n))}:function(e,t,n){return e[t]=n,e},Nn=mn.f,Ln=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 Qe(e,this,arguments)};return t.prototype=e.prototype,t},Rn=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?Ke:d?Ke[c]:(Ke[c]||{}).prototype,g=f?St:St[c]||In(St,c,{})[c],v=g.prototype;for(o in t)n=!Sn(f?o:c+(d?".":"#")+o,e.forced)&&h&&Jt(h,o),a=g[o],n&&(u=e.noTargetGet?(l=Nn(h,o))&&l.value:h[o]),i=n&&u?u:t[o],n&&typeof a==typeof i||(s=e.bind&&n?On(i,Ke):e.wrap&&n?Ln(i):p&&it(i)?ot(i):i,(e.sham||i&&i.sham||a&&a.sham)&&In(s,"sham",!0),In(g,o,s),p&&(Jt(St,r=c+"Prototype")||In(St,r,{}),In(St[r],o,i),e.real&&v&&!v[o]&&In(v,o,i)))},Mn=Kt("keys"),zn=function(e){return Mn[e]||(Mn[e]=nn(e))},$n=!at((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Hn=zn("IE_PROTO"),Vn=Ke.Object,Un=Vn.prototype,Wn=$n?Vn.getPrototypeOf:function(e){var t=Yt(e);if(Jt(t,Hn))return t[Hn];var n=t.constructor;return it(n)&&t instanceof n?n.prototype:t instanceof Vn?Un:null},Gn=Ke.String,qn=Ke.TypeError,Kn=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=ot(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(n,r){return Fn(n),function(e){if("object"==typeof e||it(e))return e;throw qn("Can't set "+Gn(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),Xn=Math.ceil,Yn=Math.floor,Zn=function(e){var t=+e;return t!=t||0===t?0:(t>0?Yn:Xn)(t)},Jn=Math.max,Qn=Math.min,er=function(e,t){var n=Zn(e);return n<0?Jn(n+t,0):Qn(n,t)},tr=Math.min,nr=function(e){return(t=e.length)>0?tr(Zn(t),9007199254740991):0;var t},rr=function(e){return function(t,n,r){var o,i=Dt(t),a=nr(i),u=er(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}},or={includes:rr(!0),indexOf:rr(!1)},ir={},ar=or.indexOf,ur=ot([].push),sr=function(e,t){var n,r=Dt(e),o=0,i=[];for(n in r)!Jt(ir,n)&&Jt(r,n)&&ur(i,n);for(;t.length>o;)Jt(r,n=t[o++])&&(~ar(i,n)||ur(i,n));return i},lr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],cr=lr.concat("length","prototype"),fr=Object.getOwnPropertyNames||function(e){return sr(e,cr)},dr={f:fr},pr={f:Object.getOwnPropertySymbols},hr=ot([].concat),gr=Ot("Reflect","ownKeys")||function(e){var t=dr.f(Fn(e)),n=pr.f;return n?hr(t,n(e)):t},vr=Object.keys||function(e){return sr(e,lr)},yr=ut?Object.defineProperties:function(e,t){Fn(e);for(var n,r=Dt(t),o=vr(t),i=o.length,a=0;i>a;)jn.f(e,n=o[a++],r[n]);return e},mr=Ot("document","documentElement"),br=zn("IE_PROTO"),wr=function(){},Er=function(e){return"<script>"+e+"<\/script>"},xr=function(e){e.write(Er("")),e.close();var t=e.parentWindow.Object;return e=null,t},Dr=function(){try{jt=new ActiveXObject("htmlfile")}catch(r){}var e,t;Dr="undefined"!=typeof document?document.domain&&jt?xr(jt):((t=hn("iframe")).style.display="none",mr.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Er("document.F=Object")),e.close(),e.F):xr(jt);for(var n=lr.length;n--;)delete Dr.prototype[lr[n]];return Dr()};ir[br]=!0;var Cr=Object.create||function(e,t){var n;return null!==e?(wr.prototype=Fn(e),n=new wr,wr.prototype=null,n[br]=e):n=Dr(),void 0===t?n:yr(n,t)},Sr=function(e,t,n){var r=fn(t);r in e?jn.f(e,r,ht(0,n)):e[r]=n},Ar=Ke.Array,Or=Math.max,kr=function(e,t,n){for(var r=nr(e),o=er(t,r),i=er(void 0===n?r:n,r),a=Ar(Or(i-o,0)),u=0;o<i;o++,u++)Sr(a,u,e[o]);return a.length=u,a},Br=ot("".replace),Fr=ot("".split),Tr=ot([].join),_r=String(Error("zxcasd").stack),Pr=/\n\s*at [^:]*:[^\n]*/,jr=Pr.test(_r),Ir=/@[^\n]*\n/.test(_r)&&!/zxcasd/.test(_r),Nr=function(e,t){if("string"!=typeof e)return e;if(jr)for(;t--;)e=Br(e,Pr,"");else if(Ir)return Tr(kr(Fr(e,"\n"),t),"\n");return e},Lr=function(e,t){Ct(t)&&"cause"in t&&In(e,"cause",t.cause)},Rr={},Mr=sn("iterator"),zr=Array.prototype,$r={};$r[sn("toStringTag")]="z";var Hr="[object z]"===String($r),Vr=sn("toStringTag"),Ur=Ke.Object,Wr="Arguments"==yt(function(){return arguments}()),Gr=Hr?yt: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=Ur(e),Vr))?n:Wr?yt(t):"Object"==(r=yt(t))&&it(t.callee)?"Arguments":r},qr=sn("iterator"),Kr=function(e){if(null!=e)return Ut(e,qr)||Ut(e,"@@iterator")||Rr[Gr(e)]},Xr=Ke.TypeError,Yr=function(e,t,n){var r,o;Fn(e);try{if(!(r=Ut(e,"return"))){if("throw"===t)throw n;return n}r=lt(r,e)}catch(i){o=!0,r=i}if("throw"===t)throw n;if(o)throw r;return Fn(r),n},Zr=Ke.TypeError,Jr=function(e,t){this.stopped=e,this.result=t},Qr=Jr.prototype,eo=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=On(t,f),v=function(e){return r&&Yr(r,"normal",e),new Jr(!0,e)},y=function(e){return d?(Fn(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=Kr(e)))throw Zr($t(e)+" is not iterable");if(void 0!==(c=o)&&(Rr.Array===c||zr[Mr]===c)){for(i=0,a=nr(e);a>i;i++)if((u=y(e[i]))&&kt(Qr,u))return u;return new Jr(!1)}r=function(e,t){var n=arguments.length<2?Kr(e):t;if(Vt(n))return Fn(lt(n,e));throw Xr($t(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=lt(s,r)).done;){try{u=y(l.value)}catch(c){Yr(r,"throw",c)}if("object"==typeof u&&u&&kt(Qr,u))return u}return new Jr(!1)},to=Ke.String,no=function(e){if("Symbol"===Gr(e))throw TypeError("Cannot convert a Symbol value to a string");return to(e)},ro=function(e,t){return void 0===e?arguments.length<2?"":t:no(e)},oo=!at((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",ht(1,7)),7!==e.stack)})),io=sn("toStringTag"),ao=Ke.Error,uo=[].push,so=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=kt(lo,this);Kn?n=Kn(new ao(void 0),o?Wn(this):lo):(n=o?this:Cr(lo),In(n,io,"Error")),In(n,"message",ro(t,"")),oo&&In(n,"stack",Nr(n.stack,1)),Lr(n,r);var i=[];return eo(e,uo,{that:i}),In(n,"errors",i),n};Kn?Kn(so,ao):function(e,t){for(var n=gr(t),r=jn.f,o=mn.f,i=0;i<n.length;i++){var a=n[i];Jt(e,a)||r(e,a,o(t,a))}}(so,ao);var lo=so.prototype=Cr(ao.prototype,{constructor:ht(1,so),message:ht(1,""),name:ht(1,"AggregateError")});Rn({global:!0},{AggregateError:so});var co=ot(Function.toString);it(qt.inspectSource)||(qt.inspectSource=function(e){return co(e)});var fo,po,ho,go=qt.inspectSource,vo=Ke.WeakMap,yo=it(vo)&&/native code/.test(go(vo)),mo=Ke.TypeError,bo=Ke.WeakMap;if(yo||qt.state){var wo=qt.state||(qt.state=new bo),Eo=ot(wo.get),xo=ot(wo.has),Do=ot(wo.set);fo=function(e,t){if(xo(wo,e))throw new mo("Object already initialized");return t.facade=e,Do(wo,e,t),t},po=function(e){return Eo(wo,e)||{}},ho=function(e){return xo(wo,e)}}else{var Co=zn("state");ir[Co]=!0,fo=function(e,t){if(Jt(e,Co))throw new mo("Object already initialized");return t.facade=e,In(e,Co,t),t},po=function(e){return Jt(e,Co)?e[Co]:{}},ho=function(e){return Jt(e,Co)}}var So,Ao,Oo,ko={set:fo,get:po,has:ho,enforce:function(e){return ho(e)?po(e):fo(e,{})},getterFor:function(e){return function(t){var n;if(!Ct(t)||(n=po(t)).type!==e)throw mo("Incompatible receiver, "+e+" required");return n}}},Bo=Function.prototype,Fo=ut&&Object.getOwnPropertyDescriptor,To=Jt(Bo,"name"),_o={EXISTS:To,PROPER:To&&"something"===function(){}.name,CONFIGURABLE:To&&(!ut||ut&&Fo(Bo,"name").configurable)},Po=function(e,t,n,r){r&&r.enumerable?e[t]=n:In(e,t,n)},jo=sn("iterator"),Io=!1;[].keys&&("next"in(Oo=[].keys())?(Ao=Wn(Wn(Oo)))!==Object.prototype&&(So=Ao):Io=!0);var No=null==So||at((function(){var e={};return So[jo].call(e)!==e}));So=No?{}:Cr(So),it(So[jo])||Po(So,jo,(function(){return this}));var Lo={IteratorPrototype:So,BUGGY_SAFARI_ITERATORS:Io},Ro=Hr?{}.toString:function(){return"[object "+Gr(this)+"]"},Mo=jn.f,zo=sn("toStringTag"),$o=function(e,t,n,r){if(e){var o=n?e:e.prototype;Jt(o,zo)||Mo(o,zo,{configurable:!0,value:t}),r&&!Hr&&In(o,"toString",Ro)}},Ho=Lo.IteratorPrototype,Vo=function(){return this},Uo=_o.PROPER,Wo=Lo.BUGGY_SAFARI_ITERATORS,Go=sn("iterator"),qo=function(){return this},Ko=function(e,t,n,r,o,i,a){var u,s,l;s=r,l=t+" Iterator",(u=n).prototype=Cr(Ho,{next:ht(1,s)}),$o(u,l,!1,!0),Rr[l]=Vo;var c,f,d,p=function(e){if(e===o&&m)return m;if(!Wo&&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[Go]||v["@@iterator"]||o&&v[o],m=!Wo&&y||p(o),b="Array"==t&&v.entries||y;if(b&&(c=Wn(b.call(new e)))!==Object.prototype&&c.next&&($o(c,h,!0,!0),Rr[h]=qo),Uo&&"values"==o&&y&&"values"!==y.name&&(g=!0,m=function(){return lt(y,this)}),o)if(f={values:p("values"),keys:i?m:p("keys"),entries:p("entries")},a)for(d in f)(Wo||g||!(d in v))&&Po(v,d,f[d]);else Rn({target:t,proto:!0,forced:Wo||g},f);return a&&v[Go]!==m&&Po(v,Go,m,{name:o}),Rr[t]=m,f},Xo=ko.set,Yo=ko.getterFor("Array Iterator");Ko(Array,"Array",(function(e,t){Xo(this,{type:"Array Iterator",target:Dt(e),index:0,kind:t})}),(function(){var e=Yo(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"),Rr.Arguments=Rr.Array;var Zo=ot("".charAt),Jo=ot("".charCodeAt),Qo=ot("".slice),ei=function(e){return function(t,n){var r,o,i=no(xt(t)),a=Zn(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=Jo(i,a))<55296||r>56319||a+1===u||(o=Jo(i,a+1))<56320||o>57343?e?Zo(i,a):r:e?Qo(i,a,a+2):o-56320+(r-55296<<10)+65536}},ti=(ei(!1),ei(!0)),ni=ko.set,ri=ko.getterFor("String Iterator");Ko(String,"String",(function(e){ni(this,{type:"String Iterator",string:no(e),index:0})}),(function(){var e,t=ri(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=ti(n,r),t.index+=e.length,{value:e,done:!1})}));var oi=St.AggregateError,ii=sn("toStringTag");for(var ai 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 ui=Ke[ai],si=ui&&ui.prototype;si&&Gr(si)!==ii&&In(si,ii,ai),Rr[ai]=Rr.Array}var li,ci,fi=oi,di=function(e){return e&&e.Math==Math&&e},pi=di("object"==typeof globalThis&&globalThis)||di("object"==typeof window&&window)||di("object"==typeof self&&self)||di("object"==typeof Ve&&Ve)||function(){return this}()||Function("return this")(),hi=function(e){try{return!!e()}catch(t){return!0}},gi=!hi((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),vi=Function.prototype.call,yi=vi.bind?vi.bind(vi):function(){return vi.apply(vi,arguments)},mi={}.propertyIsEnumerable,bi=Object.getOwnPropertyDescriptor,wi=bi&&!mi.call({1:2},1)?function(e){var t=bi(this,e);return!!t&&t.enumerable}:mi,Ei={f:wi},xi=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Di=Function.prototype,Ci=Di.bind,Si=Di.call,Ai=Ci&&Ci.bind(Si),Oi=Ci?function(e){return e&&Ai(Si,e)}:function(e){return e&&function(){return Si.apply(e,arguments)}},ki=Oi({}.toString),Bi=Oi("".slice),Fi=function(e){return Bi(ki(e),8,-1)},Ti=pi.Object,_i=Oi("".split),Pi=hi((function(){return!Ti("z").propertyIsEnumerable(0)}))?function(e){return"String"==Fi(e)?_i(e,""):Ti(e)}:Ti,ji=pi.TypeError,Ii=function(e){if(null==e)throw ji("Can't call method on "+e);return e},Ni=function(e){return Pi(Ii(e))},Li=function(e){return"function"==typeof e},Ri=function(e){return"object"==typeof e?null!==e:Li(e)},Mi=function(e){return Li(e)?e:void 0},zi=function(e,t){return arguments.length<2?Mi(pi[e]):pi[e]&&pi[e][t]},$i=Oi({}.isPrototypeOf),Hi=zi("navigator","userAgent")||"",Vi=pi.process,Ui=pi.Deno,Wi=Vi&&Vi.versions||Ui&&Ui.version,Gi=Wi&&Wi.v8;Gi&&(ci=(li=Gi.split("."))[0]>0&&li[0]<4?1:+(li[0]+li[1])),!ci&&Hi&&(!(li=Hi.match(/Edge\/(\d+)/))||li[1]>=74)&&(li=Hi.match(/Chrome\/(\d+)/))&&(ci=+li[1]);var qi=ci,Ki=!!Object.getOwnPropertySymbols&&!hi((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&qi&&qi<41})),Xi=Ki&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Yi=pi.Object,Zi=Xi?function(e){return"symbol"==typeof e}:function(e){var t=zi("Symbol");return Li(t)&&$i(t.prototype,Yi(e))},Ji=pi.String,Qi=function(e){try{return Ji(e)}catch(t){return"Object"}},ea=pi.TypeError,ta=function(e){if(Li(e))return e;throw ea(Qi(e)+" is not a function")},na=function(e,t){var n=e[t];return null==n?void 0:ta(n)},ra=pi.TypeError,oa=Object.defineProperty,ia=function(e,t){try{oa(pi,e,{value:t,configurable:!0,writable:!0})}catch(eI){pi[e]=t}return t},aa=pi["__core-js_shared__"]||ia("__core-js_shared__",{}),ua=Ue((function(e){(e.exports=function(e,t){return aa[e]||(aa[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),sa=pi.Object,la=function(e){return sa(Ii(e))},ca=Oi({}.hasOwnProperty),fa=Object.hasOwn||function(e,t){return ca(la(e),t)},da=0,pa=Math.random(),ha=Oi(1..toString),ga=function(e){return"Symbol("+(void 0===e?"":e)+")_"+ha(++da+pa,36)},va=ua("wks"),ya=pi.Symbol,ma=ya&&ya.for,ba=Xi?ya:ya&&ya.withoutSetter||ga,wa=function(e){if(!fa(va,e)||!Ki&&"string"!=typeof va[e]){var t="Symbol."+e;Ki&&fa(ya,e)?va[e]=ya[e]:va[e]=Xi&&ma?ma(t):ba(t)}return va[e]},Ea=pi.TypeError,xa=wa("toPrimitive"),Da=function(e){var t=function(e,t){if(!Ri(e)||Zi(e))return e;var n,r=na(e,xa);if(r){if(void 0===t&&(t="default"),n=yi(r,e,t),!Ri(n)||Zi(n))return n;throw Ea("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&Li(n=e.toString)&&!Ri(r=yi(n,e)))return r;if(Li(n=e.valueOf)&&!Ri(r=yi(n,e)))return r;if("string"!==t&&Li(n=e.toString)&&!Ri(r=yi(n,e)))return r;throw ra("Can't convert object to primitive value")}(e,t)}(e,"string");return Zi(t)?t:t+""},Ca=pi.document,Sa=Ri(Ca)&&Ri(Ca.createElement),Aa=function(e){return Sa?Ca.createElement(e):{}},Oa=!gi&&!hi((function(){return 7!=Object.defineProperty(Aa("div"),"a",{get:function(){return 7}}).a})),ka=Object.getOwnPropertyDescriptor,Ba=gi?ka:function(e,t){if(e=Ni(e),t=Da(t),Oa)try{return ka(e,t)}catch(n){}if(fa(e,t))return xi(!yi(Ei.f,e,t),e[t])},Fa={f:Ba},Ta=pi.String,_a=pi.TypeError,Pa=function(e){if(Ri(e))return e;throw _a(Ta(e)+" is not an object")},ja=pi.TypeError,Ia=Object.defineProperty,Na=gi?Ia:function(e,t,n){if(Pa(e),t=Da(t),Pa(n),Oa)try{return Ia(e,t,n)}catch(r){}if("get"in n||"set"in n)throw ja("Accessors not supported");return"value"in n&&(e[t]=n.value),e},La={f:Na},Ra=gi?function(e,t,n){return La.f(e,t,xi(1,n))}:function(e,t,n){return e[t]=n,e},Ma=Oi(Function.toString);Li(aa.inspectSource)||(aa.inspectSource=function(e){return Ma(e)});var za,$a,Ha,Va=aa.inspectSource,Ua=pi.WeakMap,Wa=Li(Ua)&&/native code/.test(Va(Ua)),Ga=ua("keys"),qa=function(e){return Ga[e]||(Ga[e]=ga(e))},Ka={},Xa=pi.TypeError,Ya=pi.WeakMap;if(Wa||aa.state){var Za=aa.state||(aa.state=new Ya),Ja=Oi(Za.get),Qa=Oi(Za.has),eu=Oi(Za.set);za=function(e,t){if(Qa(Za,e))throw new Xa("Object already initialized");return t.facade=e,eu(Za,e,t),t},$a=function(e){return Ja(Za,e)||{}},Ha=function(e){return Qa(Za,e)}}else{var tu=qa("state");Ka[tu]=!0,za=function(e,t){if(fa(e,tu))throw new Xa("Object already initialized");return t.facade=e,Ra(e,tu,t),t},$a=function(e){return fa(e,tu)?e[tu]:{}},Ha=function(e){return fa(e,tu)}}var nu={set:za,get:$a,has:Ha,enforce:function(e){return Ha(e)?$a(e):za(e,{})},getterFor:function(e){return function(t){var n;if(!Ri(t)||(n=$a(t)).type!==e)throw Xa("Incompatible receiver, "+e+" required");return n}}},ru=Function.prototype,ou=gi&&Object.getOwnPropertyDescriptor,iu=fa(ru,"name"),au={EXISTS:iu,PROPER:iu&&"something"===function(){}.name,CONFIGURABLE:iu&&(!gi||gi&&ou(ru,"name").configurable)},uu=Ue((function(e){var t=au.CONFIGURABLE,n=nu.get,r=nu.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;Li(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!fa(i,"name")||t&&i.name!==f)&&Ra(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==pi?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:Ra(e,n,i)):l?e[n]=i:ia(n,i)})(Function.prototype,"toString",(function(){return Li(this)&&n(this).source||Va(this)}))})),su=Math.ceil,lu=Math.floor,cu=function(e){var t=+e;return t!=t||0===t?0:(t>0?lu:su)(t)},fu=Math.max,du=Math.min,pu=function(e,t){var n=cu(e);return n<0?fu(n+t,0):du(n,t)},hu=Math.min,gu=function(e){return e>0?hu(cu(e),9007199254740991):0},vu=function(e){return gu(e.length)},yu=function(e){return function(t,n,r){var o,i=Ni(t),a=vu(i),u=pu(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}},mu=(yu(!0),yu(!1)),bu=Oi([].push),wu=function(e,t){var n,r=Ni(e),o=0,i=[];for(n in r)!fa(Ka,n)&&fa(r,n)&&bu(i,n);for(;t.length>o;)fa(r,n=t[o++])&&(~mu(i,n)||bu(i,n));return i},Eu=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],xu=Eu.concat("length","prototype"),Du=Object.getOwnPropertyNames||function(e){return wu(e,xu)},Cu={f:Du},Su={f:Object.getOwnPropertySymbols},Au=Oi([].concat),Ou=zi("Reflect","ownKeys")||function(e){var t=Cu.f(Pa(e)),n=Su.f;return n?Au(t,n(e)):t},ku=function(e,t){for(var n=Ou(t),r=La.f,o=Fa.f,i=0;i<n.length;i++){var a=n[i];fa(e,a)||r(e,a,o(t,a))}},Bu=/#|\.prototype\./,Fu=function(e,t){var n=_u[Tu(e)];return n==ju||n!=Pu&&(Li(t)?hi(t):!!t)},Tu=Fu.normalize=function(e){return String(e).replace(Bu,".").toLowerCase()},_u=Fu.data={},Pu=Fu.NATIVE="N",ju=Fu.POLYFILL="P",Iu=Fu,Nu=Fa.f,Lu=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?pi:l?pi[u]||ia(u,{}):(pi[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Nu(n,r))&&a.value:n[r],!Iu(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;ku(i,o)}(e.sham||o&&o.sham)&&Ra(i,"sham",!0),uu(n,r,i,e)}},Ru={};Ru[wa("toStringTag")]="z";var Mu,zu="[object z]"===String(Ru),$u=wa("toStringTag"),Hu=pi.Object,Vu="Arguments"==Fi(function(){return arguments}()),Uu=zu?Fi: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=Hu(e),$u))?n:Vu?Fi(t):"Object"==(r=Fi(t))&&Li(t.callee)?"Arguments":r},Wu=pi.String,Gu=function(e){if("Symbol"===Uu(e))throw TypeError("Cannot convert a Symbol value to a string");return Wu(e)},qu=function(){var e=Pa(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},Ku=pi.RegExp,Xu=hi((function(){var e=Ku("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),Yu=Xu||hi((function(){return!Ku("a","y").sticky})),Zu=Xu||hi((function(){var e=Ku("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),Ju={BROKEN_CARET:Zu,MISSED_STICKY:Yu,UNSUPPORTED_Y:Xu},Qu=Object.keys||function(e){return wu(e,Eu)},es=gi?Object.defineProperties:function(e,t){Pa(e);for(var n,r=Ni(t),o=Qu(t),i=o.length,a=0;i>a;)La.f(e,n=o[a++],r[n]);return e},ts=zi("document","documentElement"),ns=qa("IE_PROTO"),rs=function(){},os=function(e){return"<script>"+e+"<\/script>"},is=function(e){e.write(os("")),e.close();var t=e.parentWindow.Object;return e=null,t},as=function(){try{Mu=new ActiveXObject("htmlfile")}catch(r){}var e,t;as="undefined"!=typeof document?document.domain&&Mu?is(Mu):((t=Aa("iframe")).style.display="none",ts.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(os("document.F=Object")),e.close(),e.F):is(Mu);for(var n=Eu.length;n--;)delete as.prototype[Eu[n]];return as()};Ka[ns]=!0;var us,ss,ls=Object.create||function(e,t){var n;return null!==e?(rs.prototype=Pa(e),n=new rs,rs.prototype=null,n[ns]=e):n=as(),void 0===t?n:es(n,t)},cs=pi.RegExp,fs=hi((function(){var e=cs(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),ds=pi.RegExp,ps=hi((function(){var e=ds("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),hs=nu.get,gs=ua("native-string-replace",String.prototype.replace),vs=RegExp.prototype.exec,ys=vs,ms=Oi("".charAt),bs=Oi("".indexOf),ws=Oi("".replace),Es=Oi("".slice),xs=(ss=/b*/g,yi(vs,us=/a/,"a"),yi(vs,ss,"a"),0!==us.lastIndex||0!==ss.lastIndex),Ds=Ju.BROKEN_CARET,Cs=void 0!==/()??/.exec("")[1];(xs||Cs||Ds||fs||ps)&&(ys=function(e){var t,n,r,o,i,a,u,s=this,l=hs(s),c=Gu(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=yi(ys,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=Ds&&s.sticky,h=yi(qu,s),g=s.source,v=0,y=c;if(p&&(h=ws(h,"y",""),-1===bs(h,"g")&&(h+="g"),y=Es(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==ms(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),Cs&&(n=new RegExp("^"+g+"$(?!\\s)",h)),xs&&(r=s.lastIndex),o=yi(vs,p?n:s,y),p?o?(o.input=Es(o.input,v),o[0]=Es(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:xs&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Cs&&o&&o.length>1&&yi(gs,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=ls(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Ss=ys;Lu({target:"RegExp",proto:!0,forced:/./.exec!==Ss},{exec:Ss});wa("species");var As=RegExp.prototype,Os=Oi("".charAt),ks=Oi("".charCodeAt),Bs=Oi("".slice),Fs=function(e){return function(t,n){var r,o,i=Gu(Ii(t)),a=cu(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=ks(i,a))<55296||r>56319||a+1===u||(o=ks(i,a+1))<56320||o>57343?e?Os(i,a):r:e?Bs(i,a,a+2):o-56320+(r-55296<<10)+65536}},Ts={codeAt:Fs(!1),charAt:Fs(!0)},_s=Ts.charAt,Ps=function(e,t,n){return t+(n?_s(e,t).length:1)},js=pi.TypeError,Is=function(e,t){var n=e.exec;if(Li(n)){var r=yi(n,e,t);return null!==r&&Pa(r),r}if("RegExp"===Fi(e))return yi(Ss,e,t);throw js("RegExp#exec called on incompatible receiver")};!function(e,t,n,r){var o=wa(e),i=!hi((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!hi((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[o](""),!e}));if(!i||!a){var u=Oi(/./[o]),s=function(e,t,n){return[function(t){var n=Ii(this),r=null==t?void 0:na(t,e);return r?yi(r,t,n):new RegExp(t)[e](Gu(n))},function(e){var r=Pa(this),o=Gu(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return Is(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],l=0;null!==(u=Is(r,o));){var c=Gu(u[0]);s[l]=c,""===c&&(r.lastIndex=Ps(o,gu(r.lastIndex),a)),l++}return 0===l?null:s}]}(o,""[e],(function(e,t,n,r,o){var a=Oi(e),s=t.exec;return s===Ss||s===As.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));uu(String.prototype,e,s[0]),uu(As,o,s[1])}}("match"),Lu({global:!0},{globalThis:pi});var Ns=!hi((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Ls=qa("IE_PROTO"),Rs=pi.Object,Ms=Rs.prototype,zs=Ns?Rs.getPrototypeOf:function(e){var t=la(e);if(fa(t,Ls))return t[Ls];var n=t.constructor;return Li(n)&&t instanceof n?n.prototype:t instanceof Rs?Ms:null},$s=pi.String,Hs=pi.TypeError,Vs=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Oi(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(n,r){return Pa(n),function(e){if("object"==typeof e||Li(e))return e;throw Hs("Can't set "+$s(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),Us=pi.Array,Ws=Math.max,Gs=Oi("".replace),qs=Oi("".split),Ks=Oi([].join),Xs=String(Error("zxcasd").stack),Ys=/\n\s*at [^:]*:[^\n]*/,Zs=Ys.test(Xs),Js=/@[^\n]*\n/.test(Xs)&&!/zxcasd/.test(Xs),Qs=function(e,t){if("string"!=typeof e)return e;if(Zs)for(;t--;)e=Gs(e,Ys,"");else if(Js)return Ks(function(e,t,n){for(var r,o,i,a,u=vu(e),s=pu(t,u),l=pu(u,u),c=Us(Ws(l-s,0)),f=0;s<l;s++,f++)r=c,o=f,i=e[s],void 0,(a=Da(o))in r?La.f(r,a,xi(0,i)):r[a]=i;return c.length=f,c}(qs(e,"\n"),t),"\n");return e},el=function(e,t){Ri(t)&&"cause"in t&&Ra(e,"cause",t.cause)},tl=Oi(Oi.bind),nl=function(e,t){return ta(e),void 0===t?e:tl?tl(e,t):function(){return e.apply(t,arguments)}},rl={},ol=wa("iterator"),il=Array.prototype,al=wa("iterator"),ul=function(e){if(null!=e)return na(e,al)||na(e,"@@iterator")||rl[Uu(e)]},sl=pi.TypeError,ll=function(e,t,n){var r,o;Pa(e);try{if(!(r=na(e,"return"))){if("throw"===t)throw n;return n}r=yi(r,e)}catch(i){o=!0,r=i}if("throw"===t)throw n;if(o)throw r;return Pa(r),n},cl=pi.TypeError,fl=function(e,t){this.stopped=e,this.result=t},dl=fl.prototype,pl=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=nl(t,f),v=function(e){return r&&ll(r,"normal",e),new fl(!0,e)},y=function(e){return d?(Pa(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=ul(e)))throw cl(Qi(e)+" is not iterable");if(void 0!==(c=o)&&(rl.Array===c||il[ol]===c)){for(i=0,a=vu(e);a>i;i++)if((u=y(e[i]))&&$i(dl,u))return u;return new fl(!1)}r=function(e,t){var n=arguments.length<2?ul(e):t;if(ta(n))return Pa(yi(n,e));throw sl(Qi(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=yi(s,r)).done;){try{u=y(l.value)}catch(c){ll(r,"throw",c)}if("object"==typeof u&&u&&$i(dl,u))return u}return new fl(!1)},hl=function(e,t){return void 0===e?arguments.length<2?"":t:Gu(e)},gl=!hi((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",xi(1,7)),7!==e.stack)})),vl=wa("toStringTag"),yl=pi.Error,ml=[].push,bl=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=$i(wl,this);Vs?n=Vs(new yl(void 0),o?zs(this):wl):(n=o?this:ls(wl),Ra(n,vl,"Error")),Ra(n,"message",hl(t,"")),gl&&Ra(n,"stack",Qs(n.stack,1)),el(n,r);var i=[];return pl(e,ml,{that:i}),Ra(n,"errors",i),n};Vs?Vs(bl,yl):ku(bl,yl);var wl=bl.prototype=ls(yl.prototype,{constructor:xi(1,bl),message:xi(1,""),name:xi(1,"AggregateError")});Lu({global:!0},{AggregateError:bl});var El=wa("unscopables"),xl=Array.prototype;null==xl[El]&&La.f(xl,El,{configurable:!0,value:ls(null)});var Dl,Cl,Sl,Al=function(e){xl[El][e]=!0},Ol=wa("iterator"),kl=!1;[].keys&&("next"in(Sl=[].keys())?(Cl=zs(zs(Sl)))!==Object.prototype&&(Dl=Cl):kl=!0);var Bl=null==Dl||hi((function(){var e={};return Dl[Ol].call(e)!==e}));Bl&&(Dl={}),Li(Dl[Ol])||uu(Dl,Ol,(function(){return this}));var Fl={IteratorPrototype:Dl,BUGGY_SAFARI_ITERATORS:kl},Tl=La.f,_l=wa("toStringTag"),Pl=function(e,t,n){e&&!fa(e=n?e:e.prototype,_l)&&Tl(e,_l,{configurable:!0,value:t})},jl=Fl.IteratorPrototype,Il=function(){return this},Nl=au.PROPER,Ll=au.CONFIGURABLE,Rl=Fl.IteratorPrototype,Ml=Fl.BUGGY_SAFARI_ITERATORS,zl=wa("iterator"),$l=function(){return this},Hl=function(e,t,n,r,o,i,a){var u,s,l;s=r,l=t+" Iterator",(u=n).prototype=ls(jl,{next:xi(1,s)}),Pl(u,l,!1),rl[l]=Il;var c,f,d,p=function(e){if(e===o&&m)return m;if(!Ml&&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[zl]||v["@@iterator"]||o&&v[o],m=!Ml&&y||p(o),b="Array"==t&&v.entries||y;if(b&&(c=zs(b.call(new e)))!==Object.prototype&&c.next&&(zs(c)!==Rl&&(Vs?Vs(c,Rl):Li(c[zl])||uu(c,zl,$l)),Pl(c,h,!0)),Nl&&"values"==o&&y&&"values"!==y.name&&(Ll?Ra(v,"name","values"):(g=!0,m=function(){return yi(y,this)})),o)if(f={values:p("values"),keys:i?m:p("keys"),entries:p("entries")},a)for(d in f)(Ml||g||!(d in v))&&uu(v,d,f[d]);else Lu({target:t,proto:!0,forced:Ml||g},f);return v[zl]!==m&&uu(v,zl,m,{name:o}),rl[t]=m,f},Vl=nu.set,Ul=nu.getterFor("Array Iterator"),Wl=Hl(Array,"Array",(function(e,t){Vl(this,{type:"Array Iterator",target:Ni(e),index:0,kind:t})}),(function(){var e=Ul(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");rl.Arguments=rl.Array,Al("keys"),Al("values"),Al("entries");var Gl=Ts.charAt,ql=nu.set,Kl=nu.getterFor("String Iterator");Hl(String,"String",(function(e){ql(this,{type:"String Iterator",string:Gu(e),index:0})}),(function(){var e,t=Kl(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Gl(n,r),t.index+=e.length,{value:e,done:!1})}));var Xl,Yl={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},Zl=Aa("span").classList,Jl=Zl&&Zl.constructor&&Zl.constructor.prototype,Ql=Jl===Object.prototype?void 0:Jl,ec=wa("iterator"),tc=wa("toStringTag"),nc=Wl.values,rc=function(e,t){if(e){if(e[ec]!==nc)try{Ra(e,ec,nc)}catch(r){e[ec]=nc}if(e[tc]||Ra(e,tc,t),Yl[t])for(var n in Wl)if(e[n]!==Wl[n])try{Ra(e,n,Wl[n])}catch(r){e[n]=Wl[n]}}};for(var oc in Yl)rc(pi[oc]&&pi[oc].prototype,oc);function ic(){"undefined"==typeof globalThis&&(window.globalThis=window)}function ac(){void 0===fi&&(window.AggregateError=function(e,t){var n=new Error(t);return n.errors=e,n})}rc(Ql,"DOMTokenList"),"undefined"==typeof global?("ActiveXObject"in window&&console.error("抱歉,wangEditor V5+ 版本开始,不在支持 IE 浏览器\n Sorry, wangEditor V5+ versions do not support IE browser."),ic(),ac()):global&&(null===(Xl=global.navigator)||void 0===Xl?void 0:Xl.userAgent.match("QQBrowser"))&&(ic(),ac());var uc=Array.isArray||function(e){return"Array"==yt(e)},sc=function(){},lc=[],cc=Ot("Reflect","construct"),fc=/^\s*(?:class|function)\b/,dc=ot(fc.exec),pc=!fc.exec(sc),hc=function(e){if(!it(e))return!1;try{return cc(sc,lc,e),!0}catch(t){return!1}},gc=!cc||at((function(){var e;return hc(hc.call)||!hc(Object)||!hc((function(){e=!0}))||e}))?function(e){if(!it(e))return!1;switch(Gr(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return pc||!!dc(fc,go(e))}:hc,vc=sn("species"),yc=Ke.Array,mc=function(e,t){return new(uc(n=e)&&(r=n.constructor,(gc(r)&&(r===yc||uc(r.prototype))||Ct(r)&&null===(r=r[vc]))&&(r=void 0)),void 0===r?yc:r)(0===t?0:t);var n,r},bc=sn("species"),wc=sn("isConcatSpreadable"),Ec=Ke.TypeError,xc=It>=51||!at((function(){var e=[];return e[wc]=!1,e.concat()[0]!==e})),Dc=("concat",It>=51||!at((function(){var e=[];return(e.constructor={})[bc]=function(){return{foo:1}},1!==e.concat(Boolean).foo}))),Cc=function(e){if(!Ct(e))return!1;var t=e[wc];return void 0!==t?!!t:uc(e)};Rn({target:"Array",proto:!0,forced:!xc||!Dc},{concat:function(e){var t,n,r,o,i,a=Yt(this),u=mc(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(Cc(i=-1===t?a:arguments[t])){if(s+(o=nr(i))>9007199254740991)throw Ec("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&Sr(u,s,i[n])}else{if(s>=9007199254740991)throw Ec("Maximum allowed index exceeded");Sr(u,s++,i)}return u.length=s,u}});var Sc=dr.f,Ac="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Oc={f:function(e){return Ac&&"Window"==yt(e)?function(e){try{return Sc(e)}catch(t){return kr(Ac)}}(e):Sc(Dt(e))}},kc=ot([].slice),Bc={f:sn},Fc=jn.f,Tc=function(e){var t=St.Symbol||(St.Symbol={});Jt(t,e)||Fc(t,e,{value:Bc.f(e)})},_c=ot([].push),Pc=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=Yt(s),g=wt(h),v=On(l,c),y=nr(g),m=0,b=f||mc,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:_c(w,d)}else switch(e){case 4:return!1;case 7:_c(w,d)}return i?-1:r||o?o:w}},jc=[Pc(0),Pc(1),Pc(2),Pc(3),Pc(4),Pc(5),Pc(6),Pc(7)][0],Ic=zn("hidden"),Nc=sn("toPrimitive"),Lc=ko.set,Rc=ko.getterFor("Symbol"),Mc=Object.prototype,zc=Ke.Symbol,$c=zc&&zc.prototype,Hc=Ke.TypeError,Vc=Ke.QObject,Uc=Ot("JSON","stringify"),Wc=mn.f,Gc=jn.f,qc=Oc.f,Kc=pt.f,Xc=ot([].push),Yc=Kt("symbols"),Zc=Kt("op-symbols"),Jc=Kt("string-to-symbol-registry"),Qc=Kt("symbol-to-string-registry"),ef=Kt("wks"),tf=!Vc||!Vc.prototype||!Vc.prototype.findChild,nf=ut&&at((function(){return 7!=Cr(Gc({},"a",{get:function(){return Gc(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=Wc(Mc,t);r&&delete Mc[t],Gc(e,t,n),r&&e!==Mc&&Gc(Mc,t,r)}:Gc,rf=function(e,t){var n=Yc[e]=Cr($c);return Lc(n,{type:"Symbol",tag:e,description:t}),ut||(n.description=t),n},of=function(e,t,n){e===Mc&&of(Zc,t,n),Fn(e);var r=fn(t);return Fn(n),Jt(Yc,r)?(n.enumerable?(Jt(e,Ic)&&e[Ic][r]&&(e[Ic][r]=!1),n=Cr(n,{enumerable:ht(0,!1)})):(Jt(e,Ic)||Gc(e,Ic,ht(1,{})),e[Ic][r]=!0),nf(e,r,n)):Gc(e,r,n)},af=function(e,t){Fn(e);var n=Dt(t),r=vr(n).concat(cf(n));return jc(r,(function(t){ut&&!lt(uf,n,t)||of(e,t,n[t])})),e},uf=function(e){var t=fn(e),n=lt(Kc,this,t);return!(this===Mc&&Jt(Yc,t)&&!Jt(Zc,t))&&(!(n||!Jt(this,t)||!Jt(Yc,t)||Jt(this,Ic)&&this[Ic][t])||n)},sf=function(e,t){var n=Dt(e),r=fn(t);if(n!==Mc||!Jt(Yc,r)||Jt(Zc,r)){var o=Wc(n,r);return!o||!Jt(Yc,r)||Jt(n,Ic)&&n[Ic][r]||(o.enumerable=!0),o}},lf=function(e){var t=qc(Dt(e)),n=[];return jc(t,(function(e){Jt(Yc,e)||Jt(ir,e)||Xc(n,e)})),n},cf=function(e){var t=e===Mc,n=qc(t?Zc:Dt(e)),r=[];return jc(n,(function(e){!Jt(Yc,e)||t&&!Jt(Mc,e)||Xc(r,Yc[e])})),r};if(Nt||($c=(zc=function(){if(kt($c,this))throw Hc("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?no(arguments[0]):void 0,t=nn(e),n=function(e){this===Mc&<(n,Zc,e),Jt(this,Ic)&&Jt(this[Ic],t)&&(this[Ic][t]=!1),nf(this,t,ht(1,e))};return ut&&tf&&nf(Mc,t,{configurable:!0,set:n}),rf(t,e)}).prototype,Po($c,"toString",(function(){return Rc(this).tag})),Po(zc,"withoutSetter",(function(e){return rf(nn(e),e)})),pt.f=uf,jn.f=of,mn.f=sf,dr.f=Oc.f=lf,pr.f=cf,Bc.f=function(e){return rf(sn(e),e)},ut&&Gc($c,"description",{configurable:!0,get:function(){return Rc(this).description}})),Rn({global:!0,wrap:!0,forced:!Nt,sham:!Nt},{Symbol:zc}),jc(vr(ef),(function(e){Tc(e)})),Rn({target:"Symbol",stat:!0,forced:!Nt},{for:function(e){var t=no(e);if(Jt(Jc,t))return Jc[t];var n=zc(t);return Jc[t]=n,Qc[n]=t,n},keyFor:function(e){if(!Mt(e))throw Hc(e+" is not a symbol");if(Jt(Qc,e))return Qc[e]},useSetter:function(){tf=!0},useSimple:function(){tf=!1}}),Rn({target:"Object",stat:!0,forced:!Nt,sham:!ut},{create:function(e,t){return void 0===t?Cr(e):af(Cr(e),t)},defineProperty:of,defineProperties:af,getOwnPropertyDescriptor:sf}),Rn({target:"Object",stat:!0,forced:!Nt},{getOwnPropertyNames:lf,getOwnPropertySymbols:cf}),Rn({target:"Object",stat:!0,forced:at((function(){pr.f(1)}))},{getOwnPropertySymbols:function(e){return pr.f(Yt(e))}}),Uc){var ff=!Nt||at((function(){var e=zc();return"[null]"!=Uc([e])||"{}"!=Uc({a:e})||"{}"!=Uc(Object(e))}));Rn({target:"JSON",stat:!0,forced:ff},{stringify:function(e,t,n){var r=kc(arguments),o=t;if((Ct(t)||void 0!==e)&&!Mt(e))return uc(t)||(t=function(e,t){if(it(o)&&(t=lt(o,this,e,t)),!Mt(t))return t}),r[1]=t,Qe(Uc,null,r)}})}if(!$c[Nc]){var df=$c.valueOf;Po($c,Nc,(function(e){return lt(df,this)}))}$o(zc,"Symbol"),ir[Ic]=!0,Tc("asyncIterator"),Tc("hasInstance"),Tc("isConcatSpreadable"),Tc("iterator"),Tc("match"),Tc("matchAll"),Tc("replace"),Tc("search"),Tc("species"),Tc("split"),Tc("toPrimitive"),Tc("toStringTag"),Tc("unscopables"),$o(Ke.JSON,"JSON",!0);var pf=St.Symbol;Tc("asyncDispose"),Tc("dispose"),Tc("matcher"),Tc("metadata"),Tc("observable"),Tc("patternMatch"),Tc("replaceAll");var hf,gf=pf,vf=Bc.f("iterator"),yf=Ue((function(e){function t(n){return"function"==typeof gf&&"symbol"==typeof vf?(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 gf&&e.constructor===gf&&e!==gf.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})),mf=(hf=yf)&&hf.__esModule&&Object.prototype.hasOwnProperty.call(hf,"default")?hf.default:hf,bf=Fa.f,wf=hi((function(){bf(1)}));if(Lu({target:"Object",stat:!0,forced:!gi||wf,sham:!gi},{getOwnPropertyDescriptor:function(e,t){return bf(Ni(e),t)}}),"object"===("undefined"==typeof global?"undefined":mf(global))){var Ef=Object.getOwnPropertyDescriptor(global,"window");global.window&&!Ef.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[]})}
- /*!
- * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
- *
- * Copyright (c) 2014-2017, Jon Schlinkert.
- * Released under the MIT License.
- */function xf(e){return"[object Object]"===Object.prototype.toString.call(e)}function Df(e){var t,n;return!1!==xf(e)&&(void 0===(t=e.constructor)||!1!==xf(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}function Cf(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 Sf(e){return!!e&&!!e[ld]}function Af(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)===cd}(e)||Array.isArray(e)||!!e[sd]||!!e.constructor[sd]||Tf(e)||_f(e))}function Of(e,t,n){void 0===n&&(n=!1),0===kf(e)?(n?Object.keys:fd)(e).forEach((function(r){n&&"symbol"==typeof r||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function kf(e){var t=e[ld];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Tf(e)?2:_f(e)?3:0}function Bf(e,t){return 2===kf(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Ff(e,t,n){var r=kf(e);2===r?e.set(t,n):3===r?(e.delete(t),e.add(n)):e[t]=n}function Tf(e){return od&&e instanceof Map}function _f(e){return id&&e instanceof Set}function Pf(e){return e.o||e.t}function jf(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=dd(e);delete t[ld];for(var n=fd(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 If(e,t){return void 0===t&&(t=!1),Lf(e)||Sf(e)||!Af(e)||(kf(e)>1&&(e.set=e.add=e.clear=e.delete=Nf),Object.freeze(e),t&&Of(e,(function(e,t){return If(t,!0)}),!0)),e}function Nf(){Cf(2)}function Lf(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function Rf(e){var t=pd[e];return t||Cf(18,e),t}function Mf(){return nd}function zf(e,t){t&&(Rf("Patches"),e.u=[],e.s=[],e.v=t)}function $f(e){Hf(e),e.p.forEach(Uf),e.p=null}function Hf(e){e===nd&&(nd=e.l)}function Vf(e){return nd={p:[],l:nd,h:e,m:!0,_:0}}function Uf(e){var t=e[ld];0===t.i||1===t.i?t.j():t.O=!0}function Wf(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.g||Rf("ES5").S(t,e,r),r?(n[ld].P&&($f(t),Cf(4)),Af(e)&&(e=Gf(t,e),t.l||Kf(t,e)),t.u&&Rf("Patches").M(n[ld],e,t.u,t.s)):e=Gf(t,n,[]),$f(t),t.u&&t.v(t.u,t.s),e!==ud?e:void 0}function Gf(e,t,n){if(Lf(t))return t;var r=t[ld];if(!r)return Of(t,(function(o,i){return qf(e,r,t,o,i,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return Kf(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=jf(r.k):r.o;Of(3===r.i?new Set(o):o,(function(t,i){return qf(e,r,o,t,i,n)})),Kf(e,o,!1),n&&e.u&&Rf("Patches").R(r,n,e.u,e.s)}return r.o}function qf(e,t,n,r,o,i){if(Sf(o)){var a=Gf(e,o,i&&t&&3!==t.i&&!Bf(t.D,r)?i.concat(r):void 0);if(Ff(n,r,a),!Sf(a))return;e.m=!1}if(Af(o)&&!Lf(o)){if(!e.h.F&&e._<1)return;Gf(e,o),t&&t.A.l||Kf(e,o)}}function Kf(e,t,n){void 0===n&&(n=!1),e.h.F&&e.m&&If(t,n)}function Xf(e,t){var n=e[ld];return(n?Pf(n):e)[t]}function Yf(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 Zf(e){e.P||(e.P=!0,e.l&&Zf(e.l))}function Jf(e){e.o||(e.o=jf(e.t))}function Qf(e,t,n){var r=Tf(t)?Rf("MapSet").N(t,n):_f(t)?Rf("MapSet").T(t,n):e.g?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:Mf(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=r,i=hd;n&&(o=[r],i=gd);var a=Proxy.revocable(o,i),u=a.revoke,s=a.proxy;return r.k=s,r.j=u,s}(t,n):Rf("ES5").J(t,n);return(n?n.A:Mf()).p.push(r),r}function ed(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return jf(e)}var td,nd,rd="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),od="undefined"!=typeof Map,id="undefined"!=typeof Set,ad="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,ud=rd?Symbol.for("immer-nothing"):((td={})["immer-nothing"]=!0,td),sd=rd?Symbol.for("immer-draftable"):"__$immer_draftable",ld=rd?Symbol.for("immer-state"):"__$immer_state",cd=""+Object.prototype.constructor,fd="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,dd=Object.getOwnPropertyDescriptors||function(e){var t={};return fd(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},pd={},hd={get:function(e,t){if(t===ld)return e;var n=Pf(e);if(!Bf(n,t))return function(e,t,n){var r,o=Yf(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||!Af(r)?r:r===Xf(e.t,t)?(Jf(e),e.o[t]=Qf(e.A.h,r,e)):r},has:function(e,t){return t in Pf(e)},ownKeys:function(e){return Reflect.ownKeys(Pf(e))},set:function(e,t,n){var r,o,i=Yf(Pf(e),t);if(null==i?void 0:i.set)return i.set.call(e.k,n),!0;if(!e.P){var a=Xf(Pf(e),t),u=null==a?void 0:a[ld];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||Bf(e.t,t)))return!0;Jf(e),Zf(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!==Xf(e.t,t)||t in e.t?(e.D[t]=!1,Jf(e),Zf(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=Pf(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(){Cf(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Cf(12)}},gd={};Of(hd,(function(e,t){gd[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),gd.deleteProperty=function(e,t){return hd.deleteProperty.call(this,e[0],t)},gd.set=function(e,t,n){return hd.set.call(this,e[0],t,n,e[0])};var vd=function(){function e(e){var t=this;this.g=ad,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&&Cf(6),void 0!==r&&"function"!=typeof r&&Cf(7),Af(e)){var u=Vf(t),s=Qf(t,e,void 0),l=!0;try{a=n(s),l=!1}finally{l?$f(u):Hf(u)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(e){return zf(u,r),Wf(e,u)}),(function(e){throw $f(u),e})):(zf(u,r),Wf(a,u))}if(!e||"object"!=typeof e){if((a=n(e))===ud)return;return void 0===a&&(a=e),t.F&&If(a,!0),a}Cf(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){Af(e)||Cf(8),Sf(e)&&(e=function(e){return Sf(e)||Cf(22,e),function e(t){if(!Af(t))return t;var n,r=t[ld],o=kf(t);if(r){if(!r.P&&(r.i<4||!Rf("ES5").K(r)))return r.t;r.I=!0,n=ed(t,o),r.I=!1}else n=ed(t,o);return Of(n,(function(t,o){var i,a;r&&(a=t,(2===kf(i=r.t)?i.get(a):i[a])===o)||Ff(n,t,e(o))})),3===o?new Set(n):n}(e)}(e));var t=Vf(this),n=Qf(this,e,void 0);return n[ld].C=!0,Hf(t),n},t.finishDraft=function(e,t){var n=(e&&e[ld]).A;return zf(n,t),Wf(void 0,n)},t.setAutoFreeze=function(e){this.F=e},t.setUseProxies=function(e){e&&!ad&&Cf(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=Rf("Patches").$;return Sf(e)?o(e,t):this.produce(e,(function(e){return o(e,t)}))},e}(),yd=new vd,md=yd.produce;yd.produceWithPatches.bind(yd),yd.setAutoFreeze.bind(yd),yd.setUseProxies.bind(yd),yd.applyPatches.bind(yd);var bd=yd.createDraft.bind(yd),wd=yd.finishDraft.bind(yd);function Ed(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xd=new WeakMap,Dd=new WeakMap,Cd=new WeakMap,Sd=new WeakMap,Ad=new WeakMap,Od=new WeakMap;function kd(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 Bd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kd(Object(n),!0).forEach((function(t){Ed(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Fd=e=>{switch(e.type){case"insert_text":case"remove_text":case"set_node":var{path:t}=e;return Ep.levels(t);case"insert_node":var{node:n,path:r}=e;return[...Ep.levels(r),...Np.isText(n)?[]:Array.from(yp.nodes(n),(e=>{var[,t]=e;return r.concat(t)}))];case"merge_node":var{path:o}=e;return[...Ep.ancestors(o),Ep.previous(o)];case"move_node":var{path:i,newPath:a}=e;if(Ep.equals(i,a))return[];var u=[],s=[];for(var l of Ep.ancestors(i)){var c=Ep.transform(l,e);u.push(c)}for(var f of Ep.ancestors(a)){var d=Ep.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[...Ep.ancestors(v)];case"split_node":var{path:y}=e;return[...Ep.levels(y),Ep.next(y)];default:return[]}};function Td(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 _d,Pd=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!t,r=t?Md(e):e,o=_d.None,i=_d.None,a=0,u=null;for(var s of r){var l=s.codePointAt(0);if(!l)break;var c=Zd(s,l);if([o,i]=n?[i,c]:[c,o],Jd(o,_d.ZWJ)&&Jd(i,_d.ExtPict)&&!np(n?e.substring(0,a):e.substring(0,e.length-a)))break;if(Jd(o,_d.RI)&&Jd(i,_d.RI)&&!(u=null!==u?!u:!!n||op(e.substring(0,e.length-a))))break;if(o!==_d.None&&i!==_d.None&&ep(o,i))break;a+=s.length}return a||1},jd=/\s/,Id=/[\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]/,Nd=/['\u2018\u2019]/,Ld=(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)]},Rd=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(jd.test(t))return!1;if(Nd.test(t)){var o=Pd(n,r),[i,a]=Ld(n,o,r);if(e(i,a,r))return!0}return!Id.test(t)},Md=function*(e){for(var t=e.length-1,n=0;n<e.length;n++){var r=e.charAt(t-n);if($d(r.charCodeAt(0))){var o=e.charAt(t-n-1);if(zd(o.charCodeAt(0))){yield o+r,n++;continue}}yield r}},zd=e=>e>=55296&&e<=56319,$d=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"}(_d||(_d={}));var Hd=/^(?:[\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])$/,Vd=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,Ud=/^(?:[\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])$/,Wd=/^[\u1100-\u115F\uA960-\uA97C]$/,Gd=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,qd=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,Kd=/^[\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]$/,Xd=/^[\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]$/,Yd=/^(?:[\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])$/,Zd=(e,t)=>{var n=_d.Any;return-1!==e.search(Hd)&&(n|=_d.Extend),8205===t&&(n|=_d.ZWJ),t>=127462&&t<=127487&&(n|=_d.RI),-1!==e.search(Vd)&&(n|=_d.Prepend),-1!==e.search(Ud)&&(n|=_d.SpacingMark),-1!==e.search(Wd)&&(n|=_d.L),-1!==e.search(Gd)&&(n|=_d.V),-1!==e.search(qd)&&(n|=_d.T),-1!==e.search(Kd)&&(n|=_d.LV),-1!==e.search(Xd)&&(n|=_d.LVT),-1!==e.search(Yd)&&(n|=_d.ExtPict),n};function Jd(e,t){return 0!=(e&t)}var Qd=[[_d.L,_d.L|_d.V|_d.LV|_d.LVT],[_d.LV|_d.V,_d.V|_d.T],[_d.LVT|_d.T,_d.T],[_d.Any,_d.Extend|_d.ZWJ],[_d.Any,_d.SpacingMark],[_d.Prepend,_d.Any],[_d.ZWJ,_d.ExtPict],[_d.RI,_d.RI]];function ep(e,t){return-1===Qd.findIndex((n=>Jd(e,n[0])&&Jd(t,n[1])))}var tp=/(?:[\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$/,np=e=>-1!==e.search(tp),rp=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,op=e=>{var t=e.match(rp);return null!==t&&t[0].length/2%2==1},ip=e=>Df(e)&&yp.isNodeList(e.children)&&!dp.isEditor(e),ap={isAncestor:e=>Df(e)&&yp.isNodeList(e.children),isElement:ip,isElementList:e=>Array.isArray(e)&&e.every((e=>ap.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 ip(e)&&e[n]===t},matches(e,t){for(var n in t)if("children"!==n&&e[n]!==t[n])return!1;return!0}},up=["text"],sp=["text"];function lp(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 cp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lp(Object(n),!0).forEach((function(t){Ed(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var fp=new WeakMap,dp={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=dp.path(e,o),u="lowest"===r;for(var[s,l]of dp.levels(e,{at:a,voids:n,match:i,reverse:u}))if(!Np.isText(s)&&!Ep.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:dp.point(e,t,{edge:"end"}),focus:dp.end(e,[])},{distance:i=1}=r,a=0;for(var u of dp.positions(e,cp(cp({},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:dp.start(e,[]),focus:dp.point(e,t,{edge:"start"})},{distance:i=1}=r,a=0;for(var u of dp.positions(e,cp(cp({},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)=>[dp.start(e,t),dp.end(e,t)],end:(e,t)=>dp.point(e,t,{edge:"end"}),first(e,t){var n=dp.path(e,t,{edge:"start"});return dp.node(e,n)},fragment(e,t){var n=dp.range(e,t);return yp.fragment(e,n)},hasBlocks:(e,t)=>t.children.some((t=>dp.isBlock(e,t))),hasInlines:(e,t)=>t.children.some((t=>Np.isText(t)||dp.isInline(e,t))),hasTexts:(e,t)=>t.children.every((e=>Np.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)=>ap.isElement(t)&&!e.isInline(t),isEditor(e){if(!Df(e))return!1;var t=fp.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||Df(e.marks))&&(null===e.selection||Bp.isRange(e.selection))&&yp.isNodeList(e.children)&&wp.isOperationList(e.operations);return fp.set(e,n),n},isEnd(e,t,n){var r=dp.end(e,n);return Sp.equals(t,r)},isEdge:(e,t,n)=>dp.isStart(e,t,n)||dp.isEnd(e,t,n),isEmpty(e,t){var{children:n}=t,[r]=n;return 0===n.length||1===n.length&&Np.isText(r)&&""===r.text&&!e.isVoid(t)},isInline:(e,t)=>ap.isElement(t)&&e.isInline(t),isNormalizing(e){var t=Cd.get(e);return void 0===t||t},isStart(e,t,n){if(0!==t.offset)return!1;var r=dp.start(e,n);return Sp.equals(t,r)},isVoid:(e,t)=>ap.isElement(t)&&e.isVoid(t),last(e,t){var n=dp.path(e,t,{edge:"end"});return dp.node(e,n)},leaf(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=dp.path(e,t,n);return[yp.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=dp.path(e,n);for(var[s,l]of yp.levels(e,u))if(i(s,l)&&(a.push([s,l]),!o&&dp.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(Bp.isExpanded(n)){var[r]=dp.nodes(e,{match:Np.isText});if(r){var[o]=r;return Td(o,up)}return{}}var{anchor:i}=n,{path:a}=i,[u]=dp.leaf(e,a);if(0===i.offset){var s=dp.previous(e,{at:a,match:Np.isText}),l=dp.above(e,{match:t=>dp.isBlock(e,t)});if(s&&l){var[c,f]=s,[,d]=l;Ep.isAncestor(d,f)&&(u=c)}}return Td(u,sp)},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=dp.after(e,i,{voids:r});if(a){var[,u]=dp.last(e,[]),s=[a.path,u];if(Ep.isPath(i)&&0===i.length)throw new Error("Cannot get the next node from the root node!");if(null==o)if(Ep.isPath(i)){var[l]=dp.parent(e,i);o=e=>l.children.includes(e)}else o=()=>!0;var[c]=dp.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=dp.path(e,t,n);return[yp.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(pp.isSpan(n))s=n[0],l=n[1];else{var c=dp.path(e,n,{edge:"start"}),f=dp.path(e,n,{edge:"end"});s=i?f:c,l=i?c:f}var d,p=yp.nodes(e,{reverse:i,from:s,to:l,pass:t=>{var[n]=t;return!a&&dp.isVoid(e,n)}}),h=[];for(var[g,v]of p){var y=d&&0===Ep.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&&Np.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=>xd.get(e)||[];if(dp.isNormalizing(e)){if(n){var o=Array.from(yp.nodes(e),(e=>{var[,t]=e;return t}));xd.set(e,o)}0!==r(e).length&&dp.withoutNormalizing(e,(()=>{for(var t of r(e))if(yp.has(e,t)){var n=dp.node(e,t),[o,i]=n;ap.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(yp.has(e,s)){var l=dp.node(e,s);e.normalizeNode(l)}u++}}))}},parent(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=dp.path(e,t,n),o=Ep.parent(r);return dp.node(e,o)},path(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{depth:r,edge:o}=n;if(Ep.isPath(t))if("start"===o){var[,i]=yp.first(e,t);t=i}else if("end"===o){var[,a]=yp.last(e,t);t=a}return Bp.isRange(t)&&(t="start"===o?Bp.start(t):"end"===o?Bp.end(t):Ep.common(t.anchor.path,t.focus.path)),Sp.isPoint(t)&&(t=t.path),null!=r&&(t=t.slice(0,r)),t},hasPath:(e,t)=>yp.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 dp.pathRefs(e).delete(o),o.current=null,t}};return dp.pathRefs(e).add(o),o},pathRefs(e){var t=Sd.get(e);return t||(t=new Set,Sd.set(e,t)),t},point(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{edge:r="start"}=n;if(Ep.isPath(t)){var o;if("end"===r){var[,i]=yp.last(e,t);o=i}else{var[,a]=yp.first(e,t);o=a}var u=yp.get(e,o);if(!Np.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(Bp.isRange(t)){var[s,l]=Bp.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 dp.pointRefs(e).delete(o),o.current=null,t}};return dp.pointRefs(e).add(o),o},pointRefs(e){var t=Ad.get(e);return t||(t=new Set,Ad.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=dp.range(e,i),[c,f]=Bp.edges(l),d=u?f:c,p=!1,h="",g=0,v=0,y=0;for(var[m,b]of dp.nodes(e,{at:i,reverse:u,voids:s})){if(ap.isElement(m)){if(!s&&e.isVoid(m)){yield dp.start(e,b);continue}if(e.isInline(m))continue;if(dp.hasInlines(e,m)){var w=Ep.isAncestor(b,f.path)?f:dp.end(e,b),E=Ep.isAncestor(b,c.path)?c:dp.start(e,b);h=dp.string(e,{anchor:E,focus:w},{voids:s}),p=!0}}if(Np.isText(m)){var x=Ep.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)?Pd(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=Pd(e,t),[i,a]=Ld(e,o,t);if(Rd(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=Ld(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=dp.before(e,i,{voids:r});if(a){var[,u]=dp.first(e,[]),s=[a.path,u];if(Ep.isPath(i)&&0===i.length)throw new Error("Cannot get the previous node from the root node!");if(null==o)if(Ep.isPath(i)){var[l]=dp.parent(e,i);o=e=>l.children.includes(e)}else o=()=>!0;var[c]=dp.nodes(e,{reverse:!0,at:s,match:o,mode:n,voids:r});return c}}},range:(e,t,n)=>Bp.isRange(t)&&!n?t:{anchor:dp.start(e,t),focus:dp.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 dp.rangeRefs(e).delete(o),o.current=null,t}};return dp.rangeRefs(e).add(o),o},rangeRefs(e){var t=Od.get(e);return t||(t=new Set,Od.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){Cd.set(e,t)},start:(e,t)=>dp.point(e,t,{edge:"start"}),string(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,o=dp.range(e,t),[i,a]=Bp.edges(o),u="";for(var[s,l]of dp.nodes(e,{at:o,match:Np.isText,voids:r})){var c=s.text;Ep.equals(l,a.path)&&(c=c.slice(0,a.offset)),Ep.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]=Bp.edges(t);if(0!==o.offset||0!==i.offset||Bp.isCollapsed(t))return t;var a=dp.above(e,{at:i,match:t=>dp.isBlock(e,t)}),u=a?a[1]:[],s={anchor:dp.start(e,[]),focus:i},l=!0;for(var[c,f]of dp.nodes(e,{at:s,match:Np.isText,reverse:!0,voids:r}))if(l)l=!1;else if(""!==c.text||Ep.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 dp.above(e,cp(cp({},t),{},{match:t=>dp.isVoid(e,t)}))},withoutNormalizing(e,t){var n=dp.isNormalizing(e);dp.setNormalizing(e,!1);try{t()}finally{dp.setNormalizing(e,n)}dp.normalize(e)}},pp={isSpan:e=>Array.isArray(e)&&2===e.length&&e.every(Ep.isPath)},hp=["children"],gp=["text"],vp=new WeakMap,yp={ancestor(e,t){var n=yp.get(e,t);if(Np.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 Ep.ancestors(t,n)){var o=[yp.ancestor(e,r),r];yield o}},child(e,t){if(Np.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=yp.ancestor(e,t),{children:i}=o,a=r?i.length-1:0;r?a>=0:a<i.length;){var u=yp.child(o,a),s=t.concat(a);yield[u,s],a=r?a-1:a+1}},common(e,t,n){var r=Ep.common(t,n);return[yp.get(e,r),r]},descendant(e,t){var n=yp.get(e,t);if(dp.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 yp.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 yp.nodes(e,t))ap.isElement(n)&&(yield[n,r])},extractProps:e=>ap.isAncestor(e)?Td(e,hp):Td(e,gp),first(e,t){for(var n=t.slice(),r=yp.get(e,n);r&&!Np.isText(r)&&0!==r.children.length;)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(Np.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(e)));var n=md({children:e.children},(e=>{var[n,r]=Bp.edges(t),o=yp.nodes(e,{reverse:!0,pass:e=>{var[,n]=e;return!Bp.includes(t,n)}});for(var[,i]of o){if(!Bp.includes(t,i)){var a=yp.parent(e,i),u=i[i.length-1];a.children.splice(u,1)}if(Ep.equals(i,r.path)){var s=yp.leaf(e,i);s.text=s.text.slice(0,r.offset)}if(Ep.equals(i,n.path)){var l=yp.leaf(e,i);l.text=l.text.slice(n.offset)}}dp.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(Np.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(Np.isText(n)||!n.children[o])return!1;n=n.children[o]}return!0},isNode:e=>Np.isText(e)||ap.isElement(e)||dp.isEditor(e),isNodeList(e){if(!Array.isArray(e))return!1;var t=vp.get(e);if(void 0!==t)return t;var n=e.every((e=>yp.isNode(e)));return vp.set(e,n),n},last(e,t){for(var n=t.slice(),r=yp.get(e,n);r&&!Np.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=yp.get(e,t);if(!Np.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 Ep.levels(t,n)){var o=yp.get(e,r);yield[o,r]}},matches:(e,t)=>ap.isElement(e)&&ap.isElementProps(t)&&ap.matches(e,t)||Np.isText(e)&&Np.isTextProps(t)&&Np.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?Ep.isBefore(u,i):Ep.isAfter(u,i));)if(a.has(s)||(yield[s,u]),a.has(s)||Np.isText(s)||0===s.children.length||null!=n&&!1!==n([s,u])){if(0===u.length)break;if(!r){var l=Ep.next(u);if(yp.has(e,l)){u=l,s=yp.get(e,u);continue}}r&&0!==u[u.length-1]?(u=Ep.previous(u),s=yp.get(e,u)):(u=Ep.parent(u),s=yp.get(e,u),a.add(s))}else{a.add(s);var c=r?s.children.length-1:0;Ep.isAncestor(u,o)&&(c=o[u.length]),u=u.concat(c),s=yp.get(e,u)}},parent(e,t){var n=Ep.parent(t),r=yp.get(e,n);if(Np.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=>Np.isText(e)?e.text:e.children.map(yp.string).join(""),*texts(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of yp.nodes(e,t))Np.isText(n)&&(yield[n,r])}};function mp(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 bp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mp(Object(n),!0).forEach((function(t){Ed(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var wp={isNodeOperation:e=>wp.isOperation(e)&&e.type.endsWith("_node"),isOperation(e){if(!Df(e))return!1;switch(e.type){case"insert_node":case"remove_node":return Ep.isPath(e.path)&&yp.isNode(e.node);case"insert_text":case"remove_text":return"number"==typeof e.offset&&"string"==typeof e.text&&Ep.isPath(e.path);case"merge_node":return"number"==typeof e.position&&Ep.isPath(e.path)&&Df(e.properties);case"move_node":return Ep.isPath(e.path)&&Ep.isPath(e.newPath);case"set_node":return Ep.isPath(e.path)&&Df(e.properties)&&Df(e.newProperties);case"set_selection":return null===e.properties&&Bp.isRange(e.newProperties)||null===e.newProperties&&Bp.isRange(e.properties)||Df(e.properties)&&Df(e.newProperties);case"split_node":return Ep.isPath(e.path)&&"number"==typeof e.position&&Df(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&e.every((e=>wp.isOperation(e))),isSelectionOperation:e=>wp.isOperation(e)&&e.type.endsWith("_selection"),isTextOperation:e=>wp.isOperation(e)&&e.type.endsWith("_text"),inverse(e){switch(e.type){case"insert_node":return bp(bp({},e),{},{type:"remove_node"});case"insert_text":return bp(bp({},e),{},{type:"remove_text"});case"merge_node":return bp(bp({},e),{},{type:"split_node",path:Ep.previous(e.path)});case"move_node":var{newPath:t,path:n}=e;if(Ep.equals(t,n))return e;if(Ep.isSibling(n,t))return bp(bp({},e),{},{path:t,newPath:n});var r=Ep.transform(n,e),o=Ep.transform(Ep.next(n),e);return bp(bp({},e),{},{path:r,newPath:o});case"remove_node":return bp(bp({},e),{},{type:"insert_node"});case"remove_text":return bp(bp({},e),{},{type:"insert_text"});case"set_node":var{properties:i,newProperties:a}=e;return bp(bp({},e),{},{properties:a,newProperties:i});case"set_selection":var{properties:u,newProperties:s}=e;return bp(bp({},e),{},null==u?{properties:s,newProperties:null}:null==s?{properties:null,newProperties:u}:{properties:s,newProperties:u});case"split_node":return bp(bp({},e),{},{type:"merge_node",path:Ep.next(e.path)})}}},Ep={ancestors(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=Ep.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 Ep.equals(r,o)&&i>a},endsAt(e,t){var n=e.length,r=e.slice(0,n),o=t.slice(0,n);return Ep.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 Ep.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===Ep.compare(e,t),isAncestor:(e,t)=>e.length<t.length&&0===Ep.compare(e,t),isBefore:(e,t)=>-1===Ep.compare(e,t),isChild:(e,t)=>e.length===t.length+1&&0===Ep.compare(e,t),isCommon:(e,t)=>e.length<=t.length&&0===Ep.compare(e,t),isDescendant:(e,t)=>e.length>t.length&&0===Ep.compare(e,t),isParent:(e,t)=>e.length+1===t.length&&0===Ep.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]&&Ep.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(!Ep.isAncestor(t,e)&&!Ep.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 md(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;(Ep.equals(i,r)||Ep.endsBefore(i,r)||Ep.isAncestor(i,r))&&(r[i.length-1]+=1);break;case"remove_node":var{path:a}=t;if(Ep.equals(a,r)||Ep.isAncestor(a,r))return null;Ep.endsBefore(a,r)&&(r[a.length-1]-=1);break;case"merge_node":var{path:u,position:s}=t;Ep.equals(u,r)||Ep.endsBefore(u,r)?r[u.length-1]-=1:Ep.isAncestor(u,r)&&(r[u.length-1]-=1,r[u.length]+=s);break;case"split_node":var{path:l,position:c}=t;if(Ep.equals(l,r)){if("forward"===o)r[r.length-1]+=1;else if("backward"!==o)return null}else Ep.endsBefore(l,r)?r[l.length-1]+=1:Ep.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(Ep.equals(f,d))return;if(Ep.isAncestor(f,r)||Ep.equals(f,r)){var p=d.slice();return Ep.endsBefore(f,d)&&f.length<d.length&&(p[f.length-1]-=1),p.concat(r.slice(f.length))}Ep.isSibling(f,d)&&(Ep.isAncestor(d,r)||Ep.equals(d,r))?Ep.endsBefore(f,r)?r[f.length-1]-=1:r[f.length-1]+=1:Ep.endsBefore(d,r)||Ep.equals(d,r)||Ep.isAncestor(d,r)?(Ep.endsBefore(f,r)&&(r[f.length-1]-=1),r[d.length-1]+=1):Ep.endsBefore(f,r)&&(Ep.equals(d,r)&&(r[d.length-1]+=1),r[f.length-1]-=1)}}}))}},xp={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=Ep.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}};function Dp(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 Cp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dp(Object(n),!0).forEach((function(t){Ed(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Sp={compare(e,t){var n=Ep.compare(e.path,t.path);return 0===n?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter:(e,t)=>1===Sp.compare(e,t),isBefore:(e,t)=>-1===Sp.compare(e,t),equals:(e,t)=>e.offset===t.offset&&Ep.equals(e.path,t.path),isPoint:e=>Df(e)&&"number"==typeof e.offset&&Ep.isPath(e.path),transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return md(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=Ep.transform(o,t,n);break;case"insert_text":Ep.equals(t.path,o)&&t.offset<=i&&(e.offset+=t.text.length);break;case"merge_node":Ep.equals(t.path,o)&&(e.offset+=t.position),e.path=Ep.transform(o,t,n);break;case"remove_text":Ep.equals(t.path,o)&&t.offset<=i&&(e.offset-=Math.min(i-t.offset,t.text.length));break;case"remove_node":if(Ep.equals(t.path,o)||Ep.isAncestor(t.path,o))return null;e.path=Ep.transform(o,t,n);break;case"split_node":if(Ep.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=Ep.transform(o,t,Cp(Cp({},n),{},{affinity:"forward"})))}else e.path=Ep.transform(o,t,n)}}))}},Ap={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=Sp.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}},Op=["anchor","focus"];function kp(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 Bp={edges(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:o}=e;return Bp.isBackward(e)===n?[r,o]:[o,r]},end(e){var[,t]=Bp.edges(e);return t},equals:(e,t)=>Sp.equals(e.anchor,t.anchor)&&Sp.equals(e.focus,t.focus),includes(e,t){if(Bp.isRange(t)){if(Bp.includes(e,t.anchor)||Bp.includes(e,t.focus))return!0;var[n,r]=Bp.edges(e),[o,i]=Bp.edges(t);return Sp.isBefore(n,o)&&Sp.isAfter(r,i)}var[a,u]=Bp.edges(e),s=!1,l=!1;return Sp.isPoint(t)?(s=Sp.compare(t,a)>=0,l=Sp.compare(t,u)<=0):(s=Ep.compare(t,a.path)>=0,l=Ep.compare(t,u.path)<=0),s&&l},intersection(e,t){var n=Td(e,Op),[r,o]=Bp.edges(e),[i,a]=Bp.edges(t),u=Sp.isBefore(r,i)?i:r,s=Sp.isBefore(o,a)?o:a;return Sp.isBefore(s,u)?null:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kp(Object(n),!0).forEach((function(t){Ed(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kp(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 Sp.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return Sp.equals(t,n)},isExpanded:e=>!Bp.isCollapsed(e),isForward:e=>!Bp.isBackward(e),isRange:e=>Df(e)&&Sp.isPoint(e.anchor)&&Sp.isPoint(e.focus),*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=Bp.edges(e);return t},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return md(e,(e=>{if(null===e)return null;var r,o,{affinity:i="inward"}=n;if("inward"===i){var a=Bp.isCollapsed(e);Bp.isForward(e)?(r="forward",o=a?r:"backward"):(r="backward",o=a?r:"forward")}else"outward"===i?Bp.isForward(e)?(r="backward",o="forward"):(r="forward",o="backward"):(r=i,o=i);var u=Sp.transform(e.anchor,t,{affinity:r}),s=Sp.transform(e.focus,t,{affinity:o});if(!u||!s)return null;e.anchor=u,e.focus=s}))}},Fp={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=Bp.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}},Tp=(e,t)=>{for(var n in e){var r=e[n],o=t[n];if(Df(r)&&Df(o)){if(!Tp(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},_p=["text"],Pp=["anchor","focus"];function jp(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 Ip(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jp(Object(n),!0).forEach((function(t){Ed(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Np={equals(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{loose:r=!1}=n;function o(e){return Td(e,_p)}return Tp(r?o(e):e,r?o(t):t)},isText:e=>Df(e)&&"string"==typeof e.text,isTextList:e=>Array.isArray(e)&&e.every((e=>Np.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=[Ip({},e)];for(var r of t){var o=Td(r,Pp),[i,a]=Bp.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=Ip(Ip({},d),{},{text:d.text.slice(g)}),d=Ip(Ip({},d),{},{text:d.text.slice(0,g)})}if(i.offset>f){var v=i.offset-f;p=Ip(Ip({},d),{},{text:d.text.slice(0,v)}),d=Ip(Ip({},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 Lp(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 Rp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lp(Object(n),!0).forEach((function(t){Ed(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Mp={transform(e,t){e.children=bd(e.children);var n=e.selection&&bd(e.selection);try{n=((e,t,n)=>{switch(n.type){case"insert_node":var{path:r,node:o}=n,i=yp.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 Bp.points(t))t[s]=Sp.transform(u,n);break;case"insert_text":var{path:l,offset:c,text:f}=n;if(0===f.length)break;var d=yp.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 Bp.points(t))t[v]=Sp.transform(g,n);break;case"merge_node":var{path:y}=n,m=yp.get(e,y),b=Ep.previous(y),w=yp.get(e,b),E=yp.parent(e,y),x=y[y.length-1];if(Np.isText(m)&&Np.isText(w))w.text+=m.text;else{if(Np.isText(m)||Np.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 Bp.points(t))t[C]=Sp.transform(D,n);break;case"move_node":var{path:S,newPath:A}=n;if(Ep.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=yp.get(e,S),k=yp.parent(e,S),B=S[S.length-1];k.children.splice(B,1);var F=Ep.transform(S,n),T=yp.get(e,Ep.parent(F)),_=F[F.length-1];if(T.children.splice(_,0,O),t)for(var[P,j]of Bp.points(t))t[j]=Sp.transform(P,n);break;case"remove_node":var{path:I}=n,N=I[I.length-1];if(yp.parent(e,I).children.splice(N,1),t)for(var[L,R]of Bp.points(t)){var M=Sp.transform(L,n);if(null!=t&&null!=M)t[R]=M;else{var z=void 0,$=void 0;for(var[H,V]of yp.texts(e)){if(-1!==Ep.compare(V,I)){$=[H,V];break}z=[H,V]}var U=!1;z&&$&&(U=Ep.equals($[1],I)?!Ep.hasPrevious($[1]):Ep.common(z[1],I).length<Ep.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=yp.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 Bp.points(t))t[J]=Sp.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=yp.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(!Bp.isRange(ae))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(ae)," when there is no current selection."));t=Rp({},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=yp.get(e,le),he=yp.parent(e,le),ge=le[le.length-1];if(Np.isText(pe)){var ve=pe.text.slice(0,ce),ye=pe.text.slice(ce);pe.text=ve,de=Rp(Rp({},fe),{},{text:ye})}else{var me=pe.children.slice(0,ce),be=pe.children.slice(ce);pe.children=me,de=Rp(Rp({},fe),{},{children:be})}if(he.children.splice(ge+1,0,de),t)for(var[we,Ee]of Bp.points(t))t[Ee]=Sp.transform(we,n)}return t})(e,n,t)}finally{e.children=wd(e.children),e.selection=n?Sf(n)?wd(n):n:null}}},zp=["text"],$p=["children"];function Hp(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 Vp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hp(Object(n),!0).forEach((function(t){Ed(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Up={insertNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};dp.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:o=!1,mode:i="lowest"}=n,{at:a,match:u,select:s}=n;if(yp.isNode(t)&&(t=[t]),0!==t.length){var[l]=t;if(a||(a=e.selection?e.selection:e.children.length>0?dp.end(e,[]):[0],s=!0),null==s&&(s=!1),Bp.isRange(a))if(r||(a=dp.unhangRange(e,a)),Bp.isCollapsed(a))a=a.anchor;else{var[,c]=Bp.edges(a),f=dp.pointRef(e,c);eh.delete(e,{at:a}),a=f.unref()}if(Sp.isPoint(a)){null==u&&(u=Np.isText(l)?e=>Np.isText(e):e.isInline(l)?t=>Np.isText(t)||dp.isInline(e,t):t=>dp.isBlock(e,t));var[d]=dp.nodes(e,{at:a.path,match:u,mode:i,voids:o});if(!d)return;var[,p]=d,h=dp.pathRef(e,p),g=dp.isEnd(e,a,p);eh.splitNodes(e,{at:a,match:u,mode:i,voids:o});var v=h.unref();a=g?Ep.next(v):v}var y=Ep.parent(a),m=a[a.length-1];if(o||!dp.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=Ep.next(a)}if(a=Ep.previous(a),s){var E=dp.end(e,a);E&&eh.select(e,E)}}}}))},liftNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};dp.withoutNormalizing(e,(()=>{var{at:n=e.selection,mode:r="lowest",voids:o=!1}=t,{match:i}=t;if(null==i&&(i=Ep.isPath(n)?qp(e,n):t=>dp.isBlock(e,t)),n){var a=dp.nodes(e,{at:n,match:i,mode:r,voids:o}),u=Array.from(a,(t=>{var[,n]=t;return dp.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=dp.node(e,Ep.parent(l)),[f,d]=c,p=l[l.length-1],{length:h}=f.children;if(1===h){var g=Ep.next(d);eh.moveNodes(e,{at:l,to:g,voids:o}),eh.removeNodes(e,{at:d,voids:o})}else if(0===p)eh.moveNodes(e,{at:l,to:d,voids:o});else if(p===h-1){var v=Ep.next(d);eh.moveNodes(e,{at:l,to:v,voids:o})}else{var y=Ep.next(l),m=Ep.next(d);eh.splitNodes(e,{at:y,voids:o}),eh.moveNodes(e,{at:l,to:m,voids:o})}}}}))},mergeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};dp.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(Ep.isPath(r)){var[u]=dp.parent(e,r);n=e=>u.children.includes(e)}else n=t=>dp.isBlock(e,t);if(!o&&Bp.isRange(r)&&(r=dp.unhangRange(e,r)),Bp.isRange(r))if(Bp.isCollapsed(r))r=r.anchor;else{var[,s]=Bp.edges(r),l=dp.pointRef(e,s);eh.delete(e,{at:r}),r=l.unref(),null==t.at&&eh.select(e,r)}var[c]=dp.nodes(e,{at:r,match:n,voids:i,mode:a}),f=dp.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=Ep.next(g),b=Ep.common(p,g),w=Ep.isSibling(p,g),E=Array.from(dp.levels(e,{at:p}),(e=>{var[t]=e;return t})).slice(b.length).slice(0,-1),x=dp.above(e,{at:p,mode:"highest",match:t=>E.includes(t)&&Wp(e,t)}),D=x&&dp.pathRef(e,x[1]);if(Np.isText(d)&&Np.isText(h)){var C=Td(d,zp);y=h.text.length,v=C}else{if(!ap.isElement(d)||!ap.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=Td(d,$p),y=h.children.length,v=C}w||eh.moveNodes(e,{at:p,to:m,voids:i}),D&&eh.removeNodes(e,{at:D.current,voids:i}),ap.isElement(h)&&dp.isEmpty(e,h)||Np.isText(h)&&""===h.text&&0!==g[g.length-1]?eh.removeNodes(e,{at:g,voids:i}):e.apply({type:"merge_node",path:m,position:y,properties:v}),D&&D.unref()}}}}))},moveNodes(e,t){dp.withoutNormalizing(e,(()=>{var{to:n,at:r=e.selection,mode:o="lowest",voids:i=!1}=t,{match:a}=t;if(r){null==a&&(a=Ep.isPath(r)?qp(e,r):t=>dp.isBlock(e,t));var u=dp.pathRef(e,n),s=dp.nodes(e,{at:r,match:a,mode:o,voids:i}),l=Array.from(s,(t=>{var[,n]=t;return dp.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&&Ep.isSibling(d,f)&&Ep.isAfter(d,f)&&(u.current=Ep.next(u.current))}u.unref()}}))},removeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};dp.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=Ep.isPath(i)?qp(e,i):t=>dp.isBlock(e,t)),!n&&Bp.isRange(i)&&(i=dp.unhangRange(e,i));var u=dp.nodes(e,{at:i,match:a,mode:o,voids:r}),s=Array.from(u,(t=>{var[,n]=t;return dp.pathRef(e,n)}));for(var l of s){var c=l.unref();if(c){var[f]=dp.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]:{};dp.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=Ep.isPath(o)?qp(e,o):t=>dp.isBlock(e,t)),!i&&Bp.isRange(o)&&(o=dp.unhangRange(e,o)),u&&Bp.isRange(o)){if(Bp.isCollapsed(o)&&dp.leaf(e,o.anchor)[0].text.length>0)return;var l=dp.rangeRef(e,o,{affinity:"inward"}),[c,f]=Bp.edges(o),d="lowest"===a?"lowest":"highest",p=dp.isEnd(e,f,f.path);eh.splitNodes(e,{at:f,match:r,mode:d,voids:s,always:!p});var h=dp.isStart(e,c,c.path);eh.splitNodes(e,{at:c,match:r,mode:d,voids:s,always:!h}),o=l.unref(),null==n.at&&eh.select(e,o)}for(var[g,v]of dp.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]:{};dp.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=>dp.isBlock(e,t)),Bp.isRange(i)&&(i=Gp(e,i)),Ep.isPath(i)){var s=i,l=dp.point(e,s),[c]=dp.parent(e,s);o=e=>e===c,a=l.path.length-s.length+1,i=l,u=!0}if(i){var f=dp.pointRef(e,i,{affinity:"backward"}),[d]=dp.nodes(e,{at:i,match:o,mode:n,voids:r});if(d){var p=dp.void(e,{at:i,mode:"highest"});if(!r&&p){var[h,g]=p;if(ap.isElement(h)&&e.isInline(h)){var v=dp.after(e,g);if(!v){var y=Ep.next(g);eh.insertNodes(e,{text:""},{at:y,voids:r}),v=dp.point(e,y)}i=v,u=!0}a=i.path.length-g.length+1,u=!0}var m=dp.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 dp.levels(e,{at:E,reverse:!0,voids:r})){var S=!1;if(C.length<w.length||0===C.length||!r&&dp.isVoid(e,D))break;var A=f.current,O=dp.isEnd(e,A,C);if(u||!f||!dp.isEdge(e,A,C)){S=!0;var k=yp.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||dp.end(e,[]);eh.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;eh.setNodes(e,r,n)},unwrapNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};dp.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=Ep.isPath(i)?qp(e,i):t=>dp.isBlock(e,t)),Ep.isPath(i)&&(i=dp.range(e,i));var u=Bp.isRange(i)?dp.rangeRef(e,i):null,s=dp.nodes(e,{at:i,match:a,mode:n,voids:o}),l=Array.from(s,(t=>{var[,n]=t;return dp.pathRef(e,n)})).reverse(),c=function(t){var n=t.unref(),[i]=dp.node(e,n),a=dp.range(e,n);r&&u&&(a=Bp.intersection(u.current,a)),eh.liftNodes(e,{at:a,match:e=>ap.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]:{};dp.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=Ep.isPath(u)?qp(e,u):e.isInline(t)?t=>dp.isInline(e,t)||Np.isText(t):t=>dp.isBlock(e,t)),o&&Bp.isRange(u)){var[s,l]=Bp.edges(u),c=dp.rangeRef(e,u,{affinity:"inward"});eh.splitNodes(e,{at:l,match:a,voids:i}),eh.splitNodes(e,{at:s,match:a,voids:i}),u=c.unref(),null==n.at&&eh.select(e,u)}var f=Array.from(dp.nodes(e,{at:u,match:e.isInline(t)?t=>dp.isBlock(e,t):e=>dp.isEditor(e),mode:"lowest",voids:i}));for(var[,d]of f){var p=Bp.isRange(u)?Bp.intersection(u,dp.range(e,d)):u;if(p){var h=Array.from(dp.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=Ep.equals(o,a)?Ep.parent(o):Ep.common(o,a),s=dp.range(e,o,a),l=dp.node(e,u),[c]=l,f=u.length+1,d=Ep.next(a.slice(0,f)),p=Vp(Vp({},t),{},{children:[]});eh.insertNodes(e,p,{at:d,voids:i}),eh.moveNodes(e,{at:s,match:e=>ap.isAncestor(c)&&c.children.includes(e),to:d.concat(0),voids:i})}())continue}}}}))}},Wp=(e,t)=>{if(ap.isElement(t)){var n=t;return!!dp.isVoid(e,t)||1===n.children.length&&Wp(e,n.children[0])}return!dp.isEditor(t)},Gp=(e,t)=>{if(Bp.isCollapsed(t))return t.anchor;var[,n]=Bp.edges(t),r=dp.pointRef(e,n);return eh.delete(e,{at:t}),r.unref()},qp=(e,t)=>{var[n]=dp.node(e,t);return e=>e===n};function Kp(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 Xp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kp(Object(n),!0).forEach((function(t){Ed(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Yp={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)eh.select(e,r.anchor);else if("focus"===n)eh.select(e,r.focus);else if("start"===n){var[o]=Bp.edges(r);eh.select(e,o)}else if("end"===n){var[,i]=Bp.edges(r);eh.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=Bp.isBackward(n)?"focus":"anchor"),"end"===a&&(a=Bp.isBackward(n)?"anchor":"focus");var{anchor:u,focus:s}=n,l={distance:r,unit:o},c={};if(null==a||"anchor"===a){var f=i?dp.before(e,u,l):dp.after(e,u,l);f&&(c.anchor=f)}if(null==a||"focus"===a){var d=i?dp.before(e,s,l):dp.after(e,s,l);d&&(c.focus=d)}eh.setSelection(e,c)}},select(e,t){var{selection:n}=e;if(t=dp.range(e,t),n)eh.setSelection(e,t);else{if(!Bp.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=Bp.isBackward(r)?"focus":"anchor"),"end"===o&&(o=Bp.isBackward(r)?"anchor":"focus");var{anchor:i,focus:a}=r,u="anchor"===o?i:a;eh.setSelection(e,{["anchor"===o?"anchor":"focus"]:Xp(Xp({},u),t)})}},setSelection(e,t){var{selection:n}=e,r={},o={};if(n){for(var i in t)("anchor"===i&&null!=t.anchor&&!Sp.equals(t.anchor,n.anchor)||"focus"===i&&null!=t.focus&&!Sp.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})}}},Zp={delete(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};dp.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(Bp.isRange(a)&&Bp.isCollapsed(a)&&(a=a.anchor),Sp.isPoint(a)){var s=dp.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?dp.before(e,a,c)||dp.start(e,[]):dp.after(e,a,c)||dp.end(e,[])},u=!0}}if(Ep.isPath(a))eh.removeNodes(e,{at:a,voids:i});else if(!Bp.isCollapsed(a)){if(!u){var[,f]=Bp.edges(a),d=dp.end(e,[]);Sp.equals(f,d)||(a=dp.unhangRange(e,a,{voids:i}))}var[p,h]=Bp.edges(a),g=dp.above(e,{match:t=>dp.isBlock(e,t),at:p,voids:i}),v=dp.above(e,{match:t=>dp.isBlock(e,t),at:h,voids:i}),y=g&&v&&!Ep.equals(g[1],v[1]),m=Ep.equals(p.path,h.path),b=i?null:dp.void(e,{at:p,mode:"highest"}),w=i?null:dp.void(e,{at:h,mode:"highest"});if(b){var E=dp.before(e,p);E&&g&&Ep.isAncestor(g[1],E.path)&&(p=E)}if(w){var x=dp.after(e,h);x&&v&&Ep.isAncestor(v[1],x.path)&&(h=x)}var D,C=[];for(var S of dp.nodes(e,{at:a,voids:i})){var[A,O]=S;D&&0===Ep.compare(O,D)||(!i&&dp.isVoid(e,A)||!Ep.isCommon(O,p.path)&&!Ep.isCommon(O,h.path))&&(C.push(S),D=O)}var k=Array.from(C,(t=>{var[,n]=t;return dp.pathRef(e,n)})),B=dp.pointRef(e,p),F=dp.pointRef(e,h);if(!m&&!b){var T=B.current,[_]=dp.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();eh.removeNodes(e,{at:L,voids:i})}if(!w){var R=F.current,[M]=dp.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&&eh.mergeNodes(e,{at:F.current,hanging:!0,voids:i});var V=n?B.unref()||F.unref():F.unref()||B.unref();null==t.at&&V&&eh.select(e,V)}}}))},insertFragment(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};dp.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:o=!1}=n,{at:i=e.selection}=n;if(t.length&&i){if(Bp.isRange(i))if(r||(i=dp.unhangRange(e,i)),Bp.isCollapsed(i))i=i.anchor;else{var[,a]=Bp.edges(i);if(!o&&dp.void(e,{at:a}))return;var u=dp.pointRef(e,a);eh.delete(e,{at:i}),i=u.unref()}else Ep.isPath(i)&&(i=dp.start(e,i));if(o||!dp.void(e,{at:i})){var s=dp.above(e,{at:i,match:t=>dp.isInline(e,t),mode:"highest",voids:o});if(s){var[,l]=s;dp.isEnd(e,i,l)?i=dp.after(e,l):dp.isStart(e,i,l)&&(i=dp.before(e,l))}var c=dp.above(e,{match:t=>dp.isBlock(e,t),at:i,voids:o}),[,f]=c,d=dp.isStart(e,i,f),p=dp.isEnd(e,i,f),h=d&&p,g=!d||d&&p,v=!p,[,y]=yp.first({children:t},[]),[,m]=yp.last({children:t},[]),b=[],w=t=>{var[n,r]=t;return!(0===r.length||!h&&(g&&Ep.isAncestor(r,y)&&ap.isElement(n)&&!e.isVoid(n)&&!e.isInline(n)||v&&Ep.isAncestor(r,m)&&ap.isElement(n)&&!e.isVoid(n)&&!e.isInline(n)))};for(var E of yp.nodes({children:t},{pass:w}))w(E)&&b.push(E);var x=[],D=[],C=[],S=!0,A=!1;for(var[O]of b)ap.isElement(O)&&!e.isInline(O)?(S=!1,A=!0,D.push(O)):S?x.push(O):C.push(O);var[k]=dp.nodes(e,{at:i,match:t=>Np.isText(t)||dp.isInline(e,t),mode:"highest",voids:o}),[,B]=k,F=dp.isStart(e,i,B),T=dp.isEnd(e,i,B),_=dp.pathRef(e,p?Ep.next(f):f),P=dp.pathRef(e,T?Ep.next(B):B),j=dp.pathRef(e,f);eh.splitNodes(e,{at:i,match:t=>A?dp.isBlock(e,t):Np.isText(t)||dp.isInline(e,t),mode:A?"lowest":"highest",voids:o});var I=dp.pathRef(e,!F||F&&T?Ep.next(B):B);if(eh.insertNodes(e,x,{at:I.current,match:t=>Np.isText(t)||dp.isInline(e,t),mode:"highest",voids:o}),h&&D.length&&eh.delete(e,{at:j.unref(),voids:o}),eh.insertNodes(e,D,{at:_.current,match:t=>dp.isBlock(e,t),mode:"lowest",voids:o}),eh.insertNodes(e,C,{at:P.current,match:t=>Np.isText(t)||dp.isInline(e,t),mode:"highest",voids:o}),!n.at){var N;N=C.length>0?Ep.previous(P.current):D.length>0?Ep.previous(_.current):Ep.previous(I.current);var L=dp.end(e,N);eh.select(e,L)}I.unref(),_.unref(),P.unref()}}}))},insertText(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};dp.withoutNormalizing(e,(()=>{var{voids:r=!1}=n,{at:o=e.selection}=n;if(o){if(Ep.isPath(o)&&(o=dp.range(e,o)),Bp.isRange(o))if(Bp.isCollapsed(o))o=o.anchor;else{var i=Bp.end(o);if(!r&&dp.void(e,{at:i}))return;var a=dp.pointRef(e,i);eh.delete(e,{at:o,voids:r}),o=a.unref(),eh.setSelection(e,{anchor:o,focus:o})}if(r||!dp.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 Jp(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 Qp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jp(Object(n),!0).forEach((function(t){Ed(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var eh=Qp(Qp(Qp(Qp({},Mp),Up),Yp),Zp),th="[object Map]",nh="[object Set]",rh=/^\[object .+?Constructor\]$/,oh=/^(?:0|[1-9]\d*)$/,ih="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",ah="\\ud83c[\\udffb-\\udfff]",uh="[^\\ud800-\\udfff]",sh="(?:\\ud83c[\\udde6-\\uddff]){2}",lh="[\\ud800-\\udbff][\\udc00-\\udfff]",ch="(?:"+ih+"|"+ah+")?",fh="[\\ufe0e\\ufe0f]?"+ch+"(?:\\u200d(?:"+[uh,sh,lh].join("|")+")[\\ufe0e\\ufe0f]?"+ch+")*",dh="(?:"+[uh+ih+"?",ih,sh,lh,"[\\ud800-\\udfff]"].join("|")+")",ph=RegExp(ah+"(?="+ah+")|"+dh+fh,"g"),hh=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),gh="object"==typeof Ve&&Ve&&Ve.Object===Object&&Ve,vh="object"==typeof self&&self&&self.Object===Object&&self,yh=gh||vh||Function("return this")();function mh(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function bh(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var wh,Eh,xh=Function.prototype,Dh=Object.prototype,Ch=yh["__core-js_shared__"],Sh=function(){var e=/[^.]+$/.exec(Ch&&Ch.keys&&Ch.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Ah=xh.toString,Oh=Dh.hasOwnProperty,kh=Dh.toString,Bh=RegExp("^"+Ah.call(Oh).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Fh=yh.Symbol,Th=Fh?Fh.iterator:void 0,_h=Dh.propertyIsEnumerable,Ph=(wh=Object.keys,Eh=Object,function(e){return wh(Eh(e))}),jh=Uh(yh,"DataView"),Ih=Uh(yh,"Map"),Nh=Uh(yh,"Promise"),Lh=Uh(yh,"Set"),Rh=Uh(yh,"WeakMap"),Mh=qh(jh),zh=qh(Ih),$h=qh(Nh),Hh=qh(Lh),Vh=qh(Rh);function Uh(e,t){var n,r,o=(r=t,null==(n=e)?void 0:n[r]);return function(e){if(!Zh(e)||(t=e,Sh&&Sh in t))return!1;var t,n=Yh(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}(e)?Bh:rh;return n.test(qh(e))}(o)?o:void 0}var Wh=function(e){return kh.call(e)};function Gh(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||oh.test(e))&&e>-1&&e%1==0&&e<t}function qh(e){if(null!=e){try{return Ah.call(e)}catch(t){}try{return e+""}catch(t){}}return""}(jh&&"[object DataView]"!=Wh(new jh(new ArrayBuffer(1)))||Ih&&Wh(new Ih)!=th||Nh&&"[object Promise]"!=Wh(Nh.resolve())||Lh&&Wh(new Lh)!=nh||Rh&&"[object WeakMap]"!=Wh(new Rh))&&(Wh=function(e){var t=kh.call(e),n="[object Object]"==t?e.constructor:void 0,r=n?qh(n):void 0;if(r)switch(r){case Mh:return"[object DataView]";case zh:return th;case $h:return"[object Promise]";case Hh:return nh;case Vh:return"[object WeakMap]"}return t});var Kh=Array.isArray;function Xh(e){return null!=e&&("number"==typeof(t=e.length)&&t>-1&&t%1==0&&t<=9007199254740991)&&!Yh(e);var t}function Yh(e){var t=Zh(e)?kh.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function Zh(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Jh(e){return!!e&&"object"==typeof e}function Qh(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,Xh(t=e)?function(e,t){var n,r,o=Kh(e)||Jh(r=n=e)&&Xh(r)&&Oh.call(n,"callee")&&(!_h.call(n,"callee")||"[object Arguments]"==kh.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&&!Oh.call(e,u)||a&&("length"==u||Gh(u,i))||o.push(u);return o}(t):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||Dh))return Ph(e);var t,n,r=[];for(var o in Object(e))Oh.call(e,o)&&"constructor"!=o&&r.push(o);return r}(t)):[];var t}var eg=function(e){if(!e)return[];if(Xh(e))return"string"==typeof(t=e)||!Kh(t)&&Jh(t)&&"[object String]"==kh.call(t)?function(e){return t=e,hh.test(t)?function(e){return e.match(ph)||[]}(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(Th&&e[Th])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Th]());var n=Wh(e);return(n==th?mh:n==nh?bh:Qh)(e)};function tg(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function ng(e,t){void 0===e&&(e={}),void 0===t&&(t={}),Object.keys(t).forEach((function(n){void 0===e[n]?e[n]=t[n]:tg(t[n])&&tg(e[n])&&Object.keys(t[n]).length>0&&ng(e[n],t[n])}))}var rg={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 og(){var e="undefined"!=typeof document?document:{};return ng(e,rg),e}var ig={document:rg,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 ag(){var e="undefined"!=typeof window?window:{};return ng(e,ig),e}function ug(e){return(ug=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function sg(e,t){return(sg=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function lg(){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(hf){return!1}}function cg(e,t,n){return cg=lg()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&sg(o,n.prototype),o},cg.apply(null,arguments)}function fg(e){var t="function"==typeof Map?new Map:void 0;return fg=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 cg(e,arguments,ug(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),sg(r,e)},fg(e)}var dg=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}(fg(Array));function pg(e){void 0===e&&(e=[]);var t=[];return e.forEach((function(e){Array.isArray(e)?t.push.apply(t,pg(e)):t.push(e)})),t}function hg(e,t){return Array.prototype.filter.call(e,t)}function gg(e,t){var n=ag(),r=og(),o=[];if(!t&&e instanceof dg)return e;if(!e)return new dg(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 dg)return e;o=e}return new dg(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 vg(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=pg(t.map((function(e){return e.split(" ")})));return this.forEach((function(e){var t;(t=e.classList).add.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=pg(t.map((function(e){return e.split(" ")})));return this.forEach((function(e){var t;(t=e.classList).remove.apply(t,r)})),this}function mg(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=pg(t.map((function(e){return e.split(" ")})));return hg(this,(function(e){return r.filter((function(t){return e.classList.contains(t)})).length>0})).length>0}function bg(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 wg(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function Eg(){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 xg(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 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 u(e){var t=e.target;if(t){var n=e.target.dom7EventData||[];if(n.indexOf(e)<0&&n.unshift(e),gg(t).is(o))i.apply(t,n);else for(var r=gg(t).parents(),a=0;a<r.length;a+=1)gg(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 Cg(){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 Sg(){var e=ag();return this[0]===e?e.innerWidth:this.length>0?parseFloat(this.css("width")):null}function Ag(){var e=ag();return this[0]===e?e.innerHeight:this.length>0?parseFloat(this.css("height")):null}function Og(){if(this.length>0){var e=ag(),t=og(),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 kg(){for(var e=0;e<this.length;e+=1)this[e].style.display="none";return this}function Bg(){for(var e=ag(),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 Fg(e,t){var n,r=ag();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 Tg(e){return e?(this.forEach((function(t,n){e.apply(t,[t,n])})),this):this}function _g(e){return gg(hg(this,e))}function Pg(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 jg(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 Ig(e){var t,n,r=ag(),o=og(),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=gg(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 dg){for(t=e.nodeType?[e]:e,n=0;n<t.length;n+=1)if(t[n]===i)return!0;return!1}return!1}function Ng(){for(var e,t=og(),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 dg)for(var i=0;i<e.length;i+=1)this[r].appendChild(e[i]);else this[r].appendChild(e)}return this}function Lg(e){var t,n,r=og();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 dg)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 Rg(e){for(var t=[],n=0;n<this.length;n+=1)null!==this[n].parentNode&&(e?gg(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return gg(t)}function Mg(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].parentNode;r;)e?gg(r).is(e)&&t.push(r):t.push(r),r=r.parentNode;return gg(t)}function zg(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 gg(t)}function $g(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&&!gg(r[o]).is(e)||t.push(r[o]);return gg(t)}function Hg(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function Vg(){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}gg.fn=dg.prototype;var Ug="resize scroll".split(" ");function Wg(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)Ug.indexOf(e)<0&&(e in this[o]?this[o][e]():gg(this[o]).trigger(e));return this}return this.on.apply(this,[e].concat(n))}}var Gg=Wg("click"),qg=Wg("focus"),Kg=/^(?:0|[1-9]\d*)$/;function Xg(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););return e}var Yg=Object.prototype,Zg=Yg.hasOwnProperty,Jg=Yg.toString,Qg=Yg.propertyIsEnumerable,ev=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object);var tv,nv=(tv=function(e,t){return e&&rv(e,t,uv)},function(e,t){if(null==e)return e;if(!av(e))return tv(e,t);for(var n=e.length,r=-1,o=Object(e);++r<n&&!1!==t(o[r],r,o););return e}),rv=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 ov(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||Kg.test(e))&&e>-1&&e%1==0&&e<t}var iv=Array.isArray;function av(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?"":Jg.call(e));return"[object Function]"==r||"[object GeneratorFunction]"==r}(e);var t}function uv(e){return av(e)?function(e,t){var n,r,o,i=iv(e)||(o=r=n=e)&&"object"==typeof o&&av(r)&&Zg.call(n,"callee")&&(!Qg.call(n,"callee")||"[object Arguments]"==Jg.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&&!Zg.call(e,s)||u&&("length"==s||ov(s,a))||i.push(s);return i}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||Yg))return ev(e);var t,n,r=[];for(var o in Object(e))Zg.call(e,o)&&"constructor"!=o&&r.push(o);return r}(e)}function sv(e){return e}var lv=function(e,t){return(iv(e)?Xg:nv)(e,"function"==typeof t?t:sv)};let cv=(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 fv=/^\s+|\s+$/g,dv=/^[-+]0x[0-9a-f]+$/i,pv=/^0b[01]+$/i,hv=/^0o[0-7]+$/i,gv=parseInt,vv="object"==typeof Ve&&Ve&&Ve.Object===Object&&Ve,yv="object"==typeof self&&self&&self.Object===Object&&self,mv=vv||yv||Function("return this")(),bv=Object.prototype.toString,wv=Math.max,Ev=Math.min,xv=function(){return mv.Date.now()};function Dv(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Cv(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||(n=t)&&"object"==typeof n&&"[object Symbol]"==bv.call(t))return NaN;var t,n;if(Dv(e)){var r="function"==typeof e.valueOf?e.valueOf():e;e=Dv(r)?r+"":r}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(fv,"");var o=pv.test(e);return o||hv.test(e)?gv(e.slice(2),o?2:8):dv.test(e)?NaN:+e}var Sv=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return Dv(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=xv();if(g(r))return y(r);u=setTimeout(v,(n=t-((e=r)-s),f?Ev(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=xv(),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=Cv(t)||0,Dv(n)&&(c=!!n.leading,i=(f="maxWait"in n)?wv(Cv(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(xv())},m}(e,t,{leading:r,maxWait:t,trailing:o})};const Av={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 Ov(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 kv=Array.isArray;function Bv(e){return"string"==typeof e||"number"==typeof e||e instanceof String||e instanceof Number}function Fv(e){return void 0===e}function Tv(e){return void 0!==e}const _v=Ov("",{},[],void 0,void 0);function Pv(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 jv(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 Iv=["create","update","remove","destroy","pre","post"];function Nv(e,t){const n={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},r=void 0!==t?t:Av;for(const c of Iv)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;Tv(t)&&(t(e),s=e.data)}const l=e.children,c=e.sel;if("!"===c)Fv(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=Tv(s)&&Tv(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](_v,e);if(kv(l))for(u=0;u<l.length;++u){const e=l[u];null!=e&&r.appendChild(g,i(e,t))}else Bv(e.text)&&r.appendChild(g,r.createTextNode(e.text));const v=e.data.hook;Tv(v)&&(null===(a=v.create)||void 0===a||a.call(v,_v,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(Tv(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;Tv(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)}Fv(t.text)?Tv(v)&&Tv(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]:Pv(v,b)?(l(v,b,o),v=t[++p],b=n[++h]):Pv(y,w)?(l(y,w,o),y=t[--g],w=n[--m]):Pv(v,w)?(l(v,w,o),r.insertBefore(e,v.elm,r.nextSibling(y.elm)),v=t[++p],w=n[--m]):Pv(y,b)?(l(y,b,o),r.insertBefore(e,y.elm,v.elm),y=t[--g],b=n[++h]):(void 0===u&&(u=jv(t,p,g)),c=u[b.key],Fv(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):Tv(y)?(Tv(e.text)&&r.setTextContent(g,""),a(g,null,y,0,y.length-1,o)):Tv(v)?s(g,v,0,v.length-1):Tv(e.text)&&r.setTextContent(g,""):e.text!==t.text&&(Tv(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 Ov(r.tagName(e).toLowerCase()+t+o,{},[],void 0,e)}(e)),Pv(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 Lv(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&&Lv(e,t[r].children,t[r].sel)}}function Rv(e,t,n){let r,o,i,a={};if(void 0!==n?(null!==t&&(a=t),kv(n)?r=n:Bv(n)?o=n.toString():n&&n.sel&&(r=[n])):null!=t&&(kv(t)?r=t:Bv(t)?o=t.toString():t&&t.sel?r=[t]:a=t),void 0!==r)for(i=0;i<r.length;++i)Bv(r[i])&&(r[i]=Ov(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]||Lv(a,r,e),Ov(e,a,r,o,void 0)}function Mv(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 zv={create:Mv,update:Mv};function $v(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 Hv={create:$v,update:$v},Vv=/[A-Z]/g;function Uv(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(Vv,"-$&").toLowerCase()));for(r in i)o[r]!==i[r]&&(a?a[r]=i[r]:n.setAttribute("data-"+r.replace(Vv,"-$&").toLowerCase(),i[r]))}const Wv={create:Uv,update:Uv};function Gv(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++)Gv(e[r],t,n)}function qv(e,t){const n=e.type,r=t.data.on;r&&r[n]&&Gv(r[n],t,e)}function Kv(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){qv(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 Xv={create:Kv,update:Kv,destroy:Kv};function Yv(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 Zv={create:Yv,update:Yv},Jv="undefined"!=typeof window&&window.requestAnimationFrame.bind(window)||setTimeout;let Qv=!1;function ey(e,t,n){var r;r=function(){e[t]=n},Jv((function(){Jv(r)}))}function ty(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]||ey(o.style,e,n);else"remove"!==r&&n!==i[r]&&("-"===r[0]&&"-"===r[1]?o.style.setProperty(r,n):o.style[r]=n)}const ny={pre:function(){Qv=!1},create:ty,update:ty,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;Qv||(e.elm.offsetLeft,Qv=!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 ry(e,t){for(const n of e)null!=n&&!1!==n&&""!==n&&(Array.isArray(n)?ry(n,t):"string"==typeof n||"number"==typeof n||"boolean"==typeof n?t.push(Ov(void 0,void 0,void 0,String(n),void 0)):t.push(n));return t}function oy(e,t,...n){const r=ry(n,[]);return"function"==typeof e?e(t,r):1===r.length&&!r[0].sel&&r[0].text?Rv(e,t,r[0].text):Rv(e,t,r)}oy||(oy={});var iy,ay=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,uy=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,sy="\\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",ly="["+sy+"]",cy="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",fy="\\d+",dy="[a-z\\xdf-\\xf6\\xf8-\\xff]",py="[^\\ud800-\\udfff"+sy+fy+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",hy="\\ud83c[\\udffb-\\udfff]",gy="[^\\ud800-\\udfff]",vy="(?:\\ud83c[\\udde6-\\uddff]){2}",yy="[\\ud800-\\udbff][\\udc00-\\udfff]",my="[A-Z\\xc0-\\xd6\\xd8-\\xde]",by="(?:"+dy+"|"+py+")",wy="(?:"+my+"|"+py+")",Ey="(?:"+cy+"|"+hy+")?",xy="[\\ufe0e\\ufe0f]?"+Ey+"(?:\\u200d(?:"+[gy,vy,yy].join("|")+")[\\ufe0e\\ufe0f]?"+Ey+")*",Dy="(?:"+["[\\u2700-\\u27bf]",vy,yy].join("|")+")"+xy,Cy="(?:"+[gy+cy+"?",cy,vy,yy,"[\\ud800-\\udfff]"].join("|")+")",Sy=RegExp("['’]","g"),Ay=RegExp(cy,"g"),Oy=RegExp(hy+"(?="+hy+")|"+Cy+xy,"g"),ky=RegExp([my+"?"+dy+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[ly,my,"$"].join("|")+")",wy+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[ly,my+by,"$"].join("|")+")",my+"?"+by+"+(?:['’](?:d|ll|m|re|s|t|ve))?",my+"+(?:['’](?:D|LL|M|RE|S|T|VE))?",fy,Dy].join("|"),"g"),By=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),Fy=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ty="object"==typeof Ve&&Ve&&Ve.Object===Object&&Ve,_y="object"==typeof self&&self&&self.Object===Object&&self,Py=Ty||_y||Function("return this")(),jy=(iy={"À":"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==iy?void 0:iy[e]});function Iy(e){return By.test(e)}var Ny=Object.prototype.toString,Ly=Py.Symbol,Ry=Ly?Ly.prototype:void 0,My=Ry?Ry.toString:void 0;function zy(e){return null==e?"":function(e){if("string"==typeof e)return e;if("symbol"==typeof(t=e)||(n=t)&&"object"==typeof n&&"[object Symbol]"==Ny.call(t))return My?My.call(e):"";var t,n,r=e+"";return"0"==r&&1/e==-1/0?"-0":r}(e)}for(var $y,Hy=($y=function(e,t,n){return t=t.toLowerCase(),e+(n?Vy(zy(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=zy(e),void 0===t?(r=e,Fy.test(r)?function(e){return e.match(ky)||[]}(e):function(e){return e.match(ay)||[]}(e)):e.match(t)||[];var r}((t=e,(t=zy(t))&&t.replace(uy,jy).replace(Ay,"")).replace(Sy,"")),$y,"");var t}),Vy=("toUpperCase",function(e){var t=Iy(e=zy(e))?function(e){return Iy(e)?e.match(Oy)||[]:(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}),Uy=Hy,Wy="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),Gy={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},qy={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:Wy?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},Ky={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},Xy=1;Xy<20;Xy++)Ky["f"+Xy]=111+Xy;function Yy(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 Gy)r[Gy[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=Jy(d),g=Gy[h];if(d.length>1&&!g&&!qy[d]&&!Ky[h])throw new TypeError('Unknown modifier: "'+d+'"');1!==i&&g||(n?r.key=h:r.which=Zy(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 Zy(e){return e=Jy(e),Ky[e]||e.toUpperCase().charCodeAt(0)}function Jy(e){return e=e.toLowerCase(),qy[e]||e}var Qy=Yy,em=function(e,t){return Yy(e,{byKey:!0},t)},tm=/^\s+|\s+$/g,nm=/^[-+]0x[0-9a-f]+$/i,rm=/^0b[01]+$/i,om=/^0o[0-7]+$/i,im=parseInt,am="object"==typeof Ve&&Ve&&Ve.Object===Object&&Ve,um="object"==typeof self&&self&&self.Object===Object&&self,sm=am||um||Function("return this")(),lm=Object.prototype.toString,cm=Math.max,fm=Math.min,dm=function(){return sm.Date.now()};function pm(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function hm(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||(n=t)&&"object"==typeof n&&"[object Symbol]"==lm.call(t))return NaN;var t,n;if(pm(e)){var r="function"==typeof e.valueOf?e.valueOf():e;e=pm(r)?r+"":r}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(tm,"");var o=rm.test(e);return o||om.test(e)?im(e.slice(2),o?2:8):nm.test(e)?NaN:+e}var gm,vm=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=dm();if(g(r))return y(r);u=setTimeout(v,(n=t-((e=r)-s),f?fm(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=dm(),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=hm(t)||0,pm(n)&&(c=!!n.leading,i=(f="maxWait"in n)?cm(hm(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(dm())},m},ym=Ue((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 Ve&&Ve&&Ve.Object===Object&&Ve,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 He(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 He(e)?function(e,t){var n,r,i,a=$e(e)||(i=r=n=e)&&"object"==typeof i&&He(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 mm(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var bm=0;function wm(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
- /**
- * Takes a string with placeholder variables like `%{smart_count} file selected`
- * and replaces it with values from options `{smart_count: 5}`
- *
- * @license https://github.com/airbnb/polyglot.js/blob/master/LICENSE
- * taken from https://github.com/airbnb/polyglot.js/blob/master/lib/polyglot.js#L299
- *
- * @param {string} phrase that needs interpolation, with placeholders
- * @param {object} options with values that will be used to replace placeholders
- * @returns {any[]} interpolated
- */}function Em(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=wm(r,new RegExp(`%\\{${o}\\}`,"g"),e)}return r}var xm=(gm=function(e){return"__private_"+bm+++"_"+e}("apply"),class{constructor(e){Object.defineProperty(this,gm,{value:Dm}),this.locale={strings:{},pluralize:e=>1===e?0:1},Array.isArray(e)?e.forEach(mm(this,gm)[gm],this):mm(this,gm)[gm](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 Em(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 Em(o,t)}});function Dm(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 Cm=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:Sm}={urlAlphabet:"useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"},Am=e=>crypto.getRandomValues(new Uint8Array(e)),Om=(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 km={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)=>Om(e,t,Am),customRandom:Om,urlAlphabet:Sm,random:Am},Bm=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 Fm(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}Fm.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 Tm=/[\/\+\.]/,_m=0;var Pm=function(e){return"__private_"+_m+++"_"+e}("publish");class jm{constructor(){Object.defineProperty(this,Pm,{value:Im}),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,Pm)[Pm](t,n,e)}subscribe(e){return this.callbacks.push(e),()=>{this.callbacks.splice(this.callbacks.indexOf(e),1)}}}function Im(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.callbacks.forEach((e=>{e(...t)}))}jm.VERSION="2.0.3";var Nm=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)}},Lm={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 Rm(e){let t="";return e.replace(/[^A-Z0-9]/gi,(e=>{return t+=`-${n=e,n.charCodeAt(0).toString(32)}`,"/";var n}))+t}var Mm=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 zm(e){return e<10?`0${e}`:e.toString()}var $m=function(){const e=new Date;return`${zm(e.getHours())}:${zm(e.getMinutes())}:${zm(e.getSeconds())}`},Hm={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] [${$m()}]`,...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] [${$m()}]`,...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] [${$m()}]`,...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] [${$m()}]`,...t)}}},Vm={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}"}}},Um=km;let Wm,Gm;function qm(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Km=0;function Xm(e){return"__private_"+Km+++"_"+e}const{nanoid:Ym}=Um,{justErrorsLogger:Zm,debugLogger:Jm}=Hm;class Qm 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 eb extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}}var tb=Xm("plugins"),nb=Xm("storeUnsubscribe"),rb=Xm("emitter"),ob=Xm("preProcessors"),ib=Xm("uploaders"),ab=Xm("postProcessors"),ub=Xm("checkRestrictions"),sb=Xm("checkMinNumberOfFiles"),lb=Xm("checkRequiredMetaFieldsOnFile"),cb=Xm("checkRequiredMetaFields"),fb=Xm("showOrLogErrorAndThrow"),db=Xm("assertNewUploadAllowed"),pb=Xm("checkAndCreateFileStateObject"),hb=Xm("startIfAutoProceed"),gb=Xm("addListeners"),vb=Xm("updateOnlineStatus"),yb=Xm("createUpload"),mb=Xm("getUpload"),bb=Xm("removeUpload"),wb=Xm("runUpload");Wm=Symbol.for("uppy test: getPlugins"),Gm=Symbol.for("uppy test: createUpload");class Eb{constructor(e){Object.defineProperty(this,wb,{value:jb}),Object.defineProperty(this,bb,{value:Pb}),Object.defineProperty(this,mb,{value:_b}),Object.defineProperty(this,yb,{value:Tb}),Object.defineProperty(this,gb,{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,tb,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,nb,{writable:!0,value:void 0}),Object.defineProperty(this,rb,{writable:!0,value:Cm()}),Object.defineProperty(this,ob,{writable:!0,value:new Set}),Object.defineProperty(this,ib,{writable:!0,value:new Set}),Object.defineProperty(this,ab,{writable:!0,value:new Set}),Object.defineProperty(this,vb,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=Vm;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 jm,logger:Zm,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=Jm),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=Sv(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:Mm(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),qm(this,nb)[nb]=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),qm(this,gb)[gb]()}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];qm(this,rb)[rb].emit(e,...n)}on(e,t){return qm(this,rb)[rb].on(e,t),this}once(e,t){return qm(this,rb)[rb].once(e,t),this}off(e,t){return qm(this,rb)[rb].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 xm([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){qm(this,ob)[ob].add(e)}removePreProcessor(e){return qm(this,ob)[ob].delete(e)}addPostProcessor(e){qm(this,ab)[ab].add(e)}removePostProcessor(e){return qm(this,ab)[ab].delete(e)}addUploader(e){qm(this,ib)[ib].add(e)}removeUploader(e){return qm(this,ib)[ib].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 qm(this,ub)[ub](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){qm(this,db)[db](e);const{files:t}=this.getState();let n=qm(this,pb)[pb](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}`),qm(this,hb)[hb](),n.id}addFiles(e){qm(this,db)[db]();const t={...this.getState().files},n=[],r=[];for(let i=0;i<e.length;i++)try{let r=qm(this,pb)[pb](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&&qm(this,hb)[hb](),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=qm(this,yb)[yb](t,{forceAllowNewUpload:!0});return qm(this,wb)[wb](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=qm(this,yb)[yb]([e],{forceAllowNewUpload:!0});return qm(this,wb)[wb](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 qm(this,tb)[tb]?qm(this,tb)[tb][n.type].push(n):qm(this,tb)[tb][n.type]=[n],n.install(),this}getPlugin(e){for(const t of Object.values(qm(this,tb)[tb])){const n=t.find((t=>t.id===e));if(null!=n)return n}}[Wm](e){return qm(this,tb)[tb][e]}iteratePlugins(e){Object.values(qm(this,tb)[tb]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();const t=qm(this,tb)[tb][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(),qm(this,nb)[nb](),this.iteratePlugins((e=>{this.removePlugin(e)})),"undefined"!=typeof window&&window.removeEventListener&&(window.removeEventListener("online",qm(this,vb)[vb]),window.removeEventListener("offline",qm(this,vb)[vb]))}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]?qm(this,wb)[wb](e):(qm(this,bb)[bb](e),Promise.reject(new Error("Nonexistent upload")))}[Gm](){return qm(this,yb)[yb](...arguments)}addResultData(e,t){if(!qm(this,mb)[mb](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=qm(this,tb)[tb].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((()=>{qm(this,sb)[sb](t),qm(this,cb)[cb](t)})).catch((e=>{qm(this,fb)[fb](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=qm(this,yb)[yb](r);return qm(this,wb)[wb](o)})).catch((e=>{qm(this,fb)[fb](e,{showInformer:!1})})))}}function xb(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 Qm(`${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 Fm(e,Tm);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 Qm(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 Qm(this.i18n("exceedsSize",{size:Bm(o),file:e.name}))}if(n&&null!=e.size&&e.size>n)throw new Qm(this.i18n("exceedsSize",{size:Bm(n),file:e.name}));if(r&&null!=e.size&&e.size<r)throw new Qm(this.i18n("inferiorSize",{size:Bm(r)}))}function Db(e){const{minNumberOfFiles:t}=this.opts.restrictions;if(Object.keys(e).length<t)throw new Qm(`${this.i18n("youHaveToAtLeastSelectX",{smart_count:t})}`)}function Cb(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 Qm(`${this.i18n("missingRequiredMetaFieldOnFile",{fileName:e.name})}`);r.push(n),o.push(t[i]),qm(this,fb)[fb](n,{file:e,showInformer:!1,throwErr:!1})}return this.setFileState(e.id,{missingRequiredMetaFields:o}),r}function Sb(e){const t=Object.keys(e).flatMap((e=>{const t=this.getFile(e);return qm(this,lb)[lb](t)}));if(t.length)throw new eb(t,`${this.i18n("missingRequiredMetaField")}`)}function Ab(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 Ob(e){const{allowNewUpload:t}=this.getState();!1===t&&qm(this,fb)[fb](new Qm(this.i18n("noMoreFilesAllowed")),{file:e})}function kb(e,t){const n=function(e){var t;if(e.type)return e.type;const n=e.name?null==(t=Nm(e.name).extension)?void 0:t.toLowerCase():null;return n&&n in Lm?Lm[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=Nm(r).extension,i=Boolean(t.isRemote),a=function(e){let t="uppy";return"string"==typeof e.name&&(t+=`-${Rm(e.name.toLowerCase())}`),void 0!==e.type&&(t+=`-${e.type}`),e.meta&&"string"==typeof e.meta.relativePath&&(t+=`-${Rm(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 Qm(this.i18n("noDuplicates",{fileName:r}));qm(this,fb)[fb](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?qm(this,fb)[fb](new Qm("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]));qm(this,ub)[ub](f,t)}catch(u){qm(this,fb)[fb](u,{file:f})}return f}function Bb(){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 Fb(){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}),qm(this,fb)[fb](e,{throwErr:!1})}else qm(this,fb)[fb](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:qm(this,ab)[ab].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&&qm(this,lb)[lb](e)})),"undefined"!=typeof window&&window.addEventListener&&(window.addEventListener("online",qm(this,vb)[vb]),window.addEventListener("offline",qm(this,vb)[vb]),setTimeout(qm(this,vb)[vb],3e3))}function Tb(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=Ym();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 _b(e){const{currentUploads:t}=this.getState();return t[e]}function Pb(e){const t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function jb(e){let{currentUploads:t}=this.getState(),n=t[e];const r=n.step||0,o=[...qm(this,ob)[ob],...qm(this,ib)[ib],...qm(this,ab)[ab]];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),qm(this,bb)[bb](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),qm(this,bb)[bb](e)),null==i&&this.log(`Not setting result for an upload that has been removed: ${e}`),i}Eb.VERSION="2.1.3";var Ib=Eb,Nb=Ue((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}})),Lb=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 xm([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 Rb(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Mb=0;const{render:zb}=Nb;var $b=function(e){return"__private_"+Mb+++"_"+e}("updateUI");class Hb extends Lb{constructor(){super(...arguments),Object.defineProperty(this,$b,{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 Rb(this,$b)[$b]=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)&&(zb(this.render(e),t),this.afterUpdate())})),this.uppy.log(`Installing ${n} to a DOM element '${e}'`),this.opts.replaceTargetContent&&(r.innerHTML=""),zb(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 Hb)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=Rb(this,$b))[$b])||t.call(n,e))}unmount(){var e;this.isTargetDOMEl&&(null==(e=this.el)||e.remove()),this.onUnmount()}onMount(){}onUnmount(){}}var Vb=Hb;const{debugLogger:Ub}=Hm;var Wb=Ib,Gb=Ib,qb=Vb,Kb=Lb,Xb=Ub;Wb.Uppy=Gb,Wb.UIPlugin=qb,Wb.BasePlugin=Kb,Wb.debugLogger=Xb;class Yb 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 Zb=Yb,Jb=function(){return fetch(...arguments).catch((e=>{throw"AbortError"===e.name?e:new Zb(e)}))};class Qb extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}var ew,tw,nw,rw,ow,iw=Qb;function aw(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var uw=0;function sw(e){return"__private_"+uw+++"_"+e}async function lw(e){if(401===e.status)throw new iw;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 cw=(tw=sw("getPostResponseFunc"),nw=sw("getUrl"),rw=sw("errorHandler"),ow=ew=class e{constructor(e,t){Object.defineProperty(this,rw,{value:dw}),Object.defineProperty(this,nw,{value:fw}),Object.defineProperty(this,tw,{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(aw(this,nw)[nw](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=>Jb(aw(this,nw)[nw](e),{method:"get",headers:t,credentials:this.opts.companionCookiesRule||"same-origin"}))).then(aw(this,tw)[tw](t)).then(lw).catch(aw(this,rw)[rw]("get",e))}post(e,t,n){const r="post";return this.preflightAndHeaders(e).then((n=>Jb(aw(this,nw)[nw](e),{method:r,headers:n,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(t)}))).then(aw(this,tw)[tw](n)).then(lw).catch(aw(this,rw)[rw](r,e))}delete(e,t,n){const r="delete";return this.preflightAndHeaders(e).then((n=>Jb(`${this.hostname}/${e}`,{method:r,headers:n,credentials:this.opts.companionCookiesRule||"same-origin",body:t?JSON.stringify(t):null}))).then(aw(this,tw)[tw](n)).then(lw).catch(aw(this,rw)[rw](r,e))}},ew.VERSION="2.0.4",ew.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":`@uppy/companion-client=${ew.VERSION}`},ow);function fw(e){return/^(https?:|)\/\//.test(e)?e:`${this.hostname}/${e}`}function dw(e,t){return n=>{var r;if(null==(r=n)||!r.isAuthError){const r=new Error(`Could not ${e} ${aw(this,nw)[nw](t)}`);r.cause=n,n=r}return Promise.reject(n)}}var pw,hw,gw,vw,yw,mw={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 bw,ww;function Ew(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var xw=0;function Dw(e){return"__private_"+xw+++"_"+e}var Cw,Sw,Aw=(pw=Dw("queued"),hw=Dw("emitter"),gw=Dw("isOpen"),vw=Dw("socket"),yw=Dw("handleMessage"),bw=Symbol.for("uppy test: getSocket"),ww=Symbol.for("uppy test: getQueued"),class{constructor(e){Object.defineProperty(this,pw,{writable:!0,value:[]}),Object.defineProperty(this,hw,{writable:!0,value:Cm()}),Object.defineProperty(this,gw,{writable:!0,value:!1}),Object.defineProperty(this,vw,{writable:!0,value:void 0}),Object.defineProperty(this,yw,{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 Ew(this,gw)[gw]}[bw](){return Ew(this,vw)[vw]}[ww](){return Ew(this,pw)[pw]}open(){Ew(this,vw)[vw]=new WebSocket(this.opts.target),Ew(this,vw)[vw].onopen=()=>{for(Ew(this,gw)[gw]=!0;Ew(this,pw)[pw].length>0&&Ew(this,gw)[gw];){const e=Ew(this,pw)[pw].shift();this.send(e.action,e.payload)}},Ew(this,vw)[vw].onclose=()=>{Ew(this,gw)[gw]=!1},Ew(this,vw)[vw].onmessage=Ew(this,yw)[yw]}close(){var e;null==(e=Ew(this,vw)[vw])||e.close()}send(e,t){Ew(this,gw)[gw]?Ew(this,vw)[vw].send(JSON.stringify({action:e,payload:t})):Ew(this,pw)[pw].push({action:e,payload:t})}on(e,t){Ew(this,hw)[hw].on(e,t)}emit(e,t){Ew(this,hw)[hw].emit(e,t)}once(e,t){Ew(this,hw)[hw].once(e,t)}}),Ow={RequestClient:cw,Provider:class extends cw{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||mw}},SearchProvider:class extends cw{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:Aw},kw=Sv((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 Bw(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Fw=0;function Tw(e){return"__private_"+Fw+++"_"+e}var _w=(Cw=Tw("emitter"),Sw=Tw("events"),class{constructor(e){Object.defineProperty(this,Cw,{writable:!0,value:void 0}),Object.defineProperty(this,Sw,{writable:!0,value:[]}),Bw(this,Cw)[Cw]=e}on(e,t){return Bw(this,Sw)[Sw].push([e,t]),Bw(this,Cw)[Cw].on(e,t)}remove(){for(const[e,t]of Bw(this,Sw)[Sw].splice(0))Bw(this,Cw)[Cw].off(e,t)}});function Pw(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var jw=0;function Iw(e){return"__private_"+jw+++"_"+e}var Nw=Iw("aliveTimer"),Lw=Iw("isDone"),Rw=Iw("onTimedOut"),Mw=Iw("timeout"),zw=class{constructor(e,t){Object.defineProperty(this,Nw,{writable:!0,value:void 0}),Object.defineProperty(this,Lw,{writable:!0,value:!1}),Object.defineProperty(this,Rw,{writable:!0,value:void 0}),Object.defineProperty(this,Mw,{writable:!0,value:void 0}),Pw(this,Mw)[Mw]=e,Pw(this,Rw)[Rw]=t}progress(){Pw(this,Lw)[Lw]||Pw(this,Mw)[Mw]>0&&(clearTimeout(Pw(this,Nw)[Nw]),Pw(this,Nw)[Nw]=setTimeout(Pw(this,Rw)[Rw],Pw(this,Mw)[Mw]))}done(){Pw(this,Lw)[Lw]||(clearTimeout(Pw(this,Nw)[Nw]),Pw(this,Nw)[Nw]=null,Pw(this,Lw)[Lw]=!0)}};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 Hw=0;function Vw(e){return"__private_"+Hw+++"_"+e}function Uw(){return new Error("Cancelled")}var Ww=Vw("activeRequests"),Gw=Vw("queuedHandlers"),qw=Vw("call"),Kw=Vw("queueNext"),Xw=Vw("next"),Yw=Vw("queue"),Zw=Vw("dequeue");function Jw(e){$w(this,Ww)[Ww]+=1;let t,n=!1;try{t=e()}catch(r){throw $w(this,Ww)[Ww]-=1,r}return{abort:()=>{n||(n=!0,$w(this,Ww)[Ww]-=1,t(),$w(this,Kw)[Kw]())},done:()=>{n||(n=!0,$w(this,Ww)[Ww]-=1,$w(this,Kw)[Kw]())}}}function Qw(){queueMicrotask((()=>$w(this,Xw)[Xw]()))}function eE(){if($w(this,Ww)[Ww]>=this.limit)return;if(0===$w(this,Gw)[Gw].length)return;const e=$w(this,Gw)[Gw].shift(),t=$w(this,qw)[qw](e.fn);e.abort=t.abort,e.done=t.done}function tE(e,t){void 0===t&&(t={});const n={fn:e,priority:t.priority||0,abort:()=>{$w(this,Zw)[Zw](n)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},r=$w(this,Gw)[Gw].findIndex((e=>n.priority>e.priority));return-1===r?$w(this,Gw)[Gw].push(n):$w(this,Gw)[Gw].splice(r,0,n),n}function nE(e){const t=$w(this,Gw)[Gw].indexOf(e);-1!==t&&$w(this,Gw)[Gw].splice(t,1)}var rE,oE,iE={RateLimitedQueue:class{constructor(e){Object.defineProperty(this,Zw,{value:nE}),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,Ww,{writable:!0,value:0}),Object.defineProperty(this,Gw,{writable:!0,value:[]}),this.limit="number"!=typeof e||0===e?1/0:e}run(e,t){return $w(this,Ww)[Ww]<this.limit?$w(this,qw)[qw](e):$w(this,Yw)[Yw](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=Uw()}}),t)}));return u.abort=()=>{a.abort()},u}}},internalRateLimitedQueue:Symbol("__queue")},aE=function(e){return!!e&&(0!==e.readyState&&4!==e.readyState||0===e.status)},uE={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}};const{nanoid:sE}=Um,{Provider:lE,RequestClient:cE,Socket:fE}=Ow,{RateLimitedQueue:dE,internalRateLimitedQueue:pE}=iE;function hE(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})),aE(e)?(n=new Zb(n,e),n):(n.request=e,n)}function gE(e){return e.data.slice(0,e.data.size,e.meta.type)}var vE=(oE=rE=class extends Lb{constructor(e,t){super(e,t),this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=uE;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 aE(t)&&(n=new Zb(n,t)),n},validateStatus:e=>e>=200&&e<300};if(this.opts={...n,...t},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),pE in this.opts?this.requests=this.opts[pE]:this.requests=new dE(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=gE(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=gE(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 _w(this.uppy);const a=new zw(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=sE();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=hE(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=hE(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?lE:cE)(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 fE({target:`${a}/api/${i}`,autoOpen:!1});this.uploaderEvents[e.id]=new _w(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=>kw(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 zw(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[pE]||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)}},rE.VERSION="2.0.6",oE),yE="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function mE(e){var t={exports:{}};return e(t,t.exports),t.exports}var bE,wE,EE=function(e){return e&&e.Math==Math&&e},xE=EE("object"==typeof globalThis&&globalThis)||EE("object"==typeof window&&window)||EE("object"==typeof self&&self)||EE("object"==typeof yE&&yE)||function(){return this}()||Function("return this")(),DE=Object.defineProperty,CE=function(e,t){try{DE(xE,e,{value:t,configurable:!0,writable:!0})}catch(eI){xE[e]=t}return t},SE=xE["__core-js_shared__"]||CE("__core-js_shared__",{}),AE=mE((function(e){(e.exports=function(e,t){return SE[e]||(SE[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),OE=Function.prototype,kE=OE.bind,BE=OE.call,FE=kE&&kE.bind(BE),TE=kE?function(e){return e&&FE(BE,e)}:function(e){return e&&function(){return BE.apply(e,arguments)}},_E=xE.TypeError,PE=function(e){if(null==e)throw _E("Can't call method on "+e);return e},jE=xE.Object,IE=function(e){return jE(PE(e))},NE=TE({}.hasOwnProperty),LE=Object.hasOwn||function(e,t){return NE(IE(e),t)},RE=0,ME=Math.random(),zE=TE(1..toString),$E=function(e){return"Symbol("+(void 0===e?"":e)+")_"+zE(++RE+ME,36)},HE=function(e){return"function"==typeof e},VE=function(e){return HE(e)?e:void 0},UE=function(e,t){return arguments.length<2?VE(xE[e]):xE[e]&&xE[e][t]},WE=UE("navigator","userAgent")||"",GE=xE.process,qE=xE.Deno,KE=GE&&GE.versions||qE&&qE.version,XE=KE&&KE.v8;XE&&(wE=(bE=XE.split("."))[0]>0&&bE[0]<4?1:+(bE[0]+bE[1])),!wE&&WE&&(!(bE=WE.match(/Edge\/(\d+)/))||bE[1]>=74)&&(bE=WE.match(/Chrome\/(\d+)/))&&(wE=+bE[1]);var YE=wE,ZE=function(e){try{return!!e()}catch(t){return!0}},JE=!!Object.getOwnPropertySymbols&&!ZE((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&YE&&YE<41})),QE=JE&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ex=AE("wks"),tx=xE.Symbol,nx=tx&&tx.for,rx=QE?tx:tx&&tx.withoutSetter||$E,ox=function(e){if(!LE(ex,e)||!JE&&"string"!=typeof ex[e]){var t="Symbol."+e;JE&&LE(tx,e)?ex[e]=tx[e]:ex[e]=QE&&nx?nx(t):rx(t)}return ex[e]},ix={};ix[ox("toStringTag")]="z";var ax="[object z]"===String(ix),ux=!ZE((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),sx=function(e){return"object"==typeof e?null!==e:HE(e)},lx=xE.document,cx=sx(lx)&&sx(lx.createElement),fx=function(e){return cx?lx.createElement(e):{}},dx=!ux&&!ZE((function(){return 7!=Object.defineProperty(fx("div"),"a",{get:function(){return 7}}).a})),px=xE.String,hx=xE.TypeError,gx=function(e){if(sx(e))return e;throw hx(px(e)+" is not an object")},vx=Function.prototype.call,yx=vx.bind?vx.bind(vx):function(){return vx.apply(vx,arguments)},mx=TE({}.isPrototypeOf),bx=xE.Object,wx=QE?function(e){return"symbol"==typeof e}:function(e){var t=UE("Symbol");return HE(t)&&mx(t.prototype,bx(e))},Ex=xE.String,xx=function(e){try{return Ex(e)}catch(t){return"Object"}},Dx=xE.TypeError,Cx=function(e){if(HE(e))return e;throw Dx(xx(e)+" is not a function")},Sx=function(e,t){var n=e[t];return null==n?void 0:Cx(n)},Ax=xE.TypeError,Ox=xE.TypeError,kx=ox("toPrimitive"),Bx=function(e){var t=function(e,t){if(!sx(e)||wx(e))return e;var n,r=Sx(e,kx);if(r){if(void 0===t&&(t="default"),n=yx(r,e,t),!sx(n)||wx(n))return n;throw Ox("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&HE(n=e.toString)&&!sx(r=yx(n,e)))return r;if(HE(n=e.valueOf)&&!sx(r=yx(n,e)))return r;if("string"!==t&&HE(n=e.toString)&&!sx(r=yx(n,e)))return r;throw Ax("Can't convert object to primitive value")}(e,t)}(e,"string");return wx(t)?t:t+""},Fx=xE.TypeError,Tx=Object.defineProperty,_x={f:ux?Tx:function(e,t,n){if(gx(e),t=Bx(t),gx(n),dx)try{return Tx(e,t,n)}catch(r){}if("get"in n||"set"in n)throw Fx("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Px=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},jx=ux?function(e,t,n){return _x.f(e,t,Px(1,n))}:function(e,t,n){return e[t]=n,e},Ix=TE(Function.toString);HE(SE.inspectSource)||(SE.inspectSource=function(e){return Ix(e)});var Nx,Lx,Rx,Mx=SE.inspectSource,zx=xE.WeakMap,$x=HE(zx)&&/native code/.test(Mx(zx)),Hx=AE("keys"),Vx=function(e){return Hx[e]||(Hx[e]=$E(e))},Ux={},Wx=xE.TypeError,Gx=xE.WeakMap;if($x||SE.state){var qx=SE.state||(SE.state=new Gx),Kx=TE(qx.get),Xx=TE(qx.has),Yx=TE(qx.set);Nx=function(e,t){if(Xx(qx,e))throw new Wx("Object already initialized");return t.facade=e,Yx(qx,e,t),t},Lx=function(e){return Kx(qx,e)||{}},Rx=function(e){return Xx(qx,e)}}else{var Zx=Vx("state");Ux[Zx]=!0,Nx=function(e,t){if(LE(e,Zx))throw new Wx("Object already initialized");return t.facade=e,jx(e,Zx,t),t},Lx=function(e){return LE(e,Zx)?e[Zx]:{}},Rx=function(e){return LE(e,Zx)}}var Jx={set:Nx,get:Lx,has:Rx,enforce:function(e){return Rx(e)?Lx(e):Nx(e,{})},getterFor:function(e){return function(t){var n;if(!sx(t)||(n=Lx(t)).type!==e)throw Wx("Incompatible receiver, "+e+" required");return n}}},Qx=Function.prototype,eD=ux&&Object.getOwnPropertyDescriptor,tD=LE(Qx,"name"),nD={EXISTS:tD,PROPER:tD&&"something"===function(){}.name,CONFIGURABLE:tD&&(!ux||ux&&eD(Qx,"name").configurable)},rD=mE((function(e){var t=nD.CONFIGURABLE,n=Jx.get,r=Jx.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;HE(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!LE(i,"name")||t&&i.name!==f)&&jx(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==xE?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:jx(e,n,i)):l?e[n]=i:CE(n,i)})(Function.prototype,"toString",(function(){return HE(this)&&n(this).source||Mx(this)}))})),oD=TE({}.toString),iD=TE("".slice),aD=function(e){return iD(oD(e),8,-1)},uD=ox("toStringTag"),sD=xE.Object,lD="Arguments"==aD(function(){return arguments}()),cD=ax?aD: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=sD(e),uD))?n:lD?aD(t):"Object"==(r=aD(t))&&HE(t.callee)?"Arguments":r},fD=ax?{}.toString:function(){return"[object "+cD(this)+"]"};ax||rD(Object.prototype,"toString",fD,{unsafe:!0});var dD={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},pD=fx("span").classList,hD=pD&&pD.constructor&&pD.constructor.prototype,gD=hD===Object.prototype?void 0:hD,vD=TE(TE.bind),yD=function(e,t){return Cx(e),void 0===t?e:vD?vD(e,t):function(){return e.apply(t,arguments)}},mD=xE.Object,bD=TE("".split),wD=ZE((function(){return!mD("z").propertyIsEnumerable(0)}))?function(e){return"String"==aD(e)?bD(e,""):mD(e)}:mD,ED=Math.ceil,xD=Math.floor,DD=function(e){var t=+e;return t!=t||0===t?0:(t>0?xD:ED)(t)},CD=Math.min,SD=function(e){return e>0?CD(DD(e),9007199254740991):0},AD=function(e){return SD(e.length)},OD=Array.isArray||function(e){return"Array"==aD(e)},kD=function(){},BD=[],FD=UE("Reflect","construct"),TD=/^\s*(?:class|function)\b/,_D=TE(TD.exec),PD=!TD.exec(kD),jD=function(e){if(!HE(e))return!1;try{return FD(kD,BD,e),!0}catch(t){return!1}},ID=!FD||ZE((function(){var e;return jD(jD.call)||!jD(Object)||!jD((function(){e=!0}))||e}))?function(e){if(!HE(e))return!1;switch(cD(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return PD||!!_D(TD,Mx(e))}:jD,ND=ox("species"),LD=xE.Array,RD=function(e,t){return new(OD(n=e)&&(r=n.constructor,(ID(r)&&(r===LD||OD(r.prototype))||sx(r)&&null===(r=r[ND]))&&(r=void 0)),void 0===r?LD:r)(0===t?0:t);var n,r},MD=TE([].push),zD=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=IE(s),g=wD(h),v=yD(l,c),y=AD(g),m=0,b=f||RD,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:MD(w,d)}else switch(e){case 4:return!1;case 7:MD(w,d)}return i?-1:r||o?o:w}},$D={forEach:zD(0),map:zD(1),filter:zD(2),some:zD(3),every:zD(4),find:zD(5),findIndex:zD(6),filterReject:zD(7)},HD=function(e,t){var n=[][e];return!!n&&ZE((function(){n.call(null,t||function(){throw 1},1)}))},VD=$D.forEach,UD=HD("forEach")?[].forEach:function(e){return VD(this,e,arguments.length>1?arguments[1]:void 0)},WD=function(e){if(e&&e.forEach!==UD)try{jx(e,"forEach",UD)}catch(t){e.forEach=UD}};for(var GD in dD)dD[GD]&&WD(xE[GD]&&xE[GD].prototype);WD(gD);var qD={}.propertyIsEnumerable,KD=Object.getOwnPropertyDescriptor,XD=KD&&!qD.call({1:2},1)?function(e){var t=KD(this,e);return!!t&&t.enumerable}:qD,YD={f:XD},ZD=function(e){return wD(PE(e))},JD=Object.getOwnPropertyDescriptor,QD={f:ux?JD:function(e,t){if(e=ZD(e),t=Bx(t),dx)try{return JD(e,t)}catch(n){}if(LE(e,t))return Px(!yx(YD.f,e,t),e[t])}},eC=Math.max,tC=Math.min,nC=function(e,t){var n=DD(e);return n<0?eC(n+t,0):tC(n,t)},rC=function(e){return function(t,n,r){var o,i=ZD(t),a=AD(i),u=nC(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}},oC={includes:rC(!0),indexOf:rC(!1)},iC=oC.indexOf,aC=TE([].push),uC=function(e,t){var n,r=ZD(e),o=0,i=[];for(n in r)!LE(Ux,n)&&LE(r,n)&&aC(i,n);for(;t.length>o;)LE(r,n=t[o++])&&(~iC(i,n)||aC(i,n));return i},sC=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],lC=sC.concat("length","prototype"),cC={f:Object.getOwnPropertyNames||function(e){return uC(e,lC)}},fC={f:Object.getOwnPropertySymbols},dC=TE([].concat),pC=UE("Reflect","ownKeys")||function(e){var t=cC.f(gx(e)),n=fC.f;return n?dC(t,n(e)):t},hC=function(e,t){for(var n=pC(t),r=_x.f,o=QD.f,i=0;i<n.length;i++){var a=n[i];LE(e,a)||r(e,a,o(t,a))}},gC=/#|\.prototype\./,vC=function(e,t){var n=mC[yC(e)];return n==wC||n!=bC&&(HE(t)?ZE(t):!!t)},yC=vC.normalize=function(e){return String(e).replace(gC,".").toLowerCase()},mC=vC.data={},bC=vC.NATIVE="N",wC=vC.POLYFILL="P",EC=vC,xC=QD.f,DC=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?xE:l?xE[u]||CE(u,{}):(xE[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=xC(n,r))&&a.value:n[r],!EC(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;hC(i,o)}(e.sham||o&&o.sham)&&jx(i,"sham",!0),rD(n,r,i,e)}},CC=Object.keys||function(e){return uC(e,sC)},SC=ZE((function(){CC(1)}));
- /*!
- * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
- *
- * Copyright (c) 2014-2017, Jon Schlinkert.
- * Released under the MIT License.
- */function AC(e){return"[object Object]"===Object.prototype.toString.call(e)}DC({target:"Object",stat:!0,forced:SC},{keys:function(e){return CC(IE(e))}});var OC={isHistory(e){return!1!==AC(t=e)&&(void 0===(n=t.constructor)||!1!==AC(r=n.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(0===e.redos.length||wp.isOperationList(e.redos[0]))&&(0===e.undos.length||wp.isOperationList(e.undos[0]));var t,n,r}},kC=new WeakMap,BC=new WeakMap,FC={isHistoryEditor:e=>OC.isHistory(e.history)&&dp.isEditor(e),isMerging:e=>BC.get(e),isSaving:e=>kC.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=FC.isMerging(e);BC.set(e,!1),t(),BC.set(e,n)},withoutSaving(e,t){var n=FC.isSaving(e);kC.set(e,!1),t(),kC.set(e,n)}},TC=xE.String,_C=function(e){if("Symbol"===cD(e))throw TypeError("Cannot convert a Symbol value to a string");return TC(e)},PC=function(){var e=gx(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},jC=nD.PROPER,IC=RegExp.prototype,NC=IC.toString,LC=TE(PC),RC=ZE((function(){return"/a/b"!=NC.call({source:"a",flags:"b"})})),MC=jC&&"toString"!=NC.name;(RC||MC)&&rD(RegExp.prototype,"toString",(function(){var e=gx(this),t=_C(e.source),n=e.flags;return"/"+t+"/"+_C(void 0===n&&mx(IC,e)&&!("flags"in IC)?LC(e):n)}),{unsafe:!0});var zC,$C=ux?Object.defineProperties:function(e,t){gx(e);for(var n,r=ZD(t),o=CC(t),i=o.length,a=0;i>a;)_x.f(e,n=o[a++],r[n]);return e},HC=UE("document","documentElement"),VC=Vx("IE_PROTO"),UC=function(){},WC=function(e){return"<script>"+e+"<\/script>"},GC=function(e){e.write(WC("")),e.close();var t=e.parentWindow.Object;return e=null,t},qC=function(){try{zC=new ActiveXObject("htmlfile")}catch(r){}var e,t;qC="undefined"!=typeof document?document.domain&&zC?GC(zC):((t=fx("iframe")).style.display="none",HC.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(WC("document.F=Object")),e.close(),e.F):GC(zC);for(var n=sC.length;n--;)delete qC.prototype[sC[n]];return qC()};Ux[VC]=!0;var KC=Object.create||function(e,t){var n;return null!==e?(UC.prototype=gx(e),n=new UC,UC.prototype=null,n[VC]=e):n=qC(),void 0===t?n:$C(n,t)},XC=ox("unscopables"),YC=Array.prototype;null==YC[XC]&&_x.f(YC,XC,{configurable:!0,value:KC(null)});var ZC=function(e){YC[XC][e]=!0},JC=oC.includes;DC({target:"Array",proto:!0},{includes:function(e){return JC(this,e,arguments.length>1?arguments[1]:void 0)}}),ZC("includes");var QC=ox("match"),eS=function(e){var t;return sx(e)&&(void 0!==(t=e[QC])?!!t:"RegExp"==aD(e))},tS=xE.TypeError,nS=function(e){if(eS(e))throw tS("The method doesn't accept regular expressions");return e},rS=ox("match"),oS=function(e){var t=/./;try{"/./"[e](t)}catch(eI){try{return t[rS]=!1,"/./"[e](t)}catch(n){}}return!1},iS=TE("".indexOf);DC({target:"String",proto:!0,forced:!oS("includes")},{includes:function(e){return!!~iS(_C(PE(this)),_C(nS(e)),arguments.length>1?arguments[1]:void 0)}});var aS=/"/g,uS=TE("".replace);DC({target:"String",proto:!0,forced:ZE((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=_C(PE(this)),r="<a",(r+=' name="'+uS(_C(t),aS,""")+'"')+">"+n+"</a>";var t,n,r}});var sS=function(e,t,n){var r,o;gx(e);try{if(!(r=Sx(e,"return"))){if("throw"===t)throw n;return n}r=yx(r,e)}catch(i){o=!0,r=i}if("throw"===t)throw n;if(o)throw r;return gx(r),n},lS=function(e,t,n,r){try{return r?t(gx(n)[0],n[1]):t(n)}catch(o){sS(e,"throw",o)}},cS={},fS=ox("iterator"),dS=Array.prototype,pS=function(e){return void 0!==e&&(cS.Array===e||dS[fS]===e)},hS=function(e,t,n){var r=Bx(t);r in e?_x.f(e,r,Px(0,n)):e[r]=n},gS=ox("iterator"),vS=function(e){if(null!=e)return Sx(e,gS)||Sx(e,"@@iterator")||cS[cD(e)]},yS=xE.TypeError,mS=function(e,t){var n=arguments.length<2?vS(e):t;if(Cx(n))return gx(yx(n,e));throw yS(xx(e)+" is not iterable")},bS=xE.Array,wS=ox("iterator"),ES=!1;try{var xS=0,DS={next:function(){return{done:!!xS++}},return:function(){ES=!0}};DS[wS]=function(){return this},Array.from(DS,(function(){throw 2}))}catch(Wme){}var CS=function(e,t){if(!t&&!ES)return!1;var n=!1;try{var r={};r[wS]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(o){}return n},SS=!CS((function(e){Array.from(e)}));DC({target:"Array",stat:!0,forced:SS},{from:function(e){var t=IE(e),n=ID(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=void 0!==o;i&&(o=yD(o,r>2?arguments[2]:void 0));var a,u,s,l,c,f,d=vS(t),p=0;if(!d||this==bS&&pS(d))for(a=AD(t),u=n?new this(a):bS(a);a>p;p++)f=i?o(t[p],p):t[p],hS(u,p,f);else for(c=(l=mS(t,d)).next,u=n?new this:[];!(s=yx(c,l)).done;p++)f=i?lS(l,o,[s.value,p],!0):s.value,hS(u,p,f);return u.length=p,u}});var AS,OS,kS,BS=TE("".charAt),FS=TE("".charCodeAt),TS=TE("".slice),_S=function(e){return function(t,n){var r,o,i=_C(PE(t)),a=DD(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=FS(i,a))<55296||r>56319||a+1===u||(o=FS(i,a+1))<56320||o>57343?e?BS(i,a):r:e?TS(i,a,a+2):o-56320+(r-55296<<10)+65536}},PS={codeAt:_S(!1),charAt:_S(!0)},jS=!ZE((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),IS=Vx("IE_PROTO"),NS=xE.Object,LS=NS.prototype,RS=jS?NS.getPrototypeOf:function(e){var t=IE(e);if(LE(t,IS))return t[IS];var n=t.constructor;return HE(n)&&t instanceof n?n.prototype:t instanceof NS?LS:null},MS=ox("iterator"),zS=!1;[].keys&&("next"in(kS=[].keys())?(OS=RS(RS(kS)))!==Object.prototype&&(AS=OS):zS=!0);var $S=null==AS||ZE((function(){var e={};return AS[MS].call(e)!==e}));$S&&(AS={}),HE(AS[MS])||rD(AS,MS,(function(){return this}));var HS={IteratorPrototype:AS,BUGGY_SAFARI_ITERATORS:zS},VS=_x.f,US=ox("toStringTag"),WS=function(e,t,n){e&&!LE(e=n?e:e.prototype,US)&&VS(e,US,{configurable:!0,value:t})},GS=HS.IteratorPrototype,qS=function(){return this},KS=xE.String,XS=xE.TypeError,YS=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=TE(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(n,r){return gx(n),function(e){if("object"==typeof e||HE(e))return e;throw XS("Can't set "+KS(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),ZS=nD.PROPER,JS=nD.CONFIGURABLE,QS=HS.IteratorPrototype,eA=HS.BUGGY_SAFARI_ITERATORS,tA=ox("iterator"),nA=function(){return this},rA=function(e,t,n,r,o,i,a){var u,s,l;s=r,l=t+" Iterator",(u=n).prototype=KC(GS,{next:Px(1,s)}),WS(u,l,!1),cS[l]=qS;var c,f,d,p=function(e){if(e===o&&m)return m;if(!eA&&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[tA]||v["@@iterator"]||o&&v[o],m=!eA&&y||p(o),b="Array"==t&&v.entries||y;if(b&&(c=RS(b.call(new e)))!==Object.prototype&&c.next&&(RS(c)!==QS&&(YS?YS(c,QS):HE(c[tA])||rD(c,tA,nA)),WS(c,h,!0)),ZS&&"values"==o&&y&&"values"!==y.name&&(JS?jx(v,"name","values"):(g=!0,m=function(){return yx(y,this)})),o)if(f={values:p("values"),keys:i?m:p("keys"),entries:p("entries")},a)for(d in f)(eA||g||!(d in v))&&rD(v,d,f[d]);else DC({target:t,proto:!0,forced:eA||g},f);return v[tA]!==m&&rD(v,tA,m,{name:o}),cS[t]=m,f},oA=PS.charAt,iA=Jx.set,aA=Jx.getterFor("String Iterator");rA(String,"String",(function(e){iA(this,{type:"String Iterator",string:_C(e),index:0})}),(function(){var e,t=aA(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=oA(n,r),t.index+=e.length,{value:e,done:!1})}));var uA,sA=QD.f,lA=TE("".endsWith),cA=TE("".slice),fA=Math.min,dA=oS("endsWith"),pA=!(dA||(uA=sA(String.prototype,"endsWith"),!uA||uA.writable));DC({target:"String",proto:!0,forced:!pA&&!dA},{endsWith:function(e){var t=_C(PE(this));nS(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,o=void 0===n?r:fA(SD(n),r),i=_C(e);return lA?lA(t,i,o):cA(t,o-i.length,o)===i}});var hA=TE([].join),gA=wD!=Object,vA=HD("join",",");DC({target:"Array",proto:!0,forced:gA||!vA},{join:function(e){return hA(ZD(this),void 0===e?",":e)}});var yA=ox("species"),mA=function(e){return YE>=51||!ZE((function(){var t=[];return(t.constructor={})[yA]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},bA=$D.map,wA=mA("map");DC({target:"Array",proto:!0,forced:!wA},{map:function(e){return bA(this,e,arguments.length>1?arguments[1]:void 0)}});var EA=xE.RegExp,xA=ZE((function(){var e=EA("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),DA=xA||ZE((function(){return!EA("a","y").sticky})),CA={BROKEN_CARET:xA||ZE((function(){var e=EA("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:DA,UNSUPPORTED_Y:xA},SA=xE.RegExp,AA=ZE((function(){var e=SA(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),OA=xE.RegExp,kA=ZE((function(){var e=OA("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),BA=Jx.get,FA=AE("native-string-replace",String.prototype.replace),TA=RegExp.prototype.exec,_A=TA,PA=TE("".charAt),jA=TE("".indexOf),IA=TE("".replace),NA=TE("".slice),LA=function(){var e=/a/,t=/b*/g;return yx(TA,e,"a"),yx(TA,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),RA=CA.BROKEN_CARET,MA=void 0!==/()??/.exec("")[1];(LA||MA||RA||AA||kA)&&(_A=function(e){var t,n,r,o,i,a,u,s=this,l=BA(s),c=_C(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=yx(_A,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=RA&&s.sticky,h=yx(PC,s),g=s.source,v=0,y=c;if(p&&(h=IA(h,"y",""),-1===jA(h,"g")&&(h+="g"),y=NA(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==PA(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),MA&&(n=new RegExp("^"+g+"$(?!\\s)",h)),LA&&(r=s.lastIndex),o=yx(TA,p?n:s,y),p?o?(o.input=NA(o.input,v),o[0]=NA(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:LA&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),MA&&o&&o.length>1&&yx(FA,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=KC(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var zA=_A;DC({target:"RegExp",proto:!0,forced:/./.exec!==zA},{exec:zA});var $A=Function.prototype,HA=$A.apply,VA=$A.bind,UA=$A.call,WA="object"==typeof Reflect&&Reflect.apply||(VA?UA.bind(HA):function(){return UA.apply(HA,arguments)}),GA=ox("species"),qA=RegExp.prototype,KA=function(e,t,n,r){var o=ox(e),i=!ZE((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!ZE((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[GA]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=TE(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=TE(e),s=t.exec;return s===zA||s===qA.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));rD(String.prototype,e,s[0]),rD(qA,o,s[1])}r&&jx(qA[o],"sham",!0)},XA=PS.charAt,YA=function(e,t,n){return t+(n?XA(e,t).length:1)},ZA=Math.floor,JA=TE("".charAt),QA=TE("".replace),eO=TE("".slice),tO=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,nO=/\$([$&'`]|\d{1,2})/g,rO=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=nO;return void 0!==o&&(o=IE(o),s=tO),QA(i,s,(function(i,s){var l;switch(JA(s,0)){case"$":return"$";case"&":return e;case"`":return eO(t,0,n);case"'":return eO(t,a);case"<":l=o[eO(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=ZA(c/10);return 0===f?i:f<=u?void 0===r[f-1]?JA(s,1):r[f-1]+JA(s,1):i}l=r[c-1]}return void 0===l?"":l}))},oO=xE.TypeError,iO=function(e,t){var n=e.exec;if(HE(n)){var r=yx(n,e,t);return null!==r&&gx(r),r}if("RegExp"===aD(e))return yx(zA,e,t);throw oO("RegExp#exec called on incompatible receiver")},aO=ox("replace"),uO=Math.max,sO=Math.min,lO=TE([].concat),cO=TE([].push),fO=TE("".indexOf),dO=TE("".slice),pO="$0"==="a".replace(/./,"$0"),hO=!!/./[aO]&&""===/./[aO]("a","$0");KA("replace",(function(e,t,n){var r=hO?"$":"$0";return[function(e,n){var r=PE(this),o=null==e?void 0:Sx(e,aO);return o?yx(o,e,r,n):yx(t,_C(r),e,n)},function(e,o){var i=gx(this),a=_C(e);if("string"==typeof o&&-1===fO(o,r)&&-1===fO(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=HE(o);s||(o=_C(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=iO(i,a);if(null===d)break;if(cO(f,d),!l)break;""===_C(d[0])&&(i.lastIndex=YA(a,SD(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var y=_C((d=f[v])[0]),m=uO(sO(DD(d.index),a.length),0),b=[],w=1;w<d.length;w++)cO(b,void 0===(p=d[w])?p:String(p));var E=d.groups;if(s){var x=lO([y],b,m,a);void 0!==E&&cO(x,E);var D=_C(WA(o,void 0,x))}else D=rO(y,a,m,b,E,o);m>=g&&(h+=dO(a,g,m)+D,g=m+y.length)}return h+dO(a,g)}]}),!!ZE((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!pO||hO);
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */
- var gO=function(e,t){return(gO=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 vO(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}gO(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var yO=function(){return yO=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},yO.apply(this,arguments)};function mO(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 bO(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 wO(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}var EO=0,xO=function(){this.id=""+EO++},DO=Jx.set,CO=Jx.getterFor("Array Iterator"),SO=rA(Array,"Array",(function(e,t){DO(this,{type:"Array Iterator",target:ZD(e),index:0,kind:t})}),(function(){var e=CO(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");cS.Arguments=cS.Array,ZC("keys"),ZC("values"),ZC("entries");var AO=function(e,t,n){for(var r in t)rD(e,r,t[r],n);return e},OO=xE.Array,kO=Math.max,BO=function(e,t,n){for(var r=AD(e),o=nC(t,r),i=nC(void 0===n?r:n,r),a=OO(kO(i-o,0)),u=0;o<i;o++,u++)hS(a,u,e[o]);return a.length=u,a},FO=cC.f,TO="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],_O={f:function(e){return TO&&"Window"==aD(e)?function(e){try{return FO(e)}catch(t){return BO(TO)}}(e):FO(ZD(e))}},PO=ZE((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),jO=Object.isExtensible,IO=ZE((function(){jO(1)}))||PO?function(e){return!!sx(e)&&(!PO||"ArrayBuffer"!=aD(e))&&(!jO||jO(e))}:jO,NO=!ZE((function(){return Object.isExtensible(Object.preventExtensions({}))})),LO=mE((function(e){var t=_x.f,n=!1,r=$E("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=cC.f,t=TE([].splice),o={};o[r]=1,e(o).length&&(cC.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},DC({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:_O.f}))},fastKey:function(e,t){if(!sx(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!LE(e,r)){if(!IO(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!LE(e,r)){if(!IO(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return NO&&n&&IO(e)&&!LE(e,r)&&i(e),e}};Ux[r]=!0})),RO=xE.TypeError,MO=function(e,t){this.stopped=e,this.result=t},zO=MO.prototype,$O=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=yD(t,c),g=function(e){return r&&sS(r,"normal",e),new MO(!0,e)},v=function(e){return f?(gx(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=vS(e)))throw RO(xx(e)+" is not iterable");if(pS(o)){for(i=0,a=AD(e);a>i;i++)if((u=v(e[i]))&&mx(zO,u))return u;return new MO(!1)}r=mS(e,o)}for(s=r.next;!(l=yx(s,r)).done;){try{u=v(l.value)}catch(y){sS(r,"throw",y)}if("object"==typeof u&&u&&mx(zO,u))return u}return new MO(!1)},HO=xE.TypeError,VO=function(e,t){if(mx(t,e))return e;throw HO("Incorrect invocation")},UO=function(e,t,n){var r,o;return YS&&HE(r=t.constructor)&&r!==n&&sx(o=r.prototype)&&o!==n.prototype&&YS(e,o),e},WO=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=xE[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=TE(u[e]);rD(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!sx(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!sx(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!sx(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(EC(e,!HE(a)||!(o||u.forEach&&!ZE((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),LO.enable();else if(EC(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=ZE((function(){f.has(1)})),h=CS((function(e){new a(e)})),g=!o&&ZE((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){VO(e,u);var n=UO(new a,e,s);return null!=t&&$O(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,DC({global:!0,forced:s!=a},l),WS(s,e),o||n.setStrong(s,e,r),s},GO=LO.getWeakData,qO=Jx.set,KO=Jx.getterFor,XO=$D.find,YO=$D.findIndex,ZO=TE([].splice),JO=0,QO=function(e){return e.frozen||(e.frozen=new ek)},ek=function(){this.entries=[]},tk=function(e,t){return XO(e.entries,(function(e){return e[0]===t}))};ek.prototype={get:function(e){var t=tk(this,e);if(t)return t[1]},has:function(e){return!!tk(this,e)},set:function(e,t){var n=tk(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=YO(this.entries,(function(t){return t[0]===e}));return~t&&ZO(this.entries,t,1),!!~t}};var nk,rk={getConstructor:function(e,t,n,r){var o=e((function(e,o){VO(e,i),qO(e,{type:t,id:JO++,frozen:void 0}),null!=o&&$O(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=KO(t),u=function(e,t,n){var r=a(e),o=GO(gx(t),!0);return!0===o?QO(r).set(t,n):o[r.id]=n,e};return AO(i,{delete:function(e){var t=a(this);if(!sx(e))return!1;var n=GO(e);return!0===n?QO(t).delete(e):n&&LE(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!sx(e))return!1;var n=GO(e);return!0===n?QO(t).has(e):n&&LE(n,t.id)}}),AO(i,n?{get:function(e){var t=a(this);if(sx(e)){var n=GO(e);return!0===n?QO(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}},ok=Jx.enforce,ik=!xE.ActiveXObject&&"ActiveXObject"in xE,ak=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},uk=WO("WeakMap",ak,rk);if($x&&ik){nk=rk.getConstructor(ak,"WeakMap",!0),LO.enable();var sk=uk.prototype,lk=TE(sk.delete),ck=TE(sk.has),fk=TE(sk.get),dk=TE(sk.set);AO(sk,{delete:function(e){if(sx(e)&&!IO(e)){var t=ok(this);return t.frozen||(t.frozen=new nk),lk(this,e)||t.frozen.delete(e)}return lk(this,e)},has:function(e){if(sx(e)&&!IO(e)){var t=ok(this);return t.frozen||(t.frozen=new nk),ck(this,e)||t.frozen.has(e)}return ck(this,e)},get:function(e){if(sx(e)&&!IO(e)){var t=ok(this);return t.frozen||(t.frozen=new nk),ck(this,e)?fk(this,e):t.frozen.get(e)}return fk(this,e)},set:function(e,t){if(sx(e)&&!IO(e)){var n=ok(this);n.frozen||(n.frozen=new nk),ck(this,e)?dk(this,e,t):n.frozen.set(e,t)}else dk(this,e,t);return this}})}var pk=ox("iterator"),hk=ox("toStringTag"),gk=SO.values,vk=function(e,t){if(e){if(e[pk]!==gk)try{jx(e,pk,gk)}catch(r){e[pk]=gk}if(e[hk]||jx(e,hk,t),dD[t])for(var n in SO)if(e[n]!==SO[n])try{jx(e,n,SO[n])}catch(r){e[n]=SO[n]}}};for(var yk in dD)vk(xE[yk]&&xE[yk].prototype,yk);vk(gD,"DOMTokenList");var 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=new WeakMap,Vk=$D.find,Uk=!0;"find"in[]&&Array(1).find((function(){Uk=!1})),DC({target:"Array",proto:!0,forced:Uk},{find:function(e){return Vk(this,e,arguments.length>1?arguments[1]:void 0)}}),ZC("find"),DC({global:!0},{globalThis:xE});const Wk=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];Fg&&(gg.fn.css=Fg),Ng&&(gg.fn.append=Ng),vg&&(gg.fn.addClass=vg),yg&&(gg.fn.removeClass=yg),mg&&(gg.fn.hasClass=mg),Dg&&(gg.fn.on=Dg),qg&&(gg.fn.focus=qg),bg&&(gg.fn.attr=bg),wg&&(gg.fn.removeAttr=wg),kg&&(gg.fn.hide=kg),Bg&&(gg.fn.show=Bg),Og&&(gg.fn.offset=Og),Sg&&(gg.fn.width=Sg),Ag&&(gg.fn.height=Ag),Rg&&(gg.fn.parent=Rg),Mg&&(gg.fn.parents=Mg),Ig&&(gg.fn.is=Ig),Eg&&(gg.fn.dataset=Eg),xg&&(gg.fn.val=xg),jg&&(gg.fn.text=jg),Pg&&(gg.fn.html=Pg),$g&&(gg.fn.children=$g),Hg&&(gg.fn.remove=Hg),zg&&(gg.fn.find=zg),Tg&&(gg.fn.each=Tg),Vg&&(gg.fn.empty=Vg);var Gk,qk,Kk=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||null},Xk=function(e){return Yk(e)&&1===e.nodeType},Yk=function(e){var t=Kk(e);return!!t&&e instanceof t.Node},Zk=function(e){var t=e&&e.anchorNode&&Kk(e.anchorNode);return!!t&&e instanceof t.Selection},Jk=function(e){return Yk(e)&&3===e.nodeType},Qk=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},eB=function(e,t,n){for(var r,o=e.childNodes,i=o[t],a=t,u=!1,s=!1;(Yk(r=i)&&8===r.nodeType||Xk(i)&&0===i.childNodes.length||Xk(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]},tB=function(e,t,n){return bO(eB(e,t,n),1)[0]},nB=function e(t){var n,r,o="";if(Jk(t)&&t.nodeValue)return t.nodeValue;if(Xk(t)){try{for(var i=mO(Array.from(t.childNodes)),a=i.next();!a.done;a=i.next())o+=e(a.value)}catch(hf){n={error:hf}}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 rB(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||rB(o,t)}}function oB(e){if(0===e.length)return"";var t=e[0];return t.nodeType!==Gk.ELEMENT_NODE?"":t.tagName.toLowerCase()}(qk=Gk||(Gk={}))[qk.ELEMENT_NODE=1]="ELEMENT_NODE",qk[qk.TEXT_NODE=3]="TEXT_NODE",qk[qk.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",qk[qk.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",qk[qk.COMMENT_NODE=8]="COMMENT_NODE",qk[qk.DOCUMENT_NODE=9]="DOCUMENT_NODE",qk[qk.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",qk[qk.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 iB="undefined"!=typeof navigator&&/Mac OS X/.test(navigator.userAgent),aB="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 uB="undefined"!=typeof navigator&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),sB="undefined"!=typeof navigator&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),lB="undefined"!=typeof navigator&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),cB="undefined"!=typeof navigator&&/Chrome/i.test(navigator.userAgent);"undefined"!=typeof navigator&&/.*QQBrowser/.test(navigator.userAgent);var fB=!lB&&!sB&&"undefined"!=typeof globalThis&&globalThis.InputEvent&&"function"==typeof globalThis.InputEvent.prototype.getTargetRanges,dB={getWindow:function(e){var t=Rk.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=Lk.get(t);return n||(n=new xO,Lk.set(t,n)),n},setNewKey:function(e){var t=new xO;Lk.set(e,t)},findPath:function(e,t){for(var n=[],r=t;;){var o=_k.get(r);if(null==o){if(dp.isEditor(r))return n;break}var i=Tk.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=dB.toDOMNode(e,e),n=t.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&null!=n.getSelection?n:t.ownerDocument},getParentNode:function(e,t){return _k.get(t)||null},getParentsNodes:function(e,t){for(var n=[],r=t;r!==e&&null!=r;){var o=dB.getParentNode(e,r);if(null==o)break;n.push(o),r=o}return n},getTopNode:function(e,t){var n=[dB.findPath(e,t)[0]];return yp.get(e,n)},toDOMNode:function(e,t){var n;if(dp.isEditor(t))n=Pk.get(e);else{var r=dB.findKey(e,t);n=Ik.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=dB.toDOMNode(e,e);try{r=Xk(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=Bp.isBackward(t),i=dB.toDOMPoint(e,n),a=Bp.isCollapsed(t)?i:dB.toDOMPoint(e,r),u=dB.getWindow(e).document.createRange(),s=bO(o?a:i,2),l=s[0],c=s[1],f=bO(o?i:a,2),d=f[0],p=f[1],h=!!(Xk(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),g=!!(Xk(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=bO(dp.node(e,t.path),1)[0],a=dB.toDOMNode(e,i);dp.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=mO(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=Xk(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?jk.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=dB.toSlateNode(e,t.target),u=dB.findPath(e,a);if(dp.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=dp.point(e,u,{edge:l?"start":"end"}),f=l?dp.before(e,c):dp.after(e,c);if(f)return dp.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 dB.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((Zk(t)?t.anchorNode:t.startContainer)&&(Zk(t)?(r=t.anchorNode,o=t.anchorOffset,i=t.focusNode,a=t.focusOffset,u=cB&&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=dB.toSlatePoint(e,[r,o],{exactMatch:s,suppressThrow:l});if(!c)return null;var f=u?c:dB.toSlatePoint(e,[i,a],{exactMatch:s,suppressThrow:l});if(!f)return null;var d={anchor:c,focus:f};return Bp.isExpanded(d)&&Bp.isForward(d)&&Xk(i)&&dp.void(e,{at:d.focus,mode:"highest"})&&(d=dp.unhangRange(e,d,{voids:!0})),d},toSlatePoint:function(e,t,n){var r,o=n.exactMatch,i=n.suppressThrow,a=bO(o?t:function(e){var t,n=bO(e,2),r=n[0],o=n[1];if(Xk(r)&&r.childNodes.length){var i=o===r.childNodes.length,a=i?o-1:o;for(r=(t=bO(eB(r,a,i?"backward":"forward"),2))[0],i=(a=t[1])<o;Xk(r)&&r.childNodes.length;){var u=i?r.childNodes.length-1:0;r=tB(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=dB.getWindow(e).document.createRange();g.setStart(c,0),g.setEnd(u,s);var v=g.cloneContents();wO(wO([],bO(eg(v.querySelectorAll("[data-slate-zero-width]")))),bO(eg(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")||aB&&(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=dB.toSlateNode(e,c);return{path:dB.findPath(e,y),offset:f}},hasRange:function(e,t){var n=t.anchor,r=t.focus;return dp.hasPath(e,n.path)&&dp.hasPath(e,r.path)},getNodeType:function(e){return ap.isElement(e)?e.type:""},checkNodeType:function(e,t){return this.getNodeType(e)===t},getNodesStr:function(e){return e.map((function(e){return yp.string(e)})).join("")},getSelectedElems:function(e){var t,n,r=[],o=dp.nodes(e,{universal:!0});try{for(var i=mO(o),a=i.next();!a.done;a=i.next()){var u=bO(a.value,1)[0];ap.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=bO(dp.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=bO(dp.nodes(e,{match:function(e){return Np.isText(e)},universal:!0}),1)[0];return null==t?null:t[0]},isNodeSelected:function(e,t){var n=bO(dp.nodes(e,{match:function(e){return e===t},universal:!0}),1)[0];return null!=n&&bO(n,1)[0]===t},isSelectionAtLineEnd:function(e,t){var n=e.selection;return!!n&&(dp.isEnd(e,n.anchor,t)||dp.isEnd(e,n.focus,t))},getTextarea:function(e){var t=mk.get(e);if(null==t)throw new Error("Cannot find textarea instance by editor");return t},getToolbar:function(e){return Ek.get(e)||null},getHoverbar:function(e){return Dk.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=dB.getTextarea(e).$textArea,a=null==i?void 0:i[0].childNodes;if(a)try{for(var u=mO(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=dp.nodes(e,{match:function(t){return!(!ap.isElement(t)||e.isInline(t))},universal:!0});try{for(var f=mO(c),d=f.next();!d.done;d=f.next()){var p=d.value;if(null!=p){var h=p[0];rB(dB.toDOMNode(e,h),(function(e,t){var n=gg(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=dp.nodes(e,{match:function(t){return e.isVoid(t)}}),o=0;try{for(var i=mO(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(Bp.isExpanded(t))return!1;var n=dB.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=dp.node(e,t);if(null==n)return!1;var r=bO(n,1)[0].children;return 1===r.length&&""===r[0].text}},pB=1,hB={},gB={},vB=$D.filter,yB=mA("filter");DC({target:"Array",proto:!0,forced:!yB},{filter:function(e){return vB(this,e,arguments.length>1?arguments[1]:void 0)}});var mB="\t\n\v\f\r \u2028\u2029\ufeff",bB=TE("".replace),wB="["+mB+"]",EB=RegExp("^"+wB+wB+"*"),xB=RegExp(wB+wB+"*$"),DB=function(e){return function(t){var n=_C(PE(t));return 1&e&&(n=bB(n,EB,"")),2&e&&(n=bB(n,xB,"")),n}},CB={start:DB(1),end:DB(2),trim:DB(3)},SB=nD.PROPER,AB=CB.trim;DC({target:"String",proto:!0,forced:function(e){return ZE((function(){return!!mB.trim()||"
"!=="
".trim()||SB&&mB.trim.name!==e}))}("trim")},{trim:function(){return AB(this)}});var OB=[],kB={};function BB(e,t,n){var r=n.isInline(e)?"span":"div";return"<"+r+">"+t+"</"+r+">"}var FB,TB,_B,PB,jB=xE.Promise,IB=ox("species"),NB=function(e){var t=UE(e),n=_x.f;ux&&t&&!t[IB]&&n(t,IB,{configurable:!0,get:function(){return this}})},LB=xE.TypeError,RB=ox("species"),MB=function(e,t){var n,r=gx(e).constructor;return void 0===r||null==(n=gx(r)[RB])?t:function(e){if(ID(e))return e;throw LB(xx(e)+" is not a constructor")}(n)},zB=TE([].slice),$B=/(?:ipad|iphone|ipod).*applewebkit/i.test(WE),HB="process"==aD(xE.process),VB=xE.setImmediate,UB=xE.clearImmediate,WB=xE.process,GB=xE.Dispatch,qB=xE.Function,KB=xE.MessageChannel,XB=xE.String,YB=0,ZB={};try{FB=xE.location}catch(Wme){}var JB=function(e){if(LE(ZB,e)){var t=ZB[e];delete ZB[e],t()}},QB=function(e){return function(){JB(e)}},eF=function(e){JB(e.data)},tF=function(e){xE.postMessage(XB(e),FB.protocol+"//"+FB.host)};VB&&UB||(VB=function(e){var t=zB(arguments,1);return ZB[++YB]=function(){WA(HE(e)?e:qB(e),void 0,t)},TB(YB),YB},UB=function(e){delete ZB[e]},HB?TB=function(e){WB.nextTick(QB(e))}:GB&&GB.now?TB=function(e){GB.now(QB(e))}:KB&&!$B?(PB=(_B=new KB).port2,_B.port1.onmessage=eF,TB=yD(PB.postMessage,PB)):xE.addEventListener&&HE(xE.postMessage)&&!xE.importScripts&&FB&&"file:"!==FB.protocol&&!ZE(tF)?(TB=tF,xE.addEventListener("message",eF,!1)):TB="onreadystatechange"in fx("script")?function(e){HC.appendChild(fx("script")).onreadystatechange=function(){HC.removeChild(this),JB(e)}}:function(e){setTimeout(QB(e),0)});var nF,rF,oF,iF,aF,uF,sF,lF,cF={set:VB,clear:UB},fF=/ipad|iphone|ipod/i.test(WE)&&void 0!==xE.Pebble,dF=/web0s(?!.*chrome)/i.test(WE),pF=QD.f,hF=cF.set,gF=xE.MutationObserver||xE.WebKitMutationObserver,vF=xE.document,yF=xE.process,mF=xE.Promise,bF=pF(xE,"queueMicrotask"),wF=bF&&bF.value;wF||(nF=function(){var e,t;for(HB&&(e=yF.domain)&&e.exit();rF;){t=rF.fn,rF=rF.next;try{t()}catch(n){throw rF?iF():oF=void 0,n}}oF=void 0,e&&e.enter()},$B||HB||dF||!gF||!vF?!fF&&mF&&mF.resolve?((sF=mF.resolve(void 0)).constructor=mF,lF=yD(sF.then,sF),iF=function(){lF(nF)}):HB?iF=function(){yF.nextTick(nF)}:(hF=yD(hF,xE),iF=function(){hF(nF)}):(aF=!0,uF=vF.createTextNode(""),new gF(nF).observe(uF,{characterData:!0}),iF=function(){uF.data=aF=!aF}));var EF,xF,DF,CF,SF=wF||function(e){var t={fn:e,next:void 0};oF&&(oF.next=t),rF||(rF=t,iF()),oF=t},AF=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=Cx(t),this.reject=Cx(n)},OF={f:function(e){return new AF(e)}},kF=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},BF="object"==typeof window,FF=cF.set,TF=ox("species"),_F="Promise",PF=Jx.getterFor(_F),jF=Jx.set,IF=Jx.getterFor(_F),NF=jB&&jB.prototype,LF=jB,RF=NF,MF=xE.TypeError,zF=xE.document,$F=xE.process,HF=OF.f,VF=HF,UF=!!(zF&&zF.createEvent&&xE.dispatchEvent),WF=HE(xE.PromiseRejectionEvent),GF=!1,qF=EC(_F,(function(){var e=Mx(LF),t=e!==String(LF);if(!t&&66===YE)return!0;if(YE>=51&&/native code/.test(e))return!1;var n=new LF((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[TF]=r,!(GF=n.then((function(){}))instanceof r)||!t&&BF&&!WF})),KF=qF||!CS((function(e){LF.all(e).catch((function(){}))})),XF=function(e){var t;return!(!sx(e)||!HE(t=e.then))&&t},YF=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;SF((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&&eT(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(MF("Promise-chain cycle")):(u=XF(a))?yx(u,a,f,d):f(a)):d(r)}catch(h){p&&!s&&p.exit(),d(h)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&JF(e)}))}},ZF=function(e,t,n){var r,o;UF?((r=zF.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),xE.dispatchEvent(r)):r={promise:t,reason:n},!WF&&(o=xE["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=xE.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},JF=function(e){yx(FF,xE,(function(){var t,n=e.facade,r=e.value;if(QF(e)&&(t=kF((function(){HB?$F.emit("unhandledRejection",r,n):ZF("unhandledrejection",n,r)})),e.rejection=HB||QF(e)?2:1,t.error))throw t.value}))},QF=function(e){return 1!==e.rejection&&!e.parent},eT=function(e){yx(FF,xE,(function(){var t=e.facade;HB?$F.emit("rejectionHandled",t):ZF("rejectionhandled",t,e.value)}))},tT=function(e,t,n){return function(r){e(t,r,n)}},nT=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,YF(e,!0))},rT=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw MF("Promise can't be resolved itself");var r=XF(t);r?SF((function(){var n={done:!1};try{yx(r,t,tT(rT,n,e),tT(nT,n,e))}catch(o){nT(n,o,e)}})):(e.value=t,e.state=1,YF(e,!1))}catch(o){nT({done:!1},o,e)}}};if(qF&&(RF=(LF=function(e){VO(this,RF),Cx(e),yx(EF,this);var t=PF(this);try{e(tT(rT,t),tT(nT,t))}catch(n){nT(t,n)}}).prototype,(EF=function(e){jF(this,{type:_F,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=AO(RF,{then:function(e,t){var n=IF(this),r=n.reactions,o=HF(MB(this,LF));return o.ok=!HE(e)||e,o.fail=HE(t)&&t,o.domain=HB?$F.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&YF(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),xF=function(){var e=new EF,t=PF(e);this.promise=e,this.resolve=tT(rT,t),this.reject=tT(nT,t)},OF.f=HF=function(e){return e===LF||e===DF?new xF(e):VF(e)},HE(jB)&&NF!==Object.prototype)){CF=NF.then,GF||(rD(NF,"then",(function(e,t){var n=this;return new LF((function(e,t){yx(CF,n,e,t)})).then(e,t)}),{unsafe:!0}),rD(NF,"catch",RF.catch,{unsafe:!0}));try{delete NF.constructor}catch(Wme){}YS&&YS(NF,RF)}DC({global:!0,wrap:!0,forced:qF},{Promise:LF}),WS(LF,_F,!1),NB(_F),DF=UE(_F),DC({target:_F,stat:!0,forced:qF},{reject:function(e){var t=HF(this);return yx(t.reject,void 0,e),t.promise}}),DC({target:_F,stat:!0,forced:qF},{resolve:function(e){return function(e,t){if(gx(e),sx(t)&&t.constructor===e)return t;var n=OF.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),DC({target:_F,stat:!0,forced:KF},{all:function(e){var t=this,n=HF(t),r=n.resolve,o=n.reject,i=kF((function(){var n=Cx(t.resolve),i=[],a=0,u=1;$O(e,(function(e){var s=a++,l=!1;u++,yx(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=HF(t),r=n.reject,o=kF((function(){var o=Cx(t.resolve);$O(e,(function(e){yx(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var oT=CA.UNSUPPORTED_Y,iT=Math.min,aT=[].push,uT=TE(/./.exec),sT=TE(aT),lT=TE("".slice);function cT(e){Promise.resolve().then(e)}function fT(e,t){return ap.isElement(e)?function(e,t){var n=e.type,r=void 0===n?"":n,o=e.children,i=void 0===o?[]:o,a=dp.isVoid(t,e),u="";a||(u=i.map((function(e){return fT(e,t)})).join(""));var s=(kB[r]||BB)(e,u,t),l="";if(l="string"==typeof s?s:s.html||"",a||OB.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," ").replace(/</g,"<").replace(/>/g,">").replace(/®/g,"®").replace(/©/g,"©").replace(/™/g,"™");var o=dB.getParentsNodes(t,e).some((function(e){return"pre"===dB.getNodeType(e)}));if(o||(r=r.replace(/\r\n|\r|\n/g,"<br>")),o&&(r=r.replace(/ /g," ")),""===r){var i=dB.getParentNode(null,e);if(!i||0!==i.children.length)return r;r="<br>"}return OB.forEach((function(t){return r=t(e,r)})),r}(e,t)}function dT(e){return"w-e-element-"+e}KA("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=_C(PE(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!eS(e))return yx(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=yx(zA,f,r))&&!((a=f.lastIndex)>c&&(sT(s,lT(r,c,i.index)),i.length>1&&i.index<r.length&&WA(aT,s,BO(i,1)),u=i[0].length,c=a,s.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return c===r.length?!u&&uT(f,"")||sT(s,""):sT(s,lT(r,c)),s.length>o?BO(s,0,o):s}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:yx(t,this,e,n)}:t,[function(t,n){var o=PE(this),i=null==t?void 0:Sx(t,e);return i?yx(i,t,o,n):yx(r,_C(o),t,n)},function(e,o){var i=gx(this),a=_C(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=MB(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(oT?"g":"y"),f=new s(oT?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===iO(f,a)?[a]:[];for(var p=0,h=0,g=[];h<a.length;){f.lastIndex=oT?0:h;var v,y=iO(f,oT?lT(a,h):a);if(null===y||(v=iT(SD(f.lastIndex+(oT?h:0)),a.length))===p)h=YA(a,h,l);else{if(sT(g,lT(a,p,h)),g.length===d)return g;for(var m=1;m<=y.length-1;m++)if(sT(g,y[m]),g.length===d)return g;h=p=v}}return sT(g,lT(a,p)),g}]}),!!ZE((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]})),oT);var pT=function(e,t){var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},hT=function(e,t,n){var r=dB.toDOMRange(e,t).getBoundingClientRect(),o=dB.toDOMRange(e,n).getBoundingClientRect();return pT(r,o)&&pT(o,r)},gT=["span","b","strong","i","em","s","strike","u","font","sub","sup"],vT=[],yT=[],mT={},bT=_x.f,wT=cC.f,ET=Jx.enforce,xT=ox("match"),DT=xE.RegExp,CT=DT.prototype,ST=xE.SyntaxError,AT=TE(PC),OT=TE(CT.exec),kT=TE("".charAt),BT=TE("".replace),FT=TE("".indexOf),TT=TE("".slice),_T=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,PT=/a/g,jT=/a/g,IT=new DT(PT)!==PT,NT=CA.MISSED_STICKY,LT=CA.UNSUPPORTED_Y,RT=ux&&(!IT||NT||AA||kA||ZE((function(){return jT[xT]=!1,DT(PT)!=PT||DT(jT)==jT||"/a/i"!=DT(PT,"i")})));if(EC("RegExp",RT)){for(var MT=function(e,t){var n,r,o,i,a,u,s=mx(CT,this),l=eS(e),c=void 0===t,f=[],d=e;if(!s&&l&&c&&e.constructor===MT)return e;if((l||mx(CT,e))&&(e=e.source,c&&(t="flags"in d?d.flags:AT(d))),e=void 0===e?"":_C(e),t=void 0===t?"":_C(t),d=e,AA&&"dotAll"in PT&&(r=!!t&&FT(t,"s")>-1)&&(t=BT(t,/s/g,"")),n=t,NT&&"sticky"in PT&&(o=!!t&&FT(t,"y")>-1)&<&&(t=BT(t,/y/g,"")),kA&&(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=kT(e,r)))t+=kT(e,++r);else if("]"===t)u=!1;else if(!u)switch(!0){case"["===t:u=!0;break;case"("===t:OT(_T,TT(e,r+1))&&(r+=2,s=!0),o+=t,l++;continue;case">"===t&&s:if(""===c||LE(a,c))throw new ST("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=UO(DT(e,t),s?this:CT,MT),(r||o||f.length)&&(u=ET(a),r&&(u.dotAll=!0,u.raw=MT(function(e){for(var t,n=e.length,r=0,o="",i=!1;r<=n;r++)"\\"!==(t=kT(e,r))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),o+=t):o+="[\\s\\S]":o+=t+kT(e,++r);return o}(e),n)),o&&(u.sticky=!0),f.length&&(u.groups=f)),e!==d)try{jx(a,"source",""===d?"(?:)":d)}catch(p){}return a},zT=function(e){e in MT||bT(MT,e,{configurable:!0,get:function(){return DT[e]},set:function(t){DT[e]=t}})},$T=wT(DT),HT=0;$T.length>HT;)zT($T[HT++]);CT.constructor=MT,MT.prototype=CT,rD(xE,"RegExp",MT)}NB("RegExp");var VT=new RegExp(String.fromCharCode(160),"g");function UT(e){return e.replace(VT," ")}function WT(e,t){var n=e.length;if(n){var r=e[n-1];if(Np.isText(r)){var o=Object.keys(r);if(1===o.length&&"text"===o[0])return r.text=r.text+t,!0}}return!1}function GT(e,t,n){return{type:"paragraph",children:[{text:gg(e).text().replace(/\s+/gm," ")}]}}function qT(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!==Gk.ELEMENT_NODE)if(e.nodeType!==Gk.TEXT_NODE);else{var r=e.textContent||"";if(""===r.trim()&&r.indexOf("\n")>=0)return;r&&(r=UT(r),WT(n,r)||n.push({text:r}))}else{if("BR"===e.nodeName)return void(WT(n,"\n")||n.push({text:"\n"}));var o=XT(gg(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 mT)if(e[0].matches(t))return mT[t];return GT}(e)(e[0],n,t);return Array.isArray(r)||(r=[r]),r.forEach((function(r){dp.isVoid(t,r)||(0===n.length&&(r.children=[{text:e.text().replace(/\s+/gm," ")}]),yT.forEach((function(n){r=n(e[0],r,t)})))})),r}function KT(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=UT(n=n.replace(/ /g," ").replace(/</g,"<").replace(/>/g,">").replace(/®/g,"®").replace(/©/g,"©").replace(/™/g,"™").replace(/"/g,'"'))};return yT.forEach((function(n){r=n(e[0],r,t)})),r}function XT(e,t){vT.forEach((function(t){var n=t.selector,r=t.preParseHtml;e[0].matches(n)&&(e=gg(r(e[0])))}));var n=oB(e);return"span"===n?e.attr("data-w-e-type")?qT(e,t):KT(e,t):"code"===n?"pre"===oB(e.parent())?qT(e,t):KT(e,t):gT.includes(n)?KT(e,t):qT(e,t)}function YT(e,t,n){var r=gg(n);return!!r.attr(t)||(r.attr(t,"true"),e.on("destroyed",(function(){r.removeAttr(t)})),!1)}function ZT(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=gg("<div>"+t+"</div>");return Array.from(r.children()).forEach((function(t){var r=XT(gg(t),e);Array.isArray(r)?r.forEach((function(e){return n.push(e)})):n.push(r)})),n}var JT=_x.f,QT=LO.fastKey,e_=Jx.set,t_=Jx.getterFor,n_={getConstructor:function(e,t,n,r){var o=e((function(e,o){VO(e,i),e_(e,{type:t,index:KC(null),first:void 0,last:void 0,size:0}),ux||(e.size=0),null!=o&&$O(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=t_(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=QT(t,!0),key:t,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=u),r&&(r.next=u),ux?i.size++:e.size++,"F"!==o&&(i.index[o]=u)),e},s=function(e,t){var n,r=a(e),o=QT(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return AO(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,ux?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),ux?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=a(this),r=yD(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)}}),AO(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)}}),ux&&JT(i,"size",{get:function(){return a(this).size}}),o},setStrong:function(e,t,n){var r=t+" Iterator",o=t_(t),i=t_(r);rA(e,t,(function(e,t){e_(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),NB(t)}};WO("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n_);var r_=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function o_(e,t){e.isInline(t)?(e.insertNode(t),"link"===t.type&&e.insertFragment([{text:""}])):eh.insertNodes(e,t,{mode:"highest"})}var i_=function(e){var t=e,n=t.insertText;return t.insertFragment,t.setFragmentData=function(e){var n=t.selection;if(n){var r=bO(Bp.edges(n),2),o=r[0],i=r[1],a=dp.void(t,{at:o.path}),u=dp.void(t,{at:i.path});if(!Bp.isCollapsed(n)||a){var s=dB.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=bO(u,1)[0],d=s.cloneRange(),p=dB.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":""})),Jk(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",nB(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=mO(c),p=d.next();!p.done;p=d.next()){var h=p.value;f&&eh.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},a_=function(e){return null!=e},u_={object:!0,function:!0,undefined:!0},s_=/^\s*class[\s{/}]/,l_=Function.prototype.toString,c_=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(!a_(t=e)||!hasOwnProperty.call(u_,typeof t))return!1;var t;try{return!!e.constructor&&e.constructor.prototype===e}catch(t){return!1}}(e)}(e)&&!s_.test(l_.call(e))},f_=function(e){return null!=e},d_=Object.keys,p_=function(){try{return Object.keys("primitive"),!0}catch(hf){return!1}}()?Object.keys:function(e){return d_(f_(e)?Object(e):e)},h_=function(e){if(!f_(e))throw new TypeError("Cannot use null or undefined");return e},g_=Math.max,v_=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=g_(arguments.length,2);for(e=Object(h_(e)),o=function(r){try{e[r]=t[r]}catch(o){n||(n=o)}},r=1;r<i;++r)p_(t=arguments[r]).forEach(o);if(void 0!==n)throw n;return e},y_=Array.prototype.forEach,m_=Object.create,b_=function(e,t){var n;for(n in e)t[n]=e[n]},w_=function(e){var t=m_(null);return y_.call(arguments,(function(e){f_(e)&&b_(Object(e),t)})),t},E_="razdwatrzy",x_=String.prototype.indexOf,D_="function"==typeof E_.contains&&!0===E_.contains("dwa")&&!1===E_.contains("foo")?String.prototype.contains:function(e){return x_.call(this,e,arguments[1])>-1},C_=mE((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],a_(e)?(n=D_.call(e,"c"),r=D_.call(e,"e"),o=D_.call(e,"w")):(n=o=!0,r=!1),a={value:t,configurable:n,enumerable:r,writable:o},i?v_(w_(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],a_(t)?c_(t)?a_(n)?c_(n)||(i=n,n=void 0):n=void 0:(i=t,t=n=void 0):t=void 0,a_(e)?(r=D_.call(e,"c"),o=D_.call(e,"e")):(r=!0,o=!1),a={get:t,set:n,configurable:r,enumerable:o},i?v_(w_(i),a):a}})),S_=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e},A_=mE((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 S_(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 S_(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(S_(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:C_(n),once:C_(r),off:C_(o),emit:C_(i)},s=p({},u),e.exports=t=function(e){return null==e?f(s):p(Object(e),u)},t.methods=a}));function O_(e){var t=$k.get(e);return null==t&&(t=A_(),$k.set(e,t)),t}var k_=new WeakMap;function B_(e,t){var n=k_.get(e);null==n&&(n=new Set,k_.set(e,n)),n.add(t)}function F_(e){return k_.get(e)||new Set}function T_(e){k_.set(e,new Set)}function __(e){var t=dB.getTextarea(e).$textAreaContainer,n=t.width(),r=t.height(),o=t.offset();return{top:o.top,left:o.left,width:n,height:r}}function P_(e){var t={top:"0",left:"0"},n=e.selection;if(null==n)return t;var r=__(e);if(null==r)return t;var o=r.top,i=r.left,a=r.width,u=r.height,s=dB.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 j_(e,t,n){void 0===n&&(n="modal");var r={top:"0",left:"0"};if(null==e.selection)return r;var o=ap.isElement(t)&&e.isVoid(t),i=ap.isElement(t)&&e.isInline(t),a=Nk.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(Wk.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=__(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 I_(e,t){cT((function(){var n=__(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 N_=mA("slice"),L_=ox("species"),R_=xE.Array,M_=Math.max;DC({target:"Array",proto:!0,forced:!N_},{slice:function(e,t){var n,r,o,i=ZD(this),a=AD(i),u=nC(e,a),s=nC(void 0===t?a:t,a);if(OD(i)&&(n=i.constructor,(ID(n)&&(n===R_||OD(n.prototype))||sx(n)&&null===(n=n[L_]))&&(n=void 0),n===R_||void 0===n))return zB(i,u,s);for(r=new(void 0===n?R_:n)(M_(s-u,0)),o=0;u<s;u++,o++)u in i&&hS(r,o,i[u]);return r.length=o,r}});var z_=QD.f,$_=TE("".startsWith),H_=TE("".slice),V_=Math.min,U_=oS("startsWith"),W_=!U_&&!!function(){var e=z_(String.prototype,"startsWith");return e&&!e.writable}();DC({target:"String",proto:!0,forced:!W_&&!U_},{startsWith:function(e){var t=_C(PE(this));nS(e);var n=SD(V_(arguments.length>1?arguments[1]:void 0,t.length)),r=_C(e);return $_?$_(t,r,n):H_(t,n,n+r.length)===r}});var G_=Object.assign,q_=Object.defineProperty,K_=TE([].concat),X_=!G_||ZE((function(){if(ux&&1!==G_({b:1},G_(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!=G_({},e)[n]||CC(G_({},t)).join("")!=r}))?function(e,t){for(var n=IE(e),r=arguments.length,o=1,i=fC.f,a=YD.f;r>o;)for(var u,s=wD(arguments[o++]),l=i?K_(CC(s),i(s)):CC(s),c=l.length,f=0;c>f;)u=l[f++],ux&&!yx(a,s,u)||(n[u]=s[u]);return n}:G_;DC({target:"Object",stat:!0,forced:Object.assign!==X_},{assign:X_});var Y_=["props","attrs","style","dataset","on","hook"];function Z_(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(!Y_.includes(t)){if(t.startsWith("data-")){var a=t.slice(5);return a=Uy(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&&Z_(e)}))}var J_=[],Q_={};function eP(e,t,n){return oy(n.isInline(e)?"span":"div",null,t)}function tP(e,t){return void 0===t&&(t=!1),oy("span",{"data-slate-string":!0},t?e+"\n":e)}function nP(e,t){return void 0===e&&(e=0),void 0===t&&(t=!1),oy("span",{"data-slate-zero-width":t?"n":"z","data-slate-length":e},"\ufeff",t?oy("br",null):null)}function rP(e,t,n,r){return Tk.set(e,t),_k.set(e,n),ap.isElement(e)?function(e,t){var n,r=dB.findKey(t,e),o=t.isInline(e),i=dp.isVoid(t,e),a=dT(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=Q_[s]||eP;n=i?null:c.map((function(n,r){return rP(n,r,e,t)}));var d=f(e,n,t);if(i){u["data-slate-void"]=!0;var p=o?"span":"div",h=bO(yp.texts(e),1),g=bO(h[0],1)[0],v=oy(p,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},rP(g,0,e,t));d=oy(p,{style:{position:"relative"}},d,v),Tk.set(g,0),_k.set(g,e)}return null==d.data&&(d.data={}),Object.assign(d.data,u),i||o||(d=function(e,t){var n=t;return J_.forEach((function(r){n=r(e,t)})),n}(e,d)),cT((function(){var t=Qk(a);null!=t&&(Ik.set(r,t),Nk.set(e,t),jk.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=dB.findKey(n,e),o=n.getConfig().decorate;if(null==o)throw new Error("Can not get config.decorate");var i=dB.findPath(n,e),a=o([e,i]),u=Np.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=dB.findPath(o,n),u=Ep.parent(a);if(dp.isEditor(r))throw new Error("Text node "+JSON.stringify(n)+" parent is Editor");return o.isVoid(r)?nP(yp.string(r).length):""!==i||r.children[r.children.length-1]!==n||o.isInline(r)||""!==dp.string(o,u)?""===i?nP():t&&"\n"===i.slice(-1)?tP(i,!0):tP(i):nP(0,!0)}(r,o===u.length-1,e,t,n);return i=r,a=s,J_.forEach((function(e){a=e(i,a)})),oy("span",{"data-slate-leaf":!0},s=a)})),l="w-e-text-"+r.id,c=oy("span",{"data-slate-node":"text",id:l,key:r.id},s);return cT((function(){var t=Qk(l);null!=t&&(Ik.set(r,t),Nk.set(e,t),jk.set(t,e))})),c}(e,n,r)}function oP(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),Rv("div#"+e,{props:{contentEditable:!t}})}(o,a),l=t.children||[];s.children=l.map((function(e,n){var r=rP(e,n,t,t);return Z_(r),r}));var c=kk.get(e);if(null==c&&(c=!0),c){var f=function(e,t){return gg('<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=Nv([Hv,Zv,ny,Wv,Xv,zv]))(n,s),kk.set(e,!1),Bk.set(e,p)}else{var d=Fk.get(e),p=Bk.get(e);if(null==d||null==p)return;n=d.elm,p(d,s)}if(null!=n||null!=(n=Qk(o))){if((c?u:t.isFocused())&&n.focus({preventScroll:!0}),c){var h=Kk(n);h&&Rk.set(t,h)}Pk.set(t,n),Nk.set(t,n),jk.set(n,t),Fk.set(e,s)}}function iP(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function aP(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function uP(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return aP(n.overflowY,t)||aP(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 sP(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 lP(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(!iP(e))throw new TypeError("Invalid target");for(var l=document.scrollingElement||document.documentElement,c=[],f=e;iP(f)&&s(f);){if((f=f.parentElement)===l){c.push(f);break}null!=f&&f===document.body&&uP(f)&&!uP(document.documentElement)||null!=f&&uP(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?sP(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:sP(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?sP(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:sP(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 cP(e){return e===Object(e)&&0!==Object.keys(e).length}function fP(e,t){return Yk(t)&&dB.hasDOMNode(e,t,{editable:!0})}function dP(e,t){if(e.getConfig().readOnly)return!1;var n=pP(e,t)&&dB.toSlateNode(e,t);return dp.isVoid(e,n)}function pP(e,t){return Yk(t)&&dB.hasDOMNode(e,t)}function hP(e,t,n){void 0===n&&(n=!1);var r=t.selection,o=t.getConfig(),i=dB.findDocumentOrShadowRoot(t).getSelection();if(i&&(!e.isComposing||n)&&t.isFocused()){var a="None"!==i.type;if(r||a){var u=Pk.get(t),s=!1;if(u.contains(i.anchorNode)&&u.contains(i.focusNode)&&(s=!0),a&&s&&r){var l=dB.toSlateRange(t,i,{exactMatch:!0,suppressThrow:!0});if(l&&Bp.equals(l,r)){var c=!0;if(Bp.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||dB.hasRange(t,r)){e.isUpdatingSelection=!0;var g=r&&dB.toDOMRange(t,r);if(g){Bp.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(cP(t)&&"function"==typeof t.behavior)return t.behavior(r?[]:lP(e,t));if(!r){var o=!1===(n=t)?{block:"end",inline:"nearest"}:cP(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)}))}(lP(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&&aB&&u.focus(),e.isUpdatingSelection=!1}))}else t.selection=dB.toSlateRange(t,i,{exactMatch:!1,suppressThrow:!1})}}}var gP=new WeakMap,vP=new WeakMap,yP={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"},mP={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"},bP={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},wP=function(e){var t=yP[e],n=mP[e],r=bP[e],o=t&&em(t),i=n&&em(n),a=r&&em(r);return function(e){return!(!o||!o(e))||!!(iB&&i&&i(e))||!(iB||!a||!a(e))}},EP={isBold:wP("bold"),isCompose:wP("compose"),isMoveBackward:wP("moveBackward"),isMoveForward:wP("moveForward"),isDeleteBackward:wP("deleteBackward"),isDeleteForward:wP("deleteForward"),isDeleteLineBackward:wP("deleteLineBackward"),isDeleteLineForward:wP("deleteLineForward"),isDeleteWordBackward:wP("deleteWordBackward"),isDeleteWordForward:wP("deleteWordForward"),isExtendBackward:wP("extendBackward"),isExtendForward:wP("extendForward"),isExtendLineBackward:wP("extendLineBackward"),isExtendLineForward:wP("extendLineForward"),isItalic:wP("italic"),isMoveLineBackward:wP("moveLineBackward"),isMoveLineForward:wP("moveLineForward"),isMoveWordBackward:wP("moveWordBackward"),isMoveWordForward:wP("moveWordForward"),isRedo:wP("redo"),isSplitBlock:wP("splitBlock"),isTransposeCharacter:wP("transposeCharacter"),isUndo:wP("undo"),isTab:wP("tab"),isSelectAll:wP("selectAll")};function xP(e){e.preventDefault()}var DP={beforeinput:function(e,t,n){var r=e,o=n.getConfig().readOnly;if(fB&&!o&&fP(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=bO(r.getTargetRanges(),1)[0];if(s){var l=dB.toSlateRange(n,s,{exactMatch:!1,suppressThrow:!1});i&&Bp.equals(i,l)||eh.select(n,l)}}if(i&&Bp.isExpanded(i)&&a.startsWith("delete")){var c=a.endsWith("Backward")?"backward":"forward";dp.deleteFragment(n,{direction:c})}else switch(a){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":dp.deleteFragment(n);break;case"deleteContent":case"deleteContentForward":dp.deleteForward(n);break;case"deleteContentBackward":dp.deleteBackward(n);break;case"deleteEntireSoftLine":dp.deleteBackward(n,{unit:"line"}),dp.deleteForward(n,{unit:"line"});break;case"deleteHardLineBackward":dp.deleteBackward(n,{unit:"block"});break;case"deleteSoftLineBackward":dp.deleteBackward(n,{unit:"line"});break;case"deleteHardLineForward":dp.deleteForward(n,{unit:"block"});break;case"deleteSoftLineForward":dp.deleteForward(n,{unit:"line"});break;case"deleteWordBackward":dp.deleteBackward(n,{unit:"word"});break;case"deleteWordForward":dp.deleteForward(n,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":dp.insertBreak(n);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if("insertFromPaste"===a&&!Hk.get(n))break;u instanceof DataTransfer?n.insertData(u):"string"==typeof u&&dp.insertText(n,u)}}}},blur:function(e,t,n){var r=e,o=t.isUpdatingSelection,i=t.latestElement;if(!n.getConfig().readOnly&&!o&&fP(n,r.target)){var a=dB.findDocumentOrShadowRoot(n);if(i!==a.activeElement){var u=r.relatedTarget;if(!(u===dB.toDOMNode(n,n)||Xk(u)&&u.hasAttribute("data-slate-spacer"))){if(null!=u&&Yk(u)&&dB.hasDOMNode(n,u)){var s=dB.toSlateNode(n,u);if(ap.isElement(s)&&!n.isVoid(s))return}if(uB){var l=a.getSelection();null==l||l.removeAllRanges()}Mk.delete(n)}}}},focus:function(e,t,n){var r=dB.toDOMNode(n,n),o=dB.findDocumentOrShadowRoot(n);t.latestElement=o.activeElement,aB&&e.target!==r?r.focus():Mk.set(n,!0)},click:function(e,t,n){if(!n.getConfig().readOnly&&pP(n,e.target)&&Yk(e.target)){var r=dB.toSlateNode(n,e.target),o=dB.findPath(n,r);if(dp.hasPath(n,o)&&yp.get(n,o)===r){var i=dp.start(n,o),a=dp.end(n,o),u=dp.void(n,{at:i}),s=dp.void(n,{at:a});if(u&&s&&Ep.equals(u[1],s[1])){var l=dp.range(n,i);eh.select(n,l)}}}},compositionstart:function(e,t,n){if(fP(n,e.target)){var r=n.selection;if(r&&Bp.isExpanded(r)&&(dp.deleteFragment(n),Promise.resolve().then((function(){hP(t,n,!0)}))),r&&Bp.isCollapsed(r)){var o=dB.toDOMRange(n,r).startContainer,i=o.textContent||"";gP.set(n,i),vP.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(fP(n,r.target)){t.isComposing=!1;var o=n.selection;if(null!=o){(cB||aB)&&dB.cleanExposedTexNodeInSelectionBlock(n);for(var i=Bp.isBackward(o)?o.focus:o.anchor,a=bO(dp.node(n,[i.path[0]]),1)[0],u=0;u<i.path.length;u++){var s=bO(dp.node(n,i.path.slice(0,u+1)),1)[0];if(ap.isElement(s)&&((uB||aB)&&"link"===s.type||"code"===s.type)){dB.setNewKey(a);break}}var l=r.data;if(l){if(n.getConfig().maxLength){var c=dB.getLeftLengthOfMaxLength(n);c<l.length?(dB.toDOMRange(n,o).startContainer.textContent=gP.get(n)||"",c>0&&dp.insertText(n,l.slice(0,c)),t.changeViewState()):dp.insertText(n,l)}else dp.insertText(n,l);uB||setTimeout((function(){var e=n.selection;if(null!=e){var t=vP.get(n);null!=t&&dB.toDOMRange(n,e).startContainer!==t&&(t.textContent=gP.get(n)||"")}}))}}}},compositionupdate:function(e,t,n){fP(n,e.target)&&(t.isComposing=!0)},keydown:function(e,t,n){var r=e,o=n.selection;if(!n.getConfig().readOnly&&!t.isComposing&&fP(n,r.target)){if(function(e,t){var n=Ek.get(e),r=n&&n.getMenus(),o=Dk.get(e),i=o&&o.getMenus(),a=yO(yO({},r),i);for(var u in a){var s=a[u],l=s.hotkey;if(l&&Qy(l,t)&&!s.isDisabled(e)){var c=s.getValue(e);s.exec(e,c)}}}(n,r),EP.isTab(r))return xP(r),void n.handleTab();if(EP.isRedo(r))return xP(r),void("function"==typeof n.redo&&n.redo());if(EP.isUndo(r))return xP(r),void("function"==typeof n.undo&&n.undo());if(EP.isMoveLineBackward(r))return xP(r),void eh.move(n,{unit:"line",reverse:!0});if(EP.isMoveLineForward(r))return xP(r),void eh.move(n,{unit:"line"});if(EP.isExtendLineBackward(r))return xP(r),void eh.move(n,{unit:"line",edge:"focus",reverse:!0});if(EP.isExtendLineForward(r))return xP(r),void eh.move(n,{unit:"line",edge:"focus"});if(EP.isMoveBackward(r))return xP(r),void(o&&Bp.isCollapsed(o)?eh.move(n,{reverse:!0}):eh.collapse(n,{edge:"start"}));if(EP.isMoveForward(r))return xP(r),void(o&&Bp.isCollapsed(o)?eh.move(n):eh.collapse(n,{edge:"end"}));if(EP.isMoveWordBackward(r))return xP(r),o&&Bp.isExpanded(o)&&eh.collapse(n,{edge:"focus"}),void eh.move(n,{unit:"word",reverse:!0});if(EP.isMoveWordForward(r))return xP(r),o&&Bp.isExpanded(o)&&eh.collapse(n,{edge:"focus"}),void eh.move(n,{unit:"word"});if(EP.isSelectAll(r))return xP(r),void n.selectAll();if(fB){if((cB||uB)&&o&&(EP.isDeleteBackward(r)||EP.isDeleteForward(r))&&Bp.isCollapsed(o)){var i=yp.parent(n,o.anchor.path);if(ap.isElement(i)&&dp.isVoid(n,i)&&dp.isInline(n,i))return r.preventDefault(),void eh.delete(n,{unit:"block"})}}else{if(EP.isBold(r)||EP.isItalic(r)||EP.isTransposeCharacter(r))return void xP(r);if(EP.isSplitBlock(r))return xP(r),void dp.insertBreak(n);if(EP.isDeleteBackward(r))return xP(r),void(o&&Bp.isExpanded(o)?dp.deleteFragment(n,{direction:"backward"}):dp.deleteBackward(n));if(EP.isDeleteForward(r))return xP(r),void(o&&Bp.isExpanded(o)?dp.deleteFragment(n,{direction:"forward"}):dp.deleteForward(n));if(EP.isDeleteLineBackward(r))return xP(r),void(o&&Bp.isExpanded(o)?dp.deleteFragment(n,{direction:"backward"}):dp.deleteBackward(n,{unit:"line"}));if(EP.isDeleteLineForward(r))return xP(r),void(o&&Bp.isExpanded(o)?dp.deleteFragment(n,{direction:"forward"}):dp.deleteForward(n,{unit:"line"}));if(EP.isDeleteWordBackward(r))return xP(r),void(o&&Bp.isExpanded(o)?dp.deleteFragment(n,{direction:"backward"}):dp.deleteBackward(n,{unit:"word"}));if(EP.isDeleteWordForward(r))return xP(r),void(o&&Bp.isExpanded(o)?dp.deleteFragment(n,{direction:"forward"}):dp.deleteForward(n,{unit:"word"}))}}},keypress:function(e,t,n){if(!fB&&!n.getConfig().readOnly&&fP(n,e.target)){e.preventDefault();var r=e.key;dp.insertText(n,r)}},copy:function(e,t,n){var r=e;if(fP(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&&fP(n,r.target)){r.preventDefault();var i=r.clipboardData;if(null!=i&&(n.setFragmentData(i),o))if(Bp.isExpanded(o))dp.deleteFragment(n);else{var a=yp.parent(n,o.anchor.path);dp.isVoid(n,a)&&eh.delete(n)}}},paste:function(e,t,n){Hk.set(n,!0);var r,o=e;if(!n.getConfig().readOnly&&fP(n,o.target)){var i=n.getConfig().customPaste;if(i&&!1===i(n,o))return void Hk.set(n,!1);if(!fB||(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(pP(n,e.target)){var r=dB.toSlateNode(n,e.target);dp.isVoid(n,r)&&e.preventDefault()}},dragstart:function(e,t,n){var r=e;if(pP(n,r.target)&&!n.getConfig().readOnly){var o=dB.toSlateNode(n,r.target),i=dB.findPath(n,o);if(dp.isVoid(n,o)||dp.void(n,{at:i,voids:!0})){var a=dp.range(n,i);eh.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&&pP(n,r.target)&&(t.isDraggingInternally=!1)},drop:function(e,t,n){var r=e,o=r.dataTransfer;if(!n.getConfig().readOnly&&pP(n,r.target)&&null!=o&&!(fB&&uB&&o.files.length>0)){r.preventDefault();var i=n.selection,a=dB.findEventRange(n,r);eh.select(n,a),t.isDraggingInternally&&(i&&eh.delete(n,{at:i}),t.isDraggingInternally=!1),n.insertData(o),n.isFocused()||n.focus()}}},CP=1,SP=function(){function e(e){var t=this;this.id=CP++,this.$textArea=null,this.$progressBar=gg('<div class="w-e-progress-bar"></div>'),this.$maxLengthInfo=gg('<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=Sv((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=dB.findDocumentOrShadowRoot(t),a=i.activeElement,u=dB.toDOMNode(t,t),s=i.getSelection();if(a===u?(e.latestElement=a,Mk.set(t,!0)):Mk.delete(t),!s)return eh.deselect(t);var l=s.anchorNode,c=s.focusNode,f=fP(t,l)||dP(t,l),d=fP(t,c)||dP(t,c);if(f&&d){var p=dB.toSlateRange(t,s,{exactMatch:!1,suppressThrow:!1});eh.select(t,p)}else eh.deselect(t)}}(t,e)}),100);var n=gg(e);if(0===n.length)throw new Error("Cannot find textarea DOM by selector '"+e+"'");this.$box=n;var r=gg('<div class="w-e-text-container"></div>');r.append(this.$progressBar),r.append(this.$maxLengthInfo),n.append(r);var o=gg('<div class="w-e-scroll"></div>');r.append(o),this.$scroll=o,this.$textAreaContainer=r,cT((function(){var e=t.editorInstance,n=dB.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=bk.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&&(lv(DP,(function(n,o){t.on(o,(function(t){n(t,e,r)}))})),r.getConfig().scroll&&(n.css("overflow-y","auto"),n.on("scroll",Sv((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-dB.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;oP(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=gg('<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),cT((function(){hP(e,t)}))},e.prototype.destroy=function(){this.$textAreaContainer.remove()},e}();function AP(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&&AP(t)}function OP(){return gg('<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 kP(){return gg('<div class="w-e-bar-divider"></div>')}function BP(e,t,n,r,o){if(void 0===o&&(o=!1),t){if(r){var i=iB?"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")}}}KA("match",(function(e,t,n){return[function(t){var n=PE(this),r=null==t?void 0:Sx(t,e);return r?yx(r,t,n):new RegExp(t)[e](_C(n))},function(e){var r=gx(this),o=_C(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return iO(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],l=0;null!==(u=iO(r,o));){var c=_C(u[0]);s[l]=c,""===c&&(r.lastIndex=YA(o,SD(r.lastIndex),a)),l++}return 0===l?null:s}]}));var FP=function(){function e(e,t,n){var r=this;void 0===n&&(n=!1),this.$elem=gg('<div class="w-e-bar-item"></div>'),this.$button=gg('<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=gg(c);AP(d),f.append(d)}else f.text(a);BP(f,c,a,s,n),n&&c&&f.append(gg('<span class="title">'+a+"</span>")),i&&f.css("width",i+"px"),f.attr("data-menu-key",e),this.$elem.append(f),cT((function(){return r.init()}))}return e.prototype.init=function(){var e=this;this.setActive(),this.setDisabled(),this.$button.on("click",(function(t){t.preventDefault(),VP(e).hidePanelOrModal(),e.disabled||(e.exec(),e.onButtonClick())}))},e.prototype.exec=function(){var e=VP(this),t=this.menu,n=t.getValue(e);t.exec(e,n)},e.prototype.setActive=function(){var e=VP(this),t=this.$button,n="active";this.menu.isActive(e)?t.addClass(n):t.removeClass(n)},e.prototype.setDisabled=function(){var e=VP(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}(),TP=function(e){function t(t,n,r){return void 0===r&&(r=!1),e.call(this,t,n,r)||this}return vO(t,e),t.prototype.onButtonClick=function(){},t}(FP),_P=function(){function e(e){this.isShow=!1,this.showTime=0,this.record(e)}return e.prototype.record=function(e){var t=Sk.get(e);null==t&&(t=new Set,Sk.set(e,t)),t.add(this),Ak.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=Ak.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=Ak.get(this);e&&e.emit("modalOrPanelHide")}},e}(),PP=function(e){function t(t){var n=e.call(this,t)||this;return n.type="dropPanel",n.$elem=gg('<div class="w-e-drop-panel"></div>'),n}return vO(t,e),t.prototype.genSelfElem=function(){return null},t}(_P),jP=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=OP();o.$button.append(i)}return o}return vO(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=VP(this);if(null==this.dropPanel){var n=new PP(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}(FP),IP=function(e){function t(t,n){void 0===n&&(n=0);var r=e.call(this,t)||this;r.type="modal",r.$elem=gg('<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 vO(t,e),t.prototype.genSelfElem=function(){var e=this,t=gg('<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=Ak.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}(_P);function NP(e,t,n){var r=gg('<label class="babel-container"></label>');r.append("<span>"+e+"</span>");var o=gg('<input type="text" id="'+t+'" placeholder="'+(n||"")+'">');return r.append(o),[r[0],o[0]]}function LP(e,t){var n=gg('<div class="button-container"></div>'),r=gg('<button type="button" id="'+e+'">'+t+"</button>");return n.append(r),[n[0],r[0]]}var RP=function(e){function t(t,n,r){void 0===r&&(r=!1);var o=e.call(this,t,n,r)||this;return o.$body=gg("body"),o.modal=null,o.menu=n,o}return vO(t,e),t.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},t.prototype.getPosition=function(){var e=VP(this),t=this.menu.getModalPositionNode(e);return ap.isElement(t)?j_(e,t,"modal"):P_(e)},t.prototype.handleModal=function(){var e=VP(this),t=this.menu;if(null==this.modal){var n=new IP(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=VP(this),r=this.menu;if(null!=r.getModalContentElem){var o=dB.getTextarea(n),i=dB.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||I_(n,e.$elem),setTimeout((function(){n.blur()}))}},t}(FP),MP=function(e){function t(t,n){var r=e.call(this,t)||this;return r.type="selectList",r.$elem=gg('<div class="w-e-select-list"></div>'),n&&r.$elem.css("width",n+"px"),r.$elem.on("click",(function(e){e.stopPropagation()})),r}return vO(t,e),t.prototype.renderList=function(e){var t=this.$elem;t.empty();var n=gg("<ul></ul>");e.forEach((function(e){var t=e.value,r=e.text,o=e.selected,i=e.styleForRenderMenuList,a=gg('<li data-value="'+t+'"></li>');if(i&&a.css(i),o){var u=gg('<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(gg('<span data-value="'+t+'">'+r+"</span>")),a.attr("title",r),n.append(a)})),t.append(n)},t.prototype.genSelfElem=function(){return null},t}(_P),zP=function(){function e(e,t,n){var r=this;void 0===n&&(n=!1),this.$elem=gg('<div class="w-e-bar-item"></div>'),this.$button=gg('<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),BP(f,s,i,c,n),this.$elem.append(f),this.menu=t,cT((function(){return r.init()}))}return e.prototype.init=function(){var e=this;this.setSelectedValue(),this.$button.on("click",(function(t){t.preventDefault(),VP(e).hidePanelOrModal(),e.trigger()}))},e.prototype.trigger=function(){var e=this,t=VP(this);if(!t.isDisabled()&&!this.disabled){var n=this.menu;if(null==this.selectList){this.selectList=new MP(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=gg(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=VP(this),n=this.menu;n.exec&&n.exec(t,e)},e.prototype.setSelectedValue=function(){var e=VP(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=OP();o.empty(),o.text(r),o.append(i)},e.prototype.setDisabled=function(){var e=VP(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}(),$P=function(){function e(e){this.$elem=gg('<div class="w-e-bar-item w-e-bar-item-group"></div>'),this.$container=gg('<div class="w-e-bar-item-menus-container"></div>'),this.$button=gg('<button type="button"></button>');var t=e.key,n=e.iconSvg,r=e.title,o=this.$elem,i=this.$button;if(n){var a=gg(n);AP(a),i.append(a)}else i.text(r);i.attr("data-menu-key",t);var u=OP();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){gg(e).hasClass("disabled")&&a++})),r.disconnect(),a===i?n.addClass("disabled"):n.removeClass("disabled"),e.observe(r)}}));return r},e}(),HP=new WeakMap;function VP(e){var t=Ck.get(e);if(null==t)throw new Error("Can not get editor instance");return t}function UP(e,t,n){void 0===n&&(n=!1);var r=HP.get(t);if(r)return r;var o=t.tag;if("button"===o){var i=t.showDropPanel,a=t.showModal;r=i?new jP(e,t,n):a?new RP(e,t,n):new TP(e,t,n)}if("select"===o&&(r=new zP(e,t,n)),null==r)throw new Error("Invalid tag in menu "+JSON.stringify(t));return HP.set(t,r),r}function WP(e,t){var n=e.selection;return null!=n&&!Bp.isCollapsed(n)&&!dB.getSelectedElems(e).some((function(t){if(e.isVoid(t))return!0;var n=t.type;return!!["pre","code","table"].includes(n)||void 0}))&&!!Np.isText(t)}var GP=function(){function e(){var e=this;this.$elem=gg('<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=vm((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&&ap.isElement(o)&&t&&e.isSamePath(o,e.prevSelectedNode)||(e.hideAndClean(),null!=o&&(e.registerItems(a),e.setPosition(o),e.show()),e.prevSelectedNode=o)}),200),cT((function(){var t=e.getEditorInstance(),n=e.$elem;n.on("mousedown",(function(e){return e.preventDefault()}),{passive:!1}),dB.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;cT((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=kP();n.append(r)}}))},e.prototype.registerSingleItem=function(e){var t=this.getEditorInstance(),n=this.menus,r=n[e];if(null==r){var o=gB[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=UP(e,r);this.hoverbarItems.push(i),Ck.set(i,t),this.$elem.append(i.$elem)},e.prototype.setPosition=function(e){var t=this.getEditorInstance(),n=this.$elem;if(n.attr("style",""),ap.isElement(e)){var r=j_(t,e,"bar");return n.css(r),void I_(t,n)}if(Np.isText(e))return r=P_(t),n.css(r),void I_(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 dB.checkNodeType(t,o)},c=bO(dp.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=xk.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=WP),t},e.prototype.isSamePath=function(e,t){if(null==e||null==t)return!1;var n=dB.findPath(null,e),r=dB.findPath(null,t);return Ep.equals(n,r)},e.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},e}();function qP(e,t,n,r){if(Tk.set(e,t),_k.set(e,n),ap.isElement(e)){var o=e.children;if((void 0===o?[]:o).forEach((function(t,n){return qP(t,n,e,r)})),dp.isVoid(r,e)){var i=bO(yp.texts(e),1),a=bO(i[0],1)[0];Tk.set(a,0),_k.set(a,e)}}}function KP(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];FC.withoutSaving(t,(()=>{dp.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];FC.withoutSaving(t,(()=>{dp.withoutNormalizing(t,(()=>{var e=r.map(wp.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=FC.isSaving(t),d=FC.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||!Ep.equals(e.path,t.path))||!(!t||"remove_text"!==e.type||"remove_text"!==t.type||e.offset+e.text.length!==t.offset||!Ep.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=dB.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=dB.getLeftLengthOfMaxLength(t);n<=0||n<yp.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(dB.getLeftLengthOfMaxLength(t)<yp.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=dB.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===Gk.TEXT_NODE?e+(t.textContent||""):n===Gk.ELEMENT_NODE?r_.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=O_(t);if(r.on(e,n),"destroyed"===e&&B_(t,n),"destroyed"!==e){var o=function(){return r.off(e,n)};r.on("destroyed",o),B_(t,o)}},t.once=function(e,n){O_(t).once(e,n)},t.off=function(e,n){O_(t).off(e,n)},t.emit=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=O_(t);o.emit.apply(o,wO([e],bO(n))),"destroyed"===e&&(F_(t).forEach((function(e){return o.off("destroyed",e)})),T_(t))},t}(function(e){var t=e;return t.select=function(e){eh.select(t,e)},t.deselect=function(){var n=t.selection,r=dB.findDocumentOrShadowRoot(t).getSelection();r&&r.rangeCount>0&&r.removeAllRanges(),n&&eh.deselect(e)},t.move=function(t,n){void 0===n&&(n=!1),t&&(t<0||eh.move(e,{distance:t,unit:"character",reverse:n}))},t.moveReverse=function(e){t.move(e,!0)},t.restoreSelection=function(){var e=zk.get(t);null!=e&&(t.focus(),eh.select(t,e))},t.getSelectionPosition=function(){return P_(t)},t.getNodePosition=function(e){return j_(t,e)},t.isSelectedAll=function(){var e=t.selection;if(null==e)return!1;var n=bO(Bp.edges(e),2),r=n[0],o=n[1],i=bO(dp.edges(t,[]),2),a=i[0],u=i[1];return!(!Sp.equals(r,a)||!Sp.equals(o,u))},t.selectAll=function(){var e=dp.start(t,[]),n=dp.end(t,[]);eh.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=mO(dp.levels(t,{at:e.path})),p=d.next();!p.done;p=d.next()){var h=bO(p.value,2),g=h[0],v=h[1],y=dB.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=mO(dp.levels(t,{at:Ep.parent(e.path)})),b=m.next();!b.done;b=m.next()){var w=bO(b.value,2);g=w[0],v=w[1],y=dB.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=mO(dp.levels(t,{at:Ep.common(Ep.parent(e.path),Ep.parent(e.newPath))})),x=E.next();!x.done;x=E.next()){var D=bO(x.value,2);g=D[0],v=D[1],y=dB.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=mO(f),S=C.next();!S.done;S=C.next()){var A=bO(S.value,2);v=A[0],y=A[1],g=bO(dp.node(t,v),1)[0],Lk.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&&Bp.isCollapsed(e.selection)){var r=dp.above(e,{match:function(t){return dp.isBlock(e,t)},at:e.selection});if(r){var o=bO(r,2)[1],a=dp.range(e,o,e.selection.anchor),u=function(e,t){var n=dp.range(e,Bp.end(t)),r=Array.from(dp.positions(e,{at:t})),o=0,i=r.length,a=Math.floor(i/2);if(hT(e,dp.range(e,r[o]),n))return dp.range(e,r[o],n);if(r.length<2)return dp.range(e,r[r.length-1],n);for(;a!==r.length&&a!==o;)hT(e,dp.range(e,r[a]),n)?i=a:o=a,a=Math.floor((o+i)/2);return dp.range(e,r[i],n)}(t,a);Bp.isCollapsed(u)||eh.delete(e,{at:u})}}},t.onChange=function(){var e=t.selection;null!=e&&zk.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 fT(e,t)})).join("")},t.getText=function(){var e=t.children;return(void 0===e?[]:e).map((function(e){return yp.string(e)})).join("\n")},t.getSelectionText=function(){var n=t.selection;return null==n?"":dp.string(e,n)},t.getElemsByType=function(e,n){var r,o;void 0===n&&(n=!1);var i=[],a=dp.nodes(t,{at:[],universal:!0});try{for(var u=mO(a),s=u.next();!s.done;s=u.next()){var l=bO(s.value,1)[0];if(ap.isElement(l)&&(n?l.type.indexOf(e)>=0:l.type===e)){var c=dT(dB.findKey(t,l).id);i.push(yO(yO({},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(ap.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(Np.isText(a)&&""===a.text)return!0}return!1},t.clear=function(){eh.delete(t,{at:{anchor:dp.start(t,[]),focus:dp.end(t,[])}}),0===t.children.length&&eh.insertNodes(t,[{type:"paragraph",children:[{text:""}]}])},t.getParentNode=function(e){return dB.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===Gk.TEXT_NODE||t===Gk.ELEMENT_NODE&&!r_.has(n.toLowerCase())}))).length){var i=t.selection;if(null!=i){var a=null;dB.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!==Gk.TEXT_NODE)if("BR"!==r){var a=e,s=!1;if(gT.includes(r.toLowerCase()))s=!0;else for(var l in mT)if(a.matches(l)){s=!0;break}if(s){var c=XT(gg(a),t);return Array.isArray(c)?(c.forEach((function(e){return o_(t,e)})),u++):(o_(t,c),u++),void(dB.isSelectedVoidNode(t)&&t.move(1))}var f=window.getComputedStyle(a).display;dB.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&&dB.isEmptyPath(t,a)&&eh.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=ZT(t,e);if(eh.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(dp.start(t,[]))}},t}(function(e){var t=e;return t.getAllMenuKeys=function(){var e=[];for(var t in gB)e.push(t);return e},t.getConfig=function(){var e=Ok.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=i_((()=>{var e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:t=>{for(var n of dp.pathRefs(e))xp.transform(n,t);for(var r of dp.pointRefs(e))Ap.transform(r,t);for(var o of dp.rangeRefs(e))Fp.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=xd.get(e)||[],l=Fd(t);for(var c of s)u(Ep.transform(c,t));for(var f of l)u(f);xd.set(e,a),eh.transform(e,t),e.operations.push(t),dp.normalize(e),"set_selection"===t.type&&(e.marks=null),Dd.get(e)||(Dd.set(e,!0),Promise.resolve().then((()=>{Dd.set(e,!1),e.onChange(),e.operations=[]})))},addMark:(t,n)=>{var{selection:r}=e;if(r)if(Bp.isExpanded(r))eh.setNodes(e,{[t]:n},{match:Np.isText,split:!0});else{var o=Bd(Bd({},dp.marks(e)||{}),{},{[t]:n});e.marks=o,Dd.get(e)||e.onChange()}},deleteBackward:t=>{var{selection:n}=e;n&&Bp.isCollapsed(n)&&eh.delete(e,{unit:t,reverse:!0})},deleteForward:t=>{var{selection:n}=e;n&&Bp.isCollapsed(n)&&eh.delete(e,{unit:t})},deleteFragment:t=>{var{selection:n}=e;n&&Bp.isExpanded(n)&&eh.delete(e,{reverse:"backward"===t})},getFragment:()=>{var{selection:t}=e;return t?yp.fragment(e,t):[]},insertBreak:()=>{eh.splitNodes(e,{always:!0})},insertFragment:t=>{eh.insertFragment(e,t)},insertNode:t=>{eh.insertNodes(e,t)},insertText:t=>{var{selection:n,marks:r}=e;if(n){if(r){var o=Bd({text:t},r);eh.insertNodes(e,o)}else eh.insertText(e,t);e.marks=null}},normalizeNode:t=>{var[n,r]=t;if(!Np.isText(n))if(ap.isElement(n)&&0===n.children.length)eh.insertNodes(e,{text:""},{at:r.concat(0),voids:!0});else for(var o=!dp.isEditor(n)&&ap.isElement(n)&&(e.isInline(n)||0===n.children.length||Np.isText(n.children[0])||e.isInline(n.children[0])),i=0,a=0;a<n.children.length;a++,i++){var u=yp.get(e,r);if(!Np.isText(u)){var s=n.children[a],l=u.children[i-1],c=a===n.children.length-1;(Np.isText(s)||ap.isElement(s)&&e.isInline(s))!==o?(eh.removeNodes(e,{at:r.concat(i),voids:!0}),i--):ap.isElement(s)?e.isInline(s)&&(null!=l&&Np.isText(l)?c&&(eh.insertNodes(e,{text:""},{at:r.concat(i+1),voids:!0}),i++):(eh.insertNodes(e,{text:""},{at:r.concat(i),voids:!0}),i++)):null!=l&&Np.isText(l)&&(Np.equals(s,l,{loose:!0})?(eh.mergeNodes(e,{at:r.concat(i),voids:!0}),i--):""===l.text?(eh.removeNodes(e,{at:r.concat(i-1),voids:!0}),i--):""===s.text&&(eh.removeNodes(e,{at:r.concat(i),voids:!0}),i--))}}},removeMark:t=>{var{selection:n}=e;if(n)if(Bp.isExpanded(n))eh.unsetNodes(e,t,{match:Np.isText,split:!0});else{var r=Bd({},dp.marks(e)||{});delete r[t],e.marks=r,Dd.get(e)||e.onChange()}}};return e})()),t.id="wangEditor-"+pB++,t.isDestroyed=!1,t.isFullScreen=!1,t.focus=function(e){if(dB.toDOMNode(t,t).focus({preventScroll:!0}),Mk.set(t,!0),e){var n=dp.end(t,[]);eh.select(t,n)}else{var r=zk.get(t);r?eh.select(t,r):eh.select(t,dp.start(t,[]))}},t.isFocused=function(){return!!Mk.get(t)},t.blur=function(){dB.toDOMNode(t,t).blur(),eh.deselect(t),Mk.set(t,!1)},t.updateView=function(){dB.getTextarea(t).changeViewState();var e=dB.getToolbar(t);e&&e.changeToolbarState();var n=dB.getHoverbar(t);n&&n.changeHoverbarState()},t.destroy=function(){if(!t.isDestroyed){var e=dB.getTextarea(t);e.destroy(),mk.delete(t),bk.delete(e);var n=dB.getToolbar(t);n&&(n.destroy(),Ek.delete(t),wk.delete(n));var r=dB.getHoverbar(t);r&&(r.destroy(),Dk.delete(t),xk.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=gg("#"+e);if(0!==r.length){var o=r[0];if(!dB.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=dB.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||dB.getTextarea(t).changeProgress(e)},t.hidePanelOrModal=function(){var e=Sk.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 dB.toDOMNode(t,e)},t.fullScreen=function(){if(!t.isFullScreen){var e=null,n=dB.getToolbar(t);n&&(e=n.$box);var r=dB.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=dB.getTextarea(t).$box.parent();setTimeout((function(){e.removeClass("w-e-full-screen-container"),t.isFullScreen=!1,t.emit("unFullScreen")}),200)}},t.getEditableContainer=function(){return dB.getTextarea(t).$textAreaContainer[0]},t)))))));if(r&&function(e,t){return YT(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=ym(hB),n={},r=e.MENU_CONF,o=void 0===r?{}:r;return lv(t,(function(e,t){n[t]=yO(yO({},e),o[t]||{})})),delete e.MENU_CONF,yO({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);Ok.set(c,f);var d=f.hoverbarKeys,p=void 0===d?{}:d;if(l.forEach((function(e){c=e(c)})),null!=u&&(c.children=ZT(c,u)),a&&a.length&&(c.children=a),0===c.children.length&&(c.children=[{type:"paragraph",children:[{text:""}]}]),dB.normalizeContent(c),r){var h=new SP(r);mk.set(c,h),bk.set(h,c),h.changeViewState(),cT((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 GP,xk.set(g,c),Dk.set(c,g)),c.on("change",(function(){c.hidePanelOrModal()})),c.on("scroll",(function(){c.hidePanelOrModal()}))}else c.children.forEach((function(e,t){return qP(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)})),cT((function(){return c.emit("created")})),c}var XP=mA("splice"),YP=xE.TypeError,ZP=Math.max,JP=Math.min;DC({target:"Array",proto:!0,forced:!XP},{splice:function(e,t){var n,r,o,i,a,u,s=IE(this),l=AD(s),c=nC(e,l),f=arguments.length;if(0===f?n=r=0:1===f?(n=0,r=l-c):(n=f-2,r=JP(ZP(DD(t),0),l-c)),l+n-r>9007199254740991)throw YP("Maximum allowed length exceeded");for(o=RD(s,r),i=0;i<r;i++)(a=c+i)in s&&hS(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 QP=function(){function e(e,t){var n=this;this.$toolbar=gg('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=vm((function(){n.toolbarItems.forEach((function(e){e.changeMenuState()}))}),200),this.config=t;var r=gg(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),cT((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=ym(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=kP();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 $P(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 $P,o=this.menus,i=o[e];if(null==i){var a=gB[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=UP(e,i,r);this.toolbarItems.push(u),Ck.set(u,n),r?t.appendBarItem(u):t.$toolbar.append(u.$elem)},e.prototype.getEditorInstance=function(){var e=wk.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}(),ej=nD.EXISTS,tj=_x.f,nj=Function.prototype,rj=TE(nj.toString),oj=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,ij=TE(oj.exec);function aj(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=bO(e.split("#"),2),r=n[0],o=n[1],i=[];lv(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 Wb({onBeforeUpload:w,restrictions:{maxFileSize:a,maxNumberOfFiles:s},meta:c}).use(vE,{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 uj(e){return(uj="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 sj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lj(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){sj(e,t,n[t])}))}return e}function cj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fj(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 dj(e,t,n){return t&&fj(e.prototype,t),n&&fj(e,n),e}function pj(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hj(e,t){if(t&&("object"===uj(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return pj(e)}function gj(e){return(gj=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function vj(e,t){return(vj=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function yj(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&&vj(e,t)}ux&&!ej&&tj(nj,"name",{configurable:!0,get:function(){try{return ij(oj,rj(this))[1]}catch(hf){return""}}});var mj={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)}},bj=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};cj(this,e),this.init(t,n)}return dj(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||mj,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,lj({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),wj=function(){function e(){cj(this,e),this.observers={}}return dj(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 Ej(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function xj(e){return null==e?"":""+e}function Dj(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}function Cj(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 Sj(e,t,n){var r=Cj(e,t,Object);r.obj[r.k]=n}function Aj(e,t){var n=Cj(e,t),r=n.obj,o=n.k;if(r)return r[o]}function Oj(e,t,n){var r=Aj(e,n);return void 0!==r?r:Aj(t,n)}function kj(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]):kj(e[r],t[r],n):e[r]=t[r]);return e}function Bj(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Fj={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function Tj(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return Fj[e]})):e}var _j="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function Pj(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?Pj(s,l,n):void 0}o=o[r[i]]}return o}}var jj=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return cj(this,t),n=hj(this,gj(t).call(this)),_j&&wj.call(pj(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 yj(t,wj),dj(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=Aj(this.data,a);return u||!i||"string"!=typeof n?u:Pj(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),Sj(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=Aj(this.data,a)||{};r?kj(u,n,o):u=lj({},u,n),Sj(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?lj({},{},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}(),Ij={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}},Nj={},Lj=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return cj(this,t),n=hj(this,gj(t).call(this)),_j&&wj.call(pj(n)),Dj(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,pj(n)),n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=bj.create("translator"),n}return yj(t,wj),dj(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"!==uj(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,lj({},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,lj({},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,lj({},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(lj({},n,{interpolation:lj({},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=lj({},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=Ij.handle(d,e,t,this.options&&this.options.postProcessPassResolved?lj({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,!Nj["".concat(p[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(Nj["".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 Rj(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Mj=function(){function e(t){cj(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=bj.create("languageUtils")}return dj(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]=Rj(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]=Rj(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=Rj(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}(),zj=[{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}],$j={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 Hj(){var e={};return zj.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:$j[t.fc]}}))})),e}var Vj=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};cj(this,e),this.languageUtils=t,this.options=n,this.logger=bj.create("pluralResolver"),this.rules=Hj()}return dj(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}(),Uj=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};cj(this,e),this.logger=bj.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return dj(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:Tj,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?Bj(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?Bj(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?Bj(t.nestingPrefix):t.nestingPrefixEscaped||Bj("$t("),this.nestingSuffix=t.nestingSuffix?Bj(t.nestingSuffix):t.nestingSuffixEscaped||Bj(")"),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=Oj(t,s,e);return u.alwaysFormat?u.format(o,void 0,n,lj({},r,t,{interpolationkey:e})):o}var i=e.split(u.formatSeparator),a=i.shift().trim(),l=i.join(u.formatSeparator).trim();return u.format(Oj(t,s,a),l,n,lj({},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=xj(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=lj({},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=lj({},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=xj(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,lj({},i,{interpolationkey:n[1].trim()}))}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}(),Wj=function(e){function t(e,n,r){var o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return cj(this,t),o=hj(this,gj(t).call(this)),_j&&wj.call(pj(o)),o.backend=e,o.store=n,o.services=r,o.languageUtils=r.languageUtils,o.options=i,o.logger=bj.create("backendConnector"),o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(r,i.backend,i),o}return yj(t,wj),dj(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=Cj(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,lj({},i,{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),t}();function Gj(){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"===uj(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===uj(e[2])||"object"===uj(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 qj(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 Kj(){}var Xj=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(cj(this,t),e=hj(this,gj(t).call(this)),_j&&wj.call(pj(e)),e.options=qj(n),e.services={},e.logger=bj,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),hj(e,pj(e));setTimeout((function(){e.init(n,r)}),0)}return e}return yj(t,wj),dj(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=lj({},Gj(),this.options,qj(t)),this.format=this.options.interpolation.format,n||(n=Kj),!this.options.isClone){this.modules.logger?bj.init(r(this.modules.logger),this.options):bj.init(null,this.options);var o=new Mj(this.options);this.store=new jj(this.options.resources,this.options);var i=this.services;i.logger=bj,i.resourceStore=this.store,i.languageUtils=o,i.pluralResolver=new Vj(o,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),i.interpolator=new Uj(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new Wj(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 Lj(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=Ej(),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]:Kj,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=Ej();return e||(e=this.languages),t||(t=this.options.ns),n||(n=Kj),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&&Ij.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=Ej();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"!==uj(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=lj({},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=Ej();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=Ej();"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]:Kj,o=lj({},this.options,n,{isClone:!0}),i=new t(o),a=["store","services","language"];return a.forEach((function(t){i[t]=e[t]})),i.services=lj({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new Lj(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}(),Yj=new Xj;function Zj(e,t){Yj.addResourceBundle(e,"translation",t,!0,!0)}Yj.init({lng:"zh-CN",resources:{}});var Jj=Yj.t.bind(Yj);Zj("en",{editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}}),Zj("zh-CN",{editor:{more:"更多",justify:"对齐",indent:"缩进",image:"图片",video:"视频"}});var Qj=zu?{}.toString:function(){return"[object "+Uu(this)+"]"};zu||uu(Object.prototype,"toString",Qj,{unsafe:!0});var eI,tI=Array.isArray||function(e){return"Array"==Fi(e)},nI=function(){},rI=[],oI=zi("Reflect","construct"),iI=/^\s*(?:class|function)\b/,aI=Oi(iI.exec),uI=!iI.exec(nI),sI=function(e){if(!Li(e))return!1;try{return oI(nI,rI,e),!0}catch(t){return!1}},lI=!oI||hi((function(){var e;return sI(sI.call)||!sI(Object)||!sI((function(){e=!0}))||e}))?function(e){if(!Li(e))return!1;switch(Uu(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return uI||!!aI(iI,Va(e))}:sI,cI=wa("species"),fI=pi.Array,dI=function(e,t){return new(tI(n=e)&&(r=n.constructor,(lI(r)&&(r===fI||tI(r.prototype))||Ri(r)&&null===(r=r[cI]))&&(r=void 0)),void 0===r?fI:r)(0===t?0:t);var n,r},pI=Oi([].push),hI=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=la(s),g=Pi(h),v=nl(l,c),y=vu(g),m=0,b=f||dI,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:pI(w,d)}else switch(e){case 4:return!1;case 7:pI(w,d)}return i?-1:r||o?o:w}},gI=[hI(0),hI(1),hI(2),hI(3),hI(4),hI(5),hI(6),hI(7)][0],vI=!!(eI=[].forEach)&&hi((function(){eI.call(null,(function(){throw 1}),1)}))?[].forEach:function(e){return gI(this,e,arguments.length>1?arguments[1]:void 0)},yI=function(e){if(e&&e.forEach!==vI)try{Ra(e,"forEach",vI)}catch(t){e.forEach=vI}};for(var mI in Yl)Yl[mI]&&yI(pi[mI]&&pi[mI].prototype);yI(Ql),Zj("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"}}),Zj("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 bI={type:"paragraph",renderElem:function(e,t,n){return oy("p",null,t)}},wI="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function EI(e){var t={exports:{}};return e(t,t.exports),t.exports}var xI,DI,CI=function(e){return e&&e.Math==Math&&e},SI=CI("object"==typeof globalThis&&globalThis)||CI("object"==typeof window&&window)||CI("object"==typeof self&&self)||CI("object"==typeof wI&&wI)||function(){return this}()||Function("return this")(),AI=function(e){try{return!!e()}catch(t){return!0}},OI=!AI((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),kI=Function.prototype.call,BI=kI.bind?kI.bind(kI):function(){return kI.apply(kI,arguments)},FI={}.propertyIsEnumerable,TI=Object.getOwnPropertyDescriptor,_I=TI&&!FI.call({1:2},1)?function(e){var t=TI(this,e);return!!t&&t.enumerable}:FI,PI={f:_I},jI=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},II=Function.prototype,NI=II.bind,LI=II.call,RI=NI&&NI.bind(LI),MI=NI?function(e){return e&&RI(LI,e)}:function(e){return e&&function(){return LI.apply(e,arguments)}},zI=MI({}.toString),$I=MI("".slice),HI=function(e){return $I(zI(e),8,-1)},VI=SI.Object,UI=MI("".split),WI=AI((function(){return!VI("z").propertyIsEnumerable(0)}))?function(e){return"String"==HI(e)?UI(e,""):VI(e)}:VI,GI=SI.TypeError,qI=function(e){if(null==e)throw GI("Can't call method on "+e);return e},KI=function(e){return WI(qI(e))},XI=function(e){return"function"==typeof e},YI=function(e){return"object"==typeof e?null!==e:XI(e)},ZI=function(e){return XI(e)?e:void 0},JI=function(e,t){return arguments.length<2?ZI(SI[e]):SI[e]&&SI[e][t]},QI=MI({}.isPrototypeOf),eN=JI("navigator","userAgent")||"",tN=SI.process,nN=SI.Deno,rN=tN&&tN.versions||nN&&nN.version,oN=rN&&rN.v8;oN&&(DI=(xI=oN.split("."))[0]>0&&xI[0]<4?1:+(xI[0]+xI[1])),!DI&&eN&&(!(xI=eN.match(/Edge\/(\d+)/))||xI[1]>=74)&&(xI=eN.match(/Chrome\/(\d+)/))&&(DI=+xI[1]);var iN=DI,aN=!!Object.getOwnPropertySymbols&&!AI((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&iN&&iN<41})),uN=aN&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,sN=SI.Object,lN=uN?function(e){return"symbol"==typeof e}:function(e){var t=JI("Symbol");return XI(t)&&QI(t.prototype,sN(e))},cN=SI.String,fN=function(e){try{return cN(e)}catch(t){return"Object"}},dN=SI.TypeError,pN=function(e){if(XI(e))return e;throw dN(fN(e)+" is not a function")},hN=function(e,t){var n=e[t];return null==n?void 0:pN(n)},gN=SI.TypeError,vN=Object.defineProperty,yN=function(e,t){try{vN(SI,e,{value:t,configurable:!0,writable:!0})}catch(eI){SI[e]=t}return t},mN=SI["__core-js_shared__"]||yN("__core-js_shared__",{}),bN=EI((function(e){(e.exports=function(e,t){return mN[e]||(mN[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),wN=SI.Object,EN=function(e){return wN(qI(e))},xN=MI({}.hasOwnProperty),DN=Object.hasOwn||function(e,t){return xN(EN(e),t)},CN=0,SN=Math.random(),AN=MI(1..toString),ON=function(e){return"Symbol("+(void 0===e?"":e)+")_"+AN(++CN+SN,36)},kN=bN("wks"),BN=SI.Symbol,FN=BN&&BN.for,TN=uN?BN:BN&&BN.withoutSetter||ON,_N=function(e){if(!DN(kN,e)||!aN&&"string"!=typeof kN[e]){var t="Symbol."+e;aN&&DN(BN,e)?kN[e]=BN[e]:kN[e]=uN&&FN?FN(t):TN(t)}return kN[e]},PN=SI.TypeError,jN=_N("toPrimitive"),IN=function(e){var t=function(e,t){if(!YI(e)||lN(e))return e;var n,r=hN(e,jN);if(r){if(void 0===t&&(t="default"),n=BI(r,e,t),!YI(n)||lN(n))return n;throw PN("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&XI(n=e.toString)&&!YI(r=BI(n,e)))return r;if(XI(n=e.valueOf)&&!YI(r=BI(n,e)))return r;if("string"!==t&&XI(n=e.toString)&&!YI(r=BI(n,e)))return r;throw gN("Can't convert object to primitive value")}(e,t)}(e,"string");return lN(t)?t:t+""},NN=SI.document,LN=YI(NN)&&YI(NN.createElement),RN=function(e){return LN?NN.createElement(e):{}},MN=!OI&&!AI((function(){return 7!=Object.defineProperty(RN("div"),"a",{get:function(){return 7}}).a})),zN=Object.getOwnPropertyDescriptor,$N={f:OI?zN:function(e,t){if(e=KI(e),t=IN(t),MN)try{return zN(e,t)}catch(n){}if(DN(e,t))return jI(!BI(PI.f,e,t),e[t])}},HN=SI.String,VN=SI.TypeError,UN=function(e){if(YI(e))return e;throw VN(HN(e)+" is not an object")},WN=SI.TypeError,GN=Object.defineProperty,qN={f:OI?GN:function(e,t,n){if(UN(e),t=IN(t),UN(n),MN)try{return GN(e,t,n)}catch(r){}if("get"in n||"set"in n)throw WN("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},KN=OI?function(e,t,n){return qN.f(e,t,jI(1,n))}:function(e,t,n){return e[t]=n,e},XN=MI(Function.toString);XI(mN.inspectSource)||(mN.inspectSource=function(e){return XN(e)});var YN,ZN,JN,QN=mN.inspectSource,eL=SI.WeakMap,tL=XI(eL)&&/native code/.test(QN(eL)),nL=bN("keys"),rL=function(e){return nL[e]||(nL[e]=ON(e))},oL={},iL=SI.TypeError,aL=SI.WeakMap;if(tL||mN.state){var uL=mN.state||(mN.state=new aL),sL=MI(uL.get),lL=MI(uL.has),cL=MI(uL.set);YN=function(e,t){if(lL(uL,e))throw new iL("Object already initialized");return t.facade=e,cL(uL,e,t),t},ZN=function(e){return sL(uL,e)||{}},JN=function(e){return lL(uL,e)}}else{var fL=rL("state");oL[fL]=!0,YN=function(e,t){if(DN(e,fL))throw new iL("Object already initialized");return t.facade=e,KN(e,fL,t),t},ZN=function(e){return DN(e,fL)?e[fL]:{}},JN=function(e){return DN(e,fL)}}var dL={set:YN,get:ZN,has:JN,enforce:function(e){return JN(e)?ZN(e):YN(e,{})},getterFor:function(e){return function(t){var n;if(!YI(t)||(n=ZN(t)).type!==e)throw iL("Incompatible receiver, "+e+" required");return n}}},pL=Function.prototype,hL=OI&&Object.getOwnPropertyDescriptor,gL=DN(pL,"name"),vL={EXISTS:gL,PROPER:gL&&"something"===function(){}.name,CONFIGURABLE:gL&&(!OI||OI&&hL(pL,"name").configurable)},yL=EI((function(e){var t=vL.CONFIGURABLE,n=dL.get,r=dL.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;XI(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!DN(i,"name")||t&&i.name!==f)&&KN(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==SI?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:KN(e,n,i)):l?e[n]=i:yN(n,i)})(Function.prototype,"toString",(function(){return XI(this)&&n(this).source||QN(this)}))})),mL=Math.ceil,bL=Math.floor,wL=function(e){var t=+e;return t!=t||0===t?0:(t>0?bL:mL)(t)},EL=Math.max,xL=Math.min,DL=function(e,t){var n=wL(e);return n<0?EL(n+t,0):xL(n,t)},CL=Math.min,SL=function(e){return e>0?CL(wL(e),9007199254740991):0},AL=function(e){return SL(e.length)},OL=function(e){return function(t,n,r){var o,i=KI(t),a=AL(i),u=DL(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}},kL={includes:OL(!0),indexOf:OL(!1)},BL=kL.indexOf,FL=MI([].push),TL=function(e,t){var n,r=KI(e),o=0,i=[];for(n in r)!DN(oL,n)&&DN(r,n)&&FL(i,n);for(;t.length>o;)DN(r,n=t[o++])&&(~BL(i,n)||FL(i,n));return i},_L=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],PL=_L.concat("length","prototype"),jL={f:Object.getOwnPropertyNames||function(e){return TL(e,PL)}},IL={f:Object.getOwnPropertySymbols},NL=MI([].concat),LL=JI("Reflect","ownKeys")||function(e){var t=jL.f(UN(e)),n=IL.f;return n?NL(t,n(e)):t},RL=function(e,t){for(var n=LL(t),r=qN.f,o=$N.f,i=0;i<n.length;i++){var a=n[i];DN(e,a)||r(e,a,o(t,a))}},ML=/#|\.prototype\./,zL=function(e,t){var n=HL[$L(e)];return n==UL||n!=VL&&(XI(t)?AI(t):!!t)},$L=zL.normalize=function(e){return String(e).replace(ML,".").toLowerCase()},HL=zL.data={},VL=zL.NATIVE="N",UL=zL.POLYFILL="P",WL=zL,GL=$N.f,qL=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?SI:l?SI[u]||yN(u,{}):(SI[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=GL(n,r))&&a.value:n[r],!WL(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;RL(i,o)}(e.sham||o&&o.sham)&&KN(i,"sham",!0),yL(n,r,i,e)}},KL=MI(MI.bind),XL=Array.isArray||function(e){return"Array"==HI(e)},YL={};YL[_N("toStringTag")]="z";var ZL="[object z]"===String(YL),JL=_N("toStringTag"),QL=SI.Object,eR="Arguments"==HI(function(){return arguments}()),tR=ZL?HI: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=QL(e),JL))?n:eR?HI(t):"Object"==(r=HI(t))&&XI(t.callee)?"Arguments":r},nR=function(){},rR=[],oR=JI("Reflect","construct"),iR=/^\s*(?:class|function)\b/,aR=MI(iR.exec),uR=!iR.exec(nR),sR=function(e){if(!XI(e))return!1;try{return oR(nR,rR,e),!0}catch(t){return!1}},lR=!oR||AI((function(){var e;return sR(sR.call)||!sR(Object)||!sR((function(){e=!0}))||e}))?function(e){if(!XI(e))return!1;switch(tR(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return uR||!!aR(iR,QN(e))}:sR,cR=_N("species"),fR=SI.Array,dR=function(e,t){return new(XL(n=e)&&(r=n.constructor,(lR(r)&&(r===fR||XL(r.prototype))||YI(r)&&null===(r=r[cR]))&&(r=void 0)),void 0===r?fR:r)(0===t?0:t);var n,r},pR=MI([].push),hR=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=EN(s),g=WI(h),v=function(e,t){return pN(e),void 0===t?e:KL?KL(e,t):function(){return e.apply(t,arguments)}}(l,c),y=AL(g),m=0,b=f||dR,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:pR(w,d)}else switch(e){case 4:return!1;case 7:pR(w,d)}return i?-1:r||o?o:w}},gR={forEach:hR(0),map:hR(1),filter:hR(2),some:hR(3),every:hR(4),find:hR(5),findIndex:hR(6),filterReject:hR(7)},vR=_N("species"),yR=function(e){return iN>=51||!AI((function(){var t=[];return(t.constructor={})[vR]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},mR=gR.filter;qL({target:"Array",proto:!0,forced:!yR("filter")},{filter:function(e){return mR(this,e,arguments.length>1?arguments[1]:void 0)}});var bR=ZL?{}.toString:function(){return"[object "+tR(this)+"]"};ZL||yL(Object.prototype,"toString",bR,{unsafe:!0});var wR,ER=SI.String,xR=function(e){if("Symbol"===tR(e))throw TypeError("Cannot convert a Symbol value to a string");return ER(e)},DR=function(){var e=UN(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},CR=SI.RegExp,SR=AI((function(){var e=CR("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),AR=SR||AI((function(){return!CR("a","y").sticky})),OR={BROKEN_CARET:SR||AI((function(){var e=CR("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:AR,UNSUPPORTED_Y:SR},kR=Object.keys||function(e){return TL(e,_L)},BR=OI?Object.defineProperties:function(e,t){UN(e);for(var n,r=KI(t),o=kR(t),i=o.length,a=0;i>a;)qN.f(e,n=o[a++],r[n]);return e},FR=JI("document","documentElement"),TR=rL("IE_PROTO"),_R=function(){},PR=function(e){return"<script>"+e+"<\/script>"},jR=function(e){e.write(PR("")),e.close();var t=e.parentWindow.Object;return e=null,t},IR=function(){try{wR=new ActiveXObject("htmlfile")}catch(r){}var e,t;IR="undefined"!=typeof document?document.domain&&wR?jR(wR):((t=RN("iframe")).style.display="none",FR.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(PR("document.F=Object")),e.close(),e.F):jR(wR);for(var n=_L.length;n--;)delete IR.prototype[_L[n]];return IR()};oL[TR]=!0;var NR,LR,RR=Object.create||function(e,t){var n;return null!==e?(_R.prototype=UN(e),n=new _R,_R.prototype=null,n[TR]=e):n=IR(),void 0===t?n:BR(n,t)},MR=SI.RegExp,zR=AI((function(){var e=MR(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),$R=SI.RegExp,HR=AI((function(){var e=$R("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),VR=dL.get,UR=bN("native-string-replace",String.prototype.replace),WR=RegExp.prototype.exec,GR=WR,qR=MI("".charAt),KR=MI("".indexOf),XR=MI("".replace),YR=MI("".slice),ZR=(LR=/b*/g,BI(WR,NR=/a/,"a"),BI(WR,LR,"a"),0!==NR.lastIndex||0!==LR.lastIndex),JR=OR.BROKEN_CARET,QR=void 0!==/()??/.exec("")[1];(ZR||QR||JR||zR||HR)&&(GR=function(e){var t,n,r,o,i,a,u,s=this,l=VR(s),c=xR(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=BI(GR,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=JR&&s.sticky,h=BI(DR,s),g=s.source,v=0,y=c;if(p&&(h=XR(h,"y",""),-1===KR(h,"g")&&(h+="g"),y=YR(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==qR(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),QR&&(n=new RegExp("^"+g+"$(?!\\s)",h)),ZR&&(r=s.lastIndex),o=BI(WR,p?n:s,y),p?o?(o.input=YR(o.input,v),o[0]=YR(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:ZR&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),QR&&o&&o.length>1&&BI(UR,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=RR(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var eM=GR;qL({target:"RegExp",proto:!0,forced:/./.exec!==eM},{exec:eM});var tM=Function.prototype,nM=tM.apply,rM=tM.bind,oM=tM.call,iM="object"==typeof Reflect&&Reflect.apply||(rM?oM.bind(nM):function(){return oM.apply(nM,arguments)}),aM=_N("species"),uM=RegExp.prototype,sM=function(e,t,n,r){var o=_N(e),i=!AI((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!AI((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[aM]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=MI(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=MI(e),s=t.exec;return s===eM||s===uM.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));yL(String.prototype,e,s[0]),yL(uM,o,s[1])}r&&KN(uM[o],"sham",!0)},lM=MI("".charAt),cM=MI("".charCodeAt),fM=MI("".slice),dM=function(e){return function(t,n){var r,o,i=xR(qI(t)),a=wL(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=cM(i,a))<55296||r>56319||a+1===u||(o=cM(i,a+1))<56320||o>57343?e?lM(i,a):r:e?fM(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0),pM=function(e,t,n){return t+(n?dM(e,t).length:1)},hM=Math.floor,gM=MI("".charAt),vM=MI("".replace),yM=MI("".slice),mM=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,bM=/\$([$&'`]|\d{1,2})/g,wM=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=bM;return void 0!==o&&(o=EN(o),s=mM),vM(i,s,(function(i,s){var l;switch(gM(s,0)){case"$":return"$";case"&":return e;case"`":return yM(t,0,n);case"'":return yM(t,a);case"<":l=o[yM(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=hM(c/10);return 0===f?i:f<=u?void 0===r[f-1]?gM(s,1):r[f-1]+gM(s,1):i}l=r[c-1]}return void 0===l?"":l}))},EM=SI.TypeError,xM=function(e,t){var n=e.exec;if(XI(n)){var r=BI(n,e,t);return null!==r&&UN(r),r}if("RegExp"===HI(e))return BI(eM,e,t);throw EM("RegExp#exec called on incompatible receiver")},DM=_N("replace"),CM=Math.max,SM=Math.min,AM=MI([].concat),OM=MI([].push),kM=MI("".indexOf),BM=MI("".slice),FM="$0"==="a".replace(/./,"$0"),TM=!!/./[DM]&&""===/./[DM]("a","$0");sM("replace",(function(e,t,n){var r=TM?"$":"$0";return[function(e,n){var r=qI(this),o=null==e?void 0:hN(e,DM);return o?BI(o,e,r,n):BI(t,xR(r),e,n)},function(e,o){var i=UN(this),a=xR(e);if("string"==typeof o&&-1===kM(o,r)&&-1===kM(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=XI(o);s||(o=xR(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=xM(i,a);if(null===d)break;if(OM(f,d),!l)break;""===xR(d[0])&&(i.lastIndex=pM(a,SL(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var y=xR((d=f[v])[0]),m=CM(SM(wL(d.index),a.length),0),b=[],w=1;w<d.length;w++)OM(b,void 0===(p=d[w])?p:String(p));var E=d.groups;if(s){var x=AM([y],b,m,a);void 0!==E&&OM(x,E);var D=xR(iM(o,void 0,x))}else D=wM(y,a,m,b,E,o);m>=g&&(h+=BM(a,g,m)+D,g=m+y.length)}return h+BM(a,g)}]}),!!AI((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!FM||TM);var _M=_N("unscopables"),PM=Array.prototype;null==PM[_M]&&qN.f(PM,_M,{configurable:!0,value:RR(null)});var jM=function(e){PM[_M][e]=!0},IM=gR.find,NM=!0;"find"in[]&&Array(1).find((function(){NM=!1})),qL({target:"Array",proto:!0,forced:NM},{find:function(e){return IM(this,e,arguments.length>1?arguments[1]:void 0)}}),jM("find");var LM=_N("match"),RM=function(e){var t;return YI(e)&&(void 0!==(t=e[LM])?!!t:"RegExp"==HI(e))},MM=SI.TypeError,zM=_N("species"),$M=function(e,t,n){var r=IN(t);r in e?qN.f(e,r,jI(0,n)):e[r]=n},HM=SI.Array,VM=Math.max,UM=function(e,t,n){for(var r=AL(e),o=DL(t,r),i=DL(void 0===n?r:n,r),a=HM(VM(i-o,0)),u=0;o<i;o++,u++)$M(a,u,e[o]);return a.length=u,a},WM=OR.UNSUPPORTED_Y,GM=Math.min,qM=[].push,KM=MI(/./.exec),XM=MI(qM),YM=MI("".slice);sM("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=xR(qI(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!RM(e))return BI(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=BI(eM,f,r))&&!((a=f.lastIndex)>c&&(XM(s,YM(r,c,i.index)),i.length>1&&i.index<r.length&&iM(qM,s,UM(i,1)),u=i[0].length,c=a,s.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return c===r.length?!u&&KM(f,"")||XM(s,""):XM(s,YM(r,c)),s.length>o?UM(s,0,o):s}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:BI(t,this,e,n)}:t,[function(t,n){var o=qI(this),i=null==t?void 0:hN(t,e);return i?BI(i,t,o,n):BI(r,xR(o),t,n)},function(e,o){var i=UN(this),a=xR(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=UN(i).constructor)||null==(l=UN(c)[zM])?s:function(e){if(lR(e))return e;throw MM(fN(e)+" is not a constructor")}(l)),d=i.unicode,p=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(WM?"g":"y"),h=new f(WM?"^(?:"+i.source+")":i,p),g=void 0===o?4294967295:o>>>0;if(0===g)return[];if(0===a.length)return null===xM(h,a)?[a]:[];for(var v=0,y=0,m=[];y<a.length;){h.lastIndex=WM?0:y;var b,w=xM(h,WM?YM(a,y):a);if(null===w||(b=GM(SL(h.lastIndex+(WM?y:0)),a.length))===v)y=pM(a,y,d);else{if(XM(m,YM(a,v,y)),m.length===g)return m;for(var E=1;E<=w.length-1;E++)if(XM(m,w[E]),m.length===g)return m;y=v=b}}return XM(m,YM(a,v)),m}]}),!!AI((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]})),WM);var ZM="\t\n\v\f\r \u2028\u2029\ufeff",JM=MI("".replace),QM="["+ZM+"]",ez=RegExp("^"+QM+QM+"*"),tz=RegExp(QM+QM+"*$"),nz=function(e){return function(t){var n=xR(qI(t));return 1&e&&(n=JM(n,ez,"")),2&e&&(n=JM(n,tz,"")),n}},rz={start:nz(1),end:nz(2),trim:nz(3)},oz=vL.PROPER,iz=rz.trim;function az(e){return 0===gg("<div>"+e+"</div>").children().filter((function(e){return"BR"!==e.tagName})).length}function uz(e){return 0===e.length?"":e[0].outerHTML}function sz(e){return e.length?e[0].tagName.toLowerCase():""}function lz(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}qL({target:"String",proto:!0,forced:AI((function(){return!!ZM.trim()||"
"!=="
".trim()||oz&&"trim"!==ZM.trim.name}))},{trim:function(){return iz(this)}}),qL({global:!0},{globalThis:SI}),Fg&&(gg.fn.css=Fg),Ng&&(gg.fn.append=Ng),Lg&&(gg.fn.prepend=Lg),vg&&(gg.fn.addClass=vg),yg&&(gg.fn.removeClass=yg),mg&&(gg.fn.hasClass=mg),Dg&&(gg.fn.on=Dg),Cg&&(gg.fn.off=Cg),qg&&(gg.fn.focus=qg),bg&&(gg.fn.attr=bg),wg&&(gg.fn.removeAttr=wg),kg&&(gg.fn.hide=kg),Bg&&(gg.fn.show=Bg),Mg&&(gg.fn.parents=Mg),Eg&&(gg.fn.dataset=Eg),xg&&(gg.fn.val=xg),jg&&(gg.fn.text=jg),Pg&&(gg.fn.html=Pg),$g&&(gg.fn.children=$g),Hg&&(gg.fn.remove=Hg),zg&&(gg.fn.find=zg),Sg&&(gg.fn.width=Sg),Ag&&(gg.fn.height=Ag),_g&&(gg.fn.filter=_g),Vg&&(gg.fn.empty=Vg);var cz={selector:"p:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=gg(e);return 0===(t=t.filter((function(e){return!!Np.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:t}}},fz=function(e,t){return fz=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])},fz(e,t);
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
-
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
-
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */};function dz(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}fz(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var pz=function(){return pz=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},pz.apply(this,arguments)};function hz(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 gz(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 vz(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 yz(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 mz(e){var t=yz(dp.nodes(e,{match:function(t){return e.children[0]===t},mode:"highest"}),1)[0];if(null==t)return!1;var n=t[0];if(!ap.isElement(n))return!1;if("paragraph"===n.type)return!1;if(""!==yp.string(n))return!1;var r=n.children,o=void 0===r?[]:r;return!!Np.isText(o[0])&&(eh.setNodes(e,{type:"paragraph"}),!0)}var bz={renderElems:[bI],elemsToHtml:[{type:"paragraph",elemToHtml:function(e,t){return""===t?"<p><br></p>":"<p>"+t+"</p>"}}],parseElemsHtml:[cz],editorPlugin:function(e){var t=e.deleteBackward,n=e.deleteForward;e.insertText,e.insertBreak;var r=e;return r.deleteBackward=function(e){mz(r)||t(e)},r.deleteForward=function(e){mz(r)||n(e)},r}},wz=/"/g,Ez=MI("".replace),xz=function(e,t,n,r){var o=xR(qI(e)),i="<"+t;return""!==n&&(i+=" "+n+'="'+Ez(xR(r),wz,""")+'"'),i+">"+o+"</"+t+">"},Dz=function(e){return AI((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))};function Cz(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 Sz(e,t){return 0!==e.length&&(!!e[0].matches(t)||e.find(t).length>0)}qL({target:"String",proto:!0,forced:Dz("bold")},{bold:function(){return xz(this,"b","","")}}),qL({target:"String",proto:!0,forced:Dz("italics")},{italics:function(){return xz(this,"i","","")}}),qL({target:"String",proto:!0,forced:Dz("sub")},{sub:function(){return xz(this,"sub","","")}}),qL({target:"String",proto:!0,forced:Dz("sup")},{sup:function(){return xz(this,"sup","","")}});var Az={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},Oz=RN("span").classList,kz=Oz&&Oz.constructor&&Oz.constructor.prototype,Bz=kz===Object.prototype?void 0:kz,Fz=function(e,t){var n=[][e];return!!n&&AI((function(){n.call(null,t||function(){throw 1},1)}))},Tz=gR.forEach,_z=Fz("forEach")?[].forEach:function(e){return Tz(this,e,arguments.length>1?arguments[1]:void 0)},Pz=function(e){if(e&&e.forEach!==_z)try{KN(e,"forEach",_z)}catch(t){e.forEach=_z}};for(var jz in Az)Az[jz]&&Pz(SI[jz]&&SI[jz].prototype);function Iz(e,t){return null==e.selection||!!yz(dp.nodes(e,{match:function(t){return"pre"===dB.getNodeType(t)||!!dp.isVoid(e,t)},universal:!0}),1)[0]}function Nz(e,t){Object.keys(t).forEach((function(t){"text"!==t&&dp.removeMark(e,t)}))}Pz(Bz),qL({target:"Object",stat:!0,forced:AI((function(){kR(1)}))},{keys:function(e){return kR(EN(e))}});var Lz=function(){function e(){this.marksNeedToRemove=[],this.tag="button"}return e.prototype.getValue=function(e){var t=this.mark,n=dp.marks(e);return n?n[t]:!!yz(dp.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 Iz(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}(),Rz='<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>',Mz='<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>',zz='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',$z='<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>',Hz='<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>',Vz='<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>',Uz='<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>',Wz='<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>',Gz='<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>',qz='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',Kz='<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>',Xz='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',Yz='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',Zz='<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>',Jz='<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>',Qz='<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>',e$='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',t$='<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>',n$='<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>',r$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="bold",t.title=Jj("textStyle.bold"),t.iconSvg=Rz,t.hotkey="mod+b",t}return dz(t,e),t}(Lz),o$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="code",t.title=Jj("textStyle.code"),t.iconSvg=Hz,t.hotkey="mod+e",t}return dz(t,e),t}(Lz),i$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="italic",t.title=Jj("textStyle.italic"),t.iconSvg=zz,t.hotkey="mod+i",t}return dz(t,e),t}(Lz),a$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="through",t.title=Jj("textStyle.through"),t.iconSvg=$z,t.hotkey="mod+shift+x",t}return dz(t,e),t}(Lz),u$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="underline",t.title=Jj("textStyle.underline"),t.iconSvg=Mz,t.hotkey="mod+u",t}return dz(t,e),t}(Lz),s$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="sub",t.marksNeedToRemove=["sup"],t.title=Jj("textStyle.sub"),t.iconSvg=n$,t.hotkey="",t}return dz(t,e),t}(Lz),l$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="sup",t.marksNeedToRemove=["sub"],t.title=Jj("textStyle.sup"),t.iconSvg=t$,t.hotkey="",t}return dz(t,e),t}(Lz),c$=function(){function e(){this.title=Jj("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 Iz(e)},e.prototype.exec=function(e,t){var n,r,o=dp.nodes(e,{match:function(e){return Np.isText(e)},universal:!0});try{for(var i=vz(o),a=i.next();!a.done;a=i.next())Nz(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}(),f$={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=oy("strong",null,c)),a&&(c=oy("code",null,c)),o&&(c=oy("em",null,c)),i&&(c=oy("u",null,c)),u&&(c=oy("s",null,c)),s&&(c=oy("sub",null,c)),l&&(c=oy("sup",null,c)),c},menus:[{key:"bold",factory:function(){return new r$}},{key:"underline",factory:function(){return new u$}},{key:"italic",factory:function(){return new i$}},{key:"through",factory:function(){return new a$}},{key:"code",factory:function(){return new o$}},{key:"sub",factory:function(){return new s$}},{key:"sup",factory:function(){return new l$}},{key:"clearStyle",factory:function(){return new c$}}],styleToHtml:function(e,t){if(!Np.isText(e))return t;if(az(t))return Cz(e,t);var n=gg(t);if("br"===sz(n))return Cz(e,"<br>");var r=n.html();return r=Cz(e,r),n.html(r),uz(n)},parseStyleHtml:function(e,t,n){var r=gg(e);if(!Np.isText(t))return t;var o=t;return Sz(r,"b,strong")&&(o.bold=!0),Sz(r,"i,em")&&(o.italic=!0),Sz(r,"u")&&(o.underline=!0),Sz(r,"s,strike")&&(o.through=!0),Sz(r,"sub")&&(o.sub=!0),Sz(r,"sup")&&(o.sup=!0),Sz(r,"code")&&(o.code=!0),o}};function d$(e){return function(t,n,r){return oy("h"+e,null,n)}}var p$={type:"header1",renderElem:d$(1)},h$={type:"header2",renderElem:d$(2)},g$={type:"header3",renderElem:d$(3)},v$={type:"header4",renderElem:d$(4)},y$={type:"header5",renderElem:d$(5)},m$=vL.PROPER,b$=RegExp.prototype,w$=b$.toString,E$=MI(DR),x$=AI((function(){return"/a/b"!=w$.call({source:"a",flags:"b"})})),D$=m$&&"toString"!=w$.name;(x$||D$)&&yL(RegExp.prototype,"toString",(function(){var e=UN(this),t=xR(e.source),n=e.flags;return"/"+t+"/"+xR(void 0===n&&QI(b$,e)&&!("flags"in b$)?E$(e):n)}),{unsafe:!0});var C$,S$=SI.TypeError,A$=function(e){if(RM(e))throw S$("The method doesn't accept regular expressions");return e},O$=_N("match"),k$=function(e){var t=/./;try{"/./"[e](t)}catch(eI){try{return t[O$]=!1,"/./"[e](t)}catch(n){}}return!1},B$=$N.f,F$=MI("".startsWith),T$=MI("".slice),_$=Math.min,P$=k$("startsWith");function j$(e){var t=yz(dp.nodes(e,{match:function(e){return dB.getNodeType(e).startsWith("header")},universal:!0}),1)[0];if(null==t)return"paragraph";var n=yz(t,1)[0];return dB.getNodeType(n)}function I$(e){return null==e.selection||!yz(dp.nodes(e,{match:function(e){var t=dB.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function N$(e,t){t&&eh.setNodes(e,{type:t})}qL({target:"String",proto:!0,forced:!(!P$&&(C$=B$(String.prototype,"startsWith"),C$&&!C$.writable)||P$)},{startsWith:function(e){var t=xR(qI(this));A$(e);var n=SL(_$(arguments.length>1?arguments[1]:void 0,t.length)),r=xR(e);return F$?F$(t,r,n):T$(t,n,n+r.length)===r}});var L$=function(){function e(){this.title=Jj("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:Jj("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 j$(e)},e.prototype.isDisabled=function(e){return I$(e)},e.prototype.exec=function(e,t){N$(e,t.toString())},e}(),R$=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return j$(e)},e.prototype.isActive=function(e){return this.getValue(e)===this.type},e.prototype.isDisabled=function(e){return I$(e)},e.prototype.exec=function(e,t){var n=this.type;N$(e,t===n?"paragraph":n)},e}(),M$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H1",t.type="header1",t}return dz(t,e),t}(R$),z$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H2",t.type="header2",t}return dz(t,e),t}(R$),$$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H3",t.type="header3",t}return dz(t,e),t}(R$),H$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H4",t.type="header4",t}return dz(t,e),t}(R$),V$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H5",t.type="header5",t}return dz(t,e),t}(R$),U$={key:"headerSelect",factory:function(){return new L$}},W$={key:"header1",factory:function(){return new M$}},G$={key:"header2",factory:function(){return new z$}},q$={key:"header3",factory:function(){return new $$}},K$={key:"header4",factory:function(){return new H$}},X$={key:"header5",factory:function(){return new V$}};function Y$(e){return function(t,n){return"<h"+e+">"+n+"</h"+e+">"}}function Z$(e){return function(t,n,r){var o=gg(t);return 0===(n=n.filter((function(e){return!!Np.isText(e)||!!r.isInline(e)}))).length&&(n=[{text:o.text().replace(/\s+/gm," ")}]),{type:"header"+e,children:n}}}var J$={renderElems:[p$,h$,g$,v$,y$],elemsToHtml:[{type:"header1",elemToHtml:Y$(1)},{type:"header2",elemToHtml:Y$(2)},{type:"header3",elemToHtml:Y$(3)},{type:"header4",elemToHtml:Y$(4)},{type:"header5",elemToHtml:Y$(5)}],parseElemsHtml:[{selector:"h1:not([data-w-e-type])",parseElemHtml:Z$(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:Z$(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:Z$(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:Z$(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:Z$(5)}],menus:[U$,W$,G$,q$,K$,X$],editorPlugin:function(e){var t=e.insertBreak;e.insertNode;var n=e;return n.insertBreak=function(){var r=yz(dp.nodes(n,{match:function(e){return dB.getNodeType(e).startsWith("header")},universal:!0}),1)[0];r&&dB.isSelectionAtLineEnd(e,r[1])?eh.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):t()},n}},Q$=Object.assign,eH=Object.defineProperty,tH=MI([].concat),nH=!Q$||AI((function(){if(OI&&1!==Q$({b:1},Q$(eH({},"a",{enumerable:!0,get:function(){eH(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!=Q$({},e)[n]||kR(Q$({},t)).join("")!=r}))?function(e,t){for(var n=EN(e),r=arguments.length,o=1,i=IL.f,a=PI.f;r>o;)for(var u,s=WI(arguments[o++]),l=i?tH(kR(s),i(s)):kR(s),c=l.length,f=0;c>f;)u=l[f++],OI&&!BI(a,s,u)||(n[u]=s[u]);return n}:Q$;function rH(e,t){null==e.data&&(e.data={});var n=e.data;null==n.style&&(n.style={}),Object.assign(n.style,t)}qL({target:"Object",stat:!0,forced:Object.assign!==nH},{assign:nH});var oH={selector:"font",preParseHtml:function(e){var t=gg(e);if("font"!==sz(t))return e;var n=t.attr("color")||"";return n&&(t.removeAttr("color"),t.css("color",n)),t[0]}},iH=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=dp.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||!!yz(dp.nodes(e,{match:function(t){return"pre"===dB.getNodeType(t)||!!dp.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){var t=this.mark;if(null==this.$content){var n=gg('<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=gg(r).attr("data-value");"0"===o?dp.removeMark(e,t):dp.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=gg('<div class="color-block" data-value="'+e+'"></div>');t.css("background-color",e);var n=gg('<li data-value="'+e+'"></li>');o===e&&n.addClass("active"),n.append(t),r.append(n)}));var a="";"color"===t&&(a=Jj("color.default")),"bgColor"===t&&(a=Jj("color.clear"));var u=gg('\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}(),aH=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Jj("color.color"),t.iconSvg=Wz,t.mark="color",t}return dz(t,e),t}(iH),uH=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Jj("color.bgColor"),t.iconSvg=Gz,t.mark="bgColor",t}return dz(t,e),t}(iH),sH=["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)"],lH={renderStyle:function(e,t){var n=e,r=n.color,o=n.bgColor,i=t;return r&&rH(i,{color:r}),o&&rH(i,{backgroundColor:o}),i},styleToHtml:function(e,t){if(!Np.isText(e))return t;var n,r=e,o=r.color,i=r.bgColor;return o||i?((az(t)||"span"!==sz(n=gg(t)))&&(n=gg("<span>"+t+"</span>")),o&&n.css("color",o),i&&n.css("background-color",i),uz(n)):t},preParseHtml:[oH],parseStyleHtml:function(e,t,n){var r=gg(e);if(!Np.isText(t))return t;var o=t,i=lz(r,"color");i&&(o.color=i);var a=lz(r,"background-color");return a||(a=lz(r,"background")),a&&(o.bgColor=a),o},menus:[{key:"color",factory:function(){return new aH},config:{colors:sH}},{key:"bgColor",factory:function(){return new uH},config:{colors:sH}}]},cH=/^(?:\w+:)?\/\/(\S+)$/,fH=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,dH=/^[^\s\.]+\.\S{2,}$/,pH=kL.includes;function hH(e){return void 0===e&&(e="r"),e+"-"+cv()}function gH(e){return e.replace(/</g,"<").replace(/>/g,">")}function vH(e,t,n,r){return hz(this,void 0,void 0,(function(){var o,i;return gz(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 yH(e,t,n){return hz(this,void 0,void 0,(function(){var r;return gz(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 mH(e){return null==e.selection||!!dB.getSelectedElems(e).some((function(t){var n=t.type;return!!e.isVoid(t)||!!["pre","code","link"].includes(n)||void 0}))}function bH(e,t){return{type:"link",url:gH(e),children:t?[{text:t}]:[]}}function wH(e,t,n){return hz(this,void 0,void 0,(function(){var r,o,i;return gz(this,(function(a){switch(a.label){case 0:return n?(t||(t=n),e.restoreSelection(),mH(e)?[2]:[4,vH("insertLink",e,t,n)]):[2];case 1:return a.sent()?[4,yH("insertLink",e,n)]:[2];case 2:return r=a.sent(),null==(o=e.selection)||(Bp.isCollapsed(o)?(e.insertText(" "),i=bH(r,t),eh.insertNodes(e,i),e.insertFragment([{text:" "}])):dp.string(e,o)!==t?(e.deleteFragment(),i=bH(r,t),eh.insertNodes(e,i)):(i=bH(r),eh.wrapNodes(e,i,{split:!0}),eh.collapse(e,{edge:"end"}))),[2]}}))}))}qL({target:"Array",proto:!0},{includes:function(e){return pH(this,e,arguments.length>1?arguments[1]:void 0)}}),jM("includes");var EH={type:"link",renderElem:function(e,t,n){var r=e,o=r.url,i=r.target;return oy("a",{href:o,target:void 0===i?"_blank":i},t)}},xH={selector:"a:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=gg(e);return 0===(t=t.filter((function(e){return!!Np.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 DH(){return hH("w-e-insert-link")}var CH=function(){function e(){this.title=Jj("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=DH(),this.urlInputId=DH(),this.buttonId=DH()}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 mH(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=yz(NP(Jj("link.text"),r),2),u=a[0],s=gg(a[1]),l=yz(NP(Jj("link.url"),o),2),c=l[0],f=gg(l[1]),d=yz(LP(i,Jj("common.ok")),1)[0];if(null==this.$content){var p=gg("<div></div>");p.on("click","#"+i,(function(t){t.preventDefault();var n=p.find("#"+r).val(),i=p.find("#"+o).val();wH(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||Bp.isCollapsed(t))s.val("");else{var g=dp.string(e,t);s.val(g)}return f.val(""),setTimeout((function(){s.focus()})),h[0]},e}();function SH(){return hH("w-e-update-link")}var AH=function(){function e(){this.title=Jj("link.edit"),this.iconSvg=Vz,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=SH(),this.buttonId=SH()}return e.prototype.getSelectedLinkElem=function(e){var t=dB.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 dB.getSelectedNodeByType(e,"link")},e.prototype.getModalContentElem=function(e){var t=this.urlInputId,n=this.buttonId,r=yz(NP(Jj("link.url"),t),2),o=r[0],i=gg(r[1]),a=yz(LP(n,Jj("common.ok")),1)[0];if(null==this.$content){var u=gg("<div></div>");u.on("click","button",(function(n){n.preventDefault(),e.restoreSelection();var r=dB.getSelectedNodeByType(e,"link"),o=r?yp.string(r):"",i=u.find("#"+t).val();!function(e,t,n){hz(this,void 0,void 0,(function(){var r,o;return gz(this,(function(i){switch(i.label){case 0:return n?[4,vH("editLink",e,t,n)]:[2];case 1:return i.sent()?[4,yH("editLink",e,n)]:[2];case 2:return r=i.sent(),o={url:gH(r)},eh.setNodes(e,o,{match:function(e){return dB.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}(),OH=function(){function e(){this.title=Jj("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==dB.getSelectedNodeByType(e,"link")},e.prototype.exec=function(e,t){this.isDisabled(e)||eh.unwrapNodes(e,{match:function(e){return dB.checkNodeType(e,"link")}})},e}(),kH=function(){function e(){this.title=Jj("link.view"),this.iconSvg=Uz,this.tag="button"}return e.prototype.getSelectedLinkElem=function(e){var t=dB.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}(),BH={checkLink:function(e,t){return!0},parseLinkUrl:function(e){return e}},FH={renderElems:[EH],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:[xH],menus:[{key:"insertLink",factory:function(){return new CH},config:BH},{key:"editLink",factory:function(){return new AH},config:BH},{key:"unLink",factory:function(){return new OH}},{key:"viewLink",factory:function(){return new kH}}],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(cH);if(!t)return!1;var n=t[1];return!(!n||!fH.test(n)&&!dH.test(n))}(t)){if(!mH(o)){var r=o.selection;if(null!=r){var i=dp.string(o,r);wH(o,i,t)}}}else n(e)},o.normalizeNode=function(e){var t=yz(e,2),n=t[0],i=t[1];return"link"!==dB.getNodeType(n)?r([n,i]):""===yp.string(n)?eh.removeNodes(o,{at:i}):r([n,i])},o}},TH=MI(1..valueOf),_H=SI.RangeError,PH=SI.RangeError,jH=SI.String,IH=Math.floor,NH=MI((function(e){var t=xR(qI(this)),n="",r=wL(e);if(r<0||r==1/0)throw _H("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n})),LH=MI("".slice),RH=MI(1..toFixed),MH=function(e,t,n){return 0===t?n:t%2==1?MH(e,t-1,n*e):MH(e*e,t/2,n)},zH=function(e,t,n){for(var r=-1,o=n;++r<6;)o+=t*e[r],e[r]=o%1e7,o=IH(o/1e7)},$H=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=IH(r/t),r=r%t*1e7},HH=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var r=jH(e[t]);n=""===n?r:n+NH("0",7-r.length)+r}return n};function VH(e,t){return"w-e-image-container-"+dB.findKey(e,t).id}qL({target:"Number",proto:!0,forced:AI((function(){return"0.000"!==RH(8e-5,3)||"1"!==RH(.9,0)||"1.25"!==RH(1.255,2)||"1000000000000000128"!==RH(0xde0b6b3a7640080,0)}))||!AI((function(){RH({})}))},{toFixed:function(e){var t,n,r,o,i=TH(this),a=wL(e),u=[0,0,0,0,0,0],s="",l="0";if(a<0||a>20)throw PH("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return jH(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*MH(2,69,1))-69)<0?i*MH(2,-t,1):i/MH(2,t,1),n*=4503599627370496,(t=52-t)>0){for(zH(u,0,n),r=a;r>=7;)zH(u,1e7,0),r-=7;for(zH(u,MH(10,r,1),0),r=t-1;r>=23;)$H(u,1<<23),r-=23;$H(u,1<<r),zH(u,1,1),$H(u,2),l=HH(u)}else zH(u,0,n),zH(u,1<<-t,0),l=HH(u)+NH("0",a);return a>0?s+((o=l.length)<=a?"0."+NH("0",a-o)+l:LH(l,0,o-a)+"."+LH(l,o-a)):s+l}});var UH={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=dB.isNodeSelected(n,e),v={};d&&(v.width="100%"),h&&(v.height="100%");var y,m,b,w,E,x,D,C=oy("img",{style:v,src:o,alt:a,"data-href":s}),S=n.isDisabled();return g&&!S?function(e,t,n,r){var o=gg("body"),i=VH(e,t),a=r.width,u=r.height,s=0,l=0,c=0,f=!1,d=null;var p=Sv((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:pz(pz({},t.style),{width:r+"px",height:i+"px"})};eh.setNodes(e,a,{at:dB.findPath(e,t)}),o.off("mouseup",h)}}var g={};return a&&(g.width=a),u&&(g.height=u),oy("div",{id:i,style:g,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(t){var n=gg(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=gg("#"+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=dB.getHoverbar(e);r&&r.hideAndClean()}(t.clientX))}}},n,oy("div",{className:"w-e-image-dragger left-top"}),oy("div",{className:"w-e-image-dragger right-top"}),oy("div",{className:"w-e-image-dragger left-bottom"}),oy("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),oy("div",{id:VH(y,m),style:D,className:"w-e-image-container"},b))}},WH={selector:"img:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=gg(e),o=r.attr("data-href")||"";return o=decodeURIComponent(o),{type:"image",src:r.attr("src")||"",alt:r.attr("alt")||"",href:o,style:{width:lz(r,"width"),height:lz(r,"height")},children:[{text:""}]}}};function GH(e,t,n,r,o){return void 0===r&&(r=""),void 0===o&&(o=""),hz(this,void 0,void 0,(function(){var i,a;return gz(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 qH(e,t,n){return hz(this,void 0,void 0,(function(){var r;return gz(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 KH(e,t,n,r){return void 0===n&&(n=""),void 0===r&&(r=""),hz(this,void 0,void 0,(function(){var o,i,a;return gz(this,(function(u){switch(u.label){case 0:return[4,GH("insertImage",e,t,n,r)];case 1:return u.sent()?[4,qH("insertImage",e,t)]:[2];case 2:return o=u.sent(),i={type:"image",src:gH(o),href:r,alt:n,style:{},children:[{text:""}]},null===e.selection&&e.restoreSelection(),dB.getSelectedNodeByType(e,"image")&&e.move(1),XH(e)||(eh.insertNodes(e,i),(a=e.getMenuConfig("insertImage").onInsertedImage)&&a(i)),[2]}}))}))}function XH(e){var t=e.selection;return null==t||!Bp.isCollapsed(t)||!!yz(dp.nodes(e,{match:function(t){var n=dB.getNodeType(t);return"code"===n||"pre"===n||"link"===n||"list-item"===n||!!n.startsWith("header")||"blockquote"===n||!!dp.isVoid(e,t)},universal:!0}),1)[0]}function YH(){return hH("w-e-insert-image")}var ZH=function(){function e(){this.title=Jj("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=YH(),this.altInputId=YH(),this.hrefInputId=YH(),this.buttonId=YH()}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 XH(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=yz(NP(Jj("image.src"),r),2),s=u[0],l=gg(u[1]),c=yz(NP(Jj("image.desc"),o),2),f=c[0],d=gg(c[1]),p=yz(NP(Jj("image.link"),i),2),h=p[0],g=gg(p[1]),v=yz(LP(a,Jj("common.ok")),1)[0];if(null==this.$content){var y=gg("<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)||KH(e,t,n,r))},e}(),JH=function(){function e(){this.title=Jj("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==dB.getSelectedNodeByType(e,"image")},e.prototype.exec=function(e,t){this.isDisabled(e)||eh.removeNodes(e,{match:function(e){return dB.checkNodeType(e,"image")}})},e}();function QH(){return hH("w-e-edit-image")}var eV=function(){function e(){this.title=Jj("image.edit"),this.iconSvg=Vz,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=QH(),this.altInputId=QH(),this.hrefInputId=QH(),this.buttonId=QH()}return e.prototype.getValue=function(e){return""},e.prototype.getImageNode=function(e){return dB.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||!Bp.isCollapsed(t)||null==dB.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=yz(NP(Jj("image.src"),r),2),l=s[0],c=gg(s[1]),f=yz(NP(Jj("image.desc"),o),2),d=f[0],p=gg(f[1]),h=yz(NP(Jj("image.link"),i),2),g=h[0],v=gg(h[1]),y=yz(LP(a,Jj("common.ok")),1)[0];if(null==this.$content){var m=gg("<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={}),hz(this,void 0,void 0,(function(){var i,a,u,s,l,c;return gz(this,(function(f){switch(f.label){case 0:return[4,GH("editImage",e,t,n,r)];case 1:return f.sent()?[4,qH("editImage",e,t)]:[2];case 2:return i=f.sent(),null==(a=dB.getSelectedNodeByType(e,"image"))||(u=a.style,s={src:i,alt:n,href:r,style:pz(pz({},void 0===u?{}:u),o)},eh.setNodes(e,s,{match:function(e){return dB.checkNodeType(e,"image")}}),l=dB.getSelectedNodeByType(e,"image"),(c=e.getMenuConfig("editImage").onUpdatedImage)&&c(l)),[2]}}))}))}(e,t,n,r,o))},e}(),tV=function(){function e(){this.title=Jj("image.viewLink"),this.iconSvg=Uz,this.tag="button"}return e.prototype.getValue=function(e){var t=dB.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}(),nV=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 dB.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=dB.getHoverbar(e);r&&r.hideAndClean();var o=n.style,i={style:pz(pz({},void 0===o?{}:o),{width:this.value,height:""})};eh.setNodes(e,i,{match:function(e){return dB.checkNodeType(e,"image")}})}}},e}(),rV=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="30%",t.value="30%",t}return dz(t,e),t}(nV),oV=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="50%",t.value="50%",t}return dz(t,e),t}(nV),iV=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="100%",t.value="100%",t}return dz(t,e),t}(nV),aV={onInsertedImage:function(e){},onUpdatedImage:function(e){},checkImage:function(e,t,n){return!0},parseImageSrc:function(e){return e}},uV={renderElems:[UH],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:[WH],menus:[{key:"insertImage",factory:function(){return new ZH},config:aV},{key:"deleteImage",factory:function(){return new JH}},{key:"editImage",factory:function(){return new eV},config:aV},{key:"viewImageLink",factory:function(){return new tV}},{key:"imageWidth30",factory:function(){return new rV}},{key:"imageWidth50",factory:function(){return new oV}},{key:"imageWidth100",factory:function(){return new iV}}],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}},sV={type:"todo",renderElem:function(e,t,n){var r=!1;return n.isDisabled()&&(r=!0),oy("div",{style:{margin:"5px 0"}},oy("span",{contentEditable:!1,style:{marginRight:"0.5em"}},oy("input",{type:"checkbox",checked:e.checked,disabled:r,on:{change:function(t){var r=dB.findPath(n,e),o={checked:t.target.checked};eh.setNodes(n,o,{at:r})}}})),oy("span",null,t))}},lV=function(){function e(){this.title=Jj("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!!dB.getSelectedNodeByType(e,"todo")},e.prototype.isDisabled=function(e){return null==e.selection||!!dB.getSelectedElems(e).some((function(t){if(dp.isVoid(e,t)&&dp.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);eh.setNodes(e,{type:n?"paragraph":"todo"})},e}(),cV={selector:'div[data-w-e-type="todo"]',parseElemHtml:function(e,t,n){var r=gg(e);0===(t=t.filter((function(e){return!!Np.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}}},fV={renderElems:[sV],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=gg(e).find("li"),n=gg('<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:[cV],menus:[{key:"todo",factory:function(){return new lV}}],editorPlugin:function(e){var t=e.deleteBackward,n=e;return n.deleteBackward=function(n){var r=e.selection;if(r&&Bp.isCollapsed(r)){var o=dB.getSelectedNodeByType(e,"todo");if(o&&0===yp.string(o).length)return void eh.setNodes(e,{type:"paragraph"},{mode:"highest"})}t(n)},n}},dV={type:"blockquote",renderElem:function(e,t,n){return oy("blockquote",null,t)}},pV={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=gg(e);return 0===(t=t.filter((function(e){return!!Np.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:t}}},hV=function(){function e(){this.title=Jj("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!!dB.getSelectedNodeByType(e,"blockquote")},e.prototype.isDisabled=function(e){return null==e.selection||!yz(dp.nodes(e,{match:function(e){var t=dB.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";eh.setNodes(e,{type:n},{mode:"highest"})}},e}(),gV={key:"blockquote",factory:function(){return new hV}},vV=MI([].slice),yV=yR("slice"),mV=_N("species"),bV=SI.Array,wV=Math.max;qL({target:"Array",proto:!0,forced:!yV},{slice:function(e,t){var n,r,o,i=KI(this),a=AL(i),u=DL(e,a),s=DL(void 0===t?a:t,a);if(XL(i)&&(n=i.constructor,(lR(n)&&(n===bV||XL(n.prototype))||YI(n)&&null===(n=n[mV]))&&(n=void 0),n===bV||void 0===n))return vV(i,u,s);for(r=new(void 0===n?bV:n)(wV(s-u,0)),o=0;u<s;u++,o++)u in i&&$M(r,o,i[u]);return r.length=o,r}});var EV={renderElems:[dV],elemsToHtml:[{type:"blockquote",elemToHtml:function(e,t){return"<blockquote>"+t+"</blockquote>"}}],parseElemsHtml:[pV],menus:[gV],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=yz(dp.nodes(e,{match:function(e){return dB.checkNodeType(e,"blockquote")},universal:!0}),1)[0];if(!i)return t();var a=i[0],u=dB.findPath(e,a),s=dp.end(e,u);if(Sp.equals(s,o.focus)){var l=yp.string(a);if(l&&"\n"===l.slice(-1))return e.deleteBackward("character"),void eh.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}n("\n")},r}},xV=function(){function e(){this.title=Jj("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||!!yz(dp.nodes(e,{match:function(t){return"pre"===dB.getNodeType(t)||!!dp.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){if(null==this.$content){var t=gg('<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=gg(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=gg("<li>"+e+"</li>");n.append(t)})),n[0]},e}(),DV={menus:[{key:"emotion",factory:function(){return new xV},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},CV={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},SV={selector:"font",preParseHtml:function(e){var t=gg(e);if("font"!==sz(t))return e;var n=t.attr("size")||"";n&&(t.removeAttr("size"),t.css("font-size",CV[n]));var r=t.attr("face")||"";return r&&(t.removeAttr("face"),t.css("font-family",r)),t[0]}},AV=MI("".indexOf);qL({target:"String",proto:!0,forced:!k$("includes")},{includes:function(e){return!!~AV(xR(qI(this)),xR(A$(e)),arguments.length>1?arguments[1]:void 0)}});var OV,kV,BV=function(e){return e&&e.Math==Math&&e},FV=BV("object"==typeof globalThis&&globalThis)||BV("object"==typeof window&&window)||BV("object"==typeof self&&self)||BV("object"==typeof wI&&wI)||function(){return this}()||Function("return this")(),TV=Function.prototype,_V=TV.apply,PV=TV.bind,jV=TV.call,IV="object"==typeof Reflect&&Reflect.apply||(PV?jV.bind(_V):function(){return jV.apply(_V,arguments)}),NV=Function.prototype,LV=NV.bind,RV=NV.call,MV=LV&&LV.bind(RV),zV=LV?function(e){return e&&MV(RV,e)}:function(e){return e&&function(){return RV.apply(e,arguments)}},$V=function(e){return"function"==typeof e},HV=function(e){try{return!!e()}catch(t){return!0}},VV=!HV((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),UV=Function.prototype.call,WV=UV.bind?UV.bind(UV):function(){return UV.apply(UV,arguments)},GV={}.propertyIsEnumerable,qV=Object.getOwnPropertyDescriptor,KV=qV&&!GV.call({1:2},1)?function(e){var t=qV(this,e);return!!t&&t.enumerable}:GV,XV={f:KV},YV=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},ZV=zV({}.toString),JV=zV("".slice),QV=function(e){return JV(ZV(e),8,-1)},eU=FV.Object,tU=zV("".split),nU=HV((function(){return!eU("z").propertyIsEnumerable(0)}))?function(e){return"String"==QV(e)?tU(e,""):eU(e)}:eU,rU=FV.TypeError,oU=function(e){if(null==e)throw rU("Can't call method on "+e);return e},iU=function(e){return nU(oU(e))},aU=function(e){return"object"==typeof e?null!==e:$V(e)},uU={},sU=function(e){return $V(e)?e:void 0},lU=function(e,t){return arguments.length<2?sU(uU[e])||sU(FV[e]):uU[e]&&uU[e][t]||FV[e]&&FV[e][t]},cU=zV({}.isPrototypeOf),fU=lU("navigator","userAgent")||"",dU=FV.process,pU=FV.Deno,hU=dU&&dU.versions||pU&&pU.version,gU=hU&&hU.v8;gU&&(kV=(OV=gU.split("."))[0]>0&&OV[0]<4?1:+(OV[0]+OV[1])),!kV&&fU&&(!(OV=fU.match(/Edge\/(\d+)/))||OV[1]>=74)&&(OV=fU.match(/Chrome\/(\d+)/))&&(kV=+OV[1]);var vU=kV,yU=!!Object.getOwnPropertySymbols&&!HV((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&vU&&vU<41})),mU=yU&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,bU=FV.Object,wU=mU?function(e){return"symbol"==typeof e}:function(e){var t=lU("Symbol");return $V(t)&&cU(t.prototype,bU(e))},EU=FV.String,xU=FV.TypeError,DU=function(e){if($V(e))return e;throw xU(function(e){try{return EU(e)}catch(t){return"Object"}}(e)+" is not a function")},CU=FV.TypeError,SU=Object.defineProperty,AU=FV["__core-js_shared__"]||function(e,t){try{SU(FV,e,{value:t,configurable:!0,writable:!0})}catch(eI){FV[e]=t}return t}("__core-js_shared__",{}),OU=EI((function(e){(e.exports=function(e,t){return AU[e]||(AU[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),kU=FV.Object,BU=function(e){return kU(oU(e))},FU=zV({}.hasOwnProperty),TU=Object.hasOwn||function(e,t){return FU(BU(e),t)},_U=0,PU=Math.random(),jU=zV(1..toString),IU=function(e){return"Symbol("+(void 0===e?"":e)+")_"+jU(++_U+PU,36)},NU=OU("wks"),LU=FV.Symbol,RU=LU&&LU.for,MU=mU?LU:LU&&LU.withoutSetter||IU,zU=function(e){if(!TU(NU,e)||!yU&&"string"!=typeof NU[e]){var t="Symbol."+e;yU&&TU(LU,e)?NU[e]=LU[e]:NU[e]=mU&&RU?RU(t):MU(t)}return NU[e]},$U=FV.TypeError,HU=zU("toPrimitive"),VU=function(e){var t=function(e,t){if(!aU(e)||wU(e))return e;var n,r,o=null==(n=e[HU])?void 0:DU(n);if(o){if(void 0===t&&(t="default"),r=WV(o,e,t),!aU(r)||wU(r))return r;throw $U("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&$V(n=e.toString)&&!aU(r=WV(n,e)))return r;if($V(n=e.valueOf)&&!aU(r=WV(n,e)))return r;if("string"!==t&&$V(n=e.toString)&&!aU(r=WV(n,e)))return r;throw CU("Can't convert object to primitive value")}(e,t)}(e,"string");return wU(t)?t:t+""},UU=FV.document,WU=aU(UU)&&aU(UU.createElement),GU=function(e){return WU?UU.createElement(e):{}},qU=!VV&&!HV((function(){return 7!=Object.defineProperty(GU("div"),"a",{get:function(){return 7}}).a})),KU=Object.getOwnPropertyDescriptor,XU={f:VV?KU:function(e,t){if(e=iU(e),t=VU(t),qU)try{return KU(e,t)}catch(n){}if(TU(e,t))return YV(!WV(XV.f,e,t),e[t])}},YU=/#|\.prototype\./,ZU=function(e,t){var n=QU[JU(e)];return n==tW||n!=eW&&($V(t)?HV(t):!!t)},JU=ZU.normalize=function(e){return String(e).replace(YU,".").toLowerCase()},QU=ZU.data={},eW=ZU.NATIVE="N",tW=ZU.POLYFILL="P",nW=ZU,rW=zV(zV.bind),oW=function(e,t){return DU(e),void 0===t?e:rW?rW(e,t):function(){return e.apply(t,arguments)}},iW=FV.String,aW=FV.TypeError,uW=function(e){if(aU(e))return e;throw aW(iW(e)+" is not an object")},sW=FV.TypeError,lW=Object.defineProperty,cW={f:VV?lW:function(e,t,n){if(uW(e),t=VU(t),uW(n),qU)try{return lW(e,t,n)}catch(r){}if("get"in n||"set"in n)throw sW("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},fW=VV?function(e,t,n){return cW.f(e,t,YV(1,n))}:function(e,t,n){return e[t]=n,e},dW=XU.f,pW=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 IV(e,this,arguments)};return t.prototype=e.prototype,t},hW=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?FV:d?FV[c]:(FV[c]||{}).prototype,g=f?uU:uU[c]||fW(uU,c,{})[c],v=g.prototype;for(o in t)n=!nW(f?o:c+(d?".":"#")+o,e.forced)&&h&&TU(h,o),a=g[o],n&&(u=e.noTargetGet?(l=dW(h,o))&&l.value:h[o]),i=n&&u?u:t[o],n&&typeof a==typeof i||(s=e.bind&&n?oW(i,FV):e.wrap&&n?pW(i):p&&$V(i)?zV(i):i,(e.sham||i&&i.sham||a&&a.sham)&&fW(s,"sham",!0),fW(g,o,s),p&&(TU(uU,r=c+"Prototype")||fW(uU,r,{}),fW(uU[r],o,i),e.real&&v&&!v[o]&&fW(v,o,i)))},gW=Array.isArray||function(e){return"Array"==QV(e)},vW=Math.ceil,yW=Math.floor,mW=function(e){var t=+e;return t!=t||0===t?0:(t>0?yW:vW)(t)},bW=Math.min,wW=function(e){return(t=e.length)>0?bW(mW(t),9007199254740991):0;var t},EW=function(e,t,n){var r=VU(t);r in e?cW.f(e,r,YV(0,n)):e[r]=n},xW={};xW[zU("toStringTag")]="z";var DW="[object z]"===String(xW),CW=zU("toStringTag"),SW=FV.Object,AW="Arguments"==QV(function(){return arguments}()),OW=DW?QV: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=SW(e),CW))?n:AW?QV(t):"Object"==(r=QV(t))&&$V(t.callee)?"Arguments":r},kW=zV(Function.toString);$V(AU.inspectSource)||(AU.inspectSource=function(e){return kW(e)});var BW=AU.inspectSource,FW=function(){},TW=[],_W=lU("Reflect","construct"),PW=/^\s*(?:class|function)\b/,jW=zV(PW.exec),IW=!PW.exec(FW),NW=function(e){if(!$V(e))return!1;try{return _W(FW,TW,e),!0}catch(t){return!1}},LW=!_W||HV((function(){var e;return NW(NW.call)||!NW(Object)||!NW((function(){e=!0}))||e}))?function(e){if(!$V(e))return!1;switch(OW(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return IW||!!jW(PW,BW(e))}:NW,RW=zU("species"),MW=FV.Array,zW=function(e,t){return new(gW(n=e)&&(r=n.constructor,(LW(r)&&(r===MW||gW(r.prototype))||aU(r)&&null===(r=r[RW]))&&(r=void 0)),void 0===r?MW:r)(0===t?0:t);var n,r},$W=zU("species"),HW=zU("isConcatSpreadable"),VW=FV.TypeError,UW=vU>=51||!HV((function(){var e=[];return e[HW]=!1,e.concat()[0]!==e})),WW=vU>=51||!HV((function(){var e=[];return(e.constructor={})[$W]=function(){return{foo:1}},1!==e.concat(Boolean).foo})),GW=function(e){if(!aU(e))return!1;var t=e[HW];return void 0!==t?!!t:gW(e)};hW({target:"Array",proto:!0,forced:!UW||!WW},{concat:function(e){var t,n,r,o,i,a=BU(this),u=zW(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(GW(i=-1===t?a:arguments[t])){if(s+(o=wW(i))>9007199254740991)throw VW("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&EW(u,s,i[n])}else{if(s>=9007199254740991)throw VW("Maximum allowed index exceeded");EW(u,s++,i)}return u.length=s,u}});var qW,KW=FV.String,XW=function(e){if("Symbol"===OW(e))throw TypeError("Cannot convert a Symbol value to a string");return KW(e)},YW=Math.max,ZW=Math.min,JW=function(e,t){var n=mW(e);return n<0?YW(n+t,0):ZW(n,t)},QW=function(e){return function(t,n,r){var o,i=iU(t),a=wW(i),u=JW(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}},eG={includes:QW(!0),indexOf:QW(!1)},tG={},nG=eG.indexOf,rG=zV([].push),oG=function(e,t){var n,r=iU(e),o=0,i=[];for(n in r)!TU(tG,n)&&TU(r,n)&&rG(i,n);for(;t.length>o;)TU(r,n=t[o++])&&(~nG(i,n)||rG(i,n));return i},iG=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],aG=Object.keys||function(e){return oG(e,iG)},uG=VV?Object.defineProperties:function(e,t){uW(e);for(var n,r=iU(t),o=aG(t),i=o.length,a=0;i>a;)cW.f(e,n=o[a++],r[n]);return e},sG=lU("document","documentElement"),lG=OU("keys"),cG=function(e){return lG[e]||(lG[e]=IU(e))},fG=cG("IE_PROTO"),dG=function(){},pG=function(e){return"<script>"+e+"<\/script>"},hG=function(e){e.write(pG("")),e.close();var t=e.parentWindow.Object;return e=null,t},gG=function(){try{qW=new ActiveXObject("htmlfile")}catch(r){}var e,t;gG="undefined"!=typeof document?document.domain&&qW?hG(qW):((t=GU("iframe")).style.display="none",sG.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(pG("document.F=Object")),e.close(),e.F):hG(qW);for(var n=iG.length;n--;)delete gG.prototype[iG[n]];return gG()};tG[fG]=!0;var vG,yG,mG,bG=Object.create||function(e,t){var n;return null!==e?(dG.prototype=uW(e),n=new dG,dG.prototype=null,n[fG]=e):n=gG(),void 0===t?n:uG(n,t)},wG=iG.concat("length","prototype"),EG={f:Object.getOwnPropertyNames||function(e){return oG(e,wG)}},xG=FV.Array,DG=Math.max,CG=EG.f,SG="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],AG={f:function(e){return SG&&"Window"==QV(e)?function(e){try{return CG(e)}catch(t){return function(e,t,n){for(var r=wW(e),o=JW(void 0,r),i=JW(r,r),a=xG(DG(i-o,0)),u=0;o<i;o++,u++)EW(a,u,e[o]);return a.length=u,a}(SG)}}(e):CG(iU(e))}},OG={f:Object.getOwnPropertySymbols},kG=zV([].slice),BG=function(e,t,n,r){r&&r.enumerable?e[t]=n:fW(e,t,n)},FG={f:zU},TG=cW.f,_G=function(e){var t=uU.Symbol||(uU.Symbol={});TU(t,e)||TG(t,e,{value:FG.f(e)})},PG=DW?{}.toString:function(){return"[object "+OW(this)+"]"},jG=cW.f,IG=zU("toStringTag"),NG=function(e,t,n,r){if(e){var o=n?e:e.prototype;TU(o,IG)||jG(o,IG,{configurable:!0,value:t}),r&&!DW&&fW(o,"toString",PG)}},LG=FV.WeakMap,RG=$V(LG)&&/native code/.test(BW(LG)),MG=FV.TypeError,zG=FV.WeakMap;if(RG||AU.state){var $G=AU.state||(AU.state=new zG),HG=zV($G.get),VG=zV($G.has),UG=zV($G.set);vG=function(e,t){if(VG($G,e))throw new MG("Object already initialized");return t.facade=e,UG($G,e,t),t},yG=function(e){return HG($G,e)||{}},mG=function(e){return VG($G,e)}}else{var WG=cG("state");tG[WG]=!0,vG=function(e,t){if(TU(e,WG))throw new MG("Object already initialized");return t.facade=e,fW(e,WG,t),t},yG=function(e){return TU(e,WG)?e[WG]:{}},mG=function(e){return TU(e,WG)}}var GG={set:vG,get:yG,has:mG,enforce:function(e){return mG(e)?yG(e):vG(e,{})},getterFor:function(e){return function(t){var n;if(!aU(t)||(n=yG(t)).type!==e)throw MG("Incompatible receiver, "+e+" required");return n}}},qG=zV([].push),KG=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=BU(s),g=nU(h),v=oW(l,c),y=wW(g),m=0,b=f||zW,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:qG(w,d)}else switch(e){case 4:return!1;case 7:qG(w,d)}return i?-1:r||o?o:w}},XG=[KG(0),KG(1),KG(2),KG(3),KG(4),KG(5),KG(6),KG(7)][0],YG=cG("hidden"),ZG=zU("toPrimitive"),JG=GG.set,QG=GG.getterFor("Symbol"),eq=Object.prototype,tq=FV.Symbol,nq=tq&&tq.prototype,rq=FV.TypeError,oq=FV.QObject,iq=lU("JSON","stringify"),aq=XU.f,uq=cW.f,sq=AG.f,lq=XV.f,cq=zV([].push),fq=OU("symbols"),dq=OU("op-symbols"),pq=OU("string-to-symbol-registry"),hq=OU("symbol-to-string-registry"),gq=OU("wks"),vq=!oq||!oq.prototype||!oq.prototype.findChild,yq=VV&&HV((function(){return 7!=bG(uq({},"a",{get:function(){return uq(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=aq(eq,t);r&&delete eq[t],uq(e,t,n),r&&e!==eq&&uq(eq,t,r)}:uq,mq=function(e,t){var n=fq[e]=bG(nq);return JG(n,{type:"Symbol",tag:e,description:t}),VV||(n.description=t),n},bq=function(e,t,n){e===eq&&bq(dq,t,n),uW(e);var r=VU(t);return uW(n),TU(fq,r)?(n.enumerable?(TU(e,YG)&&e[YG][r]&&(e[YG][r]=!1),n=bG(n,{enumerable:YV(0,!1)})):(TU(e,YG)||uq(e,YG,YV(1,{})),e[YG][r]=!0),yq(e,r,n)):uq(e,r,n)},wq=function(e,t){uW(e);var n=iU(t),r=aG(n).concat(Cq(n));return XG(r,(function(t){VV&&!WV(Eq,n,t)||bq(e,t,n[t])})),e},Eq=function(e){var t=VU(e),n=WV(lq,this,t);return!(this===eq&&TU(fq,t)&&!TU(dq,t))&&(!(n||!TU(this,t)||!TU(fq,t)||TU(this,YG)&&this[YG][t])||n)},xq=function(e,t){var n=iU(e),r=VU(t);if(n!==eq||!TU(fq,r)||TU(dq,r)){var o=aq(n,r);return!o||!TU(fq,r)||TU(n,YG)&&n[YG][r]||(o.enumerable=!0),o}},Dq=function(e){var t=sq(iU(e)),n=[];return XG(t,(function(e){TU(fq,e)||TU(tG,e)||cq(n,e)})),n},Cq=function(e){var t=e===eq,n=sq(t?dq:iU(e)),r=[];return XG(n,(function(e){!TU(fq,e)||t&&!TU(eq,e)||cq(r,fq[e])})),r};if(yU||(nq=(tq=function(){if(cU(nq,this))throw rq("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?XW(arguments[0]):void 0,t=IU(e),n=function(e){this===eq&&WV(n,dq,e),TU(this,YG)&&TU(this[YG],t)&&(this[YG][t]=!1),yq(this,t,YV(1,e))};return VV&&vq&&yq(eq,t,{configurable:!0,set:n}),mq(t,e)}).prototype,BG(nq,"toString",(function(){return QG(this).tag})),BG(tq,"withoutSetter",(function(e){return mq(IU(e),e)})),XV.f=Eq,cW.f=bq,XU.f=xq,EG.f=AG.f=Dq,OG.f=Cq,FG.f=function(e){return mq(zU(e),e)},VV&&uq(nq,"description",{configurable:!0,get:function(){return QG(this).description}})),hW({global:!0,wrap:!0,forced:!yU,sham:!yU},{Symbol:tq}),XG(aG(gq),(function(e){_G(e)})),hW({target:"Symbol",stat:!0,forced:!yU},{for:function(e){var t=XW(e);if(TU(pq,t))return pq[t];var n=tq(t);return pq[t]=n,hq[n]=t,n},keyFor:function(e){if(!wU(e))throw rq(e+" is not a symbol");if(TU(hq,e))return hq[e]},useSetter:function(){vq=!0},useSimple:function(){vq=!1}}),hW({target:"Object",stat:!0,forced:!yU,sham:!VV},{create:function(e,t){return void 0===t?bG(e):wq(bG(e),t)},defineProperty:bq,defineProperties:wq,getOwnPropertyDescriptor:xq}),hW({target:"Object",stat:!0,forced:!yU},{getOwnPropertyNames:Dq,getOwnPropertySymbols:Cq}),hW({target:"Object",stat:!0,forced:HV((function(){OG.f(1)}))},{getOwnPropertySymbols:function(e){return OG.f(BU(e))}}),iq){var Sq=!yU||HV((function(){var e=tq();return"[null]"!=iq([e])||"{}"!=iq({a:e})||"{}"!=iq(Object(e))}));hW({target:"JSON",stat:!0,forced:Sq},{stringify:function(e,t,n){var r=kG(arguments),o=t;if((aU(t)||void 0!==e)&&!wU(e))return gW(t)||(t=function(e,t){if($V(o)&&(t=WV(o,this,e,t)),!wU(t))return t}),r[1]=t,IV(iq,null,r)}})}if(!nq[ZG]){var Aq=nq.valueOf;BG(nq,ZG,(function(e){return WV(Aq,this)}))}NG(tq,"Symbol"),tG[YG]=!0,_G("asyncIterator"),_G("hasInstance"),_G("isConcatSpreadable"),_G("iterator"),_G("match"),_G("matchAll"),_G("replace"),_G("search"),_G("species"),_G("split"),_G("toPrimitive"),_G("toStringTag"),_G("unscopables"),NG(FV.JSON,"JSON",!0);var Oq,kq,Bq,Fq=uU.Symbol,Tq={},_q=Function.prototype,Pq=VV&&Object.getOwnPropertyDescriptor,jq=TU(_q,"name"),Iq={EXISTS:jq,PROPER:jq&&"something"===function(){}.name,CONFIGURABLE:jq&&(!VV||VV&&Pq(_q,"name").configurable)},Nq=!HV((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Lq=cG("IE_PROTO"),Rq=FV.Object,Mq=Rq.prototype,zq=Nq?Rq.getPrototypeOf:function(e){var t=BU(e);if(TU(t,Lq))return t[Lq];var n=t.constructor;return $V(n)&&t instanceof n?n.prototype:t instanceof Rq?Mq:null},$q=zU("iterator"),Hq=!1;[].keys&&("next"in(Bq=[].keys())?(kq=zq(zq(Bq)))!==Object.prototype&&(Oq=kq):Hq=!0);var Vq=null==Oq||HV((function(){var e={};return Oq[$q].call(e)!==e}));Oq=Vq?{}:bG(Oq),$V(Oq[$q])||BG(Oq,$q,(function(){return this}));var Uq={IteratorPrototype:Oq,BUGGY_SAFARI_ITERATORS:Hq},Wq=Uq.IteratorPrototype,Gq=function(){return this};FV.String,FV.TypeError,Object.setPrototypeOf||"__proto__"in{}&&function(){var e={};try{zV(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set)(e,[])}catch(t){}}();var qq=Iq.PROPER,Kq=Uq.BUGGY_SAFARI_ITERATORS,Xq=zU("iterator"),Yq=function(){return this},Zq=function(e,t,n,r,o,i,a){var u,s,l;s=r,l=t+" Iterator",(u=n).prototype=bG(Wq,{next:YV(1,s)}),NG(u,l,!1,!0),Tq[l]=Gq;var c,f,d,p=function(e){if(e===o&&m)return m;if(!Kq&&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[Xq]||v["@@iterator"]||o&&v[o],m=!Kq&&y||p(o),b="Array"==t&&v.entries||y;if(b&&(c=zq(b.call(new e)))!==Object.prototype&&c.next&&(NG(c,h,!0,!0),Tq[h]=Yq),qq&&"values"==o&&y&&"values"!==y.name&&(g=!0,m=function(){return WV(y,this)}),o)if(f={values:p("values"),keys:i?m:p("keys"),entries:p("entries")},a)for(d in f)(Kq||g||!(d in v))&&BG(v,d,f[d]);else hW({target:t,proto:!0,forced:Kq||g},f);return a&&v[Xq]!==m&&BG(v,Xq,m,{name:o}),Tq[t]=m,f},Jq=GG.set,Qq=GG.getterFor("Array Iterator");Zq(Array,"Array",(function(e,t){Jq(this,{type:"Array Iterator",target:iU(e),index:0,kind:t})}),(function(){var e=Qq(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"),Tq.Arguments=Tq.Array;var eK=zU("toStringTag");for(var tK 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 nK=FV[tK],rK=nK&&nK.prototype;rK&&OW(rK)!==eK&&fW(rK,eK,tK),Tq[tK]=Tq.Array}var oK=Fq;_G("asyncDispose"),_G("dispose"),_G("matcher"),_G("metadata"),_G("observable"),_G("patternMatch"),_G("replaceAll");var iK=oK,aK=zV("".charAt),uK=zV("".charCodeAt),sK=zV("".slice),lK=function(e){return function(t,n){var r,o,i=XW(oU(t)),a=mW(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=uK(i,a))<55296||r>56319||a+1===u||(o=uK(i,a+1))<56320||o>57343?e?aK(i,a):r:e?sK(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0),cK=GG.set,fK=GG.getterFor("String Iterator");Zq(String,"String",(function(e){cK(this,{type:"String Iterator",string:XW(e),index:0})}),(function(){var e,t=fK(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=lK(n,r),t.index+=e.length,{value:e,done:!1})}));var dK=FG.f("iterator"),pK=EI((function(e){function t(n){return"function"==typeof iK&&"symbol"==typeof dK?(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 iK&&e.constructor===iK&&e!==iK.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})),hK=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(pK),gK=vL.EXISTS,vK=qN.f,yK=Function.prototype,mK=MI(yK.toString),bK=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,wK=MI(bK.exec);OI&&!gK&&vK(yK,"name",{configurable:!0,get:function(){try{return wK(bK,mK(this))[1]}catch(hf){return""}}});var EK=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=dp.marks(e);return n&&n[t]?n[t]:""},e.prototype.isDisabled=function(e){return null==e.selection||(this.mark,!!yz(dp.nodes(e,{match:function(t){return"pre"===dB.getNodeType(t)||!!dp.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}(),xK=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Jj("fontSize.title"),t.iconSvg=qz,t.mark="fontSize",t}return dz(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontSizeList,r=void 0===n?[]:n;t.push({text:Jj("fontSize.default"),value:""}),r.forEach((function(e){if("string"==typeof e)t.push({text:e,value:e});else if("object"===hK(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}(EK),DK=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Jj("fontFamily.title"),t.iconSvg=Kz,t.mark="fontFamily",t.selectPanelWidth=150,t}return dz(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontFamilyList,r=void 0===n?[]:n;t.push({text:Jj("fontFamily.default"),value:""}),r.forEach((function(e){if("string"==typeof e)t.push({text:e,value:e,styleForRenderMenuList:{"font-family":e}});else if("object"===hK(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}(EK),CK={renderStyle:function(e,t){var n=e,r=n.fontSize,o=n.fontFamily,i=t;return r&&rH(i,{fontSize:r}),o&&rH(i,{fontFamily:o}),i},styleToHtml:function(e,t){if(!Np.isText(e))return t;var n,r=e,o=r.fontSize,i=r.fontFamily;return o||i?((az(t)||"span"!==sz(n=gg(t)))&&(n=gg("<span>"+t+"</span>")),o&&n.css("font-size",o),i&&n.css("font-family",i),uz(n)):t},preParseHtml:[SV],parseStyleHtml:function(e,t,n){var r=gg(e);if(!Np.isText(t))return t;var o=t,i=n.getMenuConfig("fontSize").fontSizeList,a=void 0===i?[]:i,u=lz(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=lz(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 xK},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 DK},config:{fontFamilyList:["黑体",{name:"仿宋",value:"仿宋"},"楷体","标楷体","华文仿宋","华文楷体",{name:"宋体",value:"宋体"},"微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},SK={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(e){var t=gg(e),n=lz(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]}},AK=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){var t=yz(dp.nodes(e,{match:function(e){return!!e.indent},universal:!0}),1)[0];return null==t?"":yz(t,1)[0].indent||""},e.prototype.isActive=function(e){return!1},e.prototype.getMatchNode=function(e){var t=yz(dp.nodes(e,{match:function(e){var t=dB.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e}(),OK=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Jj("indent.decrease"),t.iconSvg=Xz,t}return dz(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return null==t||!t.indent},t.prototype.exec=function(e,t){eh.setNodes(e,{indent:null},{match:function(e){return ap.isElement(e)}})},t}(AK),kK=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Jj("indent.increase"),t.iconSvg=Yz,t}return dz(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return null==t||!!t.indent},t.prototype.exec=function(e,t){eh.setNodes(e,{indent:"2em"},{match:function(e){return ap.isElement(e)},mode:"highest"})},t}(AK),BK={renderStyle:function(e,t){if(!ap.isElement(e))return t;var n=e.indent,r=t;return n&&rH(r,{textIndent:n}),r},styleToHtml:function(e,t){if(!ap.isElement(e))return t;var n=e.indent;if(!n)return t;var r=gg(t);return r.css("text-indent",n),uz(r)},preParseHtml:[SK],parseStyleHtml:function(e,t,n){var r=gg(e);if(!ap.isElement(t))return t;var o=t,i=lz(r,"text-indent"),a=parseInt(i,10);return i&&a>0&&(o.indent=i),o},menus:[{key:"indent",factory:function(){return new kK}},{key:"delIndent",factory:function(){return new OK}}]},FK=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=yz(dp.nodes(e,{match:function(e){var t=dB.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||!!dB.getSelectedElems(e).some((function(t){if(dp.isVoid(e,t)&&dp.isBlock(e,t))return!0;var n=t.type;return!!["pre","code"].includes(n)||void 0}))},e}(),TK=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Jj("justify.left"),t.iconSvg=Zz,t}return dz(t,e),t.prototype.exec=function(e,t){eh.setNodes(e,{textAlign:"left"},{match:function(t){return ap.isElement(t)&&!e.isInline(t)}})},t}(FK),_K=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Jj("justify.right"),t.iconSvg=Jz,t}return dz(t,e),t.prototype.exec=function(e,t){eh.setNodes(e,{textAlign:"right"},{match:function(t){return ap.isElement(t)&&!e.isInline(t)}})},t}(FK),PK=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Jj("justify.center"),t.iconSvg=Qz,t}return dz(t,e),t.prototype.exec=function(e,t){eh.setNodes(e,{textAlign:"center"},{match:function(t){return ap.isElement(t)&&!e.isInline(t)}})},t}(FK),jK=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Jj("justify.justify"),t.iconSvg=e$,t}return dz(t,e),t.prototype.exec=function(e,t){eh.setNodes(e,{textAlign:"justify"},{match:function(t){return ap.isElement(t)&&!e.isInline(t)}})},t}(FK),IK={renderStyle:function(e,t){if(!ap.isElement(e))return t;var n=e.textAlign,r=t;return n&&rH(r,{textAlign:n}),r},styleToHtml:function(e,t){if(!ap.isElement(e))return t;var n=e.textAlign;if(!n)return t;var r=gg(t);return r.css("text-align",n),uz(r)},parseStyleHtml:function(e,t,n){var r=gg(e);if(!ap.isElement(t))return t;var o=t,i=lz(r,"text-align");return i&&(o.textAlign=i),o},menus:[{key:"justifyLeft",factory:function(){return new TK}},{key:"justifyRight",factory:function(){return new _K}},{key:"justifyCenter",factory:function(){return new PK}},{key:"justifyJustify",factory:function(){return new jK}}]},NK=function(){function e(){this.title=Jj("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:Jj("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=yz(dp.nodes(e,{match:function(e){var t=dB.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?"":ap.isElement(t)&&t.lineHeight||""},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getMatchNode(e)},e.prototype.exec=function(e,t){eh.setNodes(e,{lineHeight:t.toString()},{mode:"highest"})},e}(),LK={renderStyle:function(e,t){if(!ap.isElement(e))return t;var n=e.lineHeight,r=t;return n&&rH(r,{lineHeight:n}),r},styleToHtml:function(e,t){if(!ap.isElement(e))return t;var n=e.lineHeight;if(!n)return t;var r=gg(t);return r.css("line-height",n),uz(r)},parseStyleHtml:function(e,t,n){var r=gg(e);if(!ap.isElement(t))return t;var o=t,i=n.getMenuConfig("lineHeight").lineHeightList,a=void 0===i?[]:i,u=lz(r,"line-height");return u&&a.includes(u)&&(o.lineHeight=u),o},menus:[{key:"lineHeight",factory:function(){return new NK},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},RK=function(){function e(){this.title=Jj("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}(),MK=function(){function e(){this.title=Jj("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}(),zK={menus:[{key:"redo",factory:function(){return new RK}},{key:"undo",factory:function(){return new MK}}]},$K={type:"divider",renderElem:function(e,t,n){return Rv("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:dB.isNodeSelected(n,e)?"true":""},style:{},on:{mousedown:function(e){return e.preventDefault()}}},[Rv("hr")])}},HK=function(){function e(){this.title=Jj("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||!!dB.getSelectedElems(e).some((function(t){if(e.isVoid(t))return!0;var n=dB.getNodeType(t);return"table"===n||"pre"===n||void 0}))},e.prototype.exec=function(e,t){eh.insertNodes(e,{type:"divider",children:[{text:""}]},{mode:"highest"})},e}(),VK={renderElems:[$K],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 HK}}],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=yz(e,2),o=t[0],i=t[1];if("divider"!==dB.getNodeType(o))return n([o,i]);dB.isLastNode(r,o)&&eh.insertNodes(r,dB.genEmptyParagraph(),{at:[i[0]+1]})},r}},UK=gR.map;qL({target:"Array",proto:!0,forced:!yR("map")},{map:function(e){return UK(this,e,arguments.length>1?arguments[1]:void 0)}});var WK=MI([].join),GK=WI!=Object,qK=Fz("join",",");qL({target:"Array",proto:!0,forced:GK||!qK},{join:function(e){return WK(KI(this),void 0===e?",":e)}});var KK=function(){function e(){this.title=Jj("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=dB.getSelectedNodeByType(e,"code");if(null==t)return null;var n=dB.getParentNode(e,t);return null==n||"pre"!==dB.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=dB.getSelectedElems(e);return!!t.some((function(t){return e.isVoid(t)}))||!t.some((function(e){var t=dB.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=yp.string(t);eh.removeNodes(e,{mode:"highest"});var r=n.split("\n").map((function(e){return{type:"paragraph",children:[{text:e}]}}));eh.insertNodes(e,r,{mode:"highest"})}},e.prototype.changeToCodeBlock=function(e,t){var n,r,o=[],i=dp.nodes(e,{match:function(t){return e.children.includes(t)},universal:!0});try{for(var a=vz(i),u=a.next();!u.done;u=a.next()){var s=yz(u.value,1)[0];s&&o.push(yp.string(s))}}catch(c){n={error:c}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}eh.removeNodes(e,{mode:"highest"});var l={type:"pre",children:[{type:"code",language:t,children:[{text:o.join("\n")}]}]};eh.insertNodes(e,l,{mode:"highest"})},e}(),XK={key:"codeBlock",factory:function(){return new KK}};qL({target:"String",proto:!0,forced:Dz("anchor")},{anchor:function(e){return xz(this,"a","name",e)}}),sM("match",(function(e,t,n){return[function(t){var n=qI(this),r=null==t?void 0:hN(t,e);return r?BI(r,t,n):new RegExp(t)[e](xR(n))},function(e){var r=UN(this),o=xR(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return xM(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],l=0;null!==(u=xM(r,o));){var c=xR(u[0]);s[l]=c,""===c&&(r.lastIndex=pM(o,SL(r.lastIndex),a)),l++}return 0===l?null:s}]}));var YK={selector:"pre:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=gg(e);return 0===(t=t.filter((function(e){return"code"===dB.getNodeType(e)}))).length&&(t=[{type:"code",language:"",children:[{text:r[0].textContent||""}]}]),{type:"pre",children:t.filter((function(e){return"code"===dB.getNodeType(e)}))}}},ZK={menus:[XK],editorPlugin:function(e){var t=e.insertBreak,n=e.normalizeNode,r=e.insertData;e.insertNode;var o=e;return o.insertBreak=function(){var e=dB.getSelectedNodeByType(o,"code");if(null!=e){var n=function(e,t){var n=t.selection;if(null==n)return"";var r=yp.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=yz(e,2),r=t[0],i=t[1],a=dB.getNodeType(r);return"code"===a&&i.length<=1&&eh.setNodes(o,{type:"paragraph"},{at:i}),"pre"===a&&(dB.isLastNode(o,r)&&eh.insertNodes(o,dB.genEmptyParagraph(),{at:[i[0]+1]}),"code"!==dB.getNodeType(r.children[0])&&(eh.unwrapNodes(o),eh.setNodes(o,{type:"paragraph"},{mode:"highest"}))),n([r,i])},o.insertData=function(e){if(null!=dB.getSelectedNodeByType(o,"code")){var t=e.getData("text/plain");dp.insertText(o,t)}else r(e)},o},renderElems:[{type:"pre",renderElem:function(e,t,n){return oy("pre",null,t)}},{type:"code",renderElem:function(e,t,n){return oy("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=gg(e);if("code"!==sz(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:gg(e)[0].textContent||""}]}}},YK]},JK=function(){function e(){this.title=Jj("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}(),QK={menus:[{key:"fullScreen",factory:function(){return new JK}}]},eX=function(){function e(){this.title=Jj("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||!!Bp.isExpanded(t)},e.prototype.exec=function(e,t){var n=e.selection;if(null!=n){var r=[n.anchor.path[0]];eh.insertNodes(e,{type:"paragraph",children:[{text:""}]},{at:r}),e.select(dp.start(e,r))}},e}(),tX=[f$,lH,CK,BK,IK,LK,uV,VK,DV,FH,ZK,EV,J$,bz,fV,zK,QK,{menus:[{key:"enter",factory:function(){return new eX}}]}];Zj("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),Zj("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var nX="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function rX(e){var t={exports:{}};return e(t,t.exports),t.exports}var oX,iX,aX=function(e){return e&&e.Math==Math&&e},uX=aX("object"==typeof globalThis&&globalThis)||aX("object"==typeof window&&window)||aX("object"==typeof self&&self)||aX("object"==typeof nX&&nX)||function(){return this}()||Function("return this")(),sX=Function.prototype,lX=sX.bind,cX=sX.call,fX=lX&&lX.bind(cX),dX=lX?function(e){return e&&fX(cX,e)}:function(e){return e&&function(){return cX.apply(e,arguments)}},pX=function(e){try{return!!e()}catch(t){return!0}},hX=dX({}.toString),gX=dX("".slice),vX=function(e){return gX(hX(e),8,-1)},yX=uX.Object,mX=dX("".split),bX=pX((function(){return!yX("z").propertyIsEnumerable(0)}))?function(e){return"String"==vX(e)?mX(e,""):yX(e)}:yX,wX=uX.TypeError,EX=function(e){if(null==e)throw wX("Can't call method on "+e);return e},xX=function(e){return bX(EX(e))},DX=Object.defineProperty,CX=function(e,t){try{DX(uX,e,{value:t,configurable:!0,writable:!0})}catch(eI){uX[e]=t}return t},SX=uX["__core-js_shared__"]||CX("__core-js_shared__",{}),AX=rX((function(e){(e.exports=function(e,t){return SX[e]||(SX[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),OX=uX.Object,kX=function(e){return OX(EX(e))},BX=dX({}.hasOwnProperty),FX=Object.hasOwn||function(e,t){return BX(kX(e),t)},TX=0,_X=Math.random(),PX=dX(1..toString),jX=function(e){return"Symbol("+(void 0===e?"":e)+")_"+PX(++TX+_X,36)},IX=function(e){return"function"==typeof e},NX=function(e){return IX(e)?e:void 0},LX=function(e,t){return arguments.length<2?NX(uX[e]):uX[e]&&uX[e][t]},RX=LX("navigator","userAgent")||"",MX=uX.process,zX=uX.Deno,$X=MX&&MX.versions||zX&&zX.version,HX=$X&&$X.v8;HX&&(iX=(oX=HX.split("."))[0]>0&&oX[0]<4?1:+(oX[0]+oX[1])),!iX&&RX&&(!(oX=RX.match(/Edge\/(\d+)/))||oX[1]>=74)&&(oX=RX.match(/Chrome\/(\d+)/))&&(iX=+oX[1]);var VX,UX=iX,WX=!!Object.getOwnPropertySymbols&&!pX((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&UX&&UX<41})),GX=WX&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,qX=AX("wks"),KX=uX.Symbol,XX=KX&&KX.for,YX=GX?KX:KX&&KX.withoutSetter||jX,ZX=function(e){if(!FX(qX,e)||!WX&&"string"!=typeof qX[e]){var t="Symbol."+e;WX&&FX(KX,e)?qX[e]=KX[e]:qX[e]=GX&&XX?XX(t):YX(t)}return qX[e]},JX=function(e){return"object"==typeof e?null!==e:IX(e)},QX=uX.String,eY=uX.TypeError,tY=function(e){if(JX(e))return e;throw eY(QX(e)+" is not an object")},nY=!pX((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),rY=uX.document,oY=JX(rY)&&JX(rY.createElement),iY=function(e){return oY?rY.createElement(e):{}},aY=!nY&&!pX((function(){return 7!=Object.defineProperty(iY("div"),"a",{get:function(){return 7}}).a})),uY=Function.prototype.call,sY=uY.bind?uY.bind(uY):function(){return uY.apply(uY,arguments)},lY=dX({}.isPrototypeOf),cY=uX.Object,fY=GX?function(e){return"symbol"==typeof e}:function(e){var t=LX("Symbol");return IX(t)&&lY(t.prototype,cY(e))},dY=uX.String,pY=function(e){try{return dY(e)}catch(t){return"Object"}},hY=uX.TypeError,gY=function(e){if(IX(e))return e;throw hY(pY(e)+" is not a function")},vY=function(e,t){var n=e[t];return null==n?void 0:gY(n)},yY=uX.TypeError,mY=uX.TypeError,bY=ZX("toPrimitive"),wY=function(e){var t=function(e,t){if(!JX(e)||fY(e))return e;var n,r=vY(e,bY);if(r){if(void 0===t&&(t="default"),n=sY(r,e,t),!JX(n)||fY(n))return n;throw mY("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&IX(n=e.toString)&&!JX(r=sY(n,e)))return r;if(IX(n=e.valueOf)&&!JX(r=sY(n,e)))return r;if("string"!==t&&IX(n=e.toString)&&!JX(r=sY(n,e)))return r;throw yY("Can't convert object to primitive value")}(e,t)}(e,"string");return fY(t)?t:t+""},EY=uX.TypeError,xY=Object.defineProperty,DY={f:nY?xY:function(e,t,n){if(tY(e),t=wY(t),tY(n),aY)try{return xY(e,t,n)}catch(r){}if("get"in n||"set"in n)throw EY("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},CY=Math.ceil,SY=Math.floor,AY=function(e){var t=+e;return t!=t||0===t?0:(t>0?SY:CY)(t)},OY=Math.max,kY=Math.min,BY=function(e,t){var n=AY(e);return n<0?OY(n+t,0):kY(n,t)},FY=Math.min,TY=function(e){return e>0?FY(AY(e),9007199254740991):0},_Y=function(e){return TY(e.length)},PY=function(e){return function(t,n,r){var o,i=xX(t),a=_Y(i),u=BY(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}},jY={includes:PY(!0),indexOf:PY(!1)},IY={},NY=jY.indexOf,LY=dX([].push),RY=function(e,t){var n,r=xX(e),o=0,i=[];for(n in r)!FX(IY,n)&&FX(r,n)&&LY(i,n);for(;t.length>o;)FX(r,n=t[o++])&&(~NY(i,n)||LY(i,n));return i},MY=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],zY=Object.keys||function(e){return RY(e,MY)},$Y=nY?Object.defineProperties:function(e,t){tY(e);for(var n,r=xX(t),o=zY(t),i=o.length,a=0;i>a;)DY.f(e,n=o[a++],r[n]);return e},HY=LX("document","documentElement"),VY=AX("keys"),UY=function(e){return VY[e]||(VY[e]=jX(e))},WY=UY("IE_PROTO"),GY=function(){},qY=function(e){return"<script>"+e+"<\/script>"},KY=function(e){e.write(qY("")),e.close();var t=e.parentWindow.Object;return e=null,t},XY=function(){try{VX=new ActiveXObject("htmlfile")}catch(r){}var e,t;XY="undefined"!=typeof document?document.domain&&VX?KY(VX):((t=iY("iframe")).style.display="none",HY.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(qY("document.F=Object")),e.close(),e.F):KY(VX);for(var n=MY.length;n--;)delete XY.prototype[MY[n]];return XY()};IY[WY]=!0;var YY=Object.create||function(e,t){var n;return null!==e?(GY.prototype=tY(e),n=new GY,GY.prototype=null,n[WY]=e):n=XY(),void 0===t?n:$Y(n,t)},ZY=ZX("unscopables"),JY=Array.prototype;null==JY[ZY]&&DY.f(JY,ZY,{configurable:!0,value:YY(null)});var QY=function(e){JY[ZY][e]=!0},eZ={},tZ=dX(Function.toString);IX(SX.inspectSource)||(SX.inspectSource=function(e){return tZ(e)});var nZ,rZ,oZ,iZ=SX.inspectSource,aZ=uX.WeakMap,uZ=IX(aZ)&&/native code/.test(iZ(aZ)),sZ=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},lZ=nY?function(e,t,n){return DY.f(e,t,sZ(1,n))}:function(e,t,n){return e[t]=n,e},cZ=uX.TypeError,fZ=uX.WeakMap;if(uZ||SX.state){var dZ=SX.state||(SX.state=new fZ),pZ=dX(dZ.get),hZ=dX(dZ.has),gZ=dX(dZ.set);nZ=function(e,t){if(hZ(dZ,e))throw new cZ("Object already initialized");return t.facade=e,gZ(dZ,e,t),t},rZ=function(e){return pZ(dZ,e)||{}},oZ=function(e){return hZ(dZ,e)}}else{var vZ=UY("state");IY[vZ]=!0,nZ=function(e,t){if(FX(e,vZ))throw new cZ("Object already initialized");return t.facade=e,lZ(e,vZ,t),t},rZ=function(e){return FX(e,vZ)?e[vZ]:{}},oZ=function(e){return FX(e,vZ)}}var yZ,mZ,bZ,wZ={set:nZ,get:rZ,has:oZ,enforce:function(e){return oZ(e)?rZ(e):nZ(e,{})},getterFor:function(e){return function(t){var n;if(!JX(t)||(n=rZ(t)).type!==e)throw cZ("Incompatible receiver, "+e+" required");return n}}},EZ={}.propertyIsEnumerable,xZ=Object.getOwnPropertyDescriptor,DZ={f:xZ&&!EZ.call({1:2},1)?function(e){var t=xZ(this,e);return!!t&&t.enumerable}:EZ},CZ=Object.getOwnPropertyDescriptor,SZ={f:nY?CZ:function(e,t){if(e=xX(e),t=wY(t),aY)try{return CZ(e,t)}catch(n){}if(FX(e,t))return sZ(!sY(DZ.f,e,t),e[t])}},AZ=Function.prototype,OZ=nY&&Object.getOwnPropertyDescriptor,kZ=FX(AZ,"name"),BZ={EXISTS:kZ,PROPER:kZ&&"something"===function(){}.name,CONFIGURABLE:kZ&&(!nY||nY&&OZ(AZ,"name").configurable)},FZ=rX((function(e){var t=BZ.CONFIGURABLE,n=wZ.get,r=wZ.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;IX(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!FX(i,"name")||t&&i.name!==f)&&lZ(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==uX?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:lZ(e,n,i)):l?e[n]=i:CX(n,i)})(Function.prototype,"toString",(function(){return IX(this)&&n(this).source||iZ(this)}))})),TZ=MY.concat("length","prototype"),_Z={f:Object.getOwnPropertyNames||function(e){return RY(e,TZ)}},PZ={f:Object.getOwnPropertySymbols},jZ=dX([].concat),IZ=LX("Reflect","ownKeys")||function(e){var t=_Z.f(tY(e)),n=PZ.f;return n?jZ(t,n(e)):t},NZ=function(e,t){for(var n=IZ(t),r=DY.f,o=SZ.f,i=0;i<n.length;i++){var a=n[i];FX(e,a)||r(e,a,o(t,a))}},LZ=/#|\.prototype\./,RZ=function(e,t){var n=zZ[MZ(e)];return n==HZ||n!=$Z&&(IX(t)?pX(t):!!t)},MZ=RZ.normalize=function(e){return String(e).replace(LZ,".").toLowerCase()},zZ=RZ.data={},$Z=RZ.NATIVE="N",HZ=RZ.POLYFILL="P",VZ=RZ,UZ=SZ.f,WZ=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?uX:l?uX[u]||CX(u,{}):(uX[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=UZ(n,r))&&a.value:n[r],!VZ(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;NZ(i,o)}(e.sham||o&&o.sham)&&lZ(i,"sham",!0),FZ(n,r,i,e)}},GZ=!pX((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),qZ=UY("IE_PROTO"),KZ=uX.Object,XZ=KZ.prototype,YZ=GZ?KZ.getPrototypeOf:function(e){var t=kX(e);if(FX(t,qZ))return t[qZ];var n=t.constructor;return IX(n)&&t instanceof n?n.prototype:t instanceof KZ?XZ:null},ZZ=ZX("iterator"),JZ=!1;[].keys&&("next"in(bZ=[].keys())?(mZ=YZ(YZ(bZ)))!==Object.prototype&&(yZ=mZ):JZ=!0);var QZ=null==yZ||pX((function(){var e={};return yZ[ZZ].call(e)!==e}));QZ&&(yZ={}),IX(yZ[ZZ])||FZ(yZ,ZZ,(function(){return this}));var eJ={IteratorPrototype:yZ,BUGGY_SAFARI_ITERATORS:JZ},tJ=DY.f,nJ=ZX("toStringTag"),rJ=function(e,t,n){e&&!FX(e=n?e:e.prototype,nJ)&&tJ(e,nJ,{configurable:!0,value:t})},oJ=eJ.IteratorPrototype,iJ=function(){return this},aJ=uX.String,uJ=uX.TypeError,sJ=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=dX(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(n,r){return tY(n),function(e){if("object"==typeof e||IX(e))return e;throw uJ("Can't set "+aJ(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),lJ=BZ.PROPER,cJ=BZ.CONFIGURABLE,fJ=eJ.IteratorPrototype,dJ=eJ.BUGGY_SAFARI_ITERATORS,pJ=ZX("iterator"),hJ=function(){return this},gJ=function(e,t,n,r,o,i,a){var u,s,l;s=r,l=t+" Iterator",(u=n).prototype=YY(oJ,{next:sZ(1,s)}),rJ(u,l,!1),eZ[l]=iJ;var c,f,d,p=function(e){if(e===o&&m)return m;if(!dJ&&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[pJ]||v["@@iterator"]||o&&v[o],m=!dJ&&y||p(o),b="Array"==t&&v.entries||y;if(b&&(c=YZ(b.call(new e)))!==Object.prototype&&c.next&&(YZ(c)!==fJ&&(sJ?sJ(c,fJ):IX(c[pJ])||FZ(c,pJ,hJ)),rJ(c,h,!0)),lJ&&"values"==o&&y&&"values"!==y.name&&(cJ?lZ(v,"name","values"):(g=!0,m=function(){return sY(y,this)})),o)if(f={values:p("values"),keys:i?m:p("keys"),entries:p("entries")},a)for(d in f)(dJ||g||!(d in v))&&FZ(v,d,f[d]);else WZ({target:t,proto:!0,forced:dJ||g},f);return v[pJ]!==m&&FZ(v,pJ,m,{name:o}),eZ[t]=m,f},vJ=wZ.set,yJ=wZ.getterFor("Array Iterator"),mJ=gJ(Array,"Array",(function(e,t){vJ(this,{type:"Array Iterator",target:xX(e),index:0,kind:t})}),(function(){var e=yJ(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");eZ.Arguments=eZ.Array,QY("keys"),QY("values"),QY("entries");var bJ={};bJ[ZX("toStringTag")]="z";var wJ="[object z]"===String(bJ),EJ=ZX("toStringTag"),xJ=uX.Object,DJ="Arguments"==vX(function(){return arguments}()),CJ=wJ?vX: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=xJ(e),EJ))?n:DJ?vX(t):"Object"==(r=vX(t))&&IX(t.callee)?"Arguments":r},SJ=wJ?{}.toString:function(){return"[object "+CJ(this)+"]"};wJ||FZ(Object.prototype,"toString",SJ,{unsafe:!0});var AJ=uX.String,OJ=function(e){if("Symbol"===CJ(e))throw TypeError("Cannot convert a Symbol value to a string");return AJ(e)},kJ=dX("".charAt),BJ=dX("".charCodeAt),FJ=dX("".slice),TJ=function(e){return function(t,n){var r,o,i=OJ(EX(t)),a=AY(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=BJ(i,a))<55296||r>56319||a+1===u||(o=BJ(i,a+1))<56320||o>57343?e?kJ(i,a):r:e?FJ(i,a,a+2):o-56320+(r-55296<<10)+65536}},_J={codeAt:TJ(!1),charAt:TJ(!0)},PJ=_J.charAt,jJ=wZ.set,IJ=wZ.getterFor("String Iterator");gJ(String,"String",(function(e){jJ(this,{type:"String Iterator",string:OJ(e),index:0})}),(function(){var e,t=IJ(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=PJ(n,r),t.index+=e.length,{value:e,done:!1})}));var NJ=function(e,t,n){for(var r in t)FZ(e,r,t[r],n);return e},LJ=uX.Array,RJ=Math.max,MJ=_Z.f,zJ="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],$J={f:function(e){return zJ&&"Window"==vX(e)?function(e){try{return MJ(e)}catch(t){return function(e,t,n){for(var r,o,i,a,u=_Y(e),s=BY(void 0,u),l=BY(u,u),c=LJ(RJ(l-s,0)),f=0;s<l;s++,f++)r=c,o=f,i=e[s],(a=wY(o))in r?DY.f(r,a,sZ(0,i)):r[a]=i;return c.length=f,c}(zJ)}}(e):MJ(xX(e))}},HJ=pX((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),VJ=Object.isExtensible,UJ=pX((function(){VJ(1)}))||HJ?function(e){return!!JX(e)&&(!HJ||"ArrayBuffer"!=vX(e))&&(!VJ||VJ(e))}:VJ,WJ=!pX((function(){return Object.isExtensible(Object.preventExtensions({}))})),GJ=rX((function(e){var t=DY.f,n=!1,r=jX("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=_Z.f,t=dX([].splice),o={};o[r]=1,e(o).length&&(_Z.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},WZ({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:$J.f}))},fastKey:function(e,t){if(!JX(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!FX(e,r)){if(!UJ(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!FX(e,r)){if(!UJ(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return WJ&&n&&UJ(e)&&!FX(e,r)&&i(e),e}};IY[r]=!0})),qJ=dX(dX.bind),KJ=function(e,t){return gY(e),void 0===t?e:qJ?qJ(e,t):function(){return e.apply(t,arguments)}},XJ=ZX("iterator"),YJ=Array.prototype,ZJ=ZX("iterator"),JJ=function(e){if(null!=e)return vY(e,ZJ)||vY(e,"@@iterator")||eZ[CJ(e)]},QJ=uX.TypeError,eQ=function(e,t,n){var r,o;tY(e);try{if(!(r=vY(e,"return"))){if("throw"===t)throw n;return n}r=sY(r,e)}catch(i){o=!0,r=i}if("throw"===t)throw n;if(o)throw r;return tY(r),n},tQ=uX.TypeError,nQ=function(e,t){this.stopped=e,this.result=t},rQ=nQ.prototype,oQ=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=KJ(t,f),v=function(e){return r&&eQ(r,"normal",e),new nQ(!0,e)},y=function(e){return d?(tY(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=JJ(e)))throw tQ(pY(e)+" is not iterable");if(void 0!==(c=o)&&(eZ.Array===c||YJ[XJ]===c)){for(i=0,a=_Y(e);a>i;i++)if((u=y(e[i]))&&lY(rQ,u))return u;return new nQ(!1)}r=function(e,t){var n=arguments.length<2?JJ(e):t;if(gY(n))return tY(sY(n,e));throw QJ(pY(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=sY(s,r)).done;){try{u=y(l.value)}catch(m){eQ(r,"throw",m)}if("object"==typeof u&&u&&lY(rQ,u))return u}return new nQ(!1)},iQ=uX.TypeError,aQ=function(e,t){if(lY(t,e))return e;throw iQ("Incorrect invocation")},uQ=ZX("iterator"),sQ=!1;try{var lQ=0,cQ={next:function(){return{done:!!lQ++}},return:function(){sQ=!0}};cQ[uQ]=function(){return this},Array.from(cQ,(function(){throw 2}))}catch(Gme){}var fQ=Array.isArray||function(e){return"Array"==vX(e)},dQ=function(){},pQ=[],hQ=LX("Reflect","construct"),gQ=/^\s*(?:class|function)\b/,vQ=dX(gQ.exec),yQ=!gQ.exec(dQ),mQ=function(e){if(!IX(e))return!1;try{return hQ(dQ,pQ,e),!0}catch(t){return!1}},bQ=!hQ||pX((function(){var e;return mQ(mQ.call)||!mQ(Object)||!mQ((function(){e=!0}))||e}))?function(e){if(!IX(e))return!1;switch(CJ(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return yQ||!!vQ(gQ,iZ(e))}:mQ,wQ=ZX("species"),EQ=uX.Array,xQ=function(e,t){return new(fQ(n=e)&&(r=n.constructor,(bQ(r)&&(r===EQ||fQ(r.prototype))||JX(r)&&null===(r=r[wQ]))&&(r=void 0)),void 0===r?EQ:r)(0===t?0:t);var n,r},DQ=dX([].push),CQ=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=kX(s),g=bX(h),v=KJ(l,c),y=_Y(g),m=0,b=f||xQ,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:DQ(w,d)}else switch(e){case 4:return!1;case 7:DQ(w,d)}return i?-1:r||o?o:w}},SQ={forEach:CQ(0),map:CQ(1),filter:CQ(2),some:CQ(3),every:CQ(4),find:CQ(5),findIndex:CQ(6),filterReject:CQ(7)},AQ=GJ.getWeakData,OQ=wZ.set,kQ=wZ.getterFor,BQ=SQ.find,FQ=SQ.findIndex,TQ=dX([].splice),_Q=0,PQ=function(e){return e.frozen||(e.frozen=new jQ)},jQ=function(){this.entries=[]},IQ=function(e,t){return BQ(e.entries,(function(e){return e[0]===t}))};jQ.prototype={get:function(e){var t=IQ(this,e);if(t)return t[1]},has:function(e){return!!IQ(this,e)},set:function(e,t){var n=IQ(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=FQ(this.entries,(function(t){return t[0]===e}));return~t&&TQ(this.entries,t,1),!!~t}};var NQ,LQ={getConstructor:function(e,t,n,r){var o=e((function(e,o){aQ(e,i),OQ(e,{type:t,id:_Q++,frozen:void 0}),null!=o&&oQ(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=kQ(t),u=function(e,t,n){var r=a(e),o=AQ(tY(t),!0);return!0===o?PQ(r).set(t,n):o[r.id]=n,e};return NJ(i,{delete:function(e){var t=a(this);if(!JX(e))return!1;var n=AQ(e);return!0===n?PQ(t).delete(e):n&&FX(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!JX(e))return!1;var n=AQ(e);return!0===n?PQ(t).has(e):n&&FX(n,t.id)}}),NJ(i,n?{get:function(e){var t=a(this);if(JX(e)){var n=AQ(e);return!0===n?PQ(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}},RQ=wZ.enforce,MQ=!uX.ActiveXObject&&"ActiveXObject"in uX,zQ=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},$Q=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=uX[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=dX(u[e]);FZ(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!JX(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!JX(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!JX(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(VZ(e,!IX(a)||!(o||u.forEach&&!pX((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),GJ.enable();else if(VZ(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=pX((function(){f.has(1)})),h=function(e,t){if(!sQ)return!1;var n=!1;try{var r={};r[uQ]=function(){return{next:function(){return{done:n=!0}}}},new a(r)}catch(o){}return n}(),g=!o&&pX((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){aQ(e,u);var n,o,l,c,f,d=(n=new a,o=e,l=s,sJ&&IX(c=o.constructor)&&c!==l&&JX(f=c.prototype)&&f!==l.prototype&&sJ(n,f),n);return null!=t&&oQ(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,WZ({global:!0,forced:s!=a},l),rJ(s,e),o||n.setStrong(s,e,r),s}("WeakMap",zQ,LQ);if(uZ&&MQ){NQ=LQ.getConstructor(zQ,"WeakMap",!0),GJ.enable();var HQ=$Q.prototype,VQ=dX(HQ.delete),UQ=dX(HQ.has),WQ=dX(HQ.get),GQ=dX(HQ.set);NJ(HQ,{delete:function(e){if(JX(e)&&!UJ(e)){var t=RQ(this);return t.frozen||(t.frozen=new NQ),VQ(this,e)||t.frozen.delete(e)}return VQ(this,e)},has:function(e){if(JX(e)&&!UJ(e)){var t=RQ(this);return t.frozen||(t.frozen=new NQ),UQ(this,e)||t.frozen.has(e)}return UQ(this,e)},get:function(e){if(JX(e)&&!UJ(e)){var t=RQ(this);return t.frozen||(t.frozen=new NQ),UQ(this,e)?WQ(this,e):t.frozen.get(e)}return WQ(this,e)},set:function(e,t){if(JX(e)&&!UJ(e)){var n=RQ(this);n.frozen||(n.frozen=new NQ),UQ(this,e)?GQ(this,e,t):n.frozen.set(e,t)}else GQ(this,e,t);return this}})}var qQ={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},KQ=iY("span").classList,XQ=KQ&&KQ.constructor&&KQ.constructor.prototype,YQ=XQ===Object.prototype?void 0:XQ,ZQ=ZX("iterator"),JQ=ZX("toStringTag"),QQ=mJ.values,e0=function(e,t){if(e){if(e[ZQ]!==QQ)try{lZ(e,ZQ,QQ)}catch(r){e[ZQ]=QQ}if(e[JQ]||lZ(e,JQ,t),qQ[t])for(var n in mJ)if(e[n]!==mJ[n])try{lZ(e,n,mJ[n])}catch(r){e[n]=mJ[n]}}};for(var t0 in qQ)e0(uX[t0]&&uX[t0].prototype,t0);e0(YQ,"DOMTokenList");var n0=new WeakMap,r0={type:"list-item",renderElem:function(e,t,n){n0.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=dB.findPath(e,l);if(0===c[0])return 1;for(;c[0]>0;){var f=Ep.previous(c),d=dp.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 oy("div",{style:u},oy("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];Np.isText(i)&&(t=i)}return null==t?"":t.color||""}(e)},"data-w-e-reserve":!0},s),oy("span",null,t))}},o0=function(e,t){return o0=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])},o0(e,t);
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
-
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
-
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */};function i0(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}o0(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function a0(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 u0(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 s0(e){return dp.nodes(e,{at:e.selection||void 0,match:function(t){return 1===dB.findPath(e,t).length}})}var l0=jY.includes;WZ({target:"Array",proto:!0},{includes:function(e){return l0(this,e,arguments.length>1?arguments[1]:void 0)}}),QY("includes");var c0,f0,d0=function(){var e=tY(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},p0=uX.RegExp,h0=pX((function(){var e=p0("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),g0=h0||pX((function(){return!p0("a","y").sticky})),v0={BROKEN_CARET:h0||pX((function(){var e=p0("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:g0,UNSUPPORTED_Y:h0},y0=uX.RegExp,m0=pX((function(){var e=y0(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),b0=uX.RegExp,w0=pX((function(){var e=b0("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),E0=wZ.get,x0=AX("native-string-replace",String.prototype.replace),D0=RegExp.prototype.exec,C0=D0,S0=dX("".charAt),A0=dX("".indexOf),O0=dX("".replace),k0=dX("".slice),B0=(f0=/b*/g,sY(D0,c0=/a/,"a"),sY(D0,f0,"a"),0!==c0.lastIndex||0!==f0.lastIndex),F0=v0.BROKEN_CARET,T0=void 0!==/()??/.exec("")[1];(B0||T0||F0||m0||w0)&&(C0=function(e){var t,n,r,o,i,a,u,s=this,l=E0(s),c=OJ(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=sY(C0,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=F0&&s.sticky,h=sY(d0,s),g=s.source,v=0,y=c;if(p&&(h=O0(h,"y",""),-1===A0(h,"g")&&(h+="g"),y=k0(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==S0(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),T0&&(n=new RegExp("^"+g+"$(?!\\s)",h)),B0&&(r=s.lastIndex),o=sY(D0,p?n:s,y),p?o?(o.input=k0(o.input,v),o[0]=k0(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:B0&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),T0&&o&&o.length>1&&sY(x0,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=YY(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var _0=C0;WZ({target:"RegExp",proto:!0,forced:/./.exec!==_0},{exec:_0});var P0=function(){function e(){this.type="list-item",this.tag="button"}return e.prototype.getListNode=function(e){var t=this.type;return dB.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||!!dB.getSelectedElems(e).some((function(t){if(dp.isVoid(e,t)&&dp.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)?eh.setNodes(e,{type:"paragraph",ordered:void 0,level:void 0}):eh.setNodes(e,{type:"list-item",ordered:this.ordered,indent:void 0})},e}(),j0='<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>',I0='<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>',N0=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ordered=!1,t.title=Jj("listModule.unOrderedList"),t.iconSvg=j0,t}return i0(t,e),t}(P0),L0=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ordered=!0,t.title=Jj("listModule.orderedList"),t.iconSvg=I0,t}return i0(t,e),t}(P0),R0={key:"bulletedList",factory:function(){return new N0}},M0={key:"numberedList",factory:function(){return new L0}},z0=[],$0={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=n0.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=dB.findPath(t,e);if(0===s[0])return u+1;var l=Ep.previous(s),c=dp.node(t,l);if(!c)return 0;var f=u0(c,1)[0];if(dB.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+">",z0.push(i);var s=function(e){var t=n0.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=dB.findPath(t,e);if(s[0]===t.children.length-1)return u+1;var l=Ep.next(s),c=dp.node(t,l);if(!c)return 0;var f=u0(c,1)[0];if(dB.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+="</"+z0.pop()+">";return{html:"<li>"+t+"</li>",prefix:n,suffix:r}}},H0=ZX("species"),V0=SQ.filter,U0=UX>=51||!pX((function(){var e=[];return(e.constructor={})[H0]=function(){return{foo:1}},1!==e.filter(Boolean).foo}));WZ({target:"Array",proto:!0,forced:!U0},{filter:function(e){return V0(this,e,arguments.length>1?arguments[1]:void 0)}});var W0=Function.prototype,G0=W0.apply,q0=W0.bind,K0=W0.call,X0="object"==typeof Reflect&&Reflect.apply||(q0?K0.bind(G0):function(){return K0.apply(G0,arguments)}),Y0=(ZX("species"),RegExp.prototype),Z0=_J.charAt,J0=function(e,t,n){return t+(n?Z0(e,t).length:1)},Q0=Math.floor,e1=dX("".charAt),t1=dX("".replace),n1=dX("".slice),r1=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,o1=/\$([$&'`]|\d{1,2})/g,i1=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=o1;return void 0!==o&&(o=kX(o),s=r1),t1(i,s,(function(i,s){var l;switch(e1(s,0)){case"$":return"$";case"&":return e;case"`":return n1(t,0,n);case"'":return n1(t,a);case"<":l=o[n1(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=Q0(c/10);return 0===f?i:f<=u?void 0===r[f-1]?e1(s,1):r[f-1]+e1(s,1):i}l=r[c-1]}return void 0===l?"":l}))},a1=uX.TypeError,u1=function(e,t){var n=e.exec;if(IX(n)){var r=sY(n,e,t);return null!==r&&tY(r),r}if("RegExp"===vX(e))return sY(_0,e,t);throw a1("RegExp#exec called on incompatible receiver")},s1=ZX("replace"),l1=Math.max,c1=Math.min,f1=dX([].concat),d1=dX([].push),p1=dX("".indexOf),h1=dX("".slice),g1="$0"==="a".replace(/./,"$0"),v1=!!/./[s1]&&""===/./[s1]("a","$0");!function(e,t,n,r){var o,i,a=ZX(e),u=!pX((function(){var t={};return t[a]=function(){return 7},7!=""[e](t)})),s=u&&!pX((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[a](""),!e}));if(!u||!s||n){var l=dX(/./[a]),c=(o=""[e],i=v1?"$":"$0",[function(e,t){var n=EX(this),r=null==e?void 0:vY(e,s1);return r?sY(r,e,n,t):sY(o,OJ(n),e,t)},function(e,t){var n=tY(this),r=OJ(e);if("string"==typeof t&&-1===p1(t,i)&&-1===p1(t,"$<")){var a=function(e,t,n,r,o){var i=dX(e),a=t.exec;return a===_0||a===Y0.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=IX(t);s||(t=OJ(t));var c=n.global;if(c){var f=n.unicode;n.lastIndex=0}for(var d=[];;){var p=u1(n,r);if(null===p)break;if(d1(d,p),!c)break;""===OJ(p[0])&&(n.lastIndex=J0(r,TY(n.lastIndex),f))}for(var h,g="",v=0,y=0;y<d.length;y++){for(var m=OJ((p=d[y])[0]),b=l1(c1(AY(p.index),r.length),0),w=[],E=1;E<p.length;E++)d1(w,void 0===(h=p[E])?h:String(h));var x=p.groups;if(s){var D=f1([m],w,b,r);void 0!==x&&d1(D,x);var C=OJ(X0(t,void 0,D))}else C=i1(m,r,b,w,x,t);b>=v&&(g+=h1(r,v,b)+C,v=b+m.length)}return g+h1(r,v)}]);FZ(String.prototype,e,c[0]),FZ(Y0,a,c[1])}}("replace",0,!!pX((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!g1||v1);var y1=uX.TypeError,m1=function(e,t,n,r,o,i,a,u){for(var s,l,c=o,f=0,d=!!a&&KJ(a,u);f<r;){if(f in n){if(s=d?d(n[f],f,t):n[f],i>0&&fQ(s))l=_Y(s),c=m1(e,t,s,l,c,i-1)-1;else{if(c>=9007199254740991)throw y1("Exceed the acceptable array length");e[c]=s}c++}f++}return c},b1=m1;function w1(e){return e.length?e[0].tagName.toLowerCase():""}WZ({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=kX(this),n=_Y(t),r=xQ(t,0);return r.length=b1(r,t,t,n,0,void 0===e?1:AY(e)),r}}),QY("flat"),WZ({global:!0},{globalThis:uX}),Ng&&(gg.fn.append=Ng),bg&&(gg.fn.attr=bg),Rg&&(gg.fn.parent=Rg);var E1={renderElems:[r0],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(Bp.isExpanded(n))t(e);else{var r=dB.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?eh.setNodes(o,{level:a-1}):eh.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(Bp.isCollapsed(a)){var u=dB.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 eh.setNodes(o,{level:l+1})}}if(Bp.isExpanded(a)){var c=0,f=!1;try{for(var d=a0(s0(o)),p=d.next();!p.done;p=d.next()){var h=u0(p.value,1)[0];"list-item"===dB.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=a0(s0(o)),v=g.next();!v.done;v=g.next()){var y=u0(v.value,2),m=(h=y[0],y[1]),b=h.level;l=void 0===b?0:b,eh.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=u0(e,2),n=t[0],i=t[1],a=dB.getNodeType(n);return"bulleted-list"!==a&&"numbered-list"!==a||eh.unwrapNodes(o,{at:i}),r([n,i])},o},menus:[R0,M0],elemsToHtml:[$0],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=gg(e);0===(t=t.filter((function(e){return!!Np.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o="ol"===w1(r.parent()),i=function(e){for(var t=0,n=e.parent(),r=w1(n);"ul"===r||"ol"===r;)r=w1(n=n.parent()),t++;return t-1}(r);return{type:"list-item",ordered:o,level:i,children:t}}}]},x1=Ue((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 Ve&&Ve&&Ve.Object===Object&&Ve,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(hf){}}(),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)}}));Zj("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"}}),Zj("zh-CN",{tableModule:{deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"宽度自适应",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头"}});var D1="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function C1(e){var t={exports:{}};return e(t,t.exports),t.exports}var S1,A1,O1=function(e){return e&&e.Math==Math&&e},k1=O1("object"==typeof globalThis&&globalThis)||O1("object"==typeof window&&window)||O1("object"==typeof self&&self)||O1("object"==typeof D1&&D1)||function(){return this}()||Function("return this")(),B1=function(e){try{return!!e()}catch(t){return!0}},F1=!B1((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),T1=Function.prototype.call,_1=T1.bind?T1.bind(T1):function(){return T1.apply(T1,arguments)},P1={}.propertyIsEnumerable,j1=Object.getOwnPropertyDescriptor,I1={f:j1&&!P1.call({1:2},1)?function(e){var t=j1(this,e);return!!t&&t.enumerable}:P1},N1=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},L1=Function.prototype,R1=L1.bind,M1=L1.call,z1=R1&&R1.bind(M1),$1=R1?function(e){return e&&z1(M1,e)}:function(e){return e&&function(){return M1.apply(e,arguments)}},H1=$1({}.toString),V1=$1("".slice),U1=function(e){return V1(H1(e),8,-1)},W1=k1.Object,G1=$1("".split),q1=B1((function(){return!W1("z").propertyIsEnumerable(0)}))?function(e){return"String"==U1(e)?G1(e,""):W1(e)}:W1,K1=k1.TypeError,X1=function(e){if(null==e)throw K1("Can't call method on "+e);return e},Y1=function(e){return q1(X1(e))},Z1=function(e){return"function"==typeof e},J1=function(e){return"object"==typeof e?null!==e:Z1(e)},Q1=function(e){return Z1(e)?e:void 0},e2=function(e,t){return arguments.length<2?Q1(k1[e]):k1[e]&&k1[e][t]},t2=$1({}.isPrototypeOf),n2=e2("navigator","userAgent")||"",r2=k1.process,o2=k1.Deno,i2=r2&&r2.versions||o2&&o2.version,a2=i2&&i2.v8;a2&&(A1=(S1=a2.split("."))[0]>0&&S1[0]<4?1:+(S1[0]+S1[1])),!A1&&n2&&(!(S1=n2.match(/Edge\/(\d+)/))||S1[1]>=74)&&(S1=n2.match(/Chrome\/(\d+)/))&&(A1=+S1[1]);var u2=A1,s2=!!Object.getOwnPropertySymbols&&!B1((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&u2&&u2<41})),l2=s2&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,c2=k1.Object,f2=l2?function(e){return"symbol"==typeof e}:function(e){var t=e2("Symbol");return Z1(t)&&t2(t.prototype,c2(e))},d2=k1.String,p2=function(e){try{return d2(e)}catch(t){return"Object"}},h2=k1.TypeError,g2=function(e){if(Z1(e))return e;throw h2(p2(e)+" is not a function")},v2=function(e,t){var n=e[t];return null==n?void 0:g2(n)},y2=k1.TypeError,m2=Object.defineProperty,b2=function(e,t){try{m2(k1,e,{value:t,configurable:!0,writable:!0})}catch(eI){k1[e]=t}return t},w2=k1["__core-js_shared__"]||b2("__core-js_shared__",{}),E2=C1((function(e){(e.exports=function(e,t){return w2[e]||(w2[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),x2=k1.Object,D2=function(e){return x2(X1(e))},C2=$1({}.hasOwnProperty),S2=Object.hasOwn||function(e,t){return C2(D2(e),t)},A2=0,O2=Math.random(),k2=$1(1..toString),B2=function(e){return"Symbol("+(void 0===e?"":e)+")_"+k2(++A2+O2,36)},F2=E2("wks"),T2=k1.Symbol,_2=T2&&T2.for,P2=l2?T2:T2&&T2.withoutSetter||B2,j2=function(e){if(!S2(F2,e)||!s2&&"string"!=typeof F2[e]){var t="Symbol."+e;s2&&S2(T2,e)?F2[e]=T2[e]:F2[e]=l2&&_2?_2(t):P2(t)}return F2[e]},I2=k1.TypeError,N2=j2("toPrimitive"),L2=function(e){var t=function(e,t){if(!J1(e)||f2(e))return e;var n,r=v2(e,N2);if(r){if(void 0===t&&(t="default"),n=_1(r,e,t),!J1(n)||f2(n))return n;throw I2("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&Z1(n=e.toString)&&!J1(r=_1(n,e)))return r;if(Z1(n=e.valueOf)&&!J1(r=_1(n,e)))return r;if("string"!==t&&Z1(n=e.toString)&&!J1(r=_1(n,e)))return r;throw y2("Can't convert object to primitive value")}(e,t)}(e,"string");return f2(t)?t:t+""},R2=k1.document,M2=J1(R2)&&J1(R2.createElement),z2=function(e){return M2?R2.createElement(e):{}},$2=!F1&&!B1((function(){return 7!=Object.defineProperty(z2("div"),"a",{get:function(){return 7}}).a})),H2=Object.getOwnPropertyDescriptor,V2={f:F1?H2:function(e,t){if(e=Y1(e),t=L2(t),$2)try{return H2(e,t)}catch(n){}if(S2(e,t))return N1(!_1(I1.f,e,t),e[t])}},U2=k1.String,W2=k1.TypeError,G2=function(e){if(J1(e))return e;throw W2(U2(e)+" is not an object")},q2=k1.TypeError,K2=Object.defineProperty,X2={f:F1?K2:function(e,t,n){if(G2(e),t=L2(t),G2(n),$2)try{return K2(e,t,n)}catch(r){}if("get"in n||"set"in n)throw q2("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Y2=F1?function(e,t,n){return X2.f(e,t,N1(1,n))}:function(e,t,n){return e[t]=n,e},Z2=$1(Function.toString);Z1(w2.inspectSource)||(w2.inspectSource=function(e){return Z2(e)});var J2,Q2,e4,t4=w2.inspectSource,n4=k1.WeakMap,r4=Z1(n4)&&/native code/.test(t4(n4)),o4=E2("keys"),i4=function(e){return o4[e]||(o4[e]=B2(e))},a4={},u4=k1.TypeError,s4=k1.WeakMap;if(r4||w2.state){var l4=w2.state||(w2.state=new s4),c4=$1(l4.get),f4=$1(l4.has),d4=$1(l4.set);J2=function(e,t){if(f4(l4,e))throw new u4("Object already initialized");return t.facade=e,d4(l4,e,t),t},Q2=function(e){return c4(l4,e)||{}},e4=function(e){return f4(l4,e)}}else{var p4=i4("state");a4[p4]=!0,J2=function(e,t){if(S2(e,p4))throw new u4("Object already initialized");return t.facade=e,Y2(e,p4,t),t},Q2=function(e){return S2(e,p4)?e[p4]:{}},e4=function(e){return S2(e,p4)}}var h4={set:J2,get:Q2,has:e4,enforce:function(e){return e4(e)?Q2(e):J2(e,{})},getterFor:function(e){return function(t){var n;if(!J1(t)||(n=Q2(t)).type!==e)throw u4("Incompatible receiver, "+e+" required");return n}}},g4=Function.prototype,v4=F1&&Object.getOwnPropertyDescriptor,y4=S2(g4,"name"),m4={EXISTS:y4,PROPER:y4&&"something"===function(){}.name,CONFIGURABLE:y4&&(!F1||F1&&v4(g4,"name").configurable)},b4=C1((function(e){var t=m4.CONFIGURABLE,n=h4.get,r=h4.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;Z1(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!S2(i,"name")||t&&i.name!==f)&&Y2(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==k1?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:Y2(e,n,i)):l?e[n]=i:b2(n,i)})(Function.prototype,"toString",(function(){return Z1(this)&&n(this).source||t4(this)}))})),w4=Math.ceil,E4=Math.floor,x4=function(e){var t=+e;return t!=t||0===t?0:(t>0?E4:w4)(t)},D4=Math.max,C4=Math.min,S4=function(e,t){var n=x4(e);return n<0?D4(n+t,0):C4(n,t)},A4=Math.min,O4=function(e){return e>0?A4(x4(e),9007199254740991):0},k4=function(e){return O4(e.length)},B4=function(e){return function(t,n,r){var o,i=Y1(t),a=k4(i),u=S4(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),F4=$1([].push),T4=function(e,t){var n,r=Y1(e),o=0,i=[];for(n in r)!S2(a4,n)&&S2(r,n)&&F4(i,n);for(;t.length>o;)S2(r,n=t[o++])&&(~B4(i,n)||F4(i,n));return i},_4=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],P4=_4.concat("length","prototype"),j4={f:Object.getOwnPropertyNames||function(e){return T4(e,P4)}},I4={f:Object.getOwnPropertySymbols},N4=$1([].concat),L4=e2("Reflect","ownKeys")||function(e){var t=j4.f(G2(e)),n=I4.f;return n?N4(t,n(e)):t},R4=function(e,t){for(var n=L4(t),r=X2.f,o=V2.f,i=0;i<n.length;i++){var a=n[i];S2(e,a)||r(e,a,o(t,a))}},M4=/#|\.prototype\./,z4=function(e,t){var n=H4[$4(e)];return n==U4||n!=V4&&(Z1(t)?B1(t):!!t)},$4=z4.normalize=function(e){return String(e).replace(M4,".").toLowerCase()},H4=z4.data={},V4=z4.NATIVE="N",U4=z4.POLYFILL="P",W4=z4,G4=V2.f,q4=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?k1:l?k1[u]||b2(u,{}):(k1[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=G4(n,r))&&a.value:n[r],!W4(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;R4(i,o)}(e.sham||o&&o.sham)&&Y2(i,"sham",!0),b4(n,r,i,e)}},K4={};K4[j2("toStringTag")]="z";var X4="[object z]"===String(K4),Y4=j2("toStringTag"),Z4=k1.Object,J4="Arguments"==U1(function(){return arguments}()),Q4=X4?U1: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=Z4(e),Y4))?n:J4?U1(t):"Object"==(r=U1(t))&&Z1(t.callee)?"Arguments":r},e6=k1.String,t6=function(e){if("Symbol"===Q4(e))throw TypeError("Cannot convert a Symbol value to a string");return e6(e)},n6=/"/g,r6=$1("".replace);q4({target:"String",proto:!0,forced:B1((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=t6(X1(this)),r="<a",(r+=' name="'+r6(t6(t),n6,""")+'"')+">"+n+"</a>";var t,n,r}});var o6,i6=function(){var e=G2(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},a6=k1.RegExp,u6=B1((function(){var e=a6("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),s6=u6||B1((function(){return!a6("a","y").sticky})),l6={BROKEN_CARET:u6||B1((function(){var e=a6("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:s6,UNSUPPORTED_Y:u6},c6=Object.keys||function(e){return T4(e,_4)},f6=F1?Object.defineProperties:function(e,t){G2(e);for(var n,r=Y1(t),o=c6(t),i=o.length,a=0;i>a;)X2.f(e,n=o[a++],r[n]);return e},d6=e2("document","documentElement"),p6=i4("IE_PROTO"),h6=function(){},g6=function(e){return"<script>"+e+"<\/script>"},v6=function(e){e.write(g6("")),e.close();var t=e.parentWindow.Object;return e=null,t},y6=function(){try{o6=new ActiveXObject("htmlfile")}catch(r){}var e,t;y6="undefined"!=typeof document?document.domain&&o6?v6(o6):((t=z2("iframe")).style.display="none",d6.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(g6("document.F=Object")),e.close(),e.F):v6(o6);for(var n=_4.length;n--;)delete y6.prototype[_4[n]];return y6()};a4[p6]=!0;var m6,b6,w6=Object.create||function(e,t){var n;return null!==e?(h6.prototype=G2(e),n=new h6,h6.prototype=null,n[p6]=e):n=y6(),void 0===t?n:f6(n,t)},E6=k1.RegExp,x6=B1((function(){var e=E6(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),D6=k1.RegExp,C6=B1((function(){var e=D6("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),S6=h4.get,A6=E2("native-string-replace",String.prototype.replace),O6=RegExp.prototype.exec,k6=O6,B6=$1("".charAt),F6=$1("".indexOf),T6=$1("".replace),_6=$1("".slice),P6=(b6=/b*/g,_1(O6,m6=/a/,"a"),_1(O6,b6,"a"),0!==m6.lastIndex||0!==b6.lastIndex),j6=l6.BROKEN_CARET,I6=void 0!==/()??/.exec("")[1];(P6||I6||j6||x6||C6)&&(k6=function(e){var t,n,r,o,i,a,u,s=this,l=S6(s),c=t6(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=_1(k6,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=j6&&s.sticky,h=_1(i6,s),g=s.source,v=0,y=c;if(p&&(h=T6(h,"y",""),-1===F6(h,"g")&&(h+="g"),y=_6(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==B6(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),I6&&(n=new RegExp("^"+g+"$(?!\\s)",h)),P6&&(r=s.lastIndex),o=_1(O6,p?n:s,y),p?o?(o.input=_6(o.input,v),o[0]=_6(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:P6&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),I6&&o&&o.length>1&&_1(A6,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=w6(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var N6=k6;q4({target:"RegExp",proto:!0,forced:/./.exec!==N6},{exec:N6});var L6=Array.isArray||function(e){return"Array"==U1(e)},R6=function(){},M6=[],z6=e2("Reflect","construct"),$6=/^\s*(?:class|function)\b/,H6=$1($6.exec),V6=!$6.exec(R6),U6=function(e){if(!Z1(e))return!1;try{return z6(R6,M6,e),!0}catch(t){return!1}},W6=!z6||B1((function(){var e;return U6(U6.call)||!U6(Object)||!U6((function(){e=!0}))||e}))?function(e){if(!Z1(e))return!1;switch(Q4(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return V6||!!H6($6,t4(e))}:U6,G6=function(e,t,n){var r=L2(t);r in e?X2.f(e,r,N1(0,n)):e[r]=n},q6=j2("species"),K6=function(e){return u2>=51||!B1((function(){var t=[];return(t.constructor={})[q6]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},X6=$1([].slice),Y6=K6("slice"),Z6=j2("species"),J6=k1.Array,Q6=Math.max;function e3(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 t3(e){var t=e.selection;if(null==t)return!1;var n=e3(dp.nodes(e,{match:function(e){return dB.checkNodeType(e,"table-cell")}}),1)[0];if(n){var r=e3(n,2)[1],o=dp.start(e,r);if(Sp.equals(t.anchor,o))return!0}return!1}function n3(e,t){var n,r,o=dp.nodes(e,{at:t,match:function(e){return"table"===dB.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}q4({target:"Array",proto:!0,forced:!Y6},{slice:function(e,t){var n,r,o,i=Y1(this),a=k4(i),u=S4(e,a),s=S4(void 0===t?a:t,a);if(L6(i)&&(n=i.constructor,(W6(n)&&(n===J6||L6(n.prototype))||J1(n)&&null===(n=n[Z6]))&&(n=void 0),n===J6||void 0===n))return X6(i,u,s);for(r=new(void 0===n?J6:n)(Q6(s-u,0)),o=0;u<s;u++,o++)u in i&&G6(r,o,i[u]);return r.length=o,r}});var r3=$1($1.bind),o3=j2("species"),i3=k1.Array,a3=function(e,t){return new(L6(n=e)&&(r=n.constructor,(W6(r)&&(r===i3||L6(r.prototype))||J1(r)&&null===(r=r[o3]))&&(r=void 0)),void 0===r?i3:r)(0===t?0:t);var n,r},u3=$1([].push),s3=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=D2(s),g=q1(h),v=function(e,t){return g2(e),void 0===t?e:r3?r3(e,t):function(){return e.apply(t,arguments)}}(l,c),y=k4(g),m=0,b=f||a3,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:u3(w,d)}else switch(e){case 4:return!1;case 7:u3(w,d)}return i?-1:r||o?o:w}},l3={forEach:s3(0),map:s3(1),filter:s3(2),some:s3(3),every:s3(4),find:s3(5),findIndex:s3(6),filterReject:s3(7)},c3=l3.map;q4({target:"Array",proto:!0,forced:!K6("map")},{map:function(e){return c3(this,e,arguments.length>1?arguments[1]:void 0)}});var f3=X4?{}.toString:function(){return"[object "+Q4(this)+"]"};function d3(e){var t=e.children||[];return 0===t.length?[]:(t[0]||{}).children||[]}function p3(e){return d3(e).every((function(e){return!!e.isHeader}))}X4||b4(Object.prototype,"toString",f3,{unsafe:!0});var h3=m4.PROPER,g3=RegExp.prototype,v3=g3.toString,y3=$1(i6),m3=B1((function(){return"/a/b"!=v3.call({source:"a",flags:"b"})})),b3=h3&&"toString"!=v3.name;(m3||b3)&&b4(RegExp.prototype,"toString",(function(){var e=G2(this),t=t6(e.source),n=e.flags;return"/"+t+"/"+t6(void 0===n&&t2(g3,e)&&!("flags"in g3)?y3(e):n)}),{unsafe:!0});var w3=j2("unscopables"),E3=Array.prototype;null==E3[w3]&&X2.f(E3,w3,{configurable:!0,value:w6(null)});var x3=l3.find,D3=!0;"find"in[]&&Array(1).find((function(){D3=!1})),q4({target:"Array",proto:!0,forced:D3},{find:function(e){return x3(this,e,arguments.length>1?arguments[1]:void 0)}}),E3[w3].find=!0;var C3=Function.prototype,S3=C3.apply,A3=C3.bind,O3=C3.call,k3="object"==typeof Reflect&&Reflect.apply||(A3?O3.bind(S3):function(){return O3.apply(S3,arguments)}),B3=j2("species"),F3=RegExp.prototype,T3=function(e,t,n,r){var o=j2(e),i=!B1((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!B1((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[B3]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=$1(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=$1(e),s=t.exec;return s===N6||s===F3.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));b4(String.prototype,e,s[0]),b4(F3,o,s[1])}r&&Y2(F3[o],"sham",!0)},_3=j2("match"),P3=k1.TypeError,j3=j2("species"),I3=$1("".charAt),N3=$1("".charCodeAt),L3=$1("".slice),R3=function(e){return function(t,n){var r,o,i=t6(X1(t)),a=x4(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=N3(i,a))<55296||r>56319||a+1===u||(o=N3(i,a+1))<56320||o>57343?e?I3(i,a):r:e?L3(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0),M3=function(e,t,n){return t+(n?R3(e,t).length:1)},z3=k1.Array,$3=Math.max,H3=function(e,t,n){for(var r=k4(e),o=S4(t,r),i=S4(void 0===n?r:n,r),a=z3($3(i-o,0)),u=0;o<i;o++,u++)G6(a,u,e[o]);return a.length=u,a},V3=k1.TypeError,U3=function(e,t){var n=e.exec;if(Z1(n)){var r=_1(n,e,t);return null!==r&&G2(r),r}if("RegExp"===U1(e))return _1(N6,e,t);throw V3("RegExp#exec called on incompatible receiver")},W3=l6.UNSUPPORTED_Y,G3=Math.min,q3=[].push,K3=$1(/./.exec),X3=$1(q3),Y3=$1("".slice);T3("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=t6(X1(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!J1(r=e)||!(void 0!==(o=r[_3])?o:"RegExp"==U1(r)))return _1(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=_1(N6,p,i))&&!((s=p.lastIndex)>d&&(X3(c,Y3(i,d,u.index)),u.length>1&&u.index<i.length&&k3(q3,c,H3(u,1)),l=u[0].length,d=s,c.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return d===i.length?!l&&K3(p,"")||X3(c,""):X3(c,Y3(i,d)),c.length>a?H3(c,0,a):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:_1(t,this,e,n)}:t,[function(t,n){var o=X1(this),i=null==t?void 0:v2(t,e);return i?_1(i,t,o,n):_1(r,t6(o),t,n)},function(e,o){var i=G2(this),a=t6(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=G2(i).constructor)||null==(l=G2(c)[j3])?s:function(e){if(W6(e))return e;throw P3(p2(e)+" is not a constructor")}(l)),d=i.unicode,p=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(W3?"g":"y"),h=new f(W3?"^(?:"+i.source+")":i,p),g=void 0===o?4294967295:o>>>0;if(0===g)return[];if(0===a.length)return null===U3(h,a)?[a]:[];for(var v=0,y=0,m=[];y<a.length;){h.lastIndex=W3?0:y;var b,w=U3(h,W3?Y3(a,y):a);if(null===w||(b=G3(O4(h.lastIndex+(W3?y:0)),a.length))===v)y=M3(a,y,d);else{if(X3(m,Y3(a,v,y)),m.length===g)return m;for(var E=1;E<=w.length-1;E++)if(X3(m,w[E]),m.length===g)return m;y=v=b}}return X3(m,Y3(a,v)),m}]}),!!B1((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]})),W3);var Z3="\t\n\v\f\r \u2028\u2029\ufeff",J3=$1("".replace),Q3="["+Z3+"]",e5=RegExp("^"+Q3+Q3+"*"),t5=RegExp(Q3+Q3+"*$"),n5=function(e){return function(t){var n=t6(X1(t));return 1&e&&(n=J3(n,e5,"")),2&e&&(n=J3(n,t5,"")),n}},r5={start:n5(1),end:n5(2),trim:n5(3)},o5=m4.PROPER,i5=r5.trim;function a5(e){return e.length?e[0].tagName.toLowerCase():""}q4({target:"String",proto:!0,forced:function(e){return B1((function(){return!!Z3.trim()||"
"!=="
".trim()||o5&&Z3.trim.name!==e}))}("trim")},{trim:function(){return i5(this)}}),q4({global:!0},{globalThis:k1}),Ng&&(gg.fn.append=Ng),Dg&&(gg.fn.on=Dg),qg&&(gg.fn.focus=qg),bg&&(gg.fn.attr=bg),xg&&(gg.fn.val=xg),Pg&&(gg.fn.html=Pg),Eg&&(gg.fn.dataset=Eg),vg&&(gg.fn.addClass=vg),yg&&(gg.fn.removeClass=yg),$g&&(gg.fn.children=$g),Tg&&(gg.fn.each=Tg),zg&&(gg.fn.find=zg);var u5=!1,s5=0,l5=0,c5=null,f5=null,d5=gg("body");function p5(e){u5=!1,f5=null,c5=null,d5.off("mousemove",h5),d5.off("mouseup",p5)}d5.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(),u5=!0;var n=e.clientX;s5=n;var r=t.getBoundingClientRect().width;l5=r,d5.on("mousemove",h5),d5.on("mouseup",p5)}}));var h5=Sv((function(e){if(u5&&null!=f5&&null!=c5){e.preventDefault();var t=e.clientX,n=l5+(t-s5);(n=Math.floor(100*n)/100)<30&&(n=30),eh.setNodes(f5,{width:n.toString()},{at:c5})}}),100),g5={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(Bp.isCollapsed(n))return!0;var r=n.anchor,o=n.focus,i=dB.findPath(e,t),a=dp.start(e,i),u=dp.end(e,i),s=Sp.compare(r,u)<=0&&Sp.compare(r,a)>=0,l=Sp.compare(o,u)<=0&&Sp.compare(o,a)>=0;return!!(s&&l&&Ep.equals(r.path.slice(0,3),o.path.slice(0,3)))}(n,e),o=e.width,i=void 0===o?"auto":o;return oy("div",{className:"table-container","data-selected":dB.isNodeSelected(n,e),on:{mousedown:function(t){if("DIV"===t.target.tagName&&t.preventDefault(),!n.isDisabled()){var r=dB.findPath(n,e),o=dp.start(n,r),i=n.selection;null!=i?i.anchor.path[0]!==r[0]&&n.select(o):n.select(o)}}}},oy("table",{width:i,contentEditable:r},oy("colgroup",null,d3(e).map((function(e){var t=e.width;return oy("col",{width:void 0===t?"auto":t})}))),oy("tbody",null,t)))}},v5={type:"table-row",renderElem:function(e,t,n){return oy("tr",null,t)}},y5={type:"table-cell",renderElem:function(e,t,n){var r=function(e,t){var n=dB.getParentNode(e,t);if(null==n)return!1;var r=dB.getParentNode(e,n);return null!=r&&d3(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?oy(void 0!==l&&l?"th":"td",{colSpan:a,rowSpan:s,style:{borderRightWidth:"3px"},on:{mousemove:Sv((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;u5||(l>i+a-5&&l<i+a&&c>u&&c<u+s?(r.style.cursor="col-resize",f5=n,c5=dB.findPath(n,e)):u5||(r.style.cursor="auto",f5=null,c5=null))}}),100)}},t):oy("td",{colSpan:a,rowSpan:s},t)}},m5={selector:"table",preParseHtml:function(e){var t=gg(e);if("table"!==a5(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]}},b5=l3.filter;q4({target:"Array",proto:!0,forced:!K6("filter")},{filter:function(e){return b5(this,e,arguments.length>1?arguments[1]:void 0)}});var w5=Math.floor,E5=$1("".charAt),x5=$1("".replace),D5=$1("".slice),C5=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,S5=/\$([$&'`]|\d{1,2})/g,A5=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=S5;return void 0!==o&&(o=D2(o),s=C5),x5(i,s,(function(i,s){var l;switch(E5(s,0)){case"$":return"$";case"&":return e;case"`":return D5(t,0,n);case"'":return D5(t,a);case"<":l=o[D5(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=w5(c/10);return 0===f?i:f<=u?void 0===r[f-1]?E5(s,1):r[f-1]+E5(s,1):i}l=r[c-1]}return void 0===l?"":l}))},O5=j2("replace"),k5=Math.max,B5=Math.min,F5=$1([].concat),T5=$1([].push),_5=$1("".indexOf),P5=$1("".slice),j5="$0"==="a".replace(/./,"$0"),I5=!!/./[O5]&&""===/./[O5]("a","$0");T3("replace",(function(e,t,n){var r=I5?"$":"$0";return[function(e,n){var r=X1(this),o=null==e?void 0:v2(e,O5);return o?_1(o,e,r,n):_1(t,t6(r),e,n)},function(e,o){var i=G2(this),a=t6(e);if("string"==typeof o&&-1===_5(o,r)&&-1===_5(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=Z1(o);s||(o=t6(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=U3(i,a);if(null===d)break;if(T5(f,d),!l)break;""===t6(d[0])&&(i.lastIndex=M3(a,O4(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var y=t6((d=f[v])[0]),m=k5(B5(x4(d.index),a.length),0),b=[],w=1;w<d.length;w++)T5(b,void 0===(p=d[w])?p:String(p));var E=d.groups;if(s){var x=F5([y],b,m,a);void 0!==E&&T5(x,E);var D=t6(k3(o,void 0,x))}else D=A5(y,a,m,b,E,o);m>=g&&(h+=P5(a,g,m)+D,g=m+y.length)}return h+P5(a,g)}]}),!!B1((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!j5||I5);var N5={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=gg(e);0===(t=t.filter((function(e){return!!Np.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"===a5(r),colSpan:o,rowSpan:i,width:a,children:t}}},L5={selector:"tr:not([data-w-e-type])",parseElemHtml:function(e,t,n){return{type:"table-row",children:t.filter((function(e){return"table-cell"===dB.getNodeType(e)}))}}},R5={selector:"table:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=gg(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"===dB.getNodeType(e)}))}}},M5=function(){function e(){this.title=Jj("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||!Bp.isCollapsed(t)||!!dB.getSelectedElems(e).some((function(t){var n=dB.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=gg('<div class="w-e-panel-content-table"></div>'),r=gg("<span>0 × 0</span>"),o=gg("<table></table>"),i=0;i<10;i++){for(var a=gg("<tr></tr>"),u=0;u<10;u++){var s=gg("<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=gg(t).dataset(),i=n.x,a=n.y;r[0].innerHTML=i+1+" × "+(a+1),o.children().each((function(e){gg(e).children().each((function(e){var t=gg(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=gg(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)){dB.isSelectedEmptyParagraph(e)&&eh.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);eh.insertNodes(e,i,{mode:"highest"})}},e}(),z5=function(){function e(){this.title=Jj("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==dB.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){this.isDisabled(e)||eh.removeNodes(e,{mode:"highest"})},e}(),$5=function(){function e(){this.title=Jj("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||!Bp.isCollapsed(t)||null==dB.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=e3(dp.nodes(e,{match:function(e){return dB.checkNodeType(e,"table-cell")},universal:!0}),1),r=e3(n[0],2),o=r[0],i=r[1],a=dB.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=Ep.parent(i),f=Ep.next(c);eh.insertNodes(e,s,{at:f})}}},e}(),H5=function(){function e(){this.title=Jj("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||!Bp.isCollapsed(t)||null==dB.getSelectedNodeByType(e,"table-row")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=e3(dp.nodes(e,{match:function(e){return dB.checkNodeType(e,"table-row")},universal:!0}),1),r=e3(n[0],2),o=r[0],i=r[1],a=dB.getParentNode(e,o);((null==a?void 0:a.children.length)||0)<=1?eh.removeNodes(e,{mode:"highest"}):eh.removeNodes(e,{at:i})}},e}(),V5={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},U5=z2("span").classList,W5=U5&&U5.constructor&&U5.constructor.prototype,G5=W5===Object.prototype?void 0:W5,q5=l3.forEach,K5=function(e,t){var n=[].forEach;return!!n&&B1((function(){n.call(null,(function(){throw 1}),1)}))}(),X5=K5?[].forEach:function(e){return q5(this,e,arguments.length>1?arguments[1]:void 0)},Y5=function(e){if(e&&e.forEach!==X5)try{Y2(e,"forEach",X5)}catch(t){e.forEach=X5}};for(var Z5 in V5)V5[Z5]&&Y5(k1[Z5]&&k1[Z5].prototype);Y5(G5);var J5=function(){function e(){this.title=Jj("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||!Bp.isCollapsed(t)||null==dB.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=e3(dp.nodes(e,{match:function(e){return dB.checkNodeType(e,"table-cell")},universal:!0}),1),r=e3(n[0],2),o=r[0],i=r[1],a=dB.getParentNode(e,o);if(null!=a){var u=dB.getParentNode(e,a);null!=u&&(u.children||[]).forEach((function(t,n){ap.isElement(t)&&(t.children||[]).forEach((function(t){var r=dB.findPath(e,t);if(r.length===i.length&&x1(r.slice(-1),i.slice(-1))){var o={type:"table-cell",children:[{text:""}]};0===n&&p3(u)&&(o.isHeader=!0),eh.insertNodes(e,o,{at:r})}}))}))}}},e}(),Q5=function(){function e(){this.title=Jj("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||!Bp.isCollapsed(t)||null==dB.getSelectedNodeByType(e,"table-cell")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=e3(dp.nodes(e,{match:function(e){return dB.checkNodeType(e,"table-cell")},universal:!0}),1),r=e3(n[0],2),o=r[0],i=r[1],a=dB.getParentNode(e,o),u=(null==a?void 0:a.children.length)||0;if(!a||u<=1)eh.removeNodes(e,{mode:"highest"});else{var s=dB.getParentNode(e,a);null!=s&&(s.children||[]).forEach((function(t){ap.isElement(t)&&(t.children||[]).forEach((function(t){var n=dB.findPath(e,t);n.length===i.length&&x1(n.slice(-1),i.slice(-1))&&eh.removeNodes(e,{at:n})}))}))}}},e}(),e8=function(){function e(){this.title=Jj("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=dB.getSelectedNodeByType(e,"table");return null!=t&&p3(t)},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Bp.isCollapsed(t)||null==dB.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=!t,r=dB.getSelectedNodeByType(e,"table");null!=r&&d3(r).forEach((function(t){return eh.setNodes(e,{isHeader:n},{at:dB.findPath(e,t)})}))}},e}(),t8=function(){function e(){this.title=Jj("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=dB.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||!Bp.isCollapsed(t)||null==dB.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n={width:t?"auto":"100%"};eh.setNodes(e,n,{mode:"highest"})}},e}(),n8={renderElems:[g5,v5,y5],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:[m5],parseElemsHtml:[N5,L5,R5],menus:[{key:"insertTable",factory:function(){return new M5}},{key:"deleteTable",factory:function(){return new z5}},{key:"insertTableRow",factory:function(){return new $5}},{key:"deleteTableRow",factory:function(){return new H5}},{key:"insertTableCol",factory:function(){return new J5}},{key:"deleteTableCol",factory:function(){return new Q5}},{key:"tableHeader",factory:function(){return new e8}},{key:"tableFullWidth",factory:function(){return new t8}}],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==dB.getSelectedNodeByType(s,"table")?t():s.insertText("\n")},s.deleteBackward=function(e){if(!t3(s)){var t=s.selection;if(t){var r=dp.before(s,t);if(r){var o=n3(s,r),i=n3(s,t);if(o&&!i)return}}n(e)}},s.handleTab=function(){var t;if(dB.getSelectedNodeByType(s,"table")){var n=dp.above(e);dB.checkNodeType(n[0],"table-cell")&&eh.select(e,n[1]);var r=dp.next(e);if(r)r[0]&&r[0].text&&(r=null!==(t=dp.above(e,{at:r[1]}))&&void 0!==t?t:r),eh.select(e,r[1]);else{var o=s.children||[],i=o.length;if(dB.checkNodeType(o[i-1],"table")){var u=dB.genEmptyParagraph();eh.insertNodes(s,u,{at:[i]}),s.handleTab()}}}else a()},s.deleteForward=function(e){t3(s)||r(e)},s.normalizeNode=function(e){var t=e3(e,2),n=t[0],r=t[1];if("table"!==dB.getNodeType(n))return o([n,r]);if(dB.isLastNode(s,n)){var i=dB.genEmptyParagraph();eh.insertNodes(s,i,{at:[r[0]+1]})}},s.insertData=function(e){if(null!=dB.getSelectedNodeByType(s,"table")){var t=e.getData("text/plain");"\n"===t||/<img[^>]+>/.test(e.getData("text/html"))?i(e):dp.insertText(s,t)}else i(e)},s.selectAll=function(){var e=s.selection;if(null!=e){var t=dB.getSelectedNodeByType(s,"table-cell");if(null!=t){var n=e.anchor,r=e.focus;if(Ep.equals(n.path.slice(0,3),r.path.slice(0,3)))if(0!==yp.string(t).length){var o=dB.findPath(s,t),i={anchor:dp.start(s,o),focus:dp.end(s,o)};s.select(i)}else u();else u()}else u()}else u()},s}};Zj("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"}}),Zj("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",width:"宽度",height:"高度"}});
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */
- var r8=function(){return r8=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},r8.apply(this,arguments)};function o8(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 i8(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 a8(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 u8="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function s8(e){var t={exports:{}};return e(t,t.exports),t.exports}var l8,c8,f8=function(e){return e&&e.Math==Math&&e},d8=f8("object"==typeof globalThis&&globalThis)||f8("object"==typeof window&&window)||f8("object"==typeof self&&self)||f8("object"==typeof u8&&u8)||function(){return this}()||Function("return this")(),p8=function(e){try{return!!e()}catch(t){return!0}},h8=!p8((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),g8=Function.prototype.call,v8=g8.bind?g8.bind(g8):function(){return g8.apply(g8,arguments)},y8={}.propertyIsEnumerable,m8=Object.getOwnPropertyDescriptor,b8={f:m8&&!y8.call({1:2},1)?function(e){var t=m8(this,e);return!!t&&t.enumerable}:y8},w8=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},E8=Function.prototype,x8=E8.bind,D8=E8.call,C8=x8&&x8.bind(D8),S8=x8?function(e){return e&&C8(D8,e)}:function(e){return e&&function(){return D8.apply(e,arguments)}},A8=S8({}.toString),O8=S8("".slice),k8=function(e){return O8(A8(e),8,-1)},B8=d8.Object,F8=S8("".split),T8=p8((function(){return!B8("z").propertyIsEnumerable(0)}))?function(e){return"String"==k8(e)?F8(e,""):B8(e)}:B8,_8=d8.TypeError,P8=function(e){if(null==e)throw _8("Can't call method on "+e);return e},j8=function(e){return T8(P8(e))},I8=function(e){return"function"==typeof e},N8=function(e){return"object"==typeof e?null!==e:I8(e)},L8=function(e){return I8(e)?e:void 0},R8=function(e,t){return arguments.length<2?L8(d8[e]):d8[e]&&d8[e][t]},M8=S8({}.isPrototypeOf),z8=R8("navigator","userAgent")||"",$8=d8.process,H8=d8.Deno,V8=$8&&$8.versions||H8&&H8.version,U8=V8&&V8.v8;U8&&(c8=(l8=U8.split("."))[0]>0&&l8[0]<4?1:+(l8[0]+l8[1])),!c8&&z8&&(!(l8=z8.match(/Edge\/(\d+)/))||l8[1]>=74)&&(l8=z8.match(/Chrome\/(\d+)/))&&(c8=+l8[1]);var W8=c8,G8=!!Object.getOwnPropertySymbols&&!p8((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&W8&&W8<41})),q8=G8&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,K8=d8.Object,X8=q8?function(e){return"symbol"==typeof e}:function(e){var t=R8("Symbol");return I8(t)&&M8(t.prototype,K8(e))},Y8=d8.String,Z8=function(e){try{return Y8(e)}catch(t){return"Object"}},J8=d8.TypeError,Q8=function(e){if(I8(e))return e;throw J8(Z8(e)+" is not a function")},e7=function(e,t){var n=e[t];return null==n?void 0:Q8(n)},t7=d8.TypeError,n7=Object.defineProperty,r7=function(e,t){try{n7(d8,e,{value:t,configurable:!0,writable:!0})}catch(eI){d8[e]=t}return t},o7=d8["__core-js_shared__"]||r7("__core-js_shared__",{}),i7=s8((function(e){(e.exports=function(e,t){return o7[e]||(o7[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),a7=d8.Object,u7=function(e){return a7(P8(e))},s7=S8({}.hasOwnProperty),l7=Object.hasOwn||function(e,t){return s7(u7(e),t)},c7=0,f7=Math.random(),d7=S8(1..toString),p7=function(e){return"Symbol("+(void 0===e?"":e)+")_"+d7(++c7+f7,36)},h7=i7("wks"),g7=d8.Symbol,v7=g7&&g7.for,y7=q8?g7:g7&&g7.withoutSetter||p7,m7=function(e){if(!l7(h7,e)||!G8&&"string"!=typeof h7[e]){var t="Symbol."+e;G8&&l7(g7,e)?h7[e]=g7[e]:h7[e]=q8&&v7?v7(t):y7(t)}return h7[e]},b7=d8.TypeError,w7=m7("toPrimitive"),E7=function(e){var t=function(e,t){if(!N8(e)||X8(e))return e;var n,r=e7(e,w7);if(r){if(void 0===t&&(t="default"),n=v8(r,e,t),!N8(n)||X8(n))return n;throw b7("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&I8(n=e.toString)&&!N8(r=v8(n,e)))return r;if(I8(n=e.valueOf)&&!N8(r=v8(n,e)))return r;if("string"!==t&&I8(n=e.toString)&&!N8(r=v8(n,e)))return r;throw t7("Can't convert object to primitive value")}(e,t)}(e,"string");return X8(t)?t:t+""},x7=d8.document,D7=N8(x7)&&N8(x7.createElement),C7=function(e){return D7?x7.createElement(e):{}},S7=!h8&&!p8((function(){return 7!=Object.defineProperty(C7("div"),"a",{get:function(){return 7}}).a})),A7=Object.getOwnPropertyDescriptor,O7={f:h8?A7:function(e,t){if(e=j8(e),t=E7(t),S7)try{return A7(e,t)}catch(n){}if(l7(e,t))return w8(!v8(b8.f,e,t),e[t])}},k7=d8.String,B7=d8.TypeError,F7=function(e){if(N8(e))return e;throw B7(k7(e)+" is not an object")},T7=d8.TypeError,_7=Object.defineProperty,P7={f:h8?_7:function(e,t,n){if(F7(e),t=E7(t),F7(n),S7)try{return _7(e,t,n)}catch(r){}if("get"in n||"set"in n)throw T7("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},j7=h8?function(e,t,n){return P7.f(e,t,w8(1,n))}:function(e,t,n){return e[t]=n,e},I7=S8(Function.toString);I8(o7.inspectSource)||(o7.inspectSource=function(e){return I7(e)});var N7,L7,R7,M7=o7.inspectSource,z7=d8.WeakMap,$7=I8(z7)&&/native code/.test(M7(z7)),H7=i7("keys"),V7=function(e){return H7[e]||(H7[e]=p7(e))},U7={},W7=d8.TypeError,G7=d8.WeakMap;if($7||o7.state){var q7=o7.state||(o7.state=new G7),K7=S8(q7.get),X7=S8(q7.has),Y7=S8(q7.set);N7=function(e,t){if(X7(q7,e))throw new W7("Object already initialized");return t.facade=e,Y7(q7,e,t),t},L7=function(e){return K7(q7,e)||{}},R7=function(e){return X7(q7,e)}}else{var Z7=V7("state");U7[Z7]=!0,N7=function(e,t){if(l7(e,Z7))throw new W7("Object already initialized");return t.facade=e,j7(e,Z7,t),t},L7=function(e){return l7(e,Z7)?e[Z7]:{}},R7=function(e){return l7(e,Z7)}}var J7={set:N7,get:L7,has:R7,enforce:function(e){return R7(e)?L7(e):N7(e,{})},getterFor:function(e){return function(t){var n;if(!N8(t)||(n=L7(t)).type!==e)throw W7("Incompatible receiver, "+e+" required");return n}}},Q7=Function.prototype,e9=h8&&Object.getOwnPropertyDescriptor,t9=l7(Q7,"name"),n9={EXISTS:t9,PROPER:t9&&"something"===function(){}.name,CONFIGURABLE:t9&&(!h8||h8&&e9(Q7,"name").configurable)},r9=s8((function(e){var t=n9.CONFIGURABLE,n=J7.get,r=J7.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;I8(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!l7(i,"name")||t&&i.name!==f)&&j7(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==d8?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:j7(e,n,i)):l?e[n]=i:r7(n,i)})(Function.prototype,"toString",(function(){return I8(this)&&n(this).source||M7(this)}))})),o9=Math.ceil,i9=Math.floor,a9=function(e){var t=+e;return t!=t||0===t?0:(t>0?i9:o9)(t)},u9=Math.max,s9=Math.min,l9=function(e,t){var n=a9(e);return n<0?u9(n+t,0):s9(n,t)},c9=Math.min,f9=function(e){return e>0?c9(a9(e),9007199254740991):0},d9=function(e){return f9(e.length)},p9=function(e){return function(t,n,r){var o,i=j8(t),a=d9(i),u=l9(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}},h9={includes:p9(!0),indexOf:p9(!1)},g9=h9.indexOf,v9=S8([].push),y9=function(e,t){var n,r=j8(e),o=0,i=[];for(n in r)!l7(U7,n)&&l7(r,n)&&v9(i,n);for(;t.length>o;)l7(r,n=t[o++])&&(~g9(i,n)||v9(i,n));return i},m9=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],b9=m9.concat("length","prototype"),w9={f:Object.getOwnPropertyNames||function(e){return y9(e,b9)}},E9={f:Object.getOwnPropertySymbols},x9=S8([].concat),D9=R8("Reflect","ownKeys")||function(e){var t=w9.f(F7(e)),n=E9.f;return n?x9(t,n(e)):t},C9=function(e,t){for(var n=D9(t),r=P7.f,o=O7.f,i=0;i<n.length;i++){var a=n[i];l7(e,a)||r(e,a,o(t,a))}},S9=/#|\.prototype\./,A9=function(e,t){var n=k9[O9(e)];return n==F9||n!=B9&&(I8(t)?p8(t):!!t)},O9=A9.normalize=function(e){return String(e).replace(S9,".").toLowerCase()},k9=A9.data={},B9=A9.NATIVE="N",F9=A9.POLYFILL="P",T9=A9,_9=O7.f,P9=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?d8:l?d8[u]||r7(u,{}):(d8[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=_9(n,r))&&a.value:n[r],!T9(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;C9(i,o)}(e.sham||o&&o.sham)&&j7(i,"sham",!0),r9(n,r,i,e)}},j9={};j9[m7("toStringTag")]="z";var I9="[object z]"===String(j9),N9=m7("toStringTag"),L9=d8.Object,R9="Arguments"==k8(function(){return arguments}()),M9=I9?k8: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=L9(e),N9))?n:R9?k8(t):"Object"==(r=k8(t))&&I8(t.callee)?"Arguments":r},z9=d8.String,$9=function(e){if("Symbol"===M9(e))throw TypeError("Cannot convert a Symbol value to a string");return z9(e)},H9="\t\n\v\f\r \u2028\u2029\ufeff",V9=S8("".replace),U9="["+H9+"]",W9=RegExp("^"+U9+U9+"*"),G9=RegExp(U9+U9+"*$"),q9=function(e){return function(t){var n=$9(P8(t));return 1&e&&(n=V9(n,W9,"")),2&e&&(n=V9(n,G9,"")),n}},K9={start:q9(1),end:q9(2),trim:q9(3)},X9=n9.PROPER,Y9=K9.trim;function Z9(e){return e.length?e[0].tagName.toLowerCase():""}function J9(e,t,n){void 0===t&&(t="auto"),void 0===n&&(n="auto");var r=gg(e);return r.attr("width",t),r.attr("height",n),r[0].outerHTML}P9({target:"String",proto:!0,forced:p8((function(){return!!H9.trim()||"
"!=="
".trim()||X9&&"trim"!==H9.trim.name}))},{trim:function(){return Y9(this)}}),P9({global:!0},{globalThis:d8}),Ng&&(gg.fn.append=Ng),Dg&&(gg.fn.on=Dg),qg&&(gg.fn.focus=qg),bg&&(gg.fn.attr=bg),xg&&(gg.fn.val=xg),Pg&&(gg.fn.html=Pg),Rg&&(gg.fn.parent=Rg),mg&&(gg.fn.hasClass=mg),Vg&&(gg.fn.empty=Vg);var Q9,eee={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=dB.isNodeSelected(n,e);if(0===a.trim().indexOf("<iframe "))r=oy("div",{className:"w-e-textarea-video-container","data-selected":p?"true":"",innerHTML:J9(a,c,d)});else{var h=oy("video",{poster:s,controls:!0},oy("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=oy("div",{className:"w-e-textarea-video-container","data-selected":p?"true":""},h)}return Rv("div",{props:{contentEditable:!1},on:{mousedown:function(e){return e.preventDefault()}}},r)}},tee={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+=J9(o,s,c):f+='<video poster="'+a+'" controls="true" width="'+s+'" height="'+c+'"><source src="'+o+'" type="video/mp4"/></video>',f+"\n</div>"}},nee=Object.keys||function(e){return y9(e,m9)},ree=h8?Object.defineProperties:function(e,t){F7(e);for(var n,r=j8(t),o=nee(t),i=o.length,a=0;i>a;)P7.f(e,n=o[a++],r[n]);return e},oee=R8("document","documentElement"),iee=V7("IE_PROTO"),aee=function(){},uee=function(e){return"<script>"+e+"<\/script>"},see=function(e){e.write(uee("")),e.close();var t=e.parentWindow.Object;return e=null,t},lee=function(){try{Q9=new ActiveXObject("htmlfile")}catch(r){}var e,t;lee="undefined"!=typeof document?document.domain&&Q9?see(Q9):((t=C7("iframe")).style.display="none",oee.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(uee("document.F=Object")),e.close(),e.F):see(Q9);for(var n=m9.length;n--;)delete lee.prototype[m9[n]];return lee()};U7[iee]=!0;var cee=Object.create||function(e,t){var n;return null!==e?(aee.prototype=F7(e),n=new aee,aee.prototype=null,n[iee]=e):n=lee(),void 0===t?n:ree(n,t)},fee=m7("unscopables"),dee=Array.prototype;null==dee[fee]&&P7.f(dee,fee,{configurable:!0,value:cee(null)});var pee=function(e){dee[fee][e]=!0},hee=h9.includes;P9({target:"Array",proto:!0},{includes:function(e){return hee(this,e,arguments.length>1?arguments[1]:void 0)}}),pee("includes");var gee={selector:"iframe,video,p",preParseHtml:function(e){var t=gg(e),n=t;if("p"===Z9(t)){var r=t.children();if(1===r.length){var o=r[0],i=o.tagName.toLowerCase();["iframe","video"].includes(i)&&(n=gg(o))}}var a=Z9(n);if("iframe"!==a&&"video"!==a)return n[0];if("video"===n.parent().attr("data-w-e-type"))return n[0];var u=gg('<div data-w-e-type="video" data-w-e-is-void></div>');return u.append(n),u[0]}},vee=S8(S8.bind),yee=function(e,t){return Q8(e),void 0===t?e:vee?vee(e,t):function(){return e.apply(t,arguments)}},mee=Array.isArray||function(e){return"Array"==k8(e)},bee=function(){},wee=[],Eee=R8("Reflect","construct"),xee=/^\s*(?:class|function)\b/,Dee=S8(xee.exec),Cee=!xee.exec(bee),See=function(e){if(!I8(e))return!1;try{return Eee(bee,wee,e),!0}catch(t){return!1}},Aee=!Eee||p8((function(){var e;return See(See.call)||!See(Object)||!See((function(){e=!0}))||e}))?function(e){if(!I8(e))return!1;switch(M9(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Cee||!!Dee(xee,M7(e))}:See,Oee=m7("species"),kee=d8.Array,Bee=function(e,t){return new(mee(n=e)&&(r=n.constructor,(Aee(r)&&(r===kee||mee(r.prototype))||N8(r)&&null===(r=r[Oee]))&&(r=void 0)),void 0===r?kee:r)(0===t?0:t);var n,r},Fee=S8([].push),Tee=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=u7(s),g=T8(h),v=yee(l,c),y=d9(g),m=0,b=f||Bee,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:Fee(w,d)}else switch(e){case 4:return!1;case 7:Fee(w,d)}return i?-1:r||o?o:w}},_ee={forEach:Tee(0),map:Tee(1),filter:Tee(2),some:Tee(3),every:Tee(4),find:Tee(5),findIndex:Tee(6),filterReject:Tee(7)},Pee=_ee.find,jee=!0;"find"in[]&&Array(1).find((function(){jee=!1})),P9({target:"Array",proto:!0,forced:jee},{find:function(e){return Pee(this,e,arguments.length>1?arguments[1]:void 0)}}),pee("find");var Iee=I9?{}.toString:function(){return"[object "+M9(this)+"]"};function Nee(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:""}]}}I9||r9(Object.prototype,"toString",Iee,{unsafe:!0});var Lee,Ree,Mee={selector:'div[data-w-e-type="video"]',parseElemHtml:function(e,t,n){var r=gg(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",Nee(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",Nee(o,i=l.attr("poster")||"",a,u)}},zee=function(){var e=F7(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},$ee=d8.RegExp,Hee=p8((function(){var e=$ee("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),Vee=Hee||p8((function(){return!$ee("a","y").sticky})),Uee={BROKEN_CARET:Hee||p8((function(){var e=$ee("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:Vee,UNSUPPORTED_Y:Hee},Wee=d8.RegExp,Gee=p8((function(){var e=Wee(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),qee=d8.RegExp,Kee=p8((function(){var e=qee("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Xee=J7.get,Yee=i7("native-string-replace",String.prototype.replace),Zee=RegExp.prototype.exec,Jee=Zee,Qee=S8("".charAt),ete=S8("".indexOf),tte=S8("".replace),nte=S8("".slice),rte=(Ree=/b*/g,v8(Zee,Lee=/a/,"a"),v8(Zee,Ree,"a"),0!==Lee.lastIndex||0!==Ree.lastIndex),ote=Uee.BROKEN_CARET,ite=void 0!==/()??/.exec("")[1];(rte||ite||ote||Gee||Kee)&&(Jee=function(e){var t,n,r,o,i,a,u,s=this,l=Xee(s),c=$9(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=v8(Jee,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=ote&&s.sticky,h=v8(zee,s),g=s.source,v=0,y=c;if(p&&(h=tte(h,"y",""),-1===ete(h,"g")&&(h+="g"),y=nte(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==Qee(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),ite&&(n=new RegExp("^"+g+"$(?!\\s)",h)),rte&&(r=s.lastIndex),o=v8(Zee,p?n:s,y),p?o?(o.input=nte(o.input,v),o[0]=nte(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:rte&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),ite&&o&&o.length>1&&v8(Yee,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=cee(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var ate=Jee;P9({target:"RegExp",proto:!0,forced:/./.exec!==ate},{exec:ate});var ute=Function.prototype,ste=ute.apply,lte=ute.bind,cte=ute.call,fte="object"==typeof Reflect&&Reflect.apply||(lte?cte.bind(ste):function(){return cte.apply(ste,arguments)}),dte=(m7("species"),RegExp.prototype),pte=S8("".charAt),hte=S8("".charCodeAt),gte=S8("".slice),vte=function(e){return function(t,n){var r,o,i=$9(P8(t)),a=a9(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=hte(i,a))<55296||r>56319||a+1===u||(o=hte(i,a+1))<56320||o>57343?e?pte(i,a):r:e?gte(i,a,a+2):o-56320+(r-55296<<10)+65536}},yte={codeAt:vte(!1),charAt:vte(!0)},mte=yte.charAt,bte=function(e,t,n){return t+(n?mte(e,t).length:1)},wte=Math.floor,Ete=S8("".charAt),xte=S8("".replace),Dte=S8("".slice),Cte=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Ste=/\$([$&'`]|\d{1,2})/g,Ate=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=Ste;return void 0!==o&&(o=u7(o),s=Cte),xte(i,s,(function(i,s){var l;switch(Ete(s,0)){case"$":return"$";case"&":return e;case"`":return Dte(t,0,n);case"'":return Dte(t,a);case"<":l=o[Dte(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=wte(c/10);return 0===f?i:f<=u?void 0===r[f-1]?Ete(s,1):r[f-1]+Ete(s,1):i}l=r[c-1]}return void 0===l?"":l}))},Ote=d8.TypeError,kte=function(e,t){var n=e.exec;if(I8(n)){var r=v8(n,e,t);return null!==r&&F7(r),r}if("RegExp"===k8(e))return v8(ate,e,t);throw Ote("RegExp#exec called on incompatible receiver")},Bte=m7("replace"),Fte=Math.max,Tte=Math.min,_te=S8([].concat),Pte=S8([].push),jte=S8("".indexOf),Ite=S8("".slice),Nte="$0"==="a".replace(/./,"$0"),Lte=!!/./[Bte]&&""===/./[Bte]("a","$0");function Rte(e){return void 0===e&&(e="r"),e+"-"+cv()}!function(e,t,n,r){var o,i,a=m7(e),u=!p8((function(){var t={};return t[a]=function(){return 7},7!=""[e](t)})),s=u&&!p8((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[a](""),!e}));if(!u||!s||n){var l=S8(/./[a]),c=(o=""[e],i=Lte?"$":"$0",[function(e,t){var n=P8(this),r=null==e?void 0:e7(e,Bte);return r?v8(r,e,n,t):v8(o,$9(n),e,t)},function(e,t){var n=F7(this),r=$9(e);if("string"==typeof t&&-1===jte(t,i)&&-1===jte(t,"$<")){var a=function(e,t,n,r,o){var i=S8(e),a=t.exec;return a===ate||a===dte.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=I8(t);s||(t=$9(t));var c=n.global;if(c){var f=n.unicode;n.lastIndex=0}for(var d=[];;){var p=kte(n,r);if(null===p)break;if(Pte(d,p),!c)break;""===$9(p[0])&&(n.lastIndex=bte(r,f9(n.lastIndex),f))}for(var h,g="",v=0,y=0;y<d.length;y++){for(var m=$9((p=d[y])[0]),b=Fte(Tte(a9(p.index),r.length),0),w=[],E=1;E<p.length;E++)Pte(w,void 0===(h=p[E])?h:String(h));var x=p.groups;if(s){var D=_te([m],w,b,r);void 0!==x&&Pte(D,x);var C=$9(fte(t,void 0,D))}else C=Ate(m,r,b,w,x,t);b>=v&&(g+=Ite(r,v,b)+C,v=b+m.length)}return g+Ite(r,v)}]);r9(String.prototype,e,c[0]),r9(dte,a,c[1])}}("replace",0,!!p8((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!Nte||Lte);var Mte=d8.Promise,zte=function(e,t,n){for(var r in t)r9(e,r,t[r],n);return e},$te=d8.String,Hte=d8.TypeError,Vte=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=S8(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(n,r){return F7(n),function(e){if("object"==typeof e||I8(e))return e;throw Hte("Can't set "+$te(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),Ute=P7.f,Wte=m7("toStringTag"),Gte=function(e,t,n){e&&!l7(e=n?e:e.prototype,Wte)&&Ute(e,Wte,{configurable:!0,value:t})},qte=m7("species"),Kte=d8.TypeError,Xte=function(e,t){if(M8(t,e))return e;throw Kte("Incorrect invocation")},Yte={},Zte=m7("iterator"),Jte=Array.prototype,Qte=m7("iterator"),ene=function(e){if(null!=e)return e7(e,Qte)||e7(e,"@@iterator")||Yte[M9(e)]},tne=d8.TypeError,nne=function(e,t,n){var r,o;F7(e);try{if(!(r=e7(e,"return"))){if("throw"===t)throw n;return n}r=v8(r,e)}catch(i){o=!0,r=i}if("throw"===t)throw n;if(o)throw r;return F7(r),n},rne=d8.TypeError,one=function(e,t){this.stopped=e,this.result=t},ine=one.prototype,ane=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=yee(t,f),v=function(e){return r&&nne(r,"normal",e),new one(!0,e)},y=function(e){return d?(F7(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=ene(e)))throw rne(Z8(e)+" is not iterable");if(void 0!==(c=o)&&(Yte.Array===c||Jte[Zte]===c)){for(i=0,a=d9(e);a>i;i++)if((u=y(e[i]))&&M8(ine,u))return u;return new one(!1)}r=function(e,t){var n=arguments.length<2?ene(e):t;if(Q8(n))return F7(v8(n,e));throw tne(Z8(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=v8(s,r)).done;){try{u=y(l.value)}catch(m){nne(r,"throw",m)}if("object"==typeof u&&u&&M8(ine,u))return u}return new one(!1)},une=m7("iterator"),sne=!1;try{var lne=0,cne={next:function(){return{done:!!lne++}},return:function(){sne=!0}};cne[une]=function(){return this},Array.from(cne,(function(){throw 2}))}catch(Gme){}var fne,dne,pne,hne,gne=function(e,t){if(!t&&!sne)return!1;var n=!1;try{var r={};r[une]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(o){}return n},vne=d8.TypeError,yne=m7("species"),mne=S8([].slice),bne=/(?:ipad|iphone|ipod).*applewebkit/i.test(z8),wne="process"==k8(d8.process),Ene=d8.setImmediate,xne=d8.clearImmediate,Dne=d8.process,Cne=d8.Dispatch,Sne=d8.Function,Ane=d8.MessageChannel,One=d8.String,kne=0,Bne={};try{fne=d8.location}catch(Gme){}var Fne=function(e){if(l7(Bne,e)){var t=Bne[e];delete Bne[e],t()}},Tne=function(e){return function(){Fne(e)}},_ne=function(e){Fne(e.data)},Pne=function(e){d8.postMessage(One(e),fne.protocol+"//"+fne.host)};Ene&&xne||(Ene=function(e){var t=mne(arguments,1);return Bne[++kne]=function(){fte(I8(e)?e:Sne(e),void 0,t)},dne(kne),kne},xne=function(e){delete Bne[e]},wne?dne=function(e){Dne.nextTick(Tne(e))}:Cne&&Cne.now?dne=function(e){Cne.now(Tne(e))}:Ane&&!bne?(hne=(pne=new Ane).port2,pne.port1.onmessage=_ne,dne=yee(hne.postMessage,hne)):d8.addEventListener&&I8(d8.postMessage)&&!d8.importScripts&&fne&&"file:"!==fne.protocol&&!p8(Pne)?(dne=Pne,d8.addEventListener("message",_ne,!1)):dne="onreadystatechange"in C7("script")?function(e){oee.appendChild(C7("script")).onreadystatechange=function(){oee.removeChild(this),Fne(e)}}:function(e){setTimeout(Tne(e),0)});var jne,Ine,Nne,Lne,Rne,Mne,zne,$ne,Hne={set:Ene,clear:xne},Vne=/ipad|iphone|ipod/i.test(z8)&&void 0!==d8.Pebble,Une=/web0s(?!.*chrome)/i.test(z8),Wne=O7.f,Gne=Hne.set,qne=d8.MutationObserver||d8.WebKitMutationObserver,Kne=d8.document,Xne=d8.process,Yne=d8.Promise,Zne=Wne(d8,"queueMicrotask"),Jne=Zne&&Zne.value;Jne||(jne=function(){var e,t;for(wne&&(e=Xne.domain)&&e.exit();Ine;){t=Ine.fn,Ine=Ine.next;try{t()}catch(n){throw Ine?Lne():Nne=void 0,n}}Nne=void 0,e&&e.enter()},bne||wne||Une||!qne||!Kne?!Vne&&Yne&&Yne.resolve?((zne=Yne.resolve(void 0)).constructor=Yne,$ne=yee(zne.then,zne),Lne=function(){$ne(jne)}):wne?Lne=function(){Xne.nextTick(jne)}:(Gne=yee(Gne,d8),Lne=function(){Gne(jne)}):(Rne=!0,Mne=Kne.createTextNode(""),new qne(jne).observe(Mne,{characterData:!0}),Lne=function(){Mne.data=Rne=!Rne}));var Qne,ere,tre,nre,rre=Jne||function(e){var t={fn:e,next:void 0};Nne&&(Nne.next=t),Ine||(Ine=t,Lne()),Nne=t},ore=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=Q8(t),this.reject=Q8(n)},ire={f:function(e){return new ore(e)}},are=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},ure="object"==typeof window,sre=Hne.set,lre=m7("species"),cre="Promise",fre=J7.getterFor(cre),dre=J7.set,pre=J7.getterFor(cre),hre=Mte&&Mte.prototype,gre=Mte,vre=hre,yre=d8.TypeError,mre=d8.document,bre=d8.process,wre=ire.f,Ere=wre,xre=!!(mre&&mre.createEvent&&d8.dispatchEvent),Dre=I8(d8.PromiseRejectionEvent),Cre=!1,Sre=T9(cre,(function(){var e=M7(gre),t=e!==String(gre);if(!t&&66===W8)return!0;if(W8>=51&&/native code/.test(e))return!1;var n=new gre((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[lre]=r,!(Cre=n.then((function(){}))instanceof r)||!t&&ure&&!Dre})),Are=Sre||!gne((function(e){gre.all(e).catch((function(){}))})),Ore=function(e){var t;return!(!N8(e)||!I8(t=e.then))&&t},kre=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;rre((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&&_re(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(yre("Promise-chain cycle")):(u=Ore(a))?v8(u,a,f,d):f(a)):d(r)}catch(h){p&&!s&&p.exit(),d(h)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&Fre(e)}))}},Bre=function(e,t,n){var r,o;xre?((r=mre.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),d8.dispatchEvent(r)):r={promise:t,reason:n},!Dre&&(o=d8["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=d8.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},Fre=function(e){v8(sre,d8,(function(){var t,n=e.facade,r=e.value;if(Tre(e)&&(t=are((function(){wne?bre.emit("unhandledRejection",r,n):Bre("unhandledrejection",n,r)})),e.rejection=wne||Tre(e)?2:1,t.error))throw t.value}))},Tre=function(e){return 1!==e.rejection&&!e.parent},_re=function(e){v8(sre,d8,(function(){var t=e.facade;wne?bre.emit("rejectionHandled",t):Bre("rejectionhandled",t,e.value)}))},Pre=function(e,t,n){return function(r){e(t,r,n)}},jre=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,kre(e,!0))},Ire=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw yre("Promise can't be resolved itself");var r=Ore(t);r?rre((function(){var n={done:!1};try{v8(r,t,Pre(Ire,n,e),Pre(jre,n,e))}catch(o){jre(n,o,e)}})):(e.value=t,e.state=1,kre(e,!1))}catch(o){jre({done:!1},o,e)}}};if(Sre&&(vre=(gre=function(e){Xte(this,vre),Q8(e),v8(Qne,this);var t=fre(this);try{e(Pre(Ire,t),Pre(jre,t))}catch(n){jre(t,n)}}).prototype,(Qne=function(e){dre(this,{type:cre,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=zte(vre,{then:function(e,t){var n,r,o,i=pre(this),a=i.reactions,u=wre((n=gre,void 0===(o=F7(this).constructor)||null==(r=F7(o)[yne])?n:function(e){if(Aee(e))return e;throw vne(Z8(e)+" is not a constructor")}(r)));return u.ok=!I8(e)||e,u.fail=I8(t)&&t,u.domain=wne?bre.domain:void 0,i.parent=!0,a[a.length]=u,0!=i.state&&kre(i,!1),u.promise},catch:function(e){return this.then(void 0,e)}}),ere=function(){var e=new Qne,t=fre(e);this.promise=e,this.resolve=Pre(Ire,t),this.reject=Pre(jre,t)},ire.f=wre=function(e){return e===gre||e===tre?new ere(e):Ere(e)},I8(Mte)&&hre!==Object.prototype)){nre=hre.then,Cre||(r9(hre,"then",(function(e,t){var n=this;return new gre((function(e,t){v8(nre,n,e,t)})).then(e,t)}),{unsafe:!0}),r9(hre,"catch",vre.catch,{unsafe:!0}));try{delete hre.constructor}catch(Gme){}Vte&&Vte(hre,vre)}function Nre(e,t,n){return void 0===n&&(n=""),o8(this,void 0,void 0,(function(){var r,o,i,a,u,s,l;return i8(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,"<").replace(/>/g,">")),l={type:"video",src:s,poster:n,children:[{text:""}]},Promise.resolve().then((function(){eh.insertNodes(e,l)})),o(l),[2]}}))}))}function Lre(){return Rte("w-e-insert-video")}P9({global:!0,wrap:!0,forced:Sre},{Promise:gre}),Gte(gre,cre,!1),function(e){var t=R8("Promise"),n=P7.f;h8&&t&&!t[qte]&&n(t,qte,{configurable:!0,get:function(){return this}})}(),tre=R8(cre),P9({target:cre,stat:!0,forced:Sre},{reject:function(e){var t=wre(this);return v8(t.reject,void 0,e),t.promise}}),P9({target:cre,stat:!0,forced:Sre},{resolve:function(e){return function(e,t){if(F7(e),N8(t)&&t.constructor===e)return t;var n=ire.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),P9({target:cre,stat:!0,forced:Are},{all:function(e){var t=this,n=wre(t),r=n.resolve,o=n.reject,i=are((function(){var n=Q8(t.resolve),i=[],a=0,u=1;ane(e,(function(e){var s=a++,l=!1;u++,v8(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=wre(t),r=n.reject,o=are((function(){var o=Q8(t.resolve);ane(e,(function(e){v8(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var Rre=function(){function e(){this.title=Jj("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=Lre(),this.posterInputId=Lre(),this.buttonId=Lre()}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||!Bp.isCollapsed(t)||!!dB.getSelectedElems(e).some((function(t){var n=dB.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=a8(NP(Jj("videoModule.videoSrc"),r,Jj("videoModule.videoSrcPlaceHolder")),2),u=a[0],s=a[1],l=a8(NP(Jj("videoModule.videoPoster"),o,Jj("videoModule.videoPosterPlaceHolder")),2),c=l[0],f=l[1],d=gg(s),p=gg(f),h=a8(LP(i,Jj("videoModule.ok")),1)[0];if(null==this.$content){var g=gg("<div></div>");g.on("click","#"+i,(function(n){return o8(t,void 0,void 0,(function(){var t,i;return i8(this,(function(a){switch(a.label){case 0:return n.preventDefault(),t=g.find("#"+r).val().trim(),i=g.find("#"+o).val().trim(),[4,Nre(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}(),Mre=S8([].join),zre=T8!=Object,$re=function(e,t){var n=[].join;return!!n&&p8((function(){n.call(null,",",1)}))}();P9({target:"Array",proto:!0,forced:zre||!$re},{join:function(e){return Mre(j8(this),void 0===e?",":e)}});var Hre,Vre,Ure,Wre=!p8((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Gre=V7("IE_PROTO"),qre=d8.Object,Kre=qre.prototype,Xre=Wre?qre.getPrototypeOf:function(e){var t=u7(e);if(l7(t,Gre))return t[Gre];var n=t.constructor;return I8(n)&&t instanceof n?n.prototype:t instanceof qre?Kre:null},Yre=m7("iterator"),Zre=!1;[].keys&&("next"in(Ure=[].keys())?(Vre=Xre(Xre(Ure)))!==Object.prototype&&(Hre=Vre):Zre=!0);var Jre=null==Hre||p8((function(){var e={};return Hre[Yre].call(e)!==e}));Jre&&(Hre={}),I8(Hre[Yre])||r9(Hre,Yre,(function(){return this}));var Qre={IteratorPrototype:Hre,BUGGY_SAFARI_ITERATORS:Zre},eoe=Qre.IteratorPrototype,toe=function(){return this},noe=n9.PROPER,roe=n9.CONFIGURABLE,ooe=Qre.IteratorPrototype,ioe=Qre.BUGGY_SAFARI_ITERATORS,aoe=m7("iterator"),uoe=function(){return this},soe=function(e,t,n,r,o,i,a){var u,s,l;s=r,l=t+" Iterator",(u=n).prototype=cee(eoe,{next:w8(1,s)}),Gte(u,l,!1),Yte[l]=toe;var c,f,d,p=function(e){if(e===o&&m)return m;if(!ioe&&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[aoe]||v["@@iterator"]||o&&v[o],m=!ioe&&y||p(o),b="Array"==t&&v.entries||y;if(b&&(c=Xre(b.call(new e)))!==Object.prototype&&c.next&&(Xre(c)!==ooe&&(Vte?Vte(c,ooe):I8(c[aoe])||r9(c,aoe,uoe)),Gte(c,h,!0)),noe&&"values"==o&&y&&"values"!==y.name&&(roe?j7(v,"name","values"):(g=!0,m=function(){return v8(y,this)})),o)if(f={values:p("values"),keys:i?m:p("keys"),entries:p("entries")},a)for(d in f)(ioe||g||!(d in v))&&r9(v,d,f[d]);else P9({target:t,proto:!0,forced:ioe||g},f);return v[aoe]!==m&&r9(v,aoe,m,{name:o}),Yte[t]=m,f},loe=J7.set,coe=J7.getterFor("Array Iterator"),foe=soe(Array,"Array",(function(e,t){loe(this,{type:"Array Iterator",target:j8(e),index:0,kind:t})}),(function(){var e=coe(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");Yte.Arguments=Yte.Array,pee("keys"),pee("values"),pee("entries");var doe=yte.charAt,poe=J7.set,hoe=J7.getterFor("String Iterator");soe(String,"String",(function(e){poe(this,{type:"String Iterator",string:$9(e),index:0})}),(function(){var e,t=hoe(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=doe(n,r),t.index+=e.length,{value:e,done:!1})}));var goe=function(e,t,n){var r=E7(t);r in e?P7.f(e,r,w8(0,n)):e[r]=n},voe=d8.Array,yoe=Math.max,moe=w9.f,boe="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],woe={f:function(e){return boe&&"Window"==k8(e)?function(e){try{return moe(e)}catch(t){return function(e,t,n){for(var r=d9(e),o=l9(void 0,r),i=l9(r,r),a=voe(yoe(i-o,0)),u=0;o<i;o++,u++)goe(a,u,e[o]);return a.length=u,a}(boe)}}(e):moe(j8(e))}},Eoe=p8((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),xoe=Object.isExtensible,Doe=p8((function(){xoe(1)}))||Eoe?function(e){return!!N8(e)&&(!Eoe||"ArrayBuffer"!=k8(e))&&(!xoe||xoe(e))}:xoe,Coe=!p8((function(){return Object.isExtensible(Object.preventExtensions({}))})),Soe=s8((function(e){var t=P7.f,n=!1,r=p7("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=w9.f,t=S8([].splice),o={};o[r]=1,e(o).length&&(w9.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},P9({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:woe.f}))},fastKey:function(e,t){if(!N8(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!l7(e,r)){if(!Doe(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!l7(e,r)){if(!Doe(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return Coe&&n&&Doe(e)&&!l7(e,r)&&i(e),e}};U7[r]=!0})),Aoe=Soe.getWeakData,Ooe=J7.set,koe=J7.getterFor,Boe=_ee.find,Foe=_ee.findIndex,Toe=S8([].splice),_oe=0,Poe=function(e){return e.frozen||(e.frozen=new joe)},joe=function(){this.entries=[]},Ioe=function(e,t){return Boe(e.entries,(function(e){return e[0]===t}))};joe.prototype={get:function(e){var t=Ioe(this,e);if(t)return t[1]},has:function(e){return!!Ioe(this,e)},set:function(e,t){var n=Ioe(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=Foe(this.entries,(function(t){return t[0]===e}));return~t&&Toe(this.entries,t,1),!!~t}};var Noe,Loe={getConstructor:function(e,t,n,r){var o=e((function(e,o){Xte(e,i),Ooe(e,{type:t,id:_oe++,frozen:void 0}),null!=o&&ane(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=koe(t),u=function(e,t,n){var r=a(e),o=Aoe(F7(t),!0);return!0===o?Poe(r).set(t,n):o[r.id]=n,e};return zte(i,{delete:function(e){var t=a(this);if(!N8(e))return!1;var n=Aoe(e);return!0===n?Poe(t).delete(e):n&&l7(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!N8(e))return!1;var n=Aoe(e);return!0===n?Poe(t).has(e):n&&l7(n,t.id)}}),zte(i,n?{get:function(e){var t=a(this);if(N8(e)){var n=Aoe(e);return!0===n?Poe(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}},Roe=J7.enforce,Moe=!d8.ActiveXObject&&"ActiveXObject"in d8,zoe=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},$oe=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=d8[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=S8(u[e]);r9(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!N8(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!N8(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!N8(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(T9(e,!I8(a)||!(o||u.forEach&&!p8((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),Soe.enable();else if(T9(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=p8((function(){f.has(1)})),h=gne((function(e){new a(e)})),g=!o&&p8((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){Xte(e,u);var n,o,l,c,f,d=(n=new a,o=e,l=s,Vte&&I8(c=o.constructor)&&c!==l&&N8(f=c.prototype)&&f!==l.prototype&&Vte(n,f),n);return null!=t&&ane(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,P9({global:!0,forced:s!=a},l),Gte(s,e),o||n.setStrong(s,e,r),s}("WeakMap",zoe,Loe);if($7&&Moe){Noe=Loe.getConstructor(zoe,"WeakMap",!0),Soe.enable();var Hoe=$oe.prototype,Voe=S8(Hoe.delete),Uoe=S8(Hoe.has),Woe=S8(Hoe.get),Goe=S8(Hoe.set);zte(Hoe,{delete:function(e){if(N8(e)&&!Doe(e)){var t=Roe(this);return t.frozen||(t.frozen=new Noe),Voe(this,e)||t.frozen.delete(e)}return Voe(this,e)},has:function(e){if(N8(e)&&!Doe(e)){var t=Roe(this);return t.frozen||(t.frozen=new Noe),Uoe(this,e)||t.frozen.has(e)}return Uoe(this,e)},get:function(e){if(N8(e)&&!Doe(e)){var t=Roe(this);return t.frozen||(t.frozen=new Noe),Uoe(this,e)?Woe(this,e):t.frozen.get(e)}return Woe(this,e)},set:function(e,t){if(N8(e)&&!Doe(e)){var n=Roe(this);n.frozen||(n.frozen=new Noe),Uoe(this,e)?Goe(this,e,t):n.frozen.set(e,t)}else Goe(this,e,t);return this}})}var qoe={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},Koe=C7("span").classList,Xoe=Koe&&Koe.constructor&&Koe.constructor.prototype,Yoe=Xoe===Object.prototype?void 0:Xoe,Zoe=m7("iterator"),Joe=m7("toStringTag"),Qoe=foe.values,eie=function(e,t){if(e){if(e[Zoe]!==Qoe)try{j7(e,Zoe,Qoe)}catch(r){e[Zoe]=Qoe}if(e[Joe]||j7(e,Joe,t),qoe[t])for(var n in foe)if(e[n]!==foe[n])try{j7(e,n,foe[n])}catch(r){e[n]=foe[n]}}};for(var tie in qoe)eie(d8[tie]&&d8[tie].prototype,tie);eie(Yoe,"DOMTokenList");var nie=n9.EXISTS,rie=P7.f,oie=Function.prototype,iie=S8(oie.toString),aie=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,uie=S8(aie.exec);h8&&!nie&&rie(oie,"name",{configurable:!0,get:function(){try{return uie(aie,iie(this))[1]}catch(hf){return""}}});var sie=m7("species"),lie=W8>=51||!p8((function(){var e=[];return(e.constructor={})[sie]=function(){return{foo:1}},1!==e.slice(Boolean).foo})),cie=m7("species"),fie=d8.Array,die=Math.max;function pie(e){return e.getMenuConfig("uploadVideo")}P9({target:"Array",proto:!0,forced:!lie},{slice:function(e,t){var n,r,o,i=j8(this),a=d9(i),u=l9(e,a),s=l9(void 0===t?a:t,a);if(mee(i)&&(n=i.constructor,(Aee(n)&&(n===fie||mee(n.prototype))||N8(n)&&null===(n=n[cie]))&&(n=void 0),n===fie||void 0===n))return mne(i,u,s);for(r=new(void 0===n?fie:n)(die(s-u,0)),o=0;u<s;u++,o++)u in i&&goe(r,o,i[u]);return r.length=o,r}});var hie=new WeakMap;function gie(e,t){return o8(this,void 0,void 0,(function(){var n,r,o,i;return i8(this,(function(a){switch(a.label){case 0:return n=function(e){var t=hie.get(e);if(null!=t)return t;var n=pie(e),r=n.onSuccess,o=n.onProgress,i=n.onFailed,a=n.customInsert,u=n.onError;return t=aj(r8(r8({},n),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,n){if(a)return a(n,(function(t,n){return Nre(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;Nre(e,f,void 0===d?"":d),r(t,n)}else i(t,n)},onError:function(e,t,n){u(e,t,n)}})),hie.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 vie=function(){function e(){this.title=Jj("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 Nre(e,t,n)}));else{var a="";o.length>0&&(a='accept="'+o.join(", ")+'"');var u=gg("body"),s=gg('<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;o8(this,void 0,void 0,(function(){var o,i,a,u,s,l;return i8(this,(function(c){switch(c.label){case 0:if(null==t)return[2];o=Array.prototype.slice.call(t),i=pie(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 Nre(e,t,n)}))]:[3,5]);case 4:return c.sent(),[3,7];case 5:return[4,gie(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||!Bp.isCollapsed(t)||!!dB.getSelectedElems(e).some((function(t){var n=dB.getNodeType(t);return"pre"===n||"list-item"===n||!!e.isVoid(t)}))},e.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadVideo")},e}(),yie=n9.PROPER,mie=RegExp.prototype,bie=mie.toString,wie=S8(zee),Eie=p8((function(){return"/a/b"!=bie.call({source:"a",flags:"b"})})),xie=yie&&"toString"!=bie.name;function Die(){return Rte("w-e-insert-video")}(Eie||xie)&&r9(RegExp.prototype,"toString",(function(){var e=F7(this),t=$9(e.source),n=e.flags;return"/"+t+"/"+$9(void 0===n&&M8(mie,e)&&!("flags"in mie)?wie(e):n)}),{unsafe:!0});var Cie=function(){function e(){this.title=Jj("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=Die(),this.heightInputId=Die(),this.buttonId=Die()}return e.prototype.getSelectedVideoNode=function(e){return dB.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=a8(NP(Jj("videoModule.width"),n,"auto"),2),a=i[0],u=gg(i[1]),s=a8(NP(Jj("videoModule.height"),r,"auto"),2),l=s[0],c=gg(s[1]),f=a8(LP(o,Jj("videoModule.ok")),1)[0];if(null==this.$content){var d=gg("<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(),eh.setNodes(e,{width:s,height:l},{match:function(e){return dB.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}(),Sie={renderElems:[eee],elemsToHtml:[tee],preParseHtml:[gee],parseElemsHtml:[Mee],menus:[{key:"insertVideo",factory:function(){return new Rre},config:{onInsertedVideo:function(e){},checkVideo:function(e,t){return!0},parseVideoSrc:function(e){return e}}},{key:"uploadVideo",factory:function(){return new vie},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 Cie}}],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=a8(e,2),o=t[0],i=t[1];return"video"===dB.getNodeType(o)&&dB.isLastNode(r,o)&&eh.insertNodes(r,dB.genEmptyParagraph(),{at:[i[0]+1]}),n([o,i])},r}};Zj("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),Zj("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});var Aie="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Oie(e){var t={exports:{}};return e(t,t.exports),t.exports}var kie,Bie,Fie=function(e){return e&&e.Math==Math&&e},Tie=Fie("object"==typeof globalThis&&globalThis)||Fie("object"==typeof window&&window)||Fie("object"==typeof self&&self)||Fie("object"==typeof Aie&&Aie)||function(){return this}()||Function("return this")(),_ie=function(e){try{return!!e()}catch(t){return!0}},Pie=!_ie((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),jie=Function.prototype.call,Iie=jie.bind?jie.bind(jie):function(){return jie.apply(jie,arguments)},Nie={}.propertyIsEnumerable,Lie=Object.getOwnPropertyDescriptor,Rie={f:Lie&&!Nie.call({1:2},1)?function(e){var t=Lie(this,e);return!!t&&t.enumerable}:Nie},Mie=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},zie=Function.prototype,$ie=zie.bind,Hie=zie.call,Vie=$ie&&$ie.bind(Hie),Uie=$ie?function(e){return e&&Vie(Hie,e)}:function(e){return e&&function(){return Hie.apply(e,arguments)}},Wie=Uie({}.toString),Gie=Uie("".slice),qie=function(e){return Gie(Wie(e),8,-1)},Kie=Tie.Object,Xie=Uie("".split),Yie=_ie((function(){return!Kie("z").propertyIsEnumerable(0)}))?function(e){return"String"==qie(e)?Xie(e,""):Kie(e)}:Kie,Zie=Tie.TypeError,Jie=function(e){if(null==e)throw Zie("Can't call method on "+e);return e},Qie=function(e){return Yie(Jie(e))},eae=function(e){return"function"==typeof e},tae=function(e){return"object"==typeof e?null!==e:eae(e)},nae=function(e){return eae(e)?e:void 0},rae=function(e,t){return arguments.length<2?nae(Tie[e]):Tie[e]&&Tie[e][t]},oae=Uie({}.isPrototypeOf),iae=rae("navigator","userAgent")||"",aae=Tie.process,uae=Tie.Deno,sae=aae&&aae.versions||uae&&uae.version,lae=sae&&sae.v8;lae&&(Bie=(kie=lae.split("."))[0]>0&&kie[0]<4?1:+(kie[0]+kie[1])),!Bie&&iae&&(!(kie=iae.match(/Edge\/(\d+)/))||kie[1]>=74)&&(kie=iae.match(/Chrome\/(\d+)/))&&(Bie=+kie[1]);var cae=Bie,fae=!!Object.getOwnPropertySymbols&&!_ie((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&cae&&cae<41})),dae=fae&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,pae=Tie.Object,hae=dae?function(e){return"symbol"==typeof e}:function(e){var t=rae("Symbol");return eae(t)&&oae(t.prototype,pae(e))},gae=Tie.String,vae=function(e){try{return gae(e)}catch(t){return"Object"}},yae=Tie.TypeError,mae=function(e){if(eae(e))return e;throw yae(vae(e)+" is not a function")},bae=function(e,t){var n=e[t];return null==n?void 0:mae(n)},wae=Tie.TypeError,Eae=Object.defineProperty,xae=function(e,t){try{Eae(Tie,e,{value:t,configurable:!0,writable:!0})}catch(eI){Tie[e]=t}return t},Dae=Tie["__core-js_shared__"]||xae("__core-js_shared__",{}),Cae=Oie((function(e){(e.exports=function(e,t){return Dae[e]||(Dae[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Sae=Tie.Object,Aae=function(e){return Sae(Jie(e))},Oae=Uie({}.hasOwnProperty),kae=Object.hasOwn||function(e,t){return Oae(Aae(e),t)},Bae=0,Fae=Math.random(),Tae=Uie(1..toString),_ae=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Tae(++Bae+Fae,36)},Pae=Cae("wks"),jae=Tie.Symbol,Iae=jae&&jae.for,Nae=dae?jae:jae&&jae.withoutSetter||_ae,Lae=function(e){if(!kae(Pae,e)||!fae&&"string"!=typeof Pae[e]){var t="Symbol."+e;fae&&kae(jae,e)?Pae[e]=jae[e]:Pae[e]=dae&&Iae?Iae(t):Nae(t)}return Pae[e]},Rae=Tie.TypeError,Mae=Lae("toPrimitive"),zae=function(e){var t=function(e,t){if(!tae(e)||hae(e))return e;var n,r=bae(e,Mae);if(r){if(void 0===t&&(t="default"),n=Iie(r,e,t),!tae(n)||hae(n))return n;throw Rae("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&eae(n=e.toString)&&!tae(r=Iie(n,e)))return r;if(eae(n=e.valueOf)&&!tae(r=Iie(n,e)))return r;if("string"!==t&&eae(n=e.toString)&&!tae(r=Iie(n,e)))return r;throw wae("Can't convert object to primitive value")}(e,t)}(e,"string");return hae(t)?t:t+""},$ae=Tie.document,Hae=tae($ae)&&tae($ae.createElement),Vae=function(e){return Hae?$ae.createElement(e):{}},Uae=!Pie&&!_ie((function(){return 7!=Object.defineProperty(Vae("div"),"a",{get:function(){return 7}}).a})),Wae=Object.getOwnPropertyDescriptor,Gae={f:Pie?Wae:function(e,t){if(e=Qie(e),t=zae(t),Uae)try{return Wae(e,t)}catch(n){}if(kae(e,t))return Mie(!Iie(Rie.f,e,t),e[t])}},qae=Tie.String,Kae=Tie.TypeError,Xae=function(e){if(tae(e))return e;throw Kae(qae(e)+" is not an object")},Yae=Tie.TypeError,Zae=Object.defineProperty,Jae={f:Pie?Zae:function(e,t,n){if(Xae(e),t=zae(t),Xae(n),Uae)try{return Zae(e,t,n)}catch(r){}if("get"in n||"set"in n)throw Yae("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Qae=Pie?function(e,t,n){return Jae.f(e,t,Mie(1,n))}:function(e,t,n){return e[t]=n,e},eue=Uie(Function.toString);eae(Dae.inspectSource)||(Dae.inspectSource=function(e){return eue(e)});var tue,nue,rue,oue=Dae.inspectSource,iue=Tie.WeakMap,aue=eae(iue)&&/native code/.test(oue(iue)),uue=Cae("keys"),sue=function(e){return uue[e]||(uue[e]=_ae(e))},lue={},cue=Tie.TypeError,fue=Tie.WeakMap;if(aue||Dae.state){var due=Dae.state||(Dae.state=new fue),pue=Uie(due.get),hue=Uie(due.has),gue=Uie(due.set);tue=function(e,t){if(hue(due,e))throw new cue("Object already initialized");return t.facade=e,gue(due,e,t),t},nue=function(e){return pue(due,e)||{}},rue=function(e){return hue(due,e)}}else{var vue=sue("state");lue[vue]=!0,tue=function(e,t){if(kae(e,vue))throw new cue("Object already initialized");return t.facade=e,Qae(e,vue,t),t},nue=function(e){return kae(e,vue)?e[vue]:{}},rue=function(e){return kae(e,vue)}}var yue={set:tue,get:nue,has:rue,enforce:function(e){return rue(e)?nue(e):tue(e,{})},getterFor:function(e){return function(t){var n;if(!tae(t)||(n=nue(t)).type!==e)throw cue("Incompatible receiver, "+e+" required");return n}}},mue=Function.prototype,bue=Pie&&Object.getOwnPropertyDescriptor,wue=kae(mue,"name"),Eue={EXISTS:wue,PROPER:wue&&"something"===function(){}.name,CONFIGURABLE:wue&&(!Pie||Pie&&bue(mue,"name").configurable)},xue=Oie((function(e){var t=Eue.CONFIGURABLE,n=yue.get,r=yue.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;eae(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!kae(i,"name")||t&&i.name!==f)&&Qae(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==Tie?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:Qae(e,n,i)):l?e[n]=i:xae(n,i)})(Function.prototype,"toString",(function(){return eae(this)&&n(this).source||oue(this)}))})),Due=Math.ceil,Cue=Math.floor,Sue=function(e){var t=+e;return t!=t||0===t?0:(t>0?Cue:Due)(t)},Aue=Math.max,Oue=Math.min,kue=function(e,t){var n=Sue(e);return n<0?Aue(n+t,0):Oue(n,t)},Bue=Math.min,Fue=function(e){return e>0?Bue(Sue(e),9007199254740991):0},Tue=function(e){return Fue(e.length)},_ue=function(e){return function(t,n,r){var o,i=Qie(t),a=Tue(i),u=kue(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),Pue=Uie([].push),jue=function(e,t){var n,r=Qie(e),o=0,i=[];for(n in r)!kae(lue,n)&&kae(r,n)&&Pue(i,n);for(;t.length>o;)kae(r,n=t[o++])&&(~_ue(i,n)||Pue(i,n));return i},Iue=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Nue=Iue.concat("length","prototype"),Lue={f:Object.getOwnPropertyNames||function(e){return jue(e,Nue)}},Rue={f:Object.getOwnPropertySymbols},Mue=Uie([].concat),zue=rae("Reflect","ownKeys")||function(e){var t=Lue.f(Xae(e)),n=Rue.f;return n?Mue(t,n(e)):t},$ue=function(e,t){for(var n=zue(t),r=Jae.f,o=Gae.f,i=0;i<n.length;i++){var a=n[i];kae(e,a)||r(e,a,o(t,a))}},Hue=/#|\.prototype\./,Vue=function(e,t){var n=Wue[Uue(e)];return n==que||n!=Gue&&(eae(t)?_ie(t):!!t)},Uue=Vue.normalize=function(e){return String(e).replace(Hue,".").toLowerCase()},Wue=Vue.data={},Gue=Vue.NATIVE="N",que=Vue.POLYFILL="P",Kue=Vue,Xue=Gae.f,Yue=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?Tie:l?Tie[u]||xae(u,{}):(Tie[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Xue(n,r))&&a.value:n[r],!Kue(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;$ue(i,o)}(e.sham||o&&o.sham)&&Qae(i,"sham",!0),xue(n,r,i,e)}},Zue=Array.isArray||function(e){return"Array"==qie(e)},Jue={};Jue[Lae("toStringTag")]="z";var Que="[object z]"===String(Jue),ese=Lae("toStringTag"),tse=Tie.Object,nse="Arguments"==qie(function(){return arguments}()),rse=Que?qie: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=tse(e),ese))?n:nse?qie(t):"Object"==(r=qie(t))&&eae(t.callee)?"Arguments":r},ose=function(){},ise=[],ase=rae("Reflect","construct"),use=/^\s*(?:class|function)\b/,sse=Uie(use.exec),lse=!use.exec(ose),cse=function(e){if(!eae(e))return!1;try{return ase(ose,ise,e),!0}catch(t){return!1}},fse=!ase||_ie((function(){var e;return cse(cse.call)||!cse(Object)||!cse((function(){e=!0}))||e}))?function(e){if(!eae(e))return!1;switch(rse(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return lse||!!sse(use,oue(e))}:cse,dse=function(e,t,n){var r=zae(t);r in e?Jae.f(e,r,Mie(0,n)):e[r]=n},pse=Lae("species"),hse=Uie([].slice),gse=cae>=51||!_ie((function(){var e=[];return(e.constructor={})[pse]=function(){return{foo:1}},1!==e.slice(Boolean).foo})),vse=Lae("species"),yse=Tie.Array,mse=Math.max;Yue({target:"Array",proto:!0,forced:!gse},{slice:function(e,t){var n,r,o,i=Qie(this),a=Tue(i),u=kue(e,a),s=kue(void 0===t?a:t,a);if(Zue(i)&&(n=i.constructor,(fse(n)&&(n===yse||Zue(n.prototype))||tae(n)&&null===(n=n[vse]))&&(n=void 0),n===yse||void 0===n))return hse(i,u,s);for(r=new(void 0===n?yse:n)(mse(s-u,0)),o=0;u<s;u++,o++)u in i&&dse(r,o,i[u]);return r.length=o,r}});var bse=Que?{}.toString:function(){return"[object "+rse(this)+"]"};Que||xue(Object.prototype,"toString",bse,{unsafe:!0});var wse,Ese=Tie.String,xse=function(e){if("Symbol"===rse(e))throw TypeError("Cannot convert a Symbol value to a string");return Ese(e)},Dse=function(){var e=Xae(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},Cse=Tie.RegExp,Sse=_ie((function(){var e=Cse("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),Ase=Sse||_ie((function(){return!Cse("a","y").sticky})),Ose={BROKEN_CARET:Sse||_ie((function(){var e=Cse("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:Ase,UNSUPPORTED_Y:Sse},kse=Object.keys||function(e){return jue(e,Iue)},Bse=Pie?Object.defineProperties:function(e,t){Xae(e);for(var n,r=Qie(t),o=kse(t),i=o.length,a=0;i>a;)Jae.f(e,n=o[a++],r[n]);return e},Fse=rae("document","documentElement"),Tse=sue("IE_PROTO"),_se=function(){},Pse=function(e){return"<script>"+e+"<\/script>"},jse=function(e){e.write(Pse("")),e.close();var t=e.parentWindow.Object;return e=null,t},Ise=function(){try{wse=new ActiveXObject("htmlfile")}catch(r){}var e,t;Ise="undefined"!=typeof document?document.domain&&wse?jse(wse):((t=Vae("iframe")).style.display="none",Fse.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Pse("document.F=Object")),e.close(),e.F):jse(wse);for(var n=Iue.length;n--;)delete Ise.prototype[Iue[n]];return Ise()};lue[Tse]=!0;var Nse,Lse,Rse=Object.create||function(e,t){var n;return null!==e?(_se.prototype=Xae(e),n=new _se,_se.prototype=null,n[Tse]=e):n=Ise(),void 0===t?n:Bse(n,t)},Mse=Tie.RegExp,zse=_ie((function(){var e=Mse(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),$se=Tie.RegExp,Hse=_ie((function(){var e=$se("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Vse=yue.get,Use=Cae("native-string-replace",String.prototype.replace),Wse=RegExp.prototype.exec,Gse=Wse,qse=Uie("".charAt),Kse=Uie("".indexOf),Xse=Uie("".replace),Yse=Uie("".slice),Zse=(Lse=/b*/g,Iie(Wse,Nse=/a/,"a"),Iie(Wse,Lse,"a"),0!==Nse.lastIndex||0!==Lse.lastIndex),Jse=Ose.BROKEN_CARET,Qse=void 0!==/()??/.exec("")[1];(Zse||Qse||Jse||zse||Hse)&&(Gse=function(e){var t,n,r,o,i,a,u,s=this,l=Vse(s),c=xse(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Iie(Gse,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=Jse&&s.sticky,h=Iie(Dse,s),g=s.source,v=0,y=c;if(p&&(h=Xse(h,"y",""),-1===Kse(h,"g")&&(h+="g"),y=Yse(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==qse(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),Qse&&(n=new RegExp("^"+g+"$(?!\\s)",h)),Zse&&(r=s.lastIndex),o=Iie(Wse,p?n:s,y),p?o?(o.input=Yse(o.input,v),o[0]=Yse(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Zse&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Qse&&o&&o.length>1&&Iie(Use,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=Rse(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var ele=Gse;Yue({target:"RegExp",proto:!0,forced:/./.exec!==ele},{exec:ele});var tle=Function.prototype,nle=tle.apply,rle=tle.bind,ole=tle.call,ile="object"==typeof Reflect&&Reflect.apply||(rle?ole.bind(nle):function(){return ole.apply(nle,arguments)}),ale=Lae("species"),ule=RegExp.prototype,sle=Lae("match"),lle=Tie.TypeError,cle=Lae("species"),fle=function(e,t){var n,r=Xae(e).constructor;return void 0===r||null==(n=Xae(r)[cle])?t:function(e){if(fse(e))return e;throw lle(vae(e)+" is not a constructor")}(n)},dle=Uie("".charAt),ple=Uie("".charCodeAt),hle=Uie("".slice),gle=function(e){return function(t,n){var r,o,i=xse(Jie(t)),a=Sue(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=ple(i,a))<55296||r>56319||a+1===u||(o=ple(i,a+1))<56320||o>57343?e?dle(i,a):r:e?hle(i,a,a+2):o-56320+(r-55296<<10)+65536}},vle={codeAt:gle(!1),charAt:gle(!0)},yle=vle.charAt,mle=function(e,t,n){return t+(n?yle(e,t).length:1)},ble=Tie.Array,wle=Math.max,Ele=function(e,t,n){for(var r=Tue(e),o=kue(t,r),i=kue(void 0===n?r:n,r),a=ble(wle(i-o,0)),u=0;o<i;o++,u++)dse(a,u,e[o]);return a.length=u,a},xle=Tie.TypeError,Dle=function(e,t){var n=e.exec;if(eae(n)){var r=Iie(n,e,t);return null!==r&&Xae(r),r}if("RegExp"===qie(e))return Iie(ele,e,t);throw xle("RegExp#exec called on incompatible receiver")},Cle=Ose.UNSUPPORTED_Y,Sle=Math.min,Ale=[].push,Ole=Uie(/./.exec),kle=Uie(Ale),Ble=Uie("".slice);!function(e,t,n,r){var o,i,a,u=Lae(e),s=!_ie((function(){var t={};return t[u]=function(){return 7},7!=""[e](t)})),l=s&&!_ie((function(){var e=!1,t=/a/;return(t={}).constructor={},t.constructor[ale]=function(){return t},t.flags="",t[u]=/./[u],t.exec=function(){return e=!0,null},t[u](""),!e}));if(!s||!l||n){var c=Uie(/./[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=xse(Jie(this)),a=void 0===t?4294967295:t>>>0;if(0===a)return[];if(void 0===e)return[o];if(!tae(n=e)||!(void 0!==(r=n[sle])?r:"RegExp"==qie(n)))return Iie(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=Iie(ele,p,o))&&!((s=p.lastIndex)>d&&(kle(c,Ble(o,d,u.index)),u.length>1&&u.index<o.length&&ile(Ale,c,Ele(u,1)),l=u[0].length,d=s,c.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return d===o.length?!l&&Ole(p,"")||kle(c,""):kle(c,Ble(o,d)),c.length>a?Ele(c,0,a):c}:"0".split(void 0,0).length?function(e,t){return void 0===e&&0===t?[]:Iie(i,this,e,t)}:i,[function(e,t){var n=Jie(this),r=null==e?void 0:bae(e,o);return r?Iie(r,e,n,t):Iie(a,xse(n),e,t)},function(e,t){var n=Xae(this),r=xse(e),o=function(e,t,n,r,o){var i=Uie(e),a=t.exec;return a===ele||a===ule.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=fle(n,RegExp),l=n.unicode,f=(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.unicode?"u":"")+(Cle?"g":"y"),d=new u(Cle?"^(?:"+n.source+")":n,f),p=void 0===t?4294967295:t>>>0;if(0===p)return[];if(0===r.length)return null===Dle(d,r)?[r]:[];for(var h=0,g=0,v=[];g<r.length;){d.lastIndex=Cle?0:g;var y,m=Dle(d,Cle?Ble(r,g):r);if(null===m||(y=Sle(Fue(d.lastIndex+(Cle?g:0)),r.length))===h)g=mle(r,g,l);else{if(kle(v,Ble(r,h,g)),v.length===p)return v;for(var b=1;b<=m.length-1;b++)if(kle(v,m[b]),v.length===p)return v;g=h=y}}return kle(v,Ble(r,h)),v}]);xue(String.prototype,e,f[0]),xue(ule,u,f[1])}r&&Qae(ule[u],"sham",!0)}("split",0,!!_ie((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]})),Cle);
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */
- var Fle=function(){return Fle=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},Fle.apply(this,arguments)};function Tle(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 _le(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 Ple=Lae("unscopables"),jle=Array.prototype;null==jle[Ple]&&Jae.f(jle,Ple,{configurable:!0,value:Rse(null)});var Ile,Nle,Lle,Rle=function(e){jle[Ple][e]=!0},Mle={},zle=!_ie((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),$le=sue("IE_PROTO"),Hle=Tie.Object,Vle=Hle.prototype,Ule=zle?Hle.getPrototypeOf:function(e){var t=Aae(e);if(kae(t,$le))return t[$le];var n=t.constructor;return eae(n)&&t instanceof n?n.prototype:t instanceof Hle?Vle:null},Wle=Lae("iterator"),Gle=!1;[].keys&&("next"in(Lle=[].keys())?(Nle=Ule(Ule(Lle)))!==Object.prototype&&(Ile=Nle):Gle=!0);var qle=null==Ile||_ie((function(){var e={};return Ile[Wle].call(e)!==e}));qle&&(Ile={}),eae(Ile[Wle])||xue(Ile,Wle,(function(){return this}));var Kle={IteratorPrototype:Ile,BUGGY_SAFARI_ITERATORS:Gle},Xle=Jae.f,Yle=Lae("toStringTag"),Zle=function(e,t,n){e&&!kae(e=n?e:e.prototype,Yle)&&Xle(e,Yle,{configurable:!0,value:t})},Jle=Kle.IteratorPrototype,Qle=function(){return this},ece=Tie.String,tce=Tie.TypeError,nce=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Uie(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(n,r){return Xae(n),function(e){if("object"==typeof e||eae(e))return e;throw tce("Can't set "+ece(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),rce=Eue.PROPER,oce=Eue.CONFIGURABLE,ice=Kle.IteratorPrototype,ace=Kle.BUGGY_SAFARI_ITERATORS,uce=Lae("iterator"),sce=function(){return this},lce=function(e,t,n,r,o,i,a){var u,s,l;s=r,l=t+" Iterator",(u=n).prototype=Rse(Jle,{next:Mie(1,s)}),Zle(u,l,!1),Mle[l]=Qle;var c,f,d,p=function(e){if(e===o&&m)return m;if(!ace&&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[uce]||v["@@iterator"]||o&&v[o],m=!ace&&y||p(o),b="Array"==t&&v.entries||y;if(b&&(c=Ule(b.call(new e)))!==Object.prototype&&c.next&&(Ule(c)!==ice&&(nce?nce(c,ice):eae(c[uce])||xue(c,uce,sce)),Zle(c,h,!0)),rce&&"values"==o&&y&&"values"!==y.name&&(oce?Qae(v,"name","values"):(g=!0,m=function(){return Iie(y,this)})),o)if(f={values:p("values"),keys:i?m:p("keys"),entries:p("entries")},a)for(d in f)(ace||g||!(d in v))&&xue(v,d,f[d]);else Yue({target:t,proto:!0,forced:ace||g},f);return v[uce]!==m&&xue(v,uce,m,{name:o}),Mle[t]=m,f},cce=yue.set,fce=yue.getterFor("Array Iterator"),dce=lce(Array,"Array",(function(e,t){cce(this,{type:"Array Iterator",target:Qie(e),index:0,kind:t})}),(function(){var e=fce(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");Mle.Arguments=Mle.Array,Rle("keys"),Rle("values"),Rle("entries");var pce=vle.charAt,hce=yue.set,gce=yue.getterFor("String Iterator");lce(String,"String",(function(e){hce(this,{type:"String Iterator",string:xse(e),index:0})}),(function(){var e,t=gce(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=pce(n,r),t.index+=e.length,{value:e,done:!1})}));var vce=function(e,t,n){for(var r in t)xue(e,r,t[r],n);return e},yce=Lue.f,mce="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],bce={f:function(e){return mce&&"Window"==qie(e)?function(e){try{return yce(e)}catch(t){return Ele(mce)}}(e):yce(Qie(e))}},wce=_ie((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),Ece=Object.isExtensible,xce=_ie((function(){Ece(1)}))||wce?function(e){return!!tae(e)&&(!wce||"ArrayBuffer"!=qie(e))&&(!Ece||Ece(e))}:Ece,Dce=!_ie((function(){return Object.isExtensible(Object.preventExtensions({}))})),Cce=Oie((function(e){var t=Jae.f,n=!1,r=_ae("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=Lue.f,t=Uie([].splice),o={};o[r]=1,e(o).length&&(Lue.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},Yue({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:bce.f}))},fastKey:function(e,t){if(!tae(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!kae(e,r)){if(!xce(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!kae(e,r)){if(!xce(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return Dce&&n&&xce(e)&&!kae(e,r)&&i(e),e}};lue[r]=!0})),Sce=Uie(Uie.bind),Ace=function(e,t){return mae(e),void 0===t?e:Sce?Sce(e,t):function(){return e.apply(t,arguments)}},Oce=Lae("iterator"),kce=Array.prototype,Bce=Lae("iterator"),Fce=function(e){if(null!=e)return bae(e,Bce)||bae(e,"@@iterator")||Mle[rse(e)]},Tce=Tie.TypeError,_ce=function(e,t,n){var r,o;Xae(e);try{if(!(r=bae(e,"return"))){if("throw"===t)throw n;return n}r=Iie(r,e)}catch(i){o=!0,r=i}if("throw"===t)throw n;if(o)throw r;return Xae(r),n},Pce=Tie.TypeError,jce=function(e,t){this.stopped=e,this.result=t},Ice=jce.prototype,Nce=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=Ace(t,f),v=function(e){return r&&_ce(r,"normal",e),new jce(!0,e)},y=function(e){return d?(Xae(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=Fce(e)))throw Pce(vae(e)+" is not iterable");if(void 0!==(c=o)&&(Mle.Array===c||kce[Oce]===c)){for(i=0,a=Tue(e);a>i;i++)if((u=y(e[i]))&&oae(Ice,u))return u;return new jce(!1)}r=function(e,t){var n=arguments.length<2?Fce(e):t;if(mae(n))return Xae(Iie(n,e));throw Tce(vae(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=Iie(s,r)).done;){try{u=y(l.value)}catch(m){_ce(r,"throw",m)}if("object"==typeof u&&u&&oae(Ice,u))return u}return new jce(!1)},Lce=Tie.TypeError,Rce=function(e,t){if(oae(t,e))return e;throw Lce("Incorrect invocation")},Mce=Lae("iterator"),zce=!1;try{var $ce=0,Hce={next:function(){return{done:!!$ce++}},return:function(){zce=!0}};Hce[Mce]=function(){return this},Array.from(Hce,(function(){throw 2}))}catch(Gme){}var Vce=function(e,t){if(!t&&!zce)return!1;var n=!1;try{var r={};r[Mce]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(o){}return n},Uce=Lae("species"),Wce=Tie.Array,Gce=function(e,t){return new(Zue(n=e)&&(r=n.constructor,(fse(r)&&(r===Wce||Zue(r.prototype))||tae(r)&&null===(r=r[Uce]))&&(r=void 0)),void 0===r?Wce:r)(0===t?0:t);var n,r},qce=Uie([].push),Kce=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=Aae(s),g=Yie(h),v=Ace(l,c),y=Tue(g),m=0,b=f||Gce,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:qce(w,d)}else switch(e){case 4:return!1;case 7:qce(w,d)}return i?-1:r||o?o:w}},Xce={forEach:Kce(0),map:Kce(1),filter:Kce(2),some:Kce(3),every:Kce(4),find:Kce(5),findIndex:Kce(6),filterReject:Kce(7)},Yce=Cce.getWeakData,Zce=yue.set,Jce=yue.getterFor,Qce=Xce.find,efe=Xce.findIndex,tfe=Uie([].splice),nfe=0,rfe=function(e){return e.frozen||(e.frozen=new ofe)},ofe=function(){this.entries=[]},ife=function(e,t){return Qce(e.entries,(function(e){return e[0]===t}))};ofe.prototype={get:function(e){var t=ife(this,e);if(t)return t[1]},has:function(e){return!!ife(this,e)},set:function(e,t){var n=ife(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=efe(this.entries,(function(t){return t[0]===e}));return~t&&tfe(this.entries,t,1),!!~t}};var afe,ufe={getConstructor:function(e,t,n,r){var o=e((function(e,o){Rce(e,i),Zce(e,{type:t,id:nfe++,frozen:void 0}),null!=o&&Nce(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=Jce(t),u=function(e,t,n){var r=a(e),o=Yce(Xae(t),!0);return!0===o?rfe(r).set(t,n):o[r.id]=n,e};return vce(i,{delete:function(e){var t=a(this);if(!tae(e))return!1;var n=Yce(e);return!0===n?rfe(t).delete(e):n&&kae(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!tae(e))return!1;var n=Yce(e);return!0===n?rfe(t).has(e):n&&kae(n,t.id)}}),vce(i,n?{get:function(e){var t=a(this);if(tae(e)){var n=Yce(e);return!0===n?rfe(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}},sfe=yue.enforce,lfe=!Tie.ActiveXObject&&"ActiveXObject"in Tie,cfe=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},ffe=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=Tie[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=Uie(u[e]);xue(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!tae(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!tae(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!tae(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(Kue(e,!eae(a)||!(o||u.forEach&&!_ie((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),Cce.enable();else if(Kue(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=_ie((function(){f.has(1)})),h=Vce((function(e){new a(e)})),g=!o&&_ie((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){Rce(e,u);var n,o,l,c,f,d=(n=new a,o=e,l=s,nce&&eae(c=o.constructor)&&c!==l&&tae(f=c.prototype)&&f!==l.prototype&&nce(n,f),n);return null!=t&&Nce(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,Yue({global:!0,forced:s!=a},l),Zle(s,e),o||n.setStrong(s,e,r),s}("WeakMap",cfe,ufe);if(aue&&lfe){afe=ufe.getConstructor(cfe,"WeakMap",!0),Cce.enable();var dfe=ffe.prototype,pfe=Uie(dfe.delete),hfe=Uie(dfe.has),gfe=Uie(dfe.get),vfe=Uie(dfe.set);vce(dfe,{delete:function(e){if(tae(e)&&!xce(e)){var t=sfe(this);return t.frozen||(t.frozen=new afe),pfe(this,e)||t.frozen.delete(e)}return pfe(this,e)},has:function(e){if(tae(e)&&!xce(e)){var t=sfe(this);return t.frozen||(t.frozen=new afe),hfe(this,e)||t.frozen.has(e)}return hfe(this,e)},get:function(e){if(tae(e)&&!xce(e)){var t=sfe(this);return t.frozen||(t.frozen=new afe),hfe(this,e)?gfe(this,e):t.frozen.get(e)}return gfe(this,e)},set:function(e,t){if(tae(e)&&!xce(e)){var n=sfe(this);n.frozen||(n.frozen=new afe),hfe(this,e)?vfe(this,e,t):n.frozen.set(e,t)}else vfe(this,e,t);return this}})}var yfe={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},mfe=Vae("span").classList,bfe=mfe&&mfe.constructor&&mfe.constructor.prototype,wfe=bfe===Object.prototype?void 0:bfe,Efe=Lae("iterator"),xfe=Lae("toStringTag"),Dfe=dce.values,Cfe=function(e,t){if(e){if(e[Efe]!==Dfe)try{Qae(e,Efe,Dfe)}catch(r){e[Efe]=Dfe}if(e[xfe]||Qae(e,xfe,t),yfe[t])for(var n in dce)if(e[n]!==dce[n])try{Qae(e,n,dce[n])}catch(r){e[n]=dce[n]}}};for(var Sfe in yfe)Cfe(Tie[Sfe]&&Tie[Sfe].prototype,Sfe);Cfe(wfe,"DOMTokenList");var Afe=function(e,t){var n=[][e];return!!n&&_ie((function(){n.call(null,t||function(){throw 1},1)}))},Ofe=Xce.forEach,kfe=Afe("forEach")?[].forEach:function(e){return Ofe(this,e,arguments.length>1?arguments[1]:void 0)},Bfe=function(e){if(e&&e.forEach!==kfe)try{Qae(e,"forEach",kfe)}catch(t){e.forEach=kfe}};for(var Ffe in yfe)yfe[Ffe]&&Bfe(Tie[Ffe]&&Tie[Ffe].prototype);Bfe(wfe);var Tfe,_fe,Pfe,jfe,Ife=Tie.Promise,Nfe=Lae("species"),Lfe=/(?:ipad|iphone|ipod).*applewebkit/i.test(iae),Rfe="process"==qie(Tie.process),Mfe=Tie.setImmediate,zfe=Tie.clearImmediate,$fe=Tie.process,Hfe=Tie.Dispatch,Vfe=Tie.Function,Ufe=Tie.MessageChannel,Wfe=Tie.String,Gfe=0,qfe={};try{Tfe=Tie.location}catch(Gme){}var Kfe=function(e){if(kae(qfe,e)){var t=qfe[e];delete qfe[e],t()}},Xfe=function(e){return function(){Kfe(e)}},Yfe=function(e){Kfe(e.data)},Zfe=function(e){Tie.postMessage(Wfe(e),Tfe.protocol+"//"+Tfe.host)};Mfe&&zfe||(Mfe=function(e){var t=hse(arguments,1);return qfe[++Gfe]=function(){ile(eae(e)?e:Vfe(e),void 0,t)},_fe(Gfe),Gfe},zfe=function(e){delete qfe[e]},Rfe?_fe=function(e){$fe.nextTick(Xfe(e))}:Hfe&&Hfe.now?_fe=function(e){Hfe.now(Xfe(e))}:Ufe&&!Lfe?(jfe=(Pfe=new Ufe).port2,Pfe.port1.onmessage=Yfe,_fe=Ace(jfe.postMessage,jfe)):Tie.addEventListener&&eae(Tie.postMessage)&&!Tie.importScripts&&Tfe&&"file:"!==Tfe.protocol&&!_ie(Zfe)?(_fe=Zfe,Tie.addEventListener("message",Yfe,!1)):_fe="onreadystatechange"in Vae("script")?function(e){Fse.appendChild(Vae("script")).onreadystatechange=function(){Fse.removeChild(this),Kfe(e)}}:function(e){setTimeout(Xfe(e),0)});var Jfe,Qfe,ede,tde,nde,rde,ode,ide,ade={set:Mfe,clear:zfe},ude=/ipad|iphone|ipod/i.test(iae)&&void 0!==Tie.Pebble,sde=/web0s(?!.*chrome)/i.test(iae),lde=Gae.f,cde=ade.set,fde=Tie.MutationObserver||Tie.WebKitMutationObserver,dde=Tie.document,pde=Tie.process,hde=Tie.Promise,gde=lde(Tie,"queueMicrotask"),vde=gde&&gde.value;vde||(Jfe=function(){var e,t;for(Rfe&&(e=pde.domain)&&e.exit();Qfe;){t=Qfe.fn,Qfe=Qfe.next;try{t()}catch(n){throw Qfe?tde():ede=void 0,n}}ede=void 0,e&&e.enter()},Lfe||Rfe||sde||!fde||!dde?!ude&&hde&&hde.resolve?((ode=hde.resolve(void 0)).constructor=hde,ide=Ace(ode.then,ode),tde=function(){ide(Jfe)}):Rfe?tde=function(){pde.nextTick(Jfe)}:(cde=Ace(cde,Tie),tde=function(){cde(Jfe)}):(nde=!0,rde=dde.createTextNode(""),new fde(Jfe).observe(rde,{characterData:!0}),tde=function(){rde.data=nde=!nde}));var yde,mde,bde,wde,Ede=vde||function(e){var t={fn:e,next:void 0};ede&&(ede.next=t),Qfe||(Qfe=t,tde()),ede=t},xde=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=mae(t),this.reject=mae(n)},Dde={f:function(e){return new xde(e)}},Cde=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},Sde="object"==typeof window,Ade=ade.set,Ode=Lae("species"),kde="Promise",Bde=yue.getterFor(kde),Fde=yue.set,Tde=yue.getterFor(kde),_de=Ife&&Ife.prototype,Pde=Ife,jde=_de,Ide=Tie.TypeError,Nde=Tie.document,Lde=Tie.process,Rde=Dde.f,Mde=Rde,zde=!!(Nde&&Nde.createEvent&&Tie.dispatchEvent),$de=eae(Tie.PromiseRejectionEvent),Hde=!1,Vde=Kue(kde,(function(){var e=oue(Pde),t=e!==String(Pde);if(!t&&66===cae)return!0;if(cae>=51&&/native code/.test(e))return!1;var n=new Pde((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[Ode]=r,!(Hde=n.then((function(){}))instanceof r)||!t&&Sde&&!$de})),Ude=Vde||!Vce((function(e){Pde.all(e).catch((function(){}))})),Wde=function(e){var t;return!(!tae(e)||!eae(t=e.then))&&t},Gde=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;Ede((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&&Yde(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(Ide("Promise-chain cycle")):(u=Wde(a))?Iie(u,a,f,d):f(a)):d(r)}catch(h){p&&!s&&p.exit(),d(h)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&Kde(e)}))}},qde=function(e,t,n){var r,o;zde?((r=Nde.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),Tie.dispatchEvent(r)):r={promise:t,reason:n},!$de&&(o=Tie["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=Tie.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},Kde=function(e){Iie(Ade,Tie,(function(){var t,n=e.facade,r=e.value;if(Xde(e)&&(t=Cde((function(){Rfe?Lde.emit("unhandledRejection",r,n):qde("unhandledrejection",n,r)})),e.rejection=Rfe||Xde(e)?2:1,t.error))throw t.value}))},Xde=function(e){return 1!==e.rejection&&!e.parent},Yde=function(e){Iie(Ade,Tie,(function(){var t=e.facade;Rfe?Lde.emit("rejectionHandled",t):qde("rejectionhandled",t,e.value)}))},Zde=function(e,t,n){return function(r){e(t,r,n)}},Jde=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Gde(e,!0))},Qde=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw Ide("Promise can't be resolved itself");var r=Wde(t);r?Ede((function(){var n={done:!1};try{Iie(r,t,Zde(Qde,n,e),Zde(Jde,n,e))}catch(o){Jde(n,o,e)}})):(e.value=t,e.state=1,Gde(e,!1))}catch(o){Jde({done:!1},o,e)}}};if(Vde&&(jde=(Pde=function(e){Rce(this,jde),mae(e),Iie(yde,this);var t=Bde(this);try{e(Zde(Qde,t),Zde(Jde,t))}catch(n){Jde(t,n)}}).prototype,(yde=function(e){Fde(this,{type:kde,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=vce(jde,{then:function(e,t){var n=Tde(this),r=n.reactions,o=Rde(fle(this,Pde));return o.ok=!eae(e)||e,o.fail=eae(t)&&t,o.domain=Rfe?Lde.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&Gde(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),mde=function(){var e=new yde,t=Bde(e);this.promise=e,this.resolve=Zde(Qde,t),this.reject=Zde(Jde,t)},Dde.f=Rde=function(e){return e===Pde||e===bde?new mde(e):Mde(e)},eae(Ife)&&_de!==Object.prototype)){wde=_de.then,Hde||(xue(_de,"then",(function(e,t){var n=this;return new Pde((function(e,t){Iie(wde,n,e,t)})).then(e,t)}),{unsafe:!0}),xue(_de,"catch",jde.catch,{unsafe:!0}));try{delete _de.constructor}catch(Gme){}nce&&nce(_de,jde)}Yue({global:!0,wrap:!0,forced:Vde},{Promise:Pde}),Zle(Pde,kde,!1),function(e){var t=rae("Promise"),n=Jae.f;Pie&&t&&!t[Nfe]&&n(t,Nfe,{configurable:!0,get:function(){return this}})}(),bde=rae(kde),Yue({target:kde,stat:!0,forced:Vde},{reject:function(e){var t=Rde(this);return Iie(t.reject,void 0,e),t.promise}}),Yue({target:kde,stat:!0,forced:Vde},{resolve:function(e){return function(e,t){if(Xae(e),tae(t)&&t.constructor===e)return t;var n=Dde.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),Yue({target:kde,stat:!0,forced:Ude},{all:function(e){var t=this,n=Rde(t),r=n.resolve,o=n.reject,i=Cde((function(){var n=mae(t.resolve),i=[],a=0,u=1;Nce(e,(function(e){var s=a++,l=!1;u++,Iie(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=Rde(t),r=n.reject,o=Cde((function(){var o=mae(t.resolve);Nce(e,(function(e){Iie(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var epe=Eue.PROPER,tpe=RegExp.prototype,npe=tpe.toString,rpe=Uie(Dse),ope=_ie((function(){return"/a/b"!=npe.call({source:"a",flags:"b"})})),ipe=epe&&"toString"!=npe.name;(ope||ipe)&&xue(RegExp.prototype,"toString",(function(){var e=Xae(this),t=xse(e.source),n=e.flags;return"/"+t+"/"+xse(void 0===n&&oae(tpe,e)&&!("flags"in tpe)?rpe(e):n)}),{unsafe:!0});var ape=Eue.EXISTS,upe=Jae.f,spe=Function.prototype,lpe=Uie(spe.toString),cpe=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,fpe=Uie(cpe.exec);Pie&&!ape&&upe(spe,"name",{configurable:!0,get:function(){try{return fpe(cpe,lpe(this))[1]}catch(hf){return""}}});var dpe=new WeakMap;function ppe(e){return e.getMenuConfig("uploadImage")}function hpe(e,t){return Tle(this,void 0,void 0,(function(){return _le(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;KH(e,i,t.name,a),n("ok")}}}))]}))}))}function gpe(e,t){return Tle(this,void 0,void 0,(function(){var n,r,o,i;return _le(this,(function(a){switch(a.label){case 0:return n=function(e){var t=dpe.get(e);if(null!=t)return t;var n=ppe(e),r=n.onSuccess,o=n.onProgress,i=n.onFailed,a=n.customInsert,u=n.onError;return t=aj(Fle(Fle({},n),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,n){if(a)return a(n,(function(t,n,r){return KH(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;KH(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;KH(e,f,p,void 0===h?"":h)}r(t,n)}else i(t,n)},onError:function(e,t,n){u(e,t,n)}})),dpe.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 vpe(e,t){var n,r;return Tle(this,void 0,void 0,(function(){var o,i,a,u,s,l,c,f,d;return _le(this,(function(p){switch(p.label){case 0:if(null==t)return[2];o=Array.prototype.slice.call(t),i=ppe(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,hpe(e,c)]:[3,5]);case 4:return p.sent(),[3,9];case 5:return a?[4,a(c,(function(t,n,r){return KH(e,t,n,r)}))]:[3,7];case 6:return p.sent(),[3,9];case 7:return[4,gpe(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 ype=Uie([].join),mpe=Yie!=Object,bpe=Afe("join",",");Yue({target:"Array",proto:!0,forced:mpe||!bpe},{join:function(e){return ype(Qie(this),void 0===e?",":e)}}),Ng&&(gg.fn.append=Ng),Dg&&(gg.fn.on=Dg),Hg&&(gg.fn.remove=Hg),xg&&(gg.fn.val=xg),Gg&&(gg.fn.click=Gg),kg&&(gg.fn.hide=kg);var wpe=function(){function e(){this.title=Jj("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 XH(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 KH(e,t,n,r)}));else{var a="";o.length>0&&(a='accept="'+o.join(", ")+'"');var u=gg("body"),s=gg('<input type="file" '+a+" multiple/>");s.hide(),u.append(s),s.click(),s.on("change",(function(){var t=s[0].files;vpe(e,t)}))}},e}(),Epe={menus:[{key:"uploadImage",factory:function(){return new wpe},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(XH(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]}))?vpe(e,o):t(r)}},n}};Zj("en",{highLightModule:{selectLang:"Language"}}),Zj("zh-CN",{highLightModule:{selectLang:"选择语言"}});var xpe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Dpe(e){var t={exports:{}};return e(t,t.exports),t.exports}var Cpe,Spe,Ape=function(e){return e&&e.Math==Math&&e},Ope=Ape("object"==typeof globalThis&&globalThis)||Ape("object"==typeof window&&window)||Ape("object"==typeof self&&self)||Ape("object"==typeof xpe&&xpe)||function(){return this}()||Function("return this")(),kpe=Object.defineProperty,Bpe=function(e,t){try{kpe(Ope,e,{value:t,configurable:!0,writable:!0})}catch(eI){Ope[e]=t}return t},Fpe=Ope["__core-js_shared__"]||Bpe("__core-js_shared__",{}),Tpe=Dpe((function(e){(e.exports=function(e,t){return Fpe[e]||(Fpe[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),_pe=Function.prototype,Ppe=_pe.bind,jpe=_pe.call,Ipe=Ppe&&Ppe.bind(jpe),Npe=Ppe?function(e){return e&&Ipe(jpe,e)}:function(e){return e&&function(){return jpe.apply(e,arguments)}},Lpe=Ope.TypeError,Rpe=function(e){if(null==e)throw Lpe("Can't call method on "+e);return e},Mpe=Ope.Object,zpe=function(e){return Mpe(Rpe(e))},$pe=Npe({}.hasOwnProperty),Hpe=Object.hasOwn||function(e,t){return $pe(zpe(e),t)},Vpe=0,Upe=Math.random(),Wpe=Npe(1..toString),Gpe=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Wpe(++Vpe+Upe,36)},qpe=function(e){return"function"==typeof e},Kpe=function(e){return qpe(e)?e:void 0},Xpe=function(e,t){return arguments.length<2?Kpe(Ope[e]):Ope[e]&&Ope[e][t]},Ype=Xpe("navigator","userAgent")||"",Zpe=Ope.process,Jpe=Ope.Deno,Qpe=Zpe&&Zpe.versions||Jpe&&Jpe.version,ehe=Qpe&&Qpe.v8;ehe&&(Spe=(Cpe=ehe.split("."))[0]>0&&Cpe[0]<4?1:+(Cpe[0]+Cpe[1])),!Spe&&Ype&&(!(Cpe=Ype.match(/Edge\/(\d+)/))||Cpe[1]>=74)&&(Cpe=Ype.match(/Chrome\/(\d+)/))&&(Spe=+Cpe[1]);var the=Spe,nhe=function(e){try{return!!e()}catch(t){return!0}},rhe=!!Object.getOwnPropertySymbols&&!nhe((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&the&&the<41})),ohe=rhe&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ihe=Tpe("wks"),ahe=Ope.Symbol,uhe=ahe&&ahe.for,she=ohe?ahe:ahe&&ahe.withoutSetter||Gpe,lhe=function(e){if(!Hpe(ihe,e)||!rhe&&"string"!=typeof ihe[e]){var t="Symbol."+e;rhe&&Hpe(ahe,e)?ihe[e]=ahe[e]:ihe[e]=ohe&&uhe?uhe(t):she(t)}return ihe[e]},che={};che[lhe("toStringTag")]="z";var fhe="[object z]"===String(che),dhe=!nhe((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),phe=function(e){return"object"==typeof e?null!==e:qpe(e)},hhe=Ope.document,ghe=phe(hhe)&&phe(hhe.createElement),vhe=function(e){return ghe?hhe.createElement(e):{}},yhe=!dhe&&!nhe((function(){return 7!=Object.defineProperty(vhe("div"),"a",{get:function(){return 7}}).a})),mhe=Ope.String,bhe=Ope.TypeError,whe=function(e){if(phe(e))return e;throw bhe(mhe(e)+" is not an object")},Ehe=Function.prototype.call,xhe=Ehe.bind?Ehe.bind(Ehe):function(){return Ehe.apply(Ehe,arguments)},Dhe=Npe({}.isPrototypeOf),Che=Ope.Object,She=ohe?function(e){return"symbol"==typeof e}:function(e){var t=Xpe("Symbol");return qpe(t)&&Dhe(t.prototype,Che(e))},Ahe=Ope.String,Ohe=function(e){try{return Ahe(e)}catch(t){return"Object"}},khe=Ope.TypeError,Bhe=function(e){if(qpe(e))return e;throw khe(Ohe(e)+" is not a function")},Fhe=function(e,t){var n=e[t];return null==n?void 0:Bhe(n)},The=Ope.TypeError,_he=Ope.TypeError,Phe=lhe("toPrimitive"),jhe=function(e){var t=function(e,t){if(!phe(e)||She(e))return e;var n,r=Fhe(e,Phe);if(r){if(void 0===t&&(t="default"),n=xhe(r,e,t),!phe(n)||She(n))return n;throw _he("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&qpe(n=e.toString)&&!phe(r=xhe(n,e)))return r;if(qpe(n=e.valueOf)&&!phe(r=xhe(n,e)))return r;if("string"!==t&&qpe(n=e.toString)&&!phe(r=xhe(n,e)))return r;throw The("Can't convert object to primitive value")}(e,t)}(e,"string");return She(t)?t:t+""},Ihe=Ope.TypeError,Nhe=Object.defineProperty,Lhe={f:dhe?Nhe:function(e,t,n){if(whe(e),t=jhe(t),whe(n),yhe)try{return Nhe(e,t,n)}catch(r){}if("get"in n||"set"in n)throw Ihe("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Rhe=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Mhe=dhe?function(e,t,n){return Lhe.f(e,t,Rhe(1,n))}:function(e,t,n){return e[t]=n,e},zhe=Npe(Function.toString);qpe(Fpe.inspectSource)||(Fpe.inspectSource=function(e){return zhe(e)});var $he,Hhe,Vhe,Uhe=Fpe.inspectSource,Whe=Ope.WeakMap,Ghe=qpe(Whe)&&/native code/.test(Uhe(Whe)),qhe=Tpe("keys"),Khe=function(e){return qhe[e]||(qhe[e]=Gpe(e))},Xhe={},Yhe=Ope.TypeError,Zhe=Ope.WeakMap;if(Ghe||Fpe.state){var Jhe=Fpe.state||(Fpe.state=new Zhe),Qhe=Npe(Jhe.get),ege=Npe(Jhe.has),tge=Npe(Jhe.set);$he=function(e,t){if(ege(Jhe,e))throw new Yhe("Object already initialized");return t.facade=e,tge(Jhe,e,t),t},Hhe=function(e){return Qhe(Jhe,e)||{}},Vhe=function(e){return ege(Jhe,e)}}else{var nge=Khe("state");Xhe[nge]=!0,$he=function(e,t){if(Hpe(e,nge))throw new Yhe("Object already initialized");return t.facade=e,Mhe(e,nge,t),t},Hhe=function(e){return Hpe(e,nge)?e[nge]:{}},Vhe=function(e){return Hpe(e,nge)}}var rge={set:$he,get:Hhe,has:Vhe,enforce:function(e){return Vhe(e)?Hhe(e):$he(e,{})},getterFor:function(e){return function(t){var n;if(!phe(t)||(n=Hhe(t)).type!==e)throw Yhe("Incompatible receiver, "+e+" required");return n}}},oge=Function.prototype,ige=dhe&&Object.getOwnPropertyDescriptor,age=Hpe(oge,"name"),uge={EXISTS:age,PROPER:age&&"something"===function(){}.name,CONFIGURABLE:age&&(!dhe||dhe&&ige(oge,"name").configurable)},sge=Dpe((function(e){var t=uge.CONFIGURABLE,n=rge.get,r=rge.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;qpe(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Hpe(i,"name")||t&&i.name!==f)&&Mhe(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==Ope?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:Mhe(e,n,i)):l?e[n]=i:Bpe(n,i)})(Function.prototype,"toString",(function(){return qpe(this)&&n(this).source||Uhe(this)}))})),lge=Npe({}.toString),cge=Npe("".slice),fge=function(e){return cge(lge(e),8,-1)},dge=lhe("toStringTag"),pge=Ope.Object,hge="Arguments"==fge(function(){return arguments}()),gge=fhe?fge: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=pge(e),dge))?n:hge?fge(t):"Object"==(r=fge(t))&&qpe(t.callee)?"Arguments":r},vge=fhe?{}.toString:function(){return"[object "+gge(this)+"]"};fhe||sge(Object.prototype,"toString",vge,{unsafe:!0});var yge,mge={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},bge=vhe("span").classList,wge=bge&&bge.constructor&&bge.constructor.prototype,Ege=wge===Object.prototype?void 0:wge,xge=Npe(Npe.bind),Dge=Ope.Object,Cge=Npe("".split),Sge=nhe((function(){return!Dge("z").propertyIsEnumerable(0)}))?function(e){return"String"==fge(e)?Cge(e,""):Dge(e)}:Dge,Age=Math.ceil,Oge=Math.floor,kge=function(e){var t=+e;return t!=t||0===t?0:(t>0?Oge:Age)(t)},Bge=Math.min,Fge=function(e){return e>0?Bge(kge(e),9007199254740991):0},Tge=function(e){return Fge(e.length)},_ge=Array.isArray||function(e){return"Array"==fge(e)},Pge=function(){},jge=[],Ige=Xpe("Reflect","construct"),Nge=/^\s*(?:class|function)\b/,Lge=Npe(Nge.exec),Rge=!Nge.exec(Pge),Mge=function(e){if(!qpe(e))return!1;try{return Ige(Pge,jge,e),!0}catch(t){return!1}},zge=!Ige||nhe((function(){var e;return Mge(Mge.call)||!Mge(Object)||!Mge((function(){e=!0}))||e}))?function(e){if(!qpe(e))return!1;switch(gge(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Rge||!!Lge(Nge,Uhe(e))}:Mge,$ge=lhe("species"),Hge=Ope.Array,Vge=function(e,t){return new(_ge(n=e)&&(r=n.constructor,(zge(r)&&(r===Hge||_ge(r.prototype))||phe(r)&&null===(r=r[$ge]))&&(r=void 0)),void 0===r?Hge:r)(0===t?0:t);var n,r},Uge=Npe([].push),Wge=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=zpe(s),g=Sge(h),v=function(e,t){return Bhe(e),void 0===t?e:xge?xge(e,t):function(){return e.apply(t,arguments)}}(l,c),y=Tge(g),m=0,b=f||Vge,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:Uge(w,d)}else switch(e){case 4:return!1;case 7:Uge(w,d)}return i?-1:r||o?o:w}},Gge=[Wge(0),Wge(1),Wge(2),Wge(3),Wge(4),Wge(5),Wge(6),Wge(7)][0],qge=(yge=[].forEach)&&nhe((function(){yge.call(null,(function(){throw 1}),1)}))?[].forEach:function(e){return Gge(this,e,arguments.length>1?arguments[1]:void 0)},Kge=function(e){if(e&&e.forEach!==qge)try{Mhe(e,"forEach",qge)}catch(t){e.forEach=qge}};for(var Xge in mge)mge[Xge]&&Kge(Ope[Xge]&&Ope[Xge].prototype);Kge(Ege);var Yge={}.propertyIsEnumerable,Zge=Object.getOwnPropertyDescriptor,Jge={f:Zge&&!Yge.call({1:2},1)?function(e){var t=Zge(this,e);return!!t&&t.enumerable}:Yge},Qge=function(e){return Sge(Rpe(e))},eve=Object.getOwnPropertyDescriptor,tve={f:dhe?eve:function(e,t){if(e=Qge(e),t=jhe(t),yhe)try{return eve(e,t)}catch(n){}if(Hpe(e,t))return Rhe(!xhe(Jge.f,e,t),e[t])}},nve=Math.max,rve=Math.min,ove=function(e,t){var n=kge(e);return n<0?nve(n+t,0):rve(n,t)},ive=function(e){return function(t,n,r){var o,i=Qge(t),a=Tge(i),u=ove(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),ave=Npe([].push),uve=function(e,t){var n,r=Qge(e),o=0,i=[];for(n in r)!Hpe(Xhe,n)&&Hpe(r,n)&&ave(i,n);for(;t.length>o;)Hpe(r,n=t[o++])&&(~ive(i,n)||ave(i,n));return i},sve=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],lve=sve.concat("length","prototype"),cve={f:Object.getOwnPropertyNames||function(e){return uve(e,lve)}},fve={f:Object.getOwnPropertySymbols},dve=Npe([].concat),pve=Xpe("Reflect","ownKeys")||function(e){var t=cve.f(whe(e)),n=fve.f;return n?dve(t,n(e)):t},hve=function(e,t){for(var n=pve(t),r=Lhe.f,o=tve.f,i=0;i<n.length;i++){var a=n[i];Hpe(e,a)||r(e,a,o(t,a))}},gve=/#|\.prototype\./,vve=function(e,t){var n=mve[yve(e)];return n==wve||n!=bve&&(qpe(t)?nhe(t):!!t)},yve=vve.normalize=function(e){return String(e).replace(gve,".").toLowerCase()},mve=vve.data={},bve=vve.NATIVE="N",wve=vve.POLYFILL="P",Eve=vve,xve=tve.f,Dve=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?Ope:l?Ope[u]||Bpe(u,{}):(Ope[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=xve(n,r))&&a.value:n[r],!Eve(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;hve(i,o)}(e.sham||o&&o.sham)&&Mhe(i,"sham",!0),sge(n,r,i,e)}},Cve=Object.keys||function(e){return uve(e,sve)},Sve=Object.assign,Ave=Object.defineProperty,Ove=Npe([].concat),kve=!Sve||nhe((function(){if(dhe&&1!==Sve({b:1},Sve(Ave({},"a",{enumerable:!0,get:function(){Ave(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!=Sve({},e)[n]||Cve(Sve({},t)).join("")!=r}))?function(e,t){for(var n=zpe(e),r=arguments.length,o=1,i=fve.f,a=Jge.f;r>o;)for(var u,s=Sge(arguments[o++]),l=i?Ove(Cve(s),i(s)):Cve(s),c=l.length,f=0;c>f;)u=l[f++],dhe&&!xhe(a,s,u)||(n[u]=s[u]);return n}:Sve;Dve({target:"Object",stat:!0,forced:Object.assign!==kve},{assign:kve});var Bve=Dpe((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,"&").replace(/</g,"<").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,""")+'"';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:{});
- /**
- * Prism: Lightweight, robust, elegant syntax highlighting
- *
- * @license MIT <https://opensource.org/licenses/MIT>
- * @author Lea Verou <https://lea.verou.me>
- * @namespace
- * @public
- */e.exports&&(e.exports=t),void 0!==xpe&&(xpe.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(/&/,"&"))})),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(/&/,"&"))})),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://,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(/</g,"<").replace(/&/g,"&"),e.content=Prism.highlight(e.content,{expression:{pattern:n,lookbehind:!0,inside:Prism.languages.groovy}}),e.classes.push("/"===t?"regex":"gstring")}}}));var Fve=["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 Tve(e){return"string"==typeof e?e.length:"string"==typeof e.content?e.content.length:e.content.reduce((function(e,t){return e+Tve(t)}),0)}var _ve,Pve=Ope.String,jve=function(e){if("Symbol"===gge(e))throw TypeError("Cannot convert a Symbol value to a string");return Pve(e)},Ive=function(){var e=whe(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},Nve=Ope.RegExp,Lve=nhe((function(){var e=Nve("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),Rve=Lve||nhe((function(){return!Nve("a","y").sticky})),Mve={BROKEN_CARET:Lve||nhe((function(){var e=Nve("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:Rve,UNSUPPORTED_Y:Lve},zve=dhe?Object.defineProperties:function(e,t){whe(e);for(var n,r=Qge(t),o=Cve(t),i=o.length,a=0;i>a;)Lhe.f(e,n=o[a++],r[n]);return e},$ve=Xpe("document","documentElement"),Hve=Khe("IE_PROTO"),Vve=function(){},Uve=function(e){return"<script>"+e+"<\/script>"},Wve=function(e){e.write(Uve("")),e.close();var t=e.parentWindow.Object;return e=null,t},Gve=function(){try{_ve=new ActiveXObject("htmlfile")}catch(r){}var e,t;Gve="undefined"!=typeof document?document.domain&&_ve?Wve(_ve):((t=vhe("iframe")).style.display="none",$ve.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Uve("document.F=Object")),e.close(),e.F):Wve(_ve);for(var n=sve.length;n--;)delete Gve.prototype[sve[n]];return Gve()};Xhe[Hve]=!0;var qve,Kve,Xve=Object.create||function(e,t){var n;return null!==e?(Vve.prototype=whe(e),n=new Vve,Vve.prototype=null,n[Hve]=e):n=Gve(),void 0===t?n:zve(n,t)},Yve=Ope.RegExp,Zve=nhe((function(){var e=Yve(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Jve=Ope.RegExp,Qve=nhe((function(){var e=Jve("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),eye=rge.get,tye=Tpe("native-string-replace",String.prototype.replace),nye=RegExp.prototype.exec,rye=nye,oye=Npe("".charAt),iye=Npe("".indexOf),aye=Npe("".replace),uye=Npe("".slice),sye=(Kve=/b*/g,xhe(nye,qve=/a/,"a"),xhe(nye,Kve,"a"),0!==qve.lastIndex||0!==Kve.lastIndex),lye=Mve.BROKEN_CARET,cye=void 0!==/()??/.exec("")[1];(sye||cye||lye||Zve||Qve)&&(rye=function(e){var t,n,r,o,i,a,u,s=this,l=eye(s),c=jve(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=xhe(rye,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=lye&&s.sticky,h=xhe(Ive,s),g=s.source,v=0,y=c;if(p&&(h=aye(h,"y",""),-1===iye(h,"g")&&(h+="g"),y=uye(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==oye(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),cye&&(n=new RegExp("^"+g+"$(?!\\s)",h)),sye&&(r=s.lastIndex),o=xhe(nye,p?n:s,y),p?o?(o.input=uye(o.input,v),o[0]=uye(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:sye&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),cye&&o&&o.length>1&&xhe(tye,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=Xve(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var fye=rye;Dve({target:"RegExp",proto:!0,forced:/./.exec!==fye},{exec:fye});var dye=Function.prototype,pye=dye.apply,hye=dye.bind,gye=dye.call,vye="object"==typeof Reflect&&Reflect.apply||(hye?gye.bind(pye):function(){return gye.apply(pye,arguments)}),yye=lhe("species"),mye=RegExp.prototype,bye=lhe("match"),wye=Ope.TypeError,Eye=lhe("species"),xye=Npe("".charAt),Dye=Npe("".charCodeAt),Cye=Npe("".slice),Sye=function(e){return function(t,n){var r,o,i=jve(Rpe(t)),a=kge(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=Dye(i,a))<55296||r>56319||a+1===u||(o=Dye(i,a+1))<56320||o>57343?e?xye(i,a):r:e?Cye(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0),Aye=function(e,t,n){return t+(n?Sye(e,t).length:1)},Oye=Ope.Array,kye=Math.max,Bye=function(e,t,n){for(var r,o,i,a,u=Tge(e),s=ove(t,u),l=ove(void 0===n?u:n,u),c=Oye(kye(l-s,0)),f=0;s<l;s++,f++)r=c,o=f,i=e[s],(a=jhe(o))in r?Lhe.f(r,a,Rhe(0,i)):r[a]=i;return c.length=f,c},Fye=Ope.TypeError,Tye=function(e,t){var n=e.exec;if(qpe(n)){var r=xhe(n,e,t);return null!==r&&whe(r),r}if("RegExp"===fge(e))return xhe(fye,e,t);throw Fye("RegExp#exec called on incompatible receiver")},_ye=Mve.UNSUPPORTED_Y,Pye=Math.min,jye=[].push,Iye=Npe(/./.exec),Nye=Npe(jye),Lye=Npe("".slice);!function(e,t,n,r){var o,i,a,u=lhe(e),s=!nhe((function(){var t={};return t[u]=function(){return 7},7!=""[e](t)})),l=s&&!nhe((function(){var e=!1,t=/a/;return(t={}).constructor={},t.constructor[yye]=function(){return t},t.flags="",t[u]=/./[u],t.exec=function(){return e=!0,null},t[u](""),!e}));if(!s||!l||n){var c=Npe(/./[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=jve(Rpe(this)),a=void 0===t?4294967295:t>>>0;if(0===a)return[];if(void 0===e)return[o];if(!phe(n=e)||!(void 0!==(r=n[bye])?r:"RegExp"==fge(n)))return xhe(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=xhe(fye,p,o))&&!((s=p.lastIndex)>d&&(Nye(c,Lye(o,d,u.index)),u.length>1&&u.index<o.length&&vye(jye,c,Bye(u,1)),l=u[0].length,d=s,c.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return d===o.length?!l&&Iye(p,"")||Nye(c,""):Nye(c,Lye(o,d)),c.length>a?Bye(c,0,a):c}:"0".split(void 0,0).length?function(e,t){return void 0===e&&0===t?[]:xhe(i,this,e,t)}:i,[function(e,t){var n=Rpe(this),r=null==e?void 0:Fhe(e,o);return r?xhe(r,e,n,t):xhe(a,jve(n),e,t)},function(e,t){var n=whe(this),r=jve(e),o=function(e,t,n,r,o){var i=Npe(e),a=t.exec;return a===fye||a===mye.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=whe(n).constructor)||null==(l=whe(f)[Eye])?u:function(e){if(zge(e))return e;throw wye(Ohe(e)+" is not a constructor")}(l)),p=n.unicode,h=(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.unicode?"u":"")+(_ye?"g":"y"),g=new d(_ye?"^(?:"+n.source+")":n,h),v=void 0===t?4294967295:t>>>0;if(0===v)return[];if(0===r.length)return null===Tye(g,r)?[r]:[];for(var y=0,m=0,b=[];m<r.length;){g.lastIndex=_ye?0:m;var w,E=Tye(g,_ye?Lye(r,m):r);if(null===E||(w=Pye(Fge(g.lastIndex+(_ye?m:0)),r.length))===y)m=Aye(r,m,p);else{if(Nye(b,Lye(r,y,m)),b.length===v)return b;for(var x=1;x<=E.length-1;x++)if(Nye(b,E[x]),b.length===v)return b;m=y=w}}return Nye(b,Lye(r,y)),b}]);sge(String.prototype,e,f[0]),sge(mye,u,f[1])}r&&Mhe(mye[u],"sham",!0)}("split",0,!!nhe((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]})),_ye),Dve({global:!0},{globalThis:Ope}),bg&&(gg.fn.attr=bg);var Rye=uge.PROPER,Mye=RegExp.prototype,zye=Mye.toString,$ye=Npe(Ive),Hye=nhe((function(){return"/a/b"!=zye.call({source:"a",flags:"b"})})),Vye=Rye&&"toString"!=zye.name;(Hye||Vye)&&sge(RegExp.prototype,"toString",(function(){var e=whe(this),t=jve(e.source),n=e.flags;return"/"+t+"/"+jve(void 0===n&&Dhe(Mye,e)&&!("flags"in Mye)?$ye(e):n)}),{unsafe:!0});var Uye=function(){function e(){this.title=Jj("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(!ap.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()};eh.setNodes(e,n,{match:function(e){return dB.checkNodeType(e,"code")}})}},e.prototype.getSelectCodeElem=function(e){var t=dB.getSelectedNodeByType(e,"code");if(null==t)return null;var n=dB.getParentNode(e,t);return ap.isElement(n)?"pre"!==n.type?null:t:null},e}(),Wye={renderStyle:function(e,t){var n=e,r=t,o="";return Fve.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=gg(e);if(!ap.isElement(t))return t;if("code"!==dB.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 Uye},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>"}}]},Gye=/"/g,qye=Npe("".replace);Dve({target:"String",proto:!0,forced:nhe((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=jve(Rpe(this)),r="<a",(r+=' name="'+qye(jve(t),Gye,""")+'"')+">"+n+"</a>";var t,n,r}});var Kye=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(!Np.isText(e))return null;var t=dB.getParentNode(null,e);if(t&&"code"===dB.getNodeType(t)){var n=dB.getParentNode(null,t);if(n&&"pre"===dB.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=Bve.languages[t];return n?Bve.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+Tve(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},Xye=function(){return Xye=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},Xye.apply(this,arguments)},Yye=function(){function e(){throw new Error("不能实例化\nCan not construct a instance")}return e.setEditorConfig=function(e){void 0===e&&(e={}),this.editorConfig=Xye(Xye({},this.editorConfig),e)},e.setSimpleEditorConfig=function(e){void 0===e&&(e={}),this.simpleEditorConfig=Xye(Xye({},this.simpleEditorConfig),e)},e.setToolbarConfig=function(e){void 0===e&&(e={}),this.toolbarConfig=Xye(Xye({},this.toolbarConfig),e)},e.setSimpleToolbarConfig=function(e){void 0===e&&(e={}),this.simpleToolbarConfig=Xye(Xye({},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=yO(yO({},a),t||{});if(null!=gB[o])throw new Error("Duplicated key '"+o+"' in menu items");gB[o]=i,n=o,null!=(r=u)&&(hB[n]=r)}(e,t)},e.registerRenderElem=function(e){!function(e){var t=e.type,n=e.renderElem;Q_[t||""]=n}(e)},e.registerRenderStyle=function(e){var t;t=e,J_.push(t)},e.registerElemToHtml=function(e){!function(e){var t=e.type,n=e.elemToHtml;kB[t||""]=n}(e)},e.registerStyleToHtml=function(e){var t;t=e,OB.push(t)},e.registerPreParseHtml=function(e){var t;t=e,vT.push(t)},e.registerParseElemHtml=function(e){!function(e){var t=e.selector,n=e.parseElemHtml;mT[t]=n}(e)},e.registerParseStyleHtml=function(e){var t;t=e,yT.push(t)},e.registerModule=function(e){Zye(e)},e.editorConfig={},e.simpleEditorConfig={},e.toolbarConfig={},e.simpleToolbarConfig={},e.plugins=[],e}();
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */function Zye(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 Yye.registerMenu(e)})),n&&n.forEach((function(e){return Yye.registerRenderElem(e)})),r&&Yye.registerRenderStyle(r),o&&o.forEach((function(e){return Yye.registerElemToHtml(e)})),i&&Yye.registerStyleToHtml(i),a&&a.forEach((function(e){return Yye.registerPreParseHtml(e)})),u&&u.forEach((function(e){return Yye.registerParseElemHtml(e)})),s&&Yye.registerParseStyleHtml(s),l&&Yye.registerPlugin(l)}tX.forEach((function(e){return Zye(e)})),Zye(E1),Zye(n8),Zye(Sie),Zye(Epe),Zye(Wye);var Jye='<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>',Qye={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"]}},eme={hoverbarKeys:Xye(Xye({},Qye),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};Yye.setEditorConfig(Xye(Xye({},eme),{decorate:Kye}));var tme={hoverbarKeys:Qye};Yye.setSimpleEditorConfig(Xye(Xye({},tme),{decorate:Kye}));var nme={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:Jj("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:Jj("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:Jj("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:Jj("editor.image"),iconSvg:Jye,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:Jj("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"]};Yye.setToolbarConfig(nme);var rme={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:Jj("editor.image"),iconSvg:Jye,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};Yye.setSimpleToolbarConfig(rme);var ome=Object.defineProperty,ime=Object.defineProperties,ame=Object.getOwnPropertyDescriptors,ume=Object.getOwnPropertySymbols,sme=Object.prototype.hasOwnProperty,lme=Object.prototype.propertyIsEnumerable,cme=(e,t,n)=>t in e?ome(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,fme=(e,t)=>{for(var n in t||(t={}))sme.call(t,n)&&cme(e,n,t[n]);if(ume)for(var n of ume(t))lme.call(t,n)&&cme(e,n,t[n]);return e},dme=(e,t)=>ime(e,ame(t));function pme(e){let t=`请使用 '@${e}' 事件,不要放在 props 中`;return t+=`\nPlease use '@${e}' event instead of props`,t}var hme=(e,t)=>{for(const[n,r]of t)e[n]=r;return e};const gme=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)?Yye.simpleEditorConfig:Yye.editorConfig,c=Xye(Xye({},l.hoverbarKeys||{}),u.hoverbarKeys||{});KP({selector:n,config:Xye(Xye(Xye({},l),u),{hoverbarKeys:c}),content:o,html:i,plugins:Yye.plugins})}({selector:u.value,mode:e.mode,content:t||[],html:e.defaultHtml||e.modelValue||"",config:dme(fme({},e.defaultConfig),{onCreated(t){if(s.value=t,i.emit("onCreated",t),e.defaultConfig.onCreated){const e=pme("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=pme("onChange");throw new Error(e)}},onDestroyed(t){if(i.emit("onDestroyed",t),e.defaultConfig.onDestroyed){const e=pme("onDestroyed");throw new Error(e)}},onMaxLength(t){if(i.emit("onMaxLength",t),e.defaultConfig.onMaxLength){const e=pme("onMaxLength");throw new Error(e)}},onFocus(t){if(i.emit("onFocus",t),e.defaultConfig.onFocus){const e=pme("onFocus");throw new Error(e)}},onBlur(t){if(i.emit("onBlur",t),e.defaultConfig.onBlur){const e=pme("onBlur");throw new Error(e)}},customAlert(t,n){if(i.emit("customAlert",t,n),e.defaultConfig.customAlert){const e=pme("customAlert");throw new Error(e)}},customPaste:(t,n)=>{if(e.defaultConfig.customPaste){const e=pme("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}}}),vme={ref:"box",style:{height:"100%"}};var yme=hme(gme,[["render",function(e,t,n,r,o,i){return u(),s("div",vme,null,512)}]]);const mme=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");dB.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?Yye.simpleToolbarConfig:Yye.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(YT(e,"data-w-e-toolbar",n))throw new Error("Repeated create toolbar by selector '"+n+"'");var i=yO({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},o||{}),a=new QP(n,i);wk.set(a,e),Ek.set(e,a)})(n,{selector:t,config:Xye(Xye({},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}}}),bme={ref:"selector"};var wme=hme(mme,[["render",function(e,t,n,r,o,i){return u(),s("div",bme,null,512)}]]);const Eme={__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(hf){}})),d((()=>{try{const e=v.value;if(null==e)return;e.destroy()}catch(hf){}})),(e,t)=>(u(),s(g,null,[p(h(wme),{editor:h(v),defaultConfig:b,mode:y},null,8,["editor"]),p(h(yme),{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 xme=e=>(L("data-v-3a0e72f0"),e=e(),R(),e),Dme={class:"flex w-full noteApp"},Cme={class:"h-full noteApp-left mt-4"},Sme={class:"pb-4 bg-white sticky top-0 z-20 flex justify-center"},Ame={key:0},Ome=["onClick"],kme={class:"overflow-ellipsis whitespace-nowrap overflow-hidden font-bold noteApp-title"},Bme={class:"flex items-center mt-2"},Fme={class:"noteApp-time ml-2"},Tme=["onClick"],_me=[xme((()=>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)))],Pme={class:"px-2 w-full noteApp-context"},jme={key:0,class:"mt-4"},Ime={class:"mb-4"},Nme={key:0,class:"flex flex-col",style:{height:"calc(100vh - 80px)"}},Lme={class:"noteApp-edit-footer flex",style:{height:"30px","margin-top":"10px"}},Rme={class:"flex items-center gap-4 ml-4"},Mme=["onClick"],zme={class:"ml-auto"},$me={key:1,class:"flex justify-center flex-col items-center h-full"},Hme=[xme((()=>E("img",{style:{transform:"translateX(-90px)"},src:"/dist/assets/wiki.1706520491627.png",alt:""},null,-1))),xme((()=>E("b",{style:{transform:"translateX(-90px)"},class:"mt-6 text-2xl"},"请选择文档或创建文档",-1)))],Vme={__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(Object.assign({},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(hf){}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=He(e.text),o.value=!0}catch(hf){console.log("错误",hf.message)}await b((()=>{setTimeout((()=>{R=!1}),300)}))}))))};return(e,t)=>{const r=w("el-input"),c=w("el-icon"),v=w("el-button");return u(),s("div",Dme,[E("div",Cme,[E("div",Sme,[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",Ame,[(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",kme,_(e.title||"新建笔记"),1),E("div",Bme,[(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",Fme,_(null==e?void 0:e.update_time),1),a.value===e.id?(u(),B(c,{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={text:"",id:"",user_id:"",title:"",create_time:"",update_time:"",weight:0},l.value=He(""),o.value=!1)}catch(hf){console.log(hf)}})(e.id)),["stop"]),size:"15px",color:"#999999"},{default:O((()=>[p(h(P))])),_:2},1032,["onClick"])):D("",!0)])],10,Ome),[[F,e.title.includes(n.value)||!e.title]])])),_:2},1024)))),128))])):D("",!0),E("div",{class:"addNote",onClick:C(L,["stop"]),title:"新建笔记"},_me,8,Tme)]),E("div",Pme,[o.value?(u(),s("div",jme,[E("div",Ime,[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",Nme,[p(Eme,{modelValue:l.value,"onUpdate:modelValue":t[2]||(t[2]=e=>l.value=e)},null,8,["modelValue"]),E("div",Lme,[E("div",Rme,[(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,Mme))),64))]),E("div",zme,[p(v,{size:"default",class:"w-24",onClick:d,type:"primary",title:"(Ctrl/Command) + S"},{default:O((()=>[I("保存 ")])),_:1})])])])):D("",!0)])):(u(),s("div",$me,Hme))])])}}};var Ume=v(Vme,[["__scopeId","data-v-3a0e72f0"]]);export{Ume as default};
|